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

 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
*/
/*

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.
*/
/*

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Gs8,BUU,Fgs,DLs,uzl,RJI,B6,Clc,lcU,Dc,ULM,CQ,qSS,EMJ,rU,W6,hJQ,Kgl,acI,kM,e8,QIg,jIo,$M,WgM,eJz,bQL,vMg,p6J,YSs,cgz,JgS,AgI,fcQ,gMl,SSz,xLQ,Dq,ww,ly,BwI,UG,QP,i7I,jN,OG,D8M,ua8,oq,p7,yTM,EvI,hUL,cs,m8Q,XsL,QqJ,tT,jq6,LtS,WtU,rTo,H7o,SN,Ktl,G$,kLI,$8l,ovQ,XD,MNL,psU,mU,b7L,KN,VN6,vvg,Iqo,fqS,tNo,Z78,gvS,SGc,HS,PyI,x8o,G$o,B$l,iNl,DHQ,uDl,CGs,N$S,lZg,qAQ,hBg,Qzc,LUU,jz6,YD,r2l,$HQ,A2,zBQ,VQ6,pSg,oDs,YAc,MQS,cS,FUo,T$,fN,t2,A2U,g$,c28,dHo,J2S,BX,T$s,IZs,tQg,gDl,ZN8,SAc,szg,xHJ,sA,GX8,ieL,D3c,RwL,
yC,Ca8,nSU,la,qyo,KL6,yjo,a6S,XXz,QM8,OeL,rjo,$3l,beU,Vzg,oSz,Mzg,d3o,JjM,I66,tzQ,SyU,x3s,Pal,BiU,Fn6,uJU,Nig,Edg,oM,KnQ,mm8,XYz,TX,IM,tj,Go,i5,DK,OIo,nI,$mc,Vl8,od6,Mlz,pY6,ao,YxU,QD,jl,LI,ri,dmz,JlI,clo,TiM,IKM,tlc,ZI6,gdQ,SxL,xmM,zo,Ox,P5l,GtL,BOU,F_8,iSg,DPc,uRU,RDo,Jl,cY,To,Io,tl,CMl,ZK,yCz,Ei6,Sl,hDc,K_M,aJS,PY,mPM,X7g,Qks,Gt,rCg,iM,kt8,OSS,FR,$PU,eDs,zD6,bSg,V5z,viU,Rk,oil,M5L,wO,p7M,YhL,CS,NP,yQ,nS,AC8,JCz,dPl,lM,TOS,IJ8,fJ8,qP,hC,KS,ak,m_,QQ,t5L,ZSs,Sh8,skS,PMo,BqU,G2c,iTl,FGl,DKo,u26,RFJ,
rO,we8,CBg,yMg,Oh,nkU,lRI,UKl,qKS,EkQ,hFo,zt,bM,KGQ,ok,MP,aRg,QiM,ji8,LGc,WGg,HT6,k2S,zFg,bTS,Vy8,vkS,okM,Myl,pe8,JMM,AC,cMc,Tq6,IRc,tyM,gkJ,ZJ,siU,xKc,PBg,inS,ubg,RWU,w1g,Cz6,Ndg,n3M,LWM,r7z,WWU,OnQ,eWS,NK,$No,VVz,MVz,p1L,YrU,A7l,dNz,J7L,c7U,Tdo,fno,tVJ,v3g,ZnL,g38,Srg,s_M,xNQ,Pzg,GMQ,BTQ,iEI,RXU,DgI,NTQ,wNM,CCJ,lBU,UgM,q4U,y0z,hXS,n0l,aBg,We,mgz,He,OK,XNg,j7o,LSc,HEo,M2g,OEU,kMJ,$gI,bEc,eX6,c0s,A0o,TTU,IBL,fB8,t2z,ZEc,S4I,g0z,s7U,xg6,PCM,GJL,iHg,DnJ,umQ,Rp8,C9l,w5g,X5z,Vg,Qnz,Ldl,reg,Wdg,HHs,kJL,
ep6,$ns,zpg,dq,JM,bHg,T2,YD6,fT,dng,tM,IAz,tRs,Fmg,xk,RVg,wQU,nKL,NoI,yPo,Fb,llU,USz,EKI,hVI,Kmc,all,mSL,XQl,QYJ,LmJ,NN,rPz,yA,Ur,O8J,Kn,VEM,b8s,MES,Xb,Ln,Yfg,APM,dSQ,JPJ,cPs,rd,Sfo,gKQ,k3,sY8,eV,z_,GDs,BgU,ius,Dzc,RZz,usg,woU,J7,hZU,KO6,t7,WOJ,jBg,Hus,SV,$zM,sr,x3,zZo,buo,orU,YOl,AoQ,dzg,P1,co6,Joc,grI,SOM,xzU,iZl,DIc,u0Q,RIJ,w$s,Nas,ybS,lSg,UI6,qzz,Fe,hIl,CE,aSJ,mIs,X$M,jug,KX6,E28,Quo,R7,rbL,OZo,HZz,zIL,bZS,VmQ,o2o,MmI,p$8,YzL,Abg,KE,NSJ,dIl,yAc,lNl,Xe,q2I,hfI,LE,WN,rT,Qp8,Xw8,EbM,Ht8,btg,obl,
vbg,Y2g,e2,d0s,JAS,INg,fNM,vN,Zt6,pE,Y0,sp8,GNz,ir8,F5g,R2S,wzU,Chc,N0g,A0,nQS,lHz,UYz,q18,h2g,K58,aH8,mYS,cN,fE,js6,L5g,rUl,kNo,Orl,e2l,M_S,pzz,V_M,AUM,dYJ,JUJ,B5,i9,Fm,DA,fHs,t_z,Rn,Zrg,gQS,S1J,ssI,Pho,G1g,BsQ,iil,xYs,FV8,nH,uKg,yLc,l9,Nss,nyS,DWs,lLz,qn,qwQ,EyM,h7M,KVo,mWo,aLg,XZl,LVz,Qal,rLS,$Wc,bi8,vyJ,pZS,MaS,oyz,YwL,ALI,JLS,TsQ,cLL,ILL,rn,taI,Zil,gyc,Swz,sag,P2Q,xWL,G78,B5g,RRU,DaU,uwJ,Cfc,N5I,yJg,l4o,nI8,Uaz,qq6,hRo,a4o,QgL,LbS,jgz,In,rJs,KbS,zRM,VDJ,vIs,SR,oIl,pTz,daQ,T5o,cJ6,ZRl,gIM,SqJ,
sgS,PfM,DD6,GxQ,iJI,FDs,u98,RSI,Cog,w2M,ycM,N86,wo,n9S,UDM,qXg,aVJ,Ef,hP,K8,mDz,X2U,aY,LD6,L8,ro,WQ,kxz,HQ,$Dc,eE,zSM,bJo,VwJ,v9M,bX,o9o,Mwz,p2o,Ac6,Jcs,IVS,twJ,T0,ZJL,g9g,SXS,s9I,xD6,Poz,GBs,BKI,tP,DOL,uus,Rcg,wmU,CnL,NKl,yVQ,n7g,lkM,UOg,qjz,E7I,hcs,Bo,OpL,eco,ii,Fs,D8,$O6,zcJ,bpJ,VsI,v78,o7z,MsI,JVS,cVU,TKS,IkM,fkS,Cu,yv,nu,li,EO,ho,Ku,ZpQ,mO,Sj8,Xs,sFJ,xOg,Qv,Pnc,Ga8,B3l,ySz,lOJ,KCc,Qy8,XcJ,nTS,jys,WCc,YF8,z6S,T3z,VIo,JSU,IOS,OO,tIQ,$r,gTI,SFc,x7Q,PAJ,Gmo,ik6,vo,Dhl,u1U,Rtz,wrg,C4S,NJg,yxz,FrJ,
Uho,q_M,ENl,Mz,QhS,jhJ,XrI,rxM,Wrz,kmo,Ok8,HkI,oNL,Ax8,Jxs,fu,gNU,tFl,Zks,GnS,iAS,FAS,D6l,uTg,Ri8,wIc,B$,hiU,a$L,qRU,U6I,KAL,NeM,XI6,ziI,LA6,rZz,WAs,JZU,Tes,d6U,gFc,AZ6,CNl,ZAz,jQs,$6z,cZg,m6S,nFg,yZz,l$8,EFs,YRS,LZ,ytz,lM8,UjS,qYg,EPI,rt8,ea8,$j6,VK,bhc,oPo,AtJ,YYU,Jto,ct6,IMM,fMc,t3I,ZhQ,SYS,gPl,Jb,FHS,izg,BNs,w0s,Dk6,Cvl,R9Q,NNS,ymL,qdI,lbg,UkU,h9M,abg,mkz,jG6,LHU,rmJ,WHg,kfS,Ozg,e9Q,Sm,z9z,sz,bzQ,oLI,VgL,MgJ,dkQ,Jml,IbQ,tgz,DN,wS,sGg,xkQ,Ct,N0,PvJ,yN,nt,Gd6,ls,B6z,U2,ixU,FhL,E2,DtI,uio,ROc,wPc,
CQI,y1z,N6S,lw6,Ews,q$M,hOQ,KhM,nwU,awg,QCL,XPg,UtJ,jCz,LhQ,XL,r1U,HxU,Wh6,kd8,Oxs,$tJ,eOU,zOS,jW,VTI,vwJ,bxg,MTl,pPo,Y$I,c1I,fwo,sCz,BIo,Lt,DVL,uSQ,rS,RPg,O2,eW,lIs,Hw,bs,UVI,q8I,hPo,Kvl,mVg,QDg,jDM,LvJ,rRg,k9g,bXQ,$VJ,HXM,VUg,vzl,M0,zP8,ozJ,AA,MUL,pUo,Y8M,ARJ,TIz,dVg,cRs,ZXz,gzJ,G6M,PcU,FYI,NZg,y5Q,lXU,qlz,EW6,KYl,aXI,mBs,QKl,jKc,LYM,HcQ,$Bg,zrz,k6S,VeS,oWM,vWc,bcg,Me8,YlS,A5l,dBz,J5s,c56,IXc,TZo,te6,xBz,gWQ,ZcU,GEM,xb,Pw,GN,B2o,iGo,FKI,DXM,Cr,C16,N2g,yhg,NY,lh,qCU,hGS,KKQ,mXs,jtL,qY,E1,LK8,hU,
HGQ,kEg,OGl,as,VtL,ppg,Aho,dXJ,JhU,T2U,Igc,fg6,guI,Xh,SC8,P1l,Qz,G8z,DUg,j_,wfM,Lr,Hz,kQ,CJg,yEM,NPM,l9L,UUs,q7s,EE6,nES,Xfg,QVz,Lw6,Wwc,eYL,OBJ,$UJ,bBl,VOU,vEz,oEg,MOL,pfI,Y7L,JEs,AEL,Vz,TP8,vz,I9M,pr,YQ,f9g,tO6,ZBo,gES,S7o,AU,sV6,xUo,PJJ,Gu6,idQ,FE6,DQJ,u7Q,Ryg,Cw8,wL8,d0,ysl,lzs,UQL,q9c,Eeg,azI,XLg,Is,j6l,rsS,WEL,Hdl,kul,Odc,eyo,$Ql,zyc,mQg,Q6g,bdo,VHl,pLo,Y9g,As8,dQ6,ioJ,uM6,Rds,wV6,Dps,Up6,hdc,qV6,K$o,XVc,j3U,rD6,OoI,kkS,boz,BZ,V7g,vCg,i2,oCM,FK,M7Q,pVJ,YVg,dpo,ADI,JD8,cDS,Tuc,ITQ,xpS,GGl,igQ,
BYL,gCg,t7g,D9S,RTz,nAl,lWQ,EAI,Qcs,Li8,ws,rQ8,Hg6,kGz,eTz,VAg,MAJ,AQg,d9Q,JQc,cQz,ZgJ,TYg,x9o,PEQ,GVL,iVM,ni,F98,uqQ,Rxo,wRJ,C68,Nrz,y9Q,nZz,U_l,qs8,Ew,EZo,hxS,axo,Ki,K9U,XRg,r9g,XK,W96,HVl,kVz,$_J,zxg,OVl,V08,pRQ,YsJ,A9g,HZ,d_J,IxM,fxz,$y,gZU,t0g,ZVg,x_I,P6g,GSS,BBQ,AL,u5Q,RAg,wvz,C_c,NBz,Uys,hAL,Elg,qc8,KJl,myJ,XvJ,WJg,QeL,HMQ,OMo,kSo,vlU,pvL,AXl,JXg,ScQ,Eq,xyI,i48,Duz,Uq,LR,yiQ,qpI,Uuz,hzo,Ko8,muI,aal,XdM,QSl,r5,aOc,nRQ,ERg,lag,QY,ris,Woz,H4Q,kTs,vT,O4I,ezS,$uz,zzg,b4Q,YI,Vxs,Mxg,YpS,AiU,txo,
gRs,Spo,sSS,PY8,Gjc,SD,i9l,FFL,DR6,uES,Rj8,wjJ,Nlz,nYI,UR6,qeL,Xjl,a7Q,Q5U,rWg,WFg,F9,H9I,kjJ,O9o,zjc,VCM,b9M,oYJ,pj6,w8,AWz,dRo,Yeg,JWL,cWo,I7M,tCz,f7l,Z9g,Tlg,gY6,Sec,s58,xRg,Pxg,GiJ,BA8,i36,F7L,Rog,u6g,w9o,NAM,C3U,CJ,yfQ,UvM,K7L,nVU,X98,QJS,jJ6,L7g,H3I,VpI,vVM,MpI,p9l,QU,Jfs,fsS,gVz,jw,HLS,S5M,sJz,WPI,kls,bLg,H2,Vh8,vjS,MhI,pMl,YBL,A3o,J3g,c3z,x2S,ZLU,SBM,GOs,PII,BkS,iUQ,DFl,Rmo,CuS,y8S,nmz,UFz,LMS,HUg,OUz,emg,$FM,zmU,bU8,vmg,omJ,YvQ,A88,dFo,J8o,c8g,TkS,IdM,fds,gmM,xFl,Y9,Ac,d8,PuI,GFI,Tx,iF8,
nh8,K38,EhJ,VP8,vhs,ohs,DoM,yF6,wag,paJ,YtU,AF6,dos,UoL,JF6,T_I,frI,gh6,StJ,GB,uNs,wh8,NEU,yN8,lvS,npM,EpJ,K4g,rNl,jHg,m5o,L46,Xhg,W48,ehL,aF,ma,phQ,vpo,ANI,d5S,cNs,TEM,QW,Ivz,ZDJ,gpS,SLo,sHz,Dso,FzU,$7,yqc,MO,l0z,Usg,qEl,E$J,hHg,KzI,a0S,ms6,XOs,QRJ,jR6,Y7,LzL,rq6,Wzs,HPs,kqJ,OPM,eHz,$sI,dK,zHg,bPg,VvQ,v$z,o$8,Mvg,pOL,YEo,Aqc,dso,Jq6,cql,Tps,cm,f0J,ZPo,SES,PkI,ilg,Fko,D1Q,RLQ,Cdo,N1s,yYc,sj,EGI,U1L,hL6,Kkg,aFs,Qrz,jrM,LkI,WkQ,N7,kKl,w3,eLz,$1I,y7,zL6,bl6,VKU,vG8,lA,YWI,d1M,fFL,IFS,Zlg,gGU,XQ,SWz,
srM,Pd6,BvQ,iOc,DqI,u4s,GCM,Rez,nBI,EBI,heI,Q7,Kpg,aPg,Lpo,mqM,Qj6,jjl,eeI,Wpl,$q8,bOI,vBM,oBU,McI,pCs,YPJ,Avo,Jv6,cvz,Tvl,IPM,fPJ,ZOc,SPJ,Ptg,FuJ,Rg8,CgQ,nao,OF,l58,UiS,qHc,EaQ,hgg,a5U,mic,XBS,Q4U,j46,Luc,rwI,Wu6,H2U,kzg,O2Q,$il,egc,Vbz,oaQ,vc,Mb8,Aw8,YHL,cw6,TQJ,I5M,Z2S,s4Q,SHL,tb6,GhL,Pgl,uxI,BXQ,JS,F26,luc,CpJ,NXz,y66,n5o,UrS,E58,quo,cc,Ta,jdl,K28,Qdg,Xig,au8,mro,W2S,khg,e4S,O$L,$rJ,v5L,VJL,MJL,A6o,J6U,Yuz,c66,IuI,TXJ,tJg,Sul,g3,sdg,xrQ,Ppc,FZc,NcJ,sF,nJg,UTS,F1,hqz,qIS,EJJ,i4,X8M,KZS,a3S,QTz,
LZs,jTg,Hal,kRg,eqc,$Ts,zqS,bag,VLJ,oJ8,MLs,qh,YIc,JkI,cko,ah,Tcg,f3S,BGJ,Lk,SI6,G4g,sTs,xTU,ufJ,DGg,NGS,R3s,yBo,n8M,Hr,lGS,UGI,q0s,eF,E8s,kN,aGc,mG6,Xgz,Q2g,j26,rBU,Osg,e3U,bsQ,VGz,o8l,Y08,MGg,pgI,ABs,JBQ,cBL,TGz,IGS,fGg,ZsU,S0S,s2S,PHo,xGo,GZl,Bbz,FqJ,D$U,U$8,n4Q,hML,KqU,LqI,rIc,Wql,Hws,kZo,OwU,zMM,bwI,VnL,v4l,Mnz,p3J,YMl,AIJ,d$g,JIs,TbL,IyS,SF,g4o,Zws,tnU,fy8,sLs,GUc,x$6,ivc,F88,uIz,RNs,wWo,C$S,NtJ,qa8,y_U,nnc,lDl,EnM,hNQ,K8S,Ubg,Gn,XWo,jmz,QmJ,iN,L8M,W8U,Hvc,kUg,r_o,Ovo,eNQ,$b6,zNs,bvo,vnJ,onU,
M4g,pWJ,dbg,A_U,fDS,Ya8,D$,t4J,J_M,IDz,gn6,SaJ,sml,xbo,P$I,B9s,iCU,FfI,ulI,RC8,CjM,yO6,EoL,Uws,qJM,ljz,noU,hCl,ER,KfJ,hZ,ajJ,mwU,rOz,HCM,ky8,OCJ,eC8,$wo,zCS,jo,LA,MXg,VXM,bCL,voo,goz,fjz,ool,Ijg,BRL,iK8,F0J,Dl8,uUL,Cqz,yps,lm8,qng,Eto,hbo,XAJ,mlL,QlS,L0g,Tn,HKg,kvJ,OKQ,ebU,$lo,zbU,bK6,fA,tZ,vtI,otQ,pAQ,dl6,tkc,xlJ,slM,Pqz,BfM,i1g,F6z,DMU,uYl,RuQ,PI,wkQ,q6l,E1o,n16,y4M,UMS,l1M,Xks,Qfc,jfS,L6J,r4M,W6Q,O1g,kWc,H1I,pkz,o1o,Y6M,dMQ,A4l,c48,f1g,Z1o,TfI,I1g,i0s,Dcc,R$I,C0l,yao,lts,h$g,Kcz,atQ,QbS,XEs,mcU,
jbM,LcQ,ra8,WcU,H0g,k3U,O0g,e$l,$cl,z$g,VdQ,v_c,o_z,Mdo,pEI,YUo,dcQ,Jag,caQ,TWM,ItL,ft6,SUI,sbU,P0Q,B7s,GYc,ijI,lR,FQs,Dfg,uvJ,R0L,N7g,C7J,yrz,nxL,loo,Uf6,qmo,Exg,h06,KQM,ao8,mfg,Xuo,QU6,jU8,LQM,rr6,Hjg,WQc,kYo,Ojg,e0I,$fg,z0L,bjU,Vrg,vxl,j3,MrL,puo,YmI,Ars,dfM,crz,T7s,Ios,fog,trI,Zjz,gxQ,sUg,xfg,GHQ,H_,Fxc,CK8,RQ8,uCg,DEl,w4U,n6z,l_6,UES,q36,hQl,Kx8,a_o,X46,mES,Q0g,j0l,LxL,H6Q,kHU,O6l,eQo,$EQ,zQg,v6g,o6S,Mj,dEM,JzI,Thg,tuc,f_l,Z6o,g68,ph,At,s0U,c_,TP,BM6,xES,PKM,Dxg,ucI,Rlg,wGc,nXI,Uxo,qkU,EXz,hlg,
KeI,mxo,XG8,Qvg,jvJ,Le8,r$l,Wec,tt,H5l,kwS,gC,O5Q,elo,$xz,zlU,b5Q,VSz,sY,xP,vXo,oXz,P_,MSJ,pGc,Ykg,A$L,J$8,c$Q,IYg,SkQ,gX8,Z5I,svM,xxo,utM,BV8,ib8,FB8,GeM,D4g,Rng,wF6,NVc,yGI,B0,U4l,qbI,EcJ,hn8,KBJ,m46,QXg,rGM,Obc,Hbg,iv,WBo,bb6,vcg,Fp,oc8,MBS,pFg,YbM,AGz,JGl,cGJ,IUS,fUs,Zbz,gcQ,PWc,BHz,Fyz,imU,uVU,R8I,wnM,COo,yKI,ngz,li6,UAz,qN6,Egs,h8J,KyU,aiJ,XnI,QZz,Hmg,kr6,OmM,e8S,$AQ,z8M,Ud,vgS,MZc,pnl,YN6,AKU,dAz,cKJ,THc,Iis,fil,Zmz,ggc,SNl,hm,sZl,xAg,Bzg,iY6,Kz,aG,uGs,F1S,Rv6,NzU,wJl,yug,lC8,jg,UdI,qoM,Es6,
aCo,XJg,Lz,jEQ,L1s,ruL,W1g,HYl,kbQ,OYo,evQ,$dM,vso,osg,Aug,MYJ,YoI,ddg,Jul,cul,fCS,tYg,ZYI,Sog,sE6,FIc,iyL,CF6,nOJ,oG,lQz,UCQ,jnU,Mk,qil,EOz,KIc,XqM,QWJ,Oy6,eKJ,$Cg,zKs,by6,V9g,M9s,pqQ,AHg,JHU,Yio,dCI,TjI,cHo,fQz,gOI,t9z,Siz,sWs,xCl,PFz,G5z,Bx8,Fsz,i_s,wDL,yyl,CbQ,nUS,l2o,UJL,fz,qQo,EUg,Zb,Kss,h1l,a2M,XDL,mJs,ryI,Wsg,k56,sd,e1I,$Jg,z1Q,b_I,oUo,pDo,dJ8,Ay6,JyL,cy6,TxQ,Z_I,Des,xJs,R5o,wts,NF8,yds,lEs,Ueo,qZQ,Eqz,h5o,KNQ,Xt8,QOl,jOg,LNI,Hqz,Oql,e5I,kgs,z5M,$e8,M1s,ptM,YZc,Ad8,del,Jds,cdl,IEJ,Zqg,gq6,
SZS,PSM,xeU,ifI,DZI,REg,wlJ,C8s,NDg,ynU,lfM,nHl,qTg,mZs,jPI,QPg,LlM,rnS,WlQ,kpL,h1,eEL,mh,zEs,Vfg,vHs,Ano,Jng,ff8,ZfS,gHQ,sPM,xZo,P8S,BUw,FgL,DLL,RJq,NUN,Clq,w67,Lx,nMG,ygG,lcw,ULv,qSG,EMU,hJ7,Kgy,acq,X6U,QIt,jIP,LgG,rgN,Wgv,HQG,ks8,OQq,eJa,zJL,bQ8,V8t,vMt,oMa,p6U,YSL,Agq,cga,$w,SSa,TUN,xL7,GL7,Bwq,i7q,Fta,D8v,bQ,lq7,fn,VG,oC,U8s,qGN,Kty,m87,aqv,px,Xs8,QqU,jqs,LtG;Gs8=function(){var G,B;return typeof CSS!=="undefined"&&((B=(G=CSS).supports)==null?void 0:B.call(G,"selector(:has(*))"))};
BUU=function(G){return G.visibility!=="hidden"&&G.display!=="none"};
Fgs=function(G){if(Gs8()||G.tagName!=="DETAILS"?!G.matches(iQM):G.querySelector("summary")!==null)return-1;G=G.getAttribute("tabindex")||"0";return Number(G)};
DLs=function(G){return G.some(function(B){return Fgs(B)>0})};
uzl=function(G){if(G.textContent||G.ariaLabel)return!0;if(G instanceof HTMLInputElement){if(!G.labels)return!1;G=_.C(G.labels);for(var B=G.next();!B.done;B=G.next())if(B.value.textContent)return!0}return!1};
RJI=function(G){return G.sort(function(B,F){return Fgs(F)-Fgs(B)})};
_.w6Q=function(G){G=Array.from(G.querySelectorAll(iQM)).filter(function(B){return(BUU(B.style)?BUU(window.getComputedStyle(B)):!1)&&uzl(B)});
return DLs(G)?RJI(G):G};
_.Gs=function(G,B){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Gs);else{var F=Error().stack;F&&(this.stack=F)}G&&(this.message=String(G));B!==void 0&&(this.cause=B)};
B6=function(){throw Error("F");};
Clc=function(G,B){B=String.fromCharCode.apply(null,B);return G==null?B:G+B};
lcU=function(G){var B=!1;B=B===void 0?!1:B;if(NU8){if(B&&(ygS?!G.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(G)))throw Error("G");G=(nMS||(nMS=new TextEncoder)).encode(G)}else{for(var F=0,D=new Uint8Array(3*G.length),u=0;u<G.length;u++){var R=G.charCodeAt(u);if(R<128)D[F++]=R;else{if(R<2048)D[F++]=R>>6|192;else{if(R>=55296&&R<=57343){if(R<=56319&&u<G.length){var N=G.charCodeAt(++u);if(N>=56320&&N<=57343){R=(R-55296)*1024+N-56320+65536;D[F++]=R>>18|
240;D[F++]=R>>12&63|128;D[F++]=R>>6&63|128;D[F++]=R&63|128;continue}else u--}if(B)throw Error("G");R=65533}D[F++]=R>>12|224;D[F++]=R>>6&63|128}D[F++]=R&63|128}}G=F===D.length?D:D.subarray(0,F)}return G};
Dc=function(G){_.Fz.setTimeout(function(){throw G;},0)};
_.ul=function(G){for(var B=[],F=0,D=0;D<G.length;D++){var u=G.charCodeAt(D);u<128?B[F++]=u:(u<2048?B[F++]=u>>6|192:((u&64512)==55296&&D+1<G.length&&(G.charCodeAt(D+1)&64512)==56320?(u=65536+((u&1023)<<10)+(G.charCodeAt(++D)&1023),B[F++]=u>>18|240,B[F++]=u>>12&63|128):B[F++]=u>>12|224,B[F++]=u>>6&63|128),B[F++]=u&63|128)}return B};
ULM=function(G){for(var B=[],F=0,D=0;F<G.length;){var u=G[F++];if(u<128)B[D++]=String.fromCharCode(u);else if(u>191&&u<224){var R=G[F++];B[D++]=String.fromCharCode((u&31)<<6|R&63)}else if(u>239&&u<365){R=G[F++];var N=G[F++],y=G[F++];u=((u&7)<<18|(R&63)<<12|(N&63)<<6|y&63)-65536;B[D++]=String.fromCharCode(55296+(u>>10));B[D++]=String.fromCharCode(56320+(u&1023))}else R=G[F++],N=G[F++],B[D++]=String.fromCharCode((u&15)<<12|(R&63)<<6|N&63)}return B.join("")};
_.wU=function(G,B){return G.lastIndexOf(B,0)==0};
CQ=function(G,B){var F=G.length-B.length;return F>=0&&G.indexOf(B,F)==F};
_.NL=function(G){return/^[\s\xa0]*$/.test(G)};
_.ll=function(G,B){return G.indexOf(B)!=-1};
_.qL=function(G,B){return _.ll(G.toLowerCase(),B.toLowerCase())};
_.mg=function(G,B){var F=0;G=ES(String(G)).split(".");B=ES(String(B)).split(".");for(var D=Math.max(G.length,B.length),u=0;F==0&&u<D;u++){var R=G[u]||"",N=B[u]||"";do{R=/(\d*)(\D*)(.*)/.exec(R)||["","","",""];N=/(\d*)(\D*)(.*)/.exec(N)||["","","",""];if(R[0].length==0&&N[0].length==0)break;F=qSS(R[1].length==0?0:parseInt(R[1],10),N[1].length==0?0:parseInt(N[1],10))||qSS(R[2].length==0,N[2].length==0)||qSS(R[2],N[2]);R=R[3];N=N[3]}while(F==0)}return F};
qSS=function(G,B){return G<B?-1:G>B?1:0};
_.Qo=function(){var G=_.Fz.navigator;return G&&(G=G.userAgent)?G:""};
EMJ=function(G){if(!j8||!LQ)return!1;for(var B=0;B<LQ.brands.length;B++){var F=LQ.brands[B].brand;if(F&&_.ll(F,G))return!0}return!1};
rU=function(G){return _.ll(_.Qo(),G)};
W6=function(){return j8?!!LQ&&LQ.brands.length>0:!1};
hJQ=function(){return W6()?!1:rU("Opera")};
Kgl=function(){return W6()?!1:rU("Trident")||rU("MSIE")};
acI=function(){return W6()?EMJ("Microsoft Edge"):rU("Edg/")};
kM=function(){return rU("Firefox")||rU("FxiOS")};
_.mLM=function(){return rU("Safari")&&!(e8()||(W6()?0:rU("Coast"))||hJQ()||(W6()?0:rU("Edge"))||acI()||(W6()?EMJ("Opera"):rU("OPR"))||kM()||rU("Silk")||rU("Android"))};
e8=function(){return W6()?EMJ("Chromium"):(rU("Chrome")||rU("CriOS"))&&!(W6()?0:rU("Edge"))||rU("Silk")};
_.X6J=function(){return rU("Android")&&!(e8()||kM()||hJQ()||rU("Silk"))};
QIg=function(G){var B={};G.forEach(function(F){B[F[0]]=F[1]});
return function(F){return B[F.find(function(D){return D in B})]||""}};
jIo=function(G){var B=_.Qo();if(G==="Internet Explorer"){if(Kgl())if((G=/rv: *([\d\.]*)/.exec(B))&&G[1])B=G[1];else{G="";var F=/MSIE +([\d\.]+)/.exec(B);if(F&&F[1])if(B=/Trident\/(\d.\d)/.exec(B),F[1]=="7.0")if(B&&B[1])switch(B[1]){case "4.0":G="8.0";break;case "5.0":G="9.0";break;case "6.0":G="10.0";break;case "7.0":G="11.0"}else G="7.0";else G=F[1];B=G}else B="";return B}var D=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");F=[];for(var u;u=D.exec(B);)F.push([u[1],u[2],u[3]||void 0]);
B=QIg(F);switch(G){case "Opera":if(hJQ())return B(["Version","Opera"]);if(W6()?EMJ("Opera"):rU("OPR"))return B(["OPR"]);break;case "Microsoft Edge":if(W6()?0:rU("Edge"))return B(["Edge"]);if(acI())return B(["Edg"]);break;case "Chromium":if(e8())return B(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&kM()||G==="Safari"&&_.mLM()||G==="Android Browser"&&_.X6J()||G==="Silk"&&rU("Silk")?(B=F[2])&&B[1]||"":""};
_.LgS=function(G){if(W6()&&G!=="Silk"){var B=LQ.brands.find(function(F){return F.brand===G});
if(!B||!B.version)return NaN;B=B.version.split(".")}else{B=jIo(G);if(B==="")return NaN;B=B.split(".")}return B.length===0?NaN:Number(B[0])};
$M=function(){return j8?!!LQ&&!!LQ.platform:!1};
_.rg8=function(){return $M()?LQ.platform==="Android":rU("Android")};
WgM=function(){return rU("iPhone")&&!rU("iPod")&&!rU("iPad")};
_.zs=function(){return WgM()||rU("iPad")||rU("iPod")};
_.HQS=function(){return $M()?LQ.platform==="macOS":rU("Macintosh")};
_.ksL=function(){return $M()?LQ.platform==="Windows":rU("Windows")};
_.OQI=function(){return $M()?LQ.platform==="Chrome OS":rU("CrOS")};
_.bl=function(G){return G[G.length-1]};
eJz=function(G){for(var B=_.oI,F=typeof G==="string"?G.split(""):G,D=G.length-1;D>=0;D--)if(D in F&&B.call(void 0,F[D],D,G))return D;return-1};
_.YM=function(G,B){return _.ML(G,B)>=0};
_.$LI=function(G,B){_.YM(G,B)||G.push(B)};
_.dU=function(G,B){B=_.ML(G,B);var F;(F=B>=0)&&_.zJs(G,B);return F};
_.zJs=function(G,B){Array.prototype.splice.call(G,B,1)};
_.II=function(G){var B=G.length;if(B>0){for(var F=Array(B),D=0;D<B;D++)F[D]=G[D];return F}return[]};
_.tg=function(G,B){for(var F=1;F<arguments.length;F++){var D=arguments[F];if(_.fQ(D)){var u=G.length||0,R=D.length||0;G.length=u+R;for(var N=0;N<R;N++)G[u+N]=D[N]}else G.push(D)}};
_.V8g=function(G,B,F,D){Array.prototype.splice.apply(G,bQL(arguments,1))};
bQL=function(G,B,F){return arguments.length<=2?Array.prototype.slice.call(G,B):Array.prototype.slice.call(G,B,F)};
vMg=function(G,B){B=B||G;for(var F=0,D=0,u={};D<G.length;){var R=G[D++],N=_.Zc(R)?"o"+_.S8(R):(typeof R).charAt(0)+R;Object.prototype.hasOwnProperty.call(u,N)||(u[N]=!0,B[F++]=R)}B.length=F};
_.M8S=function(G,B,F){F=F||_.oMz;for(var D=0,u=G.length,R;D<u;){var N=D+(u-D>>>1);var y=F(B,G[N]);y>0?D=N+1:(u=N,R=!y)}return R?D:-D-1};
_.sS=function(G,B,F){if(!_.fQ(G)||!_.fQ(B)||G.length!=B.length)return!1;var D=G.length;F=F||p6J;for(var u=0;u<D;u++)if(!F(G[u],B[u]))return!1;return!0};
_.oMz=function(G,B){return G>B?1:G<B?-1:0};
p6J=function(G,B){return G===B};
YSs=function(G,B,F){B=Array.prototype.splice.call(G,B,1);Array.prototype.splice.call(G,F,0,B[0])};
_.xM=function(G,B){B===void 0&&(B=0);AgI();B=dLg[B];for(var F=Array(Math.floor(G.length/3)),D=B[64]||"",u=0,R=0;u<G.length-2;u+=3){var N=G[u],y=G[u+1],U=G[u+2],q=B[N>>2];N=B[(N&3)<<4|y>>4];y=B[(y&15)<<2|U>>6];U=B[U&63];F[R++]=q+N+y+U}q=0;U=D;switch(G.length-u){case 2:q=G[u+1],U=B[(q&15)<<2]||D;case 1:G=G[u],F[R]=B[G>>2]+B[(G&3)<<4|q>>4]+U+D}return F.join("")};
cgz=function(G){var B="";JgS(G,function(F){B+=String.fromCharCode(F)});
return B};
_.TU8=function(G){var B=[];JgS(G,function(F){B.push(F)});
return B};
_.P6=function(G){var B=G.length,F=B*3/4;F%3?F=Math.floor(F):_.ll("=.",G[B-1])&&(F=_.ll("=.",G[B-2])?F-2:F-1);var D=new Uint8Array(F),u=0;JgS(G,function(R){D[u++]=R});
return u!==F?D.subarray(0,u):D};
JgS=function(G,B){function F(U){for(;D<G.length;){var q=G.charAt(D++),h=Bs[q];if(h!=null)return h;if(!_.NL(q))throw Error("I`"+q);}return U}
AgI();for(var D=0;;){var u=F(-1),R=F(0),N=F(64),y=F(64);if(y===64&&u===-1)break;B(u<<2|R>>4);N!=64&&(B(R<<4&240|N>>2),y!=64&&B(N<<6&192|y))}};
AgI=function(){if(!Bs){Bs={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),B=["+/=","+/","-_=","-_.","-_"],F=0;F<5;F++){var D=G.concat(B[F].split(""));dLg[F]=D;for(var u=0;u<D.length;u++){var R=D[u];Bs[R]===void 0&&(Bs[R]=u)}}}};
fcQ=function(G){return Icg[G]||""};
gMl=function(G){if(!t8z)return _.P6(G);G=ZQQ.test(G)?G.replace(ZQQ,fcQ):G;G=atob(G);for(var B=new Uint8Array(G.length),F=0;F<G.length;F++)B[F]=G.charCodeAt(F);return B};
SSz=function(G,B){G.__closure__error__context__984382||(G.__closure__error__context__984382={});G.__closure__error__context__984382.severity=B};
_.iy=function(G){G=Error(G);SSz(G,"warning");return G};
xLQ=function(G,B){if(G!=null){var F;var D=(F=sIJ)!=null?F:sIJ={};F=D[G]||0;F>=B||(D[G]=F+1,G=Error(),SSz(G,"incident"),Dc(G))}};
Dq=function(G,B,F){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(F===void 0?0:F)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():B};
ww=function(G,B){uy||_.Rq in G||Pls(G,GLQ);G[_.Rq]|=B};
ly=function(G,B){uy||_.Rq in G||Pls(G,GLQ);G[_.Rq]=B};
BwI=function(G){if(4&G)return 512&G?512:1024&G?1024:0};
UG=function(G){ww(G,34);return G};
QP=function(G){ww(G,8192);return G};
i7I=function(G){ww(G,32);return G};
jN=function(){return typeof BigInt==="function"};
OG=function(G,B){return B===void 0?G.copyOnWrite!==kv&&!!(2&(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Rq]|0)):!!(2&B)&&G.copyOnWrite!==kv};
_.VP=function(G,B){if(G!=null)if(typeof G==="string")G=G?new $v(G,zL):_.by();else if(G.constructor!==$v)if(Ftz&&G!=null&&G instanceof Uint8Array)G=G.length?new $v(new Uint8Array(G),zL):_.by();else{if(!B)throw Error();G=void 0}return G};
D8M=function(G,B){if(typeof B!=="number"||B<0||B>=G.length)throw Error();};
ua8=function(G,B,F){var D=B&128?0:-1,u=G.length,R;if(R=!!u)R=G[u-1],R=R!=null&&typeof R==="object"&&R.constructor===Object;var N=u+(R?-1:0);for(B=B&128?1:0;B<N;B++)F(B-D,G[B]);if(R){G=G[u-1];for(var y in G)!isNaN(y)&&F(+y,G[y])}};
oq=function(G){return G&128?vs:void 0};
_.Cy6=function(G){var B=RUg;if(!wsg(G)){var F,D;B=(D=(F=typeof B==="function"?B():B)==null?void 0:F.concat("\n"))!=null?D:"";throw Error("L`"+B+"`"+String(G));}};
p7=function(G){G.isGuard_doNotManuallySetPrettyPlease=!0;return G};
yTM=function(){var G=Nwo;return p7(function(B){for(var F in G)if(B===G[F]&&!/^[0-9]+$/.test(F))return!0;return!1})};
_.Yv=function(G){var B=G;if(nvM(B)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(B))throw Error(String(B));}else if(lqQ(B)&&!Number.isSafeInteger(B))throw Error(String(B));return U86?BigInt(G):G=qG8(G)?G?"1":"0":nvM(G)?G.trim()||"0":String(G)};
EvI=function(G,B){if(G.length>B.length)return!1;if(G.length<B.length||G===B)return!0;for(var F=0;F<G.length;F++){var D=G[F],u=B[F];if(D>u)return!1;if(D<u)return!0}};
hUL=function(G){var B=G>>>0;AT=B;dw=(G-B)/4294967296>>>0};
cs=function(G){if(G<0){hUL(-G);var B=_.C(Ktl(AT,dw));G=B.next().value;B=B.next().value;AT=G>>>0;dw=B>>>0}else hUL(G)};
m8Q=function(G){var B=aqM||(aqM=new DataView(new ArrayBuffer(8)));B.setFloat32(0,+G,!0);dw=0;AT=B.getUint32(0,!0)};
XsL=function(G,B){var F=B*4294967296+(G>>>0);return Number.isSafeInteger(F)?F:_.Iq(G,B)};
QqJ=function(G,B){return _.Yv(jN()?BigInt.asUintN(64,(BigInt(B>>>0)<<BigInt(32))+BigInt(G>>>0)):_.Iq(G,B))};
tT=function(G,B){var F=B&2147483648;F&&(G=~G+1>>>0,B=~B>>>0,G==0&&(B=B+1>>>0));G=XsL(G,B);return typeof G==="number"?F?-G:G:F?"-"+G:G};
jq6=function(G,B){return jN()?_.Yv(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(B))<<BigInt(32))+BigInt.asUintN(32,BigInt(G)))):_.Yv(_.gw(G,B))};
LtS=function(G){var B=AT,F=dw,D=F>>31;F=(F<<1|B>>>31)^D;G(B<<1^D,F)};
WtU=function(G,B){return rTo(G,B,tT)};
rTo=function(G,B,F){var D=-(G&1);G=(G>>>1|B<<31)^D;B=B>>>1^D;return F(G,B)};
_.Iq=function(G,B){B>>>=0;G>>>=0;if(B<=2097151)var F=""+(4294967296*B+G);else jN()?F=""+(BigInt(B)<<BigInt(32)|BigInt(G)):(F=(G>>>24|B<<8)&16777215,B=B>>16&65535,G=(G&16777215)+F*6777216+B*6710656,F+=B*8147497,B*=2,G>=1E7&&(F+=G/1E7>>>0,G%=1E7),F>=1E7&&(B+=F/1E7>>>0,F%=1E7),F=B+H7o(F)+H7o(G));return F};
H7o=function(G){G=String(G);return"0000000".slice(G.length)+G};
_.gw=function(G,B){B&2147483648?jN()?G=""+(BigInt(B|0)<<BigInt(32)|BigInt(G>>>0)):(B=_.C(Ktl(G,B)),G=B.next().value,B=B.next().value,G="-"+_.Iq(G,B)):G=_.Iq(G,B);return G};
SN=function(G){if(G.length<16)cs(Number(G));else if(jN())G=BigInt(G),AT=Number(G&BigInt(4294967295))>>>0,dw=Number(G>>BigInt(32)&BigInt(4294967295));else{var B=+(G[0]==="-");dw=AT=0;for(var F=G.length,D=B,u=(F-B)%6+B;u<=F;D=u,u+=6)D=Number(G.slice(D,u)),dw*=1E6,AT=AT*1E6+D,AT>=4294967296&&(dw+=Math.trunc(AT/4294967296),dw>>>=0,AT>>>=0);B&&(B=_.C(Ktl(AT,dw)),G=B.next().value,B=B.next().value,AT=G,dw=B)}};
Ktl=function(G,B){B=~B;G?G=~G+1:B+=1;return[G,B]};
G$=function(G){return Array.prototype.slice.call(G)};
_.BS=function(G,B){throw Error(B===void 0?"unexpected value "+G+"!":B);};
_.iG=function(G){if(G!=null&&typeof G!=="number")throw Error("M`"+typeof G+"`"+G);return G};
_.FD=function(G){if(G==null||typeof G==="number")return G;if(G==="NaN"||G==="Infinity"||G==="-Infinity")return Number(G)};
kLI=function(G){if(G!=null&&typeof G!=="boolean")throw Error("N`"+_.DZ(G)+"`"+G);return G};
_.O7c=function(G){if(G==null||typeof G==="boolean")return G;if(typeof G==="number")return!!G};
_.CN=function(G){switch(typeof G){case "bigint":return!0;case "number":return uG(G);case "string":return eU8.test(G);default:return!1}};
_.y$=function(G){if(!uG(G))throw _.iy("enum");return G|0};
_.nN=function(G){return G==null?G:uG(G)?G|0:void 0};
$8l=function(G){if(typeof G!=="number")throw _.iy("int32");if(!uG(G))throw _.iy("int32");return G|0};
_.lG=function(G){return G==null?G:$8l(G)};
_.UA=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return uG(G)?G|0:void 0};
_.zUz=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return uG(G)?G>>>0:void 0};
ovQ=function(G){var B=0;B=B===void 0?0:B;if(!_.CN(G))throw _.iy("int64");var F=typeof G;switch(B){case 512:switch(F){case "string":return KN(G);case "bigint":return String(az(64,G));default:return b7L(G)}case 1024:switch(F){case "string":return VN6(G);case "bigint":return _.Yv(az(64,G));default:return vvg(G)}case 0:switch(F){case "string":return KN(G);case "bigint":return _.Yv(az(64,G));default:return mU(G)}default:return _.BS(B,"Unknown format requested type for int64")}};
XD=function(G){return G==null?G:ovQ(G)};
MNL=function(G){var B=G.length;if(G[0]==="-"?B<20||B===20&&G<="-9223372036854775808":B<19||B===19&&G<="9223372036854775807")return G;SN(G);return _.gw(AT,dw)};
psU=function(G){if(G[0]==="-")var B=!1;else B=G.length,B=B<20?!0:B===20&&G<="18446744073709551615";if(B)return G;SN(G);return _.Iq(AT,dw)};
mU=function(G){G=Q$(G);jQ(G)||(cs(G),G=tT(AT,dw));return G};
_.YGM=function(G){G=Q$(G);G>=0&&jQ(G)||(cs(G),G=XsL(AT,dw));return G};
b7L=function(G){G=Q$(G);jQ(G)?G=String(G):(cs(G),G=_.gw(AT,dw));return G};
_.AT6=function(G){G=Q$(G);G>=0&&jQ(G)?G=String(G):(cs(G),G=_.Iq(AT,dw));return G};
KN=function(G){var B=Q$(Number(G));if(jQ(B))return String(B);B=G.indexOf(".");B!==-1&&(G=G.substring(0,B));return MNL(G)};
VN6=function(G){var B=Q$(Number(G));if(jQ(B))return _.Yv(B);B=G.indexOf(".");B!==-1&&(G=G.substring(0,B));return jN()?_.Yv(az(64,BigInt(G))):_.Yv(MNL(G))};
vvg=function(G){return jQ(G)?_.Yv(mU(G)):_.Yv(b7L(G))};
_.d8g=function(G){return jQ(G)?_.Yv(_.YGM(G)):_.Yv(_.AT6(G))};
_.JTl=function(G){var B=Q$(Number(G));if(jQ(B)&&B>=0)return String(B);B=G.indexOf(".");B!==-1&&(G=G.substring(0,B));return psU(G)};
_.cTM=function(G){var B=Q$(Number(G));if(jQ(B)&&B>=0)return _.Yv(B);B=G.indexOf(".");B!==-1&&(G=G.substring(0,B));return jN()?_.Yv((0,_.r$)(64,BigInt(G))):_.Yv(psU(G))};
Iqo=function(G){if(G==null)return G;if(typeof G==="bigint")return TwL(G)?G=Number(G):(G=az(64,G),G=TwL(G)?Number(G):String(G)),G;if(_.CN(G))return typeof G==="number"?mU(G):KN(G)};
fqS=function(G,B){B=B===void 0?!1:B;var F=typeof G;if(G==null)return G;if(F==="bigint")return String(az(64,G));if(_.CN(G))return F==="string"?KN(G):B?b7L(G):mU(G)};
tNo=function(G){var B=typeof G;if(G==null)return G;if(B==="bigint")return _.Yv(az(64,G));if(_.CN(G))return B==="string"?VN6(G):vvg(G)};
Z78=function(G){var B=typeof G;if(G==null)return G;if(B==="bigint")return _.Yv((0,_.r$)(64,G));if(_.CN(G))return B==="string"?_.cTM(G):_.d8g(G)};
gvS=function(G){if(G==null)return G;var B=typeof G;if(B==="bigint")return String(az(64,G));if(_.CN(G)){if(B==="string")return KN(G);if(B==="number")return mU(G)}};
SGc=function(G){if(G==null)return G;var B=typeof G;if(B==="bigint")return String((0,_.r$)(64,G));if(_.CN(G)){if(B==="string")return _.JTl(G);if(B==="number")return _.YGM(G)}};
_.WS=function(G){if(typeof G!=="string")throw Error();return G};
HS=function(G){if(G!=null&&typeof G!=="string")throw Error();return G};
_.eQ=function(G){return G==null||typeof G==="string"?G:void 0};
PyI=function(G,B,F,D){if(G!=null&&G[$D]===bG)return G;if(!Array.isArray(G))return F?D&2?B[sq8]||(B[sq8]=x8o(B)):new B:void 0;F=G[_.Rq]|0;D=F|D&32|D&2;D!==F&&ly(G,D);return new B(G)};
x8o=function(G){G=new G;UG(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
G$o=function(G,B,F){G=B?$8l(G):_.UA(G);return G==null?F?0:void 0:G|0};
B$l=function(G){return G};
iNl=function(G){return G};
DHQ=function(G,B,F,D,u,R){G=PyI(G,D,F,R);u&&(G=FUo(G));return G};
uDl=function(G){return[G,this.get(G)]};
CGs=function(){return RBs||(RBs=new V$(UG([]),void 0,void 0,void 0,wS8))};
N$S=function(G){var B=vS(pN);return B?G[B]:void 0};
lZg=function(G,B){var F=F===void 0?!1:F;if(vS(y2s)&&vS(pN)&&void 0===y2s){var D=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=D[pN];if(!u)return;if(u=u.reviveUnknownFields)try{u(D,B,nDo);return}catch(R){Dc(R)}}F&&(G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(F=vS(pN))&&F in G&&(G=G[F])&&delete G[B])};
qAQ=function(G,B){var F=vS(pN),D;uy&&F&&((D=G[F])==null?void 0:D[B])!=null&&xLQ(UHJ,3)};
hBg=function(G,B){B<100||xLQ(EDo,1)};
Qzc=function(G,B,F,D){var u=D!==void 0;D=!!D;var R=vS(pN),N;!u&&uy&&R&&(N=G[R])&&KUI(N,hBg);R=[];var y=G.length;N=4294967295;var U=!1,q=!!(B&64),h=q?B&128?0:-1:void 0;if(!(B&1)){var K=y&&G[y-1];K!=null&&typeof K==="object"&&K.constructor===Object?(y--,N=y):K=void 0;if(q&&!(B&128)&&!u){U=!0;var a;N=((a=aZl)!=null?a:B$l)(N-h,h,G,K,void 0)+h}}B=void 0;for(a=0;a<y;a++){var m=G[a];if(m!=null&&(m=F(m,D))!=null)if(q&&a>=N){var L=a-h,W=void 0;((W=B)!=null?W:B={})[L]=m}else R[a]=m}if(K)for(var e in K)y=K[e],
y!=null&&(y=F(y,D))!=null&&(a=+e,m=void 0,q&&!Number.isNaN(a)&&(m=a+h)<N?R[m]=y:(a=void 0,((a=B)!=null?a:B={})[e]=y));B&&(U?R.push(B):R[N]=B);u&&vS(pN)&&(G=N$S(G))&&G instanceof mHc&&(R[pN]=XSz(G));return R};
LUU=function(G){G[0]=jz6(G[0]);G[1]=jz6(G[1]);return G};
jz6=function(G){switch(typeof G){case "number":return Number.isFinite(G)?G:""+G;case "bigint":return TwL(G)?Number(G):""+G;case "boolean":return G?1:0;case "object":if(Array.isArray(G)){var B=G[_.Rq]|0;return G.length===0&&B&1?void 0:Qzc(G,B,jz6)}if(G!=null&&G[$D]===bG)return r2l(G);if(G instanceof $v){B=G.JSC$9130_value_;if(B==null)G="";else if(typeof B==="string")G=B;else{if(t8z){for(var F="",D=0,u=B.length-10240;D<u;)F+=String.fromCharCode.apply(null,B.subarray(D,D+=10240));F+=String.fromCharCode.apply(null,
D?B.subarray(D):B);B=btoa(F)}else B=_.xM(B);G=G.JSC$9130_value_=B}return G}if(G instanceof V$)return G=G.size!==0?WU6(G,LUU):void 0,G;return}return G};
YD=function(G,B){if(B){aZl=B==null||B===B$l||B[HN6]!==k$s?B$l:B;try{return r2l(G)}finally{aZl=void 0}}return r2l(G)};
r2l=function(G){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Qzc(G,G[_.Rq]|0,jz6)};
$HQ=function(G){switch(typeof G){case "boolean":return ON8||(ON8=[0,void 0,!0]);case "number":return G>0?void 0:G===0?eBQ||(eBQ=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}};
A2=function(G,B){return zBQ(G,B[0],B[1])};
_.J2=function(G,B,F){return zBQ(G,B,F,2048)};
zBQ=function(G,B,F,D){D=D===void 0?0:D;if(G==null){var u=32;F?(G=[F],u|=128):G=[];B&&(u=u&-16760833|(B&1023)<<14)}else{if(!Array.isArray(G))throw Error("P");u=G[_.Rq]|0;if(bN8&&1&u)throw Error("Q");2048&u&&!(2&u)&&VQ6();if(u&256)throw Error("R");if(u&64)return(u|D)!==u&&ly(G,u|D),G;if(F&&(u|=128,F!==G[0]))throw Error("S");a:{F=G;u|=64;var R=F.length;if(R){var N=R-1,y=F[N];if(y!=null&&typeof y==="object"&&y.constructor===Object){B=u&128?0:-1;N-=B;if(N>=1024)throw Error("U");for(var U in y)R=+U,R<N&&
(F[R+B]=y[U],delete y[U]);u=u&-16760833|(N&1023)<<14;break a}}if(B){U=Math.max(B,R-(u&128?0:-1));if(U>1024)throw Error("V");u=u&-16760833|(U&1023)<<14}}}ly(G,u|64|D);return G};
VQ6=function(){if(bN8)throw Error("T");xLQ(vDc,5)};
pSg=function(G,B){if(typeof G!=="object")return G;if(Array.isArray(G)){var F=G[_.Rq]|0;return G.length===0&&F&1?void 0:oDs(G,F,B)}if(G!=null&&G[$D]===bG)return MQS(G);if(G instanceof V$){B=G.arrayState;if(B&2)return G;if(!G.size)return;F=UG(WU6(G));if(G.valueCtor)for(G=0;G<F.length;G++){var D=F[G],u=D[1];u==null||typeof u!=="object"?u=void 0:u!=null&&u[$D]===bG?u=MQS(u):Array.isArray(u)?u=oDs(u,u[_.Rq]|0,!!(B&32)):u=void 0;D[1]=u}return F}if(G instanceof $v)return G};
oDs=function(G,B,F){if(B&2)return G;!F||4096&B||16&B?G=cS(G,B,!1,F&&!(B&16)):(ww(G,34),B&4&&Object.freeze(G));return G};
YAc=function(G,B,F){G=new G.constructor(B);F&&(G.copyOnWrite=kv);G.noLegacyNull=kv;return G};
MQS=function(G){var B=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=B[_.Rq]|0;return OG(G,F)?G:A2U(G,B,F)?YAc(G,B):cS(B,F)};
cS=function(G,B,F,D){D!=null||(D=!!(34&B));G=Qzc(G,B,pSg,D);D=32;F&&(D|=2);B=B&16769217|D;ly(G,B);return G};
FUo=function(G){var B=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=B[_.Rq]|0;return OG(G,F)?A2U(G,B,F)?YAc(G,B,!0):new G.constructor(cS(B,F,!1)):G};
T$=function(G){if(G.copyOnWrite!==kv)return!1;var B=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=cS(B,B[_.Rq]|0);ww(B,2048);G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=B;G.copyOnWrite=void 0;G.noLegacyNull=void 0;return!0};
fN=function(G){if(!T$(G)&&OG(G,G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Rq]|0))throw Error();};
t2=function(G,B){B===void 0&&(B=G[_.Rq]|0);B&32&&!(B&4096)&&ly(G,B|4096)};
A2U=function(G,B,F){return F&2?!0:F&32&&!(F&4096)?(ly(B,F|2),G.copyOnWrite=kv,!0):!1};
g$=function(G,B,F,D,u){var R=F+(u?0:-1),N=G.length-1;if(N>=1+(u?0:-1)&&R>=N){var y=G[N];if(y!=null&&typeof y==="object"&&y.constructor===Object)return y[F]=D,B}if(R<=N)return G[R]=D,B;if(D!==void 0){var U;N=((U=B)!=null?U:B=G[_.Rq]|0)>>14&1023||536870912;F>=N?D!=null&&(R={},G[N+(u?0:-1)]=(R[F]=D,R)):G[R]=D}return B};
_.GX=function(G,B,F,D,u){var R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=R[_.Rq]|0;D=OG(G,N)?1:D;u=!!u||D===3;D===2&&T$(G)&&(R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=R[_.Rq]|0);G=dHo(R,B);var y=G===SQ?7:G[_.Rq]|0,U=J2S(y,N);var q=4&U?!1:!0;if(q){4&U&&(G=G$(G),y=0,U=sA(U,N),N=g$(R,N,B,G));for(var h=0,K=0;h<G.length;h++){var a=F(G[h]);a!=null&&(G[K++]=a)}K<h&&(G.length=K);F=(U|4)&-513;U=F&=-1025;U&=-4097}U!==y&&(ly(G,U),2&U&&Object.freeze(G));return G=c28(G,U,R,
N,B,D,q,u)};
c28=function(G,B,F,D,u,R,N,y){var U=B;R===1||(R!==4?0:2&B||!(16&B)&&32&D)?BX(B)||(B|=!G.length||N&&!(4096&B)||32&D&&!(4096&B||16&B)?2:256,B!==U&&ly(G,B),Object.freeze(G)):(R===2&&BX(B)&&(G=G$(G),U=0,B=sA(B,D),D=g$(F,D,u,G)),BX(B)||(y||(B|=16),B!==U&&ly(G,B)));2&B||!(4096&B||16&B)||t2(F,D);return G};
dHo=function(G,B,F){G=FA(G,B,F);return Array.isArray(G)?G:SQ};
J2S=function(G,B){2&B&&(G|=2);return G|1};
BX=function(G){return!!(2&G)&&!!(4&G)||!!(256&G)};
T$s=function(G){return _.VP(G,!0)};
IZs=function(G){G=G$(G);for(var B=0;B<G.length;B++){var F=G[B]=G$(G[B]);Array.isArray(F[1])&&(F[1]=UG(F[1]))}return QP(G)};
_.fZs=function(G,B,F,D,u){var R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=R[_.Rq]|0;var y=OG(G,N);a:{!y&&T$(G)&&(R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=R[_.Rq]|0);var U=FA(R,B);G=!1;if(U==null){if(y){B=CGs();break a}U=[]}else if(U.constructor===V$)if(U.arrayState&2&&!y)U=WU6(U);else{B=U;break a}else Array.isArray(U)?G=!!((U[_.Rq]|0)&2):U=[];if(y){if(!U.length){B=CGs();break a}G||(G=!0,UG(U))}else G&&(G=!1,QP(U),U=IZs(U));!G&&N&32&&i7I(U);D=new V$(U,F,D,u);N=
g$(R,N,B,D);G||t2(R,N);B=D}!y&&F&&(B.callToMutableOnAccess=!0);return B};
_.D6=function(G,B,F,D){fN(G);var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=u[_.Rq]|0;if(F==null)return g$(u,R,B),G;var N=F===SQ?7:F[_.Rq]|0,y=N,U=BX(N),q=U||Object.isFrozen(F);U||(N=0);q||(F=G$(F),y=0,N=sA(N,R),q=!1);N|=5;var h;U=(h=BwI(N))!=null?h:0;for(h=0;h<F.length;h++){var K=F[h],a=D(K,U);Object.is(K,a)||(q&&(F=G$(F),y=0,N=sA(N,R),q=!1),F[h]=a)}N!==y&&(q&&(F=G$(F),N=sA(N,R)),ly(F,N));g$(u,R,B,F);return G};
_.ua=function(G,B,F,D,u){fN(G);var R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g$(R,R[_.Rq]|0,B,(D==="0"?Number(F)===0:F===D)?void 0:F,u);return G};
_.wm=function(G,B,F){if(B&2)throw Error();var D=oq(B),u=dHo(G,F,D),R=u===SQ?7:u[_.Rq]|0,N=J2S(R,B);if(2&N||BX(N)||16&N)N===R||BX(N)||ly(u,N),u=G$(u),R=0,N=sA(N,B),g$(G,B,F,u,D);N&=-13;N!==R&&ly(u,N);return u};
tQg=function(G){if(uy){var B;return(B=G[Ce])!=null?B:G[Ce]=new Map}if(Ce in G)return G[Ce];B=new Map;Object.defineProperty(G,Ce,{value:B});return B};
gDl=function(G,B,F,D,u){var R=tQg(G),N=ZN8(R,G,B,F,u);N!==D&&(N&&(B=g$(G,B,N,void 0,u)),R.set(F,D));return B};
ZN8=function(G,B,F,D,u){var R=G.get(D);if(R!=null)return R;for(var N=R=0;N<D.length;N++){var y=D[N];FA(B,y,u)!=null&&(R!==0&&(F=g$(B,F,R,void 0,u)),R=y)}G.set(D,R);return R};
SAc=function(G,B,F,D,u){var R=!1;D=FA(G,D,u,function(N){var y=PyI(N,F,!1,B);R=y!==N&&y!=null;return y});
if(D!=null)return R&&!OG(D)&&t2(G,B),D};
szg=function(G,B,F,D,u,R,N,y){var U=OG(G,F);R=U?1:R;N=!!N||R===3;U=y&&!U;(R===2||U)&&T$(G)&&(B=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=B[_.Rq]|0);G=dHo(B,u);var q=G===SQ?7:G[_.Rq]|0,h=J2S(q,F);if(y=!(4&h)){var K=G,a=F,m=!!(2&h);m&&(a|=2);for(var L=!m,W=!0,e=0,b=0;e<K.length;e++){var M=PyI(K[e],D,!1,a);if(M instanceof D){if(!m){var t=OG(M);L&&(L=!t);W&&(W=t)}K[b++]=M}}b<e&&(K.length=b);h|=4;h=W?h&-4097:h|4096;h=L?h|8:h&-9}h!==q&&(ly(G,h),2&h&&Object.freeze(G));if(U&&!(8&h||!G.length&&
(R===1||(R!==4?0:2&h||!(16&h)&&32&F)))){BX(h)&&(G=G$(G),h=sA(h,F),F=g$(B,F,u,G));D=G;U=h;for(q=0;q<D.length;q++)K=D[q],h=FUo(K),K!==h&&(D[q]=h);U|=8;h=U=D.length?U|4096:U&-4097;ly(G,h)}return G=c28(G,h,B,F,u,R,y,N)};
xHJ=function(G){G==null&&(G=void 0);return G};
sA=function(G,B){return G=(2&B?G|2:G&-3)&-273};
_.PGl=function(G,B,F,D,u){fN(G);B=_.GX(G,B,u,2,!0);var R;u=(R=BwI(B===SQ?7:B[_.Rq]|0))!=null?R:0;B.push(F(D,u));return G};
GX8=function(G,B,F,D,u,R,N){fN(G);var y=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=szg(G,y,y[_.Rq]|0,F,B,2,!0);if(R&&N)u!=null||(u=G.length-1),D8M(G,u),G.splice(u,R),G.length||(G[_.Rq]&=-4097);else{if(R){if(typeof u!=="number"||u<0||u>G.length)throw Error();}else D=D!=null?D:new F;u!=void 0?G.splice(u,R,D):G.push(D);u=F=G===SQ?7:G[_.Rq]|0;(D=OG(D))?(F&=-9,G.length===1&&(F&=-4097)):F|=4096;F!==u&&ly(G,F);D||t2(y)}};
ieL=function(G,B){if(typeof G==="string")return new N3(gMl(G),B);if(Array.isArray(G))return new N3(new Uint8Array(G),B);if(G.constructor===Uint8Array)return new N3(G,!1);if(G.constructor===ArrayBuffer)return G=new Uint8Array(G),new N3(G,!1);if(G.constructor===$v)return B=Bmo(G)||new Uint8Array(0),new N3(B,!0,G);if(G instanceof Uint8Array)return G=G.constructor===Uint8Array?G:new Uint8Array(G.buffer,G.byteOffset,G.byteLength),new N3(G,!1);throw Error();};
D3c=function(G){switch(typeof G){case "string":FL8(G)}};
RwL=function(G){switch(typeof G){case "string":uAQ(G)}};
yC=function(){var G=function(){throw Error();};
Object.setPrototypeOf(G,G.prototype);return G};
Ca8=function(G,B){var F=F===void 0?wXJ:F;return new ne(G,B,F)};
nSU=function(G,B,F,D,u){NmQ(G,F,yjo(B,D),u)};
la=function(G,B,F,D){var u=D[G];if(u)return u;u={};u.binaryFields=D;u.messageMetadata=$HQ(D[0]);var R=D[1],N=1;R&&R.constructor===Object&&(u.extensions=R,R=D[++N],typeof R==="function"&&(u.isMessageSet=!0,l6I!=null||(l6I=R),U3Q!=null||(U3Q=D[N+1]),R=D[N+=2]));for(var y={};R&&qyo(R);){for(var U=0;U<R.length;U++)y[R[U]]=R;R=D[++N]}for(U=1;R!==void 0;){typeof R==="number"&&(U+=R,R=D[++N]);var q=void 0;if(R instanceof ne)var h=R;else h=ESo,N--;R=void 0;if((R=h)==null?0:R.$$isMsg){R=D[++N];q=D;var K=N;
typeof R==="function"&&(R=R(),q[K]=R);q=R}R=D[++N];K=U+1;typeof R==="number"&&R<0&&(K-=R,R=D[++N]);for(;U<K;U++){var a=y[U];q?F(u,U,h,q,a):B(u,U,h,a)}}return D[G]=u};
qyo=function(G){return Array.isArray(G)&&!!G.length&&typeof G[0]==="number"&&G[0]>0};
KL6=function(G){return Array.isArray(G)?G[0]instanceof ne?G:[hwS,G]:[G,void 0]};
yjo=function(G,B){if(G instanceof _.q3)return G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(G))return A2(G,B)};
a6S=function(G,B,F,D){var u=F.$$binaryReaderFn;G[B]=D?function(R,N,y){return u(R,N,y,D)}:u};
XXz=function(G,B,F,D,u){var R=F.$$binaryReaderFn,N,y;G[B]=function(U,q,h){return R(U,q,h,y||(y=la(m3S,a6S,XXz,D).messageMetadata),N||(N=QM8(D)),u)}};
QM8=function(G){var B=G[jMz];if(B!=null)return B;var F=la(m3S,a6S,XXz,G);B=F.isMessageSet?function(D,u){return l6I(D,u,F)}:function(D,u){for(;LLM(u)&&u.nextWireType_!=4;){var R=u.nextField_,N=F[R];
if(N==null){var y=F.extensions;y&&(y=y[R])&&(y=rjo(y),y!=null&&(N=F[R]=y))}if(N==null||!N(u,D,R)){y=u;N=y.fieldCursor_;WLU(y);if(y.discardUnknownFields)var U=void 0;else{var q=y.decoder_.cursor_-N;y.decoder_.cursor_=N;U=He8(y.decoder_,q)}q=y=N=void 0;var h=D;U&&((N=(y=(q=h[pN])!=null?q:h[pN]=new mHc)[R])!=null?N:y[R]=[]).push(U)}}if(D=N$S(D))D.reviveUnknownFields=F.binaryFields[kX6];return!0};
G[jMz]=B;G[kX6]=OeL.bind(G);return B};
OeL=function(G,B,F,D){var u=this[m3S],R=this[jMz],N=A2(void 0,u.messageMetadata),y=N$S(G);if(y){var U=!1,q=u.extensions;if(q){u=function(L,W,e){if(e.length!==0)if(q[W])for(L=_.C(e),W=L.next();!W.done;W=L.next()){W=ewQ(W.value);try{U=!0,R(N,W)}finally{W.free()}}else D==null||D(G,W,e)};
if(B==null)KUI(y,u);else if(y!=null){var h=y[B];h&&u(y,B,h)}if(U){var K=G[_.Rq]|0;if(K&2&&K&2048&&(F==null||!F.reviveIntoImmutable))throw Error();var a=oq(K),m=function(L,W){if(FA(G,L,a)!=null)switch(F==null?void 0:F.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(K=g$(G,K,L,W,a));delete y[L]};
B==null?ua8(N,N[_.Rq]|0,function(L,W){m(L,W)}):m(B,FA(N,B,a))}}}};
rjo=function(G){G=KL6(G);var B=G[0].$$binaryReaderFn;if(G=G[1]){var F=QM8(G),D=la(m3S,a6S,XXz,G).messageMetadata;return function(u,R,N){return B(u,R,N,D,F)}}return B};
$3l=function(G,B,F){G[B]=F.$$binaryWriterFn};
beU=function(G,B,F,D){var u,R,N=F.$$binaryWriterFn;G[B]=function(y,U,q){return N(y,U,q,R||(R=la(zwJ,$3l,beU,D).messageMetadata),u||(u=Vzg(D)))}};
Vzg=function(G){var B=G[vSQ];if(!B){var F=la(zwJ,$3l,beU,G);B=function(D,u){return oSz(D,u,F)};
G[vSQ]=B}return B};
oSz=function(G,B,F){ua8(G,G[_.Rq]|0,function(D,u){if(u!=null){var R=Mzg(F,D);R?R(B,u,D):D<500||xLQ(pXU,3)}});
(G=N$S(G))&&KUI(G,function(D,u,R){Ey(B,B.encoder_.end());for(D=0;D<R.length;D++)Ey(B,Bmo(R[D])||new Uint8Array(0))})};
Mzg=function(G,B){var F=G[B];if(F)return F;if(F=G.extensions)if(F=F[B]){F=KL6(F);var D=F[0].$$binaryWriterFn;if(F=F[1]){var u=Vzg(F),R=la(zwJ,$3l,beU,F).messageMetadata;F=G.isMessageSet?U3Q(R,u):function(N,y,U){return D(N,y,U,R,u)}}else F=D;
return G[B]=F}};
_.YyL=function(G,B,F){if(Array.isArray(B)){var D=B[_.Rq]|0;if(D&4)return B;for(var u=0,R=0;u<B.length;u++){var N=G(B[u]);N!=null&&(B[R++]=N)}R<u&&(B.length=R);G=D|1;F&&(G=(G|4)&-1537);G!==D&&ly(B,G);F&&G&2&&Object.freeze(B);return B}};
_.hj=function(G,B,F){return new ne(G,B,F)};
_.AjJ=function(G,B,F){return new ne(G,B,F)};
_.Ke=function(G,B,F){g$(G,G[_.Rq]|0,B,F,oq(G[_.Rq]|0))};
d3o=function(G,B,F){B=_.FD(B);B!=null&&(_.aM(G,F,1),G=G.encoder_,F=aqM||(aqM=new DataView(new ArrayBuffer(8))),F.setFloat64(0,+B,!0),AT=F.getUint32(0,!0),dw=F.getUint32(4,!0),_.mL(G,AT),_.mL(G,dw))};
JjM=function(G,B,F){B=_.FD(B);B!=null&&(_.aM(G,F,5),G=G.encoder_,m8Q(B),_.mL(G,AT))};
_.QC=function(G,B,F){B=gvS(B);if(B!=null&&(D3c(B),B!=null))switch(_.aM(G,F,0),typeof B){case "number":G=G.encoder_;cs(B);XA(G,AT,dw);break;case "bigint":F=BigInt.asUintN(64,B);F=new cjl(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));XA(G.encoder_,F.JSC$9173_lo,F.JSC$9173_hi);break;default:F=FL8(B),XA(G.encoder_,F.JSC$9173_lo,F.JSC$9173_hi)}};
I66=function(G,B,F){B=SGc(B);if(B!=null&&(RwL(B),B!=null))switch(_.aM(G,F,0),typeof B){case "number":G=G.encoder_;cs(B);XA(G,AT,dw);break;case "bigint":F=TmU(B);XA(G.encoder_,F.JSC$9171_lo,F.JSC$9171_hi);break;default:F=uAQ(B),XA(G.encoder_,F.JSC$9171_lo,F.JSC$9171_hi)}};
tzQ=function(G,B,F){B=_.UA(B);B!=null&&B!=null&&(_.aM(G,F,0),_.f6z(G.encoder_,B))};
_.gSS=function(G,B,F){ZeS(G,F,SGc(B))};
SyU=function(G,B,F){B=_.O7c(B);B!=null&&(_.aM(G,F,0),G.encoder_.JSC$9175_buffer_.push(B?1:0))};
x3s=function(G,B,F){B=_.eQ(B);B!=null&&sMM(G,F,lcU(B))};
Pal=function(G,B,F,D,u){NmQ(G,F,yjo(B,D),u)};
_.GoJ=function(G,B,F){B=B==null||typeof B=="string"||B instanceof $v?B:void 0;B!=null&&sMM(G,F,ieL(B,!0).buffer)};
BiU=function(G,B,F){B=_.zUz(B);B!=null&&B!=null&&(_.aM(G,F,0),jz(G.encoder_,B))};
_.iIQ=function(G,B,F){B=_.UA(B);B!=null&&(B=parseInt(B,10),_.aM(G,F,0),_.f6z(G.encoder_,B))};
Fn6=function(G,B,F){if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,jq6));return!0};
_.DmI=function(G,B,F,D){if(G.nextWireType_!==0)return!1;_.WX(B,F,D,_.rm(G.decoder_,jq6));return!0};
uJU=function(G,B,F){if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,QqJ));return!0};
_.wY6=function(G,B,F){if(G.nextWireType_!==1)return!1;_.Ke(B,F,Rsl(G.decoder_));return!0};
_.HX=function(G,B){return function(F,D){var u={treatNewDataAsImmutable:!0};D&&Object.assign(u,D);F=ewQ(F,void 0,void 0,u);try{var R=new G,N=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;QM8(B)(N,F);var y=R}finally{F.free()}return y}};
_.Oy=function(G){return function(B){return C5U(B,G)}};
Nig=function(G){return function(){return C5U(this,G)}};
_.ylg=function(G){return p7(function(B){return B instanceof G&&!OG(B)})};
_.$S=function(G){return function(B){return ndJ(G,B)}};
Edg=function(G,B){return lKU({child:G,origin:B||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Uml,getPayloadCase:function(F){return F.getPayloadCase()},
createInitMessage:function(F){var D=new zX,u=new qxz;F=_.ba(u,1,F);return _.VC(D,5,vX,F)}})};
oM=function(G){return{valueOf:G}.valueOf()};
KnQ=function(){var G=null;if(!hsS)return G;try{var B=function(F){return F};
G=hsS.createPolicy("goog#html",{createHTML:B,createScript:B,createScriptURL:B})}catch(F){}return G};
mm8=function(){aK8===void 0&&(aK8=KnQ());return aK8};
_.pe=function(G){var B=mm8();G=B?B.createScriptURL(G):G;return new M3(G)};
_.YS=function(G){if(G instanceof M3)return G.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.Aj=function(G){return Object.isFrozen(G)&&Object.isFrozen(G.raw)};
XYz=function(G){return G.toString().indexOf("`")===-1};
TX=function(G){return new _.dm(QoJ,G)};
IM=function(G){return G instanceof _.dm};
_.fe=function(G){if(IM(G))return G.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
tj=function(G){return new jog(function(B){return B.substr(0,G.length+1).toLowerCase()===G+":"})};
_.Z6=function(G,B){B=B===void 0?LnL:B;if(IM(G))return G;for(var F=0;F<B.length;++F){var D=B[F];if(D instanceof jog&&D.isValid(G))return TX(G)}};
_.Sz=function(G,B){B=B===void 0?LnL:B;return _.Z6(G,B)||gm};
_.sy=function(G){var B=window;if(typeof MediaSource!=="undefined"&&G instanceof MediaSource||typeof B.ManagedMediaSource!=="undefined"&&G instanceof B.ManagedMediaSource)return TX(URL.createObjectURL(G));B=G.type;B.toLowerCase()==="application/octet-stream"?B=!0:(B=B.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),B=(B==null?void 0:B.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(B[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(B[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(B[1])||/^font\/[\w-]+$/i.test(B[1])));if(!B)throw Error("$");return TX(URL.createObjectURL(G))};
_.rlM=function(G){for(var B=_.xS.apply(1,arguments),F=[G[0]],D=0;D<B.length;D++)F.push(String(B[D])),F.push(G[D+1]);return TX(F.join(""))};
_.HIg=function(G){if(!WnS){a:{var B=document.createElement("a");try{B.href=G}catch(F){G=void 0;break a}G=B.protocol;G=G===":"||G===""?"https:":G}return G}try{B=new URL(G)}catch(F){return"https:"}return B.protocol};
_.PX=function(G){G instanceof _.dm?G=_.fe(G):G=koU.test(G)?G:void 0;return G};
Go=function(G,B){B=_.PX(B);B!==void 0&&(G.href=B)};
i5=function(G){var B=mm8();G=B?B.createHTML(G):G;return new BY(G)};
DK=function(G){if(G instanceof BY)return G.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.u5=function(G,B){G.src=_.YS(B).toString()};
OIo=function(G,B){G.setAttribute("sandbox","");for(var F=0;F<B.length;F++)G.sandbox.supports&&!G.sandbox.supports(B[F])||G.sandbox.add(B[F])};
_.Ro=function(G,B,F){G.removeAttribute("srcdoc");switch(B){case 0:if(F instanceof M3)throw new eso("TrustedResourceUrl",0);OIo(G,[]);B=_.PX(F);B!==void 0&&(G.src=B);break;case 1:if(!(F instanceof M3))throw new eso(typeof F,1);OIo(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.u5(G,F);break;case 2:if(F instanceof M3)throw new eso("TrustedResourceUrl",2);OIo(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
B=_.PX(F);B!==void 0&&(G.src=B);break;default:_.BS(B)}};
_.wi=function(G,B,F,D){B=_.PX(B);return B!==void 0?G.open(B,F,D):null};
_.CI=function(G){G=G===void 0?document:G;var B,F;G=(F=(B=G).querySelector)==null?void 0:F.call(B,"script[nonce]");return G==null?"":G.nonce||G.getAttribute("nonce")||""};
_.yD=function(G){var B=mm8();G=B?B.createScript(G):G;return new _.Nm(G)};
nI=function(G){if(G instanceof _.Nm)return G.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
$mc=function(G){var B=_.CI(G.ownerDocument);B&&G.setAttribute("nonce",B)};
_.l5=function(G,B){G.textContent=nI(B);$mc(G)};
_.Ux=function(G,B){G.src=_.YS(B);$mc(G)};
_.qm=function(G,B){if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("$");G.innerHTML=DK(B)};
_.Ex=function(G,B,F,D){if(G.length===0)throw Error("$");G=G.map(function(R){if(R instanceof zsc)R=R.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return R});
var u=F.toLowerCase();if(G.every(function(R){return u.indexOf(R)!==0}))throw Error("ba`"+F);
B.setAttribute(F,D)};
_.hl=function(G,B,F){if(B instanceof M3)G.href=_.YS(B).toString(),G.rel=F;else{if(bI8.indexOf(F)===-1)throw Error("ca`"+F);B=_.PX(B);B!==void 0&&(G.href=B,G.rel=F)}};
Vl8=function(G){if(G instanceof KI)return G.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.vds=function(G,B){B=_.PX(B);B!==void 0&&(G.href=B)};
od6=function(G){return new Worker(_.YS(G),void 0)};
Mlz=function(G){return _.pe(G)};
pY6=function(G,B){G&&(B=G.indexOf(B),0<=B&&G.splice(B,1))};
ao=function(G){return typeof G==="function"};
YxU=function(G){return G instanceof mn||G&&"closed"in G&&ao(G.remove)&&ao(G.add)&&ao(G.unsubscribe)};
QD=function(){};
jl=function(G){Al6(function(){throw G;})};
LI=function(G){return G};
ri=function(){return dmz(_.xS.apply(0,arguments))};
dmz=function(G){return G.length===0?LI:G.length===1?G[0]:function(B){return G.reduce(function(F,D){return D(F)},B)}};
JlI=function(G){var B;return(B=G!=null?G:void 0)!=null?B:Promise};
clo=function(G,B){return new WY(function(F){var D=0;return B.schedule(function(){D===G.length?F.complete():(F.next(G[D++]),F.closed||this.schedule())})})};
TiM=function(G,B){if(!G)throw Error("da");return new WY(function(F){var D=new mn;D.add(B.schedule(function(){var u=G[Symbol.asyncIterator]();D.add(B.schedule(function(){var R=this;u.next().then(function(N){N.done?F.complete():(F.next(N.value),R.schedule())})}))}));
return D})};
IKM=function(G,B,F){B=B.schedule(function(){try{F.call(this)}catch(D){G.error(D)}},0);
G.add(B)};
tlc=function(G,B){return new WY(function(F){var D;F.add(B.schedule(function(){D=G[fKL]();IKM(F,B,function(){var u=D.next(),R=u.value;u.done?F.complete():(F.next(R),this.schedule())})}));
return function(){var u;return ao((u=D)==null?void 0:u.return)&&D.return()}})};
ZI6=function(G,B){return new WY(function(F){var D=new mn;D.add(B.schedule(function(){var u=G[kd]();D.add(u.subscribe({next:function(R){D.add(B.schedule(function(){return F.next(R)}))},
error:function(R){D.add(B.schedule(function(){return F.error(R)}))},
complete:function(){D.add(B.schedule(function(){return F.complete()}))}}))}));
return D})};
gdQ=function(G,B){return new WY(function(F){return B.schedule(function(){return G.then(function(D){F.add(B.schedule(function(){F.next(D);F.add(B.schedule(function(){return F.complete()}))}))},function(D){F.add(B.schedule(function(){return F.error(D)}))})})})};
SxL=function(G){return new TypeError("ea`"+(G!==null&&typeof G==="object"?"an invalid object":"'"+G+"'"))};
xmM=function(G,B){if(G!=null){if(ao(G[kd]))return ZI6(G,B);if(sos(G))return clo(G,B);if(ao(G==null?void 0:G.then))return gdQ(G,B);if(Symbol.asyncIterator&&ao(G==null?void 0:G[Symbol.asyncIterator]))return TiM(G,B);if(ao(G==null?void 0:G[fKL]))return tlc(G,B)}throw SxL(G);};
zo=function(G,B){return B?xmM(G,B):Ox(G)};
Ox=function(G){if(G instanceof WY)return G;if(G!=null){if(ao(G[kd]))return P5l(G);if(sos(G))return GtL(G);if(ao(G==null?void 0:G.then))return BOU(G);if(Symbol.asyncIterator&&ao(G==null?void 0:G[Symbol.asyncIterator]))return iSg(G);if(ao(G==null?void 0:G[fKL]))return F_8(G)}throw SxL(G);};
P5l=function(G){return new WY(function(B){var F=G[kd]();if(ao(F.subscribe))return F.subscribe(B);throw new TypeError("fa");})};
GtL=function(G){return new WY(function(B){for(var F=0;F<G.length&&!B.closed;F++)B.next(G[F]);B.complete()})};
BOU=function(G){return new WY(function(B){G.then(function(F){B.closed||(B.next(F),B.complete())},function(F){return B.error(F)}).then(null,jl)})};
F_8=function(G){return new WY(function(B){for(var F=G[fKL]();!B.closed;){var D=F.next(),u=D.value;D.done?B.complete():B.next(u)}return function(){return ao(F==null?void 0:F.return)&&F.return()}})};
iSg=function(G){return new WY(function(B){DPc(G,B).catch(function(F){return B.error(F)})})};
DPc=function(G,B){var F,D,u,R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:_.b5(U,2,3),R=_.VD(G);case 5:return U.yield(R.next(),8);case 8:D=U.yieldResult;if(D.done){U.jumpTo(3);break}N=D.value;B.next(N);U.jumpTo(5);break;case 3:_.vY(U);_.oo(U,9);if(!D||D.done||!(u=R.return)){U.jumpTo(9);break}return U.yield(u.call(R),9);case 9:_.vY(U,0,0,1);if(F)throw F.error;_.Yd(U,10,1);break;case 10:_.Yd(U,4);break;case 2:y=_.Al(U);F={error:y};U.jumpTo(3);break;case 4:B.complete(),_.di(U)}})};
uRU=function(G,B){return B?clo(G,B):GtL(G)};
RDo=function(G){return ao(G[G.length-1])?G.pop():void 0};
Jl=function(G){var B=G[G.length-1];return B&&ao(B.schedule)?G.pop():void 0};
cY=function(){var G=_.xS.apply(0,arguments),B=Jl(G);return B?clo(G,B):uRU(G)};
To=function(G){var B=ao(G)?G:function(){return G};
return new WY(function(F){return F.error(B())})};
Io=function(G){return function(B){if(ao(B==null?void 0:B.lift))return B.lift(function(F){try{return G(F,this)}catch(D){this.error(D)}});
throw new TypeError("ga");}};
tl=function(){return Io(function(G,B){var F=null;G._refCount++;var D=new fI(B,void 0,void 0,void 0,function(){if(!G||G._refCount<=0||0<--G._refCount)F=null;else{var u=G._connection,R=F;F=null;!u||R&&u!==R||u.unsubscribe();B.unsubscribe()}});
G.subscribe(D);D.closed||(F=G.connect())})};
CMl=function(){var G=w7U;var B=B===void 0?0:B;return Io(function(F,D){D.add(G.schedule(function(){return F.subscribe(D)},B))})};
ZK=function(G){return Io(function(B,F){var D=0;B.subscribe(new fI(F,function(u){F.next(G.call(void 0,u,D++))}))})};
yCz=function(G){return ZK(function(B){return NOM(B)?G.apply(null,_.gi(B)):G(B)})};
Ei6=function(G){if(G.length===1){var B=G[0];if(niQ(B))return{args:B,keys:null};if(B&&typeof B==="object"&&lJM(B)===UP6)return G=qhg(B),{args:G.map(function(F){return B[F]}),
keys:G}}return{args:G,keys:null}};
Sl=function(){var G=_.xS.apply(0,arguments),B=Jl(G),F=RDo(G);G=Ei6(G);var D=G.args,u=G.keys;if(D.length===0)return zo([],B);B=new WY(hDc(D,B,u?function(R){for(var N={},y=0;y<R.length;y++)N[u[y]]=R[y];return N}:LI));
return F?B.pipe(yCz(F)):B};
hDc=function(G,B,F){F=F===void 0?LI:F;return function(D){K_M(B,function(){for(var u=G.length,R=Array(u),N=u,y=G.map(function(){return!1}),U=!0,q={i$jscomp$220:0};q.i$jscomp$220<u;q={i$jscomp$220:q.i$jscomp$220},q.i$jscomp$220++)K_M(B,function(h){return function(){zo(G[h.i$jscomp$220],B).subscribe(new xd(D,function(K){R[h.i$jscomp$220]=K;
U&&(y[h.i$jscomp$220]=!0,U=!y.every(LI));U||D.next(F(R.slice()))},function(){return--N===0}))}}(q),D)},D)}};
K_M=function(G,B,F){G?F.add(G.schedule(B)):B()};
aJS=function(G,B,F,D){var u=[],R=0,N=0,y=!1,U=function(q){R++;Ox(F(q,N++)).subscribe(new fI(B,function(h){B.next(h)},void 0,function(){R--;
for(var h={};u.length&&R<D;h={bufferedValue:void 0})h.bufferedValue=u.shift(),U(h.bufferedValue);!y||u.length||R||B.complete()}))};
G.subscribe(new fI(B,function(q){return R<D?U(q):u.push(q)},void 0,function(){y=!0;
!y||u.length||R||B.complete()}));
return function(){u=null}};
PY=function(G,B){var F=F===void 0?Infinity:F;if(ao(B))return PY(function(D,u){return ZK(function(R,N){return B(D,R,u,N)})(Ox(G(D,u)))},F);
typeof B==="number"&&(F=B);return Io(function(D,u){return aJS(D,u,G,F)})};
mPM=function(G){G=G===void 0?Infinity:G;return PY(LI,G)};
X7g=function(){var G=_.xS.apply(0,arguments);return mPM(1)(uRU(G,Jl(G)))};
Qks=function(G){return new WY(function(B){Ox(G()).subscribe(B)})};
Gt=function(G,B,F){if(ao(F)){var D=F;F=void 0}if(D)return Gt(G,B,F).pipe(yCz(D));D=_.C(ao(G.addEventListener)&&ao(G.removeEventListener)?jkz.map(function(N){return function(y){return G[N](B,y,F)}}):ao(G.addListener)&&ao(G.removeListener)?L_L.map(rCg(G,B)):ao(G.on)&&ao(G.off)?W_I.map(rCg(G,B)):[]);
var u=D.next().value,R=D.next().value;return!u&&sos(G)?PY(function(N){return Gt(N,B,F)})(uRU(G)):new WY(function(N){if(!u)throw new TypeError("ha");
var y=function(){var U=_.xS.apply(0,arguments);return N.next(1<U.length?U:U[0])};
u(y);return function(){return R(y)}})};
rCg=function(G,B){return function(F){return function(D){return G[F](B,D)}}};
iM=function(){var G=_.xS.apply(0,arguments),B=Jl(G);var F=typeof G[G.length-1]==="number"?G.pop():Infinity;return G.length?G.length===1?Ox(G[0]):mPM(F)(uRU(G,B)):B7};
kt8=function(G){return G.length===1&&HSI(G[0])?G[0]:G};
OSS=function(){var G=kt8(_.xS.apply(0,arguments));return Io(function(B,F){var D=[B].concat(_.gi(G)),u=function(){if(!F.closed)if(D.length>0){try{var R=Ox(D.shift())}catch(y){u();return}var N=new fI(F,void 0,QD,QD);F.add(R.subscribe(N));N.add(u)}else F.complete()};
u()})};
FR=function(G){return Io(function(B,F){var D=0;B.subscribe(new fI(F,function(u){return G.call(void 0,u,D++)&&F.next(u)}))})};
$PU=function(){var G=_.xS.apply(0,arguments);G=kt8(G);return G.length===1?Ox(G[0]):new WY(eDs(G))};
eDs=function(G){return function(B){for(var F=[],D={i$jscomp$223:0};F&&!B.closed&&D.i$jscomp$223<G.length;D={i$jscomp$223:D.i$jscomp$223},D.i$jscomp$223++)F.push(Ox(G[D.i$jscomp$223]).subscribe(new fI(B,function(u){return function(R){if(F){for(var N=0;N<F.length;N++)N!==u.i$jscomp$223&&F[N].unsubscribe();F=null}B.next(R)}}(D))))}};
zD6=function(){var G=_.xS.apply(0,arguments),B=RDo(G),F=kt8(G);return F.length?new WY(function(D){var u=F.map(function(){return[]}),R=F.map(function(){return!1});
D.add(function(){u=R=null});
for(var N={sourceIndex$jscomp$1:0};!D.closed&&N.sourceIndex$jscomp$1<F.length;N={sourceIndex$jscomp$1:N.sourceIndex$jscomp$1},N.sourceIndex$jscomp$1++)Ox(F[N.sourceIndex$jscomp$1]).subscribe(new fI(D,function(y){return function(U){u[y.sourceIndex$jscomp$1].push(U);u.every(function(q){return q.length})&&(U=u.map(function(q){return q.shift()}),D.next(B?B.apply(null,_.gi(U)):U),u.some(function(q,h){return!q.length&&R[h]})&&D.complete())}}(N),void 0,function(y){return function(){R[y.sourceIndex$jscomp$1]=
!0;
!u[y.sourceIndex$jscomp$1].length&&D.complete()}}(N)));
return function(){u=R=null}}):B7};
bSg=function(G){var B,F,D;return!!G&&typeof G.active==="boolean"&&typeof((B=G.clock)==null?void 0:B.now)==="function"&&((F=G.clock)==null?void 0:F.timeline)!==void 0&&!((D=G.lastMeasurement)==null||!D.timestamp)&&typeof G.equivalentTo==="function"&&typeof G.extrapolateToNow==="function"&&typeof G.extrapolateToTime==="function"&&typeof G.map==="function"&&typeof G.joinWith==="function"};
V5z=function(G){function B(F){return typeof F==="boolean"||typeof F==="string"||typeof F==="number"||F===void 0||F===null}
return B(G)?!0:Array.isArray(G)?G.every(B):typeof G==="object"?Object.keys(G).every(function(F){return typeof F==="string"})&&Object.values(G).every(function(F){return Array.isArray(F)?F.every(B):B(F)}):!1};
viU=function(G){if(V5z(G))return G;if(bSg(G))return{lastMeasurement:{value:viU(G.lastMeasurement.value),timestamp:DJ(G.lastMeasurement.timestamp,new uM(0,G.lastMeasurement.timestamp.timeline))},active:G.active};try{return JSON.parse(JSON.stringify(G))}catch(B){}return String(G)};
Rk=function(G,B){return function(F){return new WY(function(D){return F.subscribe(function(u){G.timeExecution(B,function(){D.next(u)})()},function(u){G.timeExecution(B,function(){D.error(u)})()},function(){G.timeExecution(B,function(){D.complete()})()})})}};
oil=function(G,B){var F=!1;return new WY(function(D){var u=G.setTimeout(function(){F=!0;D.next(!0);D.complete()},B);
return function(){F||G.clearTimeout(u)}})};
M5L=function(G){G=G.global;if(G.fetchLater)return G.fetchLater.bind(G)};
wO=function(G){return Io(function(B,F){var D=null,u=!1,R;D=B.subscribe(new fI(F,void 0,function(N){R=Ox(G(N,wO(G)(B)));D?(D.unsubscribe(),D=null,R.subscribe(F)):u=!0}));
u&&(D.unsubscribe(),D=null,R.subscribe(F))})};
p7M=function(G,B,F){return function(D,u){var R=F,N=B,y=0;D.subscribe(new fI(u,function(U){var q=y++;N=R?G(N,U,q):(R=!0,U);u.next(N)},void 0,void 0))}};
YhL=function(G){G=G===void 0?null:G;return Io(function(B,F){var D=!1;B.subscribe(new fI(F,function(u){D=!0;F.next(u)},void 0,function(){D||F.next(G);
F.complete()}))})};
CS=function(){return Io(function(G,B){G.subscribe(new fI(B,QD))})};
NP=function(G){return Io(function(B,F){B.subscribe(new fI(F,function(){return F.next(G)}))})};
yQ=function(G){return G<=0?function(){return B7}:Io(function(B,F){var D=0;
B.subscribe(new fI(F,function(u){++D<=G&&(F.next(u),G<=D&&F.complete())}))})};
nS=function(G){var B=B===void 0?LI:B;var F;G=(F=G)!=null?F:AC8;return Io(function(D,u){var R,N=!0;D.subscribe(new fI(u,function(y){var U=B(y);if(N||!G(R,U))N=!1,R=U,u.next(y)}))})};
AC8=function(G,B){return G===B};
JCz=function(G){G=G===void 0?dPl:G;return Io(function(B,F){var D=!1;B.subscribe(new fI(F,function(u){D=!0;F.next(u)},void 0,function(){return D?F.complete():F.error(G())}))})};
dPl=function(){return new cCg};
lM=function(){var G=_.xS.apply(0,arguments);return function(B){return X7g(B,cY.apply(null,_.gi(G)))}};
TOS=function(G){return Io(function(B,F){var D=0;B.subscribe(new fI(F,function(u){G.call(void 0,u,D++,B)||(F.next(!1),F.complete())},void 0,function(){F.next(!0);
F.complete()}))})};
IJ8=function(){return Io(function(G,B){var F=[];G.subscribe(new fI(B,function(D){F.push(D);1<F.length&&F.shift()},void 0,function(){for(var D=_.C(F),u=D.next();!u.done;u=D.next())B.next(u.value);
B.complete()},function(){F=null}))})};
fJ8=function(G,B){var F=arguments.length>=2;return function(D){return D.pipe(G?FR(function(u,R){return G(u,R,D)}):LI,IJ8(),F?YhL(B):JCz(function(){return new cCg}))}};
qP=function(G){var B=ao(G)?G:function(){return G};
return ao()?Io(function(F,D){var u=B();(void 0)(u).subscribe(D).add(F.subscribe(u))}):function(F){var D=new Uh(F,B);
ao(F==null?void 0:F.lift)&&(D.lift=F.lift);D.source=F;D.subjectFactory=B;return D}};
hC=function(G){var B=new Eh(G,void 0,void 0);return function(F){return qP(function(){return B})(F)}};
KS=function(G,B){return Io(p7M(G,B,arguments.length>=2))};
ak=function(){var G=_.xS.apply(0,arguments),B=Jl(G);return Io(function(F,D){(B?X7g(G,F,B):X7g(G,F)).subscribe(D)})};
m_=function(G){return Io(function(B,F){var D=null,u=0,R=!1;B.subscribe(new fI(F,function(N){var y;(y=D)==null||y.unsubscribe();y=u++;Ox(G(N,y)).subscribe(D=new fI(F,function(U){return F.next(U)},void 0,function(){D=null;
R&&!D&&F.complete()}))},void 0,function(){(R=!0,!D)&&F.complete()}))})};
QQ=function(G,B){B=B===void 0?!1:B;return Io(function(F,D){var u=0;F.subscribe(new fI(D,function(R){var N=G(R,u++);(N||B)&&D.next(R);!N&&D.complete()}))})};
t5L=function(G,B,F){var D=ao(G)||B||F?{next:G,error:B,complete:F}:G;return D?Io(function(u,R){u.subscribe(new fI(R,function(N){var y;(y=D.next)==null||y.call(D,N);R.next(N)},function(N){var y;
(y=D.error)==null||y.call(D,N);R.error(N)},function(){var N;
(N=D.complete)==null||N.call(D);R.complete()}))}):LI};
ZSs=function(){var G=_.xS.apply(0,arguments),B=RDo(G);return Io(function(F,D){for(var u=G.length,R=Array(u),N=G.map(function(){return!1}),y=!1,U={i$jscomp$233:0};U.i$jscomp$233<u;U={i$jscomp$233:U.i$jscomp$233},U.i$jscomp$233++)Ox(G[U.i$jscomp$233]).subscribe(new fI(D,function(q){return function(h){R[q.i$jscomp$233]=h;
y||N[q.i$jscomp$233]||(N[q.i$jscomp$233]=!0,(y=N.every(LI))&&(N=null))}}(U),void 0,QD));
F.subscribe(new fI(D,function(q){y&&(q=[q].concat(_.gi(R)),D.next(B?B.apply(null,_.gi(q)):q))}))})};
Sh8=function(G){var B=giQ;if(B)for(var F in B)Object.prototype.hasOwnProperty.call(B,F)&&G(B[F],F,B)};
skS=function(){var G=[];Sh8(function(B){G.push(B)});
return G};
PMo=function(G){try{return!!G&&G.location.href!=null&&xPM(G,"foo")}catch(B){return!1}};
BqU=function(){return j8&&LQ?LQ.mobile:!G2c()&&(rU("iPod")||rU("iPhone")||rU("Android")||rU("IEMobile"))};
G2c=function(){return j8&&LQ?!LQ.mobile&&(rU("iPad")||rU("Android")||rU("Silk")):rU("iPad")||rU("Android")&&!rU("Mobile")||rU("Silk")};
_.LS=function(G){return new zsc(G[0].toLowerCase())};
iTl=function(G){for(var B=_.xS.apply(1,arguments),F=G[0],D=0;D<G.length-1;D++)F+=String(B[D]),F+=G[D+1];B=document.implementation.createHTMLDocument("");D=B.createElement("style");B.head.appendChild(D);B=D.sheet;B.insertRule(F,0);if(B.cssRules.length===1&&(F=B.cssRules[0],F instanceof CSSStyleRule))return new KI(F.cssText.replace(/</g,"\\3C "))};
FGl=function(G){try{return new URL(G,window.document.baseURI)}catch(B){return new URL("about:invalid")}};
DKo=function(G,B){var F=B.createRange();F.selectNode(B.body);G=i5(G);return F.createContextualFragment(DK(G))};
u26=function(G){G=G.nodeName;return typeof G==="string"?G:"FORM"};
RFJ=function(G){G=G.nodeType;return G===1||typeof G!=="number"};
rO=function(G,B,F){G.setAttribute(B,F)};
we8=function(G){return G.parts.map(function(B){var F=B.descriptor;return""+B.url+(F?" "+F:"")}).join(" , ")};
_.W7=function(G){var B=_.xS.apply(1,arguments);if(B.length===0)return _.pe(G[0]);for(var F=G[0],D=0;D<B.length;D++)F+=encodeURIComponent(B[D])+G[D+1];return _.pe(F)};
_.H7=function(G,B){G=_.YS(G).toString();var F=G.split(/[?#]/),D=/[?]/.test(G)?"?"+F[1]:"";return CBg(F[0],D,/[#]/.test(G)?"#"+(D?F[2]:F[1]):"",B)};
CBg=function(G,B,F,D){function u(N,y){N!=null&&(Array.isArray(N)?N.forEach(function(U){return u(U,y)}):(B+=R+encodeURIComponent(y)+"="+encodeURIComponent(N),R="&"))}
var R=B.length?"&":"?";D.constructor===Object&&(D=Object.entries(D));Array.isArray(D)?D.forEach(function(N){return u(N[1],N[0])}):D.forEach(u);
return _.pe(G+B+F)};
yMg=function(){var G=nI(NqI).toString();return _.pe(URL.createObjectURL(new Blob([G],{type:"text/javascript"})))};
_.ki=function(G,B,F){return Math.min(Math.max(G,B),F)};
Oh=function(G,B,F){return G+F*(B-G)};
_.e5=function(G,B){this.x=G!==void 0?G:0;this.y=B!==void 0?B:0};
_.$i=function(G,B){this.width=G;this.height=B};
nkU=function(G){var B=[],F=0,D;for(D in G)B[F++]=D;return B};
lRI=function(G,B){for(var F in G)if(G[F]==B)return!0;return!1};
UKl=function(G,B,F){for(var D in G)if(B.call(F,G[D],D,G))return D};
qKS=function(G){if(!G||typeof G!=="object")return G;if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);if(G instanceof Date)return new Date(G.getTime());var B=Array.isArray(G)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(G)||G instanceof DataView?{}:new G.constructor(G.length),F;for(F in G)B[F]=qKS(G[F]);return B};
EkQ=function(G){var B=arguments.length;if(B==1&&Array.isArray(arguments[0]))return EkQ.apply(null,arguments[0]);if(B%2)throw Error("na");for(var F={},D=0;D<B;D+=2)F[arguments[D]]=arguments[D+1];return F};
hFo=function(G){var B=arguments.length;if(B==1&&Array.isArray(arguments[0]))return hFo.apply(null,arguments[0]);for(var F={},D=0;D<B;D++)F[arguments[D]]=!0;return F};
zt=function(G,B,F,D){this.top=G;this.right=B;this.bottom=F;this.left=D};
bM=function(G,B,F,D){this.left=G;this.top=B;this.width=F;this.height=D};
KGQ=function(G){G=G.global;if(G.PendingGetBeacon)return G.PendingGetBeacon};
ok=function(G){return function(B){return B.pipe(aRg(G,qP(new v7)))}};
MP=function(G){return function(B){return B.pipe(aRg(G,hC(1)))}};
aRg=function(G,B){function F(D){return new WY(function(u){return D.subscribe(function(R){pS(G,function(){return void u.next(R)},3)},function(R){pS(G,function(){return void u.error(R)},3)},function(){pS(G,function(){return void u.complete()},3)})})}
return ri(F,CMl(),B,tl(),F)};
QiM=function(G){var B=mKJ(G);return B===null?new Yi(null):B.pipe(ZK(function(F){F=F.serialize();if(Xeo)F=_.Fz.btoa(F);else{for(var D=[],u=0,R=0;R<F.length;R++){var N=F.charCodeAt(R);N>255&&(D[u++]=N&255,N>>=8);D[u++]=N}F=_.xM(D)}return F}),yQ(1),MP(G.queue))};
ji8=function(G){var B=B===void 0?{}:B;if(typeof Event==="function")return new Event(G,B);if(typeof document!=="undefined"){var F=document.createEvent("CustomEvent");F.initCustomEvent(G,B.bubbles||!1,B.cancelable||!1,B.detail);return F}throw Error();};
LGc=function(G){return typeof G==="string"?document.getElementById(G):G};
WGg=function(G){var B=!1;B=B===void 0?!1:B;if(G.tagName==="IMG"){if(G.complete&&(!G.naturalWidth||!G.naturalHeight))return!0;var F;if(B&&((F=G.style)==null?void 0:F.display)==="none")return!0}var D,u;return rMc.test((D=G.getAttribute("width"))!=null?D:"")&&rMc.test((u=G.getAttribute("height"))!=null?u:"")};
HT6=function(G,B){if(G.tagName==="IMG")return G.naturalWidth&&G.naturalHeight?!0:!1;try{if(G.readyState)var F=G.readyState;else{var D,u;F=(D=G.contentWindow)==null?void 0:(u=D.document)==null?void 0:u.readyState}return F==="complete"}catch(R){return B===void 0?!1:B}};
k2S=function(G){G||(G=function(B,F,D){B.addEventListener(F,D)});
return G};
zFg=function(G,B){var F=OTs();F=F===void 0?new eF8:F;if(G=LGc(G)){var D=k2S(D);for(var u=!1,R=function(e){u||(u=!0,B(e))},N,y=2,U=0;U<$KM.length;++U)if($KM[U]===G.tagName){y=3;
N=[G];break}N||(N=G.querySelectorAll($KM.join(",")));var q=0,h=0,K=!0,a=G=!1;U={};for(var m=0;m<N.length;U={isImg:void 0},m++){var L=N[m];if(!WGg(L))if(U.isImg=L.tagName==="IMG",HT6(L,F.crossDomainLoadedDefault))G=!0,U.isImg&&(K=!0);else{q++;var W=function(e){return function(b){q--;!q&&K&&R(y);e.isImg&&(b=b&&b.type==="error",h--,b||(K=!0),!h&&a&&K&&R(y))}}(U);
D(L,"load",W);U.isImg&&(h++,D(L,"error",W))}}h===0&&(K=!0);N=null;N=_.Fz.document.readyState==="complete";if(q===0&&!G&&N)y=5;else if(q||!G){D(_.Fz,"load",function(){!F.pendingImagesBlockLoad||!h&&K?R(4):a=!0});
return}R(y)}};
bTS=function(G,B,F){if(G)for(var D=0;G!=null&&D<500&&!F(G);++D)G=B(G)};
Vy8=function(G,B){bTS(G,function(F){try{return F===F.parent?null:F.parent}catch(D){}return null},B)};
vkS=function(G,B){if(G.tagName=="IFRAME")B(G);else{G=G.querySelectorAll("IFRAME");for(var F=0;F<G.length&&!B(G[F]);++F);}};
okM=function(G){return(G=G.ownerDocument)&&(G.parentWindow||G.defaultView)||null};
Myl=function(G,B,F){try{var D=JSON.parse(F.data)}catch(N){}if(typeof D==="object"&&D&&D.type==="creativeLoad"){var u=okM(G);if(F.source&&u){var R;Vy8(F.source,function(N){try{if(N.parent===u)return R=N,!0}catch(y){}});
R&&vkS(G,function(N){if(N.contentWindow===R)return B(D),!0})}}};
pe8=function(G){return typeof G==="string"?document.getElementById(G):G};
JMM=function(){var G={};return G[0]=_.W7(YKo,"current"),G[1]=_.W7(AMl),G[2]=_.W7(dKs),G};
AC=function(G,B){return G.left===B.left&&G.top===B.top&&G.width===B.width&&G.height===B.height};
cMc=function(G,B){return{left:Math.max(G.left,B.left),top:Math.max(G.top,B.top),width:Math.max(0,Math.min(G.left+G.width,B.left+B.width)-Math.max(G.left,B.left)),height:Math.max(0,Math.min(G.top+G.height,B.top+B.height)-Math.max(G.top,B.top))}};
Tq6=function(G,B){return{left:Math.round(G.left+B.x),top:Math.round(G.top+B.y),width:G.width,height:G.height}};
IRc=function(G,B,F,D,u,R,N){var y="";G&&(y+=G+":");F&&(y+="//",B&&(y+=B+"@"),y+=F,D&&(y+=":"+D));u&&(y+=u);R&&(y+="?"+R);N&&(y+="#"+N);return y};
_.dO=function(G){return G.match(fRM)};
_.c7=function(G,B){return G?B?decodeURI(G):decodeURIComponent(G):G};
tyM=function(G){G=_.dO(G)[1]||null;!G&&_.Fz.self&&_.Fz.self.location&&(G=_.Fz.self.location.protocol.slice(0,-1));return G?G.toLowerCase():""};
_.Tt=function(G){return _.c7(_.dO(G)[3]||null,!0)};
_.Ik=function(G){return _.c7(_.dO(G)[5]||null,!0)};
_.ZT8=function(G){var B=G.indexOf("#");return B<0?null:G.slice(B+1)};
gkJ=function(G){G=_.dO(G);return IRc(G[1],G[2],G[3],G[4])};
_.SKI=function(G){G=_.dO(G);return IRc(G[1],null,G[3],G[4])};
_.fS=function(G){G=_.dO(G);return IRc(null,null,null,null,G[5],G[6],G[7])};
_.tC=function(G){var B=G.indexOf("#");return B<0?G:G.slice(0,B)};
ZJ=function(G,B){G=_.dO(G);B=_.dO(B);return G[3]==B[3]&&G[1]==B[1]&&G[4]==B[4]};
siU=function(G,B){if(G){G=G.split("&");for(var F=0;F<G.length;F++){var D=G[F].indexOf("="),u=null;if(D>=0){var R=G[F].substring(0,D);u=G[F].substring(D+1)}else R=G[F];B(R,u?gO(u):"")}}};
xKc=function(G){var B=G.indexOf("#");B<0&&(B=G.length);var F=G.indexOf("?");if(F<0||F>B){F=B;var D=""}else D=G.substring(F+1,B);return[G.slice(0,F),D,G.slice(B)]};
PBg=function(G,B){return B?G?G+"&"+B:B:G};
_.G_U=function(G,B){if(!B)return G;G=xKc(G);G[1]=PBg(G[1],B);return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
_.BdQ=function(G,B,F){if(Array.isArray(B))for(var D=0;D<B.length;D++)_.BdQ(G,String(B[D]),F);else B!=null&&F.push(G+(B===""?"":"="+_.S5(B)))};
_.sh=function(G){var B=[],F;for(F in G)_.BdQ(F,G[F],B);return B.join("&")};
_.xi=function(G,B){B=_.sh(B);return _.G_U(G,B)};
_.G2=function(G,B,F){F=F!=null?"="+_.S5(F):"";return _.G_U(G,B+F)};
inS=function(G,B,F,D){for(var u=F.length;(B=G.indexOf(F,B))>=0&&B<D;){var R=G.charCodeAt(B-1);if(R==38||R==63)if(R=G.charCodeAt(B+u),!R||R==61||R==38||R==35)return B;B+=u+1}return-1};
_.Be=function(G,B){var F=G.search(FW6),D=inS(G,0,B,F);if(D<0)return null;var u=G.indexOf("&",D);if(u<0||u>F)u=F;D+=B.length+1;return gO(G.slice(D,u!==-1?u:0))};
_.iB=function(G,B){for(var F=G.search(FW6),D=0,u,R=[];(u=inS(G,D,B,F))>=0;)R.push(G.substring(D,u)),D=Math.min(G.indexOf("&",u)+1||F,F);R.push(G.slice(D));return R.join("").replace(DNc,"$1")};
_.F2=function(G,B,F){return _.G2(_.iB(G,B),B,F)};
ubg=function(G){var B=xKc(window.location.href),F=B[1],D=[];F&&F.split("&").forEach(function(u){var R=u.indexOf("=");R=R>=0?u.slice(0,R):u;G.hasOwnProperty(R)||D.push(u)});
B[1]=PBg(D.join("&"),_.sh(G));return B[0]+(B[1]?"?"+B[1]:"")+B[2]};
RWU=function(G,B,F){if(G&&B!==null&&B!=B.top){if(!B.top)return new _.$i(-12245933,-12245933);B=B.top}try{return(F===void 0?0:F)?(new _.$i(B.innerWidth,B.innerHeight)).round():_.DR(B).round()}catch(D){return new _.$i(-12245933,-12245933)}};
w1g=function(G,B,F){try{if(G){if(!B.top)return new zt(-12245933,-12245933,-12245933,-12245933);B=B.top}var D=RWU(G,B,F),u=D.height,R=D.width;if(R===-12245933)return new zt(R,R,R,R);var N=uB(Ri(B.document)),y=N.x,U=N.y;return new zt(U,y+R,U+u,y)}catch(q){return new zt(-12245933,-12245933,-12245933,-12245933)}};
Cz6=function(G){var B;return(B=G.google_tag_data)!=null?B:G.google_tag_data={}};
Ndg=function(G){var B,F;return typeof((B=G.navigator)==null?void 0:(F=B.userAgentData)==null?void 0:F.getHighEntropyValues)==="function"};
n3M=function(G){if(!Ndg(G))return null;var B=Cz6(G);if(B.uach_promise)return B.uach_promise;G=G.navigator.userAgentData.getHighEntropyValues(y7g).then(function(F){B.uach!=null||(B.uach=F);return F});
return B.uach_promise=G};
LWM=function(G){var B;return lnQ(UNz(qrS(E3Q(hWs(KW8(anL(mNU(X1L(new Q_c,G.architecture||""),G.bitness||""),G.mobile||!1),G.model||""),G.platform||""),G.platformVersion||""),G.uaFullVersion||""),((B=G.fullVersionList)==null?void 0:B.map(function(F){var D=new j_8;D=_.wq(D,1,F.brand);return _.wq(D,2,F.version)}))||[]),G.wow64||!1)};
r7z=function(G){var B,F;return(F=(B=n3M(G))==null?void 0:B.then(function(D){return LWM(D)}))!=null?F:null};
WWU=function(G,B){return new WY(function(F){var D=!1,u=Array(B.length);u.fill(void 0);var R=new Set,N=new Set,y=function(K,a){G.running?(u[a]=K,R.add(a),D||(D=!0,pS(G,function(){D=!1;F.next(_.II(u))},1))):F.error(new CT(a))},U=function(K,a){N.add(a);
R.add(a);pS(G,function(){F.error(K)},1)},q=function(K){N.add(K);
pS(G,function(){N.size===B.length&&F.complete()},1)},h=B.map(function(K,a){return K.subscribe(function(m){return void y(m,a)},function(m){return void U(m,a)},function(){return void q(a)})});
return function(){h.forEach(function(K){return void K.unsubscribe()})}})};
OnQ=function(G,B,F){function D(){if(B.debugChannel){var e=B.debugChannel,b=e.next;var M={creativeId:B.debugNames.getName(F),requiredSignals:u,signals:Object.assign({},R),hasPrematurelyCompleted:N,errorMessage:y,erroredSignalKey:U};M={specMajor:2,specMinor:0,specPatch:0,timestamp:DJ(B.timeProvider.now(),new uM(0,B.timeProvider.timeline)),instanceId:B.debugNames.getName(B.symbol),creativeState:M};b.call(e,M)}}
for(var u=Object.keys(G),R={},N=!1,y=null,U=null,q={},h=new Set,K=[],a=[],m=_.C(u),L=m.next(),W={};!L.done;W={key$jscomp$396:void 0},L=m.next())W.key$jscomp$396=L.value,L=G[W.key$jscomp$396],L instanceof Yi?(q[W.key$jscomp$396]=L.value,h.add(W.key$jscomp$396),B.debugChannel&&(R[String(W.key$jscomp$396)]=viU(L.value))):(L=L.pipe(nS(function(e,b){return bSg(e)||bSg(b)?!1:e===b}),ZK(function(e){return function(b){B.debugChannel&&(R[String(e.key$jscomp$396)]=viU(b),D());
var M={};return M[e.key$jscomp$396]=b,M}}(W)),wO(function(e){return function(b){if(b instanceof CT)throw new HnU(String(e.key$jscomp$396));
throw b;}}(W)),t5L(function(e){return function(){h.add(e.key$jscomp$396)}}(W),function(e){return function(b){U=String(e.key$jscomp$396);
y=String(b);D()}}(W),function(e){return function(){h.has(e.key$jscomp$396)||(N=!0,D())}}(W))),a.push(W.key$jscomp$396),K.push(L));
(G=Object.keys(R).length>0)&&D();m=WWU(B.queue,K).pipe(wO(function(e){if(e instanceof CT)throw new k_g(String(a[e.inputObservableIndex]));throw e;}),ZK(function(e){return Object.freeze(Object.assign.apply(Object,[{},
q].concat(_.gi(e))))}));
return(K=K.length>0)&&G?iM(cY(Object.freeze(q)),m):K?m:cY(Object.freeze(q))};
eWS=function(G,B,F,D,u){return G.performanceMonitor.timeExecution.bind(G.performanceMonitor)(733,function(){var R={};try{return B.pipe(wO(function(N){D(Object.assign({},R,{error:N}));return B7}),PY(function(N){try{var y=F(G,N)}catch(q){return D(Object.assign({},R,{error:q instanceof Error?q:String(q)})),B7}var U={};
return OnQ(y,G,N.symbol).pipe(t5L(function(q){U=q}),hC(1),tl()).pipe(u,wO(function(q){D(Object.assign({},U,{error:q}));
return B7}),lM(void 0),ZK(function(){return!0}))})).pipe(KS(function(N){return N+1},0),wO(function(N){D(Object.assign({},R,{error:N}));
return B7}))}catch(N){return D(Object.assign({},R,{error:N})),B7}})()};
NK=function(G){var B=new Map;if(typeof G!=="object"||G===null)return B;Object.values(G).forEach(function(F){F&&typeof F.extrapolateToNow==="function"&&(B.has(F.clock.timeline)||B.set(F.clock.timeline,F.clock.now()))});
return B};
$No=function(G,B){return typeof G==="string"?encodeURIComponent(G):typeof G==="number"?String(G):Array.isArray(G)?G.map(function(F){return $No(F,B)}).join(","):G instanceof uM?G.toString():G&&typeof G.extrapolateToNow==="function"?$No(G.extrapolateUsingTimestampMap(B).value,B):G===!0?"1":G===!1?"0":G===void 0||G===null?null:G instanceof zWc?bnM(G):[G.top,
G.left,G.top+G.height,G.left+G.width].join()};
VVz=function(G,B){G=Object.entries(G).map(function(F){var D=_.C(F);F=D.next().value;D=D.next().value;D=$No(D,B);return D===null?"":F+"="+D}).filter(function(F){return F!==""});
return G.length?G.join("&"):""};
MVz=function(G,B){var F=v3g,D=o3s;B=B===void 0?.01:B;return function(u){B>0&&Math.random()<=B&&(G.global.HTMLFencedFrameElement&&G.global.fence&&typeof G.global.fence.reportEvent==="function"&&G.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),u=Object.assign({},u,{errorMessage:u.error instanceof Error&&u.error.message?u.error.message:String(u.error),errorStack:u.error instanceof Error&&u.error.stack?String(u.error.stack):null,errorName:u.error instanceof
Error&&u.error.name?String(u.error.name):null,errorContext:String(G.performanceMonitor.timedFunctionContext),errorEscapedQueryId:u.escapedQueryId}),F(Object.assign({},u,{payloadMapper:function(){return function(R){try{return D(Object.assign({},R))}catch(N){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),NK(u)).forEach(function(R){G.beaconFactory.makeBeacon(R).sendNow()}))}};
p1L=function(){var G=_.xS.apply(0,arguments);return function(B){var F=B.pipe(hC(1),tl());B=G.map(function(D){return F.pipe(D,lM(!0))});
return Sl(B).pipe(yQ(1),CS())}};
YrU=function(){var G=_.xS.apply(0,arguments);return function(B){var F=B.pipe(hC(1),tl());B=G.map(function(D){return F.pipe(D,lM(!0))});
return iM.apply(null,_.gi(B)).pipe(yQ(1),CS())}};
A7l=function(G,B){return function(F){var D=F.pipe(hC(1),tl());F=D.pipe(G,lM(!0));D=D.pipe(ri(B,hC(),tl()),lM(!0));F=Sl([F,D]);return $PU(F,D).pipe(yQ(1),CS())}};
dNz=function(G,B,F){F(!0)};
J7L=function(G,B){return ri(m_(function(F){var D=G(F),u=B(F),R={};return D&&u&&R?new WY(function(N){u(D,R,function(y){N.next(Object.assign({},F,{canEmit:y}));N.complete()});
return function(){}}):yg}),FR(function(F){return F.canEmit}))};
c7U=function(G){var B={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(F){return F.pipe(m_(function(D){return new WY(function(u){function R(){y.disconnect();U.unsubscribe()}
var N=G.MutationObserver;if(N&&D.ref!==void 0){var y=new N(function(q){u.next(q)});
y.observe(D.ref,B);var U=D.JSC$9670_released.subscribe(R);return R}})}))}};
Tdo=function(G){if(G.measurementDeferralState===3)return null;if(G.timeOnScreenReason!==void 0){var B=G.creativeFound===!1?"n":null;if(B!==null)return B}return G.geometricMeasurementErrors instanceof nT?"msf":G.contextValidationErrors instanceof lB?"c":G.contextVisibilityKnown===!1?"pv":G.geometricMeasurementErrors||G.contextValidationErrors?"x":null};
fno=function(G,B){return G.replace(InI,function(F,D){try{var u=_.UK.get(B,D);if(u==null||u.toString()==null)return F;u=u.toString();if(u==""||!_.NL(u==null?"":String(u)))return encodeURIComponent(u).replace(/%2C/g,",")}catch(R){}return F})};
tVJ=function(G,B){var F=Object.assign({},G),D=G.userAgentClientHints;F=(delete F.userAgentClientHints,F);F=G.payloadMapper(F);var u=VVz(F,B);return _.qK(G.urlPrefixes,function(R){var N="";typeof D==="string"&&(N="&"+VVz({uach:D},B));var y={};return fno(R,(y.VIEWABILITY=u,y))+N})};
v3g=function(G,B){var F=G.payloadMapper(G),D=VVz(F,B);return D?_.qK(G.urlPrefixes,function(u){u=u.indexOf("?")>=0?u:u+"?";u="?&".indexOf(u.slice(-1))>=0?u:u+"&";return u+D}):G.urlPrefixes};
ZnL=function(){return ri(FR(function(G){return G!==void 0}),ZK(function(G){return G}))};
g38=function(G){return ri(ZK(function(){return!0}),ak(!1),MP(G))};
Srg=function(G){return G.length<=0?B7:Sl(G.map(function(B){var F=0;return B.pipe(ZK(function(D){return{index:F++,value:D}}))})).pipe(FR(function(B){return B.every(function(F){return F.index===B[0].index})}),ZK(function(B){return B.map(function(F){return F.value})}))};
s_M=function(G,B){G.currentState&&(G.previousState=G.currentState);G.currentState=B;G.previousState&&G.previousState.value?(B=Math.max(0,DJ(B.timestamp,G.previousState.timestamp)),G.totalTime+=B,G.consecutiveTime+=B):G.consecutiveTime=0;return G};
xNQ=function(){return ri(KS(s_M,{totalTime:0,consecutiveTime:0}),ZK(function(G){return G.totalTime}))};
Pzg=function(){return ri(KS(s_M,{totalTime:0,consecutiveTime:0}),ZK(function(G){return G.consecutiveTime}))};
GMQ=function(G,B){return function(F){return Srg(B.map(function(D){return F.pipe(G(D))}))}};
BTQ=function(){var G;return ri(t5L(function(B){return void(G=B.timestamp)}),Pzg(),ZK(function(B){return{timestamp:G,
value:Math.round(B)}}))};
iEI=function(G,B){return AC(G.topWindowViewportExternalGeometry,B.topWindowViewportExternalGeometry)&&AC(G.elementGeometry,B.elementGeometry)&&AC(G.exposedViewportLocalGeometry,B.exposedViewportLocalGeometry)&&AC(G.intersectionGeometry,B.intersectionGeometry)&&G.elementGeometrySourceName===B.elementGeometrySourceName&&G.measurementRequests===B.measurementRequests&&G.viewportGeometrySourceName===B.viewportGeometrySourceName&&G.viewportLocalAppOffset.x===B.viewportLocalAppOffset.x&&G.viewportLocalAppOffset.y===
B.viewportLocalAppOffset.y};
RXU=function(G,B){return function(F){return function(D){var u=D.pipe(qP(new v7),tl());D=F.element.pipe(nS());u=u.pipe(ZK(function(R){return R.value}));
return Sl([D,u,B]).pipe(ZK(function(R){var N=_.C(R);R=N.next().value;var y=N.next().value;N=N.next().value;if(R.ref===void 0)var U={top:0,left:0,width:0,height:0};else{U=R.ref.getBoundingClientRect();var q=R.ref,h=G.global,K=new _.e5(0,0),a=EK(_.KT(q));if(xPM(a,"parent")){do{if(a==h)var m=_.ai(q);else m=FSM(q),m=new _.e5(m.left,m.top);K.x+=m.x;K.y+=m.y}while(a&&a!=h&&a!=a.parent&&(q=a.frameElement)&&(a=a.parent))}U={top:K.y,left:K.x,width:U.width,height:U.height}}U=Tq6(U,y.viewportLocalAppOffset);
h=cMc(U,y.exposedViewportLocalGeometry);K=G.timeProvider.now();a=Object;q=a.assign;if(N!==2||G.inCrossDomainIframe||h.width<=0||h.height<=0)var L=!1;else try{var W=G.document.elementFromPoint(h.left+h.width/2,h.top+h.height/2);L=W?!DgI(W,R):!1}catch(e){L=!1}return{timestamp:K,value:q.call(a,{},y,{elementGeometrySourceName:"geo",intersectionGeometry:L?ueI.intersectionGeometry:h,elementGeometry:U})}}),ok(G.queue))}}};
DgI=function(G,B,F){F=F===void 0?0:F;return G.ref===void 0||B.ref===void 0?!1:G.ref===B.ref||_.mG(B.ref,function(D){return D===G.ref})?!0:B.ref.ownerDocument&&B.ref.ownerDocument.defaultView&&B.ref.ownerDocument.defaultView===B.ref.ownerDocument.defaultView.top?!1:F<10&&B.ref.ownerDocument&&B.ref.ownerDocument.defaultView&&B.ref.ownerDocument.defaultView.frameElement?DgI(G,new X2(B.ref.ownerDocument.defaultView.frameElement),F+1):!0};
NTQ=function(G){return function(B){return B.pipe(G.ResizeObserver?wNM(G):CCJ(G),hC(1),tl())}};
wNM=function(G){return function(B){return B.pipe(m_(function(F){var D=G.ResizeObserver;if(!D||F.ref===void 0)return cY(ueI.elementGeometry);var u=(new WY(function(R){function N(){F.ref!==void 0&&y.unobserve(F.ref);y.disconnect();U.unsubscribe()}
if(F.ref===void 0)return R.complete(),function(){};
var y=new D(function(q){q.forEach(function(h){R.next(h)})});
y.observe(F.ref);var U=F.JSC$9670_released.subscribe(N);return N})).pipe(Rk(G.performanceMonitor,736),ZK(function(R){return R.contentRect}));
return iM(cY(F.ref.getBoundingClientRect()),u)}),nS(AC))}};
CCJ=function(G){return function(B){var F=B.pipe(c7U(G)),D=G.onResize;F=iM(B.pipe(ZK(function(){return ji8("resize")})),F,D);
return Sl(B,F).pipe(Rk(G.performanceMonitor,737),ZK(function(u){u=_.C(u).next().value;return u.ref===void 0?void 0:u.ref.getBoundingClientRect()}),ZnL(),nS(AC))}};
lBU=function(G,B){var F=y0z(G,B).pipe(hC(1),tl());return function(D){return function(u){u=u.pipe(m_(function(R){return R.element}),nS());
return Sl([F,u]).pipe(m_(function(R){var N=_.C(R);R=N.next().value;N=N.next().value;return n0l(G,R.intersectionObserver,NTQ(G),R.observations,D,R.flushRecords,N)}),ok(G.queue))}}};
UgM=function(G){return ZK(function(B){return B.value.viewportGeometrySourceName!=="nio"?B:Object.assign({},B,{value:Object.assign({},B.value,{exposedViewportLocalGeometry:Qg(G,!0),topWindowViewportExternalGeometry:Qg(G,!0)})})})};
q4U=function(G,B){return cY(B).pipe(G,ZK(function(){return B}))};
y0z=function(G,B){return G.timeProvider.timeline!==E0z?To(new nT(2)):G.MutationObserver?typeof IntersectionObserver==="undefined"?To(new nT(0)):(new WY(function(F){var D=new v7,u=new jy(D.next.bind(D),{threshold:[].concat(_.gi(B))});F.next({observations:D.pipe(Rk(G.performanceMonitor,735)),intersectionObserver:u,flushRecords:function(R){R=u.takeRecords(R);R.length>0&&D.next(R)}})})).pipe(yQ(1),hC(1),tl()):To(new nT(1))};
hXS=function(G){return xmM(G.sort(function(B,F){return B.time-F.time}),w7U)};
n0l=function(G,B,F,D,u,R,N){return new WY(function(y){function U(){L||(L=!0,N.ref!==void 0&&B.unobserve(u,N.ref),h.unsubscribe(),m.unsubscribe(),a.unsubscribe(),W.unsubscribe())}
if(N.ref!==void 0){KSc(B,u);B.observe(u,N.ref);var q=new LT({timestamp:G.timeProvider.now(),value:Object.assign({},ueI,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),h=D.pipe(PY(function(e){return hXS(e)}),FR(function(e){return e.target===N.ref}),ZK(function(e){return{timestamp:new uM(e.time,E0z),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:e.rootBounds||rq,topWindowViewportExternalGeometry:e.rootBounds||Qg(G,!0),measurementRequests:K,elementGeometrySourceName:"nio",intersectionGeometry:e.intersectionRect,elementGeometry:e.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:e.isIntersecting,isV2Visible:e.isVisible}}}),qP(q),tl()).subscribe(y),K=new v7,a=K.subscribe(function(){R(u);
y.next({timestamp:G.timeProvider.now(),value:q.value.value});N.ref!==void 0&&(B.unobserve(u,N.ref),B.observe(u,N.ref))}),m=q4U(F,N).subscribe(function(){K.next()}),L=!1,W=N.JSC$9670_released.subscribe(function(){return U()});
return U}})};
aBg=function(G,B){var F=G.getOnBackgrounded().pipe(ZK(function(){return"b"}));
return $PU(B,F).pipe(yQ(1),MP(G.queue))};
We=function(G){return function(B){var F;return B.pipe(t5L(function(D){return void(F=D.timestamp)}),ZK(function(D){return D.value}),G,ZK(function(D){return{timestamp:F,
value:D}}))}};
mgz=function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.elementGeometry.width*G.elementGeometry.height)};
He=function(G,B,F){F=F===void 0?function(D,u){return D===u}:F;
return G.timestamp.equals(B.timestamp)&&F(G.value,B.value)};
OK=function(G,B){return B.pipe(ZK(function(F){return new kk(G.timeProvider,{timestamp:G.timeProvider.now(),value:F})}))};
XNg=function(G){return function(B){return B.pipe(ZSs(G),ZK(function(F){var D=_.C(F);F=D.next().value;D=D.next().value;var u=F.value;return{timestamp:F.timestamp,value:u>=1?!0:u<=0?!1:u>=D}}))}};
j7o=function(){return ri(FR(function(G,B){return B>0}),Q7M,ak(-1),nS())};
LSc=function(G,B,F){return G?Sl([B,F]).pipe(FR(function(D){var u=_.C(D);D=u.next().value;u=u.next().value;return D.timestamp.equals(u.timestamp)}),ZK(function(D){var u=_.C(D);
D=u.next().value;u=u.next().value;return D.value>u.value?D:u})):B};
HEo=function(G){return function(B){var F=B.pipe(r0M),D=B.pipe(WSI);return G instanceof WY?G.pipe(m_(function(u){return LSc(u,F,D)})):LSc(G.value,F,D)}};
M2g=function(G,B,F,D){var u=D.geometryIsOccluded,R=D.exposureThreshold,N=D.wasLargeAdAtRender,y=D.allowLargeAdThreshold,U=D.largeAdExposureThreshold,q=D.mayUseViewportShareExposure,h=D.hasMeasurementStarted;D=D.useIntersectionObserverV2;B=kMJ(G,F,B);F=OEU(G,F);D=eX6(B,D);var K=$gI(G,u,q,B),a=K.pipe(ZK(function(A){return A.value}),nS(),MP(G),KS(function(A,Z){return Math.max(A,Z)},0)),m=K.pipe(ZK(function(A){return A.value}),j7o(),MP(G)),L=B.pipe(zXz,ZK(function(A){return A.value}),yQ(2),nS(),MP(G));
N=bEc(G,B,N,y);var W=N.pipe(ak(!1),nS(),ZK(function(A){return A?U:R}));
y=K.pipe(XNg(W),nS(),MP(G));var e=Sl([y,B]).pipe(FR(function(A){var Z=_.C(A);A=Z.next().value;Z=Z.next().value;return A.timestamp.equals(Z.timestamp)}),ZK(function(A){var Z=_.C(A);
A=Z.next().value;Z=Z.next().value;return{visible:A.value,geometry:Z.value.elementGeometry}}),KS(function(A,Z){return!Z.visible&&A.visible?A:Z},{visible:!1,
geometry:rq}),ZK(function(A){return A.geometry}),ak(rq),MP(G),nS(AC));
q=q instanceof WY?q.pipe(nS(),NP()):yg;W=Sl([q,W]).pipe(NP());var b=B.pipe(FR(function(A){return A.value.viewportGeometrySourceName!=="ns"&&A.value.elementGeometrySourceName!=="ns"}),KS(function(A){return A+1},0),ak(0),MP(G)),M=F.pipe(NP(!0),ak(!1),MP(G));
M=Sl([h,M]).pipe(ZK(function(A){var Z=_.C(A);A=Z.next().value;Z=Z.next().value;return A&&!Z}),MP(G));
var t=B.pipe(V2l,nS()),T=t.pipe(ZK(function(A){return A.value}),KS(function(A,Z){return Math.max(A,Z)},0),nS(),MP(G));
G=t.pipe(ZK(function(A){return A.value}),j7o(),MP(G));
return{shouldResetExposureSignals:q,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:B,measurementStrategy:B.pipe(v0c),creativePosition:e.pipe(nS(AC)),visible:y.pipe(nS(He)),timestampedExposure:K.pipe(nS(He)),maximumExposure:a,minimumExposure:m,browserSize:B.pipe(o0g,nS(_.sS)),timestampedScreenShare:t,maxScreenShare:T,minScreenShare:G,geometricMeasurementErrors:F,measurementRequests:B.pipe(ZK(function(A){return A.value.measurementRequests})),
isLargeAd:N,geometryIsOccluded:u,hasMeasurementStarted:h,geometryMeasurable:M,validMeasurementCount:b,loadTimeExposure:L,v2VisibilityBitVector:D}}};
OEU=function(G,B){return B.pipe(FR(function(){return!1}),ZK(function(F){return F}),wO(function(F){return $k(new Yi(F),G)}))};
kMJ=function(G,B,F){return B.pipe(OSS(yg),MP(G)).pipe(nS(function(D,u){return He(D,u,iEI)}),ak({timestamp:F.now(),
value:ueI}),MP(G))};
$gI=function(G,B,F,D){F=D.pipe(HEo(F),We(ZK(function(u){return Math.round(u*100)/100})),MP(G));
return B instanceof Yi?F:Sl([F,B]).pipe(ZK(function(u){var R=_.C(u);u=R.next().value;R=R.next().value;return{timestamp:R.timestamp.maximum(u.timestamp),value:R.value?0:u.value}}),nS(He),MP(G))};
bEc=function(G,B,F,D){B=[B.pipe(ZK(function(u){return u.value.elementGeometry.width*u.value.elementGeometry.height>=242500}))];
F instanceof WY&&B.push(F.pipe(ZK(function(u){return!!u})));
F=Sl(B);return D?F.pipe(ZK(function(u){return u.some(function(R){return R})}),ak(!1),nS(),MP(G)):$k(new Yi(!1),G)};
eX6=function(G,B){G=Sl([G,B]).pipe(ZK(function(u){var R=_.C(u);u=R.next().value;if(R.next().value&&u.value.isIntersecting)return u.value.isV2Visible}),nS());
var F=G.pipe(ZK(function(u){return u===void 0?!0:u}),KS(function(u,R){return u||!R},!1)),D=G.pipe(KS(function(u,R){return R===void 0?u:R?!1:u!=null?u:!0},void 0),ZK(function(u){return!!u}));
return Sl([B,zD6(G,F,D)]).pipe(ZK(function(u){var R=_.C(u);u=R.next().value;var N=_.C(R.next().value);R=N.next().value;var y=N.next().value;N=N.next().value;var U=0;if(!u)return 0;if(R===void 0)return 16;R&&(U|=1);R||(U|=2);y&&(U|=4);N&&(U|=8);return U}))};
c0s=function(G,B,F,D,u){var R=pNQ.timeThresholdMs;var N=N===void 0?new Y4I(B,D):N;return(new WY(function(y){var U=F.pipe(ak(void 0),m_(function(){return A0o(u)})).pipe(ZK(function(q){var h=q.value;
q=q.timestamp;var K=h.visible;h=h.consecutiveViewTime;var a=h>=R;a||!K?dgS(N):(q=Math.max(0,DJ(B.now(),q)),J0I(N,Math.max(0,R-h-q)));return a}),KS(function(q,h){return h||q},!1),nS()).subscribe(y);
return function(){N.dispose();U.unsubscribe()}})).pipe(QQ(function(y){return!y},!0),MP(G))};
A0o=function(G){return Srg([G,G.pipe(BTQ())]).pipe(ZK(function(B){var F=_.C(B);B=F.next().value;F=F.next().value;return{timestamp:B.timestamp,value:{visible:B.value,consecutiveViewTime:F.value}}}),nS(function(B,F){return He(B,F,function(D,u){return D.consecutiveViewTime===u.consecutiveViewTime&&D.visible===u.visible})}))};
TTU=function(){return ri(Pzg(),KS(function(G,B){return Math.max(G,B)},0),ZK(function(G){return Math.round(G)}))};
IBL=function(G){return ri(XNg(cY(G)),TTU())};
fB8=function(G,B){return B instanceof WY?B.pipe(m_(function(F){return(F=F?15:null)?To(new nT(F)):G})):(B=B.value?15:null)?To(new nT(B)):G};
t2z=function(G){var B=new nT(13);if(G.length<1)return{chain:B7,capturedErrors:B7};var F=new v7,D=G[0];return{chain:G.slice(1).reduce(function(u,R){return u.pipe(wO(function(N){F.next(N);return R}))},D).pipe(wO(function(u){F.next(u);
return To(B)}),qP(new v7),tl()),
capturedErrors:F}};
ZEc=function(G,B){var F=G.pipe(qP(new v7),tl());return m_(function(D){return F.pipe(B(D))})};
S4I=function(G,B){if(G.inCrossDomainIframe)return To(new nT(6));var F=new v7;return iM(cY({}),B,F).pipe(ZK(function(){return{timestamp:G.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:g0z(G),topWindowViewportExternalGeometry:Qg(G,!0),measurementRequests:F,viewportLocalAppOffset:{x:0,y:0}}}}),ok(G.queue))};
g0z=function(G){var B=Qg(G,!1);if(!G.inIframe||!PMo(G.global.parent)||G.global.parent===G.global)return B;var F=new z2(G.global.parent,G.debugChannel);F.beaconFactory=G.beaconFactory;F=g0z(F);G=G.global.frameElement.getBoundingClientRect();return cMc(Tq6(cMc(F,G),{x:B.left-G.left,y:B.top-G.top}),B)};
s7U=function(G){if(G.prerendering)return 3;var B;return(B={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""])!=null?B:0};
xg6=function(G){return G.document.JSC$9681_onVisibilityChange.pipe(ZK(function(B){return B==="visible"}),nS(),MP(G.queue))};
PCM=function(G,B,F){var D;return B.pipe(nS(),m_(function(u){return F.pipe(ZK(function(){if(!D){D=!0;try{u.next()}finally{D=!1}}return!0}))}),ak(!1),MP(G.queue))};
GJL=function(G){return ri(We(ZK(function(B){return B>=1?!0:B<=0?!1:B>=G})),xNQ(),ZK(function(B){return Math.round(B)}))};
iHg=function(G,B,F,D,u){var R=BnM;if(R.length>1)for(var N=0;N<R.length-1;N++)if(R[N]<R[N+1])throw Error();N=u.pipe(ak(void 0),m_(function(){return F.pipe(BTQ())}),nS(),MP(G));
u=u.pipe(ak(void 0),m_(function(){return F.pipe(TTU())}),nS(),MP(G));
return{totalMeasurementTime:D.pipe(ak(void 0),m_(function(){return B.pipe(ZK(function(y){return{timestamp:y.timestamp,value:!0}}),xNQ())}),nS(),MP(G)),
totalUnviewedTime:D.pipe(ak(void 0),m_(function(){return B.pipe(ZK(function(y){return{timestamp:y.timestamp,value:y.value===0}}),xNQ())}),nS(),MP(G)),
maxTimeOnScreen:D.pipe(ak(void 0),m_(function(){return B.pipe(GMQ(IBL,R))}),nS(_.sS),MP(G)),
timeOnScreen:D.pipe(ak(void 0),m_(function(){return B.pipe(GMQ(GJL,R),ZK(function(y){return y.map(function(U,q){return q>0?U-y[q-1]:U})}))}),nS(_.sS),MP(G)),
maxConsecutiveViewTime:u,consecutiveViewTime:N.pipe(nS(He),MP(G))}};
DnJ=function(G){var B=!0;B=B===void 0?!1:B;return ri(m_(function(F){return Fd6(G.document,F,B)}),MP(G.queue))};
umQ=function(G,B,F){var D=F.pipe(ZK(function(u){return{value:u,timestamp:G.timeProvider.now()}}),nS(He));
return B instanceof WY?B.pipe(nS(),m_(function(u){return u?$k(new Yi({value:!1,timestamp:G.timeProvider.now()}),G.queue):D})):B.value===!1?D:new Yi(!1)};
Rp8=function(G,B,F,D,u,R,N){var y=pNQ;B=B instanceof WY?B.pipe(ak(!1),nS()):B;var U=!G.isMobile();F=umQ(G,F,D);G=N.measurableCreative.pipe(g38(G.queue));return Object.assign({},y,{geometryIsOccluded:F,wasLargeAdAtRender:u,allowLargeAdThreshold:U,mayUseViewportShareExposure:B,hasMeasurementStarted:G,useIntersectionObserverV2:R})};
C9l=function(G,B,F,D,u,R){var N=1;R=R===void 0?!0:R;N=N===void 0?.01:N;var y=y===void 0?G.timeProvider.intervalObservable(100).pipe(MP(G.queue)):y;return G.performanceMonitor.timeExecution(916,function(){return w5g(G,B.pipe(ok(G.queue)),F.pipe(ok(G.queue)),D,u,R,N,y)})()};
w5g=function(G,B,F,D,u,R,N,y){var U=xg6(G).pipe(ZK(function(h){return!h})),q=new Nng(G,[new yeg(G,BnM),
new nfl(G,y)]);y=p1L(lAQ,Unz);return eWS(G,B,function(h,K){var a=$k(new Yi(K.element),h.queue).pipe(DnJ(h),MP(h.queue)),m={loadedElement:a,shouldMeasure:a.pipe(NP(!0)),measurableCreative:a.pipe(ZK(function(A){var Z=Z===void 0?Symbol():Z;return Object.freeze({symbol:Z,element:$k(new Yi(A),h.queue)})})),
creativeSearchResult:$k(new Yi("mue"),h.queue)},L=new Yi(!1),W=new Yi(!1),e=new Yi(17),b=new Yi(!1),M=new Yi(!1),t=$k(bB,h.queue);L=q.buildGeometrySource(m,{inApp:L,useV2:!1,requestSource:$k(e,h.queue)}).geometrySource;m=Rp8(h,b,W,U,M,t,m);W=M2g(h.queue,h.timeProvider,L,m);m=W.geometrySignals;b=W.shouldResetViewabilitySignals;W=iHg(h.queue,m.timestampedExposure,m.visible,W.shouldResetExposureSignals,b);b=c0s(h.queue,h.timeProvider,b,m.measurementRequests,m.visible);M=F.pipe(FR(function(A){return A===
K.element.ref}),ZK(function(){return"ur"}));
t=oil(h.timeProvider,u).pipe(NP("t"));M=aBg(h,iM(M,t));t=PCM(h,m.measurementRequests,M.pipe(FR(function(A){return A!==null})));
L=M.pipe(FR(function(A){return A!==null}),ZK(function(){return s7U(h.global.document)===1}));
var T=qDg(h.document);return Object.assign({},{beaconFactory:new Yi(h.beaconFactory),context:new Yi(h),inferredPingId:new Yi("lidar2"),timeOnScreenPingId:new Yi("lidartos"),binaryContext:new Yi(17),binaryVersion:new Yi(D),requestSource:e,contextValidationErrors:new Yi(h.validate()?null:new lB),contextVisibilityKnown:new Yi(T),payloadMapper:new Yi(o3s),endOfSessionReason:M,timeOnScreenReason:M,requestMeasurementOnEndOfSession:t,hasImpressionFired:EfS,crossDomainIframeState:new Yi(h.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:bB,inFetchLaterBeaconExperiment:bB,isTurtlex:bB,turtlexReportEventData:new Yi(""),reportFencedFrameEvent:yg,isViewableAttributionEnabled:bB,inViewableAttributionExperiment:new Yi(0),fetchBeaconFactory:yg,supportsPendingBeacon:bB,supportsFetchLater:bB,emit:new Yi(dNz),beginToRenderEvent:new Yi(Symbol()),activeViewUnmeasurableEvent:new Yi(Symbol()),activeViewViewableEvent:new Yi(Symbol()),creativeFound:EfS,immediateUrlPrefixes:new Yi(K.immediateUrls),timeOnScreenUrlPrefixes:new Yi(K.timeOnScreenUrls),
cpmavUrls:yg,viewableRelayUrls:yg,measurementDeferralState:new Yi(2),urlSerializer:new Yi(tVJ),viewUrlSerializer:new Yi(hpg),isCreativeLoaded:a.pipe(g38(h.queue)),pageVisible:U.pipe(ZK(function(A){return!A})),
eosPageVisible:L,timestampedExposureHistory:m.timestampedExposure.pipe(KS(function(A,Z){A.push(Z);return A},[]))},m,{viewable:OK(h,b),
maxTimeOnScreen:OK(h,W.maxTimeOnScreen),timeOnScreen:OK(h,W.timeOnScreen),maxConsecutiveViewTime:OK(h,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(ZK(function(A){return new kk(h.timeProvider,A)})),
totalMeasurementTime:OK(h,W.totalMeasurementTime),totalUnviewedTime:OK(h,W.totalUnviewedTime),userAgentClientHints:QiM(h),clientOrderPingCounter:new Yi(new zWc)})},MVz(G,N),YrU(R?A7l(y,KdM):A7l(y,aAS),mnz))};
X5z=function(G){var B=_.xS.apply(1,arguments).filter(Boolean).join("&");if(!B)return G;var F=G.match(/[?&]adurl=/);return F?G.slice(0,F.index+1)+B+"&"+G.slice(F.index+1):G+(G.indexOf("?")<0?"?":"&")+B};
Vg=function(G,B){return B?"&"+G+"="+encodeURIComponent(B):""};
Qnz=function(){try{var G,B;return!!((G=window)==null?0:(B=G.top)==null?0:B.location.href)&&!1}catch(F){return!0}};
_.ve=function(G){G&&typeof G.dispose=="function"&&G.dispose()};
_.oi=function(G){for(var B=0,F=arguments.length;B<F;++B){var D=arguments[B];_.fQ(D)?_.oi.apply(null,D):_.ve(D)}};
Ldl=function(){var G=jnU();G=G===void 0?"bevasrsg":G;return new Promise(function(B){var F=window===window.top?window:Qnz()?window:window.top,D=F[G],u;((u=D)==null?0:u.bevasrs)?B(new MK(D.bevasrs)):(D||(D={},D=(D.nqfbel=[],D),F[G]=D),D.nqfbel.push(function(R){B(new MK(R))}))})};
reg=function(G){var B={c:G.lC,e:G.t1b,mc:G.jnS,me:G.pNe};G.wz&&(B.co={c:G.wz.qsb,a:G.wz.e54,s:G.wz.gDo});return B};
Wdg=function(G){var B,F,D={lC:G.c,t1b:G.e,jnS:(B=G.mc)!=null?B:!1,pNe:(F=G.me)!=null?F:!1};G.co&&(D.wz={qsb:G.co.c,e54:G.co.a,gDo:G.co.s});return D};
HHs=function(G){return function(){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G(),2);B=F.yieldResult;return F.return({f:function(){return B.tdI()},
c:function(D){return B.cae(D)},
m:function(D){return B.fI(Wdg(D))},
mws:function(D){return B.ukD(Wdg(D))}})})}};
kJL=function(G,B){var F=jnU();F=F===void 0?"bevasrsg":F;B={s:function(R){var N;return G.snapshot(Object.assign({},R.c&&{lC:R.c},R.s&&{nFO:R.s},{cdE:(N=R.p)!=null?N:!0}))},
e:function(R){var N;return void((N=G.ora)==null?void 0:N.call(G,R))},
c:function(R,N){return G.es7(R,N)},
p:G.boD,l:function(){return G.qka()},
wpc:B?HHs(B):void 0};var D=window===window.top?window:Qnz()?window:window.top,u=D[F];if(u){u.bevasrs=B;if(u.nqfbel!==void 0)for(F=_.C(u.nqfbel),D=F.next();!D.done;D=F.next())D=D.value,D(B);u.nqfbel=void 0}else u={},u=(u.bevasrs=B,u.nqfbel=void 0,u),D[F]=u};
ep6=function(G){var B=B===void 0?53:B;var F=[];_.pT(G,OHS,6,_.Yk()).forEach(function(D){_.AM(D,2)<=B&&F.push(_.AM(D,1))});
return F};
$ns=function(G){var B=B===void 0?53:B;var F=[];_.pT(G,OHS,6,_.Yk()).forEach(function(D){_.AM(D,2)>B&&F.push(_.AM(D,1))});
return F};
zpg=function(G){G.then(function(){},function(){})};
dq=function(G){return{fieldType:1,fieldName:G}};
JM=function(G){return{fieldType:2,fieldName:G}};
_.ce=function(G){return{fieldType:3,fieldName:G}};
bHg=function(){function G(){u[0]=1732584193;u[1]=4023233417;u[2]=2562383102;u[3]=271733878;u[4]=3285377520;h=q=0}
function B(K){for(var a=N,m=0;m<64;m+=4)a[m/4]=K[m]<<24|K[m+1]<<16|K[m+2]<<8|K[m+3];for(m=16;m<80;m++)K=a[m-3]^a[m-8]^a[m-14]^a[m-16],a[m]=(K<<1|K>>>31)&4294967295;K=u[0];var L=u[1],W=u[2],e=u[3],b=u[4];for(m=0;m<80;m++){if(m<40)if(m<20){var M=e^L&(W^e);var t=1518500249}else M=L^W^e,t=1859775393;else m<60?(M=L&W|e&(L|W),t=2400959708):(M=L^W^e,t=3395469782);M=((K<<5|K>>>27)&4294967295)+M+b+t+a[m]&4294967295;b=e;e=W;W=(L<<30|L>>>2)&4294967295;L=K;K=M}u[0]=u[0]+K&4294967295;u[1]=u[1]+L&4294967295;u[2]=
u[2]+W&4294967295;u[3]=u[3]+e&4294967295;u[4]=u[4]+b&4294967295}
function F(K,a){if(typeof K==="string"){K=unescape(encodeURIComponent(K));for(var m=[],L=0,W=K.length;L<W;++L)m.push(K.charCodeAt(L));K=m}a||(a=K.length);m=0;if(q==0)for(;m+64<a;)B(K.slice(m,m+64)),m+=64,h+=64;for(;m<a;)if(R[q++]=K[m++],h++,q==64)for(q=0,B(R);m+64<a;)B(K.slice(m,m+64)),m+=64,h+=64}
function D(){var K=[],a=h*8;q<56?F(y,56-q):F(y,64-(q-56));for(var m=63;m>=56;m--)R[m]=a&255,a>>>=8;B(R);for(m=a=0;m<5;m++)for(var L=24;L>=0;L-=8)K[a++]=u[m]>>L&255;return K}
for(var u=[],R=[],N=[],y=[128],U=1;U<64;++U)y[U]=0;var q,h;G();return{reset:G,update:F,digest:D,digestString:function(){for(var K=D(),a="",m=0;m<K.length;m++)a+="0123456789ABCDEF".charAt(Math.floor(K[m]/16))+"0123456789ABCDEF".charAt(K[m]%16);return a}}};
T2=function(G){this.JSC$9928_document_=G||{cookie:""}};
YD6=function(G,B){B=B===void 0?VRo:B;if(!vfQ){var F;G=(F=G.navigator)==null?void 0:F.userAgentData;if(!G||typeof G.getHighEntropyValues!=="function"||G.brands&&typeof G.brands.map!=="function")return Promise.reject(Error("va"));ofg((G.brands||[]).map(function(u){var R=new MRQ;R=_.wq(R,1,u.brand);return _.wq(R,2,u.version)}));
typeof G.mobile==="boolean"&&_.Ii(p5S,2,G.mobile);vfQ=G.getHighEntropyValues(B)}var D=new Set(B);return vfQ.then(function(u){var R=p5S.clone();D.has("platform")&&_.wq(R,3,u.platform);D.has("platformVersion")&&_.wq(R,4,u.platformVersion);D.has("architecture")&&_.wq(R,5,u.architecture);D.has("model")&&_.wq(R,6,u.model);D.has("uaFullVersion")&&_.wq(R,7,u.uaFullVersion);return R.serialize()}).catch(function(){return p5S.serialize()})};
fT=function(G,B,F,D){this.initialValue_=G;this.maxValue_=B;this.currBaseValue_=this.currValue_=G;this.randomFactor_=F||0;this.backoffFactor_=D||2};
dng=function(G,B,F,D,u){this.listener=G;this.proxy=null;this.src=B;this.type=F;this.capture=!!D;this.handler=u;this.key=++AeQ;this.removed=this.callOnce=!1};
tM=function(G){this.src=G;this.listeners={};this.typeCount_=0};
IAz=function(){for(var G;G=Jec.remove();){try{G.fn.call(G.scope)}catch(B){Dc(B)}ces.put(G)}TnL=!1};
_.fAQ=function(G){switch(G){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}};
tRs=function(G){switch(G){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""}};
_.ZHs=function(){};
Fmg=function(G,B,F,D){G=gf6(SDg(snI(new _.ZR(1828,"0"),G),new xno)).disableWithCredentials();B.length&&P98(G,G0o(new BoQ,B));D!==void 0&&(G.destinationUrl=D);var u=new i88(1828,"","",!1,"",G.build());_.gq(u,G);var R=new sK({flush:function(N){try{u.flush(N)}catch(y){F(y)}}});
R.addOnDisposeCallback(function(){setTimeout(function(){try{R.snapshotAndFlush()}finally{u.dispose()}})});
R.invocationLimit=1E5;R.flushInterval=3E4;R.JSC$10097_flushTimer.setInterval(3E4);return R};
xk=function(){var G,B,F;return(F=(G=globalThis.performance)==null?void 0:(B=G.now)==null?void 0:B.call(G))!=null?F:Date.now()};
RVg=function(G,B){if(G.disable)return new DSL;B=B?ep6(B):[];G={aM:G.aM,ica:G.xYU,hzI:G.iar,destinationUrl:G.destinationUrl,x3J:G.x3J,lBa:G.lBa};B=B===void 0?[]:B;return new uBg(G,B)};
wQU=function(G){if(!G)return null;G=_.Pe(G,2);return G===null||G===void 0?null:i5(G)};
_.CXz=function(G){if(!G)return null;G=_.Pe(G,4);return G===null||G===void 0?null:_.pe(G)};
nKL=function(G,B){return B?NoI(B):G?yPo(G):Promise.resolve()};
NoI=function(G){return new Promise(function(B,F){var D=_.G_("SCRIPT"),u=_.CXz(G);_.Ux(D,u);D.onload=function(){_.B1(D);B()};
D.onerror=function(){_.B1(D);F(Error("Ga"))};
(iz("HEAD")[0]||document.documentElement).appendChild(D)})};
yPo=function(G){return new Promise(function(B){var F=_.G_("SCRIPT");if(G){var D=_.Pe(G,6);D=D===null||D===void 0?null:_.yD(D)}else D=null;_.l5(F,D);(iz("HEAD")[0]||document.documentElement).appendChild(F);_.B1(F);B()})};
Fb=function(G,B,F){var D,u=new Promise(function(R){D=setTimeout(R,B)});
return Promise.race([G.finally(function(){return void clearTimeout(D)}),
u.then(F)])};
llU=function(G,B){try{return globalThis.sessionStorage.setItem(G,B),!0}catch(F){return!1}};
USz=function(G,B,F,D){B=B===void 0?0:B;F=F===void 0?G.length:F;var u=0;for(D&&(u=USz(D));B<F;B++)D=typeof G==="string"?G.charCodeAt(B):G[B],u=qfg(31,u)+D|0;return u};
EKI=function(G,B){return[USz(G,0,G.length>>1,B),USz(G,G.length>>1)]};
hVI=function(G){var B=_.C(EKI(G,Dn));G=B.next().value;B=B.next().value;return G.toString(16)+B.toString(16)};
Kmc=function(G,B){var F=EKI(B);G=new Uint32Array(G.buffer);B=G[0];var D=_.C(F);F=D.next().value;D=D.next().value;for(var u=1;u<G.length;u+=2){for(var R=B,N=u,y=F,U=D,q=0;q<22;q++)N=N>>>8|N<<24,N+=R|0,N^=y+38293,R=R<<3|R>>>29,R^=N,U=U>>>8|U<<24,U+=y|0,U^=q+38293,y=y<<3|y>>>29,y^=U;R=[R,N];G[u]^=R[0];u+1<G.length&&(G[u+1]^=R[1])}};
all=function(G,B,F,D,u){var R=(4-(Dn.length+F.length)%4)%4,N=new Uint8Array(4+R+Dn.length+4+F.length),y=new DataView(N.buffer),U=0;y.setUint32(U,Math.random()*4294967295);U=U+4+R;N.set(Dn,U);U+=Dn.length;y.setUint32(U,u);N.set(F,U+4);Kmc(N,D);return G.insert(B,function(q){return void globalThis.sessionStorage.removeItem(q)})?llU(B,_.xM(N))?"s":"t":"i"};
mSL=function(G,B){var F=globalThis.sessionStorage.getItem(G);if(!F)return["m"];try{var D=_.P6(F);Kmc(D,B)}catch(u){return globalThis.sessionStorage.removeItem(G),["c"]}for(B=4;B<7&&D[B]===0;)B++;for(F=0;F<Dn.length;F++)if(D[B++]!==Dn[F])return globalThis.sessionStorage.removeItem(G),["d"];F=(new DataView(D.buffer)).getUint32(B);return Math.floor(Date.now()/1E3)>=F?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(D.buffer,B+4)]};
XQl=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):_.ul(G)};
QYJ=function(G){var B=G,F;return function(){if(B){var D=B;B=void 0;F=D.apply(this,arguments)}return F}};
LmJ=function(G){return p7(function(B){if(B instanceof G)return!0;var F,D,u=B==null?void 0:(F=B.ownerDocument)==null?void 0:(D=F.defaultView)==null?void 0:D[G.name];return jYc(u)&&B instanceof u})};
_.wd=function(G,B,F){_.uz.call(this);this.JSC$10311_listener_=G;this.JSC$10311_interval_=B||0;this.handler_=F;this.callback_=(0,_.R_)(this.JSC$10313_doAction_,this)};
_.Cn=function(G){_.uz.call(this);this.handler_=G;this.JSC$10314_keys_={}};
NN=function(){_.uz.call(this);this.services_={}};
rPz=function(){for(var G=10,B="";G-- >0;)B+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return B};
yA=function(G){_.uz.call(this);this.JSC$10334_domHelper_=G||Ri()};
Ur=function(G,B,F,D,u){yA.call(this,F);this.JSC$10337_channel_=G;this.protocolVersion_=u||2;this.peerHostname_=B||"*";this.JSC$10337_eventHandler_=new _.Cn(this);this.maybeAttemptToConnectTimer_=new _.nn(100,this.getWindow());this.oneSidedHandshake_=!!D;this.setupAckReceived_=new lz;this.setupAckSent_=new lz;this.JSC$10337_connected_=new lz;this.endpointId_=rPz();this.peerEndpointId_=null;this.oneSidedHandshake_?Wmg(this.JSC$10337_channel_)==1?H8U(this.JSC$10337_connected_,this.setupAckReceived_):
H8U(this.JSC$10337_connected_,this.setupAckSent_):(H8U(this.JSC$10337_connected_,this.setupAckReceived_),this.protocolVersion_==2&&H8U(this.JSC$10337_connected_,this.setupAckSent_));k0o(this.JSC$10337_connected_,this.notifyConnected_,this);this.JSC$10337_connected_.callback(!0);this.JSC$10337_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.qN=function(G){G=O8J(G);return _.pe(G)};
O8J=function(G){return G===null?"null":G===void 0?"undefined":G};
Kn=function(G,B){NN.call(this);for(var F=0,D;D=eV8[F];F++)if(D in G&&!/^https?:\/\//.test(G[D]))throw Error("Sa`"+G[D]+"`"+D);this.cfg_=G;this.name=this.cfg_.cn||rPz();this.JSC$10338_domHelper_=B||Ri();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Cn(this);G.lpu=G.lpu||gkJ(this.JSC$10338_domHelper_.getWindow().location.href)+"/robots.txt";G.ppu=G.ppu||gkJ(G.pu||"")+"/robots.txt";Er[this.name]=this;$SI(window,"unload",zVL)||h7(window,"unload",zVL)};
VEM=function(G){if(G&&G.focus)if(G!==document.activeElement)G.focus();else return b8s(function(){return _.n(function(B){document.activeElement&&document.activeElement.blur();return B.return(b8s(function(){G.focus()}))})})};
_.vKs=function(G){var B=B===void 0?5:B;setTimeout(function(){var F;return _.n(function(D){D.nextAddress==1&&(F=document.activeElement);if(D.nextAddress!=5)return(document.activeElement===F||document.activeElement===document.body)&&B>=0&&G?D.yield(VEM(G),5):D.jumpTo(0);if(document.activeElement===G)return D.return();G=G.parentElement;--B;return D.jumpTo(2)})},15)};
b8s=function(G){return new Promise(function(B){requestAnimationFrame(function(){B(G())})})};
MES=function(G){if(_.a_)G(_.a_);else{var B;((B=oKL)!=null?B:oKL=[]).push(G)}};
Xb=function(){!_.a_&&_.mW&&_.pQo(_.mW());return _.a_};
_.pQo=function(G){_.a_=G;var B;(B=oKL)==null||B.forEach(MES);oKL=void 0};
_.QA=function(G){_.a_&&_.a_.beforeLoadModuleCode(G)};
_.jV=function(){_.a_&&_.a_.JSC$11375_setLoaded()};
Ln=function(G){return TwL(G)?Number(G):String(G)};
Yfg=function(G){this.action=G;this.wfv=!1};
APM=function(){};
dSQ=function(G,B){Yfg.call(this,"set-drive-options");this.appId=G;this.appOrigin=B};
JPJ=function(G){Yfg.call(this,"visibility");this.visible=G};
cPs=function(G,B){B?G.setAttribute("role",B):G.removeAttribute("role")};
rd=function(G,B,F){Array.isArray(F)&&(F=F.join(" "));var D="aria-"+B;F===""||F==void 0?(Tog||(F={},Tog=(F.atomic=!1,F.autocomplete="none",F.dropeffect="none",F.haspopup=!1,F.live="off",F.multiline=!1,F.multiselectable=!1,F.orientation="vertical",F.readonly=!1,F.relevant="additions text",F.required=!1,F.sort="none",F.busy=!1,F.disabled=!1,F.hidden=!1,F.invalid="false",F)),F=Tog,B in F?G.setAttribute(D,F[B]):G.removeAttribute(D)):G.setAttribute(D,F)};
Sfo=function(G,B){var F=Ilo++,D={measureTask:{id:F,fn:G.measure,context:B},mutateTask:{id:F,fn:G.mutate,context:B},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(D.args||(D.args=[]),D.args.length=0,D.args.push.apply(D.args,arguments),D.args.push(D.state)):D.args&&D.args.length!=0?(D.args[0]=D.state,D.args.length=1):D.args=[D.state];D.isScheduled||(D.isScheduled=!0,flo[tEl].push(D));Z8c||(Z8c=!0,window.requestAnimationFrame(gKQ))}};
gKQ=function(){Z8c=!1;var G=flo[tEl],B=G.length;tEl=(tEl+1)%2;for(var F,D=0;D<B;++D){F=G[D];var u=F.measureTask;F.isScheduled=!1;u.fn&&u.fn.apply(u.context,F.args)}for(D=0;D<B;++D)F=G[D],u=F.mutateTask,F.isScheduled=!1,u.fn&&u.fn.apply(u.context,F.args),F.state={};G.length=0};
k3=function(G){_.W1.call(this);this.JSC$10470_element_=G;this.listenKeyIn_=_.H1(this.JSC$10470_element_,"focus",this,!0);this.listenKeyOut_=_.H1(this.JSC$10470_element_,"blur",this,!0)};
sY8=function(G,B){this.JSC$10473_element_=G;this.JSC$10473_dom_=B};
eV=function(G,B){Or.call(this,B);this.useIframeMask_=!!G;this.lastFocus_=null;this.resizeBackgroundTask_=Sfo({mutate:this.resizeBackground_},this);Sfo({mutate:this.updateModalAndBackground_},this)};
z_=function(G,B,F){eV.call(this,B,F);this.JSC$10483_class_=G||"modal-dialog";this.buttons_=(new $3).addButton(xS8,!0).addButton(PXS,!1,!0)};
GDs=function(G,B,F){z_.call(this,G,B,F)};
BgU=function(G){bz.call(this,G)};
ius=function(G){G=G&&G.getWindow()||window;return G.gadgets&&G.gadgets.rpc};
Dzc=function(G,B){var F=B&&B.getWindow()||window;if(ius(B))G();else if(FOQ)FOQ.push(G);else var D=FOQ=[G],u=F.setInterval(function(){if(ius(B)){F.clearInterval(u);for(var R=0;R<D.length;R++)D[R]();FOQ=null}},100)};
RZz=function(G,B){var F=new VA(G);_.gq(B,F);var D={passive:!1};B.listen(F,"mousewheel",function(u){return void usg(G,u)},D).listen(G,"scroll",function(u){return void usg(G,u)},D)};
usg=function(G,B){var F;a:{for(F=B.target;F;){if(F.nodeType==1){var D=_.v1(F,"overflowY");if(D=="auto"||D=="scroll")break a}F=F.parentNode}F=null}if(!F||!_.o_(G,F)||F.scrollHeight==F.clientHeight||B.deltaY>0&&Math.abs(F.scrollTop-(F.scrollHeight-F.clientHeight))<=1||B.deltaY<0&&F.scrollTop==0)B.preventDefault(),B.stopPropagation()};
woU=function(){var G;if(G=G===void 0?window:G)return G!==G.parent&&G.hasOwnProperty("pangolinIframeGlobals");var B=Error("gb");setTimeout(function(){throw B;},1);
return!1};
J7=function(G,B,F,D,u,R,N,y,U,q){y=y===void 0?!1:y;U=U===void 0?!1:U;q=q===void 0?!1:q;z_.call(this,void 0,void 0,void 0);z_.call(this,R?R+" picker modal-dialog":"picker modal-dialog",!0,F);_.Be(G,"protocol");this.iframeManager_=new Cis;this.targetId_=MN();this.rpcToken_=MN();G=_.pn(G);_.Y3(G,"hostId");this.useGapi_=!U&&!woU();y&&_.A7(G,"fv2","true");this.setUrl(G.toString());this.preferredDialogWidth_=D;this.preferredDialogHeight_=u;D!==void 0||u!==void 0?D=!0:(D=_.Y3(_.pn(G.toString()),"hostId"),
NgS||(NgS=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),D=!NgS.has(D));this.autoSizeDialog_=D;this.JSC$10501_gadgetsDomHelper_=N||this.JSC$10452_dom_;this.JSC$10501_enablePopover_=q;B&&(N=this.JSC$10501_gadgetsDomHelper_,B=_.Y3(_.pn(this.JSC$10503_url_),"grugl")=="true"?yoQ:nrI,ius(N)||(N=N||Ri(document),q=N.createElement("SCRIPT"),_.Ux(q,B),q.type="text/javascript",N.JSC$9636_document_.body.appendChild(q)));
G=G.toString();B=null;N=G.indexOf("/picker?");N>-1?B=G.substring(0,N+8-1):CQ(G,"/picker")&&(B=G);B&&this.setRelayUrl(B+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(G=this.buttons_,G.JSC$10486_element_=this.buttonEl_,G.render()):_.qm(this.buttonEl_,l8Q),_.dd(this.buttonEl_,!!this.buttons_))};
hZU=function(G,B){G.name!==void 0?(this.name=G.name,this.code=Uzl[G.name]):(this.code=G=G.code,this.name=qOL(G));_.Gs.call(this,Erg("%s %s",this.name,B))};
KO6=function(G,B){_.T_.call(this,G.type,B);this.event_=G};
_.QBU=function(G){var B=B===void 0?a8M:B;var F=_.S8(G),D=function(R){R=_.C(R);R.next();R=fn(R);return B(F,R)},u=function(R){var N=_.C(R);
R=N.next().value;N=fn(N);return G.apply(R,N)};
return function(){var R=_.xS.apply(0,arguments),N=this||_.Fz,y=mzs.get(N);y||(y={},mzs.set(N,y));return Xos(y,[this].concat(_.gi(R)),u,D)}};
t7=function(G){var B={};G=G.replace(/\r/g,"").split("\n");for(var F=0;F<G.length;F++){var D=G[F],u=D.indexOf(":");u<0||(B[D.substring(0,u)]=D.substring(u+2,D.length))}return B};
WOJ=function(G,B){B.id||(B.id="ow"+_.S8(B));G.setAttribute("jsowner",B.id);G.__owner=B;var F=_.mG(B,jBg);F&&(LO8.has(F)||LO8.set(F,[]),LO8.get(F).push(G));(F=roU.get(B))||roU.set(B,F=[]);F.includes(G)||F.push(G);B.setAttribute("__IS_OWNER",!0)};
jBg=function(G){return _.Zn(G)?G.getAttribute("jsname")==="coFSxe":!1};
Hus=function(G,B,F){F=F===void 0?function(){}:F;
return G?B():F()};
_.OuU=function(G){var B;return((B=kDL.documentOverride)!=null?B:G).__wizdispatcher};
SV=function(G){var B=gd;gd=G;return B};
$zM=function(G){return G===eZQ||(G==null?void 0:G.name)==="\u0275NotFound"};
sr=function(G,B){var F;if((F=G)==null?0:F.isDisposed)throw Error("lb`"+String(G.debugName));for(;G!==void 0;){F=G;if(F.retrieve)return F.retrieve(B,{optional:!0});G=G.parent}return eZQ};
x3=function(G){return{"\u0275prov":{providedIn:"root",token:Symbol(G),factory:void 0,value:void 0}}};
zZo=function(G){var B=gd;if(!B){switch(G===void 0?3:G){case 0:G=Error("kb");break;case 1:G=Error("mb");break;case 2:G=Error("nb");break;default:G=Error("ob")}throw G;}return B};
buo=function(G){var B=SV(G);G={};return G[Symbol.dispose]=function(){SV(B)},G};
orU=function(){var G=zZo(1),B=sr(G,V6U);if(!$zM(B))return B;G=sr(G,vrg);if(!$zM(G))return G.getOptionalAppContext()};
YOl=function(){var G=zZo(1);G=sr(G,M68);if(!($zM(G)||G[poL]&&!G.__hasBeenSet))return G.value};
AoQ=function(G,B){B.nextDisposable=void 0;G.tailDisposable?G.tailDisposable.nextDisposable=B:G.childDisposable=B;G.tailDisposable=B};
dzg=function(G,B){var F={};AoQ(G,(F[Symbol.dispose]=B,F))};
P1=function(G){var B=gd;B&&!B.isDisposed&&(AoQ(B,G),G.parent=B)};
co6=function(G){for(var B=G.childDisposable;B;){var F=B.nextDisposable;Joc(B);B=F}G.childDisposable=void 0;G.tailDisposable=void 0};
Joc=function(G){if(!G.isDisposed){G.isDisposed=!0;var B;(B=G[Symbol.dispose])==null||B.call(G);delete G.parent;co6(G)}};
grI=function(G){var B={retrieve:function(F){switch(F.\u0275prov.token){case Tgg.\u0275prov.token:var D=G.asyncDeps;break;case M68.\u0275prov.token:D=G.rootElement;break;case I8o.\u0275prov.token:D=G.modelRootElement;break;case V6U.\u0275prov.token:D=G.appContext;break;case f8I.\u0275prov.token:D=G.rendererData;break;case t6I.\u0275prov.token:D=G.injectingConstructor;break;case vrg.\u0275prov.token:D=G.dispatcher}if(D)F=D;else a:{for(D=B.parent;D;){var u=D;if(u.retrieve){F=u.retrieve(F);break a}D=
D.parent}D=F.\u0275prov.token;u=ZuQ[D];u!==void 0?F=u:(u=F.\u0275prov.providedIn,F.\u0275prov.factory?(F=F.\u0275prov.factory(),D&&u==="root"&&(ZuQ[D]=F)):F=eZQ)}return F}};
P1(B);return B};
SOM=function(G){if(typeof document!=="undefined"&&document&&document.getElementById&&(G=document.getElementById(G))){var B=G.tagName.toUpperCase();if(B=="SCRIPT"||B=="LINK")return G}return null};
xzU=function(G,B){if((G=G===void 0?"":G)&&B)throw Error("ub");var F="";var D=_.Fz._F_jsUrl;(G=B||SOM(G))&&(F=G.src?G.src:G.getAttribute("href"));if(D&&F){if(D!=F)throw Error("vb`"+D+"`"+F);F=D}else F=D||F;if(!sBl(F))throw Error("wb");return F};
iZl=function(){if(!Pic){Pic=!0;try{var G=xzU(_.Fz._F_jsUrl?"":"base-js")}catch(D){return}var B=GAg(BaL(G)),F=Object.keys(B);F.length!==0&&MES(function(D){for(var u=_.C(F),R=u.next();!R.done;R=u.next()){R=R.value;for(var N=_.C(Object.keys(B[R])),y=N.next();!y.done;y=N.next())D.addExtraEdge(R,y.value)}})}};
DIc=function(){var G=Object.assign({},FXM);Object.getOwnPropertyNames(FXM).forEach(function(B){GM[B]!==void 0&&(G[B]=GM[B])});
return G};
u0Q=function(G,B){if(GM.enablePerformanceTiming){var F,D;(D=(F=performance).mark)==null||D.call(F,G+"Start__"+B)}};
RIJ=function(G,B){if(GM.enablePerformanceTiming){var F,D;(D=(F=performance).measure)==null||D.call(F,G+"__"+B,G+"Start__"+B)}};
w$s=function(G,B,F){var D;return G&&B?G+"__"+B:(D=G!=null?G:B)!=null?D:F};
Nas=function(G){var B=Object.create(CZz);B.debugName=G;!gd||P1(B);return B};
ybS=function(G,B){var F=Nas(B);B=SV(F);try{G(F)}finally{SV(B)}return function(){return void Joc(F)}};
lSg=function(G){return BN(G)&&n2S in G};
UI6=function(G){for(G=G===void 0?gd:G;G;){if(lSg(G))return G;var B=void 0;G=(B=G.parent)!=null?B:null}return null};
qzz=function(G,B){return Object.is(G,B)};
Fe=function(G){var B=iC;iC=G;return B};
hIl=function(G){if(uC)throw Error("$");if(iC!==null){var B=iC.producersTail;if(B===void 0||B.producer!==G){var F=void 0,D=iC.recomputing;if(D&&(F=B!==void 0?B.nextProducer:iC.producers,F!==void 0&&F.producer===G)){iC.producersTail=F;F.lastReadVersion=G.version;return}var u=G.consumersTail,R;if(!(R=u===void 0||u.consumer!==iC)){if(D){a:{R=iC;D=R.producersTail;if(D!==void 0){R=R.producers;do{if(R===u){D=!0;break a}if(R===D)break;R=R.nextProducer}while(R!==void 0)}D=!1}D=!D}R=D}R&&(D=R7(iC),F={producer:G,
consumer:iC,nextProducer:F,prevConsumer:u,lastReadVersion:G.version,nextConsumer:void 0},iC.producersTail=F,B!==void 0?B.nextProducer=F:iC.producers=F,D&&E28(G,F))}}};
CE=function(G){if(!R7(G)||G.dirty)if(G.dirty||G.lastCleanEpoch!==wT)(G.producerMustRecompute(G)||KX6(G))&&G.producerRecomputeValue(G),G.dirty=!1,G.lastCleanEpoch=wT};
aSJ=function(G){if(G.consumers!==void 0){var B=uC;uC=!0;try{for(var F=G.consumers;F!==void 0;F=F.nextConsumer){var D=F.consumer;D.dirty||(G=void 0,D.dirty=!0,aSJ(D),(G=D.consumerMarkedDirty)==null||G.call(D,D))}}finally{uC=B}}};
mIs=function(){var G;return((G=iC)==null?void 0:G.consumerAllowSignalWrites)!==!1};
X$M=function(G){G&&(G.producersTail=void 0,G.recomputing=!0);return Fe(G)};
jug=function(G){G.recomputing=!1;var B=G.producersTail,F=B!==void 0?B.nextProducer:G.producers;if(F!==void 0){if(R7(G)){do F=Quo(F);while(F!==void 0)}B!==void 0?B.nextProducer=void 0:G.producers=void 0}};
KX6=function(G){for(G=G.producers;G!==void 0;G=G.nextProducer){var B=G.producer,F=G.lastReadVersion;if(F!==B.version)return!0;CE(B);if(F!==B.version)return!0}return!1};
E28=function(G,B){var F=G.consumersTail,D=R7(G);F!==void 0?(B.nextConsumer=F.nextConsumer,F.nextConsumer=B):(B.nextConsumer=void 0,G.consumers=B);B.prevConsumer=F;G.consumersTail=B;if(!D)for(G=G.producers;G!==void 0;G=G.nextProducer)E28(G.producer,G)};
Quo=function(G){var B=G.producer,F=G.nextProducer,D=G.nextConsumer,u=G.prevConsumer;G.nextConsumer=void 0;G.prevConsumer=void 0;D!==void 0?D.prevConsumer=u:B.consumersTail=u;if(u!==void 0)u.nextConsumer=D;else if(B.consumers=D,!R7(B))for(G=B.producers;G!==void 0;)G=Quo(G);return F};
R7=function(G){return G.consumerIsAlwaysLive||G.consumers!==void 0};
rbL=function(G){var B=Object.create(LXU);B.computation=G;G=function(){CE(B);hIl(B);if(B.value===nE)throw B.error;return B.value};
G[lC]=B;return G};
OZo=function(G,B){var F=Object.create(WXz);F.value=G;B!==void 0&&(F.equal=B);G=function(){hIl(F);return F.value};
G[lC]=F;return[G,function(D){return HZz(F,D)},
function(D){mIs()||kAU(F);HZz(F,D(F.value))}]};
HZz=function(G,B){mIs()||kAU(G);if(!G.equal(G.value,B)){G.value=B;G.version++;wT++;aSJ(G);var F;(F=eIQ)==null||F(G)}};
zIL=function(G,B,F){var D=Object.create($IJ);D.source=G;D.computation=B;F!=void 0&&(D.equal=F);G=function(){CE(D);hIl(D);if(D.value===nE)throw D.error;return D.value};
G[lC]=D;return G};
_.U4=function(G){var B=Fe(null);try{return G()}finally{Fe(B)}};
bZS=function(G,B){u0Q("signalSet",B.debugName);try{G()}finally{RIJ("signalSet",B.debugName)}};
VmQ=function(G,B,F){G=OZo(G,B.equals);var D=G[0],u=D[lC];u.debugName=w$s(B.debugName,F,"[signal]");if(!GM.enablePerformanceTiming)return G;var R=G[1],N=G[2];return[D,function(y){bZS(function(){return void R(y)},u)},
function(y){bZS(function(){return void N(y)},u)}]};
_.qg=function(G,B,F){return VmQ(G,B!=null?B:{},F===void 0?"":F)};
o2o=function(G,B){var F=_.C(_.qg(G,void 0,"cPpJzc"));G=F.next().value;F=F.next().value;G[v2I]=F;G[E4]=B;return G};
MmI=function(G){return!!G&&typeof G==="object"&&Object.getPrototypeOf(G)===Object.prototype};
p$8=function(G){return typeof G==="function"&&v2I in G&&typeof G[v2I]==="function"};
YzL=function(G){if(h0(G))return G.map(function(u){return YzL(u)});
if(MmI(G)){var B={};G=_.C(Object.entries(G));for(var F=G.next();!F.done;F=G.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;B[F]=YzL(D)}return B}return p$8(G)?G():G};
Abg=function(G,B){Object.defineProperty(G,E4,{get:function(){return B}})};
KE=function(G,B){if(h0(G)){var F=G.map(function(R){return KE(R,B)});
Abg(F,B);return F}if(MmI(G)){F={};G=_.C(Object.entries(G));for(var D=G.next();!D.done;D=G.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;F[D]=KE(u,B)}Abg(F,B);return F}return o2o(G,B)};
NSJ=function(){var G={height:0,width:0};if(!MmI(G))throw Error("Lb");var B=Symbol("Mb");return[KE(G,B),function(F,D){if(F[E4]===B)if(typeof D==="function"){var u=[].concat(_.gi(YzL(F)));D=D(u)||u;dIl(F,[].concat(_.gi(D)))}else dIl(F,D);else throw Error("Nb");}]};
dIl=function(G,B){if(p$8(G))G[v2I](B);else if(h0(G)&&h0(B))B=KE(B,G[E4]),G.length=0,G.push.apply(G,_.gi(B));else if((MmI(G)||h0(G))&&(h0(B)||typeof B==="object"&&B!==null)){B=_.C(Object.entries(B));for(var F=B.next();!F.done;F=B.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;var u=G,R=u[F];Object.hasOwn(G,F)?dIl(R,D):u[F]=KE(D,G[E4])}}else throw Error("Ob");};
yAc=function(G){return Object.create(Object.assign({},a7,G))};
lNl=function(){var G;return(G=nbl)!=null?G:nbl=yAc({consumerAllowSignalWrites:!0})};
_.mS=function(G,B,F){F=F===void 0?"":F;G=rbL(G);var D=G[lC];D.debugName=w$s(B==null?void 0:B.debugName,F,"[computed]");(B==null?void 0:B.equals)!=null&&(D.equal=B.equals);return G};
Xe=function(G){var B=Fe(U06);try{G()}finally{Fe(B)}};
q2I=function(G){return BN(G)&&G.name!==void 0&&G.isReactive!==void 0&&G.parent!==void 0};
hfI=function(G,B,F){var D=EbM(G);QI={name:F?D+" ("+F+")":D,isReactive:G.componentType!==j2,parent:QI};G=B();QI=QI.parent;return G};
LE=function(){var G=QI;return G?G.isReactive:!1};
WN=function(G,B,F){var D=QI;B&&(QI=B);try{return F==null?G():G.call(F)}catch(R){G=R;rT(G,QI);if(G!==KjL){aN6=QI;B=[];for(F=gd;F;){var u=void 0;B.push((u=F.debugName)!=null?u:"[context]");u=void 0;F=(u=F.parent)!=null?u:null}m0J=B.reverse()}KjL=G;throw G;}finally{QI=D}};
rT=function(G,B){try{var F=Xw8(B);if(F&&!G.componentStack&&(G.componentStack=F,GM.enableComponentStacksInErrorMessages)){var D=G.message+"\n\nComponent stack: "+F;G.stack&&(G.stack=G.stack.replace(G.message,D));G.message=D}}catch(u){}};
Qp8=function(G){for(var B=0,F="";B<20&&G;)F+="$$XID:"+G.name+"$$ > ",G=G.parent,B++;return F.slice(0,-3)};
Xw8=function(G){return q2I(G)||G===null?Qp8(G):GM.enableContextBasedComponentStacks?UI6(G).getComponentStack().slice(0,20).map(function(B){return"$$XID:"+B+"$$"}).join(" > "):""};
EbM=function(G){return G.debugName||G.name||"[component]"};
Ht8=function(G){switch(G.onInitType){case jpg:Lj8.schedule(G);break;case rAs:GM.enableQueueEffectAndOnInitInitialRuns?Wj6.enqueue(G):Wj6.schedule(G);break;default:_.BS(G.onInitType)}};
btg=function(G){if(!G.isDisposed)switch(G.effectType){case HN:kcz.schedule(G);break;case OtL:efg.schedule(G);break;case $0s:GM.enableQueueEffectAndOnInitInitialRuns||G.version!==0?zfg.enqueue(G):zfg.schedule(G);break;default:_.BS(G.effectType)}};
obl=function(){if(k0>0)GM.flushRenderEffectsDuringRender&&kcz.flush();else{for(var G=_.C(VWl),B=G.next();!B.done;B=G.next())B.value.flush();vbg()}};
vbg=function(){_.n(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);for(var B=_.C(MWS),F=B.next();!F.done;F=B.next())F.value.flush();_.di(G)})};
Y2g=function(G){O4=!0;try{for(var B=_.C(G),F=B.next();!F.done;F=B.next()){for(var D=F.value,u=[D],R=D;R.parent!==void 0;)R=R.parent,pwI(R)&&G.has(R)&&u.push(R);for(;u.length>0;){var N=u.pop();G.delete(N);N.run()}}}finally{O4=!1}};
e2=function(G){k0--;if(G){G=_.C(AAg);for(var B=G.next();!B.done;B=G.next())B.value.clear()}else k0>0||O4&&!GM.flushRenderEffectsDuringRender||obl()};
d0s=function(G,B,F){G=Object.create(G);B&&(G.fn=B);F&&(G.debugName=F);P1(G);G.componentStack=QI;return G};
JAS=function(G){if(!G.isDisposed){if(uC)throw Error("Sb");var B=SV(G);u0Q("effectRun",G.debugName);try{WN(function(){G.dirty=!1;if(!(G.version>0)||KX6(G)){G.version++;var F=X$M(G);try{G.cleanup(),G.fn()}finally{Fe(F),G&&jug(G)}}},G.componentStack,G)}catch(F){throw GM.enableContextBasedComponentStacks&&rT(F),F;
}finally{RIJ("effectRun",G.debugName),SV(B)}}};
_.zM=function(G,B){G=d0s(cA8,G,B);btg(G)};
_.bC=function(G,B){G=d0s(TSS,G,B);btg(G)};
INg=function(G){return G};
fNM=function(G,B,F){function D(){return u()}
F=F===void 0?"":F;var u=typeof G==="function"?zIL(G,INg,B==null?void 0:B.equals):zIL(G.source,G.computation,B==null?void 0:B.equals);var R=u[lC];R.debugName=w$s(B==null?void 0:B.debugName,F,"[linkedSignal]");D[lC]=R;return[D,function(N){bZS(function(){CE(R);HZz(R,N);R.dirty=!1;R.lastCleanEpoch=wT},R)},
function(N){bZS(function(){CE(R);mIs()||kAU(R);HZz(R,N(R.value));R.dirty=!1;R.lastCleanEpoch=wT},R)}]};
_.VI=function(G){var B=gd;if(B){var F=QI;dzg(B,function(){var D=Fe(lNl());try{WN(function(){return void G()},F)}catch(u){throw GM.enableContextBasedComponentStacks&&rT(u),u;
}finally{Fe(D)}})}};
vN=function(G,B){var F={};(B===void 0||B)&&P1(F);B=SV(F);try{G(F)}finally{SV(B)}return function(){return void Joc(F)}};
_.Mg=function(G){return typeof G==="function"?G():(G==null?0:G[tWS])?G.get():G};
Zt6=function(G){if(gd)throw Error("pb");vN(G,!1)};
pE=function(G,B){G=SV(G);try{return _.U4(B)}finally{SV(G)}};
Y0=function(G,B){var F=Xw8(aN6),D,u;var R=(u=(D=m0J)==null?void 0:D.slice())!=null?u:[];B={componentStack:F,contextTrace:R,errorSeverity:3,featureFlags:DIc(),tagName:B};return[G,B]};
sp8=function(G,B,F){if(Object.hasOwnProperty.call(gb8,G)&&(G=gb8[G],Object.hasOwnProperty.call(G,B)&&(G=G[B],G instanceof Array))){for(var D=null,u=!1,R=0,N=G.length;R<N;++R){var y=G[R],U=y.contingentAttribute;if(!U)return y.contract;D===null&&(D={});U=Object.hasOwnProperty.call(D,U)?D[U]:D[U]=F(U);if(U===y.requiredValue)return y.contract;U==null&&(u=!0)}if(u)return null}B=S2s[B];return typeof B==="number"?B:null};
GNz=function(G,B,F){var D=null;(G=x0I[G])&&(D=G[B]);return typeof D!=="number"&&((G=x0I["*"])&&(D=G[B]),typeof D!=="number")?!1:!0===PsJ[D][String(F).toLowerCase()]};
ir8=function(G,B){B=sp8(G.toLowerCase(),B,function(){var D;(D=GM.handleError)==null||D.call.apply(D,[GM].concat(_.gi(Y0(Error("Vb"),G.toLowerCase()))))});
if(B===null)return null;var F;return(F=B0o[B])!=null?F:null};
F5g=function(G,B,F){if(F===null||F===void 0)return F;B=B.toLowerCase();G=ir8(G,B);return G===null?F:G(B,F)};
R2S=function(G){var B=DYU,F=G,D="",u="",R=1;G<0&&(G=-G);if(G===Infinity)G=(Infinity*Math.sign(F)).toString();else{for(var N=0;N<uhz.length;N++){var y=uhz[N];R=B[y];if(G>=R||R<=1&&G>.1*R){D=y;break}}D?(D+="B",u=" "):R=1;G=Math.round(F/R*10)/10+u+D}return G};
wzU=function(){};
Chc=function(G,B){for(;G.length>B;)G.pop()};
N0g=function(G){G=Array(G);Chc(G,0);return G};
A0=function(G,B,F){if(F==null)G.removeAttribute(B);else{var D;(D=B.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":B.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?G.setAttributeNS(D,B,F):G.setAttribute(B,F)}};
nQS=function(G,B,F){G=G.style;if(typeof F==="string")G.cssText=F;else{G.cssText="";for(var D in F)if(yUs.call(F,D)){B=G;var u=D,R=F[D];u.indexOf("-")>=0?B.setProperty(u,R):B[u]=R}}};
lHz=function(G,B,F){var D=typeof F;D==="object"||D==="function"?G[B]=F:A0(G,B,F)};
UYz=function(){var G=new wzU;G[dT.default]=lHz;G.style=nQS;return G};
q18=function(G,B,F,D){(D[B]||D[dT.default])(G,B,F)};
h2g=function(G,B,F){B=new EQJ(B,F);return G.__incrementalDOMData=B};
K58=function(G,B){if(G.__incrementalDOMData)return G.__incrementalDOMData;var F=G.nodeType===1?G.localName:G.nodeName,D=G.nodeType===1?G.getAttribute("key"):null;B=h2g(G,F,G.nodeType===1?D||B:null);if(G.nodeType===1&&(G=G.attributes,F=G.length)){D=B._attrsArr||(B._attrsArr=N0g(F*2));for(var u=0,R=0;u<F;u+=1,R+=2){var N=G[u],y=N.value;D[R]=N.name;D[R+1]=y}}return B};
aH8=function(G,B,F,D,u){return B==F&&D==u};
mYS=function(G){for(var B=J0,F=cN();F!==G;){var D=F.nextSibling;B.removeChild(F);TM.deleted.push(F);F=D}};
cN=function(){return I7?I7.nextSibling:J0.firstChild};
fE=function(){I7=cN()};
js6=function(G,B){fE();var F;a:{if(F=I7){do{var D=F,u=G,R=B,N=K58(D,R);if(Xzz(D,u,N.nameOrCtor,R,N.key))break a}while(B&&(F=F.nextSibling))}F=null}F||(G==="#text"?(G=t0.createTextNode(""),h2g(G,"#text",null)):(F=t0,D=J0,typeof G==="function"?F=new G:F=(D=G==="svg"?"http://www.w3.org/2000/svg":G==="math"?"http://www.w3.org/1998/Math/MathML":D==null||K58(D).nameOrCtor==="foreignObject"?null:D.namespaceURI)?F.createElementNS(D,G):F.createElement(G),h2g(F,G,B),G=F),TM.created.push(G),F=G);G=F;if(G!==
I7){if(Qsg.indexOf(G)>=0)for(B=J0,F=G.nextSibling,D=I7;D!==null&&D!==G;)u=D.nextSibling,B.insertBefore(D,F),D=u;else J0.insertBefore(G,I7);I7=G}};
L5g=function(G,B){js6(G,B);J0=I7;I7=null;return J0};
rUl=function(){mYS(null);I7=J0;J0=J0.parentNode};
kNo=function(G,B){B=B===void 0?{}:B;var F=B.matches===void 0?aH8:B.matches;return function(D,u,R){var N=TM,y=t0,U=Qsg,q=ZB,h=I7,K=J0,a=Xzz;t0=D.ownerDocument;TM=new W5c(D);Xzz=F;ZB=[];I7=null;var m=J0=D.parentNode,L,W=Hro.call(D);if((L=W.nodeType===11||W.nodeType===9?W.activeElement:null)&&D.contains(L)){for(W=[];L!==m;)W.push(L),L=L.parentNode||(m?L.host:null);m=W}else m=[];Qsg=m;try{return G(D,u,R)}finally{D=TM,gT&&D.deleted.length>0&&gT(D.deleted),t0=y,TM=N,Xzz=a,ZB=q,I7=h,J0=K,Qsg=U}}};
Orl=function(G,B,F,D){S2.push(q18);S2.push(G);S2.push(B);S2.push(F);S2.push(D)};
e2l=function(G){js6("#text",null);var B=I7;var F=K58(B);if(F.text!==G){F=F.text=G;for(var D=1;D<arguments.length;D+=1)F=(0,arguments[D])(F);B.data!==F&&(B.data=F)}};
M_S=function(G,B,F){if(F===!1&&$Yo.has(B))A0(G,B,null);else if(B!=="idomKey"&&B!=="skip"&&B!=="skipchildren"&&B!=="children"&&B!=="el")if(B.startsWith("on")){if(B[2]!==":")throw Error("Ub`"+B);if(F===void 0||F===null){var D;(D=GM.handleError)==null||D.call.apply(D,[GM].concat(_.gi(Y0(Error("Zb`"+B),G.tagName))));G[B]=void 0}else{var u=B.slice(3);D=LE();if(u==="jsaction"){F=Array.isArray(F)?F:[F];F=_.C(F);for(var R=F.next();!R.done;R=F.next()){R=R.value;if(typeof R!=="object"||R===null||typeof R.selfReg!==
"function")throw Error("bc`"+B);R.selfReg(0,G,D?_.VI:function(){})}}else{if(typeof F!=="object"||F===null)throw Error("$b`"+B+"`"+typeof F);
if(typeof F.getFn!=="function")throw Error("ac`"+B+"`"+Object.keys(F));if(F.selfReg)F.selfReg(0,G,u,D?_.VI:function(){});
else if(D&&G["on"+u]===void 0){var N=F.getFn(0);G.addEventListener(u,N);_.VI(function(){return void G.removeEventListener(u,N)})}else if(D||!z2J.includes(u))G["on"+u]=F.getFn(0)}}}else{if(B.startsWith("data-")&&typeof F==="string")try{F=brJ(F)}catch(y){F="zSoyz"}typeof F!=="function"||G._disposeEffects!=null?((D=B.startsWith("prop:"))&&(B=B.slice(5)),GM.enableAttributeSanitization&&(D&&V_M(G.tagName)||(F=F5g(G.tagName,B,F))),B==="style"?("function"==typeof _.s4&&F instanceof _.s4&&(F=F.toString()),
vQI(G,B,F)):D?G[B]=F:oQM(G,B,F)):(G._signalProps||(G._signalProps=[]),G._signalValues||(G._signalValues=[]),G._signalProps.push(B))}};
pzz=function(G,B,F){F=(F===void 0?{}:F).isReactive;if(B==null?0:B.el){var D=B.el,u;(u=D.onRender)==null||u.call(D,G);G._disposeRef||(G._disposeRef=function(){var R;(R=D.onUnmount)==null||R.call(D);delete G._disposeRef},F&&_.VI(function(){var R;
(R=G._disposeRef)==null||R.call(G)}))}};
V_M=function(G){return G.length>0&&G.includes("-")&&!Y18.includes(G.toLowerCase())};
AUM=function(G){return BN(G)&&x0 in G};
dYJ=function(G){return AUM(G)?G[x0].flattened:G};
JUJ=function(G,B){var F=_.xS.apply(2,arguments),D;B=(D=B)!=null?D:{};D={};return D.type=G,D.props=B,D.children=F,D[PN]=!0,D};
_.GJ=function(G){return G.children};
B5=function(G){var B=cUs!==JUJ;cUs=G?T08:JUJ;return B};
i9=function(G){return _.Zc(G)?"nodeType"in G:!1};
Fm=function(){return document.createTextNode("")};
DA=function(G){G=document.createTextNode(String(G));G._isSignalTextNode=!0;return G};
fHs=function(G){return G!=null&&G.contentKind===u9||G instanceof BY||IHg(G)};
t_z=function(G){var B=document.createElement("div");if(IHg(G)&&wQU(G))_.qm(B,wQU(G));else if(G instanceof BY)_.qm(B,G);else if(G!=null&&G.contentKind===u9){if(G.contentKind!==u9)throw Error("Yb");G=i5(G.toString());_.qm(B,G)}G=_.C(B.childNodes);for(var F=G.next();!F.done;F=G.next())F.value._isSafeOrSanitizedHtmlNode=!0;return B};
Rn=function(G){G=typeof G;return G==="string"||G==="number"||G==="boolean"};
Zrg=function(G){return G instanceof M3||IM(G)||G instanceof KI||"function"==typeof _.s4&&G instanceof _.s4};
gQS=function(G,B){var F=G.parentElement;if(!F)return B;F.replaceChild(B,G);return B};
S1J=function(G,B){var F=G[0].parentElement;if(F)if(G[0].previousSibling||G[G.length-1].nextSibling){F.insertBefore(B,G[0]);for(var D=G.length-1;D>=0;D--)F.removeChild(G[D])}else F.textContent="",F.appendChild(B);return B};
ssI=function(G,B){if(G[0].parentElement)for(var F=G[0].parentElement,D=B.length,u=G.length,R=D,N=0,y=0,U=G[u-1].nextSibling,q=null;N<u||y<R;)if(G[N]===B[y])N++,y++;else{for(;G[u-1]===B[R-1];)u--,R--;if(u===N)for(var h=R<D?y?B[y-1].nextSibling:B[R-y]:U;y<R;){var K=B[y++];F.insertBefore(K,h)}else if(R===y)for(;N<u;)h=G[N],q&&q.has(h)||F.removeChild(h),N++;else if(G[N]===B[R-1]&&B[y]===G[u-1])h=G[--u].nextSibling,F.insertBefore(B[y++],G[N++].nextSibling),F.insertBefore(B[--R],h),G[u]=B[R];else{if(!q)for(q=
new Map,h=y;h<R;)q.set(B[h],h++);h=q.get(G[N]);if(h==null)F.removeChild(G[N]),N++;else if(y<h&&h<R){K=N;for(var a=1,m=void 0;++K<u&&K<R&&(m=q.get(G[K]))!=null&&m===h+a;)a++;if(a>h-y)for(K=G[N];y<h;)F.insertBefore(B[y++],K);else F.replaceChild(B[y++],G[N++])}else N++}}return B};
Pho=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("lc`"+G.length+"`"+G.map(xYs).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof _.Nm)){var B,F;if((B=window)==null?0:(F=B.trustedTypes)==null?0:F.isScript(G))throw Error("kc");if(String(G).trim().length===0)return null;throw Error("mc`"+xYs(G));}return G};
G1g=function(G,B){B=Pho(B);B!==null&&_.l5(G,B)};
BsQ=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("nc`"+G.length+"`"+G.map(xYs).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof KI)){if(String(G).trim().length===0)return null;throw Error("oc`"+xYs(G));}return G};
iil=function(G,B){B=BsQ(B);B!==null&&(G.textContent=Vl8(B))};
xYs=function(G){return"("+typeof G+") "+(G!=null&&typeof G==="object"?G.constructor.name:typeof G)+" "+G};
FV8=function(){};
nH=function(G,B){B=B===void 0?{}:B;var F=DWs(),D=!0,u,R=!!GM.legacyTriggerSoyRendererEvents;R&&(u=orU());_.zM(function(){var N=!D&&B.isControlFlowComponent&&R,y=N?F[x0].flattened[0].parentElement:void 0;D=!1;wn.setUp();B.isControlFlowComponent&&k0++;var U=F[0],q=F[x0].flattened,h=B5(!0);try{var K=G(),a=uKg(U,K,F);Array.isArray(a)||(F[x0].flattened=[a]);var m=F[x0].flattened;if(q&&(!Array.isArray(q)||q.length!==0)){var L=Array.isArray(q)?q[0]:q,W=L[yc],e=L._disposeEffects;L._disposeEffects=void 0;
L=Array.isArray(m)?m[0]:m;L[yc]=W;L[yc]&&(L[yc].numNodes=L===m?1:m.length);L._disposeEffects=e}F[0]=a;B.isControlFlowComponent&&e2(!1)}catch(b){throw B.isControlFlowComponent&&e2(!0),b;}finally{B5(h),wn.tearDown()}N&&(N=u,N!=null||(N=_.OuU(document).getAppContext()),N.get(R78).JSC$30115_getEventTarget().dispatchEvent(new wZI(C2c,y,u9)))},B.debugName);
return F};
uKg=function(G,B,F){for(;typeof B==="function";)B=B();if(B!=null&&B[PN]){var D,u,R;(R=GM.handleError)==null||R.call.apply(R,[GM].concat(_.gi(Y0(Error("pc`"+((D=B.type)==null?void 0:D.TAG_NAME)),(u=B.type)==null?void 0:u.TAG_NAME))))}if(G==null)return B==null?Fm():Rn(B)?DA(B):Zrg(B)?DA(B.toString()):i9(B)?B:B.length===0?Fm():Nss(B,F);if(i9(G)){if(B==null)return gQS(G,Fm());if(Rn(B))return yLc(G,B);if(Zrg(B))return yLc(G,B.toString());if(i9(B))return gQS(G,B);if(B.length===0)return gQS(G,Fm());B=Nss(B,
F);ssI([G],F[x0].flattened);return B}G=l9(G);if(B==null)return S1J(G,Fm());if(Rn(B))return S1J(G,DA(B));if(Zrg(B))return S1J(G,DA(B.toString()));if(i9(B))return ssI(G,[B])[0];if(B.length===0)return S1J(G,Fm());B=Nss(B,F);ssI(G,F[x0].flattened);return B};
yLc=function(G,B){G.nodeType===Node.TEXT_NODE?G.textContent!==String(B)&&(G.textContent=String(B)):G=gQS(G,DA(B));return G};
l9=function(G,B,F){return nyS(G,B!=null?B:[],F===void 0?!1:F)};
Nss=function(G,B){var F=l9(G,void 0,!0);if(F.length===0)return Fm();B[x0].flattened=F;return G};
nyS=function(G,B,F,D,u){B=B===void 0?[]:B;F=F===void 0?!1:F;u=u===void 0?-1:u;if(G==null)return B;if(G instanceof UD){var R=G.render();return nyS(R,B,F,D,u)}if(i9(B)&&B.nodeType===Node.ELEMENT_NODE)switch(B.tagName){case "SCRIPT":G1g(B,G);return;case "STYLE":iil(B,G);return}Rn(G)&&(G=DA(G),D&&F&&(D[u]=G));if(fHs(G)){F=t_z(G);F=Array.from(F.childNodes);F=_.C(F);for(R=F.next();!R.done;R=F.next())lLz(B,R.value);return B}Zrg(G)&&(G=DA(G.toString()),D&&F&&(D[u]=G));if(i9(G))return lLz(B,G);if(Array.isArray(G)){for(R=
0;R<G.length;R++)nyS(G[R],B,F,G,R);return B}if(typeof G==="function"){R=nH(function(){var y=G();return y!=null&&!Rn(y)&&fHs(y)?(y=t_z(y),Array.from(y.childNodes)):y},{debugName:"qmF2ne",
debugFn:G})[0];if(Array.isArray(R)){F=_.C(R);for(R=F.next();!R.done;R=F.next())lLz(B,R.value);return B}D&&F&&(D[u]=R);return lLz(B,R)}if(G!=null&&G[PN]){D=G;u=B5(!0);var N=cUs;try{R=N.apply(null,[D.type,D.props].concat(_.gi(D.children)))}finally{B5(u)}return nyS(R,B,F)}(N=GM.handleError)==null||N.call.apply(N,[GM].concat(_.gi(Y0(Error("qc")))));return B};
DWs=function(G){var B={};B=Object.assign([],(B[x0]={flattened:[]},B));if(!G)return B;B[0]=Nss(G,B);return B};
lLz=function(G,B){Array.isArray(G)?G.push(B):G.appendChild(B);return G};
qn=function(G){if(!GM.enableLazyTsx)return G;if(Array.isArray(G)){for(var B=0;B<G.length;B++)G[B]=qn(G[B]);return G}return G instanceof UD?(G=G.render(),qn(G)):G};
qwQ=function(G,B){var F,D,u=EbM(G),R=function(m){D=m;m=B5(!0);var L=Fe(ED);u0Q("render",u);try{F=qn(G(B))}finally{RIJ("render",u),Fe(L),B5(m)}};
R=GM.enableContextPerComponent?ybS(R,u):vN(R,GM.alwaysTrackContexts||!!gd);lSg(D);if(!B.renderedFromIdom){var N=SV(D);try{return UWz(G,B,F),F}finally{SV(N)}}!AUM(F)&&Array.isArray(F)&&(F=DWs(F));var y=dYJ(F);N=Array.isArray(y)?y[0]:y;var U=!1;if(N){var q,h=(q=B==null?void 0:B.idomKey)!=null?q:G;q=y!==N;N._disposeEffects=R;var K=N[yc]||{},a=AUM(F)?F:K.sourceDynamicRange;Object.assign(K,{key:h,numNodes:q?y.length:1,context:D,higherOrder:!!N[yc],sourceDynamicRange:a});N[yc]=K}else U=!0;(function(){var m=
SV(D);try{UWz(G,B,y)}finally{SV(m)}})();
U&&R();return F};
EyM=function(G){var B={},F;for(F in G)B={prev$jscomp$24:void 0,next$jscomp$34:void 0},B.prev$jscomp$24=he[F],B.next$jscomp$34=G[F],he[F]=function(D){return function(){var u=_.xS.apply(0,arguments);D.prev$jscomp$24.apply(null,_.gi(u));D.next$jscomp$34.apply(null,_.gi(u))}}(B)};
h7M=function(){if(LE())throw Error("rc");return KH};
KVo=function(G,B){if(!G.__unmounted&&B){G.__unmounted=!0;try{G.didUnmount()}catch(u){var F,D;(D=GM.handleError)==null||D.call.apply(D,[GM].concat(_.gi(Y0(u,(F=G.__type)==null?void 0:F.TAG_NAME))))}he.didUnmount(G);G.el=null;B.__instance&&delete B.__instance}};
mWo=function(G,B,F){G._signalProps!=null&&G._disposeEffects==null&&((F===void 0?0:F)?G._disposeEffects=vN(function(){return void aLg(G,B)},GM.alwaysTrackContexts||!!gd):aLg(G,B))};
aLg=function(G,B){_.zM(function(){for(var F=G._signalProps,D=G._signalValues,u=0;u<F.length;u++){var R=F[u],N=B[R]();D[u]!==N&&(D[u]=N,M_S(G,R,N))}},"e3YVbb")};
XZl=function(G,B,F){var D,u=[];G._disposeEffects=vN(function(){_.zM(function(){var R=F();if(R===null||R===void 0)R="";if(Rn(R)||R===null)D!=null||(D=document.createTextNode("")),D.parentNode!==G&&(D._isSignalTextNode=!0,G.insertBefore(D,B)),D.textContent=String(R);else if(fHs(R)){for(var N=u.length>0?u[u.length-1].nextSibling:B,y=_.C(u),U=y.next();!U.done;U=y.next())G.removeChild(U.value);R=t_z(R);u=Array.from(R.childNodes);R=_.C(u);for(y=R.next();!y.done;y=R.next())G.insertBefore(y.value,N)}else throw U=
(y=(N=QI)==null?void 0:N.name)!=null?y:"unknown",Error("gc`"+U+"`"+typeof R);},"VvDgC")},GM.alwaysTrackContexts||!!gd)};
LVz=function(G,B){var F=_.xS.apply(2,arguments);B!=null||(B={});return!GM.enableLazyTsx||QI!=null&&!LE()?Qal(G,B,F):new jac(G,B,F)};
Qal=function(G,B,F){if(G===_.GJ)return F;if(typeof G==="function")return QI&&!LE()&&(B.renderedFromIdom=!0),hfI(G,function(){F.length>0&&(B.children=F.length===1?F[0]:F);if(G.componentType===j2){var R;ybS(function(){var N=B;if(G.componentType!==j2)R=!1;else{N||(N={});var y=new an(N,G),U=Fe(ED);try{var q=y.render(N)}finally{Fe(U)}q instanceof HTMLElement?(q.__instance=y,y.el=q,y.__type=G,G.TAG_NAME=q.tagName.toLowerCase(),he.didPatch(y),R=q):R=q}},G.name);
if(R)return R}return qwQ(G,B)},B.debugInstance);
var D=rLS(G,B),u;for(u in B)M_S(D,u,B[u]);mWo(D,B);l9(F,D);pzz(D,B,{isReactive:!0});WVU(D,B);return D};
rLS=function(G,B){G=(HiS.has(G.toLowerCase())?0:k1g.has(G.startsWith("svg:")?G.replace("svg:",""):G))?document.createElementNS("http://www.w3.org/2000/svg",G.startsWith("svg:")?G.replace("svg:",""):G):Oil(G,B)||document.createElement(G);G[e7s]=!0;return G};
$Wc=function(G){if(G){var B;(B=G._disposeRef)==null||B.call(G);var F;(F=G._disposeEffects)==null||F.call(G);G.__instance&&G.__instance instanceof md&&(B=G.__instance,KVo(B,G),B instanceof an&&B.disposeEffects());for(B=0;B<G.childNodes.length;B++)$Wc(G.childNodes[B])}};
bi8=function(G){z78.push(G)===1&&requestAnimationFrame(function(){setTimeout(function(){var B=[].concat(_.gi(z78));z78=[];B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;try{for(var D=0;D<F.length;D++)$Wc(F[D])}catch(u){D=F=void 0,(D=(F=GM).handleError)==null||D.call.apply(D,[F].concat(_.gi(Y0(u))))}}})})};
_.l=function(G,B){return cUs.apply(null,[G,B].concat(_.gi(_.xS.apply(2,arguments))))};
_.Xm=function(G){return G};
_.Qc=function(G){return{isDefault:!0,children:G.children}};
_.E=function(G){var B=G.cond;if(B===void 0)return G.else&&G.else();var F=_.mS(function(){return!!B()},void 0,"JHVi8"),D=function(){var R=B();
if(!R){var N;(N=GM.handleError)==null||N.call.apply(N,[GM].concat(_.gi(Y0(Val.nonNullableCondIsNull()))))}return R},u;
return nH(function(){var R=F(),N;vN(function(){var y=Fe(ED);try{N=qn(R?G.then(D):G.else&&G.else())}finally{Fe(y)}},!0);
return N},{debugName:(u=G.debugInstance)!=null?u:"RlDudd",
debugFn:G.then,isControlFlowComponent:!0})};
vyJ=function(G){return _.E(G)};
_.jR=function(G){return G.keyBy==="INDEX"?oyz(G):MaS(G)};
pZS=function(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next()){var F=void 0;(F=B.value)==null||F()}};
MaS=function(G){var B=G.keyBy===void 0||G.keyBy==="REFERENCE",F=B?function(K){return K}:G.keyBy,D=[],u=[],R=[],N=[],y=[],U=[],q=!0;
_.VI(function(){pZS(N)});
var h;return nH(function(){var K=YwL(G),a=K.length;if(a===0){if(D.length===0&&!q)return R;pZS(N);D=K;u=[];for(K=0;K<D.length;K++)u.push(F(D[K]));R=[];N=[];y=[];U=[];G.fallback&&(N[0]=ALI(function(){R[0]=qn(G.fallback())}));
q=!1;return R}for(var m=new dWJ,L=D.length-1;L>=0;L--)m.push(u[L],L);L=Array(a);for(var W=Array(a),e=Array(a),b=Array(a),M=Array(B?0:a),t={i$jscomp$453:0};t.i$jscomp$453<a;t={i$jscomp$453:t.i$jscomp$453,item$jscomp$104:void 0,key$jscomp$565:void 0},t.i$jscomp$453++){t.item$jscomp$104=K[t.i$jscomp$453];t.key$jscomp$565=F(t.item$jscomp$104);var T=m.pop(t.key$jscomp$565);T!=null?(e[t.i$jscomp$453]=R[T],W[t.i$jscomp$453]=u[T],L[t.i$jscomp$453]=N[T],b[t.i$jscomp$453]=y[T],B||(M[t.i$jscomp$453]=U[T]),Xe(function(A){return function(){b[A.i$jscomp$453](A.i$jscomp$453);
if(!B)M[A.i$jscomp$453](A.item$jscomp$104)}}(t)),delete N[T]):L[t.i$jscomp$453]=ALI(function(A){return function(){var Z=_.C(_.qg(A.i$jscomp$453,void 0,"Fqk1zd")),P=Z.next().value;
Z=Z.next().value;b[A.i$jscomp$453]=Z;W[A.i$jscomp$453]=A.key$jscomp$565;if(B)e[A.i$jscomp$453]=qn(G.children(A.item$jscomp$104,P));else{var RI=_.C(_.qg(A.item$jscomp$104,void 0,"GBj5de"));Z=RI.next().value;RI=RI.next().value;M[A.i$jscomp$453]=RI;e[A.i$jscomp$453]=qn(G.children(Z,P))}}}(t))}pZS(N);
D=K;u=W;R=e;N=L;y=b;U=M;q=!1;return e},{debugName:(h=G.debugInstance)!=null?h:"nsTGHd",
debugFn:G.each,isControlFlowComponent:!0})};
oyz=function(G){var B=[],F=[],D=[],u=[],R=!1;_.VI(function(){pZS(u)});
var N;return nH(function(){var y=YwL(G);R&&y.length>0&&(u.pop()(),B.pop(),R=!1);for(var U=Array(y.length),q={i$jscomp$454:0};q.i$jscomp$454<y.length;q={i$jscomp$454:q.i$jscomp$454},q.i$jscomp$454++)if(q.i$jscomp$454<B.length)B[q.i$jscomp$454]!==y[q.i$jscomp$454]&&(Xe(function(K){return function(){return void F[K.i$jscomp$454](y[K.i$jscomp$454])}}(q)),B[q.i$jscomp$454]=y[q.i$jscomp$454]),U[q.i$jscomp$454]=D[q.i$jscomp$454];
else{var h=ALI(function(K){return function(){B[K.i$jscomp$454]=y[K.i$jscomp$454];var a=_.C(_.qg(y[K.i$jscomp$454],void 0,"JMMLmd")),m=a.next().value;a=a.next().value;F[K.i$jscomp$454]=a;U[K.i$jscomp$454]=qn(G.children(m,K.i$jscomp$454))}}(q));
u[q.i$jscomp$454]=h}for(;B.length>y.length;)B.pop(),u.pop()(),F.pop();y.length===0&&!R&&G.fallback&&(q=ALI(function(){U[0]=qn(G.fallback())}),u[0]=q,R=!0);
return D=U},{debugName:(N=G.debugInstance)!=null?N:"nsTGHd",
isControlFlowComponent:!0})};
YwL=function(G){G=G.each();return Array.isArray(G)?G:Array.from(G)};
ALI=function(G){var B=gd;return vN(function(F){var D=Fe(ED);try{F.parent=B,G(F)}finally{Fe(D)}},!1)};
_.LH=function(G){var B=JLS(G),F=_.mS(function(){return cLL(B)},void 0,"F1PF4"),D;
return nH(function(){var u=F(),R;vN(function(){var N=Fe(ED);try{R=qn(u())}finally{Fe(N)}});
return R},{debugName:(D=G.debugInstance)!=null?D:"vI1rtf",
isControlFlowComponent:!0})};
JLS=function(G){G=G.children;return Array.isArray(G)?G:[G]};
TsQ=function(G){var B=G.props;G=G.getChildren()[0];return B.when?{when:B.when,children:G}:{isDefault:!0,children:G}};
cLL=function(G){var B=function(){return null};
G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F!=null&&F[PN]&&(F=F.type===_.Qc?{isDefault:!0,children:F.children[0]}:{when:F.props.when,children:F.children[0]}),F instanceof UD&&(F=TsQ(F)),F.isDefault)B=F.children;else if(F.when())return F.children;return B};
ILL=function(G){var B=null,F,D={get value(){var R,N;(N=(R=u).validateGetValue)==null||N.call(R);return u.__value},set value(R){var N,y;(y=(N=u).validateSetValue)==null||y.call(N,R);u.__value=R;u.__hasBeenSet=!0}},u=(D.__value=null,D.__hasBeenSet=!1,D.__hasErrored=!1,D.onRender=function(R){if(F&&R!==F){F._disposeRef=void 0;var N;(N=B)==null||N()}F=R;B=G(R)||null},D.onUnmount=function(){var R;
(R=B)==null||R();B=u.value=null},D[poL]=!0,D);
return u};
rn=function(G){return typeof G==="symbol"};
taI=function(G){var B=h7M();if(B==null)throw fLJ.PRIMITIVE_INVALID_HOOK_CALL();var F=B.hookCounter++;B.hooks||(B.hooks=[]);var D=B.hooks;D[F]||(D[F]={key:G,host:B});if(G!==D[F].key){if(B.__type){var u;G=(u=B.__type)==null?void 0:u.name}else G=B instanceof an?EbM(B.functionComponent):"<"+B.el.tagName.toLowerCase()+">";throw fLJ.OUT_OF_ORDER_HOOK_CALL(G);}return D[F]};
Zil=function(G,B){return!G||G.length!==(B==null?void 0:B.length)||G.some(function(F,D){return F!==B[D]})};
gyc=function(G,B){if(LE())return G();var F=taI("useMemoInternal");Zil(F.deps,B)&&(F.deps=B,F.value=G());return F.value};
Swz=function(G,B){return gyc(G,B)};
_.W5=function(G,B){return sag(G,!1,B)};
_.H5=function(G,B){return sag(G,!0,B)};
sag=function(G,B,F){return LE()?xWL(G,B,F):P2Q(G,B,F)};
P2Q=function(G,B,F){return gyc(function(){return xWL(G,B,F)},[])};
xWL=function(G,B,F){var D=ILL(function(u){D.value=u;var R=function(){var N=Fe(null);try{return F==null?void 0:F(u)}finally{Fe(N)}}();
return function(){R==null||R()}});
D.__expectedTagName=G;D.__optional=B;D.isIdom=!LE();return D};
G78=function(G,B){var F;B=vN(function(){var D=B5(!0);k0++;try{F=l9(G()),e2(!1)}catch(u){throw e2(!0),u;}finally{B5(D)}},B===void 0?!1:B);
return[F,B]};
_.kf=function(G,B,F){F!=null||(F={});F=F.appContext;var D=!!GM.legacyTriggerSoyRendererEvents;wn.setUp();try{var u=B5g(G,B,F);D&&(B=F,B!=null||(B=_.OuU(document).getAppContext()),B.get(R78).JSC$30115_getEventTarget().dispatchEvent(new wZI(iR6,G,u9)));wn.log(G);return u}finally{wn.tearDown()}};
B5g=function(G,B,F){var D=WN(function(){var u=Fe(ED);try{return vN(function(){var R=_.OuU(_.KT(G)),N;var y=grI({rootElement:{value:G},appContext:F||(R==null?void 0:(N=R.getOptionalAppContext)==null?void 0:N.call(R)),dispatcher:R});R=SV(y);y=B5(!0);k0++;try{l9(B(),G),e2(!1)}catch(U){throw e2(!0),U;}finally{B5(y),SV(R)}},!1)}catch(R){throw GM.enableContextBasedComponentStacks&&rT(R),R;
}finally{Fe(u)}});
G[Fbs]=!0;return function(){G.textContent="";D();G[Fbs]=!1}};
_.eR=function(G){if(pwI(iC)){var B;(B=GM.handleError)==null||B.call.apply(B,[GM].concat(_.gi(Y0(Error("fc")))))}var F=gd,D=QI;Ht8({onInitType:rAs,run:function(){if(F&&!F.isDisposed){var u=SV(F);try{WN(function(){return void G()},D)}catch(R){throw GM.enableContextBasedComponentStacks&&rT(R),R;
}finally{SV(u)}}}})};
RRU=function(G){var B=zZo(2),F=new Set;_.VI(function(){return void F.forEach(function(D){return void D()})});
return function(D){var u=SV(B);try{var R=DaU(uwJ(G),D);F.add(R);return function(){R();F.delete(R)}}finally{SV(u)}}};
_.wTl=function(G){var B=G.children;var F=G.root;_.eR(function(){var D=RRU(F)(B);_.VI(D)});
return document.createTextNode("")};
DaU=function(G,B){var F=Cfc(G);(G=YOl())&&WOJ(F,G);wn.setUp();B=_.C(G78(B,!0));G=B.next().value;var D=B.next().value;B=_.C(G);for(G=B.next();!G.done;G=B.next())F.appendChild(G.value);wn.log(F);wn.tearDown();return function(){D();F.remove()}};
uwJ=function(G){if(typeof G==="string")return G=document.querySelector(G),_.Cy6(G),G;if(i9(G)&&G.nodeType===Node.ELEMENT_NODE)return G;if(!G.__value&&!G.__optional){var B=fLJ.USE_ELEMENT_NOT_ASSIGNED(G.__expectedTagName);G.__hasErrored=!0;throw B;}return G.value};
Cfc=function(G){var B=document.createElementNS(G.namespaceURI,G.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return G.appendChild(B)};
N5I=function(G,B){var F=taI("onChange"),D=h7M();Zil(F.deps,B)&&(F.deps=B,F.pendingEffect=G,D.__syncEffects||(D.__syncEffects=[]),D.__syncEffects.push(F))};
yJg=function(G,B){N5I(function(){return _.U4(G)},B)};
_.$f=function(G){LE()?_.eR(function(){_.U4(G)}):N5I(function(){return _.U4(G)},[])};
l4o=function(G){var B=[].concat(_.gi(G));G.length=0;G=_.C(B);for(B=G.next();!B.done;B=G.next()){B=B.value;nI8(B);var F=B.pendingEffect;B.pendingEffect=null;if(F=F==null?void 0:F())B.pendingCleanup=F}};
nI8=function(G){var B=G.pendingCleanup;G.pendingCleanup=null;B==null||B()};
Uaz=function(G){return gyc(function(){return{value:G}},[])};
_.zJ=function(G,B){if(!G)return null;G=Object.keys(G);G=_.C(G);for(var F=G.next();!F.done;F=G.next()){F=F.value;var D=F.toLowerCase();if(D.indexOf(B,D.length-B.length)>-1)return F}return null};
_.Vc=function(){var G=arguments,B=_.b9;G.length>1?B[G[0]]=G[1]:G.length===1&&Object.assign(B,G[0])};
_.v5=function(G,B){return G in _.b9?_.b9[G]:B};
_.on=function(G,B){return!!_.v5(G,B)};
qq6=function(G){var B=_.b9.EXPERIMENT_FLAGS;return B?B[G]:void 0};
hRo=function(G){EIS.forEach(function(B){return B(G)})};
_.pH=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(B){_.Mn(B)}}:G};
_.Mn=function(G){var B=_.Yf("yt.logging.errors.log");B?B(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(B=_.v5("ERRORS",[]),B.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Vc("ERRORS",B));hRo(G)};
_.Ae=function(G,B,F,D,u){var R=_.Yf("yt.logging.errors.log");R?R(G,"WARNING",B,F,D,void 0,u):(R=_.v5("ERRORS",[]),R.push([G,"WARNING",B,F,D,void 0,u]),_.Vc("ERRORS",R))};
a4o=function(G,B){B=G.split(B);for(var F={},D=0,u=B.length;D<u;D++){var R=B[D].split("=");if(R.length===1&&R[0]||R.length===2)try{var N=KbS(R[0]||""),y=KbS(R[1]||"");if(N in F){var U=F[N];Array.isArray(U)?_.tg(U,y):F[N]=[U,y]}else F[N]=y}catch(a){var q=a,h=R[0],K=String(a4o);q.args=[{key:h,value:R[1],query:G,method:ma8===K?"unchanged":K}];XTM.hasOwnProperty(h)||_.Ae(q)}}return F};
QgL=function(G){var B=[];_.UK.forEach(G,function(F,D){var u=_.S5(D);F=Array.isArray(F)?F:[F];_.dn(F,function(R){R==""?B.push(u):B.push(u+"="+_.S5(R))})});
return B.join("&")};
_.Je=function(G){G.charAt(0)==="?"&&(G=G.substring(1));return a4o(G,"&")};
_.c5=function(G){return G.indexOf("?")!==-1?(G=(G||"").split("#")[0],G=G.split("?",2),_.Je(G.length>1?G[1]:G[0])):{}};
_.TJ=function(G,B){return jgz(G,B||{},!0)};
LbS=function(G,B){return jgz(G,B||{},!1)};
jgz=function(G,B,F){var D=G.split("#",2);G=D[0];D=D.length>1?"#"+D[1]:"";var u=G.split("?",2);G=u[0];u=_.Je(u[1]||"");for(var R in B)if(F||!_.UK.containsKey(u,R))u[R]=B[R];return _.xi(G,u)+D};
In=function(G){if(!B)var B=window.location.href;var F=_.dO(G)[1]||null,D=_.Tt(G);return F&&D?ZJ(G,B):D?_.Tt(B)===D&&(Number(_.dO(B)[4]||null)||null)===(Number(_.dO(G)[4]||null)||null):!0};
_.WbJ=function(G){G=rJs(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
rJs=function(G){G=_.Tt(G);return G!==null?G.split(".").reverse():null};
KbS=function(G){return G&&G.match(HRU)?G:gO(G)};
_.fH=function(G){return new k7U(G)};
_.te=function(){OR8||(OR8=new eR6);return OR8};
zRM=function(){var G=$aU;return function(){var B=_.te();if(!B.resolve(_.fH(G))){var F={};B.addProvider((F.provide=G,F.useClass=G,F[ZA]=void 0,F))}return B.resolve(G)}};
_.gn=function(G,B){var F,D;_.n(function(u){F=_.te();return(D=F.resolve(_.fH(G)))?(B(D),u.return(Promise.resolve(D))):u.return(F.resolve(new bRS(G)).then(function(R){B(R);return R}))})};
_.X=function(G){G=SR(G);return typeof G==="string"&&G==="false"?!1:!!G};
_.sD=function(G,B){G=SR(G);return G===void 0&&B!==void 0?B:Number(G||0)};
VDJ=function(G){G=SR(G);return Array.isArray(G)?_.qK(G,function(B){return Number(B||0)}):[Number(G||0)]};
_.xf=function(G){G=SR(G);return G!==void 0?String(G):""};
_.P5=function(G){G=SR(G);return Array.isArray(G)?_.qK(G,function(B){return String(B||"")}):[String(G||"")]};
vIs=function(){return _.v5("EXPERIMENTS_TOKEN","")};
SR=function(G){return _.v5("EXPERIMENT_FLAGS",{})[G]};
oIl=function(){for(var G=[],B=_.v5("EXPERIMENTS_FORCED_FLAGS",{}),F=_.C(Object.keys(B)),D=F.next();!D.done;D=F.next())D=D.value,G.push({key:D,value:String(B[D])});F=_.v5("EXPERIMENT_FLAGS",{});D=_.C(Object.keys(F));for(var u=D.next();!u.done;u=D.next())u=u.value,u.startsWith("force_")&&B[u]===void 0&&G.push({key:u,value:String(F[u])});return G};
pTz=function(){if(!MDo)return null;var G=MDo();return"open"in G?G:null};
_.Yqo=function(G){switch(_.BQ(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.BQ=function(G){return G&&"status"in G?G.status:-1};
_.iX=function(G,B){typeof G==="function"&&(G=_.pH(G));return window.setTimeout(G,B)};
_.FB=function(G,B){typeof G==="function"&&(G=_.pH(G));return window.setInterval(G,B)};
_.Dl=function(G){window.clearTimeout(G)};
daQ=function(G){G=_.c5(G);for(var B=_.C(AJg),F=B.next();!F.done;F=B.next())if(G[F.value]!==void 0)return!0;return!1};
T5o=function(G,B,F,D,u,R,N,y,U){F=F===void 0?"GET":F;D=D===void 0?"":D;y=y===void 0?!1:y;var q=pTz();if(!q)return null;var h=function(){(q&&"readyState"in q?q.readyState:0)===4&&B&&_.pH(B)(q)};
"onloadend"in q?q.addEventListener("loadend",h,!1):q.onreadystatechange=h;_.X("debug_forward_web_query_parameters")&&(G=JJc(G,window.location.search));q.open(F,G,!0);R&&(q.responseType=R);N&&(q.withCredentials=!0);F=F==="POST"&&(window.FormData===void 0||!(D instanceof FormData));if(u=cJ6(G,u))for(var K in u)q.setRequestHeader(K,u[K]),"content-type"===K.toLowerCase()&&(F=!1);F&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");U&&"onprogress"in q&&(q.onprogress=function(){U(q.responseText)});
if(y&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(G)}catch(a){_.Ae(a)}}q.send(D);return q};
cJ6=function(G,B){B=B===void 0?{}:B;var F=In(G),D=_.v5("INNERTUBE_CLIENT_NAME"),u=_.X("web_ajax_ignore_global_headers_if_set"),R;for(R in I4g){var N=_.v5(I4g[R]),y=R==="X-Goog-AuthUser"||R==="X-Goog-PageId";R!=="X-Goog-Visitor-Id"||N||(N=_.v5("VISITOR_DATA"));var U;if(!(U=!N)){if(!(U=F||(_.Tt(G)?!1:!0))){U=G;var q;if(q=_.X("add_auth_headers_to_remarketing_google_dot_com_ping")&&R==="Authorization"&&(D==="TVHTML5"||D==="TVHTML5_UNPLUGGED"||D==="TVHTML5_SIMPLY"))q=rJs(U),q=q===null?!1:q[1]==="google"?
!0:q[2]==="google"?q[0]==="au"&&q[1]==="com"?!0:q[0]==="uk"&&q[1]==="co"?!0:!1:!1;q&&(U=_.Ik(U)||"",U=U.split("/"),U="/"+(U.length>1?U[1]:""),q=U==="/pagead");U=q?!0:!1}U=!U}U||u&&B[R]!==void 0||D==="TVHTML5_UNPLUGGED"&&y||(B[R]=N)}"X-Goog-EOM-Visitor-Id"in B&&"X-Goog-Visitor-Id"in B&&delete B["X-Goog-Visitor-Id"];if(F||!_.Tt(G))B["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(F||!_.Tt(G)){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}h&&(B["X-YouTube-Time-Zone"]=
h)}document.location.hostname.endsWith("youtubeeducation.com")||!F&&_.Tt(G)||(B["X-YouTube-Ad-Signals"]=QgL(f4M()));return B};
_.tDJ=function(G,B){var F=_.Tt(G);_.X("debug_handle_relative_url_for_query_forward_killswitch")||!F&&In(G)&&(F=document.location.hostname);var D=_.Ik(G);D=(F=F&&(F.endsWith("youtube.com")||F.endsWith("youtube-nocookie.com")))&&D&&D.startsWith("/api/");if(!F||D)return G;var u=_.Je(B),R={};_.dn(AJg,function(N){u[N]&&(R[N]=u[N])});
return LbS(G,R)};
ZRl=function(G,B){B.method="POST";B.postParams||(B.postParams={});return _.uX(G,B)};
gIM=function(G,B){var F=_.v5("XSRF_FIELD_NAME"),D;B.headers&&(D=B.headers["Content-Type"]);return!B.excludeXsrf&&(!_.Tt(G)||B.withCredentials||_.Tt(G)===document.location.hostname)&&B.method==="POST"&&(!D||D==="application/x-www-form-urlencoded")&&!(B.postParams&&B.postParams[F])};
_.uX=function(G,B){var F=B.format||"JSON";G=SqJ(G,B);var D=sgS(G,B),u=!1,R=xag(G,function(U){if(!u){u=!0;y&&_.Dl(y);var q=_.Yqo(U),h=null,K=400<=U.status&&U.status<500,a=500<=U.status&&U.status<600;if(q||K||a)h=PfM(G,F,U,B.convertToSafeHtml);q&&(q=GxQ(F,U,h));h=h||{};K=B.context||_.Fz;q?B.onSuccess&&B.onSuccess.call(K,U,h):B.onError&&B.onError.call(K,U,h);B.onFinish&&B.onFinish.call(K,U,h)}},B.method,D,B.headers,B.responseType,B.withCredentials,!1,B.onProgress);
D=B.timeout||0;if(B.onTimeout&&D>0){var N=B.onTimeout;var y=_.iX(function(){u||(u=!0,R.abort(),_.Dl(y),N.call(B.context||_.Fz,R))},D)}return R};
SqJ=function(G,B){B.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var F=_.v5("XSRF_FIELD_NAME");if(B=B.urlParams)B[F]&&delete B[F],G=_.TJ(G,B);return G};
sgS=function(G,B){var F=_.v5("XSRF_FIELD_NAME"),D=_.v5("XSRF_TOKEN"),u=B.postBody||"",R=B.postParams;gIM(G,B)&&(R||(R={}),R[F]=D);(_.X("ajax_parse_query_data_only_when_filled")&&R&&Object.keys(R).length>0||R)&&typeof u==="string"&&(u=_.Je(u),_.UK.extend(u,R),u=B.postBodyFormat&&B.postBodyFormat==="JSON"?JSON.stringify(u):_.sh(u));R=u||R&&!_.UK.isEmpty(R);!B8L&&R&&B.method!=="POST"&&(B8L=!0,_.Mn(Error("Lc")));return u};
PfM=function(G,B,F,D){var u=null;switch(B){case "JSON":try{var R=F.responseText}catch(N){throw D=Error("Mc"),D.params=G,_.Ae(D),N;}G=F.getResponseHeader("Content-Type")||"";R&&G.indexOf("json")>=0&&(R.substring(0,5)===")]}'\n"&&(R=R.substring(5)),u=JSON.parse(R));break;case "XML":if(G=(G=F.responseXML)?iJI(G):null)u={},_.dn(G.getElementsByTagName("*"),function(N){u[N.tagName]=FDs(N)})}D&&DD6(u);
return u};
DD6=function(G){if(_.Zc(G))for(var B in G)B==="html_content"||CQ(B,"_html")?G[B]=i5(G[B]):DD6(G[B])};
GxQ=function(G,B,F){if(B&&B.status===204)return!0;switch(G){case "JSON":return!!F;case "XML":return Number(F&&F.return_code)===0;case "RAW":return!0;default:return!!F}};
iJI=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null};
FDs=function(G){var B="";_.dn(G.childNodes,function(F){B+=F.nodeValue});
return B};
u98=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("-extension://")||G.includes("webkit-masked-url://")};
RSI=function(G){if(!G.stack)return!0;var B=!G.stack.includes("\n");return B&&G.stack.includes("ErrorType: ")||B&&G.stack.includes("Anonymous function (Unknown script")||G.stack.toLowerCase()==="not available"||G.fileName==="user-script"||G.fileName.startsWith("user-script:")?!0:!1};
_.RY=function(G){_.uz.call(this);this.JSC$10837_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!G};
Cog=function(G,B){var F=G.length,D=0,u=function(){return G.charCodeAt(D++)};
do{var R=w2M(u);if(R===Infinity)break;var N=R>>3;switch(R&7){case 0:R=w2M(u);if(N===B)return R;break;case 1:if(N===B)return;D+=8;break;case 2:R=w2M(u);if(N===B)return G.substr(D,R);D+=R;break;case 5:if(N===B)return;D+=4;break;default:return}}while(D<F)};
w2M=function(G){var B=G(),F=B&127;if(B<128)return F;B=G();F|=(B&127)<<7;if(B<128)return F;B=G();F|=(B&127)<<14;if(B<128)return F;B=G();return B<128?F|(B&127)<<21:Infinity};
ycM=function(G,B,F,D){if(G)if(Array.isArray(G)){var u=D;for(D=0;D<G.length&&!(G[D]&&(u+=N86(D,G[D],B,F),u>500));D++);D=u}else if(typeof G==="object")for(u in G){if(G[u]){var R=u;var N=G[u],y=B,U=F;R=typeof N!=="string"||R!=="clickTrackingParams"&&R!=="trackingParams"?0:(N=Cog(atob(N.replace(/-/g,"+").replace(/_/g,"/")),2))?N86(R+".ve",N,y,U):0;D+=R;D+=N86(u,G[u],B,F);if(D>500)break}}else F[B]=wo(G),D+=F[B].length;else F[B]=wo(G),D+=F[B].length;return D};
N86=function(G,B,F,D){F+="."+G;G=wo(B);D[F]=G;return F.length+G.length};
wo=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(B){return"unable to serialize "+typeof G+" ("+B.message+")"}};
n9S=function(G){switch(G){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}};
_.NS=function(G,B,F,D,u){_.C8.set(G,B,{maxAge:F,path:"/",domain:D===void 0?"youtube.com":D,secure:u===void 0?!1:u})};
_.lVS=function(G,B,F){_.C8.remove(G,B===void 0?"/":B,F===void 0?"youtube.com":F)};
_.y5=function(){if(_.X("embeds_web_enable_cookie_detection_fix")){if(!_.Fz.navigator.cookieEnabled)return!1}else if(!_.C8.isEnabled())return!1;if(!_.C8.isEmpty())return!0;_.X("embeds_web_enable_cookie_detection_fix")?_.C8.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.C8.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.C8.get("TESTCOOKIESENABLED")!=="1")return!1;_.C8.remove("TESTCOOKIESENABLED");return!0};
UDM=function(){var G=_.Fz.navigator;return G?G.connection:void 0};
qXg=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}};
_.hSc=function(){var G=UDM();if(G){var B=E9s[G.type||"unknown"]||"CONN_UNKNOWN";G=E9s[G.effectiveType||"unknown"]||"CONN_UNKNOWN";B==="CONN_CELLULAR_UNKNOWN"&&G!=="CONN_UNKNOWN"&&(B=G);if(B!=="CONN_UNKNOWN")return B;if(G!=="CONN_UNKNOWN")return G}};
aVJ=function(){var G=UDM();if(G!=null&&G.effectiveType)return KDc.hasOwnProperty(G.effectiveType)?KDc[G.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.lX=function(){try{return _.n8(),!0}catch(G){return!1}};
_.n8=function(G){if(_.v5("DATASYNC_ID")!==void 0)return _.v5("DATASYNC_ID");throw new _.Uf("Datasync ID not set",G===void 0?"unknown":G);};
_.qS=function(G){this.mechanism=G};
Ef=function(G){this.mechanism=G};
hP=function(G){this.mechanism=G};
K8=function(G){this.storage_=G;this.cachedIsStorageAvailable_=null};
mDz=function(){var G=null;try{G=_.Fz.localStorage||null}catch(B){}K8.call(this,G)};
X2U=function(){var G=null;try{G=_.Fz.sessionStorage||null}catch(B){}K8.call(this,G)};
aY=function(G,B){this.mechanism_=G;this.JSC$10940_prefix_=B+"::"};
_.mm=function(G){var B=new mDz;return B.isAvailable()?G?new aY(B,G):B:null};
_.Q9s=function(G){var B=new X2U;return B.isAvailable()?G?new aY(B,G):B:null};
LD6=function(){var G;return(G=j9I())==null?void 0:G.get("LAST_RESULT_ENTRY_KEY",!0)};
_.jE=function(G){rcM||(_.XB?_.XB.logError(G):(_.Q5.push({type:"ERROR",payload:G}),_.Q5.length>10&&_.Q5.shift()))};
L8=function(G,B){rcM||(_.XB?_.XB.logEvent(G,B):(_.Q5.push({type:"EVENT",eventType:G,payload:B}),_.Q5.length>10&&_.Q5.shift()))};
ro=function(G){if(G.indexOf(":")>=0)throw Error("Tc");};
WQ=function(G){return G.substr(0,G.indexOf(":"))||G};
kxz=function(){return(WDI||HJ6)&&HQ("applewebkit")&&!HQ("version")&&(!HQ("safari")||HQ("gsa/"))};
HQ=function(G){var B=_.Qo();return B?B.toLowerCase().indexOf(G)>=0:!1};
$Dc=function(G,B,F,D){B=WQ(B);var u=G instanceof Error?G:Error("Uc`"+G);if(u instanceof kK)return u;G={objectStoreNames:F,dbName:B,dbVersion:D};if(u.name==="QuotaExceededError")return new kK("QUOTA_EXCEEDED",G);if(_.Of&&u.name==="UnknownError")return new kK("QUOTA_MAYBE_EXCEEDED",G);if(u instanceof OJM)return new kK("MISSING_INDEX",Object.assign({},G,{objectStore:u.objectStore,index:u.index}));if(u.name==="InvalidStateError"&&eSo.some(function(R){return u.message.includes(R)}))return new kK("EXECUTE_TRANSACTION_ON_CLOSED_DB",
G);
if(u.name==="AbortError")return new kK("UNKNOWN_ABORT",G,u.message);u.args=[Object.assign({},G,{name:"IdbError",originalName:u.name})];u.level="WARNING";return u};
eE=function(G,B,F){var D=LD6();return new kK("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:B,version:F,hasSucceededOnce:D==null?void 0:D.hasSucceededOnce}})};
zSM=function(G){if(!G)throw Error();throw G;};
bJo=function(G){return G};
VwJ=function(G,B,F){var D=function(){try{G.removeEventListener("success",u),G.removeEventListener("error",R)}catch(N){}},u=function(){B(G.result);
D()},R=function(){F(G.error);
D()};
G.addEventListener("success",u);G.addEventListener("error",R)};
v9M=function(G){return new Promise(function(B,F){VwJ(G,B,F)})};
bX=function(G){return new $K(new z0(function(B,F){VwJ(G,B,F)}))};
o9o=function(G,B){return new $K(new z0(function(F,D){var u=function(){var R=G?B(G):null;R?R.then(function(N){G=N;u()},D):F()};
u()}))};
Mwz=function(G,B,F){return new Promise(function(D,u){var R=B!==void 0?self.indexedDB.open(G,B):self.indexedDB.open(G);var N=F.blocked,y=F.blocking,U=F.terminated,q=F.upgrade,h=F.closed,K,a=function(){K||(K=new V5(R.result,{closed:h}));return K};
R.addEventListener("upgradeneeded",function(m){try{if(m.newVersion===null)throw Error("Zc");if(R.transaction===null)throw Error("$c");m.dataLoss&&m.dataLoss!=="none"&&L8("IDB_DATA_CORRUPTED",{reason:m.dataLossMessage||"unknown reason",dbName:WQ(G)});var L=a(),W=new vQ(R.transaction);q&&q(L,function(e){return m.oldVersion<e&&m.newVersion>=e},W);
W.done.catch(function(e){u(e)})}catch(e){u(e)}});
R.addEventListener("success",function(){var m=R.result;y&&m.addEventListener("versionchange",function(){y(a())});
m.addEventListener("close",function(){L8("IDB_UNEXPECTEDLY_CLOSED",{dbName:WQ(G),dbVersion:m.version});U&&U()});
D(a())});
R.addEventListener("error",function(){u(R.error)});
N&&R.addEventListener("blocked",function(){N()})})};
p2o=function(G,B,F){F=F===void 0?{}:F;return Mwz(G,B,F)};
_.MS=function(G,B){B=B===void 0?{}:B;var F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return _.b5(N,2),F=self.indexedDB.deleteDatabase(G),D=B,(u=D.blocked)&&F.addEventListener("blocked",function(){u()}),N.yield(v9M(F),4);
if(N.nextAddress!=2)return _.oY(N,0);R=_.Al(N);throw $Dc(R,G,"",-1);})};
Ac6=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1)return D.yield(_.p8(YXJ,B),2);F=D.yieldResult;return D.return(_.YK(F,["databases"],{enableRetries:!0,mode:"readwrite"},function(u){var R=u.objectStore("databases");return R.get(G.actualName).then(function(N){if(N?G.actualName!==N.actualName||G.publicName!==N.publicName||G.userIdentifier!==N.userIdentifier:1)return R.put(G).then(function(){})})}))})};
_.AP=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1)return G?D.yield(_.p8(YXJ,B),2):D.return();F=D.yieldResult;return D.return(F.delete("databases",G))})};
_.dDs=function(G,B){var F,D;return _.n(function(u){return u.nextAddress==1?(F=[],u.yield(_.p8(YXJ,B),2)):u.nextAddress!=3?(D=u.yieldResult,u.yield(_.YK(D,["databases"],{enableRetries:!0,mode:"readonly"},function(R){F.length=0;return JP(R.objectStore("databases"),{},function(N){G(N.getValue())&&F.push(N.getValue());return N.continue()})}),3)):u.return(F)})};
Jcs=function(G,B){return _.dDs(function(F){return F.publicName===G&&F.userIdentifier!==void 0},B)};
IVS=function(){var G,B,F,D;return _.n(function(u){switch(u.nextAddress){case 1:G=LD6();if((B=G)==null?0:B.hasSucceededOnce)return u.return(!0);var R;if(R=cc6)R=/WebKit\/([0-9]+)/.exec(_.Qo()),R=!!(R&&parseInt(R[1],10)>=600);R&&(R=/WebKit\/([0-9]+)/.exec(_.Qo()),R=!(R&&parseInt(R[1],10)>=602));if(R||cQ)return u.return(!1);try{if(F=self,!(F.indexedDB&&F.IDBIndex&&F.IDBKeyRange&&F.IDBObjectStore))return u.return(!1)}catch(N){return u.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return u.return(!1);
_.b5(u,2);D={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return u.yield(Ac6(D,T8z),4);case 4:return u.yield(_.AP("yt-idb-test-do-not-use",T8z),5);case 5:return u.return(!0);case 2:return _.Al(u),u.return(!1)}})};
twJ=function(){if(fVJ!==void 0)return fVJ;rcM=!0;return fVJ=IVS().then(function(G){rcM=!1;var B;if((B=j9I())!=null&&B.hasLocalStorage()){var F;B={hasSucceededOnce:((F=LD6())==null?void 0:F.hasSucceededOnce)||G};var D;(D=j9I())==null||D.set("LAST_RESULT_ENTRY_KEY",B,2592E3,!0)}return G})};
T0=function(){return _.Yf("ytglobal.idbToken_")||void 0};
_.f8=function(){var G=T0();return G?Promise.resolve(G):twJ().then(function(B){(B=B?T8z:void 0)&&_.IY("ytglobal.idbToken_",B);return B})};
ZJL=function(G){if(!_.lX())throw G=new kK("AUTH_INVALID",{dbName:G}),_.jE(G),G;var B=_.n8();return{actualName:G+":"+B,publicName:G,userIdentifier:B}};
g9g=function(G,B,F,D){var u,R,N,y,U,q;return _.n(function(h){switch(h.nextAddress){case 1:return R=(u=Error().stack)!=null?u:"",h.yield(_.f8(),2);case 2:N=h.yieldResult;if(!N)throw y=eE("openDbImpl",G,B),_.X("ytidb_async_stack_killswitch")||(y.stack=y.stack+"\n"+R.substring(R.indexOf("\n")+1)),_.jE(y),y;ro(G);U=F?{actualName:G,publicName:G,userIdentifier:void 0}:ZJL(G);_.b5(h,3);return h.yield(Ac6(U,N),5);case 5:return h.yield(p2o(U.actualName,B,D),6);case 6:return h.return(h.yieldResult);case 3:return q=
_.Al(h),_.b5(h,7),h.yield(_.AP(U.actualName,N),9);case 9:_.oY(h,8);break;case 7:_.Al(h);case 8:throw q;}})};
SXS=function(G,B,F){F=F===void 0?{}:F;return g9g(G,B,!1,F)};
s9I=function(G,B,F){F=F===void 0?{}:F;return g9g(G,B,!0,F)};
xD6=function(G,B){B=B===void 0?{}:B;var F,D;return _.n(function(u){if(u.nextAddress==1)return u.yield(_.f8(),2);if(u.nextAddress!=3){F=u.yieldResult;if(!F)return u.return();ro(G);D=ZJL(G);return u.yield(_.MS(D.actualName,B),3)}return u.yield(_.AP(D.actualName,F),0)})};
Poz=function(G,B,F){G=G.map(function(D){return _.n(function(u){return u.nextAddress==1?u.yield(_.MS(D.actualName,B),2):u.yield(_.AP(D.actualName,F),0)})});
return Promise.all(G).then(function(){})};
GBs=function(G){var B=B===void 0?{}:B;var F,D;return _.n(function(u){if(u.nextAddress==1)return u.yield(_.f8(),2);if(u.nextAddress!=3){F=u.yieldResult;if(!F)return u.return();ro(G);return u.yield(Jcs(G,F),3)}D=u.yieldResult;return u.yield(Poz(D,B,F),0)})};
BKI=function(G,B){B=B===void 0?{}:B;var F;return _.n(function(D){if(D.nextAddress==1)return D.yield(_.f8(),2);if(D.nextAddress!=3){F=D.yieldResult;if(!F)return D.return();ro(G);return D.yield(_.MS(G,B),3)}return D.yield(_.AP(G,F),0)})};
tP=function(G,B){return ipU(G,B)};
DOL=function(G){return _.p8(FaJ(),G)};
uus=function(G,B,F,D){var u,R,N;return _.n(function(y){switch(y.nextAddress){case 1:return u={config:G,hashData:B,timestamp:D!==void 0?D:(0,_.Zl)()},y.yield(DOL(F),2);case 2:return R=y.yieldResult,y.yield(R.clear("hotConfigStore"),3);case 3:return y.yield(R.put("hotConfigStore",u),4);case 4:return N=y.yieldResult,y.return(N)}})};
Rcg=function(G,B,F,D,u){var R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:return R={config:G,hashData:B,configData:F,timestamp:u!==void 0?u:(0,_.Zl)()},U.yield(DOL(D),2);case 2:return N=U.yieldResult,U.yield(N.clear("coldConfigStore"),3);case 3:return U.yield(N.put("coldConfigStore",R),4);case 4:return y=U.yieldResult,U.return(y)}})};
wmU=function(G){var B,F;return _.n(function(D){return D.nextAddress==1?D.yield(DOL(G),2):D.nextAddress!=3?(B=D.yieldResult,F=void 0,D.yield(_.YK(B,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(u){return _.go(u.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(R){F=R.getValue()})}),3)):D.return(F)})};
CnL=function(G){var B,F;return _.n(function(D){return D.nextAddress==1?D.yield(DOL(G),2):D.nextAddress!=3?(B=D.yieldResult,F=void 0,D.yield(_.YK(B,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(u){return _.go(u.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(R){F=R.getValue()})}),3)):D.return(F)})};
NKl=function(){return _.n(function(G){return G.yield(GBs("ytGcfConfig"),0)})};
yVQ=function(){return"INNERTUBE_API_KEY"in _.b9&&"INNERTUBE_API_VERSION"in _.b9};
_.SE=function(){return{innertubeApiKey:_.v5("INNERTUBE_API_KEY"),innertubeApiVersion:_.v5("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.v5("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.v5("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.v5("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.v5("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.on("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.on("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.v5("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.KaM=function(G){var B={client:{hl:G.innertubeContextHostLanguage,gl:G.innertubeContextGeoLocation,clientName:G.innertubeContextClientName,clientVersion:G.innertubeContextClientVersion,configInfo:G.innertubeContextClientConfigInfo}};navigator.userAgent&&(B.client.userAgent=String(navigator.userAgent));var F=_.Fz.devicePixelRatio;F&&F!=1&&(B.client.screenDensityFloat=String(F));F=vIs();F!==""&&(B.client.experimentsToken=F);F=oIl();F.length>0&&(B.request={internalExperimentFlags:F});n7g(G,void 0,B);
lkM(void 0,B);UOg(void 0,B);qjz(G,void 0,B);E7I(void 0,B);_.X("start_client_gcf")&&hcs(void 0,B);_.v5("DELEGATED_SESSION_ID")&&!_.X("pageid_as_header_web")&&(B.user={onBehalfOfUser:_.v5("DELEGATED_SESSION_ID")});!_.X("fill_delegate_context_in_gel_killswitch")&&(G=_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(B.user=Object.assign({},B.user,{serializedDelegationContext:G}));G=_.v5("INNERTUBE_CONTEXT");var D;if(_.X("enable_persistent_device_token")&&(G==null?0:(D=G.client)==null?0:D.rolloutToken)){var u;
B.client.rolloutToken=G==null?void 0:(u=G.client)==null?void 0:u.rolloutToken}D=Object;u=D.assign;G=B.client;F={};for(var R=_.C(Object.entries(_.Je(_.v5("DEVICE","")))),N=R.next();!N.done;N=R.next()){var y=_.C(N.value);N=y.next().value;y=y.next().value;N==="cbrand"?F.deviceMake=y:N==="cmodel"?F.deviceModel=y:N==="cbr"?F.browserName=y:N==="cbrver"?F.browserVersion=y:N==="cos"?F.osName=y:N==="cosver"?F.osVersion=y:N==="cplatform"&&(F.platform=y)}B.client=u.call(D,G,F);return B};
n7g=function(G,B,F){G=G.innertubeContextClientName;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(B){F=_.sf(B,akU,96)||new akU;var D=mOQ();D=Object.keys(XmQ).indexOf(D);D=D===-1?null:D;D!==null&&_.xK(F,3,D);_.ba(B,96,F)}else F&&(F.client.mainAppWebInfo=(D=F.client.mainAppWebInfo)!=null?D:{},F.client.mainAppWebInfo.webDisplayMode=mOQ())};
lkM=function(G,B){var F=_.Yf("yt.embedded_player.embed_url");F&&(G?(B=_.sf(G,QFS,7)||new QFS,_.wq(B,4,F),_.ba(G,7,B)):B&&(B.thirdParty={embedUrl:F}))};
UOg=function(G,B){var F;if(_.X("web_log_memory_total_kbytes")&&((F=_.Fz.navigator)==null?0:F.deviceMemory)){var D;F=(D=_.Fz.navigator)==null?void 0:D.deviceMemory;G?_.PQ(G,95,XD(F*1E6)):B&&(B.client.memoryTotalKbytes=""+F*1E6)}};
qjz=function(G,B,F){if(G.appInstallData)if(B){var D;F=(D=_.sf(B,GD,62))!=null?D:new GD;_.wq(F,6,G.appInstallData);_.ba(B,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},F.client.configInfo.appInstallData=G.appInstallData)};
E7I=function(G,B){var F=_.hSc();F&&(G?_.xK(G,61,jFJ[F]):B&&(B.client.connectionType=F));_.X("web_log_effective_connection_type")&&(F=aVJ())&&(G?_.xK(G,94,Lal[F]):B&&(B.client.effectiveConnectionType=F))};
_.Hpg=function(G,B,F){F=F===void 0?{}:F;var D={};_.v5("EOM_VISITOR_DATA")?D={"X-Goog-EOM-Visitor-Id":_.v5("EOM_VISITOR_DATA")}:D={"X-Goog-Visitor-Id":F.visitorData||_.v5("VISITOR_DATA","")};if(B&&B.includes("www.youtube-nocookie.com"))return D;B=F.authorization||_.v5("AUTHORIZATION");B||(G?B="Bearer "+_.Yf("gapi.auth.getToken")().access_token:(rVS.instance||(rVS.instance=new rVS),G=WaS(),_.X("pageid_as_header_web")||delete G["X-Goog-PageId"],D=Object.assign({},D,G)));B&&(D.Authorization=B);return D};
hcs=function(G,B){var F=kBz();if(F){var D=F.coldConfigData,u=F.coldHashData;F=F.hotHashData;if(G){var R;B=(R=_.sf(G,GD,62))!=null?R:new GD;D=_.wq(B,1,D);_.wq(D,3,u).setHotHashData(F);_.ba(G,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},D&&(B.client.configInfo.coldConfigData=D),u&&(B.client.configInfo.coldHashData=u),F&&(B.client.configInfo.hotHashData=F))}};
Bo=function(G){for(var B=G.length;--B>=0;)G[B]=0};
OpL=function(G,B,F,D,u){this.static_tree=G;this.extra_bits=B;this.extra_base=F;this.elems=D;this.max_length=u;this.has_stree=G&&G.length};
eco=function(G,B){this.dyn_tree=G;this.max_code=0;this.stat_desc=B};
ii=function(G,B){G.pending_buf[G.pending++]=B&255;G.pending_buf[G.pending++]=B>>>8&255};
Fs=function(G,B,F){G.bi_valid>16-F?(G.bi_buf|=B<<G.bi_valid&65535,ii(G,G.bi_buf),G.bi_buf=B>>16-G.bi_valid,G.bi_valid+=F-16):(G.bi_buf|=B<<G.bi_valid&65535,G.bi_valid+=F)};
D8=function(G,B,F){Fs(G,F[B*2],F[B*2+1])};
$O6=function(G,B){var F=0;do F|=G&1,G>>>=1,F<<=1;while(--B>0);return F>>>1};
zcJ=function(G,B,F){var D=Array(16),u=0,R;for(R=1;R<=15;R++)D[R]=u=u+F[R-1]<<1;for(F=0;F<=B;F++)u=G[F*2+1],u!==0&&(G[F*2]=$O6(D[u]++,u))};
bpJ=function(G){var B;for(B=0;B<286;B++)G.dyn_ltree[B*2]=0;for(B=0;B<30;B++)G.dyn_dtree[B*2]=0;for(B=0;B<19;B++)G.bl_tree[B*2]=0;G.dyn_ltree[512]=1;G.opt_len=G.static_len=0;G.last_lit=G.matches=0};
VsI=function(G){G.bi_valid>8?ii(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf);G.bi_buf=0;G.bi_valid=0};
v78=function(G,B,F){VsI(G);ii(G,F);ii(G,~F);ui.arraySet(G.pending_buf,G.window,B,F,G.pending);G.pending+=F};
o7z=function(G,B,F,D){var u=B*2,R=F*2;return G[u]<G[R]||G[u]===G[R]&&D[B]<=D[F]};
MsI=function(G,B,F){for(var D=G.heap[F],u=F<<1;u<=G.heap_len;){u<G.heap_len&&o7z(B,G.heap[u+1],G.heap[u],G.depth)&&u++;if(o7z(B,D,G.heap[u],G.depth))break;G.heap[F]=G.heap[u];F=u;u<<=1}G.heap[F]=D};
JVS=function(G,B,F){var D=0;if(G.last_lit!==0){do{var u=G.pending_buf[G.d_buf+D*2]<<8|G.pending_buf[G.d_buf+D*2+1];var R=G.pending_buf[G.l_buf+D];D++;if(u===0)D8(G,R,B);else{var N=RB[R];D8(G,N+256+1,B);var y=pmz[N];y!==0&&(R-=Yj6[N],Fs(G,R,y));u--;N=u<256?wg[u]:wg[256+(u>>>7)];D8(G,N,F);y=AVs[N];y!==0&&(u-=dOo[N],Fs(G,u,y))}}while(D<G.last_lit)}D8(G,256,B)};
cVU=function(G,B){var F=B.dyn_tree,D=B.stat_desc.static_tree,u=B.stat_desc.has_stree,R=B.stat_desc.elems,N,y=-1;G.heap_len=0;G.heap_max=573;for(N=0;N<R;N++)F[N*2]!==0?(G.heap[++G.heap_len]=y=N,G.depth[N]=0):F[N*2+1]=0;for(;G.heap_len<2;){var U=G.heap[++G.heap_len]=y<2?++y:0;F[U*2]=1;G.depth[U]=0;G.opt_len--;u&&(G.static_len-=D[U*2+1])}B.max_code=y;for(N=G.heap_len>>1;N>=1;N--)MsI(G,F,N);U=R;do N=G.heap[1],G.heap[1]=G.heap[G.heap_len--],MsI(G,F,1),D=G.heap[1],G.heap[--G.heap_max]=N,G.heap[--G.heap_max]=
D,F[U*2]=F[N*2]+F[D*2],G.depth[U]=(G.depth[N]>=G.depth[D]?G.depth[N]:G.depth[D])+1,F[N*2+1]=F[D*2+1]=U,G.heap[1]=U++,MsI(G,F,1);while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1];N=B.dyn_tree;U=B.max_code;D=B.stat_desc.static_tree;u=B.stat_desc.has_stree;R=B.stat_desc.extra_bits;var q=B.stat_desc.extra_base,h=B.stat_desc.max_length,K,a=0;for(K=0;K<=15;K++)G.bl_count[K]=0;N[G.heap[G.heap_max]*2+1]=0;for(B=G.heap_max+1;B<573;B++){var m=G.heap[B];K=N[N[m*2+1]*2+1]+1;K>h&&(K=h,a++);N[m*2+1]=K;if(!(m>
U)){G.bl_count[K]++;var L=0;m>=q&&(L=R[m-q]);var W=N[m*2];G.opt_len+=W*(K+L);u&&(G.static_len+=W*(D[m*2+1]+L))}}if(a!==0){do{for(K=h-1;G.bl_count[K]===0;)K--;G.bl_count[K]--;G.bl_count[K+1]+=2;G.bl_count[h]--;a-=2}while(a>0);for(K=h;K!==0;K--)for(m=G.bl_count[K];m!==0;)D=G.heap[--B],D>U||(N[D*2+1]!==K&&(G.opt_len+=(K-N[D*2+1])*N[D*2],N[D*2+1]=K),m--)}zcJ(F,y,G.bl_count)};
TKS=function(G,B,F){var D,u=-1,R=B[1],N=0,y=7,U=4;R===0&&(y=138,U=3);B[(F+1)*2+1]=65535;for(D=0;D<=F;D++){var q=R;R=B[(D+1)*2+1];++N<y&&q===R||(N<U?G.bl_tree[q*2]+=N:q!==0?(q!==u&&G.bl_tree[q*2]++,G.bl_tree[32]++):N<=10?G.bl_tree[34]++:G.bl_tree[36]++,N=0,u=q,R===0?(y=138,U=3):q===R?(y=6,U=3):(y=7,U=4))}};
IkM=function(G,B,F){var D,u=-1,R=B[1],N=0,y=7,U=4;R===0&&(y=138,U=3);for(D=0;D<=F;D++){var q=R;R=B[(D+1)*2+1];if(!(++N<y&&q===R)){if(N<U){do D8(G,q,G.bl_tree);while(--N!==0)}else q!==0?(q!==u&&(D8(G,q,G.bl_tree),N--),D8(G,16,G.bl_tree),Fs(G,N-3,2)):N<=10?(D8(G,17,G.bl_tree),Fs(G,N-3,3)):(D8(G,18,G.bl_tree),Fs(G,N-11,7));N=0;u=q;R===0?(y=138,U=3):q===R?(y=6,U=3):(y=7,U=4)}}};
fkS=function(G){var B=4093624447,F;for(F=0;F<=31;F++,B>>>=1)if(B&1&&G.dyn_ltree[F*2]!==0)return 0;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return 1;for(F=32;F<256;F++)if(G.dyn_ltree[F*2]!==0)return 1;return 0};
Cu=function(G,B,F){G.pending_buf[G.d_buf+G.last_lit*2]=B>>>8&255;G.pending_buf[G.d_buf+G.last_lit*2+1]=B&255;G.pending_buf[G.l_buf+G.last_lit]=F&255;G.last_lit++;B===0?G.dyn_ltree[F*2]++:(G.matches++,B--,G.dyn_ltree[(RB[F]+256+1)*2]++,G.dyn_dtree[(B<256?wg[B]:wg[256+(B>>>7)])*2]++);return G.last_lit===G.lit_bufsize-1};
yv=function(G,B){G.msg=Nz[B];return B};
nu=function(G){for(var B=G.length;--B>=0;)G[B]=0};
li=function(G){var B=G.state,F=B.pending;F>G.avail_out&&(F=G.avail_out);F!==0&&(ui.arraySet(G.output,B.pending_buf,B.pending_out,F,G.next_out),G.next_out+=F,B.pending_out+=F,G.total_out+=F,G.avail_out-=F,B.pending-=F,B.pending===0&&(B.pending_out=0))};
EO=function(G,B){var F=G.block_start>=0?G.block_start:-1,D=G.strstart-G.block_start,u=0;if(G.level>0){G.strm.data_type===2&&(G.strm.data_type=fkS(G));cVU(G,G.l_desc);cVU(G,G.d_desc);TKS(G,G.dyn_ltree,G.l_desc.max_code);TKS(G,G.dyn_dtree,G.d_desc.max_code);cVU(G,G.bl_desc);for(u=18;u>=3&&G.bl_tree[tsJ[u]*2+1]===0;u--);G.opt_len+=3*(u+1)+5+5+4;var R=G.opt_len+3+7>>>3;var N=G.static_len+3+7>>>3;N<=R&&(R=N)}else R=N=D+5;if(D+4<=R&&F!==-1)Fs(G,B?1:0,3),v78(G,F,D);else if(G.strategy===4||N===R)Fs(G,2+(B?
1:0),3),JVS(G,UO,qz);else{Fs(G,4+(B?1:0),3);F=G.l_desc.max_code+1;D=G.d_desc.max_code+1;u+=1;Fs(G,F-257,5);Fs(G,D-1,5);Fs(G,u-4,4);for(R=0;R<u;R++)Fs(G,G.bl_tree[tsJ[R]*2+1],3);IkM(G,G.dyn_ltree,F-1);IkM(G,G.dyn_dtree,D-1);JVS(G,G.dyn_ltree,G.dyn_dtree)}bpJ(G);B&&VsI(G);G.block_start=G.strstart;li(G.strm)};
ho=function(G,B){G.pending_buf[G.pending++]=B};
Ku=function(G,B){G.pending_buf[G.pending++]=B>>>8&255;G.pending_buf[G.pending++]=B&255};
ZpQ=function(G,B){var F=G.max_chain_length,D=G.strstart,u=G.prev_length,R=G.nice_match,N=G.strstart>G.w_size-262?G.strstart-(G.w_size-262):0,y=G.window,U=G.w_mask,q=G.prev,h=G.strstart+258,K=y[D+u-1],a=y[D+u];G.prev_length>=G.good_match&&(F>>=2);R>G.lookahead&&(R=G.lookahead);do{var m=B;if(y[m+u]===a&&y[m+u-1]===K&&y[m]===y[D]&&y[++m]===y[D+1]){D+=2;for(m++;y[++D]===y[++m]&&y[++D]===y[++m]&&y[++D]===y[++m]&&y[++D]===y[++m]&&y[++D]===y[++m]&&y[++D]===y[++m]&&y[++D]===y[++m]&&y[++D]===y[++m]&&D<h;);
m=258-(h-D);D=h-258;if(m>u){G.match_start=B;u=m;if(m>=R)break;K=y[D+u-1];a=y[D+u]}}}while((B=q[B&U])>N&&--F!==0);return u<=G.lookahead?u:G.lookahead};
mO=function(G){var B=G.w_size,F;do{var D=G.window_size-G.lookahead-G.strstart;if(G.strstart>=B+(B-262)){ui.arraySet(G.window,G.window,B,B,0);G.match_start-=B;G.strstart-=B;G.block_start-=B;var u=F=G.hash_size;do{var R=G.head[--u];G.head[u]=R>=B?R-B:0}while(--F);u=F=B;do R=G.prev[--u],G.prev[u]=R>=B?R-B:0;while(--F);D+=B}if(G.strm.avail_in===0)break;u=G.strm;F=G.window;R=G.strstart+G.lookahead;var N=u.avail_in;N>D&&(N=D);N===0?F=0:(u.avail_in-=N,ui.arraySet(F,u.input,u.next_in,N,R),u.state.wrap===
1?u.adler=g7l(u.adler,F,N,R):u.state.wrap===2&&(u.adler=aB(u.adler,F,N,R)),u.next_in+=N,u.total_in+=N,F=N);G.lookahead+=F;if(G.lookahead+G.insert>=3)for(D=G.strstart-G.insert,G.ins_h=G.window[D],G.ins_h=(G.ins_h<<G.hash_shift^G.window[D+1])&G.hash_mask;G.insert&&!(G.ins_h=(G.ins_h<<G.hash_shift^G.window[D+3-1])&G.hash_mask,G.prev[D&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=D,D++,G.insert--,G.lookahead+G.insert<3););}while(G.lookahead<262&&G.strm.avail_in!==0)};
Sj8=function(G,B){for(var F;;){if(G.lookahead<262){mO(G);if(G.lookahead<262&&B===0)return 1;if(G.lookahead===0)break}F=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,F=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);F!==0&&G.strstart-F<=G.w_size-262&&(G.match_length=ZpQ(G,F));if(G.match_length>=3)if(F=Cu(G,G.strstart-G.match_start,G.match_length-3),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=3){G.match_length--;
do G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart;while(--G.match_length!==0);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else F=Cu(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(F&&(EO(G,!1),G.strm.avail_out===0))return 1}G.insert=G.strstart<2?G.strstart:2;return B===4?(EO(G,
!0),G.strm.avail_out===0?3:4):G.last_lit&&(EO(G,!1),G.strm.avail_out===0)?1:2};
Xs=function(G,B){for(var F,D;;){if(G.lookahead<262){mO(G);if(G.lookahead<262&&B===0)return 1;if(G.lookahead===0)break}F=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,F=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);G.prev_length=G.match_length;G.prev_match=G.match_start;G.match_length=2;F!==0&&G.prev_length<G.max_lazy_match&&G.strstart-F<=G.w_size-262&&(G.match_length=ZpQ(G,F),G.match_length<=5&&(G.strategy===1||G.match_length===3&&
G.strstart-G.match_start>4096)&&(G.match_length=2));if(G.prev_length>=3&&G.match_length<=G.prev_length){D=G.strstart+G.lookahead-3;F=Cu(G,G.strstart-1-G.prev_match,G.prev_length-3);G.lookahead-=G.prev_length-1;G.prev_length-=2;do++G.strstart<=D&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);while(--G.prev_length!==0);G.match_available=0;G.match_length=2;G.strstart++;if(F&&(EO(G,!1),G.strm.avail_out===0))return 1}else if(G.match_available){if((F=
Cu(G,0,G.window[G.strstart-1]))&&EO(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return 1}else G.match_available=1,G.strstart++,G.lookahead--}G.match_available&&(Cu(G,0,G.window[G.strstart-1]),G.match_available=0);G.insert=G.strstart<2?G.strstart:2;return B===4?(EO(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(EO(G,!1),G.strm.avail_out===0)?1:2};
sFJ=function(G,B){for(var F,D,u,R=G.window;;){if(G.lookahead<=258){mO(G);if(G.lookahead<=258&&B===0)return 1;if(G.lookahead===0)break}G.match_length=0;if(G.lookahead>=3&&G.strstart>0&&(D=G.strstart-1,F=R[D],F===R[++D]&&F===R[++D]&&F===R[++D])){for(u=G.strstart+258;F===R[++D]&&F===R[++D]&&F===R[++D]&&F===R[++D]&&F===R[++D]&&F===R[++D]&&F===R[++D]&&F===R[++D]&&D<u;);G.match_length=258-(u-D);G.match_length>G.lookahead&&(G.match_length=G.lookahead)}G.match_length>=3?(F=Cu(G,1,G.match_length-3),G.lookahead-=
G.match_length,G.strstart+=G.match_length,G.match_length=0):(F=Cu(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++);if(F&&(EO(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return B===4?(EO(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(EO(G,!1),G.strm.avail_out===0)?1:2};
xOg=function(G,B){for(var F;;){if(G.lookahead===0&&(mO(G),G.lookahead===0)){if(B===0)return 1;break}G.match_length=0;F=Cu(G,0,G.window[G.strstart]);G.lookahead--;G.strstart++;if(F&&(EO(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return B===4?(EO(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(EO(G,!1),G.strm.avail_out===0)?1:2};
Qv=function(G,B,F,D,u){this.good_length=G;this.max_lazy=B;this.nice_length=F;this.max_chain=D;this.func=u};
Pnc=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 ui.Buf16(1146);this.dyn_dtree=new ui.Buf16(122);this.bl_tree=new ui.Buf16(78);nu(this.dyn_ltree);nu(this.dyn_dtree);nu(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new ui.Buf16(16);this.heap=new ui.Buf16(573);nu(this.heap);this.heap_max=this.heap_len=0;this.depth=new ui.Buf16(573);nu(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};
Ga8=function(G,B){if(!G||!G.state||B>5||B<0)return G?yv(G,-2):-2;var F=G.state;if(!G.output||!G.input&&G.avail_in!==0||F.status===666&&B!==4)return yv(G,G.avail_out===0?-5:-2);F.strm=G;var D=F.last_flush;F.last_flush=B;if(F.status===42)if(F.wrap===2)G.adler=0,ho(F,31),ho(F,139),ho(F,8),F.gzhead?(ho(F,(F.gzhead.text?1:0)+(F.gzhead.hcrc?2:0)+(F.gzhead.extra?4:0)+(F.gzhead.name?8:0)+(F.gzhead.comment?16:0)),ho(F,F.gzhead.time&255),ho(F,F.gzhead.time>>8&255),ho(F,F.gzhead.time>>16&255),ho(F,F.gzhead.time>>
24&255),ho(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),ho(F,F.gzhead.os&255),F.gzhead.extra&&F.gzhead.extra.length&&(ho(F,F.gzhead.extra.length&255),ho(F,F.gzhead.extra.length>>8&255)),F.gzhead.hcrc&&(G.adler=aB(G.adler,F.pending_buf,F.pending,0)),F.gzindex=0,F.status=69):(ho(F,0),ho(F,0),ho(F,0),ho(F,0),ho(F,0),ho(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),ho(F,3),F.status=113);else{var u=8+(F.w_bits-8<<4)<<8;u|=(F.strategy>=2||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6;F.strstart!==0&&(u|=
32);F.status=113;Ku(F,u+(31-u%31));F.strstart!==0&&(Ku(F,G.adler>>>16),Ku(F,G.adler&65535));G.adler=1}if(F.status===69)if(F.gzhead.extra){for(u=F.pending;F.gzindex<(F.gzhead.extra.length&65535)&&(F.pending!==F.pending_buf_size||(F.gzhead.hcrc&&F.pending>u&&(G.adler=aB(G.adler,F.pending_buf,F.pending-u,u)),li(G),u=F.pending,F.pending!==F.pending_buf_size));)ho(F,F.gzhead.extra[F.gzindex]&255),F.gzindex++;F.gzhead.hcrc&&F.pending>u&&(G.adler=aB(G.adler,F.pending_buf,F.pending-u,u));F.gzindex===F.gzhead.extra.length&&
(F.gzindex=0,F.status=73)}else F.status=73;if(F.status===73)if(F.gzhead.name){u=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>u&&(G.adler=aB(G.adler,F.pending_buf,F.pending-u,u)),li(G),u=F.pending,F.pending===F.pending_buf_size)){var R=1;break}R=F.gzindex<F.gzhead.name.length?F.gzhead.name.charCodeAt(F.gzindex++)&255:0;ho(F,R)}while(R!==0);F.gzhead.hcrc&&F.pending>u&&(G.adler=aB(G.adler,F.pending_buf,F.pending-u,u));R===0&&(F.gzindex=0,F.status=91)}else F.status=91;if(F.status===
91)if(F.gzhead.comment){u=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>u&&(G.adler=aB(G.adler,F.pending_buf,F.pending-u,u)),li(G),u=F.pending,F.pending===F.pending_buf_size)){R=1;break}R=F.gzindex<F.gzhead.comment.length?F.gzhead.comment.charCodeAt(F.gzindex++)&255:0;ho(F,R)}while(R!==0);F.gzhead.hcrc&&F.pending>u&&(G.adler=aB(G.adler,F.pending_buf,F.pending-u,u));R===0&&(F.status=103)}else F.status=103;F.status===103&&(F.gzhead.hcrc?(F.pending+2>F.pending_buf_size&&li(G),
F.pending+2<=F.pending_buf_size&&(ho(F,G.adler&255),ho(F,G.adler>>8&255),G.adler=0,F.status=113)):F.status=113);if(F.pending!==0){if(li(G),G.avail_out===0)return F.last_flush=-1,0}else if(G.avail_in===0&&(B<<1)-(B>4?9:0)<=(D<<1)-(D>4?9:0)&&B!==4)return yv(G,-5);if(F.status===666&&G.avail_in!==0)return yv(G,-5);if(G.avail_in!==0||F.lookahead!==0||B!==0&&F.status!==666){D=F.strategy===2?xOg(F,B):F.strategy===3?sFJ(F,B):j6[F.level].func(F,B);if(D===3||D===4)F.status=666;if(D===1||D===3)return G.avail_out===
0&&(F.last_flush=-1),0;if(D===2&&(B===1?(Fs(F,2,3),D8(F,256,UO),F.bi_valid===16?(ii(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=F.bi_buf&255,F.bi_buf>>=8,F.bi_valid-=8)):B!==5&&(Fs(F,0,3),v78(F,0,0),B===3&&(nu(F.head),F.lookahead===0&&(F.strstart=0,F.block_start=0,F.insert=0))),li(G),G.avail_out===0))return F.last_flush=-1,0}if(B!==4)return 0;if(F.wrap<=0)return 1;F.wrap===2?(ho(F,G.adler&255),ho(F,G.adler>>8&255),ho(F,G.adler>>16&255),ho(F,G.adler>>24&255),ho(F,
G.total_in&255),ho(F,G.total_in>>8&255),ho(F,G.total_in>>16&255),ho(F,G.total_in>>24&255)):(Ku(F,G.adler>>>16),Ku(F,G.adler&65535));li(G);F.wrap>0&&(F.wrap=-F.wrap);return F.pending!==0?0:1};
B3l=function(G){if(!(this instanceof B3l))return new B3l(G);G=this.options=ui.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},G||{});G.raw&&G.windowBits>0?G.windowBits=-G.windowBits:G.gzip&&G.windowBits>0&&G.windowBits<16&&(G.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new iWg;this.strm.avail_out=0;var B=this.strm;var F=G.level,D=G.method,u=G.windowBits,R=G.memLevel,N=G.strategy;if(B){var y=1;F===-1&&(F=6);u<0?(y=0,u=-u):u>15&&
(y=2,u-=16);if(R<1||R>9||D!==8||u<8||u>15||F<0||F>9||N<0||N>4)B=yv(B,-2);else{u===8&&(u=9);var U=new Pnc;B.state=U;U.strm=B;U.wrap=y;U.gzhead=null;U.w_bits=u;U.w_size=1<<U.w_bits;U.w_mask=U.w_size-1;U.hash_bits=R+7;U.hash_size=1<<U.hash_bits;U.hash_mask=U.hash_size-1;U.hash_shift=~~((U.hash_bits+3-1)/3);U.window=new ui.Buf8(U.w_size*2);U.head=new ui.Buf16(U.hash_size);U.prev=new ui.Buf16(U.w_size);U.lit_bufsize=1<<R+6;U.pending_buf_size=U.lit_bufsize*4;U.pending_buf=new ui.Buf8(U.pending_buf_size);
U.d_buf=U.lit_bufsize;U.l_buf=3*U.lit_bufsize;U.level=F;U.strategy=N;U.method=D;if(B&&B.state){B.total_in=B.total_out=0;B.data_type=2;F=B.state;F.pending=0;F.pending_out=0;F.wrap<0&&(F.wrap=-F.wrap);F.status=F.wrap?42:113;B.adler=F.wrap===2?0:1;F.last_flush=0;if(!FCL){D=Array(16);for(R=N=0;R<28;R++)for(Yj6[R]=N,u=0;u<1<<pmz[R];u++)RB[N++]=R;RB[N-1]=R;for(R=N=0;R<16;R++)for(dOo[R]=N,u=0;u<1<<AVs[R];u++)wg[N++]=R;for(N>>=7;R<30;R++)for(dOo[R]=N<<7,u=0;u<1<<AVs[R]-7;u++)wg[256+N++]=R;for(u=0;u<=15;u++)D[u]=
0;for(u=0;u<=143;)UO[u*2+1]=8,u++,D[8]++;for(;u<=255;)UO[u*2+1]=9,u++,D[9]++;for(;u<=279;)UO[u*2+1]=7,u++,D[7]++;for(;u<=287;)UO[u*2+1]=8,u++,D[8]++;zcJ(UO,287,D);for(u=0;u<30;u++)qz[u*2+1]=5,qz[u*2]=$O6(u,5);D7L=new OpL(UO,pmz,257,286,15);uQz=new OpL(qz,AVs,0,30,15);R6l=new OpL([],wcI,0,19,7);FCL=!0}F.l_desc=new eco(F.dyn_ltree,D7L);F.d_desc=new eco(F.dyn_dtree,uQz);F.bl_desc=new eco(F.bl_tree,R6l);F.bi_buf=0;F.bi_valid=0;bpJ(F);F=0}else F=yv(B,-2);F===0&&(B=B.state,B.window_size=2*B.w_size,nu(B.head),
B.max_lazy_match=j6[B.level].max_lazy,B.good_match=j6[B.level].good_length,B.nice_match=j6[B.level].nice_length,B.max_chain_length=j6[B.level].max_chain,B.strstart=0,B.block_start=0,B.lookahead=0,B.insert=0,B.match_length=B.prev_length=2,B.match_available=0,B.ins_h=0);B=F}}else B=-2;if(B!==0)throw Error(Nz[B]);G.header&&(B=this.strm)&&B.state&&B.state.wrap===2&&(B.state.gzhead=G.header);if(G.dictionary){var q;typeof G.dictionary==="string"?q=CAs(G.dictionary):N3I.call(G.dictionary)==="[object ArrayBuffer]"?
q=new Uint8Array(G.dictionary):q=G.dictionary;G=this.strm;R=q;N=R.length;if(G&&G.state)if(q=G.state,B=q.wrap,B===2||B===1&&q.status!==42||q.lookahead)B=-2;else{B===1&&(G.adler=g7l(G.adler,R,N,0));q.wrap=0;N>=q.w_size&&(B===0&&(nu(q.head),q.strstart=0,q.block_start=0,q.insert=0),F=new ui.Buf8(q.w_size),ui.arraySet(F,R,N-q.w_size,q.w_size,0),R=F,N=q.w_size);F=G.avail_in;D=G.next_in;u=G.input;G.avail_in=N;G.next_in=0;G.input=R;for(mO(q);q.lookahead>=3;){R=q.strstart;N=q.lookahead-2;do q.ins_h=(q.ins_h<<
q.hash_shift^q.window[R+3-1])&q.hash_mask,q.prev[R&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=R,R++;while(--N);q.strstart=R;q.lookahead=2;mO(q)}q.strstart+=q.lookahead;q.block_start=q.strstart;q.insert=q.lookahead;q.lookahead=0;q.match_length=q.prev_length=2;q.match_available=0;G.next_in=D;G.input=u;G.avail_in=F;q.wrap=B;B=0}else B=-2;if(B!==0)throw Error(Nz[B]);this._dict_set=!0}};
ySz=function(G,B){B=B||{};B.gzip=!0;B=new B3l(B);B.push(G,!0);if(B.err)throw B.msg||Nz[B.err];return B.result};
lOJ=function(G,B){var F=nTS();F&&F.publish.call(F,G.toString(),G,B)};
KCc=function(G,B,F){var D=nTS();if(!D)return 0;var u=D.subscribe(G.toString(),function(R,N){var y=_.Yf("ytPubsub2Pubsub2SkipSubKey");y&&y==u||(y=function(){if(U7g[u])try{if(N&&G instanceof qFL&&G!=R)try{var U=G.dataClass,q=N;if(!q.args||!q.version)throw Error("bd");try{if(!U.version_){var h=new U;U.version_=h.version}var K=U.version_}catch(a){}if(!K||q.version!=K)throw Error("cd");try{N=Reflect.construct(U,_.II(q.args))}catch(a){throw a.message="yt.pubsub2.Data.deserialize(): "+a.message,a;}}catch(a){throw a.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+G.toString()+": "+a.message,a;}B.call(F||window,N)}catch(a){_.Mn(a)}},ETo[G.toString()]?_.Yf("yt.scheduler.instance")?_.Lu.addLowPriorityJob(y):_.iX(y,0):y())});
U7g[u]=!0;h6l[G.toString()]||(h6l[G.toString()]=[]);h6l[G.toString()].push(u);return u};
Qy8=function(){var G=aOc,B=KCc(m7I,function(F){G.apply(void 0,arguments);XcJ(B)});
return B};
XcJ=function(G){var B=nTS();B&&(typeof G==="number"&&(G=[G]),_.dn(G,function(F){B.unsubscribeByKey(F);delete U7g[F]}))};
nTS=function(){return _.Yf("ytPubsub2Pubsub2Instance")};
jys=function(G,B,F){F=F===void 0?{sampleRate:.1}:F;Math.random()<Math.min(.02,F.sampleRate/100)&&lOJ("meta_logging_csi_event",{timerName:G,timelineData:B})};
_.LCS=function(G){return G?(G=G.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.yD(G):null:null};
_.rg=function(G){return G?(G=G.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.pe(G):null:null};
WCc=function(){rSz||(rSz=_.rg(_.v5("WORKER_SERIALIZATION_URL")));return rSz||void 0};
_.kag=function(){var G=WCc();HWQ||G===void 0||(HWQ=od6(G));return HWQ};
_.OWQ=function(){return typeof Worker==="function"&&WCc()?!0:!1};
_.bW6=function(){if(_.OWQ()&&!e6L){var G=function(F){F=F.data;if(F.op==="gzippedGelBatch"){var D=$7L.get(F.key);D&&(z6S(F.gzippedBatch,D.latencyPayload,D.url,D.options,D.sendFn),$7L.delete(F.key))}},B=_.kag();
B&&(B.addEventListener("message",G),B.onerror=function(){$7L.clear()},e6L=!0)}};
YF8=function(G,B,F,D,u){u=u===void 0?!1:u;var R={startTime:(0,_.Zl)(),ticks:{},infos:{}};if(Ho)try{var N=VIo(B);if(N!=null&&(N>vT6||N<oTo))D(G,F);else{if(_.X("gzip_gel_with_worker")){e6L||_.bW6();var y=_.kag();if(y&&!u){$7L.set(MIl,{latencyPayload:R,url:G,options:F,sendFn:D});y.postMessage({op:"gelBatchToGzip",serializedBatch:B,key:MIl});MIl++;return}}var U=ySz(pcU(B));z6S(U,R,G,F,D)}}catch(q){_.Ae(q),D(G,F)}else D(G,F)};
z6S=function(G,B,F,D,u){var R=(0,_.Zl)();B.ticks.gelc=R;kr++;_.X("disable_compression_due_to_performance_degredation")&&R-B.startTime>=ASl&&(d7l++,Ho=!1);JSU(B);D.headers||(D.headers={});D.headers["Content-Encoding"]="gzip";D.postBody=G;D.postParams=void 0;u(F,D)};
T3z=function(G){var B=B===void 0?!1:B;var F=F===void 0?!1:F;var D=(0,_.Zl)(),u={startTime:D,ticks:{},infos:{}},R=B?_.Yf("yt.logging.gzipForFetch",!1):!0;if(Ho&&R){if(!G.body)return G;try{var N=F?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);R=N;if(!F&&typeof N==="string"){var y=VIo(N);if(y!=null&&(y>vT6||y<oTo))return G;F=B?{level:1}:void 0;R=ySz(pcU(N),F);var U=(0,_.Zl)();u.ticks.gelc=U;if(B){kr++;if((_.X("disable_compression_due_to_performance_degredation")||_.X("disable_compression_due_to_performance_degradation_lr"))&&
U-D>=ASl)if(d7l++,_.X("abandon_compression_after_N_slow_zips_lr")){B=d7l/kr;var q=cSM/_.sD("compression_disable_point");kr>0&&kr%_.sD("compression_disable_point")===0&&B>=q&&(Ho=!1)}else Ho=!1;JSU(u)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=R;return G}catch(h){return _.Ae(h),G}}else return G};
VIo=function(G){try{return(new Blob(G.split(""))).size}catch(B){return _.Ae(B),null}};
JSU=function(G){_.X("gel_compression_csi_killswitch")||!_.X("log_gel_compression_latency")&&!_.X("log_gel_compression_latency_lr")||jys("gel_compression",G,{sampleRate:.1})};
IOS=function(){this.blockSize=-1};
OO=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var G=1;G<this.blockSize;++G)this.pad_[G]=0;this.total_=this.inbuf_=0;this.reset()};
tIQ=function(G){G=Object.assign({},G);delete G.Authorization;var B=_.fOM();if(B){var F=new OO;F.update(_.v5("INNERTUBE_API_KEY"));F.update(B);G.hash=_.xM(F.digest(),3)}return G};
$r=function(){ZWg||(ZWg=new _.e6("yt.innertube"));return ZWg};
gTI=function(G,B,F,D){if(D)return null;D=$r().get("nextId",!0)||1;var u=$r().get("requests",!0)||{};u[D]={method:G,request:B,authState:tIQ(F),requestTime:Math.round((0,_.Zl)())};$r().set("nextId",D+1,86400,!0);$r().set("requests",u,86400,!0);return D};
SFc=function(G){var B=$r().get("requests",!0)||{};delete B[G];$r().set("requests",B,86400,!0)};
x7Q=function(G){var B=$r().get("requests",!0);if(B){for(var F in B){var D=B[F];if(!(Math.round((0,_.Zl)())-D.requestTime<6E4)){var u=D.authState,R=tIQ(_.Hpg(!1));_.UK.equals(u,R)&&(u=D.request,"requestTimeMs"in u&&(u.requestTimeMs=Math.round((0,_.Zl)())),syU(G,D.method,u,{}));delete B[F]}}$r().set("requests",B,86400,!0)}};
PAJ=function(G){var B;return(G=G==null?void 0:(B=G.error)==null?void 0:B.code)&&G>=400&&G<=599?!1:!0};
Gmo=function(G){var B;G=G==null?void 0:(B=G.error)==null?void 0:B.code;return!(G!==400&&G!==415)};
ik6=function(){if(BJQ)return BJQ();var G={};BJQ=tP("LogsDatabaseV2",{objectStores:(G.LogsRequestsStore={addedAtVersion:2},G),shared:!1,upgrade:function(B,F,D){F(2)&&bi(B,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});F(3);F(5)&&(D=D.objectStore("LogsRequestsStore"),D.JSC$10999_wrapped.indexNames.contains("newRequest")&&D.JSC$10999_wrapped.deleteIndex("newRequest"),Vv(D,"newRequestV2",["status","interface","timestamp"]));F(7)&&B.JSC$10984_wrapped.objectStoreNames.contains("sapisid")&&B.JSC$10984_wrapped.deleteObjectStore("sapisid");
F(9)&&B.JSC$10984_wrapped.objectStoreNames.contains("SWHealthLog")&&B.JSC$10984_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return BJQ()};
vo=function(G){return _.p8(ik6(),G)};
Dhl=function(G,B){var F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return F={startTime:(0,_.Zl)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},N.yield(vo(B),2);if(N.nextAddress!=3)return D=N.yieldResult,u=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),N.yield(D.put("LogsRequestsStore",u),3);R=N.yieldResult;F.ticks.tc=(0,_.Zl)();FrJ(F);return N.return(R)})};
u1U=function(G,B){var F,D,u,R,N,y,U,q,h;return _.n(function(K){if(K.nextAddress==1)return F={startTime:(0,_.Zl)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},K.yield(vo(B),2);if(K.nextAddress!=3)return D=K.yieldResult,u=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[G,u,0],N=[G,u,(0,_.Zl)()],y=IDBKeyRange.bound(R,N),U="prev",_.X("use_fifo_for_networkless")&&(U="next"),q=void 0,h=G==="NEW"?"readwrite":"readonly",_.X("use_readonly_for_get_most_recent_by_status_killswitch")&&(h="readwrite"),
K.yield(_.YK(D,["LogsRequestsStore"],{mode:h,enableRetries:!0},function(a){return _.go(a.objectStore("LogsRequestsStore").index("newRequestV2"),{query:y,direction:U},function(m){m.getValue()&&(q=m.getValue(),G==="NEW"&&(q.status="QUEUED",m.update(q)))})}),3);
F.ticks.tc=(0,_.Zl)();FrJ(F);return K.return(q)})};
Rtz=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1)return D.yield(vo(B),2);F=D.yieldResult;return D.return(_.YK(F,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){var R=u.objectStore("LogsRequestsStore");return R.get(G).then(function(N){if(N)return N.status="QUEUED",R.put(N).then(function(){return N})})}))})};
wrg=function(G,B,F,D){F=F===void 0?!0:F;var u;return _.n(function(R){if(R.nextAddress==1)return R.yield(vo(B),2);u=R.yieldResult;return R.return(_.YK(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(N){var y=N.objectStore("LogsRequestsStore");return y.get(G).then(function(U){return U?(U.status="NEW",F&&(U.sendCount+=1),D!==void 0&&(U.options.compress=D),y.put(U).then(function(){return U})):$K.resolve(void 0)})}))})};
C4S=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1)return D.yield(vo(B),2);F=D.yieldResult;return D.return(F.delete("LogsRequestsStore",G))})};
NJg=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(vo(G),2);B=D.yieldResult;F=(0,_.Zl)()-2592E6;return D.yield(_.YK(B,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){return JP(u.objectStore("LogsRequestsStore"),{},function(R){if(R.getValue().timestamp<=F)return R.delete().then(function(){return R.continue()})})}),0)})};
yxz=function(){_.n(function(G){return G.yield(GBs("LogsDatabaseV2"),0)})};
FrJ=function(G){_.X("nwl_csi_killswitch")||jys("networkless_performance",G,{sampleRate:1})};
_.leg=function(G){return _.p8(nNM(),G)};
Uho=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(_.leg(G),2);B=D.yieldResult;F=(0,_.Zl)()-2592E6;return D.yield(_.YK(B,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(u){return JP(u.objectStore("SWHealthLog"),{},function(R){if(R.getValue().timestamp<=F)return R.delete().then(function(){return R.continue()})})}),0)})};
q_M=function(G){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(_.leg(G),2);B=F.yieldResult;return F.yield(B.clear("SWHealthLog"),0)})};
_.oB=function(G,B,F,D,u,R,N){u=u===void 0?"":u;R=R===void 0?!1:R;N=N===void 0?!1:N;if(G)if(F&&!HQ("cobalt"))_.Ae(new _.Uf("Legacy referrer-scrubbed ping detected")),G&&ENl(G,void 0,{scrubReferrer:!0});else if(u)T5o(G,B,"POST",u,D);else if(_.v5("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||D||N)T5o(G,B,"GET","",D,void 0,R,N);else{b:{try{c:{var y=new htg({url:G});if(y.urlParamValues_.dsh==="1")var U=null;else{var q=y.urlParamValues_.ae;if(q==="1"){var h=y.urlParamValues_.adurl;if(h)try{U={version:3,directUrl:decodeURIComponent(h),
asyncUrl:X5z(y.JSC$9786_url_,"act=1","ri=1",Krs(y))};break c}catch(L){}}U=q==="2"?{version:4,directUrl:X5z(y.JSC$9786_url_,"dct=1","suid="+y.suid_,"ri=1"),asyncUrl:X5z(y.JSC$9786_url_,"act=1","ri=1","suid="+y.suid_)}:null}}if(U){var K=_.Ik(G);var a=!(!K||!K.endsWith("/aclk")||_.Be(G,"ri")!=="1");break b}}catch(L){}a=!1}if(a){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,"")){var m=!0;break b}}catch(L){}m=!1}m?(B&&B(),F=!0):F=!1}else F=!1;F||ENl(G,B)}};
ENl=function(G,B,F){F=F===void 0?{}:F;var D=new Image,u=""+aez++;mhS[u]=D;D.onload=D.onerror=function(){B&&mhS[u]&&B();delete mhS[u]};
F.scrubReferrer&&(D.referrerPolicy="no-referrer");D.src=G};
Mz=function(G,B){XrI(G,B==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
QhS=function(G){var B;return((B=document.featurePolicy)==null?0:B.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"};
jhJ=function(G){if(!G)return!1;try{var B;if(((B=_.Je(G))==null?void 0:B.asm)==="4")return!0}catch(F){_.Mn(F)}return!1};
XrI=function(G,B){B?(G=QhS(G),_.oB(G,void 0,void 0,void 0,"",!0,!0)):_.oB(G)};
rxM=function(){Lrc||(Lrc=new _.e6("yt.offline"));return Lrc};
Wrz=function(G){if(_.X("offline_error_handling")){var B=rxM().get("errors",!0)||{};B[G.message]={name:G.name,stack:G.stack};G.level&&(B[G.message].level=G.level);rxM().set("errors",B,2592E3,!0)}};
kmo=function(G,B,F,D){D=D===void 0?!1:D;B=_.X("web_fp_via_jspb")?Object.assign({},B):B;_.X("use_cfr_monitor")&&HkI(G,B);if(_.X("use_request_time_ms_header"))B.headers&&In(G)&&(B.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Zl)())));else{var u;if((u=B.postParams)==null?0:u.requestTimeMs)B.postParams.requestTimeMs=Math.round((0,_.Zl)())}F&&Object.keys(B).length===0?_.oB(G):B.compress?B.postBody?(typeof B.postBody!=="string"&&(B.postBody=JSON.stringify(B.postBody)),YF8(G,B.postBody,
B,_.uX,D)):YF8(G,JSON.stringify(B.postParams),B,ZRl,D):_.uX(G,B)};
Ok8=function(G,B){_.X("use_event_time_ms_header")&&In(G)&&(B.headers||(B.headers={}),B.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Zl)())));return B};
_.$hz=function(){etM||(etM=new _.pu({logOfflineErrors:!0,enablePolling:!0}));return etM};
HkI=function(G,B){var F=B.onError?B.onError:function(){};
B.onError=function(u,R){Yr().requestComplete(G,!1);F(u,R)};
var D=B.onSuccess?B.onSuccess:function(){};
B.onSuccess=function(u,R){Yr().requestComplete(G,!0);D(u,R)}};
_.ztl=function(){return _.Tt(document.location.toString())!=="www.youtube-nocookie.com"};
_.vNQ=function(){return _.Yf("ytNetworklessLoggingInitializationOptions")?_.bkg.isNwlInitialized:_.VFg};
oNL=function(G,B){if(_.X("polymer_on_demand_shady_dom")){var F;var D=(F=G.__shady_native_firstElementChild)!=null?F:G.firstElementChild}else D=G.firstElementChild;for(;D;){if(G=B(D)?D:oNL(D,B))return G;D=D.nextElementSibling}return null};
_.pr8=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var B=MFl+"VisibilityState";if(B in G)return G[B]};
_.Y_U=function(G,B){var F;Ao(G,function(D){F=B[D];return!!F});
return F};
_.Jo=function(G){var B=Ax8(G);B?B.focus(void 0):_.dg(G)};
Ax8=function(G){return(G=oNL(G,function(B){return _.Zn(B)?dh6(B)&&!!B.offsetParent:!1}))?G:null};
_.dg=function(G,B){G.hasAttribute("tabindex")||G.setAttribute("tabindex","-1");G.focus(B)};
Jxs=function(G,B,F,D){D=D===void 0?{}:D;G.addEventListener&&(B!="mouseenter"||"onmouseenter"in document?B!="mouseleave"||"onmouseenter"in document?B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"):B="mouseout":B="mouseover");return _.UK.findKey(co,function(u){var R=typeof u[4]==="boolean"&&u[4]==!!D,N=_.Zc(u[4])&&_.Zc(D)&&_.UK.equals(u[4],D);return!!u.length&&u[0]==G&&u[1]==B&&u[2]==F&&(R||N)})};
_.IB=function(G,B,F,D){D=D===void 0?{}:D;if(!G||!G.addEventListener&&!G.attachEvent)return"";var u=Jxs(G,B,F,D);if(u)return u;u=++cxJ.count+"";var R=!(B!="mouseenter"&&B!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var N=R?function(y){y=new TD(y);if(!_.mG(y.relatedTarget,function(U){return U==G},!0))return y.currentTarget=G,y.type=B,F.call(G,y)}:function(y){y=new TD(y);
y.currentTarget=G;return F.call(G,y)};
N=_.pH(N);G.addEventListener?(B=="mouseenter"&&R?B="mouseover":B=="mouseleave"&&R?B="mouseout":B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"),TJs()||typeof D==="boolean"?G.addEventListener(B,N,D):G.addEventListener(B,N,!!D.capture)):G.attachEvent("on"+B,N);co[u]=[G,B,F,N,D];return u};
_.fes=function(G,B,F){var D=D===void 0?{}:D;var u=_.IB(G,B,function(){_.IeS(u);F.apply(G,arguments)},D)};
_.IeS=function(G){G&&(typeof G=="string"&&(G=[G]),_.dn(G,function(B){if(B in co){var F=co[B],D=F[0],u=F[1],R=F[3];F=F[4];D.removeEventListener?TJs()||typeof F==="boolean"?D.removeEventListener(u,R,F):D.removeEventListener(u,R,!!F.capture):D.detachEvent&&D.detachEvent("on"+u,R);delete co[B]}}))};
fu=function(G){this.callback_=G;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(G=0;G<4;G++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.IB(window,"mousemove",(0,_.R_)(this.onMouseMove_,this));this.timerId_=_.FB((0,_.R_)(this.checkPosition_,this),25)};
gNU=function(){var G={};var B=G.preferMobileEvents===void 0?!1:G.preferMobileEvents;G=G.enableScrollEventListener===void 0?!0:G.enableScrollEventListener;if(_.Yf("_lact",window)==null){var F=parseInt(_.v5("LACT"),10);F=isFinite(F)?Date.now()-Math.max(F,0):-1;_.IY("_lact",F,window);_.IY("_fact",F,window);F==-1&&_.to();tFl(window,B,G);new fu(function(){Zks("mouse",100)})}};
tFl=function(G,B,F){B=B===void 0?!1:B;F=F===void 0?!0:F;_.IB(G.document,"keydown",_.to);_.IB(G.document,"keyup",_.to);_.IB(G.document,"mousedown",_.to);_.IB(G.document,"mouseup",_.to);B?_.IB(G,"touchmove",function(){Zks("touchmove",200)},{passive:!0}):(_.IB(G,"resize",function(){Zks("resize",200)}),F&&_.IB(G,"scroll",function(){Zks("scroll",200)}));
_.IB(G.document,"touchstart",_.to,{passive:!0});_.IB(G.document,"touchend",_.to,{passive:!0})};
Zks=function(G,B){S_6[G]||(S_6[G]=!0,_.Lu.addLowPriorityJob(function(){_.to();S_6[G]=!1},B))};
_.to=function(){_.Yf("_lact",window)==null&&gNU();var G=Date.now();_.IY("_lact",G,window);_.Yf("_fact",window)==-1&&_.IY("_fact",G,window);(G=_.Yf("ytglobal.ytUtilActivityCallback_"))&&G()};
_.Z8=function(){var G=_.Yf("_lact",window);return G==null?-1:Math.max(Date.now()-G,0)};
_.xr=function(G,B,F){var D=_.gg();if(D&&B){var u=D.subscribe(G,function(){var R=arguments,N=function(){S6[u]&&B.apply&&typeof B.apply=="function"&&B.apply(F||window,R)};
try{_.sh6[G]?N():_.iX(N,0)}catch(y){_.Mn(y)}},F);
S6[u]=!0;sO[G]||(sO[G]=[]);sO[G].push(u);return u}return 0};
_.xhs=function(G){var B=_.gg();B&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),_.dn(G,function(F){B.unsubscribeByKey(F);delete S6[F]}))};
_.P4J=function(G,B){var F=_.gg();F&&F.publish.apply(F,arguments)};
_.Beg=function(G){var B=_.gg();if(B)if(B.clear(G),G)GnS(G);else for(var F in sO)GnS(F)};
_.gg=function(){return _.Fz.ytPubsubPubsubInstance};
GnS=function(G){sO[G]&&(G=sO[G],_.dn(G,function(B){S6[B]&&delete S6[B]}),G.length=0)};
iAS=function(){var G,B;return"h5vcc"in Po&&((G=Po.h5vcc.traceEvent)==null?0:G.traceBegin)&&((B=Po.h5vcc.traceEvent)==null?0:B.traceEnd)?1:"performance"in Po&&Po.performance.mark&&Po.performance.measure?2:0};
FAS=function(G){var B=iAS();switch(B){case 1:Po.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:Po.performance.mark(G+"-start");break;case 0:break;default:_.BS(B,"unknown trace type")}};
D6l=function(G){var B=iAS();switch(B){case 1:Po.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:B=G+"-start";var F=G+"-end";Po.performance.mark(F);Po.performance.measure(G,B,F);break;case 0:break;default:_.BS(B,"unknown trace type")}};
uTg=function(G){var B,F;(F=(B=window).onerror)==null||F.call(B,G.message,"",0,0,G)};
Ri8=function(G){if(_.X("web_lifecycle_error_handling_killswitch"))return G();try{return G()}catch(B){uTg(B)}};
wIc=function(G){return[G.auth===void 0?"undefined":G.auth,G.isJspb===void 0?"undefined":G.isJspb,G.cttAuthInfo===void 0?"undefined":G.cttAuthInfo,G.tier===void 0?"undefined":G.tier].join("/")};
_.Q=function(G,B){if(G)return G[B.name]};
B$=function(){var G=_.Yf("yt.logging.ims");G||(G=new GA,_.IY("yt.logging.ims",G));return G};
hiU=function(G,B){if(G.endpoint==="log_event"){CNl(G);var F=NeM(G),D=yZz(G.payload)||"",u=nFg(D),R=200;if(u){if(u.enabled===!1&&!_.X("web_payload_policy_disabled_killswitch"))return;R=l$8(u.tier);if(R===400){U6I(G,B);return}}iZ[F]=!0;F={cttAuthInfo:F,isJspb:!1,tier:R};B$().storePayload(F,G.payload);qRU(B,!1,F,EFs(D))}};
a$L=function(G,B,F){if(B.endpoint==="log_event"){CNl(void 0,B);var D=NeM(B,!0),u=nFg(G),R=200;if(u){if(u.enabled===!1&&!_.X("web_payload_policy_disabled_killswitch"))return;R=l$8(u.tier);if(R===400){KAL(G,B,F);return}}iZ[D]=!0;D={cttAuthInfo:D,isJspb:!0,tier:R};B$().storePayload(D,YD(B.payload));qRU(F,!0,D,EFs(G))}};
qRU=function(G,B,F,D){B=B===void 0?!1:B;D=D===void 0?!1:D;G&&(F0=new G);G=_.sD("tvhtml5_logging_max_batch_ads_fork")||_.sD("tvhtml5_logging_max_batch")||_.sD("web_logging_max_batch")||100;var u=(0,_.Zl)(),R=m6S(B,F.tier),N=R.lastDebounceQueueFromLogTimeMs;D&&(R.useVideoStatsEndPoint=!0);D=0;F&&(D=B$().getSequenceCount(F));var y=function(){XI6({writeThenSend:!0},B,F.tier)};
D>=1E3?y():D>=G?QQg||(QQg=jQs(function(){y();QQg=void 0},0)):u-N>=10&&(LA6(B,F.tier),R.lastDebounceQueueFromLogTimeMs=u)};
U6I=function(G,B){if(G.endpoint==="log_event"){_.X("more_accurate_gel_parser")&&B$().storePayload({isJspb:!1},G.payload);CNl(G);var F=NeM(G),D=new Map;D.set(F,[G.payload]);var u=yZz(G.payload)||"";B&&(F0=new B);return new _.DS(function(R,N){F0&&F0.isReady()?rZz(D,F0,R,N,{bypassNetworkless:!0},!0,EFs(u)):R()})}};
KAL=function(G,B,F){if(B.endpoint==="log_event"){CNl(void 0,B);var D=NeM(B,!0),u=new Map;u.set(D,[YD(B.payload)]);F&&(F0=new F);return new _.DS(function(R){F0&&F0.isReady()?WAs(u,F0,R,{bypassNetworkless:!0},!0,EFs(G)):R()})}};
NeM=function(G,B){var F="";if(G.dangerousLogToVisitorSession)F="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(B===void 0?0:B){B=G.cttAuthInfo.token;F=G.cttAuthInfo;var D=new HAQ;F.videoId?D.setVideoId(F.videoId):F.playlistId&&uZ(D,2,knU,HS(F.playlistId));OAo[B]=D}else B=G.cttAuthInfo,F={},B.videoId?F.videoId=B.videoId:B.playlistId&&(F.playlistId=B.playlistId),eiQ[G.cttAuthInfo.token]=F;F=G.cttAuthInfo.token}return F};
XI6=function(G,B,F){G=G===void 0?{}:G;B=B===void 0?!1:B;new _.DS(function(D,u){var R=m6S(B,F),N=R.useVideoStatsEndPoint;R.useVideoStatsEndPoint=!1;$6z(R.queueTimer);$6z(R.queueMaxTimer);R.queueMaxTimer=0;F0&&F0.isReady()?F===void 0&&_.X("enable_web_tiered_gel")?ziI(D,u,G,B,300,N):ziI(D,u,G,B,F,N):(LA6(B,F),D())})};
ziI=function(G,B,F,D,u,R){var N=F0;F=F===void 0?{}:F;D=D===void 0?!1:D;u=u===void 0?200:u;R=R===void 0?!1:R;var y=new Map,U=new Map,q={isJspb:D,cttAuthInfo:void 0,tier:u},h={isJspb:D,cttAuthInfo:void 0};if(D){B=_.C(Object.keys(iZ));for(u=B.next();!u.done;u=B.next())u=u.value,U=_.X("enable_web_tiered_gel")?B$().smartExtractMatchingEntries({keys:[q,h],sizeLimit:1E3}):B$().extractMatchingEntries({isJspb:!0,cttAuthInfo:u}),U.length>0&&y.set(u,U),(_.X("web_fp_via_jspb_and_json")&&F.writeThenSend||!_.X("web_fp_via_jspb_and_json"))&&
delete iZ[u];WAs(y,N,G,F,!1,R)}else{y=_.C(Object.keys(iZ));for(q=y.next();!q.done;q=y.next())q=q.value,h=_.X("enable_web_tiered_gel")?B$().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:q,tier:u},{isJspb:!1,cttAuthInfo:q}],sizeLimit:1E3}):B$().extractMatchingEntries({isJspb:!1,cttAuthInfo:q}),h.length>0&&U.set(q,h),(_.X("web_fp_via_jspb_and_json")&&F.writeThenSend||!_.X("web_fp_via_jspb_and_json"))&&delete iZ[q];rZz(U,N,G,B,F,!1,R)}};
LA6=function(G,B){G=G===void 0?!1:G;B=B===void 0?200:B;var F=function(){XI6({writeThenSend:!0},G,B)},D=m6S(G,B),u=D===bAI||D===Vog?5E3:vFJ;
_.X("web_gel_timeout_cap")&&!D.queueMaxTimer&&(u=jQs(function(){F()},u),D.queueMaxTimer=u);
$6z(D.queueTimer);u=_.v5("LOGGING_BATCH_TIMEOUT",_.sD("web_gel_debounce_ms",1E4));_.X("shorten_initial_gel_batch_timeout")&&oF6&&(u=MoJ);u=jQs(function(){_.sD("gel_min_batch_size")>0?B$().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:B})>=pIM&&F():F()},u);
D.queueTimer=u};
rZz=function(G,B,F,D,u,R,N){u=u===void 0?{}:u;var y=Math.round((0,_.Zl)()),U=G.size,q=YRS(N);G=_.C(G);var h=G.next();for(N={};!h.done;N={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},h=G.next()){var K=_.C(h.value);h=K.next().value;K=K.next().value;N.batchRequest=_.UK.unsafeClone({context:_.KaM(B.config_||_.SE())});if(!_.fQ(K)&&!_.X("throw_err_when_logevent_malformed_killswitch")){D();break}N.batchRequest.events=K;
(K=eiQ[h])&&AZ6(N.batchRequest,h,K);delete eiQ[h];N.dangerousLogToVisitorSession=h==="visitorOnlyApprovedKey";d6U(N.batchRequest,y,N.dangerousLogToVisitorSession);JZU(u);N.onSuccess$jscomp$3=function(a){_.X("start_client_gcf")&&_.Lu.addLowPriorityJob(function(){return _.n(function(m){return m.yield(cZg(a),0)})});
U--;U||F()};
N.networkFailures=0;N.onError$jscomp$5=function(a){return function(){a.networkFailures++;if(u.bypassNetworkless&&a.networkFailures===1)try{syU(B,q,a.batchRequest,Tes({writeThenSend:!0},a.dangerousLogToVisitorSession,a.onSuccess$jscomp$3,a.onError$jscomp$5,R)),oF6=!1}catch(m){_.Mn(m),D()}U--;U||F()}}(N);
try{syU(B,q,N.batchRequest,Tes(u,N.dangerousLogToVisitorSession,N.onSuccess$jscomp$3,N.onError$jscomp$5,R)),oF6=!1}catch(a){_.Mn(a),D()}}};
WAs=function(G,B,F,D,u,R){D=D===void 0?{}:D;var N=Math.round((0,_.Zl)()),y={value:G.size},U=new Map([].concat(_.gi(G)));U=_.C(U);for(var q=U.next();!q.done;q=U.next()){var h=_.C(q.value).next().value,K=G.get(h);q=new Ru;var a=B.config_||_.SE(),m=new wa,L=new I$S;_.wq(L,1,a.innertubeContextHostLanguage);_.wq(L,2,a.innertubeContextGeoLocation);_.xK(L,16,a.innertubeContextClientNameFieldNumber);_.wq(L,17,a.innertubeContextClientVersion);if(a.innertubeContextClientConfigInfo){var W=a.innertubeContextClientConfigInfo,
e=new GD;W.coldConfigData&&_.wq(e,1,W.coldConfigData);W.appInstallData&&_.wq(e,6,W.appInstallData);W.coldHashData&&_.wq(e,3,W.coldHashData);W.hotHashData&&e.setHotHashData(W.hotHashData);_.ba(L,62,e)}(W=_.Fz.devicePixelRatio)&&W!=1&&_.PQ(L,65,_.iG(W));W=vIs();W!==""&&_.wq(L,54,W);W=oIl();if(W.length>0){e=new f$U;for(var b=0;b<W.length;b++){var M=new CZ;M.setKey(W[b].key);uZ(M,2,to6,HS(W[b].value));NI(e,15,CZ,M)}_.ba(m,5,e)}n7g(a,L);lkM(m);UOg(L);qjz(a,L);E7I(L);_.X("start_client_gcf")&&hcs(L);_.v5("DELEGATED_SESSION_ID")&&
!_.X("pageid_as_header_web")&&(a=new yK,_.wq(a,3,_.v5("DELEGATED_SESSION_ID")));!_.X("fill_delegate_context_in_gel_killswitch")&&(W=_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e=_.sf(m,yK,3)||new yK,a=m,W=_.wq(e,18,W),_.ba(a,3,W));a=L;W=_.C(Object.entries(_.Je(_.v5("DEVICE",""))));for(e=W.next();!e.done;e=W.next())b=_.C(e.value),e=b.next().value,b=b.next().value,e==="cbrand"?_.wq(a,12,b):e==="cmodel"?_.wq(a,13,b):e==="cbr"?_.wq(a,87,b):e==="cbrver"?_.wq(a,88,b):e==="cos"?_.wq(a,18,
b):e==="cosver"?_.wq(a,19,b):e==="cplatform"&&_.xK(a,42,n9S(b));m.setClient(L);_.ba(q,1,m);if(L=OAo[h])a:{if(_.Pe(L,nZ(L,knU,1)))m=1;else if(L.getPlaylistId())m=2;else break a;_.ba(q,4,L);L=q.getContext()||new wa;a=_.sf(L,yK,3)||new yK;W=new qI;W.setToken(h);_.xK(W,1,m);NI(a,12,qI,W);_.ba(L,3,a)}delete OAo[h];h=h==="visitorOnlyApprovedKey";ZAz()||_.Ez(q,2,N);!h&&(m=_.v5("EVENT_ID"))&&(L=gFc(),a=new SRQ,_.wq(a,1,m),_.Ez(a,2,L),_.ba(q,5,a));JZU(D);if(_.X("jspb_serialize_with_worker")&&(m=_.kag())&&
D.writeThenSend){_.sQJ.set(x6S,{client:B,resolve:F,networklessOptions:D,isIsolated:u,useVSSEndpoint:R,dangerousLogToVisitorSession:h,requestsOutstanding:y});m.postMessage({op:"gelBatchToSerialize",batchRequest:YD(q),clientEvents:K,key:x6S});x6S++;break}if(K){m=[];for(L=0;L<K.length;L++)try{m.push(new hb(K[L]))}catch(t){_.Mn(new _.Uf("Transport failed to deserialize "+String(K[L])))}K=m}else K=[];K=_.C(K);for(m=K.next();!m.done;m=K.next())NI(q,3,hb,m.value);K={startTime:(0,_.Zl)(),ticks:{},infos:{}};
q=q.serialize();K.ticks.geljspc=(0,_.Zl)();_.X("log_jspb_serialize_latency")&&jys("gel_jspb_serialize",K,{sampleRate:.1});_.PN8(q,B,F,D,u,R,h,y)}};
_.PN8=function(G,B,F,D,u,R,N,y){D=D===void 0?{}:D;y=y===void 0?{value:0}:y;R=YRS(R);D=Tes(D,N,function(U){_.X("start_client_gcf")&&_.Lu.addLowPriorityJob(function(){return _.n(function(q){return q.yield(cZg(U),0)})});
y.value--;y.value||F()},function(){y.value--;
y.value||F()},u);
D.headers["Content-Type"]="application/json+protobuf";D.postBodyFormat="JSPB";D.postBody=G;syU(B,R,"",D);oF6=!1};
JZU=function(G){_.X("always_send_and_write")&&(G.writeThenSend=!1)};
Tes=function(G,B,F,D,u){G={retry:!0,onSuccess:F,onError:D,networklessOptions:G,dangerousLogToVisitorSession:B,bypassMonitoring:!!u,headers:{},postBodyFormat:"",postBody:"",compress:_.X("compress_gel")||_.X("compress_gel_lr")};ZAz()&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Zl)())));return G};
d6U=function(G,B,F){ZAz()||(G.requestTimeMs=String(B));_.X("unsplit_gel_payloads_in_logs")&&(G.unsplitGelPayloadsInLogs=!0);!F&&(B=_.v5("EVENT_ID"))&&(F=gFc(),G.serializedClientEventId={serializedEventId:B,clientCounter:String(F)})};
gFc=function(){var G=_.v5("BATCH_CLIENT_COUNTER")||0;G||(G=Math.floor(Math.random()*65535/2));G++;G>65535&&(G=1);_.Vc("BATCH_CLIENT_COUNTER",G);return G};
AZ6=function(G,B,F){if(F.videoId)var D="VIDEO";else if(F.playlistId)D="PLAYLIST";else return;G.credentialTransferTokenTargetId=F;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:B,scope:D}]};
CNl=function(G,B){var F=_.xf("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Yf("yt.logging.transport.enableScrapingForTest"))if(F)GPJ=[],_.IY("yt.logging.transport.enableScrapingForTest",!0),_.IY("yt.logging.transport.scrapedPayloadsForTesting",GPJ),_.IY("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.IY("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.IY("yt.logging.transport.scrapeClientEvent",!0);else return;F=_.Yf("yt.logging.transport.scrapedPayloadsForTesting");var D=_.Yf("yt.logging.transport.payloadToScrape");B&&(B=_.Yf("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(B.payload)())&&F.push(B);B=_.Yf("yt.logging.transport.scrapeClientEvent");if(D&&D.length>=1)for(var u=0;u<D.length;u++)if(G&&G.payload[D[u]])if(B)F.push(G.payload);else{var R=void 0;F.push(((R=G)==null?void 0:R.payload)[D[u]])}_.IY("yt.logging.transport.scrapedPayloadsForTesting",
F)};
ZAz=function(){return _.X("use_request_time_ms_header")||_.X("lr_use_request_time_ms_header")};
jQs=function(G,B){return _.X("transport_use_scheduler")===!1?_.iX(G,B):_.X("logging_avoid_blocking_during_navigation")||_.X("lr_logging_avoid_blocking_during_navigation")?_.mX(_.Lu,function(){if(_.BCc().currentState==="none")G();else{var F={};_.BCc().install((F.none={callback:G},F))}},B):_.mX(_.Lu,G,B)};
$6z=function(G){_.X("transport_use_scheduler")?_.Lu.cancelJob(G):_.Dl(G)};
cZg=function(G){var B,F,D,u,R,N,y,U,q,h,K,a,m,L,W;return _.n(function(e){if(e.nextAddress==1)return D=(B=G)==null?void 0:(F=B.responseContext)==null?void 0:F.globalConfigGroup,u=_.Q(D,ihI),N=(R=D)==null?void 0:R.hotHashData,y=_.Q(D,FRL),q=(U=D)==null?void 0:U.coldHashData,(h=_.te().resolve(_.fH(X0)))?N?u?e.yield(DjM(h,N,u),3):e.yield(DjM(h,N),3):e.jumpTo(3):e.jumpTo(2);if(e.nextAddress!=2)return q?y?e.yield(ujl(h,q,y),2):e.yield(ujl(h,q),2):e.jumpTo(2);a=(K=D)==null?void 0:K.rawFinchStaticConfigGroup;
L=(m=D)==null?void 0:m.finchStaticHashData;if(!L)return a&&_.Ae(new _.Uf("Finch config data is present, but hash is missing.")),e.return();W=_.te().resolve(_.fH(Rag));return W?e.yield(W.processAndSetFinchConfig({config:a||{},configHash:L||""}),0):((a||L)&&_.Ae(new _.Uf("FinchConfigManagerService is not present, but Finch config data is present.")),e.jumpTo(0))})};
m6S=function(G,B){B=B===void 0?200:B;return G?B===300?bAI:w_J:B===300?Vog:CRg};
nFg=function(G){if(_.X("enable_web_tiered_gel")){G=NCQ[G||""];var B,F,D,u=_.te().resolve(_.fH(X0))==null?void 0:(B=QK())==null?void 0:(F=B.loggingHotConfig)==null?void 0:(D=F.eventLoggingConfig)==null?void 0:D.payloadPolicies;if(u)for(B=0;B<u.length;B++)if(u[B].payloadNumber===G)return u[B]}};
yZz=function(G){G=Object.keys(G);G=_.C(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,NCQ[B])return B};
l$8=function(G){switch(G){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}};
EFs=function(G){return G==="gelDebuggingEvent"};
YRS=function(G){return(G===void 0?0:G)&&_.X("vss_through_gel_video_stats")?"video_stats":"log_event"};
LZ=function(G,B,F,D){D=D===void 0?{}:D;var u={},R=Math.round(D.timestamp||(0,_.Zl)());u.eventTimeMs=R<Number.MAX_SAFE_INTEGER?R:0;u[G]=B;G=_.Z8();u.context={lastActivityMs:String(D.timestamp||!isFinite(G)?-1:G)};D.sequenceGroup&&!_.X("web_gel_sequence_info_killswitch")&&(G=u.context,B=D.sequenceGroup,B={index:ytz(B),groupKey:B},G.sequence=B,D.endOfSequence&&delete jm[D.sequenceGroup]);_.X("web_tag_automated_log_events")&&(u.context.automatedLogEventSource=D.automatedLogEventSource);(D.sendIsolatedPayload?
U6I:hiU)({endpoint:"log_event",payload:u,cttAuthInfo:D.cttAuthInfo,dangerousLogToVisitorSession:D.dangerousLogToVisitorSession},F)};
ytz=function(G){jm[G]=G in jm?jm[G]+1:0;return jm[G]};
_.W$=function(G,B,F){F=F===void 0?{}:F;var D=ra;_.on("ytLoggingEventsDefaultDisabled",!1)&&ra===ra&&(D=null);LZ(G,B,D,F)};
_.H$=function(){if(_.X("web_fp_via_jspb")){var G=!0;G=G===void 0?!1:G;var B=nP8;nP8=[];if(B){B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,G?LZ(F.payloadName,F.payload,ra,F.options):_.W$(F.payloadName,F.payload,F.options)}XI6(void 0,!0);if(!_.X("web_fp_via_jspb_and_json"))return}XI6(void 0,!1)};
lM8=function(G,B){var F;if((F=B)==null?0:F.componentStack)return B;if(G=G.componentStack)B||(B={}),B.componentStack=G;return B};
UjS=function(){_.dn(_.v5("ERRORS")||[],function(G){_.k2.apply(null,G)});
_.Vc("ERRORS",[])};
_.Oz=function(G){_.k2(G)};
_.em=function(G){_.k2(G,"WARNING")};
qYg=function(G){G instanceof Error?_.k2(G):(G=_.Zc(G)?JSON.stringify(G):String(G),G=new _.Uf(G),G.name="RejectedPromiseError",_.em(G))};
EPI=function(G,B,F,D,u,R){B=B===void 0?"Unknown file":B;F=F===void 0?0:F;var N=!1,y=qq6("log_window_onerror_fraction");if(y&&Math.random()<y)N=!0;else{y=document.getElementsByTagName("script");for(var U=0,q=y.length;U<q;U++)if(y[U].src.indexOf("/debug-")>0){N=!0;break}}N&&(N=!1,u?N=!0:(typeof G==="string"?y=G:ErrorEvent&&G instanceof ErrorEvent?(N=!0,y=G.message,B=G.filename,F=G.lineno,D=G.colno):(y="Unknown error",B="Unknown file",F=0),u=new _.Uf(y),u.name="UnhandledWindowError",u.message=y,u.fileName=
B,u.lineNumber=F,isNaN(D)?delete u.columnNumber:u.columnNumber=D),_.X("wiz_enable_component_stack_propagation_killswitch")||(R=lM8(u,R)),R&&_.$2(u,R),N?_.k2(u):_.em(u))};
_.k2=function(G,B,F,D,u,R,N,y){R=R===void 0?{}:R;R.name=F||_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",1);R.version=D||_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION");F=R;B=B===void 0?"ERROR":B;N=N===void 0?!1:N;B=B===void 0?"ERROR":B;N=N===void 0?!1:N;if(G&&(G.hasOwnProperty("level")&&G.level&&(B=G.level),_.X("console_log_js_exceptions")&&(D=[],D.push("Name: "+G.name),D.push("Message: "+G.message),G.hasOwnProperty("params")&&D.push("Error Params: "+JSON.stringify(G.params)),G.hasOwnProperty("args")&&D.push("Error args: "+
JSON.stringify(G.args)),D.push("File name: "+G.fileName),D.push("Stacktrace: "+G.stack),D=D.join("\n"),window.console.log(D,G)),!(haS>=5))){D=[];u=_.C(KRI);for(R=u.next();!R.done;R=u.next()){R=R.value;try{R()&&D.push(R())}catch(e){}}D=[].concat(_.gi(aM8),_.gi(D));var U=mjQ(G);u=U.message||"Unknown Error";R=U.name||"UnknownError";var q=U.stack||G.stacktrace||"Not available";if(q.startsWith(R+": "+u)){var h=q.split("\n");h.shift();q=h.join("\n")}h=U.lineNumber||"Not available";U=U.fileName||"Not available";
var K=0;if(G.hasOwnProperty("args")&&G.args&&G.args.length)for(var a=0;a<G.args.length&&!(K=ycM(G.args[a],"params."+a,F,K),K>=500);a++);else if(G.hasOwnProperty("params")&&G.params){var m=G.params;if(typeof G.params==="object")for(a in m){if(m[a]){var L="params."+a,W=wo(m[a]);F[L]=W;K+=L.length+W.length;if(K>500)break}}else F.params=wo(m)}if(D.length)for(a=0;a<D.length&&!(K=ycM(D[a],"params.context."+a,F,K),K>=500);a++);navigator.vendor&&!F.hasOwnProperty("vendor")&&(F["device.vendor"]=navigator.vendor);
a={message:u,name:R,lineNumber:h,fileName:U,stack:q,params:F,sampleWeight:1};F=Number(G.columnNumber);isNaN(F)||(a.lineNumber=a.lineNumber+":"+F);if(G.level==="IGNORED")G=0;else a:{G=X_g();F=_.C(G.messageWeights);for(D=F.next();!D.done;D=F.next())if(D=D.value,a.message&&a.message.match(D.messageRegExp)){G=D.weight;break a}G=_.C(G.callbackWeights);for(F=G.next();!F.done;F=G.next())if(F=F.value,F.callback(a)){G=F.weight;break a}G=1}a.sampleWeight=G;G=_.C(QxJ);for(F=G.next();!F.done;F=G.next())if(F=
F.value,F.patternsForType[a.name])for(u=_.C(F.patternsForType[a.name]),D=u.next();!D.done;D=u.next())if(R=D.value,D=a.message.match(R.regexp)){a.params["params.error.original"]=D[0];u=R.groups;R={};for(h=0;h<u.length;h++)R[u[h]]=D[h+1],a.params["params.error."+u[h]]=D[h+1];a.message=F.messageFn(R);break}a.params||(a.params={});G=X_g();a.params["params.errorServiceSignature"]="msg="+G.messageWeights.length+"&cb="+G.callbackWeights.length;a.params["params.serviceWorker"]="false";_.Fz.document&&_.Fz.document.querySelectorAll&&
(a.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new zA(jxg,"sample")).constructor!==zA&&(a.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(a);if(a.sampleWeight!==0&&!LRM.has(a.message)){if(N)rt8(B===void 0?"ERROR":B,a);else{B=B===void 0?"ERROR":B;B==="ERROR"?(bZ.publish("handleError",a),_.X("record_app_crashed_web")&&WRl===0&&a.sampleWeight===1&&(WRl++,N={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.X("report_client_error_with_app_crash_ks")||
(N.systemHealth={crashData:{clientError:{logMessage:{message:a.message}}}}),_.W$("appCrashed",N)),HhS++):B==="WARNING"&&bZ.publish("handleWarning",a);if(_.X("kevlar_gel_error_routing")){N=B;y=y===void 0?{}:y;b:{G=_.C(kPU);for(F=G.next();!F.done;F=G.next())if(HQ(F.value.toLowerCase())){G=!0;break b}G=!1}if(G)y=void 0;else{F={stackTrace:a.stack};a.fileName&&(F.filename=a.fileName);G=a.lineNumber&&a.lineNumber.split?a.lineNumber.split(":"):[];G.length!==0&&(G.length!==1||isNaN(Number(G[0]))?G.length!==
2||isNaN(Number(G[0]))||isNaN(Number(G[1]))||(F.lineNumber=Number(G[0]),F.columnNumber=Number(G[1])):F.lineNumber=Number(G[0]));G={level:"ERROR_LEVEL_UNKNOWN",message:a.message,errorClassName:a.name,sampleWeight:a.sampleWeight};N==="ERROR"?G.level="ERROR_LEVEL_ERROR":N==="WARNING"&&(G.level="ERROR_LEVEL_WARNNING");F={isObfuscated:!0,browserStackInfo:F};y.pageUrl=window.location.href;y.kvPairs=[];_.v5("FEXP_EXPERIMENTS")&&(y.experimentIds=_.v5("FEXP_EXPERIMENTS"));D=_.v5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!qq6("web_disable_gel_stp_ecatcher_killswitch")&&D)for(u=_.C(Object.keys(D)),R=u.next();!R.done;R=u.next())R=R.value,y.kvPairs.push({key:R,value:String(D[R])});if(D=a.params)for(u=_.C(Object.keys(D)),R=u.next();!R.done;R=u.next())R=R.value,y.kvPairs.push({key:"client."+R,value:String(D[R])});D=_.v5("SERVER_NAME");u=_.v5("SERVER_VERSION");D&&u&&(y.kvPairs.push({key:"server.name",value:D}),y.kvPairs.push({key:"server.version",value:u}));y={errorMetadata:y,stackTrace:F,logMessage:G}}y&&(_.W$("clientError",
y),(N==="ERROR"||_.X("errors_flush_gel_always_killswitch"))&&_.H$())}_.X("suppress_error_204_logging")||rt8(B,a)}try{LRM.add(a.message)}catch(e){}haS++}}};
rt8=function(G,B){var F=B.params||{};G={urlParams:{a:"logerror",t:"jserror",type:B.name,msg:B.message.substr(0,250),line:B.lineNumber,level:G,"client.name":F.name},postParams:{url:_.v5("PAGE_NAME",window.location.href),file:B.fileName},method:"POST"};F.version&&(G["client.version"]=F.version);if(G.postParams){B.stack&&(G.postParams.stack=B.stack);B=_.C(Object.keys(F));for(var D=B.next();!D.done;D=B.next())D=D.value,G.postParams["client."+D]=F[D];if(F=_.v5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(B=
_.C(Object.keys(F)),D=B.next();!D.done;D=B.next())D=D.value,G.postParams[D]=F[D];(F=_.v5("LAVA_VERSION"))&&(G.postParams["lava.version"]=F);F=_.v5("SERVER_NAME");B=_.v5("SERVER_VERSION");F&&B&&(G.postParams["server.name"]=F,G.postParams["server.version"]=B)}_.uX(_.v5("ECATCHER_REPORT_HOST","")+"/error_204",G)};
_.OhU=function(G,B){B=B===void 0?"ERROR":B;var F=F===void 0?{}:F;var D=_.Yf("ytbin.polymer.shared.lib.tampering.info");D&&(D=D())&&(F["params.tamperingInfo"]=D.sort().join(","));_.k2(G,B,void 0,void 0,!0,F)};
_.$2=function(G){var B=_.xS.apply(1,arguments);G.args||(G.args=[]);Array.isArray(G.args)&&G.args.push.apply(G.args,_.gi(B))};
ea8=function(G){G.level="IGNORED"};
$j6=function(G,B){aM8.push(G);B();aM8.pop()};
VK=function(G,B){for(var F in B)B.hasOwnProperty(F)&&(G=_.F2(G,F,B[F]));return G};
_.zag=function(G,B,F){F=F===void 0?!1:F;if(!G)return null;if(G.adInfoDialogEndpoint||G.backstageImageUploadEndpoint||G.confirmDialogEndpoint||G.clientActionEndpoint||G.createBackstagePostDialogEndpoint||G.createCommentReplyDialogEndpoint||G.flowEndpoint||G.guideBuilderEndpoint||G.liveChatDialogEndpoint||G.modalEndpoint||G.openPopupAction||G.shareEndpoint||G.shareEntityEndpoint||G.showLiveChatItemEndpoint||G.subscriptionManagerEndpoint||G.unlimitedCreateFamilyEndpoint||G.unlimitedFamilyFlowEndpoint||
G.updateCommentDialogEndpoint||G.updateCommentReplyDialogEndpoint||G.userFeedbackEndpoint||G.videoEditorEndpoint||G.ypcCancelSurveyEndpoint)return B=_.sD("polymer_report_client_url_requested_rate"),!F&&Math.random()<B&&_.em(new _.Uf("urlForEndpoint used on client endpoint",G)),null;var D=_.sD("polymer_report_missing_web_navigation_endpoint_rate");if(G.liveChatEndpoint||G.liveChatReplayEndpoint)D=0;if(!G.commandMetadata&&!G.clickTrackingParams&&Math.random()<D){var u={},R;for(R in G)u[R]="1";_.em(new _.Uf("Missing navigation data",
u))}u="";if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url)u=G.commandMetadata.webCommandMetadata.url;else if(G.searchEndpoint)Math.random()<D&&_.em(new _.Uf("Should not manually handle search",G)),u="/results?search_query="+encodeURIComponent(G.searchEndpoint.query).replace(/%20/g,"+"),G.searchEndpoint.params&&(u+="&sp="+G.searchEndpoint.params);else if(G.watchEndpoint)Math.random()<D&&_.em(new _.Uf("Should not manually handle watch",G)),u="/watch?v="+
G.watchEndpoint.videoId,G.watchEndpoint.playlistId&&(u+="&list="+G.watchEndpoint.playlistId),G.watchEndpoint.index&&(u+="&index="+G.watchEndpoint.index),G.watchEndpoint.startTimeSeconds&&(u+="&t="+G.watchEndpoint.startTimeSeconds);else if(G.browseEndpoint)D=G.browseEndpoint.browseId,(R=G.browseEndpoint.canonicalBaseUrl)?u=R:D&&(u=D.substr(0,2),u=u==="FE"?D==="FEwhat_to_watch"?"/":D==="FEmy_videos"?"/my_videos":"/feed/"+D.substr(2):u==="VL"?"/playlist?list="+D.substr(2):"/channel/"+D),u&&G.browseEndpoint.query&&
(u=VK(u+"/search",{query:G.browseEndpoint.query})),u&&G.browseEndpoint.params&&(u=VK(u,{params:G.browseEndpoint.params}));else{if(G.urlEndpoint)return G.urlEndpoint.url;G.signInEndpoint?(u="https://accounts.google.com/ServiceLogin",D={},_.UK.extend(D,B||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),B=D):G.uploadEndpoint?u="//www.youtube.com/upload":G.liveChatEndpoint?(u=G.liveChatEndpoint,D=_.UK.clone(u),_.Zc(u.continuation)&&(R=Object.keys(u.continuation)[0],
D.continuation=u.continuation[R].continuation),u=VK("/youtubei/v1/live_chat/get_live_chat",D)):G.liveChatReplayEndpoint?(u=_.UK.clone(G.liveChatReplayEndpoint),u.currentPlayerState&&(_.UK.extend(u,u.currentPlayerState),delete u.currentPlayerState),u=VK("/youtubei/v1/live_chat/get_live_chat_replay",u)):G.liveChatItemContextMenuEndpoint?u=VK("/youtubei/v1/live_chat/get_item_context_menu",G.liveChatItemContextMenuEndpoint):G.liveChatPurchaseMessageEndpoint?u=VK("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
G.liveChatPurchaseMessageEndpoint):G.openSuperStickerBuyFlowCommand?u=VK("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",G.openSuperStickerBuyFlowCommand):G.videoEditEndpoint?u=VK("/edit",{video_id:G.videoEditEndpoint.videoId}):G.liveDashboardEndpoint?u=G.liveDashboardEndpoint.videoId?VK("/live_dashboard",{v:G.liveDashboardEndpoint.videoId}):"/live_dashboard":G.signalNavigationEndpoint&&G.signalNavigationEndpoint.signal&&G.signalNavigationEndpoint.signal==="WEBCAM"?u="/webcam":G.getPdgBuyFlowCommand&&
(u=VK(G.getPdgBuyFlowCommand.buyflowApiPath,{params:G.getPdgBuyFlowCommand.params}))}return u||F?VK(u,B||{}):(_.em(new _.Uf("Error: Can't construct url for endpoint","keys:"+Object.keys(G).sort().join(","),G)),null)};
bhc=function(G){if(G){if(G.browseEndpoint)return!!G.browseEndpoint.nofollow;if(G.watchEndpoint)return!!G.watchEndpoint.nofollow;if(G.urlEndpoint)return!!G.urlEndpoint.nofollow}return!1};
_.vPo=function(G,B){var F=B+G,D=V3o.get(F);if(D)return D;G=B+"-"+G.replace(/([A-Z])/g,"-$1").toLowerCase();V3o.set(F,G);return G};
oPo=function(G){var B=_.zJ(G,"action")||_.zJ(G,"command")||_.zJ(G,"endpoint");if(!B)return null;B=_.vPo(B,"yt");_.Q(G,_.v$)&&(B+="-"+_.Q(G,_.v$).signal.toLowerCase().replace(/_/g,"-"));return B};
AtJ=function(G){try{var B=Object.keys(G)}catch(u){return[]}for(var F=0;F<B.length;F++){var D=B[F];if(M3l.test(D)||p_U.test(D))return YYU(G[D])}return[]};
YYU=function(G){return G.command?[G.command]:G.onExecutionAction?[G.onExecutionAction]:G.onResponseReceivedCommand?[G.onResponseReceivedCommand]:G.updateFlowCommand?[G.updateFlowCommand]:G.clientActions?G.clientActions:G.action?[G.action]:G.actions||G.commands||G.onResponseReceivedActions||G.onResponseReceivedCommands||G.onResponseReceivedEndpoints||[]};
Jto=function(G,B){B=B===void 0?!1:B;var F=_.te().resolve(_.fH(ou));F||(F=new djU,_.te().addProvider({provide:ou,useValue:F}));return F&&G&&!_.UK.isEmpty(G)?F.getUrl(G,B):""};
ct6=function(G,B,F){F=F===void 0?"":F;if(B){G.data=B;var D=Jto(B);D?(Go(G,D),bhc(B)||!In(D)?G.rel="nofollow":G.removeAttribute("rel"),_.Q(B,_.MI)&&_.Q(B,_.MI).target==="TARGET_NEW_WINDOW"?G.target="_blank":F?G.target=F:G.removeAttribute("target")):(G.removeAttribute("href"),G.removeAttribute("rel"),G.removeAttribute("target"))}};
_.da=function(G,B){var F=gd;if(LE())TCU(G,function(){var R=_.xS.apply(0,arguments);pE(F,function(){B.apply(null,_.gi(R))})});
else{var D=_.pZ.getInstance(),u=Uaz(B);N5I(function(){u.value=B});
_.$f(function(){var R={},N=_.Y2(D,(R[G]=function(){var y=_.xS.apply(0,arguments);pE(F,function(){u.value.apply(u,_.gi(y))})},R));
return function(){var y={};_.Ab(D,(y[G]="",y),N)}})}};
IMM=function(G){var B=gd,F=QI;return{getFn:function(){return function(D){if(!B.isDisposed){var u=function(){return G(D)};
WN(function(){return _.U4(u)},F)!==!0&&D.stopPropagation()}}}}};
fMc=function(G){if(typeof G.children==="function")return G.children(),null;G=_.C(G.children);for(var B=G.next();!B.done;B=G.next())B=B.value,B();return null};
t3I=function(G){var B;return((B=G.prototype)==null?void 0:B.render)===void 0};
ZhQ=function(G){var B=Array.isArray(G.items)?G.items:Array.from(G.items);G=G.children;return(Array.isArray(B)?B:Array.from(B)).map(G)};
SYS=function(G,B,F){F=F===void 0?!1:F;WN(function(){return gPl(G,B,F)})};
gPl=function(G,B,F){var D=null;k0++;F=(F===void 0?0:F)?sxU:xjo;try{D=F(G,function(){Jb(B)}),e2(!1)}catch(u){throw e2(!0),u;
}return D===null?G:D};
Jb=function(G){if(G!==void 0&&G!==null)if(G instanceof UD)for(var B=J0;cN()!=null&&e7s in cN()&&B.contains(cN());)fE();else if(Array.isArray(G))for(B=_.C(G),G=B.next();!G.done;G=B.next())Jb(G.value);else if(G instanceof M3||G instanceof KI||"function"==typeof _.s4&&G instanceof _.s4)e2l(G.toString());else if(i9(G)){if(cN()!==G){var F,D;B=(D=(F=QI)==null?void 0:F.name)!=null?D:"unknown";throw Error("jc`"+G.tagName+"`"+B);}fE()}else if(G!=null&&G.contentKind===u9||G instanceof BY||IHg(G))for(B=t_z(G),
B=Array.from(B.childNodes),B=_.C(B),G=B.next();!G.done;G=B.next())J0.appendChild(G.value),fE();else if(IM(G)&&(G=G.toString()),F=typeof G,F==="boolean"||F==="number"||F==="string")e2l(G);else if(typeof G==="function"){B=J0;var u=cN();u&&(u._isSignalTextNode||u._isSafeOrSanitizedHtmlNode)||XZl(B,u,G);fE()}else if(G.type===ZhQ)Jb(G.type(Object.assign({},G.props,{children:G.children[0]})));else{if(typeof G.type==="string"){a:{G.__open||L5g(G.type,G.props.idomKey);u=J0;for(var R in G.props)if(G.props[R]!==
PRs){var N=G.props[R];F=ZB;F.push(R);F.push(N)}R=GM.attributes;R=R===void 0?c$:R;N=J0;D=K58(N);F=R;R=ZB;D=D._attrsArr||(D._attrsArr=N0g(R.length));for(var y=!D.length||!1,U=0;U<R.length;U+=2){var q=R[U];if(y)D[U]=q;else if(D[U]!==q)break;var h=R[U+1];if(y||D[U+1]!==h)D[U+1]=h,Orl(N,q,h,F)}if(U<R.length||U<D.length){for(U=y=U;U<D.length;U+=2)TA[D[U]]=D[U+1];for(U=y;U<R.length;U+=2)y=R[U],q=R[U+1],TA[y]!==q&&Orl(N,y,q,F),D[U]=y,D[U+1]=q,delete TA[y];Chc(D,R.length);for(B in TA)Orl(N,B,void 0,F),delete TA[B]}B=
Gf8;Gf8=N=S2.length;for(F=B;F<N;F+=5)(0,S2[F])(S2[F+1],S2[F+2],S2[F+3],S2[F+4]);Gf8=B;Chc(S2,B);Chc(R,0);mWo(u,G.props,!0);if((G.props.skip||G.props.skipchildren)&&J0.hasChildNodes())I7=J0.lastChild;else{if(G.type==="style"&&BsQ(G.children)===null){I7=J0.lastChild;B=void 0;break a}Jb(G.children)}rUl();G.__open&&(G.__open=!1);pzz(u,G.props);B=u}return B}if(G.type===_.GJ)Jb(G.children);else if(!BNs(G)){B=G;try{izg(B)}catch(K){G=K,(N=GM.handleError)==null||N.call.apply(N,[GM].concat(_.gi(Y0(G,(u=B.type)==
null?void 0:u.TAG_NAME))))}B.__open&&(rUl(),B.__open=!1)}}};
FHS=function(G,B){var F;t3I(G)?F=new an(B,G):F=new G(B);F.__type=G;F.__updateContext={nextState:F.state,isForced:!1};return F};
izg=function(G){var B=G.type,F=B.TAG_NAME;if(B===fMc)G.props.children=G.children,B(G.props);else{G.children.length>0&&(G.props.children=G.children);var D;(D=G.props).idomKey||(D.idomKey=B);if(F){var u=L5g(F,G.props.idomKey);G.__open=!0;var R=u.__instance}R||(R=FHS(B,G.props),R.props=null,u&&(u.__instance=R,R.el=u));var N;F=((N=R.__updateContext)!=null?N:{nextState:R.state,isForced:!1}).nextState;R.__updateContext=void 0;B.getDerivedStateFromProps&&(F=B.getDerivedStateFromProps(G.props,F));R.props=
G.props;R.state=F;N=function(){var y=R;he.beforeRender(y);var U=y.render(y.props);U?(y.props.idomKey&&(U.props.idomKey=y.props.idomKey),y=U):y=void 0;if(U=y)if(U.__open=G.__open,y=Jb(U),G.__open=U.__open,!B.TAG_NAME)if(y)B.TAG_NAME=y.tagName.toLowerCase(),y.__instance=R,R.el=y;else{var q;if((q=R.hooks)==null?0:q.length){var h;(h=GM.handleError)==null||h.call.apply(h,[GM].concat(_.gi(Y0(Error("pd")))))}}R.didPatch();he.didPatch(R)};
(F=R.functionComponent)?hfI(F,N,R.props.debugInstance):N()}};
BNs=function(G){var B=G.type;if(!t3I(B)||B===fMc||B.componentType===j2)return!1;G.props.children=G.children.length>1?G.children:G.children[0];var F,D=(F=G.props.idomKey)!=null?F:G.type,u;if(cN()&&((u=cN()[yc])==null?void 0:u.key)===D){var R=cN(),N=R[yc];if(!N)throw Error("ic`"+R.tagName);var y;(y=N.updateSignalsFromIdomProps)==null||y.call(N,G.props);Dk6(N);return!0}if(upM.has(B.name))throw y=B.name,B=(N=(R=QI)==null?void 0:R.name)!=null?N:"unknown",Error("hc`"+y+"`"+B);G.props.renderedFromIdom=!0;
(y=hfI(G.type,function(){return qwQ(G.type,G.props)},G.props.debugInstance))&&R9Q(y);
return!0};
w0s=function(G){for(var B=0;B<l9(G).length;B++)fE()};
Dk6=function(G){var B=Cvl();if(B)w0s(B);else for(var F=0;F<G.numNodes;F++)(B=Cvl())?w0s(B):fE()};
Cvl=function(){var G;return(G=cN()[yc])==null?void 0:G.sourceDynamicRange};
R9Q=function(G){G=dYJ(G);G=Array.isArray(G)?G:[G];G=_.C(G);for(var B=G.next();!B.done;B=G.next())J0.insertBefore(B.value,cN()),fE()};
NNS=function(){var G=h7M(),B=gyc(function(){return{value:0}},[]);
return[B.value,function(F){if(KH!==null){var D;(D=GM.handleError)==null||D.call.apply(D,[GM].concat(_.gi(Y0(Error("qd")))))}B.value=typeof F==="function"?F(B.value):F;G.__updateContext={nextState:G.state,isForced:!0};F=SV(G.effectContext);D=B5(!1);try{if(G.el){var u,R={},N=(R.props=G.props,R.type=G.__type,R.children=(u=G.props.children)!=null?u:[],R[PN]=!0,R);try{SYS(G.el,N,!0)}catch(q){var y,U;(U=GM.handleError)==null||U.call.apply(U,[GM].concat(_.gi(Y0(q,(y=G.__type)==null?void 0:y.TAG_NAME))))}}}finally{B5(D),
SV(F)}}]};
_.Iu=function(G,B){var F=gd,D=function(u){pE(F,function(){B(u)})};
window.addEventListener(G,D,void 0);_.VI(function(){window.removeEventListener(G,D,void 0)})};
_.tb=function(G){var B=gd;return function(F){var D,u=(D=G.observer)!=null?D:_.te().resolve(fZ);D=ymL(F);var R=[];G.showOption&&R.push(u.observe(F,function(){pE(B,function(){G.visibilityCallback(!0,F)})},G.showOption));
G.hideOption&&R.push(u.observe(F,function(){pE(B,function(){G.visibilityCallback(!1,F)})},G.hideOption));
G.prescanOption&&G.prescanCallback&&R.push(u.observe(F,function(){pE(B,function(){G.prescanCallback()})},G.prescanOption));
var N;D.visibilityMonitorKeys=((N=D.visibilityMonitorKeys)!=null?N:[]).concat(R)}};
ymL=function(G){var B;return(B=G.polymerController)!=null?B:G};
qdI=function(G,B){var F=nLg;return _.l(_.GJ,null,Hus(GM.enableLazyTsx,function(){return _.l(lbg,{id:F,value:G,children:B})},function(){var D=UkU(F,G);
P1(D);D=SV(D);try{return B()}finally{SV(D)}}))};
lbg=function(G){var B=G.children;G=UkU(G.id,G.value);P1(G);G=SV(G);try{return _.l(_.GJ,null,qn(B()))}finally{SV(G)}};
UkU=function(G,B){return Object.assign(Object.create(ELz),{id:G,contextValue:B})};
h9M=function(G){var B,F=gd;_.zM(function(){var D=SV(F),u=B5(!B);try{if(B)SYS(B,G.children(),!0);else if(B=qn(G.children()),!(B instanceof Element))throw Error("rd");}finally{B5(u),SV(D)}},"i");
return B};
abg=function(G){var B=new KHg;B.abort(G);return B.signal};
mkz=function(){if(this.aborted){var G;throw(G=this.reason)!=null?G:new DOMException("signal is aborted without reason","AbortError");}};
jG6=function(G){var B=new KHg;G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.aborted){B.abort(F.reason);break}else X0Q.set(B.signal,B),QG6.add(F,B.signal);return B.signal};
LHU=function(){for(var G=_.C(QG6.get(this)),B=G.next();!B.done;B=G.next())X0Q.get(B.value).abort(this.reason)};
rmJ=function(G){var B=new KHg;setTimeout(function(){B.abort(new DOMException("signal timed out","TimeoutError"))},G);
return B.signal};
WHg=function(){var G,B;return{promise:new Promise(function(F,D){G=F;B=D}),
resolve:G,reject:B}};
kfS=function(G){var B=WHg(),F=B.promise;Hzg.set(G,{promise:F,resolve:B.resolve,reject:B.reject});ZS||(ZS=[],queueMicrotask(function(){var D=[].concat(_.gi(ZS));ZS=null;var u=Xb().loadMultiple(D);D=_.C(D);for(var R=D.next();!R.done;R=D.next())R=R.value,u[R].then(Hzg.get(R).resolve,Hzg.get(R).reject)}));
ZS.push(G);return F};
Ozg=function(){_.uz.call(this)};
e9Q=function(G,B){this.fn_=G;this.handler_=B};
Sm=function(G,B){_.uz.call(this);this.deps_=G;this.JSC$11362_id_=B;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
z9z=function(G){G=G.buf.charCodeAt(G.pos++);return $ks[G]};
sz=function(G){var B=0,F=0;do{var D=z9z(G);B|=(D&31)<<F;F+=5}while(D&32);return B<0?B+4294967296:B};
bzQ=function(G,B,F,D){var u=!0;u=u===void 0?!1:u;B=B===void 0?!1:B;D=D===void 0?{}:D;var R=D.cssRowKey||"",N=D.combinedSignature||"";!R&&window&&window._F_cssRowKey&&(R=window._F_cssRowKey,!N&&window._F_combinedSignature&&(N=window._F_combinedSignature));if(R&&typeof window._F_installCss!=="function")throw Error("Bd");var y=D.loaderClass||_.P$;G=SOM(G===void 0?"base-js":G);B=new y(Mlz(xzU("",G)),R,N,u,B);u=D.useCors||G&&G.hasAttribute("crossorigin");G=D.corsMode||G&&G.getAttribute("crossorigin");
u&&(B.useCors_=u);G&&(B.corsMode_=G);D.urlMaxLength&&(B.urlMaxLength=D.urlMaxLength);F&&(B.insertPos=F);D.fetchPriority&&(B.fetchPriority=D.fetchPriority);var U=Xb();U.JSC$10364_loader_=B;U.setBatchModeEnabled(!0);_.Gc=D.batchingStrategy==="BATCH"?kfS:function(q){return Promise.resolve(U.load(q))}};
oLI=function(G,B,F){VgL(G,B);G[B][vLg].unshift(F)};
VgL=function(G,B){if(!G[B]||!G[B][vLg]){var F=G[B],D=F?[F]:[];G[B]=function(){for(var u=_.C(D),R=u.next();!R.done;R=u.next())R.value.apply(this,arguments)};
G[B][vLg]=D}};
MgJ=function(G){if(!G)return[];var B=[];G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,Array.isArray(F)?B.push.apply(B,_.gi(MgJ(F))):B.push(F);return B};
_.is=function(G,B){if(G&&p0s.test(G)||G==="//")return G;if(YdS===void 0){YdS=!1;try{var F=new URL("b","http://a");F.pathname="c%20d";YdS=F.href==="http://a/c%20d"}catch(D){}}B||(B=document.baseURI||window.location.href);if(YdS)try{return(new URL(G,B)).href}catch(D){return G}Bw||(Bw=document.implementation.createHTMLDocument("temp"),Bw.base=Bw.createElement("base"),Bw.head.appendChild(Bw.base),Bw.anchor=Bw.createElement("a"),Bw.body.appendChild(Bw.anchor));Bw.base.href=B;Bw.anchor.href=G;return Bw.anchor.href||
G};
dkQ=function(G,B){return G.replace(AmQ,function(F,D,u,R){return D+"'"+_.is(u.replace(/["']/g,""),B)+"'"+R})};
Jml=function(G){return G.substring(0,G.lastIndexOf("/")+1)};
IbQ=function(){cms=!1;for(var G=FL.length,B=0;B<G;B++){var F=FL[B];if(F)try{F()}catch(D){setTimeout(function(){throw D;})}}FL.splice(0,G);
TNI+=G};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(G){console.log("["+G.is+"]: registered")};
tgz=function(G){fbS.push(G)};
DN=function(G){return ZzL[G]||(ZzL[G]=G.indexOf("-")<0?G:G.replace(gL6,function(B){return B[1].toUpperCase()}))};
wS=function(G){return ZzL[G]||(ZzL[G]=G.replace(SdU,"-$1").toLowerCase())};
sGg=function(G,B){var F=B.parentInfo&&sGg(G,B.parentInfo);if(F)for(G=F.firstChild,F=0;G;G=G.nextSibling){if(B.parentIndex===F++)return G}else return G};
xkQ=function(G,B){G=G._methodHost||G;return function(F){if(G[B])G[B](F,F.detail);else console.warn("listener method `"+B+"` not defined")}};
Ct=function(G){return G.indexOf(".")>=0};
N0=function(G){var B=G.indexOf(".");return B===-1?G:G.slice(0,B)};
PvJ=function(G,B){return G.indexOf(B+".")===0};
yN=function(G,B){return B.indexOf(G+".")===0};
nt=function(G,B,F){return B+F.slice(G.length)};
Gd6=function(G,B){return G===B||PvJ(G,B)||yN(G,B)};
ls=function(G){if(Array.isArray(G)){for(var B=[],F=0;F<G.length;F++)for(var D=G[F].toString().split("."),u=0;u<D.length;u++)B.push(D[u]);return B.join(".")}return G};
B6z=function(G){return Array.isArray(G)?ls(G).split("."):G.toString().split(".")};
U2=function(G,B,F){B=B6z(B);for(var D=0;D<B.length;D++){if(!G)return;G=G[B[D]]}F&&(F.path=B.join("."));return G};
ixU=function(G,B,F){var D=B6z(B),u=D[D.length-1];if(D.length>1){for(B=0;B<D.length-1;B++)if(G=G[D[B]],!G)return;G[u]=F}else G[B]=F;return D.join(".")};
FhL=function(G,B,F){var D=G[B];if(!D)D=G[B]={};else if(!G.hasOwnProperty(B)&&(D=G[B]=Object.create(G[B]),F))for(var u in D)for(G=D[u],B=D[u]=Array(G.length),F=0;F<G.length;F++)B[F]=G[F];return D};
E2=function(G,B,F,D,u,R){if(B){var N=!1,y=q0++,U;for(U in F){var q=u?N0(U):U;if(q=B[q])for(var h=0,K=q.length,a=void 0;h<K&&(a=q[h]);h++)a.info&&a.info.lastRun===y||u&&!DtI(U,a.trigger)||(a.info&&(a.info.lastRun=y),a.fn(G,U,F,D,a.info,u,R),N=!0)}return N}return!1};
DtI=function(G,B){if(B){var F=B.name;return F==G||!(!B.structured||!PvJ(F,G))||!(!B.wildcard||!yN(F,G))}return!0};
uio=function(G,B,F,D,u){B=typeof u.method==="string"?G[u.method]:u.method;F=u.property;B?B.call(G,G.__data[F],D[F]):u.dynamicFn||console.warn("observer method `"+u.method+"` not defined")};
ROc=function(G,B,F,D){F={value:F,queueProperty:!0};D&&(F.path=D);(0,_.hA)(G).dispatchEvent(new CustomEvent(B,{detail:F}))};
wPc=function(G,B,F,D,u,R){R=(D=(R?N0(B):B)!=B?B:null)?U2(G,D):G.__data[B];D&&R===void 0&&(R=F[B]);ROc(G,u.eventName,R,D)};
CQI=function(G,B,F,D,u){F=G.__data[B];Kt&&(F=Kt(F,u.attrName,"attribute",G));G._propertyToAttribute(B,u.attrName,F)};
y1z=function(G){var B=G.constructor.__orderedComputedDeps;if(!B){B=new Map;for(var F=G.__computeEffects,D=N6S(G),u=D.counts,R=D.ready,N=D.total;D=R.shift();)B.set(D,B.size),(D=F[D])&&D.forEach(function(y){y=y.info.methodInfo;--N;--u[y]===0&&R.push(y)});
N!==0&&console.warn("Computed graph for "+G.localName+" incomplete; circular?");G.constructor.__orderedComputedDeps=B}return B};
N6S=function(G){var B=G.__computeInfo,F={};G=G.__computeEffects;var D=[],u=0,R;for(R in B){var N=B[R];u+=F[R]=N.args.filter(function(U){return!U.literal}).length+(N.dynamicFn?1:0)}for(var y in G)B[y]||D.push(y);
return{counts:F,ready:D,total:u}};
lw6=function(G,B,F,D,u){B=nwU(G,B,F,D,u);if(B===ap)return!1;u=u.methodInfo;if(G.__dataHasAccessor&&G.__dataHasAccessor[u])return G._setPendingProperty(u,B,!0);G[u]=B;return!1};
Ews=function(G,B,F,D,u,R,N){F.bindings=F.bindings||[];D={kind:D,target:u,parts:R,literal:N,isCompound:R.length!==1};F.bindings.push(D);D.target&&D.kind!="attribute"&&D.kind!="text"&&!D.isCompound&&D.parts[0].mode==="{"&&(F=D.parts[0],R=F.negate,D.listenerEvent=F.event||wS(u)+"-changed",D.listenerNegate=R);u=B.nodeInfoList.length;for(F=0;F<D.parts.length;F++){var y=D.parts[F];y.compoundIndex=F;R=G;N=B;var U=D,q=y,h=u;if(!q.literal)if(U.kind==="attribute"&&U.target[0]==="-")console.warn("Cannot set attribute "+
U.target+' because "-" is not a valid attribute starting character');else for(y=q.dependencies,U={index:h,binding:U,part:q,evaluator:R},q=0;q<y.length;q++)h=y[q],typeof h=="string"&&(h=UtJ(h),h.wildcard=!0),R._addTemplatePropertyEffect(N,h.rootProperty,{fn:q$M,info:U,trigger:h})}};
q$M=function(G,B,F,D,u,R,N){N=N[u.index];var y=u.binding,U=u.part;R&&U.source&&B.length>U.source.length&&y.kind=="property"&&!y.isCompound&&N.__isPropertyEffectsClient&&N.__dataHasAccessor&&N.__dataHasAccessor[y.target]?(F=F[B],B=nt(U.source,y.target,B),N._setPendingPropertyOrPath(B,F,!1,!0)&&G._enqueueClient(N)):(B=u.evaluator._evaluateBinding(G,U,B,F,D,R),B!==ap&&(y.isCompound&&(F=N.__dataCompoundStorage[y.target],F[U.compoundIndex]=B,B=F.join("")),y.kind==="attribute"||y.target!=="textContent"&&
(y.target!=="value"||N.localName!=="input"&&N.localName!=="textarea")||(B=B==void 0?"":B),U=B,Kt&&(U=Kt(U,y.target,y.kind,N)),y.kind=="attribute"?G._valueToNodeAttribute(N,U,y.target):(y=y.target,N.__isPropertyEffectsClient&&N.__dataHasAccessor&&N.__dataHasAccessor[y]?N.__readOnly&&N.__readOnly[y]||N._setPendingProperty(y,U)&&G._enqueueClient(N):G._setUnmanagedPropertyToNode(N,y,U))))};
hOQ=function(G,B,F){if(F.listenerEvent){var D=F.parts[0];G.addEventListener(F.listenerEvent,function(u){var R=F.target,N=D.source,y=D.negate,U=u.detail,q=U&&U.path;q?(N=nt(R,N,q),u=U&&U.value):u=u.currentTarget[R];B.__readOnly&&B.__readOnly[N]||!B._setPendingPropertyOrPath(N,y?!u:u,!0,!!q)||U&&U.queueProperty||B._invalidateProperties()})}};
KhM=function(G,B,F,D,u,R){R=B.static||R&&(typeof R!=="object"||R[B.methodName]);u={methodName:B.methodName,args:B.args,methodInfo:u,dynamicFn:R};for(var N=0,y=void 0;N<B.args.length&&(y=B.args[N]);N++)y.literal||G._addPropertyEffect(y.rootProperty,F,{fn:D,info:u,trigger:y});R&&G._addPropertyEffect(B.methodName,F,{fn:D,info:u});return u};
nwU=function(G,B,F,D,u){D=G._methodHost||G;var R=D[u.methodName];if(R)return G=G._marshalArgs(u.args,B,F),G===ap?ap:R.apply(D,G);u.dynamicFn||console.warn("method `"+u.methodName+"` not defined")};
awg=function(G){for(var B="",F=0;F<G.length;F++)B+=G[F].literal||"";return B};
QCL=function(G){if(G=G.match(/([^\s]+?)\(([\s\S]*)\)/)){var B={methodName:G[1],static:!0,args:mtl};return G[2].trim()?XPg(G[2].replace(/\\,/g,"&comma;").split(","),B):B}return null};
XPg=function(G,B){B.args=G.map(function(F){F=UtJ(F);F.literal||(B.static=!1);return F},this);
return B};
UtJ=function(G){G=G.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var B={name:G,value:"",literal:!1},F=G[0];F==="-"&&(F=G[1]);F>="0"&&F<="9"&&(F="#");switch(F){case "'":case '"':B.value=G.slice(1,-1);B.literal=!0;break;case "#":B.value=Number(G),B.literal=!0}B.literal||(B.rootProperty=N0(G),B.structured=Ct(G),B.structured&&(B.wildcard=G.slice(-2)==".*",B.wildcard&&(B.name=G.slice(0,-2))));return B};
jCz=function(G,B,F){G=U2(G,F);G===void 0&&(G=B[F]);return G};
LhQ=function(G,B,F,D){D={indexSplices:D};mj&&!G._overrideLegacyUndefined&&(B.splices=D);G.notifyPath(F+".splices",D);G.notifyPath(F+".length",B.length);mj&&!G._overrideLegacyUndefined&&(D.indexSplices=[])};
XL=function(G,B,F,D,u,R){LhQ(G,B,F,[{index:D,addedCount:u,removed:R,object:B,type:"splice"}])};
r1U=function(G){G=dkQ((G.body?G.body:G).textContent,G.baseURI);var B=document.createElement("style");B.textContent=G;return B};
HxU=function(G){G=G.trim().split(/\s+/);for(var B=[],F=0;F<G.length;F++)B.push.apply(B,_.gi(Wh6(G[F])));return B};
Wh6=function(G){var B=QN.import(G);if(!B)return console.warn("Could not find style data in module named",G),[];if(B._styles===void 0){G=[];G.push.apply(G,_.gi(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B)));var F=B.querySelector("template");F&&G.push.apply(G,_.gi(kd8(F,B.assetpath)));B._styles=G}return B._styles};
kd8=function(G,B){if(!G._styles){for(var F=[],D=G.content.querySelectorAll("style"),u=0;u<D.length;u++){var R=D[u],N=R.getAttribute("include");N&&F.push.apply(F,_.gi(HxU(N).filter(function(y,U,q){return q.indexOf(y)===U})));
B&&(R.textContent=dkQ(R.textContent,B));F.push(R)}G._styles=F}return G._styles};
Oxs=function(G){return(G=QN.import(G))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var B=[];G=G.querySelectorAll("link[rel=import][type~=css]");for(var F=0;F<G.length;F++){var D=G[F];if(D.import){var u=D.import;if((D=D.hasAttribute("shady-unscoped"))&&!u._unscopedStyle){var R=r1U(u);R.setAttribute("shady-unscoped","");u._unscopedStyle=R}else u._style||(u._style=r1U(u));B.push(D?u._unscopedStyle:u._style)}}return B};
$tJ=function(G){G=G.trim().split(/\s+/);for(var B="",F=0;F<G.length;F++)B+=eOU(G[F]);return B};
eOU=function(G){var B=QN.import(G);if(B&&B._cssText===void 0){var F=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B),D=B.querySelector("template");D&&(F+=zOS(D,B.assetpath));B._cssText=F||null}B||console.warn("Could not find style data in module named",G);return B&&B._cssText||""};
zOS=function(G,B){var F="";G=kd8(G,B);for(B=0;B<G.length;B++){var D=G[B];D.parentNode&&D.parentNode.removeChild(D);F+=D.textContent}return F};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var B="";G=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G);for(var F=0;F<G.length;F++)B+=G[F].textContent;return B};
jW=function(G,B){return{index:G,removed:[],addedCount:B}};
VTI=function(G,B,F,D){var u=0,R=0,N=0,y=0,U=Math.min(B-u,D-R);if(u==0&&R==0)a:{for(N=0;N<U;N++)if(G[N]!==F[N])break a;N=U}if(B==G.length&&D==F.length){y=G.length;for(var q=F.length,h=0;h<U-N&&bxg(G[--y],F[--q]);)h++;y=h}u+=N;R+=N;B-=y;D-=y;if(B-u==0&&D-R==0)return[];if(u==B){for(B=jW(u,0);R<D;)B.removed.push(F[R++]);return[B]}if(R==D)return[jW(u,B-u)];U=u;N=R;D=D-N+1;y=B-U+1;B=Array(D);for(q=0;q<D;q++)B[q]=Array(y),B[q][0]=q;for(q=0;q<y;q++)B[0][q]=q;for(q=1;q<D;q++)for(h=1;h<y;h++)if(G[U+h-1]===
F[N+q-1])B[q][h]=B[q-1][h-1];else{var K=B[q-1][h]+1,a=B[q][h-1]+1;B[q][h]=K<a?K:a}U=B.length-1;N=B[0].length-1;D=B[U][N];for(G=[];U>0||N>0;)U==0?(G.push(2),N--):N==0?(G.push(3),U--):(y=B[U-1][N-1],q=B[U-1][N],h=B[U][N-1],K=q<h?q<y?q:y:h<y?h:y,K==y?(y==D?G.push(0):(G.push(1),D=y),U--,N--):K==q?(G.push(3),U--,D=q):(G.push(2),N--,D=h));G.reverse();B=void 0;U=[];for(N=0;N<G.length;N++)switch(G[N]){case 0:B&&(U.push(B),B=void 0);u++;R++;break;case 1:B||(B=jW(u,0));B.addedCount++;u++;B.removed.push(F[R]);
R++;break;case 2:B||(B=jW(u,0));B.addedCount++;u++;break;case 3:B||(B=jW(u,0)),B.removed.push(F[R]),R++}B&&U.push(B);return U};
vwJ=function(G,B){return VTI(G,G.length,B,B.length)};
bxg=function(G,B){return G===B};
MTl=function(G){if(G instanceof owo)return G.value;throw Error("Jd`"+G);};
pPo=function(G,B){for(var F in B)F===null?G.style.removeProperty(F):G.style.setProperty(F,B[F])};
Y$I=function(G,B){return(G=window.getComputedStyle(G).getPropertyValue(B))?G.trim():""};
c1I=function(G){requestAnimationFrame(function(){A1c?A1c(G):(dtc||(dtc=new Promise(function(B){J16=B}),document.readyState==="complete"?J16():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&J16()})),dtc.then(function(){G&&G()}))})};
fwo=function(G){T6c=G&&G.shimcssproperties?!1:Iwl||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
sCz=function(G){if(!(tTS.indexOf(G)>-1)&&G!=="touchend"&&Zxo&&gw8&&S$z)return{passive:!0}};
BIo=function(G){for(var B=xtJ?["click"]:tTS,F=0,D;F<B.length;F++)D=B[F],G?(PQU.length=0,document.addEventListener(D,G9S,!0)):document.removeEventListener(D,G9S,!0)};
Lt=function(G){var B=G.type;return tTS.indexOf(B)>-1?B==="mousemove"?(B=G.buttons===void 0?1:G.buttons,G instanceof window.MouseEvent&&!iXg&&(B=Fvl[G.which]||0),!!(B&1)):(G.button===void 0?0:G.button)===0:!1};
DVL=function(G){if(G.type==="click"){if(G.detail===0)return!0;var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);if(!B.nodeType||B.nodeType!==Node.ELEMENT_NODE)return!0;B=B.getBoundingClientRect();var F=G.pageX;G=G.pageY;return!(F>=B.left&&F<=B.right&&G>=B.top&&G<=B.bottom)}return!1};
uSQ=function(G,B,F){G.movefn=B;G.upfn=F;document.addEventListener("mousemove",B);document.addEventListener("mouseup",F)};
rS=function(G){document.removeEventListener("mousemove",G.movefn);document.removeEventListener("mouseup",G.upfn);G.movefn=null;G.upfn=null};
RPg=function(G,B){for(var F=document.elementFromPoint(G,B),D=F;D&&D.shadowRoot&&!window.ShadyDOM;){var u=D;D=D.shadowRoot.elementFromPoint(G,B);if(u===D)break;D&&(F=D)}return F};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var B=wUJ(G);return B.length>0?B[0]:G.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var B=G.type,F=G.currentTarget.__polymerGestures;if(F&&(F=F[B])){if(!G.__polymerGesturesHandled&&(G.__polymerGesturesHandled={},B.slice(0,5)==="touch")){var D=G.changedTouches[0];B==="touchstart"&&G.touches.length===1&&(Ccz=D.identifier);if(Ccz!==D.identifier)return;Zxo||(B==="touchstart"||B==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)}D=
G.__polymerGesturesHandled;if(!D.skip){for(var u=0,R;u<Ww.length;u++)R=Ww[u],F[R.name]&&!D[R.name]&&R.flow&&R.flow.start.indexOf(G.type)>-1&&R.reset&&R.reset();for(u=0;u<Ww.length;u++)R=Ww[u],F[R.name]&&!D[R.name]&&(D[R.name]=!0,R[B](G))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var B=G.changedTouches[0],F=G.type;if(F==="touchstart")NIo=B.clientX,yRc=B.clientY,nzs=!1;else if(F==="touchmove"&&!nzs){nzs=!0;F="auto";for(var D=wUJ(G),u=0,R;u<D.length;u++)if(R=D[u],R.__polymerGesturesTouchAction){F=R.__polymerGesturesTouchAction;break}D=!1;u=Math.abs(NIo-B.clientX);B=Math.abs(yRc-B.clientY);G.cancelable&&(F==="none"?D=!0:F==="pan-x"?D=B>u:F==="pan-y"&&(D=u>B));D?G.preventDefault():
Hw("track")}};
O2=function(G,B,F){return kb[B]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,B,F),!0):!1};
eW=function(G,B,F){return kb[B]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,B,F),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,B,F){var D=kb[B],u=D.deps,R=D.name,N=G.__polymerGestures;N||(G.__polymerGestures=N={});for(var y=0,U,q;y<u.length;y++)U=u[y],xtJ&&tTS.indexOf(U)>-1&&U!=="click"||((q=N[U])||(N[U]=q={_count:0}),q._count===0&&G.addEventListener(U,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,sCz(U)),q[R]=(q[R]||0)+1,q._count=(q._count||0)+1);G.addEventListener(B,F);D.touchAction&&_.$b(G,D.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,B,F){var D=kb[B],u=D.deps;D=D.name;var R=G.__polymerGestures;if(R)for(var N=0,y,U;N<u.length;N++)y=u[N],(U=R[y])&&U[D]&&(U[D]=(U[D]||1)-1,U._count=(U._count||1)-1,U._count===0&&G.removeEventListener(y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,sCz(y)));G.removeEventListener(B,F)};
lIs=function(G){Ww.push(G);for(var B=0;B<G.emits.length;B++)kb[G.emits[B]]=G};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){for(var B=0,F;B<Ww.length;B++){F=Ww[B];for(var D=0,u;D<F.emits.length;D++)if(u=F.emits[D],u===G)return F}return null};
_.$b=function(G,B){Zxo&&G instanceof HTMLElement&&zc.run(function(){G.style.touchAction=B});
G.__polymerGesturesTouchAction=B};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,B,F){B=new Event(B,{bubbles:!0,cancelable:!0,composed:!0});B.detail=F;(0,_.hA)(G).dispatchEvent(B);B.defaultPrevented&&(G=F.preventer||F.sourceEvent)&&G.preventDefault&&G.preventDefault()};
Hw=function(G){G=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G.info&&(G.info.prevent=!0)};
bs=function(G,B,F,D){B&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,G,{x:F.clientX,y:F.clientY,sourceEvent:F,preventer:D,prevent:function(u){return Hw(u)}})};
UVI=function(G,B,F){if(G.prevent)return!1;if(G.started)return!0;F=Math.abs(G.y-F);return Math.abs(G.x-B)>=5||F>=5};
q8I=function(G,B,F){if(B){var D=G.moves[G.moves.length-2],u=G.moves[G.moves.length-1],R=u.x-G.x,N=u.y-G.y,y=0;if(D){var U=u.x-D.x;y=u.y-D.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,"track",{state:G.state,x:F.clientX,y:F.clientY,dx:R,dy:N,ddx:U,ddy:y,sourceEvent:F,hover:function(){return RPg(F.clientX,F.clientY)}})}};
hPo=function(G,B,F){var D=Math.abs(B.clientX-G.x),u=Math.abs(B.clientY-G.y),R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F||B);!R||Ezg[R.localName]&&R.hasAttribute("disabled")||!(isNaN(D)||isNaN(u)||D<=25&&u<=25||DVL(B))||G.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,"tap",{x:B.clientX,y:B.clientY,sourceEvent:B,preventer:F})};
Kvl=function(G,B,F,D,u){var R;u&&(R=typeof F==="object"&&F!==null)&&(D=G.__dataTemp[B]);D=D!==F&&(D===D||F===F);R&&D&&(G.__dataTemp[B]=F);return D};
mVg=function(){if(VN&&!vw){if(!aI6){aI6=!0;var G=document.createElement("style");G.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(G)}return!0}return!1};
QDg=function(){return XUg};
jDM=function(G,B){XUg=G;Object.setPrototypeOf(G,B.prototype);new B;XUg=null};
LvJ=function(G,B){for(var F=0;F<B.length;F++){var D=B[F];if(!!G!=!!D.__hideTemplateChildren__)if(D.nodeType===Node.TEXT_NODE)G?(D.__polymerTextContent__=D.textContent,D.textContent=""):D.textContent=D.__polymerTextContent__;else if(D.localName==="slot")if(G)D.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.hA)((0,_.hA)(D).parentNode).replaceChild(D.__polymerReplaced__,D);else{var u=D.__polymerReplaced__;u&&(0,_.hA)((0,_.hA)(u).parentNode).replaceChild(D,u)}else D.style&&(G?(D.__polymerDisplay__=
D.style.display,D.style.display="none"):D.style.display=D.__polymerDisplay__);D.__hideTemplateChildren__=G;D._showHideChildren&&D._showHideChildren(G)}};
rRg=function(G){return(G=G.__dataHost)&&G._methodHost||G};
k9g=function(G,B,F){var D=F.mutableData?WvU:op;M0.mixin&&(D=M0.mixin(D));var u=function(){return D.apply(this,arguments)||this};
_.r(u,D);u.prototype.__templatizeOptions=F;u.prototype._bindTemplate(G);HXM(u,G,B,F);return u};
bXQ=function(G,B,F,D){var u=F.forwardHostProp;if(u&&B.hasHostProps){var R=G.localName=="template",N=B.templatizeTemplateClass;if(!N){if(R){var y=F.mutableData?OXM:ePL;N=function(){return y.apply(this,arguments)||this};
_.r(N,y);N=B.templatizeTemplateClass=N}else{var U=G.constructor;N=function(){return U.apply(this,arguments)||this};
_.r(N,U);N=B.templatizeTemplateClass=N}var q=B.hostProps,h;for(h in q)N.prototype._addPropertyEffect("_host_"+h,N.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:$VJ(u)}),N.prototype._createNotifyingProperty("_host_"+h);pt&&D&&zP8(B,F,D)}G.__dataProto&&Object.assign(G.__data,G.__dataProto);if(R)jDM(G,N),G.__dataTemp={},G.__dataPending=null,G.__dataOld=null,G._enableProperties();else{Object.setPrototypeOf(G,N.prototype);B=B.hostProps;for(var K in B)K="_host_"+K,K in G&&(B=G[K],delete G[K],G.__data[K]=
B)}}};
$VJ=function(G){return function(B,F,D){G.call(B.__templatizeOwner,F.substring(6),D[F])}};
HXM=function(G,B,F,D){var u=F.hostProps||{},R;for(R in D.instanceProps){delete u[R];var N=D.notifyInstanceProp;N&&G.prototype._addPropertyEffect(R,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:VUg(N)})}if(D.forwardHostProp&&B.__dataHost)for(var y in u)F.hasHostProps||(F.hasHostProps=!0),G.prototype._addPropertyEffect(y,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vzl()})};
VUg=function(G){return function(B,F,D){G.call(B.__templatizeOwner,B,F,D[F])}};
vzl=function(){return function(G,B,F){G.__dataHost._setPendingPropertyOrPath("_host_"+B,F[B],!0,!0)}};
M0=function(G,B,F){if(Yb&&!rRg(G))throw Error("Pd");F=F||{};if(G.__templatizeOwner)throw Error("Qd");G.__templatizeOwner=B;var D=(B?B.constructor:op)._parseTemplate(G),u=D.templatizeInstanceClass;u||(u=k9g(G,D,F),D.templatizeInstanceClass=u);var R=rRg(G);bXQ(G,D,F,R);F=function(){return u.apply(this,arguments)||this};
_.r(F,u);F.prototype._methodHost=R;F.prototype.__dataHost=G;F.prototype.__templatizeOwner=B;F.prototype.__hostProps=D.hostProps;return F};
zP8=function(G,B,F){F=F.constructor._properties;G=G.propertyEffects;B=B.instanceProps;for(var D in G)if(!(F[D]||B&&B[D]))for(var u=G[D],R=0;R<u.length;R++){var N=u[R].info.part;if(!N.signature||!N.signature.static){console.warn("Property '"+D+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
ozJ=function(G,B){for(var F;B;)if(F=B.__dataHost?B:B.__templatizeInstance)if(F.__dataHost!=G)B=F.__dataHost;else return F;else B=(0,_.hA)(B).parentNode;return null};
AA=function(G){return G.localName==="slot"};
MUL=function(){for(var G=dS.prototype,B="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),F={},D=0;D<B.length;F={method$jscomp$33:void 0},D++)F.method$jscomp$33=B[D],G[F.method$jscomp$33]=function(u){return function(){return this.node[u.method$jscomp$33].apply(this.node,arguments)}}(F)};
pUo=function(G,B){for(var F={},D=0;D<B.length;F={name$jscomp$450:void 0},D++)F.name$jscomp$450=B[D],Object.defineProperty(G,F.name$jscomp$450,{get:function(u){return function(){return this.node[u.name$jscomp$450]}}(F),
configurable:!0})};
Y8M=function(){for(var G=dS.prototype,B=["textContent","innerHTML","className"],F={},D=0;D<B.length;F={name$jscomp$451:void 0},D++)F.name$jscomp$451=B[D],Object.defineProperty(G,F.name$jscomp$451,{get:function(u){return function(){return this.node[u.name$jscomp$451]}}(F),
set:function(u){return function(R){this.node[u.name$jscomp$451]=R}}(F),
configurable:!0})};
ARJ=function(){JA=document.documentElement.getAttribute("dir");JA=document.documentElement.getAttribute("dir");for(var G=0;G<cw.length;G++){var B=cw[G];B.__autoDirOptOut||B.setAttribute("dir",JA)}};
TIz=function(){Tc=!0;requestAnimationFrame(function(){Tc=!1;dVg(JRc);setTimeout(function(){for(var G=0,B=Ip.length;G<B;G++)cRs(Ip.shift())})})};
dVg=function(G){for(;G.length;)cRs(G.shift())};
cRs=function(G){var B=G[0],F=G[1];G=G[2];try{F.apply(B,G)}catch(D){setTimeout(function(){throw D;})}};
_.IIs=function(G,B,F){Tc||TIz();JRc.push([G,B,F])};
_.ft=function(G,B,F){Tc||TIz();Ip.push([G,B,F])};
ZXz=function(G,B){B=B===void 0?!1:B;if(!fIQ||!tUz||!fIQ.handlesDynamicScoping)return null;var F=tUz.ScopingShim;if(!F)return null;var D=F.scopeForNode(G),u=(0,_.hA)(G).getRootNode(),R=function(N){if((0,_.hA)(N).getRootNode()===u){var y=Array.from(fIQ.nativeMethods.querySelectorAll.call(N,"*"));y.push(N);for(N=0;N<y.length;N++){var U=y[N];if((0,_.hA)(U).getRootNode()===u){var q=F.currentScopeForNode(U);q!==D&&(q!==""&&F.unscopeNode(U,q),F.scopeNode(U,D))}}}};
R(G);return B?(B=new MutationObserver(function(N){for(var y=0;y<N.length;y++)for(var U=N[y],q=0;q<U.addedNodes.length;q++){var h=U.addedNodes[q];h.nodeType===Node.ELEMENT_NODE&&R(h)}}),B.observe(G,{childList:!0,
subtree:!0}),B):null};
gzJ=function(){document.body.removeAttribute("unresolved")};
G6M=function(G){var B=G=G.replace(S8L,"").replace(sDg,""),F=new xVg;F.start=0;F.end=B.length;for(var D=F,u=0,R=B.length;u<R;u++)if(B[u]==="{"){D.rules||(D.rules=[]);var N=D,y=N.rules[N.rules.length-1]||null;D=new xVg;D.start=u+1;D.parent=N;D.previous=y;N.rules.push(D)}else B[u]==="}"&&(D.end=u+1,D=D.parent||F);return PcU(F,G)};
PcU=function(G,B){var F=B.substring(G.start,G.end-1);G.parsedCssText=G.cssText=F.trim();G.parent&&(F=B.substring(G.previous?G.previous.end:G.parent.start,G.start-1),F=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(F),F=F.replace(BZz," "),F=F.substring(F.lastIndexOf(";")+1),F=G.parsedSelector=G.selector=F.trim(),G.atRule=F.indexOf("@")===0,G.atRule?F.indexOf("@media")===0?G.type=4:F.match(icU)&&(G.type=7,G.keyframesName=G.selector.split(BZz).pop()):F.indexOf("--")===
0?G.type=1E3:G.type=1);if(F=G.rules)for(var D=0,u=F.length,R=void 0;D<u&&(R=F[D]);D++)PcU(R,B);return G};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){return G.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var B=arguments[1],F=6-B.length;F--;)B="0"+B;return"\\"+B})};
FYI=function(G,B,F){F=F===void 0?"":F;var D="";if(G.cssText||G.rules){var u=G.rules;if(u&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(u))for(var R=0,N=u.length,y=void 0;R<N&&(y=u[R]);R++)D=FYI(y,B,D);else B?B=G.cssText:(B=G.cssText,B=B.replace(DBL,"").replace(u3l,""),B=B.replace(Rrg,"").replace(wbg,"")),(D=B.trim())&&(D="  "+D+"\n")}D&&(G.selector&&(F+=G.selector+" {\n"),F+=D,G.selector&&(F+="}\n\n"));return F};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){G=G[0];return!!G&&!!G.selector&&G.selector.indexOf("--")===0};
NZg=function(G){if(G=CLL[G])G._applyShimCurrentVersion=G._applyShimCurrentVersion||0,G._applyShimValidatingVersion=G._applyShimValidatingVersion||0,G._applyShimNextVersion=(G._applyShimNextVersion||0)+1};
y5Q=function(G){return G._applyShimCurrentVersion===G._applyShimNextVersion};
lXU=function(G){G._applyShimValidatingVersion=G._applyShimNextVersion;G._validating||(G._validating=!0,nWM.then(function(){G._applyShimCurrentVersion=G._applyShimNextVersion;G._validating=!1}))};
qlz=function(G){if(!G)return"";typeof G==="string"&&(G=G6M(G));return FYI(G,UBs)};
EW6=function(G){!G.__cssRules&&G.textContent&&(G.__cssRules=G6M(G.textContent));return G.__cssRules||null};
KYl=function(G,B,F,D){if(G){var u=!1,R=G.type;if(D&&R===4){var N=G.selector.match(hrM);N&&(window.matchMedia(N[1]).matches||(u=!0))}R===1?B(G):F&&R===7?F(G):R===1E3&&(u=!0);if((G=G.rules)&&!u)for(u=0,R=G.length,N=void 0;u<R&&(N=G[u]);u++)KYl(N,B,F,D)}};
aXI=function(G,B){var F=G.indexOf("var(");if(F===-1)return B(G,"","","");a:{var D=0;var u=F+3;for(var R=G.length;u<R;u++)if(G[u]==="(")D++;else if(G[u]===")"&&--D===0)break a;u=-1}D=G.substring(F+4,u);F=G.substring(0,F);G=aXI(G.substring(u+1),B);R=D.indexOf(",");if(R===-1)return B(F,D.trim(),"",G);u=D.substring(0,R).trim();D=D.substring(R+1).trim();return B(F,u,D,G)};
mBs=function(G){if(tA!==void 0)return tA;if(G.__cssBuild===void 0){var B=G.getAttribute("css-build");if(B)G.__cssBuild=B;else{a:{B=G.localName==="template"?G.content.firstChild:G.firstChild;if(B instanceof Comment&&(B=B.textContent.trim().split(":"),B[0]==="css-build")){B=B[1];break a}B=""}if(B!==""){var F=G.localName==="template"?G.content.firstChild:G.firstChild;F.parentNode.removeChild(F)}G.__cssBuild=B}}return G.__cssBuild||""};
QKl=function(G,B,F,D){for(var u=B._noAccessors,R=Object.getOwnPropertyNames(B),N=0;N<R.length;N++){var y=R[N];if(!(y in D))if(u)G[y]=B[y];else{var U=Object.getOwnPropertyDescriptor(B,y);U&&(U.configurable=!0,Object.defineProperty(G,y,U))}}for(var q in Xbz)B[q]&&(F[q]=F[q]||[],F[q].push(B[q]))};
jKc=function(G,B,F){B=B||[];for(var D=G.length-1;D>=0;D--){var u=G[D];u?Array.isArray(u)?jKc(u,B):B.indexOf(u)<0&&(!F||F.indexOf(u)<0)&&B.unshift(u):console.warn("behavior is null, check for missing or 404 import")}return B};
LYM=function(G,B){for(var F in B){var D=G[F],u=B[F];G[F]=!("value"in u)&&D&&"value"in D?Object.assign({value:D.value},u):u}};
HcQ=function(G,B,F){var D={},u=function(){return B.apply(this,arguments)||this};
_.r(u,B);u._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(N)for(var U=0,q;U<N.length;U++)q=N[U],q.properties&&this.createProperties(q.properties),q.observers&&this.createObservers(q.observers,q.properties);G.properties&&this.createProperties(G.properties);G.observers&&this.createObservers(G.observers,G.properties);this._prepareTemplate()}else B._finalizeClass.call(this)};
u.prototype.created=function(){B.prototype.created.call(this);var U=D.created;if(U)for(var q=0;q<U.length;q++)U[q].call(this)};
u.prototype._registered=function(){var U=u.prototype;if(!U.hasOwnProperty("__hasRegisterFinished")){U.__hasRegisterFinished=!0;B.prototype._registered.call(this);VN&&y(U);U=Object.getPrototypeOf(this);var q=D.beforeRegister;if(q)for(var h=0;h<q.length;h++)q[h].call(U);if(q=D.registered)for(h=0;h<q.length;h++)q[h].call(U)}};
u.prototype._applyListeners=function(){B.prototype._applyListeners.call(this);var U=D.listeners;if(U)for(var q=0;q<U.length;q++){var h=U[q];if(h)for(var K in h)this._addMethodEventListenerToNode(this,K,h[K])}};
u.prototype._ensureAttributes=function(){var U=D.hostAttributes;if(U)for(var q=U.length-1;q>=0;q--){var h=U[q],K;for(K in h)this._ensureAttribute(K,h[K])}B.prototype._ensureAttributes.call(this)};
u.prototype.ready=function(){B.prototype.ready.call(this);var U=D.ready;if(U)for(var q=0;q<U.length;q++)U[q].call(this)};
u.prototype.attached=function(){B.prototype.attached.call(this);var U=D.attached;if(U)for(var q=0;q<U.length;q++)U[q].call(this)};
u.prototype.detached=function(){B.prototype.detached.call(this);var U=D.detached;if(U)for(var q=0;q<U.length;q++)U[q].call(this)};
u.prototype.attributeChanged=function(U,q,h){B.prototype.attributeChanged.call(this);var K=D.attributeChanged;if(K)for(var a=0;a<K.length;a++)K[a].call(this,U,q,h)};
_.ZN.Object.defineProperties(u,{properties:{configurable:!0,enumerable:!0,get:function(){var U={};if(N)for(var q=0;q<N.length;q++)LYM(U,N[q].properties);LYM(U,G.properties);return U}},
observers:{configurable:!0,enumerable:!0,get:function(){var U=[];if(N)for(var q=0,h;q<N.length;q++)h=N[q],h.observers&&(U=U.concat(h.observers));G.observers&&(U=U.concat(G.observers));return U}}});
if(F){Array.isArray(F)||(F=[F]);var R=B.prototype.behaviors;var N=jKc(F,null,R);u.prototype.behaviors=R?R.concat(F):N}var y=function(U){if(N)for(var q=N,h=0;h<q.length;h++)QKl(U,q[h],D,r5l);QKl(U,G,D,WYz)};
VN||y(u.prototype);u.generatedFrom=G;return u};
$Bg=function(G){var B=typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0};B.fastInit===void 0&&(B.fastInit=!0);return function(F){if(!B.disableInheritanceCheck&&Object.getPrototypeOf(F.prototype).constructor!==_.gS)throw Error("Ud");var D=F.prototype;D.is=B.is;oLI(D,"created",function(){this.hostElement=this;this.polymerController=this});
k6S(D,F,B.fastInit);B.notifyObserversOnUndefined&&(D._overrideLegacyUndefined=!0);if(Ocs)for(var u=_.C(Object.getOwnPropertyNames(D)),R=u.next();!R.done;R=u.next()){R=R.value;var N=Object.getOwnPropertyDescriptor(D,R);N.enumerable===!1&&(N.enumerable=!0,Object.defineProperty(D,R,N))}if("template"in F)var y=function(){return F.template};
else B.template!==void 0&&(y=B.template);if(y!==void 0){var U;Object.defineProperty(D,"_template",{get:function(){U===void 0&&(U=y());return U},
set:function(q){U=q},
configurable:!0,enumerable:!0})}Polymer(D);F[erc]=D}};
zrz=function(G){G=G===void 0?{}:G;G.fastInit===void 0&&(G.fastInit=!0);return function(B){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(B.prototype).constructor!==SW)throw Error("Vd");k6S(B.prototype,B,G.fastInit)}};
k6S=function(G,B,F){F=F===void 0?!1:F;bcg(B);F?oLI(G,"created",function(){this.disableEnforceFastDefaultValuesCheck||VeS(B,this)}):oLI(G,"ready",function(){for(var D={},u=_.C(MgJ(this.behaviors)),R=u.next();!R.done;R=u.next())R=R.value,R.properties&&Object.assign(D,vWc(this,R.properties));
Object.assign(D,vWc(this,this.properties));VeS(B,this);u=_.C(Object.keys(D));for(R=u.next();!R.done;R=u.next())R=R.value,this[R]=D[R]})};
VeS=function(G,B){if(Ocs){G=new G;for(var F=_.C(Object.getOwnPropertyNames(G)),D=F.next();!D.done;D=F.next())D=D.value,B[D]=G[D];for(F=B;F&&F!==Object.prototype;F=Object.getPrototypeOf(F)){D=_.C(Object.getOwnPropertyNames(F));for(var u=D.next();!u.done;u=D.next())u=u.value,G.hasOwnProperty(u)||Object.defineProperty(G,u,oWM(B,u))}}else G.apply(B)};
oWM=function(G,B){return{get:function(){var F=G[B];return F instanceof Function?F.bind(G):F},
set:function(F){G[B]=F}}};
vWc=function(G,B){if(!B)return{};for(var F={},D=_.C(Object.keys(B)),u=D.next();!u.done;u=D.next())if(u=u.value,!B[u].readOnly){var R=G[u];R!==void 0&&(F[u]=R)}return F};
bcg=function(G){var B=new G;G=G.prototype.properties||{};for(var F=_.C(Object.keys(G)),D=F.next();!D.done;D=F.next())if(D=D.value,B.hasOwnProperty(D)){var u=G[D];typeof u==="function"&&(G[D]=u={type:u});B[D]!=null&&u.type===Object&&(u.type=Me8(B[D].constructor))}};
Me8=function(G){for(var B=_.C(pbJ),F=B.next();!F.done;F=B.next())if(F=F.value,G===F)return F;return Object};
YlS=function(G){return function(B,F){B.behaviors=B.behaviors||[];B.behaviors.push(G||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",B,F).prototype:void 0));Object.defineProperty(B,F,{get:function(){return this},
enumerable:!0,configurable:!0})}};
A5l=function(G){G=G===void 0?{}:G;return function(B,F){B.properties=B.properties||{};G.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?G.type=Me8(Reflect.getMetadata("design:type",B,F)):G.type=String);var D=G,u=B.properties[F];B.properties[F]=u?Object.assign({},u,D):D}};
dBz=function(G){return function(B,F){B.listeners=B.listeners||{};B.listeners[G]=F}};
J5s=function(){var G=_.xS.apply(0,arguments);if(G.length===0)throw Error("Wd");return function(B,F){B.observers=B.observers||[];B.observers.push(F+"("+G.join(",")+")")}};
c56=function(){var G=_.xS.apply(0,arguments);return function(B,F,D){var u=Object.getOwnPropertyDescriptor(B,F).get,R="__compute__"+F;Object.defineProperty(B,R,{value:u,enumerable:!0});B.properties=B.properties||{};u=B.properties[F];u||(u={},B.properties[F]=u);u.computed=R+"("+G.join(",")+")";D.get=void 0}};
_.s2=function(G,B,F){_.uz.call(this);this.JSC$11631_id_=null;this.usingListeners_=!1;this.JSC$11631_listener_=G;this.handler_=F;this.JSC$11631_win_=B||window;this.callback_=(0,_.R_)(this.JSC$11633_doAction_,this)};
IXc=function(G){var B=TZo(G);if(!B)throw Error("Xd`"+G);return B};
TZo=function(G){var B={};G=String(G);var F=G.charAt(0)=="#"?G:"#"+G;if(fXM.test(F))return B.hex=te6(F),B.type="hex",B;F=ZcU(G);return F.length?(B.hex=gWQ(F[0],F[1],F[2]),B.type="rgb",B):SlJ&&(G=SlJ[G.toLowerCase()])?(B.hex=G,B.type="named",B):null};
te6=function(G){if(!fXM.test(G))throw Error("Zd`"+G);G.length==4&&(G=G.replace(sKg,"#$1$1$2$2$3$3"));return G.toLowerCase()};
xBz=function(G){G=te6(G);G=parseInt(G.slice(1),16);return[G>>16,G>>8&255,G&255]};
gWQ=function(G,B,F){G=Number(G);B=Number(B);F=Number(F);if(G!=(G&255)||B!=(B&255)||F!=(F&255))throw Error("$d`"+G+"`"+B+"`"+F);B=G<<16|B<<8|F;return G<16?"#"+(16777216|B).toString(16).slice(1):"#"+B.toString(16)};
ZcU=function(G){var B=G.match(PLU);if(B){G=Number(B[1]);var F=Number(B[2]);B=Number(B[3]);if(G>=0&&G<=255&&F>=0&&F<=255&&B>=0&&B<=255)return[G,F,B]}return[]};
GEM=function(){};
xb=function(G){this.range_=G};
Pw=function(G){this.range_=G};
GN=function(G){this.range_=G};
B2o=function(G){return _.Bz?new GN(G):_.ih?new Pw(G):new xb(G)};
iGo=function(){var G=Ri().JSC$9636_document_;return!!(G.webkitIsFullScreen||G.mozFullScreen||G.msFullscreenElement||G.fullscreenElement)};
_.Fh=function(){var G=window.getSelection();return G&&FKI(G)};
FKI=function(G){var B=!1;if(G.createRange)try{var F=G.createRange()}catch(u){return null}else if(G.rangeCount){if(G.rangeCount>1){F=new DH;B=G.rangeCount;for(var D=0;D<B;D++)F.browserRanges_.push(G.getRangeAt(D));return F}F=G.getRangeAt(0);B=DXM(G.anchorNode,G.anchorOffset,G.focusNode,G.focusOffset)}else return null;return uWU(B2o(F),B)};
_.Rs=function(G,B){return _.uh(G,B,G,B)};
_.w0=function(G,B,F,D){return _.uh(G,B,F,D)};
DXM=function(G,B,F,D){if(G==F)return D<B;var u;if(G.nodeType==1&&B)if(u=G.childNodes[B])G=u,B=0;else if(_.o_(G,F))return!0;if(F.nodeType==1&&D)if(u=F.childNodes[D])F=u,D=0;else if(_.o_(F,G))return!1;return(RG8(G,F)||B-D)>0};
Cr=function(G,B,F){_.uz.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=G;this.scrollTimer_=new _.nn(50);this.JSC$11710_eventHandler_=new _.Cn(this);this.scrollDelta_=new _.e5;this.containerIsActuallyContent_=G.tagName==="BODY"||G.tagName==="HTML";this.containerBounds_=wpc(G);this.containerIsActuallyContent_&&(G=_.DR(),this.containerBounds_.height=G.height,this.containerBounds_.width=G.width);this.margin_=B||0;if(B){if(B=this.containerBounds_.clone(),G=this.margin_){var D=
Math.min(G,B.height*.25);B.top+=D;B.height-=2*D;G=Math.min(G,B.width*.25);B.left+=G;B.width-=2*G}}else B=this.containerBounds_;this.scrollBounds_=B;F||this.JSC$11710_eventHandler_.listen(_.KT(this.containerNode_),"mousemove",this.JSC$11712_onMouseMove);this.JSC$11710_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11712_onTick_)};
C16=function(){};
N2g=function(G){return G%10==1&&G%100!=11?"one":G%10==2&&G%100!=12?"two":G%10==3&&G%100!=13?"few":"other"};
yhg=function(G,B,F,D,u,R,N,y){this.x0=G;this.y0=B;this.x1=F;this.y1=D;this.x2=u;this.y2=R;this.x3=N;this.y3=y};
NY=function(){_.W1.call(this);this.JSC$11793_name_="closure_frame"+nuc++;this.iframesForDisposal_=[];lgs[this.JSC$11793_name_]=this};
_.yz=function(G){this.errorMessage_=null;this.result_=[];this.JSC$11797_buffer_="";this.stack_=[];this.JSC$11797_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!G||!G.deliverMessageAsRawString)};
_.nr=function(G){this.mechanism=G};
lh=function(G,B){this.JSC$11804_key_=G;this.JSC$11804_value_=B};
_.U1=function(G,B){this.JSC$11810_map_={};this.JSC$11810_keys_=[];this.version_=this.size=0;var F=arguments.length;if(F>1){if(F%2)throw Error("na");for(var D=0;D<F;D+=2)this.set(arguments[D],arguments[D+1])}else G&&this.addAll(G)};
qCU=function(){this.JSC$11813_map_=new _.U1;this.JSC$11813_head_=new UX6("");this.JSC$11813_head_.next=this.JSC$11813_head_.prev=this.JSC$11813_head_};
hGS=function(G){if(G>=55296&&G<=57343||G>1114111)return"\ufffd";G in EuQ&&(G=EuQ[G]);var B="";G>65535&&(G-=65536,B+=String.fromCharCode(G>>>10&1023|55296),G=56320|G&1023);return B+=String.fromCharCode(G)};
KKQ=function(G,B){return G<B?1:-1};
mXs=function(){return function(G){return G.charAt(1)==="#"?G.charAt(2)==="X"||G.charAt(2)==="x"?hGS(parseInt(G.substr(3),16)):hGS(parseInt(G.substr(2),10)):agM[G.slice(1,-1)]}};
jtL=function(G){return G.slice(1,G.length-1).trim().replace(Xpz,function(B){return Qts[B]||" "})};
qY=function(G){return G===32||G===9};
E1=function(G,B){return B<G.length?G.charCodeAt(B):-1};
LK8=function(G){for(;G;){if(G._lastLineBlank)return!0;var B=G.type;if(B==="list"||B==="item")G=G._lastChild;else break}return!1};
hU=function(G){if(rhJ.test(G)){var B=1,F=0,D=0;for(G[F]=="|"&&F++;F<G.length;){switch(G[F]){case "|":D=1;break;case " ":break;case "\t":break;default:D&&(D=0,B++)}F++}return WKS.test(G)?-B:B}return 0};
HGQ=function(G){return G=="table"||G=="row"||G=="cell"};
kEg=function(){return new Kr("document",[[1,1],[0,0]])};
OGl=function(){};
as=function(){var G={safe:!1};G=G||{};G.softbreak=G.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=G};
VtL=function(G,B){var F="";if(G)if(G=G.toLowerCase(),G===" "||eGl.test(G))F="space";else if($Xc.test(G))F="esc";else if(G.length==1){if(!B||zG6.test(G))F=G}else F=bGI.test(G)?G.replace("arrow",""):G=="multiply"?"*":G;return F};
ppg=function(G,B){var F=G.hasModifiers;if(B.key)F=VtL(B.key,F);else if(B.detail&&B.detail.key)F=VtL(B.detail.key,F);else{F=B.keyIdentifier;var D="";F&&(F in vuJ?D=vuJ[F]:ouM.test(F)?(F=parseInt(F.replace("U+","0x"),16),D=String.fromCharCode(F).toLowerCase()):D=F.toLowerCase());(F=D)||(F=B.keyCode,D="",Number(F)&&(F>=65&&F<=90?D=String.fromCharCode(32+F):F>=112&&F<=123?D="f"+(F-112+1):F>=48&&F<=57?D=String(F-48):F>=96&&F<=105?D=String(F-96):D=Mtc[F]),F=D);F=F||""}return F===G.key&&(!G.hasModifiers||
!!B.shiftKey===!!G.shiftKey&&!!B.ctrlKey===!!G.ctrlKey&&!!B.altKey===!!G.altKey&&!!B.metaKey===!!G.metaKey)};
Aho=function(G){return G.length===1?{combo:G,key:G,event:"keydown"}:G.split("+").reduce(function(B,F){var D=F.split(":");F=D[0];D=D[1];F in YCS?(B[YCS[F]]=!0,B.hasModifiers=!0):(B.key=F,B.event=D||"keydown");return B},{combo:G.split(":").shift()})};
dXJ=function(G){return G.trim().split(" ").map(function(B){return Aho(B)})};
JhU=function(G,B){if(G&&G.fn){var F=G.fn;G.fn=function(){try{F.apply(this,arguments)}catch(D){if(D instanceof m5)console.warn("Argument '"+D.arg+"'"+(B?" for method '"+B+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw D;}}}return G};
T2U=function(){var G=[],B;var F=F||_.chg.length;for(B=0;B<8;B++)G[B]=_.chg[0|Math.random()*F];return G.join("")};
Igc=function(){var G=_.xS.apply(0,arguments);return G.length===0?function(B){return B}:G.length===1?G[0]:G.reduce(function(B,F){return function(){return B(F.apply(null,_.gi(_.xS.apply(0,arguments))))}})};
fg6=function(){var G=_.xS.apply(0,arguments);return function(B){return function(F,D){F=B(F,D);var u=function(){throw Error("Ge");},R={getState:F.getState,
dispatch:function(N){return u.apply(null,[N].concat(_.gi(_.xS.apply(1,arguments))))}};
D=G.map(function(N){return N(R)});
u=Igc.apply(null,_.gi(D))(F.dispatch);return Object.assign({},F,{dispatch:u})}}};
guI=function(G){Object.keys(G).forEach(function(B){var F=G[B];if(typeof F(void 0,{type:ttS})==="undefined")throw Error("He`"+B);if(typeof F(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+ZG6()})==="undefined")throw Error("Ie`"+B+"`"+ttS);})};
Xh=function(G){for(var B=Object.keys(G),F={},D=0;D<B.length;D++){var u=B[D];typeof G[u]==="function"&&(F[u]=G[u])}var R=Object.keys(F);try{guI(F)}catch(y){var N=y}return function(y,U){y=y===void 0?{}:y;if(N)throw N;for(var q=!1,h={},K=0;K<R.length;K++){var a=R[K],m=y[a],L=(0,F[a])(m,U);if(typeof L==="undefined")throw y=U&&U.type,Error("Je`"+(y?'"'+String(y)+'"':"(unknown type)")+"`"+a);h[a]=L;q=q||L!==m}return(q=q||R.length!==Object.keys(y).length)?h:y}};
SC8=function(G,B,F){function D(){if(h)throw Error("Ke");return y}
function u(m){if(typeof m!=="function")throw Error("Le`"+typeof m);if(h)throw Error("Me");var L=!0;q===U&&(q=U.slice());q.push(m);return function(){if(L){if(h)throw Error("Ne");L=!1;q===U&&(q=U.slice());var W=q.indexOf(m);q.splice(W,1);U=null}}}
function R(m){if(typeof m!=="object"||m===null)var L=!1;else{for(L=m;Object.getPrototypeOf(L)!==null;)L=Object.getPrototypeOf(L);L=Object.getPrototypeOf(m)===L}if(!L)throw Error("Oe`"+typeof m);if(typeof m.type==="undefined")throw Error("Pe");if(h)throw Error("Qe");try{h=!0,y=N(y,m)}finally{h=!1}L=U=q;for(var W=0;W<L.length;W++)(0,L[W])();return m}
if(typeof B==="function"&&typeof F==="function"||typeof F==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof B==="function"&&typeof F==="undefined"&&(F=B,B=void 0);if(typeof F!=="undefined"){if(typeof F!=="function")throw Error("Se`"+typeof F);return F(SC8)(G,B)}if(typeof G!=="function")throw Error("Te`"+typeof G);var N=G,y=B,U=[],q=U,h=!1;R({type:ttS});var K={},a=(K.dispatch=R,K.subscribe=u,K.getState=D,K.replaceReducer=function(m){if(typeof m!=="function")throw Error("Ue`"+
typeof m);N=m;R({type:stl});return a},K[xXI]=function(){var m={};
return m.subscribe=function(L){function W(){L.next&&L.next(D())}
if(typeof L!=="object"||L===null)throw new TypeError("Ve`"+typeof L);W();return{unsubscribe:u(W)}},m[xXI]=function(){return this},m},K);
return a};
P1l=function(G){function B(){u&&(u=!1,G());R&&D()}
function F(){requestAnimationFrame(B)}
function D(){var y=Date.now();if(u){if(y-N<2)return;R=!0}else u=!0,R=!1,setTimeout(F,20);N=y}
var u=!1,R=!1,N=0;return D};
Qz=function(G){return typeof G==="number"?G:parseFloat(G)||0};
G8z=function(G){return _.xS.apply(1,arguments).reduce(function(B,F){return B+Qz(G["border-"+F+"-width"])},0)};
DUg=function(G){if(BPg[G])return BPg[G];var B=globalThis[G],F=B.prototype,D=G in iBg?iBg[G]:void 0;D=!(!D||!D.every(function(U){var q,h;return!!((q=Object.getOwnPropertyDescriptor(F,U))==null?0:(h=q.get)==null?0:h.toString().includes("[native code]"))}));
var u=G in Fw8?Fw8[G]:void 0;u=!(!u||!u.every(function(U){var q;return typeof F[U]==="function"&&((q=F[U])==null?void 0:q.toString().includes("[native code]"))}));
if(D&&u&&!globalThis.Zone)return BPg[G]=B.prototype;try{var R=document.createElement("iframe");document.body.appendChild(R);var N=R.contentWindow;if(!N)return B.prototype;var y=N[G].prototype;document.body.removeChild(R);return y?BPg[G]=y:F}catch(U){return F}};
j_=function(G,B,F){var D=G+"."+String(F);if(u8s[D])return u8s[D].call(B);G=DUg(G);var u;G=(u=Object.getOwnPropertyDescriptor(G,F))==null?void 0:u.get;if(!G)return B[F];u8s[D]=G;return G.call(B)};
wfM=function(G,B){var F="Node."+String(B);if(RYS[F])return RYS[F].bind(G);var D=DUg("Node")[B];if(typeof D!=="function")return G[B];RYS[F]=D;return D.bind(G)};
Lr=function(G,B,F){try{if(!(B in G))return function(){};
var D=G[B],u=F(D);typeof u==="function"&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:D}}));G[B]=u;return function(){G[B]=D}}catch(R){return function(){}}};
Hz=function(G){var B=G&&"host"in G&&"mode"in G&&r0(G)||null;return!!(B&&"shadowRoot"in B&&Wz(B)===G)};
kQ=function(G){return Object.prototype.toString.call(G)==="[object ShadowRoot]"};
CJg=function(G){G.includes(" background-clip: text;")&&!G.includes(" -webkit-background-clip: text;")&&(G=G.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return G};
yEM=function(G){try{var B=G.rules||G.cssRules;if(!B)return null;var F=G.href;!F&&G.ownerNode&&(F=G.ownerNode.baseURI);var D=Array.from(B,function(u){return NPM(u,F)}).join("");
return CJg(D)}catch(u){return null}};
NPM=function(G,B){if("styleSheet"in G){try{var F;if(!(F=yEM(G.styleSheet))){var D=G.cssText;if(D.split('"').length<3)F=D;else{var u=["@import","url("+JSON.stringify(G.href)+")"];G.layerName===""?u.push("layer"):G.layerName&&u.push("layer("+G.layerName+")");G.supportsText&&u.push("supports("+G.supportsText+")");G.media.length&&u.push(G.media.mediaText);F=u.join(" ")+";"}}var R=F}catch(N){R=G.cssText}return G.styleSheet.href?nES(R,G.styleSheet.href):R}R=G.cssText;"selectorText"in G&&G.selectorText.includes(":")&&
(R=R.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return B?nES(R,B):R};
l9L=function(G){var B=G.element;var F=G.maskInputOptions;var D=G.tagName;var u=G.type;var R=G.value;G=G.maskInputFn;R=R||"";u=u&&u.toLowerCase();if(F[D.toLowerCase()]||u&&F[u])R=G?G(R,B):"*".repeat(R.length);return R};
UUs=function(G){var B=G.getContext("2d");if(!B)return!0;for(var F=0;F<G.width;F+=50)for(var D=0;D<G.height;D+=50){var u=B.getImageData;if((new Uint32Array(("__rrweb_original__"in u?u.__rrweb_original__:u).call(B,F,D,Math.min(50,G.width-F),Math.min(50,G.height-D)).data.buffer)).some(function(R){return R!==0}))return!1}return!0};
q7s=function(G){var B=G.type;return G.hasAttribute("data-rr-is-password")?"password":B?B.toLowerCase():null};
EE6=function(G){try{var B=new URL(G,window.location.href)}catch(u){return null}var F,D;return(D=(F=B.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:F[1])!=null?D:null};
nES=function(G,B){return(G||"").replace(hY6,function(F,D,u,R,N,y){u=u||N||y;D=D||R||"";if(!u)return F;if(KwS.test(u)||a9U.test(u)||mUS.test(u))return"url("+D+u+D+")";if(u[0]==="/")return F=B.indexOf("//")>-1?B.split("/").slice(0,3).join("/"):B.split("/")[0],F=F.split("?")[0],"url("+D+(F+u)+D+")";F=B.split("/");R=u.split("/");F.pop();R=_.C(R);for(u=R.next();!u.done;u=R.next())u=u.value,u!=="."&&(u===".."?F.pop():F.push(u));return"url("+D+F.join("/")+D+")"})};
Xfg=function(G,B){return(B=B===void 0?!1:B)?G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
QVz=function(G,B){var F=F===void 0?!1:F;B=Array.from(B.childNodes);var D=[],u=0;if(B.length>1&&G&&typeof G==="string")for(var R=Xfg(G,F),N=R.length/G.length,y=1;y<B.length;y++)if(B[y].textContent&&typeof B[y].textContent==="string"){for(var U=Xfg(B[y].textContent,F),q=3;q<U.length&&(U[q].match(/[a-zA-Z0-9]/)||U.indexOf(U.substring(0,q),1)!==-1);q++);for(;q<U.length;q++){var h=U.substring(0,q),K=R.split(h),a=-1;if(K.length===2)a=K[0].length;else if(K.length>2&&K[0]===""&&B[y-1].textContent!=="")a=
R.indexOf(h,1);else if(K.length===1){h=h.substring(0,h.length-1);K=R.split(h);if(K.length<=1)return D.push(G),D;q=101}else q===U.length-1&&(a=R.indexOf(h));if(K.length>=2&&q>100){var m=B[y-1].textContent;m&&typeof m==="string"&&(a=R.indexOf(h,Xfg(m).length));a===-1&&(a=K[0].length)}if(a!==-1){for(U=Math.floor(a/N);U>0&&U<G.length;){u+=1;if(u>50*B.length)return D.push(G),D;q=Xfg(G.substring(0,U),F);if(q.length===a){D.push(G.substring(0,U));G=G.substring(U);R=R.substring(a);break}else U=q.length<a?
U+Math.max(1,Math.floor((a-q.length)/N)):U-Math.max(1,Math.floor((q.length-a)*N))}break}}}D.push(G);return D};
Lw6=function(){return jVc++};
Wwc=function(G){if(G instanceof HTMLFormElement)return"form";G=G.tagName.toLowerCase();return rEg.test(G)?"div":G};
eYL=function(G,B){function F(q){return(q=q.exec(B.substring(D)))?(q=q[0],D+=q.length,q):""}
if(B.trim()==="")return B;for(var D=0,u=[];;){F(HBS);if(D>=B.length)break;var R=F(k8L);if(R.slice(-1)===",")R=OBJ(G,R.substring(0,R.length-1)),u.push(R);else{var N="";R=OBJ(G,R);for(var y=!1;;){var U=B.charAt(D);if(U===""){u.push((R+N).trim());break}else if(y)U===")"&&(y=!1);else if(U===","){D+=1;u.push((R+N).trim());break}else U==="("&&(y=!0);N+=U;D+=1}}}return u.join(", ")};
OBJ=function(G,B){return B&&B.trim()!==""?$UJ(G,B):B};
$UJ=function(G,B){var F=zYg.get(G);F||(F=G.createElement("a"),zYg.set(G,F));if(!B)B="";else if(B.startsWith("blob:")||B.startsWith("data:"))return B;Go(F,B);return F.href};
bBl=function(G,B,F,D){return D?F==="src"||F==="href"&&(B!=="use"||D[0]!=="#")||F==="xlink:href"&&D[0]!=="#"||F==="background"&&(B==="table"||B==="td"||B==="th")?OBJ(G,D):F==="srcset"?eYL(G,D):F==="style"?nES(D,$UJ(G)):B==="object"&&F==="data"?OBJ(G,D):D:D};
VOU=function(G,B){return(G==="video"||G==="audio")&&B==="autoplay"};
vEz=function(G,B,F){try{if(typeof B==="string"){if(G.classList.contains(B))return!0}else for(var D=G.classList.length;D--;)if(B.test(G.classList[D]))return!0;if(F)return G.matches(F)}catch(u){}return!1};
oEg=function(G,B,F){if(!G)return!1;if(G.nodeType!==G.ELEMENT_NODE)return F?oEg(O1(G),B,F):!1;for(var D=G.classList.length;D--;)if(B.test(G.classList[D]))return!0;return F?oEg(O1(G),B,F):!1};
MOL=function(G,B,F,D){if(G.nodeType===G.ELEMENT_NODE){if(!e_(G).length)return!1}else{if(zN(G)===null)return!1;G=zN(G)}try{if(typeof B==="string")if(D){if(G.closest("."+B))return!0}else{if(G.classList.contains(B))return!0}else if(oEg(G,B,D))return!0;if(F)if(D){if(G.closest(F))return!0}else if(G.matches(F))return!0}catch(u){}return!1};
pfI=function(G,B,F){var D=G.contentWindow;if(D){var u=!1;try{var R=D.document.readyState}catch(y){return}if(R!=="complete"){var N=setTimeout(function(){u||(B(),u=!0)},F);
G.addEventListener("load",function(){clearTimeout(N);u=!0;B()})}else D.location.href==="about:blank"&&G.src!=="about:blank"&&G.src!==""||setTimeout(B,0),G.addEventListener("load",B)}};
Y7L=function(G,B,F){var D=!1;try{var u=G.sheet}catch(N){return}if(!u){var R=setTimeout(function(){D||(B(),D=!0)},F);
G.addEventListener("load",function(){clearTimeout(R);D=!0;B()})}};
JEs=function(G,B){var F=B.doc,D=B.blockClass,u=B.blockSelector,R=B.needsMask,N=B.inlineStylesheet,y=B.maskInputOptions===void 0?{}:B.maskInputOptions,U=B.maskTextFn,q=B.maskInputFn,h=B.dataURLOptions===void 0?{}:B.dataURLOptions,K=B.inlineImages,a=B.recordCanvas,m=B.keepIframeSrcFn,L=B.newlyAddedElement===void 0?!1:B.newlyAddedElement,W=B.cssCaptured===void 0?!1:B.cssCaptured;B=B.mirror;B.nodeMetaMap.has(F)?(B=B.getId(F),B=B===1?void 0:B):B=void 0;switch(G.nodeType){case G.DOCUMENT_NODE:return G.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:G.compatMode}:{type:0,childNodes:[]};case G.DOCUMENT_TYPE_NODE:return{type:1,name:G.name,publicId:G.publicId,systemId:G.systemId,rootId:B};case G.ELEMENT_NODE:return AEL(G,{doc:F,blockClass:D,blockSelector:u,inlineStylesheet:N,maskInputOptions:y,maskInputFn:q,dataURLOptions:h,inlineImages:K,recordCanvas:a,keepIframeSrcFn:m,newlyAddedElement:L,rootId:B});case G.TEXT_NODE:return N=(D=O1(G))&&D.tagName,D="",u=N==="STYLE"?!0:void 0,(N=N==="SCRIPT"?!0:void 0)?
D="SCRIPT_PLACEHOLDER":W||(D=dUU(G),u&&D&&(D=nES(D,$UJ(F)))),!u&&!N&&D&&R&&(D=U?U(D,zN(G)):D.replace(/[\S]/g,"*")),{type:3,textContent:D||"",rootId:B};case G.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:B};case G.COMMENT_NODE:return{type:5,textContent:dUU(G)||"",rootId:B};default:return!1}};
AEL=function(G,B){var F=B.doc,D=B.inlineStylesheet,u=B.maskInputOptions===void 0?{}:B.maskInputOptions,R=B.maskInputFn,N=B.dataURLOptions===void 0?{}:B.dataURLOptions,y=B.inlineImages,U=B.recordCanvas,q=B.keepIframeSrcFn,h=B.newlyAddedElement===void 0?!1:B.newlyAddedElement,K=B.rootId;B=vEz(G,B.blockClass,B.blockSelector);for(var a=Wwc(G),m={},L=G.attributes.length,W=0;W<L;W++){var e=G.attributes[W];VOU(a,e.name)||(m[e.name]=bBl(F,a,e.name.toLowerCase(),e.value))}a==="link"&&D&&(D=Array.from(F.styleSheets).find(function(A){return A.href===
G.href}),L=null,D&&(L=yEM(D)),L&&(delete m.rel,delete m.href,m._cssText=L));
a==="style"&&G.sheet&&(D=yEM(G.sheet))&&(G.childNodes.length>1&&(D=QVz(D,G).join("/* rr_split */")),m._cssText=D);if(a==="input"||a==="textarea"||a==="select")D=G.value,L=G.checked,m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&D?m.value=l9L({element:G,type:q7s(G),tagName:a,value:D,maskInputOptions:u,maskInputFn:R}):L&&(m.checked=L);a==="option"&&(G.selected&&!u.select?m.selected=!0:delete m.selected);a==="dialog"&&G.open&&(m.rr_open_mode=G.matches("dialog:modal")?"modal":
"non-modal");a==="canvas"&&U&&(G.__context==="2d"?UUs(G)||(m.rr_dataURL=G.toDataURL(N.type,N.quality)):"__context"in G||(u=G.toDataURL(N.type,N.quality),R=F.createElement("canvas"),R.width=G.width,R.height=G.height,R=R.toDataURL(N.type,N.quality),u!==R&&(m.rr_dataURL=u)));if(a==="img"&&y){bh||(bh=F.createElement("canvas"),cEU=bh.getContext("2d"));var b=G.currentSrc||G.getAttribute("src")||"<unknown-src>",M=G.crossOrigin,t=function(){G.removeEventListener("load",t);try{bh.width=G.naturalWidth,bh.height=
G.naturalHeight,cEU.drawImage(G,0,0),m.rr_dataURL=bh.toDataURL(N.type,N.quality)}catch(A){if(G.crossOrigin!=="anonymous"){G.crossOrigin="anonymous";G.complete&&G.naturalWidth!==0?t():G.addEventListener("load",t);return}console.warn("Cannot inline img src="+b+"! Error: "+A)}G.crossOrigin==="anonymous"&&(M?m.crossOrigin=M:G.removeAttribute("crossorigin"))};
G.complete&&G.naturalWidth!==0?t():G.addEventListener("load",t)}if(a==="audio"||a==="video")F=m,F.rr_mediaState=G.paused?"paused":"played",F.rr_mediaCurrentTime=G.currentTime,F.rr_mediaPlaybackRate=G.playbackRate,F.rr_mediaMuted=G.muted,F.rr_mediaLoop=G.loop,F.rr_mediaVolume=G.volume;h||(G.scrollLeft&&(m.rr_scrollLeft=G.scrollLeft),G.scrollTop&&(m.rr_scrollTop=G.scrollTop));B&&(h=G.getBoundingClientRect(),m={class:m.class,rr_width:h.width+"px",rr_height:h.height+"px"});a!=="iframe"||q(m.src)||(G.contentDocument||
(m.rr_src=m.src),delete m.src);var T;try{customElements.get(a)&&(T=!0)}catch(A){}return{type:2,tagName:a,attributes:m,childNodes:[],isSVG:!(G.tagName!=="svg"&&!G.ownerSVGElement)||void 0,needBlock:B,rootId:K,isCustom:T}};
Vz=function(G){return G===void 0||G===null?"":G.toLowerCase()};
TP8=function(G,B){return B.comment&&G.type===5||G.type===2&&(B.script&&(G.tagName==="script"||G.tagName==="link"&&(G.attributes.rel==="preload"&&G.attributes.as==="script"||G.attributes.rel==="modulepreload")||G.tagName==="link"&&G.attributes.rel==="prefetch"&&typeof G.attributes.href==="string"&&EE6(G.attributes.href)==="js")||B.headFavicon&&(G.tagName==="link"&&G.attributes.rel==="shortcut icon"||G.tagName==="meta"&&(Vz(G.attributes.name).match(/^msapplication-tile(image|color)$/)||Vz(G.attributes.name)===
"application-name"||Vz(G.attributes.rel)==="icon"||Vz(G.attributes.rel)==="apple-touch-icon"||Vz(G.attributes.rel)==="shortcut icon"))||G.tagName==="meta"&&(B.headMetaDescKeywords&&Vz(G.attributes.name).match(/^description|keywords$/)||B.headMetaSocial&&(Vz(G.attributes.property).match(/^(og|twitter|fb):/)||Vz(G.attributes.name).match(/^(og|twitter):/)||Vz(G.attributes.name)==="pinterest")||B.headMetaRobots&&(Vz(G.attributes.name)==="robots"||Vz(G.attributes.name)==="googlebot"||Vz(G.attributes.name)===
"bingbot")||B.headMetaHttpEquiv&&G.attributes["http-equiv"]!==void 0||B.headMetaAuthorship&&(Vz(G.attributes.name)==="author"||Vz(G.attributes.name)==="generator"||Vz(G.attributes.name)==="framework"||Vz(G.attributes.name)==="publisher"||Vz(G.attributes.name)==="progid"||Vz(G.attributes.property).match(/^article:/)||Vz(G.attributes.property).match(/^product:/))||B.headMetaVerification&&(Vz(G.attributes.name)==="google-site-verification"||Vz(G.attributes.name)==="yandex-verification"||Vz(G.attributes.name)===
"csrf-token"||Vz(G.attributes.name)==="p:domain_verify"||Vz(G.attributes.name)==="verify-v1"||Vz(G.attributes.name)==="verification"||Vz(G.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
vz=function(G,B){var F=B.doc,D=B.mirror,u=B.blockClass,R=B.blockSelector,N=B.maskTextClass,y=B.maskTextSelector,U=B.skipChild===void 0?!1:B.skipChild,q=B.inlineStylesheet===void 0?!0:B.inlineStylesheet,h=B.maskInputOptions===void 0?{}:B.maskInputOptions,K=B.maskTextFn,a=B.maskInputFn,m=B.slimDOMOptions,L=B.dataURLOptions===void 0?{}:B.dataURLOptions,W=B.inlineImages===void 0?!1:B.inlineImages,e=B.recordCanvas===void 0?!1:B.recordCanvas,b=B.onSerialize,M=B.onIframeLoad,t=B.iframeLoadTimeout===void 0?
5E3:B.iframeLoadTimeout,T=B.onStylesheetLoad,A=B.stylesheetLoadTimeout===void 0?5E3:B.stylesheetLoadTimeout,Z=B.keepIframeSrcFn===void 0?function(){return!1}:B.keepIframeSrcFn,P=B.newlyAddedElement===void 0?!1:B.newlyAddedElement,RI=B.cssCaptured===void 0?!1:B.cssCaptured,yo=B.needsMask,hg=B.preserveWhiteSpace===void 0?!0:B.preserveWhiteSpace;
yo||(yo=MOL(G,N,y,yo===void 0));var US=JEs(G,{doc:F,mirror:D,blockClass:u,blockSelector:R,needsMask:yo,inlineStylesheet:q,maskInputOptions:h,maskTextFn:K,maskInputFn:a,dataURLOptions:L,inlineImages:W,recordCanvas:e,keepIframeSrcFn:Z,newlyAddedElement:P,cssCaptured:RI});if(!US)return console.warn(G,"not serialized"),null;P=D.nodeMetaMap.has(G)?D.getId(G):TP8(US,m)||!hg&&US.type===3&&!US.textContent.replace(/^\s+|\s+$/gm,"").length?-2:jVc++;B=Object.assign(US,{id:P});D.add(G,B);if(P===-2)return null;
b&&b(G);P=!U;B.type===2&&(P=P&&!B.needBlock,delete B.needBlock,(RI=Wz(G))&&kQ(RI)&&(B.isShadowHost=!0));if((B.type===0||B.type===2)&&P){m.headWhitespace&&B.type===2&&B.tagName==="head"&&(hg=!1);U={doc:F,mirror:D,blockClass:u,blockSelector:R,needsMask:yo,maskTextClass:N,maskTextSelector:y,skipChild:U,inlineStylesheet:q,maskInputOptions:h,maskTextFn:K,maskInputFn:a,slimDOMOptions:m,dataURLOptions:L,inlineImages:W,recordCanvas:e,preserveWhiteSpace:hg,onSerialize:b,onIframeLoad:M,iframeLoadTimeout:t,
onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:Z,cssCaptured:!1};if(B.type!==2||B.tagName!=="textarea"||B.attributes.value===void 0)for(B.type===2&&B.attributes._cssText!==void 0&&typeof B.attributes._cssText==="string"&&(U.cssCaptured=!0),P=_.C(Array.from(e_(G))),RI=P.next();!RI.done;RI=P.next())(RI=vz(RI.value,U))&&B.childNodes.push(RI);P=null;if(G.nodeType===G.ELEMENT_NODE&&(P=Wz(G))){RI=_.C(Array.from(e_(P)));for(var aI=RI.next();!aI.done;aI=RI.next())if(aI=vz(aI.value,U))kQ(P)&&(aI.isShadow=
!0),B.childNodes.push(aI)}}(U=O1(G))&&Hz(U)&&kQ(U)&&(B.isShadow=!0);B.type===2&&B.tagName==="iframe"&&pfI(G,function(){var v6=G.contentDocument;v6&&M&&(v6=vz(v6,{doc:v6,mirror:D,blockClass:u,blockSelector:R,needsMask:yo,maskTextClass:N,maskTextSelector:y,skipChild:!1,inlineStylesheet:q,maskInputOptions:h,maskTextFn:K,maskInputFn:a,slimDOMOptions:m,dataURLOptions:L,inlineImages:W,recordCanvas:e,preserveWhiteSpace:hg,onSerialize:b,onIframeLoad:M,iframeLoadTimeout:t,onStylesheetLoad:T,stylesheetLoadTimeout:A,
keepIframeSrcFn:Z}))&&M(G,v6)},t);
B.type===2&&B.tagName==="link"&&typeof B.attributes.rel==="string"&&(B.attributes.rel==="stylesheet"||B.attributes.rel==="preload"&&typeof B.attributes.href==="string"&&EE6(B.attributes.href)==="css")&&Y7L(G,function(){if(T){var v6=vz(G,{doc:F,mirror:D,blockClass:u,blockSelector:R,needsMask:yo,maskTextClass:N,maskTextSelector:y,skipChild:!1,inlineStylesheet:q,maskInputOptions:h,maskTextFn:K,maskInputFn:a,slimDOMOptions:m,dataURLOptions:L,inlineImages:W,recordCanvas:e,preserveWhiteSpace:hg,onSerialize:b,
onIframeLoad:M,iframeLoadTimeout:t,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:Z});v6&&T(G,v6)}},A);
return B};
I9M=function(G){var B=document;G=G||{};var F=G.maskAllInputs===void 0?!1:G.maskAllInputs,D=G.slimDOM===void 0?!1:G.slimDOM;return vz(B,{doc:B,mirror:G.mirror===void 0?new MY:G.mirror,blockClass:G.blockClass===void 0?"rr-block":G.blockClass,blockSelector:G.blockSelector===void 0?null:G.blockSelector,maskTextClass:G.maskTextClass===void 0?"rr-mask":G.maskTextClass,maskTextSelector:G.maskTextSelector===void 0?null:G.maskTextSelector,skipChild:!1,inlineStylesheet:G.inlineStylesheet===void 0?!0:G.inlineStylesheet,
maskInputOptions:F===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:F===!1?{password:!0}:F,maskTextFn:G.maskTextFn,maskInputFn:G.maskInputFn,slimDOMOptions:D===!0||D==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:D==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:D===!1?{}:D,dataURLOptions:G.dataURLOptions,
inlineImages:G.inlineImages===void 0?!1:G.inlineImages,recordCanvas:G.recordCanvas===void 0?!1:G.recordCanvas,preserveWhiteSpace:G.preserveWhiteSpace,onSerialize:G.onSerialize,onIframeLoad:G.onIframeLoad,iframeLoadTimeout:G.iframeLoadTimeout,onStylesheetLoad:G.onStylesheetLoad,stylesheetLoadTimeout:G.stylesheetLoadTimeout,keepIframeSrcFn:G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,
newlyAddedElement:!1})};
pr=function(G,B,F){F=F===void 0?document:F;var D={capture:!0,passive:!0};F.addEventListener(G,B,D);return function(){return F.removeEventListener(G,B,D)}};
YQ=function(G,B,F){F=F===void 0?{}:F;var D=null,u=0;return function(){var R=_.xS.apply(0,arguments),N=Date.now();u||F.leading!==!1||(u=N);var y=B-(N-u),U=this;y<=0||y>B?(D&&(clearTimeout(D),D=null),u=N,G.apply(U,R)):D||F.trailing===!1||(D=setTimeout(function(){u=F.leading===!1?0:Date.now();D=null;G.apply(U,R)},y))}};
f9g=function(G,B,F,D,u){u=u===void 0?window:u;var R=u.Object.getOwnPropertyDescriptor(G,B);u.Object.defineProperty(G,B,D?F:{set:function(N){var y=this;setTimeout(function(){F.set.call(y,N)},0);
R&&R.set&&R.set.call(this,N)}});
return function(){return f9g(G,B,R||{},!0)}};
tO6=function(G){var B=G.document,F,D,u,R;return{left:B.scrollingElement?B.scrollingElement.scrollLeft:G.pageXOffset!==void 0?G.pageXOffset:B.documentElement.scrollLeft||(B==null?void 0:B.body)&&((F=zN(B.body))==null?void 0:F.scrollLeft)||(B==null?void 0:(D=B.body)==null?void 0:D.scrollLeft)||0,top:B.scrollingElement?B.scrollingElement.scrollTop:G.pageYOffset!==void 0?G.pageYOffset:(B==null?void 0:B.documentElement.scrollTop)||(B==null?void 0:B.body)&&((u=zN(B.body))==null?void 0:u.scrollTop)||(B==
null?void 0:(R=B.body)==null?void 0:R.scrollTop)||0}};
ZBo=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
gES=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
S7o=function(G){return G?G.nodeType===G.ELEMENT_NODE?G:zN(G):null};
AU=function(G,B,F,D){if(!G)return!1;G=S7o(G);if(!G)return!1;try{if(typeof B==="string"){if(G.classList.contains(B)||D&&G.closest("."+B)!==null)return!0}else if(oEg(G,B,D))return!0}catch(u){}return F&&(G.matches(F)||D&&G.closest(F)!==null)?!0:!1};
sV6=function(G,B,F){return G.tagName==="TITLE"&&F.headTitleMutations?!0:B.getId(G)===-2};
xUo=function(G,B){if(Hz(G))return!1;var F=B.getId(G);return B.has(F)?(F=O1(G))&&F.nodeType===G.DOCUMENT_NODE?!1:F?xUo(F,B):!0:!0};
PJJ=function(){var G=G===void 0?window:G;"NodeList"in G&&!G.NodeList.prototype.forEach&&(G.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in G&&!G.DOMTokenList.prototype.forEach&&(G.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
Gu6=function(G,B){return!(G.nodeName!=="LINK"||G.nodeType!==G.ELEMENT_NODE||!G.getAttribute||G.getAttribute("rel")!=="stylesheet"||!B.nodeMetaMap.get(G))};
idQ=function(G){var B=null,F;"getRootNode"in G&&((F=BL6(G))==null?void 0:F.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&r0(BL6(G))&&(B=r0(BL6(G)));return B};
FE6=function(G){var B=G.ownerDocument;if(B){if(!(B=wfM(B,"contains")(G)))if(B=G.ownerDocument){for(var F;F=idQ(G);)G=F;B=wfM(B,"contains")(G)}else B=!1}else B=!1;return B};
DQJ=function(G,B){G.delete(B);e_(B).forEach(function(F){return DQJ(G,F)})};
u7Q=function(G,B){for(var F=[G];F.length;)G=F.pop(),B.has(G)||(B.add(G),e_(G).forEach(function(D){return F.push(D)}))};
Ryg=function(G,B){G.size===0?G=!1:G=(B=O1(B))?G.has(B):!1;return G};
Cw8=function(G,B){return G.size===0?!1:wL8(G,B)};
wL8=function(G,B){return(B=O1(B))?G.has(B)?!0:wL8(G,B):!1};
d0=function(G){try{if("composedPath"in G){var B=G.composedPath();if(B.length)return B[0]}else if("path"in G&&G.path.length)return G.path[0]}catch(F){}return G&&G.target};
ysl=function(G,B){var F=new NLQ;JU.push(F);F.init(G);G=new (DUg("MutationObserver").constructor)(cz(F.processMutations.bind(F)));G.observe(B,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return G};
lzs=function(G){var B=G.mousemoveCb;var F=G.sampling;var D=G.doc;var u=G.mirror;if(F.mousemove===!1)return function(){};
var R=[],N,y=YQ(cz(function(q){var h=Date.now()-N;B(R.map(function(K){K.timeOffset-=h;return K}),q);
R=[];N=null}),typeof F.mousemoveCallback==="number"?F.mousemoveCallback:500);
G=cz(YQ(cz(function(q){var h=d0(q),K=q.changedTouches?q.changedTouches[0]:q,a=K.clientX;K=K.clientY;N||(N=neg());R.push({x:a,y:K,id:u.getId(h),timeOffset:neg()-N});y(typeof DragEvent!=="undefined"&&q instanceof DragEvent?12:q instanceof MouseEvent?1:6)}),typeof F.mousemove==="number"?F.mousemove:50,{trailing:!1}));
var U=[pr("mousemove",G,D),pr("touchmove",G,D),pr("drag",G,D)];return cz(function(){U.forEach(function(q){return q()})})};
UQL=function(G){var B=G.mouseInteractionCb;var F=G.doc;var D=G.mirror;var u=G.blockClass;var R=G.blockSelector;G=G.sampling;if(G.mouseInteraction===!1)return function(){};
var N=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,y=[],U=null,q=function(h){return function(K){var a=d0(K);if(!AU(a,u,R,!0)){var m=null,L=h;if("pointerType"in K){switch(K.pointerType){case "mouse":m=0;break;case "touch":m=2;break;case "pen":m=1}m===2&&(TN[h]===1?L="TouchStart":TN[h]===0&&(L="TouchEnd"))}else K.changedTouches&&(m=2);if(m!==null){if(U=m,L.startsWith("Touch")&&m===2||L.startsWith("Mouse")&&m===0)m=null}else TN[h]===2&&(m=U,U=null);if(K=K.changedTouches?
K.changedTouches[0]:K)a=D.getId(a),cz(B)(Object.assign({},{type:TN[L],id:a,x:K.clientX,y:K.clientY},m!==null&&{pointerType:m}))}}};
Object.keys(TN).filter(function(h){return Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&N[h]!==!1}).forEach(function(h){var K=h.toLowerCase(),a=q(h);
if(window.PointerEvent)switch(TN[h]){case 1:case 0:K=K.replace("mouse","pointer");break;case 7:case 9:return}y.push(pr(K,a,F))});
return cz(function(){y.forEach(function(h){return h()})})};
q9c=function(G){var B=G.scrollCb;var F=G.doc;var D=G.mirror;var u=G.blockClass;var R=G.blockSelector;return pr("scroll",cz(YQ(cz(function(N){var y=d0(N);y&&!AU(y,u,R,!0)&&(N=D.getId(y),y===F&&F.defaultView?(y=tO6(F.defaultView),B({id:N,x:y.left,y:y.top})):B({id:N,x:y.scrollLeft,y:y.scrollTop}))}),G.sampling.scroll||100)),F)};
Eeg=function(G,B){var F=G.viewportResizeCb;var D=-1,u=-1;return pr("resize",cz(YQ(cz(function(){var R=ZBo(),N=gES();if(D!==R||u!==N)F({width:Number(N),height:Number(R)}),D=R,u=N}),200)),B.win)};
azI=function(G){function B(e){var b=d0(e),M=e.isTrusted,t=b&&b.tagName;b&&t==="OPTION"&&(b=zN(b));if(!(!b||!t||hyg.indexOf(t)<0||AU(b,N,y,!0)||b.classList.contains(U)||q&&b.matches(q))){var T=b.value,A=!1;e=q7s(b)||"";if(e==="radio"||e==="checkbox")A=b.checked;else if(h[t.toLowerCase()]||h[e])T=l9L({element:b,maskInputOptions:h,tagName:t,type:e,value:T,maskInputFn:K});F(b,m?{text:T,isChecked:A,userTriggered:M}:{text:T,isChecked:A});M=b.name;e==="radio"&&M&&A&&u.querySelectorAll('input[type="radio"][name="'+
M+'"]').forEach(function(Z){if(Z!==b){var P=Z.value;F(Z,m?{text:P,isChecked:!A,userTriggered:!1}:{text:P,isChecked:!A})}})}}
function F(e,b){var M=KEz.get(e);M&&M.text===b.text&&M.isChecked===b.isChecked||(KEz.set(e,b),e=R.getId(e),cz(D)(Object.assign({},b,{id:e})))}
var D=G.inputCb;var u=G.doc;var R=G.mirror;var N=G.blockClass;var y=G.blockSelector;var U=G.ignoreClass;var q=G.ignoreSelector;var h=G.maskInputOptions;var K=G.maskInputFn;var a=G.sampling;var m=G.userTriggeredOnInput;var L=(a.input==="last"?["change"]:["input","change"]).map(function(e){return pr(e,cz(B),u)}),W=u.defaultView;
if(!W)return function(){L.forEach(function(e){return e()})};
G=W.Object.getOwnPropertyDescriptor(W.HTMLInputElement.prototype,"value");a=[[W.HTMLInputElement.prototype,"value"],[W.HTMLInputElement.prototype,"checked"],[W.HTMLSelectElement.prototype,"value"],[W.HTMLTextAreaElement.prototype,"value"],[W.HTMLSelectElement.prototype,"selectedIndex"],[W.HTMLOptionElement.prototype,"selected"]];G&&G.set&&L.push.apply(L,_.gi(a.map(function(e){return f9g(e[0],e[1],{set:function(){cz(B)({target:this,isTrusted:!1})}},!1,W)})));
return cz(function(){L.forEach(function(e){return e()})})};
XLg=function(G){var B=[],F,D,u,R;mQg("CSSGroupingRule")&&((F=G.parentRule)==null?void 0:(D=F.constructor)==null?void 0:D.name)==="CSSGroupingRule"||mQg("CSSMediaRule")&&G.parentRule instanceof CSSMediaRule||mQg("CSSSupportsRule")&&G.parentRule instanceof CSSSupportsRule||mQg("CSSConditionRule")&&((u=G.parentRule)==null?void 0:(R=u.constructor)==null?void 0:R.name)==="CSSConditionRule"?(G=Array.from(G.parentRule.cssRules).indexOf(G),B.unshift(G)):G.parentStyleSheet&&(G=Array.from(G.parentStyleSheet.cssRules).indexOf(G),
B.unshift(G));return B};
Is=function(G,B,F){var D,u;if(!G)return{};G.ownerNode?D=B.getId(G.ownerNode):u=F.getId(G);return{styleId:u,id:D}};
j6l=function(G,B){var F=G.styleSheetRuleCb;var D=G.mirror;var u=G.stylesheetManager;var R=B.win;if(!R.CSSStyleSheet||!R.CSSStyleSheet.prototype)return function(){};
var N=R.CSSStyleSheet.prototype.insertRule;R.CSSStyleSheet.prototype.insertRule=new fr(N,{apply:cz(function(a,m,L){var W=_.C(L),e=W.next().value;W=W.next().value;var b=Is(m,D,u.styleMirror),M=b.id;b=b.styleId;(M&&M!==-1||b&&b!==-1)&&F({id:M,styleId:b,adds:[{rule:e,index:W}]});return a.apply(m,L)})});
R.CSSStyleSheet.prototype.addRule=function(a,m,L){L=L===void 0?this.cssRules.length:L;return R.CSSStyleSheet.prototype.insertRule.apply(this,[a+" { "+m+" }",L])};
var y=R.CSSStyleSheet.prototype.deleteRule;R.CSSStyleSheet.prototype.deleteRule=new fr(y,{apply:cz(function(a,m,L){var W=_.C(L).next().value,e=Is(m,D,u.styleMirror),b=e.id;e=e.styleId;(b&&b!==-1||e&&e!==-1)&&F({id:b,styleId:e,removes:[{index:W}]});return a.apply(m,L)})});
R.CSSStyleSheet.prototype.removeRule=function(a){return R.CSSStyleSheet.prototype.deleteRule.apply(this,[a])};
if(R.CSSStyleSheet.prototype.replace){var U=R.CSSStyleSheet.prototype.replace;R.CSSStyleSheet.prototype.replace=new fr(U,{apply:cz(function(a,m,L){var W=_.C(L).next().value,e=Is(m,D,u.styleMirror),b=e.id;e=e.styleId;(b&&b!==-1||e&&e!==-1)&&F({id:b,styleId:e,replace:W});return a.apply(m,L)})})}if(R.CSSStyleSheet.prototype.replaceSync){var q=R.CSSStyleSheet.prototype.replaceSync;
R.CSSStyleSheet.prototype.replaceSync=new fr(q,{apply:cz(function(a,m,L){var W=_.C(L).next().value,e=Is(m,D,u.styleMirror),b=e.id;e=e.styleId;(b&&b!==-1||e&&e!==-1)&&F({id:b,styleId:e,replaceSync:W});return a.apply(m,L)})})}var h={};
Q6g("CSSGroupingRule")?h.CSSGroupingRule=R.CSSGroupingRule:(Q6g("CSSMediaRule")&&(h.CSSMediaRule=R.CSSMediaRule),Q6g("CSSConditionRule")&&(h.CSSConditionRule=R.CSSConditionRule),Q6g("CSSSupportsRule")&&(h.CSSSupportsRule=R.CSSSupportsRule));var K={};Object.entries(h).forEach(function(a){var m=_.C(a);a=m.next().value;m=m.next().value;K[a]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule};m.prototype.insertRule=new fr(K[a].insertRule,{apply:cz(function(L,W,e){var b=_.C(e),M=b.next().value;
b=b.next().value;var t=Is(W.parentStyleSheet,D,u.styleMirror),T=t.id;t=t.styleId;(T&&T!==-1||t&&t!==-1)&&F({id:T,styleId:t,adds:[{rule:M,index:[].concat(_.gi(XLg(W)),[b||0])}]});return L.apply(W,e)})});
m.prototype.deleteRule=new fr(K[a].deleteRule,{apply:cz(function(L,W,e){var b=_.C(e).next().value,M=Is(W.parentStyleSheet,D,u.styleMirror),t=M.id;M=M.styleId;(t&&t!==-1||M&&M!==-1)&&F({id:t,styleId:M,removes:[{index:[].concat(_.gi(XLg(W)),[b])}]});return L.apply(W,e)})})});
return cz(function(){R.CSSStyleSheet.prototype.insertRule=N;R.CSSStyleSheet.prototype.deleteRule=y;U&&(R.CSSStyleSheet.prototype.replace=U);q&&(R.CSSStyleSheet.prototype.replaceSync=q);Object.entries(h).forEach(function(a){var m=_.C(a);a=m.next().value;m=m.next().value;m.prototype.insertRule=K[a].insertRule;m.prototype.deleteRule=K[a].deleteRule})})};
rsS=function(G,B){var F=G.mirror;var D=G.stylesheetManager;var u=null;u=B.nodeName==="#document"?F.getId(B):F.getId(r0(B));var R,N,y;G=B.nodeName==="#document"?(R=B.defaultView)==null?void 0:R.Document:(N=B.ownerDocument)==null?void 0:(y=N.defaultView)==null?void 0:y.ShadowRoot;var U=(G==null?0:G.prototype)?Object.getOwnPropertyDescriptor(G==null?void 0:G.prototype,"adoptedStyleSheets"):void 0;if(u===null||u===-1||!G||!U)return function(){};
Object.defineProperty(B,"adoptedStyleSheets",{configurable:U.configurable,enumerable:U.enumerable,get:function(){var q;return(q=U.get)==null?void 0:q.call(this)},
set:function(q){var h,K=(h=U.set)==null?void 0:h.call(this,q);if(u!==null&&u!==-1)try{LEU(D,q,u)}catch(a){}return K}});
return cz(function(){Object.defineProperty(B,"adoptedStyleSheets",{configurable:U.configurable,enumerable:U.enumerable,get:U.get,set:U.set})})};
WEL=function(G,B){var F=G.styleDeclarationCb;var D=G.mirror;var u=G.ignoreCSSAttributes;var R=G.stylesheetManager;var N=B.win;var y=N.CSSStyleDeclaration.prototype.setProperty;N.CSSStyleDeclaration.prototype.setProperty=new fr(y,{apply:cz(function(q,h,K){var a=_.C(K),m=a.next().value,L=a.next().value;a=a.next().value;if(u.has(m))return y.apply(h,[m,L,a]);var W,e=Is((W=h.parentRule)==null?void 0:W.parentStyleSheet,D,R.styleMirror);W=e.id;e=e.styleId;(W&&W!==-1||e&&e!==-1)&&F({id:W,styleId:e,set:{property:m,
value:L,priority:a},index:XLg(h.parentRule)});return q.apply(h,K)})});
var U=N.CSSStyleDeclaration.prototype.removeProperty;N.CSSStyleDeclaration.prototype.removeProperty=new fr(U,{apply:cz(function(q,h,K){var a=_.C(K).next().value;if(u.has(a))return U.apply(h,[a]);var m,L=Is((m=h.parentRule)==null?void 0:m.parentStyleSheet,D,R.styleMirror);m=L.id;L=L.styleId;(m&&m!==-1||L&&L!==-1)&&F({id:m,styleId:L,remove:{property:a},index:XLg(h.parentRule)});return q.apply(h,K)})});
return cz(function(){N.CSSStyleDeclaration.prototype.setProperty=y;N.CSSStyleDeclaration.prototype.removeProperty=U})};
Hdl=function(G){var B=G.mediaInteractionCb;var F=G.blockClass;var D=G.blockSelector;var u=G.mirror;var R=G.sampling;G=G.doc;var N=cz(function(U){return YQ(cz(function(q){if((q=d0(q))&&!AU(q,F,D,!0)){var h=q.currentTime,K=q.volume,a=q.muted,m=q.playbackRate,L=q.loop;B({type:U,id:u.getId(q),currentTime:h,volume:K,muted:a,playbackRate:m,loop:L})}}),R.media||500)}),y=[pr("play",N(0),G),
pr("pause",N(1),G),pr("seeked",N(2),G),pr("volumechange",N(3),G),pr("ratechange",N(4),G)];return cz(function(){y.forEach(function(U){return U()})})};
kul=function(G){var B=G.fontCb;G=G.doc;var F=G.defaultView;if(!F)return function(){};
var D=[],u=new WeakMap,R=F.FontFace;F.FontFace=function(N,y,U){var q=new R(N,y,U);u.set(q,{family:N,buffer:typeof y!=="string",descriptors:U,fontSource:typeof y==="string"?y:JSON.stringify(Array.from(new Uint8Array(y)))});return q};
G=Lr(G.fonts,"add",function(N){return function(y){setTimeout(cz(function(){var U=u.get(y);U&&(B(U),u.delete(y))}),0);
return N.apply(this,[y])}});
D.push(function(){F.FontFace=R});
D.push(G);return cz(function(){D.forEach(function(N){return N()})})};
Odc=function(G){var B=G.doc,F=G.mirror,D=G.blockClass,u=G.blockSelector,R=G.selectionCb,N=!0;G=cz(function(){var y=B.getSelection();if(y&&!(N&&(y==null?0:y.isCollapsed))){N=y.isCollapsed||!1;for(var U=[],q=y.rangeCount||0,h=0;h<q;h++){var K=y.getRangeAt(h),a=K.startContainer,m=K.startOffset,L=K.endContainer;K=K.endOffset;AU(a,D,u,!0)||AU(L,D,u,!0)||U.push({start:F.getId(a),startOffset:m,end:F.getId(L),endOffset:K})}R({ranges:U})}});
G();return pr("selectionchange",G)};
eyo=function(G){var B=G.doc;var F=G.customElementCb;return(G=B.defaultView)&&G.customElements?Lr(G.customElements,"define",function(D){return function(u,R,N){try{F({define:{name:u}})}catch(y){console.warn("Custom element callback failed for "+u)}return D.apply(this,[u,R,N])}}):function(){}};
$Ql=function(G,B){var F=G.mutationCb,D=G.mousemoveCb,u=G.mouseInteractionCb,R=G.scrollCb,N=G.viewportResizeCb,y=G.inputCb,U=G.mediaInteractionCb,q=G.styleSheetRuleCb,h=G.styleDeclarationCb,K=G.canvasMutationCb,a=G.fontCb,m=G.selectionCb,L=G.customElementCb;G.mutationCb=function(){var W=_.xS.apply(0,arguments);B.mutation&&B.mutation.apply(B,_.gi(W));F.apply(null,_.gi(W))};
G.mousemoveCb=function(){var W=_.xS.apply(0,arguments);B.mousemove&&B.mousemove.apply(B,_.gi(W));D.apply(null,_.gi(W))};
G.mouseInteractionCb=function(){var W=_.xS.apply(0,arguments);B.mouseInteraction&&B.mouseInteraction.apply(B,_.gi(W));u.apply(null,_.gi(W))};
G.scrollCb=function(){var W=_.xS.apply(0,arguments);B.scroll&&B.scroll.apply(B,_.gi(W));R.apply(null,_.gi(W))};
G.viewportResizeCb=function(){var W=_.xS.apply(0,arguments);B.viewportResize&&B.viewportResize.apply(B,_.gi(W));N.apply(null,_.gi(W))};
G.inputCb=function(){var W=_.xS.apply(0,arguments);B.input&&B.input.apply(B,_.gi(W));y.apply(null,_.gi(W))};
G.mediaInteractionCb=function(){var W=_.xS.apply(0,arguments);B.mediaInteaction&&B.mediaInteaction.apply(B,_.gi(W));U.apply(null,_.gi(W))};
G.styleSheetRuleCb=function(){var W=_.xS.apply(0,arguments);B.styleSheetRule&&B.styleSheetRule.apply(B,_.gi(W));q.apply(null,_.gi(W))};
G.styleDeclarationCb=function(){var W=_.xS.apply(0,arguments);B.styleDeclaration&&B.styleDeclaration.apply(B,_.gi(W));h.apply(null,_.gi(W))};
G.canvasMutationCb=function(){var W=_.xS.apply(0,arguments);B.canvasMutation&&B.canvasMutation.apply(B,_.gi(W));K.apply(null,_.gi(W))};
G.fontCb=function(){var W=_.xS.apply(0,arguments);B.font&&B.font.apply(B,_.gi(W));a.apply(null,_.gi(W))};
G.selectionCb=function(){var W=_.xS.apply(0,arguments);B.selection&&B.selection.apply(B,_.gi(W));m.apply(null,_.gi(W))};
G.customElementCb=function(){var W=_.xS.apply(0,arguments);B.customElement&&B.customElement.apply(B,_.gi(W));L.apply(null,_.gi(W))}};
zyc=function(G,B){B=B===void 0?{}:B;var F=G.doc.defaultView;if(!F)return function(){};
$Ql(G,B);var D;G.recordDOM&&(D=ysl(G,G.doc));var u=lzs(G),R=UQL(G),N=q9c(G),y=Eeg(G,{win:F}),U=azI(G),q=Hdl(G),h=function(){},K=function(){},a=function(){},m=function(){};
G.recordDOM&&(h=j6l(G,{win:F}),K=rsS(G,G.doc),a=WEL(G,{win:F}),G.collectFonts&&(m=kul(G)));var L=Odc(G),W=eyo(G),e=[];G=_.C(G.plugins);for(B=G.next();!B.done;B=G.next())B=B.value,e.push(B.observer(B.callback,F,B.options));return cz(function(){JU.forEach(function(M){return M.reset()});
var b;(b=D)==null||b.disconnect();u();R();N();y();U();q();h();K();a();m();L();W();e.forEach(function(M){return M()})})};
mQg=function(G){return typeof window[G]!=="undefined"};
Q6g=function(G){return!!(typeof window[G]!=="undefined"&&window[G].prototype&&"insertRule"in window[G].prototype&&"deleteRule"in window[G].prototype)};
bdo=function(G){G=new Uint8Array(G);for(var B="",F=0;F<G.byteLength;F++)B+=String.fromCharCode(G[F]);return btoa(B)};
VHl=function(G,B,F){if(G instanceof Array)return G.map(function(u){return VHl(u,B,F)});
if(G!==null){if(G instanceof Float32Array||G instanceof Float64Array||G instanceof Int32Array||G instanceof Uint32Array||G instanceof Uint8Array||G instanceof Uint16Array||G instanceof Int16Array||G instanceof Int8Array||G instanceof Uint8ClampedArray)return{rr_type:G.constructor.name,args:[Object.values(G)]};if(G instanceof ArrayBuffer){var D=G.constructor.name;G=bdo(G);return{rr_type:D,base64:G}}if(G instanceof DataView)return{rr_type:G.constructor.name,args:[VHl(G.buffer,B,F),G.byteOffset,G.byteLength]};
if(G instanceof HTMLImageElement)return{rr_type:G.constructor.name,src:G.src};if(G instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:G.toDataURL()};if(G instanceof ImageData)return{rr_type:G.constructor.name,args:[VHl(G.data,B,F),G.width,G.height]};if(veL(G,B)||typeof G==="object")return D=G.constructor.name,G=oeQ(G,B,F),{rr_type:D,index:G}}return G};
pLo=function(G,B,F,D){for(var u=[],R=_.C(Object.getOwnPropertyNames(B.CanvasRenderingContext2D.prototype)),N=R.next(),y={};!N.done;y={prop$jscomp$58:void 0},N=R.next()){y.prop$jscomp$58=N.value;try{if(typeof B.CanvasRenderingContext2D.prototype[y.prop$jscomp$58]==="function"){var U=Lr(B.CanvasRenderingContext2D.prototype,y.prop$jscomp$58,function(q){return function(h){return function(){var K=_.xS.apply(0,arguments),a=this;AU(this.canvas,F,D,!0)||setTimeout(function(){var m=MH6(K,B,a);G(a.canvas,{type:tU["2D"],
property:q.prop$jscomp$58,args:m})},0);
return h.apply(this,K)}}}(y));
u.push(U)}}catch(q){N=f9g(B.CanvasRenderingContext2D.prototype,y.prop$jscomp$58,{set:function(h){return function(K){G(this.canvas,{type:tU["2D"],property:h.prop$jscomp$58,args:[K],setter:!0})}}(y)}),u.push(N)}}return function(){u.forEach(function(q){return q()})}};
Y9g=function(G,B,F,D){var u=[];try{var R=Lr(G.HTMLCanvasElement.prototype,"getContext",function(N){return function(y){var U=_.xS.apply(1,arguments);if(!AU(this,B,F,!0)){var q=y==="experimental-webgl"?"webgl":y;"__context"in this||(this.__context=q);D&&["webgl","webgl2"].includes(q)&&(U[0]&&typeof U[0]==="object"?(q=U[0],q.preserveDrawingBuffer||(q.preserveDrawingBuffer=!0)):U.splice(0,1,{preserveDrawingBuffer:!0}))}return N.apply(this,[y].concat(_.gi(U)))}});
u.push(R)}catch(N){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){u.forEach(function(N){return N()})}};
As8=function(G,B,F,D,u,R){for(var N=[],y=_.C(Object.getOwnPropertyNames(G)),U=y.next(),q={};!U.done;q={prop$jscomp$59:void 0},U=y.next())if(q.prop$jscomp$59=U.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(q.prop$jscomp$59))try{if(typeof G[q.prop$jscomp$59]==="function"){var h=Lr(G,q.prop$jscomp$59,function(K){return function(a){return function(){var m=_.xS.apply(0,arguments),L=a.apply(this,m);oeQ(L,R,this);"tagName"in this.canvas&&!AU(this.canvas,D,u,!0)&&(m=
MH6(m,R,this),F(this.canvas,{type:B,property:K.prop$jscomp$59,args:m}));return L}}}(q));
N.push(h)}}catch(K){U=f9g(G,q.prop$jscomp$59,{set:function(a){return function(m){F(this.canvas,{type:B,property:a.prop$jscomp$59,args:[m],setter:!0})}}(q)}),N.push(U)}return N};
dQ6=function(G,B,F,D){var u=[];u.push.apply(u,_.gi(As8(B.WebGLRenderingContext.prototype,1,G,F,D,B)));typeof B.WebGL2RenderingContext!=="undefined"&&u.push.apply(u,_.gi(As8(B.WebGL2RenderingContext.prototype,2,G,F,D,B)));return function(){u.forEach(function(R){return R()})}};
ioJ=function(G){var B=G=G===void 0?{}:G,F=B.emit,D=B.checkoutEveryNms,u=B.checkoutEveryNth,R=B.blockClass===void 0?"rr-block":B.blockClass,N=B.blockSelector===void 0?null:B.blockSelector,y=B.ignoreClass===void 0?"rr-ignore":B.ignoreClass,U=B.ignoreSelector===void 0?null:B.ignoreSelector,q=B.maskTextClass===void 0?"rr-mask":B.maskTextClass,h=B.maskTextSelector===void 0?null:B.maskTextSelector,K=B.inlineStylesheet===void 0?!0:B.inlineStylesheet,a=B.maskAllInputs,m=B.maskInputOptions,L=B.slimDOMOptions,
W=B.maskInputFn,e=B.maskTextFn,b=B.hooks,M=B.packFn,t=B.sampling===void 0?{}:B.sampling,T=B.dataURLOptions===void 0?{}:B.dataURLOptions,A=B.mousemoveWait,Z=B.recordDOM===void 0?!0:B.recordDOM,P=B.recordCanvas===void 0?!1:B.recordCanvas,RI=B.recordCrossOriginIframes===void 0?!1:B.recordCrossOriginIframes,yo=B.recordAfter===void 0?G.recordAfter==="DOMContentLoaded"?G.recordAfter:"load":B.recordAfter,hg=B.userTriggeredOnInput===void 0?!1:B.userTriggeredOnInput,US=B.collectFonts===void 0?!1:B.collectFonts,
aI=B.inlineImages===void 0?!1:B.inlineImages,v6=B.plugins,Jg=B.keepIframeSrcFn===void 0?function(){return!1}:B.keepIframeSrcFn,c6=B.ignoreCSSAttributes===void 0?new Set([]):B.ignoreCSSAttributes;
ZH=B.errorHandler;var q8=RI?window.parent===window:!0,n7=!1;if(!q8)try{window.parent.document&&(n7=!1)}catch(TL){n7=!0}if(q8&&!F)throw Error("af");if(!q8&&!n7)return function(){};
A!==void 0&&t.mousemove===void 0&&(t.mousemove=A);g0.reset();var Ts=a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:m!==void 0?m:{password:!0},hT=L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:L==="all",headMetaDescKeywords:L==="all",headTitleMutations:L==="all"}:
L?L:{};PJJ();var L7,K7=0,kD=function(TL){for(var Iz=_.C(v6||[]),N8=Iz.next();!N8.done;N8=Iz.next())N8=N8.value,N8.eventProcessor&&(TL=N8.eventProcessor(TL));M&&!n7&&(TL=M(TL));return TL};
S_=function(TL,Iz){TL.timestamp=neg();var N8;((N8=JU[0])==null?0:N8.isFrozen())&&TL.type!==2&&(TL.type!==3||TL.data.source!==0)&&JU.forEach(function(EA){return EA.unfreeze()});
q8?F==null||F(kD(TL),Iz):n7&&(Iz={type:"rrweb",event:kD(TL),origin:window.location.origin,isCheckout:Iz},window.parent.postMessage(Iz,"*"));TL.type===2?(L7=TL,K7=0):TL.type!==3||TL.data.source===0&&TL.data.isAttachIframe||(K7++,TL=D&&TL.timestamp-L7.timestamp>D,(u&&K7>=u||TL)&&Jso(!0))};
var Rz=function(TL){S_({type:3,data:Object.assign({},{source:0},TL)})},KQ=function(TL){return S_({type:3,
data:Object.assign({},{source:3},TL)})},pQ=function(TL){return S_({type:3,
data:Object.assign({},{source:9},TL)})},aq=new csU({mutationCb:Rz,
adoptedStyleSheetCb:function(TL){return S_({type:3,data:Object.assign({},{source:15},TL)})}}),Zq=new TLS({mirror:g0,
mutationCb:Rz,stylesheetManager:aq,recordCrossOriginIframes:RI,wrappedEmit:S_});G=_.C(v6||[]);for(B=G.next();!B.done;B=G.next())B=B.value,B.getMirror&&B.getMirror({nodeMirror:g0,crossOriginIframeMirror:Zq.crossOriginIframeMirror,crossOriginIframeStyleMirror:Zq.crossOriginIframeStyleMirror});var eN=new Izs;fzI=new tHz({recordCanvas:P,mutationCb:pQ,win:window,blockClass:R,blockSelector:N,mirror:g0,sampling:t.canvas,dataURLOptions:T});var Ps=new ZdU({mutationCb:Rz,scrollCb:KQ,bypassOptions:{blockClass:R,
blockSelector:N,maskTextClass:q,maskTextSelector:h,inlineStylesheet:K,maskInputOptions:Ts,dataURLOptions:T,maskTextFn:e,maskInputFn:W,recordCanvas:P,inlineImages:aI,sampling:t,slimDOMOptions:hT,iframeManager:Zq,stylesheetManager:aq,canvasManager:fzI,keepIframeSrcFn:Jg,processedNodeManager:eN},mirror:g0});Jso=function(TL){TL=TL===void 0?!1:TL;if(Z){S_({type:4,data:{href:window.location.href,width:gES(),height:ZBo()}},TL);aq.reset();Ps.init();JU.forEach(function(N8){return N8.lock()});
var Iz=I9M({mirror:g0,blockClass:R,blockSelector:N,maskTextClass:q,maskTextSelector:h,inlineStylesheet:K,maskAllInputs:Ts,maskTextFn:e,maskInputFn:W,slimDOM:hT,dataURLOptions:T,recordCanvas:P,inlineImages:aI,onSerialize:function(N8){N8.nodeName==="IFRAME"&&g0.nodeMetaMap.get(N8)&&gez(Zq,N8);Gu6(N8,g0)&&S9s(aq,N8);N8&&Wz(N8)&&s6M(Ps,Wz(N8),document)},
onIframeLoad:function(N8,EA){xQS(Zq,N8,EA);N8.contentWindow&&N8.contentDocument&&Pwl(Ps,N8.contentWindow.Element,N8.contentDocument)},
onStylesheetLoad:function(N8,EA){GkL(aq,N8,EA)},
keepIframeSrcFn:Jg});Iz?(S_({type:2,data:{node:Iz,initialOffset:tO6(window)}},TL),JU.forEach(function(N8){return N8.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&LEU(aq,document.adoptedStyleSheets,g0.getId(document))):console.warn("Failed to snapshot the document")}};
try{var el=[],sG=function(TL){var Iz;return cz(zyc)({mutationCb:Rz,mousemoveCb:function(N8,EA){return S_({type:3,data:{source:EA,positions:N8}})},
mouseInteractionCb:function(N8){return S_({type:3,data:Object.assign({},{source:2},N8)})},
scrollCb:KQ,viewportResizeCb:function(N8){return S_({type:3,data:Object.assign({},{source:4},N8)})},
inputCb:function(N8){return S_({type:3,data:Object.assign({},{source:5},N8)})},
mediaInteractionCb:function(N8){return S_({type:3,data:Object.assign({},{source:7},N8)})},
styleSheetRuleCb:function(N8){return S_({type:3,data:Object.assign({},{source:8},N8)})},
styleDeclarationCb:function(N8){return S_({type:3,data:Object.assign({},{source:13},N8)})},
canvasMutationCb:pQ,fontCb:function(N8){return S_({type:3,data:Object.assign({},{source:10},N8)})},
selectionCb:function(N8){S_({type:3,data:Object.assign({},{source:14},N8)})},
customElementCb:function(N8){S_({type:3,data:Object.assign({},{source:16},N8)})},
blockClass:R,ignoreClass:y,ignoreSelector:U,maskTextClass:q,maskTextSelector:h,maskInputOptions:Ts,inlineStylesheet:K,sampling:t,recordDOM:Z,recordCanvas:P,inlineImages:aI,userTriggeredOnInput:hg,collectFonts:US,doc:TL,maskInputFn:W,maskTextFn:e,keepIframeSrcFn:Jg,blockSelector:N,slimDOMOptions:hT,dataURLOptions:T,mirror:g0,iframeManager:Zq,stylesheetManager:aq,shadowDomManager:Ps,processedNodeManager:eN,canvasManager:fzI,ignoreCSSAttributes:c6,plugins:(v6==null?void 0:(Iz=v6.filter(function(N8){return N8.observer}))==
null?void 0:Iz.map(function(N8){return{observer:N8.observer,
options:N8.options,callback:function(EA){return S_({type:6,data:{plugin:N8.name,payload:EA}})}}}))||[]},b)};
Buo(Zq,function(TL){try{el.push(sG(TL.contentDocument))}catch(Iz){console.warn(Iz)}});
var qH=function(){Jso();el.push(sG(document))};
document.readyState==="interactive"||document.readyState==="complete"?qH():(el.push(pr("DOMContentLoaded",function(){S_({type:0,data:{}});yo==="DOMContentLoaded"&&qH()})),el.push(pr("load",function(){S_({type:1,
data:{}});yo==="load"&&qH()},window)));
return function(){el.forEach(function(TL){try{TL()}catch(Iz){String(Iz).toLowerCase().includes("cross-origin")||console.warn(Iz)}});
eN.destroy();ZH=void 0}}catch(TL){console.warn(TL)}};
_.H=function(G,B){B=DK(i5(B));G.innerHTML=B};
uM6=function(G){var B=F$l;B||(B=Dps(),B=F$l=_.UK.transpose(B));B=B[G];return typeof B==="string"?B:_.s1(G)};
Rds=function(G){G=String(G).toLowerCase();var B=Dps()[G];return typeof B==="string"?B:_.xQ(G)};
wV6=function(G){G=G.toLowerCase();G=Dps()[G];return typeof G==="string"?G:null};
Dps=function(){if(!CPS){for(var G=Object.assign({},NuI),B=_.C(yDQ),F=B.next();!F.done;F=B.next())F=F.value,G[F.toLowerCase()]=F;CPS=G}return CPS};
Up6=function(G,B){var F=window.customElements;return F&&F.get(G)||nCS[G]===!0?2:B.name==="HTMLUnknownElement"?1:B.name==="HTMLElement"&&lTo.test(G)?3:0};
hdc=function(G,B){switch(B){case "innerHTML":return qV6(G)===1?2:null;case "textContent":return G=qV6(G),G===1||G===6?1:null;default:var F,D;return(D=(F=ECl[G.localName])==null?void 0:F[B])!=null?D:null}};
qV6=function(G){var B=G.localName,F=Up6(B,G.constructor);switch(F){case 0:case 1:return K$o(B,G);case 3:case 2:return 1;default:_.BS(F,"got an unknown element classification")}};
K$o=function(G,B){var F=Object.hasOwnProperty.call(aTM,G)?aTM[G]:null;return F!==null?F:Object.hasOwnProperty.call(mpo,G)&&B instanceof SVGElement?mpo[G]:null};
XVc=function(G,B){return B};
j3U=function(G){return(G=G.split(Q3c,2))?{url:G[0],metadata:G[1]}:null};
rD6=function(G){var B=String(G.url).replace(L$M,encodeURIComponent);if(G=G.metadata){L$M.lastIndex=0;if(L$M.test(G))return null;B+=" "+G}return B};
OoI=function(G){function B(q){var h=q.localName;if(!q.getAttribute("is")&&Up6(h,q.constructor)===2){var K;return(K=U)!=null?K:U=document.createElement("polyresinuncustomized")}(q=y[h])||(q=y[h]=document.createElement(h));return q}
var F=G.reportHandler||void 0,D=G.safeTypesBridge||W$o,u=/^$/;if(G=G.allowedIdentifierPrefixes){G=_.C(G);for(var R=G.next();!R.done;R=G.next())u=new RegExp(u.source+"|^"+_.Hog(R.value))}F&&F(!1,"initResin",null);var N=kkS(u,D,F),y={},U=null;return function(q,h,K){var a=q.nodeType;if(a!==Node.ELEMENT_NODE){if(a===Node.TEXT_NODE){h=q.parentElement;K=!h;if(h&&h.nodeType===Node.ELEMENT_NODE){a=h.localName;var m=Up6(a,h.constructor);switch(m){case 0:case 1:h=K$o(a,h);K=h===1||h===6;break;case 3:case 2:K=
!0;break;default:_.BS(m,"got an unknown element classification")}}if(K)return function(b){return""+D(b,"STRING",b)}}return function(b){if(!b&&b!==document.all)return b;
F&&F(!0,"Failed to sanitize "+(q.parentElement&&q.parentElement.nodeName)+" #text node to value "+b,q.parentElement);return Pz}}var L=q.localName;
a=B(q);var W=null;switch(K){case "attribute":if(Rds(h)in a)break;return function(b){return b};
case "property":if(h in a){W=hdc(a,h);break}if((m=wV6(h))&&m in a)break;return function(b){return b};
default:_.BS(K,"got an unknown resin type, expected either 'property' or 'attribute'")}var e=K==="attribute"?h.toLowerCase():uM6(h);W||(W=sp8(L,e,function(b){var M=q.getAttribute(b);return!M||/[\[\{]/.test(b)?null:M}));
return function(b){var M=G1,t=null;if(!b&&b!==document.all)return b;if(W!=null){var T=N[W],A=T.safeType;t=T.safeReplacement;A&&(M=D(b,A,G1));M===G1&&(T.filterString?(M=String(D(b,"STRING",b)),M=T.filterString(L,e,M)):T.filterRaw&&(M=T.filterRaw(L,e,b,q)),M===t&&(M=G1))}M===G1&&(M=t||Pz,F&&F(!0,"Failed to sanitize attribute of <"+L+">: <"+L+" "+e+'="'+b+'">',q));return M}}};
kkS=function(G,B,F){return[,{filterRaw:function(D,u,R){return R},
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:edg,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:edg,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Pz,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:$pl,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(D,u,R){R=
String(R).toLowerCase();return GNz(D,u,R)?R:Pz},
safeReplacement:Pz,safeType:void 0},,{filterRaw:void 0,filterString:function(D,u,R){return G.test(R)?R:Pz},
safeReplacement:Pz,safeType:"CONSTANT"},{filterRaw:function(D,u,R,N){if(typeof R==="string")var y=(y=R.match(zd8))?y.map(j3U).filter(Boolean):[];else if(Array.isArray(R))y=R;else return edg;var U=y;y=[];var q=[],h={};if(Array.isArray(U))for(var K=0,a=U.length;K<a;++K){var m=U[K],L=m&&m.url;if(L){var W=B(L,"URL",h);if(W){var e=W!==h;(e?y:q).push({url:e?W:L,metadata:m.metadata})}}}else q.push(U);U=q.length?JSON.stringify(q):null;q=G1;if(y.length){if(!Array.isArray(y))throw Error();q=y.map(rD6).filter(Boolean).join(" , ")||
G1}U&&F&&F(!0,"Failed to sanitize attribute value of <"+D+">: <"+D+" "+u+'="'+R+'">: '+U,N);return q===G1?edg:q},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
boz=function(G){var B=OoI(G);return function(F,D,u,R){return R||R===document.all?B(F,D,u)(R):R}};
BZ=function(G,B){function F(){function u(y,U,q){for(U=Reflect.getMetadata("parameters",y)||[];U.length<=q;)U.push(null);U[q]=U[q]||[];U[q].push(N);Reflect.defineMetadata(U,y);return y}
var R=_.xS.apply(0,arguments);if(this instanceof F)return D.apply(this,R),this;var N=new (Function.prototype.bind.apply(F,[null].concat(_.gi(R))));u.annotation=N;return u}
var D=V7g(B);F.prototype.toString=function(){return"@"+G};
return F.annotationCls=F};
V7g=function(G){return function(){var B=_.xS.apply(0,arguments),F=this;G.forEach(function(D,u){u=B[u];if(Array.isArray(D))F[D[0]]=u&&u!==void 0?u:D[1];else for(var R in D)F[R]=u&&u[R]!==void 0?u[R]:D[R]})}};
vCg=function(G){return G!==void 0&&G!==null};
i2=function(G){if(typeof G==="string")return G;if(G===void 0||G===null)return""+G;if(G.overriddenName)return G.overriddenName;if(G.name)return G.name;G=G.toString();var B=G.indexOf("\n");return B===-1?G:G.substring(0,B)};
oCM=function(G){G.__forward_ref__=oCM;G.toString=function(){return i2(this())};
return G};
FK=function(G){return typeof G==="function"&&G.hasOwnProperty("__forward_ref__")&&G.__forward_ref__===oCM?G():G};
M7Q=function(G){return G?G.map(function(B){return new (Function.prototype.bind.apply(B.type.annotationCls,[null].concat(_.gi(B.args?B.args:[]))))}):[]};
pVJ=function(G){for(var B=[],F=0;F<G.length;++F){if(B.indexOf(G[F])>-1){B.push(G[F]);break}B.push(G[F])}return B};
YVg=function(G){return G.length>1?" ("+pVJ(G.slice().reverse()).map(function(B){return i2(B.token)}).join(" -> ")+")":""};
dpo=function(G,B,F,D){if(D){var u=Error("df``"+(D instanceof Error?D.message:D));u.ngOriginalError=D}else u=Error();u.addKey=ADI;u.keys=[B];u.injectors=[G];u.constructResolvingMessage=F;u.message=u.constructResolvingMessage();u.ngOriginalError=D;return u};
ADI=function(G,B){this.injectors.push(G);this.keys.push(B);this.message=this.constructResolvingMessage()};
JD8=function(G,B){return dpo(G,B,function(){return"No provider for "+i2(this.keys[0].token)+"!"+YVg(this.keys)})};
cDS=function(G,B){return dpo(G,B,function(){return"Cannot instantiate cyclic dependency!"+YVg(this.keys)})};
Tuc=function(G,B,F){return dpo(G,F,function(){var D=i2(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+D+"!"+YVg(this.keys)+"."},B)};
ITQ=function(G,B){for(var F=[],D=0,u=B.length;D<u;D++){var R=B[D];R&&R.length!=0?F.push(R.map(i2).join(" ")):F.push("?")}return Error("hf`"+i2(G)+"`"+F.join(", ")+"`"+i2(G))};
xpS=function(G){var B=void 0,F=void 0;if(G&&G.useClass!==void 0){B=G.useClass;var D=FK(G.useClass);var u=fTQ.factory(D);D=t7g(D)}else G&&G.useExisting!==void 0?(u=function(R){return R},D=[Zoz(DL.get(FK(G.useExisting)))]):G&&G.useFactory!==void 0?(u=G.useFactory,D=gCg(G.useFactory,G.deps)):(F=G.useValue,u=function(){return G.useValue},D=SVc);
return new s3Q(u,D,B,F)};
GGl=function(G){return new PPc(DL.get(FK(G.provide)),[xpS(G)],G.multi)};
igQ=function(G){G=BYL(G,[]).map(GGl);for(var B=new Map,F=0;F<G.length;F++){var D=G[F],u=B.get(D.key.id);if(u){if(D.multiProvider!==u.multiProvider)throw Error("kf`"+u+"`"+D);if(D.multiProvider)for(var R=0;R<D.resolvedFactories.length;R++)u.resolvedFactories.push(D.resolvedFactories[R]);else B.set(D.key.id,D)}else u=void 0,D.multiProvider?u=new PPc(D.key,D.resolvedFactories.slice(),D.multiProvider):u=D,B.set(D.key.id,u)}return Array.from(B.values())};
BYL=function(G,B){G.forEach(function(F){if(F instanceof Fio)B.push({provide:F,useClass:F});else if(F&&typeof F=="object"&&F.provide!==void 0)B.push(F);else if(F instanceof Array)BYL(F,B);else throw Error("gf`"+F);});
return B};
gCg=function(G,B){if(B){var F=B.map(function(D){return[D]});
return B.map(function(D){return D9S(G,D,F)})}return t7g(G)};
t7g=function(G){var B=fTQ.parameters(G);if(!B)return[];if(B.some(function(F){return F==null}))throw ITQ(G,B);
return B.map(function(F){return D9S(G,F,B)})};
D9S=function(G,B,F){var D=null,u=!1;if(!Array.isArray(B))return B instanceof uPU?RTz(B.token,u,null):RTz(B,u,null);for(var R=null,N=0;N<B.length;++N){var y=B[N];if(y instanceof Fio)D=y;else if(y instanceof uPU)D=y.token;else if(y instanceof wHI)u=!0;else if(y instanceof CEJ||y instanceof NYM)R=y}D=FK(D);if(D!=null)return RTz(D,u,R);throw ITQ(G,F);};
RTz=function(G,B,F){return new yQc(DL.get(FK(G)),B,F)};
nAl=function(G,B){for(var F=Array(G.providers.length),D=0;D<G.providers.length;++D){var u=D;if(D<0||D>=G.providers.length)throw Error("jf`"+D);F[u]=B(G.providers[D])}return F};
lWQ=function(G){return typeof G==="function"&&fTQ.parameters(G).every(function(B){return!!B})};
EAI=function(G){var B=U9g;qgS.get(G)||qgS.set(G,new B);return qgS.get(G)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,B){var F,D;if(G.contains(B))return!0;G=_.u2(G).querySelectorAll("content,slot");for(F=0;F<G.length;++F){var u=_.u2(G[F]).getDistributedNodes();for(D=0;D<u.length;++D)if(u[D].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(u[D],B))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){G.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G)&&G.preventDefault();G.targetTouches&&(G=G.targetTouches[0],hTg=G.pageX,Kio=G.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 G=0,B=Ra.length;G<B;G++)document.addEventListener(Ra[G],_._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 G=0,B=Ra.length;G<B;G++)document.removeEventListener(Ra[G],_._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(G){var B=_.u2(G).rootTarget;G.type!=="touchmove"&&aWU!==B&&(aWU=B,m9l=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.u2(G).path));if(!m9l.length)return!0;if(G.type==="touchstart")return!1;G=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(m9l,G.deltaX,G.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){for(var B=[],F=G.indexOf(XHS),D=0;D<=F;D++)if(G[D].nodeType===Node.ELEMENT_NODE){var u=G[D],R=u.style;R.overflow!=="scroll"&&R.overflow!=="auto"&&(R=window.getComputedStyle(u));R.overflow!=="scroll"&&R.overflow!=="auto"||B.push(u)}return B};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,B,F){if(B||F)for(var D=Math.abs(F)>=Math.abs(B),u=0;u<G.length;u++){var R=G[u];if(D?F<0?R.scrollTop>0:R.scrollTop<R.scrollHeight-R.clientHeight:B<0?R.scrollLeft>0:R.scrollLeft<R.scrollWidth-R.clientWidth)return R}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){var B={deltaX:G.deltaX,deltaY:G.deltaY};"deltaX"in G||("wheelDeltaX"in G&&"wheelDeltaY"in G?(B.deltaX=-G.wheelDeltaX,B.deltaY=-G.wheelDeltaY):"wheelDelta"in G?(B.deltaX=0,B.deltaY=-G.wheelDelta):"axis"in G?(B.deltaX=G.axis===1?G.detail:0,B.deltaY=G.axis===2?G.detail:0):G.targetTouches&&(G=G.targetTouches[0],B.deltaX=hTg-G.pageX,B.deltaY=Kio-G.pageY));return B};
Qcs=function(G){this.element=G;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Li8=function(G){this.element=G;this.color=window.getComputedStyle(G).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");_.u2(this.waveContainer).appendChild(this.wave);jcg(this)};
ws=function(G,B){for(var F in G)if(F.toLowerCase()===B.toLowerCase())return G[F]};
rQ8=function(G,B){for(var F in G)if(F.toLowerCase()===B.toLowerCase()){delete G[F];break}};
Hg6=function(G){G=_.UK.clone(G);for(var B=0;B<Wi6.length;++B){var F=Wi6[B],D=ws(G,F);D&&(G["X-Goog-Upload-Header-"+F]=D,rQ8(G,F))}return G};
kGz=function(G){G=_.UK.clone(G);rQ8(G,"X-Goog-Upload-Status")};
eTz=function(G){return OgM.some(function(B){return B.test(G)})};
VAg=function(G,B){var F;var D=(F=G.formContent)==null?void 0:F.locale;F=D==null?void 0:D.split("-")[0];D=D&&$9o.includes(D)?D:F&&$9o.includes(F)?F:void 0;D=(D!=null?D:"en").replaceAll("-","_").toLowerCase();var u;G=((u=G.initializationData)==null?0:u.useNightlyRelease)?"nightly":"live";var R;return(B==null?0:(R=B.getEnableAlohaBinarySplit)==null?0:R.call(B))?_.W7(zTo,G):_.W7(bgL,G,D)};
MAJ=function(G,B,F,D){if(vAo&&oAQ===B)return vAo;oAQ=B;var u=VAg(G,D);return vAo=B.feedbackV2GlobalObject?Promise.resolve(B.feedbackV2GlobalObject):new Promise(function(R,N){var y=_.G_("SCRIPT");_.Ux(y,u);y.onload=function(){B.feedbackV2GlobalObject?R(B.feedbackV2GlobalObject):N(Error("nf"))};
y.onerror=function(){N(Error("of`"+u.toString()))};
F.body.appendChild(y)})};
AQg=function(G,B,F,D){if(pHU&&Ygo===B)return pHU;Ygo=B;var u=VAg(G,D);return pHU=B.feedbackV2GlobalObject?Promise.resolve(B.feedbackV2GlobalObject):new Promise(function(R,N){var y=_.G_("SCRIPT");_.Ux(y,u);y.onload=function(){B.feedbackV2GlobalObject?R(B.feedbackV2GlobalObject):N(Error("nf"))};
y.onerror=function(){N(Error("of`"+u.toString()))};
F.body.appendChild(y)})};
d9Q=function(G,B,F,D,u){u=u===void 0?!0:u;var R,N,y,U,q;return _.n(function(h){switch(h.nextAddress){case 1:return R=Date.now(),h.yield(MAJ(G,F,D,B),2);case 2:N=h.yieldResult;if(!(u||((U=G.initializationData)==null?0:U.useNightlyRelease)||((q=G.initializationData)==null?0:q.isLocalServer))){y=N.initializeFeedbackClient(G,R,B);h.jumpTo(3);break}return h.yield(N.initializeFeedbackClientAsync(G,R,B),4);case 4:y=h.yieldResult;case 3:return y.initiateAloha(),h.return(y)}})};
JQc=function(G,B,F,D){var u,R,N;return _.n(function(y){if(y.nextAddress==1)return u=Date.now(),y.yield(AQg(G,F,D.document,B),2);if(y.nextAddress!=3)return R=y.yieldResult,y.yield(R.initializeFeedbackClientAsync(G,u,B,D),3);N=y.yieldResult;N.initiateAloha();return y.return(N)})};
cQz=function(G,B,F){var D=!0;D=D===void 0?!0:D;var u,R,N,y,U,q,h,K;return _.n(function(a){u=F||_.Fz;if((R=B)==null?0:(y=(N=R).getEnableAlohaBinarySplit)==null?0:y.call(N)){U=u;if(U.isFormOpened)throw new Ci;U.isFormOpened=!0;G.callbacks=G.callbacks||{};q=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(m){U.isFormOpened=!1;q(m)};
try{return a.return(JQc(G,B,U,u))}catch(m){throw U.isFormOpened=!1,m;}}else{h=u;if(h.isFormOpened)throw new Ci;h.isFormOpened=!0;G.callbacks=G.callbacks||{};K=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(m){h.isFormOpened=!1;K(m)};
try{return a.return(d9Q(G,B,h,u.document,D))}catch(m){throw h.isFormOpened=!1,m;}}_.di(a)})};
ZgJ=function(G,B){return _.n(function(F){return F.return(new Promise(function(D,u){Number.isInteger(Number(G))&&Number(G)>0?(u=TYg(B!=null?B:"")+"/aloha_form_properties?productId="+G,IWc(u,function(R){R=R.target;var N=null;try{var y=JSON,U=y.stringify;if(R.JSC$10106_xhr_){var q=R.JSC$10106_xhr_.responseText;q.indexOf(")]}'\n")==0&&(q=q.substring(5));var h=_.NW(q)}else h=void 0;N=ndJ(fWJ,U.call(y,h))}catch(K){U=new fWJ,h=tAI(),h=_.y9(h,13,!1),h=_.y9(h,14,!0),h=_.y9(h,15,!0),h=_.y9(h,20,!1),N=_.ba(U,
1,h)}D(N)},"GET","",{},2E3,!0)):u(Error("pf`"+G))}))})};
TYg=function(G){return eTz(G)?G:"https://www.google.com/tools/feedback"};
x9o=function(G){G=G.match(new RegExp(gAL,"gi"))||[];G=_.C(G);for(var B=G.next();!B.done;B=G.next()){B=B.value;a:{var F=_.C(SgM);for(var D=F.next();!D.done;D=F.next())if(D.value.test(B)){F=!1;break a}F=!0}if(!F)a:{F=_.C(sco);for(D=F.next();!D.done;D=F.next())if(D.value.test(B)){F=!0;break a}F=!1}if(F)return!0}return!1};
PEQ=function(G,B){var F={},D=Object.keys(G);D=_.C(D);for(var u=D.next();!u.done;u=D.next())u=u.value,F[u]=B(u,G[u]);return F};
GVL=function(G){switch(G){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"}};
iVM=function(G){if(window.crypto&&window.crypto.getRandomValues)try{var B=Array(G),F=new Uint8Array(G);window.crypto.getRandomValues(F);for(var D=0;D<B.length;D++)B[D]=F[D];return B}catch(R){}B=Array(G);for(F=0;F<G;F++){D=Date.now();for(var u=0;u<D%23;u++)B[F]=Math.random();B[F]=Math.floor(Math.random()*256)}if(Brz)for(F=1,D=0;D<Brz.length;D++)B[F%G]^=B[(F-1)%G]/4^Brz.charCodeAt(D),F++;return B};
ni=function(G){G=iVM(G);for(var B=[],F=0;F<G.length;F++)B.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[F]&63));return B.join("")};
F98=function(){var G=_.Fz.ytLoggingDocDocumentNonce_;G||(G=ni(16),_.IY("ytLoggingDocDocumentNonce_",G));return G};
uqQ=function(G){G&&_.W$("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:D_S,clientScreenNonce:G})};
Rxo=function(G){return _.v5("client-screen-nonce-store",{})[G===void 0?0:G]};
wRJ=function(G,B){B=B===void 0?0:B;var F=_.v5("client-screen-nonce-store");F||(F={},_.Vc("client-screen-nonce-store",F));F[B]=G};
C68=function(G){G=G===void 0?0:G;return G===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+G};
Nrz=function(G){return _.v5(C68(G===void 0?0:G))};
_.Uw=function(G){return(G=Nrz(G===void 0?0:G))?new _.l2({veType:G,youtubeData:void 0,jspbYoutubeData:void 0}):null};
y9Q=function(){var G=_.v5("csn-to-ctt-auth-info");G||(G={},_.Vc("csn-to-ctt-auth-info",G));return G};
nZz=function(){return Object.values(_.v5("client-screen-nonce-store",{})).filter(function(G){return G!==void 0})};
_.qW=function(G){G=Rxo(G===void 0?0:G);if(!G&&!_.on("USE_CSN_FALLBACK",!0))return null;G||(G="UNDEFINED_CSN");return G?G:null};
U_l=function(G){for(var B=_.C(Object.values(lxo)),F=B.next();!F.done;F=B.next())if(_.qW(F.value)===G)return!0;return!1};
qs8=function(G,B,F){var D=y9Q();(F=_.qW(F))&&delete D[F];B&&(D[G]=B)};
Ew=function(G){return y9Q()[G]};
_.hL=function(G,B,F,D){F=F===void 0?0:F;if(G!==Rxo(F)||B!==_.v5(C68(F)))if(qs8(G,D,F),wRJ(G,F),_.Vc(C68(F),B),B=function(){setTimeout(function(){uqQ(G)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(B)}catch(u){B()}else B()};
EZo=function(G,B){B=B===void 0?"":B;var F=[],D;for(D in G)if(G.hasOwnProperty(D)){var u=B!==""?B+"."+D:D;typeof G[D]==="object"?F.push.apply(F,_.gi(EZo(G[D],u))):F.push([u,G[D]])}F.sort();return F};
_.aa=function(G){var B=_.xS.apply(1,arguments);if(!Ki(G)||B.some(function(D){return!Ki(D)}))throw Error("qf");
B=_.C(B);for(var F=B.next();!F.done;F=B.next())hxS(G,F.value)};
hxS=function(G,B){for(var F in B)if(Ki(B[F])){if(F in G&&!Ki(G[F]))throw Error("rf");F in G||(G[F]={});hxS(G[F],B[F])}else if(K9U(B[F])){if(F in G&&!K9U(G[F]))throw Error("sf");F in G||(G[F]=[]);axo(G[F],B[F])}else G[F]=B[F];return G};
axo=function(G,B){B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,Ki(F)?G.push(hxS({},F)):K9U(F)?G.push(axo([],F)):G.push(F);return G};
Ki=function(G){return typeof G==="object"&&!Array.isArray(G)};
K9U=function(G){return typeof G==="object"&&Array.isArray(G)};
XRg=function(G){for(var B=_.C(Object.entries(m_g)),F=B.next();!F.done;F=B.next())if(F=_.C(F.value),F.next(),F=F.next().value,F==="SLI_STATUS_"+G)return F;return"SLI_STATUS_UNKNOWN"};
_.mV=function(G,B,F,D){return Q1S(G,B,function(){return new _.j1g(G,B,F,D)})};
_.L9l=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
r9g=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
XK=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
W96=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
HVl=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
kVz=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
$_J=function(G){G&&(G.dataset?G.dataset[OVl()]="true":_.Ex([_.LS(exl)],G,"data-loaded","true".toString()))};
zxg=function(G){return G?G.dataset?G.dataset[OVl()]:G.getAttribute("data-loaded"):null};
OVl=function(){return bVL.loaded||(bVL.loaded="loaded".replace(/\-([a-z])/g,function(G,B){return B.toUpperCase()}))};
_.Q9=function(G,B,F){V08(G,B,F===void 0?null:F)};
_.oZz=function(G,B){G&&B&&(G=""+_.S8(B),(G=vZJ[G])&&_.xhs(G))};
V08=function(G,B,F){F=F===void 0?null:F;var D=_.M0c(typeof G==="string"?G:G.toString()),u=document.getElementById(D),R=u&&zxg(u),N=u&&!R;R?B&&B():(B&&(R=_.xr(D,B),B=""+_.S8(B),vZJ[B]=R),N||(u=pRQ(G,D,function(){zxg(u)||($_J(u),_.P4J(D),_.iX(function(){_.Beg(D)},0))},F)))};
pRQ=function(G,B,F,D){D=D===void 0?null:D;var u=_.G_("SCRIPT");u.id=B;u.onload=function(){F&&setTimeout(F,0)};
u.onreadystatechange=function(){switch(u.readyState){case "loaded":case "complete":u.onload()}};
D&&u.setAttribute("nonce",D);_.Ux(u,typeof G==="string"?_.qN(G):G);G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(u,G.firstChild);return u};
_.M0c=function(G){var B=document.createElement("a");Go(B,G);return"js-"+ja(B.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
YsJ=function(G){var B=_.v5("INNERTUBE_HOST_OVERRIDE");B&&(G=String(B)+String(_.fS(G)));return G};
A9g=function(G){var B={};_.X("json_condensed_response")&&(B.prettyPrint="false");return G=LbS(G,B)};
_.Li=function(G){return In(G)?"same-origin":"include"};
_.WZ=function(G){return In(G)?"same-origin":"cors"};
HZ=function(G,B,F){F=F===void 0?{}:F;G={method:B===void 0?"POST":B,mode:_.WZ(G),credentials:_.Li(G)};B={};for(var D=_.C(Object.keys(F)),u=D.next();!u.done;u=D.next())u=u.value,F[u]&&(B[u]=F[u]);Object.keys(B).length>0&&(G.headers=B);return G};
_.ky=function(G,B){B=B===void 0?{}:B;return"service:"+G+"/"+Object.keys(B).sort().map(function(F){return F+":"+B[F]}).join("/")};
d_J=function(G){var B,F,D,u;G=(B=_.Q(G,_.Ow))==null?void 0:(F=B.watchEndpointSupportedOnesieConfig)==null?void 0:(D=F.html5PlaybackOnesieConfig)==null?void 0:(u=D.commonConfig)==null?void 0:u.url;if(!G)return[];B=new _.ea(G);return B.JSC$10342_domain_?["https://"+B.JSC$10342_domain_+"/generate_204"]:[]};
_.TrS=function(){return J9s()||kxz()||c9J&&HQ("version/")?!0:_.v5("EOM_VISITOR_DATA")?!1:!0};
IxM=function(G){var B=G.docid||G.video_id||G.videoId||G.id;if(B)return B;B=G.raw_player_response;B||(G=G.player_response)&&(B=JSON.parse(G));return B&&B.videoDetails&&B.videoDetails.videoId||null};
fxz=function(G){return G.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
$y=function(G){return!isNaN(Number(G))&&!_.NL(G)};
_.V9=function(G,B,F,D){D=D===void 0?!0:D;var u=_.v5("VALID_SESSION_TEMPDATA_DOMAINS",[]),R=_.Tt(window.location.href);R&&u.push(R);R=_.Tt(G);if(_.YM(u,R)||!R&&_.wU(G,"/"))if(u=document.createElement("a"),Go(u,G),G=u.href)if(G=_.fS(G),G=_.tC(G))D&&!B.csn&&(B.itct||B.ved)&&(B=Object.assign({csn:_.qW()},B)),F?(F=parseInt(F,10),isFinite(F)&&F>0&&t0g(G,B,F)):t0g(G,B)};
gZU=function(G){var B=_.v5("VALID_SESSION_TEMPDATA_DOMAINS",[]),F=_.Tt(window.location.href);F&&B.push(F);F=_.Tt(G);if(!(_.YM(B,F)||!F&&_.wU(G,"/")))return null;G=_.fS(G);(G=_.tC(G))?(G=ZVg(G),G=(G=_.C8.get(G,void 0)||null)?_.Je(G):{}):G=null;return G};
t0g=function(G,B,F){G=ZVg(G);B=B?_.sh(B):"";F=F||5;_.TrS()&&_.NS(G,B,F)};
ZVg=function(G){for(var B=_.C(Ss6),F=B.next();!F.done;F=B.next())G=_.iB(G,F.value);return"ST-"+ja(G).toString(36)};
_.s1U=function(G){if(G.requestFullscreen)G=G.requestFullscreen(void 0);else if(G.webkitRequestFullscreen)G=G.webkitRequestFullscreen();else if(G.mozRequestFullScreen)G=G.mozRequestFullScreen();else if(G.msRequestFullscreen)G=G.msRequestFullscreen();else if(G.webkitEnterFullscreen)G=G.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return G instanceof Promise?G:Promise.resolve()};
_.oa=function(G){var B;_.Y_U(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.vZ()==G&&(B=document):B=G;if(B&&(G=_.Y_U(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],B))){G.call(B)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.vZ=function(){var G=G===void 0?!1:G;var B=_.Y_U(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;B&&B.shadowRoot;)B=B.shadowRoot.fullscreenElement;return B?B:null};
_.MW=function(G,B){B=B===void 0?!0:B;G.addEventListener("wheel",x_I);G.overscrollConfig={cooldown:B}};
_.pi=function(G){G.overscrollConfig=void 0;G.removeEventListener("wheel",x_I)};
x_I=function(G){var B=G.deltaY,F=G.target,D=null;if(window.Polymer&&window.Polymer.Element){if(F=G.path||G.composedPath&&G.composedPath()){F=_.C(F);for(var u=F.next();!u.done&&(u=u.value,!P6g(u,B));u=F.next())if(u.overscrollConfig){D=u;break}}}else for(;F&&!P6g(F,B);){if(F.overscrollConfig){D=F;break}F=F.parentElement}D&&(B=D.overscrollConfig,B.cooldown?(D=G.deltaY,F=B.lastDeltaY||0,B.lastDeltaY=D,u=B.lastStopped||0,F&&u&&F>0==D>0?Math.abs(F)>=Math.abs(D)?(D=u+1200,F=!1):(D=u+600,F=!0):(D=Date.now()+
600,F=!0),D>Date.now()&&(G.preventDefault(),F&&(B.lastStopped=Date.now()))):G.preventDefault())};
P6g=function(G,B){return B<0&&G.scrollTop>0||B>0&&G.scrollTop<G.scrollHeight-G.clientHeight-1?(G=getComputedStyle(G).overflowY,G=="auto"||G=="scroll"):!1};
GSS=function(G){Yy.initialized=!0;Yy.sessionId=G.sessionId||"";Yy.enabledSpans=G.enabledSpans;G.shouldSampleFn!=null&&(Yy.shouldSampleFn=G.shouldSampleFn)};
BBQ=function(G){Yy.processors.push(G)};
AL=function(G){return Yy.initialized?Yy.enabledSpans?Yy.enabledSpans[G]:!0:!1};
u5Q=function(G,B,F){return AL(G)&&Yy.shouldSampleFn(G,B,iMl)?new FJS(G,B,F):Dyg};
_.ds=function(G,B,F){if(typeof F==="function"){var D=F;F=void 0}var u=u5Q(G,B,F),R;if(((R=F)==null?void 0:R.endTime)!=null)return D&&_.em(Error("Df")),u;var N;u!==Dyg&&((N=F)==null?void 0:N.active)!==!1&&Yy.stack.push(u);if(!D)return u;if(u===Dyg)return D(u);try{var y=D(u);if(y instanceof Promise)return y.then(function(U){u.end();return U},function(U){u.end("SPAN_STATUS_ERROR");
throw U;});
u.end();return y}catch(U){throw u.end("SPAN_STATUS_ERROR"),U;}};
RAg=function(){bZ.subscribe("handleError",function(G){try{for(var B in JL)try{var F=JL[B];typeof JL[B]==="function"&&(F=F());G.params[B]=typeof JL[B]==="object"?JSON.stringify(F):String(F)}catch(D){_.em(D)}}catch(D){_.em(D)}})};
wvz=function(){};
C_c=function(G){var B=G.nodeName;if(G.id)return B+="#"+G.id;if(G.classList)for(var F=_.C(G.classList),D=F.next();!D.done;D=F.next())B+="."+D.value;G.parentElement&&(B=C_c(G.parentElement)+" > "+B);return B};
_.cZ=function(G,B,F,D){D||(D={bubbles:!0,cancelable:!1,composed:!0});F!==null&&F!==void 0&&(D.detail=F);var u=new CustomEvent(B,D);_.X("untrack_fire_custom_event_killswitch")?G.dispatchEvent(u):_.U4(function(){return void G.dispatchEvent(u)});
return u};
NBz=function(G){var B=window,F=function(D){B.removeEventListener("yt-navigate-start",F);return G.call(B,D)};
B.addEventListener("yt-navigate-start",F,void 0)};
_.T1=function(G,B,F,D){D=D===void 0?!1:D;return _.ds("ytAction",{name:B,nodepath:C_c(G)},function(){var u=new yXJ(B,!!D,F);_.cZ(G,"yt-action",u);return u.returnValue})};
_.Ia=function(G,B,F){return _.T1(G,B,F,!0)};
_.tL=function(G,B,F,D){B&&B.length&&B.forEach(function(u){var R=oPo(u);R&&(_.X("handle_service_request_actions")&&u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.sendPost?_.fi(F?F:G,[u]):_.Ia(G,R,[u,F,D]))})};
_.fi=function(G,B){var F=[G];B&&F.push.apply(F,B);B=_.T1(G,"yt-service-request",F);return B.length>0&&(B=B[0],_.cZ(G,"yt-service-request-sent",B),B&&B.ajaxPromise)?(B.ajaxPromise.then(function(D){_.cZ(G,"yt-service-request-completed",D)},function(D){_.cZ(G,"yt-service-request-error",{error:D,
params:F})},G),B.ajaxPromise):_.ZL()};
_.Sa=function(G,B){if(_.X("handle_service_request_actions"))_.tL(B,G,B);else{G=_.C(G);for(var F=G.next();!F.done;F=G.next()){F=F.value;var D=void 0;((D=_.Q(F,_.gs))==null?0:D.commands)?_.Sa(_.Q(F,_.gs).commands,B):(D=void 0,((D=_.Q(F,_.sw))==null?0:D.actions)?_.Sa(_.Q(F,_.sw).actions,B):(D=void 0,((D=_.Q(F.commandMetadata,_.xy))==null?0:D.sendPost)?_.fi(B,[F]):_.tL(B,[F],B)))}}};
_.lhU=function(G,B,F){B=B===void 0?{}:B;typeof B==="function"&&(B={callback:B});F||B._c&&B._c.jsl&&B._c.jsl.h||_.UK.extend(B,{_c:{jsl:{h:_.v5("GAPI_HINT_PARAMS")}}});(B.gapiHintOverride||_.v5("GAPI_HINT_OVERRIDE"))&&(F=_.c5(document.location.href).gapi_jsh)&&_.UK.extend(B,{_c:{jsl:{h:F}}});nlc(G,B)};
_.G7=function(G,B,F){B=B===void 0?{}:B;G=(G=G in PZ?PZ[G]:F)||"";F={};for(var D in B){F={key$jscomp$855:F.key$jscomp$855};F.key$jscomp$855=D;var u=function(R){return function(){return String(B[R.key$jscomp$855])}}(F);
G=G.replace(new RegExp("\\$\\{"+F.key$jscomp$855+"\\}","gi"),u);G=G.replace(new RegExp("\\$"+F.key$jscomp$855,"gi"),u)}return G};
_.BT=function(G,B){return Uys(G in PZ?PZ[G]:{},B)};
Uys=function(G,B){var F=_.v5("I18N_PLURAL_RULES");F||(F=function(D){return D==1?"one":"other"});
return(G=G["case"+B]||G[F(B)])?G.replace("#",B.toString()):B+""};
hAL=function(G){var B=qc8(G),F=document.getElementById(B),D=F&&zxg(F);D||F&&!D||(F=Elg(G,B,function(){if(!zxg(F)){$_J(F);_.P4J(B);var u=_.Fw(_.Beg,B);_.iX(u,0)}}))};
Elg=function(G,B,F){var D=document.createElement("link");D.id=B;D.onload=function(){F&&setTimeout(F,0)};
G=_.qN(G);_.hl(D,G,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(D);return D};
qc8=function(G){var B=_.G_("A");Go(B,TX(G));return"css-"+ja(B.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.ahM=function(G){var B=KJl();G!==B&&(B=_.D4(),!_.X("web_autonav_allow_off_by_default")&&G||_.uf(0,141,!0),_.uf(0,140,!G),B.save())};
KJl=function(){var G=_.D4();return _.X("web_autonav_allow_off_by_default")&&!G.getFlag(141)&&_.v5("AUTONAV_OFF_BY_DEFAULT")?!1:!G.getFlag(140)};
myJ=function(G,B){var F,D;G=((F=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(D=F.videoAuthorizationToken)==null?void 0:D.credentialTransferTokens)||[];for(F=0;F<G.length;++F)if(G[F].scope===B)return G[F].token||void 0};
XvJ=function(G){for(var B=0,F=0;F<G.length;F++)B=B*31+G.charCodeAt(F),F<G.length-1&&(B%=0x800000000000);return B%1E5};
_.Rg=function(G){return _.Yf("ytcsi."+(G||"")+"data_")||QeL(G)};
_.jel=function(G){G=_.Rg(G);G.metadata||(G.metadata={});return G.metadata};
_.LJJ=function(G){G=_.Rg(G);G.tick||(G.tick={});return G.tick};
_.w5=function(G){G=_.Rg(G);if(G.gel){var B=G.gel;B.gelInfos||(B.gelInfos={});B.gelTicks||(B.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel};
_.rXI=function(G){G=_.w5(G);G.gelInfos||(G.gelInfos={});return G.gelInfos};
WJg=function(G){var B=_.Rg(G).nonce;B||(B=ni(16),_.Rg(G).nonce=B);return B};
QeL=function(G){var B={tick:{},info:{}};_.IY("ytcsi."+(G||"")+"data_",B);return B};
HMQ=function(){var G=_.Yf("ytcsi.debug");G||(G=[],_.IY("ytcsi.debug",G),_.IY("ytcsi.reference",{}));return G};
_.CR=function(G){G=G||"";var B=kSo();if(B[G])return B[G];var F=HMQ(),D={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};F.push(D);return B[G]=D};
OMo=function(G){G=G||"";var B=kSo();B[G]&&delete B[G];var F=HMQ(),D={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};F.push(D);B[G]=D};
kSo=function(){var G=_.Yf("ytcsi.reference");if(G)return G;HMQ();return _.Yf("ytcsi.reference")};
_.$yg=function(G){return eA6[G]||"LATENCY_ACTION_UNKNOWN"};
vlU=function(G,B,F){F=F===void 0?{}:F;var D=!1;_.on("ytLoggingEventsDefaultDisabled",!1)&&(D=!0);D=D?null:ra;F=F===void 0?{}:F;var u=Math.round(F.timestamp||(0,_.Zl)());_.Ez(B,1,u<Number.MAX_SAFE_INTEGER?u:0);u=new zAM;if(F.lact)_.Ez(u,1,isFinite(F.lact)?F.lact:-1);else if(F.timestamp)_.Ez(u,1,-1);else{var R=_.Z8();_.Ez(u,1,isFinite(R)?R:-1)}if(F.sequenceGroup&&!_.X("web_gel_sequence_info_killswitch")){R=F.sequenceGroup;var N=ytz(R),y=new bMU;_.Ez(y,2,N);_.wq(y,1,R);_.ba(u,3,y);F.endOfSequence&&delete VjQ[F.sequenceGroup]}_.ba(B,
33,u);(F.sendIsolatedPayload?KAL:a$L)(G,{endpoint:"log_event",payload:B,cttAuthInfo:F.cttAuthInfo,dangerousLogToVisitorSession:F.dangerousLogToVisitorSession},D)};
_.olS=function(G,B){_.Na("_start",G,B)};
_.yY=function(G,B){if(!_.X("web_csi_action_sampling_enabled")||!_.Rg(B).actionDisabled){var F=_.CR(B||"");_.aa(F.info,G);G.loadType&&(F=G.loadType,_.jel(B).loadType=F);_.aa(_.rXI(B),G);F=WJg(B);B=_.Rg(B).cttAuthInfo;Mj6().info(G,F,B)}};
pvL=function(){var G,B,F,D;return((D=_.te().resolve(_.fH(X0))==null?void 0:(G=QK())==null?void 0:(B=G.loggingHotConfig)==null?void 0:(F=B.csiConfig)==null?void 0:F.debugTicks)!=null?D:[]).map(function(u){return Object.values(u)[0]})};
_.Na=function(G,B,F){if(!_.X("web_csi_action_sampling_enabled")||!_.Rg(F).actionDisabled){var D=WJg(F),u;if(u=_.X("web_csi_debug_sample_enabled")&&D){(_.te().resolve(_.fH(X0))==null?0:QK())&&!Ycc&&(Ycc=!0,_.Na("gcfl",(0,_.Zl)(),F));var R,N,y;u=(_.te().resolve(_.fH(X0))==null?void 0:(R=QK())==null?void 0:(N=R.loggingHotConfig)==null?void 0:(y=N.csiConfig)==null?void 0:y.debugSampleWeight)||0;if(R=u!==0)b:{R=pvL();if(R.length>0)for(N=0;N<R.length;N++)if(G===R[N]){R=!0;break b}R=!1}R?(u=XvJ(D)%u!==0,
_.Rg(F).debugTicksExcludedLogged||(R={},R.debugTicksExcluded=u,_.yY(R,F)),_.Rg(F).debugTicksExcludedLogged=!0):u=!1}if(!u){G[0]!=="_"&&AXl(G,F,B);u=_.CR(F||"");u.tick[G]=B||(0,_.Zl)();if(u.callback&&u.callback[G])for(u=_.C(u.callback[G]),R=u.next();!R.done;R=u.next())R=R.value,R();u=_.w5(F);u.gelTicks&&(u.gelTicks[G]=!0);R=_.LJJ(F);u=B||(0,_.Zl)();R[G]=u;R=_.Rg(F).cttAuthInfo;G==="_start"?Mj6().baseline(D,B,R):Mj6().tick(G,D,B,R);_.dyL(F);return u}}};
AXl=function(G,B,F){if(_.nR.mark)if(G.startsWith("mark_")||(G="mark_"+G),B&&(G+=" ("+B+")"),F===void 0||_.X("web_csi_disable_alt_time_performance_mark"))_.nR.mark(G);else{F=_.X("csi_use_performance_navigation_timing")?F-_.nR.timeOrigin:F-(_.nR.timeOrigin||_.nR.timing.navigationStart);try{_.nR.mark(G,{startTime:F})}catch(D){}}};
JXg=function(){var G,B=(G=_.nR.getEntriesByType)==null?void 0:G.call(_.nR,"mark");B&&B.forEach(function(F){if(F.name.startsWith("mark_")){var D;(D=_.nR.clearMarks)==null||D.call(_.nR,F.name)}})};
_.cXI=function(G){var B={},F=function(R,N,y){N=N.match("_rid")?N.split("_rid")[0]:N;typeof y==="number"&&(y=JSON.stringify(y));R.requestIds?R.requestIds.push({endpoint:N,id:y}):R.requestIds=[{endpoint:N,id:y}]};
G=_.C(Object.entries(G));for(var D=G.next();!D.done;D=G.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;switch(D){case "GetBrowse_rid":F(B,D,u);break;case "GetGuide_rid":F(B,D,u);break;case "GetHome_rid":F(B,D,u);break;case "GetPlayer_rid":F(B,D,u);break;case "GetSearch_rid":F(B,D,u);break;case "GetSettings_rid":F(B,D,u);break;case "GetTrending_rid":F(B,D,u);break;case "GetWatchNext_rid":F(B,D,u);break;case "yt_red":B.isRedSubscriber=!!u;break;case "yt_ad":B.isMonetized=!!u}}return B};
_.TBl=function(G){var B=_.lf("aft",G);if(B)return B;B=_.v5((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var F=B.length,D=0;D<F;D++){var u=_.lf(B[D],G);if(u)return u}return NaN};
_.Ihg=function(G,B){_.IY("ytglobal.timing"+(B||"")+"ready_",G)};
_.lf=function(G,B){if(G=_.LJJ(B)[G])return typeof G==="number"?G:G[G.length-1]};
_.dyL=function(G){var B=_.lf("_start",G),F=_.TBl(G),D=!fh6;B&&F&&D&&(lOJ(tj8,new ZMo(Math.round(F-B),G)),fh6=!0)};
ScQ=function(G){QeL(G);glz();JXg();G||(_.v5("TIMING_ACTION")&&_.Vc("PREVIOUS_ACTION",_.v5("TIMING_ACTION")),_.Vc("TIMING_ACTION",""))};
_.sec=function(G){G=G===void 0?{}:G;_.pH(function(){Uq();OMo();ScQ();_.Ihg(!1);G.cttAuthInfo&&(_.Rg().cttAuthInfo=G.cttAuthInfo);_.Vc("TIMING_AFT_KEYS",[]);G.isHot?_.qa({loadType:"hot"}):_.qa({loadType:"warm"});_.Vc("TIMING_ACTION","");delete _.v5("TIMING_INFO",{}).yt_lt;_.pH(_.olS)(G.startTime,void 0)})()};
_.hJ=function(G,B,F,D){B=B===void 0?{}:B;_.pH(function(){var u=F?F:G;Eq(u);var R=B.sampleRate;if(!_.X("web_csi_action_sampling_enabled")||R===void 0||R<=1)R=!1;else{var N=WJg(u);R=XvJ(N)%R!==0}R&&(_.Rg(u).actionDisabled=!0);_.CR(u||"").info.actionType=G;B.cttAuthInfo&&(_.Rg(u).cttAuthInfo=B.cttAuthInfo);_.Vc(u+"TIMING_ACTION",G);_.pH(_.olS)(B.startTime,u);R={actionType:D||_.$yg(G)};B.logPreviousAction&&(R.previousAction=_.$yg(_.v5("TIMING_ACTION")));(N=_.qW())&&N!=="UNDEFINED_CSN"&&(R.clientScreenNonce=
N);_.qa(R,u);_.Ihg(!0,u)})()};
Eq=function(G){_.pH(function(){Uq(G);OMo(G);ScQ(G)})()};
xyI=function(){_.pH(function(){var G=[],B;for(B in _.Yf("ytcsi.".slice(0,-1)))B.endsWith("data_")&&G.push(B.slice(0,-5));G=_.C(G);for(B=G.next();!B.done;B=G.next())Eq(B.value);Uq()})()};
_.GTg=function(G){return _.pH(function(){return _.P_g("_start",G)})()};
_.qa=function(G,B,F){_.pH(_.yY)(G,B,F===void 0?!1:F)};
_.KR=function(G,B,F){return _.pH(_.Na)(G,B,F)};
_.P_g=function(G,B){return _.pH(function(){var F=_.LJJ(B);return G in F})()};
i48=function(G){if(!_.X("universal_csi_network_ticks"))return"";G=_.Ik(G)||"";for(var B=Object.keys(Byg),F=0;F<B.length;F++){var D=B[F];if(G.includes(D))return D}return""};
Duz=function(G){if(!_.X("universal_csi_network_ticks"))return function(){};
var B=Byg[G];return B?(_.ag(B),function(){var F=_.X("universal_csi_network_ticks")?(F=Fol[G])?_.ag(F):!1:!1;return F}):function(){}};
_.ag=function(G,B,F){return _.pH(function(){if(_.P_g(G,F))return!1;_.KR(G,B,F);return!0})()};
_.mb=function(G,B,F){_.pH(function(){if(!_.GTg(F)||_.P_g(G,F))return!1;_.KR(G,B,F);return!0})()};
_.Xw=function(G){return _.pH(_.lf)(G,void 0)};
Uq=function(G){_.GTg(G)&&_.KR("aa",void 0,G)};
_.Nyc=function(G,B,F,D,u,R,N,y,U,q){var h=uZs();R=new _.l2({veType:B,youtubeData:R,jspbYoutubeData:y});q=QY({automatedLogEventSource:q},h);u&&(q.cttAuthInfo=u);u={csn:h,pageVe:R.getAsJson()};_.X("expectation_logging")&&U&&U.screenCreatedLoggingExpectations&&(u.screenCreatedLoggingExpectations=U.screenCreatedLoggingExpectations);F&&F.visualElement?(u.implicitGesture={parentCsn:F.clientScreenNonce,gesturedVe:F.visualElement.getAsJson()},N&&(u.implicitGesture.gestureType=N)):F&&_.em(new _.Uf("newScreen() parent element does not have a VE - rootVe",
B));D&&(u.cloneCsn=D);G?LZ("screenCreated",u,G,q):_.W$("screenCreated",u,q);lOJ(m7I,new RzS(h));jD.clear();wdc.clear();CYg.clear();return h};
LR=function(G,B,F,D,u,R){R=R===void 0?{}:R;yiQ(G,B,F,[D],u===void 0?!1:u,R)};
yiQ=function(G,B,F,D,u,R){u=u===void 0?!1:u;R=R===void 0?{}:R;Object.assign(R,QY({cttAuthInfo:Ew(B)||void 0},B));for(var N=_.C(D),y=N.next();!y.done;y=N.next()){y=y.value;var U=y.getAsJson();(_.UK.isEmpty(U)||!U.trackingParams&&!U.veType)&&_.em(Error("Ff"));if(_.X("no_client_ve_attach_unless_shown")){var q=nRQ(y,B);if(U.veType&&!wdc.has(q)&&!CYg.has(q)&&!u){if(!_.X("il_attach_cache_limit")||jD.size<1E3){jD.set(q,[G,B,F,y]);return}_.X("il_attach_cache_limit")&&jD.size>1E3&&_.em(new _.Uf("IL Attach cache exceeded limit"))}y=
nRQ(F,B);jD.has(y)?lag(F,B):CYg.set(y,!0)}}D=D.filter(function(h){h.csn!==B?(h.csn=B,h=!0):h=!1;return h});
F={csn:B,parentVe:F.getAsJson(),childVes:_.qK(D,function(h){return h.getAsJson()})};
B==="UNDEFINED_CSN"?r5("visualElementAttached",R,F):G?LZ("visualElementAttached",F,G,R):_.W$("visualElementAttached",F,R)};
qpI=function(G,B,F,D,u,R,N){Uuz(G,B,F,u,N)};
Uuz=function(G,B,F,D,u){ERg(F,B);u=QY({cttAuthInfo:Ew(B)||void 0,automatedLogEventSource:u},B);F={csn:B,ve:F.getAsJson(),eventType:1};D&&(F.clientData=D);B==="UNDEFINED_CSN"?r5("visualElementShown",u,F):G?LZ("visualElementShown",F,G,u):_.W$("visualElementShown",F,u)};
hzo=function(G,B,F,D){ERg(F,B);var u=QY({cttAuthInfo:Ew(B)||void 0,automatedLogEventSource:void 0},B);F={csn:B,ve:F.getAsJson(),eventType:4};D&&(F.clientData=D);B==="UNDEFINED_CSN"?r5("visualElementShown",u,F):G?LZ("visualElementShown",F,G,u):_.W$("visualElementShown",F,u)};
Ko8=function(G,B,F,D,u,R){var N=(D=D===void 0?!1:D)?16:8;D=QY({cttAuthInfo:Ew(B)||void 0,endOfSequence:D,automatedLogEventSource:R},B);F={csn:B,ve:F.getAsJson(),eventType:N};u&&(F.clientData=u);B==="UNDEFINED_CSN"?r5("visualElementHidden",D,F):G?LZ("visualElementHidden",F,G,D):_.W$("visualElementHidden",F,D)};
muI=function(G,B,F,D,u,R){aal(G,B,F,void 0,D,u,R)};
aal=function(G,B,F,D,u,R,N){ERg(F,B);D=D||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";R=QY({cttAuthInfo:Ew(B)||void 0,automatedLogEventSource:N},B);F={csn:B,ve:F.getAsJson(),gestureType:D};u&&(F.clientData=u);B==="UNDEFINED_CSN"?r5("visualElementGestured",R,F):G?LZ("visualElementGestured",F,G,R):_.W$("visualElementGestured",F,R)};
XdM=function(G,B,F,D){var u=QY({cttAuthInfo:Ew(B)||void 0},B);F={csn:B,ve:F.getAsJson(),clientData:D};B==="UNDEFINED_CSN"?r5("visualElementStateChanged",u,F):G?LZ("visualElementStateChanged",F,G,u):_.W$("visualElementStateChanged",F,u)};
QSl=function(){var G=iVM(16);for(var B=[],F=0;F<G.length;F++)B.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[F]&63));return B.join("")};
r5=function(G,B,F){jS6.push({payloadName:G,payload:F,jspbPayload:void 0,options:B});Log||(Log=Qy8())};
aOc=function(G){if(jS6){for(var B=_.C(jS6),F=B.next();!F.done;F=B.next())F=F.value,F.payload&&(F.payload.csn=G.csn,_.W$(F.payloadName,F.payload,F.options));jS6.length=0}Log=0};
nRQ=function(G,B){return""+G.getAsJson().veType+G.getAsJson().veCounter+B};
ERg=function(G,B){if(_.X("no_client_ve_attach_unless_shown")){var F=nRQ(G,B);wdc.set(F,!0);lag(G,B)}};
lag=function(G,B){G=nRQ(G,B);jD.has(G)&&(B=jD.get(G)||[],LR(B[0],B[1],B[2],B[3],!0),jD.delete(G))};
QY=function(G,B){_.X("log_sequence_info_on_gel_web")&&(G.sequenceGroup=B);return G};
_.WT=function(G,B,F){_.pH(LR)(void 0,G,B,F)};
_.HT=function(G,B,F){_.pH(yiQ)(void 0,G,B,F)};
_.kI=function(G,B){_.pH(qpI)(void 0,G,B,void 0,void 0,void 0)};
_.Oq=function(G,B,F){_.pH(function(){_.dn(B,function(D){hzo(void 0,G,D,F)})})()};
_.eD=function(G,B,F,D){_.pH(function(){_.dn(B,function(u){Ko8(void 0,G,u,F,D)})})()};
_.$I=function(G,B,F){_.pH(muI)(void 0,G,B,F,void 0)};
_.z7=function(G,B,F,D){_.pH(aal)(void 0,G,B,F,D,void 0)};
_.bf=function(G,B,F){_.pH(XdM)(void 0,G,B,F,void 0)};
ris=function(G,B){VY.set(G,B)};
Woz=function(G,B){var F=Object.keys(G);G=new _.Uf("[Command Handler] "+B,{filteredCommandNames:F,originalCommand:G});_.k2(G)};
H4Q=function(G,B){Woz(G,B+" was called but not set")};
kTs=function(G){return function(){return new G}};
vT=function(G){return function(){return _.te().resolve(G)}};
O4I=function(G,B){var F=_.Q(G,_.v$);if(F&&(F=B[F.signal]))return F();G=_.C(Object.keys(G));for(F=G.next();!F.done;F=G.next())if(F=F.value,B[F]&&(F=B[F]))return F()};
_.og=function(G,B,F,D){return{browseEndpoint:{browseId:G},commandMetadata:{webCommandMetadata:{url:B,rootVe:F,webPageType:D===void 0?"WEB_PAGE_TYPE_BROWSE":D}}}};
ezS=function(G,B,F){var D=B=B===void 0?0:B;F=F===void 0?0:F;var u=F-D;return _.Ma(G,"PPSV",void 0,void 0,(u>600?0:u<60||F<=0||D/F>.9)?0:B)};
_.Ma=function(G,B,F,D,u){var R="/watch?v="+G;G={videoId:G};B&&(G.playlistId=B,R+="&list="+B);D&&(R+="&pp="+D);u&&(G.startTimeSeconds=u,R+="&t="+u+"s");B={watchEndpoint:G,commandMetadata:{webCommandMetadata:{url:R,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};F&&(B.clickTrackingParams=F);D&&(_.Q(B,_.Ow).playerParams=D);return B};
$uz=function(G){return{browseEndpoint:{browseId:"VL"+G},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+G,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
zzg=function(G){if(G){var B;if(G){var F=(B=_.Q(G.commandMetadata,_.xy))==null?void 0:B.url;B=!(!F||F==="/service_ajax")}else B=!1;if(B)return G;var D;if(G=(D=_.Q(G,_.gs))==null?void 0:D.commands)for(D=_.C(G),G=D.next();!G.done;G=D.next())if(G=zzg(G.value))return G}};
_.pR=function(G){return{runs:[{text:G}]}};
b4Q=function(G,B){return G&&B?{runs:[{text:G,navigationEndpoint:B}]}:void 0};
YI=function(G){return G?_.pR(G):void 0};
_.AJ=function(G){return G?{simpleText:G}:void 0};
_.d5=function(G){var B=G.type;G=G.payload;B={type:B};G!==void 0&&(B.payload=G);return B};
Vxs=function(G,B,F){for(var D=Object.assign({},G),u=_.C(Object.keys(B)),R=u.next();!R.done;R=u.next()){R=R.value;var N=G[R],y=B[R];if(y===void 0)delete D[R];else if(N===void 0)D[R]=y;else if(Array.isArray(y)&&Array.isArray(N))D[R]=F?[].concat(_.gi(N),_.gi(y)):y;else if(!Array.isArray(y)&&_.Zc(y)&&!Array.isArray(N)&&_.Zc(N))D[R]=Vxs(N,y,F);else if(typeof y===typeof N)D[R]=y;else return B=new _.Uf("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:R,originalValue:N,updateValue:y}),
_.k2(B),G}return D};
Mxg=function(G){if(!G.length)return"";try{if(vRS)return vRS.decode(G);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(G)}catch(N){}for(var B=0,F=[],D=G.length;B<D;){for(var u=0;u<1024&&B<D;){var R=G[B++];if(R<128)oRQ[u++]=R;else{if(R<224)R=(R&31)<<6|G[B++]&63;else if(R<240)R=(R&15)<<12|(G[B++]&63)<<6|G[B++]&63;else{if(u+1===1024){--B;break}R=(R&7)<<18|(G[B++]&63)<<12|(G[B++]&63)<<6|G[B++]&63;R-=65536;oRQ[u++]=55296|R>>10;R=56320|R&1023}oRQ[u++]=R}}R=String.fromCharCode.apply(String,
oRQ);u<1024&&(R=R.substring(0,u));F.push(R)}return F.join("")};
YpS=function(G,B){var F;if((F=pdS)==null?0:F.encodeInto)return B=pdS.encodeInto(G,B),B.read<G.length?G.length*4:B.written;for(var D=F=0;D<G.length;D++){var u=G.charCodeAt(D);u<128?B[F++]=u:(u<2048?B[F++]=u>>6|192:((u&64512)===55296&&D+1<G.length&&(G.charCodeAt(D+1)&64512)===56320?(u=65536+((u&1023)<<10)+(G.charCodeAt(++D)&1023),B[F++]=u>>18|240,B[F++]=u>>12&63|128):B[F++]=u>>12|224,B[F++]=u>>6&63|128),B[F++]=u&63|128)}return F};
AiU=function(G,B,F){if(B&&F&&F.buffer===B.exports.memory.buffer){var D=B.realloc(F.byteOffset,G);if(D)return new Uint8Array(B.exports.memory.buffer,D,G)}G=B?new Uint8Array(B.exports.memory.buffer,B.malloc(G),G):new Uint8Array(G);F&&G.set(F);return G};
_.cT=function(G){G=new dul(new Ji6([_.P6(decodeURIComponent(G))]));if(ci8(G,2)){var B=JJ(G);var F=G.pos;var D=G.arrayView;F=F===void 0?0:F;var u=B===void 0?-1:B;F=F===void 0?0:F;u=u===void 0?-1:u;if(D.totalLength&&u){u<0&&(u=D.totalLength-F);D.focus(F);if(!(F-D.arrayPos+u<=D.arrays[D.arrayIdx].length)){var R=D.arrayIdx,N=D.arrayPos;D.focus(F+u-1);N=new Uint8Array(D.arrayPos+D.arrays[D.arrayIdx].length-N);for(var y=0,U=R;U<=D.arrayIdx;U++)N.set(D.arrays[U],y),y+=D.arrays[U].length;D.arrays.splice(R,
D.arrayIdx-R+1,N);D.arrayIdx=0;D.arrayPos=0;D.focus(F)}R=D.arrays[D.arrayIdx];D=new DataView(R.buffer,R.byteOffset+F-D.arrayPos,u)}else D=new DataView(new ArrayBuffer(0));D=new Uint8Array(D.buffer,D.byteOffset,D.byteLength);G.pos+=B;B=D}else B=void 0;B=B?Mxg(B):void 0;G=ci8(G,4)?JJ(G):void 0;D=TyS[G];if(typeof D==="undefined")throw G=new _.Uf("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:G}),_.k2(G),G;return{entityTypeFieldNumber:G,entityType:D,entityId:B}};
_.Z4=function(G,B,F){F=F===void 0?0:F;var D=new IaM;if(pdS)G=pdS.encode(G);else{var u=new Uint8Array(Math.ceil(G.length*1.2)),R=YpS(G,u);u.length<R&&(u=new Uint8Array(R),R=YpS(G,u));u.length>R&&(u=u.subarray(0,R));G=u}G!==void 0&&(fR(D,18),u=G.length,fR(D,u),tJ(D,u),D.buf.set(G,D.pos),D.pos+=u);G=fag[B];if(typeof G==="undefined")throw F=new _.Uf("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:B}),_.k2(F),F;G!==void 0&&(fR(D,32),fR(D,G));fR(D,40);fR(D,1);B=new Uint8Array(D.buf.buffer,
D.buf.byteOffset,D.pos);return encodeURIComponent(_.xM(B,F))};
txo=function(G){G=G.key||G.id;if(!G)throw Error("If");return G};
gRs=function(G,B){G=G===void 0?{}:G;return Z4l(G,B)};
Spo=function(G,B,F,D){if(D===void 0)return D=Object.assign({},G[B]||{}),F=(delete D[F],D),D={},Object.assign({},G,(D[B]=F,D));var u={},R={};return Object.assign({},G,(R[B]=Object.assign({},G[B],(u[F]=D,u)),R))};
sSS=function(G,B,F,D,u){var R=G[B];if(R==null||!R[F])return G;D=Vxs(R[F],D,u==="REPEATED_FIELDS_MERGE_OPTION_APPEND");u={};R={};return Object.assign({},G,(R[B]=Object.assign({},G[B],(u[F]=D,u)),R))};
_.g5=function(G,B,F){return G[B]?G[B][F]||null:null};
PY8=function(){if(xuL)return xuL();var G={};xuL=tP("PersistentEntityStoreDb",{objectStores:(G.EntityStore={addedAtVersion:1},G.EntityAssociationStore={addedAtVersion:2},G),shared:!1,upgrade:function(B,F){F(1)&&Vv(bi(B,"EntityStore",{keyPath:"key"}),"entityType","entityType");F(2)&&(B=bi(B,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Vv(B,"byParentEntityKey","parentEntityKey"),Vv(B,"byChildEntityKey","childEntityKey"))},
version:3});return xuL()};
Gjc=function(G){return _.p8(PY8(),G)};
SD=function(G){return window.Int32Array?new Int32Array(G):Array(G)};
i9l=function(G){return _.p8(Blc(),G)};
FFL=function(G){return new sq("WRONG_DATA_TYPE",{encoderVersion:G})};
DR6=function(G){return G instanceof Error?new sq("UNKNOWN_ENCODE_ERROR",{originalMessage:G.message}):new sq("UNKNOWN_ENCODE_ERROR")};
uES=function(G){return G instanceof Error?new sq("UNKNOWN_DECODE_ERROR",{originalMessage:G.message}):new sq("UNKNOWN_DECODE_ERROR")};
Rj8=function(G,B){G=G instanceof sq?G:B(G);_.k2(G);throw G;};
wjJ=function(G){G=(new TextEncoder).encode(G).subarray(0,16);var B=new Uint8Array(16);B.set(G);return B};
Nlz=function(G){var B=CxJ[G];if(B)return B;_.em(new _.Uf("Entity model not found.",{entityType:G}))};
_.xI=function(){yWJ||(yWJ=nYI());return yWJ};
nYI=function(){var G,B,F;return _.n(function(D){if(D.nextAddress==1)return _.b5(D,2),D.yield(_.f8(),4);if(D.nextAddress!=2){G=D.yieldResult;if(!G||!_.lX()||typeof _.Fz.BroadcastChannel==="undefined")return D.return();B=new l7U;return D.return(new PT(G,B))}F=_.Al(D);F instanceof Error&&_.k2(F);return D.return()})};
_.Gx=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1){F=G.mutations;if(!F||F.length<=0)return D.return();B&&B.dispatch(_.d5({type:"ENTITY_LOADED",payload:F}));return D.yield(UR6(F),2)}F.length=0;_.di(D)})};
UR6=function(G){var B;return _.n(function(F){return F.nextAddress==1?F.yield(_.xI(),2):(B=F.yieldResult)?F.yield(_.B2(B,"readwrite",function(D){for(var u={},R=_.C(G),N=R.next(),y={};!N.done;y={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},N=R.next())y.mutation$jscomp$8=N.value,y.mutation$jscomp$8.entityKey&&qeL(y.mutation$jscomp$8)&&(y.mutationEntityType$jscomp$3=(0,_.UK.getAnyKey)(y.mutation$jscomp$8.payload),N=void 0,y.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(N=function(U){return function(){return _.EYc(D,
U.mutation$jscomp$8.payload[U.mutationEntityType$jscomp$3],U.mutationEntityType$jscomp$3)}}(y)),y.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(N=function(U){return function(){return hjQ(D,U.mutation$jscomp$8.entityKey)}}(y)),y.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(N=function(U){return function(){return KFU(D,U.mutation$jscomp$8.entityKey,U.mutation$jscomp$8.payload[U.mutationEntityType$jscomp$3],U.mutationEntityType$jscomp$3)}}(y)),N&&(u[y.mutation$jscomp$8.entityKey]=
u[y.mutation$jscomp$8.entityKey]?u[y.mutation$jscomp$8.entityKey].then(N):N()));
return $K.all(Object.values(u))}),0):F.return()})};
qeL=function(G){var B;G=(B=G.options)==null?void 0:B.persistenceOption;return G==="ENTITY_PERSISTENCE_OPTION_PERSIST"||G==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Xjl=function(G,B){var F,D;_.n(function(u){if(u.nextAddress==1)return u.yield(_.xI(),2);if(u.nextAddress!=3)return(F=u.yieldResult)?u.yield(_.B2(F,"readonly",function(R){var N={},y=Object.keys(B).map(function(U){var q=B[U]?[].concat(_.gi(B[U])):[];return a7Q(R,U,q,N)});
return $K.all(y).then(function(){return N})}),3):u.return();
D=u.yieldResult;Object.keys(D).length>0&&G.dispatch(mRU(D));_.di(u)})};
a7Q=function(G,B,F,D){return io(G,B,F).then(function(u){D[B]=Q5U(F,u)})};
Q5U=function(G,B){if(B.length!==G.length)throw Error("Lf");return B.reduce(function(F,D,u){F[G[u]]=D;return F},{})};
rWg=function(G){var B=G.filter(function(u){var R;return(u==null?void 0:(R=u.transferEntity)==null?void 0:R.transferState)==="TRANSFER_STATE_COMPLETE"}).length,F=G.filter(function(u){var R;
return(u==null?void 0:(R=u.transferEntity)==null?void 0:R.transferState)==="TRANSFER_STATE_FAILED"}).length,D=G.filter(function(u){var R;
return(u==null?void 0:(R=u.transferEntity)==null?void 0:R.transferState)&&j5L.includes(u.transferEntity.transferState)});
if(!(B||D!=null&&D.length))return 0;B=_.LFL(D)+B;G=G.length-F;return G===0?0:Math.round(B*100/G)/100};
_.LFL=function(G){var B=[];B=B.concat.apply(B,_.gi(G.filter(function(R){return R.streamEntity}).map(function(R){var N=Object.assign({},R.streamEntity),y,U=(y=R.transferEntity)==null?void 0:y.transferState;
N.streamsProgress=N.streamsProgress||[];N.streamsProgress=N.streamsProgress.map(function(q){var h=Object.assign({},q);h.numBytesDownloaded=U==="TRANSFER_STATE_COMPLETE"?q.numTotalBytes:q.numBytesDownloaded;return h});
return N}).map(function(R){return R.streamsProgress})));
var F=G=0;B=_.C(B);for(var D=B.next();!D.done;D=B.next()){var u=D.value;D=Number(u.numBytesDownloaded);u=Number(u.numTotalBytes);F+=isNaN(D)?0:D;G+=isNaN(u)?0:u}return G===0?0:Math.round(F*100/G)/100};
WFg=function(G){if(!G||!G.expirationTimestamp||!G.action)return!1;var B=(0,_.Zl)()/1E3;return Number(G.expirationTimestamp)>=B};
F9=function(G){return G&&G.expirationTimestamp&&G.action?WFg(G)&&G.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.DV=function(G){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(G||"TRANSFER_STATE_UNKNOWN")};
H9I=function(G){var B=new IaM;if(G!==void 0){var F=Math.ceil(Math.log2(G.length*4+2)/7);F=F===void 0?2:F;fR(B,10);B.submessagePosStack.push(B.pos);B.submessagePosStack.push(F);B.pos+=F;tJ(B,G.length*1.2);F=YpS(G,B.buf.subarray(B.pos));B.pos+F>B.buf.length&&(tJ(B,F),F=YpS(G,B.buf.subarray(B.pos)));B.pos+=F;G=B.submessagePosStack.pop();F=B.submessagePosStack.pop();for(var D=B.pos-F-G;G--;){var u=G?128:0;B.view.setUint8(F++,D&127|u);D>>=7}}B=new Uint8Array(B.buf.buffer,B.buf.byteOffset,B.pos);return(new TextDecoder("utf-8")).decode(B)};
_.uo=function(G){var B=0;G=_.C(G);for(var F=G.next(),D={};!F.done;D={transferState$jscomp$3:void 0},F=G.next()){var u=F.value,R=void 0;F=(R=u.streamEntity)!=null?R:{};R=void 0;D.transferState$jscomp$3=(R=u.transferEntity)==null?void 0:R.transferState;R=u=void 0;((u=F)==null?0:(R=u.streamsProgress)==null?0:R.length)&&F.streamsProgress.forEach(function(N){return function(y){y=Number(N.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?y.numTotalBytes:y.numBytesDownloaded);isFinite(y)&&(B+=y)}}(D))}return B};
kjJ=function(G){return G.some(function(B){var F;if(!(B==null?0:(F=B.transferEntity)==null?0:F.transferState)){var D;return!(B==null?0:(D=B.policyEntity)==null?0:D.action)||B.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return j5L.includes(B.transferEntity.transferState)})};
O9o=function(G,B){if(!B)return!1;if(_.X("of_pb_en_po_ks"))return!0;var F;G=(F=_.g5(G,"offlineVideoPolicy",_.Z4(B,"offlineVideoPolicy")))!=null?F:void 0;return!!G&&F9(G)};
_.$Rg=function(G){var B=["TRANSFER_STATE_COMPLETE"];B=B===void 0?ejS:B;return G.filter(function(F){var D,u;return B.includes((u=(D=F.transferEntity)==null?void 0:D.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN")})};
zjc=function(G,B){if(B){var F,D=(F=_.g5(G,"playbackData",_.Z4(B,"playbackData")))!=null?F:null,u;F=(u=_.g5(G,"transfer",_.Z4(B,"transfer")))!=null?u:null;var R;u=(R=_.g5(G,"offlineVideoStreams",_.Z4(B,"offlineVideoStreams")))!=null?R:null;var N;G=(N=_.g5(G,"offlineVideoPolicy",_.Z4(B,"offlineVideoPolicy")))!=null?N:null;if(D||F||u||G)return{playbackDataEntity:D,transferEntity:F,streamEntity:u,policyEntity:G}}};
_.R9=function(G){var B=G.playbackData;if(!B)return[];var F=[];B=_.C(Object.keys(B));for(var D=B.next();!D.done;D=B.next()){var u=D.value;if(!b9M(G,_.cT(u).entityId)&&(D=zjc(G,_.cT(u).entityId))){var R=void 0,N=void 0;u=(N=Number((R=_.g5(G,"playbackData",u))==null?void 0:R.streamDownloadTimestampSeconds))!=null?N:(0,_.Zl)();F.push({entity:D,streamDownloadTimestamp:u})}}return F.sort(function(y,U){var q=y.streamDownloadTimestamp,h=U.streamDownloadTimestamp;return h===q?y.entity.streamEntity&&!U.entity.streamEntity?
1:-1:h-q}).map(function(y){return y.entity})};
VCM=function(G){return _.$Rg(_.R9(G))};
_.vYo=function(G){return _.R9(G).filter(function(B){var F;if(((F=B.policyEntity)==null?0:F.action)&&B.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var D;if((D=B.transferEntity)==null?0:D.transferState){var u;return j5L.includes((u=B.transferEntity)==null?void 0:u.transferState)}return!0})};
b9M=function(G,B){var F;return((F=_.g5(G,"downloadStatusEntity",_.Z4(B,"downloadStatusEntity")))==null?void 0:F.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
oYJ=function(G){var B;if(G==null?0:(B=G.playbackDataEntity)==null?0:B.key)return _.cT(G.playbackDataEntity.key).entityId;var F;if(G==null?0:(F=G.transferEntity)==null?0:F.key)return _.cT(G.transferEntity.key).entityId;var D;if(G==null?0:(D=G.streamEntity)==null?0:D.key)return _.cT(G.streamEntity.key).entityId;var u;if(G==null?0:(u=G.policyEntity)==null?0:u.key)return _.cT(G.policyEntity.key).entityId};
pj6=function(G){var B=new Set,F;G=(F=G.mainDownloadsListEntity)==null?void 0:F[MCs];var D;if(!(G==null?0:(D=G.downloads)==null?0:D.length))return B;var u;G==null||(u=G.downloads)==null||u.forEach(function(R){(R==null?0:R.videoItem)&&B.add(R.videoItem)});
return B};
w8=function(G,B){if(B){var F=_.g5(G,"mainVideoEntity",_.Z4(B,"mainVideoEntity")),D=_.g5(G,"downloadStatusEntity",_.Z4(B,"downloadStatusEntity")),u=_.g5(G,"ytMainChannelEntity",_.Z4(B,"ytMainChannelEntity")),R={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};G=zjc(G,B);D=(D==null?void 0:D.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.X("woffle_render_failed_download_state_ks")&&(D==null?void 0:D.downloadState)==="DOWNLOAD_STATE_FAILED";!G&&D&&(G=R);if(G&&F&&
u)return Object.assign({},{videoEntity:F,channelEntity:u},G)}};
AWz=function(G,B){return Yeg(G,B)==="TRANSFER_STATE_COMPLETE"&&O9o(G,B)};
dRo=function(G,B){if(!B)return!1;var F;G=(F=_.g5(G,"playbackData",_.Z4(B,"playbackData")))!=null?F:void 0;return!!G&&!!G.playerResponseJson};
Yeg=function(G,B){if(!B)return"TRANSFER_STATE_UNKNOWN";var F=_.g5(G,"transfer",_.Z4(B,"transfer"));if(F){var D;return(D=F.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN"}F=_.g5(G,"offlineOrchestrationActionWrapperEntity",_.Z4(B,"offlineOrchestrationActionWrapperEntity"));G=_.g5(G,"mainVideoEntity",_.Z4(B,"mainVideoEntity"));return F||G?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
JWL=function(G,B){if(!B)return"TRANSFER_STATE_UNKNOWN";if(G=_.g5(G,"transfer",_.Z4(B,"transfer"))){var F;return(F=G.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
cWo=function(G,B){return B&&(G=_.g5(G,"videoPlaybackPositionEntity",_.Z4(B,"videoPlaybackPositionEntity")),G==null?0:G.lastPlaybackPositionSeconds)?Number(G.lastPlaybackPositionSeconds):0};
I7M=function(G,B){return Tlg(G).some(function(F){var D;return(F==null?void 0:(D=F.mainPlaylistEntity)==null?void 0:D.playlistId)===B})};
tCz=function(G,B,F){var D=f7l(G,B);if(!D.length)return[];B=[];D=_.C(D);for(var u=D.next();!u.done;u=D.next()){u=u.value;var R=w8(G,u);F&&Yeg(G,u)!=="TRANSFER_STATE_COMPLETE"||R&&B.push(R)}return B};
f7l=function(G,B){if(!B)return[];var F=_.Z4(B,"mainPlaylistEntity"),D;B=(D=G.mainPlaylistEntity)==null?void 0:D[F];D=[];if(B==null||!B.videos)return D;B=_.C(B.videos);for(F=B.next();!F.done;F=B.next()){F=F.value;var u=void 0,R=void 0,N=void 0,y=(u=G)==null?void 0:(R=u.mainPlaylistVideoEntity)==null?void 0:(N=R[F])==null?void 0:N.video;y&&(F=_.cT(y).entityId)&&D.push(F)}return D};
Z9g=function(G,B){if(B){var F=_.g5(G,"mainPlaylistEntity",_.Z4(B,"mainPlaylistEntity")),D=_.g5(G,"mainPlaylistDownloadStateEntity",_.Z4(B,"mainPlaylistDownloadStateEntity"));G=_.g5(G,"ytMainChannelEntity",_.Z4(B,"ytMainChannelEntity"));if(D&&F)return Object.assign({},{mainPlaylistEntity:F,mainPlaylistDownloadStateEntity:D},!!G&&{channelEntity:G})}};
Tlg=function(G){return gY6(G).sort(function(B,F){return F.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return B.downloadedPlaylistEntities})};
gY6=function(G){var B=G.mainPlaylistDownloadStateEntity,F=[];if(!B)return F;for(var D=_.C(Object.keys(B)),u=D.next();!u.done;u=D.next()){var R=u.value;u=Z9g(G,_.cT(R).entityId);var N=void 0;R=Number((N=B[R])==null?void 0:N.addedTimestampMillis);N=isNaN(R)?(0,_.Zl)():R;u!==void 0&&F.push({downloadedPlaylistEntities:u,addedTimestampMillis:N})}return F};
Sec=function(G){var B,F=(B=G.mainPlaylistVideoEntity)!=null?B:{};return new Set(Tlg(G).reduce(function(D,u){D=D===void 0?[]:D;var R,N;u==null||(R=u.mainPlaylistEntity)==null||(N=R.videos)==null||N.forEach(function(y){var U;(y=(U=F[y])==null?void 0:U.video)&&D.push(y)});
return D},[]))};
s58=function(G){return"downloadedMusicPlaylistEntities"in G};
xRg=function(G){return"mainPlaylistEntity"in G&&"mainPlaylistDownloadStateEntity"in G};
Pxg=function(G){return"videoEntity"in G&&"channelEntity"in G};
GiJ=function(G){var B=G.musicPlaylistDownloadMetadataEntity,F=[];if(!B)return F;for(var D=_.C(Object.keys(B)),u=D.next();!u.done;u=D.next()){u=u.value;a:{var R=G,N=_.cT(u).entityId;if(N){var y=_.g5(R,"musicPlaylist",_.Z4(N,"musicPlaylist"));R=_.g5(R,"musicPlaylistDownloadMetadataEntity",_.Z4(N,"musicPlaylistDownloadMetadataEntity"));if(y&&R){y={musicPlaylistEntity:y,musicPlaylistDownloadStateEntity:R};break a}}y=void 0}R=void 0;u=Number((R=B[u])==null?void 0:R.addedTimestampMillis);u=isNaN(u)?(0,_.Zl)():
u;y!==void 0&&F.push({downloadedMusicPlaylistEntities:y,addedTimestampMillis:u})}return F};
BA8=function(G){var B=new Set;G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,"musicPlaylistEntity"in F&&"musicPlaylistDownloadStateEntity"in F){F=_.C(F.musicPlaylistEntity.tracks);for(var D=F.next();!D.done;D=F.next())B.add(D.value)}return B};
i36=function(G,B){if(B){var F=_.g5(G,"musicTrack",_.Z4(B,"musicTrack")),D=_.g5(G,"musicArtist",_.Z4(B,"musicArtist"))||{};if((G=zjc(G,B))&&F&&D)return Object.assign({},{musicTrackEntity:F,musicArtistEntity:D},G)}};
F7L=function(G){var B=G.musicTrackDownloadMetadataEntity,F=[];if(!B)return[];B=_.C(Object.keys(B));for(var D=B.next();!D.done;D=B.next()){var u=D.value;D=i36(G,_.cT(u).entityId);var R=void 0;u=Number((R=_.g5(G,"musicTrackDownloadMetadataEntity",u))==null?void 0:R.addedTimestampMillis);R=isNaN(u)?(0,_.Zl)():u;D!==void 0&&F.push({downloadedMusicEntities:D,addedTimestampMillis:R})}return F};
Rog=function(G,B){if(!B)return[];if(Object.values(Dvg).includes(B))return u6g(G,B);B=_.Z4(B,"musicPlaylist");var F;G=(F=G.musicPlaylist)==null?void 0:F[B];F=[];if(G==null||!G.tracks)return F;G=_.C(G.tracks);for(B=G.next();!B.done;B=G.next())(B=_.cT(B.value).entityId)&&F.push(B);return F};
u6g=function(G,B){var F=new Set,D=GiJ(G).map(function(R){return R.downloadedMusicPlaylistEntities});
D=BA8(D);D=_.C(D);for(var u=D.next();!u.done;u=D.next())(u=_.cT(u.value).entityId)&&F.add(u);return w9o(G).downloadedMusicEntities.filter(function(R){var N;if((N=R.musicTrackEntity)!=null&&N.videoId){R=R.musicTrackEntity;if(N=B==="PPOM"?!0:!F.has(R.videoId))b:switch(R=R.musicVideoType,B){case "PPSE":N=R==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:N=R!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}R=N}else R=!1;return R}).map(function(R){var N;
return(N=R.musicTrackEntity)==null?void 0:N.videoId})};
w9o=function(G){var B=F7L(G).sort(function(F,D){return D.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return"downloadedMusicEntities"in F?F.downloadedMusicEntities:s58(F)?F.downloadedMusicPlaylistEntities:{}});
G=GiJ(G).sort(function(F,D){return D.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return"downloadedMusicEntities"in F?F.downloadedMusicEntities:s58(F)?F.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:B,downloadedMusicPlaylistEntities:G}};
NAM=function(G,B){B=_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Rog(G,B):f7l(G,B);if(!B.length)return"TRANSFER_STATE_UNKNOWN";B=B.map(function(F){return JWL(G,F)});
return C3U(B)};
C3U=function(G){var B=new Set(G);if(B.has("TRANSFER_STATE_FAILED")&&B.size===1)return"TRANSFER_STATE_FAILED";B.delete("TRANSFER_STATE_FAILED");if(B.has("TRANSFER_STATE_UNKNOWN")&&B.size===1)return"TRANSFER_STATE_PRE_TRANSFER";B.delete("TRANSFER_STATE_UNKNOWN");if(B.has("TRANSFER_STATE_PRE_TRANSFER")&&B.size===1||B.size===0)return"TRANSFER_STATE_PRE_TRANSFER";G=B.has("TRANSFER_STATE_TRANSFERRING");B=B.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return G||B?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
CJ=function(G){var B=G.mainVideoDownloadStateEntity,F=[];if(!B)return[];B=_.C(Object.keys(B));for(var D=B.next();!D.done;D=B.next()){var u=D.value;if(!b9M(G,_.cT(u).entityId)){D=w8(G,_.cT(u).entityId);var R=void 0,N=void 0;u=(N=Number((R=_.g5(G,"mainVideoDownloadStateEntity",u))==null?void 0:R.addedTimestampMillis))!=null?N:(0,_.Zl)();D!==void 0&&F.push({downloadedVideoEntities:D,addedTimestampMillis:u})}}return F};
yfQ=function(G){return CJ(G).sort(function(B,F){return F.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return B.downloadedVideoEntities})};
_.lsQ=function(G){var B=Sec(G),F=_.ND(G),D=pj6(G),u=CJ(G).filter(function(N){var y,U;if((N==null?void 0:(y=N.downloadedVideoEntities)==null?void 0:(U=y.transferEntity)==null?void 0:U.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var q,h;N=N==null?void 0:(q=N.downloadedVideoEntities)==null?void 0:(h=q.videoEntity)==null?void 0:h.key;return _.X("kevlar_use_library_entity")?N&&(D.has(N)||F[N]):N&&!B.has(N)}),R=gY6(G).filter(function(N){return NAM(G,N.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.gi(u),_.gi(R)).sort(function(N,y){return y.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return nVU(N)})};
UvM=function(G,B){if(B&&O9o(G,B)){var F,D,u=(D=(F=_.g5(G,"playbackData",_.Z4(B,"playbackData")))!=null?F:void 0)==null?void 0:D.playerResponseJson;if(u){try{var R=JSON.parse(u);var N=_.g5(G,"transfer",_.Z4(B,"transfer")),y=cWo(G,B);y&&(R=Object.assign({},R,{playerConfig:Object.assign({},R.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+y*1E3}}})}));R.cotn=N==null?void 0:N.cotn}catch(U){}return R}}};
_.EVs=function(G){var B,F,D;G=(D=(F=((B=G.downloadsPageViewConfigurationEntity)!=null?B:{})[_.yU])==null?void 0:F.smartDownloadsOptInBannerVisibility)!=null?D:{};var u;return(u=_.Q(G,q5c))!=null?u:{}};
_.ND=function(G){var B,F,D;G=(D=(F=((B=G.mainDownloadsListEntity)!=null?B:{})[_.hos])==null?void 0:F.downloads)!=null?D:[];B={};F=_.C(G);for(D=F.next();!D.done;D=F.next())G=void 0,B[(G=D.value.videoItem)!=null?G:""]=!0;return B};
K7L=function(G){var B=_.ND(G);if(Object.keys(B).length===0)return!1;var F=G.mainVideoEntity;if(!F)return!0;F=_.C(Object.keys(F));for(var D=F.next();!D.done;D=F.next()){D=D.value;var u=_.cT(D).entityId;if(B[D]&&!b9M(G,u))return!1}return!0};
_.nJ=function(G){var B=_.ND(G);return CJ(G).sort(function(F,D){return F.addedTimestampMillis-D.addedTimestampMillis}).map(function(F){return F.downloadedVideoEntities}).filter(function(F){var D;
return(F=F==null?void 0:(D=F.videoEntity)==null?void 0:D.key)&&!!B[F]})};
_.mvo=function(G){var B,F,D;G=(D=(F=((B=G.downloadsPageViewConfigurationEntity)!=null?B:{})[_.yU])==null?void 0:F.downloadsUpsellBannerVisibility)!=null?D:{};var u;return(u=_.Q(G,as6))!=null?u:{}};
nVU=function(G){return"downloadedVideoEntities"in G?G.downloadedVideoEntities:"downloadedPlaylistEntities"in G?G.downloadedPlaylistEntities:{}};
X98=function(G){var B=_.ND(G),F=Sec(G),D=CJ(G).filter(function(u){var R,N;return(u=u==null?void 0:(R=u.downloadedVideoEntities)==null?void 0:(N=R.videoEntity)==null?void 0:N.key)&&!B[u]&&!F.has(u)});
G=gY6(G);return[].concat(_.gi(D),_.gi(G)).sort(function(u,R){return R.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return nVU(u)})};
_.lo=function(G){if(!_.X("kevlar_use_library_entity"))return X98(G);var B=CJ(G).filter(function(D){var u,R;if(u=D=D==null?void 0:(u=D.downloadedVideoEntities)==null?void 0:(R=u.videoEntity)==null?void 0:R.key){var N,y,U;u=((y=(N=G.mainDownloadsListEntity)==null?void 0:N[MCs])==null?0:(U=y.downloads)==null?0:U.length)?pj6(G).has(D):!1}return u}),F=gY6(G);
return[].concat(_.gi(B),_.gi(F)).sort(function(D,u){return u.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return nVU(D)})};
QJS=function(G){var B=_.ND(G),F=Sec(G);return yfQ(G).filter(function(D){var u;return(D=D==null?void 0:(u=D.videoEntity)==null?void 0:u.key)&&!B[D]&&!F.has(D)})};
jJ6=function(G){if(!_.X("kevlar_use_library_entity"))return QJS(G);var B=_.ND(G),F=pj6(G);return yfQ(G).filter(function(D){var u;return(D=D==null?void 0:(u=D.videoEntity)==null?void 0:u.key)&&!B[D]&&F.has(D)})};
L7g=function(G,B){B=_.Z4(B,"settingEntity");var F,D,u;return!!((u=(D=((F=G.settingEntity)!=null?F:{})[B])==null?void 0:D.settingOptionValue)!=null?u:{}).boolValue};
_.UX=function(G){var B=_.nJ(G);if(kjJ(B))return 0;var F=[];B=_.C(B);for(var D=B.next();!D.done;D=B.next()){D=D.value;var u=void 0,R=void 0;if((u=D)==null?0:(R=u.videoEntity)==null?0:R.key)u=_.cT(D.videoEntity.key).entityId,D=G,u=_.Z4(u,"mainVideoDownloadStateEntity"),D=_.g5(D,"mainVideoDownloadStateEntity",u),(D=Number(D==null?void 0:D.addedTimestampMillis))&&F.push(D)}return Math.max.apply(Math,_.gi(F))};
_.qD=function(G){return G.ui.richGridMiniMode};
_.EX=function(G){return G.ui.richGridItemsPerRow};
_.rfl=function(G){return G.ui.richGridSlimItemsPerRow};
_.W78=function(G){return G.ui.guideIsExpanded};
_.hc=function(G){return G.ui.miniplayerIsActive};
H3I=function(G){return G.ui.singleOptionSurveyIsActive};
_.KJ=function(G){var B;return((B=G.ui)==null?void 0:B.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.kiS=function(G){return _.KJ(G)==="WEB_PAGE_TYPE_WATCH"};
_.O3J=function(G){return _.KJ(G)==="WEB_PAGE_TYPE_SHORTS"};
_.eoc=function(G){return G.ui.inlinePreviewIsActive};
_.$vc=function(G){return G.ui.inlinePreviewIsEnabled};
_.zo8=function(G){return G.ui.miniplayerPlaybackState};
_.a9=function(G){return G.ui.isOnline};
_.b3J=function(G){return G.ui.frostedGlassMode};
_.mD=function(G,B){return Yeg(G.entities,B)};
_.X9=function(G,B){return NAM(G.entities,B)};
VpI=function(G,B){var F;if(B){var D;G=(D=_.g5(G.entities,"offlineVideoPolicy",_.Z4(B,"offlineVideoPolicy")))==null?void 0:D.action}else G=void 0;return(F=G)!=null?F:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
vVM=function(G,B){var F;B?(G=_.g5(G.entities,"offlineVideoPolicy",_.Z4(B,"offlineVideoPolicy")),G=Number(G==null?void 0:G.expirationTimestamp)):G=void 0;return(F=G)!=null?F:0};
_.oVM=function(G){return _.R9(G.entities).length};
MpI=function(G,B){return w8(G.entities,B)};
p9l=function(G,B){return Z9g(G.entities,B)};
QU=function(G,B){return(G=w8(G.entities,B))?_.LFL([G]):0};
_.Y56=function(G,B){var F=_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(F){var D=G.entities;var u=Rog(D,B);if(u.length){var R=[];u=_.C(u);for(var N=u.next();!N.done;N=u.next())(N=i36(D,N.value))&&R.push(N);D=R}else D=[]}else D=tCz(G.entities,B);var y;if(F){var U=G.entities;B?(B=_.Z4(B,"musicPlaylist"),U=(y=U.musicPlaylist)==null?void 0:y[B],y=U!=null&&U.tracks?U.tracks.length:0):y=0}else y=G.entities,B?(B=_.Z4(B,"mainPlaylistEntity"),y=(U=y.mainPlaylistEntity)==null?void 0:U[B],y=y!=null&&y.videos?
y.videos.length:0):y=0;return D.length!==y?0:D?rWg(D):0};
_.Afg=function(G){return G.download.isLeaderTab};
_.dvL=function(G,B,F){if(!B&&F){var D=G.entities;if(F){var u=H9I(F),R,N;B=(N=(R=_.g5(D,"offlineabilityEntity",_.Z4(u,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?N:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else B="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else R=G.entities,B?(N=H9I(B),B=(u=(D=_.g5(R,"offlineabilityEntity",_.Z4(N,"offlineabilityEntity")))==null?void 0:D.addToOfflineButtonState)!=null?u:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):B="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return B};
Jfs=function(G,B){G=G.entities;if(B){B=H9I(B);var F,D;B=(D=(F=_.g5(G,"offlineabilityEntity",_.Z4(B,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?D:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else B="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return B};
_.cfI=function(G){var B=G.entities;G=_.a9(G);var F=L7g(B,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.X("kevlar_modern_downloads_page")&&F)var D=!1;else{var u,R;B=(R=(u=((D=B.downloadsPageViewConfigurationEntity)!=null?D:{})[_.yU])==null?void 0:u.smartDownloadsOptInBannerVisibility)!=null?R:{};D=G?!!B.visibleWithConnection:!!B.visibleWithoutConnection}return D};
_.TAc=function(G){return L7g(G.entities,"SMART_DOWNLOADS_ENABLED")};
_.IsU=function(G){return K7L(G.entities)};
fsS=function(G){return _.nJ(G.entities).every(function(B){var F;return(B==null?void 0:(F=B.transferEntity)==null?void 0:F.transferState)&&!j5L.includes(B.transferEntity.transferState)})};
_.tps=function(G){var B,F,D,u=(D=(F=((B=G.entities.downloadsPageViewConfigurationEntity)!=null?B:{})[_.yU])==null?void 0:F.downloadsUpsellBannerVisibility)!=null?D:{};return _.a9(G)?!!u.visibleWithConnection:!!u.visibleWithoutConnection};
_.Z3g=function(G,B){return b9M(G.entities,B)};
gVz=function(G,B){if(B){var F,D;G=(D=(F=_.g5(G.entities,"downloadStatusEntity",_.Z4(B,"downloadStatusEntity")))==null?void 0:F.downloadState)!=null?D:"DOWNLOAD_STATE_UNKNOWN"}else G="DOWNLOAD_STATE_UNKNOWN";return G};
jw=function(G,B){return cWo(G.entities,B)};
HLS=function(G){G=S5M(G);var B=G.hours===void 0?0:G.hours,F=G.minutes===void 0?0:G.minutes,D=G.seconds===void 0?0:G.seconds,u=B>0;G=[];u&&(B=sJz(B),G.push(B));B=u;B=B===void 0?!1:B;F=(["af","be","lt"].includes(LJ)||B)&&F<10?WPI().format(F):(new Intl.NumberFormat("en-u-nu-latn")).format(F);G.push(F);F=WPI().format(D);G.push(F);F=":";"da fi id si sr sr-Latn".split(" ").includes(LJ)&&(F=".");return G.join(F)};
_.OLQ=function(G){G=S5M(G);var B=G.hours===void 0?0:G.hours,F=G.minutes===void 0?0:G.minutes,D=G.seconds===void 0?0:G.seconds;G=[];if(B>0){var u=kls().format({hours:B});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(LJ)||B>9999)u=u.replace(B.toString(),sJz(B)),LJ==="km"&&(u=u.replace(".",","));G.push(u)}F>0&&G.push(kls().format({minutes:F}));D>0&&G.push(kls().format({seconds:D}));B="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");F=LJ=="am"?"{0}\u1363 ":LJ=="fa"?"{0}\u060c\u200f ":
LJ=="my"?"{0} - ":LJ=="th"?"{0} ":LJ=="ur"?"{0}\u060c ":LJ=="ar"||LJ=="ar-XB"?"{0} \u0648":LJ=="ja"||LJ=="zh-CN"||LJ=="zh-HK"||LJ=="zh-TW"?"{0}\u3001":"{0}, ";D=LJ=="am"?"\u1363 ":LJ=="fa"?"\u060c\u200f ":LJ=="my"?" - ":LJ=="th"?" ":LJ=="ur"?"\u060c ":LJ=="ar"||LJ=="ar-XB"?" \u0648":LJ=="ja"||LJ=="zh-CN"||LJ=="zh-HK"||LJ=="zh-TW"?"\u3001":", ";u=LJ=="am"?" \u12a5\u1293 {0}":LJ=="as"?" \u0986\u09f0\u09c1 {0}":LJ=="az"?" v\u0259 {0}":LJ=="bn"?" \u098f\u09ac\u0982 {0}":LJ=="cs"?" a\u00a0{0}":LJ=="de"?
" und {0}":LJ=="el"?" \u03ba\u03b1\u03b9 {0}":LJ=="eu"?" eta {0}":LJ=="fa"?"\u060c \u0648 {0}":LJ=="fil"?", at {0}":LJ=="gu"?" \u0a85\u0aa8\u0ac7 {0}":LJ=="hi"?", \u0914\u0930 {0}":LJ=="hu"?" \u00e9s {0}":LJ=="hy"?" \u0587 {0}":LJ=="id"?", dan {0}":LJ=="iw"?" \u05d5-{0}":LJ=="ja"?"\u3001{0}":LJ=="ka"?" \u10d3\u10d0 {0}":LJ=="km"?" \u1793\u17b7\u1784 {0}":LJ=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":LJ=="ko"?" \ubc0f {0}":LJ=="ky"?" \u0436\u0430\u043d\u0430 {0}":LJ=="lt"?" ir {0}":LJ=="lv"?" un {0}":
LJ=="mr"?" \u0906\u0923\u093f {0}":LJ=="ms"?" dan {0}":LJ=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":LJ=="ne"?" \u0930 {0}":LJ=="or"?", \u0b13 {0}":LJ=="pa"?" \u0a05\u0a24\u0a47 {0}":LJ=="ro"?" \u0219i {0}":LJ=="si"?", \u0dc3\u0dc4 {0}":LJ=="sk"?" a {0}":LJ=="sl"?" in {0}":LJ=="sq"?" dhe {0}":LJ=="sv"?" och {0}":LJ=="sw"?" na {0}":LJ=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":LJ=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":LJ=="th"?" \u0e41\u0e25\u0e30{0}":LJ=="tr"?" ve {0}":LJ=="ur"?
"\u060c \u0627\u0648\u0631 {0}":LJ=="uz"?" va {0}":LJ=="vi"?" v\u00e0 {0}":LJ=="zh-HK"?"\u53ca{0}":LJ=="zu"?", ne-{0}":LJ=="af"||LJ=="nl"?" en {0}":LJ=="ar"||LJ=="ar-XB"?" \u0648{0}":LJ=="be"||LJ=="uk"?" \u0456 {0}":LJ=="en-GB"||LJ=="en-IN"?" and {0}":LJ=="en"||LJ=="en-XA"?", and {0}":LJ=="et"||LJ=="fi"?" ja {0}":LJ=="fr"||LJ=="fr-CA"?" et {0}":LJ=="zh-CN"||LJ=="zh-TW"?"\u548c{0}":LJ=="da"||LJ=="is"||LJ=="no"?" og {0}":LJ=="es"||LJ=="es-419"||LJ=="es-US"?" y {0}":LJ=="bg"||LJ=="mk"||LJ=="ru"||LJ==
"sr"?" \u0438 {0}":LJ=="gl"||LJ=="it"||LJ=="pt-BR"||LJ=="pt-PT"?" e {0}":LJ=="kk"||LJ=="lo"||LJ=="ml"||LJ=="mn"?", {0}":" i {0}";var R=LJ=="am"?"{0} \u12a5\u1293 {1}":LJ=="as"?"{0} \u0986\u09f0\u09c1 {1}":LJ=="az"?"{0} v\u0259 {1}":LJ=="bn"?"{0} \u098f\u09ac\u0982 {1}":LJ=="de"?"{0} und {1}":LJ=="el"?"{0} \u03ba\u03b1\u03b9 {1}":LJ=="eu"?"{0} eta {1}":LJ=="fa"?"{0} \u0648 {1}":LJ=="fil"?"{0} at {1}":LJ=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":LJ=="hi"?"{0} \u0914\u0930 {1}":LJ=="hu"?"{0} \u00e9s {1}":LJ==
"hy"?"{0} \u0587 {1}":LJ=="iw"?"{0} \u05d5-{1}":LJ=="ja"?"{0}\u3001{1}":LJ=="ka"?"{0} \u10d3\u10d0 {1}":LJ=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":LJ=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":LJ=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":LJ=="ko"?"{0} \ubc0f {1}":LJ=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":LJ=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":LJ=="lt"?"{0} ir {1}":LJ=="lv"?"{0} un {1}":LJ=="mr"?"{0} \u0906\u0923\u093f {1}":LJ=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":LJ=="ne"?"{0} \u0930 {1}":
LJ=="or"?"{0} \u0b13 {1}":LJ=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":LJ=="ro"?"{0} \u0219i {1}":LJ=="si"?"{0} \u0dc3\u0dc4 {1}":LJ=="sl"?"{0} in {1}":LJ=="sq"?"{0} dhe {1}":LJ=="sv"?"{0} och {1}":LJ=="sw"?"{0} na {1}":LJ=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":LJ=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":LJ=="th"?"{0}\u0e41\u0e25\u0e30{1}":LJ=="tr"?"{0} ve {1}":LJ=="ur"?"{0} \u0627\u0648\u0631 {1}":LJ=="uz"?"{0} va {1}":LJ=="vi"?"{0} v\u00e0 {1}":LJ=="zh-HK"?"{0}\u53ca{1}":LJ==
"zu"?"{0} ne-{1}":LJ=="af"||LJ=="nl"?"{0} en {1}":LJ=="ar"||LJ=="ar-XB"?"{0} \u0648{1}":LJ=="be"||LJ=="uk"?"{0} \u0456 {1}":LJ=="cs"||LJ=="sk"?"{0} a\u00a0{1}":LJ=="et"||LJ=="fi"?"{0} ja {1}":LJ=="fr"||LJ=="fr-CA"?"{0} et {1}":LJ=="id"||LJ=="ms"?"{0} dan {1}":LJ=="ml"||LJ=="mn"?"{0}, {1}":LJ=="zh-CN"||LJ=="zh-TW"?"{0}\u548c{1}":LJ=="da"||LJ=="is"||LJ=="no"?"{0} og {1}":LJ=="es"||LJ=="es-419"||LJ=="es-US"?"{0} y {1}":LJ=="bg"||LJ=="mk"||LJ=="ru"||LJ=="sr"?"{0} \u0438 {1}":LJ=="en"||LJ=="en-GB"||LJ==
"en-IN"||LJ=="en-XA"?"{0} and {1}":LJ=="gl"||LJ=="it"||LJ=="pt-BR"||LJ=="pt-PT"?"{0} e {1}":"{0} i {1}";LJ==="sq"?(u=u.replace("dhe","e"),R=R.replace("dhe","e")):LJ==="th"?(D=D.replace("{0}"," {0}"),R=R.replace("{0}","{0} "),R=R.replace("{1}"," {1}")):LJ==="ne"?D=",":LJ==="zh-CN"?D="":B.includes(LJ)&&(D=" ");return G.length<2?G.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(LJ)?
G.length===2?R.replace("{0}",G[0]).replace("{1}",G[1]):F.replace("{0}",G[0])+G.slice(1,-1).join(D)+u.replace("{0}",G[G.length-1]):G.join(D)};
S5M=function(G){var B=G.hours||0,F=G.minutes||0,D=G.seconds||0;B=D+F*60+B*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;if(B<=0)return{hours:0,minutes:0,seconds:0};G=B;B=Math.floor(G/3600);G%=3600;F=Math.floor(G/60);D=Math.floor(G%60);return{hours:B,minutes:F,seconds:D}};
sJz=function(G){G=(new Intl.NumberFormat("en-u-nu-latn")).format(G);var B=["fr"],F="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(LJ)?G.replace(",","\u00a0"):B.includes(LJ)?G.replace(",","\u202f"):F.includes(LJ)?G.replace(",","."):G};
WPI=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
kls=function(){e_S||(r8=$2g,e_S=new z_Q);return e_S};
bLg=function(G){try{return(new _.W2(5)).format(G)}catch(B){}};
H2=function(G){return{thumbnailOverlayDownloadingRenderer:{state:G}}};
Vh8=function(){var G=_.G7("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.pR(G),icon:{iconType:"PLAY_ALL"}}}};
vjS=function(G){G=_.k9(G,2);return LJ!=="ru"&&LJ!=="es_419"&&LJ!=="es-419"&&LJ!=="es"&&LJ!=="es_US"&&LJ!=="es-US"&&LJ!=="fr"&&LJ!=="pl"&&LJ!=="it"&&LJ!=="nl"&&LJ!=="uk"&&LJ!=="fr_CA"&&LJ!=="fr-CA"||G===""?G:G[0].toLocaleUpperCase()+G.substring(1)};
MhI=function(G){return function(B){var F=G(),D=_.k9(B,F.dateFormat);B=_.k9(B,F.timeFormat);var u=ojS.DATETIMEFORMATS[F.joinerStyle];u=u.replace(/'(?!')/g,"");u=u.replace("{0}",B);u=u.replace("{1}",D);return F.capitalize(u)}};
pMl=function(G){return G?typeof G.seconds==="string"&&(G.nanos===void 0||typeof G.nanos==="number"):!1};
YBL=function(G){return new Date(Number(G.seconds)*1E3+(G.nanos||0)*1E-6)};
_.k9=function(G,B){if(typeof G.getTime==="function")G={date:G};else if(pMl(G))G={date:YBL(G)};else if(typeof pMl(G.timestamp)&&typeof G.i18nInternalSecondsEastOfUtc==="number")G={date:YBL(G.timestamp),timeZone:OX(-G.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(G));var F=G;G=F.date;F=F.timeZone;B=A3o(B).format(G,F);LJ==="zh-TW"&&(G=F?Number(A3o("H").format(G,F)):G.getHours(),B=G<5?B.replace("\u4e0a\u5348","\u51cc\u6668"):G<8?B.replace("\u4e0a\u5348","\u65e9\u4e0a"):G<12?
B.replace("\u4e0a\u5348","\u4e0a\u5348"):G<13?B.replace("\u4e0b\u5348","\u4e2d\u5348"):G<19?B.replace("\u4e0b\u5348","\u4e0b\u5348"):B.replace("\u4e0b\u5348","\u665a\u4e0a"));return B};
A3o=function(G){if(d2z.has(G))return d2z.get(G);var B=J3g(G);B=c3z(B);T4M!==!0&&(T4M=!0);IpI=!0;IpI=!1;B=new ew(B,ojS);d2z.set(G,B);return B};
J3g=function(G){return(new ew(G,ojS)).patternParts_.map(function(B){return B.type===0?"'"+B.text+"'":B.text}).join("")};
c3z=function(G){return LJ==="en"||LJ==="es_US"||LJ==="es-US"?G:G.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(B,F,D){return"H".repeat(F.length)+D})};
x2S=function(G,B){fpg||(r8=$2g,fpg=new thJ);var F=fpg;a:if(G=ZLU(G),B=ZLU(B||new Date),G>B)F=G.getTime()-B.getTime()>6048E5?_.k9(G,1):gjc(G);else{for(var D=0;SBM(G,12*(D+1))<B;)++D;if(D>0)F=F.format(-D,0);else{for(D=0;SBM(G,D+1)<B;)++D;if(D>0)F=F.format(-D,2);else{G=B.getTime()-G.getTime();B=_.C(s8U);for(D=B.next();!D.done;D=B.next()){D=D.value;var u=D.unit,R=Math.floor(G/D.unitDuration);if(R>=(D.threshold===void 0?1:D.threshold)){F=F.format(-R,u);break a}}F=F.format(-0,7)}}}return F};
ZLU=function(G){if(typeof G.getTime==="function")return G;if(pMl(G))return YBL(G);throw Error("Nf`"+JSON.stringify(G));};
SBM=function(G,B){for(var F=0,D;;++F)if(D=new Date(G.getFullYear(),G.getMonth()+B,G.getDate()-F,G.getHours(),G.getMinutes(),G.getSeconds()),D.getMonth()===(G.getMonth()+B)%12)return D};
_.$9=function(G){return{runs:[{text:G}]}};
_.zx=function(G){if(G&&G.simpleText)return G.simpleText;var B="";if(G&&G.runs)for(var F=0;F<G.runs.length;F++)G.runs[F].text&&(B+=G.runs[F].text);return B};
GOs=function(G,B,F,D){return G.videoEntity&&!G.policyEntity&&F!=="DOWNLOAD_STATE_FAILED"?[H2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:F9(G.policyEntity)&&B!=="TRANSFER_STATE_FAILED"&&B!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?B==="TRANSFER_STATE_PAUSED_BY_USER"?[H2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.DV(B)?[H2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:G.videoEntity.lengthSeconds?PII(G.videoEntity.lengthSeconds,D):[]:
[H2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
PII=function(G,B){var F=[{thumbnailOverlayTimeStatusRenderer:{text:_.pR(HLS({seconds:G})),style:"DEFAULT"}}];B&&(G=B<=0||G<=0?0:B>=G?100:Math.ceil(B*100/G),G>0&&F.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:G}}));return F};
BkS=function(G,B,F,D,u){if(B==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(_.DV(B)||B==="TRANSFER_STATE_PRE_TRANSFER")var R=[H2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var N,y;if(B==="TRANSFER_STATE_COMPLETE"&&((N=G.mainPlaylistEntity)==null?0:(y=N.videos)==null?0:y.length)){var U;G=(R=G.mainPlaylistEntity)==null?void 0:(U=R.videos)==null?void 0:U.length;R=(R=bLg(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.pR(R),icon:{iconType:"PLAYLISTS"}}}:void 0;R=[Vh8(),Object.assign({},
R!=null?R:{})]}else R=[]}a:if(B==="TRANSFER_STATE_PRE_TRANSFER")F=YI(_.G7("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(B==="TRANSFER_STATE_TRANSFER_IN_QUEUE")F=YI(_.G7("WAITING_TO_DOWNLOAD"));else if(_.DV(B))F=Math.floor(F*100).toString(),F=YI(_.G7("DOWNLOADING_PERCENT",{percent:F},"Downloading... "+F+"%"));else{if(D&&(_.X("playlist_is_offline_selector_killswitch")&&(u=_.te().resolve(_.pu).isNetworkAvailable()),u)){F=b4Q(_.G7("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
$uz(D));break a}F=void 0}B=B==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.G7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},R.length?{thumbnailOverlays:R}:{},F?{viewPlaylistText:F}:{viewPlaylistText:_.$9("")},B.length?{badges:B}:{})};
iUQ=function(G,B,F,D,u,R){if(B==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(D==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var N=GOs(G,B,D);if(G.videoEntity&&!G.policyEntity&&D!=="DOWNLOAD_STATE_FAILED"){var y=_.G7("WAITING_TO_DOWNLOAD");if(y)return{shortViewCountText:_.$9(y),publishedTimeText:void 0,thumbnailOverlays:N}}if(!F9(G.policyEntity)){R=G.policyEntity&&!WFg(G.policyEntity)?_.G7("DOWNLOAD_EXPIRED",{},"Download expired"):
_.G7("TRANSFER_FAILED",{},"Download failed");var U;if((U=G.policyEntity)==null?0:U.shortMessageForDisabledAction)R=G.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:YI(R),publishedTimeText:void 0,thumbnailOverlays:N}}if(B==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.$9(_.G7("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:N};if(B==="TRANSFER_STATE_FAILED"||B==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.$9(_.G7("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:N};if(B==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(U=_.G7("WAITING_TO_DOWNLOAD"),D==="DOWNLOAD_STATE_PAUSED"&&(U=_.G7("DOWNLOAD_PAUSED",{},"Download paused")),U))return{shortViewCountText:_.$9(U),publishedTimeText:void 0,thumbnailOverlays:N};if(_.DV(B))return G=Math.floor(F*100).toString(),{shortViewCountText:_.$9(_.G7("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%")),publishedTimeText:void 0,thumbnailOverlays:N};B=void 0;G.videoEntity.publishedTimestampMillis&&
(B=new Date,u&&(B=new Date(u)),B=YI(x2S(new Date(Number(G.videoEntity.publishedTimestampMillis)),B)));u=[];_.X("kevlar_woffle_badge_killswitch")||(u=[{metadataBadgeRenderer:{label:_.G7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var q;G=YI((q=G.videoEntity.localizedStrings)==null?void 0:q.viewCount);return Object.assign({},R?{shortViewCountText:void 0}:{shortViewCountText:G},R?{}:{publishedTimeText:B},{badges:u,thumbnailOverlays:N})};
DFl=function(G,B){G=G===void 0?FMS:G;switch(B.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:B.payload.playlistId,inviteLinkURL:B.payload.inviteLinkUrl};default:return G}};
Rmo=function(G,B){G=G===void 0?uOM:G;switch(B.type){case "SET_CURRENT_FORM_ID":return B=B.payload.formId,G.currentFormId===B?G:{currentFormId:B,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var F=B.payload;B=F.groupId;F=F.command;if(G.currentFormId){var D=Object.assign({},G.commandsMap);D[B]=F;G=Object.assign({},G,{commandsMap:D})}return G;case "RESET_COMMAND_MAP":return Object.assign({},G,{commandsMap:{}});default:return G}};
CuS=function(G,B){G=G===void 0?wKo:G;switch(B.type){case "UPDATE_CANVAS_MODE":return Object.assign({},G,{currentMode:B.payload.currentMode});default:return G}};
y8S=function(G,B){G=G===void 0?Nkg:G;switch(B.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},G,{guideIsExpanded:B.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},G,{scrollAtTop:B.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},G,{guideIsVisibleButNotPersistent:B.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},G,{miniplayerIsActive:B.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},G,{singleOptionSurveyIsActive:B.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},G,{slimlineSurveyRatingSelectedIndex:B.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},G,{richGridMiniMode:B.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},G,{richGridItemsPerRow:B.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},G,{richGridSlimItemsPerRow:B.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},G,{richGridContainerWidth:B.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},G,{richGridStyle:B.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:B.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},G,{inlinePreviewIsActive:B.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},G,{inlinePreviewIsEnabled:B.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},G,{darkModeIsEnabled:B.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
G,{miniplayerPlaybackState:B.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},G,{tabGesturesIsActive:B.payload});case "SET_ONLINE_STATUS":return Object.assign({},G,{isOnline:B.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},G,{chipBarIsSticky:B.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},G,{frostedGlassMode:B.payload});default:return G}};
nmz=function(){return _.X("kevlar_disable_theater_mode_persistence")?!1:_.on("START_IN_THEATER_MODE")};
UFz=function(G,B){G=G===void 0?lds:G;switch(B.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},G,{transcription:B.payload});case "SET_OVERLAY_STATE":return Object.assign({},G,{overlay:B.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return G}};
LMS=function(){return Xh(Object.assign({},{continuation:qvI,download:Eml,canvas:CuS,reportChannelAbuse:hmg,share:KMS,talkToRecs:adc,ui:y8S,voiceSearch:UFz,watch:mFU,ypc:XKM,shorts:Q$M,radioButtonGroup:Rmo,collabInviteLink:DFl},j$l))};
HUg=function(){return _.X("web_player_entities_middleware")?new bo(LMS(),[r8Q,WM6]):new bo(LMS(),[r8Q])};
_.VU=function(){kOL||(kOL=HUg());return kOL};
OUz=function(G,B,F){if(G.length)return{titleText:_.pR(B!=null?B:_.G7("DOWNLOADS",void 0,"Downloads")),contents:G.map(function(D){var u=D.videoEntity;D={videoId:u.videoId,title:YI(u.title),shortBylineText:YI(D.channelEntity.title),thumbnail:u.thumbnail};var R=u.videoId?jw(_.VU().getState(),u.videoId):0;u.videoId&&F?D.navigationEndpoint=_.Ma(u.videoId,F,void 0,void 0,R):u.videoId&&(D.navigationEndpoint=ezS(u.videoId,R,u.lengthSeconds));u.lengthSeconds&&(D.thumbnailOverlays=PII(u.lengthSeconds,R));return{playlistPanelVideoRenderer:D}}),
totalVideos:G.length}};
emg=function(G){return(G=(0,_.UK.getValueByKeys)(G,"playlistId"))?{playlistId:G}:null};
$FM=function(){return{}};
zmU=function(G,B){return new _.DS(function(F,D){G.then(function(u){if(u){if(u=B(u))return F(u);D()}},D)})};
bU8=function(G){var B,F,D,u=(B=G.contents)==null?void 0:(F=B.twoColumnWatchNextResults)==null?void 0:(D=F.autoplay)==null?void 0:D.autoplay,R,N,y;B=(R=G.contents)==null?void 0:(N=R.twoColumnWatchNextResults)==null?void 0:(y=N.playlist)==null?void 0:y.playlist;return u&&B&&B.playlistId?{rawResponse:G,autoplayRenderer:u,playlistPanelRenderer:B,playlistId:B.playlistId}:null};
vmg=function(G){var B=B===void 0?"UNKNOWN_INTERFACE":B;if(G.length===1)return G[0];var F=VqJ[B];if(F){F=new RegExp(F);for(var D=_.C(G),u=D.next();!u.done;u=D.next())if(u=u.value,F.exec(u))return u}var R=[];Object.entries(VqJ).forEach(function(N){var y=_.C(N);N=y.next().value;y=y.next().value;B!==N&&R.push(y)});
F=new RegExp(R.join("|"));G.sort(function(N,y){return N.length-y.length});
D=_.C(G);for(u=D.next();!u.done;u=D.next())if(u=u.value,!F.exec(u))return u;return G[0]};
_.v2=function(G){return"/youtubei/v1/"+vmg(G)};
_.o9=function(G,B){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:G}}},B!==void 0?{durationHintMs:B}:{})}};
_.MD=function(G,B){return _.o9(_.$9(G),B)};
omJ=function(G,B){var F={mode:"NORMAL"};G&&(F.autoplayVideo=G.navigationEndpoint,F.nextButtonVideo=G.navigationEndpoint);B&&(F.previousButtonVideo=B.navigationEndpoint);return F};
YvQ=function(G,B,F){if(!F||!F.sets)return{sets:[omJ(G,B)]};var D=F.sets.find(function(N){return N.mode==="NORMAL"}),u=(0,_.UK.unsafeClone)(F);
if(!D)return u.sets.push(omJ(G,B)),u;if(!G)return F;D=_.UK.getValueByKeys.apply(null,[D].concat(_.gi(MqJ)));var R=_.UK.getValueByKeys.apply(null,[G].concat(_.gi(pKU)));if(D===R)return F;u.sets=u.sets.filter(function(N){return N.mode!=="NORMAL"});
u.sets.push(omJ(G,B));return u};
A88=function(G){return!!G.playlistPanelVideoRenderer&&!G.playlistPanelVideoRenderer.unplayableText};
dFo=function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.title};
J8o=function(G,B){if(B.contents&&!(G>=B.contents.length)&&(G=B.contents.slice(G).find(A88)))return G.playlistPanelVideoRenderer};
c8g=function(G,B){if(B.contents)return(B=B.contents.find(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId===G}))?B.playlistPanelVideoRenderer:void 0};
TkS=function(G,B){return B.contents?B.contents.findIndex(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId===G}):-1};
IdM=function(G,B){return B.contents?B.contents.findIndex(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.playlistSetVideoId===G}):-1};
fds=function(G,B){G.contents&&B!==-1&&G.contents.splice(B,1).length===1&&G.totalVideos!==void 0&&(--G.totalVideos,delete G.videoCountText)};
_.tqQ=function(G){var B=[];if(!G||!G.contents)return B;G=_.C(G.contents);for(var F=G.next();!F.done;F=G.next())F=F.value,F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId&&B.push(F.playlistPanelVideoRenderer.videoId);return B};
_.ZUU=function(G){if(G&&G.contents)return(G=G.contents.find(function(B){return!!B.playlistPanelVideoRenderer&&!!B.playlistPanelVideoRenderer.selected})||G.contents[G.currentIndex])?G.playlistPanelVideoRenderer:void 0};
gmM=function(G,B,F,D,u,R,N){u=u===void 0?!1:u;R=R===void 0?!1:R;N=N===void 0?!1:N;if(G.contents&&G.contents.length!==0){D&&(G.contents=G.contents.filter(D));D=G.contents.length;for(var y=0;y<D;y++){var U=G.contents[y].playlistPanelVideoRenderer;U&&(y===B?(R&&delete U.menu,U.indexText=_.$9("\u25b6")):u||G.isInfinite||U.indexText===void 0?delete U.indexText:U.indexText=_.$9((y+1+F).toString()))}G.currentIndex=B+F;N&&(delete G.videoCountText,G.totalVideos=D)}};
_.pJ=function(G){G=cgz(G);if(G){var B=G.length;var F=-40%B;F<0&&(F=B+F);G=G.slice(B-F)+G.slice(0,B-F)}else G="";F="";for(B=0;B<G.length&&G[B]!==Sv6;B++)F+=G[B];return F};
_.s$M=function(G,B){var F=document.body;B=B===void 0?function(y){return y}:B;
var D,u=null;G=_.C(G);for(D=G.next();!D.done;D=G.next()){var R=D.value;D="div";R[2]&&(D=B(R[2]));D=document.createElement(D);u||(u=D);var N=R[0];R=R[1];N&&(D.id=B(N));if(R)for(R=_.C(R),N=R.next();!N.done;N=R.next())D.classList.add(B(N.value));F.appendChild(D);F=D}return[u,F]};
xFl=function(G,B){for(var F="",D=0;D<B;D++)F+=G.charAt(Math.floor(Math.random()*G.length));return F};
Y9=function(G){return xFl("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",G)};
Ac=function(G){return xFl("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",G)};
d8=function(G){return xFl("0123456789",G)};
PuI=function(){var G=performance.now(),B=new Date;var F="2."+B.getFullYear()+String(B.getMonth()+1).padStart(2,"0")+String(B.getDate()).padStart(2,"0");for(var D,u=Math.floor(Math.random()*11)+15,R=[],N=0;N<u;N++)R.push(Math.floor(Math.random()*26476865)+24547720);D=R.join(",");var y=Y9(10),U=Y9(100),q=Y9(102),h=Y9(106),K=Y9(108),a=Y9(11),m=Y9(1140),L=Y9(123),W=Y9(14),e=Y9(16),b=Y9(1900),M=Y9(23),t=Y9(26),T=Y9(34),A=Y9(397),Z=Y9(44),P=Y9(5),RI=Y9(72),yo=Y9(74),hg=Y9(75),US=Y9(88),aI=Y9(91),v6="rr4---sn-q4fl6nz7 rr3---sn-q4fl6nlz rr3---sn-q4fl6nss rr1---sn-5hne6nsz rr5---sn-q4fl6nz6 rr3---sn-5hnekn7k rr3---sn-q4fl6n6y rr4---sn-hgn7rnls rr1---sn-q4fl6nz6 rr4---sn-q4fl6nde rr4---sn-q4fl6n66 rr4---sn-5hnekn7k rr2---sn-5hnekn7d rr5---sn-q4flrnel rr5---sn-4g5ednsy rr5---sn-q4flrn7k rr4---sn-t0a7lnee rr3---sn-q4fl6n6z rr3---sn-q4flrnl6 rr3---sn-5hneknek".split(" ");
var Jg=v6[Math.floor(Math.random()*v6.length)];var c6=(new Date("2010-01-01")).getTime();var q8=(new Date(c6+Math.random()*((new Date).getTime()-c6))).toISOString().split("T")[0];for(var n7,Ts=[],hT=0;hT<4;hT++)Ts.push(Math.floor(Math.random()*100));n7=Ts.join(".");var L7=Number(d8(5)),K7=Number(d8(6)),kD=Number(d8(7)),Rz=Number(d8(9)),KQ=d8(1),pQ=d8(10),aq=d8(16),Zq=d8(19),eN=d8(2),Ps=d8(20),el=d8(21),sG=d8(3),qH=d8(4),TL=d8(5),Iz=d8(6),N8=d8(7),EA=d8(8),EG=d8(9);var f7=xFl("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var M8=[Ac(5),Ac(5),Ac(5)].join("%2C"),NH=[d8(3),d8(5),d8(5)].join("%2C"),Jj=Ac(0),JT=Ac(1),w$=Ac(10),xD=Ac(108),ia=Ac(11),$0=Ac(12),$d=Ac(13),DB=Ac(14),Sy=Ac(15),HY=Ac(16),lZ=Ac(17),OS=Ac(18),Ag=Ac(19),gU=Ac(2),rw=Ac(20),LN=Ac(22),kS=Ac(23),OA=Ac(24),Hs=Ac(266),Ws=Ac(3),d$=Ac(30),RM=Ac(34),mt=Ac(35),VQ=Ac(36),c1=Ac(4),cX=Ac(40),hM=Ac(43),G0=Ac(47),Wo=Ac(5),P7=Ac(6),rs=Ac(7),C4=Ac(75),Uz=Ac(8),m$=Ac(80),eI=Ac(9),XJ="https://www."+Ac(12)+".com",Rt={},$T={},za={},we={},FS={},w2={},XM={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:D}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:F},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Ac(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:F},{key:"client.name",value:"WEB"},{key:"client.fexp",value:D}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:el+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Ac(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:cX,ypcGetOfflineUpsellEndpoint:{params:m$}},trackingParams:mt+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&cnr="+eN+"&ratebypass=yes&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&c=WEB&txp="+N8+"&n="+e+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:K7,width:640,height:360,lastModified:aq,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:N8,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+NH+"&mn="+
M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&cnr="+eN+"&ratebypass=yes&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&c=WEB&txp="+N8+"&n="+e+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+xD+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:K7,width:1280,
height:720,lastModified:aq,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:N8,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+NH+"&mn="+M8+"&ms="+
M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EG+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:kD,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:kD,approxDurationMs:N8},{itag:248,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+NH+"&mn="+M8+"&ms="+M8+"&mv="+
JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EG+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/webm; codecs="vp9"',bitrate:kD,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:kD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:399,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EG+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:kD,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:kD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:136,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EG+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:kD,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:K7,approxDurationMs:N8},{itag:247,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+NH+"&mn="+
M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EG+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/webm; codecs="vp9"',bitrate:kD,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:398,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EG+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:kD,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:135,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:K7,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:K7,approxDurationMs:N8},{itag:244,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+NH+"&mn="+
M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+xD+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/webm; codecs="vp9"',bitrate:K7,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:397,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:K7,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:134,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:K7,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:K7,highReplication:!0,approxDurationMs:N8},{itag:243,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/webm; codecs="vp9"',bitrate:K7,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:396,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:K7,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:133,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:K7,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:K7,approxDurationMs:N8},{itag:242,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+NH+"&mn="+
M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/webm; codecs="vp9"',bitrate:K7,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:395,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:K7,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:K7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:160,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:K7,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:L7,approxDurationMs:N8},{itag:278,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+NH+"&mn="+
M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/webm; codecs="vp9"',bitrate:K7,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:L7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:394,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&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="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=video%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:L7,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:L7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:N8},{itag:140,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=audio%2Fmp4&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:K7,
initRange:{start:"0",end:"631"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:K7,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:N8,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+
eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=audio%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+N8+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'audio/webm; codecs="opus"',bitrate:L7,initRange:{start:"0",end:"265"},indexRange:{start:sG,
end:qH},lastModified:aq,contentLength:N8,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:L7,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:N8,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=audio%2Fwebm&ns="+
OA+"&gir="+Ws+"&clen="+N8+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'audio/webm; codecs="opus"',bitrate:L7,initRange:{start:"0",end:"265"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:N8,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:L7,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:N8,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Jg+".googlevideo.com/videoplayback?expire="+pQ+"&ei="+M+"&ip="+n7+"&id=o-AF"+hM+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+NH+"&mn="+M8+"&ms="+M8+"&mv="+JT+"&mvi="+KQ+"&pl="+eN+"&initcwndbps="+N8+"&siu="+KQ+"&spc="+Z+"&vprv="+KQ+"&svpuc="+KQ+"&mime=audio%2Fwebm&ns="+OA+"&gir="+Ws+"&clen="+EA+"&dur="+EA+"&lmt="+aq+"&mt="+pQ+"&fvip=3&keepalive="+Ws+"&c=WEB&txp="+
N8+"&n="+HY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+K,mimeType:'audio/webm; codecs="opus"',bitrate:K7,initRange:{start:"0",end:"265"},indexRange:{start:sG,end:qH},lastModified:aq,contentLength:EA,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:K7,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:N8,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="+EG+"&docid="+a+"&ei="+M+"&feature="+y+"&fexp="+Jj+"&ns="+gU+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+JT+"&el="+w$+"&len="+qH+"&of="+LN+
"&uga="+eN+"&vm="+Hs},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+EG+"&docid="+a+"&ei="+M+"&feature="+y+"&fexp="+Jj+"&ns="+gU+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+JT+"&el="+w$+"&len="+qH+"&of="+LN+"&uga="+eN+"&vm="+Hs},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+EG+"&docid="+a+"&ei="+M+"&feature="+y+"&fexp="+Jj+"&ns="+gU+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
JT+"&el="+w$+"&len="+qH+"&of="+LN+"&uga="+eN+"&vm="+Hs},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+M+"&m="+US+"&oid="+LN+"&plid="+e+"&pltype="+rs+"&ptchn="+LN+"&ptk="+W+"&video_id="+a},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+EG+"&docid="+a+"&ei="+M+"&event="+DB+"&feature="+y+"&fexp="+Jj+"&ns="+gU+"&plid="+e+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+JT},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
HY+"&ver=2&cmt=1."+sG+"&fmt="+sG+"&fs=0&rt="+TL+"&euri&lact="+sG+"&cl="+EG+"&mos="+KQ+"&volume=100&cbrand="+Wo+"&cbr="+P7+"&cbrver="+n7+"&c=WEB&cver="+F+"&cplayer=UNIPLAYER&cos="+eI+"&cosver="+N8+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+eN+"&len="+EA+"&fexp="+M8+"&feature=g-high-rec&afmt="+sG+"&muted=0&conn=1&docid="+a+"&ei="+M+"&plid="+e+"&vm="+Ac(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
a+"&caps="+Ws+"&opi="+EG+"&xoaf="+KQ+"&hl="+gU+"&ip="+n7+"&ipbits="+KQ+"&expire="+pQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+n7+"&key="+Ws+"&lang="+P,name:{simpleText:DB},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+a+"&caps="+Ws+"&opi="+EG+"&xoaf="+KQ+"&hl="+gU+"&ip="+n7+"&ipbits="+KQ+"&expire="+pQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+n7+"&key="+Ws+"&kind="+Ws+"&lang="+gU,name:{simpleText:DB},
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:ia,title:DB,lengthSeconds:"1155",keywords:[Sy,ia,Uz,w$],channelId:OA,isOwnerViewing:!1,shortDescription:c1,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+RM,width:168,height:94},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+
"G&rs="+RM,width:196,height:110},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+T,width:246,height:138},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+T,width:336,height:188},{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:N8,author:$d,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:N8,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
LN+"/featured_channel.jpg?v="+Uz,width:40,height:40}]},trackingParams:mt+"=",navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"/channel/"+OA,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:OA}},channelName:$d,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:$d}]},subscribed:!1,enabled:!0,type:"FREE",channelId:OA,showPreferences:!1,subscribedButtonText:{runs:[{text:OS}]},unsubscribedButtonText:{runs:[{text:c1}]},
trackingParams:mt+"=",unsubscribeButtonText:{runs:[{text:rw}]},serviceEndpoints:[{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[OA],params:Uz}},{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cX,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:mt+"=",dialogMessages:[{runs:[{text:Uz},
{text:rw},{text:P7}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:w$}]},serviceEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[OA],params:Uz}},accessibility:{label:$d},trackingParams:mt+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:c1}]},accessibility:{label:$d},
trackingParams:mt+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Uz}},unsubscribeAccessibility:{accessibilityData:{label:P7}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:EA},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[OA],
params:Uz}},unsubscribeCommand:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[OA],params:Uz}},addToWatchLaterCommand:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:ia,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:ia}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+a+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+VQ+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+ia,width:1280,
height:720},title:{simpleText:Wo},description:{simpleText:$d},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ia,externalChannelId:OA,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:N8,category:"Travel & Events",publishDate:q8,ownerChannelName:$d,uploadDate:q8}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:P7},trackingParams:mt+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:cX,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:mt+"="}}],headerText:{simpleText:P7},icon:{infoCardIconRenderer:{trackingParams:mt+"="}},closeButton:{infoCardIconRenderer:{trackingParams:mt+"="}},trackingParams:mt+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:mt+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+ia+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:f7,interpreterSafeUrl:(Rt.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+d$+".js",Rt),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Sy},{text:Wo,bold:!0}]},endpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/",target:"TARGET_NEW_WINDOW"}},trackingParams:mt+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Uz}]},actionButton:{buttonRenderer:{text:{runs:[{text:P7}]},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+a,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
a,target:"TARGET_NEW_WINDOW"}},trackingParams:mt+"="}},trackingParams:mt+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+RI+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+RI+"=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:N8,endMs:N8,title:{accessibility:{accessibilityData:{label:w$}},simpleText:$d},metadata:{simpleText:DB},callToAction:{simpleText:HY},dismiss:{simpleText:rw},endpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"/channel/"+OA,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:OA}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:w$}]},subscribed:!1,enabled:!0,type:"FREE",channelId:OA,showPreferences:!1,
subscribedButtonText:{runs:[{text:$d}]},unsubscribedButtonText:{runs:[{text:$0}]},trackingParams:mt+"=",unsubscribeButtonText:{runs:[{text:w$}]},serviceEndpoints:[{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[OA],params:Uz}},{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cX,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:mt+
"=",dialogMessages:[{runs:[{text:Uz},{text:rs},{text:HY}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:c1}]},serviceEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[OA],params:Uz}},accessibility:{label:rs},trackingParams:mt+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Wo}]},
accessibility:{label:Sy},trackingParams:mt+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:w$}},unsubscribeAccessibility:{accessibilityData:{label:Uz}}}},trackingParams:mt+"=",isSubscribe:!0,id:Ps}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+T,width:168,height:94},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+RM,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+T,width:246,height:138},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+VQ+"G&rs="+T,width:336,height:188},{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:N8,endMs:N8,title:{accessibility:{accessibilityData:{label:w$}},simpleText:ia},metadata:{simpleText:Ag},endpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
ia,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:ia,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Jg+".googlevideo.com/videoplayback?source=youtube&oeis="+KQ+"&c=WEB&oad="+qH+"&ovd="+qH+"&oaad="+TL+"&oavd="+TL+"&ocs="+sG+"&oewis="+KQ+"&oputc="+KQ+"&ofpcc="+KQ+"&siu="+KQ+"&msp="+KQ+"&odepv="+KQ+
"&id=o-AF"+hM+"&ip="+n7+"&initcwndbps="+N8+"&mt="+pQ+"&oweuc="+Jj}}}}},trackingParams:mt+"=",id:Ps,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:P7}},simpleText:rw},style:"DEFAULT"}}]}}],startMs:N8,trackingParams:mt+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:KQ,offsetEndMilliseconds:TL},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";ord="+pQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+sG+";dc_sk="+KQ+";dc_ctype="+eN+";dc_ref=http://www.youtube.com/video/"+ia+";dc_pubid="+KQ+";dc_btype=23?gclid="+aI+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+KQ+"&ns="+KQ+"&event="+KQ+"&device="+KQ+"&content_v="+a+"&el="+w$+"&ei="+M+"&devicever="+F+"&bti="+N8+"&format="+Iz+"&break_type="+KQ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+KQ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+n7+"&slot_pos="+KQ+"&slot_len="+KQ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+NH+"&ad_len="+TL+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
ia+"&aqi="+M+"&ad_rmp="+KQ+"&sli="+KQ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+
";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+N8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
m+"____________"+L+"AxAA&sigh="+a+"&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"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&ctype="+sG+"&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"+
m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_engaged_view&ctype="+sG+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+Zq+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kS+"&ad_cpn=[AD_CPN]&id="+P7+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+P7+"&dc_pubid="+KQ+"&dc_exteid="+Ps+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kS+"&ad_cpn=[AD_CPN]&id="+P7+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+KQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+P7+"&avm="+KQ+"&dc_pubid="+KQ+"&dc_exteid="+
Ps+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&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="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
q+"&sig="+kS+"&ad_cpn=[AD_CPN]&id="+P7+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+KQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+P7+"&dc_pubid="+KQ+"&dc_exteid="+Ps+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cX,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+
sG+"&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/"+a+"/mqdefault.jpg",width:320,height:180}]},trackingParams:mt+"="},trackingParams:mt+
"=",templatedCountdown:{templatedAdText:{text:ia,isTemplated:!0,trackingParams:mt+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:P7,isTemplated:!1,trackingParams:mt+"="},trackingParams:mt+"="}},trackingParams:mt+"=",skipOffsetMilliseconds:5E3}},trackingParams:mt+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:OS},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mt+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:w$,isTemplated:!1,trackingParams:mt+"="},trackingParams:mt+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:P7,isTemplated:!0,trackingParams:mt+"="}},trackingParams:mt+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cX,openPopupAction:{popup:{aboutThisAdRenderer:{url:($T.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+gU+"&origin=www.youtube.com&ata_theme="+c1,$T),trackingParams:mt+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:mt+"="}},hoverText:{runs:[{text:lZ}]},trackingParams:mt+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mt+"="},headline:{text:rw,isTemplated:!1,trackingParams:mt+"="},description:{text:DB,
trackingParams:mt+"="},actionButton:{buttonRenderer:{text:{simpleText:Sy},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mt+"="}},startMs:KQ,trackingParams:mt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Sy},elementId:$0}},elementId:rw,trackingParams:mt+"=",legacyInfoCardVastExtension:$d,sodarExtensionData:{siub:OS,bgub:$d,scs:Sy,bgp:rs},externalVideoId:ia,adLayoutLoggingData:{serializedAdServingDataEntry:$d},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mt+"="},
headline:{text:c1,isTemplated:!1,trackingParams:mt+"="},description:{text:$d,isTemplated:!1,trackingParams:mt+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:rs},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+
Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+
KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:mt+"="}},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+
EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+
L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mt+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:mt+"="},abandonCommands:{commands:[{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&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="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+
KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cX,commandExecutorCommand:{commands:[{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Uz,isTemplated:!1,trackingParams:mt+
"="},trackingParams:mt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:eI},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+N8+";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="+EG+";dc_trk_cid="+EG+";ord="+pQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+sG+";dc_sk="+KQ+";dc_ctype="+eN+";dc_ref=http://www.youtube.com/video/"+ia+";dc_pubid="+KQ+";dc_btype=23?gclid="+aI+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+KQ+"&ns="+KQ+"&event="+KQ+"&device="+KQ+"&content_v="+a+"&el="+w$+"&ei="+M+"&devicever="+F+"&bti="+N8+"&format="+Iz+"&break_type="+KQ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+KQ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+n7+"&slot_pos="+KQ+"&slot_len="+KQ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
NH+"&ad_len="+TL+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+ia+"&aqi="+M+"&ad_rmp="+KQ+"&sli="+KQ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+
t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+N8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&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"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&ctype="+sG+"&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"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_engaged_view&ctype="+sG+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kS+"&ad_cpn=[AD_CPN]&id="+
P7+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+P7+"&dc_pubid="+KQ+"&dc_exteid="+Ps+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+
"&sig="+kS+"&ad_cpn=[AD_CPN]&id="+P7+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+KQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+P7+"&avm="+KQ+"&dc_pubid="+KQ+"&dc_exteid="+Ps+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&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="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kS+"&ad_cpn=[AD_CPN]&id="+P7+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+KQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+P7+"&dc_pubid="+KQ+"&dc_exteid="+Ps+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+Iz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+
sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&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/"+a+"/mqdefault.jpg",width:320,height:180}]},trackingParams:mt+"="},trackingParams:mt+"=",templatedCountdown:{templatedAdText:{text:lZ,isTemplated:!0,trackingParams:mt+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:HY,isTemplated:!1,trackingParams:mt+"="},trackingParams:mt+"="}},
trackingParams:mt+"=",skipOffsetMilliseconds:5E3}},trackingParams:mt+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:HY},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:P7,isTemplated:!1,trackingParams:mt+"="},trackingParams:mt+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:HY,
isTemplated:!0,trackingParams:mt+"="}},trackingParams:mt+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(za.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+gU+"&origin=www.youtube.com&ata_theme="+c1,za),trackingParams:mt+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:mt+"="}},hoverText:{runs:[{text:OS}]},trackingParams:mt+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yo+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mt+"="},headline:{text:ia,isTemplated:!1,trackingParams:mt+"="},description:{text:eI,trackingParams:mt+"="},actionButton:{buttonRenderer:{text:{simpleText:rs},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mt+"="}},startMs:KQ,trackingParams:mt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:DB},elementId:ia}},elementId:P7,trackingParams:mt+"=",legacyInfoCardVastExtension:HY,sodarExtensionData:{siub:ia,bgub:w$,scs:OS,bgp:eI},externalVideoId:ia,adLayoutLoggingData:{serializedAdServingDataEntry:ia},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yo+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:mt+"="},headline:{text:HY,
isTemplated:!1,trackingParams:mt+"="},description:{text:ia,isTemplated:!1,trackingParams:mt+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:$0},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:mt+"="}},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+
KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:mt+"="},abandonCommands:{commands:[{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&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="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+eN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cX,commandExecutorCommand:{commands:[{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:rw,isTemplated:!1,trackingParams:mt+"="},trackingParams:mt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lZ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KQ+";dc_exteid="+Ps+";met="+KQ+";ecn"+KQ+"="+KQ+";etm1="+KQ+";eid1="+
N8+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:$0}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:P7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:TL,offsetEndMilliseconds:Iz},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+eN+"&token=ALHj"+A+"&index="+KQ+"&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="+F+"&m_pos_ms="+TL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:DB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Iz,offsetEndMilliseconds:Iz},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+sG+"&token=ALHj"+A+"&index="+KQ+"&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="+
F+"&m_pos_ms="+Iz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:w$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Iz,offsetEndMilliseconds:Iz},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+sG+"&token=ALHj"+A+"&index="+KQ+"&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="+
F+"&m_pos_ms="+Iz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:w$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Iz,offsetEndMilliseconds:Iz},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+sG+"&token=ALHj"+A+"&index="+KQ+"&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="+
F+"&m_pos_ms="+Iz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:DB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Iz,offsetEndMilliseconds:eN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+sG+"&token=ALHj"+A+"&index="+KQ+"&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="+
F+"&m_pos_ms="+Iz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ag}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:eN,offsetEndMilliseconds:eN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+M+"&m_pos="+eN+"&token=ALHj"+A+"&index="+KQ+"&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="+
F+"&m_pos_ms="+eN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:c1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:rs,isTemplated:!1,trackingParams:mt+"="},description:{text:Sy,isTemplated:!1,trackingParams:mt+"="},actionButton:{buttonRenderer:{text:{simpleText:P7},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G0+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:mt+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hg+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:mt+"="},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+
";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(we.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+gU+"&origin=www.youtube.com&ata_theme="+c1,we),trackingParams:mt+"="}},popupType:"DIALOG"}},trackingParams:mt+"="}},hoverText:{runs:[{text:Sy}]},trackingParams:mt+"="}},adVideoId:ia,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:rs},associatedCompositePlayerBytesLayoutId:HY}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Uz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Sy,isTemplated:!1,trackingParams:mt+"="},description:{text:OS,isTemplated:!1,trackingParams:mt+"="},actionButton:{buttonRenderer:{text:{simpleText:lZ},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+
L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mt+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yo+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:mt+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+C4+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:mt+"="},navigationEndpoint:{clickTrackingParams:cX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+
KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(FS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+gU+"&origin=www.youtube.com&ata_theme="+c1,FS),trackingParams:mt+"="}},popupType:"DIALOG"}},trackingParams:mt+"="}},
hoverText:{runs:[{text:eI}]},trackingParams:mt+"="}},adVideoId:ia,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+ia+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:rs},associatedCompositePlayerBytesLayoutId:HY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$d}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lZ,
isTemplated:!1,trackingParams:mt+"="},description:{text:lZ,isTemplated:!1,trackingParams:mt+"="},actionButton:{buttonRenderer:{text:{simpleText:HY},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+
eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+
T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:mt+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+G0+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:mt+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hg+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:mt+
"="},navigationEndpoint:{clickTrackingParams:cX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+EG+";dc_trk_cid="+EG+";dc_dbm_token="+K+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KQ+";ord="+EG+";dc_rui="+KQ+";dc_exteid="+Ps+";dc_av="+KQ+";dc_sk="+KQ+";dc_ctype="+eN+";dc_pubid="+KQ+";dc_btype=3?gclid="+aI+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+m+"____________"+L+"AxAA&ase=2&num="+KQ+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+XJ+"&label=video_click_to_advertiser_site&ctype="+sG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:mt+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(w2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+gU+"&origin=www.youtube.com&ata_theme="+c1,w2),trackingParams:mt+"="}},popupType:"DIALOG"}},trackingParams:mt+
"="}},hoverText:{runs:[{text:DB}]},trackingParams:mt+"="}},adVideoId:ia,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+m+"____________"+L+"AxAA&sigh="+a+"&cid="+t+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ag},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:HY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rs}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:d$,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:d$,command:{innertubeCommand:{clickTrackingParams:cX,ypcGetOfflineUpsellEndpoint:{params:m$}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:mt+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:pQ,nanos:Rz}}}},x2=JSON.stringify(XM),DI=performance.now()-G;return{objectRepresentation:XM,jsonRepresentation:x2,generationTime:DI}};
GFI=function(G,B){if(G===B)return!0;if(!G||!B||typeof G!==typeof B)return!1;if(G instanceof Array&&B instanceof Array){if(G.length!==B.length)return!1;for(var F=0;F<G.length;F++)if(!GFI(G[F],B[F]))return!1;return!0}if(typeof G==="object"&&typeof B==="object"&&G&&B){for(F in G)if(!(F in B&&GFI(G[F],B[F])))return!1;for(var D in B)if(!(D in G))return!1;return!0}return!1};
_.c2=function(){if(!Jc){Jc=new sK(new B_I);var G=_.sD("client_streamz_web_flush_count",-1);G!==-1&&(Jc.invocationLimit=G)}return Jc};
Tx=function(G,B,F,D){if(G===B)return!0;if(Array.isArray(G)&&Array.isArray(B)){if(G.length!==B.length)return!1;for(var u=0;u<G.length;u++)if(!Tx(G[u],B[u],F,D))return!1;return!0}if(G instanceof Set||B instanceof Set){if(G instanceof Set&&B instanceof Set){if(G.size!==B.size)return!1;D=_.C(G.values());for(u=D.next();!u.done;u=D.next())if(!B.has(u.value))return!1;return!0}return!1}if(G instanceof Function){if(D)return!0;G.name===""&&_.k2(Error("Rf"),"ERROR");return!1}if(G instanceof Date&&B instanceof
Date)return G.getTime()===B.getTime();if(G instanceof Object&&B instanceof Object){if(iF8(G)&&iF8(B))try{return G.equals(B)}catch(N){_.k2(Error("Sf`"+N),"ERROR")}u=Object.getOwnPropertyNames(G).filter(function(N){return F?G[N]!==void 0:!0});
var R=Object.getOwnPropertyNames(B).filter(function(N){return F?B[N]!==void 0:!0});
if(u.length!==R.length)return!1;u=_.C(u);for(R=u.next();!R.done;R=u.next())if(R=R.value,!Tx(G[R],B[R],F,D))return!1;return!0}return!1};
iF8=function(G){G=Object.getPrototypeOf(G).equals;return G instanceof Function&&G.length===1};
_.uro=function(){return _.n(function(G){if(G.nextAddress==1)return F3s!==2?G.jumpTo(2):G.yield(DoM(),3);G.nextAddress!=2&&(F3s=G.yieldResult);return G.return(F3s)})};
_.Ce8=function(){return _.n(function(G){if(G.nextAddress==1)return _.X("ab_pl_man")?Rk6!==2?G.jumpTo(2):G.yield(wag(),3):G.return(1);G.nextAddress!=2&&(Rk6=G.yieldResult);return G.return(Rk6)})};
nh8=function(){return _.n(function(G){if(G.nextAddress==1)return _.X("ab_fk_sk_cl")?N_z!==2?G.jumpTo(2):G.yield(yF6(),3):G.return(1);G.nextAddress!=2&&(N_z=G.yieldResult);return G.return(N_z)})};
_.qts=function(){return _.n(function(G){if(G.nextAddress==1)return _.X("ab_det_apb_b")?lrM!==2?G.jumpTo(2):G.yield(UoL(),3):G.return(1);G.nextAddress!=2&&(lrM=G.yieldResult);return G.return(lrM)})};
K38=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(Promise.all([_.uro(),_.qts(),_.Ce8(),nh8()]),2);if(B.nextAddress!=3)return EhJ()?B.return(!0):B.yield(_.hkM(),3);G=B.yieldResult;return B.return(G===0)})};
EhJ=function(){var G=!1,B=function(F,D){arl.increment(D,F);F===0&&(G=!0)};
B(_.moI(),"j.s_");B(F3s,"f.i_");B(lrM,"a.b_");B(Rk6,"p.m_");B(N_z,"i.f_");Xag===2&&(Xag=_.QA8(jAg));B(Xag,"e.h_");_.X("ks_det_gpbl")||B(_.L3l(),"p.i_");_.X("ks_get_o_pp")||B(_.rFQ(),"g.o_");_.X("ab_deg_unex_thr")||B(_.W36(),"a.o_");B(HF6,"s.t_");_.X("ab_det_sc_inj_enf")&&B(_.kFS(),"s.i_");B(OFI,"d.p_");B(_.ekQ(_.I9),"o.p_");B(_.$oQ()===0?0:_.zk8(),"o.a_");return _.X("debug_sk_em_precheck")?!0:G};
VP8=function(){var G=[].concat(_.gi(bFo));try{var B=PuI();G.push({jsonRepresentation:B.jsonRepresentation,objectRepresentation:B.objectRepresentation})}catch(F){G=[].concat(_.gi(bFo))}return G};
vhs=function(){var G=["adPlacements","adSlots"];try{return G.filter(function(){return!0}).length!==G.length?0:1}catch(B){return 0}};
_.rFQ=function(){if(vhs()===0)return 0;var G=PuI(),B=G.objectRepresentation,F=(0,_.UK.unsafeClone)(B),D=[];if(B&&typeof B==="object")for(var u in B)D.push(u);else return 4;G=G.objectRepresentation.adPlacements;if(!(G&&G.length>0))return 4;try{if(!GFI(D,Object.getOwnPropertyNames(B)))return 0}catch(R){return 0}return GFI(F,B)?1:0};
_.ekQ=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var B=Object.getOwnPropertyNames(Object.prototype),F=0;F<G.length;F++)for(var D=_.pJ(G[F]),u=_.C(B),R=u.next();!R.done;R=u.next())if(D===R.value)return 0;return 1};
ohs=function(G){var B=_.pJ(G[1]);if(G[0]===null)return B;G=G[0];for(var F={},D=0;D<G.length;D++){var u=_.pJ(G[D]);if(D===0)F[u]=B;else{var R={};R[u]=F;F=R}}return F};
_.$oQ=function(){for(var G=_.fJ,B=0;B<G.length;B++){var F=ohs(G[B]),D=[];D.push(F);if(D.length===0)return 0}return 1};
_.zk8=function(){for(var G=_.fJ,B={},F=0;F<G.length;B={kxD:void 0},F++){var D=[ohs(G[F])];B.kxD=[];D.forEach(function(u){return function(R){u.kxD[u.kxD.length]=R}}(B));
if(B.kxD.length===0)return 0}return 1};
_.moI=function(){for(var G=_.C(VP8()),B=G.next();!B.done;B=G.next()){var F=B.value;B=F.jsonRepresentation;F=F.objectRepresentation;try{var D=JSON.parse(B);if(!Tx(D,F,!1,!1))return 0}catch(u){return 0}}return 1};
_.kFS=function(){try{var G=_.P5("ab_det_sc_inj_val");G.length===1&&G[0]===""&&(G=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var B=document.querySelectorAll("script"),F=_.C(B),D=F.next();!D.done;D=F.next())for(var u=D.value,R=_.C(G),N=R.next();!N.done;N=R.next()){var y=N.value;B=void 0;if((B=u.textContent)==null?0:B.includes(y))return 0}}catch(U){return 4}return 1};
_.hkM=function(){var G,B,F,D,u,R,N;return _.n(function(y){switch(y.nextAddress){case 1:_.b5(y,2),G=_.C(bFo),B=G.next();case 4:if(B.done)return y.return(1);D=F=B.value;u=D.jsonRepresentation;R=D.objectRepresentation;return y.yield((new Response(u,{status:200})).json(),7);case 7:N=y.yieldResult;if(!Tx(N,R,!1,!1))return y.return(0);B=G.next();y.jumpTo(4);break;case 2:return _.Al(y),y.return(4)}})};
_.W36=function(){try{btoa("abc")}catch(G){return 0}return 1};
DoM=function(){var G,B,F,D,u,R,N,y,U,q,h;return _.n(function(K){switch(K.nextAddress){case 1:_.b5(K,2),G=_.C(VP8()),B=G.next();case 4:if(B.done)return K.return(1);D=F=B.value;u=D.jsonRepresentation;R=D.objectRepresentation;N=btoa(u);y="data:application/json;base64,"+N;U=new Request(y);Object.defineProperty(U,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(U,"method",{get:function(){return"POST"}});
Object.defineProperty(U,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(U,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(U,"body",{get:function(){return new ReadableStream}});
return K.yield(fetch(U),7);case 7:return q=K.yieldResult,K.yield(q.json(),8);case 8:h=K.yieldResult;if(!Tx(h,R,!1,!1))return K.return(0);B=G.next();K.jumpTo(4);break;case 2:return _.Al(K),K.return(4)}})};
_.QA8=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var B=function(u){return _.pJ(u)},F=2,D=0;D<G.length&&(F=_.MPS(_.s$M(G[D],B)),F!==0);D++);
return F};
_.MPS=function(G){var B=_.C(G);G=B.next().value;B=B.next().value;try{var F=document.createElement("div");document.body.appendChild(F);var D=getComputedStyle(F).display;document.body.removeChild(F);if(D==="none")return 4;var u=getComputedStyle(B).display==="none"?0:1;document.body.removeChild(G);return u}catch(R){return 4}};
yF6=function(){var G,B,F;return _.n(function(D){G=new _.tc;B=document.createElement("button");B.classList.add("ytp-ad-skip-button");B.style.opacity="0";B.style.height="0px";B.style.width="0px";B.style.padding="0px";B.style.border="none";F=function(){B.parentElement&&B.parentElement.removeChild(B)};
B.onclick=function(){G.resolve(0);F()};
document.body.appendChild(B);setTimeout(function(){F();G.resolve(1)},50);
return D.return(G.promise)})};
wag=function(){var G,B,F,D,u,R,N;return _.n(function(y){G=new _.tc;B=document.createElement("ytd-player");try{document.body.prepend(B)}catch(U){return y.return(4)}F=function(){B.parentElement&&B.parentElement.removeChild(B)};
B.getElementsByTagName("div").length>0?D=B.getElementsByTagName("div")[0]:(D=document.createElement("div"),B.appendChild(D));u=document.createElement("div");D.appendChild(u);R=document.createElement("video");N=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"});R.src=_.fe(_.sy(N));R.ontimeupdate=function(){F();G.resolve(0)};
u.appendChild(R);R.classList.add("html5-main-video");setTimeout(function(){u.classList.add("ad-interrupting")},200);
setTimeout(function(){F();G.resolve(1)},5E3);
return y.return(G.promise)})};
paJ=function(G){var B=PuI().objectRepresentation.playbackTracking;if(B){var F=[],D;F.push(B==null?void 0:(D=B.videostatsPlaybackUrl)==null?void 0:D.baseUrl);var u;F.push(B==null?void 0:(u=B.videostatsDelayplayUrl)==null?void 0:u.baseUrl);var R;F.push(B==null?void 0:(R=B.videostatsWatchtimeUrl)==null?void 0:R.baseUrl);var N;F.push(B==null?void 0:(N=B.ptrackingUrl)==null?void 0:N.baseUrl);var y;F.push(B==null?void 0:(y=B.qoeUrl)==null?void 0:y.baseUrl);var U;F.push(B==null?void 0:(U=B.atrUrl)==null?
void 0:U.baseUrl);B=_.C(F);for(F=B.next();!F.done;F=B.next())if((F=F.value)&&G.test(F))return F.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
YtU=function(G,B){var F,D;return _.n(function(u){switch(u.nextAddress){case 1:F=[],D=0;case 2:if(!(D<3)){u.jumpTo(4);break}return u.yield(fetch(G,{cache:"no-store",method:B}).then(function(R){F.push(R.status)}).catch(function(){F.push(-1)}),3);
case 3:D++;u.jumpTo(2);break;case 4:return u.return(F)}})};
AF6=function(G){return G.domainLookupStart===0&&G.domainLookupEnd===0&&G.connectStart===0&&G.connectEnd===0||G.duration===0};
dos=function(G,B,F){F=F===void 0?"GET":F;var D,u,R,N,y,U,q,h,K,a;return _.n(function(m){if(m.nextAddress==1)return m.yield(Promise.all([YtU(G,F),YtU(B,F)]),2);D=m.yieldResult;u=_.C(D);R=u.next().value;N=u.next().value;y=R;U=N;if(Math.min.apply(Math,_.gi(U))!==Math.max.apply(Math,_.gi(U))||Math.min.apply(Math,_.gi(y))!==Math.max.apply(Math,_.gi(y)))return m.return(2);if(Math.min.apply(Math,_.gi(U))===Math.min.apply(Math,_.gi(y)))return m.return(1);h=(q=performance.getEntriesByName(G))==null?void 0:
q[0];a=(K=performance.getEntriesByName(B))==null?void 0:K[0];return h&&a?AF6(a)?m.return(1):AF6(h)?m.return(0):m.return(1):m.return(2)})};
UoL=function(){var G;return _.n(function(B){var F=[];var D;var u,R,N;(u=D=(u=PuI().objectRepresentation.streamingData)==null?void 0:(R=u.formats)==null?void 0:(N=R[0])==null?void 0:N.url)&&u&&!D.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(u=u.replace("initcwndbps","ctier=L&initcwndbps"),u=u.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),D={testUrl:u,baseUrl:D,method:"GET"}):D=void 0;D&&F.push(D);_.X("ab_net_tp_e")&&F.push({testUrl:_.Fz.location.origin+"/ad_companion",baseUrl:_.Fz.location.origin+
"/generate_204",method:"OPTIONS"});_.X("ab_fix_creator_view_cnt")&&(F.length=0,(D=paJ(/api\/stats\/atr/))&&F.push({testUrl:_.Fz.location.origin+D,baseUrl:_.Fz.location.origin+"/generate_204",method:"POST"}));_.X("ad_net_pb_pbp")&&(D=paJ(/api\/stats\/qoe/))&&F.push({testUrl:_.Fz.location.origin+D,baseUrl:_.Fz.location.origin+"/feed/download",method:"GET"});F=F.length!==0?F[Math.floor(Math.random()*F.length)]:void 0;return(G=F)?B.return(dos(G.testUrl,G.baseUrl,G.method)):B.return(4)})};
_.L3l=function(){if(_.Fz.edb===void 0||_.Fz.edb===null||typeof _.Fz.edb!=="function")return 2;try{return _.Fz.edb()===!0?0:1}catch(G){return 0}};
JF6=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.BS(G,"unknown result type")}};
_.cF6=function(G,B){var F=Number(_.v5("CATSTAT",0));if(B.x87===void 0)return F;B=B.x87;G=JF6(G);return F&~(3<<B)|G<<B};
T_I=function(G){var B,F;if((G=(B=G.auxiliaryUi)==null?void 0:(F=B.messageRenderers)==null?void 0:F.bkaEnforcementMessageViewModel)&&G.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return G};
frI=function(){for(var G=_.C(Object.values(_.Irs)),B=G.next();!B.done;B=G.next())B=B.value,B.lKP&&B.x87&&_.Vc("CATSTAT",_.cF6(2,B))};
_.Sw=function(G,B){G=_.ZV("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",G);(B===void 0?0:B)?_.tP8(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.g8().logFlowEvent(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
gh6=function(){if(!ZFQ){if(Polymer.Base){var G=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{G.apply(this,arguments)}catch(K){_.Mn(K)}};
var B=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{B.apply(this,arguments)}catch(K){_.Mn(K)}};
var F=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{F.apply(this,arguments)}catch(K){_.Mn(K)}};
var D=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{D.apply(this,arguments)}catch(K){_.Mn(K)}};
var u=Polymer.Base._listen,R=new WeakMap;Polymer.Base._listen=function(K,a,m){var L=function(){try{m.apply(this,arguments)}catch(W){_.Mn(W)}};
R.set(m,L);u.call(this,K,a,L)};
var N=Polymer.Base._unlisten;Polymer.Base._unlisten=function(K,a,m){N.call(this,K,a,R.get(m))}}if(Polymer.Async){var y=Polymer.Async,U=y._atEndOfMicrotask;
y._atEndOfMicrotask=function(){try{U.apply(y,arguments)}catch(K){_.Mn(K)}}}if(Polymer.RenderStatus){var q=Polymer.RenderStatus,h=q.afterNextRender;
q.afterNextRender=function(K,a,m){h.call(q,K,function(){try{a.apply(this,arguments)}catch(L){_.Mn(L)}},m)}}ZFQ=!0}};
_.sAc=function(G){var B=G?_.Ik(G):"";if(B){if(B.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(B.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(B.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(B.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(B.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.X("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(B.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";B=B.toLowerCase();if(B==="/")return"home";if(B==="/channel_memberships")return"channel-memberships-shopfront";if(B.indexOf("/feed/trending")===0)return"trending";if(B.indexOf("/feed/explore")===0)return"explore";if(B.indexOf("/live")===0)return"live";if(B.indexOf("/results")===0)return"search";if(B.indexOf("/sports")===0)return"sports";if(B.indexOf("/fashion")===0||B.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(B))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(B))return _.X("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(B.indexOf("/channel/")===0||B.indexOf("/user/")===0||B.indexOf("/gaming")===0||B.indexOf("/post/")===0)return"channel";if(StJ(G))return"show";if(B==="/playlist"||B.indexOf("/playlist/")===0||B==="/view_play_list"||B.indexOf("/view_play_list/")===0||B.indexOf("/show/")===0)return"playlist";if(B==="/companion_canvas")return"companion-canvas";if(B==="/feed/history"||
B.indexOf("/feed/history/")===0)return"history";if(B==="/new")return"labs";if(B==="/feed/subscriptions")return"subscriptions";if(B.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(B==="/history_controls")return"standalone";if(B.indexOf("/account")===0||B==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(B.indexOf("/paid_memberships")===0||B.indexOf("/refund")===0||B.indexOf("/purchases")===0||B.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(B.indexOf("/product")===
0)return"yts-products";if(B.indexOf("/premium")===0||B.indexOf("/musicpremium")===0)return B.indexOf("/premium/offers")===0||B.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(B==="/cart/checkout"||B==="/cart")return"ypc-checkout";if(B.indexOf("/reporthistory")===0)return _.X("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(B.indexOf("/feed/downloads")===0||B.indexOf("/redeem")===0)return"browse";if(B.indexOf("/hashtag")===0)return"hashtag-landing-page";if(B.indexOf("/handle")===
0)return"handle";if(B.indexOf("/source")===0)return"audio-pivot";if(B.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(B.indexOf("/playables")===0)return"playables";if(B.indexOf("/create/live/join")===0)return"open-in-app";if(B.indexOf("/shorts")===0)return"shorts";if(B.indexOf("/feed/channels")===0)return"subscriptions-channels";var F=G?_.Ik(G):"";F&&F.indexOf("/watch")===0&&_.X("web_watch_enable_learning_journey")?(G=_.c5(G),G=!!G.list&&G.list.indexOf("LJPP")===0):G=!1;if(G)return"learning_journey_watch";
if(_.X("enable_new_page_subtypes_for_ai_companion")&&B==="/feed/courses")return"your-courses"}};
_.sX=function(G){var B,F;(G=(F=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:F.url)&&(B=_.sAc(G));return B};
StJ=function(G){var B=G?_.Ik(G):"";if(!B)return!1;B=B.toLowerCase();return B.indexOf("/show/")===0||B.indexOf("/playlist")===0&&(G=_.c5(G),G.list&&G.list.indexOf("EL")===0)?!0:!1};
GB=function(G){var B="unknown",F;var D=((F=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:F.webPageType)||"";D?(F=D.toLowerCase(),F.startsWith("web_page_type_")&&(F=F.slice(14))):F=D;F&&xog[F.toUpperCase()]?B=xog[F.toUpperCase()]:_.Q(G,_.x9)||_.Q(G,PeJ)?B="browse":_.Q(G,_.P2)?B="search":_.Q(G,_.Ow)&&(B="watch");B==="watch"&&_.sX(G||null)==="learning_journey_watch"&&(B="learning_journey_watch");B==="unknown"&&_.em(Error("Uf`"+JSON.stringify({clickTrackingParams:G==null?void 0:G.clickTrackingParams,
commandMetadata:G==null?void 0:G.commandMetadata,allEndpointKeys:Object.keys(G||[])})));return B};
_.Bm=function(G){if(!_.GQs||G)_.GQs=_.DR();return _.GQs};
_.BEs=function(G){return!!_.Q(G,_.Ow)||!!_.Q(G,_.Fu)&&_.X("kevlar_enable_shorts_prefetch")};
_.iDg=function(G,B){G=_.Q(G,_.Ow)||_.Q(G,_.Fu);return"v"+G.videoId+(G.playlistId?"-pl"+G.playlistId:"")+(B?"-an1":"")+(G.params?"-pr"+G.params:"")};
_.F4s=function(G){var B=new Dk(_.v5("ONE_PICK_URL",""));B.urlParamMap_.set("hostId",G);(G=_.v5("GAPI_LOCALE"))&&B.urlParamMap_.set("hl",G);(G=_.v5("SESSION_INDEX"))&&B.urlParamMap_.set("authuser",G);(G=_.v5("DELEGATED_SESSION_ID"))&&B.urlParamMap_.set("groupId",G);return B};
uNs=function(){var G=_.te(),B=G.resolve(_.un);G=G.resolve(_.RF);return new D58(B,G)};
wh8=function(G){if(window.IntersectionObserver)return new RhJ(G,400);throw new TypeError("Wf");};
NEU=function(){var G=Hammer.TouchAction,B=G.prototype.preventDefaults;G.prototype.preventDefaults=function(F){var D=this.actions.indexOf("pan-down")>-1;if(!D)return B.call(this,F);if(!CDU){var u=F.srcEvent;F=F.direction;var R;if((R=this.manager)==null?0:R.session.prevented)u.preventDefault();else if(D&&F&Hammer.DIRECTION_DOWN)return this.preventSrc(u)}}};
yN8=function(G){if(!G||G.size===0)return Hammer.DIRECTION_ALL;if(G.size===2){if(G.has("up")&&G.has("down"))return Hammer.DIRECTION_VERTICAL;if(G.has("right")&&G.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(G.size===1){if(G.has("up"))return Hammer.DIRECTION_UP;if(G.has("down"))return Hammer.DIRECTION_DOWN;if(G.has("right"))return Hammer.DIRECTION_RIGHT;if(G.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.yW=function(G,B,F){var D=F&&F>0?F:0;F=D?Date.now()+D*1E3:0;if((D=D?_.NO.getLocalStorage():_.NO.getSessionStorage())&&window.JSON){typeof B!=="string"&&(B=JSON.stringify(B,void 0));try{D.set(G,B,F)}catch(u){D.remove(G)}}};
_.np=function(G){var B=_.NO.getSessionStorage(),F=_.NO.getLocalStorage();if(!B&&!F||!window.JSON)return null;try{var D=B.get(G)}catch(u){}if(typeof D!=="string")try{D=F.get(G)}catch(u){}if(typeof D!=="string")return null;try{D=JSON.parse(D,void 0)}catch(u){}return D};
_.ln=function(G){try{var B=_.NO.getSessionStorage(),F=_.NO.getLocalStorage();B&&B.remove(G);F&&F.remove(G)}catch(D){}};
lvS=function(G){var B=npM(),F;return _.n(function(D){switch(D.nextAddress){case 1:return _.b5(D,2),D.yield(G.match(B,{cacheName:"yt-appshell-assets"}),4);case 4:F=D.yieldResult;_.oY(D,3);break;case 2:_.Al(D);case 3:return D.return(F)}})};
npM=function(){var G=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?U56.registration.scope:qLS;G.endsWith("/")&&(G=G.slice(0,-1));return G+"/app_shell_home"};
EpJ=function(G){G.map(function(B){return B.source}).join("|")};
_.hhs=function(G){return _.n(function(B){return B.return(lvS(G))})};
K4g=function(){var G=window.caches,B;return _.n(function(F){if(F.nextAddress==1)return F.yield(_.hhs(G),2);B=F.yieldResult;return F.return(!!B)})};
rNl=function(){_.n(function(G){if(G.nextAddress==1){if(av6)return G.jumpTo(0);av6=!0;if(_.X("enable_system_health_primes_monitoring"))return _.FB(m5o,3E4),Xhg(),G.return();if(!(Math.random()<_.sD("web_system_health_fraction")))return G.jumpTo(0);QHz={heightPixels:screen.height,widthPixels:screen.width};Uj&&!isNaN(Uj.jsHeapSizeLimit)&&(QHz.memoryTotalKbytes=String(Math.round(Uj.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(QHz.devicePixelRatio=window.devicePixelRatio);return G.yield(jHg(),4)}_.FB(m5o,
3E4);return G.yield(L46(),0)})};
jHg=function(){return _.n(function(G){if(G.nextAddress==1)return qO.intersectionObserverPresent="IntersectionObserver"in window,qO.serviceWorkerPresent="serviceWorker"in navigator,qO.webSharePresent="share"in navigator,qO.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,qO.cacheStoragePresent="caches"in window,qO.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,qO.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
qO.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Ej&&Ej.webkitTemporaryStorage&&"queryUsageAndQuota"in Ej.webkitTemporaryStorage,qO.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",G.yield(twJ(),2);qO.indexedDbPresent=G.yieldResult;qO.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;qO.broadcastChannelPresent="BroadcastChannel"in window;qO.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(qO.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,qO.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.di(G)})};
m5o=function(){var G=9E4+Math.random()*2E3;_.Z8()>G||(_.X("enable_system_health_primes_monitoring")?Xhg():L46())};
L46=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(W48(),2);G=B.yieldResult;_.W$("systemHealthCaptured",G);_.di(B)})};
Xhg=function(){var G={metric:{}},B=HDz();B.networkEvents.length&&(G.metric.networkEvents=kQS(B));_.W$("systemHealthCaptured",G)};
W48=function(){var G,B,F,D,u,R,N,y,U,q;return _.n(function(h){switch(h.nextAddress){case 1:G={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};B=window.screen;_.X("enable_is_extended_monitoring")&&B&&"isExtended"in B&&(G.isExtended=!!B.isExtended);F={metric:{staticContext:QHz,dynamicContext:G,webMetric:ODl,webApiSupport:qO}};
if(D=_.qW())F.csn=D;Uj&&(F.metric.webMetric.currentHeapKbytes=Math.round(Uj.usedJSHeapSize/1E3));window.matchMedia&&(F.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,F.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,F.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Ej&&typeof Ej.getBattery==="function")){h.jumpTo(2);break}return h.yield(Ej.getBattery(),3);case 3:if(u=
h.yieldResult)F.metric.dynamicContext.chargingStatus=u.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(F.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(qO.storageEstimatePresent)return h.yield(navigator.storage.estimate(),8);if(!qO.webkitTemporaryStoragePresent){h.jumpTo(5);break}return h.yield(ehL(),7);case 7:R=h.yieldResult;h.jumpTo(5);break;case 8:R=h.yieldResult;case 5:return F.metric.dynamicContext.deviceStorageQuotaMbytes=((N=R)==null?0:N.quota)?String(Math.round(R.quota/
1048576/10)*10):"-1",F.metric.dynamicContext.deviceStorageUsageMbytes=((y=R)==null?0:y.usage)?String(Math.round(R.usage/1048576/10)*10):"-1",U=F.metric.dynamicContext,h.yield(K4g(),9);case 9:return U.hasAppShell=h.yieldResult,q=HDz(),q.networkEvents.length&&(F.metric.networkEvents=kQS(q)),h.return(F)}})};
ehL=function(){return new Promise(function(G){var B;qO.webkitTemporaryStoragePresent&&(B=Ej.webkitTemporaryStorage)!=null&&B.queryUsageAndQuota?Ej.webkitTemporaryStorage.queryUsageAndQuota(function(F,D){G({usage:F,quota:D})}):G(void 0)})};
_.hV=function(G){G&=16777215;G=[(G&16711680)>>16,(G&65280)>>8,G&255];return gWQ(G[0],G[1],G[2])};
_.Kp=function(G){G=[(G&16711680)>>>16,(G&65280)>>>8,G&255,(G&4278190080)>>>24];if(!_.$5U(G,function(B){return B===(B&255)}))throw Error("Xf`"+G.join(","));
return"rgba("+G[0]+","+G[1]+","+G[2]+","+(G[3]/255).toFixed(3)+")"};
_.zhg=function(G){return[(G&16711680)>>>16,(G&65280)>>>8,G&255]};
_.bDI=function(G){G=G.map(function(B){B/=255;return B<=.03928?B/12.92:Math.pow((B+.05)/1.05,2.4)});
return G[0]*.2126+G[1]*.7152+G[2]*.0722};
aF=function(G,B){G=_.zhg(G);return"rgba("+G[0]+", "+G[1]+", "+G[2]+", "+B+")"};
ma=function(G){return(G&4278190080)>>>24===0?aF(G,"1"):_.Kp(G)};
_.V$o=function(){try{return!!self.localStorage}catch(G){return!1}};
phQ=function(){if(vpo())_.em(Error("Yf"));else{var G=document.createElement("iframe");G.style.display="none";var B=B===void 0?window.location.href:B;var F=_.rg(_.v5("PERSIST_IDENTITY_IFRAME_URL"));B=F?F:(new URL(B)).host.indexOf("studio")===0?_.W7(op8,"persist_identity"):_.W7(M$6,"persist_identity");_.Ro(G,1,B);G.id="persist_identity";var D;(D=document.body)==null||D.appendChild(G)}};
vpo=function(){var G=YLo;G||(G=document.querySelector("#persist_identity"));return G};
ANI=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(B){G=!0}return(_.v5("INNERTUBE_CLIENT_NAME")==="WEB"||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G};
d5S=function(G,B){if(!ANI())return!1;B||(B=_.v5("LOGIN_INFO"));return B?(G.session_logininfo=B,!0):!1};
cNs=function(G,B){G=G===void 0?!1:G;if((B===void 0||!B)&&JNl!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.on("LOG_STICKINESS",!1)){B=_.qW();var F=_.Uw(),D={identityStickinessData:{initialState:JNl}};B&&F&&_.bf(B,F,D)}if(B=vpo())if(F=B.src?(new URL(B.src)).origin:"*",G){var u;(u=B.contentWindow)==null||u.postMessage({action:"clear"},F)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(G=window.sessionStorage.getItem("session_logininfo"))){var R;(R=B.contentWindow)==null||R.postMessage({loginInfo:G},F)}};
_.Xu=function(G){G=G===void 0?!0:G;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Vc("LOGIN_INFO",""),G&&window.sessionStorage.setItem("from_switch_account","1"),cNs(!0,G)}catch(B){}};
TEM=function(G){G&&(G.startsWith("https://accounts.google.com/AddSession")?_.Xu():G.startsWith("https://accounts.google.com/ServiceLogin")?_.Xu():G.startsWith("https://myaccount.google.com")&&_.pn(G).getPath().endsWith("/youtubeoptions")&&_.Xu())};
QW=function(G,B){TEM(G);if(_.on("LOGGED_IN",!0)&&ANI()){var F=gZU(G);F==null&&(F={});d5S(F,B)&&_.V9(G,F)}};
Ivz=function(){function G(B){for(B=B.target;B&&B.nodeName!=="A";)if(B=B.parentNode,!(B&&B instanceof HTMLElement))return;if(B&&!B.hasAttribute("download")&&B.getAttribute("rel")!=="external"&&B.href)return B.href}
document.addEventListener("mousedown",function(B){B.button!==0&&(B=G(B))&&QW(B)});
document.addEventListener("click",function(B){(B=G(B))&&QW(B)})};
ZDJ=function(){var G=new fvg;try{if(_.on("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(y){G.increment(5,!1);return}if(_.v5("LOGIN_INFO")){var B=t$s?t$s:window.location;_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&phQ();var F=gZU(B.href);F==null&&(F={});var D=F.session_logininfo,u=Number(window.sessionStorage.getItem("stickiness_reload")),R=D===_.v5("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
u>=2||R)u>=2?G.increment(2,R):R?G.increment(7,R):window.sessionStorage.getItem("session_logininfo")||(G.increment(3,R),JNl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.v5("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.v5("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))G.increment(4,R),window.sessionStorage.removeItem("stickiness_reload");
else if(u<2){window.sessionStorage.setItem("stickiness_reload",String(u+1));var N=B.href;N=_.iB(N,"sttick");QW(N,window.sessionStorage.getItem("session_logininfo"));N=_.TJ(N,{sttick:u});G.increment(u,R);_.vds(B,N)}}else G.increment(6,!1)}else _.Xu(!1)}catch(y){}};
_.js=function(G,B,F,D,u){B=B===void 0?{}:B;F=F===void 0?"":F;D=D===void 0?window:D;G=_.xi(G,B);QW(G);F=_.Sz(G+F,u);_.vds(D.location,F)};
gpS=function(G){if(G.urlEndpoint){if(G=_.c5(G.urlEndpoint.url),G.adurl)return gO(G.adurl)}else if(G.watchEndpoint)return"//www.youtube.com/watch?v="+G.watchEndpoint.videoId;return null};
SLo=function(G){if(!G||!G.reportingPings)return null;var B={};G.reportingPings.forEach(function(F){F.pingType in B?B[F.pingType].push(F.url):B[F.pingType]=[F.url]});
return{adpings:QgL(B)}};
_.rK=function(G){G=G===void 0?!1:G;var B=_.D4(),F="USER_INTERFACE_THEME_LIGHT";B.getFlag(165)?F="USER_INTERFACE_THEME_DARK":B.getFlag(174)?F="USER_INTERFACE_THEME_LIGHT":_.Lp()&&(F="USER_INTERFACE_THEME_DARK");return G?F:sHz()||F};
_.x5U=function(){return!_.X("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Lp=function(){return _.x5U()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Wm=function(){var G=_.D4();return _.x5U()&&!G.getFlag(165)&&!G.getFlag(174)};
sHz=function(){var G=G===void 0?window.location.href:G;if(_.X("kevlar_disable_theme_param"))return null;var B=_.Ik(G);if(_.PDL(B))return"USER_INTERFACE_THEME_DARK";try{var F=_.c5(G).theme;return GqJ.get(F)||null}catch(D){}return null};
_.PDL=function(G){return _.X("enable_dark_theme_only_on_shorts")?!(G==null||!G.startsWith("/shorts/")):!1};
_.Oj=function(G,B,F,D,u){B=B===void 0?!1:B;F=F===void 0?!1:F;var R=_.v5("INNERTUBE_CONTEXT");if(!R)return _.k2(Error("bg")),{};R=(0,_.UK.unsafeClone)(R);_.X("web_no_tracking_params_in_shell_killswitch")||delete R.clickTracking;R.client||(R.client={});var N=R.client;N.clientName==="MWEB"&&N.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(N.clientFormFactor=_.v5("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");N.screenWidthPoints=window.innerWidth;N.screenHeightPoints=window.innerHeight;N.screenPixelDensity=
Math.round(window.devicePixelRatio||1);N.screenDensityFloat=window.devicePixelRatio||1;N.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());N.userInterfaceTheme=_.rK();if(!B){var y=_.hSc();y&&(N.connectionType=y);_.X("web_log_effective_connection_type")&&(y=aVJ())&&(R.client.effectiveConnectionType=y)}var U;if(_.X("web_log_memory_total_kbytes")&&((U=_.Fz.navigator)==null?0:U.deviceMemory)){var q;U=(q=_.Fz.navigator)==null?void 0:q.deviceMemory;R.client.memoryTotalKbytes=""+U*1E6}B&&D&&!_.X("web_it_context_set_original_url_ks")&&
(N.originalUrl=BpQ(_.Fz.location.href,D).toString());_.X("web_gcf_hashes_innertube")&&(y=kBz())&&(q=y.coldConfigData,U=y.coldHashData,y=y.hotHashData,R.client.configInfo=R.client.configInfo||{},q&&(R.client.configInfo.coldConfigData=q),U&&(R.client.configInfo.coldHashData=U),y&&(R.client.configInfo.hotHashData=y));q=_.c5(_.Fz.location.href);!_.X("web_populate_internal_geo_killswitch")&&q.internalcountrycode&&(N.internalGeo=q.internalcountrycode);!_.X("web_populate_client_screen_killswitch")&&u&&(N.clientScreen=
u);N.clientName==="MWEB"||N.clientName==="WEB"?(N.mainAppWebInfo||(N.mainAppWebInfo={}),N.mainAppWebInfo.graftUrl=D||_.Fz.location.href,_.X("kevlar_woffle")&&_.Hm.instance&&(D=_.Hm.instance,N.mainAppWebInfo.pwaInstallabilityStatus=!D.appInstalledEventFired&&D.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),N.mainAppWebInfo.webDisplayMode=mOQ(),N.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):N.clientName==="TVHTML5"&&
(!_.X("web_lr_app_quality_killswitch")&&(D=_.v5("LIVING_ROOM_APP_QUALITY"))&&(N.tvAppInfo=Object.assign(N.tvAppInfo||{},{appQuality:D})),D=_.v5("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(N.tvAppInfo=Object.assign(N.tvAppInfo||{},{certificationScope:D}));!_.X("web_populate_time_zone_itc_killswitch")&&(D=qXg())&&(N.timeZone=D);(D=vIs())?N.experimentsToken=D:delete N.experimentsToken;N=oIl();D=_.iPg();D=(0,_.UK.getValues)(D.tokenJars);R.request=Object.assign({},R.request,{internalExperimentFlags:N,consistencyTokenJars:D});
!_.X("web_prequest_context_killswitch")&&(N=_.v5("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(R.request.externalPrequestContext=N);D=_.D4();N=D.getFlag(58);D=D.get("gsml","");R.user=Object.assign({},R.user);N&&(R.user.enableSafetyMode=N);D&&(R.user.lockedSafetyMode=!0);_.X("warm_op_csn_cleanup")?F&&(B=_.qW())&&(R.clientScreenNonce=B):!B&&(B=_.qW())&&(R.clientScreenNonce=B);G&&(R.clickTracking={clickTrackingParams:G});if(G=_.Yf("yt.mdx.remote.remoteClient_"))R.remoteClient=G;_.k7.getInstance().setLocationOnInnerTubeContext(R);
try{var h=f4M(),K=h.bid;delete h.bid;R.adSignalsInfo={params:[],bid:K};for(var a=_.C(Object.entries(h)),m=a.next();!m.done;m=a.next()){var L=_.C(m.value),W=L.next().value,e=L.next().value;h=W;K=e;G=void 0;(G=R.adSignalsInfo.params)==null||G.push({key:h,value:""+K})}var b,M;if(((b=R.client)==null?void 0:b.clientName)==="TVHTML5"||((M=R.client)==null?void 0:M.clientName)==="TVHTML5_UNPLUGGED"){var t=_.v5("INNERTUBE_CONTEXT");t.adSignalsInfo&&(R.adSignalsInfo.advertisingId=t.adSignalsInfo.advertisingId,
R.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",R.adSignalsInfo.limitAdTracking=t.adSignalsInfo.limitAdTracking)}}catch(T){_.k2(T)}return R};
_.es=function(){return{isShellLoad:_.on("IS_SHELL_LOAD",!1)}};
Dso=function(){navigator.serviceWorker.getRegistrations().then(function(G){G.forEach(FzU)})};
FzU=function(G){G&&_.un8(RHg,G.scope)};
_.un8=function(G,B){B={scope:B||_.xf("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.YS(G),B)};
$7=function(G,B,F,D){if(B&&B.serializedYpcCujLoggingParams){if(F){var u={};u.transactionErrorType=F;D&&(u.errorMessage=D);B.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:u}}}F={};F.ypcCujContext=B;G=_.ZV("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",G,F);_.g8().logFlowEvent(G,"FLOW_TYPE_YPC_ACQUISITION")}};
_.wO6=function(G,B,F,D){var u={};u.serializedTransactionFlowLoggingParams=B;F&&(u.errorType=F);D&&(u.errorMessage=D);_.W$(G,u);_.H$()};
_.Ckl=function(G){G&&_.wO6("transactionFlowStarted",G)};
_.Npo=function(G){G&&_.wO6("transactionFlowCancelled",G)};
_.zB=function(G,B,F){B&&_.wO6("transactionFlowFailed",B,G,F)};
yqc=function(G){var B=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");B&&(B.inert=G)};
_.bn=function(){this.megabloxUrl_=null};
_.VW=function(G){try{var B=n$J==null?void 0:n$J.composedPath(G)}catch(F){B=G.composedPath?G.composedPath():[]}return B&&B.length>0?B:G.composedPath?G.composedPath():[]};
_.oF=function(G){return _.VW(G)[0]};
MO=function(G){return G instanceof ShadowRoot?ShadowRoot:G instanceof DocumentFragment?DocumentFragment:G instanceof Document?Document:HTMLElement};
l0z=function(G){if(G instanceof Element)return Element.prototype;if(G instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+G);};
Usg=function(G,B){return _.X("sunnydom_native_scoped_query_selectors")?l0z(G).querySelector.call(G,B):MO(G).prototype.querySelector.call(G,B)};
qEl=function(G,B){return _.X("sunnydom_native_scoped_query_selectors")?l0z(G).querySelectorAll.call(G,B):MO(G).prototype.querySelectorAll.call(G,B)};
E$J=function(G){var B,F,D;return(D=(F=(B=G.parentElement)!=null?B:G.__shady_native_parentElement)!=null?F:G.__shady_parentElement)!=null?D:null};
hHg=function(G){var B,F,D;return(D=(F=(B=G.parentNode)!=null?B:G.__shady_native_parentNode)!=null?F:G.__shady_parentNode)!=null?D:null};
KzI=function(G){var B,F,D;return(D=(F=(B=G.nextSibling)!=null?B:G.__shady_native_nextSibling)!=null?F:G.__shady_nextSibling)!=null?D:null};
a0S=function(G){var B,F,D;return(D=(F=(B=G.previousSibling)!=null?B:G.__shady_native_previousSibling)!=null?F:G.__shady_previousSibling)!=null?D:null};
ms6=function(G){var B,F,D;return(D=(F=(B=G.nextElementSibling)!=null?B:G.__shady_native_nextElementSibling)!=null?F:G.__shady_nextElementSibling)!=null?D:null};
XOs=function(G){var B,F,D;return(D=(F=(B=G.previousElementSibling)!=null?B:G.__shady_native_previousElementSibling)!=null?F:G.__shady_previousElementSibling)!=null?D:null};
QRJ=function(G){var B,F,D;return new Set([].concat(_.gi((B=G.children)!=null?B:[]),_.gi((F=G.__shady_native_children)!=null?F:[]),_.gi((D=G.__shady_children)!=null?D:[])))};
jR6=function(G){var B,F,D;return new Set([].concat(_.gi((B=G.childNodes)!=null?B:[]),_.gi((F=G.__shady_native_childNodes)!=null?F:[]),_.gi((D=G.__shady_childNodes)!=null?D:[])))};
_.pp=function(G){if(!(G instanceof Element))return null;G=G.classList?Array.from(G.classList):void 0;if(!G)return null;var B=G.indexOf("style-scope");return B>-1&&B+1<G.length?G[B+1]:null};
Y7=function(G){if(!(G instanceof HTMLElement))return null;var B=G&&(G.$$||G.polymerController)?G.tagName.toLowerCase():null;return B?B:_.pp(G)};
LzL=function(G,B){return _.X("sunnydom_native_scoped_query_selectors")?G+".style-scope."+B:G.replace(/[^a-z]*[^\s]+/g,function(F){return F+".style-scope."+B})};
rq6=function(G,B){return B?G.split(",").map(function(F){return LzL(F.trim(),B)}).join(", "):G};
_.AV=function(G){var B,F,D,u;return(u=(D=(F=(B=G.root)!=null?B:G.shadowRoot)!=null?F:G.__shady_native_shadowRoot)!=null?D:G.__shady_shadowRoot)!=null?u:G};
Wzs=function(G){var B,F,D;return(D=(F=(B=G.__shady_parentNode)!=null?B:G.__shady_native_parentNode)!=null?F:G.parentNode)!=null?D:null};
HPs=function(G){var B,F;return(F=(B=hHg(G))!=null?B:G.host)!=null?F:null};
kqJ=function(G){for(;G&&!(G instanceof HTMLElement);)G=HPs(G);return G};
OPM=function(G){var B=kqJ(G);return G===B?_.pp(G):B?Y7(B):null};
eHz=function(G){return(G=kqJ(G))?Y7(G):null};
$sI=function(G){if(G instanceof Comment)return!1;if(G instanceof Text){var B,F;if(((F=(B=G.textContent)==null?void 0:B.trim())!=null?F:"")==="")return!1}return!0};
dK=function(G,B,F){var D=B(G);for(F=F===void 0?eHz(G):F;D&&(OPM(D)!==F||!$sI(D));)G=D,D=B(G);return D};
zHg=function(G,B,F){if(!B)return null;G=eHz(G);return OPM(B)===G&&$sI(B)?B:dK(B,F,G)};
bPg=function(G){return dK(G,Wzs,_.pp(G))};
VvQ=function(G){return dK(G,ms6)};
v$z=function(G){return dK(G,KzI)};
o$8=function(G){return dK(G,XOs)};
Mvg=function(G){return dK(G,a0S)};
pOL=function(G){return zHg(G,G.firstChild||null,KzI)};
YEo=function(G){var B,F,D;var u=(D=(F=(B=G.firstElementChild)!=null?B:G.__shady_native_firstElementChild)!=null?F:G.__shady_firstElementChild)!=null?D:null;return zHg(G,u,ms6)};
Aqc=function(G){var B,F,D;var u=(D=(F=(B=G.lastChild)!=null?B:G.__shady_native_lastChild)!=null?F:G.__shady_lastChild)!=null?D:null;return zHg(G,u,a0S)};
dso=function(G){var B,F,D;var u=(D=(F=(B=G.lastElementChild)!=null?B:G.__shady_native_lastElementChild)!=null?F:G.__shady_lastElementChild)!=null?D:null;return zHg(G,u,XOs)};
Jq6=function(G){var B=eHz(G);return Array.from(jR6(G)).filter(function(F){return OPM(F)===B})};
cql=function(G){var B=Y7(G);return Array.from(QRJ(G)).filter(function(F){return _.pp(F)===B})};
Tps=function(G){if(!G)return null;var B=_.pp(G);if(!B){var F;return(F=Node.prototype.getRootNode)==null?void 0:F.call(G)}B=B.toUpperCase();for(G=E$J(G);G&&G.tagName!==B;)G=E$J(G);return G?_.AV(G):null};
_.JV=function(G,B,F){if(G instanceof HTMLElement&&_.pp(G)===F){var D=Array.from(G.classList).indexOf("style-scope");if(D===-1)G.classList.add("style-scope"),G.classList.add(B);else if(!(D+1>=G.classList.length)){D=G.classList[D+1];var u,R;G==null||(u=G.classList)==null||(R=u.replace)==null||R.call(u,D,B)}}if(G instanceof HTMLElement||G instanceof DocumentFragment)for(u=_.C(QRJ(G)),R=u.next();!R.done;R=u.next())_.JV(R.value,B,F);return G};
cm=function(G,B){if(G instanceof HTMLElement&&_.pp(G)===B){var F=Array.from(G.classList).indexOf("style-scope");F===-1||F+1>=G.classList.length||G.classList.remove("style-scope",G.classList[F+1])}if(G instanceof HTMLElement||G instanceof DocumentFragment){F=_.C(G.children);for(var D=F.next();!D.done;D=F.next())cm(D.value,B)}return G};
_.I08=function(G,B){return MO(G).prototype.appendChild.call(G,B)};
f0J=function(G,B){if(G===B)return!0;G=jR6(G);return Array.from(G).some(function(F){return f0J(F,B)})};
_.IF=function(G,B){if(G instanceof TB)return G;(B==null?0:B.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(G,"ownerDocument")&&Object.defineProperty(G,"ownerDocument",{get:function(){return window.document}});
return new TB(G)};
ZPo=function(){var G=TB.prototype,B=[].concat(_.gi(tvg?[]:["getRootNode"]),["setAttribute","removeAttribute"]);B=_.C(B);for(var F=B.next(),D={};!F.done;D={method$jscomp$53:void 0},F=B.next())D.method$jscomp$53=F.value,G[D.method$jscomp$53]=function(u){return function(){return this.host[u.method$jscomp$53].apply(this.host,arguments)}}(D)};
SES=function(){var G=TB.prototype,B=[].concat(_.gi(tvg?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.gi(g$g?[]:["querySelector","querySelectorAll"]));B=_.C(B);for(var F=B.next(),D={};!F.done;D={method$jscomp$54:void 0},F=B.next())D.method$jscomp$54=F.value,G[D.method$jscomp$54]=function(u){return function(){return this.root[u.method$jscomp$54].apply(this.root,arguments)}}(D)};
PkI=function(){var G=TB.prototype,B=[].concat(_.gi(sR8?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.gi(xsz?[]:["parentNode"]));B=_.C(B);for(var F=B.next(),D={};!F.done;D={prop$jscomp$67:void 0},F=B.next())D.prop$jscomp$67=F.value,Object.defineProperty(G,D.prop$jscomp$67,{get:function(u){return function(){return this.host[u.prop$jscomp$67]}}(D),
configurable:!0})};
ilg=function(){var G=TB.prototype,B=["activeElement"].concat(_.gi(sR8?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.gi(GKQ?[]:["children"]),_.gi(B1M?[]:["lastChild"]));B=_.C(B);for(var F=B.next(),D={};!F.done;D={prop$jscomp$68:void 0},F=B.next())D.prop$jscomp$68=F.value,Object.defineProperty(G,D.prop$jscomp$68,{get:function(u){return function(){return this.root[u.prop$jscomp$68]}}(D),
configurable:!0})};
Fko=function(){for(var G=TB.prototype,B=_.C(["innerHTML","textContent"]),F=B.next(),D={};!F.done;D={prop$jscomp$69:void 0},F=B.next())D.prop$jscomp$69=F.value,Object.defineProperty(G,D.prop$jscomp$69,{get:function(u){return function(){return this.root[u.prop$jscomp$69]}}(D),
set:function(u){return function(R){this.root[u.prop$jscomp$69]=R}}(D),
configurable:!0})};
D1Q=function(G){var B=TB.prototype;G=_.C(Object.entries(G));for(var F=G.next(),D={};!F.done;D={fn$jscomp$401:void 0},F=G.next()){var u=_.C(F.value);F=u.next().value;u=u.next().value;D.fn$jscomp$401=u;B[F]=function(R){return function(){return R.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.gi(arguments)))}}(D)}};
RLQ=function(){for(var G=TB.prototype,B=_.C(Object.entries(ud6)),F=B.next(),D={};!F.done;D={fn$jscomp$402:void 0},F=B.next()){var u=_.C(F.value);F=u.next().value;u=u.next().value;D.fn$jscomp$402=u;Object.defineProperty(G,F,{get:function(R){return function(){return R.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.gi(arguments)))}}(D),
configurable:!0})}};
_.fp=function(G){return G instanceof wx6||G instanceof Document?G:new wx6(G)};
Cdo=function(){for(var G=wx6.prototype,B=_.C("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),F=B.next(),D={};!F.done;D={method$jscomp$55:void 0},F=B.next())D.method$jscomp$55=F.value,G[D.method$jscomp$55]=function(u){return function(){return HTMLElement.prototype[u.method$jscomp$55].call.apply(HTMLElement.prototype[u.method$jscomp$55],[this.node].concat(_.gi(arguments)))}}(D)};
N1s=function(){for(var G=wx6.prototype,B=_.C("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),F=B.next(),D={};!F.done;D={prop$jscomp$70:void 0},F=B.next())D.prop$jscomp$70=F.value,Object.defineProperty(G,D.prop$jscomp$70,{get:function(u){return function(){var R;return(R=this.node["__shady_native_"+u.prop$jscomp$70])!=null?R:this.node[u.prop$jscomp$70]}}(D),
configurable:!0})};
_.tV=function(G,B,F){F===void 0&&(F=!G.classList.contains(B));F?G.classList.add(B):G.classList.remove(B)};
_.Zk=function(G,B,F){F===void 0&&(F=!G.hasAttribute(B));if(B==="class")throw Error("gg");F?_.fp(G).setAttribute(B,""):_.fp(G).removeAttribute(B)};
yYc=function(G){return(G.localName!=="slot"?[]:(0,_.gK)(G).assignedNodes({flatten:!0})).filter(function(B){return B.nodeType===Node.ELEMENT_NODE})};
_.nGg=function(G){return(G=_.IF(G).querySelector("slot"))&&G.localName==="slot"?yYc(G):[]};
_.Ss=function(G,B){window.ShadyCSS&&window.ShadyCSS.styleSubtree(G,B)};
sj=function(G,B){var F=B.bind(G);return function(D){F(D,D.detail)}};
_.x7=function(G,B){var F=lFo.get(G);F||(F=new WeakMap,lFo.set(G,F));if(F.has(B))return F.get(B);if(_.X("web_fi_listen_disable_bound_fn_helper")){var D=B.bind(G);G=function(u){D(u,u==null?void 0:u.detail)}}else G=sj(G,B);
F.set(B,G);return G};
EGI=function(G,B){U1L(G);G.created[qW8].push(B)};
U1L=function(G){if(!G.created||!G.created[qW8]){var B=G.created,F=B?[B]:[];G.created=function(){for(var D=_.C(F),u=D.next();!u.done;u=D.next())u.value.apply(this)};
G.created[qW8]=F}};
hL6=function(G){return function(){var B=_.xS.apply(0,arguments);return function(F,D,u){G.apply(null,_.gi(B))(F,D,u)}}};
Kkg=function(){return function(){var G=_.xS.apply(0,arguments);return function(B,F,D){YlS.apply(null,_.gi(G))(B,F,D)}}};
_.k=function(G){return Kkg()(G)};
_.O=function(){return hL6(c56).apply(null,_.gi(_.xS.apply(0,arguments)))};
_.Pm=function(G){return _.X("pbcm_fi_listen_decorators")?aFs(G):hL6(dBz)(G)};
aFs=function(G){return function(B,F){EGI(B,function(){var D=this[F],u=_.X("web_fi_listen_disable_bound_fn_helper")?function(R){D(R,R.detail)}.bind(this):sj(this,D);
m18.has(G)?O2(this.hostElement,G,u):this.hostElement.addEventListener(G,u)})}};
_.Ga=function(){return hL6(J5s).apply(null,_.gi(_.xS.apply(0,arguments)))};
_.v=function(G){G=G===void 0?{}:G;return hL6(A5l)(G)};
_.Bc=function(G){if(G.hostElement&&G!==G.hostElement){var B=_.u2(G.hostElement);B=G.renderIdom?B:B.shadowRoot}B||(G=G.root,B=G instanceof Node?_.u2(G):null);return B};
_.iA=function(G){return XxQ?Qrz(G):function(B,F){Object.defineProperty(B,F,{get:function(){var D;return(D=_.Bc(this))==null?void 0:D.querySelector(G)},
enumerable:!0,configurable:!0})}};
Qrz=function(G){return function(B,F){Object.defineProperty(B,F,{get:function(){var D,u=(D=_.IF(this.hostElement))==null?void 0:D.querySelector(G);if(u)return u;var R;return(R=_.Bc(this))==null?void 0:R.querySelector(G)},
enumerable:!0,configurable:!0})}};
_.FQ=function(G){return XxQ?jrM(G):function(B,F){Object.defineProperty(B,F,{get:function(){var D;return(D=_.Bc(this))==null?void 0:D.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
jrM=function(G){return function(B,F){Object.defineProperty(B,F,{get:function(){var D,u=(D=_.IF(this.hostElement))==null?void 0:D.querySelectorAll(G);if(u==null?0:u.length)return u;var R;return(R=_.Bc(this))==null?void 0:R.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
LkI=function(G){return function(B){if(![_.gS,_.p].includes(Object.getPrototypeOf(B.prototype).constructor))throw Error("hg");$Bg(Object.assign({},typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(B)}};
_.uA=function(){var G=G===void 0?{}:G;return function(B){if(![SW,_.DO].includes(Object.getPrototypeOf(B.prototype).constructor))throw Error("ig");zrz(Object.assign({},G,{disableInheritanceCheck:!0}))(B)}};
WkQ=function(G,B){rYU[G]!=null||(rYU[G]=new Set);rYU[G].add(B)};
_.Ry=function(){var G=_.Ga.apply(null,_.gi(_.xS.apply(0,arguments)));return function(B,F){WkQ(B.is,F);G(B,F)}};
N7=function(G,B,F){if(w3(G)&&!HlI.has(B)){B=B.replace(/^JSC\$[\d]+_/,"");B=B.replace(/\.\d+(\.|$)/g,function(R,N){return".#"+N});
CW[G]!=null||(CW[G]={});var D,u;(D=CW[G])[u=B]!=null||(D[u]=new Set);CW[G][B].has(F)||(CW[G][B].add(F),_.W$("polymerPropertyAccessEvent",{componentName:G,propertyName:B,accessType:F}))}};
kKl=function(){return _.X("polymer_property_access_logging_debug")||_.X("polymer_enable_property_access_logging")};
w3=function(G){if(_.X("polymer_property_access_logging_debug"))return!0;if(!_.X("polymer_enable_property_access_logging"))return!1;OlJ||(OlJ=Date.now());return(ja(G)+OlJ)%100<_.sD("polymer_property_access_logging_percent")};
eLz=function(G,B){return w3(B)&&G.hostElement.loggingStatus?new Proxy(G,{get:function(F,D,u){if(F.hostElement.loggingStatus.bypassProxyController)return F[D];F.hostElement.loggingStatus.isExternalGet=!0;var R=F[D];F.hostElement.loggingStatus.isExternalGet=!1;if(R instanceof Function)return function(){var N=_.xS.apply(0,arguments);try{return F.hostElement.loggingStatus.currentExternalCall=D,N7(B,D,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),R.apply(this===u?F:this,N)}finally{F.hostElement.loggingStatus.currentExternalCall=
void 0}};
N7(B,D,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return R},
set:function(F,D,u){if(F.hostElement.loggingStatus.bypassProxyController)return F[D]=u,!0;F.hostElement.loggingStatus.isRendererStamper?N7(B,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):F.hostElement.loggingStatus.isDeclarativeExternal||N7(B,D,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{F.hostElement.loggingStatus.currentExternalSet=D,F[D]=u}finally{F.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):G};
$1I=function(G,B){G&&G.loggingStatus&&!G.loggingStatus.isDeclarativeExternal&&!G.loggingStatus.isExternalGet&&G.loggingStatus.currentExternalSet!==B&&N7(G.tagName.toLowerCase(),B,"PROPERTY_ACCESS_GET_INTERNAL")};
y7=function(G,B,F){G&&(F||G.loggingStatus&&!G.loggingStatus.isInitializing&&!G.loggingStatus.isDefiningPropertyAccessor&&G.loggingStatus.currentExternalSet!==B)&&N7(G.tagName.toLowerCase(),B,"PROPERTY_ACCESS_SET_INTERNAL")};
zL6=function(){return{_definePropertyAccessor:function(G,B){var F=this,D=F.hostElement.loggingStatus;D&&(D.isDefiningPropertyAccessor=!0);var u=F[G];u!==void 0&&(F.__data?F._setPendingProperty(G,u):(F.__dataProto!=null||(F.__dataProto={}),F.__dataProto[G]=u));D&&(D.isDefiningPropertyAccessor=!1);Object.defineProperty(this,G,{get:function(){$1I(F.hostElement,G);return this.__data[G]},
set:function(R){B||this._setPendingProperty(G,R,!0)&&this._invalidateProperties()}})},
created:function(){var G=this._setPendingProperty.bind(this);this._setPendingProperty=function(B,F,D){y7(this.hostElement,B);return G.apply(this,[B,F,D])}}}};
bl6=function(G){kKl()&&_.k(nW.prototype)(G.prototype,"__templateBindingLoggingBehavior")};
VKU=function(G,B){if(B.resolvedFactories.length!==G.resolvedFactories.length)return!0;B=_.C(B.resolvedFactories.entries());for(var F=B.next();!F.done;F=B.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;if(D.providerClass){if(D.providerClass!==G.resolvedFactories[F].providerClass)return!0}else if(D.providerValue){if(D.providerValue!==G.resolvedFactories[F].providerValue)return!0}else if(D.factory!==G.resolvedFactories[F].factory)return!0}return!1};
vG8=function(G,B){G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.constructor===Array)vG8(F,B);else{var D=B;D.has(F)||(F.inject&&D.add(F),F.behaviors&&vG8(F.behaviors,D))}};
lA=function(G,B){var F=G[B];G[B]=function(){var D=_.xS.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(F)return F.apply(this,D)}};
YWI=function(){_.UF.Class=function(F,D){F=oGS(F,D);lA(F.prototype,"created");return F};
lA(q7.prototype,"_initializeProperties");lA(_.EF.prototype,"_initializeProperties");if(MKo)lA(pxL,"created");else{var G=function(){lA(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))G();else{var B=customElements.define;customElements.define=function(F,D,u){B.call(customElements,F,D,u);F==="tp-yt-iron-list"&&(G(),customElements.define=B)}}}};
d1M=function(G,B){G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(AYl.InjectBehavior);G.prototype.provide=B};
_.ay=function(G){return function(B){if(!G.disableElementRegistration){G.noInjection||d1M(B,G.providers);var F=B.prototype;F.__templateHelpers||YlS(hS.prototype)(F,"__templateHelpers");F=G.is;JYs||(JYs=Date.now());(ja(F)+JYs)%100<_.sD("polymer_log_prop_change_observer_percent")&&YlS(KW.prototype)(B.prototype,"__propertyObserverObserver");B.prototype.behaviors=B.prototype.behaviors||[];B.prototype.behaviors.unshift(_.cYL.YtHostElementBehavior);bl6(B);LkI({is:G.is,notifyObserversOnUndefined:G.notifyObserversOnUndefined!==
!1,fastInit:G.fastInit,template:G.template,disableEnforceFastDefaultValuesCheck:!0})(B)}}};
_.mC=function(G){return _.ay({is:G.is,template:G.template,disableElementRegistration:G.disableElementRegistration,cssBuildOptOut:G.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
fFL=function(G,B){if(T16){G=new G;for(var F=_.C(Object.getOwnPropertyNames(G)),D=F.next();!D.done;D=F.next())D=D.value,B[D]=G[D];for(F=B;F&&F!==Object.prototype;F=Object.getPrototypeOf(F)){D=_.C(Object.getOwnPropertyNames(F));for(var u=D.next();!u.done;u=D.next())u=u.value,G.hasOwnProperty(u)||Object.defineProperty(G,u,IFS(B,u))}}else G.apply(B)};
IFS=function(G,B){return{get:function(){var F=G[B];return F instanceof Function?F.bind(G):F},
set:function(F){G[B]=F}}};
Zlg=function(G,B){for(var F=G._noAccessors,D=_.C(Object.getOwnPropertyNames(G)),u=D.next();!u.done;u=D.next())if(u=u.value,!tKJ.has(u))if(F)B[u]=G[u];else{var R=Object.getOwnPropertyDescriptor(G,u);R&&(R.configurable=!0,Object.defineProperty(B,u,R))}};
gGU=function(G,B,F){return function(D){if(F){var u=F();D.model=u}if(G[B])G[B](D,D.detail)}};
XQ=function(G){var B=[];if(typeof G==="string")G.length>0&&B.push.apply(B,_.gi(G.split(".")));else{G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,typeof F==="string"?B.push.apply(B,_.gi(F.split("."))):B.push(F)}return B};
SWz=function(G,B){if(B[B.length-1]!=="*"&&B[B.length-1]!=="splices"){for(var F=0;F<B.length;F++){if(!G)return;G=G[B[F]]}return G}};
srM=function(G,B){if(G.length>B.length)return!1;for(var F=0;F<G.length;F++)if(G[F]!==B[F])return!1;return!0};
Pd6=function(G,B,F){if(B.type==="compute"){var D=B.getter.bind(F);var u=B.args}else D=function(){return F[B.method.methodName].apply(F,_.gi(_.xS.apply(0,arguments)))},u=B.method.args;
x18(G,B.propertyKey,D,u,B.value)};
BvQ=function(G,B){if(B.readOnly){var F=Object.getOwnPropertyDescriptor(G.model,B.propertyKey);Object.defineProperty(G.model,B.propertyKey,{get:F.get,set:function(){}});
G.model[GCM(B.propertyKey)]=F.set}};
iOc=function(G,B,F){if(F){var D=B.propertyKey,u=B.selector;B=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.gi(B.selectorArgs.map(function(R){return{type:"path",path:R}})));
x18(G,D,function(R){var N=_.xS.apply(1,arguments);return u.apply(null,[F.getState()].concat(_.gi(N)))},B)}};
DqI=function(G,B,F){var D=_.s1(B.propertyKey)+"-changed";Fpz(G,function(u){var R={value:u.value,queueProperty:!0};u.path.split(".").length>1&&(R.path=u.path);F.dispatchEvent(new CustomEvent(D,{detail:R}))},[{type:"wildcard",
path:B.propertyKey}])};
u4s=function(G,B,F){Fpz(G,function(){F[B.method.methodName].apply(F,_.gi(_.xS.apply(0,arguments)))},B.method.args)};
GCM=function(G){return"_set"+(G.charAt(0).toUpperCase()+G.slice(1))};
Rez=function(){var G,B=vN(function(F){G=F},!1);
return[G,B]};
nBI=function(G){G=G.trim().replace(wCg,",").replace(Cto,"$1");var B=G[0];B==="-"&&(B=G[1]);if(B>="0"&&B<="9")return{type:"literal",value:Number(G)};if(B==="'"||B==='"')return{type:"literal",value:G.slice(1,-1)};if(B=G.match(Nvc)){B=B[1];var F=yvg[B];if(F)return{type:F,path:G.slice(0,-(B.length+1))}}return{type:"path",path:G}};
EBI=function(G){var B=G.match(lPI);if(B)return G={methodName:B[1],args:Uqg},B[2].trim()&&(B=B[2].replace(qPL,"&comma;").split(","),G.args=B.map(nBI)),G};
heI=function(G,B,F,D){D=D===void 0?!1:D;B=_.s1(B);var u=Kt;u&&(F=u(F,B,"attribute",G));Q7(G,F,B,D)};
Q7=function(G,B,F,D){B=Kpg(B,D===void 0?!1:D);B===void 0?G.removeAttribute(F):G.setAttribute(F,B)};
Kpg=function(G,B){switch(typeof G){case "object":case "function":if(G instanceof Date)return G.toString();if(G){if((B===void 0?0:B)&&!_.X("polymer_reflect_objects_as_boolean_killswitch"))return G?"":void 0;B=window.trustedTypes?window.trustedTypes.isHTML(G)||window.trustedTypes.isScript(G)||window.trustedTypes.isScriptURL(G):void 0;if(B)return G;try{return JSON.stringify(G)}catch(F){_.em(Error("Eg`"+G))}}break;case "boolean":return G?"":void 0;default:return G!==null&&G!==void 0?G.toString():void 0}};
aPg=function(G){if(G===void 0)throw Error("Fg");return G};
Lpo=function(G,B,F,D){var u=mqM(D);if(u.length){D=F;var R="property";XCg.test(F)?R="attribute":F[F.length-1]==="$"&&(F=F.slice(0,-1),R="attribute");var N=Qj6(u);N&&R==="attribute"&&(F==="class"&&G.hasAttribute("class")&&(N+=" "+G.getAttribute(F)),Q7(G,N,F));R==="attribute"&&D==="disable-upgrade$"&&G.setAttribute("disable-upgrade","");G.localName==="input"&&D==="value"&&G.setAttribute("value","");G.removeAttribute(D);R==="property"&&(F=_.xQ(F));B=aPg(B);jjl(B,R,F,u);return!0}return F.slice(0,3)===
"on-"?(G.removeAttribute(F),(R=B).events!=null||(R.events=[]),B.events.push({name:F.slice(3),value:D}),!0):F==="id"?(B.id=D,!0):!1};
mqM=function(G){for(var B=[],F=0,D;(D=rvz.exec(G))!==null;){D.index>F&&B.push({type:"literal",value:G.slice(F,D.index)});var u=D[1][0];F=!!D[2];D=D[3].trim();if(u==="{")throw Error("Gg");(u=EBI(D))?B.push({type:"method",negate:F,signature:u}):B.push({type:"path",negate:F,path:D});F=rvz.lastIndex}F&&F<G.length&&(G=G.substring(F))&&B.push({type:"literal",value:G});return B};
Qj6=function(G){for(var B="",F=0;F<G.length;F++){var D=G[F];D.type==="literal"&&(B+=D.value)}return B};
jjl=function(G,B,F,D){G.bindings!=null||(G.bindings=[]);G.bindings.push({kind:B,target:F,parts:D})};
eeI=function(G,B,F){var D=!1;if(G.localName==="template"){D=F;var u=B.stripWhitespace;u=Wpl(G,u===void 0?!1:u);var R=G.content.ownerDocument.createDocumentFragment();u.content=R;R.appendChild(G.content);D&&(D.templateInfo=u);D=!0}else G.localName==="slot"&&(B.hasInsertionPoint=!0);if(G.firstChild&&(u=F,G.localName!=="script"&&G.localName!=="style")){R=0;for(var N=G.firstChild;N;){var y=N;if(y.localName==="template"){var U=y.getAttribute("is");if((N=U==="dom-if")||U==="dom-repeat"){y.removeAttribute("is");
U=y.ownerDocument.createElement("ps-"+U);y.parentNode.replaceChild(U,y);U.appendChild(y);var q=Array.from(y.attributes);q=_.C(q);for(var h=q.next();!h.done;h=q.next())h=h.value,N?HOU.has(h.name)&&Q7(U,h.value,h.name):kCl.has(h.name)?Q7(U,h.value,h.name):OOQ.has(h.name),y.removeAttribute(h.name);N=U}else N=y}if(N.nodeType===Node.TEXT_NODE){y=void 0;U=G;for(q=N;((y=q.nextSibling)==null?void 0:y.nodeType)===Node.TEXT_NODE;)h=void 0,(h=q).textContent!=null||(h.textContent=""),q.nextSibling.textContent&&
(q.textContent+=q.nextSibling.textContent),U.removeChild(q.nextSibling);if(B.stripWhitespace&&N.textContent&&!N.textContent.trim()){G.removeChild(N);N=N.nextSibling;continue}}eeI(N,B,{parentIndex:R,parentInfo:u});N.parentNode&&R++;N=N.nextSibling}}var K;if((K=G.hasAttributes)==null?0:K.call(G)){K=F=aPg(F);u=!1;R=Array.from(G.attributes);R=_.C(R);for(y=R.next();!y.done;y=R.next())y=y.value,u=Lpo(G,K,y.name,y.value)||u;D=u||D}G.nodeType===Node.TEXT_NODE&&(K=mqM(G.textContent),K.length&&(G.textContent=
Qj6(K)||" ",F=aPg(F),jjl(F,"text","textContent",K),D=!0));F&&D&&(F.infoIndex=B.nodeInfoList.push(F)-1)};
Wpl=function(G,B){B={nodeInfoList:[],stripWhitespace:(B===void 0?!1:B)||G.hasAttribute("strip-whitespace")};eeI(G.content,B);return B};
$q8=function(G){Object.assign(G,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
bOI=function(G,B,F){B.signalCache!=null||(B.signalCache={});var D=B.signalCache[F];if(!D){var u=F.split(".");D=!zel(G,u[0]);if(u.length>1&&D){var R=G.getPathMutationSignal(u);D=function(){var N=pE(G.owner,function(){return G.getWithPath([u[0]])}),y,U=(y=R())==null?void 0:y.value;
return{rootWasDefined:N!==void 0,value:U}}}else D=function(){var N=G.getWithPath(u);
return{rootWasDefined:N!==void 0,value:N}};
B.signalCache[F]=D}return D()};
vBM=function(G,B,F,D,u){B=B.parts.map(function(N,y){if(N.type==="literal"){F.partWasDefined!=null||(F.partWasDefined=[]);var U;(U=F.partWasDefined)[y]||(U[y]=N.value!==void 0);return N.value}var q;if(N.type==="method"){var h,K=(h=(q=F.partWasDefined)==null?void 0:q[y])!=null?h:!1;K||(K=N.signature.args.every(function(L){return L.type==="literal"}));
var a=!1,m=!0;q=N.signature.args.map(function(L){if(L.type==="literal")return L.value;if(L.type!=="path")throw Error("Hg`"+L.type);var W=bOI(G,F,L.path);L=W.value;W=W.rootWasDefined;a||(a=W);m&&(m=W);return L});
K||(K=u===1?m:a);F.partWasDefined!=null||(F.partWasDefined={});F.partWasDefined[y]=K;if(!K)return;q=(y=bOI(G,F,N.signature.methodName).value)&&typeof y==="function"?y.apply(D,q):void 0}else h=bOI(G,F,N.path),q=h.value,F.partWasDefined!=null||(F.partWasDefined={}),(K=F.partWasDefined)[y]||(K[y]=q!==void 0||h.rootWasDefined);N.negate&&(q=!q);return q});
if(B.length===1){var R;return((R=F.partWasDefined)==null?0:R[0])?B[0]:Vcc}return B.join("")};
oBU=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G&&"canNotifyPath"in G};
McI=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G};
pCs=function(G){return"polymerController"in G};
YPJ=function(G,B){B=""+XQ(B)[0];if(oBU(G))return G.canNotifyPath(B);if(pCs(G)&&oBU(G.polymerController))return G.polymerController.canNotifyPath(B);if(McI(G)){var F;return!((F=G.properties)==null||!F[B])}if(pCs(G)&&McI(G.polymerController)){var D;return!((D=G.polymerController.properties)==null||!D[B])}return!1};
Avo=function(G,B,F){oBU(G)||McI(G)?G.notifyPath(B,F):pCs(G)&&(oBU(G.polymerController)||McI(G.polymerController))&&G.polymerController.notifyPath(B,F)};
Jv6=function(G,B,F){if(F!==Vcc){G.kind==="attribute"||G.target!=="textContent"&&(G.target!=="value"||B.localName!=="input"&&B.localName!=="textarea")||(F=F===void 0?"":F);var D,u=(D=dqQ.Polymer)==null?void 0:D.sanitizeDOMValue;u&&(F=u(F,G.target,G.kind,B));if(G.kind==="attribute"){G=G.target;if(G==="class"||G==="name"||G==="slot")B=(0,_.gK)(B);Q7(B,F,G)}else if(G=G.target,F!==B[G]||typeof F==="object")B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!0,N7(B.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
B[G]=F,B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!1)}};
cvz=function(G,B,F,D){var u=B.parts[0];if(B.parts.length!==1||u.type!=="path"||!YPJ(F,B.target))return!1;var R=_.C(u.path.split(".")),N=R.next().value,y=fn(R);if(zel(G,N))return!1;D.signalCache!=null||(D.signalCache={});R=D.signalCache[u.path];var U;R=(U=R)==null?void 0:U().value;if((R==null?void 0:R.path)!==void 0){D=XQ(R.path);var q=XQ(u.path);D=[B.target].concat(_.gi(D.slice(q.length-1)));Avo(F,D,u.negate?!R.value:R.value);return!0}var h=jI(G,N);var K=h.getChangeRecordSignal(y),a=!1;R=function(){if(!a){var L=
pE(G.owner,function(){return h.getWithPath([])});
a||(a=L!==void 0)}return{value:K(),rootWasDefined:a}};
D.signalCache[u.path]=R;D.partWasDefined!=null||(D.partWasDefined={});R=R();(q=D.partWasDefined)[0]||(q[0]=R.rootWasDefined);var m=pE(G.owner,function(){return h.getWithPath(y)});
D.partWasDefined[0]&&pE(G.owner,function(){return void Jv6(B,F,u.negate?!m:m)});
return!0};
Tvl=function(G,B,F,D,u,R){if(!cvz(G,B,F,D)){var N=vBM(G,B,D,u,R);pE(G.owner,function(){return void Jv6(B,F,N)})}};
IPM=function(G,B,F,D,u,R){F=_.C(F);for(var N=F.next(),y={};!N.done;y={infoIndex:void 0},N=F.next()){N=N.value;var U=N.bindings;y.infoIndex=N.infoIndex;N=N.parentInfo;if(U){U=_.C(U);for(var q=U.next(),h={};!q.done;h={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},q=U.next()){h.b$jscomp$257=q.value;if(y.infoIndex===void 0)throw Error("Ig");h.bindingCtx$jscomp$4={};G.effect(function(K,a){return function(){u&&!u()||Tvl(G,K.b$jscomp$257,B[a.infoIndex],K.bindingCtx$jscomp$4,D,R)}}(h,y))}}N&&IPM(G,B,[N],
D,u,R)}};
fPJ=function(G,B){G=(B.parentInfo?fPJ(G,B.parentInfo):G).firstChild;for(var F=0;G;G=G.nextSibling)if(B.parentIndex===F++)return G;throw Error("Jg");};
ZOc=function(G,B,F,D){G=document.importNode(G.content,!0);G.__noInsertionPoint=!(D==null?0:D.hasInsertionPoint);for(var u=Array(B.length),R={},N=0;N<B.length;N++){var y=B[N],U=fPJ(G,y);u[N]=U;y.id&&(R[y.id]=U);if(y.templateInfo){var q=U.parentElement;q&&(q.templateInfo=y.templateInfo,q.parentSignalProxy=F,q.eventListenerHost=D.eventListenerHost,q.stampingEnabled=D.enabledSignal)}q=void 0;if((q=y.events)==null?0:q.length)for(q=0;q<y.events.length;q++){var h=y.events[q];tcg(D.eventListenerHost,U,h.name,
h.value,D.getModel)}}IPM(F,u,B,D.thisCtx,D.enabledSignal,D.methodInvocationRequirement);return{root:G,nodes:u,nodesById:R}};
SPJ=function(G,B){G=G();var F;(F=gBU.ShadyCSS)==null||F.prepareTemplate(G,B);B=Wpl(G);return{template:G,nodeInfoList:B.nodeInfoList,hasInsertionPoint:B.hasInsertionPoint}};
Ptg=function(){sjg=!1;for(var G=LW.length,B=0;B<G;B++){var F=LW[B];if(F)try{F()}catch(D){Promise.resolve().then(function(){throw D;})}}LW.splice(0,G);
xqg+=G};
FuJ=function(G){sjg||(sjg=!0,Gzz.textContent=(BQS++).toString());LW.push(G);return i2z++};
_.Hc=function(G,B,F){r3++;G=B?new Dil(r3,G,B,F):new uFM(r3,G);Wc.set(r3,G);return r3};
Rg8=function(G){(G=Wc.get(G))&&G.cancel()};
CgQ=function(G,B){G=wBl.get(G);return G?(B=G.get(B))?B:null:null};
_.kT=function(G,B,F,D){var u=CgQ(G,B);if(!u){u=new NQg;var R=wBl.get(G);R||(R=new Map,wBl.set(G,R));R.set(B,u)}G=F.bind(G);u.run(G,D,void 0)};
_.ywg=function(G,B){var F;(F=CgQ(G,B))==null||F.cancel()};
nao=function(G){var B;(B=CgQ(G,"doRender"))==null||B.flush()};
OF=function(G){var B;return(B=G.hostElement)!=null?B:G};
l58=function(G){var B=G.indexOf(".");return B===-1?G:G.slice(0,B)};
UiS=function(G,B,F,D,u,R){R=(u=(D=R?l58(B):B)?B:null)?G.get(u):G.__data[B];u&&R===void 0&&(R=F[B]);_.cZ(G.hostElement,fxz(D)+"-changed",{value:R,queueProperty:!0,path:u!=null?u:void 0},{bubbles:!1,composed:!1})};
qHc=function(G,B){G.__isReflecting=!0;heI(G.hostElement,B,G.__data[B]);G.__isReflecting=!1};
EaQ=function(G){if(G._onIronRequestResizeNotifications){var B=G._onIronRequestResizeNotifications.bind(G);G._onIronRequestResizeNotifications=function(F){_.oF(F)!==G.hostElement&&B(F)}}G._ariaActiveAttributeChanged&&(G._ariaActiveAttributeChanged=G._ariaActiveAttributeChanged.bind(G.hostElement));
G._activeChanged&&(G._activeChanged=function(F){G.toggles?Q7(G.hostElement,F?"true":"false",G.ariaActiveAttribute):G.hostElement.removeAttribute(G.ariaActiveAttribute);G._changedButtonState()});
G._asyncClick&&(G._asyncClick=function(){_.Hc(function(){G.hostElement.click()},1)});
!G.keyEventTarget||G.keyEventTarget instanceof EventTarget||(G.keyEventTarget=OF(G.keyEventTarget));G._disabledChanged&&(G._disabledChanged=G._disabledChanged.bind(G.hostElement));G._observeItems&&(G._observeItems=function(F){var D=OF(F);return _.u2(D).observeNodes(function(u){G._updateItems();G._updateSelected();_.cZ(D,"iron-items-changed",u,{bubbles:!1,cancelable:!1})})});
G._updateItems&&G._updateItems===_.bA._updateItems&&(G._updateItems=function(){var F=_.u2(G.hostElement).queryDistributedElements(G.selectable||"*");F=Array.prototype.filter.call(F,G._bindFilterItem);G._setItems(F)});
G._computeKeyboardClass&&(G._computeKeyboardClass=function(F){_.tV(G.hostElement,"keyboard-focus",F)});
G.ensureRipple&&(G.ensureRipple=function(F){if(G.hasRipple&&!G.hasRipple()){if(!G._createRipple)return;G._ripple=G._createRipple();G._ripple.noink=G.noink;var D=G._rippleContainer||G.hostElement;D&&_.IF(D).appendChild(G._ripple)}var u;if(F&&((u=G._ripple)==null?0:u.uiDownAction)){D=_.IF(G._rippleContainer||G.hostElement);var R;u=(R=F.composedPath())==null?void 0:R[0];D.contains(u)&&G._ripple.uiDownAction(F)}});
G._updateMultiselectable&&(G._updateMultiselectable=function(F){F?G.hostElement.setAttribute("aria-multiselectable","true"):G.hostElement.removeAttribute("aria-multiselectable")})};
hgg=function(G,B,F){F=_.C(F);for(var D=F.next();!D.done;D=F.next())fFL(D.value.constructor,G);fFL(B.constructor,G)};
a5U=function(G,B){G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.type==="signal"){var D=F.propertyKey;if(B.hasOwnProperty(D)&&B[D]!=null&&F.attributeType===Object){a:{D=B[D].constructor;for(var u=_.C(Kuo),R=u.next();!R.done;R=u.next())if(R=R.value,D===R){D=R;break a}D=Object}F.attributeType=D}}};
mic=function(){};
XBS=function(G){var B;return(B=G.hostElement)!=null?B:G};
Q4U=function(){throw Error("Ng");};
j46=function(G,B){G.constructor.prototype.useSignals=!0;var F=new G.constructor;hgg(F,G,B.behaviors);a5U(B.reactiveSchemas,F);F={};for(var D=_.C(B.reactiveSchemas),u=D.next();!u.done;u=D.next())u=u.value,u.type==="signal"&&(F[u.propertyKey]=u.attributeType);var R={copyPropertiesToProto:Q4U,didRegister:!1,typesForSignals:F},N=["disable-upgrade"].concat(_.gi(B.observedAttributes)),y=function(U){V7.call(this,G,B,R,U)};
_.r(y,V7);_.ZN.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N}}});
R.copyPropertiesToProto=function(){for(var U=0;U<B.behaviors.length;U++)Zlg(B.behaviors[U],y.prototype);Zlg(G,y.prototype)};
B.legacyOptimizations||R.copyPropertiesToProto();y.prototype.is=G.is;return y};
Luc=function(G,B){if(Object.getPrototypeOf(B.prototype).constructor!==_.p)throw Error("Og");B.prototype.is=G.is;return j46(B.prototype,G)};
rwI=function(G){return G.type==="compute"||G.type==="computeWithMethod"};
Wu6=function(G){for(var B=G.reactiveSchemas.filter(rwI),F=new Map,D=new Map,u=new Map,R=_.C(B),N=R.next();!N.done;N=R.next())N=N.value,F.set(N.propertyKey,N),D.set(N.propertyKey,[]),u.set(N.propertyKey,0);R=0;B=_.C(B);for(N=B.next();!N.done;N=B.next()){N=N.value;for(var y=_.C(N.type==="computeWithMethod"?N.method.args:N.args),U=y.next();!U.done;U=y.next())U=U.value,U.type!=="literal"&&(U=U.path.split(".")[0],D.has(U)&&(D.get(U).push(N.propertyKey),u.set(N.propertyKey,u.get(N.propertyKey)+1),R++))}N=
[].concat(_.gi(D.keys())).filter(function(q){return u.get(q)===0});
for(B=[];N.length;)for(y=N.shift(),B.push(F.get(y)),y=_.C(D.get(y)),U=y.next();!U.done;U=y.next())U=U.value,u.set(U,u.get(U)-1),R--,u.get(U)===0&&N.push(U);F=G.reactiveSchemas.filter(function(q){return!rwI(q)});
G.reactiveSchemas=[].concat(_.gi(F),_.gi(B))};
H2U=function(G,B){if(B.properties)for(var F=_.C(Object.entries(B.properties)),D=F.next();!D.done;D=F.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;G.properties[D]=typeof u==="function"?{type:u}:u}B.observers&&G.observers.push.apply(G.observers,_.gi(B.observers));B.disabledPolySiReactions&&G.disabledPolySiReactions.push.apply(G.disabledPolySiReactions,_.gi(B.disabledPolySiReactions))};
kzg=function(G,B){for(var F=B.length-1;F>=0;F--){var D=B[F];Array.isArray(D)?kzg(G,D):G.indexOf(D)<0&&G.unshift(D)}};
O2Q=function(G,B){G.reactiveSchemas=G.reactiveSchemas.filter(function(F){return F.type==="observe"&&B.includes(F.method.methodName)||rwI(F)&&B.includes(F.propertyKey)?!1:!0})};
$il=function(G,B){var F=B.prototype,D,u,R={is:G.is,reactiveSchemas:[],observedAttributes:[],behaviors:[AYl.InjectBehavior,hS.prototype],disableElementRegistration:G.disableElementRegistration,provide:(D=G.providers)!=null?D:[],reactivityMode:G.reactivityMode,signalProperties:(u=F.signalProperties)!=null?u:[]};"template"in B?R.templateGetter=function(){return B.template}:G.getTemplate&&(R.templateGetter=G.getTemplate);
F.behaviors&&kzg(R.behaviors,F.behaviors);egc(R,B);return R};
egc=function(G,B){for(var F=B.prototype,D={properties:{},observers:[],disabledPolySiReactions:[]},u=_.C(G.behaviors),R=u.next();!R.done;R=u.next())H2U(D,R.value);H2U(D,F);if(G.signalProperties)for(F=_.C(G.signalProperties),u=F.next();!u.done;u=F.next())delete D.properties[u.value];F=_.C(Object.entries(D.properties));for(u=F.next();!u.done;u=F.next()){R=_.C(u.value);u=R.next().value;R=R.next().value;var N=void 0;if((N=G.signalProperties)==null||!N.includes(u)){N=void 0;var y=G,U=R.type;if(!U)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{U=Reflect.getMetadata("design:type",B,u);for(var q=_.C(zgM),h=q.next();!h.done;h=q.next())if(h=h.value,U===h){U=h;break a}U=Object}else U=String;R.computed||R.selector||(y.reactiveSchemas.push({type:"signal",propertyKey:u,value:R.value,attributeType:U,readOnly:R.readOnly}),y.observedAttributes.push(_.s1(u)));R.reflectToAttribute&&y.reactiveSchemas.push({type:"reflect",propertyKey:u});if(R.computed){U=EBI(R.computed);if(!U)throw Error("Pg");y.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:u,method:U,value:R.value})}R.observer&&y.reactiveSchemas.push({type:"observe",method:{methodName:R.observer,args:[{type:"path",path:u}]}});R.notify&&y.reactiveSchemas.push({type:"notify",propertyKey:u});R.selector&&y.reactiveSchemas.push({type:"redux",propertyKey:u,selector:R.selector,selectorArgs:(N=R.selectorArgs)!=null?N:[]})}}b2g&&Wu6(G);B=_.C(D.observers);for(u=B.next();!u.done;u=B.next())F=G,u=u.value,(R=EBI(u))?F.reactiveSchemas.push({type:"observe",method:R}):console.log('Warning: unable to parse observe declaration: "'+
u+'"');O2Q(G,D.disabledPolySiReactions)};
Vbz=function(G,B){for(var F=0;F<B.length;F++){var D=B[F],u=void 0;(u=D).showHideApi!=null||(u.showHideApi={});u=void 0;!!G!==!((u=D.showHideApi)==null||!u.hideTemplateChildren)&&(D.nodeType===Node.TEXT_NODE?G?(D.showHideApi.polymerTextContent=D.textContent,D.textContent=""):(u=void 0,D.textContent=(u=D.showHideApi.polymerTextContent)!=null?u:null):D instanceof Element&&D.localName==="slot"?G?(D.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.gK)((0,_.gK)(D).parentNode).replaceChild(D.showHideApi.polymerReplaced,
D)):(u=D.showHideApi.polymerReplaced)&&(0,_.gK)((0,_.gK)(u).parentNode).replaceChild(D,u):D instanceof HTMLElement&&D.style&&(G?(D.showHideApi.polymerDisplay=D.style.display,D.style.display="none"):D.style.display=D.showHideApi.polymerDisplay));D.showHideApi.hideTemplateChildren=G;D.showHideChildren&&D.showHideChildren(G)}};
oaQ=function(){if(!vaM){var G=document.createElement("style");G.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(G);vaM=!0}};
vc=function(){return _.X("disable_hidden_dom_if_using_stamper")};
Mb8=function(G,B){var F=_.oy().getState();return B?G.apply(null,[F].concat(_.gi(B))):G(F)};
Aw8=function(){if(pBl)return pBl;var G=_.C(_.qg(0,void 0,"MB1Hb")),B=G.next().value;G.next();var F=G.next().value;_.oy().subscribe(function(){YHL(F)});
return pBl=B};
YHL=function(G){di8||(di8=!0,Promise.resolve().then(function(){G(function(B){return B+1});
di8=!1}))};
_.oy=function(){return JwL.getAppStore()};
cw6=function(G,B){return JwL.getSelectFn()(G,B)};
_.M7=function(G){JwL.getDispatchFn()(G)};
TQJ=function(G,B){var F={},D;for(D in G)F[D]=B(G[D],D);return F};
_.pW=function(G,B){return function(){var F;return(F=_.Mg(G))!=null?F:B}};
_.AS=function(G,B){var F=Object.assign({},G),D;for(D in B)B.hasOwnProperty(D)&&(F[D]=_.pW(G[D],B[D]));return F};
I5M=function(G,B,F,D){G instanceof Element&&(F.debugName||(F.debugName="<"+G.tagName.toLowerCase()+(G.tagName.includes("-")?">":"."+G.className+">")),_.X("ytwiz_enable_debug_component_props")&&(G.debugProps||(G.debugProps=TQJ(B,function(u){return function(){return u()}})),B.data===void 0||"data"in G&&!G.isWebComponentWrapper||Object.defineProperty(G.debugProps,"data",{get:function(){return _.Mg(B.data)},
set:function(u){var R;D==null||(R=D.data)==null||R.call(D,u)},
enumerable:!0,configurable:!0})))};
_.d3=function(G,B){if(G.length===0&&(B==null||!B.initial))return fNM(G,{debugName:B==null?void 0:B.debugName},"l");var F=_.C(fNM({source:function(){return G()},
computation:function(R,N){return(N==null?0:N.value)?G(N.value):(B==null?0:B.initial)?G(B.initial):R}},{debugName:B==null?void 0:B.debugName},"m")),D=F.next().value,u=F.next().value;
F=F.next().value;return[D,u,F]};
_.Y=function(G,B){var F=function(D){return _.ds("ytComponent",{},function(u){var R=f5l={};var N;if(((N=F)==null?0:N.idomCompat)&&D.renderedFromIdom){var y;N=typeof F.idomCompat==="object"?(y=F)==null?void 0:y.idomCompat.callbacks:{};N=_.C(tb6(D,N));y=N.next().value;var U=N.next().value;N=N.next().value;var q=Z2S(G,y);R.privateValue=q;f5l=void 0;I5M(q,y,F,U);u.addAttributes({debugName:F.debugName});u=dYJ(q);u=Array.isArray(u)?u[0]:u;u[yc]||(u[yc]={});u[yc].updateSignalsFromIdomProps=N;gaM(y,q);return q}N=
TQJ(D,SHL);y=Z2S(G,N);I5M(y,N,F);R.privateValue=y;f5l=void 0;u.addAttributes({debugName:F.debugName});gaM(N,y);return y})};
F.debugName=B===void 0?"":B;return F};
Z2S=function(G,B){G=G(B);return qn(G)};
s4Q=function(G,B){G[B]||(G=new _.Uf("IDOM interop setter undefined. Key:",B),_.k2(G))};
SHL=function(G,B){return B==="children"||B==="ref"||typeof G==="function"||G===void 0?G:function(){return _.Mg(G)}};
tb6=function(G,B){var F={},D={},u={},R={},N;for(N in G){R={key$jscomp$954:R.key$jscomp$954};R.key$jscomp$954=N;var y=G[R.key$jscomp$954];if(R.key$jscomp$954==="children"||R.key$jscomp$954==="ref")F[R.key$jscomp$954]=y;else if(typeof y==="function")if(R.key$jscomp$954 in B||y.length>0)u[R.key$jscomp$954]=y,F[R.key$jscomp$954]=function(q){return function(){return u[q.key$jscomp$954].apply(u,_.gi(_.xS.apply(0,arguments)))}}(R);
else if(R.key$jscomp$954==="data"){var U=_.C(_.d3(y,{debugName:R.key$jscomp$954+":cwis"}));y=U.next().value;U=U.next().value;F[R.key$jscomp$954]=y;D[R.key$jscomp$954]=U}else F[R.key$jscomp$954]=y;else G[R.key$jscomp$954]===void 0&&R.key$jscomp$954 in B||(U=_.C(_.qg(G[R.key$jscomp$954],{debugName:R.key$jscomp$954+":cwis"},"eGMajf")),y=U.next().value,U=U.next().value,F[R.key$jscomp$954]=y,D[R.key$jscomp$954]=U)}return[F,D,function(q){var h={},K;for(K in q)h={key$jscomp$953:h.key$jscomp$953,val$jscomp$122:void 0},
h.key$jscomp$953=K,h.val$jscomp$122=q[h.key$jscomp$953],h.key$jscomp$953!=="children"&&h.key$jscomp$953!=="ref"&&(typeof h.val$jscomp$122==="function"?h.key$jscomp$953 in B?u[h.key$jscomp$953]=h.val$jscomp$122:h.val$jscomp$122.length>0&&(u[h.key$jscomp$953]=h.val$jscomp$122,_.em(new _.Uf("Callback detected that was not set in the idomCompat callbacks map. Key:",h.key$jscomp$953))):h.key$jscomp$953 in B&&h.val$jscomp$122===void 0||(s4Q(D,h.key$jscomp$953),Xe(function(a){return function(){D[a.key$jscomp$953](a.val$jscomp$122)}}(h))))}]};
GhL=function(G,B,F){var D=HcQ(G.prototype,xiJ,G.prototype.behaviors);D.prototype.is=B;D.prototype.localName=B;F&&Pgl(D,F);return function(u){u&&(D.prototype.hostElement=u);var R=new D;R.root=R;R.hostElement=u;return R}};
Pgl=function(G,B){var F;Object.defineProperty(G.prototype,"_template",{get:function(){F===void 0&&(F=B());return F},
set:function(D){F=D},
configurable:!0,enumerable:!0})};
uxI=function(G,B,F,D){function u(){if(!m){for(var L=new Set,W=_.C(h),e=W.next();!e.done;e=W.next()){e=e.value;for(var b=_.C(Object.getOwnPropertyNames(e)),M=b.next();!M.done;M=b.next()){M=M.value;var t=void 0,T=(t=Object.getOwnPropertyDescriptor(e,M))==null?void 0:t.value;T&&T instanceof Function&&!JS(M)&&(!y[M]||_.X("polymer_forward_method_killswitch"))&&L.add(M)}}W=_.C(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(e=W.next();!e.done;e=W.next())b=_.C(e.value),e=b.next().value,
b=b.next().value,b.value instanceof Function&&!JS(e)&&L.add(e);m=L}return m}
BXQ(G,B,D==null?void 0:D.providers);k6S(G.prototype,G,!0);var R=GhL(G,B,F),N,y=(N=G.prototype.properties)!=null?N:{},U,q,h=(q=(U=G.prototype.behaviors)==null?void 0:U.flat(Infinity))!=null?q:[];F=_.C(h);for(N=F.next();!N.done;N=F.next())y=Object.assign({},N.value.properties,y);var K=[].concat(_.gi(i$g),_.gi(Object.keys(y).map(function(L){return _.s1(L)}))),a=!1,m;
return{ctor:function(L,W){var e=R(L),b,M;L=[].concat(_.gi((b=D==null?void 0:D.allowedProps)!=null?b:[]),_.gi((M=D==null?void 0:D.allowedPropsFromBehaviors)!=null?M:[]));e.allowedProps=L.length>0?L:void 0;b={};M=_.C(K);for(L=M.next();!L.done;L=M.next())L=L.value,b[L]=_.xQ(L);e.__dataAttributes=b;var t=e.ready.bind(e);e.ready=function(){W.beforeReady();t();if(w3(B)&&!a){var T=e.__templateInfo;if(T==null?0:T.hostProps){T=_.C(Object.keys(T.hostProps));for(var A=T.next();!A.done;A=T.next())N7(B,A.value,
"PROPERTY_ACCESS_GET_INTERNAL")}a=!0}};
e._overrideLegacyUndefined=!0;return e},
props:y,observedAttributes:K,getInitialMethods:u,getPropsToForwardBeforeRegister:function(){for(var L=[],W=new Set,e=_.C(Object.keys(y)),b=e.next();!b.done;b=e.next())b=b.value,L.push([b,y[b].readOnly]),W.add(b);e=u();b=_.C(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var M=b.next();!M.done;M=b.next())M=M.value,!F26(M)||e.has(M)||W.has(M)||(L.push([M,!1]),W.add(M));W=_.C(Dr6);for(e=W.next();!e.done;e=W.next())L.push([e.value,!0]);return L},
getPropsToForwardBeforeReady:function(L){for(var W=[],e=_.C(Object.entries(L)),b=e.next();!b.done;b=e.next()){var M=_.C(b.value);b=M.next().value;M=M.next().value;if(F26(b)&&!(M instanceof Function)&&(W.push([b,!1]),w3(B))){var t=M=void 0;(t=(M=L)._createPropertyAccessor)==null||t.call(M,b)}}return W},
shouldForwardProp:F26,shouldLog:w3}};
BXQ=function(G,B,F){d1M(G,F);G.prototype.behaviors.unshift(R4L);if(kKl()){if(w3(B)){var D;(D=G.prototype).behaviors!=null||(D.behaviors=[]);G.prototype.behaviors.unshift(zL6())}bl6(G)}_.k(hS.prototype)(G.prototype,"__templateHelpers")};
JS=function(G){return wiM.has(G)||G.startsWith("__compute__")};
F26=function(G){return!JS(G)&&!G.startsWith("_")&&!G.endsWith("_")};
luc=function(G,B){function F(){var a=U();a=_.C(a);for(var m=a.next();!m.done;m=a.next()){var L=_.C(m.value);m=L.next().value;L=L.next().value;CpJ(K.prototype,m,L)}D=!0}
var D=!1,u=G.ctor,R=G.getInitialMethods,N=G.observedAttributes,y=G.getPropsToForwardBeforeReady,U=G.getPropsToForwardBeforeRegister,q=G.shouldForwardProp,h=G.shouldLog,K=function(){var a=HTMLElement.call(this)||this;a.didForwardDynamicProps=!1;a.loggingStatus={};D||F();a.inst=u(a,{beforeReady:function(){a.didForwardDynamicProps||(a.forwardDynamicProps(),a.didForwardDynamicProps=!0)}});
a.controllerProxy=eLz(a.inst,B);a.forwardMethods();return a};
_.r(K,HTMLElement);K.prototype.forwardMethods=function(){for(var a=this,m=_.C(this.inst.getExtraMethodsToForward()),L=m.next(),W={};!L.done;W={method$jscomp$65:void 0},L=m.next()){var e=_.C(L.value);L=e.next().value;e=e.next().value;W.method$jscomp$65=e;this[L]=function(b){return function(){return b.method$jscomp$65.call.apply(b.method$jscomp$65,[a.inst].concat(_.gi(_.xS.apply(0,arguments))))}}(W)}m=_.C(R());
for(W=m.next();!W.done;W=m.next())W=W.value,q(W)&&NXz(this,W),h(B)&&!JS(W)&&y66(this.inst,W)};
K.prototype.forwardDynamicProps=function(){var a=y(this.inst);a=_.C(a);for(var m=a.next();!m.done;m=a.next()){var L=_.C(m.value);m=L.next().value;L=L.next().value;CpJ(this,m,L);h(B)&&!JS(m)&&n5o(this.inst,m)}};
K.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
K.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
K.prototype.attributeChangedCallback=function(a,m,L){this.inst.attributeChangedCallbackWrapper(a,m,L)};
_.ZN.Object.defineProperties(K.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return B}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.ZN.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N}}});
customElements.define(B,K)};
CpJ=function(G,B,F){G.hasOwnProperty(B)||Object.defineProperty(G,B,{get:function(){var D,u=((D=G.is)!=null?D:G.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||N7(u,B,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,D=this.polymerController[B],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,D},
set:function(D){if(!F){var u,R=((u=G.is)!=null?u:G.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||N7(R,B,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=B,this.loggingStatus.bypassProxyController=!0,this.polymerController[B]!==D&&(u={},this.polymerController.setProperties((u[B]=D,u)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
NXz=function(G,B,F){var D=G.polymerController;G[B]=function(){var u=_.xS.apply(0,arguments);G.loggingStatus.currentExternalCall=B;G.loggingStatus.bypassProxyController=!0;var R,N=((R=G.is)!=null?R:G.tagName).toLowerCase();N7(N,B,"PROPERTY_ACCESS_CALL_EXTERNAL");var y;R=(y=F!=null?F:D[B])==null?void 0:y.call.apply(y,[D].concat(_.gi(u)));G.loggingStatus.currentExternalCall=void 0;G.loggingStatus.bypassProxyController=!1;return R}};
y66=function(G,B){var F=G.hostElement,D=G[B];G[B]=function(){var u=_.xS.apply(0,arguments);if(F.loggingStatus.currentExternalCall!==B){var R,N=((R=F.is)!=null?R:F.tagName).toLowerCase();N7(N,B,"PROPERTY_ACCESS_CALL_INTERNAL")}return D==null?void 0:D.apply(G,u)}};
n5o=function(G,B){var F=Object.getOwnPropertyDescriptor(G,B);F&&!F.get&&Object.defineProperty(G,B,{get:function(){$1I(G.hostElement,B);return F.value},
set:function(D){y7(G.hostElement,B);F.value=D}})};
UrS=function(G){return _.X("poly_si_dom_repeat_detached_fix_killswitch")||G.tagName!=="PS-DOM-REPEAT"?G.tagName==="DOM-REPEAT":!0};
E58=function(G,B){var F=quo(G);G instanceof Element&&F.unshift(G);G=_.C(F.filter(UrS));for(var D=G.next();!D.done;D=G.next()){var u=void 0;D=_.C((u=D.value.__instances)!=null?u:[]);for(u=D.next();!u.done;u=D.next())if(u=u.value,u.root){u=Array.from(u.root.children);u=_.C(u);for(var R=u.next();!R.done;R=u.next())F.push.apply(F,_.gi(E58(R.value,B)))}}return F.filter(function(N){return N.usePatchedLifecycles&&N.lifecycleIsConnected===B})};
quo=function(G){var B=null;G instanceof Element?B=Element.prototype.querySelectorAll:G instanceof DocumentFragment&&(B=DocumentFragment.prototype.querySelectorAll);return B?Array.from(B.call(G,"*")):[]};
cc=function(G){_.U4(function(){for(var B=_.C(E58(G,!1)),F=B.next();!F.done;F=B.next()){F=F.value;F.lifecycleIsConnected=!0;try{var D=void 0,u=void 0,R=void 0,N=void 0;(D=(N=F.polymerController)!=null?N:F)==null||(R=(u=D).connectedCallback)==null||R.call(u)}catch(y){_.k2(y)}}})};
Ta=function(G){_.U4(function(){for(var B=_.C(E58(G,!0)),F=B.next();!F.done;F=B.next()){F=F.value;F.lifecycleIsConnected=!1;try{var D=void 0,u=void 0,R=void 0,N=void 0;(D=(N=F.polymerController)!=null?N:F)==null||(R=(u=D).disconnectedCallback)==null||R.call(u)}catch(y){_.k2(y)}}})};
jdl=function(){if(!h4o){h4o=!0;var G=[Node];Iy&&G.push(Iy.Wrapper);var B=Node.prototype.insertBefore,F=Node.prototype.removeChild;G=_.C(G);for(var D=G.next(),u={};!D.done;u={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},D=G.next())D=D.value,u.nativeInsertBefore=D.prototype.insertBefore,D.prototype.insertBefore=function(N){return function(y,U){if(y instanceof DocumentFragment){var q=Array.from(y.children);y=N.nativeInsertBefore.call(this,y,U);
if(this.isConnected&&N.nativeInsertBefore===B)for(U=_.C(q),q=U.next();!q.done;q=U.next())cc(q.value);return y}q=y instanceof Element&&y.isConnected;U=N.nativeInsertBefore.call(this,y,U);q&&Ta(y);this.isConnected&&cc(y);return U}}(u),u.nativeAppendChild=D.prototype.appendChild,D.prototype.appendChild=function(N){return function(y){if(y instanceof DocumentFragment){var U=Array.from(y.children);
y=N.nativeAppendChild.call(this,y);if(this.isConnected){U=_.C(U);for(var q=U.next();!q.done;q=U.next())cc(q.value)}return y}U=y instanceof Element&&y.isConnected;q=N.nativeAppendChild.call(this,y);U&&Ta(y);this.isConnected&&cc(y);return q}}(u),u.nativeRemoveChild=D.prototype.removeChild,D.prototype.removeChild=function(N){return function(y){var U=y instanceof Element&&y.isConnected,q=N.nativeRemoveChild.call(this,y);
U&&F===N.nativeRemoveChild&&Ta(y);return q}}(u),u.nativeReplaceChild=D.prototype.replaceChild,D.prototype.replaceChild=function(N){return function(y,U){if(y instanceof DocumentFragment){var q=Array.from(y.children);
y=N.nativeReplaceChild.call(this,y,U);if(this.isConnected)for(Ta(U),U=_.C(q),q=U.next();!q.done;q=U.next())cc(q.value);return y}q=y instanceof Element&&y.isConnected;var h=this.isConnected,K=N.nativeReplaceChild.call(this,y,U);h&&Ta(U);q&&Ta(y);h&&cc(y);return K}}(u);
G=[Element];Iy&&G.push(Iy.Wrapper);G=_.C(G);D=G.next();for(u={};!D.done;u={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},D=G.next())D=D.value,D.prototype.before=K28(D.prototype.before),D.prototype.after=K28(D.prototype.after),u.nativeReplaceWith=D.prototype.replaceWith,D.prototype.replaceWith=function(N){return function(){var y=_.xS.apply(0,arguments),U=_.C(au8(y)),q=U.next().value,
h=U.next().value;U=this.isConnected;N.nativeReplaceWith.apply(this,y);y=_.C(h);for(h=y.next();!h.done;h=y.next())Ta(h.value);if(U)for(Ta(this),q=_.C(q),U=q.next();!U.done;U=q.next())U=U.value,U instanceof Element&&cc(U)}}(u),u.nativeRemove=D.prototype.remove,D.prototype.remove=function(N){return function(){var y=this.isConnected;
N.nativeRemove.call(this);y&&Ta(this)}}(u),u.nativeInsertAdjacentElement=D.prototype.insertAdjacentElement,D.prototype.insertAdjacentElement=function(N){return function(y,U){var q=U.isConnected;
y=N.nativeInsertAdjacentElement.call(this,y,U);q&&Ta(U);y.isConnected&&cc(y);return y}}(u),u.nativeSetAttribute=D.prototype.setAttribute,D.prototype.setAttribute=function(N){return function(y,U){var q=mro(this);
if(!q.usePatchedLifecycles)return N.nativeSetAttribute.call(this,y,U);var h=this.getAttribute(y);N.nativeSetAttribute.call(this,y,U);U=this.getAttribute(y);Xig(q,y,h,U)}}(u),u.nativeRemoveAttribute=D.prototype.removeAttribute,D.prototype.removeAttribute=function(N){return function(y){var U=mro(this);
if(!U.usePatchedLifecycles)return N.nativeRemoveAttribute.call(this,y);var q=this.getAttribute(y);N.nativeRemoveAttribute.call(this,y);q!==null&&Xig(U,y,q,null)}}(u),u.nativeToggleAttribute=D.prototype.toggleAttribute,D.prototype.toggleAttribute=function(N){return function(y,U){var q=mro(this);
if(!this.usePatchedLifecycles)return N.nativeToggleAttribute.call(this,y,U);var h=this.getAttribute(y),K=h!==null;U=N.nativeToggleAttribute.call(this,y,U);U!==K&&Xig(q,y,h,U?"":null);return U}}(u);
G=[Document,DocumentFragment,Element,ShadowRoot];Iy&&G.push(Iy.Wrapper);G=_.C(G);for(u=G.next();!u.done;u=G.next())u=u.value,u.prototype.prepend=K28(u.prototype.prepend),u.prototype.append=K28(u.prototype.append);(Iy==null?void 0:Iy.noPatch)===!0&&Qdg();document.readyState==="complete"?cc(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&cc(document.body)});
var R=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");R&&R.get&&R.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:R.enumerable,configurable:!0,get:R.get,set:function(N){N||Ta(this);R.set.call(this,N);return N}})}};
K28=function(G){return function(){var B=_.xS.apply(0,arguments),F=_.C(au8(B)),D=F.next().value;F=F.next().value;G.apply(this,B);B=_.C(F);for(F=B.next();!F.done;F=B.next())Ta(F.value);if(this.isConnected)for(D=_.C(D),B=D.next();!B.done;B=D.next())B=B.value,B instanceof Element&&cc(B)}};
Qdg=function(){for(var G=_.C(L2J),B=G.next();!B.done;B=G.next()){B=B.value.prototype;for(var F=_.C(r6S),D=F.next();!D.done;D=F.next()){D=D.value;var u=Object.getOwnPropertyDescriptor(B,D);u&&Object.defineProperty(B,"__shady_native_"+D,u)}}};
Xig=function(G,B,F,D){var u,R;if((u=G.polymerController)==null?0:(R=u.observedAttributes)==null?0:R.includes(B))if(G=G.polymerController,G.attributeChangedCallbackWrapper)G.attributeChangedCallbackWrapper.call(G,B,F,D);else{var N;(N=G.attributeChangedCallback)==null||N.call(G,B,F,D)}};
au8=function(G){var B=[],F=[];G=_.C(G);for(var D=G.next();!D.done;D=G.next())D=D.value,D instanceof Element&&D.isConnected&&F.push(D),D instanceof DocumentFragment?B.push.apply(B,_.gi(Array.from(D.children))):B.push(D);return[B,F]};
mro=function(G){return!(G instanceof Element)&&G.node instanceof Element?G.node:G};
W2S=function(G,B){var F=B?["children"].concat(_.gi(B)):["children"];B=[];F=_.C(F);for(var D=F.next();!D.done;D=F.next()){var u=D.value;if(G.hasOwnProperty(u)){D=G[u];D=typeof D==="function"?D():D;D=Array.isArray(D)?D:[D];D=qn(D).flat();if(u!=="children"){u=fxz(u);for(var R=_.C(D),N=R.next();!N.done;N=R.next())N=N.value,N instanceof Element&&N.setAttribute("slot",u)}B.push(D)}}B.length===0?G=[]:(G=qn(_.l("div",null,B)),G=Array.from(G.childNodes));return G};
khg=function(G,B,F){var D={};_.zM(function(){var u={},R;for(R in B)if(B.hasOwnProperty(R)){var N=void 0,y=void 0;if(!(((N=F.slotProps)==null?0:N.includes(R))||R==="children"||((y=F.callbackProps)==null?0:y.includes(R))||R==="ref")&&(N=_.Mg(B[R]),D[R]!==N)){D[R]=N;y=void 0;var U=(y=G.hostElement)!=null?y:G;!F.skipHostForwardedProps&&H$z.has(R)&&(U[R]=N);u[R]=N}}Xe(function(){if(G.setProperties)G.setProperties(u);else for(var q=_.C(Object.entries(u)),h=q.next();!h.done;h=q.next()){var K=_.C(h.value);
h=K.next().value;K=K.next().value;G[h]=K}})},"n")};
e4S=function(G,B,F,D){var u=W2S(F,D.slotProps),R=(0,_.gK)(G);u=_.C(u);for(var N=u.next();!N.done;N=u.next())R.appendChild(N.value);khg(B,F,D);D=_.C(D.callbackProps||[]);u=D.next();for(R={};!u.done;R={kebabEventName:void 0,eventListener:void 0},u=D.next())N=u=u.value,String(u).substring(0,2)==="on"&&F[N]?(R.kebabEventName=fxz(String(u).substring(2)),R.eventListener=F[N],G.addEventListener(R.kebabEventName,R.eventListener),_.VI(function(h){return function(){G.removeEventListener(h.kebabEventName,h.eventListener)}}(R))):
B[N]=F[N];
if(F.ref){F=_.C(O$L(F.ref));var y=F.next().value,U=F.next().value,q=B.attached.bind(B);B.attached=function(){y(G);q()};
_.VI(function(){U()})}};
O$L=function(G){if(typeof G==="function"){var B;return[function(F){B=G(F)},
function(){var F;(F=B)==null||F()}]}if(!G.onRender||!G.onUnmount)throw Error("Tg");
return[G.onRender,G.onUnmount]};
$rJ=function(G,B){B=B===void 0?{}:B;var F=function(D){var u=document.createElement(G),R;var N=(R=u.polymerController)!=null?R:u;e4S(u,N,D,B);return u};
F.debugName=G;return F};
v5L=function(G,B,F,D,u){D=D===void 0?{}:D;var R=z4S,N=!1;R?(N=!0,z4S=void 0):(b$I=B,R=document.createElement(B),b$I=void 0);var y=R;y.usePatchedLifecycles=!0;y.lifecycleIsConnected=!1;R.loggingStatus={};var U=VJL(G,B,R,D,u);_.VI(function(){y.lifecycleIsConnected&&(y.lifecycleIsConnected=!1,U.disconnectedCallback())});
N||(R.__noInsertionPoint=!0,e4S(R,U,F,D));return R};
VJL=function(G,B,F,D,u){u=u===void 0?uxI:u;o5S[B]!=null||(o5S[B]=u(G,B,D==null?void 0:D.getTemplate,D));var R=o5S[B],N=R.ctor;u=R.getInitialMethods;var y=R.getPropsToForwardBeforeReady;G=R.getPropsToForwardBeforeRegister;D=R.shouldForwardProp;var U=R.observedAttributes,q=R.shouldLog,h=N(F,{beforeReady:function(){var K=h;K._takeAttributes?K._takeAttributes():K.setPropertiesFromInitialAttributeValues&&K.setPropertiesFromInitialAttributeValues();K=_.C(y(F.polymerController));for(var a=K.next();!a.done;a=
K.next()){var m=_.C(a.value);a=m.next().value;m=m.next().value;CpJ(F,a,m);q(B)&&!JS(a)&&n5o(F.polymerController,a)}F.polymerController=eLz(h,B)}});
F.polymerController=h;F.polymerController.observedAttributes=U;R=_.C(h.getExtraMethodsToForward());for(N=R.next();!N.done;N=R.next())U=_.C(N.value),N=U.next().value,U=U.next().value,NXz(F,N,U);u=_.C(u());for(R=u.next();!R.done;R=u.next())R=R.value,D(R)&&NXz(F,R),q(B)&&!JS(R)&&y66(h,R);G=_.C(G());for(D=G.next();!D.done;D=G.next())u=_.C(D.value),D=u.next().value,u=u.next().value,CpJ(F,D,u);return h};
MJL=function(G){var B=fW;fW=G;return B};
A6o=function(G){if(pi6.has(G)&&fW&&Yuz(fW)===G){var B;(B=fW)._numRenders!=null||(B._numRenders=0);fW._numRenders++;if(fW._numRenders>1)throw Error("Ug");return fW}};
J6U=function(G){var B=Yuz(G);fW!==G&&B.includes("-")&&drJ.set(G,!0)};
Yuz=function(G){var B;return(B=G==null?void 0:G.tagName.toLowerCase())!=null?B:""};
c66=function(G,B){if(G.componentType===j2)throw Error("Vg");pi6.add(B);var F=function(){var D=HTMLElement.call(this)||this;D.is=B;if(b$I===B)return D.isInert=!0,D;D.createElement();return D};
_.r(F,HTMLElement);F.prototype.createElement=function(){if(!this.isInert){z4S=this;var D=_.C(G78(function(){return _.l(G,null)})).next().value;
z4S=void 0;$q8(this);return D}};
customElements.define(B,F)};
IuI=function(G,B,F,D,u){G.prototype.is=B;(D==null?0:D.useSink)?TXJ(G,B,F,D,u):(F=uxI(G,B,F,D),luc(F,B));return G};
TXJ=function(G,B,F,D,u){jdl();var R=_.Y(function(N){return v5L(G,B,N,Object.assign({},D,{getTemplate:F}),u)},"o");
R.debugName=B;c66(R,B);return R};
tJg=function(G){return!fuM.has(G)};
Sul=function(G,B,F,D){function u(){if(!K){for(var a=new Set(Z$g),m=_.C(R.behaviors),L=m.next();!L.done;L=m.next()){L=L.value;for(var W=_.C(Object.getOwnPropertyNames(L)),e=W.next();!e.done;e=W.next()){e=e.value;var b=void 0,M=(b=Object.getOwnPropertyDescriptor(L,e))==null?void 0:b.value;M&&M instanceof Function&&(!q[e]||_.X("polymer_forward_method_killswitch"))&&a.add(e)}}m=_.C(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(L=m.next();!L.done;L=m.next())W=_.C(L.value),L=W.next().value,
W=W.next().value,W.value instanceof Function&&a.add(L);K=a}return K}
var R=$il({is:B,disableElementRegistration:!1,getTemplate:F,providers:D==null?void 0:D.providers,reactivityMode:D==null?void 0:D.reactivityMode},G);if((D==null?0:D.allowedProps)||(D==null?0:D.allowedPropsFromBehaviors)){var N,y;R.allowedProps=[].concat(_.gi((N=D.allowedProps)!=null?N:[]),_.gi((y=D.allowedPropsFromBehaviors)!=null?y:[]))}var U=Luc(R,G);B=U.observedAttributes;var q={};F=_.C(R.reactiveSchemas);for(D=F.next();!D.done;D=F.next())if(D=D.value,D.type==="signal")q[D.propertyKey]={readOnly:D.readOnly},
D.readOnly&&(q[GCM(D.propertyKey)]={readOnly:!0});else if(D.type==="compute"||D.type==="computeWithMethod"||D.type==="redux")q[D.propertyKey]={readOnly:!0};var h=R.reactiveSchemas.length,K;return{ctor:function(a,m){a=new U(a);a.beforeReady=m.beforeReady;return a},
props:q,observedAttributes:B,getInitialMethods:u,getPropsToForwardBeforeRegister:function(){for(var a=[],m=new Set,L=_.C(g5z),W=L.next();!W.done;W=L.next())W=W.value,a.push([W,W!=="observers"&&W!=="properties"]),m.add(W);L=_.C(Object.keys(q));for(W=L.next();!W.done;W=L.next())W=W.value,a.push([W,q[W].readOnly]),m.add(W);L=u();W=_.C(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var e=W.next();!e.done;e=W.next())e=e.value,!tJg(e)||L.has(e)||m.has(e)||(a.push([e,!1]),m.add(e));a.push(["allowedProps",
!0]);return a},
getPropsToForwardBeforeReady:function(a){var m=[];a=_.C(Object.keys(a));for(var L=a.next();!L.done;L=a.next()){L=L.value;var W=u();tJg(L)&&!W.has(L)&&m.push([L,!1])}a=_.C(R.reactiveSchemas.slice(h));for(L=a.next();!L.done;L=a.next())L=L.value,L.type!=="compute"&&L.type!=="computeWithMethod"&&L.type!=="redux"&&L.type!=="signal"||m.push([L.propertyKey,L.type==="signal"?L.readOnly:!0]);return m},
shouldForwardProp:tJg,shouldLog:w3}};
_.d=function(G,B,F,D){var u,R,N=(R=(u=D)==null?void 0:u.mode)!=null?R:0;D!=null||(D={});var y;(y=D).reactivityMode!=null||(y.reactivityMode=0);return N===1?IuI(G,B,F,Object.assign({},D,{useSink:!0}),Sul):IuI(G,B,F,Object.assign({},D,{useSink:N===2}))};
_.tS=function(){return function(G,B,F,D){var u,R,N=(R=(u=D)==null?void 0:u.mode)!=null?R:2;D!=null||(D={});var y;(y=D).reactivityMode!=null||(y.reactivityMode=0);if(N===0)throw Error("Wg`"+N);return TXJ(G,B,F,D,N===1?Sul:void 0)}};
_.ZO=function(G){return _.X("force_all_poly_si_batches")&&G||document.documentElement.hasAttribute("use-signals")?!0:!G||_.X(G+"_holdback_enabled")&&_.X("kevlar_polysi_holdback")?!1:_.X(G)};
g3=function(G){return G?G.icon?G.icon.iconType.toLowerCase():G.customThumbnail?"member":"":""};
sdg=function(G){if(!G)return"";G=_.C(G);for(var B=G.next();!B.done;B=G.next())if((B=B.value)&&B.liveChatAuthorBadgeRenderer&&(B=g3(B.liveChatAuthorBadgeRenderer))&&B!=="verified")return B;return""};
xrQ=function(G,B){if(!G)return null;var F;return((F=G.find(function(D){return D&&D.liveChatAuthorBadgeRenderer?g3(D.liveChatAuthorBadgeRenderer)===B:!1}))==null?void 0:F.liveChatAuthorBadgeRenderer)||null};
_.Bcc=function(G){var B=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;G=IXc(G);B=IXc(B);var F=xBz(G.hex);B=xBz(B.hex);var D=B[0]/255;var u=B[1]/255,R=B[2]/255,N=Math.max(D,u,R),y=Math.min(D,u,R),U=0,q=0,h=.5*(N+y);N!=y&&(N==D?U=60*(u-R)/(N-y):N==u?U=60*(R-D)/(N-y)+120:N==R&&(U=60*(D-u)/(N-y)+240),q=0<h&&h<=.5?(N-y)/(2*h):(N-y)/(2-2*h));D=[Math.round(U+360)%360,q,h];F=Ppc(F,B);for(G=GRI(G.hex);F<4.5;){G=D[2]>=.5?G.darker((4.5-F)/2):G.brighter((4.5-F)/2);F=G.toString();
u=ZcU(F);if(!u.length)throw Error("Yd`"+F);F=u;F=Ppc(F,B)}return G.hex()};
Ppc=function(G,B){G=_.bDI(G);B=_.bDI(B);return(Math.max(G,B)+.05)/(Math.min(G,B)+.05)};
_.SI=function(G){return"#"+("000000"+(G&16777215).toString(16)).slice(-6)};
_.iaU=function(G){for(var B=0,F=0;F<G.length;F++)B=G.charCodeAt(F)+((B<<5)-B);G="#";for(F=0;F<3;F++)G+=("00"+(B>>F*8&255).toString(16)).slice(-2);return G};
FZc=function(G){G=(G||"").split(":");G.length===1&&G.unshift("yt-icons");G[1]=G[1].toLowerCase();return G};
NcJ=function(G,B){var F=(B=B===void 0?!1:B)?DTM:u_Q,D=B?RqM:w8I;G.getIconNames().forEach(function(u){u=B?u:u.substring(u.indexOf(":")+1);G.name==="yt-icons"?CmL.add(u):u.includes("-filled")?F.add(u):D.add(u)})};
sF=function(G,B,F,D){F=F===void 0?!1:F;D=D===void 0?!1:D;var u,R,N;return _.n(function(y){if(y.nextAddress==1)return y.yield(ykU,2);if(D)return y.return(CmL.has(G));u=F?DTM:u_Q;R=F?RqM:w8I;return B?(N=G.includes("-filled")?G:G.concat("-filled"),y.return(u.has(N))):y.return(R.has(G))})};
_.xT=function(G){if(nJg(G))return G.toString();var B=l3M.get(G);if(B)return B;B=G.toLowerCase();var F="yt-icons",D=B.replace(/_/g,"-");switch(G){case "MY_CHANNEL":B="account_circle";break;case "ADD_TO_LIBRARY":B="add";break;case "ALERT_WARN_RED":B="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":B="person_music";break;case "BLOCK_USER":B="block";break;case "CAPTIONS":B="closed_caption";break;case "CLOSED_CAPTION":F="av";B="closed-caption";break;case "COLLECTION":F="maps";B="layers";break;case "CONTACT":F=
"icons";B="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":F="yt-studio-system-icons";B=D.split("creator-studio-")[1];break;case "DISMISSAL":B="close";break;case "DO_NOT_DISTURB":B="block";break;case "DOGFOOD":F="icons";B="pets";break;case "DRAFT":B="paper_corner_folded";
break;case "EMPTY_LIKE":B="like_outline";break;case "EXIT_APP":B="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":B=D;break;case "GAMES":F="ytg";B="my-games";break;case "GO_TO_PAGE":B="arrow-forward";break;case "GROUP":F="social";break;case "HIDE":B="not_interested";break;case "INPUT_COMPONENT":F="icons";B="settings-input-component";break;case "KIDS_BLOCK":B="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":F="ytg";B="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":F=
"ytg";B="membership-post-purchase";break;case "MULTIVIEW":B="screen_multi_view";break;case "MY_LOCATION":F="maps";B=D;break;case "NOTIFICATIONS_INBOX":B="NOTIFICATIONS";break;case "NEXT":B="chevron_right";break;case "OFFLINE":B="power-settings-new";break;case "PAUSE":F="miniplayer";break;case "PAYMENT":F="icons";break;case "PHONE_DOWNLOAD":B="phone_download";break;case "PREMIUM_STANDALONE":F="yt-logos";B="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":F="yt-logos";B="premium_standalone_cairo";
break;case "QUESTION_ANSWER":B="question_answer";break;case "REDEEM":F="icons";B="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":B="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":B="library_add";break;case "SCHOOL":F="yt-sys-icons";B="creator_academy";break;case "SETTINGS_LIGHT":B="settings_applications";break;case "SETTINGS_MATERIAL":B="settings";break;case "SEARCH_HISTORY":B="watch_history";break;case "SHOPPING_BAG":B="bag";break;case "SOCIAL":case "PEOPLE":F=
"yt-icons";B="people";break;case "STAFF_PICK":F="ytg";B="spotlight";break;case "START_DVR":B="add";break;case "STOP_DVR":F="av";B="stop";break;case "TAB_LIKED":B="like";break;case "TAB_INBOX":B="mail";break;case "TERMS_OF_SERVICE":F="icons";B="description";break;case "TRENDING":B="fire";break;case "UNBLOCK_USER":B="remove";break;case "UNPLUGGED_DARK_THEME":F="image";B="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":B="live";break;case "UNPLUGGED_SPORTS":F="ytu";B="visibility-off";break;
case "VIDEOS":F="av";B="play-circle-filled";break;case "YOUTUBE":F="yt-logos";B="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":F="yt-logos-ext";B="yt-logo-red-updated";break;case "YOUTUBE_LOGO":F="yt-logos-ext";B="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":F="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":F="shorts";B=D;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":F="yt-sys-icons";B="youtube_improve_tv";break;case "OUTLINE_BAG":F=
"yt-sys-icons";B="bag";break;case "QUEUE_PLAY_LAST":F="yt-sys-icons";B="list_queue_last";break;case "SLASH_CIRCLE_LEFT":B="slash_circle_left";break;case "SPEED_1_POINT_2X":B="1_point_2x";break;case "SPEED_1_POINT_5X":B="1_point_5x";break;case "SPEED_1_POINT_8X":B="1_point_8x";break;case "SPEED_POINT_2X":B="point_2x";break;case "SPEED_POINT_5X":B="point_5x";break;case "SPEED_POINT_8X":B="point_8x";break;case "SPEED_1X":B="1x";break;case "SPEED_2X":B="2x";break;case "TAB_BOOKMARK":B="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":F="yt-sys-icons";B="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":F="yt-sys-icons";B="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":F="yt-sys-icons",B="tic_tac_toe"}B=F+":"+B;l3M.set(G,B);return B};
nJg=function(G){var B;_.X("kevlar_use_wil_icons")?B=!!_.te().resolve(_.Pc).resolveIcon({iconName:G.toString()}):B=!1;return B};
_.Br=function(G,B,F,D){F=F===void 0?{}:F;D=D===void 0?!1:D;F===null&&(F={});var u=_.P5("kevlar_command_handler_command_banlist");u=_.C(u);for(var R=u.next();!R.done;R=u.next())if(R=G?G.hasOwnProperty(R.value):void 0,R)return!1;u=_.Q(G.commandMetadata,_.xy);return D&&u!=null&&u.url?!1:!B.disableCommandHandlerOverride&&_.Gm.instance?(D=_.Gm.instance,F.form||(F.form={element:B}),F.form.element||(F.form.element=B),!F.clickedVisualElement&&B.visualElement&&(F.clickedVisualElement=B.visualElement),D.resolveCommand(G,
F),!0):!1};
UTS=function(G,B){G=i4(G);for(var F=_.C(G.visibilityMonitorKeys||[]),D=F.next();!D.done;D=F.next())B.unobserveByKey(D.value);G.visibilityMonitorKeys=void 0};
F1=function(G,B){if(_.qW()){if(_.X("kevlar_vimio_use_shared_monitor"))qIS(G,B.data);else if(!qIS(G,B.data))return;var F=B.data,D=EJJ(F);if(_.X("enable_client_ve_spec_logging"))UTS(G,B.observer);else{var u=i4(G);u.trackedParams&&u.trackedParams!==D&&UTS(G,B.observer)}u=i4(G);!F||u.data&&u.data===F||(u.data=F);hqz(G,B);u.trackedParams=D}};
hqz=function(G,B){var F=B.observer;if(!F&&_.X("web_skip_missing_vimio_observer")){var D,u;_.em(new _.Uf("VisibilityObserver is not defined.",G.tagName,G.trackedParams,(D=B.data)==null?void 0:D.trackingParams,(u=B.data)==null?void 0:u.loggingDirectives))}else{var R=B.layer,N=B.visibilityCallback||function(){},y=B.prescanCallback,U=i4(G);
D=[];B.showOption&&D.push(F.observe(G,function(){B.skipLogging&&B.skipLogging()||_.De().reportShown(U,void 0,R,7);N(!0)},B.showOption));
B.hideOption&&D.push(F.observe(G,function(){_.De().reportHidden(U,void 0,R,7);N(!1)},B.hideOption));
B.prescanOption&&y&&D.push(F.observe(G,function(){y()},B.prescanOption));
U.visibilityMonitorKeys=D}};
qIS=function(G,B){G=i4(G);if(G.visualElement&&!B)return!0;if(!B)return!1;var F=!1;if(_.X("enable_client_ve_spec_logging")){var D,u;F=!!((D=B.loggingDirectives)==null?0:(u=D.clientVeSpec)==null?0:u.uiType)}D=EJJ(B);if(!D&&!F)return!1;_.X("mweb_component_visibility_logging")&&(G.veContainer||(G.veContainer={}),G.veContainer.trackingParams=D);if(G.trackedParams&&G.trackedParams===D)return!1;var R;if(_.X("enable_client_ve_spec_logging")&&((R=G.visualElement)==null?0:R.isClientVe())){var N;R=(N=G.visualElement)==
null?void 0:N.getAsJspb();var y,U,q,h;if(_.AM(R,2)===((y=B.loggingDirectives)==null?void 0:(U=y.clientVeSpec)==null?void 0:U.uiType)&&_.AM(R,3,-1)===((q=B.loggingDirectives)==null?void 0:(h=q.clientVeSpec)==null?void 0:h.elementIndex))return!1}if(_.X("enable_client_ve_spec_logging")){var K,a;!G.visualElement&&((K=B.loggingDirectives)==null?0:(a=K.clientVeSpec)==null?0:a.uiType)&&(y=B.loggingDirectives.clientVeSpec,B=y.uiType,N=y.elementIndex,y=y.clientYoutubeData,G.visualElement=_.u4(_.Rh(),{veType:B,
elementIndex:N,clientYouTubeData:y}))}return!0};
EJJ=function(G){if(G==null?0:G.rendererContext){var B=_.Q(G.rendererContext,_.wJ);if(B==null?0:B.loggingDirectives)return B.loggingDirectives.trackingParams}return(G==null?0:G.loggingDirectives)?G.loggingDirectives.trackingParams:G==null?void 0:G.trackingParams};
i4=function(G){var B;return(B=G.polymerController)!=null?B:G};
X8M=function(G){_.De();if(_.pH(Ck().JSC$13058_elementShouldLogGesture).bind(Ck())(G,4)){KZS(G);var B=a3S(G);mTI.set(G,B)}};
KZS=function(G){mTI.has(G)&&(mTI.get(G).cancel("untrack hover element"),mTI.delete(G))};
a3S=function(G){var B,F=[],D=!1,u=new _.DS(function(R,N){h7(G,"mouseenter",_.pH(function(){var y,U,q;return _.n(function(h){if(h.nextAddress==1)return B=(0,_.Zl)(),y=QTz(G),F.push(y),U=jTg(G,function(){D=!0;N(Error("Xg"))}),h.yield(y,2);
if(h.nextAddress!=3)return U&&Nh(U),q=LZs(G),F.push(q),h.yield(q,3);R();_.di(h)})}))});
u.then(function(){var R=(0,_.Zl)()-B;R=Math.round(R);if(!(500>R||6E5<=R)){var N=G.getScreenLayer?G.getScreenLayer():void 0;N=_.qW(N)||"";var y=rko(_.De(),G);_.z7(N,G.visualElement?G.visualElement:_.yX(y),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:R}})}X8M(G)},function(){nk&&(nk(),nk=null);
D&&(KZS(G),X8M(G))});
return u};
QTz=function(G){var B;return(new _.DS(function(F,D){nk=function(){D(Error("Yg"))};
B=_.Lu.debounce(_.pH(function(){Nh(u);F()}),1,100);
var u=_.H1(G,"mousemove",B)})).thenCatch(function(){var F=_.Lu.cancelDebouncedJobMap.get(B);
F&&_.Lu.cancelJob(F)})};
LZs=function(G){var B;return(new _.DS(function(F,D){nk=function(){D(Error("Zg"))};
B=h7(G,"mouseleave",_.pH(function(){F()}))})).thenCatch(function(){Nh(B)})};
jTg=function(G,B){return h7(G,"mouseleave",_.pH(B))};
Hal=function(G){WZJ&&_.l4.cancel(WZJ);WZJ=_.l4.run(function(){_.cZ(G,"yt-visibility-refresh");WZJ=0})};
kRg=function(G){G=Number(G);return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
eqc=function(G){if(!G)return!1;if(_.Q(G,_.OaQ))return!0;var B;if(G=(B=_.Q(G,_.gs))==null?void 0:B.commands)for(B=_.C(G),G=B.next();!G.done;G=B.next())if(_.Q(G.value,_.OaQ))return!0;return!1};
$Ts=function(G){var B=!0;B=B===void 0?!0:B;if(!G.useSignals&&!G.experimentalPropertiesChanged||_.X("experimental_templating_behavior_nopatch_killswitch")){var F=G._propertiesChanged;G._propertiesChanged=function(D,u,R){B?G.debounceRender():G.doRender();F&&F.call(G,D,u,R)}}};
zqS=function(G,B){if(G.useSignals||G.experimentalPropertiesChanged)if(_.X("experimental_templating_behavior_nopatch_killswitch"))G.experimentalPropertiesChanged=function(){};
else return;var F=new Set,D=[G].concat(_.gi(G.behaviors));D=_.C(D);for(var u=D.next();!u.done;u=D.next()){u=u.value;for(var R in u.properties)F.has(R)||(G._addPropertyEffect(R,"function",B),F.add(R))}};
bag=function(){var G=Polymer.Element,B=G._prepareTemplate;G._prepareTemplate=function(){B.call(this);var F=this.prototype;if(F.experimentalTemplatingInUse&&F.experimentalTemplatingInUse()&&F.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.k2(Error("$g"));else{F=this.template.content.childNodes;for(var D=F.length-1;D>=0;D--){var u=F[D];u.nodeName!=="STYLE"&&u.nodeName!=="LINK"&&u.nodeName!=="SCRIPT"&&u.nodeName!=="#comment"&&u.remove()}}}};
VLJ=function(G){var B=!0;B=B===void 0?!0:B;bag();var F=G.ready;G.ready=function(){this._template=null;F.call(this)};
zqS(G,B?G.debounceRender:G.doRender)};
oJ8=function(G,B,F){if(F===null||F===void 0)return F;var D=sp8(G.tagName.toLowerCase(),B,function(){throw Error("Vb");});
if(D===null)return F;D=vJI[D];var u;if((u=D.isUnwrappable)==null?0:u.call(D,F)){if(D.unwrap)return D.unwrap(F);throw Error("ch");}return D.filterString?D.filterString(G.tagName,B,String(F)):F};
MLs=function(G,B,F){var D=B[B.length-1]!=="$";F=oJ8(G,B,F);D?G[B]=F:(D=F==null?null:String(F),A0(G,B.slice(0,-1),D))};
qh=function(G){_.X("mweb_after_render_to_scheduler")?_.Lu.addJob(function(){try{G()}catch(B){_.U_(B)}},8):(p8S.length===0&&requestAnimationFrame(function(){setTimeout(function(){var B=p8S.slice();
p8S.length=0;B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;try{F()}catch(D){_.U_(D)}}})}),p8S.push(G))};
YIc=function(G){if(G){var B=G.component;if(B){var F;B==null||(F=B.events)==null||F.publish("DISCONNECTED");var D;B==null||(D=B.onDisconnected)==null||D.call(B)}var u,R;(u=G.__spec)==null||(R=u.didUnmount)==null||R.call(u);for(B=0;B<G.childNodes.length;B++)YIc(G.childNodes[B])}};
_.E_=function(G,B,F){F===void 0?delete G[B.name]:G[B.name]=F};
_.hx=function(G){var B={androidIncludeFontPadding:!1},F=0,D=[],u=[],R=[];if(G.simpleText)return B.content=G.simpleText,B;if(G.runs===void 0)return B.content="",B;G=_.C(G.runs);for(var N=G.next();!N.done;N=G.next()){N=N.value;var y=N.text,U=void 0,q=(U=y)==null?void 0:U.length;if(y&&q){D.push(y);if(N.bold||N.italics||N.strikethrough||N.underline||N.textColor!=null&&N.textColor!==0||N.deemphasize){y=u;U=y.push;var h={startIndex:F,length:q};N.bold&&(h.weightLabel="FONT_WEIGHT_MEDIUM");N.italics&&(h.italic=
!0);N.strikethrough&&(h.strikethrough="LINE_STYLE_SINGLE");N.underline&&(h.underline="LINE_STYLE_SINGLE");N.textColor!=null&&N.textColor!==0?document.documentElement.hasAttribute("dark")?h.fontColor=N.darkModeTextColor||N.textColor:h.fontColor=N.textColor:N.deemphasize&&(document.documentElement.hasAttribute("dark")?h.fontColor=parseInt("ff"+te6("#aaa").substring(1),16):h.fontColor=parseInt("ff"+te6("#606060").substring(1),16));U.call(y,h)}N.navigationEndpoint&&(y=R,U=y.push,h={startIndex:F,length:q,
onTap:{innertubeCommand:N.navigationEndpoint}},N.loggingDirectives&&_.E_(h,AkJ,N.loggingDirectives),U.call(y,h));F+=q}}B.content=D.join("");B.styleRuns=u.length?u:void 0;B.commandRuns=R.length?R:void 0;return B};
JkI=function(G){if(G==null||!G.runs)return!0;G=_.C(G.runs);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.bracket||B.errorUnderline||B.deemphasize||_.Q(B,Kk)||_.Q(B,dTl))return!1;return!0};
cko=function(G,B){return function(F){var D=B.unit;if(D!==F)throw Error("fh`"+G+"`"+D+"`"+F);return B}};
ah=function(G){if(!((G==null?0:G.value)&&(G==null?0:G.unit)))return"";switch(G.unit){case "DIMENSION_UNIT_FRACTION":var B="%";break;default:B="px"}G=G.value;B==="%"&&(G*=100);return""+G+B};
Tcg=function(G){try{return G()}catch(B){_.em(B)}};
_.X1=function(G){var B=_.Q(G,_.mr);if(B)return B;if((B=_.Q(G,I3U))&&B.commands)return f3S(B.commands);if((B=_.Q(G,tLl))&&B.commands)return f3S(B.commands);if((G=_.Q(G,ZaU))&&G.identifier&&G.command&&(gJc||(gJc=[]),!gJc.includes(G.identifier)))return gJc.push(G.identifier),_.Q(G.command,_.mr)};
f3S=function(G){if(G.length!==0){var B=[];G=_.C(G);for(var F=G.next();!F.done;F=G.next())(F=_.X1(F.value))&&B.push(F);return{commandExecutorCommand:{commands:B}}}};
_.jF=function(G){var B=G.defaultTarget,F=G.elementConfig,D=G.elementsCommand,u=G.skipOnClick,R=G.forceNewState,N=G.additionalCommandArgs,y=G.innertubeCommand||_.X1(D);if(y){G={};var U=SI6(y);D=U.navigatingCommand;U=U.href;D&&U?(G.href$=U,sTs(G,D,U,B),_.X("web_atagconfig_pointerdown")&&xTU(G,D),R&&(G["force-new-state$"]=!0)):(G.role$="button",G.href$="javascript:void(0);");_.Q(y,Pm8)&&(G["aria-haspopup$"]=!0);u||(G.onclick=function(q){var h={};if(G4g(q)){var K=(N==null?void 0:N.clickedVisualElement)||
(N==null?void 0:N.getClickedVisualElement)&&N.getClickedVisualElement();K&&(h={clickedVisualElement:K});h=Object.assign({},{form:{element:q.target,event:q,createScreenConfig:h}},N);q.preventDefault();_.QX(y,h)}});
return Object.assign({},F,G)}};
BGJ=function(G){if(G.length){if(G.length===1)return G[0];var B={};_.E_(B,_.gs,{commands:G});return B}};
Lk=function(G){return G&&G.href$!=="javascript:void(0);"};
SI6=function(G){var B,F=((B=_.Q(G,_.gs))==null?void 0:B.commands)||[G];G=_.C(F);for(B=G.next();!B.done;B=G.next()){B=B.value;var D=void 0,u=void 0;F=(u=_.Q((D=B)==null?void 0:D.commandMetadata,_.xy))==null?void 0:u.url;_.X("web_remove_web_navigation_endpoint_data")||(D=void 0,F=F||((D=_.Q(B,is6))==null?void 0:D.url));if(F&&F!=="/service_ajax"){if(D=_.Z6(F,FTQ))return G=_.fe(D),{navigatingCommand:B,href:G};_.em(new _.Uf("AttributedString URL could not be sanitized",F))}}return{}};
G4g=function(G){return G.button!==void 0?G.button===0&&!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey):!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey)};
sTs=function(G,B,F,D){F=!In(F);var u,R,N;if((u=_.Q(B,_.x9))!=null&&u.nofollow||(R=_.Q(B,_.Ow))!=null&&R.nofollow||(N=_.Q(B,_.MI))!=null&&N.nofollow||F)G.rel$="nofollow";var y;B=((y=_.Q(B,_.MI))==null?void 0:y.target)==="TARGET_NEW_WINDOW"?"_blank":D===void 0?"":D;G.target$=B};
xTU=function(G,B){B.clickTrackingParams&&(G.params={itct:B.clickTrackingParams});G.onpointerdown=function(F){DGg(F)};
G._data=B};
ufJ=function(G){(G.loggingUrls||[]).forEach(function(B){Mz(B.baseUrl,B.attributionSrcMode)})};
DGg=function(G){var B=G.currentTarget;G=Tcg(function(){return B.href});
var F=B.params;G&&_.V9(G,F||{},8,!0)};
_.rJ=function(G,B){(G=_.X1(G))&&_.QX(G,B)};
_.QX=function(G,B){_.gn(_.Wr,function(F){B?F.resolveCommand(G,B):F.resolveCommand(G)})};
NGS=function(G,B){var F=["yt-core-attributed-string__link"];B!=null&&B.noLinkColor||((B==null?0:B.isOverlay)?F.push("yt-core-attributed-string__link--overlay-call-to-action-color"):F.push("yt-core-attributed-string__link--call-to-action-color"),(B==null?0:B.linkInheritColor)&&F.push("yt-core-attributed-string--link-inherit-color"));F={className:F.join(" "),tabindex$:"0"};var D=G.onTap||G.onLongPress;if(!D)return F;var u=R3s(G);u&&(F["aria-label$"]=u);B=_.jF({elementsCommand:D,elementConfig:F,skipOnClick:!(B==
null||!B.skipOnClick),forceNewState:!0});G.onLongPress&&(D=new wgJ(function(){var R=_.X1(G.onLongPress);R&&_.te().resolve(_.Wr).resolveCommand(R)}),B&&CHz(D,B));
return B||F};
R3s=function(G){var B,F;return(B=G.onTapOptions)==null?void 0:(F=B.accessibilityInfo)==null?void 0:F.accessibilityLabel};
yBo=function(G){var B=G;G<=16777215&&(B+=parseInt("ff000000",16));return _.Kp(B)};
n8M=function(G){var B=G.isDarkTheme;var F=G.extension;G=G.runColor;var D=void 0;if(F=F==null?void 0:F.colorMap){B=B?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";F=_.C(F);for(var u=F.next();!u.done;u=F.next())if(u=u.value,B===u.key){D=u.value;break}}D==null&&G&&(D=G);if(D)return yBo(D)};
Hr=function(G){var B=G.config;var F=G.image;var D=G.imageConfig;var u=G.imageWrapperConfig;var R=G.run;var N=G.tag;var y=G.textLength;var U=G.startIndex===void 0?0:G.startIndex;G=G.length;U===void 0&&(U=0);R={run:R,startIndex:U,endIndex:G!==void 0?U+G:y,tag:N};F&&(R.image=F);D&&(R.imageConfig=D);u&&(R.imageWrapperConfig=u);B&&(R.config=B);return R};
lGS=function(G,B){if(G.weight)return G.weight;switch(G.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return B?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
UGI=function(G){switch(G){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"}};
q0s=function(G){switch(G){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"}};
eF=function(G,B,F){var D=B;G.content&&F&&(F=G.content.indexOf("\n"),F!==-1&&(D=Math.min(B,F)));if(!G.content||G.content.length<=D)B=G;else if(G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.paragraphStyleRuns){B=kN(G.content,D);F=D;var u=G.attachmentRuns;if(u){var R=[];u=_.C(u);for(var N=u.next();!N.done;N=u.next())N=Object.assign({},N.value),N.startIndex===void 0||N.startIndex>=F||(N.length||(N.length=0),N.length+N.startIndex>F&&(N.length=F-N.startIndex),R.push(N));F=R}else F=void 0;
R=E8s(D,G.commandRuns);u=D;var y=G.decorationRuns;if(y){N=[];y=_.C(y);for(var U=y.next();!U.done;U=y.next()){U=U.value;var q=_.Q(U.textDecorator,O_);if(q&&q.startIndex!==void 0&&!(q.startIndex>=u)){U=Object.assign({},U,{textDecorator:{highlightTextDecorator:Object.assign({},q)}});q=_.Q(U.textDecorator,O_);if(!q.length||q.length+q.startIndex>u)q.length=u-q.startIndex;N.push(U)}}u=N}else u=void 0;N=E8s(D,G.styleRuns);if(y=G.paragraphStyleRuns)for(G=[],y=_.C(y),U=y.next();!U.done;U=y.next()){var h=U.value;
U=Object.assign({},h);if(!(U.startIndex===void 0||U.startIndex>=D)){if(!U.length||U.length+U.startIndex>D)U.length=D-U.startIndex;q=[];var K=void 0,a=void 0;if((K=h)==null?0:(a=K.listGroup)==null?0:a.listItems)for(h=_.C(h.listGroup.listItems),K=h.next();!K.done;K=h.next())if(K=Object.assign({},K.value),!(K.startIndex===void 0||K.startIndex>=D)){if(!K.length||K.length+K.startIndex>D)K.length=D-K.startIndex;q.push(K)}q.length>0&&(U.listGroup||(U.listGroup={}),U.listGroup=Object.assign({},U.listGroup,
{listItems:q}));G.push(U)}}else G=void 0;B={content:B,attachmentRuns:F,commandRuns:R,decorationRuns:u,styleRuns:N,paragraphStyleRuns:G}}else B=Object.assign({},G,{content:kN(G.content,D)});return B};
E8s=function(G,B){if(B){var F=[];B=_.C(B);for(var D=B.next();!D.done;D=B.next())if(D=Object.assign({},D.value),!(D.startIndex===void 0||D.startIndex>=G)){if(!D.length||D.length+D.startIndex>G)D.length=G-D.startIndex;F.push(D)}return F}};
kN=function(G,B){var F=B,D;if(D=F>0)D=G.charCodeAt(F-1),D=D>=55296&&D<=56319;D&&(F=G.charCodeAt(F),D=F>=56320&&F<=57343);D&&--B;return G.substring(0,B)};
_.$N=function(G){return(G==null?void 0:G.content)!==void 0};
aGc=function(G){return function(B){var F=G.run;(F.onTap!==void 0||F.onLongPress!==void 0)&&_.Q(F,AkJ)&&F1(B,{data:{loggingDirectives:_.Q(F,AkJ)},observer:_.te().resolve(fZ),hideOption:h3o,showOption:KTL,layer:B.layer})}};
mG6=function(G){return function(B){for(var F in G)(c$[F]||c$[dT["default"]])(B,F,G[F])}};
Xgz=function(G,B,F,D){for(var u=_.C(G.parts),R=u.next();!R.done;R=u.next()){R=R.value;if(typeof R==="string")throw Error("hh");if(R.start<=B&&F<=R.end){Xgz(R,B,F,D);return}}G.parts.push({data:D,parts:[],start:B,end:F})};
Q2g=function(G,B){for(var F=B.parts.length;F>=0;F--){var D=B.parts[F],u=B.parts[F-1],R=F===B.parts.length?B.end:D.start;u=F===0?B.start:u.end;R!==u&&B.parts.splice(F,0,G.slice(u,R));D&&Q2g(G,D)}};
j26=function(G){G.sort(function(B,F){if(B.startIndex<F.startIndex)return-1;if(F.startIndex<B.startIndex)return 1;B=B.endIndex-B.startIndex;F=F.endIndex-F.startIndex;return B>F?-1:F>B?1:0})};
_.LTs=function(G){var B=G.thumbnails;if(B){G={sources:[]};B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D={};D.url=F.url;D.width=F.width;D.height=F.height;G.sources.push(D)}return G}};
rBU=function(G,B,F,D){if(!B)return G.length>=1?G[G.length-1]:null;if(D)for(var u=_.C(G),R=u.next();!R.done;R=u.next()){R=R.value;var N=void 0,y=(N=R.url)==null?void 0:N.indexOf(D);if(y!==void 0&&y>=0)return R}D=_.C(G);for(u=D.next();!u.done;u=D.next())if(u=u.value,u.width&&u.height&&(F&&u.width>=B||!F&&u.height>=B))return u;for(B=G.length-1;B>=0;B--)if(F&&G[B].width||!F&&G[B].height)return G[B];return G[0]};
_.WTz=function(G){var B;return(G=(B=G.sources)==null?void 0:B[0])?G.width/G.height:0};
_.Hsz=function(G){if(G.sources){G=_.C(G.sources);for(var B=G.next();!B.done;B=G.next()){B=B.value;var F=void 0;if((F=B.clientResource)==null?0:F.imageName)return B}}};
Osg=function(G){var B={};G=_.Q(G.processor,k4M);var F=(G=G==null?void 0:(F=G.imageTint)==null?void 0:F.color)?_.Kp(G):void 0;F&&(B.color=F);return B};
e3U=function(G){var B;if((B=G.clientResource)!=null&&B.imageColor)return _.Kp(G.clientResource.imageColor)};
_.z3Q=function(G,B,F,D,u,R,N){if(!B||B.length===0||B[0].clientResource)return null;if(F&&B[0].url)return B[0].url;D===void 0&&(D=!0);if(D){var y;G=$Gc*(u||(G==null?void 0:(y=G.getBoundingClientRect())==null?void 0:y.width)||0)}else{var U;G=$Gc*(R||(G==null?void 0:(U=G.getBoundingClientRect())==null?void 0:U.height)||0)}B=rBU(B,G,D,N);return(B==null?0:B.url)?B.url:(B==null?0:B.imageData)?B.imageData:null};
bsQ=function(G,B,F){F=F?[F]:[];G.opacity&&F.push("opacity: "+G.opacity+";");B&&G.placeholderColor?(G=_.Kp(G.placeholderColor),F.push("background-color: "+G+";")):F.push("background-color: transparent;");return F.join(" ")};
VGz=function(G,B,F,D,u){var R=["ytCoreImageHost"];B&&R.push(B);F||R.push("ytCoreImageFillParentHeight");D||R.push("ytCoreImageFillParentWidth");switch(G.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":R.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":R.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":R.push("ytCoreImageContentModeCenter");break;default:R.push("ytCoreImageContentModeScaleToFill")}G.flipForRtlLayout&&R.push("ytCoreImageFlipRtl");
switch(u){case "TOP_START":var N;R.push(((N=document.body)==null?void 0:N.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return R.join(" ")};
o8l=function(G){var B;if(G==null?0:(B=G.clientResource)==null?0:B.imageName){var F;G=(F=G.clientResource)==null?void 0:F.imageName;a:{switch(G){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":F="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":F="yt-logos-ext:yt-logo-updated";break a}F=void 0}return F||v86.get(G)||G}};
Y08=function(G){return _.X("mweb_wiz_skip_render")?MGg(G):pgI(G)};
MGg=function(G){return function(B){var F=L5g("wink-root");I7=J0.lastChild;rUl();SYS(F,_.l(G,B))}};
pgI=function(G){var B=B===void 0?!1:B;return function(F){if(!B||!_.X("mweb_skip_keto_to_c3_if_no_data")||F.data!==void 0){var D=B5(!1);try{var u=F.children;_.X("mweb_render_outside_patch_killswitch")||J0?u?Jb(_.l(G,F,u)):Jb(_.l(G,F)):_.em(new _.Uf("ketoToC3 called outside of a patch",{tagName:G.TAG_NAME}))}finally{B5(D)}}}};
ABs=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
JBQ=function(G,B){G.onViewportEntered=B;dGQ.observe(G)};
cBL=function(){var G={rootMargin:"10%",threshold:.01};_.X("mweb_enable_set_io_root_to_null_safari")?G.root=null:_.X("mweb_enable_set_io_root_to_body_safari")&&(G.root=document.body);return new IntersectionObserver(function(B,F){B.filter(function(D){return D.intersectionRect.height>0}).forEach(function(D){D=D.target;
if(!_.X("mweb_enable_only_update_image_when_connected")||D.isConnected!==!1){var u;(u=D.onViewportEntered)==null||u.call(D);F.unobserve(D)}})},G)};
TGz=function(G,B,F,D,u){function R(){if(D){var y=D.loadedClass,U=D.notifyOnUnloaded;y&&_.zm(G,y);U&&G.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function N(){var y=F(B,G);y&&G.getAttribute("src")!==y&&(_.X("mweb_enable_only_update_image_when_connected")&&G.isConnected===!1||y===G.src||(G.src=y),R())}
u=u===void 0?!0:u;G.removeAttribute("src");R();B&&(u?JBQ(G,N):N())};
IGS=function(G,B,F){if(!B)return!1;B=F(B,G);F=G.getAttribute("src");return B&&B===F&&G.complete};
fGg=function(G,B){for(var F in B)F==="className"?G.className=B[F]:(c$[F]||c$[dT.default])(G,F,B[F])};
ZsU=function(G,B,F){F=F===void 0?!1:F;var D=G.sources!==void 0?G:_.LTs(G);if(D){var u=B.onload;B.onload=function(q){var h=q.target;F&&h.naturalWidth===120||_.b4(h,"ytCoreImageLoaded");B.notifyOnLoaded&&h.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));u==null||u(q)};
B.targetWidth&&B.preserveWidth&&(B.width=B.targetWidth);B.targetHeight&&B.preserveHeight&&(B.height=B.targetHeight);var R=_.Hsz(D),N=R&&o8l(R),y=Osg(D);if(N)return(G=e3U(R)||y.color)&&(B.color=G),{type:"icon",iconName:N,config:Object.assign({},B,B.alt?{}:{"aria-hidden$":"true"},{"aria-label$":B.alt,role:"img"})};if(G.sources===void 0){B.alt=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label||B.alt;B.style$=bsQ(G,B.shouldShowPlaceholder,B.style$);var U;B.isPreloaded=
!((U=_.Q(G,tGQ))==null||!U.isPreloaded)}B.contentMode&&!D.contentMode&&(D.contentMode=B.contentMode);B.className=VGz(D,B.className,B.preserveHeight,B.preserveWidth,B.objectPosition);B.loadedClass="ytCoreImageLoaded";return{type:"image",image:D,config:B}}};
_.VX=function(){var G=_.xS.apply(0,arguments);return _.H5(g88,function(B){var F=G.map(function(D){return D==null?void 0:D(B)});
return function(){return void F.forEach(function(D){return void(D==null?void 0:D())})}})};
S0S=function(G,B){var F=B==null?void 0:B.initial;return _.mS(function(){_.Mg(!0);return F=G(F)},{equals:B==null?void 0:B.isEqual},"rSlKsc")};
s2S=function(G,B){if(G===B)return!0;if(G===void 0||B===void 0)return!1;var F,D,u,R,N,y,U,q;return G.content===B.content&&((F=G.styleRuns)==null?void 0:F.length)===((D=B.styleRuns)==null?void 0:D.length)&&((u=G.commandRuns)==null?void 0:u.length)===((R=B.commandRuns)==null?void 0:R.length)&&((N=G.attachmentRuns)==null?void 0:N.length)===((y=B.attachmentRuns)==null?void 0:y.length)&&((U=G.decorationRuns)==null?void 0:U.length)===((q=B.decorationRuns)==null?void 0:q.length)};
PHo=function(G){return G.parts.map(xGo)};
xGo=function(G){if(typeof G==="string")return G;var B=G.data;G=B.image!==void 0&&B.imageConfig!==void 0?_.l("span",{el:_.VX(mG6(G.data.imageWrapperConfig))},_.l(_.vr,Object.assign({},{data:G.data.image},G.data.imageConfig))):_.l(G.data.tag,{el:_.VX(aGc(G.data),mG6(G.data.config))},G.parts.map(xGo));return qn(G)};
GZl=function(G,B){return G===B?!0:G===void 0||B===void 0?!1:G.noStyleRuns===B.noStyleRuns&&G.noLinkColor===B.noLinkColor&&G.noEndpoints===B.noEndpoints&&G.headerRuns===B.headerRuns&&G.isOverlay===B.isOverlay&&G.linkInheritColor===B.linkInheritColor&&G.userInput===B.userInput&&G.isHeadline===B.isHeadline};
Bbz=function(G){return function(){var B,F,D,u,R,N,y,U,q,h,K,a,m,L;return{ariaLabel:(B=G.ariaLabel)==null?void 0:B.call(G),className:(F=G.className)==null?void 0:F.call(G),ellipsisTruncate:(D=G.ellipsisTruncate)==null?void 0:D.call(G),isOverlay:(u=G.isOverlay)==null?void 0:u.call(G),linkInheritColor:(R=G.linkInheritColor)==null?void 0:R.call(G),noEndpoints:(N=G.noEndpoints)==null?void 0:N.call(G),noStyleRuns:(y=G.noStyleRuns)==null?void 0:y.call(G),noLinkColor:(U=G.noLinkColor)==null?void 0:U.call(G),
noPreWrap:(q=G.noPreWrap)==null?void 0:q.call(G),noWrap:(h=G.noWrap)==null?void 0:h.call(G),skipOnClick:(K=G.skipOnClick)==null?void 0:K.call(G),userInput:(a=G.userInput)==null?void 0:a.call(G),headerRuns:(m=G.headerRuns)==null?void 0:m.call(G),isHeadline:(L=G.isHeadline)==null?void 0:L.call(G)}}};
FqJ=function(G,B){G=new iwg(G,B);_.k2(G);throw G;};
D$U=function(G,B,F){var D=MJL(G);G._numRenders=0;try{var u=G78(function(){return _.l(B,Object.assign({},F))})}catch(N){var R=function(y){y.args||(y.args=[]);
y.args.push("Error in web component wrapper");y.args.push(G.tagName.toLowerCase());return y};
_.Oz(N instanceof Error?R(N):new iwg("Wiz rendering error",G.tagName.toLowerCase()));throw N;}finally{MJL(D)}return u};
_.YN=function(G,B,F){function D(h){var K={};h=_.C(h);for(var a=h.next();!a.done;a=h.next()){a=a.value;var m=void 0,L=void 0,W=void 0,e=_.xQ((W=(L=(m=a).getAttribute)==null?void 0:L.call(m,"slot"))!=null?W:"children");if(m=K[e])m.push(a);else if(e in R||e==="children")K[e]=[a]}h=_.C(Object.keys(K));e=h.next();for(a={};!e.done;a={content$jscomp$62:void 0},e=h.next())e=e.value,e!=="children"&&(a.content$jscomp$62=K[e],K[e]=function(b){return function(){return b.content$jscomp$62}}(a));
return K}
F=F===void 0?{}:F;G.debugName=B+" (CoW)";var u,R=(u=F.props)!=null?u:{};pi6.add(B);var N=ugJ();u=function(){var h=N.apply(this,arguments)||this;h.rawProps={};h.queuingRender=!1;h.dispose=function(){};
h.isWebComponentWrapper=!0;h.isReparenting=!1;h.hasRendered=!1;return h};
_.r(u,N);u.prototype.render=function(){this.hasRendered=!0;for(var h=_.C([].concat(_.gi(this.attributes))),K=h.next();!K.done;K=h.next())K=K.value,K.name!=="slot"&&K.name!=="hidden"&&this.removeAttribute(K.name);h=Object.assign({},this.componentProps,this.slotProps);K=_.C(D$U(this,G,h));h=K.next().value;K=K.next().value;!(h[0]instanceof Element)||h.length>1?FqJ("Wrapped Wiz components must return a single root element.",B):(h=h[0].tagName.toLowerCase(),h!==B&&FqJ("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(h+" !== '"+B),B),this.dispose=K)};
u.prototype.setUpProps=function(){for(var h=this.rawProps,K=this.attributes,a=_.C(Object.keys(R)),m=a.next();!m.done;m=a.next()){m=m.value;var L=void 0;((L=this)==null?0:L[m])&&this[m]!==RMs&&h[m]===void 0&&(h[m]=this[m],(L=Object.getOwnPropertyDescriptor(this.constructor.prototype,m))&&Object.defineProperty(this,m,L))}a=_.C(K);for(m=a.next();!m.done;m=a.next()){L=m.value;m=_.xQ(L.name);var W=m==="class"&&!K.getNamedItem("class-name");if(m in R||W)L=L.value===""||L.value==="true"?!0:L.value==="false"?
!1:isNaN(Number(L.value))?L.value:Number(L.value),m!=="class"||h.className?h[m]=L:h.className=L}K={};for(var e in R)R[e]!==_.oh&&R[e]!==w3L&&(h[e]instanceof Function&&FqJ("Function props must be configured as STATIC, not SIGNAL.",B),m=_.C(_.qg(h[e],void 0,"thC4wf")),a=m.next().value,m=m.next().value,K[e]=m,h[e]=a);h=_.C([h,K]);this.componentProps=h.next().value;this.setters=h.next().value;this.slotProps=D(this.childNodes)};
u.prototype.connectedCallback=function(){drJ.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in R&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
u.prototype.disconnectedCallback=function(){if(!drJ.has(this)){var h;a:{if(_.Mh)for(h=this;h;){if(_.pk.has(h)){h=!0;break a}h=h.parentElement}h=!1}if(h)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){h=_.C([].concat(_.gi(this.attributes)));for(var K=h.next();!K.done;K=h.next()){K=K.value;var a=void 0;K.name==="slot"||K.name==="hidden"&&((a=F.unsafeExternallySettableAttributes)==null?0:a.has("hidden"))||this.removeAttribute(K.name)}}this.innerText="";$q8(this)}}};
u.prototype._setPendingPropertyOrPath=function(){};
u.prototype.notifyPath=function(){};
_.ZN.Object.defineProperties(u.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var y=_.C(Object.keys(R)),U=y.next(),q={};!U.done;q={prop$jscomp$109:void 0},U=y.next())q.prop$jscomp$109=U.value,U=void 0,((U=F.legacyPolymer)==null?0:U.forwardHostProps)&&H$z.has(q.prop$jscomp$109)||Object.defineProperty(u.prototype,q.prop$jscomp$109,{set:function(h){return function(K){var a=this;drJ.has(this)||(this.setters?Xe(function(){var m,L;return void((L=(m=a.setters)[h.prop$jscomp$109])==null?void 0:L.call(m,K))}):(this.rawProps[h.prop$jscomp$109]=K,this.queuingRender&&h.prop$jscomp$109===
"data"&&K!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(q),
get:CTS.has(q.prop$jscomp$109)?void 0:function(){return RMs}});
customElements.define(B,u)};
_.Nbs=function(G,B){return(G=_.Ax(G,B))?_.fe(_.Sz(G)):null};
_.dJ=function(G){if(G=_.Ax(G,Number.MAX_VALUE,void 0,"width"))return _.Sz(G)};
_.Ax=function(G,B,F,D){D=D===void 0?"width":D;if(!G||!G.length)return null;if(_.X("kevlar_tuner_should_always_use_device_pixel_ratio")){var u=window.devicePixelRatio;_.X("kevlar_tuner_should_clamp_device_pixel_ratio")?u=Math.min(u,_.sD("kevlar_tuner_clamp_device_pixel_ratio")):_.X("kevlar_tuner_should_use_thumbnail_factor")&&(u=_.sD("kevlar_tuner_thumbnail_factor"));yIU=u}else yIU||(yIU=window.devicePixelRatio);u=yIU;_.X("kevlar_tuner_should_always_use_device_pixel_ratio")?B*=u:u>1&&(B*=u);if(_.X("kevlar_tuner_min_thumbnail_quality"))return G[0].url||
null;u=G.length;if(_.X("kevlar_tuner_max_thumbnail_quality"))return G[u-1].url||null;if(F)for(var R=0;R<u;R++)if(G[R].url.indexOf(F)>=0)return G[R].url||null;for(F=0;F<u;F++)if(G[F][D]>=B)return G[F].url||null;for(B=u-1;B>0;B--)if(G[B][D])return G[B].url||null;return G[0].url||null};
U$8=function(){Jx.size?setTimeout(function(){cr(n4Q)},0):lyM=0};
n4Q=function(){var G=(0,_.Zl)(),B=null,F=!1;Jx.forEach(function(u){u.loaded=!0;u.loadTime=G;u.pendingPaint=!1;var R=qMJ.get(u);R&&R.resolve(G);B=u;F||!u.ftlEligible&&u.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(F=!0)});
var D;((D=B)==null?0:D.markDirty)&&B.markDirty();Jx.clear();lyM=0;F&&E4s(G)};
hML=function(G){Jx.add(G);G.pendingPaint=!0;lyM||(lyM=_.Tm(_.Lu,U$8))};
KqU=function(G){G.loaded=!1;G.loadTime=Infinity;var B=qMJ.get(G);B&&(B.reject(Error("nh")),qMJ.delete(G));G.pendingPaint&&(Jx.delete(G),G.pendingPaint=!1)};
_.ay6=function(G){var B=G.indexOf(":");return B===-1?{originalName:G}:{originalName:G.substring(0,B),datasyncId:G.substring(B+1)}};
_.X3g=function(){return _.n(function(G){if(m$g!==void 0)return G.return(m$g);m$g=new Promise(function(B){var F;return _.n(function(D){switch(D.nextAddress){case 1:return _.b5(D,2),D.yield(_.Ih.open("test-only"),4);case 4:return D.yield(_.Ih.delete("test-only"),5);case 5:_.oY(D,3);break;case 2:if(F=_.Al(D),F instanceof Error&&F.name==="SecurityError")return B(!1),D.return();case 3:B("caches"in window),_.di(D)}})});
return G.return(m$g)})};
LqI=function(){return _.n(function(G){if(G.nextAddress==1)return G.yield(_.X3g(),2);if(!G.yieldResult)return G.return(void 0);QLg||(QLg=new jLo);return G.return(QLg)})};
rIc=function(G){var B,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return R.yield(LqI(),2);case 2:B=R.yieldResult;if(!B)throw Error("ph");return R.yield(B.open("yt-player-local-img"),3);case 3:return F=R.yieldResult,R.yield(F.match(G),4);case 4:D=R.yieldResult;if(!D)throw Error("qh");return R.yield(D.blob(),5);case 5:return u=R.yieldResult,R.return(u)}})};
Wql=function(G,B){for(var F in G)if(G.hasOwnProperty(F)&&B[F])return F;return null};
Hws=function(G){return"stamp"+G.replace("-","_")+"_"};
kZo=function(G){var B=G.match(/\[\[([\w\.]+)\]\]/);if(B&&B.length>1)return B[1];_.k2(Error("sh`"+G));return null};
OwU=function(G){return G===void 0?_.on("REUSE_COMPONENTS",!1):G||!1};
zMM=function(G,B,F){F&&(B.is?(eMU.has(B)&&(G=eMU.get(B),F=G.listener,delete B[G.property],F.type==="element"&&B.removeEventListener(F.eventName,F.handler),eMU.delete(B)),$$M(B)):B.__proto__==HTMLElement.prototype&&(B=new _.Uf("Rendererstamper removed a non custom element","Stamper: "+G+" element: "+(B&&B.nodeName)),_.em(B)))};
bwI=function(G,B,F,D){var u=B.node?B.node:B;_.IF(F).parentNode===u&&(B.removeChild(F),zMM(G,F,D));if(G=fk.get(F))fk.delete(F),_.Lu.cancelJob(G);F.hidden=!1};
VnL=function(G,B,F,D){var u,R=(u=B.polymerController)!=null?u:B;u=B.loggingStatus;try{u&&(u.isRendererStamper=!0);if(typeof F!=="string"){for(var N in F.attributes)F.attributes[N]===!0?B.setAttribute(N,""):F.attributes[N]===!1?B.removeAttribute(N):B.setAttribute(N,F.attributes[N]);for(var y in F.params)R[y]=F.params[y],B!==R&&N7(B.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var U in F.properties){var q=F.properties[U];if(q){var h=kZo(q);R[U]=G.get(h);B!==R&&N7(B.localName,U,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(U==="on-tap"||U==="on-click"){var K=G.get(h);B.addEventListener("click",K);eMU.set(B,{property:U,listener:{type:"element",eventName:"click",handler:K}})}}else _.Oz(new _.Uf("Undefined property binding",U))}}F.classListBinding&&F.classListBinding.split(" ").forEach(function(a){a=a.trim();if(a.startsWith("[[")){if(a=kZo(a))a=G.get(a),(Array.isArray(a)?a:(a!=null?a:"").split(" ")).forEach(function(m){m&&_.tV(B,m,!0)})}else a&&_.tV(B,a,!0)});
R.data=D}finally{u&&(u.isRendererStamper=!1)}if(F=fk.get(B))B.hidden=!1,fk.delete(B),_.Lu.cancelJob(F)};
v4l=function(G,B,F,D){if(B&&B.children&&(F=B.children[F]))if(_.on("DEFERRED_DETACH"))for(;F&&!fk.has(F);){var u=G,R=B,N=F,y=D;N.hidden=!0;u=_.mX(_.Lu,bwI.bind(null,u,R,N,y),0);fk.set(N,u);F=F.nextElementSibling}else for(;(N=B.lastElementChild)&&(B.removeChild(N),zMM(G,N,D),N!=F););};
_.tx=function(){for(var G=_.xS.apply(0,arguments),B=!0,F=_.C(G),D=F.next();!D.done;D=F.next())if(typeof D.value!=="string"){B=!1;break}return B?G.join(" ").trim()||void 0:function(){for(var u="",R=_.C(G),N=R.next();!N.done;N=R.next())if(N=N.value,typeof N==="function"&&(N=N()),N)if(typeof N==="string")u+=" "+N;else for(var y in N)if(N.hasOwnProperty(y)){var U=N[y];typeof U==="function"&&(U=U());U&&(u+=" "+y)}u=u.trim()||void 0;return _.Mg(u)}};
_.o4g=function(G,B){return _.g5(G.entities,"markersEngagementPanelSyncEntity",B)};
_.Ze=function(G,B){return _.g5(G.entities,"playerStateEntity",B)};
Mnz=function(G,B){return _.g5(G.entities,"fantasyWinProbabilityEntity",B)};
p3J=function(G,B){return _.g5(G.entities,"fantasyTeamEntity",B)};
YMl=function(G,B){return _.g5(G.entities,"fantasyPlayerEntity",B)};
AIJ=function(G,B){return _.g5(G.entities,"booleanEntity",B)};
d$g=function(G,B){return _.g5(G.entities,"qrCodeEntity",B)};
JIs=function(G){return _.g5(G.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
TbL=function(G){var B;return(B=cIo[G])!=null?B:"EVENT_SPAN_TYPE_UNKNOWN"};
IyS=function(G){return function(B){var F=TbL(B.type);return F==="EVENT_SPAN_TYPE_UNKNOWN"?G(B):_.ds("event",{type:F,nodepath:B.target instanceof Element?C_c(B.target):void 0},function(){return G(B)})}};
_.gJ=function(G){G&&AL("event")&&(G=IyS(G));return IMM(function(B){var F,D=(F=G)==null?void 0:F(B);return typeof D==="boolean"?D:!0})};
SF=function(G){return function(){return G()?G():void 0}};
g4o=function(G){var B=_.W5("animated-rolling-character"),F=Uaz(),D=$y(G.character)||$y(G.previousCharacter),u=_.C(NNS()),R=u.next().value,N=u.next().value;_.$f(function(){if(window.ResizeObserver&&_.X("web_fix_rolling_numbers_zoom_safari")){var y=new _.s_(function(){var q,h,K=Math.round(((h=(q=B.value.querySelector("div"))==null?void 0:q.getBoundingClientRect().height)!=null?h:0)*100)/100;K&&N(K)},500),U=new ResizeObserver(function(){y.fire()});
U.observe(B.value);return function(){U.disconnect();y.dispose()}}});
N5I(function(){var y=_.X("web_fix_rolling_numbers_zoom_safari")?R:G.marginMultiplier;if(y){var U;(U=F.value)==null||U.cancel();D?(U=G.previousCharacter?Number(G.previousCharacter)+10:G.rollUp?0:30,G.shouldAnimate||(U-=fy8(G,U))):(U=G.rollUp?0:2,G.shouldAnimate||(U-=G.rollUp?-1:1));B.value.style.marginTop="-"+U*y+"px";G.shouldAnimate?F.value=tnU(B.value,G,U,D,y):B.value.style.display=G.character?"":"none"}});
return _.l("animated-rolling-character",{el:B,class:"animatedRollingCharacterHost"},Hus(D,function(){for(var y=[],U=1;U<30;U++)y.push(_.l("div",null,U%10));return _.l(_.GJ,null,_.l("div",null,"\u00a0"),y,_.l("div",null,"\u00a0"))},function(){return Zws(G.character)}))};
Zws=function(G){return _.l(_.GJ,null,_.l("div",null,"\u00a0"),_.l(_.GJ,null,Hus(!G||_.NL(G),function(){return _.l("div",null,"\u00a0")},function(){return _.l("div",null,G)})),_.l("div",null,"\u00a0"))};
tnU=function(G,B,F,D,u){F=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(D?fy8(B,F):B.rollUp?-1:1)*u+"px)"}],SMg),document.timeline);B.character?(G.style.display="",F.onfinish=null):F.onfinish=function(){G.style.display="none"};
F.play();return F};
fy8=function(G,B){var F=Number(G.character)+10;if(G.previousCharacter)if(G.character){var D=Number(G.character),u=Number(G.previousCharacter);G=G.rollUp?u<D?F:F+10:u<D?F-10:F}else G=G.rollUp?30:0;else G=G.character==="0"?F:G.rollUp?F-10:F+10;return B-G};
sLs=function(G){return function(B){var F={},D;for(D in B){var u=void 0,R=void 0;((u=void 0)==null?0:(R=u.callbacks)==null?0:R[D])||(F[D]=B[D])}return _.l(h9M,null,function(){for(var N in F)B[N]=_.Mg(F[N]);B.disableReactiveLogging=!0;return _.l(G,Object.assign({},B))})}};
GUc=function(G,B,F,D,u,R,N){F=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(R?x$6(B,F,D,u):D?-1:1)*N+"px)"}],PTl),document.timeline);B?(G.style.display="",F.onfinish=null):F.onfinish=function(){G.style.display="none"};
F.play();return F};
x$6=function(G,B,F,D){var u=Number(G)+10;B?G?(G=Number(G),B=Number(B),F=F?B<G?u:u+10:B<G?u-10:u):F=F?30:0:F=G==="0"?u:F?u-10:u+10;return D-F};
ivc=function(G){var B=Uaz(),F=Uaz();yJg(function(){B.value=G.numberText;F.value=G.numberValue},[G.numberText]);
var D=G.fontSizeMultiplier?G.heightPx*G.fontSizeMultiplier:G.heightPx,u=Swz(function(){if(G.numberText){var N=G.numberText;var y=G.forceRollUp||!F.value||!G.numberValue||F.value<G.numberValue;var U=!!G.shouldAnimate,q=B.value,h=[],K=0,a=0,m=(q?q.replace(/\D/g,"").length:0)-(N?N.replace(/\D/g,"").length:0);q=q?q.split(/(\d)/).filter(Boolean):[];for(N=N.split(/(\d)/).filter(Boolean);m<0;){var L=N[a];h.push({character:L,rollUp:y,marginMultiplier:D,shouldAnimate:U});a++;$y(L)&&m++}for(;K<m;)L=q[K],h.push({previousCharacter:L,
rollUp:y,marginMultiplier:D,shouldAnimate:U}),K++,$y(L)||m++;for(;a<N.length;)m=N[a],L=q[K],$y(m)===$y(L)?(a++,K++):$y(m)?(K++,m=void 0):$y(L)&&(a++,L=void 0),h.push({character:m,previousCharacter:L,rollUp:y,marginMultiplier:D,shouldAnimate:U});y=h}else y=[];return y},[G.numberText]),R=G.numberText?["height: "+D+"px;",
"line-height: "+G.heightPx+"px;"].join(" "):"";return _.l("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:R,dir:"ltr","aria-hidden":"true"},u.map(function(N){return _.l(BtL,Object.assign({},N))}))};
F88=function(G){switch(G){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.Dbo=function(G,B){if(!G&&!B)return"medium";G=Math.max(G||0,B||0);return G>=256?"large":G>=96?"medium":"small"};
uIz=function(G){switch(G){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
RNs=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
wWo=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.xN=function(G){return function(){var B="",F;for(F in G){for(var D=G[F];typeof D==="function";)D=D();D!==void 0&&D!==null&&(B+="; "+F+": "+D)}return B.length>0?_.Mg(B.slice(2)):_.Mg()}};
C$S=function(G){switch(G){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"}};
NtJ=function(G,B){if(B)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(G)switch(G){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
qa8=function(G,B,F,D,u,R,N){var y=y_U(G),U=y.disabled,q=y.iconPosition,h=y.style,K=y.focused,a=function(){return!!W()&&q()==="icon-only"},m=function(){return!!W()&&q()==="icon-only-40"},L=function(){return!!W()&&q()==="icon-with-label"},W=function(){return!!B||!(D==null||!D())};
return{type:function(){return h()==="call-to-action-inverse"?"text":h()==="overlay-dark"&&G().type!=="filled"&&G().type!=="tonal"?"tonal":G().type},
shouldFocus:function(){return(K()||(R==null?void 0:R()))&&!U()},
hasIconLeading:function(){return!!W()&&q()==="leading"},
hasIconTrailing:function(){return!!W()&&q()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(F||u!=null&&u())&&q()==="leading-trailing"},
hasIconOnly:a,hasIconOnly40:m,hasIconWithLabel:L,iconButton:function(){return a()||m()||L()},
visiblyDisabled:function(){return(U()?"disabled":G().state)==="disabled"||U()},
overrideSmallSizeIcon:function(){return!G().ignoreIconSizeOverride&&nnc(G(),W())},
iconToRender:B?B:function(){return _.l(_.Pr,{icon:D,gradientColor:function(){var e;return(e=G().customColors)==null?void 0:e.iconGradientColor},
size:function(){return lDl(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return Ubg(G())},
animateIcon:N})},
secondaryIconToRender:F?F:function(){return _.l(_.Pr,{icon:u,size:function(){return lDl(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return Ubg(G())}})}}};
y_U=function(G){return{size:function(){return G().size},
style:function(){return G().style},
focused:function(){return G().focused},
disabled:function(){return G().disabled},
onTap:function(B){var F,D;return(D=(F=G()).onTap)==null?void 0:D.call(F,B)},
alignByText:function(){return G().alignByText},
aTagConfig:function(){return G().aTagConfig},
customColors:function(){return G().customColors},
segmentedPosition:function(){return G().segmentedPosition},
toggled:function(){return G().toggled},
toggleable:function(){return G().toggleable},
accessibilityLabel:function(){return G().accessibilityLabel},
onToggle:function(B){var F,D;return(D=(F=G()).onToggle)==null?void 0:D.call(F,B)},
iconPosition:function(){return G().iconPosition},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
disableTextEllipsis:function(){return G().disableTextEllipsis},
disableBackdropFilter:function(){return G().disableBackdropFilter},
tooltipText:function(){return G().tooltipText},
tooltipShape:function(){return G().tooltipShape},
ariaHidden:function(){return G().ariaHidden},
tabIndex:function(){return G().tabIndex},
buttonText:function(){return G().buttonText},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps},
onClickRateLimitMs:function(){return G().onClickRateLimitMs}}};
nnc=function(G,B){B=(G.iconPosition==="icon-only"||G.iconPosition==="icon-only-40"||G.iconPosition==="icon-with-label")&&B;return!G.segmentedPosition&&B&&G.size==="S"};
lDl=function(G,B,F){switch(G.size){case "XS":return 16;case "S":return!F&&nnc(G,B)?24:16;default:return 24}};
EnM=function(G){switch(G){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"}};
hNQ=function(G){switch(G){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"}};
K8S=function(G){switch(G){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"}};
Ubg=function(G){if(G.style==="overlay-dark"&&G.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Gn=function(G){return G&&G.endsWith("px")?Number(G.slice(0,-2)):0};
XWo=function(G,B){var F=_.C(_.d3(function(){var u,R;return(R=G())!=null?R:B==null?void 0:(u=B())==null?void 0:u.text})),D=F.next().value;
return[function(u){var R=_.mS(function(){var U;return Object.assign({},{location:"bottom",offset:16,delay:1},B==null?void 0:B(),{text:(U=D())!=null?U:""})},void 0,"IJU38d");
_.bC(function(){var U=R();_.U4(function(){_.Lu.addJob(function(){BI.notify(u,U)},4)})},"WlsgZc");
var N=function(){aD8(u,R())},y=function(){mbJ()};
u.addEventListener("mouseenter",N);u.addEventListener("focus",N);u.addEventListener("mouseleave",y);u.addEventListener("blur",y);u.addEventListener("tap",y);_.VI(function(){u.removeEventListener("mouseenter",N);u.removeEventListener("mouseleave",y);u.removeEventListener("focus",N);u.removeEventListener("blur",y);u.removeEventListener("tap",y);mbJ()})},
F.next().value]};
jmz=function(G,B){if(!gd){var F;Zt6(function(){return F=qdI(G,B)});
return F}G.parent=QmJ();return qdI(G,B)};
QmJ=function(){var G=sr(gd||void 0,nLg);return $zM(G)?void 0:G};
iN=function(G,B){_.QX(G,Object.assign({},B,{forceClickLogging:!0}))};
L8M=function(G){switch(G){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
W8U=function(G,B){var F=_.X1(G==null?void 0:G.onTap),D={};F&&(D.getClickedVisualElement=function(){var u;return r_o(G,F,B==null?void 0:(u=B.value)==null?void 0:u.visualElement)});
D=_.jF({elementsCommand:G.onTap,forceNewState:!0,additionalCommandArgs:D});return Lk(D)?D:void 0};
Hvc=function(G,B,F,D){iN(G,Object.assign({},{form:{element:B,event:F}},D))};
kUg=function(G,B,F,D,u){var R=void 0;return function(N){var y=_.X1(F?G==null?void 0:G.onDisabledTap:G==null?void 0:G.onTap);if(y){var U;R=(U=R)!=null?U:B==null?void 0:B.value;if(y)if(_.X("web_button_vm_click_client_ve_killswitch"))Hvc(y,R,N);else{var q;U=r_o(G,y,(q=R)==null?void 0:q.visualElement);if(u){Hvc(y,u,N,{clickedVisualElement:U,form:{element:u}});return}Hvc(y,R,N,{clickedVisualElement:U})}}D&&D(N)}};
r_o=function(G,B,F){B=B==null?void 0:B.clickTrackingParams;var D,u;G=G==null?void 0:(D=G.loggingDirectives)==null?void 0:(u=D.clientVeSpec)==null?void 0:u.uiType;if(F&&G&&!B)return F};
Ovo=function(G){switch(G){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"}};
eNQ=function(G){switch(G){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"}};
$b6=function(G){switch(G){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"}};
zNs=function(G){switch(G){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"}};
_.FT=function(G){return _.mS(function(){Aw8()();return cw6(G)},{debugName:"d8B62c"},"DEXkhd")};
bvo=function(G,B){return _.g5(G.entities,"engagementToolbarStateEntityPayload",B)};
vnJ=function(G){(G=_.yX(G))&&_.V4L(G)};
_.V4L=function(G){var B=_.qW();B&&_.kI(B,G)};
onU=function(G,B,F){_.T1(G,"yt-open-popup-action",[B,F||G])};
M4g=function(G,B){var F=_.zJ(G,"endpoint"),D=_.zJ(G,"action");return(F=D?D:F)&&B&&(F=B.navigationEndpointPopupMap[F])&&(G=_.Yf(F,G),(F=_.zJ(G,"renderer"))&&B.supportedPopups.hasOwnProperty(F))?{openPopupAction:{popupType:B.popupTypeMap[F],popup:G}}:null};
pWJ=function(G,B,F,D){if(D){var u;F=F==null?void 0:(u=F.data)==null?void 0:u.contents;(u=F instanceof Array&&F.length?F[0]:F)&&(F=_.zJ(u,"renderer"))&&D.supportedPopups.hasOwnProperty(F)&&(B.stopPropagation(),onU(G,{openPopupAction:{popupType:D.popupTypeMap[F],popup:u}}))}};
dbg=function(G,B,F,D){D=D===void 0?!1:D;var u=Ya8(B);if(u){u.href&&QW(u.href);var R=B.button;R=R!==void 0?R===0&&!D$(B):!D$(B);u.data&&R&&A_U(G,u,B,F,D)}};
A_U=function(G,B,F,D,u){u=u===void 0?!1:u;var R=_.sD("pbj_navigate_limit",-1)===0;J_M(B);_.te().resolve(_.fH(ou));var N=B.data;if(Object.keys(N).length!==0)if(!_.X("unplugged_web_disable_actions_for_cec_endpoint")&&_.Q(N,_.gs))_.X("endpoint_behavior_command_executor_fix_killswitch")||(F.preventDefault(),F.stopPropagation()),_.tL(G,[N],G);else if(D=M4g(N,D))N.loggingUrls&&N.loggingUrls.forEach(function(U){U.baseUrl&&_.oB(U.baseUrl)}),F.preventDefault(),F.stopPropagation(),onU(G,D,B);
else{var y=c_6(0,B.data,F);if(G=B.getForm)G=G(),y.tempData=y.tempData||{},y.tempData=Object.assign({},y.tempData,G);G=_.VW(F);if(D=G.find(function(U){return!!U.visualElement}))y.createScreenConfig=y.createScreenConfig||{},y.createScreenConfig.clickedVisualElement=D.visualElement;
if(!R)if(F.preventDefault(),F.stopPropagation(),_.Q(N,_.Ttg)&&!u&&_.Gm.instance)_.Gm.instance.resolveCommand(N,y);else if(_.X("kevlar_command_handler_formatted_string")&&!u&&_.Gm.instance&&IDz(N))u=G.find(function(U){return!!U.is})||F.target,F={form:Object.assign({},y,{event:F,
element:u,originatingNode:B})},_.Gm.instance.resolveCommand(N,F);else{N=_.VW(F);F=[];for(u=0;u<N.length;u++)(R=N[u].is)&&F.push(R);$j6({parents:F.join(","),text:B.innerText},function(){_.cZ(B,"yt-navigate",y)})}}};
fDS=function(G){if(G=Ya8(G))J_M(G),TEM(G.href)};
Ya8=function(G){G=_.VW(G);for(var B,F=0;F<G.length;F++)if(B=G[F],B.tagName==="A"&&B.classList.contains("yt-simple-endpoint")){if(!B.data)break;return B}return null};
D$=function(G){return G.shiftKey||G.altKey||G.metaKey||G.ctrlKey};
t4J=function(G,B){var F={itct:B.clickTrackingParams};_.X("kevlar_client_side_screens")&&(!_.Q(B,_.Fu)||_.X("kevlar_exclude_endpoint_killswitch"))&&(F.endpoint=JSON.stringify(B));_.X("enable_unknown_lact_fix_on_html5")&&_.te().resolve(_.fH(_.uN))&&(F.lact=_.Z8());d5S(F);_.V9(G,F)};
J_M=function(G){G.href&&Object.keys(G.data).length!==0&&t4J(G.href,G.data)};
IDz=function(G){for(var B=_.C(Zvz),F=B.next();!F.done;F=B.next())if(G[F.value])return!1;return!0};
gn6=function(){if(RQ)return RQ;if(window.lottie)return RQ=Promise.resolve(window.lottie);var G=_.rg(_.v5("LOTTIE_URL"));return G?RQ=new Promise(function(B,F){var D=document.createElement("script");D.addEventListener("load",function(){B(lottie)});
D.addEventListener("error",function(u){var R="Lottie library failed to load.";u?u.message&&(R+=" Original description: "+u.message,_.$2(u,R)):u=Error(R);_.em(u);F(u)});
D.setAttribute("async","");_.Ux(D,G);document.head.appendChild(D)}):Promise.reject(Error("th"))};
SaJ=function(){return RQ?RQ:gn6()};
sml=function(G){if(G)switch(G){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.X("kevlar_use_wil_icons"))return G=(G=JIs(_.VU().getState()))&&G.animationLightUrl&&G.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:G.animationLightUrl,pathDarkTheme:G.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,G?G:CA.get("LIKE");break;case "LIKE_DELHI_PLAYER":return CA.get("LIKE_DELHI_PLAYER")}};
xbo=function(G){var B=sml(G);if(B)return B;switch(G){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return CA.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return CA.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return CA.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return CA.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return CA.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return CA.get("NOTIFICATION_BELL")}};
P$I=function(G,B){if(!G.closest)return!1;B=!!sml(B);return _.v5("ID_TOKEN")&&B?!!G.closest("segmented-like-dislike-button-view-model")||!!G.closest("yt-player-quick-action-buttons"):!1};
B9s=function(G,B){if(!G||GyQ)B=!1;else{var F;if(!(F=P$I(G,B)))if(G.closest)if(F=!_.v5("ID_TOKEN"),G=G.closest("ytd-subscription-notification-toggle-button-renderer-next"),F||!G)F=!1;else{var D;F=((D=G.data)==null?void 0:D.targetId)==="notification-bell"&&B!=="EXPAND_MORE"}else F=!1;B=F}return B};
iCU=function(G){var B,F;return _.n(function(D){switch(D.nextAddress){case 1:return _.b5(D,2),D.yield(fetch(G),4);case 4:return B=D.yieldResult,D.yield(B.json(),5);case 5:return D.return(D.yieldResult);case 2:F=_.Al(D),_.em(F),_.di(D)}})};
FfI=function(G,B){var F,D,u;return _.n(function(R){if(R.nextAddress==1)return(F=B?G.pathDarkTheme:G.path)?R.yield(Promise.all([iCU(F),gn6()]),2):R.return();D=R.yieldResult;u=D[0];N6.set(F,u);_.di(R)})};
ulI=function(G,B,F,D){function u(N,y){if(B.value===y&&!B.cancelled){for(;G.firstChild;)G.removeChild(G.firstChild);G.classList.add("ytSpecIconShapeHost");N(G,D)}}
var R=_.Dw8(_.te().resolve(_.Pc),F);typeof R==="function"?(B.value=null,u(R,null)):(B.value=R,R.then(function(N){u(N,R)}))};
RC8=function(G,B){var F=document.createElement("div"),D=_.kf(F,function(){return _.l(_.E,{cond:G,then:function(u){return _.l(_.yO,{data:u,options:B})}})},"ea");
return[F,D]};
_.nA=function(G,B){if(B){var F={};wyz.forEach(function(D){D=CjM(B,D,"--yt-lightsource-");Object.assign(F,D)});
N9I.forEach(function(D){D=CjM(B,D,"--yt-basic-");Object.assign(F,D)});
_.Ss(G,F)}};
CjM=function(G,B,F){var D={};D[F+_.s1(B)]=G&&G[B]?_.Kp(G[B]):"";return D};
_.UR=function(G,B,F){lN[G]||(lN[G]={});lN[G][B]=F};
_.q6=function(G){lN[G]||(lN[G]={});return lN[G]};
yO6=function(G){if(!G)return{};var B=G.foregroundTitleColor,F=G.backgroundColor;G=G.borderColor;var D="text";G?D="outline":F&&(D="filled");return{type:D,customColors:{color:B?_.Kp(B):void 0,backgroundColor:F?_.Kp(F):void 0,borderColor:G?_.Kp(G):void 0}}};
EoL=function(G){var B=G.renderer;var F=G.element;var D=G.commandController;var u=G.onTapCallback;var R=G.skipCommandHandling;var N=G.overrides;var y=G.forceIcon;var U=G.forceModernIconButton;var q=G.forceDisabled;var h=G.isSubscribe===void 0?!1:G.isSubscribe;var K=G.isPressed===void 0?!1:G.isPressed;var a=G.useButtonSize===void 0?!1:G.useButtonSize;G=noU(B);h&&(G.style="mono",G.type="filled");y=!B.icon||!y&&B.text?B.icon?B.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:U?"icon-only":"icon-only-40";y==="icon-only-40"&&(G.type="text");var m;U=Object;h=U.assign;a=ljz(B,a);K=!!B.isSelected||!_.X("web_propagate_is_pressed_killswitch")&&!!K;var L=B.isSelected!==void 0;q=q===void 0?B.isDisabled:q;var W=B.text?_.hx(B.text):void 0;var e,b,M,t=((e=B.accessibilityData)==null?void 0:(b=e.accessibilityData)==null?void 0:b.label)||((M=B.accessibility)==null?void 0:M.label);e=t?t:_.zx(B.text);F=Uws(B,F,D,u,R);D=qJM(B);D!=null&&D.length?(D=_.jF({innertubeCommand:BGJ(D),
forceNewState:!0}),D=Lk(D)?D:void 0):D=void 0;return h.call(U,{},G,a,{iconPosition:y},N,{focused:!1,toggled:K,toggleable:L,disabled:q,formattedButtonText:W,accessibilityLabel:e,onTap:F,aTagConfig:D},yO6((m=B.colorData)==null?void 0:m.basicColorPaletteData),{oneOffCustomTextWrap:B.oneOffCustomTextWrap})};
Uws=function(G,B,F,D,u){return function(R){var N=qJM(G);D(N,R);if(!u){N=_.C(N);for(var y=N.next();!y.done;y=N.next())iN(y.value,{form:{element:B,event:R},commandController:F})}}};
qJM=function(G){var B=[];G.command&&B.push(G.command);G.serviceEndpoint&&B.push(G.serviceEndpoint);G.navigationEndpoint&&B.push(G.navigationEndpoint);return B};
ljz=function(G,B){if(B)switch(G.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(G.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
noU=function(G){switch(G.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
hCl=function(G,B){return typeof G!=="object"||G===null?!1:Object.keys(B).every(function(F){return F in G})};
ER=function(G){return Object.fromEntries(Object.keys(G).map(function(B){return[B,B]}))};
KfJ=function(G,B,F){return PEQ(F,function(D,u){return function(R){var N=_.xS.apply(1,arguments);return hCl(R,G)?u.apply(null,[R[B]].concat(_.gi(N))):u.apply(null,[R].concat(_.gi(N)))}})};
hZ=function(G){return function(B,F){return KfJ(G,B,F)}};
ajJ=function(G,B){var F;return(F=_.g5(G,"playlistLoopStateEntity",B))!=null?F:void 0};
mwU=function(G,B){var F;return(F=_.g5(G,"toggleMenuServiceItemEntity",B))!=null?F:void 0};
_.KA=function(G){return G!=null&&G.watch?G.watch.isTheaterMode:!1};
_.aQ=function(G){return G!=null&&G.watch?G.watch.isWatchFullscreen:!1};
_.mA=function(G){return _.Xy8(G)?!0:_.QNI(G)};
_.Xy8=function(G){return G!=null&&G.watch?G.watch.isSwatcherooActive:!1};
_.QNI=function(G){return G.watch.isWatchNarrowWidth};
_.jNo=function(G){return _.KA(G)||_.aQ(G)||_.QNI(G)};
_.Lfl=function(G){return G.watch.openEngagementPanels};
_.XT=function(G,B){return _.g5(G.entities,"likeStatusEntity",B)};
rOz=function(G,B){return _.g5(G.entities,"likeCountEntity",B)};
_.Wfg=function(G,B){return _.g5(G.entities,"stringEntity",B)};
HCM=function(G,B){return _.g5(G.entities,"dataFreshnessEntity",B)};
ky8=function(G,B){if(!G)return!1;var F,D=(F=_.Q(G,_.sw))==null?void 0:F.signal;if(D&&B.signalEndpointMap)return!!B.signalEndpointMap[D];var u;if((F=(u=_.Q(G,_.QO))==null?void 0:u.request)&&B.continuationEndpointMap)return!!B.continuationEndpointMap[F];for(var R in G)if(B.commandEndpointMap[R])return!0;return!1};
OCJ=function(G,B){if(B.streamingEndpointMap)for(var F in G)if(B.streamingEndpointMap[F]&&(G=B.streamingEndpointMap[F]))return G()};
eC8=function(G,B){var F,D=(F=_.Q(G,_.sw))==null?void 0:F.signal;if(D&&B.signalEndpointMap&&(F=B.signalEndpointMap[D]))return F();var u;if((F=(u=_.Q(G,_.QO))==null?void 0:u.request)&&B.continuationEndpointMap&&(u=B.continuationEndpointMap[F]))return u();for(var R in G)if(B.commandEndpointMap[R]&&(G=B.commandEndpointMap[R]))return G()};
$wo=function(G){var B={"Content-Type":"application/json"};_.v5("EOM_VISITOR_DATA")?B["X-Goog-EOM-Visitor-Id"]=_.v5("EOM_VISITOR_DATA"):_.v5("VISITOR_DATA")&&(B["X-Goog-Visitor-Id"]=_.v5("VISITOR_DATA"));B["X-Youtube-Bootstrap-Logged-In"]=_.v5("LOGGED_IN",!1);_.v5("DEBUG_SETTINGS_METADATA")&&(B["X-Debug-Settings-Metadata"]=_.v5("DEBUG_SETTINGS_METADATA"));G!=="cors"&&((G=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(B["X-Youtube-Client-Name"]=G),(G=_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(B["X-Youtube-Client-Version"]=
G),(G=_.v5("CHROME_CONNECTED_HEADER"))&&(B["X-Youtube-Chrome-Connected"]=G),(G=_.v5("DOMAIN_ADMIN_STATE"))&&(B["X-Youtube-Domain-Admin-State"]=G));(G=_.v5("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(B["X-YouTube-Lava-Device-Context"]=G);return B};
zCS=function(G,B){B.watchNextResponse||B.reelItemWatchResponse?B.watchNextResponse?G.content=B.watchNextResponse:G.content=B.reelItemWatchResponse:B.playerResponse?G.player=B.playerResponse:B.reelWatchSequenceResponse&&(G.reelSequence=B.reelWatchSequenceResponse)};
jo=function(G){return function(){return new G}};
LA=function(G){var B=_.te();return function(){return B.resolve(G)}};
_.re=function(G){if(!G)return null;for(var B=[],F=0;F<G.textSegments.length;F++){var D=G.textSegments[F];D.text?B.push(D):D.emojiId&&B.push({emoji_id:D.emojiId})}return{text_segments:B}};
MXg=function(G,B,F,D,u,R,N){R=R===void 0?[]:R;var y=new _.WI;y.endpoint=F;if(!F)return _.Oz(new _.Uf("handle undefined endpoint",B.tagName)),y;var U=AtJ(F);U.length&&(_.tL(G,U,B,D),y.actions=U);F.loggingUrls&&F.loggingUrls.forEach(function(h){h.baseUrl&&Mz(h.baseUrl,h.attributionSrcMode)});
U=!_.X("web_skip_impression_click_killswitch")&&D&&D.impression;if(F.clickTrackingParams&&!bCL(F)&&!VXM(B)&&!U&&(U=_.Rh(),!_.kF(U,B))){var q=B.getScreenLayer&&B.getScreenLayer();q?U.clickCommand(F,null,q):U.clickCommand(F,null)}U=!1;for(q=0;q<R.length;q++)if((0,R[q])(B,F,D)){U=!0;break}!U&&voo(F)&&(y.ajaxPromise=ool(G,B,F,D,u,N));return y};
VXM=function(G){var B;return(G=(B=G.data)==null?void 0:B.navigationEndpoint)&&!!G.clickTrackingParams};
bCL=function(G){var B=_.Q(G,_.sw);if(B&&(B=B.signal)&&pyQ.indexOf(B)>=0)return!0;for(var F in G)if(YJs.indexOf(F)>=0)return!0;return!1};
voo=function(G){var B;if(((B=_.Q(G,_.sw))==null?void 0:B.signal)==="CLIENT_SIGNAL")return!1;for(var F in G)if(AOJ.indexOf(F)>=0)return!1;G=Object.keys(G);return G.length===1&&G[0]==="loggingUrls"?!1:!0};
goz=function(G,B,F,D,u,R,N){var y=_.OR.instance;if(y&&_.eo(y,D))var U=_.$F(y,D,u).then(function(h){return(h==null?0:h.data)?h:{data:h}});
else U=G.requestDataForServiceEndpoint(D,u),_.Q(D,dwQ)||_.Q(D,JOS)||_.Q(D,_.cOS)||_.Q(D,T9S)||_.em(new _.Uf("No RequestBuilder for endpoint",D));var q=_.zn();q.promise.thenCatch(function(){var h=_.zJ(D,"action")||_.zJ(D,"command")||_.zJ(D,"endpoint");h&&(h=D[h],h.hasOwnProperty("onFailureAction")?_.tL(B,[h.onFailureAction],F):h.hasOwnProperty("onFailureCommand")&&_.tL(B,h.onFailureCommand,F));U.cancel("Resolver promise rejected")});
U.then(function(h){if(h){var K=h.error;if(K){if(R&&R.onServerError)R.onServerError(D,h);q.reject(new _.Uf("Response error",D,K))}else if(h=h.data)if(K=h.error){if(R&&R.onServerError)R.onServerError(D,h);q.reject(new _.Uf("Returned error",D,K))}else{Ijg(B,F,h,D);fjz(h);if(K=YYU(h))for(var a=_.C(K),m=a.next();!m.done;m=a.next()){m=m.value;var L=_.te().resolve(_.fH(tX8))||ZCS;if(!_.OR.instance||!L.some(function(e){return!!_.Q(D,e)})||_.X("kevlar_response_processor_allowlist_killswitch")){var W=L=void 0;
((W=_.Q((L=m)==null?void 0:L.commandMetadata,_.xy))==null?0:W.sendPost)?_.fi(B,[m]):_.tL(B,[m],F)}}(a=_.Q(h==null?void 0:h.frameworkUpdates,bN))&&N&&N(a);if(R&&R.onSuccess)R.onSuccess(D,h);q.resolve(new _.VO(h,K))}}else q.reject(new _.Uf("Invalid service endpoint provided",D))},function(h){q.reject(h)});
return q.promise};
fjz=function(G){var B;(G=(B=_.Q(G==null?void 0:G.onResponseReceivedCommand,SJ6))==null?void 0:B.continuationItems)&&(G==null?void 0:G.length)===1&&_.Q(G[0],sN6)&&_.KR("so_r",void 0,"search_overview_answer")};
ool=function(G,B,F,D,u,R){var N;return(N=B.getNetworkManager&&B.getNetworkManager()?B.getNetworkManager():_.te().resolve(_.fH(_.un)))?goz(N,G,B,F,D,u,R):_.U_("No network manager.")};
Ijg=function(G,B,F,D){if(F=F.trackingParams||F.loggingDirectives&&F.loggingDirectives.trackingParams){var u;(_.Q(D,_.vI)||_.Q(D,xwM)||_.Q(D,Pj8))&&D.clickTrackingParams&&(u=_.yX(D.clickTrackingParams));var R;D=(R=B.getScreenLayer)==null?void 0:R.call(B);B=_.Rh().graftServerVe(F,u,D);_.Ia(G,"yt-store-grafted-ve-action",[B])}};
_.Gv8=function(G){var B=new Image;return new _.DS(function(F,D){B.addEventListener("load",function(){F()});
B.addEventListener("error",function(){D()});
B.src=G})};
BRL=function(G){return!!G};
iK8=function(G){return!!G};
F0J=function(G,B,F){var D=G.rowIndex;D!==void 0&&_.Ia(G.hostElement,"yt-section-reactive-dismissal",[D,B,F])};
_.oQ=function(G,B,F){G=_.C(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;if(D===B)break;for(var u=_.C(F),R=u.next();!R.done;R=u.next())if(R=R.value,D.tagName===R||!_.X("web_event_button_role_check_killswitch")&&D.role==="button"&&R==="BUTTON")return!0}return!1};
_.M6=function(G,B,F){G=_.C(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;if(D===B)break;for(var u=_.C(F),R=u.next();!R.done;R=u.next())if(D.id===R.value)return!0}return!1};
_.AZ=function(){var G=_.te().resolve(_.fH(_.pA));return G?(G=G.getCurrentPage())?_.YF(G):null:null};
_.de=function(){var G=_.AZ();if(!G){var B=_.te().resolve(_.fH(_.pA)),F=B?typeof B:"no page manager";B=B?B.getCurrentPage():null;F=new _.Uf("Player is missing when requested.",F,B?B.tagName:"no page");_.k2(F)}return G};
_.YF=function(G){return G&&G.getPlayer?G.getPlayer():null};
Dl8=function(G,B){G={args:{raw_player_response:G}};B&&(G.args=Object.assign({},G.args,B));return G};
uUL=function(G){if(G.args){if(G.args.raw_player_response)return G.args.raw_player_response;if(G.args.player_response)return JSON.parse(G.args.player_response)}};
_.Rbl=function(G,B){var F={url:"/watch?v="+G.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};G.playlistId&&(F.url+="&list="+G.playlistId);G.playerParams&&(F.url+="&pp="+G.playerParams);G={watchEndpoint:G,commandMetadata:{webCommandMetadata:F}};B&&(G.clickTrackingParams=B);return G};
Cqz=function(){return wAL||!!_.Yf("yt.player.Application")};
yps=function(){return NRc||!!document.querySelector("link#player-css")};
lm8=function(){function G(){wAL=!0;ntM.resolve()}
var B,F;return _.n(function(D){ntM||(ntM=new _.tc,Cqz()?G():(B=document.createElement("script"),B.addEventListener("load",G),F=_.qN(_.v5("PLAYER_JS_URL")),_.Ux(B,F),document.head.appendChild(B)));return D.return(ntM.promise)})};
qng=function(){function G(){NRc=!0;UlI.resolve()}
if(!UlI)if(UlI=new _.tc,yps())G();else{var B=document.createElement("link");B.id="player-css";B.addEventListener("load",G);var F=_.qN(_.v5("PLAYER_CSS_URL"));_.hl(B,F,"stylesheet");document.head.appendChild(B)}return UlI.promise};
Eto=function(){return Cqz()&&yps()?Promise.resolve([]):Promise.all([lm8(),qng()])};
hbo=function(G,B,F){var D={args:{}};G&&(D.args.raw_player_response=G);B&&(D.args.raw_watch_next_response=B);F&&(D.args=Object.assign({},D.args,F));return D};
XAJ=function(G,B,F){var D=!1;D=D===void 0?!0:D;G=typeof G==="string"?_.JZ(document,G):G;var u=K0U+"_"+_.S8(G),R=amU[u];if(R&&D)return mlL(B,F)?R.api.loadVideoByPlayerVars(B.args||null):R.loadNewVideoConfig(B),R.api;R=new cI(G,u,B,F,void 0);amU[u]=R;R.addOnDisposeCallback(function(){delete amU[R.getId()]});
return R.api};
mlL=function(G,B){return B&&B.serializedExperimentFlags?B.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):G&&G.args&&G.args.fflags?G.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
QlS=function(){var G=new _.tc;G.resolved=!1;var B=G.resolve;G.resolve=function(F){G.resolved=!0;B(F)};
return G};
L0g=function(G){var B={};jlQ().install((B.document_disposed={callback:G},B))};
Tn=function(G,B){if(!G&&Math.random()<=_.sD("kevlar_unified_player_logging_threshold")){G=Error("vh`"+(B?B:"Unspecified error"));if(_.X("kevlar_unified_player_throw_errors"))throw G;_.em(G)}};
_.rpQ=function(){var G=_.Yf("ytDebugData.callbacks");G||(G={},_.IY("ytDebugData.callbacks",G));return G};
HKg=function(G,B){var F=_.rpQ();if(_.X("web_dd_iu")||W0c.includes(G))F[G]=B};
kvJ=function(){return _.n(function(G){return G.return({isLeader:_.Afg(_.VU().getState()),c:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
OKQ=function(){var G;_.n(function(B){if(B.nextAddress==1)return HKg("APP_STATE",kvJ),B.yield(_.te().resolve(_.IQ),2);G=B.yieldResult;HKg("PI",function(){return _.n(function(F){return F.return(G.getVideoStats())})});
_.di(B)})};
ebU=function(G){return!!G&&G.length>0&&G[0].loggingUrls!=null&&G[0].loggingUrls.length>0};
$lo=function(){var G=_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
zbU=function(G){if(!G)return[];var B=[];G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.loggingUrls){F=_.C(F.loggingUrls);for(var D=F.next();!D.done;D=F.next())D=D.value,D.baseUrl&&B.push(D.baseUrl)}return B};
bK6=function(G){var B=_.tC(_.fS(_.Fz.location.href));G=_.tC(_.fS(G));return _.X("kevlar_clear_non_displayable_url_params")?B==fA(G):fA(B)==fA(G)};
fA=function(G){var B=_.ZT8(G);G=G.slice(0);var F=["frags"];_.X("kevlar_hide_pp_url_param")&&F.push("pp");_.X("kevlar_hide_time_continue_url_param")&&F.push("time_continue");F=_.C(F);for(var D=F.next();!D.done;D=F.next())D=D.value,G=_.iB(_.tC(G),D);return _.tC(G)+(B?"#"+B:"")};
tZ=function(G,B){var F=F===void 0?!0:F;B=Number(B)*1E3;var D=Math.round((0,_.Zl)()),u=D.toString();G={innertubeResponse:G,serverDateTimestampMs:u,lastModifiedTimestampMs:u,expireTimestampMs:(D+B).toString(),isProcessed:F};if(F=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME"))G.clientName=F;return G};
vtI=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++VkS};
otQ=function(G){return!isNaN(G)&&G>0};
pAQ=function(){_.X("web_adaptive_repeat_ase")&&MkJ&&_.W$("applicationStarted",MkJ)};
_.YnJ=function(){var G=_.Uw(),B=_.qW();B&&G&&_.eD(B,[G],!0)};
dl6=function(G){return G&&Apo.some(function(B){return G.includes(B)})};
tkc=function(G){var B=_.Q(G,_.MI);if(!B)return!1;var F=B.url,D=B.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!F)return _.k2(Error("Ah")),!1;if(B.target==="TARGET_NEW_WINDOW"){B={};_.X("resolve_url_parent_tracking_params")&&(!_.Tt(F)||ZJ(window.location.href,F))&&(B={endpoint:G,itct:G.clickTrackingParams});d5S(B);G=null;try{if(D){a:{var u=F,R=B;D=D===void 0?!1:D;R&&_.V9(u,R);var N=_.Sz(u),y=_.fe(N);u!=y&&_.Ae(Error("Zf`"+u));u=y;try{if(D){y=u;y=QhS(y);QW(y);G=_.wi(window,y,"_blank",
"attributionsrc");break a}}catch(a){_.Mn(a)}QW(u);G=_.wi(window,N,"_blank")}Jp8(_.te().resolve(cpQ),G,F);return!0}}catch(a){_.k2(a)}_.V9(F,B);B={target:"_blank",noopener:!1};N=window;y=IM(F)?F:_.Sz(typeof F.href!="undefined"?F.href:String(F));D=self.crossOriginIsolated!==void 0;G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);u=B.noreferrer;if(D&&u&&G==="unsafe-url")throw Error("we");G=u&&!D;u=B.target||F.target;R=[];var U=[],q=!1;for(K in B){var h=B[K];switch(K){case "width":case "height":case "top":case "left":R.push(K+
"="+h);break;case "target":break;case "noopener":case "noreferrer":h?U.push(K):(q=!0,U.push(K+"=false"));break;case "attributionsrc":R.push(K+(h?"="+h:""));break;default:R.push(K+"="+(h?1:0))}}var K=u!==void 0&&!["_blank","_self","_top","_parent",""].includes(u);K=kM()&&K;TRQ&&D&&R.length===0&&U.length>0&&!K&&!q?(U.length===2&&(U=["noreferrer"]),_.wi(N,y,u,U[0]),G=ImL()):(K=R.join(","),_.zs()&&N.navigator&&N.navigator.standalone&&u&&u!="_self"?(K=_.G_("A"),Go(K,y),K.target=u,G&&(K.rel="noreferrer"),
((B=B.attributionsrc)||B==="")&&K.setAttribute("attributionsrc",B),B=document.createEvent("MouseEvent"),B.initMouseEvent("click",!0,!0,N,1),K.dispatchEvent(B),K=ImL()):G?(K=_.wi(N,"",u,K),N=_.fe(y),K&&(K.opener=null,N===""&&(N="javascript:''"),N='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Z$(N)+'">',N=i5(N),(B=K.document)&&B.write&&(B.write(DK(N)),B.close()))):((K=_.wi(N,y,u,K))&&B.noopener&&(K.opener=null),K&&B.noreferrer&&(K.opener=null)),G=K);Jp8(_.te().resolve(cpQ),
G,F);return!0}K=_.Ik(F);K=dl6(K)||F==="https://studio.youtube.com/";if(_.Tt(F)&&!ZJ(window.location.href,F)||K)QW(F),Uq(),_.js(F,void 0,void 0,window.top,fml);else return _.em(new _.Uf("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",G)),!1;return!0};
_.Sno=function(G,B){B=B===void 0?0:B;if(!(_.Q(G,ZK6)||_.Q(G,gto)||_.Q(G,_.MI)&&_.Q(G,_.MI).url))return!1;var F,D=(F=_.Q(G,_.MI))==null?void 0:F.url;F=D?{externalLinkData:{url:D}}:null;return _.Rh().clickCommand(G,F,B)};
xlJ=function(G,B,F,D,u){u=u===void 0?{}:u;return function(R){var N,y;var U=((N=G.loggingDirectives)==null?0:(y=N.clientVeSpec)==null?0:y.uiType)?_.ge(G.loggingDirectives.clientVeSpec.uiType):void 0;u.clickedVisualElement||(u.clickedVisualElement=U);U=slM(G,B);F(U,R);U=_.C(U);for(N=U.next();!N.done;N=U.next()){N=N.value;y=D;var q=R,h=u;h.form?h.form.event=q:h.form={element:y,event:q};iN(N,h)}}};
slM=function(G,B){var F=[];B?(G.toggledCommand&&F.push(G.toggledCommand),G.toggledServiceEndpoint&&F.push(G.toggledServiceEndpoint)):(G.defaultCommand&&F.push(G.defaultCommand),G.defaultServiceEndpoint&&F.push(G.defaultServiceEndpoint),G.defaultNavigationEndpoint&&F.push(G.defaultNavigationEndpoint));return F};
Pqz=function(G,B){var F=G.toggledStyle||G.style,D;switch((D=B?F:G.style)==null?void 0:D.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"}}};
_.So=function(){return _.n(function(G){return G.nextAddress==1?G.yield(_.te().resolve(_.IQ),2):G.return(_.te().resolve(GWs)())})};
_.sR=function(){return _.te().resolve(GWs)()};
_.xF=function(){return{lottieEl:void 0}};
BfM=function(G,B){return G.startsWith(B.uniqueId)};
i1g=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(_.So(),2);B=D.yieldResult;if((F=B)==null||!F.addEventListener)return PI(),D.return();B.addEventListener("onCueRangeEnter",G);_.di(D)})};
F6z=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(_.So(),2);B=D.yieldResult;if((F=B)==null||!F.removeEventListener)return PI(),D.return();B.removeEventListener("onCueRangeEnter",G);_.di(D)})};
DMU=function(G){var B,F,D,u,R;_.n(function(N){if(N.nextAddress==1)return N.yield(_.So(),2);B=N.yieldResult;if((F=B)==null||!F.addCueRange)return PI(),N.return();D=_.C(G.timings);for(u=D.next();!u.done;u=D.next())R=u.value,B.addCueRange(G.uniqueId+"-"+R,R/1E3,(R+100)/1E3);_.di(N)})};
uYl=function(G){var B,F,D,u,R;_.n(function(N){if(N.nextAddress==1)return N.yield(_.So(),2);B=N.yieldResult;if((F=B)==null||!F.removeCueRange)return PI(),N.return();D=_.C(G.timings);for(u=D.next();!u.done;u=D.next())R=u.value,B.removeCueRange(G.uniqueId+"-"+R);_.di(N)})};
RuQ=function(){var G,B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(_.So(),2);G=D.yieldResult;if((B=G)==null||!B.getPlayerState)return PI(),D.return();F=G.getPlayerState();return D.return(F===2)})};
PI=function(){_.em(new _.Uf("Smartimation player does not exist or is corrupted"))};
wkQ=function(){try{var G;return(G=window.CSS)!=null&&G.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(B){return _.em(new _.Uf("Smartimation CSS.supports threw an error")),!1}};
q6l=function(G,B,F,D,u){var R=G.playlistId?CV6:Nfg;B=B();F=F();u=!!G.videoId&&u()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.DV(B))return y4M({data:G,actionType:R,disabled:u},F);if(G.videoId&&D())return n16({data:G,actionType:R,disabled:u});switch(B){case "TRANSFER_STATE_UNKNOWN":return n16({data:G,actionType:R,disabled:u});case "TRANSFER_STATE_FAILED":return G.videoId?l1M({data:G,actionType:R,disabled:u}):UMS({data:G,actionType:R,disabled:u});case "TRANSFER_STATE_COMPLETE":return UMS({data:G,
actionType:R,disabled:u});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return y4M({data:G,actionType:R,disabled:u},F);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return G.videoId?l1M({data:G,actionType:R,disabled:u}):n16({data:G,actionType:R,disabled:u});default:return n16({data:G,actionType:R,disabled:u})}};
E1o=function(G,B){var F=G.onTapCommand,D=_.X1(F);if(G.videoId&&_.Q(D,_.GP))return _.Q(D,_.GP).action=B,F;G.playlistId&&_.Q(D,_.B_)&&(_.Q(D,_.B_).action=B);return F};
n16=function(G){var B=G.data;var F=G.actionType;G=G.disabled;return{text:huS,iconType:"OFFLINE_DOWNLOAD",onTap:E1o(B,F.ACTION_ADD),disabled:G}};
y4M=function(G,B){var F=G.data;var D=G.actionType;G=G.disabled;var u="OFFLINE_DOWNLOAD";B>=0&&B<=.1?u="OFFLINE_DOWNLOADING_ZERO":B>.1&&B<=.3?u="OFFLINE_DOWNLOADING_TWENTY":B>.3&&B<=.5?u="OFFLINE_DOWNLOADING_FORTY":B>.5&&B<=.7?u="OFFLINE_DOWNLOADING_SIXTY":B>.7&&B<1?u="OFFLINE_DOWNLOADING_EIGHTY":B===1&&(u="OFFLINE_PIN");return{text:K6z,iconType:u,onTap:E1o(F,D.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
UMS=function(G){var B=G.data;var F=G.actionType;G=G.disabled;return{text:a18,iconType:"OFFLINE_PIN",onTap:E1o(B,F.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
l1M=function(G){var B=G.data;var F=G.actionType;G=G.disabled;return{text:mMg,iconType:"OFFLINE_DOWNLOAD",onTap:E1o(B,F.ACTION_RETRY),disabled:G}};
_.iR=function(G,B){var F=Aw8();return _.mS(function(){F();return cw6(G,[_.Mg(B)||""])},{debugName:"LUZslf"},"Z105t")};
Xks=function(G){var B=_.iR(_.mD,function(){return G().videoId}),F=_.iR(_.X9,function(){return G().playlistId});
return function(){return G().videoId?B:G().playlistId?F:_.C(_.qg("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Qfc=function(G){var B=_.iR(QU,function(){return G().videoId}),F=_.iR(_.Y56,function(){return G().playlistId});
return function(){return G().videoId?B:G().playlistId?F:_.C(_.qg(0,void 0,"K4tgOc")).next().value}};
jfS=function(G){var B=_.iR(_.Z3g,function(){return G().videoId});
return function(){return G().videoId?B:_.C(_.qg(!1,void 0,"Oaxwcf")).next().value}};
L6J=function(G){var B=_.iR(Jfs,function(){return G().videoId});
return function(){return G().videoId?B:_.C(_.qg("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
r4M=function(){return{}};
_.euM=function(G,B,F){return{submitForm:function(){var D,u,R,N;return _.n(function(y){if(y.nextAddress==1){D=W6Q(G());if(!D)return y.return();if(D.onSubmit)return H1I(B),D.onSubmit(),H1I(F),y.return();if(!D.submitConfig||!D.formData)return y.jumpTo(0);D.disableDuringSubmission&&kWc(G(),!0);H1I(B);return y.yield(O1g(D.submitConfig,D.formData()),3)}u=y.yieldResult;H1I(F);if(((R=u)==null?0:R.submitResult)&&((N=D)==null?0:N.onSubmitResult))D.onSubmitResult(u.submitResult);D.disableDuringSubmission&&kWc(G(),
!1);return y.return()})},
isValid:function(){var D=W6Q(G());if(D){var u;return!((u=D.isValid)==null||!u.call(D))}return!0},
isSubmitting:function(){var D,u;return!!((D=W6Q(G()))==null?0:(u=D.isSubmitting)==null?0:u.call(D))}}};
_.Fj=function(){if(!$Ms){var G=_.C(_.qg(new Map,void 0,"Y1XnBc"));$Ms=G.next().value;zul=G.next().value}return $Ms};
_.b1s=function(G){zul(new Map(G))};
W6Q=function(G){if(G)return _.Fj()().get(G)};
O1g=function(G,B){var F;return _.n(function(D){return D.nextAddress==1?B?(F=_.te().resolve(_.fH(VMl)))&&G.submitId?D.yield(F.submitForm(G.submitId,B,v1g,G.params,G.clickTrackingParams),2):D.return(Promise.reject(Error("Ch"))):D.return(Promise.reject(Error("Bh"))):D.return(D.yieldResult)})};
kWc=function(G,B){if(G){var F=_.Fj();F().set(G,Object.assign({},F().get(G),{isSubmitting:function(){return B}}));
_.b1s(F())}};
H1I=function(G){if(G){var B=_.te().resolve(_.Wr);B&&(G=_.X1(G()))&&B.resolveCommand(G)}};
pkz=function(G,B){B=B===void 0?{shouldPersist:!0}:B;return{useUpdatableData:function(F,D){var u=_.mS(function(){return G(F())},void 0,"Gmrblb"),R=o1o(F,u,D,B);
_.bC(function(){if(u()!=null){MMU.set(u(),R);var N=u();_.VI(function(){MMU.delete(N)})}},"j4hx9b");
return R},
getData:function(F){var D;return(D=MMU.get(G(F)))==null?void 0:D[0]()},
updateData:function(F,D){F=G(F);F=MMU.get(F);if(!F)return!1;var u=_.C(F);F=u.next().value;u=u.next().value;D=D(F());u(D);return!0}}};
o1o=function(G,B,F,D){D=D===void 0?{}:D;var u=_.C(_.d3(function(){var y=G(),U=B();return Y6M(y,U,F,D)})),R=u.next().value,N=u.next().value;
return[R,function(y){N(y);var U=B();if(D.shouldPersist&&U!=null){var q,h=(q=F==null?void 0:F.map(function(K){return K()}))!=null?q:[];
_.DM.set(U,[y,h])}}]};
Y6M=function(G,B,F,D){D=D===void 0?{}:D;if(B==null||!D.shouldPersist)return G;D=_.DM.get(B);if(!D)return G;var u=_.C(D);D=u.next().value;var R=u.next().value,N;u=(N=F==null?void 0:F.map(function(y){return y()}))!=null?N:[];
if((R==null?0:R.length)&&(F==null?0:F.length)&&u.some(function(y,U){return y!==R[U]}))return _.DM.remove(B),G;
(F==null?0:F.length)&&_.DM.set(B,[D,u]);return D};
dMQ=function(G){var B=_.C(_.qg(!0,void 0,"bKtO6d")),F=B.next().value;B=B.next().value;return A4l(B,function(){var D=qn(G.children());return _.l(_.E,{cond:F,then:function(){return D},
else:G.fallback})})};
A4l=function(G,B){var F=J4U,D=0;J4U={addDep:function(){D++;Xe(function(){G(!1)})},
removeDep:function(){--D===0&&Xe(function(){G(!0)})}};
try{return B()}finally{J4U=F}};
_.uR=function(G){var B=c48(G),F=B.data,D=B.mapping,u=B.wrapper;B=B.pendingFallback;var R=function(){return TfI(_.Mg(F))},N=function(){var y=R(),U=[];
y=_.C(y);for(var q=y.next();!q.done;q=y.next()){var h=void 0;q=q.value;var K=void 0;for(h in q)if(!(!q).hasOwnProperty(h)){K=h;break}(h=K)&&U.push(h)}return U};
return G.data?_.l(dMQ,{fallback:B},function(){return _.l(_.jR,{each:N},function(y,U){var q=u?function(L){return u(function(){return D[y](L,U)},h,U)}:function(L){return D[y](L,U)};
q.debugName||(q.debugName=String(y));if(!D[String(y)])return document.createComment("");q.componentType!==j2&&I1g(String(y));var h=f1g(R,y,U);if(_.X("web_add_microtask_to_stamper")&&!tMz.has(String(y))){var K=_.C(_.qg(!1,void 0,"afb1md")),a=K.next().value,m=K.next().value;Promise.resolve().then(function(){tMz.add(String(y));m(!0)});
return _.l(_.E,{cond:a,then:function(){return _.l(q,{data:h})}})}return _.l(q,{data:h})})}):_.l(_.GJ,null)};
c48=function(G){var B=G.targetId||Z1o(G.children);if(!G.data||!B)return Object.assign({},G,{mapping:G.children});var F="stamper-"+g1c++,D=function(){var y;return(y=typeof G.targetId==="function"?G.targetId(F):G.targetId)!=null?y:F};
B=_.C(S68(function(){var y=TfI(G.data());y.targetId=D;return y})).next().value;
var u=Object.assign({},(_.te().resolve(_.fH(sfM))||{}).replaceableMapping,G.children);if(G.replacementWrapper){var R=u.notificationTextRenderer,N=u.notificationMultiActionRenderer;R&&(u.notificationTextRenderer=function(y,U){return G.replacementWrapper(R({data:y.data},U))});
N&&(u.notificationMultiActionRenderer=function(y,U){return G.replacementWrapper(N({data:y.data},U))})}return Object.assign({},G,{data:B,
mapping:u,wrapper:function(y,U,q){return jmz({targetId:D,stamperIndex:q},G.wrapper?function(){return G.wrapper(y,U,q)}:y)}})};
f1g=function(G,B,F){var D;return _.mS(function(){var u=G()[F()];if(u)D=u[B];else return _.em(new _.Uf("Stamper failed to find "+String(B)+" at index "+F()+" of data array of length "+(G().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),D;return u[B]},void 0,"Su9U8")};
Z1o=function(G){G=_.C(Object.keys(G));for(var B=G.next();!B.done;B=G.next())if(B=B.value,xM8.includes(B)||PVS.includes(B)||G3I.includes(B))return!0;return!1};
TfI=function(G){return G?Array.isArray(G)&&G instanceof Array?G:[G]:[]};
I1g=function(G){if(_.X("web_enable_renderer_logger")){var B;(B=_.te().resolve(_.fH(BWo)))!=null&&B.loggingEnabled&&!B.ids.has(G)&&B.ids.add(G)}};
i0s=function(){var G,B;return(B=(G=_.te().resolve(_.fH(_.Rx)))==null?void 0:G())!=null?B:!1};
Dcc=function(G,B){G=G===void 0?Fcs:G;switch(B.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},G,{isOpen:B.payload});default:return G}};
R$I=function(G,B){G=G===void 0?uXs:G;switch(B.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},G,{isAllowed:B.payload});default:return G}};
C0l=function(G,B){G=G===void 0?wEJ:G;switch(B.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{errorMessage:B.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{title:B.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},G,{privacy:B.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},G,{isDisabled:B.payload});default:return G}};
yao=function(G,B){G=G===void 0?NWz:G;switch(B.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},G,{isOpen:B.payload});default:return G}};
lts=function(G,B){G=G===void 0?n_o:G;switch(B.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},G,{isFullscreen:B.payload});case "SET_NAVIGATION_BUTTON":var F=B.payload.targetId,D=Object.assign({},G.navigationButtons);D[F]=B.payload.button;return Object.assign({},G,{navigationButtons:D});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},G,{topPanelId:B.payload});case "SET_SECONDARY_HEADER":return F=B.payload.panelId,D=Object.assign({},G.secondaryHeader),D[F]=B.payload.secondaryHeader,
Object.assign({},G,{secondaryHeader:D});default:return G}};
h$g=function(){return Xh(Object.assign({},{voiceSearch:UFz,engagementPanel:lts,bottomSheet:Dcc,cinematicSetting:R$I,shorts:Q$M,drawerLayout:yao,createPlaylist:C0l,locationCollection:Ucg,reportChannel:qUl,reportForm:E_8},j$l))};
Kcz=function(G,B){_.Lu.addLowPriorityJob(function(){var F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return _.b5(R,2),R.yield(gn6(),4);case 4:return R.yield(fetch(G),5);case 5:return F=R.yieldResult,R.yield(F.json(),6);case 6:D=R.yieldResult;N6.set(G,D);requestAnimationFrame(function(){B(D)});
_.oY(R,0);break;case 2:u=_.Al(R),_.em(u),_.di(R)}})})};
atQ=function(G){var B={animationConfig:{},listeners:{}},F=function(){G(!0)};
B.listeners.data_failed=F;B.listeners.error=F;B.listeners.data_ready=function(){G(!1)};
return B};
QbS=function(G){var B=G.model;var F=G.subscribed;var D=G.isOverlay;var u=G.element;var R=G.commandController;var N=G.notificationState;if(F){var y,U;var q=(B==null?void 0:(y=B.buttonStyle)==null?void 0:y.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:B==null?void 0:(U=B.unsubscribeButtonContent)==null?void 0:U.buttonText}else{var h;q=B==null?void 0:(h=B.subscribeButtonContent)==null?void 0:h.buttonText}a:{var K;switch(B==null?void 0:(K=B.buttonStyle)==
null?void 0:K.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":y="S";break a;default:y="M"}}a:if(D)D="overlay";else switch(B.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":D="overlay";break a;default:D="mono"}a:if(F)var a="tonal";else switch((a=B.buttonStyle)==null?void 0:a.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":a=
"tonal";break a;default:a="filled"}return{style:D,type:a,state:B.disableSubscribeButton?"disabled":"active",size:y,focused:G.focused,toggled:F,accessibilityLabel:mcU(B,F,N),buttonText:q,iconPosition:B.disableNotificationBell?"none":"leading-trailing",onTap:XEs(B,F,u,R),disableTextEllipsis:!!G.disableTextEllipsis}};
XEs=function(G,B,F,D){return function(u){if(B){var R;var N=G.disableNotificationBell?_.X1(G==null?void 0:(R=G.unsubscribeButtonContent)==null?void 0:R.onTapCommand):_.X1(G==null?void 0:G.onShowSubscriptionOptions)}else{var y;N=_.X1(G==null?void 0:(y=G.subscribeButtonContent)==null?void 0:y.onTapCommand)}N&&iN(N,{form:{element:F==null?void 0:F.value},commandController:D});u.stopPropagation()}};
mcU=function(G,B,F){if(B){if(G==null?0:G.disableNotificationBell){var D;return G==null?void 0:(D=G.unsubscribeButtonContent)==null?void 0:D.accessibilityText}switch(F){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var u;return G==null?void 0:(u=G.bellAccessibilityData)==null?void 0:u.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var R;return G==null?void 0:(R=G.bellAccessibilityData)==null?void 0:R.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var N;return G==null?void 0:(N=
G.bellAccessibilityData)==null?void 0:N.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var y;return G==null?void 0:(y=G.bellAccessibilityData)==null?void 0:y.disabledLabel;default:var U;return G==null?void 0:(U=G.unsubscribeButtonContent)==null?void 0:U.accessibilityText}}else{var q;return G==null?void 0:(q=G.subscribeButtonContent)==null?void 0:q.accessibilityText}};
jbM=function(G,B){return _.g5(G.entities,"subscriptionStateEntity",B)};
LcQ=function(G,B){return _.g5(G.entities,"subscriptionNotificationStateEntity",B)};
ra8=function(G,B){return _.g5(G.entities,"upcomingEventReminderStateEntity",B)};
WcU=function(G,B){return _.g5(G.entities,"commentEntityPayload",B)};
H0g=function(G,B){return _.g5(G.entities,"engagementToolbarSurfaceEntityPayload",B)};
k3U=function(G,B){return _.g5(G.entities,"triStateButtonStateEntityPayload",B)};
O0g=function(G,B){return _.g5(G.entities,"commerceCartCheckoutButtonEntity",B)};
e$l=function(G,B){return _.g5(G.entities,"commandEntity",B)};
$cl=function(G){if(G){switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":G="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":G="NOTIFICATIONS_OFF";break;default:G="NOTIFICATIONS_NONE"}return G}};
z$g=function(G,B,F){F.subscribed!==B&&((F=F.key)&&_.M7(_.wC("subscriptionStateEntity",F,{key:F,subscribed:B})),G.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:B})),B||_.T1(G,"yt-unsubscribe-action"))};
VdQ=function(G){G=_.Q(_.X1(G),_.Ch);var B,F,D,u;return(u=_.Q(G==null?void 0:(B=G.panelLoadingStrategy)==null?void 0:(F=B.inlineContent)==null?void 0:(D=F.sheetViewModel)==null?void 0:D.content,b0l))==null?void 0:u.listItems};
v_c=function(G,B){if(G.onShowSubscriptionOptions&&B&&(G=VdQ(G.onShowSubscriptionOptions),G!=null&&G.length)){var F=$cl(B);G.forEach(function(D){D=_.Q(D,_.Nj);var u,R,N,y,U=D==null?void 0:(u=D.leadingImage)==null?void 0:(R=u.sources)==null?void 0:(N=R[0])==null?void 0:(y=N.clientResource)==null?void 0:y.imageName;D&&U&&(D.isSelected=U===F)})}};
o_z=function(G,B,F,D){B&&F?G.style.width=F+"px":!B&&D&&(G.style.width=D+"px")};
Mdo=function(G,B,F){var D;(D=G.lottieEl)==null||D.goToAndPlay(0);var u;(u=B.lottieEl)==null||u.goToAndPlay(0);_.yH(_.Lu,function(){var R;(R=F.lottieEl)==null||R.goToAndPlay(0)},300)};
pEI=function(G){return!(G==null||!G.iconName||(G==null?0:G.title))};
YUo=function(G,B,F,D){F&&_.Lu.cancelJob(F);F=_.Lu.addLowPriorityJob(function(){D(void 0)},5E3);
D(F);B&&G!==(B.likeStatus==="LIKE")&&B.key&&_.M7(_.wC("likeStatusEntity",B.key,{key:B.key,likeStatus:G?"LIKE":"INDIFFERENT",hadUserInteraction:G}))};
_.AaM=function(G,B){return _.g5(G.entities,"accountLinkStatusEntity",B)};
dcQ=function(G,B){return _.g5(G.entities,"hatsSurveyEntity",B)};
Jag=function(G,B){return _.g5(G.entities,"hatsSurveyStateEntity",B)};
caQ=function(G,B){return _.g5(G.entities,"quantityIncrementerEntity",B)};
TWM=function(G){switch(G){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
ItL=function(G){switch(G){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}};
ft6=function(G){switch(G){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.Z0S=function(G){var B=_.sD("web_generic_client_event_wait_period ",0);B||(B=3E5);var F=tdo.get(G);!_.X("enable_web_client_experiment_event_timeout_killswitch")&&F&&(0,_.Zl)()-F<B||(tdo.set(G,(0,_.Zl)()),_.W$("genericClientExperimentEvent",{eventType:G}))};
_.g_z=function(G,B){var F,D,u,R;a:{var N=G.style;if(N===void 0)N=17;else switch(N){case "LIVE":N=18;break a;default:N=17}}return{type:N,text:B?HLS({seconds:B}):_.zx(G.text),accessibilityText:(F=G.text)==null?void 0:(D=F.accessibility)==null?void 0:(u=D.accessibilityData)==null?void 0:u.label,icon:(R=G.icon)==null?void 0:R.iconType}};
SUI=function(G){switch(G){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
sbU=function(G){if(!G)return"";var B,F=(B=_.te().resolve(_.fH(_.Rx)))==null?void 0:B(),D;if(!F&&((D=G.vibrantColorPalette)==null?0:D.iconInactiveColor))return aF(G.vibrantColorPalette.iconInactiveColor,"1");var u;return F&&((u=G.darkColorPalette)==null?0:u.iconInactiveColor)?aF(G.darkColorPalette.iconInactiveColor,"1"):G.color?aF(G.color,"1"):G.sampledThumbnailColor?(G=G.sampledThumbnailColor,"rgba("+G.red+","+G.green+","+G.blue+");"):""};
_.nh=function(G,B){if(!G.includes("DATE_PLACEHOLDER"))return G;var F=new Date(0);F.setUTCSeconds(B);return G.replace("DATE_PLACEHOLDER",xcs(F))};
P0Q=function(G,B,F){return function(D){var u=G.command;u&&(iN(u,{form:{element:F}}),B([u],D))}};
B7s=function(G,B,F,D,u){return function(R){var N=GYc(G,B);N&&iN(N,{form:{element:F},commandController:D});u&&R.stopPropagation()}};
GYc=function(G,B){if(G.signInEndpoint&&!_.X("web_subscribe_sign_in_endpoint_killswitch"))return G.signInEndpoint;if(B){if(G.serviceEndpoints)return G.serviceEndpoints[1];if(G.onUnsubscribeEndpoints)return G.onUnsubscribeEndpoints[0]}else{if(G.serviceEndpoints)return G.serviceEndpoints[0];if(G.onSubscribeEndpoints)return G.onSubscribeEndpoints[0]}};
ijI=function(G,B){var F,D,u,R;B=B&&((F=G.unsubscribeAccessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label)||((u=G.subscribeAccessibility)==null?void 0:(R=u.accessibilityData)==null?void 0:R.label);return G.longSubscriberCountText?[B,_.zx(G.longSubscriberCountText)].filter(function(N){return N}).join(" "):B};
lR=function(G,B){return B||(G==null?0:G.isChannelDelegate)?"disabled":"active"};
FQs=function(G,B){var F;switch((F=G.style)==null?void 0:F.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:lR(G)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:lR(G)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:lR(G,!0)};case "OVERLAY":return B?{style:"overlay",type:"tonal",state:lR(G)}:{style:"overlay",type:"filled",state:lR(G)};default:return B?{style:"mono",type:"tonal",state:lR(G)}:{style:"mono",type:"filled",state:lR(G)}}};
_.UY=function(){for(var G=[],B=_.C(_.xS.apply(0,arguments)),F=B.next();!F.done;F=B.next())if(F=F.value)if(typeof F==="string")G.push(F);else{F=_.C(Object.entries(F));for(var D=F.next();!D.done;D=F.next()){var u=_.C(D.value);D=u.next().value;(u=u.next().value)&&G.push(D)}}return G.join(" ")};
Dfg=function(G){switch(G){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
uvJ=function(G){switch(G){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
R0L=function(G,B){var F=G.map(function(D){return D.toString()});
return _.gJ(function(D){if(F.includes(D.key)){B&&D.preventDefault();var u;(u=D.currentTarget)==null||u.click()}})};
_.qj=function(){return R0L(["Enter"])};
_.wul=function(){return R0L(["Enter"," "],!0)};
_.EY=function(G){if(G.composedPath)return G.composedPath();if(!G.__composedPath){for(var B=[],F=G.target;F;)B.push(F),F=F.parentNode;B.push(window);G.__composedPath=B}return G.__composedPath};
_.ht=function(G,B,F){G=_.C(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;if(D===B)break;for(var u=_.C(F),R=u.next();!R.done;R=u.next())if(R=R.value,D.tagName===R||D.role==="button"&&R==="BUTTON")return!0}return!1};
N7g=function(G,B){var F,D=(F=B.observer)!=null?F:_.te().resolve(fZ);if(G){F=C7J(G);var u=[];B.showOption&&u.push(D.observe(G,function(){B.visibilityCallback(!0,G)},B.showOption));
B.hideOption&&u.push(D.observe(G,function(){B.visibilityCallback(!1,G)},B.hideOption));
B.prescanOption&&B.prescanCallback&&u.push(D.observe(G,function(){B.prescanCallback()},B.prescanOption));
var R;F.visibilityMonitorKeys=((R=F.visibilityMonitorKeys)!=null?R:[]).concat(u)}};
C7J=function(G){var B;return(B=G.polymerController)!=null?B:G};
_.ax=function(G){return!!_.Kh(G)};
_.mR=function(G,B,F,D,u){return function(R){var N=QmJ();_.bC(function(){if(R){yrz(R,G(),u);var y=nxL(R,G(),B,F,D,N);_.VI(y)}},"lrewVd")}};
yrz=function(G,B,F){var D=loo(B),u=Uf6(B),R=D&&KTL,N=u&&h3o;(D||u)&&N7g(G,{visibilityCallback:function(y){var U=_.te().resolve(_.Wr);y&&D?(U.resolveCommand(D,{form:{element:F?G:void 0},disableClickTracking:!0}),D=loo(B)):!y&&u&&(U.resolveCommand(u,{form:{element:F?G:void 0},disableClickTracking:!0}),u=Uf6(B))},
showOption:R,hideOption:N})};
nxL=function(G,B,F,D,u,R){var N=new Map;if(B=_.Kh(B)){var y;G=(D==null?void 0:(y=D.onTap)==null?void 0:y.value)||G;F=qmo(B,G,F==null?void 0:F.onTap,u,R);G.addEventListener("click",F);N.set("click",F)}return function(){for(var U=_.C(N),q=U.next();!q.done;q=U.next()){var h=_.C(q.value);q=h.next().value;h=h.next().value;G.removeEventListener(q,h)}}};
_.Kh=function(G){var B;return(G=(B=_.Q(G,_.Xj))==null?void 0:B.onTap)&&_.X1(G)};
loo=function(G){var B;return(G=(B=_.Q(G,_.Xj))==null?void 0:B.onVisible)&&_.X1(G)};
Uf6=function(G){var B;return(G=(B=_.Q(G,_.Xj))==null?void 0:B.onHidden)&&_.X1(G)};
qmo=function(G,B,F,D,u){var R=function(y){_.te().resolve(_.Wr).resolveCommand(G,y)},N=function(y){D&&_.ht(_.EY(y),B,D)||R(y.target?{form:{element:y.target,
sourceData:G,mutationContext:u}}:void 0)};
F&&(N=function(y){F(y,R)});
return N};
Exg=function(G){switch(G){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}};
h06=function(G){var B=G.numAvatarsInCluster;switch(G.clusterSize){case "small":return B===2?22:18;case "40":return B===2?24:22;default:return B===2?24:20}};
KQM=function(G,B){return function(F){var D=Object.keys(B);_.bC(function(){if(G!=null&&G()){for(var u=_.C(D),R=u.next();!R.done;R=u.next())R=R.value,F.addEventListener(R,B[R]);_.VI(function(){for(var N=_.C(D),y=N.next();!y.done;y=N.next())y=y.value,F.removeEventListener(y,B[y])})}},"bXZGfe")}};
ao8=function(G){switch(h06(G)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
mfg=function(G){switch(G){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""}};
Xuo=function(G){switch(h06(G)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
QU6=function(G){switch(G){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""}};
jU8=function(G){switch(G){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}};
LQM=function(G){return G==="medium"||G==="48"||G==="large"||G==="extra-large"||G==="extra-extra-large"||G==="giant"};
rr6=function(G){return!!((G==null?0:G.includes(3))||(G==null?0:G.includes(5)))};
Hjg=function(G){var B=G.data;return{size:WQc(B.avatarImageSize),type:B.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:G.onTap,decorations:G.decorations||[],badgeText:G.badgeText,accessibilityText:G.accessibilityText,avatarButtonCustomClassName:G.avatarButtonCustomClassName,clusterLayoutConfig:G.clusterLayoutConfig}};
WQc=function(G){switch(G){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
kYo=function(G){switch(G){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Ojg=function(G){switch(G){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
e0I=function(G){var B=G.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",F,D=G.avatars&&G.avatars.length>0?(F=_.Q(G.avatars[0],_.QH))==null?void 0:F.avatarImageSize:"AVATAR_SIZE_UNKNOWN";F=kYo(D)||0;if(B){var u,R=(u=G.avatarClusterSize)!=null?u:"AVATAR_SIZE_M";B=kYo(R);var N,y,U=Math.min((y=(N=G.avatars)==null?void 0:N.length)!=null?y:0,4),q;return{avatars:((q=G.avatars)==null?void 0:q.slice(0,4))||[],avatarSizeInPx:F,avatarStackStyle:{width:B+"px",height:B+"px",position:"relative"},avatarStyle:function(K){var a=
h06({clusterSize:WQc(R),numAvatarsInCluster:U,avatarIndex:K});var m=kYo(R);U===3&&K===2?(m=(m-a)/2,m=(_.v5("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*m):m=void 0;return{position:"absolute",top:U===2&&K===1||U===3&&K===2||U===4&&K>=2?"0":void 0,bottom:U===2&&K===0||U>2&&K<2?"0":void 0,left:U===2&&K===1||U>2&&(K===1||K===3)?"0":void 0,right:U<=3&&K===0||U===4&&(K===0||K===2)?"0":void 0,transform:m?"translateX("+m+"px)":void 0,width:a+"px",height:a+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(K){return{clusterSize:WQc(G.avatarClusterSize),numAvatarsInCluster:U,avatarIndex:K}},
avatarButtonCustomClassName:void 0}}var h;return{avatars:((h=G.avatars)==null?void 0:h.slice())||[],avatarSizeInPx:F,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Ojg(D),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
$fg=function(G,B,F){return function(){iN(G,{form:{element:B},commandController:F})}};
z0L=function(G){switch(G){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
bjU=function(G){switch(G){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
Vrg=function(G){if("accessibilityText"in G)return G.accessibilityText||"";if("title"in G){var B,F,D;return((B=G.title)==null?void 0:(F=B.accessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label)||""}if("accessibility"in G){var u,R;return((u=G.accessibility)==null?void 0:(R=u.accessibilityData)==null?void 0:R.label)||""}return""};
vxl=function(G){return"inlinePlayerData"in G};
j3=function(G){return new oxz(G)};
MrL=function(G){switch(G){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"}};
puo=function(G){switch(G){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
YmI=function(G){switch(G){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}};
Ars=function(G){return function(B){G&&(G.thumbnailElRef=B.thumbnailElRef,G.thumbnail=B.thumbnail,G.thumbnailOverlays=B.thumbnailOverlays,G.thumbnailSize=B.thumbnailSize)}};
dfM=function(G){switch(G){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
crz=function(G){var B=_.C(_.qg(!1,void 0,"E6wDDe")),F=B.next().value,D=B.next().value;_.$f(function(){var u=G==null?void 0:G();if(u){var R=_.te().resolve(_.fH(JrS));if(R){var N={triggeringElement:u,onDwellTriggeredFn:function(){D(!0)},
onDwellEndFn:function(){D(!1)}};
R.registerElement(N);_.VI(function(){_.Lh(R,N)})}}});
return F};
T7s=function(G){if(G.querySelector("img")){var B=G.querySelector("img");B.addEventListener("error",function(){rIc(B.src).then(function(F){(F=_.sy(F).toString())?B.src=F:B.removeAttribute("src")}).catch(function(){B.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Ios=function(G,B,F){F?F(B):_.rJ(B,G.target?{form:{element:G.target}}:void 0)};
_.rC=function(G,B,F,D){return function(u){_.bC(function(){function R(h){h=h.composedPath();h=_.C(h);for(var K=h.next();!K.done;K=h.next()){K=K.value;if(K===u)break;if(K.className.indexOf("HostIsClickableAdComponent")>=0||K.tagName==="A".toString()||K.tagName==="BUTTON".toString())return!0}return!1}
var N=new Map,y,U=(y=G())==null?void 0:y.onTap;if(U){y=function(h){R(h)||Ios(h,U,B)};
var q=function(h){R(h)||h.key!=="Enter"||Ios(h,U,B)};
(F==null?0:F())||_.X("enable_web_home_top_landscape_image_layout_level_click")?(u.addEventListener("tap",y),N.set("tap",y)):(u.addEventListener("click",y),N.set("click",y));if(D==null?0:D())u.addEventListener("keydown",q),N.set("keydown",q)}_.VI(function(){for(var h=_.C(N),K=h.next();!K.done;K=h.next()){var a=_.C(K.value);K=a.next().value;a=a.next().value;u.removeEventListener(K,a)}})},"D7XqOc")}};
fog=function(G,B){var F,D=(F=G.interaction)==null?void 0:F.onTap;if(G=_.jF({elementsCommand:D,forceNewState:!0,skipOnClick:!0}))return G.onclick=function(u){G4g(u)&&(u.preventDefault(),D&&Ios(u,D,B))},Lk(G)?G:void 0};
trI=function(G){switch(G){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Zjz=function(G){switch(G){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
gxQ=function(G){switch(G){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"}};
_.SmJ=function(G){return _.X("rich_grid_enable_dynamic_offset")&&G?Math.max((G-_.sD("rich_grid_dynamic_offset_anchor_width",1300))/100*_.sD("rich_grid_dynamic_offset_offset_per_100",10),_.sD("rich_grid_dynamic_offset_lower_bound",-60)):0};
sUg=function(G,B){switch(B){case 4:return 16;case 1:return G<528?16:G<1024?32:48;case 2:return(G>=528?16:8)/2;case 3:return(G<528?16:G<1024?32:48)+(G>=528?16:8)/2;default:return 0}};
xfg=function(G){var B=G.originalContainerWidth;var F=G.sizing;var D=G.standardUnit;if(G.isCompactList&&B<528)return 1;switch(F){case "STANDARD":return D;case "COMPACT":return D+1;case "EXTRA_COMPACT":return _.X("web_responsive_extra_compact_2x")?D*2:_.X("web_responsive_current")?D===1?2:D%2===0?D/2*3:D+2:D<4?D*2:Math.ceil(D*3/2);case "MINI":return D>1?D*2:3;default:return D}};
GHQ=function(G){var B=G.containerWidth;var F=G.peek;var D=G.gutter;var u=G.numItems;G=G.ignoreMaxWidthLimit;B=F?Math.max((B-F-D*u)/u,0):Math.max((B-D*(u-1))/u,0);return G?B:Math.min(B,P7S)};
_.W_=function(G){var B=G.containerWidth;var F=G.hasPeek;var D=G.sizing;var u=G.marginSettings;var R=G.isCompactList;var N=G.enableFullBleedForSingleCol;var y=G.standardUnitMinWidth;D=D||"STANDARD";F=!!F;G=B>=528?16:8;var U=F?B>=528?48:24:0;u=sUg(B,u);var q=Math.max(B-u*2,0);y=_.X("kevlar_disable_min_width_override")?void 0:y;y=Math.min(Math.max(Math.floor((q-U+G)/((y!=null?y:Bhz)+_.SmJ(B)+G)),1),6);var h=(N=!!N&&y===1)||y===1&&D!=="STANDARD";F=F||h?q:Math.min(q,(P7S+G)*y-G);D=xfg({originalContainerWidth:B,
sizing:D,standardUnit:y,isCompactList:R});return{itemWidth:GHQ({containerWidth:F,peek:U,gutter:G,numItems:D,ignoreMaxWidthLimit:h}),gutter:G,maxContainerWidth:F,numItems:D,margin:N?0:u,contentMargin:sUg(B,1),typographyBump:GHQ({containerWidth:F,peek:U,gutter:G,numItems:y,ignoreMaxWidthLimit:h})>400&&!(R&&B<528),standardUnit:y}};
H_=function(G){switch(G){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.i6z=function(G){if(G){var B;if((B=G.responsiveContainerConfiguration)==null?0:B.responsiveSize)return H_(G.responsiveContainerConfiguration.responsiveSize);if(G.layoutSizing)switch(G.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"}}};
Fxc=function(G){if(G.fullbleed)return 1;switch(G.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
CK8=function(G,B,F,D,u,R,N,y,U){a:if(G===4&&D==="LOCKUP_CONTENT_TYPE_SOURCE")var q=1;else switch(G){case 3:q=1;break a;default:q=0}var h=DEl(G,D);a:switch(G){case 4:R=!!(R&&R<100);break a;default:R=!1}a:switch(G){case 3:case 4:var K=D==="LOCKUP_CONTENT_TYPE_CHANNEL"||D==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:K=!1}return{metadataOnThumbnail:h,isOverlay:y||h,isCard:uCg(D,N),sizing:B!=null?B:"STANDARD",typographyBump:F!=null?F:!1,isTiny:R,isCentered:K,isCollection:RQ8(D),arrangement:q,addMarginForFullbleed:G===
1&&D!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:G===1&&D==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:w4U(D,u,U),disableRounding:G===5||uCg(D,N)||G===1&&D==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:RQ8(D)?2:0,useLegacyTypography:!(U==null||!U.useLegacyTypography),useRichGridLegacyTypography:!(U==null||!U.useRichGridLegacyTypography)&&!_.X("web_enable_typography_bump"),compactMetadata:q===0&&D==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:U==null?void 0:U.onFocusEffect,titleMaxLines:D==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
RQ8=function(G){switch(G){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
uCg=function(G,B){if(B&&G==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(G){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
DEl=function(G,B){if(B==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(G){case 5:return!0;case 4:return!1;default:return!1}};
w4U=function(G,B,F){if(B&&(F==null||!F.alwaysRespectPodcastShowAspectRatio||G!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(G){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}};
_.kP=function(G){if(G){var B;return((B=_.te().resolve(_.fH(_.Rx)))==null?0:B())?G.darkThemeImage:G.image}};
n6z=function(G,B,F,D,u,R){if(u&&R&&B==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:u,height:R};if(!F)return{};u=F.size;F=F.allowFullWidth;if(B==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&F)return{fullWidth:!0};if(u===void 0)return{};switch(G){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:u,height:u};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:u,height:1/Nhc*u};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:u*
yzs,height:u};default:return(D==null?0:D.height)&&(D==null?0:D.width)?D.width/D.height>1?{maxWidth:u*yzs}:{maxWidth:u}:{maxWidth:u}}};
l_6=function(G){var B;return G&&((B=_.kP(G.themedImage))!=null?B:G.image)};
UES=function(G){var B;return G==null?void 0:(B=G.sources)==null?void 0:B[0]};
q36=function(G){switch(G){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.E6g=function(G){if(G)return"content-id-"+G};
hQl=function(G){switch(G.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"}}};
Kx8=function(G){var B=_.OY.currentPageSubTypeSelector(_.oy().getState())||"";return G?G+B:""};
a_o=function(G){switch(G){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
X46=function(G){var B=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],F=_.C(_.qg(void 0,void 0,"JrqNsb")),D=F.next().value,u=F.next().value,R=_.C(_.qg(void 0,void 0,"rWytse"));F=R.next().value;var N=R.next().value;R=_.C(_.qg(void 0,void 0,"DHRqxe"));var y=R.next().value,U=R.next().value;return{touchFeedbackEvents:{pointerUpEvent:D,pointerDownEvent:F,pointerLeaveEvent:y},touchFeedbackOnPointerUp:_.gJ(function(q){mES(_.EY(q),B)||(u(q),N(void 0),U(void 0))}),
touchFeedbackOnPointerDown:_.gJ(function(q){G==null||G(q);mES(_.EY(q),B)||(N(q),u(void 0),U(void 0))}),
touchFeedbackOnPointerLeave:_.gJ(function(q){mES(_.EY(q),B)||(U(q),N(void 0),u(void 0))})}};
mES=function(G,B){B=B===void 0?[]:B;B=[].concat(_.gi(B),["BUTTON".toString()]);G=_.C(G);for(var F=G.next();!F.done;F=G.next()){F=F.value;for(var D=_.C(B),u=D.next();!u.done;u=D.next())if(F.tagName===u.value)return!0}return!1};
Q0g=function(G){switch(G){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"}};
j0l=function(G){return G.scrollHeight-G.offsetHeight>1};
LxL=function(G,B){var F;return eF(G,((F=G.content)==null?void 0:F.length)||0,!B)};
H6Q=function(G,B,F,D,u,R){if(!B||rzS){var N;return eF(G,((N=G.content)==null?void 0:N.length)||0,!0)}B=D.value;if(!F.value||!B||!G.content)return G;F=0;D=G.content.length;N=0;Wxz||(Wxz=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var y=Wxz;for(u=u*R*y;F<=D;)R=Math.floor(F+(D-F)/2),y=eF(G,R)||G,B.firstChild&&(B.firstChild.textContent=y.content),B.scrollHeight>u?D=R-1:(N=R,F=R+1);return eF(G,N)};
kHU=function(G,B){var F,D;return(((F=G.content)==null?void 0:F.length)||0)>(((D=B.content)==null?void 0:D.length)||0)};
O6l=function(G,B,F,D,u,R){var N=_.W5("truncated-text-content"),y=_.W5("truncated-text-content"),U=_.W5("button"),q=_.W5("button"),h=_.W5("button"),K=_.te().resolve(_.e3),a=_.C(_.d3(function(){return LxL(G(),u())})),m=a.next().value,L=a.next().value;
a=_.C(_.d3(function(){return kHU(G(),m())}));
var W=a.next().value,e=a.next().value,b=null;_.bC(function(){function M(){if(N.value&&U.value&&h.value){var A=R()?G():H6Q(G(),u(),N,y,B(),F());L(A);requestAnimationFrame(function(){if(N.value&&U.value&&h.value){var Z=j0l(N.value)||kHU(G(),A);e(Z);if(!D()){var P=j0l(N.value),RI=F(),yo=N.value,hg=U.value,US=h.value,aI=K==="rtl";if(yo&&hg){var v6=hg.offsetLeft;aI&&(v6=yo.offsetWidth-hg.offsetWidth-hg.offsetLeft);if(Z){Z=hg.offsetWidth;hg=yo.offsetWidth;var Jg=P?hg-Z-70:v6-70;RI="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
RI+"rem,\n      #000 "+RI+"rem,\n      #000 100%), linear-gradient(\n      to "+((aI?"left":"right")+",\n      #000 0px,\n      #000 "+Jg+"px,\n      transparent "+(P?hg-Z:Jg+70)+"px)");yo.style.setProperty("-webkit-mask-image",RI);yo.style.setProperty("mask-image",RI)}else yo.style.setProperty("-webkit-mask-image",""),yo.style.setProperty("mask-image","");P?aI?(US.style.setProperty("left","0"),US.style.setProperty("right","unset")):(US.style.setProperty("left",""),US.style.setProperty("right","0")):
aI?(US.style.setProperty("left","unset"),US.style.setProperty("right",v6+"px")):(US.style.setProperty("left",v6+"px"),US.style.setProperty("right","unset"))}}}})}}
var t,T;(t=b)==null||(T=t.stop)==null||T.call(t);t=new _.s_(M,17);M();b=t},"KjwIxd");
_.$f(function(){L(LxL(G(),u()));e(kHU(G(),m()));var M=function(){Wxz=void 0;var T,A;(T=b)==null||(A=T.fire)==null||A.call(T)};
if(window.ResizeObserver){var t=new ResizeObserver(M);t.observe(N.value);_.VI(function(){var T,A;(T=b)==null||(A=T.stop)==null||A.call(T);t.disconnect()})}else window.addEventListener("resize",M),_.VI(function(){var T,A;
(T=b)==null||(A=T.stop)==null||A.call(T);window.removeEventListener("resize",M)})});
return{isTruncated:W,displayText:m,contentRef:N,hiddenRef:y,placeholderTruncationTextRef:U,hiddenTruncationTextRef:q,truncationTextRef:h}};
eQo=function(G){return{content:G!=null?G:""}};
$EQ=function(G){return _.X1(G.onTap)||_.Kh(G.rendererContext)};
zQg=function(G){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:G.overflowMenuA11yLabel,onTap:function(B){B.preventDefault();B.stopPropagation();if(G.overflowMenuOnTap){var F=_.jF({elementsCommand:G.overflowMenuOnTap,forceNewState:!0});if(F==null?0:F.onclick)F.onclick(B)}}}};
_.$P=function(G,B,F,D,u){D=D===void 0?{}:D;if(!u||Math.random()<5E-4){B=B||null;F=F||null;G=G instanceof Error?G:new _.Uf(G);if(G.args)for(var R=_.C(G.args),N=R.next();!N.done;N=R.next())N=N.value,N instanceof Object&&(D=Object.assign({},N,D));D.category="H5 Ads Control Flow";B&&(D.slot=B?"slot:  "+B.slotType:"");F&&(D.layout=F?"layout:  "+F.layoutType:"",D.layoutId=F.layoutId);u&&(D.known_error_aggressively_sampled=!0);G.args=[D];_.em(G)}};
_.b66=function(G,B){B=_.o9(B);_.T1(G,"yt-open-popup-action",[B,G])};
_.zP=function(G,B){_.b66(G,_.$9(B))};
v6g=function(G){if(!G)return"";if(Vus[G])return Vus[G];bR||(bR=_.G_("A"));bR.href!==G&&Go(bR,G);var B=bR.pathname;Vus[G]=B.startsWith("/")?B:"/"+B;return Vus[G]};
o6S=function(){var G=v6g(window.location.href);if(G==="/")return"home";if(G.startsWith("/results"))return"search";if(G.startsWith("/watch"))return"watch";if(G.startsWith("/shorts"))return"shorts";if(G.startsWith("/hashtag"))return"hashtag";if(G.startsWith("/create_channel"))return"create_channel";if(G.startsWith("/@")||G.startsWith("/user/")||G.startsWith("/channel/"))return"channel";if(G.startsWith("/experiments"))return"experiments";if(G.startsWith("/sponsor_channel"))return"sponsorship";if(G.startsWith("/select_site"))return"settings";
if(G.startsWith("/locate"))return"locate";if(G.startsWith("/redeem"))return"redeem";if(G.startsWith("/musicpremium")||G.startsWith("/premium")||G.startsWith("/red"))return"premium";if(G.startsWith("/paid_memberships"))return"paid_memberships";if(G.startsWith("/oops"))return"oops";if(G.startsWith("/clip"))return"clip";var B;return(VH==null?void 0:(B=VH.response)==null?void 0:B.page)==="404"?"404":G.startsWith("/feed/history")?"history":G.startsWith("/feed/library")?"library":G.startsWith("/feed/subscriptions")?
"subscriptions":G.startsWith("/feed/trending")?"trending":G.startsWith("/feed/news_destination")?"news":G.startsWith("/playlist")?"playlist":G.startsWith("/minor_moment")?"minor_moment":G.startsWith("/playable/")||G.match("^/playables/(?!saved).")?"mini_app":G.startsWith("/playables")?"playables":G.startsWith("/create/live/join")?"open_in_app":G.startsWith("/feed/explore")?"explore":"browse"};
_.ox=function(){var G=VH==null?void 0:VH.response,B=G==null?void 0:G.endpoint;if(!B)return(G==null?void 0:G.page)==="watch"?"watch":o6S();var F;G=(F=_.Q(B==null?void 0:B.commandMetadata,_.xy))==null?void 0:F.webPageType;F=!1;if(G&&!MuI.includes(G))switch(G){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 D;return((D=_.Q(B==null?void 0:B.commandMetadata,_.xy))==null?0:D.url)&&v6g(_.Q(B.commandMetadata,_.xy).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var u;return(B=(u=_.Q(B,_.x9))==null?void 0:u.browseId)?p4g[B]||"browse":"browse";default:F=!0}if(_.Q(B,_.v_)||_.Q(B,Y3I))return"sponsorship";u=v6g(window.location.href);if(u.startsWith("/experiments"))return"experiments";if(u.startsWith("/create_channel"))return"create_channel";
if(_.Q(B,_.MI)&&u.startsWith("/shorts"))return"shorts";if(_.Q(B,_.MI)&&u.startsWith("/watch"))return"watch";F&&(B=new _.Uf("Unsupported mWeb page type",{pathname:u,webPageType:G}),_.k2(B));return"browse"};
Mj=function(G,B,F,D){return G&&B?G!==F||B!==D?(_.$P(Error("Lh"),void 0,void 0,{"stored-slot":G,"stored-layout":B,"latest-slot":F,"latest-layout":D}),!1):!0:!1};
dEM=function(G,B,F){return G({targetId:B},function(D){return F.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},D,{contents:[F.continuationItems?_.Q(F.continuationItems[0],Azg):{}]}):F.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},D,{header:F.continuationItems?F.continuationItems[0]:void 0}):Object.assign({},D,{contents:F.continuationItems?F.continuationItems:[]})})};
JzI=function(G,B,F,D){if(B=B.trackingParams){var u,R=(u=F.getScreenLayer)==null?void 0:u.call(F);F=_.qW(R);u=_.Uw(R);if(F&&u){var N=_.yX(B);_.X("combine_ve_grafts")?G.graftServerVe(B,u,R):_.WT(F,u,N);D==null||D(N)}}};
Thg=function(G){var B;return((B=czl.get(G))==null?void 0:B.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
tuc=function(G,B){var F={type:B.slotType,controlFlowManagerLayer:I_S.get(B.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};B.slotEntryTrigger&&(F.entryTriggerType=B.slotEntryTrigger.triggerType);B.slotPhysicalPosition!==1&&(F.slotPhysicalPosition=B.slotPhysicalPosition);if(G){F.debugData={slotId:B.slotId};if(G=B.slotEntryTrigger)F.debugData.slotEntryTriggerData=f_l(G);G=B.slotFulfillmentTriggers;F.debugData.fulfillmentTriggerData=[];G=_.C(G);for(var D=G.next();!D.done;D=G.next())F.debugData.fulfillmentTriggerData.push(f_l(D.value));
B=B.slotExpirationTriggers;F.debugData.expirationTriggerData=[];B=_.C(B);for(G=B.next();!G.done;G=B.next())F.debugData.expirationTriggerData.push(f_l(G.value))}return F};
f_l=function(G,B){var F={type:G.triggerType};B!=null&&(F.category=B);G.triggeringSlotId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedSlotId=G.triggeringSlotId);G.triggeringLayoutId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedLayoutId=G.triggeringLayoutId);return F};
Z6o=function(G,B,F,D){B={opportunityType:B};G&&(D||F)&&(D=_.qK(D||[],function(u){return tuc(G,u)}),B.debugData=Object.assign({},F&&F.length>0?{associatedSlotId:F}:{},D.length>0?{slots:D}:{}));
return B};
g68=function(G){return ph(G.opportunityAdapterMap).concat(ph(G.triggerAdapterMap)).concat(ph(G.fulfillmentAdapterFactoryMap)).concat(ph(G.slotAdapterFactoryMap)).concat(ph(G.layoutRenderingAdapterFactoryMap))};
ph=function(G){var B=[];G=_.C(G.values());for(var F=G.next();!F.done;F=G.next())F=F.value,F.isAdsControlFlowEventListener&&B.push(F);return B};
At=function(G){var B=G.slotId,F=G.slotType,D=G.slotPhysicalPosition;return B===void 0?new YP("Cannot construct a slot due to the missing id.",{adSlotMetadata:G}):F===void 0?new YP("Cannot construct a slot due to the missing type.",{adSlotMetadata:G}):D===void 0?new YP("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:G}):{slotId:B,slotType:F,slotPhysicalPosition:D,managerLayer:"external",adSlotLoggingData:G.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new S3c}};
s0U=function(G){var B=G.layoutId,F=G.layoutType;return B===void 0?new dC("Cannot construct a layout due to the missing id.",{adLayoutMetadata:G}):F===void 0?new dC("Cannot construct a layout due to the missing type.",{adLayoutMetadata:G}):{layoutId:B,layoutType:F,managerLayer:"external",adLayoutLoggingData:G.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new S3c,interactionLoggingAdsClientData:{}}};
c_=function(G,B){if(B&&(xES(B.viewableCommand)||xES(B.endOfSessionCommand))){var F=PKM(B==null?void 0:B.viewableCommand);B=PKM(B==null?void 0:B.endOfSessionCommand);if(!Jt){var D=_.sD("custom_active_view_tos_timeout_ms");Jt=D>0&&D!==36E5?new Gw8(BM6(),D):new Gw8(BM6())}i5z(Jt,G);Fel(Jt,G,F,B)}};
TP=function(G){Jt&&i5z(Jt,G)};
BM6=function(){var G=_.v5("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
xES=function(G){G=_.X1(G);return!(G==null||!G.loggingUrls)&&G.loggingUrls.length>0};
PKM=function(G){if(!G)return[];var B=[],F,D;((D=(F=_.X1(G))==null?void 0:F.loggingUrls)!=null?D:[]).forEach(function(u){u.baseUrl&&B.push(u.baseUrl)});
return B};
Dxg=function(G){if(_.X("stop_av_measurement_on_detach"))return function(){TP(G)}};
ucI=function(G){return function(){_.X("stop_av_measurement_on_detach")&&TP(G)}};
Rlg=function(G){if(_.X("stop_av_measurement_on_detach"))return function(){TP(G)}};
wGc=function(G){return G.shorts.isDesktopSmallWidth};
_.Crs=function(G){return G.shorts.isShortsActive};
_.NM8=function(G){return G.shorts.isWatchWhileMode};
_.Ix=function(G){return G.shorts.isFullscreen};
_.fh=function(G){return G.shorts.isShortsPipActive};
nXI=function(G){var B,F;if(G=(B=_.Q(G.reelsAdCardButtoned,y$o))==null?void 0:(F=B.animatedRenderingConfig)==null?void 0:F.easeOutSeconds)return G+"s"};
Uxo=function(G,B,F){return _.n(function(D){return D.return(new Promise(function(u){var R=new Image;R.onload=function(){u(new lYz(G,B,F,R.naturalWidth,R.naturalHeight))};
R.src=F.toString()}))})};
qkU=function(G,B){return Math.round(G/1E-5)===Math.round(B/1E-5)};
EXz=function(G,B){return Math.round(G/1E-5)===Math.round(B/1E-5)};
hlg=function(G,B){return G.year===B.year&&G.month===B.month&&G.day===B.day};
KeI=function(G,B){return G.year!==B.year?G.year<B.year:G.month!==B.month?G.month<B.month:G.day<B.day};
mxo=function(G){return G.day===aYl(G.year,G.month)?G.month===11?{year:G.year+1,month:0,day:1}:{year:G.year,month:G.month+1,day:1}:{year:G.year,month:G.month,day:G.day+1}};
XG8=function(){var G=new Date,B={year:G.getFullYear(),month:G.getMonth(),day:G.getDate()};return{start:B,end:{year:G.getFullYear()+2,month:G.getMonth(),day:G.getDate()},selectedDate:mxo(B)}};
Qvg=function(G){return(new ew(2)).format(new Date(G.year,G.month,G.day))};
jvJ=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
Le8=function(G,B){G=(G+(Number(B.utcOffsetSec)+(new Date(G*1E3)).getTimezoneOffset()*60))*1E3;B=jvJ(new Date(G));return{date:B,secondsSinceMidnight:Math.floor((G-(new Date(B.year,B.month,B.day)).getTime())/1E3)}};
r$l=function(G,B){B=B.months.findIndex(function(F){return F.year===G.year&&F.month===G.month});
return B>=0?B:void 0};
Wec=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENTBOX")return!0}catch(B){return!1}return Wec(G.parentNode)};
tt=function(G){return G?!(G.tagName!=="A"||!G.href||!G.classList.contains("yt-simple-endpoint")):!1};
H5l=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
kwS=function(G,B,F){if(!G)return null;var D=tt(G);if(D&&F)return B=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+B);if(D&&!F)return document.createTextNode("");if(H5l(G))return F=G.alt,G=G.dataset.emojiId,!G&&B&&(B=_.ZM(B,F))&&B.isCustomEmoji&&(G=B.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(F);D=G.cloneNode(!1);for(var u=0;u<G.childNodes.length;++u){var R=kwS(G.childNodes[u],B,F);R&&D.appendChild(R)}return D};
gC=function(G){return G?tt(G)?G:gC(G.lastChild):null};
O5Q=function(G){return G?tt(G)?G:O5Q(G.firstChild):null};
elo=function(G){if(!G)return null;for(var B=G.previousSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.previousSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.previousSibling;else break;(B=gC(B))?G=B:G=(G=G.parentNode)?gC(G.previousElementSibling):null;return G};
$xz=function(G){if(!G)return null;for(var B=G.nextSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.nextSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.nextSibling;else break;return(B=O5Q(B))?B:$xz(G.parentNode)};
zlU=function(G){var B=_.Fh(),F=B.JSC$11664_getStartNode();if(!Wec(F.parentNode))return null;B=B.JSC$11664_getStartOffset();if(F.nodeType===Node.TEXT_NODE){var D=_.mG(F,tt);if(D){if(G&&B===0||!G&&B===F.length)return D}else{if(G&&B===F.length)return!F||F.nodeName==="BR"||F.nextElementSibling&&_.S3(F.nextElementSibling,"display")==="block"?null:O5Q(F.nextElementSibling);if(!G&&B===0)return F?gC(F.previousElementSibling):null}}if(F.nodeType===Node.ELEMENT_NODE)if(G){if(0<=B&&B<F.childNodes.length)return O5Q(F.childNodes[B])}else if(0<
B&&B<=F.childNodes.length)return gC(F.childNodes[B-1]);return null};
b5Q=function(G,B,F){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(F){var D=elo(G);if(D&&!/^\s+\S/.test(G.wholeText.substr(0,B)))return D}else if((D=$xz(G))&&!/\S\s+/.test(G.wholeText.substr(B,G.wholeText.length)))return D;return G.nodeType===Node.ELEMENT_NODE?F?elo(G.childNodes[B]):$xz(G.childNodes[B]):b5Q(G.parentNode,B,F)};
VSz=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var B="";for(G=G.firstChild;G;G=G.nextSibling)B+=VSz(G);return B;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
sY=function(G,B){return G.year===B.year&&G.month===B.month&&G.day===B.day};
xP=function(G,B){return G.year!==B.year?G.year<B.year:G.month!==B.month?G.month<B.month:G.day<B.day};
vXo=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
oXz=function(G){var B=vjS;B=B===void 0?vjS:B;B(new Date(G.year,G.month,G.day))};
P_=function(G){return vXo(new Date(Number(G.seconds)*1E3))};
MSJ=function(G){return G.year!==void 0&&G.month!==void 0&&G.day!==void 0};
pGc=function(G){return G.start!==void 0&&G.end!==void 0};
Ykg=function(G){return pGc(G)?G.start:G};
A$L=function(G){return pGc(G)?G.end:void 0};
J$8=function(G,B){for(var F=[],D=new Date(G.start.year,G.start.month);D.getFullYear()<G.end.year||D.getFullYear()===G.end.year&&D.getMonth()<=G.end.month;){var u=F,R=u.push,N=D.getFullYear(),y=D.getMonth(),U=G,q=B,h=void 0,K=[],a=Object.freeze({extraCssClass:"invisible"}),m=new Date(N,y),L=vXo(m);m=m.getDay();for(var W=vXo(new Date);L.month===y;){m!==dxL&&h||(h=Array.from({length:7}).fill(a),K.push(h));var e={date:{year:N,month:y,day:L.day},extraCssClass:"",debugClass:""};e.extraCssClass=q(e.date,
L,W,U).trim();h[(m-dxL+7)%7]=e;L=L.day===aYl(L.year,L.month)?L.month===11?{year:L.year+1,month:0,day:1}:{year:L.year,month:L.month+1,day:1}:{year:L.year,month:L.month,day:L.day+1};m=(m+1)%7}R.call(u,{weeks:K,monthLabel:Gf.SHORTMONTHS[y]+" "+N,year:N,month:y,monthLabelExtraCssClass:K[0][2]===a?"shift-down-label":""});D.setMonth(D.getMonth()+1)}return F};
c$Q=function(G,B){B=B.months.findIndex(function(F){return F.year===G.year&&F.month===G.month});
return B>=0?B:void 0};
IYg=function(G,B){a:{var F=F===void 0?[2,3]:F;F=_.C(F);for(var D=F.next();!D.done;D=F.next()){var u=new Date;if((new TMI(D.value)).parse(B,u,{validate:!0})){u.setHours(0,0,0,0);B=u;break a}}B=null}if(!B)return{isValid:!1,value:void 0};B=vXo(B);F=G.end;return xP(B,G.start)||xP(F,B)?{isValid:!1,value:void 0}:{isValid:!0,value:B}};
SkQ=function(G){var B=fYz;B=B===void 0?tSM:B;var F=G.columnsToShow||[],D=Z5I(G.columnDimensions,G.columnsToShow,G.leftFloatingColumns,B);return F.map(function(u,R){var N=G.columns[u];if(N===void 0)throw Error("Rh");var y=D?D[R]:"";var U=G.getCustomTooltip?G.getCustomTooltip(u,N.headerTooltipParagraphs):N.headerTooltipParagraphs;var q=gX8(G,u);return{type:u,index:R,style:y,classes:q,headerName:N.headerName||"",headerIcon:N.headerIcon,headerTooltipParagraphs:U||[],headerTooltipHelpContext:N.headerTooltipHelpContext,
sortOrders:N.sortOrders||[],selectionState:N.isSelectionCheckbox?G.selectionState:void 0}})};
gX8=function(G,B){var F=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],D=G.columns[B];if(D===void 0)return"";var u=F.includes("DEFAULTS")&&D.cssClass?[D.cssClass]:[];if(F.includes("SORTING")){D.sortOrders&&D.sortOrders.length&&u.push("sortable");if(G.sorting&&G.sorting.columnType===B)a:switch(G.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var R="column-sorted";break a;default:R=""}else R="";R&&u.push(R)}F.includes("FLOATING")&&(B=G.columnsToShow.indexOf(B),G.leftFloatingColumns&&B<G.leftFloatingColumns&&
u.push("floating-column"),G.leftFloatingColumns&&B===G.leftFloatingColumns-1&&u.push("last-floating-column"));F.includes("RIGHT_ALIGN")&&D.rightAlignHeader&&u.push("right-align");return u.filter(function(N){return N}).join(" ")};
Z5I=function(G,B,F,D){F=F===void 0?0:F;D=D===void 0?tSM:D;if(G){var u=[],R=0;svM(G,B,D).forEach(function(N,y){var U="min-width:"+N.minWidth+"px;padding-left:"+N.paddingLeft+"px;padding-right:"+N.paddingRight+"px;flex:"+N.flexGrow+" 0 "+N.minWidth+"px;";N.maxWidth!==Infinity&&(U=[U,"max-width:"+N.maxWidth+"px;"].join(""));R>0&&y<F&&(U=[U,"left:"+R+"px;"].join(""));u.push(U);R+=N.minWidth+N.paddingLeft+N.paddingRight});
return u}};
svM=function(G,B,F){F=F===void 0?tSM:F;return B.map(function(D,u){D=G&&G[D]||{};var R=u===0?F.paddingLeftFirstColumn:F.padding;D.paddingLeft!==void 0&&(R=D.paddingLeft);u=u===B.length-1?F.paddingRightLastColumn:F.padding;D.paddingRight!==void 0&&(u=D.paddingRight);return{paddingLeft:R,paddingRight:u,minWidth:D.minWidth!==void 0?D.minWidth:F.minWidth,maxWidth:D.maxWidth!==void 0?D.maxWidth:F.maxWidth,flexGrow:D.flexGrow!==void 0?D.flexGrow:F.flexGrow}})};
xxo=function(G){var B=G.reduce(function(D,u){var R=u.columnId,N={};u.headerText&&(N.headerName=_.zx(u.headerText));u.rightAlignHeader&&(N.rightAlignHeader=u.rightAlignHeader);var y;if((y=u.headerIcon)==null?0:y.iconType)N.headerIcon=_.xT(u.headerIcon.iconType);D[R]=N;return D},{}),F=G.filter(function(D){return!D.hideColumn}).map(function(D){return D.columnId});
G=G.filter(function(D){return!!D.dimensions}).reduce(function(D,u){D[u.columnId]=u.dimensions;
return D},{});
return{columns:B,columnsToShow:F,columnDimensions:G}};
_.Prg=function(G){return G?G.simpleText?G.simpleText:G.runs?G.runs.map(function(B){return B.text}).join(""):"":""};
utM=function(G){var B=G.data;var F=G.onTap;var D=G.isSelected;var u=G.onFocusIn;if(!B)return{};G=GeM(B);D===void 0&&(D=B==null?void 0:B.isSelected);var R;return{text:BV8(B,G),startIcon:(R=B.icon)==null?void 0:R.iconType,state:D?0:2,type:0,style:ib8(B),onTap:FB8(B,F),accessibilityLabel:D4g(B,G),onFocusIn:function(){return u==null?void 0:u()}}};
BV8=function(G,B){if(!B)return G.text?_.Prg(G.text):void 0};
ib8=function(G){var B;switch((B=G.style)==null?void 0:B.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
FB8=function(G,B){return function(F){B==null||B(F,G)}};
GeM=function(G){G=G.style&&G.style.styleType;return!rzS&&G==="STYLE_EXPLORE_LAUNCHER_CHIP"};
D4g=function(G,B){if(B){var F,D,u;return(u=(F=G.accessibilityData)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label)!=null?u:BV8(G,!1)}};
Rng=function(){var G;return[function(B,F,D){return _.cZ(G,B,F,D)},
function(B){G=B}]};
wF6=function(G,B){return _.g5(G.entities,"chipEntity",B)};
NVc=function(G,B,F,D){return function(){var u=CWg.has(G.displayType)&&G.selected,R=u&&G.deselectCommand?G.deselectCommand:G.tapCommand;!R||u&&D||_.rJ(R,{form:{element:B==null?void 0:B.value}});F==null||F()}};
yGI=function(G,B){B=B==null?void 0:B.stepStates;if(G&&B){var F,D;return(F=B[G])==null?void 0:(D=F.userQuery)==null?void 0:D.userQuery}};
B0=function(G){return{signalAction:{signal:G}}};
U4l=function(){return _.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?nco:_.lUU};
qbI=function(G,B){G=G===void 0?"SOFT_RELOAD_PAGE":G;B=B===void 0?49504:B;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.pR(_.G7("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:B}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:G}}]}}}};
EcJ=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.pR(_.G7("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:U4l()}};
hn8=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.pR(_.G7("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:U4l()}};
KBJ=function(G,B){var F=_.pR(_.G7("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),D=_.pR(_.G7("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),u={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.pR(_.G7("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};u.serviceEndpoint=G?G:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[B0("SOFT_RELOAD_PAGE")]}};return{title:F,bodyText:D,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:u},
style:{value:B!=null?B:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
m46=function(G){G=G===void 0?{}:G;return{title:_.pR(G.localizedZeroStateTitleText===void 0?"":G.localizedZeroStateTitleText),bodyText:_.pR(G.localizedZeroStateMessage===void 0?"":G.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.pR(G.localizedZeroStateButtonText===void 0?"":G.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[aUJ]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
QXg=function(G){G=G===void 0?{}:G;return{title:_.pR(G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText),titleLength:19,subtitle:_.pR(G.localizedOptInMessage===void 0?"":G.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.pR(_.G7("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:_.pR(_.G7("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:[XFQ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
rGM=function(G,B){var F=B=B===void 0?{}:B;B=F.offlineTitleText===void 0?"":F.offlineTitleText;var D=F.offlineDescriptionText===void 0?"":F.offlineDescriptionText,u=F.formattedSupplementalText,R=F.actionButtonText===void 0?"":F.actionButtonText,N=F.titleText===void 0?"":F.titleText;F=F.descriptionText===void 0?"":F.descriptionText;var y={title:R,accessibilityText:R,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};G||(N=B,F=D,y={title:R,accessibilityText:R,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.pR(N),titleLength:N.length,overrideTitleMaxFontSize:30,subtitle:_.pR(F),supplementalText:u,primaryButton:{buttonViewModel:y},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[jXI]},darkTileImage:{thumbnails:[LB8]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.kel=function(G,B,F,D,u,R,N,y,U,q,h){u=u===void 0?!1:u;R=R===void 0?!1:R;N=N===void 0?0:N;y=y===void 0?-Infinity:y;U=U===void 0?!1:U;q=q===void 0?!1:q;h=h===void 0?!1:h;var K=[],a=_.pR(_.G7("SMART_DOWNLOADS",void 0,"Smart downloads")),m=_.pR(WBo(N,y,G.length));y=N=void 0;q?N={statementBannerRenderer:rGM(h,D)}:u?G.length>0?y=Hbg(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.X("kevlar_manual_downloads_above"),a,m):U?y={alertBannerViewModel:{heading:{content:F.localizedOptInBannerTitleText===
void 0?"":F.localizedOptInBannerTitleText},body:{content:F.localizedPromptMessage===void 0?"":F.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.G7("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.G7("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:_.hos}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:R&&(y={backgroundPromoRenderer:{bodyText:_.pR(_.G7("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"}}}):
R&&(y={alertBannerViewModel:{heading:{content:F.localizedOptInBannerTitleText===void 0?"":F.localizedOptInBannerTitleText},body:{content:F.localizedOptInMessage===void 0?"":F.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.G7("TURN_ON",void 0,"Turn on"),accessibilityText:_.G7("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}}}}}});F=_.pR(_.G7("YOUR_DOWNLOADS",void 0,"Your downloads"));D=void 0;B.length>0?(D=void 0,_.X("kevlar_display_downloads_numbers")&&(D=_.pR(_.BT("VIDEO_COUNT",B.length))),D=Hbg(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,F,D)):u||G.length||
q||(D={backgroundPromoRenderer:{bodyText:_.pR(_.G7("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}}}});N?K.push({richSectionRenderer:{content:N}}):y&&!_.X("kevlar_manual_downloads_above")&&K.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
D&&K.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:51721}}}});y&&_.X("kevlar_manual_downloads_above")&&K.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(B.length>0||u&&G.length>0&&!q)&&K.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.pR(_.G7("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:K}};
_.eng=function(G){return Obc(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.$4L=function(G){return Obc(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Obc=function(G,B){var F=[];G=Hbg(G,B,!0);F.push({richSectionRenderer:{content:G}});return{contents:F}};
Hbg=function(G,B,F,D,u){F=F===void 0?!1:F;var R="RESPONSIVE_SIZE_STANDARD";_.X("kevlar_standard_rich_grid_on_offline_home")&&B==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?R="RESPONSIVE_SIZE_STANDARD":_.X("kevlar_modern_downloads_compact")?R="RESPONSIVE_SIZE_COMPACT":_.X("kevlar_modern_downloads_extra_compact")?R="RESPONSIVE_SIZE_EXTRA_COMPACT":_.X("kevlar_modern_downloads_tiny")&&(R="RESPONSIVE_SIZE_TINY");G={isExpanded:F,contents:iv(G),entitySelectorType:B,responsiveContainerConfiguration:{responsiveSize:R}};
D&&(G.title=D);u&&(G.subtitle=u);F||(_.X("kevlar_smart_downloads_show_more_button")?(G.showMoreButton={buttonRenderer:{accessibility:{label:_.G7("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.pR(_.G7("SHOW_MORE",void 0,"Show more"))}},G.showLessButton={buttonRenderer:{accessibility:{label:_.G7("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.pR(_.G7("SHOW_LESS",void 0,"Show less"))}}):(G.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.G7("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}}}},G.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.G7("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}}}},G.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.G7("VIEW_ALL",void 0,"View all"),accessibilityText:_.G7("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:_.og("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:G}};
iv=function(G){var B=[];G=_.C(G);for(var F=G.next();!F.done;F=G.next())if(F=F.value,Pxg(F)){var D=B,u=D.push;var R=void 0;if(F==null?0:(R=F.videoEntity)==null?0:R.videoId){R=jw(_.VU().getState(),F.videoEntity.videoId);var N=_.VU().getState();var y=_.Z4(F.videoEntity.videoId,"mainVideoEntity");N=!!_.ND(N.entities)[y];N={videoId:F.videoEntity.videoId,title:YI(F.videoEntity.title),shortBylineText:YI(F.channelEntity.title),thumbnail:F.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:N&&_.X("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:ezS(F.videoEntity.videoId,R,F.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.G7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};F.videoEntity.lengthSeconds&&(N.thumbnailOverlays=PII(F.videoEntity.lengthSeconds,R));N.isWatched=R>0;_.X("kevlar_modern_downloads_page")&&(N.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:F.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.G7("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},N.badges=void 0);F=N}else F={};u.call(D,{richItemRenderer:{content:{videoRenderer:F},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(xRg(F)){D=B;u=D.push;var U=y=R=void 0,q=void 0,h=void 0,K=void 0,a=void 0,m=void 0,L=void 0,W=void 0,e=void 0,b=void 0;N=F.mainPlaylistEntity.playlistId;var M=F==null?void 0:(b=F.mainPlaylistEntity)==null?void 0:(e=b.thumbnailStyleData)==null?void 0:(W=e[0])==null?void 0:(L=W.value)==null?void 0:(m=L.collageThumbnail)==
null?void 0:m.coverThumbnail;if(N&&M){m=$uz(N);!_.X("enable_offline_playlist_page")&&(F==null?0:(a=F.mainPlaylistEntity)==null?0:a.videos)&&(a=F==null?void 0:(K=F.mainPlaylistEntity)==null?void 0:(h=K.videos)==null?void 0:h[0],h=_.cT(a).entityId,h=JSON.parse(h).videoId,h!==void 0&&(m=jw(_.VU().getState(),h),m=_.Ma(h,N,void 0,void 0,m)));h=[];if(F==null?0:(q=F.mainPlaylistEntity)==null?0:(U=q.videos)==null?0:U.length)U=Vh8(),q=Object,h=q.assign,K=(K=bLg(F==null?void 0:F.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.pR(K),icon:{iconType:"PLAYLISTS"}}}:void 0,h=[U,h.call(q,{},(y=K)!=null?y:{})];F={playlistId:N,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:M}},navigationEndpoint:m,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:h,title:YI(F.mainPlaylistEntity.title),shortBylineText:YI(F==null?void 0:(R=F.channelEntity)==null?void 0:R.title),badges:[{metadataBadgeRenderer:{label:_.G7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.X("kevlar_modern_downloads_page")&&(F.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:znQ,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:N,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.G7("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},F.badges=void 0)}else F=void 0;u.call(D,{richItemRenderer:{content:{playlistRenderer:F},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return B};
WBo=function(G,B,F){G=G?R2S(G):"";B!==void 0&&isFinite(B)?B===0?B=_.G7("UPDATING",void 0,"Updating..."):(B=x2S(new Date(B),new Date),B=_.G7("UPDATED_TIME",{relative_time:B},"Updated "+B)):B="";var D="";G&&B&&(D=" \u2022 ");if(F&&_.X("kevlar_display_downloads_numbers")){F=_.BT("VIDEO_COUNT",F);if(G||B)D=" \u2022 ";return F+D+G+D+B}return G+D+B};
bb6=function(G){return Tlg(G.entities).length};
_.VBo=function(G,B,F){var D=H_(G.responsiveSize),u;G=!((u=G.responsiveMap)==null||!u.some(function(R){return R.containerSize==="CONTAINER_SIZE_NARROW"&&R.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:F,containerWidth:B,sizing:D,enableFullBleedForSingleCol:!1,isCompactList:D==="COMPACT"&&G}};
vcg=function(G,B){return _.g5(G.entities,"votingEntity",B)};
Fp=function(G){if(G){var B;return((B=_.te().resolve(_.fH(_.Rx)))==null?0:B())?G.darkTheme:G.lightTheme}};
oc8=function(G,B){if(G.simpleText)return Object.assign({},G,{simpleText:kN(G.simpleText,B)});if(!G.runs)return G;for(var F=Object.assign({},G,{runs:[]}),D=0,u=_.C(G.runs),R=u.next();!R.done;R=u.next())if(R=R.value,R.text)if(D+R.text.length<=B)F.runs.push(R),D+=R.text.length;else return F.runs.push(Object.assign({},R,{text:kN(R.text,B-D)})),F;return G};
MBS=function(G,B){return _.g5(G.entities,"chipBarStateEntity",B)};
pFg=function(G){switch(G){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
YbM=function(G,B){return{triggeringElement:G,onDwellTriggeredFn:function(){var F={triggeringElement:G,loadVideoPreviewEventData:B},D=document.querySelector(".video-preview");D&&D.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:F}))},
onDwellEndFn:function(){var F=document.querySelector(".video-preview");F&&F.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
AGz=function(G){var B=_.te().resolve(_.fH(JrS));return function(F){var D=function(){var u=G(F);return B&&u?YbM(F,u):null};
_.bC(function(){var u=D();B&&u&&Promise.resolve().then(function(){B.registerElement(u)});
_.VI(function(){B&&u&&Promise.resolve().then(function(){_.Lh(B,u)})})},"p0smCb")}};
JGl=function(G){var B=G.dataset.resizeObserverId;if(B)return B;B=""+d4z++;return G.dataset.resizeObserverId=B};
cGJ=function(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next()){B=B.value;var F=JGl(B.target),D=Object.assign({},{target:B.target},Db.get(F));if(D!=null&&D.contentRect?D.contentRect.width!==B.contentRect.width||D.contentRect.height!==B.contentRect.height:1)for(Db.set(F,{borderBoxSize:B.borderBoxSize,contentBoxSize:B.contentBoxSize,contentRect:B.contentRect,devicePixelContentBoxSize:B.devicePixelContentBoxSize}),F=_.C(uv.get(F)||[]),D=F.next();!D.done;D=F.next())D=D.value,D(B)}};
IUS=function(G,B){var F=JGl(G);uv.has(F)||uv.set(F,new Set);uv.get(F).add(B);Db.has(F)&&B(Object.assign({},{target:G},Db.get(F)));RG||(RG=new TVz(cGJ));B=RG;B.observe(G)};
fUs=function(G,B){var F=JGl(G);uv.has(F)&&(uv.get(F).delete(B),uv.get(F).size===0&&(uv.delete(F),Db.delete(F),RG.unobserve(G),delete G.dataset.resizeObserverId));uv.size===0&&RG&&(RG.disconnect(),RG=void 0)};
Zbz=function(G,B){var F=_.te().resolve(fZ);return tBU.map(function(D){return F.observe(G,B,D)})};
gcQ=function(G){var B=_.te().resolve(fZ);G.forEach(function(F){B.unobserveByKey(F)})};
_.wN=function(G){var B=_.C(NSJ()),F=B.next().value,D=B.next().value,u=Object.assign({},Sbc,G),R=sXS(function(N){var y=N.contentRect.height;if((N=N.contentRect.width)||y||u.canHaveZeroSize)F.width()===N&&F.height()===y||D(F,{height:y,width:N})},u.throttleMs);
return[F,function(N){var y=[];u.useVisibilityObserver&&(y=Zbz(N,function(U,q){requestAnimationFrame(function(){q==="visible"?IUS(N,R):fUs(N,R)})}));
y.length||IUS(N,R);return function(){y.length&&(gcQ(y),y.length=0);fUs(N,R)}}]};
_.Cz=function(G,B){var F=_.C(_.qg(!1,void 0,"YLPUhc")),D=F.next().value,u=F.next().value,R=!1,N;return function(y){if(N)return _.l(N,Object.assign({},y));if(!R){R=!0;var U=J4U;U==null||U.addDep();G().then(function(q){N=q;u(!0);U==null||U.removeDep()}).catch(function(q){U==null||U.removeDep();
if(B==null?0:B.debugName){var h,K=new _.Uf("failed to load chunk",B.debugName,q==null?void 0:(h=q.toString)==null?void 0:h.call(q));_.k2(K)}else _.k2(q);throw q;})}return _.l(_.E,{cond:D,
then:function(){return _.l(N,Object.assign({},y))}})}};
PWc=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("dpUCFd"),2);G=_.x4o;return B.return(G)})};
BHz=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("U9vrqd"),2);G=Grc;return B.return(G)})};
Fyz=function(G,B,F,D,u){G=B?G.switchOffCommand:G.switchOnCommand;if(D&&u)imU(G,F,u);else{var R,N;(R=_.jF({elementsCommand:G}))==null||(N=R.onclick)==null||N.call(R,F)}};
imU=function(G,B,F){G=_.jF({elementsCommand:G,additionalCommandArgs:{commandController:{onSuccess:function(){F(!1)},
onServerError:function(){F(!1)}}}});
if(G==null?0:G.onclick)G.onclick(B),F(!0)};
uVU=function(G){if(G)return _.Q(G,DAc)};
R8I=function(G){if(G)switch(G){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
_.Nk=function(G){var B=_.X(G);JL["counterfactuals."+G]=String(B);return B};
wnM=function(G,B){if(!((G==null?0:G.entitySelectorType)&&(G==null?0:G.entityKey)))return{};switch(G.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var F,D=(F=_.sR())==null?void 0:F.getOption("captions","track"),u,R=typeof(D==null?void 0:D.translationLanguage)==="object"&&((u=D.translationLanguage)==null?void 0:u.languageName)||(D==null?void 0:D.displayName)||"";return{data:Object.assign({},!!R&&{selectionText:{content:R}},!!R&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof D==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.Nk("web_shorts_audio_track_picker")){var N;u=((N=_.sR())==null?void 0:N.getAudioTrack())||void 0;F=u==null?void 0:(R=u.getLanguageInfo())==null?void 0:R.getName();u={data:Object.assign({},{selectionText:{content:F}},F&&!(u==null?0:(D=u.getLanguageInfo())==null?0:D.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else u={};return u;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return D=
G!=null&&G.entityKey?(D=_.Ze(B,G.entityKey))?{isHidden:(D==null?void 0:D.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},D;default:return{}}};
COo=function(G,B){return function(F){var D=function(u){_.ht(_.EY(u),F,B)||G(u)};
F.addEventListener("click",D);return function(){F.removeEventListener("click",D)}}};
_.NHI=function(G){return function(){return _.Q(G(),_.yL)}};
yKI=function(G){switch(G){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
ngz=function(G){return yKI(G==null?void 0:G.all)};
li6=function(G){var B={};(G=G==null?void 0:G.padding)&&(B.padding=yKI(G.vertical)+"px "+yKI(G.horizontal)+"px");return B};
UAz=function(G){switch(G){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
qN6=function(G){switch(G){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
Egs=function(G){switch(G){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
h8J=function(G,B){if(B)return{containerStyles:li6(B),itemStyles:function(F,D){var u={flex:"1"},R=B==null?void 0:B.flexDirection;b:switch(R){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":F=!!F;break b;default:F=!!D}F||(F=_.v5("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",R==="FLEX_DIRECTION_ROW"||R==="FLEX_DIRECTION_ROW_REVERSE"?(R=ngz(B==null?void 0:B.gap)+"px",F?u["margin-left"]=R:u["margin-right"]=R):u["margin-bottom"]=ngz(B==null?void 0:B.gap)+"px",u.flex=
"1");return u},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(B==null?void 0:B.flexDirection)==="FLEX_DIRECTION_ROW"||(B==null?void 0:B.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
KyU=function(G){return G<528?"CONTAINER_SIZE_NARROW":G<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
aiJ=function(G,B){G=_.C(G.responsiveMap||[]);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.containerSize===B)return F.containerType};
_.mAg=function(G,B){if(B){var F=B.responsiveSize;G=KyU(G);var D=aiJ(B,G);if(D&&F){a:{if(D==="CONTAINER_TYPE_VERTICAL_LIST")if(F==="RESPONSIVE_SIZE_STANDARD"){if(G!=="CONTAINER_SIZE_NARROW"){var u="50%";break a}}else{u=G==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}u=void 0}return{responsiveSize:F,containerSize:G,containerType:D,force16By9ThumbnailAspectRatio:!B.enableContentSpecificAspectRatio,contentPreviewWidth:u,fullbleed:(D==="CONTAINER_TYPE_VERTICAL_LIST"||D==="CONTAINER_TYPE_GRID")&&G===
"CONTAINER_SIZE_NARROW"&&!1}}}};
XnI=function(G,B){var F={};switch(B){case "CONTAINER_TYPE_VERTICAL_LIST":F["flex-direction"]="column";F.padding="0 "+G.margin+"px";break;case "CONTAINER_TYPE_GRID":F["flex-direction"]="row";F.flex="none";F["flex-wrap"]="wrap";F.width=G.maxContainerWidth?G.maxContainerWidth+G.gutter+"px":void 0;F.padding="0 "+(G.margin-G.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":F["flex-direction"]="row",F.flex="none",F["overflow-x"]="auto",F.width=G.maxContainerWidth?G.maxContainerWidth+"px":void 0,
F.padding="0 "+G.margin+"px"}return F};
QZz=function(G,B){if(B){var F=aiJ(B,KyU(G));a:switch(F){case "CONTAINER_TYPE_GRID":var D=3;break a;default:D=1}D=_.VBo(B,G,D);var u=_.W_(D);return{containerLayoutConfig:_.mAg(G,B),containerStyles:XnI(u,F),itemStyles:function(R,N){R={};switch(F){case "CONTAINER_TYPE_VERTICAL_LIST":N||(R["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":R.width=u.itemWidth+"px";R["margin-right"]=u.gutter/2+"px";R["margin-left"]=u.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":R.width=u.itemWidth+
"px",R.flex="none",N||(R["margin-right"]=u.gutter+"px")}return R}}}};
Hmg=function(G,B,F){if(B)return[jZo];switch(G){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[nz];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return F?[nz]:[Lyg,nz];case "TRANSFER_STATE_PAUSED_BY_USER":return[rKU,nz];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Wyo,nz];default:return[jZo]}};
kr6=function(G,B,F,D){return Hmg(G,B,D).map(function(u){var R=u.text,N=u.iconType,y=u.videoAction;u=u.playlistAction;R=R?{content:R}:void 0;N=N&&{sources:[{clientResource:{imageName:N}}]};var U=(0,_.UK.unsafeClone)(F);if(U){var q=_.Q(U,_.GP),h=_.Q(U,_.B_);q&&y?q.action=y:h&&u&&(h.action=u)}return{title:R,leadingImage:N,rendererContext:U&&{commandContext:{onTap:{innertubeCommand:U}}}}})};
OmM=function(G){G=_.Kh(G.rendererContext);var B;return(B=_.Q(G,_.B_))==null?void 0:B.playlistId};
e8S=function(G){var B;return(B=G.listItems)==null?void 0:B.some(function(F){var D;return _.ax((D=_.Q(F,_.Nj))==null?void 0:D.rendererContext)})};
$AQ=function(G,B){var F;(F=G[(B+1)%G.length])==null||F.focus()};
z8M=function(G,B){var F=G.length,D;(D=G[B===-1?F-1:(B-1+F)%F])==null||D.focus()};
_.lv=function(G){var B=_.te().resolve(_.fH(_.Rx));return B!=null&&B()?G.darkThemeColorPalette:G.lightThemeColorPalette};
_.qk=function(G){return{primaryTextColor:Ud(G,0),secondaryTextColor:Ud(G,1),optionColor:Ud(G,2),backgroundColor:Ud(G,3),videoBackgroundColor:Ud(G,4)}};
Ud=function(G,B){if(G){switch(B){case 0:G=G.primaryTitleColor;break;case 1:G=G.secondaryTitleColor;break;case 2:G=G.surgeColor;break;case 3:G=G.section2Color;break;case 4:G=G.section3Color;break;default:return}if(G)return _.hV(G)}};
vgS=function(G){var B=G.element;var F=G.veType;var D=G.storedVisualElement===void 0?null:G.storedVisualElement;var u=G.elementIndex===void 0?0:G.elementIndex;G=G.clientYouTubeData;var R=_.qW();R!==bmz&&(VZg.clear(),bmz=R);if(B.visualElement&&VZg.has(B.visualElement))return null;if(D&&VZg.has(D))return B.visualElement=D,null;F=_.u4(_.Rh(),{veType:F,elementIndex:u,clientYouTubeData:G});if(!F)return null;B.visualElement=F;VZg.add(F);return F};
_.Ed=function(G,B,F,D){F=F===void 0?null:F;D=D===void 0?ogM:D;var u=u===void 0?null:u;qh(function(){if(B){F instanceof Function&&(F=F());var R=vgS({element:B,veType:G,storedVisualElement:F,clientYouTubeData:void 0});R&&(F1(B,{data:u,observer:_.te().resolve(fZ),hideOption:h3o,showOption:KTL,layer:B.layer}),D(R))}})};
MZc=function(G){return G?_.Kp(G):""};
pnl=function(G){return(G==null?void 0:G.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
YN6=function(G,B){return _.g5(G.entities,"videoOverviewAsyncDataEntity",B)};
AKU=function(G,B){var F;return"linear-gradient(to bottom, "+((F=B==null?void 0:B.map(function(D){var u=G?D.darkThemeColor:D.lightThemeColor;return u?_.Kp(u)+" "+((D==null?void 0:D.startLocation)||0)*100+"%":"transparent"}))==null?void 0:F.join(", "))+")"};
dAz=function(G,B,F,D,u){if(!((D==null?0:D.height)&&(D==null?0:D.width)))return{size:0};var R=D.width;D=D.height;if(u)return B==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&R>D?{size:312/yzs}:B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(F!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||G!==1&&G!==2||B!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&B!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&B!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(B==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||D===R)switch(G){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||D>R)switch(G){case 1:case 3:return{size:240*Nhc};default:return{size:360*Nhc}}switch(G){case 1:case 2:return{size:1/yzs*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.JKo=function(G){if(!("matchMedia"in window))return _.Ae(Error("Sh")),function(){return!1};
var B=window.matchMedia(G);G=_.C(_.qg(B.matches,void 0,"waIHpe"));var F=G.next().value,D=G.next().value,u=function(R){D(R.matches)};
B.addEventListener?(B.addEventListener("change",u),_.VI(function(){B.removeEventListener("change",u)})):B.addListener&&(B.addListener(u),_.VI(function(){B.removeListener(u)}));
return F};
cKJ=function(G){return G==="IMAGE_BANNER_STYLE_INSET"||G==="IMAGE_BANNER_STYLE_UNKNOWN"};
THc=function(){if(!("matchMedia"in window))return _.Ae(Error("Sh")),function(){return 0};
var G=window.matchMedia("(max-width: 527.9px)"),B=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),F=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),D=window.matchMedia("(min-width: 1024px)"),u=_.C(_.qg(G.matches,void 0,"TmIKcb")),R=u.next().value,N=u.next().value;u=_.C(_.qg(B.matches,void 0,"Z0fTKd"));var y=u.next().value,U=u.next().value;u=_.C(_.qg(F.matches,void 0,"w4xy7b"));var q=u.next().value,h=u.next().value;u=_.C(_.qg(D.matches,void 0,"DrbNC"));var K=u.next().value,
a=u.next().value,m=function(b){N(b.matches)},L=function(b){U(b.matches)},W=function(b){h(b.matches)},e=function(b){a(b.matches)};
_.$f(function(){G.addEventListener?(G.addEventListener("change",m),B.addEventListener("change",L),F.addEventListener("change",W),D.addEventListener("change",e)):G.addListener&&(G.addListener(m),B.addListener(L),F.addListener(W),D.addListener(e));_.VI(function(){G.removeEventListener?(G.removeEventListener("change",m),B.removeEventListener("change",L),F.removeEventListener("change",W),D.removeEventListener("change",e)):G.removeListener&&(G.removeListener(m),B.removeListener(L),F.removeListener(W),
D.removeListener(e))})});
return function(){return R()?1:y()?2:q()?3:K()?4:0}};
Iis=function(G){var B=0;G=_.C([G.title,G.metadata,G.actions,G.description,G.attribution]);for(var F=G.next();!F.done;F=G.next())F.value&&B++;return B};
fil=function(G){return G===1||G===2?1:0};
Zmz=function(G){G=(new tZJ).parse(G);return(new as).render(G).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(B){var F=B.split(":").map(Number),D=0,u=0;if(F.length===3)F=_.C(F),D=F.next().value,u=F.next().value,F=F.next().value;else if(F.length===2)F=_.C(F),u=F.next().value,F=F.next().value;else if(F.length===1)F=_.C(F).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(D*3600+u*60+F)+'" role="button">'+B+"</span>"})};
ggc=function(G){G=_.C(G.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var B=G.next(),F={};!B.done;F={clickHandler$jscomp$5:void 0},B=G.next()){B=B.value;F.clickHandler$jscomp$5=function(u){u=Number(u.target.getAttribute("data-time"));if(isNaN(u))throw Error("Uh");var R;(R=_.sR())==null||R.seekTo(u,!0)};
var D=function(u){return function(R){R.key!=="Enter"&&R.key!=="Space"||(0,u.clickHandler$jscomp$5)(R)}}(F);
B.setAttribute("tabindex","0");B.removeEventListener("click",F.clickHandler$jscomp$5);B.removeEventListener("keydown",D);B.addEventListener("click",F.clickHandler$jscomp$5);B.addEventListener("keydown",D)}};
SNl=function(){return _.l("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.l(hm,{percentWidth:100}),_.l(hm,{animationDelay:200}),_.l(hm,{animationDelay:400}),_.l(hm,{animationDelay:600}),_.l(hm,{animationDelay:800,percentWidth:60}),_.l("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.l(hm,{percentWidth:100}),_.l(hm,{animationDelay:200}),_.l(hm,{animationDelay:400}),_.l(hm,{animationDelay:600,percentWidth:50}))};
hm=function(G){return _.l("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(G.percentWidth===void 0?100:G.percentWidth)+"%"},_.l("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(G.animationDelay===void 0?0:G.animationDelay)+"ms"}))};
sZl=function(){var G=_.C(_.qg(function(){return""},void 0,"dXJHWc")),B=G.next().value;
return[function(){return B()()},
G.next().value]};
xAg=function(G,B){G=G?R2S(G):"";B!==void 0&&isFinite(B)?B===0?B=_.G7("UPDATING",void 0,"Updating..."):(B=x2S(new Date(B),new Date),B=_.G7("UPDATED_TIME",{relative_time:B},"Updated "+B)):B="";var F="";G&&B&&(F=" \u2022 ");return _.pR(G+F+B)};
Bzg=function(G,B,F,D,u,R){B=B===void 0?0:B;var N=POQ[B],y=N.title,U=N.iconType,q=N.topButtonRenderer,h=N.sectionClientVE;N=N.videoClientVE;var K;if(B!==1||G.length){F=[];G=_.C(G);for(D=G.next();!D.done;D=G.next()){var a=D.value;if(Pxg(a))F.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:a.videoEntity.videoId,title:YI(a.videoEntity.title),shortBylineText:YI(a.channelEntity.title),thumbnail:a.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:a.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.G7("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:N}}}}}});else if(xRg(a)){D=F;var m=D.push;var L=void 0,W=void 0,e=void 0,b=void 0,M=void 0,t=void 0,T=void 0,A=void 0,Z=a.mainPlaylistEntity.playlistId,P=a==null?void 0:(A=a.mainPlaylistEntity)==null?void 0:(T=A.thumbnailStyleData)==null?void 0:(t=T[0])==null?void 0:(M=t.value)==null?void 0:(b=M.collageThumbnail)==null?void 0:b.coverThumbnail;b=$uz(Z);if(!_.X("enable_offline_playlist_page")&&
(a==null?0:(e=a.mainPlaylistEntity)==null?0:e.videos)){b:{e=a==null?void 0:(W=a.mainPlaylistEntity)==null?void 0:W.videos;W=_.VU().getState().entities;if(e!=null&&e.length&&W)for(e=_.C(e),M=e.next();!M.done;M=e.next())if(M=_.cT(M.value).entityId,(M=JSON.parse(M).videoId)&&JWL(W,M)==="TRANSFER_STATE_COMPLETE"){W=M;break b}W=""}W!==void 0&&(b=jw(_.VU().getState(),W),b=_.Ma(W,Z,void 0,void 0,b))}W=b4Q(_.G7("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),$uz(Z));a=Z&&P&&W?{playlistId:Z,navigationEndpoint:b,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:P}},title:YI(a.mainPlaylistEntity.title),shortBylineText:YI(a==null?void 0:(L=a.channelEntity)==null?void 0:L.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Gbg,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.G7("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:N}}}:
void 0;m.call(D,{gridPlaylistRenderer:a})}}N={gridRenderer:{items:F}};B===1&&(K=xAg(u,R))}else if(D){var RI=_.pR((m=F==null?void 0:F.localizedPromptMessage)!=null?m:"");N={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.pR(_.G7("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.hos}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.pR(_.G7("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};K=xAg(u,R)}else RI=_.pR(_.G7("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
N={};return{contents:[{shelfRenderer:{title:y,titleAnnotation:K,icon:{iconType:U},subtitle:RI,content:N,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:q}]}}}}],loggingDirectives:{clientVeSpec:{uiType:h}}}};
iY6=function(G,B,F,D,u,R,N,y,U,q,h){F=F===void 0?{}:F;D=D===void 0?{}:D;u=u===void 0?!1:u;R=R===void 0?!1:R;N=N===void 0?!1:N;y=y===void 0?!1:y;U=U===void 0?!1:U;q=q===void 0?0:q;h=h===void 0?-Infinity:h;if(!(B.length||G.length||u||y))return R?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:m46(F)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.pR(_.G7("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 K=[];G.length&&K.push(Bzg(G,0));y?K.push({contents:[{statementBannerRenderer:rGM(U,D)}]}):u?K.push(Bzg(B,1,F,N,q,h)):R&&K.push({contents:[{statementBannerRenderer:QXg(F)}]});(u&&B.length||G.length)&&K.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.pR(_.G7("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 K.map(function(a){return{itemSectionRenderer:a}})};
Kz=function(G,B){if(typeof G!=="object")return null;G=_.C(Object.entries(G));for(var F=G.next();!F.done;F=G.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;if(F===B)return F;if(D=Kz(D,B))return F+"."+D}return null};
aG=function(G){var B=G.content;return(G=G.styleRuns)&&B?{runs:G.map(function(F){var D={text:B.slice(F.startIndex,F.startIndex+F.length)};F.fontColor&&(D.textColor=F.fontColor);return D})}:{simpleText:B}};
uGs=function(G,B,F,D){var u=F1S;D&&(G.quantity=D);if(!G.quantity||!G.maxQuantity)return{};D=G.minusButton;var R=G.plusButton,N,y,U,q;return{value:G.quantity,maxValue:G.maxQuantity,onChangeCallback:function(h){u(G,h)},
minusLabel:(N=_.Q(D,Ddg))==null?void 0:N.label,minimumReachedLabel:(y=_.Q(D,Ddg))==null?void 0:y.limitReachedLabel,plusLabel:(U=_.Q(R,Ddg))==null?void 0:U.label,maximumReachedLabel:(q=_.Q(R,Ddg))==null?void 0:q.limitReachedLabel,disabled:B,onRemoveCommand:F}};
F1S=function(G,B){var F=G.quantityIncrementerEntityKey;if(F){var D={};D.quantity=B;_.M7(_.mH("quantityIncrementerEntity",F,D));G.onChangeCommand&&_.rJ(G.onChangeCommand)}};
Rv6=function(G){if(G)return G===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(G).overflowY)?G:Rv6(G.parentElement)};
NzU=function(G,B){(G=wJl(G))&&((_.X("enable_mini_app_command_handler_mweb_fix")?0:B)?CUM.push({command:G,sourceData:{},commandContext:void 0}):_.te().resolve(_.Wr).resolveCommand(G))};
wJl=function(G){return _.Q(G,_.mr)};
yug=function(){var G=window.performance.timeOrigin+window.performance.now(),B=(new _.Xp).setSeconds(G/1E9);return _.ua(B,2,_.lG(G%1E9),0)};
lC8=function(G,B){var F;G=(F=_.Q(_.Q(G,_.mr),nss))==null?void 0:F.methodName;var D,u;(F=window.youtubewebview||((D=window.webkit)==null?void 0:(u=D.messageHandlers)==null?void 0:u.youtubewebview))&&G&&(D=new QL,G=_.wq(D,1,G),G=_.xM(G.JSC$12866_serializeBinary()),B=_.xM(B),F.postMessage(G+","+B))};
jg=function(G,B){var F=_.Q(_.Q(G,_.mr),nss);F&&(B&&(F.serializedAdditionalMetadata=_.xM(B)),NzU(G,!0))};
UdI=function(G,B,F){setTimeout(function(){_.u5(G,B)},F)};
qoM=function(G){switch(G){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"}};
Es6=function(){return!!_.v5("ID_TOKEN")};
aCo=function(G){return G instanceof Error&&G.cause instanceof hvU&&G.cause.rpcErrorCode!==void 0?!K18.includes(G.cause.rpcErrorCode):!0};
XJg=function(){return _.xi(mdS,{authuser:""+(_.v5("SESSION_INDEX")||0)})};
Lz=function(G,B,F,D){F=F===void 0?"MINI_APP_SDK_API_UNSPECIFIED":F;D=D===void 0?"":D;var u=new _.Uf;F={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:D,sdkApi:F};G instanceof Error&&(u.message=G.message,u.name=G.name,G.cause instanceof hvU&&G.cause.rpcErrorCode!==void 0&&(F.rpcErrorCode=G.cause.rpcErrorCode));var R;(R=B.onError)==null||R.call(B,{loggingError:u,metadata:F})};
jEQ=function(G,B,F,D){switch(G){case "MINI_APP_SOURCE_GAMESNACKS":return new Od(B,F,D);default:return new QES(B,F,D)}};
L1s=function(G){switch(G){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"}};
ruL=function(G){switch(G){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"}};
W1g=function(G){switch(G){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";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
HYl=function(){return Math.floor(Math.random()*4)+1};
kbQ=function(G,B,F,D){G=_.C(Object.entries(G));for(var u=G.next(),R={};!u.done;R={message$jscomp$995:void 0},u=G.next()){var N=_.C(u.value);u=N.next().value;N=N.next().value;R.message$jscomp$995=N;B.push(setTimeout(function(y){return function(){D(!1);F(y.message$jscomp$995.text)}}(R),R.message$jscomp$995.delayMs));
Number(u)>0&&B.push(setTimeout(function(){D(!0)},R.message$jscomp$995.delayMs-400))}};
OYo=function(G,B,F){F=F===void 0?ogM:F;if(G){var D=_.te().resolve(fZ);D||_.X("mweb_no_observer_killswitch")?F1(G,{data:B,observer:D,visibilityCallback:F,hideOption:h3o,showOption:KTL,layer:G.layer}):_.em(new _.Uf("Warning: monitorVisibility called with null observer",G.tagName,B==null?void 0:B.loggingDirectives,B==null?void 0:B.trackingParams))}else _.em(new _.Uf("Warning: monitorVisibility called with null element",B==null?void 0:B.loggingDirectives,B==null?void 0:B.trackingParams,B==null?void 0:
B.rendererContext))};
evQ=function(G,B){var F=F===void 0?ogM:F;_.X("mweb_fix_monitor_visibility_after_render")?G&&qh(function(){OYo(G,B,F)}):qh(function(){OYo(G,B,F)})};
$dM=function(G,B){var F=document.createElement("ytd-engagement-panel-section-list-renderer");F.data=G;var D=B!=null?B:{};G=D.isPersistentPanel;B=D.hideDelayMs;D=D.overscrollContain;G=Object.assign({},G&&{isPersistentPanel:G},B&&{hideDelayMs:B},D&&{overscrollContain:D});Object.assign(F,G);return F};
vso=function(G){zvM||(zvM=bYU(new _.W2(1,void 0,void 0,VYl),0));var B=zvM.format(Math.floor(G));B=LJ==="be"||LJ==="bg"||LJ==="es"||LJ==="et"||LJ==="hu"||LJ==="ka"||LJ==="lv"||LJ==="pl"||LJ==="pt-PT"||LJ==="sq"?B.replace(new RegExp("^(\\d)"+VYl.GROUP_SEP.replace(".","\\.")+"(\\d+("+VYl.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):B;return G>=1E3&&G<=9999&&B[1]==="."&&(LJ==="sl"||LJ==="it")?B.replace(".",""):B};
_.pJs=function(G,B,F){return window.spf&&!_.X("web_disable_spfjs_client")?osg(G,B,F):MYJ(G,B)};
osg=function(G,B,F){var D=null,u=(new _.DS(function(R,N){var y={};if(B){y.method=B.method;var U=B.postParams||{};gIM(G,B)&&(U[_.v5("XSRF_FIELD_NAME")]=_.v5("XSRF_TOKEN"));y.postData=_.sh(U);B.type&&(y.type=B.type);U=B.headers}y.headers=cJ6(G,U);_.X("debug_forward_web_query_parameters")&&(G=_.tDJ(G,window.location.search));y.experimental_headers=y.headers;y.onError=function(q){q.err&&q.xhr&&(q.err.params={url:q.xhr.responseURL,response:q.xhr.responseText.substr(0,64)});N(q.err)};
y.onPartDone=function(q){F&&F.call(null,q.part)};
y.onDone=function(q){var h=YoI(q.response,"xsrf_token");ZJ(window.location.href,G)&&h&&_.Vc("XSRF_TOKEN",h);if(h=YoI(q.response,"service_worker_killswitch"))_.Vc("SERVICE_WORKER_KILLSWITCH",h),Dso();R(q.response)};
D=spf.request(G,y)})).then(Aug);
u.thenCatch(function(R){var N=R instanceof _.eg,y=R&&R.hasOwnProperty("params")&&R.params.response?R.params.response:"";R instanceof Error&&(y?N?ea8(R):y===')]}\'\n{"reload":"now"}'?ea8(R):(ddg(R,G,y),Jul(R,y)?_.em(R):_.k2(R)):ea8(R));D&&D.abort()});
return u};
Aug=function(G){if(G.type==="multipart"){var B=G.timing;G=G.parts.reduce(function(F,D){Object.assign(F,D);return F},{});
G.timing=G.timing||{};Object.assign(G.timing,B);G.type="reduced"}return G};
MYJ=function(G,B){B=B===void 0?{}:B;var F=null,D=new _.DS(function(u,R){B.onFinish=function(N){if(N.readyState===XMLHttpRequest.DONE)if(N.status===200){if(N.responseType!=="json"){var y=N.response;y.substring(0,5)===")]}'\n"&&(y=y.substring(5));try{var U=JSON.parse(y)}catch(q){U=q}}else U=N.response;U instanceof Error?R(U):(y=YoI(U,"xsrf_token"),ZJ(window.location.href,G)&&y&&_.Vc("XSRF_TOKEN",y),N=N.responseURL,window.performance&&window.performance.getEntriesByName?(y=window.performance.getEntriesByName(N).pop())?
N={responseStart:(0,_.Zl)()-(y.responseEnd-y.responseStart)}:(Math.random()<.01&&(y=Error("gi"),y.params=N,_.em(y)),N={responseStart:-1}):N={responseStart:0},U.timing=U.timing||{},Object.assign(U.timing,N),u(U))}else R(Error("fi`"+N.status))};
(F=_.uX(G,B))||R(Error("fi`"+F.status))});
D.thenCatch(function(u){u instanceof Error&&(ddg(u,G),Jul(u)&&(u.level="WARNING"))});
_.X("cancel_pending_navs")&&D.thenCatch(function(){F.abort()});
return D};
YoI=function(G,B){var F=G[B],D=G.parts;G.type==="multipart"&&D&&(F=(G=D.find(function(u){return B in u}))&&G[B]);
return F};
ddg=function(G,B,F){var D=G.message||"";B={original:D,url:B};if(F)if(D=D.match(/position:?\s*(\d+)/)){D=D&&Number(D[1])?Number(D[1]):0;var u=Math.max(D-25,0);B.position=D;B.response=F.substring(u,D+25)}else B.response=F.substring(0,50);_.$2(G,B);try{G.message="JSON parse error"}catch(R){}};
Jul=function(G,B){G=G.message||"";G=!!(G.indexOf("<")>=0||G.indexOf("end of ")>=0||G.indexOf("Unterminated string")>=0||G.indexOf("Unexpected EOF"));if(!G&&B)for(var F=B.length,D=!1,u=0;u<F;u++)if(D&&B[u]==="\\")u++;else if(B[u]==='"')D=!D;else if(B[u]==="<"&&!D){G=!0;break}return G};
cul=function(){return document.documentElement.hasAttribute("dark")};
_.TzU=function(G,B){if(G!=="GFEEDBACK"&&G!=="GUIDED_HELP")_.Mn(Error("hi`"+G));else{var F=_.te().resolve(_.fH(_.pA));if(F&&(F=F.getCurrentPage())&&F.getServiceTrackingParams&&(F=F.getServiceTrackingParams()))for(var D=0,u;u=F[D++];)if(u.service===G){if(G=u.params)for(F=0;D=G[F++];)B[D.key]=D.value;break}}};
_.ICz=function(G){var B=_.AZ();B&&(B=B.getPlayer())&&(B.pauseVideo(),G.playback_id=B.getVideoData().cpn,G.eid=B.getVideoData().eventId,Object.assign(G,B.getFeedbackProductData()))};
fCS=function(){var G={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.v5("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(G.enableAnonymousFeedback=!0);_.v5("SESSION_INDEX")&&(G.authuser=String(_.v5("SESSION_INDEX")));_.X("enable_pageid_for_feedback")&&_.v5("DELEGATED_SESSION_ID")&&(G.pageId=String(_.v5("DELEGATED_SESSION_ID")));return G};
_.$L=function(G){_.X("enable_ypc_spinners")&&_.T1(G,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},G])};
_.zf=function(G){_.X("enable_ypc_spinners")&&_.T1(G,"yt-close-popup-action",["yt-loading-renderer"])};
tYg=function(G){return new Promise(function(B,F){_.QX({verifyCommand:{recaptchaToken:G.recaptchaResponse}},{commandController:{onSuccess:function(D,u){u||F("ChallengeService did not return a response.");var R;B({challengeCompleted:(R=u.verified)!=null?R:!1})},
onServerError:function(D,u){F(u)}}})})};
ZYI=function(G,B,F,D){B({recaptchaResponse:D}).then(function(u){u.challengeCompleted?_.y5()?(F(3),_.te().resolve(_.Wr).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:G}})):F(2):F(4)},function(){F(4)})};
Sog=function(G,B,F){_.Q9(_.W7(gsg,_.v5("HL")),function(){var D;(D=window.grecaptcha)==null||D.ready(function(){var u=window.grecaptcha;u?(F(u.render(G,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:ZYI.bind(null,G,tYg,B)})),B(1)):B(4)})})};
sE6=function(G,B){return function(){switch(B()){case 0:return G().captchaLoadingMessage;case 1:return G().challengeReason;case 3:return G().captchaSuccessfulMessage;case 2:return G().captchaCookieSetFailureMessage;case 4:return G().captchaFailedMessage;default:return G().challengeReason}}()};
_.bv=function(){if(!xdz){var G=document.querySelector("#player.skeleton");G&&(_.B1(G),xdz=!0)}};
_.GII=function(){return PUg=EhJ()};
FIc=function(){return _.n(function(G){return Bj8!==void 0?G.return():G.yield(iyL(),0)})};
iyL=function(){return _.n(function(G){if(G.nextAddress==1)return G.yield(K38(),2);PUg=G.yieldResult;Bj8=_.Lu.addLowPriorityJob(iyL,5E3);_.di(G)})};
CF6=function(G){var B=B===void 0?DCz:B;var F,D,u=(F=G.responseContext)==null?void 0:(D=F.mainAppWebResponseContext)==null?void 0:D.trackingParam;if(!u){B.increment("MISSING");var R,N,y,U,q,h;_.em(new _.Uf("282054944_a",{yeN:!!((R=G.responseContext)==null?0:(N=R.mainAppWebResponseContext)==null?0:N.loggedOut),qsA:((y=G.responseContext)==null?void 0:y.mainAppWebResponseContext)===void 0,fXV:G.responseContext===void 0,cp:(U=G.playabilityStatus)==null?void 0:U.contextParams,koJ:(((q=G.streamingData)==
null?void 0:q.formats)||[]).length>0,muP:(((h=G.streamingData)==null?void 0:h.adaptiveFormats)||[]).length>0,os:!!G.offlineState,cotn:G.cotn}));return 2}F="";try{F=u$U(u)}catch(m){return B.increment("C_ERROR"),_.k2(m),2}try{var K=_.TU8(F);var a=RKS(K)}catch(m){return B.increment("P_ERROR"),_.k2(m),2}a=_.pT(a,wql,1,_.Yk());u=[];a=_.C(a);for(K=a.next();!K.done;K=a.next())D=K.value,K=D.getPath(),F=(0,_.UK.getValueByKeys)(G,K.split(".")),F=String(F===void 0||F===null?"":F),D=D.getValue()||"",R=/[+\-\/_]/g,
F.replace(R,"")!==D.replace(R,"")&&(B.increment("MISMATCH"),_.X("ab_mis_log_err")&&(F=new _.Uf("282054944_p",{lOu:K,g:String(F),e:String(D)}),_.k2(F)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(K)||(K.match(/enforcementMessageViewModel/i)?u.push(3):u.push(2)));if(u.length>0)return Math.max.apply(Math,_.gi(u));B.increment("SUCCESS");return 1};
nOJ=function(G){var B=new VL;if(G.interpreterJavascript){var F=_.LCS(G.interpreterJavascript);F=nI(F).toString();var D=new NjQ;_.wq(D,6,F);_.ba(B,1,D,vs)}else G.interpreterUrl&&(F=_.rg(G.interpreterUrl),F=_.YS(F).toString(),D=new _.yHU,_.wq(D,4,F),_.ba(B,2,D,vs));G.interpreterHash&&_.v0(B,3,G.interpreterHash,vs);G.program&&_.v0(B,4,G.program,vs);G.globalName&&_.v0(B,5,G.globalName,vs);G.clientExperimentsStateBlob&&_.v0(B,7,G.clientExperimentsStateBlob,vs);return B};
oG=function(G){var B={};G=_.C(G.split("&"));for(var F=G.next();!F.done;F=G.next())F=F.value.split("="),F.length===2&&(B[F[0]]=F[1]);return B};
lQz=function(G){return Number(G.t)||7200};
UCQ=function(){var G=G===void 0?window:G;var B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(Ldl(),2);B=G;F=B.bgevmc;if(!F)throw Error("li");return D.return({pause:function(){F.p()},
resume:function(){F.r()},
checkForRefresh:function(){return F.cr()}})})};
jnU=function(){if(_.X("bg_st_hr"))return"havuokmhhs-0";var G,B=((G=globalThis.performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(B)};
Mk=function(G){window.bgens=G};
qil=function(){return new Promise(function(G){var B=window;B.ntpevasrs!==void 0?G(new pz(B.ntpevasrs)):(B.ntpqfbel===void 0&&(B.ntpqfbel=[]),B.ntpqfbel.push(function(F){G(new pz(F))}))})};
EOz=function(G){if(_.X("attmusi")&&_.X("attmusi_ue")){G={s:G.lzJ.bind(G),ir:G.qb4.bind(G)};var B=window;B.attmp=G;if(B.attmq!==void 0)for(var F=_.C(B.attmq),D=F.next();!D.done;D=F.next())D=D.value,D(G);B.attmq=void 0}else B=G.lzJ.bind(G),_.IY("yt.aba.att",B),G=G.qb4.bind(G),_.IY("yt.aba.att2",G)};
KIc=function(G){switch(_.Ik(G.input)){case _.v2(hKU):var B={};return B.encryptedVideoId=G.innerTubeRequest.externalVideoId,B}return{}};
XqM=function(G){switch(_.Ik(G.input)){case _.v2(hKU):if(_.X("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.v2(aQg):if(_.X("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.v2(YL):if(_.X("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&G.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.v2(mCL):var B,F;if(_.X("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((F=_.Q((B=G.config)==null?void 0:B.command,_.vI))==null?0:F.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.jWg=function(G){var B;if(G.playlistVideoRenderer&&((B=G.playlistVideoRenderer)==null?0:B.engagementBar))return QWJ(G.playlistVideoRenderer.engagementBar);if(_.Q(G,Am)){var F;if(G=(F=_.Q(G,Am))==null?void 0:F.engagementBar)return QWJ(G)}return""};
QWJ=function(G){if(!G)return"";G=_.Q(G,_.LII);if(G==null||!G.actions)return"";G=_.C(G.actions);for(G=G.next();!G.done;G=G.next()){G=_.Q(G.value,_.rHg);var B=void 0;if((B=G)==null||!B.itemId)break;return G.itemId}return""};
_.WIJ=function(G){var B;if(G.playlistVideoRenderer&&((B=G.playlistVideoRenderer)==null?0:B.videoId))return G.playlistVideoRenderer.videoId;if(_.Q(G,Am)){var F,D;if(G=(F=_.Q(G,Am))==null?void 0:(D=F.playlistItemData)==null?void 0:D.videoId)return G}return""};
_.Hy8=function(G){var B;if(G.playlistVideoRenderer&&((B=G.playlistVideoRenderer)==null?0:B.voteCount))return G.playlistVideoRenderer.voteCount;if(_.Q(G,Am)){var F,D;if(G=(F=_.Q(G,Am))==null?void 0:(D=F.playlistItemData)==null?void 0:D.voteCount)return G}return 0};
_.dN=function(G,B){return _.g5(G.entities,"flowStateEntity",B)};
Oy6=function(G,B,F,D){var u=void 0;G=_.C(G[B.iconName]||[]);for(var R=G.next();!R.done;R=G.next()){R=R.value;var N=B.iconSize;var y=B.iconStyle;N=!N||N===R[2];var U=kIQ[R[0]];D&&D!==R[1]||!N||y&&y!==U?y=!1:u?(y=kIQ[R[0]],y=!!B.iconStyle||y==="youtube_outline",N=u.version<=R[1],y=(!!B.iconSize||R[2]===24)&&y&&N):y=!0;y&&(u={name:B.iconName,style:kIQ[R[0]],size:R[2],version:R[1],allowMirroring:!!R[3],url:F(B.iconName,R)})}return u};
eKJ=function(G,B,F,D){return G+(""+kIQ[F[0]]+((D===void 0?0:D)?"_experimental":"")+"/"+B+"/v"+F[1]+"/")+(F[2]+"px.svg")};
$Cg=function(G){return _.v5("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.v5("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":G};
zKs=function(G,B){return eKJ("https://fonts.gstatic.com/s/i/",G,B)};
by6=function(G,B){return eKJ("https://fonts.gstatic.com/s/i/",G,B,!0)};
V9g=function(G,B){return eKJ("https://www.gstatic.com/youtube/img/icons/web/",G,B)};
M9s=function(G){var B=G.enabled;var F=G.itemPlaybackModel;var D=G.thumbnailElRef;var u=G.containerElRef;var R=G.options;var N;_.bC(function(){var y=u==null?void 0:u.value;var U,q=(U=D())==null?void 0:U.value,h=F();U=R();if(B&&h&&y&&q&&(U==null?0:U.thumbnail)){var K={data:h,hostElement:y},a,m,L=[].concat(_.gi((a=U.thumbnailOverlays)!=null?a:[]),_.gi((m=h.overlays)!=null?m:[]));m=h.itemPlaybackOptions;a=(m==null?void 0:m.enableRoundedPlayer)||U.enableRounding;m=m==null?void 0:m.disableTimeStatusOverlay;
var W,e,b=(W=h.inlinePlayerData)==null?void 0:W.onVisible,M=(e=h.inlinePlayerData)==null?void 0:e.onSelect;e=U.thumbnail;W=U.accessibilityText||"";h=(h=_.Q(b,vOM))&&h.playerDescriptors?h.playerDescriptors:void 0;if(h){b=[];for(M=0;M<h.length;M++){var t=void 0;b.push({inlinePlaybackEndpoint:h[M].inlinePlaybackEndpoint,navigationEndpoint:h[M].navigationEndpoint,thumbnail:(t=h[M].thumbnail)!=null?t:e,thumbnailOverlays:h[M].thumbnailOverlays?h[M].thumbnailOverlays:L,accessibilityText:W})}L=b}else L={inlinePlaybackEndpoint:_.X1(b),
navigationEndpoint:_.X1(M),thumbnail:e,thumbnailOverlays:L,accessibilityText:W};y={mediaRenderer:K,lockupElement:y,thumbnailElement:q,videoPreviewOpts:{videoPreviewData:L,thumbnailSize:U.thumbnailSize,enableRounding:a,mouseleaveCallback:U.mouseleaveCallback,hideTimeDisplay:m}}}else y=void 0;if(y){var T;(T=N)==null||Jm(T);N=j3(y);var A,Z;((A=F())==null?0:(Z=A.inlinePlayerData)==null?0:Z.forceImpAutoplay)&&oOl(N)}},"mM6F9");
_.VI(function(){var y;(y=N)==null||Jm(y)})};
pqQ=function(G){G=atob(G);for(var B=[],F=0;F<G.length;F++)B.push(G.charCodeAt(F));return new Blob([new Uint8Array(B)],{type:"image/png"})};
AHg=function(G,B,F,D){D=D===void 0?"INSERTION_POSITION_UNSPECIFIED":D;return G({targetId:B},function(u){var R,N=(R=u.contents)!=null?R:[];R=F!=null?F:[];var y=Yio(N);switch(D){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},u,{contents:[].concat(_.gi(N.slice(0,y)),_.gi(R),_.gi(N.slice(y+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},u,{contents:[].concat(_.gi(R),_.gi(N))});case "INSERTION_POSITION_LAST":return Object.assign({},u,{contents:[].concat(_.gi(N),_.gi(R))});
default:return u}})};
JHU=function(G,B,F,D,u){u=u===void 0?"RELATIVE_INSERTION_POSITION_AFTER":u;return G({targetId:B},function(R){var N,y=(N=R.contents)!=null?N:[];N=dCI(y,F);if(N<0)return R;N=u==="RELATIVE_INSERTION_POSITION_BEFORE"?N:N+1;return Object.assign({},R,{contents:[].concat(_.gi(y.slice(0,N)),_.gi(D),_.gi(y.slice(N)))})})};
Yio=function(G){var B=G.findIndex(function(F){return _.Q(F,_.c0)});
return B>=0?B:G.length};
dCI=function(G,B){return G.findIndex(function(F){a:{F=_.C(Object.values(F));for(var D=F.next();!D.done;D=F.next())if((D=D.value)&&D.targetId){F=D.targetId;break a}F=""}return F===B})};
TjI=function(G,B,F){return G({targetId:B},function(D){var u,R=(u=D.contents)!=null?u:[];return Object.assign({},D,{contents:cHo(R,F)})})};
cHo=function(G,B){return G.filter(function(F){var D=B.includes;a:{F=_.C(Object.values(F));for(var u=F.next();!u.done;u=F.next())if((u=u.value)&&u.targetId){F=u.targetId;break a}F=""}return!D.call(B,F||"")})};
_.IQc=function(G,B){return{engagementPanelSectionListRenderer:{panelIdentifier:G,identifier:B,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
fQz=function(G,B){G=G.getAvailableAudioTracks();if(G.length)return G==null?void 0:G.find(function(F){var D;return(F==null?void 0:(D=F.getLanguageInfo())==null?void 0:D.getId())===B})};
_.Zyg=function(G){var B,F=(B=G.getOption("captions","tracklist",{includeAsr:!0}))!=null?B:[];return F=t9z(F,G)};
gOI=function(G){return G.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
t9z=function(G,B){B=gOI(B);if(B==null||!B.length)return G;var F=B.filter(function(N){return N});
B=G.filter(function(N){return N.languageCode.startsWith("en")});
F=_.C(F);for(var D=F.next();!D.done;D=F.next())if(D=D.value,B.length){var u=B[0],R=Object.assign({},u);u.languageCode!==D.languageCode&&(R.displayName=u.languageName+" >> "+D.languageName,R.translationLanguage=D,G.push(R))}return G};
Siz=function(G,B,F){G=_.Zyg(G);if(G.length)return F?G.find(function(D){if(typeof(D==null?void 0:D.translationLanguage)==="object"){var u;return((u=D.translationLanguage)==null?void 0:u.languageCode)===B}return!1}):G==null?void 0:G.find(function(D){return D.languageCode===B})};
sWs=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
xCl=function(G){var B=G.getAvailableAudioTracks();if(B!=null&&B.length){var F=G.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.gi(B.map(function(D){return{listItemViewModel:{title:{content:D.getLanguageInfo().getName()},isSelected:D.getLanguageInfo().getId()===(F==null?void 0:F.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:D.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
PFz=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
G5z=function(G){var B=PFz(G);if(B==null?0:B.length)return B;G.loadModule("captions");return PFz(G)};
Bx8=function(G){var B=G.getOption("captions","track");if(B)return B;G.loadModule("captions");return G.getOption("captions","track")};
Fsz=function(G){var B=G5z(G);if(B!=null&&B.length){var F=Bx8(G),D;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.G7("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(F==null?0:F.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.gi(B.map(function(u){return{listItemViewModel:{title:{content:u.displayName},
isSelected:u.displayName===(F==null?void 0:F.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:u.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.G7("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!F.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!F.translationLanguage&&{selectionText:{content:(F==null?void 0:(D=F.translationLanguage)==null?void 0:D.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[i_s(G)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
i_s=function(G){var B=gOI(G);if(B==null||!B.length)throw Error("Hi");var F=Bx8(G);G=B.filter(function(D){return!D.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.gi(G.map(function(D){var u;return{listItemViewModel:{title:{content:D.languageName},isSelected:D.languageName===(F==null?void 0:(u=F.translationLanguage)==null?void 0:u.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:D.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
wDL=function(G){return new Promise(function(B,F){if(G===void 0)_.k2(Error("Li"),"ERROR"),F(Error("Li"));else{F=new _.DJS;var D=_.uHJ();F=F.init();var u=_.R16(_.v5("YPC_MB_URL"),!0);Promise.all([F,u]).then(function(){var R=_.Tf.payments.business.integration.ClientTokenFactory.createClientToken(G,D);B(R)})}})};
yyl=function(G,B,F,D,u,R,N){var y=_.zn();F=F.replace(/-/g,"+").replace(/_/g,"/");var U=_.D4().get("hl"),q=_.IG(_.bn),h=B==null?void 0:B.element;h&&_.$L(h);CbQ(B,!0);_.Nxl(q,F,y.resolve,function(){h&&_.zf(h)},function(K){h&&_.zf(h);
y.reject(K)},U,D?function(K){D&&_.$F(G,D,{backend_analytics:K})}:void 0,y.resolve,u,R,N);
return y.promise};
CbQ=function(G,B){!(G=G==null?void 0:G.element)||G.tagName!=="YT-BUTTON-RENDERER"&&G.tagName!=="YTD-BUTTON-RENDERER"||(G.disabled=B)};
nUS=function(){var G=_.G7("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.pR(G),actionButton:{buttonRenderer:hn8()}}},popupType:"TOAST"}};
l2o=function(){var G=_.G7("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.pR(G),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
UJL=function(G){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:G}]}}};
fz=function(G,B,F,D){var u;return _.n(function(R){if(R.nextAddress==1)return _.b5(R,2),R.yield(G,4);if(R.nextAddress!=2)return(u=_.R9(B.getState().entities).length>0)?R.return({title:_.pR(_.G7("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.pR(_.G7("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:EcJ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
R.return(KBJ(F,D));_.Al(R);return R.return(KBJ(F,D))})};
qQo=function(G,B){return B?B==="PPSV"||I7M(G,B):!1};
EUg=function(G){G.responseContext||(G.responseContext={});G.responseContext.maxAgeSeconds=0;return G};
Zb=function(G){var B;return _.n(function(F){return F.nextAddress==1?F.yield(h1l(G,"service:topbar:fallback"),2):(B=F.yieldResult)&&_.tm(B)?F.return(EUg(_.tm(B))):F.return()})};
Kss=function(G){var B;return _.n(function(F){return F.nextAddress==1?F.yield(h1l(G,"service:downloads_settings:fallback"),2):(B=F.yieldResult)&&_.tm(B)?F.return(B):F.return()})};
h1l=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1)return G?D.yield(G.get(B),2):D.return();F=D.yieldResult;return!F||!_.tm(F)||!isNaN(Number(F.data.expireTimestampMs))&&F.isExpired()?D.return():D.return(F)})};
a2M=function(G){var B=_.te().resolve(gN).getState().entities;return G.playlistId?qQo(B,G.playlistId):!1};
XDL=function(G){var B=_.sD("web_pbj_log_warning_rate",0);B=B>0&&Math.random()<B;if(!_.Q(G,_.Fu))return B&&_.em(Error("ej")),!1;var F;return _.X("shorts_controller_retrieve_seedless_sequence_v2")&&((F=_.Q(G,_.Fu))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:mJs(G)?!0:(B&&_.em(Error("fj")),!1)};
mJs=function(G){var B=(_.Q(G,_.Ow)||_.Q(G,_.Fu)).videoId;if(!B||!QwL.test(B))return!1;var F;return(G=(F=_.Q(G.commandMetadata,_.xy))==null?void 0:F.url)&&(G.includes(B)||G.startsWith("/clip"))?!0:!1};
_.Lsz=function(){var G=_.D4();return G.getFlag(192)?G.getFlag(190):!(_.Nk("web_watch_cinematics_disabled_by_default")||_.Nk("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&jwo())};
_.Sg=function(G,B,F){var D={};D.currentUrl=B;D.vis=G.vis!==void 0?G.vis:0;D.splay=!1;B=_.D4();D.autoCaptionsDefaultOn=B.getFlag(66);B.getFlag(141)?B.getFlag(140)?D.autonavState="STATE_OFF":D.autonavState="STATE_ON":D.autonavState="STATE_NONE";D.html5Preference="HTML5_PREF_WANTS";isNaN(_.v5("STS"))||(D.signatureTimestamp=_.v5("STS"));G.autonav&&(D.autoplay=!0,D.autonav=!0);G.mutedAutoplay&&(D.autoplay=!0,D.mutedAutoplay=!0);G.inlinePlayback&&(D.autoplay=!0,D.autonav=!1,D.isInlineUnmutedPlayback=!!G.inlineUnmuted);
D.referer=F;D.lactMilliseconds=G.lact!==void 0?G.lact.toString():"-1";_.X("enable_unknown_lact_fix_on_html5")&&D.lactMilliseconds==="-1"&&_.em(new _.Uf("Unknown LACT is set in playbackContext.",{"lact in tempData":G.lact||"undefined",autonav:G.autonav||"undefined"}));G={};B.getFlag(194)&&(G.hasShownAmbientMode=!0);B.getFlag(192)&&(G.hasToggledOffAmbientMode=!0);_.Lsz()&&(G.watchAmbientModeEnabled=!0);D.watchAmbientModeContext=G;return D};
ryI=function(G){var B={},F=G.pbis||0;F&&(B.playbackBeginsInSeconds=F);G.prefetch_reason&&G.prefetch_reason==="hc_pbis"&&(B.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return B};
Wsg=function(G,B){var F;if(B==null?0:(F=B.requestTemplate)==null?0:F.panelId)G.panelId=B.requestTemplate.panelId;var D;if(B==null?0:(D=B.requestTemplate)==null?0:D.params)G.params=B.requestTemplate.params};
k56=function(){if(H_8)return H_8();var G=!_.X("idb_response_store_auth_killswitch"),B={};H_8=tP("yt-it-response-store",{objectStores:(B.ResponseStore={addedAtVersion:1},B),shared:!G,upgrade:function(F,D){D(1)&&(F=bi(F,"ResponseStore",{keyPath:["key","clientName"]}),Vv(F,"byExpiration","expireTimestampMs"),Vv(F,"byInterface","clientName"))},
version:1});return H_8()};
sd=function(G){return _.p8(k56(),G)};
e1I=function(G,B){var F;return _.n(function(D){return D.nextAddress==1?D.yield(_.f8(),2):(F=D.yieldResult)?D.return(new O_U(G,B,F)):D.return()})};
$Jg=function(G){var B=Object.keys(G)[0];if(B)return G.screenExit&&(B=B+";"+G.screenExit.screen),B};
z1Q=function(G){var B=new Map;G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,F!=null&&(B.has(F.taskType)||B.set(F.taskType,[]),B.get(F.taskType).push(F));return B};
b_I=function(G){G=[].concat(_.gi(G)).sort(function(F,D){return F-D});
var B=Math.floor(G.length/2);return G.length%2?G[B]:(G[B-1]+G[B])/2};
oUo=function(G,B){G=G===void 0?EPI:G;B=B===void 0?{}:B;_.IY("yt.logging.errors.log",_.k2);UjS();Vis(X_g(),B);window.onerror=G;vUc=qYg;window.addEventListener("unhandledrejection",function(F){if(F.reason instanceof Error){var D=F.reason;_.$2(D,{source:"unhandledrejection"});D.name==="AbortError"&&(D.level="WARNING")}qYg(F.reason);F.preventDefault()})};
_.MiL=function(G){var B,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI,v6,Jg,c6,q8,n7,Ts,hT,L7,K7,kD,Rz,KQ;return _.n(function(pQ){if(pQ.nextAddress==1)return pQ.yield(_.B2(G,{mode:"readonly",enableRetries:!0},function(aq){return io(aq,"playbackData").then(function(Zq){var eN=Zq.map(function(qH){return qH.transfer}).filter(function(qH){return!!qH}),Ps=Zq.map(function(qH){return qH.offlineVideoPolicy}).filter(function(qH){return!!qH}),el=Zq.filter(function(qH){return!!qH.key}).map(function(qH){return _.Z4(_.cT(qH.key).entityId,
"downloadStatusEntity")});
eN=io(aq,"transfer",eN);Ps=io(aq,"offlineVideoPolicy",Ps);el=io(aq,"downloadStatusEntity",el);var sG=eN.then(function(qH){qH=qH.reduce(function(TL,Iz){(Iz==null?0:Iz.offlineVideoStreams)&&TL.push.apply(TL,_.gi(Iz.offlineVideoStreams));return TL},[]).filter(function(TL){return!!TL});
return io(aq,"offlineVideoStreams",qH)});
return $K.all([eN,Ps,sG,el]).then(function(qH){var TL=_.C(qH);qH=TL.next().value;var Iz=TL.next().value;var N8=TL.next().value;TL=TL.next().value;return[Zq,qH,Iz,N8,TL]})})}),2);
if(pQ.nextAddress!=3)return B=pQ.yieldResult,pQ.yield(_.B2(G,{mode:"readonly",enableRetries:!0},function(aq){return io(aq,"mainDownloadsListEntity").then(function(Zq){var eN,Ps;return(Ps=(eN=Zq[0])==null?void 0:eN.downloads)!=null?Ps:[]})}),3);
F=pQ.yieldResult;D=_.C(B);u=D.next().value;R=D.next().value;N=D.next().value;y=D.next().value;U=D.next().value;q=u;h=R;K=N;a=y;m=U;L={};W={};e={};b={};M={};t=[];T=_.C(h);for(A=T.next();!A.done;A=T.next())(Z=A.value)&&(L[Z.key]=Z);P=_.C(K);for(RI=P.next();!RI.done;RI=P.next())(yo=RI.value)&&(W[yo.key]=yo);hg=_.C(m);for(US=hg.next();!US.done;US=hg.next())(aI=US.value)&&(e[aI.key]=aI);v6=_.C(a);for(Jg=v6.next();!Jg.done;Jg=v6.next())(c6=Jg.value)&&(b[c6.key]=c6);q8=_.C(F);for(n7=q8.next();!n7.done;n7=
q8.next())Ts=n7.value,hT=void 0,M[(hT=Ts.videoItem)!=null?hT:""]=!0,Ts.videoItem&&(K7=L7=void 0,kD=(K7=(L7=_.cT(Ts.videoItem))==null?void 0:L7.entityId)!=null?K7:"",t.push({externalVideoId:kD}));Rz=q.filter(function(aq){if(!aq||!aq.key||!aq.offlineVideoPolicy)return!1;aq=_.cT(aq.key).entityId;aq=_.Z4(aq,"downloadStatusEntity");var Zq;return!(aq&&((Zq=e[aq])==null?void 0:Zq.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
KQ=Rz.map(function(aq){var Zq=L[aq.transfer],eN=[];if(Zq==null?0:Zq.offlineVideoStreams)for(var Ps=_.C(Zq.offlineVideoStreams),el=Ps.next();!el.done;el=Ps.next())(el=b[el.value])&&eN.push(el);Ps=W[aq.offlineVideoPolicy];el=M;var sG=aq==null?void 0:aq.playerResponseTimestamp,qH=_.cT(Ps.key).entityId;aq=_.Z4(qH,"mainVideoEntity");if(Ps.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var TL="OFFLINE_VIDEO_STATE_DISABLED";Ps.expirationTimestamp&&Number(Ps.expirationTimestamp)<Date.now()/1E3&&(TL="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Ps.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")TL="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Zq==null?void 0:Zq.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":TL="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":TL="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":TL="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":TL="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":TL="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":TL="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:TL="OFFLINE_VIDEO_STATE_UNKNOWN"}if(TL==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Zq==null?void 0:Zq.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":TL="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":TL="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":TL=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}qH={id:qH,videoState:TL};if(Zq==null?0:Zq.cotn)qH.cotn=Zq.cotn;if(Zq==null?0:Zq.maximumDownloadQuality)qH.selectedVideoQuality=Zq==null?void 0:Zq.maximumDownloadQuality;if(Zq==null?0:Zq.lastProgressTimeMs)qH.lastProgressTimeMs=Zq.lastProgressTimeMs;sG&&(qH.playerResponseSavedTimeMs=String(Number(sG)*1E3));Zq=String;sG=0;eN=_.C(eN);for(TL=eN.next();!TL.done;TL=eN.next())if(TL=TL.value,TL.streamsProgress){TL=_.C(TL.streamsProgress);for(var Iz=TL.next();!Iz.done;Iz=
TL.next()){var N8=void 0;sG+=Number((N8=Iz.value.numBytesDownloaded)!=null?N8:0)}}qH.downloadedBytes=Zq(sG);qH.selectedOfflineMode=el[aq]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Ps.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(qH.offlinePlaybackDisabledReason=Ps.offlinePlaybackDisabledReason);return qH});
return pQ.return({offlineVideos:KQ,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:t}}})})};
pDo=function(){var G;return _.n(function(B){return B.nextAddress==1?B.yield(_.xI(),2):(G=B.yieldResult)?B.return(_.MiL(G)):B.return({state:"PES Unavailable"})})};
dJ8=function(){var G,B,F,D;return _.n(function(u){if(u.nextAddress==1)return u.yield(_.xI(),2);if(u.nextAddress!=3)return(G=u.yieldResult)?u.yield(YQo(G),3):u.return({state:"PES Unavailable"});B=u.yieldResult;F={};D=B.reduce(function(R,N){R[N.key]=N;return R},F);
return u.return(Ay6(D))})};
Ay6=function(G){for(var B={},F=[],D=_.C(Object.keys(G)),u=D.next();!u.done;u=D.next()){var R=u.value;u=G[R];var N=void 0;if(((N=u)==null?void 0:N.entityType)==="mainVideoEntity"){delete G[R];var y=u.data;u={};if(y){var U=void 0;N=(U=y.videoId)!=null?U:"vid-"+R;R=G;u.video=y;delete u.video.formattedDescription;delete u.video.thumbnail;y.owner&&(U=R[y.owner],U==null?0:U.data)&&(delete R[U.key],u.video.owner=U.data,delete u.video.owner.avatar);if(y=y.downloadState)if(U=R[y],U==null?0:U.data)if(delete R[y],
y=U.data.playbackData)if(U=R[y],U!=null&&U.data){delete R[y];y=U.data;delete y.playerResponseJson;u.playbackData=y;if(y.transfer&&(U=R[y.transfer],U==null?0:U.data)){delete R[U.key];var q=U.data;u.transfer=q;U=[];q=_.C(q.offlineVideoStreams||[]);for(var h=q.next();!h.done;h=q.next())if(h=R[h.value])delete R[h.key],U.push(h.data);U&&(u.streams=U)}(y=y.offlineVideoPolicy)&&(y=R[y])&&y.data&&(delete R[y.key],u.offlineVideoPolicy=y.data)}B[N]=u}}else u&&u.entityType==="offlineOrchestrationActionWrapperEntity"&&
u.data&&(delete G[u.key],N=u.data,R=void 0,F.push({id:N.rootActionId,type:((R=N.actionProto)==null?void 0:R.actionType)||"",entity:u}))}B.wrapperEntities=F;Object.keys(G).length>0&&(B.unknownKeys=G);return B};
JyL=function(){var G,B,F,D,u,R,N,y,U;return _.n(function(q){if(q.nextAddress==1)return G=(new _.e6("")).hasLocalStorage(),D=!!((B=_.Fz.crypto)==null?0:(F=B.subtle)==null?0:F.importKey),u=!!_.Fz.BroadcastChannel,R=!!_.Fz.navigator.locks,q.yield(twJ(),2);N=q.yieldResult;y=G&&D&&u&&R&&N;U={isSupported:y};if(y)return q.return(U);U.missingBrowserFeatures=[];N||U.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");G||U.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
D||U.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");u||U.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");R||U.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return q.return(U)})};
cy6=function(G,B,F,D){var u=!1,R={contentId:void 0,contentType:"video"};B=_.C(Object.entries(B));for(var N=B.next();!N.done;N=B.next()){var y=_.C(N.value);N=y.next().value;y=y.next().value;G.includes(N)&&!F.has(y)?(R.contentId=y,F.add(y),u=!0):N==="contentType"?y==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(R.contentType="playlist"):typeof y==="object"&&y!==null&&cy6(G,y,F,D)}u&&D.push(R)};
TxQ=function(){var G;return!((G=xL?xL:null)==null||!G.window)};
_.tig=function(G){if(_.I26()){var B=_.f2o().mediaSession;try{B.setActionHandler("enterpictureinpicture",function(F){G(F)})}catch(F){}}};
_.I26=function(){return!(!xL||!xL)&&e8()&&_.LgS("Chromium")>=120};
Z_I=function(G){for(var B=[],F=_.C(document.styleSheets),D=F.next(),u={};!D.done;u={node$jscomp$779:void 0},D=F.next())u.node$jscomp$779=D.value.ownerNode,u.node$jscomp$779&&(u.node$jscomp$779 instanceof HTMLStyleElement||u.node$jscomp$779 instanceof HTMLLinkElement)&&B.push(new Promise(function(R){return function(N){var y=R.node$jscomp$779.cloneNode(!0);y.onload=function(){N()};
y.onerror=function(){_.em(Error("xj"));N()};
G.document.head.appendChild(y)}}(u)));
return Promise.all(B)};
Des=function(G){var B=[_.LS(gUU),_.LS(SQJ),_.LS(swL)];xJs(window.document.documentElement,G.document.documentElement,[_.LS(Pb8),_.LS(GgJ),_.LS(BFQ),_.LS(iqQ),_.LS(FNl)]);xJs(window.document.body,G.document.body,B)};
xJs=function(G,B,F){G=_.C(G.attributes);for(var D=G.next();!D.done;D=G.next())if(D=D.value)try{_.Ex(F,B,D.name,D.value)}catch(u){}};
R5o=function(G,B){G=new _.P0(G.document.documentElement);G.start(uyL,B);return G};
wts=function(G){var B=G.document.documentElement;B.addEventListener("click",function(F){dbg(B,F)});
B.addEventListener("touchstart",function(F){fDS(F)});
B.addEventListener("mousedown",function(F){fDS(F)})};
NF8=function(G,B,F,D){D=D===void 0?!1:D;B=new CSo(B||G,F||G);return{x:G.x+((D===void 0?0:D)?B.lengthX*-1:B.lengthX)*.2,y:G.y+((D===void 0?0:D)?B.lengthY*-1:B.lengthY)*.2}};
yds=function(G){if(!G)return!1;var B=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",F,D,u,R=(u=(F=G.errorScreen)==null?void 0:F.playerLegacyDesktopYpcTrailerRenderer)!=null?u:(D=G.errorScreen)==null?void 0:D.ypcTrailerRenderer;return!!B||!!R};
_.nqJ=function(G,B){if(!G)return!1;var F,D=(F=G.errorScreen)==null?void 0:F.playerLegacyDesktopYpcOfferRenderer,u;B=!!(B==null?0:(u=B.playerOverlayRenderer)==null?0:u.gatedActionsOverlayRenderer);return!!yds(G)||!!D||!!B};
lEs=function(G){return inS(G,0,"gclid",G.search(FW6))>=0||inS(G,0,"gad_source",G.search(FW6))>=0};
Ueo=function(G){var B=[],F=0;return{clear:function(){F=B.length=0},
push:function(D){B[F]=D;F=(F+1)%G},
iterate:function(){return function u(){var R,N,y,U;return _.Gd(u,function(q){switch(q.nextAddress){case 1:_.oo(q,2),R=B.length,N=0;case 4:if(!(N<R)){q.jumpTo(2);break}y=F+N;U=_.BP;return q.yield(B[y%R],7);case 7:U(q.yieldResult);N++;q.jumpTo(4);break;case 2:_.vY(q),_.Yd(q,0)}})}()}}};
qZQ=function(G){G.eventsToIgnore||(G.eventsToIgnore=[]);var B=G.eventsToIgnore.map(TbL),F=new Set(B),D=Ueo(G.bufferSize);return{flush:function(){var u=Array.from(D.iterate());D.clear();u=u.map(function(R){return{name:R.name,timestamp:R.startTime,attributes:R.attributes}});
return JSON.stringify(u)},
onSpanStart:function(u){u.name==="event"&&F.has(u.attributes.type)||D.push(u)}}};
Eqz=function(G){G=qZQ(G);var B=G.flush;BBQ({onSpanStart:G.onSpanStart});bZ.subscribe("handleError",function(F){try{F.params.breadcrumbs=B()}catch(D){_.k2(D,"WARNING")}})};
h5o=function(){Eq("web_tracing_action");_.hJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
KNQ=function(){Eq("web_tracing_action");_.hJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Xt8=function(G,B,F,D){if(B===void 0){aES||(KNQ(),setInterval(KNQ,6E5),aES=!0);var u="web_tracing_action"}else u=B;var R,N=((R=G.endTime)!=null?R:G.startTime)-G.startTime;R={};F=me8(G.name,N,G.startTime,{webTracing:(R[G.name]=G.attributes,R)},F,u,{spanStatus:G.status,rootSpanNonce:void 0});if(G.children)for(G=_.C(G.children),u=G.next();!u.done;u=G.next())Xt8(u.value,B,F,D||F)};
QOl=function(G){var B=wvz.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(F){F.data&&typeof F.data==="object"&&(F=F.data,F.from==="extension"&&F.app==="yt.telemetry"&&(B("Received message from extension",F),G.onMessage(F)))});
return function(F,D){F={app:"yt.telemetry",from:"app",key:F,payload:D};B("Sending message to extension",F);window.postMessage(F,"*")}};
jOg=function(){var G=G===void 0?3E3:G;var B=QOl({onMessage:function(){}}),F=[];
return{onSpanEnd:function(D){D.parentId==null&&F.push(D)===1&&setTimeout(function(){var u=[].concat(_.gi(F));F.length=0;B("spansReported",{spans:u})},G)}}};
LNI=function(G){G=G===void 0?400:G;var B=[],F=[];return{start:function(){return ioJ({checkoutEveryNth:G,emit:function(D,u){u&&(B=F,F=[]);F.push(D)},
blockSelector:'img, video, audio, source, picture, [style*="background"][style*="url"]',maskAllInputs:!0,maskTextSelector:"*"})},
getRecording:function(){return[].concat(_.gi(B),_.gi(F))}}};
Hqz=function(){(new rdU({sessionReplayEvents:_.sD("web_tracing_session_replay",0)})).subscribe(function(G){if(G.sessionReplayEvents>0)try{var B=LNI(G.sessionReplayEvents);B.start();var F=console.log;window.exportSessionReplay=function(){var D=JSON.stringify(B.getRecording(),null,2);D=WN8(new Blob([D],{type:"text/plain"}));var u=document.createElement("a");u.download="session_replay.json";u.dataset.downloadurl=["application/json",u.download,u.href].join(":");u.style.display="none";u.href=D;u.click();
URL.revokeObjectURL(D);F("View replay at go/yt-session-replay-viewer")}}catch(D){_.em(Error("zj"))}})};
Oql=function(){var G=window.fetch;window.fetch=function(){var B=_.xS.apply(0,arguments),F=_.C(B),D=F.next().value;F=F.next().value;var u=_.ds("httpEvent",{method:(F===void 0?{}:F).method||"GET",path:kgs(D),type:"fetch"},{active:!1});return G.apply(null,_.gi(B)).then(function(R){u.addAttributes({statusCode:R.status,statusText:R.statusText});u.end();return R}).catch(function(R){u.end("SPAN_STATUS_ERROR");
throw R;})}};
e5I=function(){var G=XMLHttpRequest.prototype.open,B=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(F,D,u,R,N){var y=this;u=u===void 0?!0:u;this._requestData={method:F,url:D.toString()};this.addEventListener("load",function(){var U=y._span;U==null||U.addAttributes({statusCode:y.status,responseContentLength:y.responseText.length});U==null||U.end()});
this.addEventListener("error",function(){var U=y._span;U==null||U.addAttributes({statusCode:y.status,statusText:y.statusText});U==null||U.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var U=y._span;U==null||U.addAttributes({statusCode:y.status,aborted:!0});U==null||U.end()});
G.apply(this,[F,D,u,R,N])};
XMLHttpRequest.prototype.send=function(F){var D=this._requestData||{method:"N/A",url:"N/A"};this._span=_.ds("httpEvent",{method:D.method,path:kgs(D.url),type:"xhr"},{active:!1});B.apply(this,[F])}};
kgs=function(G){try{if(G instanceof URL)return G.pathname;G instanceof Request&&(G=G.url);return(new URL(G,"https://youtube.com")).pathname}catch(B){return"<unable to parse path>"}};
z5M=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var G=window.performance.getEntriesByType("navigation");if(G.length>0){var B=G[0],F=window.performance.timeOrigin;_.ds("pageLoad",{navigationType:$e8(B.type),unloadEventStart:Math.round(B.unloadEventStart),unloadEventEnd:Math.round(B.unloadEventEnd),domInteractive:Math.round(B.domInteractive),domContentLoadedEventStart:Math.round(B.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(B.domContentLoadedEventEnd),
domComplete:Math.round(B.domComplete),loadEventStart:Math.round(B.loadEventStart),loadEventEnd:Math.round(B.loadEventEnd),redirectCount:B.redirectCount},{active:!1,startTime:F+B.startTime,endTime:F+B.loadEventEnd})}}catch(D){}})};
$e8=function(G){switch(G){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
M1s=function(){for(var G=bq8.value,B={},F=_.C(G.enabledSpansArray),D=F.next();!D.done;D=F.next())B[D.value]=!0;GSS({sessionId:F98(),enabledSpans:B,shouldSampleFn:function(u,R,N){if(V18){var y;return u==="shortToShort"||(N==null?void 0:(y=N.rootSpan())==null?void 0:y.name)==="shortToShort"}return!0}});
RAg();AL("pageLoad")&&z5M();AL("httpEvent")&&(Oql(),e5I());G.exportToCsi&&BBQ(vqQ);G.exportToDevTools&&BBQ(jOg());G.maxBreadcrumbs>0&&Eqz({eventsToIgnore:oqc,bufferSize:G.maxBreadcrumbs})};
ptM=function(G){return new Promise(function(B){window.setTimeout(B,G)})};
YZc=function(G){var B={bicf:function(R){G.wke=R},
blc:function(){return G.getLatestChallengeResponse()},
bcr:function(R){G.dHS.push(R)}},F=window;
F.ntpevasrs=B;if(F.ntpqfbel!==void 0)for(var D=_.C(F.ntpqfbel),u=D.next();!u.done;u=D.next())u=u.value,u(B);F.ntpqfbel=void 0};
Ad8=function(G){return _.n(function(B){if(B.nextAddress==1)return _.b5(B,2),B.yield(G.tdI(),4);if(B.nextAddress!=2)return _.oY(B,0);_.Al(B);_.di(B)})};
del=function(G){var B,F;(B=G.ytcsi)==null||(F=B.tick)==null||F.call(B,"pot_ist")};
Jds=function(G){if(G instanceof Error){var B=_.Yf("yt.logging.errors.log");B&&B(G,"WARNING")}};
cdl=function(G){try{var B=JSON.parse(G);if(B.bgChallenge)return B}catch(F){}};
IEJ=function(){var G=window,B={networkStatusManagerPromise:_.te().resolve(new bRS(_.pu)),initialChallengeSli:_.X("wpo_att_sli")?new _.j1g("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};G=G===void 0?window:G;var F=G.ytAtR,D;B==null||(D=B.initialChallengeSli)==null||_.iQ(D);if(F){if(F=cdl(F)){var u;B==null||(u=B.initialChallengeSli)==null||_.Fi(u,"SUCCESS");TFU(F,B)}G.ytAtR=void 0}else G.ytAtRC=function(R){if(R=cdl(R)){var N;B==null||(N=B.initialChallengeSli)==null||
_.Fi(N,"SUCCESS");TFU(R,B);G.ytAtRC=void 0}}};
Zqg=function(){if(fEg)return fEg;try{var G=_.G_("IFRAME");_.u5(G,_.W7(t18));G.sandbox.add("allow-same-origin");G.style.display="none";document.body.appendChild(G);return fEg=G}catch(B){G=new _.Uf("Failed to create sandbox iframe"),_.k2(G)}};
gq6=function(){return function(G,B){_.v5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[G]=B}};
SZS=function(){return function(G,B){var F={};F[G]=B;G=_.pH(_.cXI)(F);Object.keys(G).length>0&&_.qa(G)}};
PSM=function(){if(_.pr8()==="hidden")var G="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.pr8()==="visible"&&(G="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",sOJ=null);G&&xeU(G)};
xeU=function(G){if(G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Gps===G)return;Gps=G}var B=9E4+Math.random()*2E3;if(G!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Z8()>B)&&_.pr8()==="visible"){B=-1;sOJ&&(B=Math.round((0,_.Zl)()-sOJ));var F=String;var D=_.Yf("_fact",window);D=D==null||D==-1?-1:Math.max(Date.now()-D,0);_.W$("foregroundHeartbeat",{firstActivityMs:F(D),clientDocumentNonce:D_S,index:String(BDo),lastEventDeltaMs:String(B),trigger:G});
_.IY("_fact",-1,window);BDo++;sOJ=(0,_.Zl)()}};
ifI=function(G,B,F,D,u,R){B=new Uint8Array(B);if(G.length===0)return B;var N=0;u=u!=null?u:G.length-1;for(var y=F;y<=u;y++){var U=G[y],q=y===F?D:0,h=void 0,K=y===u?(h=R)!=null?h:U.length:U.length;U=U.subarray(q,K);B.set(U,N);N+=U.length}return B};
DZI=function(){typeof window.queueMicrotask!=="function"&&(window.queueMicrotask=function(G){return Fll.then(G)})};
_.uo6=function(){try{return!!self.sessionStorage}catch(G){return!1}};
REg=function(){var G=navigator;return new Promise(function(B,F){var D;(D=G.webkitTemporaryStorage)!=null&&D.queryUsageAndQuota?G.webkitTemporaryStorage.queryUsageAndQuota(function(u,R){B({usage:u,quota:R})},function(u){F(u)}):F(Error("Ij"))})};
wlJ=function(G,B){var F={errorSeverity:B.errorSeverity.toString(),wizFeatureFlags:Object.entries(B.featureFlags).join("\n")};lM8(B,F);B=B.errorSeverity;B===3?_.k2(G,"ERROR",void 0,void 0,void 0,F):B===2&&_.k2(G,"WARNING",void 0,void 0,void 0,F);_.X("cow_if_errors_in_popup")&&B===3&&G.message.indexOf("<If>")!==-1&&window.alert(G.message)};
C8s=function(G,B){var F=VY.get(G)||{layerNode:B};F.layerNode=B;ris(G,F);G.getScreenLayer=function(){return Dw(F.layerNode)}};
NDg=function(G){var B;G=G.parentNode;for(var F;G&&((B=VY.get(G))==null||!B.isRenderer)&&!((F=G.polymerController)!=null?F:G).isRenderer_;)G=G.parentNode||G.host;if(B=G)return VY.get(B)};
ynU=function(G){if(G){VY.delete(G);var B=_.te().resolve(fZ);UTS(G,B)}};
lfM=function(G,B,F){if(F===void 0?0:F){if(F=G.getAttribute("client-ve-type"),B.data&&!B.disableReactiveLogging||F)_.zM(function(){nHl(G,_.Mg(B.data))},"Hg"),_.VI(function(){return void ynU(G)})}else typeof B.data!=="function"&&nHl(G,B.data)};
nHl=function(G,B){UZI++;qTg(G,B)&&_.Lu.addJob(function(){_.uQ(_.Lu,function(){if(qTg(G,B)&&G.ownerDocument.documentElement===document.documentElement&&G){var F;if(G.getAttribute("layer")){var D=F=Number(G.getAttribute("layer")),u=VY.get(G);u?u.layerNode.layer=D:C8s(G,new EHz(D));(D=NDg(G))&&(u=VY.get(G))!=null&&(u.layerNode.parent=D.layerNode)}else if(F=VY.get(G))F=Dw(F.layerNode);else{F=Dw;D=new EHz;if(u=NDg(G))D.parent=u.layerNode;C8s(G,D);F=F(D)}F!=null||(F=0);D=G.getAttribute("client-ve-type");
u=Number(D);var R=!1;D=!1;var N=VY.get(G),y;if((y=N)&&!(y=N[hEg]!==B)&&(y=u)){var U;y=((U=VY.get(G))==null?void 0:U.clientVeType)===void 0}y&&(N[hEg]=B,R=D=N.isRenderer=!0);VY.has(G)&&(VY.get(G).clientVeType=u);G.visualElement&&(D=!0);if(_.X("wiz_next_ld_fix_client_ve_spec")){var q;U=((q=_.Q(B==null?void 0:B.rendererContext,_.wJ))==null?void 0:q.loggingDirectives)||(B==null?void 0:B.loggingDirectives)}else U=B==null?void 0:B.loggingDirectives;U&&U.clientVeSpec&&(q=Klg(_.De(),G),q=_.afQ(_.Rh(),U,q||
void 0,F))&&(G.visualElement=q);!G.visualElement&&u&&R&&(G.veType=u,q=void 0,_.X("wiz_next_client_ve_parent_fix")&&(q=Klg(_.De(),G)),q=_.u4(_.Rh(),G,q,F),G.visualElement=q);D&&(q=_.te().resolve(fZ),F1(G,{data:B,observer:q,layer:F,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
qTg=function(G,B){return(B==null?0:B.trackingParams)||(B==null?0:B.loggingDirectives)||_.Q(B==null?void 0:B.rendererContext,_.wJ)||G.getAttribute("client-ve-type")?!0:!1};
mZs=function(G,B,F){G.componentType!==j2&&F instanceof HTMLElement&&B&&!_.X("cow_logging_in_component_wrapper")&&lfM(F,B,!0)};
jPI=function(){if(!XlS){XlS=!0;var G=_.X("enable_wiz_context_per_component")||!1;G=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.X("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:G,enableContextBasedComponentStacks:G},{handleError:wlJ,enableComponentStacksInErrorMessages:!1});Object.assign(GM,G);QPg();Oil=A6o;WVU=J6U}};
QPg=function(){_.X("cow_logging_in_component_wrapper")?(gaM=function(G,B){B instanceof HTMLElement&&lfM(B,G,!0)},UWz=function(){}):(gaM=function(){},UWz=mZs)};
LlM=function(G,B,F){B=B===void 0?{}:B;var D,u=(D=_.Q(G.commandMetadata,_.xy))==null?void 0:D.url;D=B.form||{};!F||D.element||D.skipDefaultElement||(B.form=B.form||{},B.form.element=F);if(u&&u!=="/service_ajax")return{type:0,command:G,form:B.form};if(_.X("kevlar_service_command_check")){if(_.eo(_.te().resolve(_.RF),G))return Object.assign({},{type:1,command:G},B)}else{var R;if((R=_.Q(G.commandMetadata,_.xy))==null?0:R.apiUrl)return Object.assign({},{type:1,command:G},B)}return{type:2,command:G,form:B.form}};
rnS=function(G){if(G.form){var B=G.form,F=Object.assign({},B);B=B.element;F=(delete F.element,F);if(B)return[_.fi(B,[G.command,F,G.commandController])]}return[]};
WlQ=function(G){if(G.form){var B=G.form,F=Object.assign({},B);B=B.element;F=(delete F.element,F);B&&_.tL(B,[G.command],B,F)}};
kpL=function(G,B,F){var D=new Hfl(G,B),u=new RC(G,B,F);G={"/youtubei/v1/browse":new w6(G,B,F),"/youtubei/v1/player":D,"/youtubei/v1/navigation/resolve_url":new Cx,"/youtubei/v1/next":u,"/youtubei/v1/guide":new Nt(F),"/youtubei/v1/search":new yG(G,B,F),"/youtubei/v1/reel/reel_item_watch":new nx(G,B,F),"/youtubei/v1/get_watch":new lQ(D,u)};G["/youtubei/v1/account/account_menu"]=new U$;G["/youtubei/v1/notification/get_notification_menu"]=new qt;return G};
h1=function(){var G=_.te().resolve(_.E$);return Promise.resolve(OfQ(G,_.Fz.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
eEL=function(G){return G&&(G=_.c7(_.ZT8(G)))?(new URLSearchParams(G)).get("service"):null};
mh=function(G,B){_.Tm(_.Kx(),function(){_.KR("adl")});
_.te().resolve($ZJ)(B);G=G.root;G.loadData&&G.loadData(B);(B==null?0:B.response)?_.Fi(W96(),"SUCCESS"):_.em(new _.Uf("Lifecycle: No response in data",_.on("IS_SHELL_LOAD"),B?B.page:"NO_PAGE",B?B.endpoint:"NO_ENDPOINT"));G.polymerController.$["page-manager"].lazyPrepareCriticalPages((B==null?void 0:B.page)||"",B.endpoint);var F,D;((D=_.Q(B==null?void 0:(F=B.endpoint)==null?void 0:F.commandMetadata,_.xy))==null?0:D.webPageType)&&_.VU().dispatch(_.aC(_.Q(B.endpoint.commandMetadata,_.xy).webPageType))};
zEs=function(){var G,B;return _.n(function(F){switch(F.nextAddress){case 1:G=window;if(!G.getDataPromise){F.jumpTo(2);break}_.b5(F,3);return F.yield(G.getDataPromise(),5);case 5:return F.return(F.yieldResult);case 3:return _.Al(F),F.yield(h1(),6);case 6:return F.return(F.yieldResult);case 2:if(G.getInitialData)return B=G.getInitialData(),G.getInitialData=void 0,F.return(B);throw Error("Kj`"+_.Fz.location.href);}})};
Vfg=function(){_.Vc("CSI_SERVICE_NAME","youtube");_.qa({loadType:"cold"});_.X("kevlar_log_lcp")&&bfl(function(G){_.KR("lcp",G.value)})};
vHs=function(){var G=_.Be(document.location.href,"enable");G&&G.indexOf("scraper")>-1&&_.Vc("ADD_SCRAPER_ATTRIBUTES",!0)};
Ano=function(G){var B=G.root;G=[oH6,MfL,_.Xi];_.X("web_feedback_endpoint_autolog_allowlist_killswitch")&&G.push(_.QG,plL);YT8(function(F,D){return LlM(F,D,B)},function(F){if(!F.command)return[];
var D;((D=F.form)==null?0:D.element)?F.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},F.form,{endpoint:F.command})})):B.handleNavigate(F);return[]},G);
_.te().addProvider({provide:_.Wr,useValue:_.Gm.instance})};
Jng=function(){var G={},B={},F;for(F in dZc){var D=_.C(_.qg(dZc[F],void 0,"e17Ccb"));G[F]=D.next().value;B[F]=D.next().value}return[G,function(u){for(var R in u){var N=void 0;(N=B[R])==null||N(u[R])}}]};
_.If8=function(G,B){var F=!1;F=F===void 0?!1:F;var D=_.UK.getValueByKeys(G,"contents","twoColumnWatchNextResults","results","results","contents"),u=_.UK.getValueByKeys(G,"contents","twoColumnWatchNextResults","playlist","playlist")||null;F&&(u=null);var R=F=null;if(u)F=_.UK.getValueByKeys(u,"titleText"),R=_.UK.unsafeClone(_.UK.getValueByKeys(u,"longBylineText")),D="",R&&(D=_.zx(R)),R=_.$9(D);else if(D){D=_.C(D);for(var N=D.next();!N.done;N=D.next())N=N.value,N.videoPrimaryInfoRenderer&&(F=_.UK.getValueByKeys.apply(_.UK,
[N].concat(_.gi(cnM)))),N.videoSecondaryInfoRenderer&&(R=_.UK.getValueByKeys.apply(_.UK,[N].concat(_.gi(TDc))))}else _.Ae(Error("Pj"));var y;G.currentVideoEndpoint?y=G.currentVideoEndpoint:_.Ae(Error("Qj"));var U;B&&(U=_.UK.getValueByKeys(B,"playabilityStatus","miniplayer","miniplayerRenderer"));G={miniplayerTitle:F,miniplayerSubtitle:R,watchEndpoint:y,playlistData:u};U&&(G.miniplayerRenderer=U);return G};
ff8=function(G){if(G)return _.hx(G)};
_.tfL=function(){return{isFullscreen:function(){throw Error("Rj");},
toggleFullscreen:function(){throw Error("Sj");},
exitFullscreen:function(){throw Error("Tj");},
isAutonavEnabled:function(){throw Error("Uj");},
setAutonavEnabled:function(){throw Error("Vj");},
isAutoplaySetExplicitly:function(){throw Error("Wj");}}};
ZfS=function(G){return G.videoDuration?G.numTaps>1&&G.tapDirection!==0?_.ki(G.draggedTime/G.videoDuration,0,1):_.ki((G.playedTime||0)/G.videoDuration,0,1):0};
gHQ=function(G){return G.videoDuration?G.isDragging||G.numTaps>1&&G.tapDirection!==0?_.ki(G.draggedTime/G.videoDuration,0,1):_.ki((G.playedTime||0)/G.videoDuration,0,1):0};
sPM=function(G){var B,F,D;return _.Q(G==null?void 0:(B=G.markersMap)==null?void 0:(F=B.find(function(u){return u.key==="HEATSEEKER"}))==null?void 0:(D=F.value)==null?void 0:D.heatmap,STU)};
xZo=function(G){var B,F;return(F=(B=sPM(G))==null?void 0:B.heatMarkersDecorations)!=null?F:[]};
P8S=function(G){if(_.X("mweb_supported_chapters_killswitch"))return!0;var B;return!!(G==null?0:(B=G.markersMap)==null?0:B.find(function(F){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(F.key)}))};
_.GsN=function(G){var B=Object,F=B.assign,D;G={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(D=G==null?void 0:G.getPlayerState())!=null?D:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return F.call(B,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},G,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
BUw=function(G){return function(B){var F=G(),D,u=(D=F.playerApi)==null?void 0:D.getPlayerState();B&&B!==F.playerState&&(B===1||B===2)&&F.setState({playerState:u})}};
FgL=function(G){return function(B){var F=G(),D=F.playerApi;D&&(B==null?void 0:B.type)==="newdata"&&(iQv&&(clearTimeout(iQv),iQv=void 0),_.X("web_shorts_use_progress_state_for_gapless")?(B=D==null?void 0:D.getProgressState(B==null?void 0:B.playertype),B=B.seekableEnd-B.seekableStart):B=D==null?void 0:D.getDuration(B==null?void 0:B.playertype),F.setState({playedTime:0,videoDuration:B}))}};
DLL=function(G){return function(B){var F=G(),D=F.playerApi;if(D){var u=D.getPresentingPlayerType();_.X("web_shorts_use_progress_state_for_gapless")?(D=D.getProgressState(u),D=D.seekableEnd-D.seekableStart):D=D.getDuration(u);F.setState({playedTime:B,videoDuration:D})}}};
RJq=function(G){_.Ed(112394,G,function(){return uzy},function(B){uzy=B})};
NUN=function(G,B){if(!G)return[];var F,D,u;G=((F=G.markersMap)==null?void 0:(D=F.find(function(R){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(R.key)}))==null?void 0:(u=D.value)==null?void 0:u.chapters)||[];
!w67(G)||(B==null?0:B.ignoreStub)||(G=[Clq()].concat(_.gi(G)));return G};
Clq=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
w67=function(G){if(G.length===0)return!1;var B;return((B=_.Q(G[0],jT))==null?void 0:B.timeRangeStartMillis)!==0};
Lx=function(G){return G?G.timeRangeStartMillis||0:0};
nMG=function(G,B){if(G.isDragging&&B)return G=ygG(G,B),G===-1?Clq():NUN(B)[G]};
ygG=function(G,B){return G.isDragging&&B?NUN(B,{ignoreStub:!0}).findIndex(function(F,D,u){F=lcw(G);return ULv(F,u,D).scrubberHovering}):-1};
lcw=function(G){return Object.assign({},G,{videoDuration:G.videoDuration*1E3,playedTime:G.playedTime*1E3,draggedTime:G.draggedTime*1E3})};
ULv=function(G,B,F){var D=Lx(_.Q(B[F],jT));B=Lx(_.Q(B[F+1],jT))||G.videoDuration;F=G.isDragging;var u;if(u=G.isDragging)u=G.draggedTime,u=u!==null&&u>=D&&u<B;var R=G.playedTime;return R!==null&&R>=D&&R<B?{videoPosition:"active",isScrubbing:F,scrubberHovering:u}:G.playedTime<D?{videoPosition:"pending",isScrubbing:F,scrubberHovering:u}:{videoPosition:"seen",isScrubbing:F,scrubberHovering:u}};
qSG=function(G,B){return G.videoPosition==="seen"||(B===void 0?0:B)>0};
EMU=function(G,B,F){B=G/B.storyboardInterval;var D=NUN(F);if(!D.length)return-B*72;F=0;D=_.C(D);for(var u=D.next();!u.done;u=D.next())if(Lx(_.Q(u.value,jT))/1E3<G)F++;else break;return-(B*72)-F*56};
hJ7=function(G){return G?G.width/G.columns:0};
Kgy=function(G){return G.isHovering?G.hoveredTime:G.draggedTime};
acq=function(G,B){G=G.draggedTime*1E3;return G>=B.visibleTimeRangeStartMillis&&G<=B.visibleTimeRangeEndMillis};
_.mLv=function(G){if(G===void 0||Number.isNaN(G))return"--:--";var B=Math.abs(Math.floor(G)),F=Math.floor(B/86400),D=Math.floor(B%86400/3600),u=Math.floor(B%3600/60);B=Math.floor(B%60);var R="";F>0&&(R+=F+":",D<10&&(R+="0"));if(F>0||D>0)R+=D+":",u<10&&(R+="0");R+=u+":";B<10&&(R+="0");R+=B;return G>=0?R:"-"+R};
X6U=function(G,B){return function(){var F=Kgy(G());var D=B();var u=G().playerApi;if(u&&u.getNumberOfStoryboardLevels()!==0){var R=u.getStoryboardFrameIndex(F,1);R!==-1?D=u.getStoryboardFrame(R,1):(F=u.getStoryboardFrameIndex(F,0),u=u.getStoryboardFrame(F,0),D&&u&&(u.height*=3,u.width*=3),D=u)}else D=null;if(!D)return null;B()&&(D.width=90*D.columns,D.height=160*D.rows);return D}};
_.r6=function(G){if(!G||G.getVideoData)return G};
QIt=function(){var G;return{playerApi:(G=_.sR())!=null?G:void 0}};
jIP=function(G){var B;_.n(function(F){if(F.nextAddress==1)return F.yield(_.So(),2);if(B=F.yieldResult)B.unMute(!0),B.setVolume(G,!0);_.di(F)})};
LgG=function(G,B){G&&(G.value=""+B,G.style.setProperty("--gradient-percent",B+"%"))};
rgN=function(G){var B;return(B=G==null?void 0:G.value)!=null?B:0};
Wgv=function(){var G;_.n(function(B){if(B.nextAddress==1)return B.yield(_.So(),2);G=B.yieldResult;if(!G)return B.return();G.isMuted()?G.unMute(!0):G.mute(!0);_.di(B)})};
HQG=function(G){var B=_.te().resolve(_.WP).getPlayerElement();B&&G&&(G===1?B.pause():B.play())};
ks8=function(G){return!!_.Q(G,_.HP)||!!_.Q(G,_.kw)};
OQq=function(G){_.Ia(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
eJa=function(G){_.Ia(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
zJL=function(G){return _.kf(G.document.body,function(){return _.l($Lq,null)},"rh")};
bQ8=function(){var G;return(G=navigator.userActivation)==null?void 0:G.isActive};
V8t=function(){var G=window.performance.getEntriesByType("navigation");return G?G.map(function(B){return B.type}).includes("reload"):!1};
vMt=function(G,B){B=B===void 0?!1:B;var F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return B||!_.X("kevlar_shorts_seedless_retry_initial_load")||(F=window,D=!(!F.getDataPromise&&!F.getInitialData),D)?N.yield(zEs(),2):(setTimeout(vMt.bind(window,G,!0),1E3),N.return());if(N.nextAddress!=3)return u=N.yieldResult,N.yield(oMa(u),3);R=N.yieldResult;mh(G,R);_.di(N)})};
oMa=function(G){var B;if((B=G.response)==null||!B.replacementEndpoint)return _.ZL(G);B=_.te().resolve(_.E$);G=G.response;_.Q(G.replacementEndpoint,_.Fu)&&G.sequenceContinuation&&(_.Q(G.replacementEndpoint,_.Fu).sequenceParams=G.sequenceContinuation);return O$(B,G.replacementEndpoint,{},_.Fz.location.href,"shorts",function(){},function(){return!1})};
p6U=function(G){var B=_.te().resolve(M8G);G.playerResponse&&B.handleResponse(G.playerResponse);G.response&&B.handleResponse(G.response)};
YSL=function(G){var B=_.VU(),F,D=_.Q((F=G.response)==null?void 0:F.frameworkUpdates,bN),u;F=_.Q((u=G.playerResponse)==null?void 0:u.frameworkUpdates,bN);var R;G=_.Q((R=G.reelWatchSequenceResponse)==null?void 0:R.frameworkUpdates,bN);D&&_.Gx(D,B);F&&_.Gx(F,B);G&&_.Gx(G,B)};
Agq=function(G){var B;_.X("enable_redirect_linking_for_desktop_web_client")&&((B=window.location.hash)==null?0:B.includes("redirect_state"))&&G.url&&(G.url=G.url.toString()+window.location.hash)};
cga=function(G){var B=_.te(),F=B.resolve(_.E$);B=B.resolve(_.dLT);G.endpoint&&(F=JgG(F,G.endpoint),F.content&&G.response&&_.eT(B,G.response,F.content),F.player&&G.playerResponse&&_.eT(B,G.playerResponse,F.player),F.reelSequence&&G.reelWatchSequenceResponse&&_.eT(B,G.reelWatchSequenceResponse,F.reelSequence))};
$w=function(G,B){_.X("web_enable_chunk_prediction")&&TUN(B);p6U(B);YSL(B);var F;(B==null?0:B.url)&&((F=window.location.hash)==null?0:F.includes("redirect_state"))&&(Agq(B),(F=eEL(B.url))&&_.T1(G.root,"yt-initialize-third-party",[F,B]));cga(B);F=_.te();var D=F.resolve(IcT);B.playerResponse&&F.resolve(fc7).handleResponse(B.playerResponse);if(B.playerResponse){F=void 0;if(_.X("ab_v_vid_sig")&&B.endpoint){var u,R=(u=_.Q(B.endpoint,_.Ow))!=null?u:_.Q(B.endpoint,_.Fu);R&&(F=R.videoId)}t8a(D,B.playerResponse,
F)}B.playerResponse&&T_I(B.playerResponse)&&_.X("web_enable_ab_rsp_cl")?FIc().then(function(){ZQ7(D,B.playerResponse);mh(G,B)}):mh(G,B)};
SSa=function(G){if(G=G.root.data){var B=_.te().resolve(gMy);G.endpoint&&(G.response&&B.handleResponse(G.response,void 0,document.querySelector("ytd-app")),G.playerResponse&&B.handleResponse(G.playerResponse),G.reelWatchSequenceResponse&&B.handleResponse(G.reelWatchSequenceResponse))}};
TUN=function(G){G.response&&_.te().resolve(sIU).handleResponse(G.response)};
xL7=function(G){var B,F,D,u,R,N;return _.n(function(y){switch(y.nextAddress){case 1:B=window;if(!B.getDataPromise){y.jumpTo(2);break}_.b5(y,3);return y.yield(B.getDataPromise(),5);case 5:F=y.yieldResult;$w(G,F);_.oY(y,4);break;case 3:return _.Al(y),y.yield(h1(),6);case 6:D=y.yieldResult,_.X("web_enable_chunk_prediction")&&TUN(D),mh(G,D);case 4:return y.return();case 2:if(!_.X("sw_nav_preload_pbj")){y.jumpTo(7);break}B.fetchInitialData=function(){var U;return _.n(function(q){if(q.nextAddress==1)return q.yield(h1(),
2);U=q.yieldResult;_.X("web_enable_chunk_prediction")&&TUN(U);mh(G,U);_.di(q)})};
if(B.getInitialData){B.loadInitialData=function(U){$w(G,U)};
u=B.getInitialData();B.getInitialData=void 0;$w(G,u);y.jumpTo(8);break}B.fetchInitialData=void 0;return y.yield(h1(),9);case 9:R=y.yieldResult,_.X("web_enable_chunk_prediction")&&TUN(R),mh(G,R);case 8:return y.return();case 7:B.getInitialData?(N=B.getInitialData(),B.getInitialData=void 0,$w(G,N)):B.loadInitialData=function(U){$w(G,U)},_.di(y)}})};
GL7=function(){var G=new PlL;_.pQo(G);G.registerInitializationCallback(function(){bzQ(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
G.registerCallback("error",function(B,F,D){_.Mn(Error("$j`"+F+"`"+D))})};
Bwq=typeof Object.create=="function"?Object.create:function(G){var B=function(){};
B.prototype=G;return new B};
i7q=typeof Object.defineProperties=="function"?Object.defineProperty:function(G,B,F){if(G==Array.prototype||G==Object.prototype)return G;G[B]=F.value;return G};
Fta=function(G){G=["object"==typeof globalThis&&globalThis,G,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var B=0;B<G.length;++B){var F=G[B];if(F&&F.Math==Math)return F}throw Error("a");};
_.ZN=Fta(this);D8v="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.ZN.BigInt64Array&&(D8v.push("BigInt64"),D8v.push("BigUint64"));var RUT=function(G,B){if(B)for(var F=0;F<D8v.length;F++)uaN(D8v[F]+"Array.prototype."+G,B)},zd=function(G,B){B&&uaN(G,B)},uaN=function(G,B){var F=_.ZN;
G=G.split(".");for(var D=0;D<G.length-1;D++){var u=G[D];if(!(u in F))return;F=F[u]}G=G[G.length-1];D=F[G];B=B(D);B!=D&&B!=null&&i7q(F,G,{configurable:!0,writable:!0,value:B})},wsT=function(){function G(){function F(){}
new F;Reflect.construct(F,[],function(){});
return new F instanceof F}
if(typeof Reflect!="undefined"&&Reflect.construct){if(G())return Reflect.construct;var B=Reflect.construct;return function(F,D,u){F=B(F,D);u&&Reflect.setPrototypeOf(F,u.prototype);return F}}return function(F,D,u){u===void 0&&(u=F);
u=Bwq(u.prototype||Object.prototype);return Function.prototype.apply.call(F,u,D)||u}}(),Cys;
if(typeof Object.setPrototypeOf=="function")Cys=Object.setPrototypeOf;else{var NwP;a:{var yTv={a:!0},nvv={};try{nvv.__proto__=yTv;NwP=nvv.a;break a}catch(G){}NwP=!1}Cys=NwP?function(G,B){G.__proto__=B;if(G.__proto__!==B)throw new TypeError("b`"+G);return G}:null}bQ=Cys;
_.r=function(G,B){G.prototype=Bwq(B.prototype);G.prototype.constructor=G;if(bQ)bQ(G,B);else for(var F in B)if(F!="prototype")if(Object.defineProperties){var D=Object.getOwnPropertyDescriptor(B,F);D&&Object.defineProperty(G,F,D)}else G[F]=B[F];G.superClass_=B.prototype};
lq7=function(G){var B=0;return function(){return B<G.length?{done:!1,value:G[B++]}:{done:!0}}};
_.C=function(G){var B=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(B)return B.call(G);if(typeof G.length=="number")return{next:lq7(G)};throw Error("c`"+String(G));};
fn=function(G){for(var B,F=[];!(B=G.next()).done;)F.push(B.value);return F};
_.gi=function(G){return G instanceof Array?G:fn(_.C(G))};
_.vP=function(G){return VG(G,G)};
VG=function(G,B){G.raw=B;Object.freeze&&(Object.freeze(G),Object.freeze(B));return G};
oC=function(G,B){return Object.prototype.hasOwnProperty.call(G,B)};
U8s=function(G){if(G==null)throw new TypeError("d");return Object(G)};
qGN=typeof Object.assign=="function"?Object.assign:function(G,B){G=U8s(G);for(var F=1;F<arguments.length;F++){var D=arguments[F];if(D)for(var u in D)oC(D,u)&&(G[u]=D[u])}return G};
zd("Object.assign",function(G){return G||qGN});
var Mt=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Evq=function(G){if(G.isRunning_)throw new TypeError("f");
G.isRunning_=!0};
Mt.prototype.JSC$9022_next_=function(G){this.yieldResult=G};
var hU8=function(G,B){G.abruptCompletion_={exception:B,isException:!0};G.nextAddress=G.catchAddress_||G.finallyAddress_};
Mt.prototype.return=function(G){this.abruptCompletion_={return:G};this.nextAddress=this.finallyAddress_};
Mt.prototype.yield=function(G,B){this.nextAddress=B;return{value:G}};
Mt.prototype.jumpTo=function(G){this.nextAddress=G};
_.di=function(G){G.nextAddress=0};
_.b5=function(G,B,F){G.catchAddress_=B;F!=void 0&&(G.finallyAddress_=F)};
_.oo=function(G,B){G.catchAddress_=0;G.finallyAddress_=B||0};
_.oY=function(G,B,F){G.nextAddress=B;G.catchAddress_=F||0};
_.Al=function(G,B){G.catchAddress_=B||0;B=G.abruptCompletion_.exception;G.abruptCompletion_=null;return B};
_.vY=function(G,B,F,D){D?G.finallyContexts_[D]=G.abruptCompletion_:G.finallyContexts_=[G.abruptCompletion_];G.catchAddress_=B||0;G.finallyAddress_=F||0};
_.Yd=function(G,B,F){F=G.finallyContexts_.splice(F||0)[0];(F=G.abruptCompletion_=G.abruptCompletion_||F)?F.isException?G.nextAddress=G.catchAddress_||G.finallyAddress_:F.jumpTo!=void 0&&G.finallyAddress_<F.jumpTo?(G.nextAddress=F.jumpTo,G.abruptCompletion_=null):G.nextAddress=G.finallyAddress_:G.nextAddress=B};
Kty=function(G){this.JSC$9027_context_=new Mt;this.program_=G};
m87=function(G,B){Evq(G.JSC$9027_context_);var F=G.JSC$9027_context_.yieldAllIterator_;if(F)return aqv(G,"return"in F?F["return"]:function(D){return{value:D,done:!0}},B,G.JSC$9027_context_.return);
G.JSC$9027_context_.return(B);return px(G)};
aqv=function(G,B,F,D){try{var u=B.call(G.JSC$9027_context_.yieldAllIterator_,F);if(!(u instanceof Object))throw new TypeError("e`"+u);if(!u.done)return G.JSC$9027_context_.isRunning_=!1,u;var R=u.value}catch(N){return G.JSC$9027_context_.yieldAllIterator_=null,hU8(G.JSC$9027_context_,N),px(G)}G.JSC$9027_context_.yieldAllIterator_=null;D.call(G.JSC$9027_context_,R);return px(G)};
px=function(G){for(;G.JSC$9027_context_.nextAddress;)try{var B=G.program_(G.JSC$9027_context_);if(B)return G.JSC$9027_context_.isRunning_=!1,{value:B.value,done:!1}}catch(F){G.JSC$9027_context_.yieldResult=void 0,hU8(G.JSC$9027_context_,F)}G.JSC$9027_context_.isRunning_=!1;if(G.JSC$9027_context_.abruptCompletion_){B=G.JSC$9027_context_.abruptCompletion_;G.JSC$9027_context_.abruptCompletion_=null;if(B.isException)throw B.exception;return{value:B.return,done:!0}}return{value:void 0,done:!0}};
Xs8=function(G){this.next=function(B){Evq(G.JSC$9027_context_);G.JSC$9027_context_.yieldAllIterator_?B=aqv(G,G.JSC$9027_context_.yieldAllIterator_.next,B,G.JSC$9027_context_.JSC$9022_next_):(G.JSC$9027_context_.JSC$9022_next_(B),B=px(G));return B};
this.throw=function(B){Evq(G.JSC$9027_context_);G.JSC$9027_context_.yieldAllIterator_?B=aqv(G,G.JSC$9027_context_.yieldAllIterator_["throw"],B,G.JSC$9027_context_.JSC$9022_next_):(hU8(G.JSC$9027_context_,B),B=px(G));return B};
this.return=function(B){return m87(G,B)};
this[Symbol.iterator]=function(){return this}};
_.Gd=function(G,B){B=new Xs8(new Kty(B));bQ&&G.prototype&&bQ(B,G.prototype);return B};
QqU=function(G){function B(D){return G.next(D)}
function F(D){return G.throw(D)}
return new Promise(function(D,u){function R(N){N.done?D(N.value):Promise.resolve(N.value).then(B,F).then(R,u)}
R(G.next())})};
_.n=function(G){return QqU(new Xs8(new Kty(G)))};
zd("Symbol",function(G){if(G)return G;var B=function(R,N){this.$jscomp$symbol$id_=R;i7q(this,"description",{configurable:!0,writable:!0,value:N})};
B.prototype.toString=function(){return this.$jscomp$symbol$id_};
var F="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",D=0,u=function(R){if(this instanceof u)throw new TypeError("g");return new B(F+(R||"")+"_"+D++,R)};
return u});
zd("Symbol.iterator",function(G){if(G)return G;G=Symbol("h");i7q(Array.prototype,G,{configurable:!0,writable:!0,value:function(){return jqs(lq7(this))}});
return G});
zd("Symbol.asyncIterator",function(G){return G?G:Symbol("i")});
jqs=function(G){G={next:G};G[Symbol.iterator]=function(){return this};
return G};
_.VD=function(G){var B=G[Symbol.asyncIterator];return B!==void 0?B.call(G):new LtG(_.C(G))};
LtG=function(G){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return G};
this.next=function(B){return Promise.resolve(G.next(B))};
this["throw"]=function(B){return new Promise(function(F,D){var u=G["throw"];u!==void 0?F(u.call(G,B)):(F=G["return"],F!==void 0&&F.call(G),D(new TypeError("j")))})};
G["return"]!==void 0&&(this["return"]=function(B){return Promise.resolve(G["return"](B))})};
_.xS=function(){for(var G=Number(this),B=[],F=G;F<arguments.length;F++)B[F-G]=arguments[F];return B};
_.BP=function(G){return G};
zd("globalThis",function(G){return G||_.ZN});
zd("Reflect",function(G){return G?G:{}});
zd("Reflect.construct",function(){return wsT});
zd("Reflect.setPrototypeOf",function(G){return G?G:bQ?function(B,F){try{return bQ(B,F),!0}catch(D){return!1}}:null});
zd("Promise",function(G){function B(){this.batch_=null}
function F(N){return N instanceof u?N:new u(function(y){y(N)})}
if(G&&(typeof _.ZN.PromiseRejectionEvent!=="undefined"||!_.ZN.Promise||_.ZN.Promise.toString().indexOf("[native code]")===-1))return G;B.prototype.asyncExecute=function(N){if(this.batch_==null){this.batch_=[];var y=this;this.asyncExecuteFunction(function(){y.executeBatch_()})}this.batch_.push(N)};
var D=_.ZN.setTimeout;B.prototype.asyncExecuteFunction=function(N){D(N,0)};
B.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var N=this.batch_;this.batch_=[];for(var y=0;y<N.length;++y){var U=N[y];N[y]=null;try{U()}catch(q){this.asyncThrow_(q)}}}this.batch_=null};
B.prototype.asyncThrow_=function(N){this.asyncExecuteFunction(function(){throw N;})};
var u=function(N){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var y=this.createResolveAndReject_();try{N(y.resolve,y.reject)}catch(U){y.reject(U)}};
u.prototype.createResolveAndReject_=function(){function N(q){return function(h){U||(U=!0,q.call(y,h))}}
var y=this,U=!1;return{resolve:N(this.resolveTo_),reject:N(this.JSC$9059_reject_)}};
u.prototype.resolveTo_=function(N){if(N===this)this.JSC$9059_reject_(new TypeError("n"));else if(N instanceof u)this.settleSameAsPromise_(N);else{a:switch(typeof N){case "object":var y=N!=null;break a;case "function":y=!0;break a;default:y=!1}y?this.resolveToNonPromiseObj_(N):this.fulfill_(N)}};
u.prototype.resolveToNonPromiseObj_=function(N){var y=void 0;try{y=N.then}catch(U){this.JSC$9059_reject_(U);return}typeof y=="function"?this.settleSameAsThenable_(y,N):this.fulfill_(N)};
u.prototype.JSC$9059_reject_=function(N){this.settle_(2,N)};
u.prototype.fulfill_=function(N){this.settle_(1,N)};
u.prototype.settle_=function(N,y){if(this.state_!=0)throw Error("o`"+N+"`"+y+"`"+this.state_);this.state_=N;this.result_=y;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
u.prototype.scheduleUnhandledRejectionCheck_=function(){var N=this;D(function(){if(N.notifyUnhandledRejection_()){var y=_.ZN.console;typeof y!=="undefined"&&y.error(N.result_)}},1)};
u.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var N=_.ZN.CustomEvent,y=_.ZN.Event,U=_.ZN.dispatchEvent;if(typeof U==="undefined")return!0;typeof N==="function"?N=new N("unhandledrejection",{cancelable:!0}):typeof y==="function"?N=new y("unhandledrejection",{cancelable:!0}):(N=_.ZN.document.createEvent("CustomEvent"),N.initCustomEvent("unhandledrejection",!1,!0,N));N.promise=this;N.reason=this.result_;return U(N)};
u.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var N=0;N<this.onSettledCallbacks_.length;++N)R.asyncExecute(this.onSettledCallbacks_[N]);this.onSettledCallbacks_=null}};
var R=new B;u.prototype.settleSameAsPromise_=function(N){var y=this.createResolveAndReject_();N.callWhenSettled_(y.resolve,y.reject)};
u.prototype.settleSameAsThenable_=function(N,y){var U=this.createResolveAndReject_();try{N.call(y,U.resolve,U.reject)}catch(q){U.reject(q)}};
u.prototype.then=function(N,y){function U(a,m){return typeof a=="function"?function(L){try{q(a(L))}catch(W){h(W)}}:m}
var q,h,K=new u(function(a,m){q=a;h=m});
this.callWhenSettled_(U(N,q),U(y,h));return K};
u.prototype.catch=function(N){return this.then(void 0,N)};
u.prototype.callWhenSettled_=function(N,y){function U(){switch(q.state_){case 1:N(q.result_);break;case 2:y(q.result_);break;default:throw Error("p`"+q.state_);}}
var q=this;this.onSettledCallbacks_==null?R.asyncExecute(U):this.onSettledCallbacks_.push(U);this.isRejectionHandled_=!0};
u.resolve=F;u.reject=function(N){return new u(function(y,U){U(N)})};
u.race=function(N){return new u(function(y,U){for(var q=_.C(N),h=q.next();!h.done;h=q.next())F(h.value).callWhenSettled_(y,U)})};
u.all=function(N){var y=_.C(N),U=y.next();return U.done?F([]):new u(function(q,h){function K(L){return function(W){a[L]=W;m--;m==0&&q(a)}}
var a=[],m=0;do a.push(void 0),m++,F(U.value).callWhenSettled_(K(a.length-1),h),U=y.next();while(!U.done)})};
return u});
var Yw=function(G,B,F){if(G==null)throw new TypeError("q`"+F);if(B instanceof RegExp)throw new TypeError("r`"+F);return G+""};
zd("String.prototype.startsWith",function(G){return G?G:function(B,F){var D=Yw(this,B,"startsWith"),u=D.length,R=B.length;F=Math.max(0,Math.min(F|0,D.length));for(var N=0;N<R&&F<u;)if(D[F++]!=B[N++])return!1;return N>=R}});
zd("Object.setPrototypeOf",function(G){return G||bQ});
zd("Symbol.dispose",function(G){return G?G:Symbol("s")});
zd("SuppressedError",function(G){function B(F,D,u){if(!(this instanceof B))return new B(F,D,u);u=Error(u);"stack"in u&&(this.stack=u.stack);this.message=u.message;this.error=F;this.suppressed=D}
if(G)return G;_.r(B,Error);B.prototype.name="SuppressedError";return B});
zd("Array.from",function(G){return G?G:function(B,F,D){F=F!=null?F:function(y){return y};
var u=[],R=typeof Symbol!="undefined"&&Symbol.iterator&&B[Symbol.iterator];if(typeof R=="function"){B=R.call(B);for(var N=0;!(R=B.next()).done;)u.push(F.call(D,R.value,N++))}else for(R=B.length,N=0;N<R;N++)u.push(F.call(D,B[N],N));return u}});
var rTP=function(G,B,F){G instanceof String&&(G=String(G));for(var D=G.length,u=0;u<D;u++){var R=G[u];if(B.call(F,R,u,G))return{i:u,v:R}}return{i:-1,v:void 0}};
zd("Array.prototype.find",function(G){return G?G:function(B,F){return rTP(this,B,F).v}});
zd("WeakMap",function(G){function B(){}
function F(U){var q=typeof U;return q==="object"&&U!==null||q==="function"}
function D(U){if(!oC(U,R)){var q=new B;i7q(U,R,{value:q})}}
function u(U){var q=Object[U];q&&(Object[U]=function(h){if(h instanceof B)return h;Object.isExtensible(h)&&D(h);return q(h)})}
if(function(){if(!G||!Object.seal)return!1;try{var U=Object.seal({}),q=Object.seal({}),h=new G([[U,2],[q,3]]);if(h.get(U)!=2||h.get(q)!=3)return!1;h.delete(U);h.set(q,4);return!h.has(U)&&h.get(q)==4}catch(K){return!1}}())return G;
var R="$jscomp_hidden_"+Math.random();u("freeze");u("preventExtensions");u("seal");var N=0,y=function(U){this.JSC$9067_id_=(N+=Math.random()+1).toString();if(U){U=_.C(U);for(var q;!(q=U.next()).done;)q=q.value,this.set(q[0],q[1])}};
y.prototype.set=function(U,q){if(!F(U))throw Error("t");D(U);if(!oC(U,R))throw Error("u`"+U);U[R][this.JSC$9067_id_]=q;return this};
y.prototype.get=function(U){return F(U)&&oC(U,R)?U[R][this.JSC$9067_id_]:void 0};
y.prototype.has=function(U){return F(U)&&oC(U,R)&&oC(U[R],this.JSC$9067_id_)};
y.prototype.delete=function(U){return F(U)&&oC(U,R)&&oC(U[R],this.JSC$9067_id_)?delete U[R][this.JSC$9067_id_]:!1};
return y});
zd("Map",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),U=new G(_.C([[y,"s"]]));if(U.get(y)!="s"||U.size!=1||U.get({x:4})||U.set({x:4},"t")!=U||U.size!=2)return!1;var q=U.entries(),h=q.next();if(h.done||h.value[0]!=y||h.value[1]!="s")return!1;h=q.next();return h.done||h.value[0].x!=4||h.value[1]!="t"||!q.next().done?!1:!0}catch(K){return!1}}())return G;
var B=new WeakMap,F=function(y){this[0]={};this[1]=R();this.size=0;if(y){y=_.C(y);for(var U;!(U=y.next()).done;)U=U.value,this.set(U[0],U[1])}};
F.prototype.set=function(y,U){y=y===0?0:y;var q=D(this,y);q.list||(q.list=this[0][q.id]=[]);q.entry?q.entry.value=U:(q.entry={next:this[1],previous:this[1].previous,head:this[1],key:y,value:U},q.list.push(q.entry),this[1].previous.next=q.entry,this[1].previous=q.entry,this.size++);return this};
F.prototype.delete=function(y){y=D(this,y);return y.entry&&y.list?(y.list.splice(y.index,1),y.list.length||delete this[0][y.id],y.entry.previous.next=y.entry.next,y.entry.next.previous=y.entry.previous,y.entry.head=null,this.size--,!0):!1};
F.prototype.clear=function(){this[0]={};this[1]=this[1].previous=R();this.size=0};
F.prototype.has=function(y){return!!D(this,y).entry};
F.prototype.get=function(y){return(y=D(this,y).entry)&&y.value};
F.prototype.entries=function(){return u(this,function(y){return[y.key,y.value]})};
F.prototype.keys=function(){return u(this,function(y){return y.key})};
F.prototype.values=function(){return u(this,function(y){return y.value})};
F.prototype.forEach=function(y,U){for(var q=this.entries(),h;!(h=q.next()).done;)h=h.value,y.call(U,h[1],h[0],this)};
F.prototype[Symbol.iterator]=F.prototype.entries;var D=function(y,U){var q=U&&typeof U;q=="object"||q=="function"?B.has(U)?q=B.get(U):(q=""+ ++N,B.set(U,q)):q="p_"+U;var h=y[0][q];if(h&&oC(y[0],q))for(y=0;y<h.length;y++){var K=h[y];if(U!==U&&K.key!==K.key||U===K.key)return{id:q,list:h,index:y,entry:K}}return{id:q,list:h,index:-1,entry:void 0}},u=function(y,U){var q=y[1];
return jqs(function(){if(q){for(;q.head!=y[1];)q=q.previous;for(;q.next!=q.head;)return q=q.next,{done:!1,value:U(q)};q=null}return{done:!0,value:void 0}})},R=function(){var y={};
return y.previous=y.next=y.head=y},N=0;
return F});
zd("Set",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var F=Object.seal({x:4}),D=new G(_.C([F]));if(!D.has(F)||D.size!=1||D.add(F)!=D||D.size!=1||D.add({x:4})!=D||D.size!=2)return!1;var u=D.entries(),R=u.next();if(R.done||R.value[0]!=F||R.value[1]!=F)return!1;R=u.next();return R.done||R.value[0]==F||R.value[0].x!=4||R.value[1]!=R.value[0]?!1:u.next().done}catch(N){return!1}}())return G;
var B=function(F){this.JSC$9081_map_=new Map;if(F){F=_.C(F);for(var D;!(D=F.next()).done;)this.add(D.value)}this.size=this.JSC$9081_map_.size};
B.prototype.add=function(F){F=F===0?0:F;this.JSC$9081_map_.set(F,F);this.size=this.JSC$9081_map_.size;return this};
B.prototype.delete=function(F){F=this.JSC$9081_map_.delete(F);this.size=this.JSC$9081_map_.size;return F};
B.prototype.clear=function(){this.JSC$9081_map_.clear();this.size=0};
B.prototype.has=function(F){return this.JSC$9081_map_.has(F)};
B.prototype.entries=function(){return this.JSC$9081_map_.entries()};
B.prototype.values=function(){return this.JSC$9081_map_.values()};
B.prototype.keys=B.prototype.values;B.prototype[Symbol.iterator]=B.prototype.values;B.prototype.forEach=function(F,D){var u=this;this.JSC$9081_map_.forEach(function(R){return F.call(D,R,R,u)})};
return B});
zd("Math.log2",function(G){return G?G:function(B){return Math.log(B)/Math.LN2}});
zd("Object.values",function(G){return G?G:function(B){var F=[],D;for(D in B)oC(B,D)&&F.push(B[D]);return F}});
zd("Object.is",function(G){return G?G:function(B,F){return B===F?B!==0||1/B===1/F:B!==B&&F!==F}});
zd("Array.prototype.includes",function(G){return G?G:function(B,F){var D=this;D instanceof String&&(D=String(D));var u=D.length;F=F||0;for(F<0&&(F=Math.max(F+u,0));F<u;F++){var R=D[F];if(R===B||Object.is(R,B))return!0}return!1}});
zd("String.prototype.includes",function(G){return G?G:function(B,F){return Yw(this,B,"includes").indexOf(B,F||0)!==-1}});
zd("Object.entries",function(G){return G?G:function(B){var F=[],D;for(D in B)oC(B,D)&&F.push([D,B[D]]);return F}});
zd("Number.isFinite",function(G){return G?G:function(B){return typeof B!=="number"?!1:!isNaN(B)&&B!==Infinity&&B!==-Infinity}});
zd("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
zd("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
zd("Number.isInteger",function(G){return G?G:function(B){return Number.isFinite(B)?B===Math.floor(B):!1}});
zd("Number.isSafeInteger",function(G){return G?G:function(B){return Number.isInteger(B)&&Math.abs(B)<=Number.MAX_SAFE_INTEGER}});
zd("String.prototype.endsWith",function(G){return G?G:function(B,F){var D=Yw(this,B,"endsWith");F===void 0&&(F=D.length);F=Math.max(0,Math.min(F|0,D.length));for(var u=B.length;u>0&&F>0;)if(D[--F]!=B[--u])return!1;return u<=0}});
var Wtw=function(G,B){G instanceof String&&(G+="");var F=0,D=!1,u={next:function(){if(!D&&F<G.length){var R=F++;return{value:B(R,G[R]),done:!1}}D=!0;return{done:!0,value:void 0}}};
u[Symbol.iterator]=function(){return u};
return u};
zd("Array.prototype.entries",function(G){return G?G:function(){return Wtw(this,function(B,F){return[B,F]})}});
zd("Math.trunc",function(G){return G?G:function(B){B=Number(B);if(isNaN(B)||B===Infinity||B===-Infinity||B===0)return B;var F=Math.floor(Math.abs(B));return B<0?-F:F}});
zd("Number.isNaN",function(G){return G?G:function(B){return typeof B==="number"&&isNaN(B)}});
zd("Array.prototype.keys",function(G){return G?G:function(){return Wtw(this,function(B){return B})}});
zd("Array.prototype.values",function(G){return G?G:function(){return Wtw(this,function(B,F){return F})}});
zd("Array.prototype.fill",function(G){return G?G:function(B,F,D){var u=this.length||0;F<0&&(F=Math.max(0,u+F));if(D==null||D>u)D=u;D=Number(D);D<0&&(D=Math.max(0,u+D));for(F=Number(F||0);F<D;F++)this[F]=B;return this}});
RUT("fill",function(G){return G?G:Array.prototype.fill});
zd("Object.fromEntries",function(G){return G?G:function(B){var F={};if(!(Symbol.iterator in B))throw new TypeError("v`"+B);B=B[Symbol.iterator].call(B);for(var D=B.next();!D.done;D=B.next()){D=D.value;if(Object(D)!==D)throw new TypeError("w");F[D[0]]=D[1]}return F}});
zd("String.prototype.replaceAll",function(G){return G?G:function(B,F){if(B instanceof RegExp&&!B.global)throw new TypeError("x");return B instanceof RegExp?this.replace(B,F):this.replace(new RegExp(String(B).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),F)}});
zd("Object.getOwnPropertySymbols",function(G){return G?G:function(){return[]}});
zd("String.prototype.repeat",function(G){return G?G:function(B){var F=Yw(this,null,"repeat");if(B<0||B>1342177279)throw new RangeError("y");B|=0;for(var D="";B;)if(B&1&&(D+=F),B>>>=1)F+=F;return D}});
zd("Array.prototype.findIndex",function(G){return G?G:function(B,F){return rTP(this,B,F).i}});
zd("Array.prototype.flatMap",function(G){return G?G:function(B,F){var D=[];Array.prototype.forEach.call(this,function(u,R){u=B.call(F,u,R,this);Array.isArray(u)?D.push.apply(D,u):D.push(u)});
return D}});
zd("String.prototype.codePointAt",function(G){return G?G:function(B){var F=Yw(this,null,"codePointAt"),D=F.length;B=Number(B)||0;if(B>=0&&B<D){B|=0;var u=F.charCodeAt(B);if(u<55296||u>56319||B+1===D)return u;B=F.charCodeAt(B+1);return B<56320||B>57343?u:(u-55296)*1024+B+9216}}});
zd("String.fromCodePoint",function(G){return G?G:function(B){for(var F="",D=0;D<arguments.length;D++){var u=Number(arguments[D]);if(u<0||u>1114111||u!==Math.floor(u))throw new RangeError("z`"+u);u<=65535?F+=String.fromCharCode(u):(u-=65536,F+=String.fromCharCode(u>>>10&1023|55296),F+=String.fromCharCode(u&1023|56320))}return F}});
zd("String.prototype.trimLeft",function(G){function B(){return this.replace(/^[\s\xa0]+/,"")}
return G||B});
zd("String.prototype.trimStart",function(G){return G||String.prototype.trimLeft});
zd("String.prototype.padStart",function(G){return G?G:function(B,F){var D=Yw(this,null,"padStart");B-=D.length;F=F!==void 0?String(F):" ";return(B>0&&F?F.repeat(Math.ceil(B/F.length)).substring(0,B):"")+D}});
zd("Promise.prototype.finally",function(G){return G?G:function(B){return this.then(function(F){return Promise.resolve(B()).then(function(){return F})},function(F){return Promise.resolve(B()).then(function(){throw F;
})})}});
zd("Math.imul",function(G){return G?G:function(B,F){B=Number(B);F=Number(F);var D=B&65535,u=F&65535;return D*u+((B>>>16&65535)*u+D*(F>>>16&65535)<<16>>>0)|0}});
zd("Object.hasOwn",function(G){return G?G:function(B,F){return Object.prototype.hasOwnProperty.call(B,F)}});
var H7P=function(G){G=Math.trunc(G)||0;G<0&&(G+=this.length);if(!(G<0||G>=this.length))return this[G]};
zd("Array.prototype.at",function(G){return G?G:H7P});
RUT("at",function(G){return G?G:H7P});
zd("String.prototype.at",function(G){return G?G:H7P});
zd("Math.sign",function(G){return G?G:function(B){B=Number(B);return B===0||isNaN(B)?B:B>0?1:-1}});
zd("Array.prototype.flat",function(G){return G?G:function(B){B=B===void 0?1:B;var F=[];Array.prototype.forEach.call(this,function(D){Array.isArray(D)&&B>0?(D=Array.prototype.flat.call(D,B-1),F.push.apply(F,D)):F.push(D)});
return F}});
zd("String.raw",function(G){return G?G:function(B,F){B=U8s(B);for(var D=B.raw,u=D.length,R="",N=0;N<u;++N)R+=D[N],N+1<u&&N+1<arguments.length&&(R+=String(arguments[N+1]));return R}});
zd("WeakSet",function(G){if(function(){if(!G||!Object.seal)return!1;try{var F=Object.seal({}),D=Object.seal({}),u=new G([F]);if(!u.has(F)||u.has(D))return!1;u.delete(F);u.add(D);return!u.has(F)&&u.has(D)}catch(R){return!1}}())return G;
var B=function(F){this.JSC$9096_map_=new WeakMap;if(F){F=_.C(F);for(var D;!(D=F.next()).done;)this.add(D.value)}};
B.prototype.add=function(F){this.JSC$9096_map_.set(F,!0);return this};
B.prototype.has=function(F){return this.JSC$9096_map_.has(F)};
B.prototype.delete=function(F){return this.JSC$9096_map_.delete(F)};
return B});
zd("Reflect.ownKeys",function(G){return G?G:function(B){var F=[],D=Object.getOwnPropertyNames(B);B=Object.getOwnPropertySymbols(B);for(var u=0;u<D.length;u++)(D[u].substring(0,14)=="jscomp_symbol_"?B:F).push(D[u]);return F.concat(B)}});
zd("Object.getOwnPropertyDescriptors",function(G){return G?G:function(B){for(var F={},D=Reflect.ownKeys(B),u=0;u<D.length;u++)F[D[u]]=Object.getOwnPropertyDescriptor(B,D[u]);return F}});
zd("Promise.allSettled",function(G){function B(D){return{status:"fulfilled",value:D}}
function F(D){return{status:"rejected",reason:D}}
return G?G:function(D){var u=this;D=Array.from(D,function(R){return u.resolve(R).then(B,F)});
return u.all(D)}});
zd("Number.parseInt",function(G){return G||parseInt});
var kLq=function(G,B,F){G instanceof String&&(G=String(G));for(var D=G.length-1;D>=0;D--){var u=G[D];if(B.call(F,u,D,G))return{i:D,v:u}}return{i:-1,v:void 0}};
zd("Array.prototype.findLastIndex",function(G){return G?G:function(B,F){return kLq(this,B,F).i}});
RUT("findLastIndex",function(G){return G?G:function(B,F){return kLq(this,B,F).i}});
_._DumpException=window._DumpException||function(G){throw G;};
window._DumpException=_._DumpException;var O7q=window.ytcsi;O7q&&typeof O7q.tick==="function"&&O7q.tick("rses_dpj");var eUN,A1,d6,J1,$8y,zUa,b78,VNs,vS,vvT;eUN=eUN||{};_.Fz=this||self;_.IY=function(G,B,F){G=G.split(".");F=F||_.Fz;for(var D;G.length&&(D=G.shift());)G.length||B===void 0?F[D]&&F[D]!==Object.prototype[D]?F=F[D]:F=F[D]={}:F[D]=B};
A1=function(G,B){var F=_.Yf("WIZ_global_data.oxN3nb");G=F&&F[G];return G!=null?G:B};
d6=_.Fz._F_toggles_default_kevlar_base||[];J1=function(){};
J1.get=function(){return null};
_.Gc=null;_.Yf=function(G,B){G=G.split(".");B=B||_.Fz;for(var F=0;F<G.length;F++)if(B=B[G[F]],B==null)return null;return B};
_.cP=function(G){G.instance_=void 0;G.getInstance=function(){return G.instance_?G.instance_:G.instance_=new G}};
_.DZ=function(G){var B=typeof G;return B!="object"?B:G?Array.isArray(G)?"array":B:"null"};
_.fQ=function(G){var B=_.DZ(G);return B=="array"||B=="object"&&typeof G.length=="number"};
_.Zc=function(G){var B=typeof G;return B=="object"&&G!=null||B=="function"};
_.S8=function(G){return Object.prototype.hasOwnProperty.call(G,$8y)&&G[$8y]||(G[$8y]=++zUa)};
$8y="closure_uid_"+(Math.random()*1E9>>>0);zUa=0;b78=function(G,B,F){return G.call.apply(G.bind,arguments)};
VNs=function(G,B,F){if(!G)throw Error();if(arguments.length>2){var D=Array.prototype.slice.call(arguments,2);return function(){var u=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(u,D);return G.apply(B,u)}}return function(){return G.apply(B,arguments)}};
_.R_=function(G,B,F){_.R_=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?b78:VNs;return _.R_.apply(null,arguments)};
_.Fw=function(G,B){var F=Array.prototype.slice.call(arguments,1);return function(){var D=F.slice();D.push.apply(D,arguments);return G.apply(this,D)}};
_.Td=function(){return Date.now()};
vS=function(G){return G};
_.IC=function(G,B){function F(){}
F.prototype=B.prototype;G.superClass_=B.prototype;G.prototype=new F;G.prototype.constructor=G;G.base=function(D,u,R){for(var N=Array(arguments.length-2),y=2;y<arguments.length;y++)N[y-2]=arguments[y];return B.prototype[u].apply(D,N)}};
vvT=function(G){return G};var ov7,MN8;_.c=function(G,B,F,D){var u=arguments.length,R=u<3?B:D===null?D=Object.getOwnPropertyDescriptor(B,F):D,N;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")R=Reflect.decorate(G,B,F,D);else for(var y=G.length-1;y>=0;y--)if(N=G[y])R=(u<3?N(R):u>3?N(B,F,R):N(B,F))||R;u>3&&R&&Object.defineProperty(B,F,R)};
_.I=function(G,B){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,B)};
ov7=function(G,B){if(B!==null&&B!==void 0){if(typeof B!=="object"&&typeof B!=="function")throw new TypeError("B");if(F===void 0){if(!Symbol.dispose)throw new TypeError("D");var F=B[Symbol.dispose]}if(typeof F!=="function")throw new TypeError("E");G.stack.push({value:B,dispose:F,async:!1})}return B};
MN8=function(G){function B(R){G.error=G.hasError?new SuppressedError(R,G.error,"An error was suppressed during disposal."):R;G.hasError=!0}
function F(){for(;D=G.stack.pop();)try{if(!D.async&&u===1)return u=0,G.stack.push(D),Promise.resolve().then(F);if(D.dispose){var R=D.dispose.call(D.value);if(D.async)return u|=2,Promise.resolve(R).then(F,function(N){B(N);return F()})}else u|=1}catch(N){B(N)}if(u===1)return G.hasError?Promise.reject(G.error):Promise.resolve();
if(G.hasError)throw G.error;}
var D,u=0;F()};var psw="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");Gs8()&&psw.push("details:not(:has(summary))");var iQM=psw.join(",");_.IC(_.Gs,Error);_.Gs.prototype.name="CustomError";var YGv;var ATs=void 0,d8T,JTy=typeof TextDecoder!=="undefined",nMS,ygS=typeof String.prototype.isWellFormed==="function",NU8=typeof TextEncoder!=="undefined";var ES=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},cTv=/&/g,Tw8=/</g,IqP=/>/g,fqG=/"/g,tNP=/'/g,Z7N=/\x00/g,gvG=/[\x00&<>"']/;var fx=!!(d6[0]>>17&1),SGq=!!(d6[0]&4096),sqN=!!(d6[0]>>18&1),x8P=!!(d6[0]&8),Pyq=!!(d6[0]&2),G$P=!!(d6[0]&4),B$y=!!(d6[0]&16),iNy=!!(d6[0]&256),FUP=!!(d6[0]&32),DH7=!!(d6[0]&1024);var uDy,j8,RBL,wSN,CGL,TRQ,bN8,N$G;uDy=A1(1,!0);j8=fx?sqN:A1(610401301,!1);RBL=fx?SGq||!x8P:A1(772657768,uDy);wSN=fx?Pyq:A1(513659523,!1);CGL=fx?SGq||!G$P:A1(568333945,!0);TRQ=fx?B$y:A1(1331761403,!1);bN8=fx?SGq||!iNy:A1(748402147,!0);_.t1=fx?SGq||!FUP:A1(824648567,uDy);N$G=fx?DH7:A1(824656860,!1);var LQ,y2L=_.Fz.navigator;LQ=y2L?y2L.userAgentData||null:null;var Ao;_.ML=function(G,B){return Array.prototype.indexOf.call(G,B,void 0)};
_.dn=function(G,B,F){Array.prototype.forEach.call(G,B,F)};
_.Zw=function(G,B,F){return Array.prototype.filter.call(G,B,F)};
_.qK=function(G,B,F){return Array.prototype.map.call(G,B,F)};
Ao=function(G,B,F){return Array.prototype.some.call(G,B,F)};
_.$5U=function(G,B,F){return Array.prototype.every.call(G,B,F)};var g6=function(G){g6[" "](G);return G};
g6[" "]=function(){};
var xPM=function(G,B){try{return g6(G[B]),!0}catch(F){}return!1},Xos=function(G,B,F,D){D=D?D(B):B;
return Object.prototype.hasOwnProperty.call(G,D)?G[D]:G[D]=F(B)};var nDP,cQ,lZT,UHU,EDP,hBt,c9J,KUq,aZy,mHq,rzS,Qzq,jzs,HNs,k$L,ONN;_.f2o=function(){return _.Fz.navigator||null};
nDP=hJQ();_.ST=Kgl();cQ=rU("Edge");lZT=cQ||_.ST;_.ih=rU("Gecko")&&!(_.qL(_.Qo(),"WebKit")&&!rU("Edge"))&&!(rU("Trident")||rU("MSIE"))&&!rU("Edge");_.Bz=_.qL(_.Qo(),"WebKit")&&!rU("Edge");UHU=_.Bz&&rU("Mobile");_.qA7=_.HQS();EDP=_.ksL();hBt=($M()?LQ.platform==="Linux":rU("Linux"))||_.OQI();c9J=_.rg8();KUq=WgM();aZy=rU("iPad");mHq=rU("iPod");_.XSa=_.zs();rzS=_.qL(_.Qo(),"KaiOS");Qzq=function(){var G=_.Fz.document;return G?G.documentMode:void 0};
a:{var LUw="",r2y=function(){var G=_.Qo();if(_.ih)return/rv:([^\);]+)(\)|;)/.exec(G);if(cQ)return/Edge\/([\d\.]+)/.exec(G);if(_.ST)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(G);if(_.Bz)return/WebKit\/(\S+)/.exec(G);if(nDP)return/(?:Version)[ \/]?(\S+)/.exec(G)}();
r2y&&(LUw=r2y?r2y[1]:"");if(_.ST){var WUs=Qzq();if(WUs!=null&&WUs>parseFloat(LUw)){jzs=String(WUs);break a}}jzs=LUw}HNs=jzs;k$L={};_.s$=function(G){return Xos(k$L,G,function(){return _.mg(HNs,G)>=0})};
if(_.Fz.document&&_.ST){var eB7=Qzq();ONN=eB7?eB7:parseInt(HNs,10)||void 0}else ONN=void 0;_.$H7=ONN;var WDI,HJ6,zB7;_.xw=kM();WDI=WgM()||rU("iPod");HJ6=rU("iPad");zB7=_.X6J();_.PP=e8();_.Of=_.mLM()&&!_.zs();var dLg={},Bs=null,Xeo=_.ih||_.Bz||typeof _.Fz.btoa=="function";var Ftz=typeof Uint8Array!=="undefined",t8z=!_.ST&&typeof btoa==="function",ZQQ=/[-_.]/g,Icg={"-":"+",_:"/",".":"="},zL={};var $v,VQs;$v=function(G,B){if(B!==zL)throw Error("K");this.JSC$9130_value_=G;if(G!=null&&G.length===0)throw Error("J");};
_.by=function(){return bNN||(bNN=new $v(null,zL))};
VQs=function(G){return new Uint8Array(Bmo(G)||0)};
$v.prototype.isEmpty=function(){return this.JSC$9130_value_==null};
$v.prototype.sizeBytes=function(){var G=Bmo(this);return G?G.length:0};
var Bmo=function(G){if(zL!==zL)throw Error("K");var B=G.JSC$9130_value_;B==null||Ftz&&B!=null&&B instanceof Uint8Array||(typeof B==="string"?B=gMl(B):(_.DZ(B),B=null));return B==null?B:G.JSC$9130_value_=B},bNN;var sIJ=void 0;var uy=typeof Symbol==="function"&&typeof Symbol()==="symbol",vDq=Dq("jas",void 0,!0),sq8=Dq(void 0,"0di"),Ce=Dq(void 0,"1oa"),pN=Dq(void 0,Symbol()),UHJ=Dq(void 0,"0ub"),EDo=Dq(void 0,"0ubs"),pXU=Dq(void 0,"0ubsb"),vDc=Dq(void 0,"0actk"),$D=Dq("m_m","messagePrototypeMarker",!0),HN6=Dq(void 0,"vps"),y2s=Dq();var GLQ,Pls,SQ,oDL;GLQ={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Pls=Object.defineProperties;_.Rq=uy?vDq:"internalArrayState";oDL=[];ly(oDL,7);SQ=Object.freeze(oDL);var bG={},kv={},MQG=function(G,B,F){this.iterable=G;this.mapper=B;this.thisArg=F};
MQG.prototype.next=function(){var G=this.iterable.next();G.done||(G.value=this.mapper.call(this.thisArg,G.value));return G};
MQG.prototype[Symbol.iterator]=function(){return this};
var pSt=Object.freeze({}),vs={};var RUg=void 0,wsg=p7(function(G){return G!==null&&G!==void 0});var lqQ=p7(function(G){return typeof G==="number"}),nvM=p7(function(G){return typeof G==="string"}),qG8=p7(function(G){return typeof G==="boolean"}),YAq=p7(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),jYc=p7(function(G){return typeof G==="function"}),BN=p7(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var U86=typeof _.Fz.BigInt==="function"&&typeof _.Fz.BigInt(0)==="bigint";var TwL=p7(function(G){return U86?G>=A2w&&G<=dHP:G[0]==="-"?EvI(G,J2G):EvI(G,c2N)}),J2G=Number.MIN_SAFE_INTEGER.toString(),A2w=U86?BigInt(Number.MIN_SAFE_INTEGER):void 0,c2N=Number.MAX_SAFE_INTEGER.toString(),dHP=U86?BigInt(Number.MAX_SAFE_INTEGER):void 0;var T$L=typeof Uint8Array.prototype.slice==="function",AT=0,dw=0,aqM;var az,jQ,uG,Q$,eU8;az=typeof BigInt==="function"?BigInt.asIntN:void 0;_.r$=typeof BigInt==="function"?BigInt.asUintN:void 0;jQ=Number.isSafeInteger;uG=Number.isFinite;Q$=Math.trunc;eU8=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var k$s={};var wS8={},IZL=function(){try{var G=function(){return wsT(Map,[],this.constructor)};
_.r(G,Map);g6(new G);return!1}catch(B){return!0}}(),G9=function(){this.JSC$9149_map_=new Map};
_.w=G9.prototype;_.w.get=function(G){return this.JSC$9149_map_.get(G)};
_.w.set=function(G,B){this.JSC$9149_map_.set(G,B);this.size=this.JSC$9149_map_.size;return this};
_.w.delete=function(G){G=this.JSC$9149_map_.delete(G);this.size=this.JSC$9149_map_.size;return G};
_.w.clear=function(){this.JSC$9149_map_.clear();this.size=this.JSC$9149_map_.size};
_.w.has=function(G){return this.JSC$9149_map_.has(G)};
_.w.entries=function(){return this.JSC$9149_map_.entries()};
_.w.keys=function(){return this.JSC$9149_map_.keys()};
_.w.values=function(){return this.JSC$9149_map_.values()};
_.w.forEach=function(G,B){return this.JSC$9149_map_.forEach(G,B)};
G9.prototype[Symbol.iterator]=function(){return this.entries()};
var BU=function(){if(IZL)return Object.setPrototypeOf(G9.prototype,Map.prototype),Object.defineProperties(G9.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),G9;var G=function(){return wsT(Map,[],this.constructor)};
_.r(G,Map);return G}(),V$=function(G,B,F,D){F=F===void 0?iNl:F;
D=D===void 0?iNl:D;var u=BU.call(this)||this;u.arrayState=G[_.Rq]|0;u.valueCtor=B;u.keyToApi=F;u.valueToApi=u.valueCtor?DHQ:D;for(var R=0;R<G.length;R++){var N=G[R],y=F(N[0],!1,!0),U=N[1];B?U===void 0&&(U=null):U=D(N[1],!1,!0,void 0,void 0,u.arrayState);BU.prototype.set.call(u,y,U)}return u};
_.r(V$,BU);var fZL=function(G){if(G.arrayState&2)throw Error("O");},WU6=function(G,B){return QP(Array.from(BU.prototype.entries.call(G),B))};
_.w=V$.prototype;_.w.clear=function(){fZL(this);BU.prototype.clear.call(this)};
_.w.delete=function(G){fZL(this);return BU.prototype.delete.call(this,this.keyToApi(G,!0,!1))};
_.w.entries=function(){if(this.valueCtor){var G=BU.prototype.keys.call(this);G=new MQG(G,uDl,this)}else G=BU.prototype.entries.call(this);return G};
_.w.values=function(){if(this.valueCtor){var G=BU.prototype.keys.call(this);G=new MQG(G,V$.prototype.get,this)}else G=BU.prototype.values.call(this);return G};
_.w.forEach=function(G,B){this.valueCtor?BU.prototype.forEach.call(this,function(F,D,u){G.call(B,u.get(D),D,u)}):BU.prototype.forEach.call(this,G,B)};
_.w.set=function(G,B){fZL(this);G=this.keyToApi(G,!0,!1);return G==null?this:B==null?(BU.prototype.delete.call(this,G),this):BU.prototype.set.call(this,G,this.valueToApi(B,!0,!0,this.valueCtor,!1,this.arrayState))};
_.w.has=function(G){return BU.prototype.has.call(this,this.keyToApi(G,!1,!1))};
_.w.get=function(G){G=this.keyToApi(G,!1,!1);var B=BU.prototype.get.call(this,G);if(B!==void 0){var F=this.valueCtor;return F?(F=this.valueToApi(B,!1,!0,F,this.callToMutableOnAccess,this.arrayState),F!==B&&BU.prototype.set.call(this,G,F),F):B}};
V$.prototype[Symbol.iterator]=function(){return this.entries()};
V$.prototype.toJSON=void 0;var RBs;var mHc=function(){},KUI=function(G,B){for(var F in G)!isNaN(F)&&B(G,+F,G[F])},XSz=function(G){var B=new mHc;
KUI(G,function(F,D,u){B[D]=G$(u)});
B.reviveUnknownFields=G.reviveUnknownFields;return B},nDo={reviveIntoImmutable:!0};var aZl;var ON8,eBQ;var tQT,FA,uZ,nZ,ZNN,y1,NI,gDy,szt,E8,xHU,hR,mv,XS;tQT=_.Yv(0);_.ic={};_.uc=function(G,B,F,D,u){B=FA(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B,F,u);if(B!==null||D&&G.noLegacyNull!==kv)return B};
FA=function(G,B,F,D){if(B===-1)return null;var u=B+(F?0:-1),R=G.length-1;if(!(R<1+(F?0:-1))){if(u>=R){var N=G[R];if(N!=null&&typeof N==="object"&&N.constructor===Object){F=N[B];var y=!0}else if(u===R)F=N;else return}else F=G[u];if(D&&F!=null){D=D(F);if(D==null)return D;if(!Object.is(D,F))return y?N[B]=D:G[u]=D,D}return F}};
_.PQ=function(G,B,F,D){fN(G);var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g$(u,u[_.Rq]|0,B,F,D);return G};
_.RD=function(G,B,F){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return SAc(G,G[_.Rq]|0,B,F)!==void 0};
_.wI=function(G,B,F,D){var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return SAc(u,u[_.Rq]|0,B,nZ(G,D,F))!==void 0};
_.Yk=function(G){return G===pSt?2:4};
_.CX=function(G,B){G=_.uc(G,B,void 0,void 0,T$s);return G==null?_.by():G};
uZ=function(G,B,F,D){fN(G);var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=u[_.Rq]|0;if(D==null){var N=tQg(u);if(ZN8(N,u,R,F)===B)N.set(F,0);else return G}else R=gDl(u,R,F,B);g$(u,R,B,D);return G};
_.WX=function(G,B,F,D){var u=G[_.Rq]|0,R=oq(u);u=gDl(G,u,F,B,R);g$(G,u,B,D,R)};
nZ=function(G,B,F){return _.NV(G,B)===F?F:-1};
_.NV=function(G,B){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ZN8(tQg(G),G,void 0,B,void 0)};
ZNN=function(G,B,F){var D=G[_.Rq]|0,u=oq(D),R=FA(G,F,u);if(R!=null&&R[$D]===bG){if(!OG(R))return T$(R),R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var N=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(R)&&(N=R);if(N){var y=N[_.Rq]|0;y&2&&(N=cS(N,y))}N=A2(N,B);N!==R&&g$(G,D,F,N,u);return N};
_.sf=function(G,B,F,D){var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=u[_.Rq]|0;B=SAc(u,R,B,F,D);if(B==null)return B;R=u[_.Rq]|0;if(!OG(G,R)){var N=FUo(B);N!==B&&(T$(G)&&(u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=u[_.Rq]|0),B=N,R=g$(u,R,F,B,D),t2(u,R))}return B};
_.pT=function(G,B,F,D){var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return szg(G,u,u[_.Rq]|0,B,F,D,!1,!0)};
_.ba=function(G,B,F,D){F=xHJ(F);_.PQ(G,B,F,D);F&&!OG(F)&&t2(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
_.VC=function(G,B,F,D){D=xHJ(D);uZ(G,B,F,D);D&&!OG(D)&&t2(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
y1=function(G,B,F){fN(G);var D=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=D[_.Rq]|0;if(F==null)return g$(D,u,B),G;for(var R=F===SQ?7:F[_.Rq]|0,N=R,y=BX(R),U=y||Object.isFrozen(F),q=!0,h=!0,K=0;K<F.length;K++){var a=F[K];y||(a=OG(a),q&&(q=!a),h&&(h=a))}y||(R=q?13:5,R=h?R&-4097:R|4096);U&&R===N||(F=G$(F),N=0,R=sA(R,u));R!==N&&ly(F,R);u=g$(D,u,B,F);2&R||!(4096&R||16&R)||t2(D,u);return G};
NI=function(G,B,F,D){GX8(G,B,F,D);return G};
gDy=function(G,B,F){GX8(G,B,nX,void 0,F,1,!0);return G};
_.SAq=function(G,B){return N$G?Iqo(_.uc(G,B,void 0,void 0,tNo)):Iqo(_.uc(G,B))};
_.lc=function(G,B,F){return N$G?_.uc(G,B,void 0,F,tNo):tNo(_.uc(G,B,void 0,F))};
_.U8=function(G,B,F){return N$G?_.uc(G,B,void 0,F,Z78):Z78(_.uc(G,B,void 0,F))};
_.qV=function(G,B){var F=F===void 0?!1:F;var D;return(D=_.O7c(_.uc(G,B)))!=null?D:F};
_.AM=function(G,B,F){F=F===void 0?0:F;var D;return(D=_.UA(_.uc(G,B)))!=null?D:F};
szt=function(G,B){var F=F===void 0?0:F;G=_.zUz(_.uc(G,B));return G!=null?G:F};
E8=function(G,B,F){F=F===void 0?tQT:F;var D;return(D=_.lc(G,B))!=null?D:F};
xHU=function(G){var B=B===void 0?tQT:B;var F;return(F=_.U8(G,23))!=null?F:B};
hR=function(G,B){var F=F===void 0?0:F;var D;return(D=_.uc(G,B,void 0,void 0,_.FD))!=null?D:F};
_.KX=function(G,B,F,D){F=F===void 0?"":F;var u;return(u=_.eQ(_.uc(G,B,D)))!=null?u:F};
_.aD=function(G,B){var F=F===void 0?0:F;var D;return(D=_.nN(_.uc(G,B)))!=null?D:F};
mv=function(G,B){var F=F===void 0?"0":F;G=N$G?fqS(_.uc(G,B,void 0,void 0,tNo)):fqS(_.uc(G,B),!0);return G!=null?G:F};
_.PGy=function(G,B,F){G=_.GX(G,B,_.eQ,3,!0);D8M(G,F);return G[F]};
XS=function(G,B,F){return _.KX(G,nZ(G,F,B))};
_.Q1=function(G,B,F,D){return _.sf(G,B,nZ(G,D,F),void 0)};
_.Pe=function(G,B){return _.eQ(_.uc(G,B,void 0,_.ic))};
_.Ii=function(G,B,F){return _.PQ(G,B,kLI(F))};
_.y9=function(G,B,F){return _.ua(G,B,kLI(F),!1)};
_.jU=function(G,B,F){return _.PQ(G,B,_.lG(F))};
_.Ez=function(G,B,F){return _.PQ(G,B,XD(F))};
_.wq=function(G,B,F){return _.PQ(G,B,HS(F))};
_.v0=function(G,B,F,D){return _.ua(G,B,HS(F),"",D)};
_.xK=function(G,B,F){return _.PQ(G,B,F==null?F:_.y$(F))};
_.LX=function(G,B,F){return _.ua(G,B,F==null?F:_.y$(F),0)};var N3=function(G,B,F){this.buffer=G;if(F&&!B)throw Error();this.JSC$9161_isImmutable=B};var GXN=function(G,B,F,D){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9164_start_=0;this.init(G,B,F,D)},ie8,rI,FLN,Rsl,D3q,uA7,Rw8,wXU,He8,BmP;
_.w=GXN.prototype;_.w.init=function(G,B,F,D){var u=D===void 0?{}:D;D=u.aliasBytesFields===void 0?!1:u.aliasBytesFields;u=u.treatNewDataAsImmutable===void 0?!1:u.treatNewDataAsImmutable;this.aliasBytesFields=D;this.treatNewDataAsImmutable=u;G&&(G=ieL(G,this.treatNewDataAsImmutable),this.bytes_=G.buffer,this.bytesAreImmutable_=G.JSC$9161_isImmutable,this.JSC$9164_start_=B||0,this.end_=F!==void 0?this.JSC$9164_start_+F:this.bytes_.length,this.cursor_=this.JSC$9164_start_)};
_.w.free=function(){this.clear();BmP.length<100&&BmP.push(this)};
_.w.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9164_start_=0;this.aliasBytesFields=!1};
_.w.reset=function(){this.cursor_=this.JSC$9164_start_};
_.w.atEnd=function(){return this.cursor_==this.end_};
_.rm=function(G,B){var F=0,D=0,u=0,R=G.bytes_,N=G.cursor_;do{var y=R[N++];F|=(y&127)<<u;u+=7}while(u<32&&y&128);if(u>32)for(D|=(y&127)>>4,u=3;u<32&&y&128;u+=7)y=R[N++],D|=(y&127)<<u;rI(G,N);if(!(y&128))return B(F>>>0,D>>>0);throw Error();};
ie8=function(G){return _.rm(G,function(B,F){return rTo(B,F,jq6)})};
rI=function(G,B){G.cursor_=B;if(B>G.end_)throw Error();};
_.HU=function(G){var B=G.bytes_,F=G.cursor_,D=B[F++],u=D&127;if(D&128&&(D=B[F++],u|=(D&127)<<7,D&128&&(D=B[F++],u|=(D&127)<<14,D&128&&(D=B[F++],u|=(D&127)<<21,D&128&&(D=B[F++],u|=D<<28,D&128&&B[F++]&128&&B[F++]&128&&B[F++]&128&&B[F++]&128&&B[F++]&128)))))throw Error();rI(G,F);return u};
_.kz=function(G){var B=G.bytes_,F=G.cursor_,D=B[F],u=B[F+1],R=B[F+2];B=B[F+3];rI(G,G.cursor_+4);return(D<<0|u<<8|R<<16|B<<24)>>>0};
FLN=function(G){var B=_.kz(G);G=_.kz(G);return XsL(B,G)};
Rsl=function(G){var B=_.kz(G);G=_.kz(G);return QqJ(B,G)};
D3q=function(G){var B=_.kz(G);G=(B>>31)*2+1;var F=B>>>23&255;B&=8388607;return F==255?B?NaN:G*Infinity:F==0?G*1.401298464324817E-45*B:G*Math.pow(2,F-150)*(B+8388608)};
uA7=function(G){var B=_.kz(G),F=_.kz(G);G=(F>>31)*2+1;var D=F>>>20&2047;B=4294967296*(F&1048575)+B;return D==2047?B?NaN:G*Infinity:D==0?G*4.9E-324*B:G*Math.pow(2,D-1075)*(B+4503599627370496)};
Rw8=function(G){for(var B=0,F=G.cursor_,D=F+10,u=G.bytes_;F<D;){var R=u[F++];B|=R;if((R&128)===0)return rI(G,F),!!(B&127)}throw Error();};
wXU=function(G,B){if(B<0)throw Error();var F=G.cursor_;B=F+B;if(B>G.end_)throw Error();G.cursor_=B;return F};
He8=function(G,B){if(B==0)return _.by();var F=wXU(G,B);G.aliasBytesFields&&G.bytesAreImmutable_?F=G.bytes_.subarray(F,F+B):(G=G.bytes_,B=F+B,F=F===B?new Uint8Array(0):T$L?G.slice(F,B):new Uint8Array(G.subarray(F,B)));return F.length==0?_.by():new $v(F,zL)};
BmP=[];var Nm7=function(G,B,F,D){if(BmP.length){var u=BmP.pop();u.init(G,B,F,D);G=u}else G=new GXN(G,B,F,D);this.decoder_=G;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;CaN(this,D)},CaN=function(G,B){B=B===void 0?{}:B;
G.discardUnknownFields=B.discardUnknownFields===void 0?!1:B.discardUnknownFields},ewQ=function(G,B,F,D){if(yjP.length){var u=yjP.pop();
CaN(u,D);u.decoder_.init(G,B,F,D);return u}return new Nm7(G,B,F,D)},LLM,WLU,O8,nSw,yjP;
Nm7.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;yjP.length<100&&yjP.push(this)};
Nm7.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
LLM=function(G){if(G.decoder_.atEnd())return!1;G.fieldCursor_=G.decoder_.cursor_;var B=_.HU(G.decoder_)>>>0,F=B>>>3;B&=7;if(!(B>=0&&B<=5))throw Error();if(F<1)throw Error();G.nextField_=F;G.nextWireType_=B;return!0};
WLU=function(G){switch(G.nextWireType_){case 0:G.nextWireType_!=0?WLU(G):Rw8(G.decoder_);break;case 1:G=G.decoder_;rI(G,G.cursor_+8);break;case 2:if(G.nextWireType_!=2)WLU(G);else{var B=_.HU(G.decoder_)>>>0;G=G.decoder_;rI(G,G.cursor_+B)}break;case 5:G=G.decoder_;rI(G,G.cursor_+4);break;case 3:B=G.nextField_;do{if(!LLM(G))throw Error();if(G.nextWireType_==4){if(G.nextField_!=B)throw Error();break}WLU(G)}while(1);break;default:throw Error();}};
O8=function(G,B,F){var D=G.decoder_.end_,u=_.HU(G.decoder_)>>>0;u=G.decoder_.cursor_+u;var R=u-D;R<=0&&(G.decoder_.end_=u,F(B,G,void 0,void 0,void 0),R=u-G.decoder_.cursor_);if(R)throw Error();G.decoder_.cursor_=u;G.decoder_.end_=D;return B};
nSw=function(G){var B=_.HU(G.decoder_)>>>0;G=G.decoder_;var F=wXU(G,B);G=G.bytes_;if(JTy){var D=G,u;(u=d8T)||(u=d8T=new TextDecoder("utf-8",{fatal:!0}));B=F+B;D=F===0&&B===D.length?D:D.subarray(F,B);try{var R=u.decode(D)}catch(q){if(ATs===void 0){try{u.decode(new Uint8Array([128]))}catch(h){}try{u.decode(new Uint8Array([97])),ATs=!0}catch(h){ATs=!1}}!ATs&&(d8T=void 0);throw q;}}else{R=F;B=R+B;F=[];for(var N=null,y,U;R<B;)y=G[R++],y<128?F.push(y):y<224?R>=B?B6():(U=G[R++],y<194||(U&192)!==128?(R--,
B6()):F.push((y&31)<<6|U&63)):y<240?R>=B-1?B6():(U=G[R++],(U&192)!==128||y===224&&U<160||y===237&&U>=160||((u=G[R++])&192)!==128?(R--,B6()):F.push((y&15)<<12|(U&63)<<6|u&63)):y<=244?R>=B-2?B6():(U=G[R++],(U&192)!==128||(y<<28)+(U-144)>>30!==0||((u=G[R++])&192)!==128||((D=G[R++])&192)!==128?(R--,B6()):(y=(y&7)<<18|(U&63)<<12|(u&63)<<6|D&63,y-=65536,F.push((y>>10&1023)+55296,(y&1023)+56320))):B6(),F.length>=8192&&(N=Clc(N,F),F.length=0);R=Clc(N,F)}return R};
_.l6q=function(G){var B=_.HU(G.decoder_)>>>0;return He8(G.decoder_,B)};
_.U37=function(G,B,F){var D=_.HU(G.decoder_)>>>0;for(D=G.decoder_.cursor_+D;G.decoder_.cursor_<D;)F.push(B(G.decoder_))};
yjP=[];var qyP=function(G,B){this.JSC$9171_lo=G>>>0;this.JSC$9171_hi=B>>>0},TmU=function(G){G=BigInt.asUintN(64,G);
return new qyP(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)))},uAQ=function(G){if(!G)return ESP||(ESP=new qyP(0,0));
if(!/^\d+$/.test(G))return null;SN(G);return new qyP(AT,dw)},ESP,cjl=function(G,B){this.JSC$9173_lo=G>>>0;
this.JSC$9173_hi=B>>>0},FL8=function(G){if(!G)return hwG||(hwG=new cjl(0,0));
if(!/^-?\d+$/.test(G))return null;SN(G);return new cjl(AT,dw)},hwG;var eU=function(){this.JSC$9175_buffer_=[]},XA,jz,KLs;
eU.prototype.length=function(){return this.JSC$9175_buffer_.length};
eU.prototype.end=function(){var G=this.JSC$9175_buffer_;this.JSC$9175_buffer_=[];return G};
XA=function(G,B,F){for(;F>0||B>127;)G.JSC$9175_buffer_.push(B&127|128),B=(B>>>7|F<<25)>>>0,F>>>=7;G.JSC$9175_buffer_.push(B)};
jz=function(G,B){for(;B>127;)G.JSC$9175_buffer_.push(B&127|128),B>>>=7;G.JSC$9175_buffer_.push(B)};
_.f6z=function(G,B){if(B>=0)jz(G,B);else{for(var F=0;F<9;F++)G.JSC$9175_buffer_.push(B&127|128),B>>=7;G.JSC$9175_buffer_.push(1)}};
KLs=function(G,B){SN(B);LtS(function(F,D){XA(G,F>>>0,D>>>0)})};
eU.prototype.writeUint8=function(G){this.JSC$9175_buffer_.push(G>>>0&255)};
_.mL=function(G,B){G.JSC$9175_buffer_.push(B>>>0&255);G.JSC$9175_buffer_.push(B>>>8&255);G.JSC$9175_buffer_.push(B>>>16&255);G.JSC$9175_buffer_.push(B>>>24&255)};
eU.prototype.writeInt8=function(G){this.JSC$9175_buffer_.push(G>>>0&255)};var a6G,Ey,ZeS,sMM,NmQ;a6G=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new eU};
Ey=function(G,B){B.length!==0&&(G.blocks_.push(B),G.totalLength_+=B.length)};
_.m3G=function(G,B){_.aM(G,B,2);B=G.encoder_.end();Ey(G,B);B.push(G.totalLength_);return B};
_.XXa=function(G,B){var F=B.pop();for(F=G.totalLength_+G.encoder_.length()-F;F>127;)B.push(F&127|128),F>>>=7,G.totalLength_++;B.push(F);G.totalLength_++};
_.aM=function(G,B,F){jz(G.encoder_,B*8+F)};
ZeS=function(G,B,F){if(F!=null)switch(RwL(F),_.aM(G,B,1),typeof F){case "number":G=G.encoder_;hUL(F);_.mL(G,AT);_.mL(G,dw);break;case "bigint":F=TmU(F);G=G.encoder_;B=F.JSC$9171_hi;_.mL(G,F.JSC$9171_lo);_.mL(G,B);break;default:F=uAQ(F),G=G.encoder_,B=F.JSC$9171_hi,_.mL(G,F.JSC$9171_lo),_.mL(G,B)}};
sMM=function(G,B,F){_.aM(G,B,2);jz(G.encoder_,F.length);Ey(G,G.encoder_.end());Ey(G,F)};
NmQ=function(G,B,F,D){F!=null&&(B=_.m3G(G,B),D(F,G),_.XXa(G,B))};var wXJ,QMN,jMa,LLv,rjP,HeN,kXs,ew7,$3y;wXJ=yC();QMN=yC();jMa=yC();LLv=yC();rjP=yC();_.WLw=yC();_.$z=yC();HeN=yC();kXs=yC();_.Oe8=yC();ew7=yC();$3y=yC();_.zwU=yC();_.bew=yC();_.q3=function(G,B,F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,B,F)};
_.q3.prototype.toJSON=function(){return YD(this)};
_.q3.prototype.serialize=function(G){return JSON.stringify(YD(this,G))};
var ndJ=function(G,B){if(B==null||B=="")return new G;B=JSON.parse(B);if(!Array.isArray(B))throw Error("W");return new G(i7I(B))};
_.q3.prototype.getExtension=function(G){qAQ(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G.fieldIndex);lZg(this,G.fieldIndex);return G.ctor?G.isRepeated?G.getExtensionFn(this,G.ctor,G.fieldIndex,_.Yk(),G.JSC$9186_hasMessageId):G.getExtensionFn(this,G.ctor,G.fieldIndex,G.JSC$9186_hasMessageId):G.isRepeated?G.getExtensionFn(this,G.fieldIndex,_.Yk(),G.JSC$9186_hasMessageId):G.getExtensionFn(this,G.fieldIndex,G.defaultValue,G.JSC$9186_hasMessageId)};
_.q3.prototype.clone=function(){var G=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=G[_.Rq]|0;return A2U(this,G,B)?YAc(this,G,!0):new this.constructor(cS(G,B,!1))};
_.q3.prototype[$D]=bG;_.q3.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ne=function(G,B,F){this.$$binaryReaderFn=G;this.$$binaryWriterFn=B;G=vS(wXJ);this.$$isMsg=!!G&&F===G||!1},ESo=Ca8(function(G,B,F,D,u){if(G.nextWireType_!==2)return!1;
O8(G,ZNN(B,D,F),u);return!0},nSU),hwS=Ca8(function(G,B,F,D,u){if(G.nextWireType_!==2)return!1;
O8(G,ZNN(B,D,F),u);return!0},nSU),zwJ=Symbol(),m3S=Symbol(),jMz=Symbol(),vSQ=Symbol(),kX6=Symbol(),l6I,U3Q;var Vzt,C5U,vS7,z9,oSa,MzT,pXw,Yy8,V1,d3P,Jjv,cjy,Tmw,I6s,tz7,ZeG,gSG,Syw,sMv,x3L;Vzt=_.Yv(0);C5U=function(G,B){var F=new a6G;oSz(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F,la(zwJ,$3l,beU,B));Ey(F,F.encoder_.end());G=new Uint8Array(F.totalLength_);B=F.blocks_;for(var D=B.length,u=0,R=0;R<D;R++){var N=B[R];G.set(N,u);u+=N.length}F.blocks_=[G];return G};
vS7=Ca8(function(G,B,F,D,u){if(G.nextWireType_!==2)return!1;G=O8(G,A2([void 0,void 0],D),u);G=G$(G);D=B[_.Rq]|0;u=oq(D);if(D&2)throw Error();var R=FA(B,F,u);if(R instanceof V$)(R.arrayState&2)!=0?(R=WU6(R),R.push(G),g$(B,D,F,R,u)):(B=R,F=B.keyToApi(G[0],!1,!0),G=G[1],G=B.valueCtor?G===void 0?null:G:B.valueToApi(G,!1,!0,void 0,!1,B.arrayState),BU.prototype.set.call(B,F,G));else if(Array.isArray(R)){var N=R[_.Rq]|0;N&8192||ly(R,N|=8192);N&2&&(R=IZs(R),g$(B,D,F,R,u));R.push(G)}else g$(B,D,F,QP([G]),
u);return!0},function(G,B,F,D,u){if(B instanceof V$)B.forEach(function(y,U){NmQ(G,F,A2([U,
y],D),u)});
else if(Array.isArray(B)){for(var R=0;R<B.length;R++){var N=B[R];Array.isArray(N)&&NmQ(G,F,A2(N,D),u)}QP(B)}});
z9=_.hj(function(G,B,F){if(G.nextWireType_!==1)return!1;_.Ke(B,F,uA7(G.decoder_));return!0},d3o,$3y);
oSa=_.hj(function(G,B,F,D){if(G.nextWireType_!==1)return!1;_.WX(B,F,D,uA7(G.decoder_));return!0},d3o,$3y);
MzT=_.hj(function(G,B,F){if(G.nextWireType_!==5)return!1;_.Ke(B,F,D3q(G.decoder_));return!0},JjM,ew7);
pXw=_.AjJ(function(G,B,F){if(G.nextWireType_!==5&&G.nextWireType_!==2)return!1;B=_.wm(B,B[_.Rq]|0,F);G.nextWireType_==2?_.U37(G,D3q,B):B.push(D3q(G.decoder_));return!0},function(G,B,F){B=_.YyL(_.FD,B,!0);
if(B!=null&&B.length)for(_.aM(G,F,2),jz(G.encoder_,B.length*4),F=0;F<B.length;F++){var D=G.encoder_;m8Q(B[F]);_.mL(D,AT)}},ew7);
Yy8=_.hj(function(G,B,F,D){if(G.nextWireType_!==5)return!1;_.WX(B,F,D,D3q(G.decoder_));return!0},JjM,ew7);
_.AjU=_.hj(function(G,B,F){if(_.t1)return Fn6(G,B,F);if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,_.gw));return!0},_.QC,_.$z);
_.bc=_.hj(function(G,B,F){if(_.t1)return Fn6(G,B,F);if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,tT));return!0},_.QC,_.$z);
V1=_.hj(function(G,B,F){if(_.t1)return G.nextWireType_!==0?B=!1:(G=_.rm(G.decoder_,jq6),_.Ke(B,F,G===Vzt?void 0:G),B=!0),B;if(G.nextWireType_!==0)return!1;G=_.rm(G.decoder_,tT);_.Ke(B,F,G===0?void 0:G);return!0},_.QC,_.$z);
d3P=_.hj(function(G,B,F,D){if(_.t1)return _.DmI(G,B,F,D);if(G.nextWireType_!==0)return!1;_.WX(B,F,D,_.rm(G.decoder_,tT));return!0},_.QC,_.$z);
Jjv=_.hj(function(G,B,F){if(_.t1)return uJU(G,B,F);if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,_.Iq));return!0},I66,HeN);
_.vU=_.hj(function(G,B,F){if(_.t1)return uJU(G,B,F);if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,XsL));return!0},I66,HeN);
_.oD=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.HU(G.decoder_));return!0},tzQ,LLv);
cjy=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;G=_.HU(G.decoder_);_.Ke(B,F,G===0?void 0:G);return!0},tzQ,LLv);
Tmw=_.hj(function(G,B,F,D){if(G.nextWireType_!==0)return!1;_.WX(B,F,D,_.HU(G.decoder_));return!0},tzQ,LLv);
I6s=_.hj(function(G,B,F){if(_.t1)return _.wY6(G,B,F);if(G.nextWireType_!==1)return!1;_.Ke(B,F,FLN(G.decoder_));return!0},_.gSS,_.Oe8);
_.f6a=_.AjJ(function(G,B,F){if(_.t1)return G.nextWireType_!==1&&G.nextWireType_!==2?G=!1:(B=_.wm(B,B[_.Rq]|0,F),G.nextWireType_==2?_.U37(G,Rsl,B):B.push(Rsl(G.decoder_)),G=!0),G;if(G.nextWireType_!==1&&G.nextWireType_!==2)return!1;B=_.wm(B,B[_.Rq]|0,F);G.nextWireType_==2?_.U37(G,FLN,B):B.push(FLN(G.decoder_));return!0},function(G,B,F){B=_.YyL(SGc,B,!1);
if(B!=null)for(var D=0;D<B.length;D++)ZeS(G,F,B[D])},_.Oe8);
_.MV=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;_.Ke(B,F,Rw8(G.decoder_));return!0},SyU,QMN);
_.pX=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;G=Rw8(G.decoder_);_.Ke(B,F,G===!1?void 0:G);return!0},SyU,QMN);
tz7=_.hj(function(G,B,F,D){if(G.nextWireType_!==0)return!1;_.WX(B,F,D,Rw8(G.decoder_));return!0},SyU,QMN);
_.Yz=_.hj(function(G,B,F){if(G.nextWireType_!==2)return!1;_.Ke(B,F,nSw(G));return!0},x3s,jMa);
_.AR=_.hj(function(G,B,F){if(G.nextWireType_!==2)return!1;G=nSw(G);_.Ke(B,F,G===""?void 0:G);return!0},x3s,jMa);
_.dI=_.hj(function(G,B,F,D){if(G.nextWireType_!==2)return!1;_.WX(B,F,D,nSw(G));return!0},x3s,jMa);
ZeG=_.AjJ(function(G,B,F){if(G.nextWireType_!==2)return!1;G=nSw(G);_.wm(B,B[_.Rq]|0,F).push(G);return!0},function(G,B,F){B=_.YyL(_.eQ,B,!0);
if(B!=null)for(var D=0;D<B.length;D++){var u=G,R=F,N=B[D];N!=null&&sMM(u,R,lcU(N))}},jMa);
gSG=void 0;gSG=gSG===void 0?wXJ:gSG;_.JR=new ne(function(G,B,F,D,u){if(G.nextWireType_!==2)return!1;D=A2(void 0,D);_.wm(B,B[_.Rq]|0,F).push(D);O8(G,D,u);return!0},function(G,B,F,D,u){if(Array.isArray(B)){for(var R=0;R<B.length;R++)Pal(G,B[R],F,D,u);
G=B[_.Rq]|0;G&1||ly(B,G|1)}},gSG);
_.cU=Ca8(function(G,B,F,D,u,R){if(G.nextWireType_!==2)return!1;var N=B[_.Rq]|0;gDl(B,N,R,F,oq(N));B=ZNN(B,D,F);O8(G,B,u);return!0},Pal);
_.T9=_.hj(function(G,B,F){if(G.nextWireType_!==2)return!1;_.Ke(B,F,_.l6q(G));return!0},_.GoJ,_.zwU);
Syw=_.hj(function(G,B,F,D){if(G.nextWireType_!==2)return!1;_.WX(B,F,D,_.l6q(G));return!0},_.GoJ,_.zwU);
_.ID=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.HU(G.decoder_)>>>0);return!0},BiU,rjP);
sMv=_.hj(function(G,B,F,D){if(G.nextWireType_!==0)return!1;_.WX(B,F,D,_.HU(G.decoder_)>>>0);return!0},BiU,rjP);
_.fX=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.HU(G.decoder_));return!0},_.iIQ,_.bew);
_.tR=_.hj(function(G,B,F){if(G.nextWireType_!==0)return!1;G=_.HU(G.decoder_);_.Ke(B,F,G===0?void 0:G);return!0},_.iIQ,_.bew);
x3L=_.hj(function(G,B,F){if(_.t1)return G.nextWireType_!==0?G=!1:(_.Ke(B,F,ie8(G.decoder_)),G=!0),G;if(G.nextWireType_!==0)return!1;_.Ke(B,F,_.rm(G.decoder_,WtU));return!0},function(G,B,F){B=gvS(B);
if(B!=null&&(D3c(B),B!=null))switch(_.aM(G,F,0),typeof B){case "number":G=G.encoder_;F=B;B=F<0;F=Math.abs(F)*2;hUL(F);F=AT;var D=dw;B&&(F==0?D==0?D=F=4294967295:(D--,F=4294967295):F--);AT=F;dw=D;XA(G,AT,dw);break;case "bigint":G=G.encoder_;B=B<<BigInt(1)^B>>BigInt(63);AT=Number(BigInt.asUintN(32,B));dw=Number(BigInt.asUintN(32,B>>BigInt(32)));XA(G,AT,dw);break;default:KLs(G.encoder_,B)}},kXs);var Biw=function(){var G=Pay,B=GoU;this.fieldIndex=175237375;this.ctor=B;this.isRepeated=0;this.getExtensionFn=_.sf;this.defaultValue=void 0;this.JSC$9186_hasMessageId=G.messageId!=null?vs:void 0};
Biw.prototype.register=function(){g6(this)};var iI7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(iI7,_.q3);var Fns=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Fns,_.q3);var qxz=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(qxz,_.q3);var Dmq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Dmq,_.q3);var uJw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(uJw,_.q3);var Rsy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Rsy,_.q3);var wYs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(wYs,_.q3);wYs.prototype.getData=function(){return _.CX(this,2)};var C5w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(C5w,_.q3);var Nit=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Nit,_.q3);Nit.prototype.getStyle=function(){return _.sf(this,iI7,1)};var zX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(zX,_.q3);zX.prototype.getPayloadCase=function(){return _.NV(this,vX)};
zX.prototype.getStyle=function(){return _.Q1(this,Nit,6,vX)};
var ylT=function(){var G=new zX,B=new uJw;return _.VC(G,7,vX,B)},ndU=function(){var G=new zX,B=new Rsy;
return _.VC(G,8,vX,B)},vX=[1,
2,3,4,5,6,7,8];var lKw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(lKw,_.q3);var Umy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Umy,_.q3);var qxa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(qxa,_.q3);var EdT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(EdT,_.q3);var hsG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(hsG,_.q3);var Kn7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Kn7,_.q3);var aKN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(aKN,_.q3);var mmN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(mmN,_.q3);mmN.prototype.getData=function(){return _.CX(this,2)};var XYa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(XYa,_.q3);var Uml=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Uml,_.q3);Uml.prototype.getPayloadCase=function(){return _.NV(this,ZI)};
var ZI=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var gI=function(G,B){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=B===void 0?2:B};
_.r(gI,Error);var QoU=Promise;var joT=function(G){this.channelPromise=G};
joT.prototype.send=function(G,B,F){this.channelPromise.then(function(D){D.send(G,B,F)})};var Ln8=function(G,B){this.data=G;this.channel=B};
Ln8.prototype.reply=function(G,B,F){this.channel.send(G,B,F)};var rlv=function(G){this.JSC$9252_port_=G};
rlv.prototype.send=function(G,B,F){F=F===void 0?[]:F;var D=new MessageChannel;WnG(D.port1,B);this.JSC$9252_port_.postMessage(G,[D.port2].concat(F))};
var HIt=function(G,B){WnG(G,B);return new rlv(G)},WnG=function(G,B){B&&(G.onmessage=function(F){B(new Ln8(F.data,HIt(F.ports[0])))})};var kow=function(G){this.verifier_=G};
kow.prototype.verify=function(G){return this.verifier_(G)};
var OIP=function(G){var B=Object.create(null);(typeof G==="string"?[G]:G).forEach(function(F){if(F==="null")throw Error("Y");B[F]=!0});
return function(F){return B[F]===!0}};_.esP=function(){if(!_.Fz.addEventListener||!Object.defineProperty)return!1;var G=!1,B=Object.defineProperty({},"passive",{get:function(){G=!0}});
try{var F=function(){};
_.Fz.addEventListener("test",F,B);_.Fz.removeEventListener("test",F,B)}catch(D){}return G}();var $mq;_.SU=function(G){var B=G.destination;var F=G.iframe;var D=G.origin;var u=G.channelName===void 0?"ZNWN1d":G.channelName;var R=G.onMessage===void 0?void 0:G.onMessage;G=G.onEstablished===void 0?void 0:G.onEstablished;return $mq({destination:B,getSource:function(){return F.contentWindow},
originVerifier:D instanceof kow?D:typeof D==="function"?new kow(D):new kow(OIP(D)),channelName:u,onMessage:R,onEstablished:G})};
$mq=function(G){var B=G.destination;var F=G.getSource;var D=G.originVerifier;var u=G.token===void 0?void 0:G.token;var R=G.channelName;var N=G.onMessage===void 0?void 0:G.onMessage;var y=G.onEstablished===void 0?void 0:G.onEstablished;return new joT(new QoU(function(U,q){var h=function(K){K.source&&K.source===F()&&D.verify(K.origin)&&(K.data.n||K.data)===R&&(B.removeEventListener("message",h,!1),u&&K.data.t!==u?q(Error("Z`"+R+"`"+u+"`"+K.data.t)):(U(HIt(K.ports[0],N)),y&&y(K)))};
B.addEventListener("message",h,!1)}))};var zsq=function(G){try{G()}catch(B){Dc(B)}};var VlN=function(G){var B=this;var F=G.getMessageType;var D=G.onUnregisteredMessage===void 0?function(){}:G.onUnregisteredMessage;
var u=G.onBeforeRegisteredMessage===void 0?function(){}:G.onBeforeRegisteredMessage;
G=G.onAfterRegisteredMessage===void 0?function(){}:G.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=F;this.onUnregisteredMessage_=D;this.onBeforeRegisteredMessage_=u;this.onAfterRegisteredMessage_=G;this.onMessage=function(R){return bIN(B,R)}};
VlN.prototype.register=function(G,B){this.registry_.set(G,B);return this};
var bIN=function(G,B){var F=G.getMessageType_(B.data),D=G.registry_.get(F);D?(zsq(function(){return G.onBeforeRegisteredMessage_(B,F)}),zsq(function(){return D(B)}),zsq(function(){return G.onAfterRegisteredMessage_(B,F)})):zsq(function(){return G.onUnregisteredMessage_(B,F)})};var vdL=function(G){this.JSC$9269_channel_=G},Mla,pYs;
vdL.prototype.send=function(G,B,F){this.JSC$9269_channel_.send(YD(G),B,F)};
_.ods=function(G,B){return function(F){var D=new G(F.data);return B(new Ln8(D,F.channel))}};
Mla=function(G){return function(B){return G(new Ln8(B.data,new vdL(B.channel)))}};
pYs=function(G,B){return Mla(_.ods(G,B))};var Yxw=function(G,B,F,D){this.registry=G;this.delegate=B;this.receiveMessageConstructor=F;this.createInitMessage=D;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},lKU=function(G){var B=new VlN({getMessageType:G.getPayloadCase});
return new Yxw(B,new vdL(_.SU({iframe:G.child,destination:window,origin:G.origin,channelName:G.channelName,onMessage:pYs(G.receiveMessageConstructor,B.onMessage)})),G.receiveMessageConstructor,G.createInitMessage)},Als=function(G,B){G.createInitMessage=B};
Yxw.prototype.send=function(G){if(!this.initialised)throw new gI("Attempted to send a message before initialisation.");this.delegate.send(G)};
var dma=function(G,B){return _.n(function(F){if(!G.initialised)throw new gI("Attempted to send a message before initialisation.");return F.return(new Promise(function(D){G.delegate.send(B,pYs(G.receiveMessageConstructor,D))}))})};
Yxw.prototype.init=function(){var G=this;return _.n(function(B){if(G.initialised)throw new gI("Attempted to initialise twice. The SDK can only be initialised once.");if(G.createInitMessage!==void 0){var F=G.delegate,D=F.send,u=G.createInitMessage;var R=new Fns;var N=[].concat(_.gi(G.features));R=_.D6(R,1,N,_.y$);D.call(F,u.call(G,R))}G.initialised=!0;_.di(B)})};
var s8=function(G,B){if(G.initialised)throw new gI('Attempted to set up API "'+B+'" after initialisation. All APIs must be set up before initialising the SDK.');G.features.add(B);return G.registry};
_.ZN.Object.defineProperties(Yxw.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Jlq=function(G){this.channel=G;this.registered=!1};
Jlq.prototype.update=function(G){if(this.channel.isInitialised){if(!this.registered)throw new gI("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var B=new zX;var F=new Dmq;F=_.Ii(F,1,G);B=_.VC(B,2,vX,F);this.channel.send(B)}else this.register();this.JSC$9283_audioEnabled=G};
Jlq.prototype.register=function(){s8(this.channel,1);this.registered=!0};
Jlq.prototype.isAudioEnabled=function(){return this.JSC$9283_audioEnabled};var clP=function(G){this.channel=G};
_.w=clP.prototype;_.w.onFirstFrameReady=function(G){s8(this.channel,2).register(11,function(B){B=_.Q1(B.data,lKw,11,ZI);if(!B)throw new gI("Unexpectedly nonexistent GameFirstFrameReadyEvent");G(_.KX(B,1))})};
_.w.onReady=function(G){s8(this.channel,2).register(4,function(B){B=_.Q1(B.data,qxa,4,ZI);if(!B)throw new gI("Unexpectedly nonexistent GameReadyEvent");G(_.KX(B,1))})};
_.w.onLevelComplete=function(G){s8(this.channel,2).register(5,function(B){B=_.Q1(B.data,EdT,5,ZI);if(!B)throw new gI("Unexpectedly nonexistent LevelCompleteEvent");G(_.KX(B,1),_.AM(B,2))})};
_.w.onGameOver=function(G){s8(this.channel,2).register(6,function(B){B=_.Q1(B.data,Umy,6,ZI);if(!B)throw new gI("Unexpectedly nonexistent GameOverEvent");G(_.KX(B,1))})};
_.w.pause=function(){var G=this;if(!this.channel.isInitialised)return s8(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new gI("Using unregistered Game Feature: pause.");var B=ylT();return new Promise(function(F){return _.n(function(D){if(D.nextAddress==1)return D.yield(dma(G.channel,B),2);F();_.di(D)})})};
_.w.resume=function(){var G=this;if(!this.channel.isInitialised)return s8(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new gI("Using unregistered Game Feature: resume.");var B=ndU();return new Promise(function(F){return _.n(function(D){if(D.nextAddress==1)return D.yield(dma(G.channel,B),2);F();_.di(D)})})};var Tiv=function(G){this.channel=G};
Tiv.prototype.onReady=function(G){s8(this.channel,5).register(8,function(B){if(!_.Q1(B.data,hsG,8,ZI))throw new gI("Unexpectedly nonexistent PageReadyEvent");G()})};var IKv=function(G){this.channel=G};
IKv.prototype.onChange=function(G){s8(this.channel,3).register(7,function(B){B=_.Q1(B.data,Kn7,7,ZI);if(!B)throw new gI("Unexpectedly nonexistent ScoreEvent");G(_.KX(B,1),_.AM(B,2))})};var fK8={load:function(){throw new gI("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new gI("Storage used, but storage.onSave() listener not set!");}},tlq=function(G){this.channel=G;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ZIs=function(G){s8(G.channel,4).register(2,fK8.load).register(3,fK8.save);
G.initialSetupDone=!0};
tlq.prototype.onLoad=function(G){this.initialSetupDone||ZIs(this);this.loadRegistered||(this.loadRegistered=!0,s8(this.channel,4).register(2,function(B){var F,D,u;return _.n(function(R){if(R.nextAddress==1){F=_.Q1(B.data,aKN,2,ZI);if(!F)throw new gI("Unexpectedly nonexistent StorageLoad");D=_.KX(F,1);return R.yield(G(D),2)}u=R.yieldResult;var N=B.reply,y=new zX;var U=new wYs;U=_.wq(U,1,D);U=_.PQ(U,2,_.VP(u,!1));y=_.VC(y,3,vX,U);N.call(B,y);_.di(R)})}))};
tlq.prototype.onSave=function(G){this.initialSetupDone||ZIs(this);this.saveRegistered||(this.saveRegistered=!0,s8(this.channel,4).register(3,function(B){var F,D,u;return _.n(function(R){if(R.nextAddress==1){F=_.Q1(B.data,mmN,3,ZI);if(!F)throw new gI("Unexpectedly nonexistent StorageSave");D=_.KX(F,1);u=VQs(F.getData());return R.yield(G(D,u),2)}var N=B.reply,y=new zX;var U=new C5w;U=_.wq(U,1,D);y=_.VC(y,4,vX,U);N.call(B,y);_.di(R)})}))};var gd7=function(G){this.channel=G};
gd7.prototype.update=function(G){if(!this.channel.features.has(6))throw new gI("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var B=new zX,F=new Nit;G=_.ba(F,1,G);B=_.VC(B,6,vX,G);this.channel.send(B)};
gd7.prototype.register=function(){s8(this.channel,6)};var Sx8=function(G){this.channel=G;this.userActivityLoggingIntervalMs=0};
Sx8.prototype.onUserActivity=function(G,B){this.userActivityLoggingIntervalMs=B;s8(this.channel,7).register(9,function(F){if(!_.Q1(F.data,XYa,9,ZI))throw new gI("Unexpectedly nonexistent ClickEvent");G()})};var soL=function(G){var B=this;this.channel=G;this.init=this.channel.init.bind(this.channel);this.page=new Tiv(this.channel);this.game=new clP(this.channel);this.audio=new Jlq(this.channel);this.score=new IKv(this.channel);this.storage=new tlq(this.channel);this.style=new gd7(this.channel);this.userActivity=new Sx8(this.channel);Als(this.channel,function(F){var D=new qxz;F=_.ba(D,1,F);F=_.jU(F,3,B.userActivity.userActivityLoggingIntervalMs);D=B.audio.isAudioEnabled();D!==void 0&&_.Ii(F,2,D);D=new zX;
return _.VC(D,5,vX,F)})};var xmv=function(){this.timedFunctionContext=0};
xmv.prototype.timeExecution=function(G,B){var F=this;return function(){var D=_.xS.apply(0,arguments);F.timedFunctionContext=G;return B.apply(null,_.gi(D))}};var P5y=function(){var G={};this.priorityTasks=(G[3]=[],G[2]=[],G[1]=[],G);this.isFlushing=!1},pS=function(G,B,F){var D=Gt8(G,F);
G.priorityTasks[F].push(B);D&&G.priorityTasks[F].length===1&&G.flush()},Gt8=function(G,B){return Object.keys(G.priorityTasks).map(function(F){return Number(F)}).filter(function(F){return!isNaN(F)&&F>B}).every(function(F){return G.priorityTasks[F].length===0})};
P5y.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(G){return G.length>0});)BOw(this,3),BOw(this,2),BOw(this,1)}catch(G){throw Object.values(this.priorityTasks).forEach(function(B){return void B.splice(0,B.length)}),G;
}finally{this.isFlushing=!1}}};
var BOw=function(G,B){for(;Gt8(G,B)&&G.priorityTasks[B].length>0;)G.priorityTasks[B][0](),G.priorityTasks[B].shift()};
_.ZN.Object.defineProperties(P5y.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(G){return G.length>0})}}});var QoJ={};var iST=globalThis.trustedTypes,hsS=iST,aK8;var M3=function(G){this.privateDoNotAccessOrElseWrappedResourceUrl=G};
M3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var F_N,DPq,uRw,RDP,w7w,CMy,NOv,yCa;F_N=_.vP([""]);DPq=VG(["\x00"],["\\0"]);uRw=VG(["\n"],["\\n"]);RDP=VG(["\x00"],["\\u0000"]);w7w=_.vP([""]);CMy=VG(["\x00"],["\\0"]);NOv=VG(["\n"],["\\n"]);yCa=VG(["\x00"],["\\u0000"]);_.ni7=XYz(function(G){return G(F_N)})||XYz(function(G){return G(DPq)})||XYz(function(G){return G(uRw)})||XYz(function(G){return G(RDP)});
_.lJv=_.Aj(w7w)&&_.Aj(CMy)&&_.Aj(NOv)&&_.Aj(yCa);var gm;_.dm=function(G,B){this.privateDoNotAccessOrElseWrappedUrl=B};
_.dm.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.UPs=TX("about:blank");gm=TX("about:invalid#zClosurez");var jog=function(G){this.isValid=G},qht=new jog(function(G){return/^[^:]*([/?#]|$)/.test(G)}),Eis=tj("data"),hDq=tj("http"),K_v=tj("https"),aJG=tj("ftp"),mPv=tj("mailto"),X7t=tj("intent"),QkL=tj("vnd.youtube"),LnL=[Eis,
hDq,K_v,mPv,aJG,qht],WnS=oM(function(){return typeof URL==="function"}),jka=["data:",
"http:","https:","mailto:","ftp:"],koU=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var BY=function(G){this.privateDoNotAccessOrElseWrappedHtml=G};
BY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var l8Q=oM(function(){return new BY(iST?iST.emptyHTML:"")});var L_8={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"},eso=function(G,B){var F=Error.call(this,G+" cannot be used with intent "+L_8[B]);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.type=G;this.intent=B;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.r(eso,Error);_.Nm=function(G){this.privateDoNotAccessOrElseWrappedScript=G};
_.Nm.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var zsc=function(G){this.privateDoNotAccessOrElseWrappedAttributePrefix=G};
zsc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var bI8="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var KI=function(G){this.privateDoNotAccessOrElseWrappedStyleSheet=G};
KI.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var mjQ=function(G){var B=_.Yf("window.location.href");G==null&&(G='Unknown Error of type "null/undefined"');if(typeof G==="string")return{message:G,name:"Unknown error",lineNumber:"Not available",fileName:B,stack:"Not available"};var F=!1;try{var D=G.lineNumber||G.line||"Not available"}catch(N){D="Not available",F=!0}try{var u=G.fileName||G.filename||G.sourceURL||_.Fz.$googDebugFname||B}catch(N){u="Not available",F=!0}B=rCt(G);if(!(!F&&G.lineNumber&&G.fileName&&G.stack&&G.message&&G.name)){F=G.message;
if(F==null){if(G.constructor&&G.constructor instanceof Function){if(G.constructor.name)F=G.constructor.name;else if(F=G.constructor,xz[F])F=xz[F];else{F=String(F);if(!xz[F]){var R=/function\s+([^\(]+)/m.exec(F);xz[F]=R?R[1]:"[Anonymous]"}F=xz[F]}F='Unknown Error of type "'+F+'"'}else F="Unknown Error of unknown type";typeof G.toString==="function"&&Object.prototype.toString!==G.toString&&(F+=": "+G.toString())}return{message:F,name:G.name||"UnknownError",lineNumber:D,fileName:u,stack:B||"Not available"}}return{message:G.message,
name:G.name,lineNumber:G.lineNumber,fileName:G.fileName,stack:B}},rCt=function(G,B){B||(B={});
B[W_q(G)]=!0;var F=G.stack||"",D=G.cause;D&&!B[W_q(D)]&&(F+="\nCaused by: ",D.stack&&D.stack.indexOf(D.toString())==0||(F+=typeof D==="string"?D:D.message+"\n"),F+=rCt(D,B));G=G.errors;if(Array.isArray(G)){D=1;var u;for(u=0;u<G.length&&!(D>4);u++)B[W_q(G[u])]||(F+="\nInner error "+D++ +": ",G[u].stack&&G[u].stack.indexOf(G[u].toString())==0||(F+=typeof G[u]==="string"?G[u]:G[u].message+"\n"),F+=rCt(G[u],B));u<G.length&&(F+="\n... "+(G.length-u)+" more inner errors")}return F},W_q=function(G){var B=
"";
typeof G.toString==="function"&&(B=""+G);return B+G.stack},xz={};var Erg,gO,Z$,HSq,ktN,eDL,MN,ja,zDs;Erg=function(G,B){for(var F=G.split("%s"),D="",u=Array.prototype.slice.call(arguments,1);u.length&&F.length>1;)D+=F.shift()+u.shift();return D+F.join("%s")};
_.S5=function(G){return encodeURIComponent(String(G))};
gO=function(G){return decodeURIComponent(G.replace(/\+/g," "))};
Z$=function(G){gvG.test(G)&&(G.indexOf("&")!=-1&&(G=G.replace(cTv,"&amp;")),G.indexOf("<")!=-1&&(G=G.replace(Tw8,"&lt;")),G.indexOf(">")!=-1&&(G=G.replace(IqP,"&gt;")),G.indexOf('"')!=-1&&(G=G.replace(fqG,"&quot;")),G.indexOf("'")!=-1&&(G=G.replace(tNP,"&#39;")),G.indexOf("\x00")!=-1&&(G=G.replace(Z7N,"&#0;")));return G};
_.OSG=function(G){return _.ll(G,"&")?"document"in _.Fz?HSq(G):ktN(G):G};
HSq=function(G){var B={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var F=_.Fz.document.createElement("div");return G.replace(eDL,function(D,u){var R=B[D];if(R)return R;u.charAt(0)=="#"&&(u=Number("0"+u.slice(1)),isNaN(u)||(R=String.fromCharCode(u)));R||(_.qm(F,i5(D+" ")),R=F.firstChild.nodeValue.slice(0,-1));return B[D]=R})};
ktN=function(G){return G.replace(/&([^;]+);/g,function(B,F){switch(F){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return F.charAt(0)!="#"||(F=Number("0"+F.slice(1)),isNaN(F))?B:String.fromCharCode(F)}})};
eDL=/&([^;\s<&]+);?/g;_.Hog=function(G){return String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.$Pw=String.prototype.repeat?function(G,B){return G.repeat(B)}:function(G,B){return Array(B+1).join(G)};
_.PU=function(G,B){if(!Number.isFinite(G))return String(G);G=String(G);var F=G.indexOf(".");F===-1&&(F=G.length);var D=G[0]==="-"?"-":"";D&&(G=G.substring(1));return D+(0,_.$Pw)("0",Math.max(0,B-F))+G};
MN=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Td()).toString(36)};
ja=function(G){for(var B=0,F=0;F<G.length;++F)B=31*B+G.charCodeAt(F)>>>0;return B};
_.xQ=function(G){return String(G).replace(/\-([a-z])/g,function(B,F){return F.toUpperCase()})};
_.s1=function(G){return String(G).replace(/([A-Z])/g,"-$1").toLowerCase()};
zDs=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(B,F,D){return F+D.toUpperCase()})};var bSt=function(){this.names=new Map};
bSt.prototype.getName=function(G){var B=this.names.get(G);if(B)return B;var F;B=(F=G.description)!=null?F:MN();this.names.set(G,B);return B};var V5a=function(G){var B=Error.call(this,G?G.length+" errors occurred during unsubscription:\n"+G.map(function(F,D){return D+1+") "+F.toString()}).join("\n  "):"");
this.message=B.message;"stack"in B&&(this.stack=B.stack);this.errors=G;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.r(V5a,Error);var mn=function(G){this.initialTeardown=G;this.closed=!1;this._teardowns=this._parentage=null};
_.w=mn.prototype;
_.w.unsubscribe=function(){if(!this.closed){this.closed=!0;var G=this._parentage;if(Array.isArray(G))for(var B=_.C(G),F=B.next();!F.done;F=B.next())F.value.remove(this);else G==null||G.remove(this);B=this.initialTeardown;if(ao(B))try{B()}catch(R){var D=R instanceof V5a?R.errors:[R]}var u=this._teardowns;if(u)for(this._teardowns=null,B=_.C(u),F=B.next();!F.done;F=B.next()){F=F.value;try{ao(F)?F():F.unsubscribe()}catch(R){F=void 0,D=(F=D)!=null?F:[],R instanceof V5a?D=[].concat(_.gi(D),_.gi(R.errors)):
D.push(R)}}if(D)throw new V5a(D);}};
_.w.add=function(G){if(G&&G!==this)if(this.closed)ao(G)?G():G.unsubscribe();else{if(G instanceof mn){if(G.closed||G._hasParent(this))return;G._addParent(this)}var B;(this._teardowns=(B=this._teardowns)!=null?B:[]).push(G)}};
_.w._hasParent=function(G){var B=this._parentage;return B===G||Array.isArray(B)&&B.includes(G)};
_.w._addParent=function(G){var B=this._parentage;this._parentage=Array.isArray(B)?(B.push(G),B):B?[B,G]:G};
_.w._removeParent=function(G){var B=this._parentage;B===G?this._parentage=null:Array.isArray(B)&&pY6(B,G)};
_.w.remove=function(G){var B=this._teardowns;B&&pY6(B,G);G instanceof mn&&G._removeParent(this)};
var viw=new mn;viw.closed=!0;mn.JSC$9379_EMPTY=viw;var Al6=function(){setTimeout.apply(null,_.gi(_.xS.apply(0,arguments)))};var G6=function(G){mn.call(this);this.JSC$9384_isStopped=!1;this.destination=G instanceof G6?G:new Bb(!G||ao(G)?{next:G!=null?G:void 0}:G);YxU(G)&&G.add(this)};
_.r(G6,mn);G6.JSC$9379_EMPTY=mn.JSC$9379_EMPTY;G6.create=function(G,B,F){return new iL(G,B,F)};
_.w=G6.prototype;_.w.next=function(G){this.JSC$9384_isStopped||this._next(G)};
_.w.error=function(G){this.JSC$9384_isStopped||(this.JSC$9384_isStopped=!0,this._error(G))};
_.w.complete=function(){this.JSC$9384_isStopped||(this.JSC$9384_isStopped=!0,this._complete())};
_.w.unsubscribe=function(){this.closed||(this.JSC$9384_isStopped=!0,mn.prototype.unsubscribe.call(this))};
_.w._next=function(G){this.destination.next(G)};
_.w._error=function(G){this.destination.error(G);this.unsubscribe()};
_.w._complete=function(){this.destination.complete();this.unsubscribe()};
var Bb=function(G){this.partialObserver=G};
Bb.prototype.next=function(G){var B=this.partialObserver;if(B.next)try{B.next(G)}catch(F){jl(F)}};
Bb.prototype.error=function(G){var B=this.partialObserver;if(B.error)try{B.error(G)}catch(F){jl(F)}else jl(G)};
Bb.prototype.complete=function(){var G=this.partialObserver;if(G.complete)try{G.complete()}catch(B){jl(B)}};
var iL=function(G,B,F){G6.call(this);var D;ao(G)||!G?D={next:G!=null?G:void 0,error:B!=null?B:void 0,complete:F!=null?F:void 0}:D=G;this.destination=new Bb(D)};
_.r(iL,G6);iL.JSC$9379_EMPTY=G6.JSC$9379_EMPTY;iL.create=G6.create;var kd=typeof Symbol==="function"&&Symbol.observable||"@@observable";var WY=function(G){G&&(this._subscribe=G)};
_.w=WY.prototype;_.w.lift=function(G){var B=new WY;B.source=this;B.operator=G;return B};
_.w.subscribe=function(G,B,F){G=G&&G instanceof G6||G&&ao(G.next)&&ao(G.error)&&ao(G.complete)&&YxU(G)?G:new iL(G,B,F);B=this.operator;F=this.source;G.add(B?B.call(G,F):F?this._subscribe(G):this._trySubscribe(G));return G};
_.w._trySubscribe=function(G){try{return this._subscribe(G)}catch(B){G.error(B)}};
_.w.forEach=function(G,B){var F=this;B=JlI(B);return new B(function(D,u){var R=F.subscribe(function(N){try{G(N)}catch(y){u(y),R==null||R.unsubscribe()}},u,D)})};
_.w._subscribe=function(G){var B;return(B=this.source)==null?void 0:B.subscribe(G)};
WY.prototype[kd]=function(){return this};
WY.prototype.pipe=function(){var G=_.xS.apply(0,arguments);return G.length?dmz(G)(this):this};
WY.create=function(G){return new WY(G)};var oiy=function(){var G=Error.call(this,"object unsubscribed");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.r(oiy,Error);var v7=function(){this.observers=[];this.hasError=this.JSC$9400_isStopped=this.closed=!1;this.thrownError=null};
_.r(v7,WY);_.w=v7.prototype;_.w.lift=function(G){var B=new F3(this,this);B.operator=G;return B};
_.w._throwIfClosed=function(){if(this.closed)throw new oiy;};
_.w.next=function(G){this._throwIfClosed();if(!this.JSC$9400_isStopped){var B=this.observers.slice();B=_.C(B);for(var F=B.next();!F.done;F=B.next())F.value.next(G)}};
_.w.error=function(G){this._throwIfClosed();if(!this.JSC$9400_isStopped){this.hasError=this.JSC$9400_isStopped=!0;this.thrownError=G;for(var B=this.observers;B.length;)B.shift().error(G)}};
_.w.complete=function(){this._throwIfClosed();if(!this.JSC$9400_isStopped){this.JSC$9400_isStopped=!0;for(var G=this.observers;G.length;)G.shift().complete()}};
_.w.unsubscribe=function(){this.JSC$9400_isStopped=this.closed=!0;this.observers=null};
_.w._trySubscribe=function(G){this._throwIfClosed();return WY.prototype._trySubscribe.call(this,G)};
_.w._subscribe=function(G){this._throwIfClosed();this._checkFinalizedStatuses(G);return this._innerSubscribe(G)};
_.w._innerSubscribe=function(G){var B=this,F=this.JSC$9400_isStopped,D=this.observers;return this.hasError||F?mn.JSC$9379_EMPTY:(D.push(G),new mn(function(){return pY6(B.observers,G)}))};
_.w._checkFinalizedStatuses=function(G){var B=this.thrownError,F=this.JSC$9400_isStopped;this.hasError?G.error(B):F&&G.complete()};
v7.create=function(G,B){return new F3(G,B)};
var F3=function(G,B){v7.call(this);this.destination=G;this.source=B};
_.r(F3,v7);F3.create=v7.create;F3.prototype.next=function(G){var B,F;(B=this.destination)==null||(F=B.next)==null||F.call(B,G)};
F3.prototype.error=function(G){var B,F;(B=this.destination)==null||(F=B.error)==null||F.call(B,G)};
F3.prototype.complete=function(){var G,B;(G=this.destination)==null||(B=G.complete)==null||B.call(G)};
F3.prototype._subscribe=function(G){var B,F;return(F=(B=this.source)==null?void 0:B.subscribe(G))!=null?F:mn.JSC$9379_EMPTY};var LT=function(G){v7.call(this);this._value=G};
_.r(LT,v7);LT.create=v7.create;LT.prototype._subscribe=function(G){var B=v7.prototype._subscribe.call(this,G);!B.closed&&G.next(this._value);return B};
LT.prototype.getValue=function(){var G=this.thrownError,B=this._value;if(this.hasError)throw G;this._throwIfClosed();return B};
LT.prototype.next=function(G){v7.prototype.next.call(this,this._value=G)};
_.ZN.Object.defineProperties(LT.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var B7=new WY(function(G){return G.complete()});var fKL=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var sos=function(G){return G&&typeof G.length==="number"&&typeof G!=="function"};var M58={now:function(){return(M58.delegate||Date).now()},
delegate:void 0};var Eh=function(G,B,F){G=G===void 0?Infinity:G;B=B===void 0?Infinity:B;F=F===void 0?M58:F;v7.call(this);this.bufferSize=G;this.windowTime=B;this.timestampProvider=F;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=B===Infinity;this.bufferSize=Math.max(1,G);this.windowTime=Math.max(1,B)};
_.r(Eh,v7);Eh.create=v7.create;Eh.prototype.next=function(G){var B=this.buffer,F=this.infiniteTimeWindow,D=this.timestampProvider,u=this.windowTime;this.JSC$9400_isStopped||(B.push(G),!F&&B.push(D.now()+u));p7v(this);v7.prototype.next.call(this,G)};
Eh.prototype._subscribe=function(G){this._throwIfClosed();p7v(this);for(var B=this._innerSubscribe(G),F=this.infiniteTimeWindow,D=this.buffer.slice(),u=0;u<D.length&&!G.closed;u+=F?1:2)G.next(D[u]);this._checkFinalizedStatuses(G);return B};
var p7v=function(G){var B=G.bufferSize,F=G.timestampProvider,D=G.buffer;G=G.infiniteTimeWindow;var u=(G?1:2)*B;B<Infinity&&u<D.length&&D.splice(0,D.length-u);if(!G){B=F.now();F=0;for(G=1;G<D.length&&D[G]<=B;G+=2)F=G;F&&D.splice(0,F+1)}};var ACN=function(G,B){B=B===void 0?Yh8:B;this.schedulerActionCtor=G;this.now=B};
ACN.prototype.schedule=function(G,B,F){B=B===void 0?0:B;return(new this.schedulerActionCtor(this,G)).schedule(F,B)};
var Yh8=M58.now;var cCg=function(){var G=Error.call(this,"no elements in sequence");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.r(cCg,Error);var fI=function(G,B,F,D,u){G6.call(this,G);this.onUnsubscribe=u;B&&(this._next=function(R){try{B(R)}catch(N){this.destination.error(N)}});
F&&(this._error=function(R){try{F(R)}catch(N){this.destination.error(N)}this.unsubscribe()});
D&&(this._complete=function(){try{D()}catch(R){this.destination.error(R)}this.unsubscribe()})};
_.r(fI,G6);fI.JSC$9379_EMPTY=G6.JSC$9379_EMPTY;fI.create=G6.create;fI.prototype.unsubscribe=function(){var G;this.closed||(G=this.onUnsubscribe)!=null&&G.call(this);G6.prototype.unsubscribe.call(this)};var Uh=function(G,B){this.source=G;this.subjectFactory=B;this._subject=null;this._refCount=0;this._connection=null};
_.r(Uh,WY);Uh.create=WY.create;Uh.prototype._subscribe=function(G){return dPy(this).subscribe(G)};
var dPy=function(G){var B=G._subject;if(!B||B.JSC$9400_isStopped)G._subject=G.subjectFactory();return G._subject};
Uh.prototype._teardown=function(){this._refCount=0;var G=this._connection;this._subject=this._connection=null;G==null||G.unsubscribe()};
Uh.prototype.connect=function(){var G=this,B=this._connection;if(!B){B=this._connection=new mn;var F=dPy(this);B.add(this.source.subscribe(new fI(F,void 0,function(D){G._teardown();F.error(D)},function(){G._teardown();
F.complete()},function(){return G._teardown()})));
B.closed&&(this._connection=null,B=mn.JSC$9379_EMPTY)}return B};var NOM=Array.isArray;var niQ=Array.isArray,JCa=Object,lJM=JCa.getPrototypeOf,UP6=JCa.prototype,qhg=JCa.keys;var xd=function(G,B,F){G6.call(this,G);this._next=B;this.shouldComplete=F};
_.r(xd,G6);xd.JSC$9379_EMPTY=G6.JSC$9379_EMPTY;xd.create=G6.create;xd.prototype._complete=function(){this.shouldComplete()?G6.prototype._complete.call(this):this.unsubscribe()};var L_L=["addListener","removeListener"],jkz=["addEventListener","removeEventListener"],W_I=["on","off"];var DX=function(){mn.call(this)};
_.r(DX,mn);DX.JSC$9379_EMPTY=mn.JSC$9379_EMPTY;DX.prototype.schedule=function(){return this};var cCt=function(G,B){return setInterval.apply(null,[G,B].concat(_.gi(_.xS.apply(2,arguments))))};var uL=function(G,B){mn.call(this);this.scheduler=G;this.work=B;this.pending=!1};
_.r(uL,DX);uL.JSC$9379_EMPTY=DX.JSC$9379_EMPTY;uL.prototype.schedule=function(G,B){B=B===void 0?0:B;if(this.closed)return this;this.state=G;G=this.id;var F=this.scheduler;G!=null&&(this.id=TOG(this,G,B));this.pending=!0;this.delay=B;this.id=this.id||this.requestAsyncId(F,this.id,B);return this};
uL.prototype.requestAsyncId=function(G,B,F){F=F===void 0?0:F;return cCt(G.flush.bind(G,this),F)};
var TOG=function(G,B,F){F=F===void 0?0:F;if(F!=null&&G.delay===F&&G.pending===!1)return B;clearInterval(B)};
uL.prototype.execute=function(G,B){if(this.closed)return Error("ia");this.pending=!1;if(G=this._execute(G,B))return G;this.pending===!1&&this.id!=null&&(this.id=TOG(this,this.id,null))};
uL.prototype._execute=function(G){var B=!1;try{this.work(G)}catch(D){B=!0;var F=!!D&&D||Error(D)}if(B)return this.unsubscribe(),F};
uL.prototype.unsubscribe=function(){if(!this.closed){var G=this.id,B=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;pY6(B,this);G!=null&&(this.id=TOG(this,G,null));this.delay=null;DX.prototype.unsubscribe.call(this)}};var IJN=function(G,B){B=B===void 0?Yh8:B;ACN.call(this,G,B);this.actions=[];this.active=!1;this.scheduled=void 0};
_.r(IJN,ACN);IJN.prototype.flush=function(G){var B=this.actions;if(this.active)B.push(G);else{var F;this.active=!0;do if(F=G.execute(G.state,G.delay))break;while(G=B.shift());this.active=!1;if(F){for(;G=B.shift();)G.unsubscribe();throw F;}}};var yg=new WY(QD);var HSI=Array.isArray;var RK=function(G,B){uL.call(this,G,B);this.scheduler=G;this.work=B};
_.r(RK,uL);RK.JSC$9379_EMPTY=uL.JSC$9379_EMPTY;RK.prototype.schedule=function(G,B){B=B===void 0?0:B;if(B>0)return uL.prototype.schedule.call(this,G,B);this.delay=B;this.state=G;this.scheduler.flush(this);return this};
RK.prototype.execute=function(G,B){return B>0||this.closed?uL.prototype.execute.call(this,G,B):this._execute(G,B)};
RK.prototype.requestAsyncId=function(G,B,F){F=F===void 0?0:F;return F!=null&&F>0||F==null&&this.delay>0?uL.prototype.requestAsyncId.call(this,G,B,F):G.flush(this)};var fJN=function(){IJN.apply(this,arguments)};
_.r(fJN,IJN);var w7U=new fJN(RK);var t58=function(){this.performanceMonitor=new xmv;this.queue=new P5y;this.internalSymbol=Symbol();this.debugNames=new bSt};
t58.prototype.getOnBackgrounded=function(){return yg};
_.ZN.Object.defineProperties(t58.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var wZ=function(G,B){B=Error.call(this,B?G+": "+B:String(G));this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=G;this.__proto__=wZ.prototype;this.name=String(G)};
_.r(wZ,Error);var nT=function(G){wZ.call(this,1E3,'sfr:"'+G+'"');this.measurementStrategyFailureReason=G;this.__proto__=nT.prototype};
_.r(nT,wZ);var lB=function(){wZ.call(this,1003);this.__proto__=lB.prototype};
_.r(lB,wZ);var Cc=function(){wZ.call(this,1009);this.__proto__=Cc.prototype};
_.r(Cc,wZ);var ZSL=function(){wZ.call(this,1011);this.__proto__=ZSL.prototype};
_.r(ZSL,wZ);var gi7=function(){wZ.call(this,1007);this.__proto__=lB.prototype};
_.r(gi7,wZ);var CT=function(G){wZ.call(this,1004,String(G));this.inputObservableIndex=G;this.__proto__=CT.prototype};
_.r(CT,wZ);var HnU=function(G){wZ.call(this,1010,G);this.__proto__=k_g.prototype};
_.r(HnU,wZ);var k_g=function(G){wZ.call(this,1005,G);this.__proto__=k_g.prototype};
_.r(k_g,wZ);var ShN=function(G){var B=_.xS.apply(1,arguments),F=this;this.orderedFactories=[];this.orderedFactories.push(G);B.forEach(function(D){F.orderedFactories.push(D)})};
ShN.prototype.isSupported=function(G){return this.orderedFactories.some(function(B){return B.isSupported(G)})};
ShN.prototype.makeBeacon=function(G,B){for(var F=0;F<this.orderedFactories.length;F++)if(this.orderedFactories[F].isSupported(B))return this.orderedFactories[F].makeBeacon(G,B);throw new Cc;};var E0z=Symbol("ja"),skG=Symbol("ka"),uM=function(G,B){this.value=G;this.timeline=B},DJ=function(G,B){if(B.timeline!==G.timeline)throw new gi7;
return G.value-B.value};
_.w=uM.prototype;_.w.equals=function(G){return DJ(this,G)===0};
_.w.maximum=function(G){if(G.timeline!==this.timeline)throw new gi7;return this.value>=G.value?this:G};
_.w.round=function(){return new uM(Math.round(this.value),this.timeline)};
_.w.add=function(G){return new uM(this.value+G,this.timeline)};
_.w.toString=function(){return String(this.value)};var NB=function(G,B){this.context=G;this.JSC$9506_pinger=B};
NB.prototype.isSupported=function(G){return this.JSC$9506_pinger.isSupported(G)};
NB.prototype.makeBeacon=function(G,B){if(!this.isSupported(B))throw new Cc;return new yy(this.context,this.JSC$9506_pinger,B!=null?B:void 0,G)};
var yy=function(G,B,F,D){var u=this;this.JSC$9512_pinger=B;this.properties=F;this.url=D;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var R;this.method=(R=F==null?void 0:F.beaconMethod)!=null?R:"GET";this.backgroundedSubscription=G.getOnBackgrounded().subscribe(function(){u.sendNow()})};
yy.prototype.deactivate=function(){this.internalIsPending=!1};
yy.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9512_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var G,B;this.JSC$9512_pinger.pingWithHeadersAndBody((G=this.properties)!=null?G:{},this.customHeaders,(B=this.body)!=null?B:"",this.url)}else this.JSC$9512_pinger.ping(this.url);this.internalIsPending=!1}catch(F){}else this.internalIsPending=!1};
yy.prototype.setHeader=function(G,B){this.customHeaders.set(G,B)};
_.ZN.Object.defineProperties(yy.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var PMP=function(){for(var G=_.C(_.xS.apply(0,arguments)),B=G.next();!B.done;B=G.next())if(B=B.value,B.available()){this.timeProvider=B;return}this.timeProvider=new xPv};
_.w=PMP.prototype;_.w.available=function(){return this.timeProvider.available()};
_.w.now=function(){return this.timeProvider.now()};
_.w.setTimeout=function(G,B){return this.timeProvider.setTimeout(G,B)};
_.w.clearTimeout=function(G){this.timeProvider.clearTimeout(G)};
_.w.interval=function(G,B){var F=this.intervalObservable(G).subscribe(B);return function(){return void F.unsubscribe()}};
_.w.intervalObservable=function(G){return this.timeProvider.intervalObservable(G)};
_.ZN.Object.defineProperties(PMP.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var xPv=function(){this.timeline=Symbol()};
_.w=xPv.prototype;_.w.available=function(){return!1};
_.w.now=function(){return new uM(0,this.timeline)};
_.w.setTimeout=function(){return 0};
_.w.clearTimeout=function(){};
_.w.interval=function(){return function(){}};
_.w.intervalObservable=function(){return yg};var nc=function(G,B){this.intrinsicFunctionNamespace=G;this.performanceMonitor=B};
_.w=nc.prototype;_.w.setTimeout=function(G,B){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,G),B)};
_.w.clearTimeout=function(G){this.intrinsicFunctionNamespace.clearTimeout(G)};
_.w.interval=function(G,B){var F=this.intervalObservable(G).subscribe(B);return function(){return void F.unsubscribe()}};
_.w.intervalObservable=function(G){var B=this;return new WY(function(F){var D=0,u=B.intrinsicFunctionNamespace.setInterval(function(){F.next(D++)},G);
return function(){B.intrinsicFunctionNamespace.clearInterval(u)}})};
_.w.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var G2q=function(G,B){nc.call(this,G,B);this.timeline=skG};
_.r(G2q,nc);G2q.prototype.now=function(){return new uM(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
G2q.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&nc.prototype.available.call(this)};var Bqw=function(G,B){nc.call(this,G,B);this.timeline=E0z};
_.r(Bqw,nc);Bqw.prototype.now=function(){return new uM(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Bqw.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&nc.prototype.available.call(this)};var FGy=function(G){this.context=G;if(iTy===void 0)a:{var B,F,D=(B=G.global)==null?void 0:(F=B.document)==null?void 0:F.createElement("meta");if(D)try{D.httpEquiv="origin-trial";D.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";G.global.document.head.append(D);iTy=D;break a}catch(u){}iTy=void 0}},
iTy;
FGy.prototype.isSupported=function(G){return M5L(this.context)!==void 0&&!(G==null||!G.endOfSession)&&!lL(this.context)&&!(G==null?0:G.attributionEnabled)&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
FGy.prototype.makeBeacon=function(G,B){if(!this.isSupported(B))throw new Cc;return new Ul(this.context,G,B)};
var Ul=function(G,B,F){this.context=G;this.properties=F;this.JSC$9539_urlWithoutToken=B;var D;this.beaconMethod=(D=F==null?void 0:F.beaconMethod)!=null?D:"GET";G=M5L(this.context);if(G===void 0)throw Error();this.fetchLater=G;DKP(this,u2s(this))},DKP=function(G,B){G.beaconResult&&G.beaconResult.activated||(G.beaconAbort=new AbortController,G.beaconResult=G.fetchLater(B,{method:G.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:G.beaconAbort.signal,activateAfter:96E4}))},u2s=function(G){G=G.JSC$9539_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"flapi=1"};
Ul.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Ul.prototype.sendNow=function(){};
Ul.prototype.setHeader=function(){};
_.ZN.Object.defineProperties(Ul.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9539_urlWithoutToken},
set:function(G){this.JSC$9539_urlWithoutToken=G;G=u2s(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);DKP(this,G)}},
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 RFU=function(G){this.context=G};
RFU.prototype.isSupported=function(){return!lL(this.context)&&!!this.context.global.fetch};
RFU.prototype.ping=function(){var G=this;return iM.apply(null,_.gi(_.xS.apply(0,arguments).map(function(B){return zo(G.context.global.fetch(B,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(ZK(function(F){return F.status===200}))}))).pipe(TOS(function(B){return B}),fJ8())};
RFU.prototype.pingWithHeadersAndBody=function(G,B,F){for(var D=_.xS.apply(3,arguments),u=this,R=new Headers,N=_.C(B.entries()),y=N.next();!y.done;y=N.next()){var U=_.C(y.value);y=U.next().value;U=U.next().value;R.set(y,U)}var q,h=(q=G.keepAlive)!=null?q:!1;iM.apply(null,_.gi(D.map(function(K){return zo(u.context.global.fetch(K,Object.assign({},{method:String(G.beaconMethod),cache:"no-cache"},h?{keepalive:!0}:{},{mode:"no-cors",headers:R,body:F}))).pipe(ZK(function(a){return a.status===200}))}))).pipe(TOS(function(K){return K}),
fJ8())};var weN,sXS,CBt;_.qB=function(){};
_.oI=function(G){return G};
weN=function(G){var B=B||0;return function(){return G.apply(this,Array.prototype.slice.call(arguments,0,B))}};
_.El=function(G){var B=!1,F;return function(){B||(F=G(),B=!0);return F}};
_.h5=function(G,B){var F=0;return function(D){_.Fz.clearTimeout(F);var u=arguments;F=_.Fz.setTimeout(function(){G.apply(void 0,u)},B)}};
sXS=function(G,B){var F=0,D=!1,u=[],R=function(){F=0;D&&(D=!1,N())},N=function(){F=_.Fz.setTimeout(R,B);
var y=u;u=[];G.apply(void 0,y)};
return function(y){u=arguments;F?D=!0:N()}};
CBt=function(G,B){var F=0,D=function(){F=0};
return function(u){F||(F=_.Fz.setTimeout(D,B),G.apply(void 0,arguments))}};var Kc=function(G,B,F,D,u){this.allowedElements=G;this.elementPolicies=B;this.allowedGlobalAttributes=F;this.globalAttributePolicies=D;this.globallyAllowedAttributePrefixes=u},Nqq=function(G,B,F){F=G.elementPolicies.get(F);
return(F==null?0:F.has(B))?F.get(B):G.allowedGlobalAttributes.has(B)?{policyAction:1}:(F=G.globalAttributePolicies.get(B))?F:G.globallyAllowedAttributePrefixes&&[].concat(_.gi(G.globallyAllowedAttributePrefixes)).some(function(D){return B.indexOf(D)===0})?{policyAction:1}:{policyAction:0}};var yMt="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(" "),
nkw=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],lRq="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
UKy=[["dir",{policyAction:3,conditions:oM(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:oM(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:oM(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:oM(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],qKG=new Kc(new Set(yMt),new Map(nkw),new Set(lRq),new Map(UKy)),Ek7=new Kc(new Set(yMt.concat(["BUTTON",
"INPUT"])),new Map(nkw),new Set(oM(function(){return lRq.concat(["class","id","name"])})),new Map(oM(function(){return UKy.concat([["style",
{policyAction:1}]])})));var hFP,KG7,mKU;hFP=function(G,B,F,D,u){this.JSC$9596_sanitizerTable=G;this.styleElementSanitizer=B;this.styleAttributeSanitizer=F;this.JSC$9596_resourceUrlPolicy=D;this.JSC$9596_navigationUrlPolicy=u;this.changes=[]};
_.aRt=function(G,B){var F=document.implementation.createHTMLDocument("");G=KG7(G,B,F);F=F.body;F.appendChild(G);F=(new XMLSerializer).serializeToString(F);F=F.slice(F.indexOf(">")+1,F.lastIndexOf("</"));return i5(F)};
KG7=function(G,B,F){B=DKo(B,F);B=document.createTreeWalker(B,5,function(y){if(y.nodeType===3)y=1;else if(RFJ(y))if(y=u26(y),y===null)y=2;else{var U=G.JSC$9596_sanitizerTable;y=y!=="FORM"&&(U.allowedElements.has(y)||U.elementPolicies.has(y))?1:2}else y=2;return y});
for(var D=B.nextNode(),u=F.createDocumentFragment(),R=u;D!==null;){var N=void 0;if(D.nodeType===3)G.styleElementSanitizer&&R.nodeName==="STYLE"?(D=G.styleElementSanitizer(D.data),N=G.createTextNode(D)):N=G.createTextNode(D.data);else if(RFJ(D))N=mKU(G,D,F);else throw Error("$");R.appendChild(N);if(D=B.firstChild())R=N;else for(;!(D=B.nextSibling())&&(D=B.parentNode());)R=R.parentNode}return u};
hFP.prototype.createTextNode=function(G){return document.createTextNode(G)};
mKU=function(G,B,F){var D,u=u26(B);F=F.createElement(u);B=B.attributes;for(var R=_.C(B),N=R.next();!N.done;N=R.next()){var y=N.value;N=y.name;y=y.value;var U=Nqq(G.JSC$9596_sanitizerTable,N,u);a:{if(D=U.conditions){D=_.C(D);for(var q=D.next();!q.done;q=D.next()){var h=_.C(q.value);q=h.next().value;h=h.next().value;var K=void 0;if((q=(K=B.getNamedItem(q))==null?void 0:K.value)&&!h.has(q)){D=!1;break a}}}D=!0}if(D)switch(U.policyAction){case 1:rO(F,N,y);break;case 2:throw Error();case 3:rO(F,N,y.toLowerCase());
break;case 4:G.styleAttributeSanitizer?(y=G.styleAttributeSanitizer(y),rO(F,N,y)):rO(F,N,y);break;case 5:G.JSC$9596_resourceUrlPolicy?(U={type:2,attributeName:N,elementName:u},y=FGl(y),(y=G.JSC$9596_resourceUrlPolicy(y,U))&&rO(F,N,y.toString())):rO(F,N,y);break;case 6:if(G.JSC$9596_resourceUrlPolicy){U={type:2,attributeName:N,elementName:u};D=[];y=_.C(y.split(","));for(q=y.next();!q.done;q=y.next())h=_.C(q.value.trim().split(/\s+/,2)),q=h.next().value,h=h.next().value,D.push({url:q,descriptor:h});
y={parts:[]};D=_.C(D);for(q=D.next();!q.done;q=D.next())q=q.value,h=FGl(q.url),(h=G.JSC$9596_resourceUrlPolicy(h,U))&&y.parts.push({url:h.toString(),descriptor:q.descriptor});rO(F,N,we8(y))}else rO(F,N,y);break;case 7:U=y;if(G.JSC$9596_navigationUrlPolicy){U={type:2,attributeName:N,elementName:u};y=FGl(y);y=G.JSC$9596_navigationUrlPolicy(y,U);if(y===null)break;U=y.toString()}y=U;U=_.HIg(y);U=U!==void 0&&jka.indexOf(U.toLowerCase())!==-1?y:"about:invalid#zClosurez";rO(F,N,U)}}return F};
_.XeP=oM(function(){return new hFP(qKG)});
_.Qiv=oM(function(){return new hFP(Ek7)});var jiN=function(){this.calledBuild=!1;this.JSC$9608_sanitizerTable=qKG},LGq=function(){jiN.apply(this,arguments)};
_.r(LGq,jiN);LGq.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new hFP(this.JSC$9608_sanitizerTable,void 0,void 0,this.JSC$9608_resourceUrlPolicy,this.JSC$9608_navigationUrlPolicy)};var rMq=/[^#]*/;var giQ={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"},WGT=_.El(function(){return skS()}),
k2G=function(){var G=HTs("IFRAME"),B={};
_.dn(WGT(),function(F){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(F)&&(B[F]=!0)});
return B},HTs=function(G,B){B=B===void 0?document:B;
return B.createElement(String(G).toLowerCase())};_.w=_.e5.prototype;_.w.clone=function(){return new _.e5(this.x,this.y)};
_.w.equals=function(G){return G instanceof _.e5&&(this==G?!0:this&&G?this.x==G.x&&this.y==G.y:!1)};
_.w.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.w.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.w.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.w.translate=function(G,B){G instanceof _.e5?(this.x+=G.x,this.y+=G.y):(this.x+=Number(G),typeof B==="number"&&(this.y+=B));return this};
_.w.scale=function(G,B){this.x*=G;this.y*=typeof B==="number"?B:G;return this};_.w=_.$i.prototype;_.w.clone=function(){return new _.$i(this.width,this.height)};
_.w.area=function(){return this.width*this.height};
_.w.aspectRatio=function(){return this.width/this.height};
_.w.isEmpty=function(){return!this.area()};
_.w.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.w.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.w.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.w.scale=function(G,B){this.width*=G;this.height*=typeof B==="number"?B:G;return this};var OTL;_.UK={};OTL="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.UK.add=function(G,B,F){if(G!==null&&B in G)throw Error("oa`"+B);G[B]=F};
_.UK.clear=function(G){for(var B in G)delete G[B]};
_.UK.clone=function(G){var B={},F;for(F in G)B[F]=G[F];return B};
_.UK.contains=function(G,B){return lRI(G,B)};
_.UK.containsKey=function(G,B){return G!==null&&B in G};
_.UK.containsValue=lRI;_.UK.create=EkQ;_.UK.createImmutableView=function(G){var B=G;Object.isFrozen&&!Object.isFrozen(G)&&(B=Object.create(G),Object.freeze(B));return B};
_.UK.createSet=hFo;_.UK.equals=function(G,B){for(var F in G)if(!(F in B)||G[F]!==B[F])return!1;for(var D in B)if(!(D in G))return!1;return!0};
_.UK.every=function(G,B,F){for(var D in G)if(!B.call(F,G[D],D,G))return!1;return!0};
_.UK.extend=function(G,B){for(var F,D,u=1;u<arguments.length;u++){D=arguments[u];for(F in D)G[F]=D[F];for(var R=0;R<OTL.length;R++)F=OTL[R],Object.prototype.hasOwnProperty.call(D,F)&&(G[F]=D[F])}};
_.UK.filter=function(G,B,F){var D={},u;for(u in G)B.call(F,G[u],u,G)&&(D[u]=G[u]);return D};
_.UK.findKey=UKl;_.UK.findValue=function(G,B,F){return(B=UKl(G,B,F))&&G[B]};
_.UK.forEach=function(G,B,F){for(var D in G)B.call(F,G[D],D,G)};
_.UK.get=function(G,B,F){return G!==null&&B in G?G[B]:F};
_.UK.getAllPropertyNames=function(G,B,F){if(!G)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return nkU(G);for(var D={};G&&(G!==Object.prototype||B)&&(G!==Function.prototype||F);){for(var u=Object.getOwnPropertyNames(G),R=0;R<u.length;R++)D[u[R]]=!0;G=Object.getPrototypeOf(G)}return nkU(D)};
_.UK.getAnyKey=function(G){for(var B in G)return B};
_.UK.getAnyValue=function(G){for(var B in G)return G[B]};
_.UK.getCount=function(G){var B=0,F;for(F in G)B++;return B};
_.UK.getKeys=nkU;_.UK.getSuperClass=function(G){return(G=Object.getPrototypeOf(G.prototype))&&G.constructor};
_.UK.getValueByKeys=function(G,B){var F=_.fQ(B),D=F?B:arguments;for(F=F?0:1;F<D.length;F++){if(G==null)return;G=G[D[F]]}return G};
_.UK.getValues=function(G){var B=[],F=0,D;for(D in G)B[F++]=G[D];return B};
_.UK.isEmpty=function(G){for(var B in G)return!1;return!0};
_.UK.isImmutableView=function(G){return!!Object.isFrozen&&Object.isFrozen(G)};
_.UK.map=function(G,B,F){var D={},u;for(u in G)D[u]=B.call(F,G[u],u,G);return D};
_.UK.remove=function(G,B){var F;(F=B in G)&&delete G[B];return F};
_.UK.set=function(G,B,F){G[B]=F};
_.UK.setIfUndefined=function(G,B,F){return B in G?G[B]:G[B]=F};
_.UK.setWithReturnValueIfNotSet=function(G,B,F){if(B in G)return G[B];F=F();return G[B]=F};
_.UK.some=function(G,B,F){for(var D in G)if(B.call(F,G[D],D,G))return!0;return!1};
_.UK.transpose=function(G){var B={},F;for(F in G)B[G[F]]=F;return B};
_.UK.unsafeClone=qKS;var zA=function(G,B){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=G===jxg&&B||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=eFN};
zA.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var $Kv=function(G){return G instanceof zA&&G.constructor===zA&&G.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===eFN?G.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},eFN={},jxg={};
new zA(jxg,"");var Ri,iz,mY,zFT,vkG,VyN,EK,Myy,YKP,peN,Lc,AMy,RG8,fRv,IRq,tyv,ZTN,gkU,SKq,dh6,siw,PBt,G_w,xKq,aK;Ri=function(G){return G?new aK(_.KT(G)):YGv||(YGv=new aK)};
_.JZ=function(G,B){return typeof B==="string"?G.getElementById(B):B};
iz=function(G,B){return(B||document).getElementsByTagName(String(G))};
_.bTG=function(G){return zFT("yt-formatted-string","paper-input-input",G)};
mY=function(G,B,F,D){G=D||G;return(B=B&&B!="*"?String(B).toUpperCase():"")||F?G.querySelectorAll(B+(F?"."+F:"")):G.getElementsByTagName("*")};
zFT=function(G,B,F){var D=document,u=G&&G!="*"?String(G).toUpperCase():"";return u||B?(F||D).querySelector(u+(B?"."+B:"")):mY(D,G,B,F)[0]||null};
vkG=function(G,B){_.UK.forEach(B,function(F,D){D=="style"?G.style.cssText=F:D=="class"?G.className=F:D=="for"?G.htmlFor=F:VyN.hasOwnProperty(D)?G.setAttribute(VyN[D],F):_.wU(D,"aria-")||_.wU(D,"data-")?G.setAttribute(D,F):G[D]=F})};
VyN={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"};_.DR=function(G){G=(G||window).document;G=G.compatMode=="CSS1Compat"?G.documentElement:G.body;return new _.$i(G.clientWidth,G.clientHeight)};
_.okv=function(G){var B=_.X3(G);G=G.defaultView;return new _.e5((G==null?void 0:G.pageXOffset)||B.scrollLeft,(G==null?void 0:G.pageYOffset)||B.scrollTop)};
_.X3=function(G){return G.scrollingElement?G.scrollingElement:_.Bz||G.compatMode!="CSS1Compat"?G.body||G.documentElement:G.documentElement};
EK=function(G){return G?G.defaultView:window};
_.Qy=function(G,B,F){return Myy(document,arguments)};
Myy=function(G,B){var F=B[1],D=peN(G,String(B[0]));F&&(typeof F==="string"?D.className=F:Array.isArray(F)?D.className=F.join(" "):vkG(D,F));B.length>2&&YKP(G,D,B,2);return D};
YKP=function(G,B,F,D){function u(y){y&&B.appendChild(typeof y==="string"?G.createTextNode(y):y)}
for(;D<F.length;D++){var R=F[D];if(!_.fQ(R)||_.Zc(R)&&R.nodeType>0)u(R);else{a:{if(R&&typeof R.length=="number"){if(_.Zc(R)){var N=typeof R.item=="function"||typeof R.item=="string";break a}if(typeof R==="function"){N=typeof R.item=="function";break a}}N=!1}_.dn(N?_.II(R):R,u)}}};
_.G_=function(G){return peN(document,G)};
peN=function(G,B){B=String(B);G.contentType==="application/xhtml+xml"&&(B=B.toLowerCase());return G.createElement(B)};
_.je=function(){return document.createTextNode("\n")};
Lc=function(G){if(G.nodeType!=1)return!1;switch(G.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};
AMy=function(G,B){YKP(_.KT(G),G,arguments,1)};
_.rZ=function(G){for(var B;B=G.firstChild;)G.removeChild(B)};
_.Wb=function(G,B){B.parentNode&&B.parentNode.insertBefore(G,B)};
_.Hb=function(G,B){B.parentNode&&B.parentNode.insertBefore(G,B.nextSibling)};
_.B1=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null};
_.dKL=function(G,B){var F=B.parentNode;F&&F.replaceChild(G,B)};
_.JMv=function(G){var B,F=G.parentNode;if(F&&F.nodeType!=11)if(G.removeNode)G.removeNode(!1);else{for(;B=G.firstChild;)F.insertBefore(B,G);_.B1(G)}};
_.kW=function(G){return G.children!=void 0?G.children:Array.prototype.filter.call(G.childNodes,function(B){return B.nodeType==1})};
_.Tqs=function(G){return G.nextElementSibling!==void 0?G.nextElementSibling:_.cMq(G.nextSibling,!0)};
_.cMq=function(G,B){for(;G&&G.nodeType!=1;)G=B?G.nextSibling:G.previousSibling;return G};
_.Zn=function(G){return _.Zc(G)&&G.nodeType==1};
_.o_=function(G,B){if(!G||!B)return!1;if(G.contains&&B.nodeType==1)return G==B||G.contains(B);if(typeof G.compareDocumentPosition!="undefined")return G==B||!!(G.compareDocumentPosition(B)&16);for(;B&&G!=B;)B=B.parentNode;return B==G};
RG8=function(G,B){if(G==B)return 0;if(G.compareDocumentPosition)return G.compareDocumentPosition(B)&2?1:-1;if("sourceIndex"in G||G.parentNode&&"sourceIndex"in G.parentNode){var F=G.nodeType==1,D=B.nodeType==1;if(F&&D)return G.sourceIndex-B.sourceIndex;var u=G.parentNode,R=B.parentNode;return u==R?IRq(G,B):!F&&_.o_(u,B)?-1*fRv(G,B):!D&&_.o_(R,G)?fRv(B,G):(F?G.sourceIndex:u.sourceIndex)-(D?B.sourceIndex:R.sourceIndex)}D=_.KT(G);F=D.createRange();F.selectNode(G);F.collapse(!0);G=D.createRange();G.selectNode(B);
G.collapse(!0);return F.compareBoundaryPoints(_.Fz.Range.START_TO_END,G)};
fRv=function(G,B){var F=G.parentNode;if(F==B)return-1;for(;B.parentNode!=F;)B=B.parentNode;return IRq(B,G)};
IRq=function(G,B){for(;B=B.previousSibling;)if(B==G)return-1;return 1};
tyv=function(G){var B,F=arguments.length;if(!F)return null;if(F==1)return arguments[0];var D=[],u=Infinity;for(B=0;B<F;B++){for(var R=[],N=arguments[B];N;)R.unshift(N),N=N.parentNode;D.push(R);u=Math.min(u,R.length)}R=null;for(B=0;B<u;B++){N=D[0][B];for(var y=1;y<F;y++)if(N!=D[y][B])return R;R=N}return R};
_.KT=function(G){return G.nodeType==9?G:G.ownerDocument||G.document};
ZTN=function(G){return G.contentDocument||G.contentWindow.document};
_.Ol=function(G,B){if("textContent"in G)G.textContent=B;else if(G.nodeType==3)G.data=String(B);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(B)}else _.rZ(G),G.appendChild(_.KT(G).createTextNode(String(B)))};
gkU={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};SKq={IMG:" ",BR:"\n"};dh6=function(G){var B;G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?B=!G.disabled&&(!G.hasAttribute("tabindex")||siw(G)):B=G.hasAttribute("tabindex")&&siw(G);return B};
siw=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768};
PBt=function(G){var B=[];xKq(G,B,!0);G=B.join("");G=G.replace(/ \xAD /g," ").replace(/\xAD/g,"");G=G.replace(/\u200B/g,"");G=G.replace(/ +/g," ");G!=" "&&(G=G.replace(/^\s*/,""));return G};
G_w=function(G){var B=[];xKq(G,B,!1);return B.join("")};
xKq=function(G,B,F){if(!(G.nodeName in gkU))if(G.nodeType==3)F?B.push(String(G.nodeValue).replace(/(\r\n|\r|\n)/g,"")):B.push(G.nodeValue);else if(G.nodeName in SKq)B.push(SKq[G.nodeName]);else for(G=G.firstChild;G;)xKq(G,B,F),G=G.nextSibling};
_.Bd7=function(G,B,F){if(!B&&!F)return null;var D=B?String(B).toUpperCase():null;return _.mG(G,function(u){return(!D||u.nodeName==D)&&(!F||typeof u.className==="string"&&_.YM(u.className.split(/\s+/),F))},!0)};
_.mG=function(G,B,F){G&&!F&&(G=G.parentNode);for(F=0;G;){if(B(G))return G;G=G.parentNode;F++}return null};
aK=function(G){this.JSC$9636_document_=G||_.Fz.document||document};
_.w=aK.prototype;_.w.getElement=function(G){return _.JZ(this.JSC$9636_document_,G)};
_.w.$=aK.prototype.getElement;_.w.getElementsByTagName=function(G,B){return(B||this.JSC$9636_document_).getElementsByTagName(String(G))};
_.w.getElementsByTagNameAndClass=function(G,B,F){return mY(this.JSC$9636_document_,G,B,F)};
_.w.$$=aK.prototype.getElementsByTagNameAndClass;_.w.setProperties=vkG;_.w.JSC$9638_createDom=function(G,B,F){return Myy(this.JSC$9636_document_,arguments)};
_.w.createElement=function(G){return peN(this.JSC$9636_document_,G)};
_.w.createTextNode=function(G){return this.JSC$9636_document_.createTextNode(String(G))};
_.w.getWindow=function(){return this.JSC$9636_document_.defaultView};
var uB=function(G){return _.okv(G.JSC$9636_document_)};
_.w=aK.prototype;_.w.appendChild=function(G,B){G.appendChild(B)};
_.w.append=AMy;_.w.canHaveChildren=Lc;_.w.removeNode=_.B1;_.w.getChildren=_.kW;_.w.contains=_.o_;_.w.isFocusable=dh6;_.w=zt.prototype;_.w.getWidth=function(){return this.right-this.left};
_.w.getHeight=function(){return this.bottom-this.top};
_.w.clone=function(){return new zt(this.top,this.right,this.bottom,this.left)};
_.w.contains=function(G){return this&&G?G instanceof zt?G.left>=this.left&&G.right<=this.right&&G.top>=this.top&&G.bottom<=this.bottom:G.x>=this.left&&G.x<=this.right&&G.y>=this.top&&G.y<=this.bottom:!1};
_.w.expand=function(G,B,F,D){_.Zc(G)?(this.top-=G.top,this.right+=G.right,this.bottom+=G.bottom,this.left-=G.left):(this.top-=G,this.right+=Number(B),this.bottom+=Number(F),this.left-=Number(D));return this};
_.w.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};
_.w.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};
_.w.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};
_.w.translate=function(G,B){G instanceof _.e5?(this.left+=G.x,this.right+=G.x,this.top+=G.y,this.bottom+=G.y):(this.left+=G,this.right+=G,typeof B==="number"&&(this.top+=B,this.bottom+=B));return this};
_.w.scale=function(G,B){B=typeof B==="number"?B:G;this.left*=G;this.right*=G;this.top*=B;this.bottom*=B;return this};_.w=bM.prototype;_.w.clone=function(){return new bM(this.left,this.top,this.width,this.height)};
_.w.boundingRect=function(G){var B=Math.max(this.left+this.width,G.left+G.width),F=Math.max(this.top+this.height,G.top+G.height);this.left=Math.min(this.left,G.left);this.top=Math.min(this.top,G.top);this.width=B-this.left;this.height=F-this.top};
_.w.contains=function(G){return G instanceof _.e5?G.x>=this.left&&G.x<=this.left+this.width&&G.y>=this.top&&G.y<=this.top+this.height:this.left<=G.left&&this.left+this.width>=G.left+G.width&&this.top<=G.top&&this.top+this.height>=G.top+G.height};
_.w.distance=function(G){var B=G.x<this.left?this.left-G.x:Math.max(G.x-(this.left+this.width),0);G=G.y<this.top?this.top-G.y:Math.max(G.y-(this.top+this.height),0);return Math.sqrt(B*B+G*G)};
_.w.getSize=function(){return new _.$i(this.width,this.height)};
_.w.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};
_.w.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};
_.w.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};
_.w.translate=function(G,B){G instanceof _.e5?(this.left+=G.x,this.top+=G.y):(this.left+=G,typeof B==="number"&&(this.top+=B));return this};
_.w.scale=function(G,B){B=typeof B==="number"?B:G;this.left*=G;this.width*=G;this.top*=B;this.height*=B;return this};var FWs,z6,FSM,$W,w1t,RWw,Czs,wpc,Ndt,n3v;_.ee=function(G,B,F){if(typeof B==="string")(B=_.inG(G,B))&&(G.style[B]=F);else for(var D in B){F=G;var u=B[D],R=_.inG(F,D);R&&(F.style[R]=u)}};
FWs={};_.inG=function(G,B){var F=FWs[B];if(!F){var D=_.xQ(B);F=D;G.style[D]===void 0&&(D=(_.Bz?"Webkit":_.ih?"Moz":null)+zDs(D),G.style[D]!==void 0&&(F=D));FWs[B]=F}return F};
_.S3=function(G,B){var F=_.KT(G);return F.defaultView&&F.defaultView.getComputedStyle&&(G=F.defaultView.getComputedStyle(G,null))?G[B]||G.getPropertyValue(B)||"":""};
_.v1=function(G,B){return _.S3(G,B)||(G.currentStyle?G.currentStyle[B]:null)||G.style&&G.style[B]};
_.DNq=function(G){return _.v1(G,"position")};
z6=function(G,B,F){if(B instanceof _.e5){var D=B.x;B=B.y}else D=B,B=F;G.style.left=$W(D,!1);G.style.top=$W(B,!1)};
FSM=function(G){try{return G.getBoundingClientRect()}catch(B){return{left:0,top:0,right:0,bottom:0}}};
_.ai=function(G){var B=_.KT(G),F=new _.e5(0,0);if(G==(B?_.KT(B):document).documentElement)return F;G=FSM(G);B=uB(Ri(B));F.x=G.left+B.x;F.y=G.top+B.y;return F};
_.ubT=function(G,B,F){if(B instanceof _.$i)F=B.height,B=B.width;else if(F==void 0)throw Error("pa");G.style.width=$W(B,!0);G.style.height=$W(F,!0)};
$W=function(G,B){typeof G=="number"&&(G=(B?Math.round(G):G)+"px");return G};
w1t=function(G){return RWw(G)};
RWw=function(G){var B=Czs;if(_.v1(G,"display")!="none")return B(G);var F=G.style,D=F.display,u=F.visibility,R=F.position;F.visibility="hidden";F.position="absolute";F.display="inline";G=B(G);F.display=D;F.position=R;F.visibility=u;return G};
Czs=function(G){var B=G.offsetWidth,F=G.offsetHeight,D=_.Bz&&!B&&!F;return(B===void 0||D)&&G.getBoundingClientRect?(G=FSM(G),new _.$i(G.right-G.left,G.bottom-G.top)):new _.$i(B,F)};
wpc=function(G){var B=_.ai(G);G=RWw(G);return new bM(B.x,B.y,G.width,G.height)};
Ndt=function(G,B){G=G.style;"opacity"in G?G.opacity=B:"MozOpacity"in G?G.MozOpacity=B:"filter"in G&&(G.filter=B===""?"":"alpha(opacity="+Number(B)*100+")")};
_.dd=function(G,B){G.style.display=B?"":"none"};
_.y7T=function(G){return"rtl"==_.v1(G,"direction")};
n3v=function(G){var B=_.S3(G,"marginLeft"),F=_.S3(G,"marginRight"),D=_.S3(G,"marginTop");G=_.S3(G,"marginBottom");return new zt(parseFloat(D),parseFloat(F),parseFloat(G),parseFloat(B))};
_.ln7=function(G){var B=_.S3(G,"borderLeftWidth"),F=_.S3(G,"borderRightWidth"),D=_.S3(G,"borderTopWidth");G=_.S3(G,"borderBottomWidth");return new zt(parseFloat(D),parseFloat(F),parseFloat(G),parseFloat(B))};var bL=function(G){this.context=G};
bL.prototype.isSupported=function(G){return(G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="POST"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive)?!1:!lL(this.context)};
bL.prototype.ping=function(){var G=this;return cY(_.xS.apply(0,arguments).map(function(B){try{var F=G.context.global,D=!1;D=D===void 0?!1:D;F.google_image_requests||(F.google_image_requests=[]);var u=HTs("IMG",F.document);D&&(u.attributionSrc="");u.src=B;F.google_image_requests.push(u);return!0}catch(R){return!1}}).every(function(B){return B}))};
bL.prototype.pingWithHeadersAndBody=function(G,B,F){this.ping.apply(this,_.gi(_.xS.apply(3,arguments)))};var UNa=function(G){this.context=G};
UNa.prototype.isSupported=function(G){return qrG&&!lL(this.context)&&KGQ(this.context)!==void 0&&!(G==null?0:G.attributionEnabled)&&(G==null?void 0:G.beaconMethod)!=="POST"&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
UNa.prototype.makeBeacon=function(G,B){if(!this.isSupported(B))throw new Cc;return new Vy(this.context,G)};
var qrG=!1,Vy=function(G,B){this.context=G;this.JSC$9657_urlWithoutToken=B;G=KGQ(this.context);if(G===void 0)throw Error();this.wrappedBeacon=new G(E37(this),{})},E37=function(G){G=G.JSC$9657_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"pbapi=1"};
Vy.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Vy.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Vy.prototype.setHeader=function(){};
_.ZN.Object.defineProperties(Vy.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9657_urlWithoutToken},
set:function(G){this.JSC$9657_urlWithoutToken=G;this.wrappedBeacon.setURL(E37(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(G){if(G!=="GET")throw new Cc;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var hWL=function(G){this.context=G};
hWL.prototype.isSupported=function(G){if((G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="GET"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive))return!1;var B;return!lL(this.context)&&((B=this.context.global.navigator)==null?void 0:B.sendBeacon)!==void 0};
hWL.prototype.ping=function(){var G=this;return cY(_.xS.apply(0,arguments).map(function(B){var F;return(F=G.context.global.navigator)==null?void 0:F.sendBeacon(B)}).every(function(B){return B}))};
hWL.prototype.pingWithHeadersAndBody=function(G,B,F){this.ping.apply(this,_.gi(_.xS.apply(3,arguments)))};var Yi=function(G){this.value=G},$k=function(G,B){return cY(G.value).pipe(MP(B))},bB=new Yi(!1),EfS=new Yi(!0);var X2=function(G){this.value=G;this.releasedSubject=new v7};
X2.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.ZN.Object.defineProperties(X2.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9670_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var $KM=["FRAME","IMG","IFRAME"],rMc=/^[01](px)?$/,eF8=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},OTs=function(){var G=new eF8;
G.crossDomainLoadedDefault=!0;G.pendingImagesBlockLoad=!0;return G};var KWN=function(G,B){var F=pe8(G);if(F)if(F.onCreativeLoad)F.onCreativeLoad(B);else{var D=B?[B]:[],u=function(R){for(var N=0;N<D.length;++N)try{D[N](1,R)}catch(y){}D={push:function(y){y(1,R)}}};
F.onCreativeLoad=function(R){D.push(R)};
F.setAttribute("data-creative-load-listener","");F.addEventListener("creativeLoad",function(R){u(R.detail)});
_.Fz.addEventListener("message",function(R){Myl(F,u,R)})}};var vb=function(G,B){var F=this;this.global=G;this.parentContext=B;this.JSC$9681_onVisibilityChange=this.document?iM(cY(!0),Gt(this.document,"visibilitychange")).pipe(Rk(this.parentContext.performanceMonitor,748),ZK(function(){return F.getVisibilityState()}),nS()):cY("visible");
this.document?Gt(this.document,"DOMContentLoaded").pipe(Rk(this.parentContext.performanceMonitor,739),yQ(1)):cY(ji8("DOMContentLoaded"))},qDg=function(G){return G.document!==null&&G.document.visibilityState!==void 0};
vb.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
vb.prototype.querySelector=function(G){return this.document?this.document.querySelector(G):null};
vb.prototype.querySelectorAll=function(G){return this.document?_.II(this.document.querySelectorAll(G)):[]};
vb.prototype.elementFromPoint=function(G,B){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;G=this.document.elementFromPoint(G,B);return G===null?null:new X2(G)};
var Fd6=function(G,B,F){F=F===void 0?!1:F;if(B.ref===void 0||!G.document)return cY(B).pipe(Rk(G.parentContext.performanceMonitor,749));var D=new Eh(1),u=function(){D.next(B)};
F||KWN(B.ref,u);zFg(B.ref,u);return D.pipe(Rk(G.parentContext.performanceMonitor,749),yQ(1))};
_.ZN.Object.defineProperties(vb.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return xPM(this.global,"document")?this.global.document||null:null}}});var YKo=_.vP(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),AMl=_.vP(["./reach_worklet.js"]),dKs=_.vP(["./reach_worklet.js"]),an8=_.vP(["./reach_worklet.html"]),mNw=_.vP(["./reach_worklet.js"]),X18=_.vP(["./reach_worklet.js"]);_.W7(an8);_.W7(mNw);_.W7(X18);var rq={left:0,top:0,width:0,height:0};var fRM=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),FW6=/#|$/,DNc=/[?&]($|#)/;var j_8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(j_8,_.q3);var Q_c=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Q_c,_.q3);var E3Q=function(G,B){return _.wq(G,2,B)},X1L=function(G,B){return _.wq(G,3,B)};
Q_c.prototype.getModel=function(){return _.KX(this,4)};
var KW8=function(G,B){return _.wq(G,4,B)},qrS=function(G,B){return _.wq(G,5,B)},mNU=function(G,B){return _.wq(G,9,B)},UNz=function(G,B){return y1(G,10,B)},lnQ=function(G,B){return _.Ii(G,11,B)},hWs=function(G,B){return _.wq(G,1,B)},anL=function(G,B){return _.Ii(G,7,B)};var y7g="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var z2=function(G,B,F,D){G=G===void 0?window:G;B=B===void 0?null:B;F=F===void 0?new xmv:F;D=D===void 0?JMM():D;t58.call(this);var u=this;this.global=G;this.debugChannel=B;this.performanceMonitor=F;this.onPageHide=Qks(function(){return Gt(u.global,"pagehide")}).pipe(Rk(this.performanceMonitor,941));
this.onLoad=Qks(function(){return Gt(u.global,"load")}).pipe(Rk(this.performanceMonitor,738),yQ(1));
this.onResize=Qks(function(){return Gt(u.global,"resize")}).pipe(Rk(this.performanceMonitor,741));
this.onMessage=Qks(function(){return Gt(u.global,"message")}).pipe(Rk(this.performanceMonitor,740));
this.document=new vb(this.global,this);this.timeProvider=new PMP(new Bqw(this.intrinsicFunctionNamespace,this.performanceMonitor),new G2q(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new ShN(new FGy(this),new UNa(this),new NB(this,new RFU(this)),new NB(this,new hWL(this)),new NB(this,new bL(this)))};
_.r(z2,t58);z2.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(G){return G}};
var lL=function(G){var B=G.global;return!!G.global.HTMLFencedFrameElement&&!!B.fence&&typeof B.fence.reportEvent==="function"};
_.w=z2.prototype;_.w.reportFencedFrameEvent=function(G){lL(this)&&this.global.fence.reportEvent(G)};
_.w.getOnBackgrounded=function(){return this.onPageHide.pipe(Rk(this.performanceMonitor,942),MP(this.queue),ZK(function(){}))};
_.w.postMessage=function(G,B,F){F=F===void 0?[]:F;this.global.postMessage(G,B,F)};
_.w.getWidth=function(){return PMo(this.global)?this.global.width:0};
_.w.getHeight=function(){return PMo(this.global)?this.global.height:0};
_.w.isMobile=function(){return G2c()||BqU()};
var Qg=function(G,B){try{var F=w1g(B,G.global,G.isMobile());return{left:F.left,top:F.top,width:F.getWidth(),height:F.getHeight()}}catch(D){return rq}};
z2.prototype.validate=function(){var G=this.beaconFactory.isSupported()||lL(this);return this.global&&this.timeProvider.available()&&G};
var mKJ=function(G){return(G=r7z(G.global))?zo(G):null};
_.ZN.Object.defineProperties(z2.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(G){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(G){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!PMo(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}}});_.Q_q=!_.ST&&!_.mLM();var hpg=function(G){return G};var aAS=function(G){return G.pipe(FR(function(B){var F=B.endOfSessionReason;var D;return((D=B.viewable)==null?void 0:D.extrapolateToNow().value)||F!=void 0}),yQ(1),CS())};var zWc=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},bnM=function(G){var B=G.sequenceNumber.toString(10).padStart(2,"0");
B=""+G.startTime+B;G.sequenceNumber<99&&G.sequenceNumber++;return B};var Unz=ri(QQ(function(G){return G.endOfSessionReason===void 0}),ZK(function(G){return Object.assign({},G,{timestamps:NK(G)})}),FR(function(G){var B=G.viewable;
G=G.timestamps;var F;return(F=B==null?void 0:B.extrapolateUsingTimestampMap(G).value)!=null?F:!1}),ZK(function(G){var B=G.beaconFactory;
var F=G.timestampedExposureHistory;var D=G.timeOnScreen;var u=G.binaryContext;G=G.timestamps;if(B===void 0||F===void 0||D===void 0||u===void 0)return!1;if(D.extrapolateUsingTimestampMap(G).value.every(function(R){return R>=0}))return!0;
F=F.map(function(R){return R.timestamp+":"+R.value}).join(",");
D=VVz({bin:u,tos:D},G);B.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+D+("&eh="+F)).sendNow();return!0}),QQ(function(G){return!G}),CS());var o3s=function(G){return{id:G.pingId,mcvt:G.maxConsecutiveViewTime,p:G.creativePosition,asp:G.adSpeedPosition,tm:G.totalMeasurementTime,tu:G.totalUnviewedTime,mtos:G.maxTimeOnScreen,tos:G.timeOnScreen,v:G.binaryVersion,bin:G.binaryContext,avms:G.measurementStrategy,bs:G.browserSize,mc:G.maximumExposure,"if":G.crossDomainIframeState,vu:G.delayedImpressionJsState,app:G.inApp,mse:G.mraidError,mtop:G.mraidSituation,itpl:G.injectedTemplateId,adk:G.adKey,exk:G.awbidKey,rs:G.requestSource,la:G.isLargeAd,
cr:G.isContentRecommendationAd,uach:G.userAgentClientHints,vs:G.viewState,r:G.reasonCode,pay:G.hasCpmavUrl,co:G.clientPingOrderCounter,rst:G.adRenderStartTime,rpt:G.adRenderPeriodTime,isd:G.initialScrollDepth,lsd:G.loadedScrollDepth,context:G.errorContext,msg:G.errorMessage,stack:G.errorStack,name:G.errorName,ec:G.hasElementChanged,sfr:G.strategyFailureReasons,met:G.creativeSearchResult,wmsd:G.webMeasurementStartDiagnostic,pv:G.pageVisible,epv:G.eosPageVisible,pbe:G.inStatefulBeaconExperiment,fle:G.inFetchLaterBeaconExperiment,
vae:G.inViewableAttributionExperiment,spb:G.supportsPendingBeacon,sfl:G.supportsFetchLater,ffslot:G.isFencedFrameSlotTurtlex,reach:G.sharedStorageReachMode,io2:G.v2VisibilityBitVector,rxdbg:G.rxDebugger,omida:G.omidAppId,omidp:G.omidPartner,omidpv:G.omidPartnerVersion,omidor:G.omidOcclusionReasons,omidv:G.omidVersion,omids:G.omidSessionType,omidam:G.omidAccessMode,omidct:G.omidCreativeType,omidia:G.omidInApp,omiddc:G.omidDeviceCategory,omidlat:G.omidLastActivity,omiddit:G.omidDeviceIdleTime,qid:G.errorEscapedQueryId}};var KdM=function(G){var B=[];return G.pipe(ZK(function(F){var D=F.beaconFactory,u=F.fetchBeaconFactory,R=F.timeOnScreen,N=F.timeOnScreenUrlPrefixes,y=F.payloadMapper,U=F.timeOnScreenPingId,q=F.timeOnScreenReason,h=F.urlSerializer,K=F.viewable,a=F.hasImpressionFired,m=F.inStatefulBeaconExperiment,L=F.supportsPendingBeacon,W=F.supportsFetchLater,e=F.turtlexReportEventData;if(!F.geometryMeasurable||!a||F.maxTimeOnScreen===void 0||R===void 0||N===void 0||y===void 0||U===void 0||h===void 0||D===void 0)return!1;
if(F.isTurtlex){if(q===void 0)return!1;N=F.reportFencedFrameEvent;if(!N)return!1;N({eventType:"active-view-time-on-screen",eventData:e!=null?e:"",destination:["buyer"]});return!0}if(!(m||W||q))return!1;e=NK(F);var b;K=(b=K==null?void 0:K.extrapolateUsingTimestampMap(e).value)!=null?b:!1;b=h(Object.assign({},F,{pingId:U,viewState:K?4:3,reasonCode:q!=null?q:"u",payloadMapper:y,urlPrefixes:N}),e);if(m){for(;B.length>N.length;)F=void 0,(F=B.shift())==null||F.deactivate();b.forEach(function(t,T){T>=B.length?
B.push(D.makeBeacon(t)):B[T].url=t});
return L&&u&&q!==void 0?(b.forEach(function(t){u.makeBeacon(t).sendNow()}),!0):q!==void 0}if(L&&u&&q!==void 0)return b.forEach(function(t){u.makeBeacon(t).sendNow()}),!0;
if(W&&u){for(;B.length>N.length;)L=void 0,(L=B.shift())==null||L.deactivate();var M=h(Object.assign({},F,{pingId:U,viewState:K?4:3,reasonCode:q!=null?q:"u",payloadMapper:y,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),e)[0];b.forEach(function(t,T){T>=B.length?B.push(D.makeBeacon(M,{endOfSession:!0})):B[T].url=M});
return q!==void 0?(b.forEach(function(t){u.makeBeacon(t).sendNow()}),!0):q!==void 0}return q!==void 0?(b.forEach(function(t){D.makeBeacon(t).sendNow()}),!0):!1}),QQ(function(F){return!F}),CS())};var mnz=ri(FR(function(G){return G.immediateUrlPrefixes!==void 0&&G.payloadMapper!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),FR(function(G){return Tdo(G)!==null}),J7L(function(G){return G.activeViewUnmeasurableEvent},function(G){return G.emit}),ZK(function(G){if(G.isTurtlex){var B=G.reportFencedFrameEvent;
if(B){var F;B({eventType:"active-view-unmeasurable",eventData:(F=G.turtlexReportEventData)!=null?F:"",destination:["buyer"]})}}else{F=void 0;var D=Tdo(G);if(D==="x"){var u,R=(u=G.geometricMeasurementErrors)!=null?u:G.contextValidationErrors;R&&(B=R.stack,F=R.message)}G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:2,reasonCode:D,errorMessage:F,errorStack:B}),NK(G)).forEach(function(N){G.beaconFactory.makeBeacon(N).sendNow()})}}),
yQ(1),CS());var InI=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var lAQ=ri(FR(function(G){return G.payloadMapper!==void 0&&G.immediateUrlPrefixes!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),ZK(function(G){return Object.assign({},G,{timestamps:NK(G)})}),FR(function(G){var B=G.viewable;
var F=G.hasImpressionFired;G=G.timestamps;var D;return!!F&&((D=B==null?void 0:B.extrapolateUsingTimestampMap(G).value)!=null?D:!1)}),J7L(function(G){return G.activeViewViewableEvent},function(G){return G.emit}),ZK(function(G){var B=G.beaconFactory,F=G.turtlexReportEventData;
if(G.isTurtlex){var D=G.reportFencedFrameEvent;if(!D)return!1;D({eventType:"active-view-viewable",eventData:F!=null?F:"",destination:["buyer"]});return!0}F=G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:4,reasonCode:"v"}),G.timestamps);(D=G.cpmavUrls)&&D.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(D,G).forEach(function(u){B.makeBeacon(u).sendNow()});
(D=G.viewableRelayUrls)&&D.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(D,G).forEach(function(u){B.makeBeacon(u).sendNow()});
F.forEach(function(u){B.makeBeacon(u,{attributionEnabled:G.isViewableAttributionEnabled}).sendNow()});
return!0}),QQ(function(G){return!G}),CS());var o0g=ZK(function(G){return[G.value.topWindowViewportExternalGeometry.width,G.value.topWindowViewportExternalGeometry.height]});var jy=function(G,B){this.callback=G;this.options=B;this.intersectionObserverV2=this.intersectionObserverV1=null},KSc=function(G,B){B?G.intersectionObserverV2||(B=Object.assign({},G.options,{delay:100,
trackVisibility:!0}),G.intersectionObserverV2=new IntersectionObserver(G.callback,B)):G.intersectionObserverV1||(G.intersectionObserverV1=new IntersectionObserver(G.callback,G.options))},j_N=function(G,B){G=B?G.intersectionObserverV2:G.intersectionObserverV1;
if(!G)throw new ZSL;return G};
jy.prototype.observe=function(G,B){j_N(this,G).observe(B)};
jy.prototype.unobserve=function(G,B){j_N(this,G).unobserve(B)};
jy.prototype.disconnect=function(G){j_N(this,G).disconnect()};
jy.prototype.takeRecords=function(G){return j_N(this,G).takeRecords()};var ueI={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:rq,topWindowViewportExternalGeometry:rq,measurementRequests:new v7,elementGeometrySourceName:"ns",elementGeometry:rq,intersectionGeometry:rq,viewportLocalAppOffset:{x:0,y:0}};var r0M=We(ri(ZK(function(G){var B;return(B=G.exposureOverride)!=null?B:mgz(G)}),ZK(function(G){return isFinite(G)?G:0}))),zXz=We(ri(ZK(function(G){var B;
return(B=G.exposureOverride)!=null?B:mgz(G)}),ZK(function(G){return isFinite(G)?G:-1})));var oK=function(G,B){this.a=G;this.b=B;if(G.clock.timeline!==B.clock.timeline)throw Error();};
oK.prototype.equivalentTo=function(G){return G instanceof oK?this.a.equivalentTo(G.a)&&this.b.equivalentTo(G.b):!1};
oK.prototype.extrapolateToTime=function(G){var B=this.a.extrapolateToTime(G).value,F=this.b.extrapolateToTime(G).value;return{timestamp:G,value:[B,F]}};
_.ZN.Object.defineProperties(oK.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 G=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),B=this.a.lastMeasurement.timestamp.equals(G)?this.a.lastMeasurement.value:this.a.extrapolateToTime(G).value,F=this.b.lastMeasurement.timestamp.equals(G)?this.b.lastMeasurement.value:this.b.extrapolateToTime(G).value;return{timestamp:G,value:[B,F]}}}});var MB=function(G,B){this.input=G;this.mapFunction=B;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
MB.prototype.equivalentTo=function(G){return G instanceof MB?this.input.equivalentTo(G.input)&&this.mapFunction===G.mapFunction:!1};
MB.prototype.extrapolateToTime=function(G){G=this.input.extrapolateToTime(G);return{timestamp:G.timestamp,value:this.mapFunction(G.value)}};
_.ZN.Object.defineProperties(MB.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var pc=function(){};
pc.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
pc.prototype.extrapolateUsingTimestampMap=function(G){var B=this.clock.timeline,F,D=(F=G.get(B))!=null?F:this.clock.now();G.set(B,D);return this.extrapolateToTime(D)};
pc.prototype.map=function(G){return new LWv(this,G)};
pc.prototype.joinWith=function(G){return new r7a(this,G)};
var r7a=function(){oK.apply(this,arguments);this.map=pc.prototype.map;this.joinWith=pc.prototype.joinWith;this.extrapolateToNow=pc.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pc.prototype.extrapolateUsingTimestampMap};
_.r(r7a,oK);var LWv=function(){MB.apply(this,arguments);this.map=pc.prototype.map;this.joinWith=pc.prototype.joinWith;this.extrapolateToNow=pc.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pc.prototype.extrapolateUsingTimestampMap};
_.r(LWv,MB);var kk=function(G,B){this.lastMeasurement=B;this.extrapolateToNow=pc.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pc.prototype.extrapolateUsingTimestampMap;this.map=pc.prototype.map;this.joinWith=pc.prototype.joinWith;this.clock=G};
kk.prototype.equivalentTo=function(G){return G.active};
kk.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.ZN.Object.defineProperties(kk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var v0c=ZK(function(G){if(G.value.viewportGeometrySourceName==="omid"){if(G.value.elementGeometrySourceName==="nio")return"omio";if(G.value.elementGeometrySourceName==="geo")return"omgeo"}return G.value.elementGeometrySourceName==="geo"||G.value.elementGeometrySourceName==="nio"?G.value.viewportGeometrySourceName:G.value.elementGeometrySourceName});var Q7M=ri(FR(function(G){return!isNaN(G)}),KS(function(G,B){return isNaN(G)?B:Math.min(G,B)},NaN),nS());var WSI=We(ri(ZK(function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.exposedViewportLocalGeometry.width*G.exposedViewportLocalGeometry.height)}),ZK(function(G){return isFinite(G)?Math.min(1,G):0})));var V2l=ri(We(ZK(function(G){G=G.exposureOverride?G.elementGeometry.width*G.elementGeometry.height*G.exposureOverride/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height):G.intersectionGeometry.width*G.intersectionGeometry.height/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height);return isFinite(G)?G:0})));var Y4I=function(G,B){var F=this;this.timeProvider=G;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=B.pipe(nS()).subscribe(function(D){dgS(F);F.measurementRequestObserver=D})},J0I=function(G,B){dgS(G);
G.lastMeasurementRequest=G.timeProvider.setTimeout(function(){var F;return void((F=G.measurementRequestObserver)==null?void 0:F.next())},B)},dgS=function(G){G.lastMeasurementRequest!==null&&G.timeProvider.clearTimeout(G.lastMeasurementRequest);
G.lastMeasurementRequest=null};
Y4I.prototype.dispose=function(){dgS(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var WWw=function(){};var Nng=function(G,B){this.context=G;this.strategies=B};
_.r(Nng,WWw);Nng.prototype.buildGeometrySource=function(G,B){var F=this.strategies.map(function(R){return R.buildGeometrySource(G,B)}),D=t2z(F.map(function(R){return R.geometrySource})),u=D.capturedErrors.pipe(Hnw());
return{geometrySource:D.chain.pipe(MP(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:u,strategyErrors:D.capturedErrors}].concat(_.gi(F.map(function(R){return R.additionalOutputs}))))}};
var Hnw=function(){return KS(function(G,B){B instanceof nT?G.push(B.measurementStrategyFailureReason):G.push(-1);return G},[])};var nfl=function(G,B){this.context=G;this.poller=B};
_.r(nfl,WWw);nfl.prototype.buildGeometrySource=function(G,B){var F=ZEc(S4I(this.context,this.poller),RXU(this.context,B.requestSource));return{geometrySource:fB8(G.measurableCreative.pipe(F),B.inApp),additionalOutputs:{}}};var yeg=function(G,B,F){F=F===void 0?lBU(G,B):F;this.context=G;this.intersectionObserverStrategy=F};
_.r(yeg,WWw);yeg.prototype.buildGeometrySource=function(G,B){var F=this.intersectionObserverStrategy(B.useV2);return{geometrySource:fB8(G.measurableCreative.pipe(F,UgM(this.context)),B.inApp),additionalOutputs:{}}};var k_T=function(G,B,F){var D=D===void 0?Symbol():D;this.element=G;this.immediateUrls=B;this.timeOnScreenUrls=F;this.symbol=D};var pNQ=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),BnM=Object.freeze([1,.75,pNQ.exposureThreshold,pNQ.largeAdExposureThreshold,0]);var Gw8=function(G,B){B=B===void 0?36E5:B;var F=F===void 0?!0:F;this.creatives=new v7;this.elementsToUnregister=new v7;this.elementMap=new Map;var D=new z2(window,null);D.beaconFactory=new NB(D,new bL(D));C9l(D,this.creatives,this.elementsToUnregister,G,B,F).subscribe()},Fel=function(G,B,F,D){if(!G.elementMap.has(B)){var u=new X2(B);
G.elementMap.set(B,u);G.creatives.next(new k_T(u,F,D))}},i5z=function(G,B){G.elementsToUnregister.next(B);
var F=G.elementMap.get(B);F!==void 0&&(F.release(),G.elementMap.delete(B))};var htg=function(G){var B=G.url;G=G.uaDataValues;this.JSC$9786_url_=B;this.uaDataValues_=G;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var F=/[?&]([^&=]+)=([^&]*)/g;G=F.exec(B);)this.urlParamValues_[G[1]]=G[2]},Krs=function(G){G=G.uaDataValues_;
if(!G)return"";var B=Vg("uap",G.platform)+Vg("uapv",G.platformVersion)+Vg("uafv",G.uaFullVersion)+Vg("uaa",G.architecture)+Vg("uam",G.model)+Vg("uab",G.bitness);G.fullVersionList&&(B+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(F){return encodeURIComponent(F.brand)+";"+encodeURIComponent(F.version)}).join("|")));
G.wow64!=null&&(B+="&uaw="+Number(G.wow64));return B.slice(1)};var On7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(On7,_.q3);On7.prototype.getId=function(){return _.KX(this,1)};var YW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(YW,_.q3);YW.prototype.getSeconds=function(){return E8(this,1)};
YW.prototype.setSeconds=function(G){return _.ua(this,1,XD(G),"0")};_.Xp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(_.Xp,_.q3);_.Xp.prototype.getSeconds=function(){return E8(this,1)};
_.Xp.prototype.setSeconds=function(G){return _.ua(this,1,XD(G),"0")};
_.eWG=function(G){var B=Number(mv(G,1));G=_.AM(G,2);return new Date(B*1E3+G/1E6)};var A5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(A5,_.q3);A5.prototype.getUrl=function(){return _.KX(this,1)};
A5.prototype.setUrl=function(G){return _.v0(this,1,G)};
A5.prototype.getHeight=function(){return _.AM(this,2)};
A5.prototype.getWidth=function(){return _.AM(this,3)};var dZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(dZ,_.q3);dZ.prototype.getAspectRatio=function(){return hR(this,1)};
dZ.prototype.getDuration=function(){return _.sf(this,YW,2)};var $NP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r($NP,_.q3);var zWq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(zWq,_.q3);var bnv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(bnv,_.q3);var VVa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(VVa,_.q3);var v3T=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(v3T,_.q3);var o3L=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(o3L,_.q3);var MVa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(MVa,_.q3);var p18=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(p18,_.q3);var Yrw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Yrw,_.q3);var J5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(J5,_.q3);var cb=[2,4,5,6,7];var A7y=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(A7y,_.q3);var nX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(nX,_.q3);_.w=nX.prototype;_.w.getId=function(){return _.sf(this,On7,1)};
_.w.getName=function(){return _.KX(this,2)};
_.w.setDescription=function(G){return _.v0(this,3,G)};
_.w.getUrl=function(){return _.KX(this,8)};
_.w.setUrl=function(G){return _.v0(this,8,G)};
var T6=function(G){return _.pT(G,A5,10,_.Yk())};
nX.prototype.getOwner=function(G){return _.PGy(this,40,G)};
var IK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(IK,_.q3);_.fc=[0,V1,cjy];_.t5=[0,V1,cjy];var dNa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(dNa,_.q3);var ZX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ZX,_.q3);ZX.prototype.getStatus=function(){return _.aD(this,1)};
ZX.prototype.removeItem=function(G){return gDy(this,2,G)};var J78=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(J78,_.q3);J78.prototype.getName=function(){return _.KX(this,8)};var gZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(gZ,_.q3);gZ.prototype.getCommand=function(){return _.aD(this,1)};
gZ.prototype.getSource=function(){return _.sf(this,J78,2)};
gZ.prototype.setVisible=function(G){return _.y9(this,5,G)};
gZ.prototype.removeItem=function(G){return gDy(this,7,G)};var c7w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(c7w,_.q3);c7w.prototype.getCommand=function(){return _.aD(this,1)};
c7w.prototype.removeItem=function(G){return gDy(this,4,G)};
var TdP=_.$S(c7w);var Se=function(G,B,F){F=F===void 0?Error():F;var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=G;B+=":";F instanceof Error?(this.message=B+F.message,this.stack=F.stack||""):(this.message=B+String(F),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Se,Error);_.uz=function(){this.JSC$9844_disposed_=this.JSC$9844_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.uz.prototype.JSC$9844_disposed_=!1;_.uz.prototype.isDisposed=function(){return this.JSC$9844_disposed_};
_.uz.prototype.dispose=function(){this.JSC$9844_disposed_||(this.JSC$9844_disposed_=!0,this.disposeInternal())};
_.uz.prototype[Symbol.dispose]=function(){this.dispose()};
_.gq=function(G,B){G.addOnDisposeCallback(_.Fw(_.ve,B))};
_.uz.prototype.addOnDisposeCallback=function(G,B){this.JSC$9844_disposed_?B!==void 0?G.call(B):G():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),B&&(G=G.bind(B)),this.onDisposeCallbacks_.push(G))};
_.uz.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var sl=function(G){_.uz.call(this);this.wpc=G};
_.r(sl,_.uz);sl.prototype.tdI=function(){return this.wpc.f()};
sl.prototype.cae=function(G){return this.wpc.c(G)};
sl.prototype.fI=function(G){return this.wpc.m(reg(G))};
sl.prototype.ukD=function(G){return this.wpc.mws(reg(G))};
var MK=function(G){_.uz.call(this);var B=this;this.vm=G;this.aRE="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.d4r=void 0;this.boD=this.vm.p;this.cy6=this.ora.bind(this);this.addOnDisposeCallback(function(){return void Inq(B)})};
_.r(MK,_.uz);var fnP=function(G){var B;return _.n(function(F){if(F.nextAddress==1){if(!G.vm.wpc)throw new Se(30,"NWA");return G.fjD?F.return(G.fjD):F.yield(G.vm.wpc(),2)}B=F.yieldResult;G.fjD=new sl(B);return F.return(G.fjD)})};
MK.prototype.snapshot=function(G){return this.vm.s(Object.assign({},G.lC&&{c:G.lC},G.nFO&&{s:G.nFO},G.uQr!==void 0&&{p:G.uQr}))};
MK.prototype.ora=function(G){this.vm.e(G)};
MK.prototype.es7=function(G,B){return this.vm.c(G,B,!1)};
var Inq=function(G){G.d4r!==void 0&&(G.aRE.forEach(function(B){var F;(F=G.d4r)==null||F.removeEventListener(B,G.cy6)}),G.d4r=void 0)};
MK.prototype.qka=function(){return this.vm.l()};var xW=function(){_.uz.apply(this,arguments);this.yg8=1};
_.r(xW,_.uz);xW.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.yg8++;return this};
xW.prototype.dispose=function(){--this.yg8||_.uz.prototype.dispose.call(this)};var tVU=function(G){this.m8J=G;G.addNewEventMetric("/client_streamz/bg/frs",_.ce("mk"))};
tVU.prototype.record=function(G,B){this.m8J.record("/client_streamz/bg/frs",G,B)};
var Zn8=function(G){this.k3P=G;G.addNewEventMetric("/client_streamz/bg/wrl",_.ce("mn"),JM("ac"),JM("sc"),_.ce("rk"),_.ce("mk"))};
Zn8.prototype.record=function(G,B,F,D,u,R){this.k3P.record("/client_streamz/bg/wrl",G,B,F,D,u,R)};
var g3N=function(G){this.uVP=G;G.addNewCounter("/client_streamz/bg/ec",_.ce("en"),_.ce("mk"))};
g3N.prototype.increment=function(G,B){this.uVP.JSC$10097_incrementCounter("/client_streamz/bg/ec",G,B)};
var Srt=function(G){this.lzU=G;G.addNewEventMetric("/client_streamz/bg/el",_.ce("en"),_.ce("mk"))};
Srt.prototype.record=function(G,B,F){this.lzU.record("/client_streamz/bg/el",G,B,F)};
var s_v=function(G){this.x8S=G;G.addNewCounter("/client_streamz/bg/cec",JM("ec"),_.ce("mk"))};
s_v.prototype.increment=function(G,B){this.x8S.JSC$10097_incrementCounter("/client_streamz/bg/cec",G,B)};
var xN7=function(G){this.qtU=G;G.addNewCounter("/client_streamz/bg/po/csc",JM("cs"),_.ce("mk"))};
xN7.prototype.increment=function(G,B){this.qtU.JSC$10097_incrementCounter("/client_streamz/bg/po/csc",G,B)};
var Pzt=function(G){this.s8P=G;G.addNewCounter("/client_streamz/bg/po/ctav",_.ce("av"),_.ce("mk"))};
Pzt.prototype.increment=function(G,B){this.s8P.JSC$10097_incrementCounter("/client_streamz/bg/po/ctav",G,B)};
var GM7=function(G){this.cD8=G;G.addNewCounter("/client_streamz/bg/po/cwsc",_.ce("su"),_.ce("mk"))};
GM7.prototype.increment=function(G,B){this.cD8.JSC$10097_incrementCounter("/client_streamz/bg/po/cwsc",G,B)};var BoQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(BoQ,_.q3);var G0o=function(G,B){return _.D6(G,3,B,$8l)};var BT7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(BT7,_.q3);var iEq=[1,2,3];var FSv=[0,iEq,_.dI,Tmw,tz7];var Dgq=[0,_.JR,[0,z9,_.bc]];var ueq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ueq,_.q3);var RXw=[1,2,3];var wNv=[0,RXw,d3P,oSa,_.cU,Dgq];var CCU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(CCU,_.q3);var NT7=[0,_.JR,FSv,wNv];var y0a=[0,_.Yz];var n0y=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(n0y,_.q3);var lBw=[0,_.Yz,-1,_.MV];var Ugv=[0,_.Yz,-1,_.oD,_.MV];var q4w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(q4w,_.q3);var E0a=[1,2,3];var hXG=[0,E0a,_.cU,lBw,_.cU,Ugv,_.cU,y0a];var KSq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(KSq,_.q3);KSq.prototype.JSC$9917_serializeBinary=Nig([0,_.Yz,hXG,ZeG,_.JR,NT7,I6s,_.f6a]);var aBt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(aBt,_.q3);var Q7v=function(G){var B=new KSq;B=_.wq(B,1,G.JSC$10033_metricName);var F=mga(G);B=_.D6(B,3,F,_.WS);F=[];for(var D=[],u=_.C(G.cellMap.keys()),R=u.next();!R.done;R=u.next())D.push(R.value.split(","));for(u=0;u<D.length;u++){R=D[u];for(var N=G.cellType,y=G.getCells(R)||[],U=[],q=0;q<y.length;q++){var h=y[q],K=h&&h.cellValue;h=new ueq;switch(N){case 3:K=Number(K);Number.isFinite(K)&&uZ(h,1,RXw,XD(K));break;case 2:uZ(h,2,RXw,_.iG(Number(K)))}U.push(h)}N=U;for(y=0;y<N.length;y++){U=N[y];q=new CCU;U=_.ba(q,
2,U);q=[];h=XNT(G);for(K=0;K<h.length;K++){var a=h[K],m=R[K],L=new BT7;switch(a){case 3:uZ(L,1,iEq,HS(String(m)));break;case 2:a=Number(m);Number.isFinite(a)&&uZ(L,2,iEq,_.lG(a));break;case 1:uZ(L,3,iEq,kLI(m==="true"))}q.push(L)}y1(U,1,q);F.push(U)}}y1(B,4,F);return B};var j7P=function(G){if(!G)return"";if(/^about:(?:blank|srcdoc)$/.test(G))return window.origin||"";G.indexOf("blob:")===0&&(G=G.substring(5));G=G.split("#")[0].split("?")[0];G=G.toLowerCase();G.indexOf("//")==0&&(G=window.location.protocol+G);/^[\w\-]*:\/\//.test(G)||(G=window.location.href);var B=G.substring(G.indexOf("://")+3),F=B.indexOf("/");F!=-1&&(B=B.substring(0,F));F=G.substring(0,G.indexOf("://"));if(!F)throw Error("ra`"+G);if(F!=="http"&&F!=="https"&&F!=="chrome-extension"&&F!=="moz-extension"&&
F!=="file"&&F!=="android-app"&&F!=="chrome-search"&&F!=="chrome-untrusted"&&F!=="chrome"&&F!=="app"&&F!=="devtools")throw Error("sa`"+F);G="";var D=B.indexOf(":");if(D!=-1){var u=B.substring(D+1);B=B.substring(0,D);if(F==="http"&&u!=="80"||F==="https"&&u!=="443")G=":"+u}return F+"://"+B+G};var r0v=function(G,B,F){var D=String(_.Fz.location.href);return D&&G&&B?[B,LSq(j7P(D),G,F||null)].join(" "):null},LSq=function(G,B,F){var D=[],u=[];
if((Array.isArray(F)?2:1)==1)return u=[B,G],_.dn(D,function(y){u.push(y)}),WSq(u.join(" "));
var R=[],N=[];_.dn(F,function(y){N.push(y.key);R.push(y.value)});
F=Math.floor((new Date).getTime()/1E3);u=R.length==0?[F,B,G]:[R.join(":"),F,B,G];_.dn(D,function(y){u.push(y)});
G=WSq(u.join(" "));G=[F,G];N.length==0||G.push(N.join(""));return G.join("_")},WSq=function(G){var B=bHg();
B.update(G);return B.digestString().toLowerCase()};var HEP;_.w=T2.prototype;_.w.isEnabled=function(){if(!_.Fz.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};
_.w.set=function(G,B,F){var D=!1;if(typeof F==="object"){var u=F.sameSite;D=F.secure||!1;var R=F.domain||void 0;var N=F.path||void 0;var y=F.maxAge}if(/[;=\s]/.test(G))throw Error("ta`"+G);if(/[;\r\n]/.test(B))throw Error("ua`"+B);y===void 0&&(y=-1);F=R?";domain="+R:"";N=N?";path="+N:"";D=D?";secure":"";y=y<0?"":y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+y*1E3)).toUTCString();this.JSC$9928_document_.cookie=G+"="+B+F+N+y+D+(u!=null?";samesite="+u:"")};
_.w.get=function(G,B){for(var F=G+"=",D=(this.JSC$9928_document_.cookie||"").split(";"),u=0,R;u<D.length;u++){R=ES(D[u]);if(R.lastIndexOf(F,0)==0)return R.slice(F.length);if(R==G)return""}return B};
_.w.remove=function(G,B,F){var D=this.containsKey(G);this.set(G,"",{maxAge:0,path:B,domain:F});return D};
_.w.getKeys=function(){return HEP(this).keys};
_.w.getValues=function(){return HEP(this).values};
_.w.isEmpty=function(){return!this.JSC$9928_document_.cookie};
_.w.getCount=function(){return this.JSC$9928_document_.cookie?(this.JSC$9928_document_.cookie||"").split(";").length:0};
_.w.containsKey=function(G){return this.get(G)!==void 0};
_.w.containsValue=function(G){for(var B=HEP(this).values,F=0;F<B.length;F++)if(B[F]==G)return!0;return!1};
_.w.clear=function(){for(var G=HEP(this).keys,B=G.length-1;B>=0;B--)this.remove(G[B])};
HEP=function(G){G=(G.JSC$9928_document_.cookie||"").split(";");for(var B=[],F=[],D,u,R=0;R<G.length;R++)u=ES(G[R]),D=u.indexOf("="),D==-1?(B.push(""),F.push(u)):(B.push(u.substring(0,D)),F.push(u.substring(D+1)));return{keys:B,values:F}};
_.C8=new T2(typeof document=="undefined"?null:document);var J9s,kMU;J9s=function(){var G=_.Fz.__SAPISID||_.Fz.__APISID||_.Fz.__3PSAPISID||_.Fz.__1PSAPISID||_.Fz.__OVERRIDE_SID;if(G)return!0;typeof document!=="undefined"&&(G=new T2(document),G=G.get("SAPISID")||G.get("APISID")||G.get("__Secure-3PAPISID")||G.get("__Secure-1PAPISID"));return!!G};
kMU=function(G,B,F,D){(G=_.Fz[G])||typeof document==="undefined"||(G=(new T2(document)).get(B));return G?r0v(G,F,D):null};
_.fOM=function(G){var B=j7P(_.Fz==null?void 0:_.Fz.location.href),F=[];if(J9s()){B=B.indexOf("https:")==0||B.indexOf("chrome-extension:")==0||B.indexOf("chrome-untrusted://new-tab-page")==0||B.indexOf("moz-extension:")==0;var D=B?_.Fz.__SAPISID:_.Fz.__APISID;D||typeof document==="undefined"||(D=new T2(document),D=D.get(B?"SAPISID":"APISID")||D.get("__Secure-3PAPISID"));(D=D?r0v(D,B?"SAPISIDHASH":"APISIDHASH",G):null)&&F.push(D);B&&((B=kMU("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",G))&&F.push(B),
(G=kMU("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",G))&&F.push(G))}return F.length==0?null:F.join(" ")};var OEw=function(){this.minSize=1024};
OEw.prototype.compress=function(G){var B,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return B=new CompressionStream("gzip"),F=(new Response(B.readable)).arrayBuffer(),D=B.writable.getWriter(),R.yield(D.write((new TextEncoder).encode(G)),2);case 2:return R.yield(D.close(),3);case 3:return u=Uint8Array,R.yield(F,4);case 4:return R.return(new u(R.yieldResult))}})};
OEw.prototype.isSupported=function(G){return G<this.minSize?!1:typeof CompressionStream!=="undefined"};var eXs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(eXs,_.q3);var Pb=function(G,B){this.intervalMs=G;this.callback=B;this.enabled=!1;this.nowFn=function(){return _.Td()};
this.lastTimeMs=this.nowFn()};
Pb.prototype.setInterval=function(G){this.intervalMs=G;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Pb.prototype.start=function(){var G=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){G.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Pb.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Pb.prototype.tick=function(){var G=this;if(this.enabled){var B=Math.max(this.nowFn()-this.lastTimeMs,0);B<this.intervalMs*.8?this.timer=setTimeout(function(){G.tick()},this.intervalMs-B):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var $gq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r($gq,_.q3);var zXa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(zXa,_.q3);var bEq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(bEq,_.q3);bEq.prototype.getTransmissionType=function(){return _.aD(this,1)};
bEq.prototype.getRetryCount=function(){return _.AM(this,3)};var MRQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(MRQ,_.q3);var GE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(GE,_.q3);var ofg=function(G){y1(p5S,1,G)};
GE.prototype.getModel=function(){return _.KX(this,6)};
var V2y=_.$S(GE);var v0q=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(v0q,_.q3);var VRo=["platform","platformVersion","architecture","model","uaFullVersion"],p5S=new GE,vfQ=null;var Bp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Bp,_.q3);var o0T=function(G){return _.xK(G,1,1)};var M2t=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,4)};
_.r(M2t,_.q3);_.i1=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,36)};
_.r(_.i1,_.q3);_.i1.prototype.getExperimentIds=function(){return _.sf(this,eXs,16)};var pN7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,19)};
_.r(pN7,_.q3);pN7.prototype.setLogSource=function(G){return _.xK(this,2,G)};
pN7.prototype.setScheduler=function(G){return _.xK(this,10,G)};var A0P=function(G,B){this.isServiceWorkerScope=B=B===void 0?!1:B;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new pN7;Number.isInteger(G)&&this.logRequest.setLogSource(G);B||(this.locale=document.documentElement.getAttribute("lang"));Y4q(this,new Bp)};
A0P.prototype.setLogSource=function(G){this.logRequest.setLogSource(G);return this};
var Y4q=function(G,B){_.ba(G.logRequest,1,B);_.aD(B,1)||o0T(B);G.isServiceWorkerScope||(B=FW(G),_.KX(B,5)||_.wq(B,5,G.locale));G.uach&&(B=FW(G),_.sf(B,GE,9)||_.ba(B,9,G.uach))},dgG=function(G,B){G.transmissionType=B},J0q=function(G){var B=B===void 0?VRo:B;
var F=G.isServiceWorkerScope?void 0:EK();F?YD6(F,B).then(function(D){G.uach=V2y(D!=null?D:"[]");D=FW(G);_.ba(D,9,G.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},FW=function(G){var B=_.sf(G.logRequest,Bp,1);
B||(B=new Bp,Y4q(G,B));G=B;B=_.sf(G,v0q,11);B||(B=new v0q,_.ba(G,11,B));return B};
A0P.prototype.build=function(G,B,F,D,u,R){B=B===void 0?0:B;F=F===void 0?0:F;D=D===void 0?null:D;u=u===void 0?0:u;R=R===void 0?0:R;if(!this.isServiceWorkerScope){var N=FW(this);var y=new bEq;y=_.xK(y,1,this.transmissionType);y=_.Ii(y,2,this.isFinal);F=_.jU(y,3,F>0?F:void 0);F=_.jU(F,4,u>0?u:void 0);F=_.jU(F,5,R>0?R:void 0);u=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=u[_.Rq]|0;F=OG(F,R)?F:A2U(F,u,R)?YAc(F,u):new F.constructor(cS(u,R,!0));_.ba(N,10,F)}N=this.logRequest.clone();F=Date.now().toString();
N=_.PQ(N,4,XD(F));G=G.slice();G=y1(N,3,G);D&&(N=new $gq,D=_.jU(N,13,D),N=new zXa,D=_.ba(N,2,D),N=new M2t,D=_.ba(N,1,D),D=_.xK(D,2,9),_.ba(G,18,D));B&&_.Ez(G,14,B);return G};fT.prototype.currBackoffCount_=0;fT.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
fT.prototype.getValue=function(){return this.currValue_};
var c0L=function(G){G.currBaseValue_=Math.min(G.maxValue_,G.currBaseValue_*G.backoffFactor_);G.currValue_=Math.min(G.maxValue_,G.currBaseValue_+(G.randomFactor_?Math.round(G.randomFactor_*(Math.random()-.5)*2*G.currBaseValue_):0));G.currBackoffCount_++};var Pay=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,8)};
_.r(Pay,_.q3);var TTw=_.$S(Pay);var GoU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(GoU,_.q3);var Dg;Dg=new Biw;var u1=function(G){_.uz.call(this);var B=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10006_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$10006_sendBeaconApiEnabled=!1;this.logSource=G.logSource;this.getAuthHeaderValue=
G.getAuthHeaderValue||function(){};
this.logRequestBuilder=new A0P(G.logSource,G.isServiceWorkerScope);this.network=G.network||null;this.productID=G.productID||null;this.bufferSize=1E3;this.clearcutUrl=G.urlOverride||null;this.sessionIndex=G.sessionIndex||null;this.disableAutomaticFlush=G.disableAutomaticFlush||!1;this.withCredentials=!G.disableWithCredentials;this.isServiceWorkerScope=G.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!EK()&&!!EK().navigator&&EK().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(IB8())).searchParams&&!!(new URL(IB8())).searchParams.set;var F=o0T(new Bp);Y4q(this.logRequestBuilder,F);this.flushBackoff=new fT(1E4,3E5,.1);G=fBN(this,G.backgroundJobDeferrer);this.JSC$10006_flushTimer=new Pb(this.flushBackoff.getValue(),G);this.backupTimer=new Pb(6E5,G);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){t2a(B);
var D;(D=B.metalogService)==null||D.flush()}}),document.addEventListener("pagehide",function(){t2a(B);
var D;(D=B.metalogService)==null||D.flush()}))};
_.r(u1,_.uz);var fBN=function(G,B){return G.isBrowserSupported?B?function(){B().then(function(){G.flush()})}:function(){G.flush()}:function(){}};
u1.prototype.disposeInternal=function(){t2a(this);this.JSC$10006_flushTimer.stop();this.backupTimer.stop();_.uz.prototype.disposeInternal.call(this)};
var ZEq=function(G){G.clearcutUrl||(G.clearcutUrl=IB8());try{return(new URL(G.clearcutUrl)).toString()}catch(B){return(new URL(G.clearcutUrl,EK().location.origin)).toString()}};
u1.prototype.dispatch=function(G){if(G instanceof _.i1)this.log(G);else try{var B=new _.i1,F=G.serialize();var D=_.wq(B,8,F);this.log(D)}catch(u){CG(this,4,1)}};
var CG=function(G,B,F){G.metalogService&&G.metalogService.increment(B,F)};
u1.prototype.log=function(G){CG(this,2,1);if(this.isBrowserSupported){G=G.clone();var B=this.sequencePosition++;G=_.Ez(G,21,B);this.componentId&&_.wq(G,26,this.componentId);B=G;if(fqS(_.uc(B,1))==null){var F=Date.now();F=Number.isFinite(F)?F.toString():"0";_.PQ(B,1,XD(F))}_.SAq(B,15)!=null||_.Ez(B,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(F=this.experimentIds.clone(),_.ba(B,16,F));CG(this,1,1);B=this.pendingEvents.length-this.bufferSize+1;B>0&&(this.pendingEvents.splice(0,B),this.numLogsDroppedSinceLastFlush+=
B,CG(this,3,B));this.pendingEvents.push(G);this.disableAutomaticFlush||this.JSC$10006_flushTimer.enabled||this.JSC$10006_flushTimer.start()}};
u1.prototype.flush=function(G,B){var F=this;if(this.pendingEvents.length===0)G&&G();else if(this.JSC$10006_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,g0a(this);else{var D=Date.now();if(this.noFlushUntilMs>D&&this.startWaitingMs<D)B&&B("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?dgG(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var u=this.pendingEvents.length,
R=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),N=this.getAuthHeaderValue();if(N&&this.lastFailedAuth===N)B&&B("stale-auth-token");else{this.pendingEvents=[];this.JSC$10006_flushTimer.enabled&&this.JSC$10006_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;D=R.serialize();var y;this.JSC$10006_compressor&&this.JSC$10006_compressor.isSupported(D.length)&&
(y=this.JSC$10006_compressor.compress(D));var U=S4q(this,D,N),q=function(a){F.flushBackoff.reset();F.JSC$10006_flushTimer.setInterval(F.flushBackoff.getValue());if(a){var m=null;try{var L=JSON.stringify(JSON.parse(a.replace(")]}'\n","")));m=TTw(L)}catch(W){}m&&(a=Number(E8(m,1,_.Yv("-1"))),a>0&&(F.startWaitingMs=Date.now(),F.noFlushUntilMs=F.startWaitingMs+a),qAQ(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Dg.fieldIndex),lZg(m,Dg.fieldIndex),m=Dg.ctor?Dg.getExtensionFn(m,Dg.ctor,Dg.fieldIndex,
Dg.JSC$9186_hasMessageId):Dg.getExtensionFn(m,Dg.fieldIndex,null,Dg.JSC$9186_hasMessageId),m=m===null?void 0:m)&&(m=_.AM(m,1,-1),m!==-1&&(F.flushBackoff=new fT(m<1?1:m,3E5,.1),F.JSC$10006_flushTimer.setInterval(F.flushBackoff.getValue())))}G&&G();F.numRetriesSinceLastSuccessfulFlush=0},h=function(a,m){var L=_.pT(R,_.i1,3,_.Yk());
var W=Number(E8(R,14));c0L(F.flushBackoff);F.JSC$10006_flushTimer.setInterval(F.flushBackoff.getValue());a===401&&N&&(F.lastFailedAuth=N);W&&(F.numLogsDroppedSinceLastFlush+=W);m===void 0&&(m=F.isRetryable(a));m&&(F.pendingEvents=L.concat(F.pendingEvents),F.disableAutomaticFlush||F.JSC$10006_flushTimer.enabled||F.JSC$10006_flushTimer.start());CG(F,7,1);B&&B("net-send-failed",a);++F.numRetriesSinceLastSuccessfulFlush},K=function(){F.network&&F.network.send(U,q,h)};
y?y.then(function(a){CG(F,5,u);U.requestHeaders["Content-Encoding"]="gzip";U.requestHeaders["Content-Type"]="application/binary";U.body=a;U.bodyType=2;K()},function(){CG(F,6,u);
K()}):K()}}}};
var S4q=function(G,B,F){F=F===void 0?null:F;var D=D===void 0?G.withCredentials:D;var u={},R=new URL(ZEq(G));F&&(u.Authorization=F);G.sessionIndex&&(u["X-Goog-AuthUser"]=G.sessionIndex,R.searchParams.set("authuser",G.sessionIndex));G.pageId&&(Object.defineProperty(u,"X-Goog-PageId",{value:G.pageId}),R.searchParams.set("pageId",G.pageId));return{url:R.toString(),body:B,bodyType:1,requestHeaders:u,requestType:"POST",withCredentials:D,timeoutMillis:G.timeoutMillis}},t2a=function(G){G.logRequestBuilder.isFinal=
!0;
G.flush();G.logRequestBuilder.isFinal=!1},g0a=function(G){s7w(G,function(B,F){B=new URL(B);
B.searchParams.set("format","json");var D=!1;try{D=EK().navigator.sendBeacon(B.toString(),F.serialize())}catch(u){}D||(G.isSendBeaconSupported=!1);return D})},s7w=function(G,B){if(G.pendingEvents.length!==0){var F=new URL(ZEq(G));
F.searchParams.delete("format");var D=G.getAuthHeaderValue();D&&F.searchParams.set("auth",D);F.searchParams.set("authuser",G.sessionIndex||"0");for(D=0;D<10&&G.pendingEvents.length;++D){var u=G.pendingEvents.slice(0,32),R=G.logRequestBuilder.build(u,G.numLogsDroppedSinceLastFlush,G.numRetriesSinceLastSuccessfulFlush,G.productID,G.persistedLogRecoveredCount,G.persistedLogExpiredCount);if(!B(F.toString(),R)){++G.numRetriesSinceLastSuccessfulFlush;break}G.numLogsDroppedSinceLastFlush=0;G.numRetriesSinceLastSuccessfulFlush=
0;G.persistedLogRecoveredCount=0;G.persistedLogExpiredCount=0;G.pendingEvents=G.pendingEvents.slice(u.length)}G.JSC$10006_flushTimer.enabled&&G.JSC$10006_flushTimer.stop()}};
u1.prototype.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};
var IB8=function(){return"https://play.google.com/log?format=json&hasfast=true"};var xgs=function(){this.abortSupported=typeof AbortController!=="undefined"};
xgs.prototype.send=function(G,B,F){var D=this,u,R,N,y,U,q,h,K,a,m;return _.n(function(L){switch(L.nextAddress){case 1:return R=(u=D.abortSupported?new AbortController:void 0)?setTimeout(function(){u.abort()},G.timeoutMillis):void 0,_.b5(L,2,3),N=Object.assign({},{method:G.requestType,
headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&u?u.signal:null}),L.yield(fetch(G.url,N),5);case 5:y=L.yieldResult;if(y.status!==200){(U=F)==null||U(y.status);L.jumpTo(3);break}if((q=B)==null){L.jumpTo(7);break}return L.yield(y.text(),8);case 8:q(L.yieldResult);case 7:case 3:_.vY(L);clearTimeout(R);_.Yd(L,0);break;case 2:h=_.Al(L);switch((K=h)==null?void 0:K.name){case "AbortError":(a=F)==null||a(408);break;default:(m=
F)==null||m(400)}L.jumpTo(3)}})};
xgs.prototype.getTransmissionType=function(){return 4};_.ZR=function(G,B){B=B===void 0?"0":B;_.uz.call(this);this.logSource=G;this.sessionIndex=B;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10024_clearExperimentIds=this.productID=null;this.JSC$10024_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.r(_.ZR,_.uz);var snI=function(G,B){G.buildLabel=B;return G},SDg=function(G,B){G.network=B;
return G},P98=function(G,B){G.JSC$10024_clearExperimentIds=B},gf6=function(G){G.JSC$10024_sendBeaconApiEnabled=!0;
return G};
_.ZR.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.ZR.prototype.build=function(){this.network||(this.network=new xgs);var G=new u1({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.fOM,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.gq(this,G);if(this.buildLabel){var B=this.buildLabel,F=
FW(G.logRequestBuilder);_.wq(F,7,B)}G.JSC$10006_compressor=new OEw;this.componentId&&(G.componentId=this.componentId);this.productID&&(G.productID=this.productID);this.pageId&&(G.pageId=this.pageId);this.JSC$10024_clearExperimentIds&&((F=this.JSC$10024_clearExperimentIds)?(G.experimentIds||(G.experimentIds=new eXs),B=G.experimentIds,F=F.serialize(),_.wq(B,4,F)):G.experimentIds&&_.PQ(G.experimentIds,4));this.JSC$10024_sendBeaconApiEnabled&&(G.JSC$10006_sendBeaconApiEnabled=G.isSendBeaconSupported);
J0q(G.logRequestBuilder);this.bufferSize&&(G.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(G);return G};var i88=function(G,B,F,D,u,R,N){G=G===void 0?-1:G;B=B===void 0?"":B;F=F===void 0?"":F;D=D===void 0?!1:D;u=u===void 0?"":u;_.uz.call(this);this.logSource=G;this.componentId=B;R?B=R:(G=new _.ZR(G,"0"),G.componentId=B,_.gq(this,G),F!==""&&(G.destinationUrl=F),D&&(G.serviceWorkerScopeEnabled=!0),u&&snI(G,u),N&&SDg(G,N),B=G.build());this.JSC$10028_transport=B};
_.r(i88,_.uz);i88.prototype.flush=function(G){G=G||[];if(G.length){for(var B=new aBt,F=[],D=0;D<G.length;D++){var u=G[D],R=Q7v(u);F.push(R);u.clear()}y1(B,1,F);this.JSC$10028_transport.dispatch(B);this.JSC$10028_transport.flush()}};var PCv=function(G){this.cellValue=G};var NX=function(G,B,F){this.JSC$10033_metricName=G;this.cellType=B;this.fields=F||[];this.cellMap=new Map},XNT=function(G){return G.fields.map(function(B){return B.fieldType})},mga=function(G){return G.fields.map(function(B){return B.fieldName})};
_.w=NX.prototype;_.w.addCell=function(G){var B=_.xS.apply(1,arguments),F=this.getCells(B);F?F.push(new PCv(G)):this.JSC$10033_setCell(G,B)};
_.w.JSC$10033_setCell=function(G){var B=this.JSC$10033_getKey(_.xS.apply(1,arguments));this.cellMap.set(B,[new PCv(G)])};
_.w.getCells=function(){var G=this.JSC$10033_getKey(_.xS.apply(0,arguments));return this.cellMap.has(G)?this.cellMap.get(G):void 0};
_.w.getCell=function(){var G=this.getCells(_.xS.apply(0,arguments));return G&&G.length?G[0]:void 0};
_.w.clear=function(){this.cellMap.clear()};
_.w.JSC$10033_getKey=function(){var G=_.xS.apply(0,arguments);return G?G.join(","):"key"};var GJ8=function(G,B){NX.call(this,G,3,B)};
_.r(GJ8,NX);GJ8.prototype.JSC$10036_incrementCounterBy=function(G){var B=_.xS.apply(1,arguments),F=0,D=this.getCell(B);D&&(F=D.cellValue);this.JSC$10033_setCell(F+G,B)};var Bnv=function(G,B){NX.call(this,G,2,B)};
_.r(Bnv,NX);Bnv.prototype.record=function(G){this.addCell(G,_.xS.apply(1,arguments))};_.y_=function(G){this.id=G};
_.y_.prototype.toString=function(){return this.id};_.T_=function(G,B){this.type=G instanceof _.y_?String(G):G;this.currentTarget=this.target=B;this.defaultPrevented=this.propagationStopped_=!1};
_.T_.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.T_.prototype.preventDefault=function(){this.defaultPrevented=!0};_.nG=function(G,B){_.T_.call(this,G?G.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;G&&this.init(G,B)};
_.IC(_.nG,_.T_);
_.nG.prototype.init=function(G,B){var F=this.type=G.type,D=G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:null;this.target=G.target||G.srcElement;this.currentTarget=B;B=G.relatedTarget;B||(F=="mouseover"?B=G.fromElement:F=="mouseout"&&(B=G.toElement));this.relatedTarget=B;D?(this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0):(this.offsetX=_.Bz||G.offsetX!==void 0?G.offsetX:G.layerX,
this.offsetY=_.Bz||G.offsetY!==void 0?G.offsetY:G.layerY,this.clientX=G.clientX!==void 0?G.clientX:G.pageX,this.clientY=G.clientY!==void 0?G.clientY:G.pageY,this.screenX=G.screenX||0,this.screenY=G.screenY||0);this.button=G.button;this.keyCode=G.keyCode||0;this.key=G.key||"";this.charCode=G.charCode||(F=="keypress"?G.keyCode:0);this.ctrlKey=G.ctrlKey;this.altKey=G.altKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pointerId=G.pointerId||0;this.pointerType=G.pointerType;this.state=G.state;
this.timeStamp=G.timeStamp;this.event_=G;G.defaultPrevented&&_.nG.superClass_.preventDefault.call(this)};
_.nG.prototype.isButton=function(G){return this.event_.button==G};
_.nG.prototype.stopPropagation=function(){_.nG.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.nG.prototype.preventDefault=function(){_.nG.superClass_.preventDefault.call(this);var G=this.event_;G.preventDefault?G.preventDefault():G.returnValue=!1};var iHT="closure_listenable_"+(Math.random()*1E6|0),l1=function(G){return!(!G||!G[iHT])};var AeQ=0;var Fds=function(G){G.removed=!0;G.listener=null;G.proxy=null;G.src=null;G.handler=null};tM.prototype.add=function(G,B,F,D,u){var R=G.toString();G=this.listeners[R];G||(G=this.listeners[R]=[],this.typeCount_++);var N=DnU(G,B,D,u);N>-1?(B=G[N],F||(B.callOnce=!1)):(B=new dng(B,this.src,R,!!D,u),B.callOnce=F,G.push(B));return B};
tM.prototype.remove=function(G,B,F,D){G=G.toString();if(!(G in this.listeners))return!1;var u=this.listeners[G];B=DnU(u,B,F,D);return B>-1?(Fds(u[B]),_.zJs(u,B),u.length==0&&(delete this.listeners[G],this.typeCount_--),!0):!1};
var um7=function(G,B){var F=B.type;if(!(F in G.listeners))return!1;var D=_.dU(G.listeners[F],B);D&&(Fds(B),G.listeners[F].length==0&&(delete G.listeners[F],G.typeCount_--));return D};
tM.prototype.removeAll=function(G){G=G&&G.toString();var B=0,F;for(F in this.listeners)if(!G||F==G){for(var D=this.listeners[F],u=0;u<D.length;u++)++B,Fds(D[u]);delete this.listeners[F];this.typeCount_--}return B};
tM.prototype.getListener=function(G,B,F,D){G=this.listeners[G.toString()];var u=-1;G&&(u=DnU(G,B,F,D));return u>-1?G[u]:null};
tM.prototype.hasListener=function(G,B){var F=G!==void 0,D=F?G.toString():"",u=B!==void 0;return _.UK.some(this.listeners,function(R){for(var N=0;N<R.length;++N)if(!(F&&R[N].type!=D||u&&R[N].capture!=B))return!0;return!1})};
var DnU=function(G,B,F,D){for(var u=0;u<G.length;++u){var R=G[u];if(!R.removed&&R.listener==B&&R.capture==!!F&&R.handler==D)return u}return-1};var RpN,w5t,C9y,yeT,nfy,h7,Nh,$SI,lA7,Una,UC,qDt,NnT;RpN="closure_lm_"+(Math.random()*1E6|0);w5t={};C9y=0;_.H1=function(G,B,F,D,u){if(D&&D.once)return h7(G,B,F,D,u);if(Array.isArray(B)){for(var R=0;R<B.length;R++)_.H1(G,B[R],F,D,u);return null}F=NnT(F);return l1(G)?G.listen(B,F,_.Zc(D)?!!D.capture:!!D,u):yeT(G,B,F,!1,D,u)};
yeT=function(G,B,F,D,u,R){if(!B)throw Error("wa");var N=_.Zc(u)?!!u.capture:!!u,y=UC(G);y||(G[RpN]=y=new tM(G));F=y.add(B,F,D,N,R);if(F.proxy)return F;D=nfy();F.proxy=D;D.src=G;D.listener=F;if(G.addEventListener)_.esP||(u=N),u===void 0&&(u=!1),G.addEventListener(B.toString(),D,u);else if(G.attachEvent)G.attachEvent(lA7(B.toString()),D);else if(G.addListener&&G.removeListener)G.addListener(D);else throw Error("xa");C9y++;return F};
nfy=function(){var G=Una,B=function(F){return G.call(B.src,B.listener,F)};
return B};
h7=function(G,B,F,D,u){if(Array.isArray(B)){for(var R=0;R<B.length;R++)h7(G,B[R],F,D,u);return null}F=NnT(F);return l1(G)?G.listenOnce(B,F,_.Zc(D)?!!D.capture:!!D,u):yeT(G,B,F,!0,D,u)};
_.qX=function(G,B,F,D,u){if(Array.isArray(B))for(var R=0;R<B.length;R++)_.qX(G,B[R],F,D,u);else D=_.Zc(D)?!!D.capture:!!D,F=NnT(F),l1(G)?G.unlisten(B,F,D,u):G&&(G=UC(G))&&(B=G.getListener(B,F,D,u))&&Nh(B)};
Nh=function(G){if(typeof G==="number"||!G||G.removed)return!1;var B=G.src;if(l1(B))return um7(B.eventTargetListeners_,G);var F=G.type,D=G.proxy;B.removeEventListener?B.removeEventListener(F,D,G.capture):B.detachEvent?B.detachEvent(lA7(F),D):B.addListener&&B.removeListener&&B.removeListener(D);C9y--;(F=UC(B))?(um7(F,G),F.typeCount_==0&&(F.src=null,B[RpN]=null)):Fds(G);return!0};
$SI=function(G,B,F,D,u){F=NnT(F);D=!!D;return l1(G)?G.getListener(B,F,D,u):G?(G=UC(G))?G.getListener(B,F,D,u):null:null};
lA7=function(G){return G in w5t?w5t[G]:w5t[G]="on"+G};
Una=function(G,B){if(G.removed)G=!0;else{B=new _.nG(B,this);var F=G.listener,D=G.handler||G.src;G.callOnce&&Nh(G);G=F.call(D,B)}return G};
UC=function(G){G=G[RpN];return G instanceof tM?G:null};
qDt="__closure_events_fn_"+(Math.random()*1E9>>>0);NnT=function(G){if(typeof G==="function")return G;G[qDt]||(G[qDt]=function(B){return G.handleEvent(B)});
return G[qDt]};_.W1=function(){_.uz.call(this);this.eventTargetListeners_=new tM(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.IC(_.W1,_.uz);_.W1.prototype[iHT]=!0;_.w=_.W1.prototype;_.w.setParentEventTarget=function(G){this.parentEventTarget_=G};
_.w.addEventListener=function(G,B,F,D){_.H1(this,G,B,F,D)};
_.w.removeEventListener=function(G,B,F,D){_.qX(this,G,B,F,D)};
_.w.dispatchEvent=function(G){var B,F=this.parentEventTarget_;if(F)for(B=[];F;F=F.parentEventTarget_)B.push(F);F=this.actualEventTarget_;var D=G.type||G;if(typeof G==="string")G=new _.T_(G,F);else if(G instanceof _.T_)G.target=G.target||F;else{var u=G;G=new _.T_(D,F);_.UK.extend(G,u)}u=!0;var R;if(B)for(R=B.length-1;!G.propagationStopped_&&R>=0;R--){var N=G.currentTarget=B[R];u=EfG(N,D,!0,G)&&u}G.propagationStopped_||(N=G.currentTarget=F,u=EfG(N,D,!0,G)&&u,G.propagationStopped_||(u=EfG(N,D,!1,G)&&
u));if(B)for(R=0;!G.propagationStopped_&&R<B.length;R++)N=G.currentTarget=B[R],u=EfG(N,D,!1,G)&&u;return u};
_.w.disposeInternal=function(){_.W1.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.w.listen=function(G,B,F,D){return this.eventTargetListeners_.add(String(G),B,!1,F,D)};
_.w.listenOnce=function(G,B,F,D){return this.eventTargetListeners_.add(String(G),B,!0,F,D)};
_.w.unlisten=function(G,B,F,D){return this.eventTargetListeners_.remove(String(G),B,F,D)};
_.w.removeAllListeners=function(G){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(G):0};
var EfG=function(G,B,F,D){B=G.eventTargetListeners_.listeners[String(B)];if(!B)return!0;B=B.concat();for(var u=!0,R=0;R<B.length;++R){var N=B[R];if(N&&!N.removed&&N.capture==F){var y=N.listener,U=N.handler||N.src;N.callOnce&&um7(G.eventTargetListeners_,N);u=y.call(U,D)!==!1&&u}}return u&&!D.defaultPrevented};
_.W1.prototype.getListener=function(G,B,F,D){return this.eventTargetListeners_.getListener(String(G),B,F,D)};
_.W1.prototype.hasListener=function(G,B){return this.eventTargetListeners_.hasListener(G!==void 0?String(G):void 0,B)};var EC=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(G){return G&&AsyncContext.Snapshot.wrap(G)}:function(G){return G};var hpt=function(G,B){this.create_=G;this.reset_=B;this.occupants_=0;this.JSC$10068_head_=null};
hpt.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var G=this.JSC$10068_head_;this.JSC$10068_head_=G.next;G.next=null}else G=this.create_();return G};
hpt.prototype.put=function(G){this.reset_(G);this.occupants_<100&&(this.occupants_++,G.next=this.JSC$10068_head_,this.JSC$10068_head_=G)};var Kdv=function(){this.workTail_=this.workHead_=null};
Kdv.prototype.add=function(G,B){var F=ces.get();F.set(G,B);this.workTail_?this.workTail_.next=F:this.workHead_=F;this.workTail_=F};
Kdv.prototype.remove=function(){var G=null;this.workHead_&&(G=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),G.next=null);return G};
var ces=new hpt(function(){return new aAG},function(G){return G.reset()}),aAG=function(){this.next=this.scope=this.fn=null};
aAG.prototype.set=function(G,B){this.fn=G;this.scope=B;this.next=null};
aAG.prototype.reset=function(){this.next=this.scope=this.fn=null};var mna,TnL,Jec,X5a;TnL=!1;Jec=new Kdv;_.hh=function(G,B){mna||X5a();TnL||(mna(),TnL=!0);Jec.add(G,B)};
X5a=function(){var G=Promise.resolve(void 0);mna=function(){G.then(IAz)}};var Qna=function(G){G.prototype.$goog_Thenable=!0},jnw=function(G){if(!G)return!1;
try{return!!G.$goog_Thenable}catch(B){return!1}};var Ldy,ret,WdT,kJ8,OHG,eps,VRP,MR7,dnt,YDs,vUc;_.DS=function(G,B){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(G!=_.qB)try{var F=this;G.call(B,function(D){F.resolve_(2,D)},function(D){F.resolve_(3,D)})}catch(D){this.resolve_(3,D)}};
Ldy=function(){this.next=this.context=this.JSC$10079_onRejected=this.JSC$10079_onFulfilled=this.child=null;this.always=!1};
Ldy.prototype.reset=function(){this.context=this.JSC$10079_onRejected=this.JSC$10079_onFulfilled=this.child=null;this.always=!1};
ret=new hpt(function(){return new Ldy},function(G){G.reset()});
WdT=function(G,B,F){var D=ret.get();D.JSC$10079_onFulfilled=G;D.JSC$10079_onRejected=B;D.context=F;return D};
_.ZL=function(G){if(G instanceof _.DS)return G;var B=new _.DS(_.qB);B.resolve_(2,G);return B};
_.U_=function(G){return new _.DS(function(B,F){F(G)})};
kJ8=function(G,B,F){HHL(G,B,F,null)||_.hh(_.Fw(B,G))};
_.KG=function(G){return new _.DS(function(B,F){var D=G.length,u=[];if(D)for(var R=function(q,h){D--;u[q]=h;D==0&&B(u)},N=function(q){F(q)},y,U=0;U<G.length;U++)y=G[U],kJ8(y,_.Fw(R,U),N);
else B(u)})};
OHG=function(G){return new _.DS(function(B){var F=G.length,D=[];if(F)for(var u=function(y,U,q){F--;D[y]=U?{fulfilled:!0,value:q}:{fulfilled:!1,reason:q};F==0&&B(D)},R,N=0;N<G.length;N++)R=G[N],kJ8(R,_.Fw(u,N,!0),_.Fw(u,N,!1));
else B(D)})};
eps=function(G){return new _.DS(function(B,F){var D=G.length,u=[];if(D)for(var R=function(q){B(q)},N=function(q,h){D--;
u[q]=h;D==0&&F(u)},y,U=0;U<G.length;U++)y=G[U],kJ8(y,R,_.Fw(N,U));
else B(void 0)})};
_.zn=function(){var G,B,F=new _.DS(function(D,u){G=D;B=u});
return new $nL(F,G,B)};
_.DS.prototype.then=function(G,B,F){return zpT(this,EC(typeof G==="function"?G:null),EC(typeof B==="function"?B:null),F)};
Qna(_.DS);VRP=function(G,B,F,D){bHT(G,WdT(B||_.qB,F||null,D))};
_.at=function(G,B){B=EC(B);B=WdT(B,B);B.always=!0;bHT(G,B);return G};
_.DS.prototype.finally=function(G){var B=this;G=EC(G);return new _.DS(function(F,D){VRP(B,function(u){G();F(u)},function(u){G();
D(u)})})};
_.DS.prototype.thenCatch=function(G,B){return zpT(this,null,EC(G),B)};
_.DS.prototype.catch=_.DS.prototype.thenCatch;_.DS.prototype.cancel=function(G){if(this.state_==0){var B=new _.eg(G);_.hh(function(){vf7(this,B)},this)}};
var vf7=function(G,B){if(G.state_==0)if(G.parent_){var F=G.parent_;if(F.callbackEntries_){for(var D=0,u=null,R=null,N=F.callbackEntries_;N&&(N.always||(D++,N.child==G&&(u=N),!(u&&D>1)));N=N.next)u||(R=N);u&&(F.state_==0&&D==1?vf7(F,B):(R?(D=R,D.next==F.callbackEntriesTail_&&(F.callbackEntriesTail_=D),D.next=D.next.next):oft(F),MR7(F,u,3,B)))}G.parent_=null}else G.resolve_(3,B)},bHT=function(G,B){G.callbackEntries_||G.state_!=2&&G.state_!=3||p5G(G);
G.callbackEntriesTail_?G.callbackEntriesTail_.next=B:G.callbackEntries_=B;G.callbackEntriesTail_=B},zpT=function(G,B,F,D){var u=WdT(null,null,null);
u.child=new _.DS(function(R,N){u.JSC$10079_onFulfilled=B?function(y){try{var U=B.call(D,y);R(U)}catch(q){N(q)}}:R;
u.JSC$10079_onRejected=F?function(y){try{var U=F.call(D,y);U===void 0&&y instanceof _.eg?N(y):R(U)}catch(q){N(q)}}:N});
u.child.parent_=G;bHT(G,u);return u.child};
_.DS.prototype.unblockAndFulfill_=function(G){this.state_=0;this.resolve_(2,G)};
_.DS.prototype.unblockAndReject_=function(G){this.state_=0;this.resolve_(3,G)};
_.DS.prototype.resolve_=function(G,B){this.state_==0&&(this===B&&(G=3,B=new TypeError("ya")),this.state_=1,HHL(B,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=B,this.state_=G,this.parent_=null,p5G(this),G!=3||B instanceof _.eg||YDs(this,B)))};
var HHL=function(G,B,F,D){if(G instanceof _.DS)return VRP(G,B,F,D),!0;if(jnw(G))return G.then(B,F,D),!0;if(_.Zc(G))try{var u=G.then;if(typeof u==="function")return Ae7(G,u,B,F,D),!0}catch(R){return F.call(D,R),!0}return!1},Ae7=function(G,B,F,D,u){var R=!1,N=function(U){R||(R=!0,F.call(u,U))},y=function(U){R||(R=!0,D.call(u,U))};
try{B.call(G,N,y)}catch(U){y(U)}},p5G=function(G){G.executing_||(G.executing_=!0,_.hh(G.executeCallbacks_,G))},oft=function(G){var B=null;
G.callbackEntries_&&(B=G.callbackEntries_,G.callbackEntries_=B.next,B.next=null);G.callbackEntries_||(G.callbackEntriesTail_=null);return B};
_.DS.prototype.executeCallbacks_=function(){for(var G;G=oft(this);)MR7(this,G,this.state_,this.result_);this.executing_=!1};
MR7=function(G,B,F,D){if(F==3&&B.JSC$10079_onRejected&&!B.always)for(;G&&G.hadUnhandledRejection_;G=G.parent_)G.hadUnhandledRejection_=!1;if(B.child)B.child.parent_=null,dnt(B,F,D);else try{B.always?B.JSC$10079_onFulfilled.call(B.context):dnt(B,F,D)}catch(u){vUc.call(null,u)}ret.put(B)};
dnt=function(G,B,F){B==2?G.JSC$10079_onFulfilled.call(G.context,F):G.JSC$10079_onRejected&&G.JSC$10079_onRejected.call(G.context,F)};
YDs=function(G,B){G.hadUnhandledRejection_=!0;_.hh(function(){G.hadUnhandledRejection_&&vUc.call(null,B)})};
vUc=Dc;_.eg=function(G){_.Gs.call(this,G)};
_.IC(_.eg,_.Gs);_.eg.prototype.name="cancel";var $nL=function(G,B,F){this.promise=G;this.resolve=B;this.reject=F};var mK;_.nn=function(G,B){_.W1.call(this);this.JSC$10091_interval_=G||1;this.timerObject_=B||_.Fz;this.boundTick_=(0,_.R_)(this.tick_,this);this.last_=_.Td()};
_.IC(_.nn,_.W1);_.w=_.nn.prototype;_.w.enabled=!1;_.w.JSC$10093_timer_=null;_.w.setInterval=function(G){this.JSC$10091_interval_=G;this.JSC$10093_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10093_timer_&&this.stop()};
_.w.tick_=function(){if(this.enabled){var G=_.Td()-this.last_;G>0&&G<this.JSC$10091_interval_*.8?this.JSC$10093_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10091_interval_-G):(this.JSC$10093_timer_&&(this.timerObject_.clearTimeout(this.JSC$10093_timer_),this.JSC$10093_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.w.start=function(){this.enabled=!0;this.JSC$10093_timer_||(this.JSC$10093_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10091_interval_),this.last_=_.Td())};
_.w.stop=function(){this.enabled=!1;this.JSC$10093_timer_&&(this.timerObject_.clearTimeout(this.JSC$10093_timer_),this.JSC$10093_timer_=null)};
_.w.disposeInternal=function(){_.nn.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
mK=function(G,B,F){if(typeof G==="function")F&&(G=(0,_.R_)(G,F));else if(G&&typeof G.handleEvent=="function")G=(0,_.R_)(G.handleEvent,G);else throw Error("za");return Number(B)>2147483647?-1:_.Fz.setTimeout(G,B||0)};
_.Jeq=function(G){var B=null;return(new _.DS(function(F,D){B=mK(function(){F(void 0)},G);
B==-1&&D(Error("Aa"))})).thenCatch(function(F){_.Fz.clearTimeout(B);
throw F;})};var sK=function(G){_.uz.call(this);this.streamzLogger=G;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10097_flushTimer=new _.nn(this.flushInterval);this.JSC$10097_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.gq(this,this.JSC$10097_flushTimer)};
_.r(sK,_.uz);sK.prototype.sendIsolatedPayload=function(G){this.shouldSendIsolatedPayload=G;this.invocationLimit=1};
var ceL=function(G){G.JSC$10097_flushTimer.enabled||G.JSC$10097_flushTimer.start();G.invocationCount++;G.invocationCount>=G.invocationLimit&&G.snapshotAndFlush()};
sK.prototype.snapshotAndFlush=function(){var G=this.metricMap.values();G=[].concat(_.gi(G)).filter(function(B){return B.cellMap.size});
G.length&&this.streamzLogger.flush(G,this.shouldSendIsolatedPayload);Tn8(G);this.invocationCount=0;this.JSC$10097_flushTimer.enabled&&this.JSC$10097_flushTimer.stop()};
sK.prototype.addNewCounter=function(G){var B=_.xS.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new GJ8(G,B))};
sK.prototype.addNewEventMetric=function(G){var B=_.xS.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new Bnv(G,B))};
var IAa=function(G,B){return G.disabledMetrics.has(B)?void 0:G.metricMap.get(B)};
sK.prototype.JSC$10097_incrementCounter=function(G){this.JSC$10097_incrementCounterBy(G,1,_.xS.apply(1,arguments))};
sK.prototype.JSC$10097_incrementCounterBy=function(G,B){var F=_.xS.apply(2,arguments),D=IAa(this,G);D&&D instanceof GJ8&&(D.JSC$10036_incrementCounterBy(B,F),ceL(this))};
sK.prototype.record=function(G,B){var F=_.xS.apply(2,arguments),D=IAa(this,G);D&&D instanceof Bnv&&(D.record(B,F),ceL(this))};
var Tn8=function(G){for(var B=0;B<G.length;B++)G[B].clear()};_.XW=function(G,B,F){F=F===void 0?{}:F;B=Error.call(this,B);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=G;this.metadata=F;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.XW,Error);_.XW.prototype.toString=function(){var G="RpcError("+(tRs(this.code)||String(this.code))+")";this.message&&(G+=": "+this.message);return G};_.fA7=_.Fz.JSON.parse;_.Q_=_.Fz.JSON.stringify;_.NW=_.Fz.JSON.parse;_.tRL=function(G){switch(G){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 ZHL=function(G){switch(G){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var gfs,SDt=function(){};
_.IC(SDt,_.ZHs);SDt.prototype.createInstance=function(){return new XMLHttpRequest};
gfs=new SDt;_.jt=function(G){_.W1.call(this);this.headers=new Map;this.JSC$10106_xmlHttpFactory_=G||null;this.JSC$10106_active_=!1;this.JSC$10106_xhr_=null;this.JSC$10106_lastUri_="";this.JSC$10106_lastErrorCode_=0;this.JSC$10106_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10106_timeoutId_=null;this.responseType_="";this.JSC$10106_withCredentials_=!1};
_.IC(_.jt,_.W1);var snq=/^https?$/i,xnP=["POST","PUT"],P9N=[],IWc=function(G,B,F,D,u,R,N){var y=new _.jt;P9N.push(y);B&&y.listen("complete",B);y.listenOnce("ready",y.cleanupSend_);R&&(y.timeoutInterval_=Math.max(0,R));N&&(y.JSC$10106_withCredentials_=N);y.send(G,F,D,u)};
_.jt.prototype.cleanupSend_=function(){this.dispose();_.dU(P9N,this)};
_.jt.prototype.send=function(G,B,F,D){if(this.JSC$10106_xhr_)throw Error("Ba`"+this.JSC$10106_lastUri_+"`"+G);B=B?B.toUpperCase():"GET";this.JSC$10106_lastUri_=G;this.JSC$10106_lastError_="";this.JSC$10106_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10106_active_=!0;this.JSC$10106_xhr_=this.createXhr();this.JSC$10106_xhr_.onreadystatechange=EC((0,_.R_)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10106_xhr_.open(B,String(G),!0),this.inOpen_=!1}catch(N){G0P(this,N);return}G=
F||"";F=new Map(this.headers);if(D)if(Object.getPrototypeOf(D)===Object.prototype)for(var u in D)F.set(u,D[u]);else if(typeof D.keys==="function"&&typeof D.get==="function"){u=_.C(D.keys());for(var R=u.next();!R.done;R=u.next())R=R.value,F.set(R,D.get(R))}else throw Error("Ca`"+String(D));D=Array.from(F.keys()).find(function(N){return"content-type"==N.toLowerCase()});
u=_.Fz.FormData&&G instanceof _.Fz.FormData;!_.YM(xnP,B)||D||u||F.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");B=_.C(F);for(D=B.next();!D.done;D=B.next())F=_.C(D.value),D=F.next().value,F=F.next().value,this.JSC$10106_xhr_.setRequestHeader(D,F);this.responseType_&&(this.JSC$10106_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10106_xhr_&&this.JSC$10106_xhr_.withCredentials!==this.JSC$10106_withCredentials_&&(this.JSC$10106_xhr_.withCredentials=this.JSC$10106_withCredentials_);
try{this.JSC$10106_timeoutId_&&(clearTimeout(this.JSC$10106_timeoutId_),this.JSC$10106_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10106_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10106_xhr_.send(G),this.inSend_=!1}catch(N){G0P(this,N)}};
_.jt.prototype.createXhr=function(){return this.JSC$10106_xmlHttpFactory_?this.JSC$10106_xmlHttpFactory_.createInstance():gfs.createInstance()};
_.jt.prototype.timeout_=function(){typeof eUN!="undefined"&&this.JSC$10106_xhr_&&(this.JSC$10106_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10106_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var G0P=function(G,B){G.JSC$10106_active_=!1;G.JSC$10106_xhr_&&(G.inAbort_=!0,G.JSC$10106_xhr_.abort(),G.inAbort_=!1);G.JSC$10106_lastError_=B;G.JSC$10106_lastErrorCode_=5;Bo7(G);i8N(G)},Bo7=function(G){G.errorDispatched_||(G.errorDispatched_=!0,G.dispatchEvent("complete"),G.dispatchEvent("error"))};
_.jt.prototype.abort=function(G){this.JSC$10106_xhr_&&this.JSC$10106_active_&&(this.JSC$10106_active_=!1,this.inAbort_=!0,this.JSC$10106_xhr_.abort(),this.inAbort_=!1,this.JSC$10106_lastErrorCode_=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),i8N(this))};
_.jt.prototype.disposeInternal=function(){this.JSC$10106_xhr_&&(this.JSC$10106_active_&&(this.JSC$10106_active_=!1,this.inAbort_=!0,this.JSC$10106_xhr_.abort(),this.inAbort_=!1),i8N(this,!0));_.jt.superClass_.disposeInternal.call(this)};
_.jt.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Fmt(this);else this.onReadyStateChangeEntryPoint_()};
_.jt.prototype.onReadyStateChangeEntryPoint_=function(){Fmt(this)};
var Fmt=function(G){if(G.JSC$10106_active_&&typeof eUN!="undefined")if(G.inSend_&&_.LG(G)==4)setTimeout(G.onReadyStateChange_.bind(G),0);else if(G.dispatchEvent("readystatechange"),G.isComplete()){G.JSC$10106_active_=!1;try{if(G.isSuccess())G.dispatchEvent("complete"),G.dispatchEvent("success");else{G.JSC$10106_lastErrorCode_=6;try{var B=_.LG(G)>2?G.JSC$10106_xhr_.statusText:""}catch(F){B=""}G.JSC$10106_lastError_=B+" ["+G.getStatus()+"]";Bo7(G)}}finally{i8N(G)}}},i8N=function(G,B){if(G.JSC$10106_xhr_){G.JSC$10106_timeoutId_&&
(clearTimeout(G.JSC$10106_timeoutId_),G.JSC$10106_timeoutId_=null);
var F=G.JSC$10106_xhr_;G.JSC$10106_xhr_=null;B||G.dispatchEvent("ready");try{F.onreadystatechange=null}catch(D){}}};
_.jt.prototype.isActive=function(){return!!this.JSC$10106_xhr_};
_.jt.prototype.isComplete=function(){return _.LG(this)==4};
_.jt.prototype.isSuccess=function(){var G=this.getStatus(),B;if(!(B=ZHL(G))){if(G=G===0)G=tyM(String(this.JSC$10106_lastUri_)),G=!snq.test(G);B=G}return B};
_.LG=function(G){return G.JSC$10106_xhr_?G.JSC$10106_xhr_.readyState:0};
_.w=_.jt.prototype;_.w.getStatus=function(){try{return _.LG(this)>2?this.JSC$10106_xhr_.status:-1}catch(G){return-1}};
_.w.getResponseText=function(){try{return this.JSC$10106_xhr_?this.JSC$10106_xhr_.responseText:""}catch(G){return""}};
_.w.getResponse=function(){try{if(!this.JSC$10106_xhr_)return null;if("response"in this.JSC$10106_xhr_)return this.JSC$10106_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10106_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10106_xhr_)return this.JSC$10106_xhr_.mozResponseArrayBuffer}return null}catch(G){return null}};
_.w.getAllResponseHeaders=function(){return this.JSC$10106_xhr_&&_.LG(this)>=2?this.JSC$10106_xhr_.getAllResponseHeaders()||"":""};
_.w.getLastError=function(){return typeof this.JSC$10106_lastError_==="string"?this.JSC$10106_lastError_:String(this.JSC$10106_lastError_)};var xno=function(){};
xno.prototype.send=function(G,B,F){B=B===void 0?function(){}:B;
F=F===void 0?function(){}:F;
IWc(G.url,function(D){D=D.target;D.isSuccess()?B(D.getResponseText()):F(D.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)};
xno.prototype.getTransmissionType=function(){return 1};var DS8=function(G,B){this.qr8=G;this.event=B;this.startTime=xk()},DSL;
DS8.prototype.done=function(){this.qr8.o5(this.event,xk()-this.startTime)};
var r2=function(){xW.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.r(r2,xW);_.Wp=function(G,B,F){var D=xk();B=B();G.o5(F,xk()-D);return B};
DSL=function(){r2.apply(this,arguments)};
_.r(DSL,r2);_.w=DSL.prototype;_.w.aFJ=function(){};
_.w.lS=function(){};
_.w.o5=function(){};
_.w.logError=function(){};
_.w.fc=function(){};
_.w.kTJ=function(){};
_.w.pWm=function(){};
_.w.mab=function(){};
var uBT=function(G){r2.call(this);var B=this;this.n7=G;this.TEST_ONLY={yU6:function(){return B.n7},
getExperimentIds:function(){return B.n7.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void B.n7.dispose()})};
_.r(uBT,r2);_.w=uBT.prototype;_.w.update=function(G){this.n7.dispose();this.n7=G};
_.w.lS=function(G){this.n7.lS(G)};
_.w.o5=function(G,B){this.n7.o5(G,B)};
_.w.logError=function(G){this.n7.logError(G)};
_.w.fc=function(){this.n7.fc()};
_.w.kTJ=function(G){this.n7.kTJ(G)};
_.w.pWm=function(G){this.n7.pWm(G)};
_.w.mab=function(G){this.n7.mab(G)};
_.w.aFJ=function(G){this.n7.aFJ(G)};
var RVt=function(G,B){_.uz.call(this);var F=this;this.callback=G;this.ata=B;this.cPP=-B;this.addOnDisposeCallback(function(){return void clearTimeout(F.timer)})};
_.r(RVt,_.uz);var wQw=function(G){if(G.timer===void 0){var B=Math.max(0,G.cPP+G.ata-xk());G.timer=setTimeout(function(){try{G.callback()}finally{G.cPP=xk(),G.timer=void 0}},B)}},CXa=function(G,B){r2.call(this);
this.metrics=G;this.aM=B};
_.r(CXa,r2);_.w=CXa.prototype;_.w.aFJ=function(G){this.metrics.zBa.record(G,this.aM)};
_.w.lS=function(G){this.metrics.eventCount.increment(G,this.aM)};
_.w.o5=function(G,B){this.metrics.bFS.record(B,G,this.aM)};
_.w.logError=function(G){this.metrics.errorCount.increment(G,this.aM)};
_.w.kTJ=function(G){this.metrics.yHr.increment(G,this.aM)};
_.w.pWm=function(G){this.metrics.rL8.increment(G,this.aM)};
_.w.mab=function(G){this.metrics.eot.increment(G,this.aM)};
var uBg=function(G,B){B=B===void 0?[]:B;var F={aM:G.aM||"_",ica:G.ica||[],hzI:G.hzI|0,destinationUrl:G.destinationUrl,x3J:G.x3J||function(){},
lBa:G.lBa||function(R,N){return Fmg(R,N,F.x3J,F.destinationUrl)}},D=F.lBa("53",F.ica.concat(B));
CXa.call(this,{zBa:new tVU(D),errorCount:new s_v(D),eventCount:new g3N(D),bFS:new Srt(D),uCt:new Zn8(D),yHr:new xN7(D),rL8:new Pzt(D),eot:new GM7(D)},F.aM);var u=this;this.TEST_ONLY={getExperimentIds:function(){return u.options.ica.concat(u.bR8).sort(function(R,N){return R-N})}};
this.options=F;this.service=D;this.fq8=!G.lBa;this.flushDebouncer=new RVt(function(){return void u.service.snapshotAndFlush()},F.hzI);
this.addOnDisposeCallback(function(){u.flushDebouncer.dispose();u.fq8&&u.service.dispose()});
(this.bR8=B.slice()).sort(_.oMz)};
_.r(uBg,CXa);uBg.prototype.fc=function(){wQw(this.flushDebouncer)};var NjQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(NjQ,_.q3);_.yHU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(_.yHU,_.q3);var VL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,0,VL.messageId)};
_.r(VL,_.q3);var Noq=_.ylg(VL);VL.messageId="bfkj";var OHS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(OHS,_.q3);var yPP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(yPP,_.q3);var nK8=_.$S(yPP);_.tc=function(){var G=this;this.promise=new Promise(function(B,F){G.resolve=B;G.reject=F})};_.Hp=function(G){_.uz.call(this);var B=this;this.gde=Math.floor(Math.random()*200);this.xim=new yPP;if("challenge"in G&&Noq(G.challenge)){var F=_.KX(G.challenge,4,void 0,vs);var D=_.KX(G.challenge,5,void 0,vs);_.KX(G.challenge,7,void 0,vs)&&(this.xim=nK8(_.KX(G.challenge,7,void 0,vs)))}else F=G.program,D=G.globalName;this.addOnDisposeCallback(function(){var L,W,e;return _.n(function(b){if(b.nextAddress==1)return b.yield(B.cGm,2);L=b.yieldResult;W=L.kEi;(e=W)==null||e();_.di(b)})});
this.yk=RVg(G.kUX||{},this.xim);_.gq(this,this.yk);var u=new _.tc;this.cGm=u.promise;this.yk.lS("t");var R=this.yk.share(),N=new DS8(R,"t"),y=function(L,W,e,b){if(!B.yk.isDisposed()){var M="k";W?M="h":e&&(M="u");M!=="k"?b!==0&&(B.yk.lS(M),B.yk.o5(M,L)):B.gde<=0?(B.yk.lS(M),B.yk.o5(M,L),B.gde=Math.floor(Math.random()*200)):B.gde--}},U=function(L,W,e,b){Promise.resolve().then(function(){N.done();
R.fc();R.dispose();u.resolve({yzU:L,kEi:W,x4C:e,bGA:b})})};
if(!_.Fz[D])throw this.yk.logError(25),Error("Da");if(!_.Fz[D].a)throw this.yk.logError(26),Error("Ea");try{var q=_.Fz[D].a;D=[];for(var h=[],K=ep6(this.xim),a=0;a<K.length;a++)D.push(K[a]),h.push(1);var m=$ns(this.xim);for(K=0;K<m.length;K++)D.push(m[K]),h.push(2);this.kqu=_.C(q(F,U,!0,G.t7E,y,[D,h],_.KX(this.xim,5),!1)).next().value;this.boD=u.promise.then(function(){})}catch(L){throw this.yk.logError(28),L;
}};
_.r(_.Hp,_.uz);_.Hp.prototype.snapshot=function(G){if(this.isDisposed())throw Error("Fa");this.yk.lS("n");var B=this.yk.share();return this.cGm.then(function(F){var D=F.yzU;return new Promise(function(u){var R=new DS8(B,"n");D(function(N){R.done();B.aFJ(N.length);B.fc();B.dispose();u(N)},[G.lC,
G.nFO,G.sUE,G.uQr])})})};
_.Hp.prototype.ora=function(G){this.cGm.then(function(B){var F;(F=B.x4C)==null||F(G)})};
_.Hp.prototype.es7=function(G,B){return this.cGm.then(function(F){var D;return(D=F.bGA)==null?void 0:D(G,B,!1)})};
_.Hp.prototype.qka=function(){return this.yk.share()};var llw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(llw,_.q3);var IHg=_.ylg(llw);var USa=function(){this.promises={};this.yBI=null},qft=function(){USa.instance||(USa.instance=new USa);
return USa.instance},hVq=function(G,B){return EKq(G,_.sf(B,NjQ,1,vs),_.sf(B,_.yHU,2,vs),_.KX(B,3,void 0,vs))},EKq=function(G,B,F,D){if(!B&&!F)return Promise.resolve();
if(!D)return nKL(B,F);var u;(u=G.promises)[D]||(u[D]=new Promise(function(R,N){nKL(B,F).then(function(){G.yBI=D;R()},function(y){delete G.promises[D];
N(y)})}));
return G.promises[D]};var Kmq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Kmq,_.q3);var aly=function(G,B){return _.v0(G,1,B)},mS8=function(G,B){return _.v0(G,2,B)};var ku=function(G){_.uz.call(this);var B=this;this.options=G;this.uFm=new _.tc;this.boD=this.uFm.promise;this.leO=new _.tc;this.omw=1;this.ddO=new _.tc;this.vrO=[];this.isPaused=!1;this.h47=G.h47||function(){};
this.cf9=new uBT(RVg(G.kUX||{}));XQy(this,G.dC,G.rSk,G.agt,G.ody,Object.assign({},QYU,G.gZa||{}));this.addOnDisposeCallback(function(){return void jYq(B)})};
_.r(ku,_.uz);ku.prototype.snapshot=function(G){var B=this;return _.n(function(F){switch(F.nextAddress){case 1:if(B.isDisposed())throw Error("Fa");if(B.tF||B.bO4){F.jumpTo(2);break}return F.yield(B.leO.promise,2);case 2:if(!B.tF){F.jumpTo(4);break}return F.yield(B.tF.snapshot(G),5);case 5:return F.return(F.yieldResult);case 4:throw B.bO4;}})};
ku.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.lR&&this.lR.pause())};
ku.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.lR&&this.lR.resume())};
ku.prototype.checkForRefresh=function(){var G=this;return _.n(function(B){if(G.isDisposed())throw Error("Fa");var F;if(F=G.lR)F=G.lR,F.isExpired()?(LmU(F),F.resolver(0),F=!0):F=!1,F=!F;return F?B.jumpTo(0):B.yield(G.ddO.promise,0)})};
var Wmt=function(G){var B;return _.n(function(F){if(G.isDisposed())throw Error("Fa");(B=G.lR)==null||rPa(B);return F.yield(G.ddO.promise,0)})},jYq=function(G){G.bO4=Error("Ha");
G.leO.resolve();zpg(G.uFm.promise);G.uFm.reject(Error("Ha"));G.cf9.dispose();Promise.all(G.vrO).then(function(){var F;return _.n(function(D){(F=G.tF)==null||F.dispose();G.tF=void 0;_.di(D)})});
G.vrO=[];var B;(B=G.lR)==null||rPa(B);zpg(G.ddO.promise);G.ddO.reject(Error("Ha"))};
ku.prototype.ora=function(G){var B,F;(B=this.tF)==null||(F=B.ora)==null||F.call(B,G)};
ku.prototype.es7=function(G,B){var F,D,u;return(u=(F=this.tF)==null?void 0:(D=F.es7)==null?void 0:D.call(F,G,B))!=null?u:Promise.resolve()};
var H8w=function(G,B){var F=G.h47;G.h47=function(){F();B()}},k0P=function(G,B){G.isDisposed()||(G.tF=B,G.cf9.update(B.qka()),G.leO.resolve(),G.uFm.resolve(void 0),G.h47())};
ku.prototype.handleError=function(G){if(!this.isDisposed()){this.bO4=G;this.leO.resolve();var B,F;(F=(B=this.options).fAa)==null||F.call(B,G)}};
var O8U=function(G,B){B&&(Promise.all(G.vrO).then(function(){return void B.dispose()}),G.vrO=[])},OC=function(G,B){G.omw=B;
var F,D;(D=(F=G.options).hmt)==null||D.call(F,B)},eVN=function(G){G.isDisposed()||(G.ddO.resolve(),G.ddO=new _.tc)},XQy=function(G,B,F,D,u,R){D=D===void 0?qft():D;
u=u===void 0?Promise.resolve(void 0):u;var N,y,U,q,h,K,a,m,L,W,e,b;_.n(function(M){switch(M.nextAddress){case 1:return M.yield(0,3);case 3:y=null;if(!N){M.jumpTo(6);break}OC(G,7);_.b5(M,7);return M.yield(Fb(N.snapshot({}),R.sk8,function(){return Promise.resolve("E:CTO")}),9);
case 9:y=M.yieldResult;_.oY(M,6);break;case 7:_.Al(M),y="E:UCE";case 6:U=void 0,q=N?R.fnS:R.dMJ,h=new fT(q,R.zlP,R.nxd,R.caJ),K=1;case 10:if(!(K<=R.maxAttempts)){M.jumpTo(12);break}if(K===1){M.jumpTo(13);break}OC(G,0);G.lR=new et(h.getValue(),R.vxY,R.deo);return M.yield(G.lR.promise,14);case 14:a=M.yieldResult,G.lR=void 0,a===1?(K=1,h.reset()):c0L(h);case 13:_.b5(M,15);m=void 0;if(F){m=F;M.jumpTo(17);break}OC(G,5);L=D.yBI;return M.yield(Fb($Sq(B,L,y),R.vEk,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:m=M.yieldResult;case 17:return OC(G,3),M.yield(Fb(hVq(D,m),R.em2,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return OC(G,8),M.yield(u,20);case 20:return W=new _.Hp({challenge:m,kUX:G.options.kUX,t7E:G.options.t7E}),M.yield(Fb(W.boD,R.gGr,function(){return Promise.reject(Error("Ka"))}),21);
case 21:U=W;M.jumpTo(12);break;case 15:e=_.Al(M),G.handleError(e),eVN(G);case 11:K++;M.jumpTo(10);break;case 12:if(G.isDisposed()){M.jumpTo(5);break}U&&(F=void 0,O8U(G,N),N=U,k0P(G,U),eVN(G));OC(G,2);G.lR=new et(R.wjw,R.vxY,R.deo);G.isPaused&&G.lR.pause();return M.yield(G.lR.promise,22);case 22:G.lR=void 0;if(G.isDisposed()){M.jumpTo(5);break}M.jumpTo(3);break;case 5:(b=N)==null||b.dispose(),_.di(M)}})};
ku.prototype.qka=function(){return this.cf9.share()};
var QYU={wjw:432E5,vxY:3E5,deo:10,sk8:1E4,vEk:3E4,em2:3E4,gGr:6E4,dMJ:1E3,fnS:6E4,zlP:6E5,nxd:.25,caJ:2,maxAttempts:10},et=function(G,B,F){var D=this;this.endTimeMs=0;this.a9a=null;this.isPaused=!1;this.tick=function(){if(!D.isPaused){var u=D.endTimeMs-Date.now();u<=D.tJ2?(D.a9a=null,D.resolver(0)):D.a9a=setTimeout(D.tick,Math.min(u,D.vxY))}};
this.vxY=B;this.tJ2=F;this.promise=new Promise(function(u){D.resolver=u});
zV8(this,G)},zV8=function(G,B){G.endTimeMs=Date.now()+B;
G.tick()};
et.prototype.pause=function(){this.isPaused||(this.isPaused=!0,LmU(this))};
et.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var rPa=function(G){LmU(G);G.endTimeMs=0;G.isPaused=!1;G.resolver(1)},LmU=function(G){G.a9a&&(clearTimeout(G.a9a),G.a9a=null)};
et.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var b8L,qfg=(b8L=Math.imul)!=null?b8L:function(G,B){return G*B|0},Dn=[196,
200,224,18],$u=function(G,B,F){F=F===void 0?[]:F;this.maxItems=G;this.aV=B===void 0?0:B;this.zA=F},VEv=function(G){var B=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!B)return new $u(G);var F=B.split(",");if(F.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $u(G);B=F.slice(1);B.length===1&&B[0]===""&&(B=[]);F=Number(F[0]);return isNaN(F)||F<0||F>B.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $u(G)):new $u(G,F,B)};
$u.prototype.serialize=function(){return String(this.aV)+","+this.zA.join()};
$u.prototype.insert=function(G,B){var F=void 0;if(this.zA[this.aV]!==G){var D=this.zA.indexOf(G);D!==-1?(this.zA.splice(D,1),D<this.aV&&this.aV--,this.zA.splice(this.aV,0,G)):(F=this.zA[this.aV],this.zA[this.aV]=G)}this.aV=(this.aV+1)%this.maxItems;G=llU("iU5q-!O9@$",this.serialize());F&&G&&B(F);return G};
var vKL=function(G,B){this.chX=B;try{var F=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(D){F=!1}F&&(this.index=VEv(G))},oK8=function(G,B,F,D,u){var R=G.index?_.Wp(G.chX,function(){return all(G.index,hVI(B),F,D,u)},"W"):"u";
G.chX.mab(R)},MEG=function(G,B,F){var D=_.C(G.index?_.Wp(G.chX,function(){return mSL(hVI(B),F)},"R"):["u"]),u=D.next().value;
D=D.next().value;G.chX.pWm(u);return D};var pQP={toString:function(G){var B=[],F=0;G-=-2147483648;B[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(G%52);for(G=Math.floor(G/52);G>0;)B[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return B.join("")}};var dS7=function(G){G=YfT(G);for(var B=2654435769,F=2654435769,D=314159265,u=G.length,R=u,N=0,y=function(){B-=F;B-=D;B^=D>>>13;F-=D;F-=B;F^=B<<8;D-=B;D-=F;D^=F>>>13;B-=F;B-=D;B^=D>>>12;F-=D;F-=B;F^=B<<16;D-=B;D-=F;D^=F>>>5;B-=F;B-=D;B^=D>>>3;F-=D;F-=B;F^=B<<10;D-=B;D-=F;D^=F>>>15};R>=12;R-=12,N+=12)B+=APv(G,N),F+=APv(G,N+4),D+=APv(G,N+8),y();
D+=u;switch(R){case 11:D+=G[N+10]<<24;case 10:D+=G[N+9]<<16;case 9:D+=G[N+8]<<8;case 8:F+=G[N+7]<<24;case 7:F+=G[N+6]<<16;case 6:F+=G[N+5]<<8;case 5:F+=G[N+4];case 4:B+=G[N+3]<<24;case 3:B+=G[N+2]<<16;case 2:B+=G[N+1]<<8;case 1:B+=G[N]}y();return pQP.toString(D)},YfT=function(G){for(var B=[],F=0;F<G.length;F++)B.push(G.charCodeAt(F));
return B},APv=function(G,B){return G[B]+(G[B+1]<<8)+(G[B+2]<<16)+(G[B+3]<<24)};var zE=function(G){_.uz.call(this);this.gH=G;this.n9i=new _.tc};
_.r(zE,_.uz);var JPU=function(G,B){var F=setTimeout(function(){G.n9i.resolve()},B);
G.addOnDisposeCallback(function(){return void clearTimeout(F)})};
zE.prototype.ukD=function(G,B){var F=this.fI(G);B==null||B(F);return _.Wp(this.gH,function(){return _.xM(F,2)},this.aC7)};
var cPL=function(G,B,F,D){return _.Wp(G.gH,function(){return F?G.ukD(B,D):G.fI(B,D)},G.l3m)},ToT=function(G,B,F,D){zE.call(this,G);
this.mHt=B;this.uyH=F;this.l3m="m";this.aC7="x";this.k67=0;JPU(this,D)};
_.r(ToT,zE);ToT.prototype.fI=function(G,B){var F=this;this.gH.lS(this.l3m);++this.k67>=this.uyH&&this.n9i.resolve();var D=G();G=_.Wp(this.gH,function(){return F.mHt(D)},"C");
if(G===void 0)throw new Se(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new Se(18,"ODM:Invalid");B==null||B(G);return G};
var IlP=function(G,B,F){zE.call(this,G);this.dYw=B;this.l3m="f";this.aC7="z";JPU(this,F)};
_.r(IlP,zE);IlP.prototype.fI=function(){return this.dYw};
var flP=function(G,B,F){zE.call(this,G);this.fFd=B;this.l3m="w";this.aC7="z";JPU(this,F)};
_.r(flP,zE);flP.prototype.fI=function(){var G=this;return _.Wp(this.gH,function(){return _.P6(G.fFd)},"d")};
flP.prototype.ukD=function(){return this.fFd};
var tEy=function(G,B){zE.call(this,G);this.error=B;this.l3m="e";this.aC7="y"};
_.r(tEy,zE);var Z8q=function(G,B){var F=(B(G.error.message)+":"+B(G.error.stack)).substring(0,2048);B=F.length+1;F=XQl(F);var D=new Uint8Array(4+F.length);D.set([42,B&127|128,B>>7,G.error.code]);D.set(F,4);return D};
tEy.prototype.fI=function(){if(this.rYS)return this.rYS;this.rYS=Z8q(this,function(G){return"_"+dS7(G)});
return Z8q(this,function(G){return G})};
var gK7=function(G,B,F){zE.call(this,G);this.ja3=B;this.clientState=F;this.l3m="S";this.aC7="q"};
_.r(gK7,zE);gK7.prototype.fI=function(){var G=Math.floor(Date.now()/1E3),B=[Math.random()*255,Math.random()*255],F=B.concat([this.ja3&255,this.clientState],[G>>24&255,G>>16&255,G>>8&255,G&255]);G=new Uint8Array(2+F.length);G[0]=34;G[1]=F.length;G.set(F,2);F=G.subarray(2);for(var D=B=B.length;D<F.length;++D)F[D]^=F[D%B];this.gH.kTJ(this.clientState);return G};var SfP={txS:3E4,nRa:2E4},b1=function(G){_.uz.call(this);var B=this;this.wyD=new _.tc;this.kUW=0;this.zy=void 0;this.state=2;this.vm=G.vm;this.dC=G.dC;this.gZa=Object.assign({},SfP,G.gZa||{});this.zY=G.vm.qka();var F;this.onError=(F=G.onError)!=null?F:function(){};
this.tw6=G.tw6||!1;if(sYN(G)){var D=this.vm;this.cHI=function(){return Wmt(D).catch(function(N){N=B.reportError(new Se(B.bF?20:32,"TRG:Disposed",N));B.zy=N;var y;(y=B.bF)==null||y.dispose();B.bF=void 0;B.wyD.reject(N)})};
H8w(D,function(){return void xSN(B)});
D.omw===2&&xSN(this)}else this.cHI=G.zmJ,xSN(this);var u=this.zY.share();u.lS("o");var R=new DS8(u,"o");this.wyD.promise.then(function(){R.done();u.fc();u.dispose()},function(){return void u.dispose()});
this.addOnDisposeCallback(function(){B.bF?(B.bF.dispose(),B.bF=void 0):B.zy?B.zY.fc():(B.zy=B.reportError(new Se(32,"TNP:Disposed")),B.zY.fc(),B.wyD.reject(B.zy))});
_.gq(this,this.zY)};
_.r(b1,_.uz);b1.prototype.tdI=function(){return this.wyD.promise};
var PXG=function(G,B){if(!(B instanceof Se))if(B instanceof _.XW){var F=Error(B.toString());F.stack=B.stack;B=new Se(11,"EBH:Error",F)}else B=new Se(12,"BSO:Unknown",B);return G.reportError(B)},xSN=function(G){var B,F,D,u,R,N,y,U,q,h,K,a,m,L,W;
return _.n(function(e){switch(e.nextAddress){case 1:B=void 0;G.kUW++;F=new _.tc;G.vm instanceof ku&&G.vm.vrO.push(F.promise);if(!G.tw6){e.jumpTo(2);break}D=new _.tc;setTimeout(function(){return void D.resolve()});
return e.yield(D.promise,2);case 2:return u=G.zY.share(),_.b5(e,4,5),G.state=5,R={},N=[],e.yield(Fb(G.vm.snapshot({lC:R,sUE:N}),G.gZa.nRa,function(){return Promise.reject(new Se(15,"MDA:Timeout"))}),7);
case 7:y=e.yieldResult;if(G.isDisposed())throw new Se(G.bF?20:32,"MDA:Disposed");U=N[0];G.state=6;return e.yield(Fb(GDL(G.dC,y),G.gZa.txS,function(){return Promise.reject(new Se(10,"BWB:Timeout"))}),8);
case 8:q=e.yieldResult;if(G.isDisposed())throw new Se(G.bF?20:32,"BWB:Disposed");G.state=7;B=_.Wp(u,function(){var M=Bgw(G,q,F,U);M.n9i.promise.then(function(){return void G.cHI()});
return M},"i");
case 5:_.vY(e);u.dispose();_.Yd(e,6);break;case 4:h=_.Al(e);(K=B)==null||K.dispose();if(!G.zy){a=PXG(G,h);F.resolve();var b;if(b=G.vm instanceof ku&&G.kUW<2)a:if(h instanceof Se)b=h.code!==32&&h.code!==20&&h.code!==10;else{if(h instanceof _.XW)switch(h.code){case 2:case 13:case 14:case 4:break;default:b=!1;break a}b=!0}if(b)return m=(1+Math.random()*.25)*(G.bF?6E4:1E3),L=setTimeout(function(){return void G.cHI()},m),G.addOnDisposeCallback(function(){return void clearTimeout(L)}),e.return();
G.zy=a}u.logError(G.bF?13:14);G.wyD.reject(G.zy);return e.return();case 6:G.state=8,G.kUW=0,(W=G.bF)==null||W.dispose(),G.bF=B,G.wyD.resolve(),_.di(e)}})},Bgw=function(G,B,F,D){var u=szt(B,2)*1E3;
if(u<=0)throw new Se(31,"TTM:Invalid");if(_.KX(B,4))return new flP(G.zY,_.KX(B,4),u);if(!szt(B,3))return new IlP(G.zY,VQs(_.CX(B,1)),u);if(!D)throw new Se(4,"PMD:Undefined");D=D(VQs(_.CX(B,1)));if(typeof D!=="function")throw new Se(16,"APF:Failed");G.zY7=Math.floor((Date.now()+u)/1E3);G=new ToT(G.zY,D,szt(B,3),u);G.addOnDisposeCallback(function(){return void F.resolve()});
return G};
b1.prototype.fI=function(G){return iuL(this,Object.assign({},G),!1)};
b1.prototype.ukD=function(G){return iuL(this,Object.assign({},G),!0)};
b1.prototype.cae=function(G){if(G>150)return!1;try{return this.cache=new vKL(G,this.zY),!0}catch(B){return this.reportError(new Se(22,"GBJ:init",B)),!1}};
b1.prototype.reportError=function(G){this.zY.logError(G.code);this.onError(G);return G};
var FO7=function(G,B){B=B instanceof Se?B:new Se(5,"TVD:error",B);return G.reportError(B)},iuL=function(G,B,F){try{if(G.isDisposed())throw new Se(21,"BNT:disposed");
if(!G.bF&&G.zy)throw G.zy;var D,u;return(u=(D=Dzq(G,B,F))!=null?D:ust(G,B,F))!=null?u:RZa(G,B,F)}catch(R){if(!B.pNe)throw FO7(G,R);return wow(G,F,R)}},Dzq=function(G,B,F){var D;
return(D=G.bF)==null?void 0:cPL(D,function(){return CiL(G,B)},F,function(u){var R;
if(G.bF instanceof ToT&&((R=B.wz)==null?0:R.gDo))try{var N;(N=G.cache)==null||oK8(N,CiL(G,B),u,B.wz.qsb,G.zY7-120)}catch(y){G.reportError(new Se(24,"ELX:write",y))}})},ust=function(G,B,F){var D;
if((D=B.wz)!=null&&D.e54)try{var u,R=(u=G.cache)==null?void 0:MEG(u,CiL(G,B),B.wz.qsb);return R?F?_.Wp(G.zY,function(){return _.xM(R,2)},"a"):R:void 0}catch(N){G.reportError(new Se(23,"RXO:read",N))}},RZa=function(G,B,F){var D={stack:[],
error:void 0,hasError:!1};try{if(!B.jnS)throw new Se(29,"SDF:notready");return cPL(ov7(D,new gK7(G.zY,0,G.state)),function(){return CiL(G,B)},F)}catch(u){D.error=u,D.hasError=!0}finally{MN8(D)}},wow=function(G,B,F){var D={stack:[],
error:void 0,hasError:!1};try{var u=FO7(G,F);return cPL(ov7(D,new tEy(G.zY,u)),function(){return[]},B)}catch(R){D.error=R,D.hasError=!0}finally{MN8(D)}},CiL=function(G,B){return B.t1b?B.t1b:B.lC?_.Wp(G.zY,function(){return B.t1b=XQl(B.lC)},"c"):[]},sYN=function(G){return p7(function(B){if(!BN(B))return!1;
for(var F=_.C(Object.entries(G)),D=F.next();!D.done;D=F.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;if(!(D in B)){if(u.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!u(B[D]))return!1}return!0})}({vm:function(G){return p7(function(B){return B instanceof G})}(ku)},"");var NgG=function(){var G=_.c2();this.JSC$10224_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",dq("cookie_enabled"),dq("cookie_3p_enabled"),_.ce("browser"))};
NgG.prototype.increment=function(G,B,F){this.JSC$10224_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",G,B,F)};
var fvg=function(){var G=_.c2();this.JSC$10248_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",JM("tick"),dq("from_st_cookie"))};
fvg.prototype.increment=function(G,B){this.JSC$10248_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",G,B)};
var yo7=function(){var G=_.c2();this.JSC$10254_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ce("status"))};
yo7.prototype.increment=function(G){this.JSC$10254_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",G)};
var nrq=function(){var G=_.c2();this.JSC$10257_streamzService=G;G.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ce("stage"),dq("is_using_ytd_player"),dq("has_expandable_tiles"))};
nrq.prototype.increment=function(G,B,F){this.JSC$10257_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",G,B,F)};
var l87=function(){var G=_.c2();this.JSC$10260_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/response_signature",_.ce("check_status"))};
l87.prototype.increment=function(G){this.JSC$10260_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/response_signature",G)};
var Uzy=function(){var G=_.c2();this.JSC$10263_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ce("sig"),JM("de"))};
Uzy.prototype.increment=function(G,B){this.JSC$10263_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/e_sig_log",G,B)};
var qO8=function(){var G=_.c2();this.JSC$10266_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ce("sig"),JM("de"))};
qO8.prototype.increment=function(G,B){this.JSC$10266_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/e_sig_en",G,B)};
_.ErT=function(){var G=_.c2();this.JSC$10269_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ce("action"))};
_.ErT.prototype.increment=function(G){this.JSC$10269_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/enforcement_intent",G)};var V_=window;var hZw=(new Date).getTime();_.UK.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.UK.createSet("action","cite","data","formaction","href","manifest","poster","src");var KOs=function(G){this.servicePromise_=G;G.then((0,_.R_)(function(){},this),function(){},this)},a8v=function(G,B,F){G.servicePromise_.then(function(D){var u=D[B];
if(!u)throw Error("La`"+B);return u.apply(D,F)})},QBw=function(G,B,F){for(var D=Array(arguments.length-2),u=2;u<arguments.length;u++)D[u-2]=arguments[u];
u=mzL(G,B).then(function(R){return R.apply(null,D)},function(R){R=Error("Ma`"+B+"`"+G+"`"+R,{cause:R});
delete XoL[B];return _.U_(R)});
return new KOs(u)},XoL={},mzL=function(G,B){var F=XoL[B];
if(F)return F;F=(F=_.Yf(B))?_.ZL(F):(new _.DS(function(D,u){var R=(new aK(document)).createElement("SCRIPT");R.async=!0;_.Ux(R,_.pe($Kv(G)));R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||D()};
R.onerror=function(N){u(Error("Na`"+B+"`"+G,{cause:N}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(R)})).then(function(){var D=_.Yf(B);
if(!D)throw Error("Oa`"+B+"`"+G);return D});
return XoL[B]=F};var jBT={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},row=function(){var G=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=QYJ(function(){return _.n(function(B){if(B.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?B.return(Promise.resolve()):B.yield(LON(G),2);G.rsaForList.length>
0&&document.addEventListener("click",G.requestAccessForHelpPanel);_.di(B)})});
this.requestAccessForHelpPanel=function(){if(!(G.rsaForPromises.length>0)){for(var B=_.C(G.rsaForList),F=B.next();!F.done;F=B.next()){F=F.value;try{G.rsaForPromises.push(document.requestStorageAccessFor(F))}catch(D){}}Promise.all(G.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){G.reset()})}}};
row.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var LON=function(G){var B,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:B=_.C(Object.values(jBT)),F=B.next();case 2:if(F.done){R.jumpTo(0);break}D=F.value;_.b5(R,5);return R.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:D}),7);case 7:u=R.yieldResult;u.state!=="granted"&&G.rsaForList.push(D);_.oY(R,3);break;case 5:_.Al(R);R.jumpTo(0);break;case 3:F=B.next(),R.jumpTo(2)}})};(new row).initialize();var WOU=function(G){this.JSC$10283_loader_=G};
WOU.prototype.startHelp=function(G){a8v(this.JSC$10283_loader_,"startHelp",arguments)};
WOU.prototype.JSC$10285_loadChatSupport=function(G){a8v(this.JSC$10283_loader_,"loadChatSupport",arguments)};
var kD8=function(G,B){B=B||{};G=QBw(HuL,"help.service.Lazy.create",G,{apiKey:B.apiKey||B.apiKey,asxUiUri:B.asxUiUri||B.asxUiUri,environment:B.environment||B.environment,flow:B.flow||B.flow,frdProductData:B.frdProductData||B.frdProductData,frdProductDataSerializedJspb:B.frdProductDataSerializedJspb||B.frdProductDataSerializedJspb,helpCenterPath:B.helpCenterPath||B.helpCenterPath,locale:B.locale||B.locale||"en-US".replace(/-/g,"_"),nonce:B.nonce||B.nonce,productData:B.productData||B.productData,receiverUri:B.receiverUri||
B.receiverUri,renderApiUri:B.renderApiUri||B.renderApiUri,theme:B.theme||B.theme,window:B.window||B.window});return new WOU(G)},HuL=new zA(jxg,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Ouw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Ouw,_.q3);var eZ7=_.$S(Ouw);var $zv=[0,_.AR,V1,cjy];_.zZP=new function(G,B,F,D){this.configType=G;this.flagName=F;this.defaultValue=D;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 V6w=function(){this.retriever=_.te().resolve(buP)};_.Tf={get payments(){return window.payments}};LmJ(Node);LmJ(Element);var vrt=LmJ(HTMLElement);LmJ(SVGElement);var orw,M6N,MX,po8;orw=function(G){return typeof G.className=="string"?G.className:G.getAttribute&&G.getAttribute("class")||""};
M6N=function(G){return G.classList?G.classList:orw(G).match(/\S+/g)||[]};
_.vp=function(G,B){typeof G.className=="string"?G.className=B:G.setAttribute&&G.setAttribute("class",B)};
_.ot=function(G,B){return G.classList?G.classList.contains(B):_.YM(M6N(G),B)};
_.b4=function(G,B){if(G.classList)G.classList.add(B);else if(!_.ot(G,B)){var F=orw(G);_.vp(G,F+(F.length>0?" "+B:B))}};
MX=function(G,B){if(G.classList)Array.prototype.forEach.call(B,function(u){_.b4(G,u)});
else{var F={};Array.prototype.forEach.call(M6N(G),function(u){F[u]=!0});
Array.prototype.forEach.call(B,function(u){F[u]=!0});
B="";for(var D in F)B+=B.length>0?" "+D:D;_.vp(G,B)}};
_.zm=function(G,B){G.classList?G.classList.remove(B):_.ot(G,B)&&_.vp(G,Array.prototype.filter.call(M6N(G),function(F){return F!=B}).join(" "))};
po8=function(G,B){G.classList?Array.prototype.forEach.call(B,function(F){_.zm(G,F)}):_.vp(G,Array.prototype.filter.call(M6N(G),function(F){return!_.YM(B,F)}).join(" "))};var YOy=function(G){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=G.document},Joq=function(G,B){Ao7(G);
var F=document.createElement("div"),D;(D=B.parentNode)==null||D.insertBefore(F,B);F.tabIndex=0;F.id="fc-focus-trap-pre-div";F=document.createElement("div");var u;(u=B.parentNode)==null||u.insertBefore(F,B.nextSibling);F.tabIndex=0;F.id="fc-focus-trap-post-div";var R=dzT(G,B),N=dzT(G,B,!0);R&&N&&(G.focusChangeHandler=function(){var y=G.document.activeElement;if(y)if(_.o_(B,y))G.previouslyFocusedElement=y;else if(y===G.document.activeElement)switch(G.previouslyFocusedElement){case R:N.focus();G.previouslyFocusedElement=
N;break;default:R.focus(),G.previouslyFocusedElement=R}},G.document.addEventListener("focus",G.focusChangeHandler,!0),G.document.addEventListener("focusin",G.focusChangeHandler))},Ao7=function(G){G.focusChangeHandler&&(document.removeEventListener("focus",G.focusChangeHandler,!0),document.removeEventListener("focusin",G.focusChangeHandler),G.focusChangeHandler=null);
var B;(B=document.getElementById("fc-focus-trap-pre-div"))==null||B.remove();var F;(F=document.getElementById("fc-focus-trap-post-div"))==null||F.remove()},cos=function(G,B,F,D,u){F=F===void 0?!0:F;
var R;u=(R=u===void 0?null:u)!=null?R:dzT(G,B,D===void 0?!1:D);u!==null&&(u.focus(),F&&Joq(G,B))};
YOy.prototype.disableButton=function(G,B){B=B===void 0?null:B;G.disabled=!0;B&&_.b4(G,B)};
var dzT=function(G,B,F){F=F===void 0?!1:F;if(dh6(B)&&!F)return B;var D=F?[].slice.call(B.children,0).reverse():B.children;D=_.C(D);for(var u=D.next();!u.done;u=D.next())if(u=u.value,vrt(u)&&(u=dzT(G,u,F)))return u;return dh6(B)&&F?B:null};var TgT=function(G){this.originalBodyOverflow="";this.JSC$10310_domHelper=Ri(G);var B;this.isScrollingEnabled=((B=this.JSC$10310_domHelper.JSC$9636_document_.body)==null?void 0:B.style.overflow)!=="hidden"};
TgT.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.IC(_.wd,_.uz);_.w=_.wd.prototype;_.w.JSC$10313_id_=0;_.w.disposeInternal=function(){_.wd.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10311_listener_;delete this.handler_};
_.w.start=function(G){this.stop();this.JSC$10313_id_=mK(this.callback_,G!==void 0?G:this.JSC$10311_interval_)};
_.w.stop=function(){this.isActive()&&_.Fz.clearTimeout(this.JSC$10313_id_);this.JSC$10313_id_=0};
_.w.fire=function(){this.stop();this.JSC$10313_doAction_()};
_.w.isActive=function(){return this.JSC$10313_id_!=0};
_.w.JSC$10313_doAction_=function(){this.JSC$10313_id_=0;this.JSC$10311_listener_&&this.JSC$10311_listener_.call(this.handler_)};_.IC(_.Cn,_.uz);var I8P=[];_.Cn.prototype.listen=function(G,B,F,D){Array.isArray(B)||(B&&(I8P[0]=B.toString()),B=I8P);for(var u=0;u<B.length;u++){var R=_.H1(G,B[u],F||this.handleEvent,D||!1,this.handler_||this);if(!R)break;this.JSC$10314_keys_[R.key]=R}return this};
_.Cn.prototype.listenOnce=function(G,B,F,D){return f8q(this,G,B,F,D)};
var f8q=function(G,B,F,D,u,R){if(Array.isArray(F))for(var N=0;N<F.length;N++)f8q(G,B,F[N],D,u,R);else{B=h7(B,F,D||G.handleEvent,u,R||G.handler_||G);if(!B)return G;G.JSC$10314_keys_[B.key]=B}return G};
_.Cn.prototype.unlisten=function(G,B,F,D,u){if(Array.isArray(B))for(var R=0;R<B.length;R++)this.unlisten(G,B[R],F,D,u);else if(G=$SI(G,B,F||this.handleEvent,_.Zc(D)?!!D.capture:!!D,u||this.handler_||this))Nh(G),delete this.JSC$10314_keys_[G.key];return this};
_.Cn.prototype.removeAll=function(){_.UK.forEach(this.JSC$10314_keys_,function(G,B){this.JSC$10314_keys_.hasOwnProperty(B)&&Nh(G)},this);
this.JSC$10314_keys_={}};
_.Cn.prototype.disposeInternal=function(){_.Cn.superClass_.disposeInternal.call(this);this.removeAll()};
_.Cn.prototype.handleEvent=function(){throw Error("Pa");};_.IC(NN,_.uz);NN.prototype.connect=function(G){G&&G()};
NN.prototype.isConnected=function(){return!0};
NN.prototype.registerService=function(G,B,F){this.services_[G]={callback:B,objectPayload:!!F}};
NN.prototype.getService=function(G,B){var F=this.services_[G];return F?F:this.defaultService_?{callback:_.Fw(this.defaultService_,G),objectPayload:_.Zc(B)}:null};
var t6q=function(G,B){if(B&&typeof G==="string")try{return JSON.parse(G)}catch(F){return null}else if(!B&&typeof G!=="string")return _.Q_(G);return G};
NN.prototype.disposeInternal=function(){NN.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 lz=function(G,B){this.sequence_=[];this.onCancelFunction_=G;this.defaultScope_=B||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
lz.prototype.cancel=function(G){if(this.fired_)this.result_ instanceof lz&&this.result_.cancel();else{if(this.parent_){var B=this.parent_;delete this.parent_;G?B.cancel(G):(B.branches_--,B.branches_<=0&&B.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new pG(this))}};
lz.prototype.continue_=function(G,B){this.blocked_=!1;Zu7(this,G,B)};
var Zu7=function(G,B,F){G.fired_=!0;G.result_=F;G.hadError_=!B;grq(G)},sBy=function(G){if(G.fired_){if(!G.silentlyCanceled_)throw new SOv(G);
G.silentlyCanceled_=!1}};
lz.prototype.callback=function(G){sBy(this);Zu7(this,!0,G)};
lz.prototype.errback=function(G){sBy(this);Zu7(this,!1,G)};
var k0o=function(G,B,F){Yu(G,B,null,F)};
lz.prototype.finally=function(G){var B=this;return xzw(new Promise(function(F,D){Yu(B,function(u){G();F(u)},function(u){G();
D(u)})}))};
var Yu=function(G,B,F,D){var u=G.fired_;u||(B===F?B=F=EC(B):(B=EC(B),F=EC(F)));G.sequence_.push([B,F,D]);u&&grq(G)};
lz.prototype.then=function(G,B,F){var D,u,R=new _.DS(function(N,y){u=N;D=y});
Yu(this,u,function(N){N instanceof pG?R.cancel():D(N);return Piq},this);
return R.then(G,B,F)};
Qna(lz);var H8U=function(G,B){B instanceof lz?k0o(G,(0,_.R_)(B.branch,B)):k0o(G,function(){return B})};
lz.prototype.branch=function(G){var B=new lz;Yu(this,B.callback,B.errback,B);G&&(B.parent_=this,this.branches_++);return B};
lz.prototype.isError=function(G){return G instanceof Error};
var GAt=function(G){return Ao(G.sequence_,function(B){return typeof B[1]==="function"})},Piq={},grq=function(G){if(G.unhandledErrorId_&&G.fired_&&GAt(G)){var B=G.unhandledErrorId_,F=Ba8[B];
F&&(_.Fz.clearTimeout(F.JSC$10331_id_),delete Ba8[B]);G.unhandledErrorId_=0}G.parent_&&(G.parent_.branches_--,delete G.parent_);B=G.result_;for(var D=F=!1;G.sequence_.length&&!G.blocked_;){var u=G.sequence_.shift(),R=u[0],N=u[1];u=u[2];if(R=G.hadError_?N:R)try{var y=R.call(u||G.defaultScope_,B);y===Piq&&(y=void 0);y!==void 0&&(G.hadError_=G.hadError_&&(y==B||G.isError(y)),G.result_=B=y);if(jnw(B)||typeof _.Fz.Promise==="function"&&B instanceof _.Fz.Promise)D=!0,G.blocked_=!0}catch(U){B=U,G.hadError_=
!0,GAt(G)||(F=!0)}}G.result_=B;D&&(y=(0,_.R_)(G.continue_,G,!0),D=(0,_.R_)(G.continue_,G,!1),B instanceof lz?(Yu(B,y,D),B.blocking_=!0):B.then(y,D));F&&(B=new iZy(B),Ba8[B.JSC$10331_id_]=B,G.unhandledErrorId_=B.JSC$10331_id_)},xzw=function(G){var B=new lz;
G.then(function(F){B.callback(F)},function(F){B.errback(F)});
return B},SOv=function(){_.Gs.call(this)};
_.IC(SOv,_.Gs);SOv.prototype.message="Deferred has already fired";SOv.prototype.name="AlreadyCalledError";var pG=function(){_.Gs.call(this)};
_.IC(pG,_.Gs);pG.prototype.message="Deferred was canceled";pG.prototype.name="CanceledError";var iZy=function(G){this.JSC$10331_id_=_.Fz.setTimeout((0,_.R_)(this.throwError,this),0);this.JSC$10331_error_=G};
iZy.prototype.throwError=function(){delete Ba8[this.JSC$10331_id_];throw this.JSC$10331_error_;};
var Ba8={};var FXv={1:"NativeMessagingTransport"},eV8=["pu","lru","pru","lpu","ppu"];_.IC(yA,_.uz);yA.prototype.transportType=0;yA.prototype.getWindow=function(){return this.JSC$10334_domHelper_.getWindow()};
yA.prototype.getName=function(){return FXv[String(this.transportType)]||""};_.IC(Ur,yA);Ur.prototype.peerProtocolVersion_=null;Ur.prototype.initialized_=!1;Ur.prototype.transportType=1;var DIq={};Ur.prototype.sendTimerId_=0;
var w$L=function(G){var B=G.event_.data;if(typeof B!=="string")return!1;var F=B.indexOf("|"),D=B.indexOf(":");if(F==-1||D==-1)return!1;var u=B.substring(0,F);F=B.substring(F+1,D);B=B.substring(D+1);if(D=Er[u])return D.xpcDeliver(F,B,G.event_.origin),!0;D=u07(B)[0];for(var R in Er){var N=Er[R];if(Wmg(N)==1&&!N.isConnected()&&F=="tp"&&(D=="SETUP"||D=="SETUP_NTPV2")&&RIU(N,G.event_.origin))return delete Er[N.name],N.name=u,Er[u]=N,N.xpcDeliver(F,B),!0}return!1},CZa=function(G){G.protocolVersion_!=2||
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||G.send("tp","SETUP_NTPV2,"+G.endpointId_);
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||G.send("tp","SETUP")},NaL=function(G,B){if(G.protocolVersion_!=2||G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||B!=2){if(G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||B!=1)return;
G.send("tp","SETUP_ACK")}else G.send("tp","SETUP_ACK_NTPV2");G.setupAckSent_.fired_||G.setupAckSent_.callback(!0)},ybG=function(G,B){B>G.peerProtocolVersion_&&(G.peerProtocolVersion_=B);
G.peerProtocolVersion_==1&&(G.setupAckSent_.fired_||G.oneSidedHandshake_||G.setupAckSent_.callback(!0),G.peerEndpointId_=null)};
_.w=Ur.prototype;_.w.connect=function(){var G=this.getWindow(),B=_.S8(G),F=DIq[B];typeof F!=="number"&&(F=0);F==0&&_.H1(G.postMessage?G:G.document,"message",w$L,!1,Ur);DIq[B]=F+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.w.maybeAttemptToConnect_=function(){var G=Wmg(this.JSC$10337_channel_)==0;this.oneSidedHandshake_&&G||this.JSC$10337_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),CZa(this))};
_.w.send=function(G,B){var F=this.JSC$10337_channel_.peerWindowObject_;F&&(this.send=function(D,u){var R=this,N=this.JSC$10337_channel_.name;this.sendTimerId_=mK(function(){R.sendTimerId_=0;try{var y=F.postMessage?F:F.document;y.postMessage&&y.postMessage(N+"|"+D+":"+u,R.peerHostname_)}catch(U){}},0)},this.send(G,B))};
_.w.notifyConnected_=function(){var G=this.JSC$10337_channel_,B=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;G.isConnected()||G.connectionDelay_&&G.connectionDelay_.isActive()||(G.state_=2,_.ve(G.connectionDelay_),B!==void 0?(G.connectionDelay_=new _.wd(G.connectCb_,B),G.connectionDelay_.start()):(G.connectionDelay_=null,G.connectCb_()))};
_.w.disposeInternal=function(){if(this.initialized_){var G=this.getWindow(),B=_.S8(G),F=DIq[B];DIq[B]=F-1;F==1&&_.qX(G.postMessage?G:G.document,"message",w$L,!1,Ur)}this.sendTimerId_&&(_.Fz.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ve(this.JSC$10337_eventHandler_);delete this.JSC$10337_eventHandler_;_.ve(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10337_connected_.cancel();delete this.JSC$10337_connected_;delete this.send;Ur.superClass_.disposeInternal.call(this)};
var u07=function(G){G=G.split(",");G[1]=G[1]||null;return G};var lST;_.Ah=function(G){if(G.getValues&&typeof G.getValues=="function")return G.getValues();if(typeof Map!=="undefined"&&G instanceof Map||typeof Set!=="undefined"&&G instanceof Set)return Array.from(G.values());if(typeof G==="string")return G.split("");if(_.fQ(G)){for(var B=[],F=G.length,D=0;D<F;D++)B.push(G[D]);return B}return _.UK.getValues(G)};
_.n2G=function(G){if(G.getKeys&&typeof G.getKeys=="function")return G.getKeys();if(!G.getValues||typeof G.getValues!="function"){if(typeof Map!=="undefined"&&G instanceof Map)return Array.from(G.keys());if(!(typeof Set!=="undefined"&&G instanceof Set)){if(_.fQ(G)||typeof G==="string"){var B=[];G=G.length;for(var F=0;F<G;F++)B.push(F);return B}return _.UK.getKeys(G)}}};
lST=function(G,B,F){if(G.forEach&&typeof G.forEach=="function")G.forEach(B,F);else if(_.fQ(G)||typeof G==="string")Array.prototype.forEach.call(G,B,F);else for(var D=_.n2G(G),u=_.Ah(G),R=u.length,N=0;N<R;N++)B.call(F,u[N],D&&D[N],G)};var BpQ,th,g2,mIL,UIs,E2N,qza,aSU,hIy;
_.ea=function(G,B){this.JSC$10342_domain_=this.userInfo_=this.scheme_="";this.JSC$10342_port_=null;this.fragment_=this.JSC$10342_path_="";this.JSC$10342_ignoreCase_=!1;var F;G instanceof _.ea?(this.JSC$10342_ignoreCase_=B!==void 0?B:G.JSC$10342_ignoreCase_,_.d2(this,G.scheme_),this.userInfo_=G.userInfo_,_.Jh(this,G.JSC$10342_domain_),_.cp(this,G.JSC$10342_port_),_.TE(this,G.getPath()),_.It(this,G.JSC$10342_queryData_.clone()),_.fG(this,G.fragment_)):G&&(F=_.dO(String(G)))?(this.JSC$10342_ignoreCase_=
!!B,_.d2(this,F[1]||"",!0),this.userInfo_=th(F[2]||""),_.Jh(this,F[3]||"",!0),_.cp(this,F[4]),_.TE(this,F[5]||"",!0),_.It(this,F[6]||"",!0),_.fG(this,F[7]||"",!0)):(this.JSC$10342_ignoreCase_=!!B,this.JSC$10342_queryData_=new _.Zg(null,this.JSC$10342_ignoreCase_))};
_.ea.prototype.toString=function(){var G=[],B=this.scheme_;B&&G.push(g2(B,UIs,!0),":");var F=this.JSC$10342_domain_;if(F||B=="file")G.push("//"),(B=this.userInfo_)&&G.push(g2(B,UIs,!0),"@"),G.push(_.S5(F).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F=this.JSC$10342_port_,F!=null&&G.push(":",String(F));if(F=this.getPath())this.JSC$10342_domain_&&F.charAt(0)!="/"&&G.push("/"),G.push(g2(F,F.charAt(0)=="/"?qza:E2N,!0));(F=this.JSC$10342_queryData_.toString())&&G.push("?",F);(F=this.fragment_)&&G.push("#",
g2(F,hIy));return G.join("")};
_.ea.prototype.resolve=function(G){var B=this.clone(),F=!!G.scheme_;F?_.d2(B,G.scheme_):F=!!G.userInfo_;F?B.userInfo_=G.userInfo_:F=!!G.JSC$10342_domain_;F?_.Jh(B,G.JSC$10342_domain_):F=G.JSC$10342_port_!=null;var D=G.getPath();if(F)_.cp(B,G.JSC$10342_port_);else if(F=!!G.JSC$10342_path_){if(D.charAt(0)!="/")if(this.JSC$10342_domain_&&!this.JSC$10342_path_)D="/"+D;else{var u=B.getPath().lastIndexOf("/");u!=-1&&(D=B.getPath().slice(0,u+1)+D)}u=D;if(u==".."||u==".")D="";else if(_.ll(u,"./")||_.ll(u,
"/.")){D=_.wU(u,"/");u=u.split("/");for(var R=[],N=0;N<u.length;){var y=u[N++];y=="."?D&&N==u.length&&R.push(""):y==".."?((R.length>1||R.length==1&&R[0]!="")&&R.pop(),D&&N==u.length&&R.push("")):(R.push(y),D=!0)}D=R.join("/")}else D=u}F?_.TE(B,D):F=G.JSC$10342_queryData_.toString()!=="";F?_.It(B,G.JSC$10342_queryData_.clone()):F=!!G.fragment_;F&&_.fG(B,G.fragment_);return B};
_.ea.prototype.clone=function(){return new _.ea(this)};
_.d2=function(G,B,F){G.scheme_=F?th(B,!0):B;G.scheme_&&(G.scheme_=G.scheme_.replace(/:$/,""));return G};
_.Jh=function(G,B,F){G.JSC$10342_domain_=F?th(B,!0):B;return G};
_.cp=function(G,B){if(B){B=Number(B);if(isNaN(B)||B<0)throw Error("Qa`"+B);G.JSC$10342_port_=B}else G.JSC$10342_port_=null;return G};
_.ea.prototype.getPath=function(){return this.JSC$10342_path_};
_.TE=function(G,B,F){G.JSC$10342_path_=F?th(B,!0):B;return G};
_.It=function(G,B,F){B instanceof _.Zg?(G.JSC$10342_queryData_=B,KXs(G.JSC$10342_queryData_,G.JSC$10342_ignoreCase_)):(F||(B=g2(B,aSU)),G.JSC$10342_queryData_=new _.Zg(B,G.JSC$10342_ignoreCase_));return G};
_.A7=function(G,B,F){G.JSC$10342_queryData_.set(B,F);return G};
_.Y3=function(G,B){return G.JSC$10342_queryData_.get(B)};
_.fG=function(G,B,F){G.fragment_=F?th(B):B;return G};
_.St=function(G){_.A7(G,"zx",MN());return G};
_.pn=function(G,B){return G instanceof _.ea?G.clone():new _.ea(G,B)};
BpQ=function(G,B){G instanceof _.ea||(G=_.pn(G));B instanceof _.ea||(B=_.pn(B));return G.resolve(B)};
th=function(G,B){return G?B?decodeURI(G.replace(/%25/g,"%2525")):decodeURIComponent(G):""};
g2=function(G,B,F){return typeof G==="string"?(G=encodeURI(G).replace(B,mIL),F&&(G=G.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G):null};
mIL=function(G){G=G.charCodeAt(0);return"%"+(G>>4&15).toString(16)+(G&15).toString(16)};
UIs=/[#\/\?@]/g;E2N=/[#\?:]/g;qza=/[#\?]/g;aSU=/[#\?@]/g;hIy=/#/g;_.Zg=function(G,B){this.count_=this.keyMap_=null;this.encodedQuery_=G||null;this.JSC$10343_ignoreCase_=!!B};
_.sC=function(G){G.keyMap_||(G.keyMap_=new Map,G.count_=0,G.encodedQuery_&&siU(G.encodedQuery_,function(B,F){G.add(gO(B),F)}))};
_.w=_.Zg.prototype;_.w.getCount=function(){_.sC(this);return this.count_};
_.w.add=function(G,B){_.sC(this);this.encodedQuery_=null;G=xu(this,G);var F=this.keyMap_.get(G);F||this.keyMap_.set(G,F=[]);F.push(B);this.count_+=1;return this};
_.w.remove=function(G){_.sC(this);G=xu(this,G);return this.keyMap_.has(G)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(G).length,this.keyMap_.delete(G)):!1};
_.w.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.w.isEmpty=function(){_.sC(this);return this.count_==0};
_.w.containsKey=function(G){_.sC(this);G=xu(this,G);return this.keyMap_.has(G)};
_.w.containsValue=function(G){var B=this.getValues();return _.YM(B,G)};
_.w.forEach=function(G,B){_.sC(this);this.keyMap_.forEach(function(F,D){F.forEach(function(u){G.call(B,u,D,this)},this)},this)};
_.w.getKeys=function(){_.sC(this);for(var G=Array.from(this.keyMap_.values()),B=Array.from(this.keyMap_.keys()),F=[],D=0;D<B.length;D++)for(var u=G[D],R=0;R<u.length;R++)F.push(B[D]);return F};
_.w.getValues=function(G){_.sC(this);var B=[];if(typeof G==="string")this.containsKey(G)&&(B=B.concat(this.keyMap_.get(xu(this,G))));else{G=Array.from(this.keyMap_.values());for(var F=0;F<G.length;F++)B=B.concat(G[F])}return B};
_.w.set=function(G,B){_.sC(this);this.encodedQuery_=null;G=xu(this,G);this.containsKey(G)&&(this.count_-=this.keyMap_.get(G).length);this.keyMap_.set(G,[B]);this.count_+=1;return this};
_.w.get=function(G,B){if(!G)return B;G=this.getValues(G);return G.length>0?String(G[0]):B};
_.X$v=function(G,B,F){G.remove(B);F.length>0&&(G.encodedQuery_=null,G.keyMap_.set(xu(G,B),_.II(F)),G.count_+=F.length)};
_.Zg.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var G=[],B=Array.from(this.keyMap_.keys()),F=0;F<B.length;F++){var D=B[F],u=_.S5(D);D=this.getValues(D);for(var R=0;R<D.length;R++){var N=u;D[R]!==""&&(N+="="+_.S5(D[R]));G.push(N)}}return this.encodedQuery_=G.join("&")};
_.Zg.prototype.clone=function(){var G=new _.Zg;G.encodedQuery_=this.encodedQuery_;this.keyMap_&&(G.keyMap_=new Map(this.keyMap_),G.count_=this.count_);return G};
var xu=function(G,B){B=String(B);G.JSC$10343_ignoreCase_&&(B=B.toLowerCase());return B},KXs=function(G,B){B&&!G.JSC$10343_ignoreCase_&&(_.sC(G),G.encodedQuery_=null,G.keyMap_.forEach(function(F,D){var u=D.toLowerCase();
D!=u&&(this.remove(D),_.X$v(this,u,F))},G));
G.JSC$10343_ignoreCase_=B};
_.Zg.prototype.extend=function(G){for(var B=0;B<arguments.length;B++)lST(arguments[B],function(F,D){this.add(D,F)},this)};_.IC(Kn,NN);var QuP=RegExp("^%*tp$"),jut=RegExp("^%+tp$");_.w=Kn.prototype;_.w.connectionDelay_=null;_.w.peerWindowDeferred_=null;_.w.transport_=null;_.w.state_=1;_.w.isConnected=function(){return this.state_==2};
_.w.peerWindowObject_=null;_.w.iframeElement_=null;_.w.getConfig=function(){return this.cfg_};
_.w.connect=function(G){this.connectCb_=G||_.qB;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?k0o(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.w.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10338_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var G=this.iframeElement_.contentWindow;G||(G=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=G}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ua");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$10338_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Ur(this,this.cfg_.ph,this.JSC$10338_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Ta");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.w.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.ve(this.transport_);this.connectCb_=this.transport_=null;_.ve(this.connectionDelay_);this.connectionDelay_=null};
_.w.send=function(G,B){if(this.isConnected()){try{var F=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(u){F=!1}if(F){_.Zc(B)&&(B=_.Q_(B));F=this.transport_;var D=F.send;QuP.test(G)&&(G="%"+G);G=G.replace(/[%:|]/g,encodeURIComponent);D.call(F,G,B)}else this.close()}};
_.w.xpcDeliver=function(G,B,F){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.R_)(this.xpcDeliver,this,G,B,F));else if(RIU(this,F)&&!this.isDisposed()&&this.state_!=3)if(G&&G!="tp")this.isConnected()&&(G=G.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),G=jut.test(G)?G.substring(1):G,G=this.getService(G,B))&&(B=t6q(B,G.objectPayload),B!=null&&G.callback(B));else switch(G=this.transport_,F=u07(B),B=F[1],F[0]){case "SETUP_ACK":ybG(G,1);G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":G.protocolVersion_==2&&(ybG(G,2),G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0));break;case "SETUP":ybG(G,1);NaL(G,1);break;case "SETUP_NTPV2":G.protocolVersion_==2&&(F=G.peerProtocolVersion_,ybG(G,2),NaL(G,2),F!=1&&G.peerEndpointId_==null||G.peerEndpointId_==B||CZa(G),G.peerEndpointId_=B)}};
var Wmg=function(G){var B=G.cfg_.role;return typeof B==="number"?B:window.parent==G.peerWindowObject_?1:0},RIU=function(G,B){var F=G.cfg_.ph;
return _.NL(B==null?"":String(B))||_.NL(F==null?"":String(F))||B==G.cfg_.ph};
Kn.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Er[this.name];_.ve(this.peerLoadHandler_);delete this.peerLoadHandler_;Kn.superClass_.disposeInternal.call(this)};
var zVL=function(){for(var G in Er)_.ve(Er[G])},Er={};var rb8=function(G,B){this.win=G;this.allowAdsHttpEndpoint=B;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10352_domHelper=Ri(G);this.scrollManager=new TgT(G);this.accessibilityManager=new YOy(G);LXw(this)},LXw=function(G){var B=function(){G.allowAdsPopup&&G.allowAdsPopup.style.setProperty("display","none","important");
G.wallElement.style.setProperty("display","","important");Ao7(G.accessibilityManager);cos(G.accessibilityManager,G.wallElement.querySelector(".fc-dialog-container"),!1,!1,G.wallElement.querySelector(".fc-button-whitelist"));G.scrollManager.enableScrolling()};
G.allowAdsPopup=G.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-whitelist-root"});G.allowAdsPopup.style.setProperty("display","none","important");G.JSC$10352_domHelper.appendChild(G.JSC$10352_domHelper.JSC$9636_document_.body,G.allowAdsPopup);var F=G.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-dialog-overlay"});G.JSC$10352_domHelper.appendChild(G.allowAdsPopup,F);var D=G.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:B});G.JSC$10352_domHelper.appendChild(G.allowAdsPopup,
D);F=G.JSC$10352_domHelper.JSC$9638_createDom("IFRAME");F.className="fc-whitelist-dialog";F.frameBorder="0";F.id="fc-whitelist-iframe";F.tabIndex="0";_.u5(F,G.allowAdsHttpEndpoint);G.JSC$10352_domHelper.appendChild(D,F);D={};D.pu=_.YS(G.allowAdsHttpEndpoint).toString();D.tp=1;D.cn="fc-whitelist-channel";D.ifrid=F.id;D.osh=!0;G.allowAdsCrossPageChannel=new Kn(D);G.allowAdsCrossPageChannel.registerService("close",B);G.allowAdsCrossPageChannel.registerService("refresh",function(){G.win.location.reload()});
G.allowAdsCrossPageChannel.registerService("resize",function(u){if(u){var R=G.allowAdsPopup.querySelector(".fc-whitelist-dialog");u.width&&R.style.setProperty("width",u.width,"important");u.height&&R.style.setProperty("height",u.height,"important")}},!0);
G.allowAdsCrossPageChannel.connect()};
rb8.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10352_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Pp=window,G8=document,WXa=Pp.location,HZa=function(){},kAw=/\[native code\]/,Bf=function(G,B,F){return G[B]=G[B]||F},OZP=function(G){G=G.sort();
for(var B=[],F=void 0,D=0;D<G.length;D++){var u=G[D];u!=F&&B.push(u);F=u}return B},iJ=function(){var G;
if((G=Object.create)&&kAw.test(G))G=G(null);else{G={};for(var B in G)G[B]=void 0}return G},F8=Bf(Pp,"gapi",{});var D9={};D9=Bf(Pp,"___jsl",iJ());Bf(D9,"I",0);Bf(D9,"hel",10);var eI7=function(){var G=WXa.href;if(D9.dpo)var B=D9.h;else{B=D9.h;var F=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),D=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(G=G&&(F.exec(G)||D.exec(G)))try{B=decodeURIComponent(G[2])}catch(u){}}return B},$IU=function(G){var B=Bf(D9,"PQ",[]);
D9.PQ=[];var F=B.length;if(F===0)G();else for(var D=0,u=function(){++D===F&&G()},R=0;R<F;R++)B[R](u)},zI8=function(G){return Bf(Bf(D9,"H",iJ()),G,iJ())};var uJ=function(G){this.JSC$10354_obj_=G};
uJ.prototype.value=function(){return this.JSC$10354_obj_};
uJ.prototype.getWidth=function(){return this.JSC$10354_obj_.width};
uJ.prototype.getHeight=function(){return this.JSC$10354_obj_.height};
uJ.prototype.getStyle=function(){return this.JSC$10354_obj_.style};var bZG=function(G){this.JSC$10357_obj_=G||{}};
_.w=bZG.prototype;_.w.value=function(){return this.JSC$10357_obj_};
_.w.setUrl=function(G){this.JSC$10357_obj_.url=G;return this};
_.w.getUrl=function(){return this.JSC$10357_obj_.url};
_.w.getStyle=function(){return this.JSC$10357_obj_.style};
_.w.getId=function(){return this.JSC$10357_obj_.id};
_.w.getContext=function(){return this.JSC$10357_obj_.context};
var Vm7=function(G){G.JSC$10357_obj_.attributes=G.JSC$10357_obj_.attributes||{};return new uJ(G.JSC$10357_obj_.attributes)};var v2q=function(){bZG.apply(this,arguments)};
_.r(v2q,bZG);var o2P=Bf(D9,"perf",iJ());Bf(o2P,"g",iJ());var Mmq=Bf(o2P,"i",iJ());Bf(o2P,"r",[]);iJ();iJ();var Yz8=function(G,B,F){B&&B.length>0&&(B=p$N(B),F&&F.length>0&&(B+="___"+p$N(F)),B.length>28&&(B=B.substr(0,28)+(B.length-28)),F=B,B=Bf(Mmq,"_p",iJ()),Bf(B,F,iJ())[G]=(new Date).getTime(),B=o2P.r,typeof B==="function"?B(G,"_p",F):B.push([G,"_p",F]))},p$N=function(G){return G.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Abt=iJ(),dIy=[],RV=function(G){throw Error("Va`"+G);};
dIy.push(["jsl",function(G){for(var B in G)if(Object.prototype.hasOwnProperty.call(G,B)){var F=G[B];typeof F=="object"?D9[B]=Bf(D9,B,[]).concat(F):Bf(D9,B,F)}if(B=G.u)G=Bf(D9,"us",[]),G.push(B),(B=/^https:(.*)$/.exec(B))&&G.push("http:"+B[1])}]);
var Jby=/^(\/[a-zA-Z0-9_\-]+)+$/,cbs=[/\/amp\//,/\/amp$/,/^\/amp$/],Tay=/^[a-zA-Z0-9\-_\.,!]+$/,ISv=/^gapi\.loaded_[0-9]+$/,fSq=/^[a-zA-Z0-9,._-]+$/,SzU=function(G,B,F,D,u){var R=G.split(";"),N=R.shift(),y=Abt[N],U=null;y?U=y(R,B,F,D):RV("no hint processor for: "+N);U||RV("failed to generate load url");B=U;F=B.match(tmU);(D=B.match(ZZw))&&D.length===1&&g2P.test(B)&&F&&F.length===1||RV("failed sanity: "+G);try{G="?";if(u&&u.length>0){vMg(u);var q=u.join(",");U=U+"?le="+q;G="&"}if(D9.rol){var h=D9.ol;
h&&h.length&&(U=""+U+G+"ol="+h.length)}}catch(K){}return U},PZa=function(G,B,F,D){G=suq(G);
ISv.test(F)||RV("invalid_callback");B=xIs(B);D=D&&D.length?xIs(D):null;var u=function(R){return encodeURIComponent(R).replace(/%2C/g,",")};
return[encodeURIComponent(G.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",u(G.version),"/m=",u(B),D?"/exm="+u(D):"","/rt=j/sv=1/d=1/ed=1",G.activeMods?"/am="+u(G.activeMods):"",G.resourceSig?"/rs="+u(G.resourceSig):"",G.zcms?"/t="+u(G.zcms):"","/cb=",u(F)].join("")},suq=function(G){G.charAt(0)!=="/"&&RV("relative path");
for(var B=G.substring(1).split("/"),F=[];B.length;){G=B.shift();if(!G.length||G.indexOf(".")==0)RV("empty/relative directory");else if(G.indexOf("=")>0){B.unshift(G);break}F.push(G)}G={};for(var D=0,u=B.length;D<u;++D){var R=B[D].split("="),N=decodeURIComponent(R[0]),y=decodeURIComponent(R[1]);R.length==2&&N&&y&&(G[N]=G[N]||y)}B="/"+F.join("/");Jby.test(B)||RV("invalid_prefix");F=0;for(D=cbs.length;F<D;++F)cbs[F].test(B)&&RV("invalid_prefix");F=Gcq(G,"k",!0);D=Gcq(G,"am");u=Gcq(G,"rs");G=Gcq(G,"t");
return{pathPrefix:B,version:F,activeMods:D,resourceSig:u,zcms:G}},xIs=function(G){for(var B=[],F=0,D=G.length;F<D;++F){var u=G[F].replace(/\./g,"_").replace(/-/g,"_");
fSq.test(u)&&B.push(u)}return B.join(",")},Gcq=function(G,B,F){G=G[B];
!G&&F&&RV("missing: "+B);if(G){if(Tay.test(G))return G;RV("invalid: "+B)}return null},g2P=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ZZw=/\/cb=/g,tmU=/\/\//g;
Abt.m=function(G,B,F,D){(G=G[0])||RV("missing_hint");return"https://apis.google.com"+PZa(G,B,F,D)};
var BSq=decodeURI("%73cript"),ity=/^[-+_0-9\/A-Za-z]+={0,2}$/,FjP=function(G,B){for(var F=[],D=0;D<G.length;++D){var u=G[D],R;if(R=u){a:{for(R=0;R<B.length;R++)if(B[R]===u)break a;R=-1}R=R<0}R&&F.push(u)}return F},D0w=function(){var G=D9.nonce;
return G!==void 0?G&&G===String(G)&&G.match(ity)?G:D9.nonce=null:G8.querySelector?(G=G8.querySelector("script[nonce]"))?(G=G.nonce||G.getAttribute("nonce")||"",G&&G===String(G)&&G.match(ity)?D9.nonce=G:D9.nonce=null):null:null},wwt=function(G){if(G8.readyState!="loading")uLv(G);
else{var B=D0w(),F="";B!==null&&(F=' nonce="'+B+'"');G="<"+BSq+' src="'+encodeURI(G)+'"'+F+"></"+BSq+">";G8.write(Rfq?Rfq.createHTML(G):G)}},uLv=function(G){var B=G8.createElement(BSq);
B.setAttribute("src",Rfq?Rfq.createScriptURL(G):G);G=D0w();G!==null&&B.setAttribute("nonce",G);B.async="true";(G=G8.getElementsByTagName(BSq)[0])?G.parentNode.insertBefore(B,G):(G8.head||G8.body||G8.documentElement).appendChild(B)},NSU=function(G,B,F){Csq(function(){var D=B===eI7()?Bf(F8,"_",iJ()):iJ();
D=Bf(zI8(B),"_",D);G(D)},F)},nlc=function(G,B){var F=B||{};
typeof B=="function"&&(F={},F.callback=B);var D=(B=F)&&B._c;if(D)for(var u=0;u<dIy.length;u++){var R=dIy[u][0],N=dIy[u][1];N&&Object.prototype.hasOwnProperty.call(D,R)&&N(D[R],G,B)}B=[];G?B=G.split(":"):F.features&&(B=F.features);if(!(G=F.h)&&(G=eI7(),!G))throw Error("Wa");yAq(B||[],F,G)},yAq=function(G,B,F){G=OZP(G)||[];
var D=B.callback,u=B.config,R=B.timeout,N=B.ontimeout,y=B.onerror,U=void 0;typeof y=="function"&&(U=y);var q=null,h=!1;if(R&&!N||!R&&N)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";y=Bf(zI8(F),"r",[]).sort();var K=Bf(zI8(F),"L",[]).sort(),a=D9.le||[],m=[].concat(y),L=function(t,T){if(h)return 0;Pp.clearTimeout(q);K.push.apply(K,W);var A=((F8||{}).config||{}).update;A?A(u):u&&Bf(D9,"cu",[]).push(u);if(T){Yz8("me0",t,m);try{NSU(T,F,U)}finally{Yz8("me1",t,m)}}return 1};
R>0&&(q=Pp.setTimeout(function(){h=!0;N()},R));
var W=FjP(G,K);if(W.length){W=FjP(G,y);var e=Bf(D9,"CP",[]),b=e.length;e[b]=function(t){if(!t)return 0;Yz8("ml1",W,m);var T=function(Z){e[b]=null;L(W,t)&&$IU(function(){D&&D();Z()})},A=function(){var Z=e[b+1];
Z&&Z()};
b>0&&e[b-1]?e[b]=function(){T(A)}:T(A)};
if(W.length){var M="loaded_"+D9.I++;F8[M]=function(t){e[b](t);F8[M]=null};
G=SzU(F,W,"gapi."+M,y,a);y.push.apply(y,W);Yz8("ml0",W,m);B.sync||Pp.___gapisync?wwt(G):uLv(G)}else e[b](HZa)}else L(W)&&D&&D()},nby;
var lNy=null,U0s=_.Fz.trustedTypes;if(U0s&&U0s.createPolicy){try{lNy=U0s.createPolicy("goog#gapi",{createHTML:vvT,createScript:vvT,createScriptURL:vvT})}catch(G){_.Fz.console&&_.Fz.console.error(G.message)}nby=lNy}else nby=lNy;var Rfq=nby,Csq=function(G,B){if(D9.hee&&D9.hel>0)try{return G()}catch(F){B&&B(F),D9.hel--,nlc("debug_error",function(){try{window.___jsl.hefn(F)}catch(D){throw F;}})}else try{return G()}catch(F){throw B&&B(F),F;
}},q2q=F8.load;
q2q&&Bf(D9,"ol",[]).push(q2q);F8.load=function(G,B){return Csq(function(){return nlc(G,B)})};var oKL;var hfq=function(){var G=G||[];this.dependencies_=[];Ebv(this,G)};
hfq.prototype.toString=function(){return"MpJwZc"};
hfq.prototype.getModuleId=function(){return"MpJwZc"};
var Ebv=function(G,B){var F=!1;F=F===void 0?!1:F;G.dependencies_=G.dependencies_.concat(B);F&&B.map(function(D){return D.getModuleId()}).forEach(function(D){MES(function(u){u.addExtraEdge("MpJwZc",D)})})};var R78=new hfq;var iR6=new _.y_("a"),C2c=new _.y_("c"),wZI=function(G,B,F){_.T_.call(this,G,B);this.node=B;this.kind=F};
_.r(wZI,_.T_);var Kj8=function(){this.JSC$10370_keys_={};this.urlPrefix_="";this.JSC$10370_queryData_={}};
Kj8.prototype.toString=function(){var G=this.urlPrefix_+aNs(this),B=_.sh(this.JSC$10370_queryData_),F="";B!=""&&(F="?"+B);return G+F};
var m0U=function(G){G=wP(G,"md");return!!G&&G!=="0"},aNs=function(G){var B=[],F=function(D){G.JSC$10370_keys_[D]!==void 0&&B.push(D+"="+G.JSC$10370_keys_[D])};
m0U(G)?(F("md"),F("k"),F("ck"),F("am"),F("rs"),F("gssmodulesetproto"),F("slk"),F("dti")):(F("sdch"),F("k"),F("ck"),F("am"),F("amc"),F("rt"),"d"in G.JSC$10370_keys_||CB(G,"d","0"),F("d"),F("exm"),F("excm"),(G.JSC$10370_keys_.excm||G.JSC$10370_keys_.exm)&&B.push("ed=1"),F("im"),F("dg"),F("sm"),wP(G,"br")!="1"&&wP(G,"br")!="0"||F("br"),F("br-d"),wP(G,"rb")=="1"&&F("rb"),wP(G,"zs")!=="0"&&F("zs"),XwN(G)!==""&&F("wt"),F("gssmodulesetproto"),F("ujg"),F("sp"),F("rs"),F("cb"),F("ee"),F("slk"),F("dti"),F("m"));
return B.join("/")},wP=function(G,B){return G.JSC$10370_keys_[B]?G.JSC$10370_keys_[B]:null},CB=function(G,B,F){F?G.JSC$10370_keys_[B]=F:delete G.JSC$10370_keys_[B]},QpN=function(G,B){G.urlPrefix_=B},jpT=function(G,B){B&&B.length>0?(B.sort(),CB(G,"exm",B.join(","))):CB(G,"exm",null)},LjN=function(G,B){B&&B.length>0?(B.sort(),CB(G,"excm",B.join(","))):CB(G,"excm",null)},rAL=function(G){return(G=wP(G,"m"))?G.split(","):[]},XwN=function(G){switch(wP(G,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Wjs=function(G,B){var F=Object.keys(B).filter(function(D){return!!Object.keys(B[D]).length}).map(function(D){var u=Object.keys(B[D]);
u.length>1&&u.sort();return D+":"+u.join(",")});
F.sort();CB(G,"ee",F.join(";"))},GAg=function(G){var B=wP(G,"ee");
if(!B)return{};G={};B=_.C(B.split(";"));for(var F=B.next();!F.done;F=B.next()){var D=_.C(F.value.split(":"));F=D.next().value;D=D.next().value;G[F]={};D=_.C(D.split(","));for(var u=D.next();!u.done;u=D.next())G[F][u.value]=!0}return G},HtN=function(G){delete G.JSC$10370_keys_.m;
delete G.JSC$10370_keys_.exm;delete G.JSC$10370_keys_.ed};
Kj8.prototype.clone=function(){var G=new Kj8;G.JSC$10370_keys_=Object.assign({},this.JSC$10370_keys_);G.urlPrefix_=this.urlPrefix_;G.JSC$10370_queryData_=Object.assign({},this.JSC$10370_queryData_);return G};
var BaL=function(G,B){B=B===void 0?!0:B;var F=kca(G),D=new Kj8,u=_.dO(F)[5];_.UK.forEach(Ot8,function(N){var y=u.match("/"+N+"=([^/]+)");y&&CB(D,N,y[1])});
var R="";R=G.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";QpN(D,G.substr(0,G.indexOf(R)+R.length));if(!B)return D;(G=_.dO(F)[6]||null)&&siU(G,function(N,y){D.JSC$10370_queryData_[N]=y});
return D},sBl=function(G){G=_.Ik(kca(G));
return G===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(G)?/\/k=/.test(G):!1},kca=function(G){return G.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?G.substr(65):G},Ot8={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",
GSS_MODULE_SET_PROTO:"gssmodulesetproto",USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},efT=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.NU=function(G){this.JSC$10382_id_=G;this.opts={}};
_.NU.prototype.JSC$10384_setLabel=function(G){this.label_=G||void 0;return this};
_.NU.prototype.addUploadMetadata=function(G,B){var F=this.opts.data||{};F[G]=B;this.opts.data=F;return this};
var $0L=function(G){var B=_.UK.filter(G.opts,function(F){return F!==null});
B=_.UK.isEmpty(B)?null:B;G=[G.JSC$10382_id_,G.label_,B];B=eJz(G);return G=G.slice(0,B+1)};
_.NU.prototype.toString=function(){var G=$0L(this);return"("+_.qK(G,function(B){return JSON.stringify(B)}).join(",")+")"};
_.NU.prototype.getId=function(){return this.JSC$10382_id_};
_.NU.prototype.getOptions=function(){return _.UK.clone(this.opts)};var yV=function(){_.NU.call(this,"image-search")};
_.r(yV,_.NU);yV.prototype.setSize=function(G){this.opts.imgsz=G;return this};
yV.prototype.JSC$10384_setLabel=function(G){_.NU.prototype.JSC$10384_setLabel.call(this,G);return this};
yV.prototype.addUploadMetadata=function(G,B){_.NU.prototype.addUploadMetadata.call(this,G,B);return this};var nB=function(){_.NU.call(this,"maps")};
_.r(nB,_.NU);nB.prototype.setZoom=function(G){this.opts.zoom=G;return this};
nB.prototype.JSC$10384_setLabel=function(G){_.NU.prototype.JSC$10384_setLabel.call(this,G);return this};
nB.prototype.addUploadMetadata=function(G,B){_.NU.prototype.addUploadMetadata.call(this,G,B);return this};_.lJ=function(){_.NU.call(this,"photos")};
_.r(_.lJ,_.NU);_.lJ.prototype.JSC$10384_setLabel=function(G){_.NU.prototype.JSC$10384_setLabel.call(this,G);return this};
_.lJ.prototype.addUploadMetadata=function(G,B){_.NU.prototype.addUploadMetadata.call(this,G,B);return this};var U7=function(){_.NU.call(this,"url")};
_.r(U7,_.NU);var zfT=function(){var G=new U7;G.opts.type="video";G.opts.site="youtube.com";return G};
U7.prototype.JSC$10384_setLabel=function(G){_.NU.prototype.JSC$10384_setLabel.call(this,G);return this};
U7.prototype.addUploadMetadata=function(G,B){_.NU.prototype.addUploadMetadata.call(this,G,B);return this};var qU=function(){_.NU.call(this,"video-search")};
_.r(qU,_.NU);var btt=function(){var G=new qU;G.opts.site="youtube.com";return G};
qU.prototype.JSC$10384_setLabel=function(G){_.NU.prototype.JSC$10384_setLabel.call(this,G);return this};
qU.prototype.addUploadMetadata=function(G,B){_.NU.prototype.addUploadMetadata.call(this,G,B);return this};var VWy=function(){_.NU.call(this,"web")};
_.r(VWy,_.NU);VWy.prototype.JSC$10384_setLabel=function(G){_.NU.prototype.JSC$10384_setLabel.call(this,G);return this};
VWy.prototype.addUploadMetadata=function(G,B){_.NU.prototype.addUploadMetadata.call(this,G,B);return this};var E7=function(){this.items_=[];this.opts={}},vbT=function(G){switch(G){case "image-search":return new yV;
case "maps":return new nB;case "photos":return new _.lJ;case "url":return new U7;case "video-search":return new qU;case "web":return new VWy}return new _.NU(G)};
E7.prototype.addView=function(G){this.items_.push(typeof G==="string"?vbT(G):G);return this};
var oby=function(G){return"("+_.qK(G.items_,function(B){return B.toString()}).join(",")+")"};
E7.prototype.toString=function(){return oby(this)};
E7.prototype.getViews=function(G,B){B=B===void 0?[]:B;for(var F=this.items_,D=0;D<F.length;D++){var u=F[D];u instanceof E7?u.getViews(G,B):u.getId()==G&&B.push(u)}return B};
E7.prototype.getOptions=function(){return _.UK.clone(this.opts)};var bz=function(G){this.basePickerUrl_=G||"https://docs.google.com/picker";this.nav_=new E7};
bz.prototype.nav_=null;bz.prototype.addView=function(G){this.nav_.addView(G);return this};
bz.prototype.getBaseUrl=function(){return this.basePickerUrl_};
bz.prototype.getViews=function(G){return this.nav_.getViews(G)};
_.MWG=function(G,B){G.callback_=B;return G};var pwq=new Map;pwq.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");pwq.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");pwq.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Y2t=new Set;Y2t.add("application/vnd.google-apps.kix");Y2t.add("application/vnd.google-apps.ritz");Y2t.add("application/vnd.google-apps.punch");var spN=function(G,B,F){var D=F&&_.KX(F,1);F=AAt(F);var u=G[0].getId();switch(_.aD(u,2)){case 13:return d0L(G,B,D,F);case 3:return JAG(G,B,D,F);case 10:return cAN(G,B,D,F);case 27:return cAN(G,B,D,F);case 12:return TSG(G,B);case 2:return INt(G,B,D,F);case 5:return fNv(G,B,D,F);case 9:return tWG(G,B,D,F);case 6:return Zts(G,B,D,F);case 25:return gbN(G,B,D,F);case 1:return _.RD(G[0],$NP,26)?S2L(G,B,D,F):cAN(G,B,D,F);default:return{}}},Zts=function(G,B,F,D){G=G.map(function(u){return{id:u.getId().getId(),
serviceId:"youtube",name:u.getName(),description:_.KX(u,3),type:hE(u),lastEditedUtc:_.eWG(_.sf(u,_.Xp,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:u.getUrl(),embedUrl:_.KX(u,13),thumbnails:KB(T6(u))}});
return{action:B,docs:G,viewToken:D,view:F||"youtube",v2Translated:!0}},INt=function(G,B,F,D){var u=G.map(function(R){var N=R.getId().getId(),y=_.KX(R,7),U=R.getName(),q=hE(R),h=_.eWG(_.sf(R,_.Xp,12)).getTime(),K=R.getUrl(),a=Number(xHU(R)),m=_.KX(R,3),L=_.KX(R,11),W=KB(T6(R));
var e=_.sf(R,IK,21);e=_.qV(e,1);var b=_.sf(R,IK,21);b=_.KX(b,10);var M=_.KX(R,13);var t=_.sf(R,IK,21);t=_.qV(t,9);var T=_.sf(R,IK,21);T=_.KX(T,11);N={id:N,serviceId:"docs",mimeType:y,name:U,type:q,lastEditedUtc:h,url:K,sizeBytes:a,description:m,iconUrl:L,thumbnails:W,isShared:e,downloadUrl:b,embedUrl:M,copyable:t,resourceKey:T};y=_.sf(R,IK,21);_.qV(y,12)&&(N.uploadState="success",N.isNew=!0);y=_.sf(R,IK,21);_.RD(y,dZ,3)&&(R=_.sf(R,IK,21),R=_.sf(R,dZ,3),_.RD(R,YW,2)&&(y=Ln(R.getDuration().getSeconds()),
U=R.getDuration(),U=_.AM(U,2),N.duration=y+U/1E9),N.aspectRatio=R.getAspectRatio());return N});
return{action:B,docs:u,viewToken:D,view:F||"all",extraUserInputs:x0q(G),v2Translated:!0}},fNv=function(G,B,F,D){G=G.map(function(u){var R=_.sf(u,A7y,15);
R=_.sf(R,A5,1);NI(u,10,A5,R);return{id:u.getId().getId(),serviceId:"web",mimeType:_.KX(u,7),name:u.getName(),type:hE(u),url:u.getUrl(),description:_.KX(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KB(T6(u))}});
return{action:B,docs:G,viewToken:D,view:F||"image-search",v2Translated:!0}},tWG=function(G,B,F,D){G=G.map(function(u){return{serviceId:"url",
name:T6(u)[0].getUrl().split("/").pop(),type:hE(u),mimeType:_.KX(u,7),url:u.getUrl(),description:_.KX(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KB(T6(u))}});
return{action:B,docs:G,viewToken:D,view:F||"url",v2Translated:!0}},S2L=function(G,B,F,D){G=G.map(function(u){return{id:u.getId().getId(),
serviceId:"picasa",name:u.getName(),type:hE(u),description:_.KX(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KB(T6(u))}});
return{action:B,docs:G,viewToken:D,view:F||"webcam",v2Translated:!0}},cAN=function(G,B,F,D){return{action:B,
docs:G.map(PsU),viewToken:D,view:GNa(F||"upload",G),extraUserInputs:x0q(G),v2Translated:!0}},GNa=function(G,B){return B.some(function(F){var D;
return((D=_.sf(F,J5,30))==null?void 0:_.aD(D,3))===9})?G+"/gmailphotos":G},JAG=function(G,B,F,D){var u=G.map(function(R){var N={id:R.getId().getId(),
serviceId:"picasa",mimeType:_.KX(R,7),name:R.getName(),type:hE(R),lastEditedUtc:_.eWG(_.sf(R,_.Xp,12)).getTime(),url:R.getUrl(),sizeBytes:Number(xHU(R)),description:_.KX(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KB(T6(R)),mediaKey:R.getId().getId(),parentId:_.KX(R,4)},y,U=(y=_.sf(R,VVa,18))==null?void 0:_.sf(y,bnv,3);U&&(N.latitude=hR(U,1),N.longitude=hR(U,2));var q;R=(q=_.sf(R,VVa,18))==null?void 0:E8(q,6);q=R!=null?Ln(R):void 0;q&&(N.version=
q);return N});
return{action:B,docs:u,viewToken:D,view:F||"photos",extraUserInputs:x0q(G),v2Translated:!0}},d0L=function(G,B,F,D){G=G.map(function(u){return{id:u.getId().getId(),
serviceId:"et",name:T6(u)[0].getUrl().split("/").pop(),description:_.KX(u,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KB(T6(u),"etjpg")}});
return{action:B,docs:G,viewToken:D,view:F||"et",v2Translated:!0}},gbN=function(G,B,F,D){G=G.map(function(u){var R=u.getId().getId(),N=D["2"];
return{id:R,serviceId:N.type!=="gmail_themes"&&N.parent==="6226252643674576769"?"picasa":"static_themes",name:u.getName(),mimeType:_.KX(u,7),type:hE(u),description:_.KX(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:u.getUrl(),embedUrl:u.getUrl(),thumbnails:KB(T6(u))}});
return{action:B,docs:G,viewToken:D,view:F||"photos",v2Translated:!0}},TSG=function(G,B){G=G.map(function(F){var D=_.sf(F,zWq,27);
D=_.GX(D,1,_.eQ,_.Yk())[0];return{id:F.getId().getId(),serviceId:"contacts",mimeType:_.KX(F,7),name:F.getName(),description:_.KX(F,3),url:"mailto:"+D,thumbnail:[{url:_.KX(F,11)}],email:D}});
return{action:B,docs:G,view:"contacts",v2Translated:!0}},AAt=function(G){if(!G)return{};
var B=_.KX(G,3);B=B&&JSON.parse(B)||{};return{0:_.KX(G,1),1:_.KX(G,2),2:B}},KB=function(G,B){B=B===void 0?"":B;
if(!G.length)return null;B=="etjpg"&&(G=G.filter(function(F){return F.getUrl().includes("w1200-h300")}));
return G.map(function(F){return{url:F.getUrl(),height:F.getHeight(),width:F.getWidth(),type:B}})},x0q=function(G){return{isAttachment:G.some(function(B){return _.qV(B,31)})}},PsU=function(G){var B,F={id:(B=G.getId())==null?void 0:B.getId(),
serviceId:B0P(G),mimeType:_.KX(G,7),name:G.getName(),type:hE(G),sizeBytes:Number(xHU(G)),description:_.KX(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KB(T6(G)),isNew:!0};if(B=_.sf(G,J5,30)){F.dataUrl=_.KX(B,1)||null;a:{var D=_.sf(G,J5,30);switch(_.aD(D,3)){case 9:D=_.Q1(D,p18,2,cb);D={remoteRefs:D&&_.KX(D,1)};break a;case 10:case 15:D=_.Q1(D,MVa,4,cb);var u=T6(G);D={photo_id:D&&_.KX(D,1),media_key:G.getId().getId(),media_type:_.aD(G,6)===1?1:2,image_url:u&&
u[0].getUrl(),width:u&&String(u[0].getWidth()),height:u&&String(u[0].getHeight())};break a}D=null}F.uploadMetadata=D;F.uploadId=_.KX(B,9)||null;F.uploadState=irN(B)||null}(D=B&&_.Q1(B,MVa,4,cb))&&(F.id=_.KX(D,1));(D=B&&_.Q1(B,Yrw,5,cb))&&(F.contentId=_.KX(D,1));(D=B&&_.Q1(B,v3T,7,cb))&&(F.contentId=_.KX(D,1));(D=B&&_.Q1(B,o3L,6,cb))&&(F.contentId=_.KX(D,1));(B==null?void 0:_.aD(B,3))===1&&(F.mediaKey=G.getId().getId());return F},B0P=function(G){var B;
switch(((B=_.sf(G,J5,30))==null?void 0:_.aD(B,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},hE=function(G){switch(_.aD(G,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 _.KX(G,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},irN=function(G){switch(G==null?void 0:_.aD(G,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 R2G,F5T,DYw,uha;_.wzw=function(G,B){var F=B||{};B=F.document||document;var D=_.YS(G).toString(),u=(new aK(B)).createElement("SCRIPT"),R={script_:u,timeout_:void 0},N=new lz(F5T,R),y=null,U=F.timeout!=null?F.timeout:5E3;U>0&&(y=window.setTimeout(function(){DYw(u,!0);N.errback(new uha(1,"Timeout reached for loading script "+D))},U),R.timeout_=y);
u.onload=u.onreadystatechange=function(){u.readyState&&u.readyState!="loaded"&&u.readyState!="complete"||(DYw(u,F.cleanupWhenDone||!1,y),N.callback(null))};
u.onerror=function(){DYw(u,!0,y);N.errback(new uha(0,"Error while loading script "+D))};
R=F.attributes||{};_.UK.extend(R,{type:"text/javascript",charset:"UTF-8"});vkG(u,R);_.Ux(u,G);R2G(B).appendChild(u);return N};
R2G=function(G){var B=iz("HEAD",G);return B&&B.length!==0?B[0]:G.documentElement};
F5T=function(){if(this&&this.script_){var G=this.script_;G&&G.tagName=="SCRIPT"&&DYw(G,!0,this.timeout_)}};
DYw=function(G,B,F){F!=null&&_.Fz.clearTimeout(F);G.onload=function(){};
G.onerror=function(){};
G.onreadystatechange=function(){};
B&&window.setTimeout(function(){_.B1(G)},0)};
uha=function(G,B){var F="Jsloader error (code #"+G+")";B&&(F+=": "+B);_.Gs.call(this,F);this.code=G};
_.IC(uha,_.Gs);var Chq=_.vP(["https://apis.google.com/js/api.js"]),N0t=_.W7(Chq),UYa=function(G,B,F){F=F===void 0?{}:F;var D=!1,u=yUL(G,B,F).then(function(N){D=!0;return N}),R=_.Jeq(5E3).then(function(){return D?yUL(G,B,F):nQG(B,F).then(function(N){return lHa(N,G)})});
return eps([u,R])},yUL=function(G,B,F){F=F===void 0?{}:F;
return q1N(B,F).then(function(D){return lHa(D,G)})},lHa=function(G,B){var F=_.wU(B,"gapi.")?B.slice(5):B;
return G[F]?_.ZL(G[F]):new _.DS(function(D,u){var R=mK(function(){u(Error("Za"))},3E4);
G.load(B,{callback:function(){_.Fz.clearTimeout(R);D(G[F])},
onerror:function(N){_.Fz.clearTimeout(R);u(N)}})})},q1N=function(G,B){B=B===void 0?{}:B;
return G.gapi&&G.gapi.load?_.ZL(G.gapi):nQG(G,B)},nQG=function(G,B){B=B===void 0?{}:B;
return _.wzw(N0t,{document:G.document,attributes:B}).then(function(){return G.gapi})},EQU=function(){};
EQU.prototype.load=function(G,B,F){B=B===void 0?window:B;F=F===void 0?{}:F;var D=Date.now();return UYa(G,B,F).then(function(u){var R=Date.now();return{library:u,loadStartMs:D,loadEndMs:R}},function(u){throw u instanceof Error?u:Error(String(u));
})};var Cis=function(){_.uz.call(this);this.gapiLoader_=new EQU;this.origin_=null;this.gapiPickerIframeResolver_=_.zn();this.gapiIframesResolver_=_.zn();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.r(Cis,_.uz);var h2t=function(G,B){var F=F===void 0?{}:F;var D=_.Yf("gapi.iframes",B);return D?(G=Date.now(),_.ZL({library:D,loadStartMs:G,loadEndMs:G})):G.gapiLoader_.load("gapi.iframes",B,F)},K5N=function(G,B,F,D,u,R){var N=!1;
N=N===void 0?!1:N;h2t(G,EK(B.ownerDocument)).then(function(y){var U=y.library;G.gapiIframesResolver_.resolve(U);y=G.gapiPickerIframeResolver_;var q=y.resolve,h=N;h=h===void 0?!1:h;var K={};K["host-message-handler"]=F;G.hostMessageHandlerInternal_=K;var a=_.pn(D);a=_.pn(a);a=_.cp(_.Jh(_.d2(new _.ea,a.scheme_),a.JSC$10342_domain_),a.JSC$10342_port_).toString();G.origin_=a;a=(new v2q).setUrl(D);a.JSC$10357_obj_.where=B;a.JSC$10357_obj_.allowPost=h;a.JSC$10357_obj_.messageHandlers=K;h=_.Yf("makeWhiteListIframesFilter",
U)([G.origin_]);a.JSC$10357_obj_.messageHandlersFilter=h;u!=null&&(a.JSC$10357_obj_.id=u);R!=null&&(a.JSC$10357_obj_.rpctoken=R);h=Vm7(a);h.JSC$10354_obj_.style={display:"block","min-width":"100%",width:"1px"};h.JSC$10354_obj_.height="100%";Vm7(a).value().allow="camera 'src' "+G.origin_;U=U.getContext().openChild(a.value());q.call(y,U)},function(y){G.gapiIframesResolver_.reject(y);
G.gapiPickerIframeResolver_.reject(y)});
return G.gapiPickerIframeResolver_.promise},aHN=function(G,B){return _.KG([G.gapiIframesResolver_.promise,
G.gapiPickerIframeResolver_.promise]).then(function(F){var D=_.C(F);F=D.next().value;return(D=D.next().value)?D.send("picker-message-handler",B,void 0,_.Yf("makeWhiteListIframesFilter",F)([G.origin_])):_.U_(Error("$a"))})};
Cis.prototype.disposeInternal=function(){mYG(this);_.uz.prototype.disposeInternal.call(this)};
var mYG=function(G){G.gapiPickerIframeResolver_.promise.then(function(B){B&&(B.unregister("host-message-handler"),delete G.hostMessageHandlerInternal_["host-message-handler"])})};var Xza=function(){this.nextId=0};var jss=function(G,B){switch(G.action){case "select-contacts":G=Qst(G.contacts);break;case "visibility":G=G.visible;var F=new gZ;G=_.LX(F,1,7).setVisible(G);F={};F["iframe-command"]=G.serialize();G=F;break;default:G=null}return G?aHN(B,G):_.ZL()},Qst=function(G){if(!G||G.length==0)return null;
var B=new gZ;_.LX(B,1,11);var F=new Xza;G.forEach(function(D){if(D.email){var u=new nX;u=_.v0(u,2,D.name?D.name:D.email);var R=new zWq;D=_.PGl(R,1,_.WS,D.email,_.eQ);D=_.ba(u,27,D);u=new On7;R=":"+(F.nextId++).toString(36);u=_.v0(u,1,R);u=_.LX(u,2,12);D=_.ba(D,1,u)}else D=null;D&&NI(B,7,nX,D)});
G={};G["iframe-command"]=B.serialize();return G};_.L5t=function(){if(EDP){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(_.Qo()))?G[1]:"0"}return _.qA7?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(_.Qo()))?G[0].replace(/_/g,"."):"10"):c9J?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(_.Qo()))?G[1]:""):KUq||aZy||mHq?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(_.Qo()))?G[1].replace(/_/g,"."):""):""}();var aV;aV=function(G){return(G=G.exec(_.Qo()))?G[1]:""};
_.rUy=function(){if(_.xw)return aV(/Firefox\/([0-9.]+)/);if(_.ST||cQ||nDP)return HNs;if(_.PP){if(_.zs()||_.HQS()){var G=aV(/CriOS\/([0-9.]+)/);if(G)return G}return aV(/Chrome\/([0-9.]+)/)}if(_.Of&&!_.zs())return aV(/Version\/([0-9.]+)/);if(WDI||HJ6){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Qo()))return G[1]+"."+G[2]}else if(zB7)return(G=aV(/Android\s+([0-9.]+)/))?G:aV(/Version\/([0-9.]+)/);return""}();_.cP(APM);APM.prototype.nextId_=0;_.mw=function(G){return":"+(G.nextId_++).toString(36)};var Or=function(G){_.W1.call(this);this.JSC$10452_dom_=G||Ri();this.JSC$10452_id_=null;this.inDocument_=!1;this.JSC$10452_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.IC(Or,_.W1);Or.prototype.idGenerator_=APM.getInstance();Or.prototype.getId=function(){return this.JSC$10452_id_||(this.JSC$10452_id_=_.mw(this.idGenerator_))};
Or.prototype.getElement=function(){return this.JSC$10452_element_};
var X8=function(G){G.googUiComponentHandler_||(G.googUiComponentHandler_=new _.Cn(G));return G.googUiComponentHandler_},W5q=function(G,B){if(G==B)throw Error("ab");
var F;if(F=B&&G.parent_&&G.JSC$10452_id_){F=G.parent_;var D=G.JSC$10452_id_;F=F.childIndex_&&D?_.UK.get(F.childIndex_,D)||null:null}if(F&&G.parent_!=B)throw Error("ab");G.parent_=B;Or.superClass_.setParentEventTarget.call(G,B)};
Or.prototype.setParentEventTarget=function(G){if(this.parent_&&this.parent_!=G)throw Error("bb");Or.superClass_.setParentEventTarget.call(this,G)};
Or.prototype.JSC$10454_createDom=function(){this.JSC$10452_element_=this.JSC$10452_dom_.createElement("DIV")};
Or.prototype.render=function(G){HrP(this,G)};
var HrP=function(G,B,F){if(G.inDocument_)throw Error("cb");G.JSC$10452_element_||G.JSC$10454_createDom();B?B.insertBefore(G.JSC$10452_element_,F||null):G.JSC$10452_dom_.JSC$9636_document_.body.appendChild(G.JSC$10452_element_);G.parent_&&!G.parent_.inDocument_||G.enterDocument()};
_.w=Or.prototype;_.w.decorate=function(G){if(this.inDocument_)throw Error("cb");if(G&&this.canDecorate(G)){this.wasDecorated_=!0;var B=_.KT(G);this.JSC$10452_dom_&&this.JSC$10452_dom_.JSC$9636_document_==B||(this.JSC$10452_dom_=Ri(G));this.decorateInternal(G);this.enterDocument()}else throw Error("db");};
_.w.canDecorate=function(){return!0};
_.w.decorateInternal=function(G){this.JSC$10452_element_=G};
_.w.enterDocument=function(){this.inDocument_=!0;kNP(this,function(G){!G.inDocument_&&G.getElement()&&G.enterDocument()})};
_.w.exitDocument=function(){kNP(this,function(G){G.inDocument_&&G.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.w.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);kNP(this,function(G){G.dispose()});
!this.wasDecorated_&&this.JSC$10452_element_&&_.B1(this.JSC$10452_element_);this.parent_=this.model_=this.JSC$10452_element_=this.childIndex_=this.children_=null;Or.superClass_.disposeInternal.call(this)};
_.w.getModel=function(){return this.model_};
_.w.addChild=function(G,B){var F=this.children_?this.children_.length:0;if(G.inDocument_&&(B||!this.inDocument_))throw Error("cb");if(F<0||F>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);G.parent_==this?(_.UK.set(this.childIndex_,G.getId(),G),_.dU(this.children_,G)):_.UK.add(this.childIndex_,G.getId(),G);W5q(G,this);_.V8g(this.children_,F,0,G);G.inDocument_&&this.inDocument_&&G.parent_==this?(B=this.getContentElement(),
(B.childNodes[F]||null)!=G.getElement()&&(G.getElement().parentElement==B&&B.removeChild(G.getElement()),F=B.childNodes[F]||null,B.insertBefore(G.getElement(),F))):B?(this.JSC$10452_element_||this.JSC$10454_createDom(),F=this.children_?this.children_[F+1]||null:null,HrP(G,this.getContentElement(),F?F.JSC$10452_element_:null)):this.inDocument_&&!G.inDocument_&&G.JSC$10452_element_&&G.JSC$10452_element_.parentNode&&G.JSC$10452_element_.parentNode.nodeType==1&&G.enterDocument()};
_.w.getContentElement=function(){return this.JSC$10452_element_};
var kNP=function(G,B){G.children_&&G.children_.forEach(B,void 0)};
Or.prototype.removeChild=function(G,B){if(G){var F=typeof G==="string"?G:G.getId();G=this.childIndex_&&F?_.UK.get(this.childIndex_,F)||null:null;F&&G&&(_.UK.remove(this.childIndex_,F),_.dU(this.children_,G),B&&(G.exitDocument(),G.JSC$10452_element_&&_.B1(G.JSC$10452_element_)),W5q(G,null))}if(!G)throw Error("fb");return G};_.IC(dSQ,Yfg);_.IC(JPJ,Yfg);var Tog;_.UK.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Ory;_.QV=function(G,B,F){_.W1.call(this);this.target=G;this.handle=B||G;this.limits=F||new bM(NaN,NaN,NaN,NaN);this.JSC$10457_document_=_.KT(G);this.JSC$10457_eventHandler_=new _.Cn(this);_.gq(this,this.JSC$10457_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;_.H1(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Ory};
_.IC(_.QV,_.W1);Ory=_.Fz.document&&_.Fz.document.documentElement&&!!_.Fz.document.documentElement.setCapture&&!!_.Fz.document.releaseCapture;_.e2y=function(G,B){G.hysteresisDistanceSquared_=Math.pow(B,2)};
_.w=_.QV.prototype;_.w.setEnabled=function(G){this.enabled_=G};
_.w.disposeInternal=function(){_.QV.superClass_.disposeInternal.call(this);_.qX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10457_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10457_document_.releaseCapture();this.handle=this.target=null};
_.w.startDrag=function(G){var B=G.type=="mousedown";if(!this.enabled_||this.dragging_||B&&(!G.isButton(0)||_.qA7&&G.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new jO("start",this,G.clientX,G.clientY,G)))this.dragging_=!0,B&&G.preventDefault();else return;else B&&G.preventDefault();B=this.JSC$10457_document_;var F=B.documentElement,D=!this.useSetCapture_;this.JSC$10457_eventHandler_.listen(B,["touchmove","mousemove"],this.handleMove_,
{capture:D,passive:!1});this.JSC$10457_eventHandler_.listen(B,["touchend","mouseup"],this.endDrag,D);this.useSetCapture_?(F.setCapture(!1),this.JSC$10457_eventHandler_.listen(F,"losecapture",this.endDrag)):this.JSC$10457_eventHandler_.listen(EK(B),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10457_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,D);this.clientX=this.startX=G.clientX;this.clientY=this.startY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=uB(Ri(this.JSC$10457_document_))}};
_.w.endDrag=function(G,B){this.JSC$10457_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10457_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new jO("end",this,G.clientX,G.clientY,G,$YP(this,this.deltaX),z2U(this,this.deltaY),B||G.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.w.handleMove_=function(G){if(this.enabled_){var B=G.clientX-this.clientX,F=G.clientY-this.clientY;this.clientX=G.clientX;this.clientY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;if(!this.dragging_){var D=this.startX-this.clientX,u=this.startY-this.clientY;if(D*D+u*u>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new jO("start",this,G.clientX,G.clientY,G)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(G);return}}F=brU(this,B,F);B=F.x;F=F.y;this.dragging_&&this.dispatchEvent(new jO("beforedrag",
this,G.clientX,G.clientY,G,B,F))&&(V_v(this,G,B,F),G.preventDefault())}};
var brU=function(G,B,F){var D=uB(Ri(G.JSC$10457_document_));B+=D.x-G.pageScroll.x;F+=D.y-G.pageScroll.y;G.pageScroll=D;G.deltaX+=B;G.deltaY+=F;return new _.e5($YP(G,G.deltaX),z2U(G,G.deltaY))};
_.QV.prototype.onScroll_=function(G){var B=brU(this,0,0);G.clientX=this.clientX;G.clientY=this.clientY;V_v(this,G,B.x,B.y)};
var V_v=function(G,B,F,D){G.target.style.left=F+"px";G.target.style.top=D+"px";G.dispatchEvent(new jO("drag",G,B.clientX,B.clientY,B,F,D))},$YP=function(G,B){var F=G.limits;
G=isNaN(F.left)?null:F.left;F=isNaN(F.width)?0:F.width;return Math.min(G!=null?G+F:Infinity,Math.max(G!=null?G:-Infinity,B))},z2U=function(G,B){var F=G.limits;
G=isNaN(F.top)?null:F.top;F=isNaN(F.height)?0:F.height;return Math.min(G!=null?G+F:Infinity,Math.max(G!=null?G:-Infinity,B))};
_.QV.prototype.isDragging=function(){return this.dragging_};
var jO=function(G,B,F,D,u,R,N){_.T_.call(this,G);this.clientX=F;this.clientY=D;this.browserEvent=u;this.left=R!==void 0?R:B.deltaX;this.top=N!==void 0?N:B.deltaY};
_.IC(jO,_.T_);var LB=function(G){this.JSC$10464_map_=new Map;var B=arguments.length;if(B>1){if(B%2)throw Error("na");for(var F=0;F<B;F+=2)this.set(arguments[F],arguments[F+1])}else G&&this.addAll(G)};
_.w=LB.prototype;_.w.getCount=function(){return this.JSC$10464_map_.size};
_.w.getValues=function(){return Array.from(this.JSC$10464_map_.values())};
_.w.getKeys=function(){return Array.from(this.JSC$10464_map_.keys())};
_.w.containsKey=function(G){return this.JSC$10464_map_.has(G)};
_.w.containsValue=function(G){return this.getValues().some(function(B){return B==G})};
_.w.equals=function(G,B){var F=this;B=B===void 0?function(D,u){return D===u}:B;
return this===G?!0:this.JSC$10464_map_.size!=G.getCount()?!1:this.getKeys().every(function(D){return B(F.JSC$10464_map_.get(D),G.get(D))})};
_.w.isEmpty=function(){return this.JSC$10464_map_.size==0};
_.w.clear=function(){this.JSC$10464_map_.clear()};
_.w.remove=function(G){return this.JSC$10464_map_.delete(G)};
_.w.get=function(G,B){return this.JSC$10464_map_.has(G)?this.JSC$10464_map_.get(G):B};
_.w.set=function(G,B){this.JSC$10464_map_.set(G,B);return this};
_.w.addAll=function(G){if(G instanceof LB){G=_.C(G.JSC$10464_map_);for(var B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;F=F.next().value;this.JSC$10464_map_.set(B,F)}}else if(G)for(G=_.C(Object.entries(G)),B=G.next();!B.done;B=G.next())F=_.C(B.value),B=F.next().value,F=F.next().value,this.JSC$10464_map_.set(B,F)};
_.w.forEach=function(G,B){var F=this;B=B===void 0?this:B;this.JSC$10464_map_.forEach(function(D,u){return G.call(B,D,u,F)})};
_.w.clone=function(){return new LB(this)};(function(){for(var G=["ms","moz","webkit","o"],B,F=0;B=G[F]&&!_.Fz.requestAnimationFrame;++F)_.Fz.requestAnimationFrame=_.Fz[B+"RequestAnimationFrame"],_.Fz.cancelAnimationFrame=_.Fz[B+"CancelAnimationFrame"]||_.Fz[B+"CancelRequestAnimationFrame"];if(!_.Fz.requestAnimationFrame){var D=0;_.Fz.requestAnimationFrame=function(u){var R=(new Date).getTime(),N=Math.max(0,16-(R-D));D=R+N;return _.Fz.setTimeout(function(){u(R+N)},N)};
_.Fz.cancelAnimationFrame||(_.Fz.cancelAnimationFrame=function(u){clearTimeout(u)})}})();
var flo=[[],[]],tEl=0,Z8c=!1,Ilo=0;var vQq=_.vP(["about:blank"]),oQv=_.vP(["javascript:undefined"]),M_G=_.W7(vQq);_.YS(M_G);var pza=_.W7(oQv);_.YS(pza);_.IC(k3,_.W1);k3.prototype.handleEvent=function(G){var B=new _.nG(G.event_);B.type=G.type=="focusin"||G.type=="focus"?"focusin":"focusout";this.dispatchEvent(B)};
k3.prototype.disposeInternal=function(){k3.superClass_.disposeInternal.call(this);Nh(this.listenKeyIn_);Nh(this.listenKeyOut_);delete this.JSC$10470_element_};_.IC(eV,Or);_.w=eV.prototype;_.w.focusHandler_=null;_.w.visible_=!1;_.w.bgEl_=null;_.w.bgIframeEl_=null;_.w.tabCatcherElement_=null;_.w.backwardTabWrapInProgress_=!1;_.w.getCssClass=function(){return"goog-modalpopup"};
_.w.getBackgroundElement=function(){return this.bgEl_};
_.w.JSC$10454_createDom=function(){eV.superClass_.JSC$10454_createDom.call(this);var G=this.getElement(),B=ES(this.getCssClass()).split(" ");MX(G,B);G.tabIndex=0;_.dd(G,!1);Y1N(this);AUv(this)};
var Y1N=function(G){if(G.useIframeMask_&&!G.bgIframeEl_){var B=G.JSC$10452_dom_.JSC$9638_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.u5(B,M_G);G.bgIframeEl_=B;G.bgIframeEl_.className=G.getCssClass()+"-bg";_.dd(G.bgIframeEl_,!1);Ndt(G.bgIframeEl_,0)}G.bgEl_||(G.bgEl_=G.JSC$10452_dom_.JSC$9638_createDom("DIV",G.getCssClass()+"-bg"),_.dd(G.bgEl_,!1))},AUv=function(G){G.tabCatcherElement_||(G.tabCatcherElement_=G.JSC$10452_dom_.createElement("SPAN"),_.dd(G.tabCatcherElement_,
!1),G.tabCatcherElement_.tabIndex=0,G.tabCatcherElement_.style.position="absolute")};
_.w=eV.prototype;_.w.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.w.canDecorate=function(G){return!!G&&G.tagName=="DIV"};
_.w.decorateInternal=function(G){eV.superClass_.decorateInternal.call(this,G);G=ES(this.getCssClass()).split(" ");MX(this.getElement(),G);Y1N(this);AUv(this);this.getElement().tabIndex=0;_.dd(this.getElement(),!1)};
_.w.enterDocument=function(){this.bgIframeEl_&&_.Wb(this.bgIframeEl_,this.getElement());_.Wb(this.bgEl_,this.getElement());eV.superClass_.enterDocument.call(this);_.Hb(this.tabCatcherElement_,this.getElement());this.focusHandler_=new k3(this.JSC$10452_dom_.JSC$9636_document_);X8(this).listen(this.focusHandler_,"focusin",this.onFocus);dYU(this,!1)};
_.w.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ve(this.focusHandler_);eV.superClass_.exitDocument.call(this);_.B1(this.bgIframeEl_);_.B1(this.bgEl_);_.B1(this.tabCatcherElement_)};
_.w.setVisible=function(G){if(G!=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_&&dYU(this,G),G){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10452_dom_.JSC$9636_document_.activeElement}catch(u){}this.updateModalAndBackground_();X8(this).listen(this.JSC$10452_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10452_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);JUU(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)h7(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){X8(this).unlisten(this.JSC$10452_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10452_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)h7(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var B=this.JSC$10452_dom_,F=B.JSC$9636_document_.body,D=B.JSC$9636_document_.activeElement||F;if(!this.lastFocus_||this.lastFocus_==F){this.lastFocus_=null;break a}(D==F||B.contains(this.getElement(),D))&&this.lastFocus_.focus()}catch(u){}this.lastFocus_=
null}}};
var dYU=function(G,B){G.modalAriaVisibilityHelper_||(G.modalAriaVisibilityHelper_=new sY8(G.JSC$10452_element_,G.JSC$10452_dom_));G=G.modalAriaVisibilityHelper_;if(B){G.hiddenElements_||(G.hiddenElements_=[]);B=G.JSC$10473_dom_.getChildren(G.JSC$10473_dom_.JSC$9636_document_.body);for(var F=0;F<B.length;F++){var D=B[F],u;if(u=D!=G.JSC$10473_element_)u=D.getAttribute("aria-hidden"),u=!(u==null||u==void 0?0:String(u));u&&(rd(D,"hidden",!0),G.hiddenElements_.push(D))}}else if(G.hiddenElements_){for(B=
0;B<G.hiddenElements_.length;B++)G.hiddenElements_[B].removeAttribute("aria-hidden");G.hiddenElements_=null}};
eV.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var JUU=function(G,B){G.bgIframeEl_&&_.dd(G.bgIframeEl_,B);G.bgEl_&&_.dd(G.bgEl_,B);_.dd(G.getElement(),B);_.dd(G.tabCatcherElement_,B)};
_.w=eV.prototype;_.w.onShow=function(){this.dispatchEvent("show")};
_.w.onHide=function(){JUU(this,!1);this.dispatchEvent("hide")};
_.w.isVisible=function(){return this.visible_};
_.w.focus=function(){this.focusElement_()};
_.w.resizeBackground_=function(){this.bgIframeEl_&&_.dd(this.bgIframeEl_,!1);this.bgEl_&&_.dd(this.bgEl_,!1);var G=this.JSC$10452_dom_.JSC$9636_document_;var B=_.DR(EK(this.JSC$10452_dom_.JSC$9636_document_)||window);var F=Math.max(B.width,Math.max(G.body.scrollWidth,G.documentElement.scrollWidth));G=Math.max(B.height,Math.max(G.body.scrollHeight,G.documentElement.scrollHeight));this.bgIframeEl_&&(_.dd(this.bgIframeEl_,!0),_.ubT(this.bgIframeEl_,F,G));this.bgEl_&&(_.dd(this.bgEl_,!0),_.ubT(this.bgEl_,
F,G))};
_.w.reposition=function(){var G;if(_.DNq(this.getElement())=="fixed")var B=G=0;else B=uB(this.JSC$10452_dom_),G=B.x,B=B.y;var F=w1t(this.getElement());var D=_.DR(EK(this.JSC$10452_dom_.JSC$9636_document_)||window);G=Math.max(G+D.width/2-F.width/2,0);B=Math.max(B+D.height/2-F.height/2,0);z6(this.getElement(),G,B);z6(this.tabCatcherElement_,G,B)};
_.w.onFocus=function(G){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():G.target==this.tabCatcherElement_&&mK(this.focusElement_,0,this)};
_.w.focusElement_=function(){try{this.getElement().focus()}catch(G){}};
_.w.disposeInternal=function(){_.ve(this.popupShowTransition_);this.popupShowTransition_=null;_.ve(this.popupHideTransition_);this.popupHideTransition_=null;_.ve(this.bgShowTransition_);this.bgShowTransition_=null;_.ve(this.bgHideTransition_);this.bgHideTransition_=null;eV.superClass_.disposeInternal.call(this)};_.IC(z_,eV);_.w=z_.prototype;_.w.escapeToCancel_=!0;_.w.hasTitleCloseButton_=!0;_.w.modal_=!0;_.w.draggable_=!0;_.w.backgroundElementOpacity_=.5;_.w.title_="";_.w.JSC$10485_dragger_=null;_.w.JSC$10485_disposeOnHide_=!1;_.w.titleEl_=null;_.w.titleTextEl_=null;_.w.titleTextId_=null;_.w.titleCloseEl_=null;_.w.contentEl_=null;_.w.buttonEl_=null;_.w.getCssClass=function(){return this.JSC$10483_class_};
_.w.setTitle=function(G){this.title_=G;this.titleTextEl_&&_.Ol(this.titleTextEl_,G)};
_.w.getTitle=function(){return this.title_};
_.w.getContent=function(){return""};
_.w.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var cUL=function(G){G.getElement()||G.render();return G.getElement()};
z_.prototype.getBackgroundElement=function(){this.getElement()||this.render();return z_.superClass_.getBackgroundElement.call(this)};
var T0N=function(G,B){G.backgroundElementOpacity_=B;G.getElement()&&(B=G.getBackgroundElement())&&Ndt(B,G.backgroundElementOpacity_)};
z_.prototype.setDraggable=function(G){this.draggable_=G;IHT(this,G&&this.inDocument_)};
z_.prototype.handleDrag=function(){};
var IHT=function(G,B){var F=ES(G.JSC$10483_class_+"-title-draggable").split(" ");G.getElement()&&(B?MX(G.titleEl_,F):po8(G.titleEl_,F));B&&!G.JSC$10485_dragger_?(B=new _.QV(G.getElement(),G.titleEl_),G.JSC$10485_dragger_=B,MX(G.titleEl_,F),_.H1(G.JSC$10485_dragger_,"start",G.setDraggerLimits_,!1,G),_.H1(G.JSC$10485_dragger_,"drag",G.handleDrag,!1,G)):!B&&G.JSC$10485_dragger_&&(G.JSC$10485_dragger_.dispose(),G.JSC$10485_dragger_=null)};
_.w=z_.prototype;
_.w.JSC$10454_createDom=function(){z_.superClass_.JSC$10454_createDom.call(this);var G=this.getElement(),B=this.JSC$10452_dom_;this.titleTextId_=this.getId();var F=this.getId()+".contentEl";this.titleEl_=B.JSC$9638_createDom("DIV",this.JSC$10483_class_+"-title",this.titleTextEl_=B.JSC$9638_createDom("SPAN",{className:this.JSC$10483_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=B.JSC$9638_createDom("SPAN",this.JSC$10483_class_+"-title-close"));AMy(G,this.titleEl_,this.contentEl_=
B.JSC$9638_createDom("DIV",{className:this.JSC$10483_class_+"-content",id:F}),this.buttonEl_=B.JSC$9638_createDom("DIV",this.JSC$10483_class_+"-buttons"));cPs(this.titleTextEl_,"heading");cPs(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;rd(this.titleCloseEl_,"label","Close");cPs(G,"dialog");rd(G,"labelledby",this.titleTextId_||"");_.dd(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(G=this.buttons_,G.JSC$10486_element_=this.buttonEl_,G.render());_.dd(this.buttonEl_,!!this.buttons_);
T0N(this,this.backgroundElementOpacity_)};
_.w.decorateInternal=function(G){z_.superClass_.decorateInternal.call(this,G);G=this.getElement();var B=this.JSC$10483_class_+"-content";this.contentEl_=mY(document,null,B,G)[0];this.contentEl_||(this.contentEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",B),G.appendChild(this.contentEl_));B=this.JSC$10483_class_+"-title";var F=this.JSC$10483_class_+"-title-text",D=this.JSC$10483_class_+"-title-close";(this.titleEl_=mY(document,null,B,G)[0])?(this.titleTextEl_=mY(document,null,F,this.titleEl_)[0],
this.titleCloseEl_=mY(document,null,D,this.titleEl_)[0]):(this.titleEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",B),G.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=PBt(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Qy("SPAN",{className:F,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;rd(G,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10452_dom_.JSC$9638_createDom("SPAN",D),this.titleEl_.appendChild(this.titleCloseEl_));_.dd(this.titleCloseEl_,this.hasTitleCloseButton_);B=this.JSC$10483_class_+"-buttons";(this.buttonEl_=mY(document,null,B,G)[0])?(this.buttons_=new $3(this.JSC$10452_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",B),G.appendChild(this.buttonEl_),this.buttons_&&(G=this.buttons_,G.JSC$10486_element_=this.buttonEl_,G.render()),_.dd(this.buttonEl_,
!!this.buttons_));T0N(this,this.backgroundElementOpacity_)};
_.w.enterDocument=function(){z_.superClass_.enterDocument.call(this);X8(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);X8(this).listen(this.buttonEl_,"click",this.onButtonClick_);IHT(this,this.draggable_);X8(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var G=this.getElement();cPs(G,"dialog");this.titleTextEl_.id!==""&&rd(G,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){G=this.JSC$10452_dom_;
var B=this.getBackgroundElement();G.removeNode(this.bgIframeEl_);G.removeNode(B)}this.isVisible()&&dYU(this,!1)}};
_.w.exitDocument=function(){this.isVisible()&&this.setVisible(!1);IHT(this,!1);z_.superClass_.exitDocument.call(this)};
_.w.setVisible=function(G){G!=this.isVisible()&&(this.inDocument_||this.render(),z_.superClass_.setVisible.call(this,G))};
_.w.onShow=function(){z_.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.w.onHide=function(){z_.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10485_disposeOnHide_&&this.dispose()};
_.w.setDraggerLimits_=function(){var G=this.JSC$10452_dom_.JSC$9636_document_,B=_.DR(EK(G)||window),F=Math.max(G.body.scrollWidth,B.width);G=Math.max(G.body.scrollHeight,B.height);var D=w1t(this.getElement());_.DNq(this.getElement())=="fixed"?this.JSC$10485_dragger_.limits=new bM(0,0,Math.max(0,B.width-D.width),Math.max(0,B.height-D.height)):this.JSC$10485_dragger_.limits=new bM(0,0,F-D.width,G-D.height)};
_.w.onTitleCloseClick_=function(){fHL(this)};
var fHL=function(G){if(G.hasTitleCloseButton_){var B=G.buttons_,F=B&&B.cancelButton_;F?(B=B.get(F),G.dispatchEvent(new rP(F,B))&&G.setVisible(!1)):G.setVisible(!1)}},t_a=function(G){G.hasTitleCloseButton_=!1;
G.titleCloseEl_&&_.dd(G.titleCloseEl_,G.hasTitleCloseButton_)};
z_.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;z_.superClass_.disposeInternal.call(this)};
z_.prototype.onButtonClick_=function(G){a:{for(G=G.target;G!=null&&G!=this.buttonEl_;){if(G.tagName=="BUTTON")break a;G=G.parentNode}G=null}if(G&&!G.disabled){G=G.name;var B=this.buttons_.get(G);this.dispatchEvent(new rP(G,B))&&this.setVisible(!1)}};
z_.prototype.onKey_=function(G){var B=!1,F=!1,D=this.buttons_,u=G.target;if(G.type=="keydown")if(this.escapeToCancel_&&G.keyCode==27){var R=D&&D.cancelButton_;u=u.tagName=="SELECT"&&!u.disabled;R&&!u?(F=!0,B=D.get(R),B=this.dispatchEvent(new rP(R,B))):u||(B=!0)}else{if(G.keyCode==9&&G.shiftKey&&u==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(h){}mK(this.resetBackwardTabWrap_,0,this)}}else if(G.keyCode==13){if(u.tagName=="BUTTON"&&!u.disabled)R=u.name;
else if(u==this.titleCloseEl_)fHL(this);else if(D){var N=D.defaultButton_,y;if(y=N)a:{y=iz("BUTTON",D.JSC$10486_element_);for(var U,q=0;U=y[q];q++)if(U.name==N||U.id==N){y=U;break a}y=null}u=(u.tagName=="TEXTAREA"||u.tagName=="SELECT"||u.tagName=="A")&&!u.disabled;!y||y.disabled||u||(R=N)}R&&D&&(F=!0,B=this.dispatchEvent(new rP(R,String(D.get(R)))))}else u!=this.titleCloseEl_||G.keyCode!=32&&G.key!=" "||fHL(this);if(B||F)G.stopPropagation(),G.preventDefault();B&&this.setVisible(!1)};
var rP=function(G,B){this.type="dialogselect";this.key=G;this.caption=B};
_.IC(rP,_.T_);var $3=function(G){LB.call(this);G||Ri();this.cancelButton_=this.JSC$10486_element_=this.defaultButton_=null};
_.IC($3,LB);_.w=$3.prototype;_.w.clear=function(){LB.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.w.set=function(G,B,F,D){LB.prototype.set.call(this,G,B);F&&(this.defaultButton_=G);D&&(this.cancelButton_=G);return this};
_.w.addButton=function(G,B,F){return this.set(G.key,G.caption,B,F)};
_.w.render=function(){if(this.JSC$10486_element_){_.qm(this.JSC$10486_element_,l8Q);var G=Ri(this.JSC$10486_element_);this.forEach(function(B,F){B=G.JSC$9638_createDom("BUTTON",{name:F},B);F==this.defaultButton_&&(B.className="goog-buttonset-default");this.JSC$10486_element_.appendChild(B)},this)}};
_.w.decorate=function(G){if(G&&G.nodeType==1){this.JSC$10486_element_=G;G=iz("BUTTON",this.JSC$10486_element_);for(var B,F,D,u=0;B=G[u];u++)if(F=B.name||B.id,D=PBt(B)||B.value,F){var R=u==0;this.set(F,D,R,B.name=="cancel");R&&_.b4(B,"goog-buttonset-default")}}};
_.w.getElement=function(){return this.JSC$10486_element_};
var xS8={key:"ok",caption:"OK"},PXS={key:"cancel",caption:"Cancel"},Zrt={key:"yes",caption:"Yes"},gQG={key:"no",caption:"No"},S1U={key:"save",caption:"Save"},ssq={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new $3).addButton(xS8,!0,!0),(new $3).addButton(xS8,!0).addButton(PXS,!1,!0),(new $3).addButton(Zrt,!0).addButton(gQG,!1,!0),(new $3).addButton(Zrt).addButton(gQG,!0).addButton(PXS,!1,!0),(new $3).addButton(ssq).addButton(S1U).addButton(PXS,!0,!0));_.IC(GDs,z_);_.IC(BgU,bz);var xYL=_.vP(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),PhP=_.vP(["//apis.google.com/js/rpc.js"]),nrI=_.W7(xYL),yoQ=_.W7(PhP),FOQ=null;var VA=function(G,B){_.W1.call(this);this.JSC$10495_element_=G;G=_.Zn(this.JSC$10495_element_)?this.JSC$10495_element_:this.JSC$10495_element_?this.JSC$10495_element_.body:null;this.isRtl_=!!G&&_.y7T(G);this.listenKey_=_.H1(this.JSC$10495_element_,_.ih?"DOMMouseScroll":"mousewheel",this,B)};
_.IC(VA,_.W1);VA.prototype.handleEvent=function(G){var B=0,F=0,D=G.event_;D.type=="mousewheel"?(G=G1t(-D.wheelDelta),D.wheelDeltaX!==void 0?(B=G1t(-D.wheelDeltaX),F=G1t(-D.wheelDeltaY)):F=G):(G=D.detail,G>100?G=3:G<-100&&(G=-3),D.axis!==void 0&&D.axis===D.HORIZONTAL_AXIS?B=G:F=G);typeof this.maxDeltaX_==="number"&&(B=_.ki(B,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(F=_.ki(F,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(B=-B);B=new Bs7(G,D,B,F);this.dispatchEvent(B)};
var G1t=function(G){return _.Bz&&(_.qA7||hBt)&&G%40!=0?G:G/40};
VA.prototype.disposeInternal=function(){VA.superClass_.disposeInternal.call(this);Nh(this.listenKey_);this.listenKey_=null};
var Bs7=function(G,B,F,D){_.nG.call(this,B);this.type="mousewheel";this.detail=G;this.deltaX=F;this.deltaY=D};
_.IC(Bs7,_.nG);_.IG=function(G){var B="instance_";if(G.instance_&&G.hasOwnProperty(B))return G.instance_;B=new G;return G.instance_=B};var NgS;var iiy=_.vP(["https://about:blank"]),FVN=_.vP(['javascript:""']),DWL=_.vP(["about:blank"]);_.IC(J7,GDs);_.w=J7.prototype;_.w.JSC$10503_url_="";_.w.JSC$10503_iframe_=null;_.w.iframeLoaded_=!1;_.w.loadedFired_=!1;_.w.callback_=function(){};
_.w.enterDocument=function(){J7.superClass_.enterDocument.call(this);RZz(this.getBackgroundElement(),X8(this))};
_.w.render=function(G){var B=this;J7.superClass_.render.call(this,G);this.useGapi_?h2t(this.iframeManager_,window).then(function(){return uKT(B)}).then(null,function(){B.callback_({action:"error"})}):R7N(this);
this.JSC$10501_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),cUL(this).setAttribute("popover","manual"))};
var uKT=function(G){var B=G.JSC$10452_dom_.JSC$9638_createDom("div",["picker-dialog-content","picker-frame"]);_.dd(B,!1);G.getContentElement().appendChild(B);return K5N(G.iframeManager_,B,function(F){var D=TdP(F["iframe-command"]);switch(D.getCommand()){case 1:F=G.callback_;D=_.sf(D,ZX,2);var u="";switch(D.getStatus()){case 2:u="cancel";break;case 1:u="picked";break;case 3:u="error"}var R=_.pT(D,nX,2,_.Yk(pSt));D=R.length===0?{action:u}:spN(R,u,_.sf(D,dNa,7));F.call(G,D);G.setVisible(!1);break;case 4:t_a(G);
G.callback_({action:"loaded"});break;case 7:case 8:F=G.callback_;a:{u=D.getCommand();R=_.sf(D,ZX,2);switch(u){case 7:u="uploadScheduled";break;case 8:u="uploadStateChange";break;default:D={};break a}D=_.pT(R,nX,2,_.Yk(pSt));if(D.length===0)D={action:u};else{var N=_.sf(R,dNa,7);R=N&&_.KX(N,1);N=AAt(N);D=cAN(D,u,R,N)}}F.call(G,D)}},G.JSC$10503_url_,G.targetId_,G.rpcToken_).then(function(F){G.JSC$10503_iframe_=F.getIframeEl();
wZq(G);_.dd(G.JSC$10503_iframe_.parentElement,!0);_.b4(G.getElement(),"picker-dialog");C2q(G);return F})},R7N=function(G){G.JSC$10503_iframe_=G.JSC$10452_dom_.JSC$9638_createDom("IFRAME",{id:G.targetId_,
name:G.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.u5(G.JSC$10503_iframe_,NsL(G));_.b4(G.getElement(),"picker-dialog");G.getContentElement().appendChild(G.JSC$10503_iframe_);X8(G).listen(G.JSC$10503_iframe_,"load",function(){return void wZq(G)});
G.JSC$10503_iframe_.src=G.JSC$10503_url_;C2q(G)},nyG=function(G){yLq(G,(0,_.R_)(function(B){B.setAuthToken(this.targetId_,this.rpcToken_)},G))},C2q=function(G){var B=_.Y3(_.pn(G.JSC$10503_url_),"title");
B&&G.setTitle(B)},NsL=function(G){return _.LgS("Internet Explorer")>=7&&_.wU(G.JSC$10503_url_,"https")?_.W7(iiy):_.ST?_.W7(FVN):_.W7(DWL)},wZq=function(G){nyG(G);
G.iframeLoaded_=!0;G.JSC$10503_iframe_.tabIndex=0;G.isVisible()&&G.focus()};
J7.prototype.handleKeydown_=function(G){G.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),G.stopPropagation(),G.preventDefault())};
var yLq=function(G,B){var F=G.JSC$10501_gadgetsDomHelper_;Dzc(function(){B(F.getWindow().gadgets.rpc)},F)};
J7.prototype.setUrl=function(G){G=_.A7(new _.ea(G),"rpcService",this.targetId_);_.A7(G,"rpctoken",this.rpcToken_);_.fG(G,"rpctoken="+this.rpcToken_);_.d2(G,"https");this.JSC$10503_url_=G.toString();this.JSC$10503_iframe_&&(this.JSC$10503_iframe_.src=this.JSC$10503_url_)};
var lLa=function(G,B){G.callback_=B;yLq(G,(0,_.R_)(function(F){F.register(this.targetId_,(0,_.R_)(this.handlePickerAction_,this))},G))};
J7.prototype.handlePickerAction_=function(G){var B=G.action;B=="loaded"&&(this.loadedFired_=!0,UWa(this,new JPJ(this.isVisible())),qw7(this),t_a(this),X8(this).unlisten(this.JSC$10452_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10503_iframe_.tabIndex=0);B!="picked"&&B!="cancel"||this.setVisible(!1);this.callback_(G)};
var qw7=function(G){G.JSC$10503_appId_&&UWa(G,new dSQ(G.JSC$10503_appId_,window.location.protocol+"//"+window.location.host))};
J7.prototype.setRelayUrl=function(G){yLq(this,(0,_.R_)(function(B){B.setRelayUrl(this.targetId_,G)},this))};
var UWa=function(G,B){G.useGapi_&&jss(B,G.iframeManager_).then(null,function(){G.callback_({action:"error"})});
yLq(G,(0,_.R_)(function(F){F.call(this.targetId_,"picker",null,B)},G))};
J7.prototype.resizePicker_=function(){var G=EK(this.JSC$10452_dom_.JSC$9636_document_)||window;if(_.Y3(_.pn(this.JSC$10503_url_),"ignoreLimits")=="true")G=new _.$i(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Y3(_.pn(this.JSC$10503_url_),"shadeDialog")=="true"){var B=cUL(this);B=n3v(B);var F=_.DR(G);G=F.width-80;F=F.height-40;B&&(G-=B.left?B.left:0,G-=B.right?B.right:0,F-=B.top?B.top:0,F-=B.bottom?B.bottom:0);G=new _.$i(G>0?G:0,F>0?F:0)}else(B=this.preferredDialogWidth_)?(B=Math.max(320,
Math.min(1051,B)),(F=this.preferredDialogHeight_)||(F=_.DR(G).height*.85),F=Math.max(480,Math.min(650,F))):(B=_.DR(G),F=B.width*.618,F=F<B.height?Math.round(Math.max(480,Math.min(650,F*.85))):Math.round(Math.max(480,Math.min(650,B.height*.85))),B=Math.round(F/.618)),G=_.DR(G),B=Math.min(B,Math.max(G.width,320)),F=Math.min(F,Math.max(G.height,480)),G=new _.$i(B,F);_.ubT(this.getContentElement(),G);this.reposition()};
J7.prototype.reposition=function(){if(_.Y3(_.pn(this.JSC$10503_url_),"shadeDialog")=="true"){var G=w1t(this.getElement()),B=_.DR(this.JSC$10452_dom_.getWindow());G=Math.floor(B.width/2-G.width/2);B=cUL(this);if(B=n3v(B)){var F=B.left?B.left:0;F+=B.right?B.right:0;G=Math.floor(G-F/2)}G=G>0?G:0;B=uB(this.JSC$10452_dom_).y;z6(this.getElement(),G,B)}else J7.superClass_.reposition.call(this)};
J7.prototype.setVisible=function(G){if(G!=this.isVisible()){if(this.autoSizeDialog_){var B=this.JSC$10452_dom_.getWindow();G?(this.resizePicker_(),X8(this).listen(B,"resize",this.resizePicker_),this.iframeLoaded_||X8(this).listen(B,"keydown",this.handleKeydown_)):(X8(this).unlisten(B,"resize",this.resizePicker_),this.iframeLoaded_||X8(this).unlisten(B,"keydown",this.handleKeydown_))}if(this.JSC$10501_enablePopover_){B=this.getBackgroundElement();var F=cUL(this);"showPopover"in F&&(G?(B.showPopover(),
F.showPopover()):(B.hidePopover(),F.hidePopover()))}}J7.superClass_.setVisible.call(this,G);UWa(this,new JPJ(G))};
J7.prototype.focus=function(){J7.superClass_.focus.call(this);if(this.JSC$10503_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10503_iframe_.focus()}catch(G){}};var Dk=function(G,B){B=B===void 0?J7:B;bz.call(this,G);this.pickerConstructor=B;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(G=window.location.origin)||(G=window.location.protocol+"//"+window.location.host);G&&this.urlParamMap_.set("origin",G);this.postProcessors_=[]};
_.r(Dk,BgU);Dk.prototype.JSC$10508_disposeOnHide_=!1;
Dk.prototype.build=function(){this.JSC$10409_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10409_appId_);this.getRelayUrl()||this.setRelayUrl(_.TE(_.fG(_.It(_.pn(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var G=new this.pickerConstructor(Eyv(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);G.JSC$10485_disposeOnHide_=this.JSC$10508_disposeOnHide_;
G.JSC$10503_appId_=this.JSC$10409_appId_;G.loadedFired_&&qw7(G);lLa(G,this.callback_);return G};
var h7v=function(G){G.urlParamMap_.set("multiselectEnabled","true");return G};
_.w=Dk.prototype;_.w.getHeight=function(){return this.dialogHeight_};
_.w.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.w.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.w.getTitle=function(){return this.urlParamMap_.get("title")};
_.w.getWidth=function(){return this.dialogWidth_};
var KVP=function(G){G.JSC$10508_disposeOnHide_=void 0;return G};
Dk.prototype.setRelayUrl=function(G){this.urlParamMap_.set("parent",G);return this};
var aLt=function(G,B){G.urlParamMap_.set("selectButtonLabel",B);return G};
Dk.prototype.setSize=function(G,B){this.dialogWidth_=G;this.dialogHeight_=B;return this};
Dk.prototype.setTitle=function(G){this.urlParamMap_.set("title",G);return this};
var Eyv=function(G){G.postProcessors_.length&&G.urlParamMap_.set("pp",JSON.stringify(G.postProcessors_));G.urlParamMap_.set("nav",oby(G.nav_));var B=new _.ea(G.getBaseUrl());G.urlParamMap_.forEach(function(F,D){_.A7(B,D,F)});
return B};_.IC(hZU,_.Gs);var qOL=function(G){var B=_.UK.findKey(Uzl,function(F){return G==F});
if(B===void 0)throw Error("jb`"+G);return B},Wf={},Uzl=(Wf.AbortError=3,Wf.EncodingError=5,Wf.InvalidModificationError=9,Wf.InvalidStateError=7,Wf.NotFoundError=1,Wf.NotReadableError=4,Wf.NoModificationAllowedError=6,Wf.PathExistsError=12,Wf.QuotaExceededError=10,Wf.SecurityError=2,Wf.SyntaxError=8,Wf.TypeMismatchError=11,Wf);_.IC(KO6,_.T_);var mWP=function(G,B,F){F===void 0&&(F=G.size);return G.slice?G.slice(B,F):null};var mzs=new WeakMap,a8M=function(G,B){G=[G];for(var F=B.length-1;F>=0;--F)G.push(typeof B[F],B[F]);return G.join("\v")};_.QBU(function(){if(!_.Fz.Blob)return!1;var G=new Uint8Array(100);try{var B=new Blob([G])}catch(F){return!1}return B.size!=100?!1:!0});
var XZy=_.QBU(function(){if(!_.Fz.Blob)return!1;var G=new Uint8Array(100);try{var B=new Blob([G])}catch(F){return!1}return mWP(B,0,1)===null?!1:!0});try{var Qay,jaq,LVa=(jaq=(Qay=window)==null?void 0:Qay.top)!=null?jaq:_.Fz;LVa.U3bHHf!=null||(LVa.U3bHHf=0);LVa.U3bHHf++}catch(G){_.Fz.U3bHHf!=null||(_.Fz.U3bHHf=0),_.Fz.U3bHHf++};var roU=new WeakMap;var LO8=new WeakMap;var kDL={};var gd=void 0;var eZQ=Symbol("rb");var I8o=x3("WizInjectionContext_ModelRootElement"),f8I=x3("WizInjectionContext_RendererData"),t6I=x3("WizInjectionContext_InjectingConstructor"),V6U=x3("WizInjectionContext_AppContext"),vrg=x3("WizInjectionContext_Dispatcher"),M68=x3("WizInjectionContext_RootElement"),Tgg=x3("WizInjectionContext_AsyncDeps");var PN=Symbol("sb");var UD=function(){this.afterRenderCallbacks=null},poL=Symbol("tb"),md=function(G){this.props=G;
this.__unmounted=!1};
md.prototype.didPatch=function(){};
md.prototype.didMount=function(){};
md.prototype.didUnmount=function(){};
md.prototype.didUpdate=function(){};var ZuQ={};var Pic=!1;var FXM={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:wSN,enableContextPerComponent:wSN,enableLazyTsx:CGL,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:RBL,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var GM=Object.assign({},{attributes:{},handleError:function(G){throw G;}},FXM);var rLG=Symbol("xb"),HN=Symbol("yb"),$0s=Symbol("zb"),OtL=Symbol("Ab"),pwI=p7(function(G){return BN(G)&&rLG in G});var n2S=Symbol("Bb"),Hf={},CZz=(Hf[n2S]=!0,Hf.debugName="[component]",Hf.getComponentStack=function(){for(var G=[],B=this;B;)lSg(B)&&G.push(B.debugName),B=B.parent;return G},Hf.registerSignal=function(){},Hf.registerEffect=function(){},Hf);var iC=null,uC=!1,wT=1,lC=Symbol("Fb"),a7={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var kE=Symbol("Gb"),O7=Symbol("Hb"),nE=Symbol("Ib"),LXU=Object.assign({},a7,{value:kE,dirty:!0,error:null,equal:qzz,kind:"computed",producerMustRecompute:function(G){return G.value===kE||G.value===O7},
producerRecomputeValue:function(G){if(G.value===O7)throw Error("$");var B=G.value;G.value=O7;var F=X$M(G),D=!1;try{var u=G.computation();Fe(null);D=B!==kE&&B!==nE&&u!==nE&&G.equal(B,u)}catch(R){u=nE,G.error=R}finally{Fe(F),G&&jug(G)}D?G.value=B:(G.value=u,G.version++)}});var WVw=Object.assign({},a7,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var kAU=function(){throw Error();};var eIQ=null,WXz=Object.assign({},a7,{equal:qzz,value:void 0,kind:"signal"});var $IJ=Object.assign({},a7,{value:kE,dirty:!0,error:null,equal:qzz,kind:"linkedSignal",producerMustRecompute:function(G){return G.value===kE||G.value===O7},
producerRecomputeValue:function(G){if(G.value===O7)throw Error("$");var B=G.value;G.value=O7;var F=X$M(G);try{var D=G.source();var u=G.computation(D,B===kE||B===nE?void 0:{source:G.sourceValue,value:B});G.sourceValue=D}catch(R){u=nE,G.error=R}finally{Fe(F),G&&jug(G)}B!==kE&&u!==nE&&G.equal(B,u)?G.value=B:(G.value=u,G.version++)}});Object.assign({},a7,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(G){G.schedule!==null&&G.schedule(G.ref)},
cleanupFn:function(){}});var v2I=Symbol("Jb"),E4=Symbol("Kb");var h0=Array.isArray;var nbl;var HiG={},U06=yAc(Object.assign({},{consumerAllowSignalWrites:!0},HiG)),ED=yAc(Object.assign({},{consumerAllowSignalWrites:!0},HiG));var j2=Symbol("Pb");var QI=null,KjL,aN6=null,m0J;var k0=0,O4=!1,eO=function(){this.queue=new Set};
eO.prototype.schedule=function(G){this.queue.add(G)};
eO.prototype.remove=function(G){this.queue.delete(G)};
eO.prototype.clear=function(){this.queue.clear()};
var rAs=Symbol("Qb"),jpg=Symbol("Rb"),$E=function(){eO.apply(this,arguments)};
_.r($E,eO);$E.prototype.flush=function(){if(this.queue.size){O4=!0;for(var G=_.C(this.queue),B=G.next();!B.done;B=G.next()){B=B.value;this.queue.delete(B);try{B.run()}catch(F){k1T(F)}}O4=!1}};
var Oiy=function(){$E.apply(this,arguments)};
_.r(Oiy,$E);var Lj8=new Oiy,e7L=function(){$E.apply(this,arguments)};
_.r(e7L,$E);e7L.prototype.schedule=function(G){return _.n(function(B){if(B.nextAddress==1)return B.yield(Promise.resolve(),2);G.run();_.di(B)})};
e7L.prototype.enqueue=function(G){this.queue.add(G)};
var Wj6=new e7L,z8=function(){eO.apply(this,arguments)};
_.r(z8,eO);z8.prototype.flush=function(){this.queue.size&&Y2g(this.queue)};
var $Wq=function(){z8.apply(this,arguments)};
_.r($Wq,z8);$Wq.prototype.schedule=function(G){G.version===0?G.run():this.queue.add(G)};
$Wq.prototype.flush=function(){if(this.queue.size)if(GM.flushRenderEffectsDuringRender){var G=this.queue;this.queue=new Set;Y2g(G)}else Y2g(this.queue)};
var kcz=new $Wq,z7N=function(){z8.apply(this,arguments)};
_.r(z7N,z8);z7N.prototype.schedule=function(G){return _.n(function(B){if(B.nextAddress==1)return B.yield(Promise.resolve(),2);G.run();_.di(B)})};
z7N.prototype.enqueue=function(G){this.queue.add(G)};
var zfg=new z7N,biN=function(){z8.apply(this,arguments)};
_.r(biN,z8);var efg=new biN,VWl=[kcz,Lj8,efg],MWS=[Wj6,zfg],Vay=[kcz,efg,zfg],AAg=[].concat(_.gi(VWl),_.gi(MWS)),vyU=[];eIQ=function(){obl();for(var G=_.C(vyU),B=G.next();!B.done;B=G.next())B=B.value,B()};
var k1T=Dc;var bJ={},oya=Object.assign({},WVw,(bJ[rLG]=!0,bJ.effectType=HN,bJ.isResettableContext=!0,bJ.consumerMarkedDirty=btg,bJ.run=function(){JAS(this)},bJ.cleanup=function(){co6(this)},bJ.componentStack=void 0,bJ.debugName="[effect]",bJ.destroy=function(){if(R7(this))for(var G=this.producers;G!==void 0;)G=Quo(G);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;G=_.C(Vay);for(var B=G.next();!B.done;B=G.next())B.value.remove(this);Joc(this)},bJ[Symbol.dispose]=function(){this.destroy()},bJ)),MaG=Object.assign({},oya,{version:1,
dirty:!1});var cA8=Object.assign({},oya,{effectType:HN});var TSS=Object.assign({},oya,{effectType:$0s});var tWS=Symbol("Tb");var $Yo=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var S2s={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},gb8=
{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}]}},aTM={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},PsJ=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],x0I={"*":{async:1,dir:0,loading:2,target:3}};var pZG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,VV={},B0o=(VV[1]=null,VV[2]=function(G,B){return B instanceof BY?DK(B):gm.toString()},VV[3]=function(G,B){return IM(B)?_.fe(B):pZG.test(String(B))?String(B):gm.toString()},VV[4]=function(G,B){return B instanceof M3?_.YS(B):gm.toString()},VV[5]=function(G,B){return String(B)},VV[7]=null,VV[8]=null,VV[10]=null,VV);var PRs=Symbol("Wb");var uhz="Y Z E P T G M K  m u n".split(" "),DYU={"":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};_.Yw8=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 u9={};RegExp.prototype.hasOwnProperty("sticky");var brJ=function(G){G=String(G);for(var B=function(D,u,R){for(var N=Math.min(u.length-R,D.length),y=0;y<N;y++){var U=u[R+y];if(D[y]!==("A"<=U&&U<="Z"?U.toLowerCase():U))return!1}return!0},F=0;(F=G.indexOf("<",F))!=-1;){if(B("\x3c/script",G,F)||B("\x3c!--",G,F))return"zSoyz";
F+=1}return G};var dT={default:"__default"};var yUs=Object.prototype.hasOwnProperty;wzU.prototype=Object.create(null);var c$=UYz();var gT=null;var W5c=function(G){this.created=[];this.deleted=[];this.node=G};var Hro=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var G=this,B=G;G;)B=G,G=G.parentNode;return B};var EQJ=function(G,B){this._attrsArr=null;this.nameOrCtor=G;this.key=B;this.text=void 0};var TM=null,I7=null,J0=null,t0=null,Qsg=[],Xzz=aH8,ZB=[],xjo=function(G){return kNo(function(B,F,D){J0=I7=B;I7=null;F(D);mYS(null);I7=J0;J0=J0.parentNode;return B},G)}(),sxU=function(G){return kNo(function(B,F,D){var u={nextSibling:B};
I7=u;F(D);J0&&mYS(B.nextSibling);return u===I7?null:I7},G)}();var S2=[],Gf8=0;var TA=new wzU;var ALq=UYz(),oQM=ALq[dT.default],vQI=ALq.style,z2J=["focusin","focusout"],Y18="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var UWz=function(){},Oil=function(){},WVU=function(){};var x0=Symbol("dc");var T08,cUs=JUJ;var yc=Symbol("ec");var k1g=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(" ")),
HiS=new Set(["a","font","script","style","title"]);var wn={setUp:FV8,tearDown:FV8,log:FV8,logNodeRange:FV8,graft:function(G,B){B()}};var he={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var KH=null,an=function(G,B){md.call(this,G);var F=this;this.functionComponent=B;this.hooks=[];this.hookCounter=0;this.disposeEffects=vN(function(D){F.effectContext=D;_.VI(function(){KVo(F,F.el)})},GM.alwaysTrackContexts||!!gd)};
_.r(an,md);an.prototype.render=function(G){var B=KH;KH=this;this.hookCounter=0;var F=Fe(ED),D=SV(this.effectContext);try{return u0Q("render",this.componentName),this.functionComponent(G)}finally{RIJ("render",this.componentName),SV(D),Fe(F),KH=B}};
_.ZN.Object.defineProperties(an.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return EbM(this.functionComponent)}}});var e7s=Symbol("sc"),jac=function(G,B,F){this.afterRenderCallbacks=null;this.kind=G;this.props=B;this.children=F};
_.r(jac,UD);jac.prototype.render=function(){var G=Qal(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var B=_.C(this.afterRenderCallbacks),F=B.next();!F.done;F=B.next())F=F.value,G=F(G);return G};
jac.prototype.getChildren=function(){return this.children};var z78=[];kAU=function(G){throw Error("qb`"+G.debugName);};
(function(){var G=gT;gT=function(B){G==null||G(B);bi8(B)}})();Object.assign({},MaG,{effectType:HN,elementRef:null,attributes:null,fn:function(){var G=this.elementRef;var B;G.element!=null||(G.element=(B=G.document.getElementById(G.value))!=null?B:void 0);G=G.element;for(B=this.attributes;B;){var F=B.signal();F!==B.prevValue&&(B.prevValue=F,B.namespace===1?G[B.name]=F:$Yo.has(B.name)?A0(G,B.name,F?"":null):A0(G,B.name,F));B=B.next}}});_.Xm.debugName="tbhMcf";_.Qc.debugName="zyMFzb";Object.assign({},MaG,{effectType:HN});_.E.debugName="RlDudd";var Val={nonNullableCondIsNull:function(){return Error("vc")}};var dWJ=function(){this.map=new Map};
dWJ.prototype.push=function(G,B){var F=this.map;F.has(G)&&(this.multi||(this.multi=new Map),this.multi.set(B,F.get(G)));F.set(G,B)};
dWJ.prototype.pop=function(G){var B=this.map,F=B.get(G),D;F!==void 0&&((D=this.multi)==null?0:D.has(F))?(B.set(G,this.multi.get(F)),this.multi.delete(F)):B.delete(G);return F};_.jR.debugName="nsTGHd";_.LH.debugName="vI1rtf";var fLJ={OUT_OF_ORDER_HOOK_CALL:function(G){return Error("wc`"+G)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(G,B){return Error("Ac`"+((B===void 0?0:B)?"IDOM":"Reactive")+"`"+(rn(G)?G.description:G))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(G,B){return Error("Bc`"+(rn(G)?G.description:G)+"`"+B)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(G){return Error("Cc`"+(rn(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED:function(G){return Error("Dc`"+(rn(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(G){return Error("Ec`"+(rn(G)?G.description:G))}};var g88=Symbol("Fc");T08=LVz;T08=LVz;var Fbs=Symbol("Gc");EyM({beforeRender:function(G){var B=SV(G.effectContext);try{var F;((F=G.__syncEffects)==null?0:F.length)&&l4o(G.__syncEffects)}finally{SV(B)}},
didPatch:function(G){var B=SV(G.effectContext);try{var F;((F=G.__syncEffects)==null?0:F.length)&&l4o(G.__syncEffects)}finally{SV(B)}},
didUnmount:function(G){var B;((B=G.hooks)==null?0:B.length)&&G.hooks.forEach(nI8)}});var dWU,JLG,cL8;dWU=_.Fz.window;_.b9=(dWU==null?void 0:(JLG=dWU.yt)==null?void 0:JLG.config_)||(dWU==null?void 0:(cL8=dWU.ytcfg)==null?void 0:cL8.data_)||{};_.IY("yt.config_",_.b9);var Ts7={},EIS=[];_.Uf=function(G){var B=_.xS.apply(1,arguments);var F=Error.call(this,G);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.args=[].concat(_.gi(B));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.Uf,Error);var yXJ=function(G,B,F){this.actionName=G;this.optionalAction=B===void 0?!1:B;this.args=F===void 0?null:F;this.returnValue=[]};_.vf=function(G){this.name=G};_.v$=new _.vf("signalAction");var HRU=/^[\w.]*$/,XTM={q:!0,search_query:!0},ma8=String(a4o);var ZA;ZA=Symbol("Hc");_.oV=function(G){this.name=G};
_.oV.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var k7U=function(G){this.key=G},bRS=function(G){this.deferredKey=G},eR6=function(){var G=this;
this.providers=new Map;this.JSC$10808_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(G.providers)}}};
eR6.prototype.addProvider=function(G){this.providers.set(G.provide,G);var B=this.JSC$10808_deferred.get(G.provide);if(B)try{B.resolver(this.resolve(G.provide))}catch(F){B.rejector(F)}};
eR6.prototype.resolve=function(G){return G instanceof bRS?IL8(this,G):G instanceof k7U?fLU(this,G.key,[],!0):fLU(this,G,[])};
var IL8=function(G,B){B=B.deferredKey;if(G.JSC$10808_deferred.has(B))return G.JSC$10808_deferred.get(B).promise;var F={};F.promise=new Promise(function(D,u){F.resolver=D;F.rejector=u});
G.JSC$10808_deferred.set(B,F);return F.promise},fLU=function(G,B,F,D){D=D===void 0?!1:D;
if(F.indexOf(B)>-1)throw Error("Ic`"+B);if(G.cachedValues.has(B))return G.cachedValues.get(B);if(!G.providers.has(B)){if(D)return;throw Error("Jc`"+B);}D=G.providers.get(B);F.push(B);if(D.useValue!==void 0)var u=D.useValue;else if(D.useFactory)u=D[ZA]?taq(G,D[ZA],F):[],u=D.useFactory.apply(D,_.gi(u));else if(D.useClass){u=D.useClass;var R=u[ZA]?taq(G,u[ZA],F):[];u=new (Function.prototype.bind.apply(u,[null].concat(_.gi(R))))}else throw Error("Kc`"+B);F.pop();D.skipCache||G.cachedValues.set(B,u);return u},
taq=function(G,B,F){return B?B.map(function(D){return D instanceof k7U?fLU(G,D.key,F,!0):fLU(G,D,F)}):[]};var OR8;var ou=new _.oV("ENDPOINT_HANDLER_TOKEN");_.MI=new _.vf("urlEndpoint");var Ziy=function(){this.data=[];this.cachedPackedInt52=-1};
Ziy.prototype.set=function(G,B){B=B===void 0?!0:B;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==B&&(this.data[G]=B,this.cachedPackedInt52=-1)};
Ziy.prototype.get=function(G){return!!this.data[G]};
var gyq=function(G){G.cachedPackedInt52===-1&&(G.cachedPackedInt52=G.data.reduce(function(B,F,D){return B+(F?Math.pow(2,D):0)},0));
return G.cachedPackedInt52};var f4M=function(G){var B=Swa;G=G===void 0?_.Yf("yt.ads.biscotti.lastId_")||"":G;var F=Object,D=F.assign,u={};u.dt=hZw;u.flash="0";a:{try{var R=B.JSC$10814_win_.top.location.href}catch(P){R=2;break a}R=R?R===B.doc_.location.href?0:1:2}u=(u.frm=R,u);try{u.u_tz=-(new Date).getTimezoneOffset();try{var N=V_.history.length}catch(P){N=0}u.u_his=N;var y;u.u_h=(y=V_.screen)==null?void 0:y.height;var U;u.u_w=(U=V_.screen)==null?void 0:U.width;var q;u.u_ah=(q=V_.screen)==null?void 0:q.availHeight;var h;u.u_aw=
(h=V_.screen)==null?void 0:h.availWidth;var K;u.u_cd=(K=V_.screen)==null?void 0:K.colorDepth}catch(P){}N=B.JSC$10814_win_;try{var a=N.screenX;var m=N.screenY}catch(P){}try{var L=N.outerWidth;var W=N.outerHeight}catch(P){}try{var e=N.innerWidth;var b=N.innerHeight}catch(P){}try{var M=N.screenLeft;var t=N.screenTop}catch(P){}try{e=N.innerWidth,b=N.innerHeight}catch(P){}try{var T=N.screen.availWidth;var A=N.screen.availTop}catch(P){}a=[M,t,a,m,T,A,L,W,e,b];m=RWU(!1,B.JSC$10814_win_.top);L={};var Z=Z===
void 0?_.Fz:Z;W=new Ziy;"SVGElement"in Z&&"createElementNS"in Z.document&&W.set(0);e=k2G();e["allow-top-navigation-by-user-activation"]&&W.set(1);e["allow-popups-to-escape-sandbox"]&&W.set(2);Z.crypto&&Z.crypto.subtle&&W.set(3);"TextDecoder"in Z&&"TextEncoder"in Z&&W.set(4);Z=gyq(W);B=(L.bc=Z,L.bih=m.height,L.biw=m.width,L.brdim=a.join(),L.vis=s7U(B.doc_),L.wgl=!!V_.WebGLRenderingContext,L);F=D.call(F,u,B);F.ca_type="image";G&&(F.bid=G);return F},Swa=new function(){var G=window.document;
this.JSC$10814_win_=window;this.doc_=G};
_.IY("yt.ads_.signals_.getAdSignalsString",function(G){return QgL(f4M(G))});_.Td();navigator.userAgent.indexOf(" (CrKey ");var MDo="XMLHttpRequest"in _.Fz?function(){return new XMLHttpRequest}:null;var saT="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),xW8=[].concat(_.gi(saT),["client_dev_set_cookie"]);var I4g={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"},AJg="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(_.gi(saT)),B8L=!1,JJc=_.tDJ,xag=T5o;var QxJ=[{messageFn:function(G){return"Cannot read property '"+G.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(G){return"Cannot call '"+G.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(G){return G.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var P27={messageWeights:[],callbackWeights:[{callback:u98,weight:500},{callback:RSI,weight:500}]};var G7N=function(){this.callbackWeights=[];this.messageWeights=[]},B5t,X_g=function(){if(!B5t){var G=B5t=new G7N;
G.messageWeights.length=0;G.callbackWeights.length=0;Vis(G,P27)}return B5t},Vis=function(G,B){B.messageWeights&&G.messageWeights.push.apply(G.messageWeights,B.messageWeights);
B.callbackWeights&&G.callbackWeights.push.apply(G.callbackWeights,B.callbackWeights)};_.IC(_.RY,_.uz);_.RY.prototype.subscribe=function(G,B,F){var D=this.topics_[G];D||(D=this.topics_[G]=[]);var u=this.JSC$10837_key_;this.subscriptions_[u]=G;this.subscriptions_[u+1]=B;this.subscriptions_[u+2]=F;this.JSC$10837_key_=u+3;D.push(u);return u};
var iRs=function(G){var B=bZ,F=!1,D=B.subscribe("handleError",function(u){F||(F=!0,this.unsubscribeByKey(D),G.apply(void 0,arguments))},B)};
_.RY.prototype.unsubscribe=function(G,B,F){if(G=this.topics_[G]){var D=this.subscriptions_;if(G=G.find(function(u){return D[u+1]==B&&D[u+2]==F}))return this.unsubscribeByKey(G)}return!1};
_.RY.prototype.unsubscribeByKey=function(G){var B=this.subscriptions_[G];if(B){var F=this.topics_[B];this.publishDepth_!=0?(this.pendingKeys_.push(G),this.subscriptions_[G+1]=function(){}):(F&&_.dU(F,G),delete this.subscriptions_[G],delete this.subscriptions_[G+1],delete this.subscriptions_[G+2])}return!!B};
_.RY.prototype.publish=function(G,B){var F=this.topics_[G];if(F){var D=Array(arguments.length-1),u=arguments.length,R;for(R=1;R<u;R++)D[R-1]=arguments[R];if(this.async_)for(R=0;R<F.length;R++)u=F[R],FbL(this.subscriptions_[u+1],this.subscriptions_[u+2],D);else{this.publishDepth_++;try{for(R=0,u=F.length;R<u&&!this.isDisposed();R++){var N=F[R];this.subscriptions_[N+1].apply(this.subscriptions_[N+2],D)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;F=this.pendingKeys_.pop();)this.unsubscribeByKey(F)}}return R!=
0}return!1};
var FbL=function(G,B,F){_.hh(function(){G.apply(B,F)})};
_.RY.prototype.clear=function(G){if(G){var B=this.topics_[G];B&&(B.forEach(this.unsubscribeByKey,this),delete this.topics_[G])}else this.subscriptions_.length=0,this.topics_={}};
_.RY.prototype.getCount=function(G){if(G){var B=this.topics_[G];return B?B.length:0}G=0;for(B in this.topics_)G+=this.getCount(B);return G};
_.RY.prototype.disposeInternal=function(){_.RY.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var bZ=new _.RY;var GD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(GD,_.q3);GD.prototype.getColdHashData=function(){return _.KX(this,3)};
GD.prototype.getHotHashData=function(){return _.KX(this,5)};
GD.prototype.setHotHashData=function(G){return _.wq(this,5,G)};var akU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(akU,_.q3);var I$S=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(I$S,_.q3);_.w=I$S.prototype;_.w.getDeviceId=function(){return _.KX(this,6)};
_.w.getExperimentIds=function(G){var B=_.GX(this,9,_.UA,3,!0);D8M(B,G);return B[G]};
_.w.getPlayerType=function(){return _.aD(this,36)};
_.w.setHomeGroupInfo=function(G){return _.ba(this,81,G)};
_.w.clearLocationPlayabilityToken=function(){return _.PQ(this,89)};var CZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(CZ,_.q3);CZ.prototype.setKey=function(G){return _.wq(this,1,G)};
CZ.prototype.getValue=function(){return XS(this,2,to6)};
var to6=[2,3,4,5,6];var Daw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Daw,_.q3);Daw.prototype.setTrackingParams=function(G){return _.PQ(this,1,_.VP(G,!1))};var f$U=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(f$U,_.q3);var QFS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(QFS,_.q3);QFS.prototype.getExperimentIds=function(G){var B=_.GX(this,5,_.zUz,3,!0);D8M(B,G);return B[G]};var qI=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(qI,_.q3);qI.prototype.getToken=function(){return _.Pe(this,2)};
qI.prototype.setToken=function(G){return _.wq(this,2,G)};var yK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(yK,_.q3);yK.prototype.setSafetyMode=function(G){return _.xK(this,5,G)};var wa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(wa,_.q3);wa.prototype.setClient=function(G){return _.ba(this,1,G)};var XmQ={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 mOQ;_.Hm=function(){var G=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Fz.addEventListener("beforeinstallprompt",function(B){B.preventDefault();G.deferredInstallPrompt=B});
_.Fz.addEventListener("appinstalled",function(){G.appInstalledEventFired=!0},{once:!0})};
mOQ=function(){if(!_.Fz.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Fz.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Fz.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Fz.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Fz.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}};var rVS=function(){this.syncHeaders=!0},WaS=function(G){var B={},F=[];
"USER_SESSION_ID"in _.b9&&F.push({key:"u",value:_.v5("USER_SESSION_ID")});if(F=_.fOM(F))B.Authorization=F,F=G=G==null?void 0:G.sessionIndex,F===void 0&&(F=Number(_.v5("SESSION_INDEX",0)),F=isNaN(F)?0:F),_.X("voice_search_auth_header_removal")||(B["X-Goog-AuthUser"]=F.toString()),"INNERTUBE_HOST_OVERRIDE"in _.b9||(B["X-Origin"]=window.location.origin),G===void 0&&"DELEGATED_SESSION_ID"in _.b9&&(B["X-Goog-PageId"]=_.v5("DELEGATED_SESSION_ID"));return B};var uwU={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var MU=_.Yf("ytglobal.prefsUserPrefsPrefs_")||{},RRw;_.IY("ytglobal.prefsUserPrefsPrefs_",MU);_.pB=function(){this.cookieName=_.v5("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.v5("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=_.C8.get(this.cookieName,void 0);G&&this.parse(G)};
_.D4=function(){RRw||(RRw=new _.pB);return RRw};
_.pB.prototype.get=function(G,B){wTy(G);Cfq(G);G=MU[G]!==void 0?MU[G].toString():null;return G!=null?G:B?B:""};
_.pB.prototype.set=function(G,B){wTy(G);Cfq(G);if(B==null)throw Error("Nc");MU[G]=B.toString()};
_.pB.prototype.getFlag=function(G){return!!((N5q("f"+(Math.floor(G/31)+1))||0)&1<<G%31)};
_.uf=function(G,B,F){G="f"+(Math.floor(B/31)+1);B=1<<B%31;var D=N5q(G)||0;D=F?D|B:D&~B;D===0?delete MU[G]:(F=D.toString(16),MU[G]=F.toString())};
_.pB.prototype.remove=function(G){wTy(G);Cfq(G);delete MU[G]};
_.pB.prototype.save=function(){var G=!0;_.X("web_secure_pref_cookie_killswitch")&&(G=!1);_.NS(this.cookieName,this.dump(),63072E3,this.cookieDomain,G)};
_.pB.prototype.clear=function(){_.UK.clear(MU)};
_.pB.prototype.dump=function(){var G=[],B;for(B in MU)MU.hasOwnProperty(B)&&G.push(B+"="+encodeURIComponent(String(MU[B])));return G.join("&")};
var Cfq=function(G){if(/^f([1-9][0-9]*)$/.test(G))throw Error("Oc`"+G);},wTy=function(G){if(!/^\w+$/.test(G))throw Error("Pc`"+G);
},N5q=function(G){G=MU[G]!==void 0?MU[G].toString():null;
return G!=null&&/^[A-Fa-f0-9]+$/.test(G)?parseInt(G,16):null};
_.pB.prototype.parse=function(G){G=decodeURIComponent(G).split("&");for(var B=0;B<G.length;B++){var F=G[B].split("="),D=F[0];(F=F[1])&&(MU[D]=F.toString())}};var E9s={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"},jFJ={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},Lal={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},KDc={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var cr;_.YE=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.mX=function(G,B,F){return G.addJob(B,0,F)};
_.YE.prototype.addLowPriorityJob=function(G,B){return this.addJob(G,1,B)};
_.yH=function(G,B,F){return G.addJob(B,2,F)};
_.uQ=function(G,B,F){return G.addJob(B,3,F)};
_.Tm=function(G,B,F){return G.addJob(B,4,F)};
cr=function(G){var B=_.Yf("yt.scheduler.instance.addImmediateJob");B?B(G):G()};
_.YE.prototype.debounce=function(G,B,F){var D=this,u=0,R=function(){u&&D.cancelJob(u);u=D.addJob(G,B,F);D.cancelDebouncedJobMap.set(R,u)};
return R};
_.YE.prototype.cancelThrottle=function(G){(G=this.cancelThrottledJobMap.get(G))&&G()};var AE=function(){_.YE.apply(this,arguments)},yJt;
_.r(AE,_.YE);_.Kx=function(){AE.instance||(AE.instance=new AE);return AE.instance};
AE.prototype.addJob=function(G,B,F){F!==void 0&&Number.isNaN(Number(F))&&(F=void 0);var D=_.Yf("yt.scheduler.instance.addJob");return D?D(G,B,F):F===void 0?(G(),NaN):_.iX(G,F||0)};
AE.prototype.cancelJob=function(G){if(G===void 0||!Number.isNaN(Number(G))){var B=_.Yf("yt.scheduler.instance.cancelJob");B?B(G):_.Dl(G)}};
AE.prototype.start=function(){var G=_.Yf("yt.scheduler.instance.start");G&&G()};
AE.prototype.pause=function(){var G=_.Yf("yt.scheduler.instance.pause");G&&G()};
yJt=function(){_.Kx();var G=_.Yf("yt.scheduler.instance.setPriorityThreshold");G&&G(4)};
_.Lu=_.Kx();_.qS.prototype.set=function(G,B){B===void 0?this.mechanism.remove(G):this.mechanism.set(G,_.Q_(B))};
_.qS.prototype.get=function(G){try{var B=this.mechanism.get(G)}catch(F){return}if(B!==null)try{return JSON.parse(B)}catch(F){throw"Storage: Invalid value was encountered";}};
_.qS.prototype.remove=function(G){this.mechanism.remove(G)};_.IC(Ef,_.qS);var nIN=function(G){this.data=G},l4P=function(G){return G===void 0||G instanceof nIN?G:new nIN(G)};
Ef.prototype.set=function(G,B){Ef.superClass_.set.call(this,G,l4P(B))};
Ef.prototype.getWrapper=function(G){G=Ef.superClass_.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";};
Ef.prototype.get=function(G){if(G=this.getWrapper(G)){if(G=G.data,G===void 0)throw"Storage: Invalid value was encountered";}else G=void 0;return G};_.IC(hP,Ef);_.Uaa=function(G){var B=G.creation;G=G.expiration;return!!G&&G<_.Td()||!!B&&B>_.Td()};
hP.prototype.set=function(G,B,F){if(B=l4P(B)){if(F){if(F<_.Td()){hP.prototype.remove.call(this,G);return}B.expiration=F}B.creation=_.Td()}hP.superClass_.set.call(this,G,B)};
hP.prototype.getWrapper=function(G,B){var F=hP.superClass_.getWrapper.call(this,G);if(F)if(!B&&_.Uaa(F))hP.prototype.remove.call(this,G);else return F};var dP=function(){};
dP.prototype.next=function(){return JE};
var JE={done:!0,value:void 0},cf=function(G){return{value:G,done:!1}};
dP.prototype.__iterator__=function(){return this};
_.qqs=function(G){if(G instanceof dP)return G;if(typeof G.__iterator__=="function")return G.__iterator__(!1);if(_.fQ(G)){var B=0,F=new dP;F.next=function(){for(;;){if(B>=G.length)return JE;if(B in G)return cf(G[B++]);B++}};
return F}throw Error("Qc");};var EIG=function(G){if(G instanceof T8||G instanceof IV||G instanceof fB)return G;if(typeof G.next=="function")return new T8(function(){return G});
if(typeof G[Symbol.iterator]=="function")return new T8(function(){return G[Symbol.iterator]()});
if(typeof G.__iterator__=="function")return new T8(function(){return G.__iterator__()});
throw Error("Rc");},T8=function(G){this.func_=G};
T8.prototype.__iterator__=function(){return new IV(this.func_())};
T8.prototype[Symbol.iterator]=function(){return new fB(this.func_())};
T8.prototype.toEs6=function(){return new fB(this.func_())};
var IV=function(G){this.JSC$10922_iter_=G};
_.r(IV,dP);IV.prototype.next=function(){return this.JSC$10922_iter_.next()};
IV.prototype[Symbol.iterator]=function(){return new fB(this.JSC$10922_iter_)};
IV.prototype.toEs6=function(){return new fB(this.JSC$10922_iter_)};
var fB=function(G){T8.call(this,function(){return G});
this.JSC$10925_iter_=G};
_.r(fB,T8);fB.prototype.next=function(){return this.JSC$10925_iter_.next()};var hRP=function(){};var tE=function(){};
_.IC(tE,hRP);tE.prototype.getCount=function(){for(var G=0,B=_.C(this),F=B.next();!F.done;F=B.next())G++;return G};
tE.prototype[Symbol.iterator]=function(){return EIG(this.__iterator__(!0)).toEs6()};
tE.prototype.clear=function(){var G=Array.from(this);G=_.C(G);for(var B=G.next();!B.done;B=G.next())this.remove(B.value)};_.IC(K8,tE);_.w=K8.prototype;_.w.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var G=this.storage_;if(G)try{G.setItem("__sak","1");G.removeItem("__sak");var B=!0}catch(F){B=F instanceof DOMException&&(F.name==="QuotaExceededError"||F.code===22||F.code===1014||F.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G&&G.length!==0}else B=!1;this.cachedIsStorageAvailable_=B}return this.cachedIsStorageAvailable_};
_.w.set=function(G,B){Z9(this);try{this.storage_.setItem(G,B)}catch(F){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.w.get=function(G){Z9(this);G=this.storage_.getItem(G);if(typeof G!=="string"&&G!==null)throw"Storage mechanism: Invalid value was encountered";return G};
_.w.remove=function(G){Z9(this);this.storage_.removeItem(G)};
_.w.getCount=function(){Z9(this);return this.storage_.length};
_.w.__iterator__=function(G){Z9(this);var B=0,F=this.storage_,D=new dP;D.next=function(){if(B>=F.length)return JE;var u=F.key(B++);if(G)return cf(u);u=F.getItem(u);if(typeof u!=="string")throw"Storage mechanism: Invalid value was encountered";return cf(u)};
return D};
_.w.clear=function(){Z9(this);this.storage_.clear()};
_.w.key=function(G){Z9(this);return this.storage_.key(G)};
var Z9=function(G){if(G.storage_==null)throw Error("Sc");G.isAvailable()||Dc(Error("Sc"))};_.IC(mDz,K8);_.IC(X2U,K8);_.IC(aY,tE);aY.prototype.set=function(G,B){this.mechanism_.set(this.JSC$10940_prefix_+G,B)};
aY.prototype.get=function(G){return this.mechanism_.get(this.JSC$10940_prefix_+G)};
aY.prototype.remove=function(G){this.mechanism_.remove(this.JSC$10940_prefix_+G)};
aY.prototype.__iterator__=function(G){var B=this.mechanism_[Symbol.iterator](),F=this,D=new dP;D.next=function(){var u=B.next();if(u.done)return u;for(u=u.value;u.slice(0,F.JSC$10940_prefix_.length)!=F.JSC$10940_prefix_;){u=B.next();if(u.done)return u;u=u.value}return cf(G?u.slice(F.JSC$10940_prefix_.length):F.mechanism_.get(u))};
return D};_.e6=function(G){this.expiringStorage_=(G=_.mm(G))?new hP(G):null;this.JSC$10944_domain_=document.domain||window.location.hostname};
_.w=_.e6.prototype;_.w.hasLocalStorage=function(){return!!this.expiringStorage_};
_.w.set=function(G,B,F,D){F=F||31104E3;this.remove(G);if(this.hasLocalStorage())try{this.expiringStorage_.set(G,B,Date.now()+F*1E3);return}catch(R){}var u="";if(D)try{u=escape(_.Q_(B))}catch(R){return}else u=escape(B);_.NS(G,u,F,this.JSC$10944_domain_)};
_.w.get=function(G,B){var F=void 0,D=!this.hasLocalStorage();if(!D)try{F=this.expiringStorage_.get(G)}catch(u){D=!0}if(D&&(F=_.C8.get(G,void 0))&&(F=unescape(F),B))try{F=JSON.parse(F)}catch(u){this.remove(G),F=void 0}return F};
_.w.remove=function(G){this.hasLocalStorage()&&this.expiringStorage_.remove(G);_.lVS(G,"/",this.JSC$10944_domain_)};
_.w.getCreationTime=function(G){return this.hasLocalStorage()&&(G=(this.expiringStorage_.getWrapper(G)||{}).creation,typeof G==="number")?G:null};var j9I=function(){var G;return function(){G||(G=new _.e6("ytidb"));return G}}();var rcM;_.Q5=[];rcM=!1;var cc6=WDI||HJ6;var gP={},KbG=(gP.AUTH_INVALID="No user identifier specified.",gP.EXPLICIT_ABORT="Transaction was explicitly aborted.",gP.IDB_NOT_SUPPORTED="IndexedDB is not supported.",gP.MISSING_INDEX="Index not created.",gP.MISSING_OBJECT_STORES="Object stores not created.",gP.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",gP.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",gP.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",gP.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",gP.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",gP.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",gP.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",gP),SO={},a4P=(SO.AUTH_INVALID="ERROR",SO.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",SO.EXPLICIT_ABORT="IGNORED",
SO.IDB_NOT_SUPPORTED="ERROR",SO.MISSING_INDEX="WARNING",SO.MISSING_OBJECT_STORES="ERROR",SO.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",SO.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",SO.QUOTA_EXCEEDED="WARNING",SO.QUOTA_MAYBE_EXCEEDED="WARNING",SO.UNKNOWN_ABORT="WARNING",SO.INCOMPATIBLE_DB_VERSION="WARNING",SO),s7={},maN=(s7.AUTH_INVALID=!1,s7.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,s7.EXPLICIT_ABORT=!1,s7.IDB_NOT_SUPPORTED=!1,s7.MISSING_INDEX=!1,s7.MISSING_OBJECT_STORES=!1,s7.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,s7.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,s7.QUOTA_EXCEEDED=!1,s7.QUOTA_MAYBE_EXCEEDED=!0,s7.UNKNOWN_ABORT=!0,s7.INCOMPATIBLE_DB_VERSION=!1,s7),kK=function(G,B,F,D,u){B=B===void 0?{}:B;F=F===void 0?KbG[G]:F;D=D===void 0?a4P[G]:D;u=u===void 0?maN[G]:u;_.Uf.call(this,F,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},B));this.type=G;this.message=F;this.level=D;this.retryable=u;Object.setPrototypeOf(this,kK.prototype)};
_.r(kK,_.Uf);var XTv=function(G,B){kK.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:B,foundObjectStores:G},KbG.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,XTv.prototype)};
_.r(XTv,kK);var OJM=function(G,B){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.index=G;this.objectStore=B;Object.setPrototypeOf(this,OJM.prototype)};
_.r(OJM,Error);var eSo=["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 z0=function(G){this.executor=G},$K=function(G){var B=this;
this.state={status:"PENDING"};this.JSC$10972_onFulfilled=[];this.JSC$10972_onRejected=[];G=G.executor;var F=function(u){if(B.state.status==="PENDING"){B.state={status:"FULFILLED",value:u};u=_.C(B.JSC$10972_onFulfilled);for(var R=u.next();!R.done;R=u.next())R=R.value,R()}},D=function(u){if(B.state.status==="PENDING"){B.state={status:"REJECTED",
reason:u};u=_.C(B.JSC$10972_onRejected);for(var R=u.next();!R.done;R=u.next())R=R.value,R()}};
try{G(F,D)}catch(u){D(u)}};
$K.all=function(G){return new $K(new z0(function(B,F){var D=[],u=G.length;u===0&&B(D);for(var R={i$jscomp$471:0};R.i$jscomp$471<G.length;R={i$jscomp$471:R.i$jscomp$471},++R.i$jscomp$471)$K.resolve(G[R.i$jscomp$471]).then(function(N){return function(y){D[N.i$jscomp$471]=y;u--;u===0&&B(D)}}(R)).catch(function(N){F(N)})}))};
$K.resolve=function(G){return new $K(new z0(function(B,F){G instanceof $K?G.then(B,F):B(G)}))};
$K.reject=function(G){return new $K(new z0(function(B,F){F(G)}))};
$K.prototype.then=function(G,B){var F=this,D=G!=null?G:bJo,u=B!=null?B:zSM;return new $K(new z0(function(R,N){F.state.status==="PENDING"?(F.JSC$10972_onFulfilled.push(function(){Qg8(F,F,D,R,N)}),F.JSC$10972_onRejected.push(function(){jga(F,F,u,R,N)})):F.state.status==="FULFILLED"?Qg8(F,F,D,R,N):F.state.status==="REJECTED"&&jga(F,F,u,R,N)}))};
$K.prototype.catch=function(G){return this.then(void 0,G)};
var Qg8=function(G,B,F,D,u){try{if(G.state.status!=="FULFILLED")throw Error("Vc");var R=F(G.state.value);R instanceof $K?LbG(G,B,R,D,u):D(R)}catch(N){u(N)}},jga=function(G,B,F,D,u){try{if(G.state.status!=="REJECTED")throw Error("Wc");
var R=F(G.state.reason);R instanceof $K?LbG(G,B,R,D,u):D(R)}catch(N){u(N)}},LbG=function(G,B,F,D,u){B===F?u(new TypeError("Xc")):F.then(function(R){R instanceof $K?LbG(G,B,R,D,u):D(R)},function(R){u(R)})};var xE;xE=window;_.Zl=xE.ytcsi&&xE.ytcsi.now?xE.ytcsi.now:xE.performance&&xE.performance.timing&&xE.performance.now&&xE.performance.timing.navigationStart?function(){return xE.performance.timing.navigationStart+xE.performance.now()}:function(){return(new Date).getTime()};var V5=function(G,B){this.JSC$10984_wrapped=G;this.options=B;this.transactionCount=0;this.startedMs=Math.round((0,_.Zl)());this.hasUnknownAbortedTransaction=!1},Pf=function(){return _.X("idb_immediate_commit")},HRw,k7w,iw,$aw;
V5.prototype.add=function(G,B,F){return _.YK(this,[G],{mode:"readwrite",enableRetries:!0,commit:Pf()},function(D){return D.objectStore(G).add(B,F)})};
V5.prototype.clear=function(G){return _.YK(this,[G],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore(G).clear()})};
V5.prototype.close=function(){this.JSC$10984_wrapped.close();var G;((G=this.options)==null?0:G.closed)&&this.options.closed()};
V5.prototype.count=function(G,B){return _.YK(this,[G],{mode:"readonly",enableRetries:!0,commit:Pf()},function(F){return F.objectStore(G).count(B)})};
var bi=function(G,B,F){G=G.JSC$10984_wrapped.createObjectStore(B,F);return new Gu(G)};
V5.prototype.delete=function(G,B){return _.YK(this,[G],{mode:"readwrite",enableRetries:!0,commit:Pf()&&!(B instanceof IDBKeyRange)},function(F){return F.objectStore(G).delete(B)})};
var rJL=function(G,B){return _.YK(G,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(F){return F.objectStore("ResponseStore").index("byInterface").delete(B)})};
V5.prototype.get=function(G,B){return _.YK(this,[G],{mode:"readonly",enableRetries:!0,commit:Pf()},function(F){return F.objectStore(G).get(B)})};
V5.prototype.getAll=function(G,B,F){return _.YK(this,[G],{mode:"readonly",enableRetries:!0},function(D){return D.objectStore(G).getAll(B,F)})};
V5.prototype.put=function(G,B,F){return _.YK(this,[G],{mode:"readwrite",enableRetries:!0,commit:Pf()},function(D){return D.objectStore(G).put(B,F)})};
V5.prototype.objectStoreNames=function(){return Array.from(this.JSC$10984_wrapped.objectStoreNames)};
_.YK=function(G,B,F,D){var u,R,N,y,U,q,h,K,a,m,L,W;return _.n(function(e){switch(e.nextAddress){case 1:var b={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof F==="string"?b.mode=F:Object.assign(b,F);u=b;G.transactionCount++;R=u.enableRetries?3:1;N=0;case 2:if(y){e.jumpTo(4);break}N++;U=Math.round((0,_.Zl)());_.b5(e,5);q=G.JSC$10984_wrapped.transaction(B,u.mode);b=e.yield;var M=!!u.commit;var t=new vQ(q);M=WbU(t,D,M);return b.call(e,M,7);case 7:return h=e.yieldResult,K=Math.round((0,_.Zl)()),
HRw(G,U,K,N,void 0,B.join(),u),e.return(h);case 5:a=_.Al(e);m=Math.round((0,_.Zl)());L=$Dc(a,G.JSC$10984_wrapped.name,B.join(),G.JSC$10984_wrapped.version);if((W=L instanceof kK&&!L.retryable)||N>=R)HRw(G,U,m,N,L,B.join(),u),y=L;e.jumpTo(2);break;case 4:return e.return(Promise.reject(y))}})};
HRw=function(G,B,F,D,u,R,N){B=F-B;u?(u instanceof kK&&(u.type==="QUOTA_EXCEEDED"||u.type==="QUOTA_MAYBE_EXCEEDED")&&L8("QUOTA_EXCEEDED",{dbName:WQ(G.JSC$10984_wrapped.name),objectStoreNames:R,transactionCount:G.transactionCount,transactionMode:N.mode}),u instanceof kK&&u.type==="UNKNOWN_ABORT"&&(F-=G.startedMs,F<0&&F>=2147483648&&(F=0),L8("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:R,transactionDuration:B,transactionCount:G.transactionCount,dbDuration:F}),G.hasUnknownAbortedTransaction=!0),
k7w(G,!1,D,R,B,N.tag),_.jE(u)):k7w(G,!0,D,R,B,N.tag)};
k7w=function(G,B,F,D,u,R){L8("TRANSACTION_ENDED",{objectStoreNames:D,connectionHasUnknownAbortedTransaction:G.hasUnknownAbortedTransaction,duration:u,isSuccessful:B,tryCount:F,tag:R===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":R})};
V5.prototype.getName=function(){return this.JSC$10984_wrapped.name};
var Gu=function(G){this.JSC$10999_wrapped=G};
Gu.prototype.add=function(G,B){return bX(this.JSC$10999_wrapped.add(G,B))};
Gu.prototype.autoIncrement=function(){return this.JSC$10999_wrapped.autoIncrement};
Gu.prototype.clear=function(){return bX(this.JSC$10999_wrapped.clear()).then(function(){})};
var Vv=function(G,B,F){G.JSC$10999_wrapped.createIndex(B,F,{unique:!1})};
Gu.prototype.count=function(G){return bX(this.JSC$10999_wrapped.count(G))};
var ORN=function(G,B){return JP(G,{query:B},function(F){return F.delete().then(function(){return F.continue()})}).then(function(){})};
Gu.prototype.delete=function(G){return G instanceof IDBKeyRange?ORN(this,G):bX(this.JSC$10999_wrapped.delete(G))};
Gu.prototype.get=function(G){return bX(this.JSC$10999_wrapped.get(G))};
Gu.prototype.getAll=function(G,B){return"getAll"in IDBObjectStore.prototype?bX(this.JSC$10999_wrapped.getAll(G,B)):eRs(this,G,B)};
var eRs=function(G,B,F){var D=[];return JP(G,{query:B},function(u){if(!(F!==void 0&&D.length>=F))return D.push(u.getValue()),u.continue()}).then(function(){return D})};
Gu.prototype.index=function(G){try{return new BL(this.JSC$10999_wrapped.index(G))}catch(B){if(B instanceof Error&&B.name==="NotFoundError")throw new OJM(G,this.JSC$10999_wrapped.name);throw B;}};
Gu.prototype.getName=function(){return this.JSC$10999_wrapped.name};
Gu.prototype.keyPath=function(){return this.JSC$10999_wrapped.keyPath};
Gu.prototype.put=function(G,B){return bX(this.JSC$10999_wrapped.put(G,B))};
var JP=function(G,B,F){G=G.JSC$10999_wrapped.openCursor(B.query,B.direction);return $aw(G).then(function(D){return o9o(D,F)})},vQ=function(G){var B=this;
this.JSC$11007_wrapped=G;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(F,D){B.JSC$11007_wrapped.addEventListener("complete",function(){F()});
B.JSC$11007_wrapped.addEventListener("error",function(u){u.currentTarget===u.target&&D(B.JSC$11007_wrapped.error)});
B.JSC$11007_wrapped.addEventListener("abort",function(){var u=B.JSC$11007_wrapped.error;if(u)D(u);else if(!B.aborted){u=kK;for(var R=B.JSC$11007_wrapped.objectStoreNames,N=[],y=0;y<R.length;y++){var U=R.item(y);if(U===null)throw Error("Yc");N.push(U)}u=new u("UNKNOWN_ABORT",{objectStoreNames:N.join(),dbName:B.JSC$11007_wrapped.db.name,mode:B.JSC$11007_wrapped.mode});D(u)}})})},WbU=function(G,B,F){var D=new Promise(function(u,R){try{var N=B(G);
F&&G.commit();N.then(function(y){u(y)}).catch(R)}catch(y){R(y),G.abort()}});
return Promise.all([D,G.done]).then(function(u){return _.C(u).next().value})};
vQ.prototype.abort=function(){this.JSC$11007_wrapped.abort();this.aborted=!0;throw new kK("EXPLICIT_ABORT");};
vQ.prototype.commit=function(){if(!this.aborted){var G,B;(B=(G=this.JSC$11007_wrapped).commit)==null||B.call(G)}};
vQ.prototype.objectStore=function(G){G=this.JSC$11007_wrapped.objectStore(G);var B=this.objectStoreCache.get(G);B||(B=new Gu(G),this.objectStoreCache.set(G,B));return B};
var BL=function(G){this.JSC$11009_wrapped=G};
BL.prototype.count=function(G){return bX(this.JSC$11009_wrapped.count(G))};
BL.prototype.delete=function(G){return _.go(this,{query:G},function(B){return B.delete().then(function(){return B.continue()})})};
BL.prototype.get=function(G){return bX(this.JSC$11009_wrapped.get(G))};
BL.prototype.getAll=function(G,B){return"getAll"in IDBIndex.prototype?bX(this.JSC$11009_wrapped.getAll(G,B)):zRv(this,G,B)};
var zRv=function(G,B,F){var D=[];return _.go(G,{query:B},function(u){if(!(F!==void 0&&D.length>=F))return D.push(u.getValue()),u.continue()}).then(function(){return D})};
BL.prototype.keyPath=function(){return this.JSC$11009_wrapped.keyPath};
BL.prototype.unique=function(){return this.JSC$11009_wrapped.unique};
_.go=function(G,B,F){G=G.JSC$11009_wrapped.openCursor(B.query===void 0?null:B.query,B.direction===void 0?"next":B.direction);return $aw(G).then(function(D){return o9o(D,F)})};
iw=function(G,B){this.request=G;this.cursor=B};
$aw=function(G){return bX(G).then(function(B){return B?new iw(G,B):null})};
iw.prototype.continue=function(G){this.cursor.continue(G);return $aw(this.request)};
iw.prototype.delete=function(){return bX(this.cursor.delete()).then(function(){})};
iw.prototype.getValue=function(){return this.cursor.value};
iw.prototype.update=function(G){return bX(this.cursor.update(G))};var F7=function(G,B){this.name=G;this.options=B;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},bRG;
F7.prototype.openDb=function(G,B,F){F=F===void 0?{}:F;return p2o(G,B,F)};
F7.prototype.delete=function(G){G=G===void 0?{}:G;return _.MS(this.name,G)};
bRG=function(G,B){return new kK("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:B})};
_.p8=function(G,B){if(!B)throw eE("openWithToken",WQ(G.name));return G.open()};
F7.prototype.open=function(){var G=this;if(!this.isCompatible)throw bRG(this);if(this.connectionPromise)return this.connectionPromise;var B,F=function(){G.connectionPromise===B&&(G.connectionPromise=void 0)},D={blocking:function(R){R.close()},
closed:F,terminated:F,upgrade:this.options.upgrade},u=function(){var R,N,y,U,q,h,K,a,m,L;return _.n(function(W){switch(W.nextAddress){case 1:return N=(R=Error().stack)!=null?R:"",_.b5(W,2),W.yield(G.openDb(G.name,G.options.version,D),4);case 4:for(var e=y=W.yieldResult,b=G.options,M=[],t=_.C(Object.keys(b.objectStores)),T=t.next();!T.done;T=t.next()){T=T.value;var A=b.objectStores[T],Z=A.removedAtVersion===void 0?Number.MAX_VALUE:A.removedAtVersion;!(e.JSC$10984_wrapped.version>=A.addedAtVersion)||
e.JSC$10984_wrapped.version>=Z||e.JSC$10984_wrapped.objectStoreNames.contains(T)||M.push(T)}U=M;if(U.length===0){W.jumpTo(5);break}q=Object.keys(G.options.objectStores);h=y.objectStoreNames();if(G.timesReopenedToFixMissingObjectStore<_.sD("ytidb_reopen_db_retries",0))return G.timesReopenedToFixMissingObjectStore++,y.close(),_.jE(new kK("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:q,foundObjectStores:h})),W.return(u());if(!(G.timesDeletedToFixMissingObjectStore<_.sD("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}G.timesDeletedToFixMissingObjectStore++;return W.yield(G.delete(),7);case 7:return _.jE(new kK("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:q,foundObjectStores:h})),W.return(u());case 6:throw new XTv(h,q);case 5:return W.return(y);case 2:K=_.Al(W);if(K instanceof DOMException?K.name!=="VersionError":"DOMError"in self&&K instanceof DOMError?K.name!=="VersionError":!(K instanceof Object&&"message"in K)||K.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return W.yield(G.openDb(G.name,void 0,Object.assign({},D,{upgrade:void 0})),9);case 9:a=W.yieldResult;m=a.JSC$10984_wrapped.version;if(G.options.version!==void 0&&m>G.options.version+1)throw a.close(),G.isCompatible=!1,bRG(G,m);return W.return(a);case 8:throw F(),K instanceof Error&&!_.X("ytidb_async_stack_killswitch")&&(K.stack=K.stack+"\n"+N.substring(N.indexOf("\n")+1)),$Dc(K,G.name,"",(L=G.options.version)!=null?L:-1);}})};
return this.connectionPromise=B=u()};var YXJ=new F7("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(G,B){B(1)&&bi(G,"databases",{keyPath:"actualName"})}});var fVJ,T8z=new function(){}(new function(){});new _.tc;var VDU=function(G,B){F7.call(this,G,B);this.options=B;ro(G)};
_.r(VDU,F7);var ipU=function(G,B){var F;return function(){F||(F=new VDU(G,B));return F}};
VDU.prototype.openDb=function(G,B,F){F=F===void 0?{}:F;return(this.options.shared?s9I:SXS)(G,B,Object.assign({},F))};
VDU.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?BKI:xD6)(this.name,G)};var vIL={},FaJ=tP("ytGcfConfig",{objectStores:(vIL.coldConfigStore={addedAtVersion:1},vIL.hotConfigStore={addedAtVersion:1},vIL),shared:!1,upgrade:function(G,B){B(1)&&(Vv(bi(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Vv(bi(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var oIy=function(){_.uz.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var G=_.Yf("yt.gcf.config.hotUpdateCallbacks");G?(this.localHotConfigJobQueue=[].concat(_.gi(G)),this.sharedHotConfigJobQueue=G):(this.sharedHotConfigJobQueue=[],_.IY("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.r(oIy,_.uz);oIy.prototype.disposeInternal=function(){for(var G=_.C(this.localHotConfigJobQueue),B=G.next();!B.done;B=G.next()){var F=this.sharedHotConfigJobQueue;B=F.indexOf(B.value);B>=0&&F.splice(B,1)}this.localHotConfigJobQueue.length=0;_.uz.prototype.disposeInternal.call(this)};var X0=function(){var G=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new oIy;this.TEST_ONLY={initializeConfigDb:function(){G.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return G.coldGlobalConfigGroup},
setHotConfigGroup:function(B){MDP(G,B)},
setHotHashData:function(B){G.setHotHashData(B)},
setColdConfigGroup:function(B){pTa(G,B)},
getColdHashData:function(){return G.coldHashData},
getHotHashData:function(){return G.hotHashData},
getHotConfigGroup:function(){return G.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return YqP()},
getExportedHotConfigGroup:function(){return Dz()},
getExportedColdHashData:function(){return _.Yf("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Yf("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){AJT(G)},
resetInstance:function(){G.setHotHashData(void 0);da7(G);delete X0.instance},
setDebounceTimer:function(B){G.debounceTimer=B},
getDebounceTimer:function(){return G.debounceTimer}}},JJq=function(){if(!X0.instance){var G=new X0;
X0.instance=G}return X0.instance},I4t=function(G){var B;
_.n(function(F){if(F.nextAddress==1)return _.X("start_client_gcf")||_.X("delete_gcf_config_db")?_.X("start_client_gcf")?F.yield(_.f8(),3):F.jumpTo(2):F.return();F.nextAddress!=2&&((B=F.yieldResult)&&_.lX()&&!_.X("delete_gcf_config_db")?(G.isConfigDbInitialized=!0,AJT(G)):(cJs(G),T5P(G)));return _.X("delete_gcf_config_db")?F.yield(NKl(),0):F.jumpTo(0)})},QK=function(){var G;
return(G=Dz())!=null?G:_.v5("RAW_HOT_CONFIG_GROUP")},f4v=function(G){var B,F,D,u,R,N;
return _.n(function(y){switch(y.nextAddress){case 1:if(G.hotGlobalConfigGroup)return y.return(Dz());if(!G.isConfigDbInitialized)return B=eE("getHotConfig IDB not initialized"),_.Ae(B),y.return(Promise.reject(B));F=T0();D=_.v5("TIME_CREATED_MS");if(!F){u=eE("getHotConfig token error");_.Ae(u);y.jumpTo(2);break}return y.yield(CnL(F),3);case 3:if((R=y.yieldResult)&&R.timestamp>D)return MDP(G,R.config),G.setHotHashData(R.hashData),y.return(Dz());case 2:T5P(G);if(!(F&&G.hotGlobalConfigGroup&&G.hotHashData)){y.jumpTo(4);
break}return y.yield(uus(G.hotGlobalConfigGroup,G.hotHashData,F,D),4);case 4:return G.hotGlobalConfigGroup?y.return(Dz()):(N=new _.Uf("Config not available in ytConfig"),_.Ae(N),y.return(Promise.reject(N)))}})},ZRy=function(G){var B,F,D,u,R,N;
return _.n(function(y){switch(y.nextAddress){case 1:if(G.coldGlobalConfigGroup)return y.return(YqP());if(!G.isConfigDbInitialized)return B=eE("getColdConfig IDB not initialized"),_.Ae(B),y.return(Promise.reject(B));F=T0();D=_.v5("TIME_CREATED_MS");if(!F){u=eE("getColdConfig");_.Ae(u);y.jumpTo(2);break}return y.yield(wmU(F),3);case 3:if((R=y.yieldResult)&&R.timestamp>D)return pTa(G,R.config),tDU(G,R.configData),da7(G,R.hashData),y.return(YqP());case 2:cJs(G);if(!(F&&G.coldGlobalConfigGroup&&G.coldHashData&&
G.configData)){y.jumpTo(4);break}return y.yield(Rcg(G.coldGlobalConfigGroup,G.coldHashData,G.configData,F,D),4);case 4:return G.coldGlobalConfigGroup?y.return(YqP()):(N=new _.Uf("Config not available in ytConfig"),_.Ae(N),y.return(Promise.reject(N)))}})},AJT=function(G){if(!G.hotGlobalConfigGroup||!G.coldGlobalConfigGroup){if(!T0()){var B=eE("scheduleGetConfigs");
_.Ae(B)}G.initJob||(G.initJob=_.Lu.addLowPriorityJob(function(){return _.n(function(F){switch(F.nextAddress){case 1:return _.b5(F,2),F.yield(f4v(G),4);case 4:_.oY(F,3);break;case 2:_.Al(F);case 3:return _.b5(F,5),F.yield(ZRy(G),7);case 7:_.oY(F,6);break;case 5:_.Al(F);case 6:G.initJob&&(G.initJob=0),_.di(F)}})},100))}},DjM=function(G,B,F){var D,u,R;
return _.n(function(N){switch(N.nextAddress){case 1:if(!_.X("start_client_gcf")){N.jumpTo(0);break}F&&MDP(G,F);G.setHotHashData(B);D=T0();if(!D){N.jumpTo(3);break}if(F){N.jumpTo(4);break}return N.yield(CnL(D),5);case 5:u=N.yieldResult,F=(R=u)==null?void 0:R.config;case 4:return N.yield(uus(F,B,D),3);case 3:if(F)for(var y=F,U=_.C(G.configUpdateService.sharedHotConfigJobQueue),q=U.next();!q.done;q=U.next())q=q.value,q(y);_.di(N)}})},ujl=function(G,B,F){var D,u,R,N;
return _.n(function(y){if(y.nextAddress==1){if(!_.X("start_client_gcf"))return y.jumpTo(0);da7(G,B);return(D=T0())?F?y.jumpTo(4):y.yield(wmU(D),5):y.jumpTo(0)}y.nextAddress!=4&&(u=y.yieldResult,F=(R=u)==null?void 0:R.config);if(!F)return y.jumpTo(0);N=F.configData;return y.yield(Rcg(F,B,N,D),0)})},kBz=function(){var G=JJq(),B=(0,_.Zl)()-G.debounceTimer;
if(!(G.debounceTimer!==0&&B<_.sD("send_config_hash_timer"))){B=_.Yf("yt.gcf.config.coldConfigData");var F=_.Yf("yt.gcf.config.hotHashData"),D=_.Yf("yt.gcf.config.coldHashData");B&&F&&D&&(G.debounceTimer=(0,_.Zl)());return{coldConfigData:B,hotHashData:F,coldHashData:D}}},cJs=function(G){pTa(G,_.v5("RAW_COLD_CONFIG_GROUP"));
da7(G,_.v5("SERIALIZED_COLD_HASH_DATA"));var B;tDU(G,(B=G.coldGlobalConfigGroup)==null?void 0:B.configData)},T5P=function(G){MDP(G,_.v5("RAW_HOT_CONFIG_GROUP"));
G.setHotHashData(_.v5("SERIALIZED_HOT_HASH_DATA"))},MDP=function(G,B){G.hotGlobalConfigGroup=B;
_.IY("yt.gcf.config.hotConfigGroup",G.hotGlobalConfigGroup||null)},pTa=function(G,B){G.coldGlobalConfigGroup=B;
_.IY("yt.gcf.config.coldConfigGroup",G.coldGlobalConfigGroup||null)};
X0.prototype.setHotHashData=function(G){this.hotHashData=G;_.IY("yt.gcf.config.hotHashData",this.hotHashData||null)};
var da7=function(G,B){G.coldHashData=B;_.IY("yt.gcf.config.coldHashData",G.coldHashData||null)},tDU=function(G,B){G.configData=B;
_.IY("yt.gcf.config.coldConfigData",G.configData||null)},Dz=function(){return _.Yf("yt.gcf.config.hotConfigGroup")},YqP=function(){return _.Yf("yt.gcf.config.coldConfigGroup")};var ui={},gIv=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";ui.assign=function(G){for(var B=Array.prototype.slice.call(arguments,1);B.length;){var F=B.shift();if(F){if(typeof F!=="object")throw new TypeError("ad`"+F);for(var D in F)Object.prototype.hasOwnProperty.call(F,D)&&(G[D]=F[D])}}return G};
ui.shrinkBuf=function(G,B){if(G.length===B)return G;if(G.subarray)return G.subarray(0,B);G.length=B;return G};
var SqU={arraySet:function(G,B,F,D,u){if(B.subarray&&G.subarray)G.set(B.subarray(F,F+D),u);else for(var R=0;R<D;R++)G[u+R]=B[F+R]},
flattenChunks:function(G){var B,F;var D=F=0;for(B=G.length;D<B;D++)F+=G[D].length;var u=new Uint8Array(F);D=F=0;for(B=G.length;D<B;D++){var R=G[D];u.set(R,F);F+=R.length}return u}},sgG={arraySet:function(G,B,F,D,u){for(var R=0;R<D;R++)G[u+R]=B[F+R]},
flattenChunks:function(G){return[].concat.apply([],G)}};
ui.setTyped=function(){gIv?(ui.Buf8=Uint8Array,ui.Buf16=Uint16Array,ui.Buf32=Int32Array,ui.assign(ui,SqU)):(ui.Buf8=Array,ui.Buf16=Array,ui.Buf32=Array,ui.assign(ui,sgG))};
ui.setTyped();var xaT=!0;try{new Uint8Array(1)}catch(G){xaT=!1}
var CAs=function(G){var B,F,D=G.length,u=0;for(B=0;B<D;B++){var R=G.charCodeAt(B);if((R&64512)===55296&&B+1<D){var N=G.charCodeAt(B+1);(N&64512)===56320&&(R=65536+(R-55296<<10)+(N-56320),B++)}u+=R<128?1:R<2048?2:R<65536?3:4}var y=new ui.Buf8(u);for(B=F=0;F<u;B++)R=G.charCodeAt(B),(R&64512)===55296&&B+1<D&&(N=G.charCodeAt(B+1),(N&64512)===56320&&(R=65536+(R-55296<<10)+(N-56320),B++)),R<128?y[F++]=R:(R<2048?y[F++]=192|R>>>6:(R<65536?y[F++]=224|R>>>12:(y[F++]=240|R>>>18,y[F++]=128|R>>>12&63),y[F++]=
128|R>>>6&63),y[F++]=128|R&63);return y};var g7l={};g7l=function(G,B,F,D){var u=G&65535|0;G=G>>>16&65535|0;for(var R;F!==0;){R=F>2E3?2E3:F;F-=R;do u=u+B[D++]|0,G=G+u|0;while(--R);u%=65521;G%=65521}return u|G<<16|0};for(var aB={},uw,Pfv=[],Gx7=0;Gx7<256;Gx7++){uw=Gx7;for(var B88=0;B88<8;B88++)uw=uw&1?3988292384^uw>>>1:uw>>>1;Pfv[Gx7]=uw}aB=function(G,B,F,D){F=D+F;for(G^=-1;D<F;D++)G=G>>>8^Pfv[(G^B[D])&255];return G^-1};var Nz={};Nz={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 pmz=[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],AVs=[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],wcI=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],tsJ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],UO=Array(576);Bo(UO);var qz=Array(60);Bo(qz);var wg=Array(512);Bo(wg);var RB=Array(256);Bo(RB);var Yj6=Array(29);Bo(Yj6);var dOo=Array(30);Bo(dOo);var D7L,uQz,R6l,FCL=!1;var j6;
j6=[new Qv(0,0,0,0,function(G,B){var F=65535;for(F>G.pending_buf_size-5&&(F=G.pending_buf_size-5);;){if(G.lookahead<=1){mO(G);if(G.lookahead===0&&B===0)return 1;if(G.lookahead===0)break}G.strstart+=G.lookahead;G.lookahead=0;var D=G.block_start+F;if(G.strstart===0||G.strstart>=D)if(G.lookahead=G.strstart-D,G.strstart=D,EO(G,!1),G.strm.avail_out===0)return 1;if(G.strstart-G.block_start>=G.w_size-262&&(EO(G,!1),G.strm.avail_out===0))return 1}G.insert=0;if(B===4)return EO(G,!0),G.strm.avail_out===0?3:
4;G.strstart>G.block_start&&EO(G,!1);return 1}),
new Qv(4,4,8,4,Sj8),new Qv(4,5,16,8,Sj8),new Qv(4,6,32,32,Sj8),new Qv(4,4,16,16,Xs),new Qv(8,16,32,32,Xs),new Qv(8,16,128,128,Xs),new Qv(8,32,128,256,Xs),new Qv(32,128,258,1024,Xs),new Qv(32,258,258,4096,Xs)];var iWg={};iWg=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 N3I=Object.prototype.toString;
B3l.prototype.push=function(G,B){var F=this.strm,D=this.options.chunkSize;if(this.ended)return!1;var u=B===~~B?B:B===!0?4:0;typeof G==="string"?F.input=CAs(G):N3I.call(G)==="[object ArrayBuffer]"?F.input=new Uint8Array(G):F.input=G;F.next_in=0;F.avail_in=F.input.length;do{F.avail_out===0&&(F.output=new ui.Buf8(D),F.next_out=0,F.avail_out=D);G=Ga8(F,u);if(G!==1&&G!==0)return iJq(this,G),this.ended=!0,!1;if(F.avail_out===0||F.avail_in===0&&(u===4||u===2))if(this.options.to==="string"){var R=ui.shrinkBuf(F.output,
F.next_out);B=R;R=R.length;if(R<65537&&(B.subarray&&xaT||!B.subarray))B=String.fromCharCode.apply(null,ui.shrinkBuf(B,R));else{for(var N="",y=0;y<R;y++)N+=String.fromCharCode(B[y]);B=N}this.chunks.push(B)}else B=ui.shrinkBuf(F.output,F.next_out),this.chunks.push(B)}while((F.avail_in>0||F.avail_out===0)&&G!==1);if(u===4)return(F=this.strm)&&F.state?(D=F.state.status,D!==42&&D!==69&&D!==73&&D!==91&&D!==103&&D!==113&&D!==666?G=yv(F,-2):(F.state=null,G=D===113?yv(F,-3):0)):G=-2,iJq(this,G),this.ended=
!0,G===0;u===2&&(iJq(this,0),F.avail_out=0);return!0};
var iJq=function(G,B){B===0&&(G.result=G.options.to==="string"?G.chunks.join(""):ui.flattenChunks(G.chunks));G.chunks=[];G.err=B;G.msg=G.strm.msg};var FDL=typeof TextEncoder!=="undefined"?new TextEncoder:null,pcU=FDL?function(G){return FDL.encode(G)}:function(G){G=_.ul(G);
for(var B=new Uint8Array(G.length),F=0;F<B.length;F++)B[F]=G[F];return B};var Byg={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Fol={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var R6=function(G,B){this.version=G;this.args=B};
R6.prototype.serialize=function(){return{version:this.version,args:this.args}};var qFL=function(G,B){this.topic=G;this.dataClass=B};
qFL.prototype.toString=function(){return this.topic};var DDs=_.Yf("ytPubsub2Pubsub2Instance")||new _.RY;_.RY.prototype.subscribe=_.RY.prototype.subscribe;_.RY.prototype.unsubscribeByKey=_.RY.prototype.unsubscribeByKey;_.RY.prototype.publish=_.RY.prototype.publish;_.RY.prototype.clear=_.RY.prototype.clear;_.IY("ytPubsub2Pubsub2Instance",DDs);var U7g=_.Yf("ytPubsub2Pubsub2SubscribedKeys")||{};_.IY("ytPubsub2Pubsub2SubscribedKeys",U7g);var h6l=_.Yf("ytPubsub2Pubsub2TopicToKeys")||{};_.IY("ytPubsub2Pubsub2TopicToKeys",h6l);
var ETo=_.Yf("ytPubsub2Pubsub2IsAsync")||{};_.IY("ytPubsub2Pubsub2IsAsync",ETo);_.IY("ytPubsub2Pubsub2SkipSubKey",null);var HWQ=void 0,rSz=void 0;var vT6=_.sD("max_body_size_to_compress",5E5),oTo=_.sD("min_body_size_to_compress",500),Ho=!0,d7l=0,kr=0,ASl=_.sD("compression_performance_threshold_lr",250),cSM=_.sD("slow_compressions_before_abandon_count",4),e6L=!1,$7L=new Map,MIl=1;_.IC(OO,IOS);OO.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 u9N=function(G,B,F){F||(F=0);var D=G.W_;if(typeof B==="string")for(var u=0;u<16;u++)D[u]=B.charCodeAt(F)<<24|B.charCodeAt(F+1)<<16|B.charCodeAt(F+2)<<8|B.charCodeAt(F+3),F+=4;else for(u=0;u<16;u++)D[u]=B[F]<<24|B[F+1]<<16|B[F+2]<<8|B[F+3],F+=4;for(B=16;B<80;B++)F=D[B-3]^D[B-8]^D[B-14]^D[B-16],D[B]=(F<<1|F>>>31)&4294967295;B=G.chain_[0];F=G.chain_[1];u=G.chain_[2];for(var R=G.chain_[3],N=G.chain_[4],y,U,q=0;q<80;q++)q<40?q<20?(y=R^F&(u^R),U=1518500249):(y=F^u^R,U=1859775393):q<60?(y=F&u|R&(F|u),
U=2400959708):(y=F^u^R,U=3395469782),y=(B<<5|B>>>27)+y+N+U+D[q]&4294967295,N=R,R=u,u=(F<<30|F>>>2)&4294967295,F=B,B=y;G.chain_[0]=G.chain_[0]+B&4294967295;G.chain_[1]=G.chain_[1]+F&4294967295;G.chain_[2]=G.chain_[2]+u&4294967295;G.chain_[3]=G.chain_[3]+R&4294967295;G.chain_[4]=G.chain_[4]+N&4294967295};
OO.prototype.update=function(G,B){if(G!=null){B===void 0&&(B=G.length);for(var F=B-this.blockSize,D=0,u=this.buf_,R=this.inbuf_;D<B;){if(R==0)for(;D<=F;)u9N(this,G,D),D+=this.blockSize;if(typeof G==="string")for(;D<B;){if(u[R]=G.charCodeAt(D),++R,++D,R==this.blockSize){u9N(this,u);R=0;break}}else for(;D<B;)if(u[R]=G[D],++R,++D,R==this.blockSize){u9N(this,u);R=0;break}}this.inbuf_=R;this.total_+=B}};
OO.prototype.digest=function(){var G=[],B=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var F=this.blockSize-1;F>=56;F--)this.buf_[F]=B&255,B/=256;u9N(this,this.buf_);for(F=B=0;F<5;F++)for(var D=24;D>=0;D-=8)G[B]=this.chain_[F]>>D&255,++B;return G};var ZWg;var Cd=function(G){var B=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(h){B.databaseToken=h},
triggerThrottle:function(){B.throttledSend()},
cancelThrottle:function(){B.cancelThrottledSend()},
immediateSend:function(h){return _.n(function(K){return K.yield(B.immediateSend(h),0)})},
requestWithinAgeLimit:function(h,K){return B.requestWithinAgeLimit(h,K)},
retryQueuedRequests:function(){B.retryQueuedRequests()}};
var F;this.throttleTimeout=(F=G.throttleTimeout)!=null?F:100;var D;this.retryMaxAttempts=(D=G.retryMaxAttempts)!=null?D:1;var u;this.requestAgeLimitMs=(u=G.requestAgeLimitMs)!=null?u:2592E6;var R;this.queuedRequestAgeLimitMs=(R=G.queuedRequestAgeLimitMs)!=null?R:12E4;var N;this.retryDelayMs=(N=G.retryDelayMs)!=null?N:5E3;var y;this.databaseToken=(y=G.databaseToken)!=null?y:void 0;this.enableCleaning=!!G.enableCleaning;var U;this.cleaningRate=(U=G.cleaningRate)!=null?U:.1;var q;this.potentialEsfErrorLimit=
(q=G.potentialEsfErrorLimit)!=null?q:10;G.handleError&&(this.handleError=G.handleError);G.handleWarning&&(this.handleWarning=G.handleWarning);G.disableYtIdbTransactions&&(this.disableYtIdbTransactions=G.disableYtIdbTransactions);G.bypassDbTokenDependency&&(this.bypassDbTokenDependency=G.bypassDbTokenDependency);this.getBooleanFlag=G.getBooleanFlag;this.jobManager=G.jobManager;this.logsStore=G.logsStore;this.networkManager=G.networkManager;this.sendFn=G.sendFn;this.onlineEvent=G.onlineEvent;this.offlineEvent=
G.offlineEvent;wL(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&RSq(this)},RSq=function(G){wL(G)&&!G.disableYtIdbTransactions&&(G.initialized=!0,G.enableCleaning&&Math.random()<=G.cleaningRate&&G.logsStore.cleanLogsStore(G.databaseToken),G.retryQueuedRequests(),G.networkManager.isNetworkAvailable()&&G.throttledSend(),G.networkManager.listen(G.onlineEvent,G.throttledSend.bind(G)),G.networkManager.listen(G.offlineEvent,G.cancelThrottledSend.bind(G)))};
_.w=Cd.prototype;_.w.writeThenSend=function(G,B){var F=this;B=B===void 0?{}:B;if(wL(this)&&this.initialized){var D={url:G,options:B,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(D,this.databaseToken).then(function(u){D.id=u;F.networkManager.isNetworkAvailable()&&F.immediateSend(D)}).catch(function(u){F.immediateSend(D);
w2v(F,u)})}else this.sendFn(G,B)};
_.w.sendThenWrite=function(G,B,F){var D=this;B=B===void 0?{}:B;if(wL(this)&&this.initialized){var u={url:G,options:B,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(u.skipRetry=F);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!u.skipRetry){if(!u.skipRetry){var R=B.onError?B.onError:function(){};
B.onError=function(N,y){return _.n(function(U){if(U.nextAddress==1)return U.yield(D.logsStore.set(u,D.databaseToken).catch(function(q){w2v(D,q)}),2);
R(N,y);_.di(U)})}}this.sendFn(G,B,u.skipRetry)}else this.logsStore.set(u,this.databaseToken).catch(function(N){D.sendFn(G,B,u.skipRetry);
w2v(D,N)})}else this.sendFn(G,B,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&F)};
_.w.sendAndWrite=function(G,B){var F=this;B=B===void 0?{}:B;if(wL(this)&&this.initialized){var D={url:G,options:B,timestamp:this.now(),status:"NEW",sendCount:0},u=!1,R=B.onSuccess?B.onSuccess:function(){};
D.options.onSuccess=function(N,y){D.id!==void 0?F.logsStore.deleteRequest(D.id,F.databaseToken):u=!0;F.networkManager.networkStatusHint&&F.getBooleanFlag&&F.getBooleanFlag("vss_network_hint")&&F.networkManager.networkStatusHint(!0);R(N,y)};
this.sendFn(D.url,D.options,void 0,!0);this.logsStore.set(D,this.databaseToken).then(function(N){D.id=N;u&&F.logsStore.deleteRequest(D.id,F.databaseToken)}).catch(function(N){w2v(F,N)})}else this.sendFn(G,B,void 0,!0)};
_.w.throttledSend=function(){var G=this;if(!wL(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G.logsStore.getMostRecentByStatus("NEW",G.databaseToken),2);if(F.nextAddress!=3)return B=F.yieldResult,B?F.yield(G.immediateSend(B),3):(G.cancelThrottledSend(),F.return());G.intervalJob&&(G.intervalJob=0,G.throttledSend());_.di(F)})},this.throttleTimeout))};
_.w.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.w.immediateSend=function(G){var B=this,F;return _.n(function(D){switch(D.nextAddress){case 1:if(!wL(B))throw Error("ed");if(G.id===void 0){D.jumpTo(2);break}return D.yield(B.logsStore.markAsQueued(G.id,B.databaseToken),3);case 3:(F=D.yieldResult)||B.handleWarning(Error("fd"));case 2:if(B.requestWithinAgeLimit(G,B.requestAgeLimitMs)){D.jumpTo(4);break}B.handleWarning(Error("gd"));if(G.id===void 0){D.jumpTo(5);break}return D.yield(B.logsStore.deleteRequest(G.id,B.databaseToken),5);case 5:return D.return();
case 4:G.skipRetry||(G=CoT(B,G));if(!G){D.jumpTo(0);break}if(!G.skipRetry||G.id===void 0){D.jumpTo(8);break}return D.yield(B.logsStore.deleteRequest(G.id,B.databaseToken),8);case 8:B.sendFn(G.url,G.options,!!G.skipRetry),_.di(D)}})};
var CoT=function(G,B){if(!wL(G))throw Error("hd");var F=B.options.onError?B.options.onError:function(){};
B.options.onError=function(u,R){var N,y,U,q;return _.n(function(h){switch(h.nextAddress){case 1:N=PAJ(R);(y=Gmo(R))&&G.getBooleanFlag&&G.getBooleanFlag("web_enable_error_204")&&G.handleError(Error("id"),B.url,R);if(!(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&N||G.getBooleanFlag&&!G.getBooleanFlag("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.potentialEsfErrorLimit)){h.jumpTo(2);break}if(!G.networkManager.sendNetworkCheckRequest){h.jumpTo(3);break}return h.yield(G.networkManager.sendNetworkCheckRequest(),
3);case 3:if(G.networkManager.isNetworkAvailable()){h.jumpTo(2);break}F(u,R);if(!G.getBooleanFlag||!G.getBooleanFlag("nwl_consider_error_code")||((U=B)==null?void 0:U.id)===void 0){h.jumpTo(6);break}return h.yield(G.logsStore.resetRequest(B.id,G.databaseToken,!1),6);case 6:return h.return();case 2:if(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&!N&&G.potentialEsfErrorCounter>G.potentialEsfErrorLimit)return h.return();G.potentialEsfErrorCounter++;if(((q=B)==null?void 0:q.id)===void 0){h.jumpTo(8);
break}return B.sendCount<G.retryMaxAttempts?h.yield(G.logsStore.resetRequest(B.id,G.databaseToken,!0,y?!1:void 0),12):h.yield(G.logsStore.deleteRequest(B.id,G.databaseToken),8);case 12:G.jobManager.addLowPriorityJob(function(){G.networkManager.isNetworkAvailable()&&G.throttledSend()},G.retryDelayMs);
case 8:F(u,R),_.di(h)}})};
var D=B.options.onSuccess?B.options.onSuccess:function(){};
B.options.onSuccess=function(u,R){var N;return _.n(function(y){if(y.nextAddress==1)return((N=B)==null?void 0:N.id)===void 0?y.jumpTo(2):y.yield(G.logsStore.deleteRequest(B.id,G.databaseToken),2);G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);D(u,R);_.di(y)})};
return B};
Cd.prototype.requestWithinAgeLimit=function(G,B){G=G.timestamp;return this.now()-G>=B?!1:!0};
Cd.prototype.retryQueuedRequests=function(){var G=this;if(!wL(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(B){B&&!G.requestWithinAgeLimit(B,G.queuedRequestAgeLimitMs)?G.jobManager.addLowPriorityJob(function(){return _.n(function(F){if(F.nextAddress==1)return B.id===void 0?F.jumpTo(2):F.yield(G.logsStore.resetRequest(B.id,G.databaseToken),2);G.retryQueuedRequests();_.di(F)})}):G.networkManager.isNetworkAvailable()&&G.throttledSend()})};
var w2v=function(G,B){G.writeError&&!G.networkManager.isNetworkAvailable()?G.writeError(B):G.handleError(B)},wL=function(G){return!!G.databaseToken||G.bypassDbTokenDependency};var BJQ;var NCQ={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,
appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,
webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,
parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,
prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,
sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,
parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,
biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,
youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,
crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,
embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var N8s={},nNM=tP("ServiceWorkerLogsDatabase",{objectStores:(N8s.SWHealthLog={addedAtVersion:1},N8s),shared:!0,upgrade:function(G,B){B(1)&&Vv(bi(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var mhS={},aez=0;var Lrc;var NQ=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Yr=function(){if(!NQ.instance){var G=_.Yf("yt.networkRequestMonitor.instance")||new NQ;
_.IY("yt.networkRequestMonitor.instance",G);NQ.instance=G}return NQ.instance};
NQ.prototype.requestComplete=function(G,B){B&&(this.anyRequestHasSucceeded=!0);G=this.removeParams(G);this.requestMap.get(G)||this.requestMap.set(G,B)};
NQ.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.requestMap.get(G))?!1:G===!1&&this.anyRequestHasSucceeded?!0:null};
NQ.prototype.removeParams=function(G){return G.split("?")[0]};
NQ.prototype.removeParams=NQ.prototype.removeParams;NQ.prototype.isEndpointCFR=NQ.prototype.isEndpointCFR;NQ.prototype.requestComplete=NQ.prototype.requestComplete;NQ.getInstance=Yr;var ye=function(G){_.W1.call(this);var B=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=G!=null?G:{addLowPriorityJob:function(u,R){return setTimeout(u,R)},
cancelJob:function(u){clearTimeout(u)}};
var F,D;this.isOnline=(D=(F=window.navigator)==null?void 0:F.onLine)!=null?D:!0;this.onNavigatorChange=function(){return _.n(function(u){return u.yield(ycv(B),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||n9G(this)};
_.r(ye,_.W1);ye.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete ye.instance};
ye.prototype.isNetworkAvailable=function(){return this.isOnline};
var n9G=function(G){G.pollingJob=G.jobManager.addLowPriorityJob(function(){var B;return _.n(function(F){if(F.nextAddress==1)return G.isOnline?((B=window.navigator)==null?0:B.onLine)?F.jumpTo(3):F.yield(ycv(G),3):F.yield(ycv(G),3);n9G(G);_.di(F)})},3E4)},ycv=function(G,B){return G.networkRequestPromise?G.networkRequestPromise:G.networkRequestPromise=new Promise(function(F){var D,u,R,N;
return _.n(function(y){switch(y.nextAddress){case 1:return D=window.AbortController?new window.AbortController:void 0,R=(u=D)==null?void 0:u.signal,N=!1,_.b5(y,2,3),D&&(G.abortTimeoutKey=G.jobManager.addLowPriorityJob(function(){D.abort()},B||2E4)),y.yield(fetch("/generate_204",{method:"HEAD",
signal:R}),5);case 5:N=!0;case 3:_.vY(y);G.networkRequestPromise=void 0;G.abortTimeoutKey&&(G.jobManager.cancelJob(G.abortTimeoutKey),G.abortTimeoutKey=0);N!==G.isOnline&&(G.isOnline=N,G.isOnline?G.dispatchEvent("networkstatus-online"):G.dispatchEvent("networkstatus-offline"));F(N);_.Yd(y,0);break;case 2:_.Al(y),N=!1,y.jumpTo(3)}})})};var nd=function(){_.W1.call(this);var G=this;this.shouldFlushErrors=!1;ye.instance||(ye.instance=new ye(_.Lu));this.sharedNetworkStatusManager=ye.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(G.shouldFlushErrors&&_.X("offline_error_handling")){var B=rxM().get("errors",!0);if(B){for(var F in B)if(B[F]){var D=new _.Uf(F,"sent via offline_errors");D.name=B[F].name;D.stack=B[F].stack;D.level=B[F].level;_.Mn(D)}rxM().set("errors",{},2592E3,!0)}}})};
_.r(nd,_.W1);var lVG=function(){if(!nd.instance){var G=_.Yf("yt.networkStatusManager.instance")||new nd;_.IY("yt.networkStatusManager.instance",G);nd.instance=G}return nd.instance};
_.w=nd.prototype;_.w.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.w.networkStatusHint=function(G){this.sharedNetworkStatusManager.isOnline=G};
_.w.getWindowStatus=function(){var G=window.navigator.onLine;return G===void 0?!0:G};
_.w.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.w.listen=function(G,B){return this.sharedNetworkStatusManager.listen(G,B)};
_.w.sendNetworkCheckRequest=function(G){G=ycv(this.sharedNetworkStatusManager,G);G.then(function(B){_.X("use_cfr_monitor")&&Yr().requestComplete("generate_204",B)});
return G};
nd.prototype.sendNetworkCheckRequest=nd.prototype.sendNetworkCheckRequest;nd.prototype.listen=nd.prototype.listen;nd.prototype.enableErrorFlushing=nd.prototype.enableErrorFlushing;nd.prototype.getWindowStatus=nd.prototype.getWindowStatus;nd.prototype.networkStatusHint=nd.prototype.networkStatusHint;nd.prototype.isNetworkAvailable=nd.prototype.isNetworkAvailable;nd.getInstance=lVG;_.pu=function(G){G=G===void 0?{}:G;_.W1.call(this);var B=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=lVG();var F=_.Yf("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);F&&(G.rateLimit?(this.rateLimit=G.rateLimit,F("networkstatus-online",function(){UDv(B,"publicytnetworkstatus-online")}),F("networkstatus-offline",function(){UDv(B,"publicytnetworkstatus-offline")})):(F("networkstatus-online",function(){B.dispatchEvent("publicytnetworkstatus-online")}),F("networkstatus-offline",
function(){B.dispatchEvent("publicytnetworkstatus-offline")})))};
_.r(_.pu,_.W1);_.pu.prototype.isNetworkAvailable=function(){var G=_.Yf("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.nsmInstance)():!0};
_.pu.prototype.networkStatusHint=function(G){var B=_.Yf("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);B&&B(G)};
_.pu.prototype.sendNetworkCheckRequest=function(G){var B=this,F;return _.n(function(D){F=_.Yf("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(B.nsmInstance);return _.X("skip_network_check_if_cfr")&&Yr().isEndpointCFR("generate_204")?D.return(new Promise(function(u){var R;B.networkStatusHint(((R=window.navigator)==null?void 0:R.onLine)||!0);u(B.isNetworkAvailable())})):F?D.return(F(G)):D.return(!0)})};
var UDv=function(G,B){G.rateLimit?G.lastJobTime?(_.Lu.cancelJob(G.schedulerJob),G.schedulerJob=_.Lu.addLowPriorityJob(function(){G.lastPublicSignalSent!==B&&(G.dispatchEvent(B),G.lastPublicSignalSent=B,G.lastJobTime=(0,_.Zl)())},G.rateLimit-((0,_.Zl)()-G.lastJobTime))):(G.dispatchEvent(B),G.lastPublicSignalSent=B,G.lastJobTime=(0,_.Zl)()):G.dispatchEvent(B)};var etM,lw=function(){Cd.call(this,{logsStore:{cleanLogsStore:NJg,deleteRequest:C4S,getMostRecentByStatus:u1U,markAsQueued:Rtz,resetRequest:wrg,set:Dhl},networkManager:_.$hz(),handleError:function(G,B,F){var D,u=F==null?void 0:(D=F.error)==null?void 0:D.code;if(u===400||u===415){var R;G=new _.Uf(G.message,B,F==null?void 0:(R=F.error)==null?void 0:R.code);_.Ae(G,void 0,void 0,void 0,!0)}else _.Mn(G)},
handleWarning:_.Ae,sendFn:kmo,now:_.Zl,writeError:Wrz,jobManager:_.Kx(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.sD("potential_esf_error_limit",10),getBooleanFlag:_.X,disableYtIdbTransactions:!(_.lX()&&_.ztl())});this.initializationPromise=new _.tc;_.X("networkless_immediately_drop_all_requests")&&yxz();BKI("LogsDatabaseV2")};
_.r(lw,Cd);_.E9L=function(){var G=_.Yf("yt.networklessRequestController.instance");G||(G=new lw,_.IY("yt.networklessRequestController.instance",G),_.X("networkless_logging")&&_.f8().then(function(B){G.databaseToken=B;RSq(G);G.initializationPromise.resolve();G.enableCleaning&&Math.random()<=G.cleaningRate&&G.databaseToken&&Uho(G.databaseToken);_.X("networkless_immediately_drop_sw_health_store")&&qXt(G)}));
return G};
lw.prototype.writeThenSend=function(G,B){B||(B={});B=Ok8(G,B);_.lX()||(this.initialized=!1);Cd.prototype.writeThenSend.call(this,G,B)};
lw.prototype.sendThenWrite=function(G,B,F){B||(B={});B=Ok8(G,B);_.lX()||(this.initialized=!1);Cd.prototype.sendThenWrite.call(this,G,B,F)};
lw.prototype.sendAndWrite=function(G,B){B||(B={});B=Ok8(G,B);_.lX()||(this.initialized=!1);Cd.prototype.sendAndWrite.call(this,G,B)};
lw.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var qXt=function(G){var B;_.n(function(F){if(!G.databaseToken)throw B=eE("clearSWHealthLogsDb"),B;return F.return(q_M(G.databaseToken).catch(function(D){G.handleError(D)}))})};_.VFg=!1;_.bkg=_.Fz.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.VFg};_.IY("ytNetworklessLoggingInitializationOptions",_.bkg);var ra=function(G){var B=this;this.config_=null;G?this.config_=G:yVQ()&&(this.config_=_.SE());_.mX(_.Lu,function(){x7Q(B)},5E3)};
ra.prototype.isReady=function(){!this.config_&&yVQ()&&(this.config_=_.SE());return!!this.config_};
var syU=function(G,B,F,D){!_.v5("VISITOR_DATA")&&B!=="visitor_id"&&Math.random()<.01&&_.Ae(new _.Uf("Missing VISITOR_DATA when sending innertube request.",B,F,D));if(!G.isReady()){var u=new _.Uf("innertube xhrclient not ready",B,F,D);_.Mn(u);throw u;}var R={headers:D.headers||{},method:"POST",postParams:F,postBody:D.postBody,postBodyFormat:D.postBodyFormat||"JSON",onTimeout:function(){D.onTimeout()},
onFetchTimeout:D.onTimeout,onSuccess:function(K,a){if(D.onSuccess)D.onSuccess(a)},
onFetchSuccess:function(K){if(D.onSuccess)D.onSuccess(K)},
onProgress:function(K){if(D.onProgress)D.onProgress(K)},
onError:function(K,a){if(D.onError)D.onError(a)},
onFetchError:function(K){if(D.onError)D.onError(K)},
timeout:D.timeout,withCredentials:!0,compress:D.compress};R.headers["Content-Type"]||(R.headers["Content-Type"]="application/json");var N="";(u=G.config_.innertubeHostOverride)&&(N=u);var y=G.config_.innertubeUseThirdPartyAuth||!1,U=_.Hpg(y,N,D);Object.assign(R.headers,U);R.headers.Authorization&&!N&&y&&(R.headers["x-origin"]=window.location.origin);var q=_.TJ(N+("/youtubei/"+G.config_.innertubeApiVersion+"/"+B),{alt:"json"}),h=function(K){K=K===void 0?!1:K;var a;if(D.retry&&N!="www.youtube-nocookie.com"&&
(K||_.X("skip_ls_gel_retry")||R.headers["Content-Type"]!=="application/json"||(a=gTI(B,F,U,y)),a)){var m=R.onSuccess,L=R.onFetchSuccess;R.onSuccess=function(b,M){SFc(a);m(b,M)};
F.onFetchSuccess=function(b,M){SFc(a);L(b,M)}}try{if(K&&D.retry&&!D.networklessOptions.bypassNetworkless)R.method="POST",D.networklessOptions.writeThenSend?_.E9L().writeThenSend(q,R):_.E9L().sendAndWrite(q,R);
else if(D.compress){var W=!D.networklessOptions.writeThenSend;if(R.postBody){var e=R.postBody;typeof e!=="string"&&(e=JSON.stringify(R.postBody));YF8(q,e,R,_.uX,W)}else YF8(q,JSON.stringify(R.postParams),R,ZRl,W)}else ZRl(q,R)}catch(b){if(b.name==="InvalidAccessError")a&&(SFc(a),a=0),_.Ae(Error("kd"));else throw b;}a&&_.mX(_.Lu,function(){x7Q(G)},5E3)};
_.vNQ()?twJ().then(function(K){h(K)}):h(!1)};var bMU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(bMU,_.q3);var hSq=0,MFl=_.Bz?"webkit":_.ih?"moz":_.ST?"ms":nDP?"o":"";_.IY("ytDomDomGetNextId",_.Yf("ytDomDomGetNextId")||function(){return++hSq});var KDq={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},TD=function(G){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(G=
G||window.event){this.event=G;for(var B in G)B in KDq||(this[B]=G[B]);this.scale=G.scale;this.rotation=G.rotation;var F=G.target||G.srcElement;F&&F.nodeType==3&&(F=F.parentNode);this.target=F;var D=G.relatedTarget;if(D)try{D=D.nodeName?D:null}catch(u){D=null}else this.type=="mouseover"?D=G.fromElement:this.type=="mouseout"&&(D=G.toElement);this.relatedTarget=D;this.clientX=G.clientX!=void 0?G.clientX:G.pageX;this.clientY=G.clientY!=void 0?G.clientY:G.pageY;this.keyCode=G.keyCode?G.keyCode:G.which;
this.charCode=G.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=G.altKey;this.ctrlKey=G.ctrlKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pageX_=G.pageX;this.pageY_=G.pageY}}catch(u){}},aVU=function(G){if(document.body&&document.documentElement){var B=document.body.scrollTop+document.documentElement.scrollTop;
G.pageX_=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.pageY_=G.clientY+B}};
TD.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
TD.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
TD.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var co=_.Fz.ytEventsEventsListeners||{};_.IY("ytEventsEventsListeners",co);var cxJ=_.Fz.ytEventsEventsCounter||{count:0};_.IY("ytEventsEventsCounter",cxJ);var TJs=_.El(function(){var G=!1;try{var B=Object.defineProperty({},"capture",{get:function(){G=!0}});
window.addEventListener("test",null,B)}catch(F){}return G});_.IC(fu,_.uz);fu.prototype.onMouseMove_=function(G){G.pageX_===void 0&&aVU(G);var B=G.pageX_;G.pageY_===void 0&&aVU(G);this.position_=new _.e5(B,G.pageY_)};
fu.prototype.checkPosition_=function(){if(this.position_){var G=(0,_.Zl)();if(this.previousTime_!=0){var B=this.previousPosition_,F=this.position_,D=B.x-F.x;B=B.y-F.y;D=Math.sqrt(D*D+B*B)/(G-this.previousTime_);this.cycles_[this.index_]=Math.abs((D-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(F=B=0;F<4;F++)B+=this.cycles_[F]||0;B>=3&&this.callback_();this.previousVelocity_=D}this.previousTime_=G;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
fu.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.IeS(this.mouseListenerKey_)};var S_6={};var FRL=new _.vf("rawColdConfigGroup");var ihI=new _.vf("rawHotConfigGroup");var mDa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(mDa,_.q3);var zAM=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(zAM,_.q3);var hb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G,500)};
_.r(hb,_.q3);hb.prototype.getPayloadCase=function(){return _.NV(this,X2w)};
hb.prototype.getContext=function(){return _.sf(this,zAM,33)};
var X2w=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var SRQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(SRQ,_.q3);var HAQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(HAQ,_.q3);HAQ.prototype.setVideoId=function(G){return uZ(this,1,knU,HS(G))};
HAQ.prototype.getPlaylistId=function(){return _.Pe(this,nZ(this,knU,2))};
var knU=[1,2];var Ru=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Ru,_.q3);Ru.prototype.getContext=function(){return _.sf(this,wa,1)};
Ru.prototype.getTier=function(){return _.aD(this,7)};
Ru.prototype.getRetryCount=function(){return _.AM(this,11)};var Q9L,S6,sO;Q9L=_.Fz.ytPubsubPubsubInstance||new _.RY;S6=_.Fz.ytPubsubPubsubSubscribedKeys||{};sO=_.Fz.ytPubsubPubsubTopicToKeys||{};_.sh6=_.Fz.ytPubsubPubsubIsSynchronous||{};_.RY.prototype.subscribe=_.RY.prototype.subscribe;_.RY.prototype.unsubscribeByKey=_.RY.prototype.unsubscribeByKey;_.RY.prototype.publish=_.RY.prototype.publish;_.RY.prototype.clear=_.RY.prototype.clear;_.IY("ytPubsubPubsubInstance",Q9L);_.IY("ytPubsubPubsubTopicToKeys",sO);_.IY("ytPubsubPubsubIsSynchronous",_.sh6);
_.IY("ytPubsubPubsubSubscribedKeys",S6);var Po=window;var U9=_.X("web_enable_lifecycle_monitoring")&&iAS()!==0,j9q=_.X("web_enable_lifecycle_monitoring");var LDs=function(G){var B=this;var F=F===void 0?0:F;var D=D===void 0?_.Kx():D;this.JSC$11205_defaultPriority=F;this.scheduler=D;this.completedResolver=new _.tc;this.scheduledPayloads=G;for(G={i$jscomp$495:0};G.i$jscomp$495<this.scheduledPayloads.length;G={payload$jscomp$20:void 0,i$jscomp$495:G.i$jscomp$495},G.i$jscomp$495++)G.payload$jscomp$20=this.scheduledPayloads[G.i$jscomp$495],F=function(u){return function(){u.payload$jscomp$20.job();B.scheduledPayloads[u.i$jscomp$495].processed=!0;B.scheduledPayloads.every(function(R){return R.processed===
!0})&&B.completedResolver.resolve()}}(G),D=this.getPriority(G.payload$jscomp$20),D=this.scheduler.addJob(F,D),this.scheduledPayloads[G.i$jscomp$495]=Object.assign({},G.payload$jscomp$20,{job:F,
jobId:D})};
LDs.prototype.flushJobs=function(){var G=this,B=Array.from(this.scheduledPayloads.keys()).sort(function(D,u){return G.getPriority(G.scheduledPayloads[u])-G.getPriority(G.scheduledPayloads[D])});
B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=this.scheduledPayloads[F.value],F.jobId===void 0||F.processed||(this.scheduler.cancelJob(F.jobId),this.scheduler.addJob(F.job,10))};
LDs.prototype.cancel=function(){for(var G=_.C(this.scheduledPayloads),B=G.next();!B.done;B=G.next())B=B.value,B.jobId===void 0||B.processed||this.scheduler.cancelJob(B.jobId),B.processed=!0;this.completedResolver.resolve()};
LDs.prototype.getPriority=function(G){var B;return(B=G.priority)!=null?B:this.JSC$11205_defaultPriority};var qQ=function(G){this.state=G;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};U9&&FAS(this.state)};
qQ.prototype.install=function(G){this.plugins.push(G);return this};
qQ.prototype.uninstall=function(){var G=this;_.xS.apply(0,arguments).forEach(function(B){B=G.plugins.indexOf(B);B>-1&&G.plugins.splice(B,1)})};
qQ.prototype.transition=function(G,B){var F=this;U9&&D6l(this.state);var D=this.transitions.find(function(R){return Array.isArray(R.from)?R.from.find(function(N){return N===F.state&&R.to===G}):R.from===F.state&&R.to===G});
if(D){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);rcv(this,G,B);this.state=G;U9&&FAS(this.state);D=D.action.bind(this);var u=this.plugins.filter(function(R){return R[G]}).map(function(R){return R[G]});
D(WDq(this,u),B)}else throw Error("ld`"+this.state+"`"+G);};
var WDq=function(G,B){var F=B.filter(function(u){return HJs(G,u)===10}),D=B.filter(function(u){return HJs(G,u)!==10});
return G.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var u=_.xS.apply(0,arguments);return _.n(function(R){if(R.nextAddress==1)return R.yield(G.runImmediateJobsAsync.apply(G,[F].concat(_.gi(u))),2);G.setJobSetWithScheduledJobs.apply(G,[D].concat(_.gi(u)));_.di(R)})}:function(){var u=_.xS.apply(0,arguments);
G.runImmediateJobsSync.apply(G,[F].concat(_.gi(u)));G.setJobSetWithScheduledJobs.apply(G,[D].concat(_.gi(u)))}};
qQ.prototype.runImmediateJobsSync=function(G){var B=_.xS.apply(1,arguments);_.Kx();for(var F=_.C(G),D=F.next(),u={};!D.done;u={lifecycle$jscomp$2:void 0},D=F.next())u.lifecycle$jscomp$2=D.value,cr(function(R){return function(){kxa(R.lifecycle$jscomp$2.name);Ri8(function(){return R.lifecycle$jscomp$2.callback.apply(R.lifecycle$jscomp$2,_.gi(B))});
E9(R.lifecycle$jscomp$2.name)}}(u))};
qQ.prototype.runImmediateJobsAsync=function(G){var B=_.xS.apply(1,arguments),F,D,u,R;return _.n(function(N){N.nextAddress==1&&(_.Kx(),F=_.C(G),D=F.next(),u={});if(N.nextAddress!=3){if(D.done)return N.jumpTo(0);u.lifecycle$jscomp$3=D.value;u.asyncJobCompletion=void 0;R=function(y){return function(){kxa(y.lifecycle$jscomp$3.name);var U=Ri8(function(){return y.lifecycle$jscomp$3.callback.apply(y.lifecycle$jscomp$3,_.gi(B))});
YAq(U)?y.asyncJobCompletion=_.X("web_lifecycle_error_handling_killswitch")?U.then(function(){E9(y.lifecycle$jscomp$3.name)}):U.then(function(){E9(y.lifecycle$jscomp$3.name)},function(q){uTg(q);
E9(y.lifecycle$jscomp$3.name)}):E9(y.lifecycle$jscomp$3.name)}}(u);
cr(R);return u.asyncJobCompletion?N.yield(u.asyncJobCompletion,3):N.jumpTo(3)}u={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};D=F.next();return N.jumpTo(2)})};
qQ.prototype.setJobSetWithScheduledJobs=function(G){var B=_.xS.apply(1,arguments),F=this,D=G.map(function(u){return{job:function(){kxa(u.name);Ri8(function(){return u.callback.apply(u,_.gi(B))});
E9(u.name)},
priority:HJs(F,u)}});
D.length&&(this.jobSet=new LDs(D))};
var HJs=function(G,B){var F,D;return(D=(F=G.overridePriority)!=null?F:B.priority)!=null?D:0},kxa=function(G){U9&&G&&FAS(G)},E9=function(G){U9&&G&&D6l(G)},rcv=function(G,B,F){j9q&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+G.constructor.name+"] '"+G.state+"' to '"+B+"'"),console.log("with message: ",F),console.groupEnd())};
_.ZN.Object.defineProperties(qQ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var OJv=function(G){qQ.call(this,G===void 0?"none":G);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(){}}]},eSP;
_.r(OJv,qQ);OJv.prototype.runApplicationNavigationBegin=function(G,B){var F=this;this.navigationTimer=_.mX(_.Lu,function(){F.currentState==="application_navigating"&&F.transition("none")},5E3);
G(B==null?void 0:B.event)};
OJv.prototype.runApplicationNavigationEnd=function(G,B){this.navigationTimer&&(_.Lu.cancelJob(this.navigationTimer),this.navigationTimer=null);G(B==null?void 0:B.event)};
_.BCc=function(){eSP||(eSP=new OJv);return eSP};var GPJ=[];_.IY("yt.logging.transport.getScrapedGelPayloads",function(){return GPJ});var GA=function(){var G=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return G.totalEntries}}};
GA.prototype.storePayload=function(G,B){G=wIc(G);this.store[G]?this.store[G].push(B):(this.memoizedKeySequences={},this.store[G]=[B]);this.totalEntries++;_.X("more_accurate_gel_parser")&&(B=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(B));return G};
GA.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var B=$Dq(this,G.keys.splice(0,1)[0]),F=[],D=0;D<B.length;D++)this.store[B[D]]&&G.sizeLimit&&(this.store[B[D]].length<=G.sizeLimit?(F.push.apply(F,_.gi(this.store[B[D]])),delete this.store[B[D]]):F.push.apply(F,_.gi(this.store[B[D]].splice(0,G.sizeLimit))));this.totalEntries-=F.length;(G==null?0:G.sizeLimit)&&F.length<(G==null?void 0:G.sizeLimit)&&(G.sizeLimit-=F.length,F.push.apply(F,_.gi(this.smartExtractMatchingEntries(G))));
return F};
GA.prototype.extractMatchingEntries=function(G){G=$Dq(this,G);for(var B=[],F=0;F<G.length;F++)this.store[G[F]]&&(B.push.apply(B,_.gi(this.store[G[F]])),delete this.store[G[F]]);this.totalEntries-=B.length;return B};
GA.prototype.getSequenceCount=function(G){G=$Dq(this,G);for(var B=0,F=0;F<G.length;F++){var D=void 0;B+=((D=this.store[G[F]])==null?void 0:D.length)||0}return B};
var $Dq=function(G,B){var F=wIc(B);if(G.memoizedKeySequences[F])return G.memoizedKeySequences[F];var D=Object.keys(G.store)||[];if(D.length<=1&&wIc(B)===D[0])return D;for(var u=[],R=0;R<D.length;R++){var N=D[R].split("/");if(zSv(B.auth,N[0])){var y=B.isJspb;zSv(y===void 0?"undefined":y?"true":"false",N[1])&&zSv(B.cttAuthInfo,N[2])&&(y=B.tier,y=y===void 0?"undefined":JSON.stringify(y),zSv(y,N[3])&&u.push(D[R]))}}return G.memoizedKeySequences[F]=u},zSv=function(G,B){return G===void 0||G==="undefined"?
!0:G===B};
GA.prototype.getSequenceCount=GA.prototype.getSequenceCount;GA.prototype.extractMatchingEntries=GA.prototype.extractMatchingEntries;GA.prototype.smartExtractMatchingEntries=GA.prototype.smartExtractMatchingEntries;GA.prototype.storePayload=GA.prototype.storePayload;var Rag=new _.oV("FinchConfigManagerService");var MoJ,vFJ,pIM,F0,bJP,CRg,w_J,Vog,bAI,QQg,oF6,x6S,eiQ;MoJ=_.sD("initial_gel_batch_timeout",2E3);vFJ=_.sD("gel_queue_timeout_max_ms",6E4);pIM=_.sD("gel_min_batch_size",5);F0=void 0;bJP=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
CRg=new bJP;w_J=new bJP;Vog=new bJP;bAI=new bJP;oF6=!0;x6S=1;_.sQJ=new Map;eiQ=_.Fz.ytLoggingTransportTokensToCttTargetIds_||{};_.IY("ytLoggingTransportTokensToCttTargetIds_",eiQ);var OAo=_.Fz.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.IY("ytLoggingTransportTokensToJspbCttTargetIds_",OAo);var iZ={};var jm=_.Fz.ytLoggingGelSequenceIdObj_||{};_.IY("ytLoggingGelSequenceIdObj_",jm);var nP8=[];var LRM=new Set,haS=0,HhS=0,WRl=0,aM8=[],KRI=[],kPU=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var djU=function(){};
djU.prototype.getUrl=function(G,B){B=B===void 0?!1:B;return G.hasOwnProperty("shareEndpoint")?null:_.zag(G,null,B)};
var c_6=function(G,B,F){G={endpoint:B,actions:[]};F=(F.path?F.path[0]:F.target).icon||"";B=F.indexOf(":");B>0&&(F=F.substr(B+1));F&&G.actions.push(F);return G};var p_U=/Command$/,M3l=/Endpoint$/,V3o=new Map;var VwU,v9v;VwU=1;_.pZ=function(){this.actionRoutingMap=new Map};
_.pZ.prototype.triggerAction=function(G){var B=new yXJ(G,!1,_.xS.apply(1,arguments));this.handleAction(B);return B.returnValue};
_.pZ.prototype.triggerOptionalAction=function(G){var B=new yXJ(G,!0,_.xS.apply(1,arguments));this.handleAction(B);return B.returnValue};
_.hs=function(G,B,F){B.forEach(function(D){var u=oPo(D);u&&G.triggerOptionalAction(u,D,F,void 0)})};
_.pZ.prototype.handleAction=function(G){var B=this.actionRoutingMap.get(G.actionName);B&&v9v(G,B);G.optionalAction||G.returnValue.length!==0||(G=new _.Uf("Unhandled action",G.actionName),_.Ae(G))};
v9v=function(G,B){B.forEach(function(F){var D=null;F?D=F.apply(null,G.args):(F=Error("md"),F.params=G.actionName,_.Mn(F));G.returnValue.push(D)})};
_.Y2=function(G,B,F){F||(F=VwU++);for(var D=_.C(Object.keys(B)),u=D.next();!u.done;u=D.next()){u=u.value;var R=G.actionRoutingMap.get(u);R||(R=new Map,G.actionRoutingMap.set(u,R));G.registerActionHandler(F,u,B[u],R)}return F};
_.pZ.prototype.registerActionHandler=function(G,B,F,D){D.set(G,_.pH(F))};
_.Ab=function(G,B,F){B=_.C(Object.keys(B));for(var D=B.next();!D.done;D=B.next())(D=G.actionRoutingMap.get(D.value))&&D.delete(F)};
_.cP(_.pZ);var TCU=function(G,B){var F=_.pZ.getInstance();_.$f(function(){var D={},u=_.Y2(F,(D[G]=B,D));_.VI(function(){var R={};_.Ab(F,(R[G]="",R),u)})})};T08=LVz;var upM=new Set(["For","If","Match","Watch"]),o9P={},Mwa=(o9P[dT.default]=function(){return M_S},o9P.style=function(){return M_S},o9P),p2P;
for(p2P in Mwa)GM.attributes[p2P]=Mwa[p2P](GM.attributes[p2P]);var fZ=new _.oV("VISIBILITY_OBSERVER");var ELz={retrieve:function(G){return this.id.\u0275prov.token===G.\u0275prov.token?this.contextValue:this?sr(this,this.id):eZQ}};var YXU=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(G){}var Acs=typeof WeakRef==="function";var dDL=function(G){this.value=G};
dDL.prototype.deref=function(){return this.value};
var JcL=Acs?WeakRef:dDL,ccs=function(G){this.newKeyHandler=G;this.map=new WeakMap};
ccs.prototype.add=function(G,B){this.map.has(G)||(this.newKeyHandler(G),this.map.set(G,[]));this.map.get(G).push(new JcL(B))};
ccs.prototype.get=function(G){var B=this;return function D(){var u,R,N,y,U,q,h,K,a,m,L;return _.Gd(D,function(W){switch(W.nextAddress){case 1:_.oo(W,2);u=B.map.get(G);if(!u)return W.return();R=0;N=_.C(u);y=N.next();case 4:if(y.done){W.jumpTo(6);break}U=y.value;q=U.deref();if(!q){W.jumpTo(5);break}R++;h=_.BP;return W.yield(q,8);case 8:h(W.yieldResult);case 5:y=N.next();W.jumpTo(4);break;case 6:if(2*R<u.length){K=0;a=_.C(u);for(m=a.next();!m.done;m=a.next())L=m.value,L.deref()&&(u[K++]=L);u.length=
K}case 2:_.vY(W),_.Yd(W,0)}})}()};var T8a=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},QG6=new ccs(function(G){G.addEventListener("abort",LHU,{once:!0})}),X0Q=new WeakMap,IVG=function(G){G=G===void 0?Kd:G;
this.signal=new G};
IVG.prototype.abort=function(G){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=G,G=new Event("abort"),this.signal.dispatchEvent(G))};
var Kd=function(){this.target=T8a();this.aborted=!1;this.onabort=null};
Kd.prototype.throwIfAborted=function(){mkz.call(this)};
Kd.prototype.addEventListener=function(G,B,F){this.target.addEventListener(G,B,F)};
Kd.prototype.removeEventListener=function(G,B,F){this.target.removeEventListener(G,B,F)};
Kd.prototype.dispatchEvent=function(G){if(this.onabort&&G.type==="abort")this.onabort(G);return this.target.dispatchEvent(G)};
Kd.abort=abg;Kd.timeout=rmJ;Kd.any=jG6;var KHg=YXU?AbortController:IVG,a6=YXU?AbortSignal:Kd;typeof a6.abort!=="function"&&(a6.abort=abg);typeof a6.prototype.throwIfAborted!=="function"&&(a6.prototype.throwIfAborted=mkz);typeof a6.any!=="function"&&(a6.any=jG6);typeof a6.timeout!=="function"&&(a6.timeout=rmJ);var ZS=null,Hzg=new Map;var fVU=function(G){G=G.clone();HtN(G);CB(G,"dg",null);CB(G,"d","0");jpT(G,null);LjN(G,null);return G},twU=!0,ZJ8=function(G,B,F){var D=F===void 0?{}:F;
F=D.cssRowKey===void 0?void 0:D.cssRowKey;var u=D.combinedSignature===void 0?void 0:D.combinedSignature;var R=D.extraEdges===void 0?void 0:D.extraEdges;D=D.callback===void 0?void 0:D.callback;CB(G,"m",B.join(","));R&&Wjs(G,R);F&&(CB(G,"ck",F),u?CB(G,"rs",u):twU&&(twU=!1));if(D){if(D!=null&&!efT.test(D))throw Error("Ya`"+D);CB(G,"cb",D)}G=G.toString();_.wU(G,"/")&&(G=gkJ(document.location.href)+G);return _.pe(G)};var SXG=function(G){return g9T(G).then(function(B){return JSON.parse(B.responseText)})},g9T=function(G){var B={},F=B.xmlHttpFactory?B.xmlHttpFactory.createInstance():gfs.createInstance();
return(new _.DS(function(D,u){var R;try{F.open("GET",G,!0)}catch(U){u(new mE("Error opening XHR: "+U.message,G,F))}F.onreadystatechange=function(){if(F.readyState==4){_.Fz.clearTimeout(R);var U;!(U=ZHL(F.status))&&(U=F.status===0)&&(U=tyM(G),U=!(U=="http"||U=="https"||U==""));U?D(F):u(new s9q(F.status,G,F))}};
F.onerror=function(){u(new mE("Network error",G,F))};
if(B.headers)for(var N in B.headers){var y=B.headers[N];y!=null&&F.setRequestHeader(N,y)}B.withCredentials&&(F.withCredentials=B.withCredentials);B.responseType&&(F.responseType=B.responseType);B.mimeType&&F.overrideMimeType(B.mimeType);B.timeoutMs>0&&(R=_.Fz.setTimeout(function(){F.onreadystatechange=function(){};
F.abort();u(new xDs(G,F))},B.timeoutMs));
try{F.send(null)}catch(U){F.onreadystatechange=function(){},_.Fz.clearTimeout(R),u(new mE("Error sending XHR: "+U.message,G,F))}})).thenCatch(function(D){D instanceof _.eg&&F.abort();
throw D;})},mE=function(G,B,F){_.Gs.call(this,G+", url="+B);
this.url=B;this.xhr=F};
_.IC(mE,_.Gs);mE.prototype.name="XhrError";var s9q=function(G,B,F){mE.call(this,"Request Failed, status="+G,B,F);this.status=G};
_.IC(s9q,mE);s9q.prototype.name="XhrHttpError";var xDs=function(G,B){mE.call(this,"Request timed out",G,B)};
_.IC(xDs,mE);xDs.prototype.name="XhrTimeoutError";J1=J1||{};_.IC(Ozg,_.uz);Ozg.prototype.initialize=function(){};
J1.BaseModule=Ozg;e9Q.prototype.execute=function(G){this.fn_&&(this.fn_.call(this.handler_||null,G),this.fn_=this.handler_=null)};
e9Q.prototype.abort=function(){this.handler_=this.fn_=null};
J1.ModuleLoadCallback=e9Q;_.IC(Sm,_.uz);Sm.prototype.moduleConstructor_=J1.BaseModule;Sm.prototype.module_=null;Sm.prototype.getId=function(){return this.JSC$11362_id_};
Sm.prototype.registerCallback=function(G,B){return X7(this.onloadCallbacks_,G,B)};
var Poa=function(G,B){X7(G.onErrorCallbacks_,B)},X7=function(G,B,F){B=new J1.ModuleLoadCallback(B,F);
G.push(B);return B};
Sm.prototype.isLoaded=function(){return!!this.module_};
Sm.prototype.onLoad=function(G){var B=new this.moduleConstructor_;B.initialize(G());this.module_=B;B=(B=GBL(this.earlyOnloadCallbacks_,G()))||GBL(this.onloadCallbacks_,G());B||(this.onErrorCallbacks_.length=0);return B};
Sm.prototype.onError=function(G){(G=GBL(this.onErrorCallbacks_,G))&&Dc(Error("sd`"+G));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var GBL=function(G,B){for(var F=[],D=0;D<G.length;D++)try{G[D].execute(B)}catch(u){Dc(u),F.push(u)}G.length=0;return F.length?F:null};
Sm.prototype.disposeInternal=function(){Sm.superClass_.disposeInternal.call(this);_.ve(this.module_)};
J1.ModuleInfo=Sm;var BKq,wmw,uuL,RcT,FaU,DO8,lkv,yV7,n7t;
_.P$=function(G,B,F,D,u){D=D===void 0?!1:D;u=u===void 0?!1:u;var R=R===void 0?!0:R;this.scsReferenceUrl_=BaL(_.YS(G).toString(),R);this.cssRowKey_=B;this.combinedSignature_=F;this.useNegativeLoading_=D;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(G=wP(this.scsReferenceUrl_,"excm"))?G.split(","):[];this.shouldScanForCss_=u;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;iZl();_.Qe(this,rAL(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
BKq=function(G,B){if(B.href||B.getAttribute("data-href"))if(B=B.href||B.getAttribute("data-href"),sBl(B)&&!BaL(B).urlPrefix_.endsWith("_/js/")){B=rAL(BaL(B));B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,G.loadedCssModuleList_.includes(F)||G.loadedCssModuleList_.push(F)}};
_.P$.prototype.loadModules=function(G,B,F){var D=F===void 0?{}:F;B=D.extraEdges;F=D.onError;var u=D.onSuccess;D=D.forceReload;if(!G)throw Error("td");if(this.shouldScanForCss_){for(var R=_.C(document.getElementsByTagName("style")),N=R.next();!N.done;N=R.next())BKq(this,N.value);R=_.C(document.getElementsByTagName("link"));for(N=R.next();!N.done;N=R.next())BKq(this,N.value)}ipw(this,FaU(this,G),B,F,u,D)};
var ipw=function(G,B,F,D,u,R){D=D===void 0?function(){}:D;
u=u===void 0?function(){}:u;
R=R===void 0?!1:R;DO8(G,B,function(N,y,U){U=U===void 0?y:U;G.enableFallbackFetch&&R?G.loadWithFetch(N,y,D,u,U):G.load(N,y,D,u,U,F)},F)||D(-1)};
_.P$.prototype.loadWithFetch=function(){_.n(function(){throw Error("ud");})};
_.P$.prototype.maybeSetAdditionalFields=function(){};
wmw=function(G,B,F){if(G.useNegativeLoading_){var D=G.scsReferenceUrl_;G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,extraEdges:F,requestedModuleIds:uuL(G),requestedCssModuleIds:RcT(G)};var u=G===void 0?{}:G;G=u.requestedModuleIds===void 0?[]:u.requestedModuleIds;F=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds;var R=u.cssRowKey===void 0?void 0:u.cssRowKey;var N=u.combinedSignature===void 0?void 0:u.combinedSignature;var y=u.extraEdges===void 0?void 0:u.extraEdges;
u=u.callback===void 0?void 0:u.callback;D=fVU(D);CB(D,"d","1");jpT(D,G);LjN(D,F);B=ZJ8(D,B,{cssRowKey:R,combinedSignature:N,extraEdges:y,callback:u})}else D=G.scsReferenceUrl_,G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,requestedModuleIds:uuL(G),requestedCssModuleIds:RcT(G)},y=G===void 0?{}:G,G=y.requestedCssModuleIds===void 0?[]:y.requestedCssModuleIds,F=y.cssRowKey===void 0?void 0:y.cssRowKey,R=y.combinedSignature===void 0?void 0:y.combinedSignature,N=y.extraEdges===void 0?
void 0:y.extraEdges,y=y.callback===void 0?void 0:y.callback,D=fVU(D),LjN(D,G),B=ZJ8(D,B,{cssRowKey:F,combinedSignature:R,extraEdges:N,callback:y});return B};
_.Qe=function(G,B){for(var F=!1,D=[],u=0;u<B.length;++u){var R=B[u];G.requestedModuleMap_[R]||(G.requestedModuleMap_[R]=!0,G.requestedModuleList_.push(R),F=!0,D.push(R))}F&&(G.requestedModuleListSorted_=!1)};
_.jH=function(G,B){for(var F=[],D=0;D<B.length;++D){var u=B[D];G.requestedModuleMap_[u]&&(delete G.requestedModuleMap_[u],_.dU(G.requestedModuleList_,u),F.push(u))}};
_.P$.prototype.load=function(G,B,F,D,u){u=u===void 0?B:u;_.YS(G);var R=this.useCors_,N=this.corsMode_,y=this.fetchPriority,U=_.G_("SCRIPT");_.Ux(U,G);R&&(U.crossOrigin=N);U.async=!1;y&&U.setAttribute("fetchpriority",y);_.Qe(this,B);_.Cn8(this,G,U,B,F,D,u)};
_.Cn8=function(G,B,F,D,u,R,N){N=N===void 0?D:N;G.lastScript_=F;G.insertPos.insertBefore(F,G.insertPos.firstChild);_.NKy(F,D,function(){F.parentElement.removeChild(F);G.lastScript_==F&&(G.lastScript_=null);R()},function(y){F.parentElement.removeChild(F);
G.lastScript_==F&&(G.lastScript_=null);_.jH(G,y);G.pendingModuleGraphUpdate_?G.pendingModuleGraphUpdate_.then(function(){u(-1,B)}):u(-1,B)},N)};
_.NKy=function(G,B,F,D,u){u=u===void 0?B:u;var R=B.length,N=function(){R=0;G.onload=null;G.onerror=null;y=function(){}},y=function(){N();
var q=u.filter(function(h){return!Xb().getModuleInfo(h).isLoaded()});
q.length!==0?D(q,"Response was successful but was missing module(s) "+q+"."):F()},U=function(){R--;
R==0&&y()};
B.forEach(function(q){q=Xb().getModuleInfo(q);q.isLoaded()?U():(X7(q.earlyOnloadCallbacks_,U),Poa(q,U))});
G.onload=function(){return y()};
G.onerror=function(){N();D(B)}};
uuL=function(G){G.requestedModuleListSorted_||(G.requestedModuleListSorted_=!0,G.requestedModuleList_.sort());return G.requestedModuleList_};
RcT=function(G){G=G.loadedCssModuleList_;G.sort();return G};
FaU=function(G,B){return B.filter(function(F){return!G.requestedModuleMap_[F]})};
DO8=function(G,B,F,D){if(G.pendingModuleGraphUpdate_)return G.pendingModuleGraphUpdate_.then(function(){DO8(G,B,F,D)}),!0;
if(!G.useNegativeLoading_){var u=[],R=Object.assign({},G.requestedModuleMap_);yV7(G,B,function(h){u.push(h.getId())},D,function(h){return!h.isLoaded()},R);
B=u}for(R=0;R<B.length;){for(var N=B.length-R,y=R==0?B:B.slice(R,B.length),U=wmw(G,y,D),q=_.YS(U).toString();q.length>G.urlMaxLength;)if(N>1)N-=Math.ceil((q.length-G.urlMaxLength)/6),N=Math.max(N,1),y=B.slice(R,R+N),U=wmw(G,y,D),q=_.YS(U).toString();else return G.useNegativeLoading_?(G.useNegativeLoading_=!1,G.pendingModuleGraphUpdate_=n7t(G).then(function(h){lkv(G,h,D)}),DO8(G,B.slice(R),F,D)):!1;
R+=N;G.useNegativeLoading_?F(U,y):F(U,y,R===B.length?B:[])}return!0};
lkv=function(G,B,F){Xb().setAllModuleInfoString((B||{}).moduleGraph);yV7(G,uuL(G),function(D){_.Qe(G,[D.getId()])},F);
G.pendingModuleGraphUpdate_=null};
yV7=function(G,B,F,D,u,R){R=R===void 0?{}:R;var N=Xb();B=_.C(B);for(var y=B.next();!y.done;y=B.next()){y=y.value;var U=N.getModuleInfo(y);if(!(R[y]||u&&!u(U))){R[y]=!0;var q=U.deps_||[];if(D){var h=[];D[y]&&(h=Object.keys(D[y]));q=q.concat(h)}yV7(G,q,F,D,u,R);F(U)}}};
n7t=function(G){G=G.scsReferenceUrl_.clone();HtN(G);CB(G,"dg",null);CB(G,"md","1");return SXG(G.toString())};var $ks=new Uint8Array(123);var UOT=[];var qja=function(){this.JSC$10364_loader_=null};
_.w=qja.prototype;_.w.setBatchModeEnabled=function(){};
_.w.setAllModuleInfoString=function(){};
_.w.addExtraEdge=function(){throw Error("vd");};
_.w.removeExtraEdge=function(){throw Error("wd");};
_.w.getModuleContext=function(){return null};
_.w.isActive=function(){return!1};
_.w.isUserActive=function(){return!1};
_.w.registerInitializationCallback=function(){};
_.w.registerCallback=function(){};var Ld=function(G,B,F,D,u){var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.name="ModuleLoadFailure";this.type=G;this.status=B;this.requestedModuleIds=F;this.url=D;this.cause=u;this.message=this.toString()};
_.r(Ld,Error);Ld.prototype.toString=function(){return E7q(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var E7q=function(G){switch(G.type){case Ld.Type.UNAUTHORIZED:return"Unauthorized";case Ld.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Ld.Type.TIMEOUT:return"Timed out";case Ld.Type.OLD_CODE_GONE:return"Out of date module id";case Ld.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+G.type}};
J1.ModuleLoadFailure=Ld;J1.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var rL=function(){this.moduleIds_=this.JSC$10364_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11380_extraEdges_={};this.JSC$11380_callbackMap_={};this.JSC$11380_currentlyLoadingModule_=this.baseModuleInfo_=new J1.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new lz;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.IC(rL,qja);var hcL=function(G,B){_.Gs.call(this,"Error loading "+G+": "+B)};
_.IC(hcL,_.Gs);rL.prototype.setBatchModeEnabled=function(G){this.batchModeEnabled_=G};
rL.prototype.setAllModuleInfoString=function(G,B){if(!(this instanceof rL))this.setAllModuleInfoString(G,B);else if(typeof G==="string"){if(G.startsWith("d$")){G=G.substring(2);for(var F=[],D=0,u=G.indexOf("/"),R=0,N=!1,y=0;;){var U=N?G.substring(R):G.substring(R,u);if(U.length===0)D++,R="sy"+D.toString(36),U=[];else{var q=U.indexOf(":");if(q<0)R=U,U=[];else if(q===U.length-1)R=U.substring(0,q),U=Array(F[y-1]);else{R=U.substring(0,q);U=U.substring(q+1).split(",");q=y;for(var h=0;h<U.length;h++)q-=
U[h].length===0?1:Number(U[h]),U[h]=F[q]}q=0;if(R.length===0)q=1;else if(R.charAt(0)==="+"||R.charAt(0)==="-")q=Number(R);q!==0&&(D+=q,R="sy"+D.toString(36))}F.push(R);Kav(this,R,U);if(N)break;R=u+1;u=G.indexOf("/",R);u===-1&&(N=!0);y++}this.moduleIds_=F}else if(G.startsWith("p$"))akw(this,G);else{G=G.split("/");F=[];for(D=0;D<G.length;D++){y=G[D].split(":");u=y[0];N=[];if(y[1])for(N=y[1].split(","),y=0;y<N.length;y++)N[y]=F[parseInt(N[y],36)];F.push(u);Kav(this,u,N)}this.moduleIds_=F}B&&B.length?
(_.tg(this.loadingModuleIds_,B),this.lastInitialModuleId_=_.bl(B)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11380_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11380_currentlyLoadingModule_=null,(B=this.baseModuleInfo_.onLoad((0,_.R_)(this.getModuleContext,this)))&&B.length&&mO7(this,new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,B[0])),WL(this))}};
var akw=function(G,B){var F=B.substring(2);for(B=0;B<64;B++)$ks["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(B)]=B;var D={buf:F,pos:0};sz(D);var u=sz(D),R=sz(D)+1;B=Array(u);var N=Array(u),y=Array(u);R=Array(R);var U=0,q=0,h=D.pos,K=D.buf.indexOf("|",D.pos);D.pos=K+1;for(K=0;K<u;K++){var a=sz(D),m=a&2,L=a&1;a>>>=2;L?(U+=a>>>1^-(a&1),a="sy"+U.toString(36)):(L=h,h+=a,a=F.substring(L,h));B[K]=a;m&&(R[q++]=a)}R[q]="";D.pos++;q=u&-2;F=u&1;for(U=0;U<q;U+=2)h=z9z(D),y[U]=
h&7,y[U+1]=h>>>3&7;F&&(F=z9z(D),y[q]=F&7);D.pos++;for(q=0;q<u;q++)y[q]===7&&(y[q]=sz(D));D.pos++;for(F=q=0;F<u;F++){U=y[F];h=U===0?UOT:Array(U);N[F]=h;K=q;for(m=0;m<U;m++)K-=sz(D),h[m]=R[K];R[q]===B[F]&&q++}for(D=0;D<B.length;D++)Kav(G,B[D],N[D]);G.moduleIds_=B};
_.w=rL.prototype;_.w.getModuleInfo=function(G){return this.moduleInfoMap[G]};
_.w.addExtraEdge=function(G,B){var F=this.getModuleInfo(G);F&&F.isLoaded()?this.load(B):(this.JSC$11380_extraEdges_[G]||(this.JSC$11380_extraEdges_[G]={}),this.JSC$11380_extraEdges_[G][B]=!0)};
_.w.removeExtraEdge=function(G,B){if(this.JSC$11380_extraEdges_[G]){delete this.JSC$11380_extraEdges_[G][B];for(var F in this.JSC$11380_extraEdges_[G])return;delete this.JSC$11380_extraEdges_[G]}};
_.w.isActive=function(){return this.loadingModuleIds_.length>0};
_.w.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var WL=function(G){var B=G.lastActive_,F=G.isActive();F!=B&&(G.executeCallbacks_(F?"active":"idle"),G.lastActive_=F);B=G.isUserActive();B!=G.userLastActive_&&(G.executeCallbacks_(B?"userActive":"userIdle"),G.userLastActive_=B)},Kav=function(G,B,F){G.moduleInfoMap[B]?(G=G.moduleInfoMap[B].deps_,G!=F&&G.splice.apply(G,[0,
G.length].concat(_.gi(F)))):G.moduleInfoMap[B]=new J1.ModuleInfo(F,B)},QFG=function(G,B,F){var D=[];
vMg(B,D);B=[];for(var u={},R=0;R<D.length;R++){var N=D[R],y=G.getModuleInfo(N);if(!y)throw Error("xd`"+N);var U=new lz;u[N]=U;y.isLoaded()?U.callback(null):(Xm7(G,N,y,!!F,U),G.isModuleLoading(N)||B.push(N))}B.length>0&&(G.loadingModuleIds_.length===0?G.loadModules_(B):(G.requestedModuleIdsQueue_.push(B),WL(G)));return u},Xm7=function(G,B,F,D,u){F.registerCallback(u.callback,u);
Poa(F,function(R){u.errback(new hcL(B,R))});
G.isModuleLoading(B)?D&&(jFU(G,B),WL(G)):D&&jFU(G,B)};
rL.prototype.loadModules_=function(G,B,F){var D=this;B=B===void 0?0:B;var u=Lay(this,G);this.loadingModuleIds_=u;this.requestedLoadingModuleIds_=this.batchModeEnabled_?G:_.II(u);WL(this);if(u.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,u);G=this.JSC$10364_loader_;if(!G)throw Error("yd");if(Object.keys(this.JSC$11380_extraEdges_).length>0&&!G.supportsExtraEdges)throw Error("zd");F=(0,_.R_)(G.loadModules,G,_.II(u),this.moduleInfoMap,{extraEdges:this.JSC$11380_extraEdges_,
forceReload:!!F,onError:function(R,N,y){var U=D.requestedLoadingModuleIds_;R=R!=null?R:void 0;var q=B;y=y===void 0?!1:y;y=(y===void 0?0:y)?0:(q===void 0?0:q)+1;q=_.II(u);D.requestedLoadingModuleIds_=U;u.forEach(_.Fw(_.dU,D.requestedModuleIds_),D);R==401?(mO7(D,new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.UNAUTHORIZED,R)),D.requestedModuleIdsQueue_.length=0):R==410?(rVG(D,new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.OLD_CODE_GONE,R)),WaG(D)):y>=3?(rVG(D,new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
R,q,N)),WaG(D)):D.loadModules_(D.requestedLoadingModuleIds_,y,R==8001||!1)},
onTimeout:(0,_.R_)(this.handleLoadTimeout_,this)});(G=Math.pow(B,2)*5E3)?_.Fz.setTimeout(F,G):F()}};
var Lay=function(G,B){B=B.filter(function(u){return G.moduleInfoMap[u].isLoaded()?(_.Fz.setTimeout(function(){return Error("Ad`"+u)},0),!1):!0});
for(var F=[],D=0;D<B.length;D++)F=F.concat(HpT(G,B[D]));vMg(F);return!G.batchModeEnabled_&&F.length>1?(B=F.shift(),G.requestedModuleIdsQueue_=F.map(function(u){return[u]}).concat(G.requestedModuleIdsQueue_),[B]):F},HpT=function(G,B){var F=_.UK.createSet(G.requestedModuleIds_),D=[];
F[B]||D.push(B);B=[B];for(var u=0;u<B.length;u++)for(var R=G.getModuleInfo(B[u]).deps_,N=R.length-1;N>=0;N--){var y=R[N];G.getModuleInfo(y).isLoaded()||F[y]||(D.push(y),B.push(y))}D.reverse();vMg(D);return D};
rL.prototype.JSC$11375_setLoaded=function(){if(this.JSC$11380_currentlyLoadingModule_){var G=this.JSC$11380_currentlyLoadingModule_.getId(),B=[];if(this.JSC$11380_extraEdges_[G]){for(var F=_.C(Object.keys(this.JSC$11380_extraEdges_[G])),D=F.next();!D.done;D=F.next()){D=D.value;var u=this.getModuleInfo(D);u&&!u.isLoaded()&&(this.removeExtraEdge(G,D),B.push(D))}this.loadMultiple(B)}this.isDisposed()||((B=this.moduleInfoMap[G].onLoad((0,_.R_)(this.getModuleContext,this)))&&B.length&&mO7(this,new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,B[0])),_.dU(this.userInitiatedLoadingModuleIds_,G),_.dU(this.loadingModuleIds_,G),this.loadingModuleIds_.length===0&&WaG(this),this.lastInitialModuleId_&&G==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),WL(this),this.JSC$11380_currentlyLoadingModule_=null)}};
rL.prototype.isModuleLoading=function(G){if(_.YM(this.loadingModuleIds_,G))return!0;for(var B=0;B<this.requestedModuleIdsQueue_.length;B++)if(_.YM(this.requestedModuleIdsQueue_[B],G))return!0;return!1};
rL.prototype.load=function(G,B){return QFG(this,[G],B)[G]};
rL.prototype.loadMultiple=function(G){return QFG(this,G)};
var jFU=function(G,B){_.YM(G.userInitiatedLoadingModuleIds_,B)||G.userInitiatedLoadingModuleIds_.push(B)};
rL.prototype.beforeLoadModuleCode=function(G){var B=this;this.JSC$11380_currentlyLoadingModule_&&this.JSC$11380_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11375_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[G]&&kBa(this,this.moduleInfoMap[G].deps_||[],function(F){F.module_=new J1.BaseModule;_.dU(B.loadingModuleIds_,F.getId())},function(F){return!F.isLoaded()});
this.JSC$11380_currentlyLoadingModule_=this.getModuleInfo(G)};
rL.prototype.registerInitializationCallback=function(G){this.JSC$11380_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new J1.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11380_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);X7(this.JSC$11380_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
rL.prototype.handleLoadTimeout_=function(){rVG(this,new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.TIMEOUT));WaG(this)};
var rVG=function(G,B){G.requestedLoadingModuleIds_.length>1?G.requestedModuleIdsQueue_=G.requestedLoadingModuleIds_.map(function(F){return[F]}).concat(G.requestedModuleIdsQueue_):mO7(G,B)},mO7=function(G,B){var F=G.requestedLoadingModuleIds_;
G.loadingModuleIds_.length=0;for(var D=[],u=0;u<G.requestedModuleIdsQueue_.length;u++){var R=G.requestedModuleIdsQueue_[u].filter(function(U){var q=HpT(this,U);return Ao(F,function(h){return _.YM(q,h)})},G);
_.tg(D,R)}for(u=0;u<F.length;u++)_.$LI(D,F[u]);for(u=0;u<D.length;u++){for(R=0;R<G.requestedModuleIdsQueue_.length;R++)_.dU(G.requestedModuleIdsQueue_[R],D[u]);_.dU(G.userInitiatedLoadingModuleIds_,D[u])}if(u=G.JSC$11380_callbackMap_.error)for(R=0;R<u.length;R++)for(var N=u[R],y=0;y<D.length;y++)N("error",D[y],B);for(D=0;D<F.length;D++)if(G.moduleInfoMap[F[D]])G.moduleInfoMap[F[D]].onError(B);G.requestedLoadingModuleIds_.length=0;WL(G)},WaG=function(G){for(;G.requestedModuleIdsQueue_.length;){var B=
G.requestedModuleIdsQueue_.shift().filter(function(F){return!this.getModuleInfo(F).isLoaded()},G);
if(B.length>0){G.loadModules_(B);return}}WL(G)};
rL.prototype.registerCallback=function(G,B){Array.isArray(G)||(G=[G]);for(var F=0;F<G.length;F++){var D=G[F],u=B,R=this.JSC$11380_callbackMap_;R[D]||(R[D]=[]);R[D].push(u)}};
rL.prototype.executeCallbacks_=function(G){for(var B=this.JSC$11380_callbackMap_[G],F=0;B&&F<B.length;F++)B[F](G)};
var kBa=function(G,B,F,D,u){D=D===void 0?function(){return!0}:D;
u=u===void 0?{}:u;B=_.C(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var N=G.getModuleInfo(R);!u[R]&&D(N)&&(u[R]=!0,kBa(G,N.deps_||[],F,D,u),F(N))}};
rL.prototype.dispose=function(){_.oi(_.UK.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11380_callbackMap_={};this.isDisposed_=!0};
rL.prototype.isDisposed=function(){return this.isDisposed_};
_.mW=function(){return new rL};var Op8=[5E3,2E4],PlL=function(){this.JSC$10364_loader_=null;this.JSC$11388_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11388_queue_=[];this.JSC$11388_extraEdges_=Object.create(null);this.JSC$11388_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.r(PlL,qja);_.w=PlL.prototype;_.w.setAllModuleInfoString=function(){this.JSC$11388_currentlyLoadingModule_&&this.JSC$11388_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11375_setLoaded()};
_.w.getModuleInfo=function(G){var B=this.JSC$11388_moduleInfoMap_[G];B||(B=new J1.ModuleInfo([],G),this.JSC$11388_moduleInfoMap_[G]=B);return B};
_.w.addExtraEdge=function(G,B){this.getModuleInfo(G).isLoaded()?this.load(B):(this.JSC$11388_extraEdges_[G]||(this.JSC$11388_extraEdges_[G]={}),this.JSC$11388_extraEdges_[G][B]=!0)};
_.w.removeExtraEdge=function(G,B){if(this.JSC$11388_extraEdges_[G]){delete this.JSC$11388_extraEdges_[G][B];for(var F in this.JSC$11388_extraEdges_[G])return;delete this.JSC$11388_extraEdges_[G]}};
_.w.isModuleLoading=function(G){return!!this.loadingModules_[G]};
_.w.load=function(G){ecP(this,[G]);return $Os(this,G)};
_.w.loadMultiple=function(G){var B=this,F=Object.create(null),D=[];G.forEach(function(u){F[u]||(F[u]=$Os(B,u),D.push(u))});
ecP(this,D);return F};
_.w.beforeLoadModuleCode=function(G){var B;((B=this.JSC$11388_currentlyLoadingModule_)==null?void 0:B.getId())==="synthetic_module_overhead"&&this.JSC$11375_setLoaded();var F,D;zcU(this,(D=(F=this.JSC$11388_moduleInfoMap_[G])==null?void 0:F.deps_)!=null?D:[],function(u){u.module_=new J1.BaseModule},function(u){return!u.isLoaded()});
this.JSC$11388_currentlyLoadingModule_=this.getModuleInfo(G)};
_.w.JSC$11375_setLoaded=function(){if(this.JSC$11388_currentlyLoadingModule_){var G=this.JSC$11388_currentlyLoadingModule_.getId(),B=[];if(this.JSC$11388_extraEdges_[G]){for(var F=_.C(Object.keys(this.JSC$11388_extraEdges_[G])),D=F.next();!D.done;D=F.next())D=D.value,this.getModuleInfo(D).isLoaded()||(this.removeExtraEdge(G,D),B.push(D));this.loadMultiple(B)}this.JSC$11388_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11388_currentlyLoadingModule_=null;(!this.isModuleLoading(G)&&/^sy[0-9a-z]{0,4}$/.test(G)||G==="synthetic_module_overhead")&&delete this.JSC$11388_moduleInfoMap_[G];this.unsetModulesAsLoading(G)}};
_.w.registerInitializationCallback=function(G){this.JSC$11388_currentlyLoadingModule_||(this.JSC$11388_moduleInfoMap_.synthetic_module_overhead=new J1.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11388_currentlyLoadingModule_=this.JSC$11388_moduleInfoMap_.synthetic_module_overhead);X7(this.JSC$11388_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
_.w.setModulesAsLoading=function(){var G=this;_.xS.apply(0,arguments).forEach(function(B){G.loadingModules_[B]=!0})};
_.w.unsetModulesAsLoading=function(){var G=this;_.xS.apply(0,arguments).forEach(function(B){delete G.loadingModules_[B]})};
var $Os=function(G,B){return new _.DS(function(F,D){var u=G.getModuleInfo(B);u.isLoaded()?F(null):(u.registerCallback(function(){F(null)}),Poa(u,function(R){var N="Error loading "+B+": "+R;
R instanceof J1.ModuleLoadFailure&&R.url&&(N=N+", requested url: "+R.url.toString());D(Error(N))}))})},ecP=function(G,B){B=B.filter(function(F){return!G.isModuleLoading(F)&&!G.getModuleInfo(F).isLoaded()});
B.length>0&&(G.setModulesAsLoading.apply(G,_.gi(B)),G.JSC$11388_queue_.push(B),bpU(G))},bpU=function(G){for(var B={};G.activeLoads_<Infinity&&G.JSC$11388_queue_.length>0;B={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})B.ids$jscomp$37=G.JSC$11388_queue_.shift().filter(function(F){return!G.getModuleInfo(F).isLoaded()}),B.ids$jscomp$37.length>0&&(G.activeLoads_++,B.finishLoad=function(F){return function(){G.activeLoads_--;
bpU(G);F.finishLoad=function(){}}}(B),_.KG(B.ids$jscomp$37.map(function(F){return $Os(G,F)})).then(function(F){return function(){(0,F.finishLoad)()}}(B)),B.attempt$jscomp$6=0,B.load$jscomp$1=function(F){return function(){if(Object.keys(G.JSC$11388_extraEdges_).length>0&&!G.JSC$10364_loader_.supportsExtraEdges)throw Error("zd");
G.JSC$10364_loader_.loadModules(F.ids$jscomp$37,G.JSC$11388_moduleInfoMap_,{extraEdges:G.JSC$11388_extraEdges_,onError:function(D,u){var R=Op8[F.attempt$jscomp$6++];R!==void 0?setTimeout(function(){(0,F.load$jscomp$1)()},R):(G.unsetModulesAsLoading.apply(G,_.gi(F.ids$jscomp$37)),(0,F.finishLoad)(),F.ids$jscomp$37.forEach(function(N){N=G.getModuleInfo(N);
if(!N.isLoaded())N.onError(new J1.ModuleLoadFailure(J1.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,D,F.ids$jscomp$37,u))}))}})}}(B),(0,B.load$jscomp$1)())},zcU=function(G,B,F,D,u){D=D===void 0?function(){return!0}:D;
u=u===void 0?{}:u;B=_.C(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var N=G.getModuleInfo(R);!u[R]&&D(N)&&(u[R]=!0,zcU(G,N.deps_||[],F,D,u),F(N))}};var Vsq=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var vLg=Symbol("Cd");window.JSCompiler_renameProperty=function(G){return G};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var v7N=!Vsq||HTMLElement.es5Shimmed||_.Fz.Reflect===void 0||_.Fz.customElements===void 0||_.Fz.customElements.polyfillWrapFlushCallback||!1,o7a,ugJ=function(){var G=HTMLElement;if(v7N)return G;if(o7a!==void 0)return o7a;var B=_.Fz.Reflect,F=function(){return B.construct(G,[],this.constructor)};
F.prototype=G.prototype;F.prototype.constructor=F;F.es5Shimmed=!0;Object.setPrototypeOf(F,G);return o7a=F},Msq=!1;v7N||Msq||(Msq=!0,_.Fz.HTMLElement=ugJ());/*

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 AmQ=/(url\()([^)]*)(\))/g,p0s=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,YdS,Bw;var vw=!window.ShadyDOM||!window.ShadyDOM.inUse,pma=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Yjs=!window.customElements.polyfillWrapFlushCallback,AVL;if(AVL=vw&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var dOP=new CSSStyleSheet;dOP.replaceSync("");var JVG=document.createElement("div");JVG.attachShadow({mode:"open"});JVG.shadowRoot.adoptedStyleSheets=[dOP];AVL=JVG.shadowRoot.adoptedStyleSheets[0]===dOP}catch(G){AVL=!1}
var cVw=AVL,TKG=window.Polymer&&window.Polymer.rootPath||Jml(document.baseURI||window.location.href),Kt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,S$z=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Yb=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ikv=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,VN=window.Polymer&&window.Polymer.legacyOptimizations||!1,pt=window.Polymer&&window.Polymer.legacyWarnings||!1,fkG=window.Polymer&&window.Polymer.syncInitialRender||
!1,mj=window.Polymer&&window.Polymer.legacyUndefined||!1,tsU=window.Polymer&&window.Polymer.orderedComputed||!1,HL=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ke=window.Polymer&&window.Polymer.fastDomIf||!1,O9=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Zp7=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,g7y=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var eH={},SjN={},QN=function(){return HTMLElement.apply(this,arguments)||this};
_.r(QN,HTMLElement);QN.import=function(G,B){return G?(G=eH[G]||SjN[G.toLowerCase()])&&B?G.querySelector(B):G:null};
QN.prototype.attributeChangedCallback=function(G,B,F){B!==F&&this.register()};
QN.prototype.register=function(G){if(G=G||this.id){if(Yb&&(eH[G]||SjN[G.toLowerCase()])!==void 0)throw eH[G]=SjN[G.toLowerCase()]=null,Error("Dd`"+G);this.id=G;eH[G]=SjN[G.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.ZN.Object.defineProperties(QN.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var G=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;G=_.is(this.getAttribute("assetpath")||"",G.baseURI);this.__assetpath=Jml(G)}return this.__assetpath}}});
_.ZN.Object.defineProperties(QN,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
QN["import"]=QN.import;QN.prototype.modules=eH;customElements.define("dom-module",QN);var sFU=0,TNI=0,FL=[],xOT=0,cms=!1,Pnq=document.createTextNode(""),GaN,zc;(new window.MutationObserver(IbQ)).observe(Pnq,{characterData:!0});_.$e={after:function(G){return{run:function(B){return window.setTimeout(B,G)},
cancel:function(B){window.clearTimeout(B)}}},
run:function(G,B){return window.setTimeout(G,B)},
cancel:function(G){window.clearTimeout(G)}};
_.l4={run:function(G){return window.requestAnimationFrame(G)},
cancel:function(G){window.cancelAnimationFrame(G)}};
GaN={run:function(G){return window.requestIdleCallback?window.requestIdleCallback(G):window.setTimeout(G,16)},
cancel:function(G){window.cancelIdleCallback?window.cancelIdleCallback(G):window.clearTimeout(G)}};
zc={run:function(G){cms||(cms=!0,Pnq.textContent=xOT++);FL.push(G);return sFU++},
cancel:function(G){var B=G-TNI;if(B>=0){if(!FL[B])throw Error("Ed`"+G);FL[B]=null}}};var B3y=0,zu=function(G){var B=G.__mixinApplications;B||(B=new WeakMap,G.__mixinApplications=B);var F=B3y++;return function(D){var u=D.__mixinSet;if(u&&u[F])return D;var R=B,N=R.get(D);N||(N=G(D),R.set(D,N),D=Object.create(N.__mixinSet||u||null),D[F]=!0,N.__mixinSet=D);return N}};_.hA=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(G){return ShadyDOM.patch(G)}:function(G){return G};var iWt=zu(function(G){var B=function(){var F=G.call(this)||this;F.__dataEnabled=!1;F.__dataReady=!1;F.__dataInvalid=!1;F.__data={};F.__dataPending=null;F.__dataOld=null;F.__dataInstanceProps=null;F.__dataCounter=0;F.__serializing=!1;F._initializeProperties();return F};
_.r(B,G);B.createProperties=function(F){var D=this.prototype,u;for(u in F)u in D||D._createPropertyAccessor(u)};
B.attributeNameForProperty=function(F){return F.toLowerCase()};
B.typeForProperty=function(){};
B.prototype._createPropertyAccessor=function(F,D){this._addPropertyToAttributeMap(F);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[F]||(this.__dataHasAccessor[F]=!0,this._definePropertyAccessor(F,D))};
B.prototype._addPropertyToAttributeMap=function(F){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var D=this.__dataAttributes[F];D||(D=this.constructor.attributeNameForProperty(F),this.__dataAttributes[D]=F);return D};
B.prototype._definePropertyAccessor=function(F,D){Object.defineProperty(this,F,{get:function(){return this.__data[F]},
set:D?function(){}:function(u){this._setPendingProperty(F,u,!0)&&this._invalidateProperties()}})};
B.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
B.prototype._initializeProperties=function(){for(var F in this.__dataHasAccessor)this.hasOwnProperty(F)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[F]=this[F],delete this[F])};
B.prototype._initializeInstanceProperties=function(F){Object.assign(this,F)};
B.prototype._setProperty=function(F,D){this._setPendingProperty(F,D)&&this._invalidateProperties()};
B.prototype._getProperty=function(F){return this.__data[F]};
B.prototype._setPendingProperty=function(F,D){var u=this.__data[F],R=this._shouldPropertyChange(F,D,u);R&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||F in this.__dataOld||(this.__dataOld[F]=u),this.__data[F]=D,this.__dataPending[F]=D);return R};
B.prototype._isPropertyPending=function(F){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(F))};
B.prototype._invalidateProperties=function(){var F=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,zc.run(function(){F.__dataInvalid&&(F.__dataInvalid=!1,F._flushProperties())}))};
B.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
B.prototype._flushProperties=function(){this.__dataCounter++;var F=this.__data,D=this.__dataPending,u=this.__dataOld;this._shouldPropertiesChange(F,D,u)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(F,D,u));this.__dataCounter--};
B.prototype._shouldPropertiesChange=function(F,D){return!!D};
B.prototype._propertiesChanged=function(){};
B.prototype._shouldPropertyChange=function(F,D,u){return u!==D&&(u===u||D===D)};
B.prototype.attributeChangedCallback=function(F,D,u,R){D!==u&&this._attributeToProperty(F,u);G.prototype.attributeChangedCallback&&G.prototype.attributeChangedCallback.call(this,F,D,u,R)};
B.prototype._attributeToProperty=function(F,D,u){if(!this.__serializing){var R=this.__dataAttributes;F=R&&R[F]||F;this[F]=this._deserializeValue(D,u||this.constructor.typeForProperty(F))}};
B.prototype._propertyToAttribute=function(F,D,u){this.__serializing=!0;u=arguments.length<3?this[F]:u;this._valueToNodeAttribute(this,u,D||this.constructor.attributeNameForProperty(F));this.__serializing=!1};
B.prototype._valueToNodeAttribute=function(F,D,u){D=this._serializeValue(D);if(u==="class"||u==="name"||u==="slot")F=(0,_.hA)(F);D===void 0?F.removeAttribute(u):F.setAttribute(u,D===""&&window.trustedTypes?window.trustedTypes.emptyScript:D)};
B.prototype._serializeValue=function(F){switch(typeof F){case "boolean":return F?"":void 0;default:return F!=null?F.toString():void 0}};
B.prototype._deserializeValue=function(F,D){switch(D){case Boolean:return F!==null;case Number:return Number(F);default:return F}};
return B});var FC8=0,fbS=[];var D78=zu(function(G){function B(R){R=Object.getPrototypeOf(R);return R.prototype instanceof u?R:null}
function F(R){if(!R.hasOwnProperty("__ownProperties")){var N=null;if(R.hasOwnProperty("properties")){var y=R.properties;if(y){N={};for(var U in y){var q=y[U];N[U]=typeof q==="function"?{type:q}:q}}}R.__ownProperties=N}return R.__ownProperties}
var D=iWt(G),u=function(){return D.apply(this,arguments)||this};
_.r(u,D);u.finalize=function(){if(!this.hasOwnProperty("__finalized")){var R=B(this);R&&R.finalize();this.__finalized=!0;this._finalizeClass()}};
u._finalizeClass=function(){var R=F(this);R&&this.createProperties(R)};
u.typeForProperty=function(R){return(R=this._properties[R])&&R.type};
u.prototype._initializeProperties=function(){FC8++;this.constructor.finalize();D.prototype._initializeProperties.call(this)};
u.prototype.connectedCallback=function(){D.prototype.connectedCallback&&D.prototype.connectedCallback.call(this);this._enableProperties()};
u.prototype.disconnectedCallback=function(){D.prototype.disconnectedCallback&&D.prototype.disconnectedCallback.call(this)};
_.ZN.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var R=this;if(!this.hasOwnProperty("__observedAttributes")){tgz(this.prototype);var N=this._properties;this.__observedAttributes=N?Object.keys(N).map(function(y){return R.prototype._addPropertyToAttributeMap(y)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var R=B(this);this.__properties=Object.assign({},R&&R._properties,F(this))}return this.__properties}}});
return u});var ZzL={},gL6=/-[a-z]/g,SdU=/([A-Z])/g;for(var uQa={},R6y=HTMLElement.prototype;R6y;){for(var wcq=Object.getOwnPropertyNames(R6y),CAL=0;CAL<wcq.length;CAL++)uQa[wcq[CAL]]=!0;R6y=Object.getPrototypeOf(R6y)}var N3q=window.trustedTypes?function(G){return trustedTypes.isHTML(G)||trustedTypes.isScript(G)||trustedTypes.isScriptURL(G)}:function(){return!1},ySa=zu(function(G){var B=iWt(G);
G=function(){return B.apply(this,arguments)||this};
_.r(G,B);G.createPropertiesForAttributes=function(){for(var F=this.observedAttributes,D=0;D<F.length;D++)this.prototype._createPropertyAccessor(DN(F[D]))};
G.attributeNameForProperty=function(F){return wS(F)};
G.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);B.prototype._initializeProperties.call(this)};
G.prototype._initializeProtoProperties=function(F){for(var D in F)this._setProperty(D,F[D])};
G.prototype._ensureAttribute=function(F,D){this.hasAttribute(F)||this._valueToNodeAttribute(this,D,F)};
G.prototype._serializeValue=function(F){switch(typeof F){case "object":if(F instanceof Date)return F.toString();if(F){if(N3q(F))return F;try{return JSON.stringify(F)}catch(D){return""}}default:return B.prototype._serializeValue.call(this,F)}};
G.prototype._deserializeValue=function(F,D){switch(D){case Object:try{var u=JSON.parse(F)}catch(R){u=F}break;case Array:try{u=JSON.parse(F)}catch(R){u=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+F)}break;case Date:u=isNaN(F)?String(F):Number(F);u=new Date(u);break;default:u=B.prototype._deserializeValue.call(this,F,D)}return u};
G.prototype._definePropertyAccessor=function(F,D){if(!uQa[F]){var u=this[F];u!==void 0&&(this.__data?this._setPendingProperty(F,u):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[F]=u))}B.prototype._definePropertyAccessor.call(this,F,D)};
G.prototype._hasAccessor=function(F){return this.__dataHasAccessor&&this.__dataHasAccessor[F]};
G.prototype._isPropertyPending=function(F){return!!(this.__dataPending&&F in this.__dataPending)};
return G});var nTG={"dom-if":!0,"dom-repeat":!0},lOU=!1,U7t=!1,qF8=function(){var G=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(B){return B}});
return function(B,F,D){F=F.getAttribute(D);G&&D.startsWith("on-")?B.setAttribute(D,G.createScript(F,D)):B.setAttribute(D,F)}}(),ETP=zu(function(G){var B=function(){return G.apply(this,arguments)||this};
_.r(B,G);B._parseTemplate=function(F,D){if(!F._templateInfo){var u=F._templateInfo={};u.nodeInfoList=[];u.nestedTemplate=!!D;u.stripWhiteSpace=D&&D.stripWhiteSpace||F.hasAttribute&&F.hasAttribute("strip-whitespace");this._parseTemplateContent(F,u,{parent:null})}return F._templateInfo};
B._parseTemplateContent=function(F,D,u){return this._parseTemplateNode(F.content,D,u)};
B._parseTemplateNode=function(F,D,u){var R=!1;F.localName!="template"||F.hasAttribute("preserve-content")?F.localName==="slot"&&(D.hasInsertionPoint=!0):R=this._parseTemplateNestedTemplate(F,D,u)||R;if(!lOU){lOU=!0;var N=document.createElement("textarea");N.placeholder="a";U7t=N.placeholder===N.textContent}U7t&&F.localName==="textarea"&&F.placeholder&&F.placeholder===F.textContent&&(F.textContent=null);F.firstChild&&this._parseTemplateChildNodes(F,D,u);F.hasAttributes&&F.hasAttributes()&&(R=this._parseTemplateNodeAttributes(F,
D,u)||R);return R||u.noted};
B._parseTemplateChildNodes=function(F,D,u){if(F.localName!=="script"&&F.localName!=="style")for(var R=F.firstChild,N=0,y;R;R=y){if(R.localName=="template"){var U=R.getAttribute("is");if(U&&nTG[U])for(y=R,y.removeAttribute("is"),R=y.ownerDocument.createElement(U),y.parentNode.replaceChild(R,y),R.appendChild(y);y.attributes.length;)U=y.attributes[0].name,qF8(R,y,U),y.removeAttribute(U)}y=R.nextSibling;if(R.nodeType===Node.TEXT_NODE){for(U=y;U&&U.nodeType===Node.TEXT_NODE;)R.textContent+=U.textContent,
y=U.nextSibling,F.removeChild(U),U=y;if(D.stripWhiteSpace&&!R.textContent.trim()){F.removeChild(R);continue}}U={parentIndex:N,parentInfo:u};this._parseTemplateNode(R,D,U)&&(U.infoIndex=D.nodeInfoList.push(U)-1);R.parentNode&&N++}};
B._parseTemplateNestedTemplate=function(F,D,u){D=this._parseTemplate(F,D);(D.content=F.content.ownerDocument.createDocumentFragment()).appendChild(F.content);u.templateInfo=D;return!0};
B._parseTemplateNodeAttributes=function(F,D,u){for(var R=!1,N=Array.from(F.attributes),y=N.length-1,U;U=N[y];y--)R=this._parseTemplateNodeAttribute(F,D,u,U.name,U.value)||R;return R};
B._parseTemplateNodeAttribute=function(F,D,u,R,N){return R.slice(0,3)==="on-"?(F.removeAttribute(R),u.events=u.events||[],u.events.push({name:R.slice(3),value:N}),!0):R==="id"?(u.id=N,!0):!1};
B._contentForTemplate=function(F){var D=F._templateInfo;return D&&D.content||F.content};
B.prototype._stampTemplate=function(F,D){F&&!F.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(F);D=D||this.constructor._parseTemplate(F);var u=D.nodeInfoList;F=document.importNode(D.content||F.content,!0);F.__noInsertionPoint=!D.hasInsertionPoint;var R=F.nodeList=Array(u.length);F.$={};for(var N=0,y=u.length,U=void 0;N<y&&(U=u[N]);N++){var q=R[N]=sGg(F,U);U.id&&(F.$[U.id]=q);var h=q,K=U,a=D;K.templateInfo&&(h._templateInfo=K.templateInfo,h._parentTemplateInfo=
a);if(U.events&&U.events.length)for(h=0,K=U.events,a=void 0;h<K.length&&(a=K[h]);h++)this._addMethodEventListenerToNode(q,a.name,a.value,this)}return F};
B.prototype._addMethodEventListenerToNode=function(F,D,u,R){u=xkQ(R||F,u);this._addEventListenerToNode(F,D,u);return u};
B.prototype._addEventListenerToNode=function(F,D,u){F.addEventListener(D,u)};
B.prototype._removeEventListenerFromNode=function(F,D,u){F.removeEventListener(D,u)};
return B});var q0=0,ap=[],h6y={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},KCq=/[A-Z]/,aOq=function(G,B,F,D,u){var R=u?N0(G):G;if(B=B[R])for(R=0;R<B.length;R++){var N=B[R];if(N.info.lastRun!==q0&&(!u||DtI(G,N.trigger))){N.info.lastRun=q0;N=N.info;for(var y=F,U=D,q=0,h=y.length-1,K=-1;q<=h;){var a=q+h>>1,m=U.get(y[a].methodInfo)-U.get(N.methodInfo);if(m<0)q=a+1;else if(m>0)h=a-1;else{K=a;break}}K<
0&&(K=h+1);y.splice(K,0,N)}}},mtl=[],m7q=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"),Ve=zu(function(G){var B=ETP(ySa(G));
G=function(){var F=B.call(this)||this;F.__isPropertyEffectsClient=!0;return F};
_.r(G,B);G.prototype._initializeProperties=function(){B.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
G.prototype._registerHost=function(){if(bw.length){var F=bw[bw.length-1];F._enqueueClient(this);this.__dataHost=F}};
G.prototype._initializeProtoProperties=function(F){this.__data=Object.create(F);this.__dataPending=Object.create(F);this.__dataOld={}};
G.prototype._initializeInstanceProperties=function(F){var D=this.__readOnly,u;for(u in F)D&&D[u]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[u]=this.__dataPending[u]=F[u])};
G.prototype._addPropertyEffect=function(F,D,u){this._createPropertyAccessor(F,D=="__readOnly");var R=FhL(this,D,!0)[F];R||(R=this[D][F]=[]);R.push(u)};
G.prototype._removePropertyEffect=function(F,D,u){F=FhL(this,D,!0)[F];u=F.indexOf(u);u>=0&&F.splice(u,1)};
G.prototype._hasPropertyEffect=function(F,D){D=this[D];return!(!D||!D[F])};
G.prototype._hasReadOnlyEffect=function(F){return this._hasPropertyEffect(F,"__readOnly")};
G.prototype._hasNotifyEffect=function(F){return this._hasPropertyEffect(F,"__notifyEffects")};
G.prototype._hasReflectEffect=function(F){return this._hasPropertyEffect(F,"__reflectEffects")};
G.prototype._hasComputedEffect=function(F){return this._hasPropertyEffect(F,"__computeEffects")};
G.prototype._setPendingPropertyOrPath=function(F,D,u,R){if(R||N0(Array.isArray(F)?F[0]:F)!==F){if(!R&&(R=U2(this,F),F=ixU(this,F,D),!F||!B.prototype._shouldPropertyChange.call(this,F,D,R)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(F,D,u)){if(u=this.__dataLinkedPaths)for(var N in u)R=u[N],yN(N,F)?(R=nt(N,R,F),this._setPendingPropertyOrPath(R,D,!0,!0)):yN(R,F)&&(R=nt(R,N,F),this._setPendingPropertyOrPath(R,D,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[F])return this._setPendingProperty(F,
D,u);this[F]=D}return!1};
G.prototype._setUnmanagedPropertyToNode=function(F,D,u){if(u!==F[D]||typeof u=="object")D==="className"&&(F=(0,_.hA)(F)),F[D]=u};
G.prototype._setPendingProperty=function(F,D,u){var R=this.__dataHasPaths&&Ct(F);if(this._shouldPropertyChange(F,D,(R?this.__dataTemp:this.__data)[F])){this.__dataPending||(this.__dataPending={},this.__dataOld={});F in this.__dataOld||(this.__dataOld[F]=this.__data[F]);R?this.__dataTemp[F]=D:this.__data[F]=D;this.__dataPending[F]=D;if(R||this.__notifyEffects&&this.__notifyEffects[F])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[F]=u;return!0}return!1};
G.prototype._setProperty=function(F,D){this._setPendingProperty(F,D,!0)&&this._invalidateProperties()};
G.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
G.prototype._enqueueClient=function(F){this.__dataPendingClients=this.__dataPendingClients||[];F!==this&&this.__dataPendingClients.push(F)};
G.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
G.prototype.__enableOrFlushClients=function(){var F=this.__dataPendingClients;if(F){this.__dataPendingClients=null;for(var D=0;D<F.length;D++){var u=F[D];u.__dataEnabled?u.__dataPending&&u._flushProperties():u._enableProperties()}}};
G.prototype._readyClients=function(){this.__enableOrFlushClients()};
G.prototype.setProperties=function(F,D){for(var u in F)!D&&this.__readOnly&&this.__readOnly[u]||this._setPendingPropertyOrPath(u,F[u],!0);this._invalidateProperties()};
G.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
G.prototype._propertiesChanged=function(F,D,u){F=this.__dataHasPaths;this.__dataHasPaths=!1;var R;if(R=this.__computeEffects)if(tsU){q0++;var N=y1z(this),y=[],U;for(U in D)aOq(U,R,y,N,F);for(;U=y.shift();)lw6(this,"",D,u,U)&&aOq(U.methodInfo,R,y,N,F);Object.assign(u,this.__dataOld);Object.assign(D,this.__dataPending);this.__dataPending=null}else for(N=D;E2(this,R,N,u,F);)Object.assign(u,this.__dataOld),Object.assign(D,this.__dataPending),N=this.__dataPending,this.__dataPending=null;R=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(D,u,F);this._flushClients();E2(this,this.__reflectEffects,D,u,F);E2(this,this.__observeEffects,D,u,F);if(R){N=this.__notifyEffects;y=q0++;for(var q in R)if(R[q]){if(U=N){var h=N;U=y;var K=q,a=D,m=u,L=F,W=!1,e=L?N0(K):K;if(h=h[e]){e=0;for(var b=h.length,M=void 0;e<b&&(M=h[e]);e++)M.info&&M.info.lastRun===U||L&&!DtI(K,M.trigger)||(M.info&&(M.info.lastRun=U),M.fn(this,K,a,m,M.info,L,void 0),W=!0)}U=W}if(U)var t=!0;else{if(U=F)U=q,K=D,a=N0(U),a!==
U?(a=wS(a)+"-changed",ROc(this,a,K[U],U),U=!0):U=!1;U&&(t=!0)}}var T;t&&(T=this.__dataHost)&&T._invalidateProperties&&T._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
G.prototype._propagatePropertyChanges=function(F,D,u){this.__propagateEffects&&E2(this,this.__propagateEffects,F,D,u);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,F,D,u)};
G.prototype._runEffectsForTemplate=function(F,D,u,R){var N=this,y=function(U,q){E2(N,F.propertyEffects,U,u,q,F.nodeList);for(var h=F.firstChild;h;h=h.nextSibling)N._runEffectsForTemplate(h,U,u,q)};
F.runEffects?F.runEffects(y,D,R):y(D,R)};
G.prototype.linkPaths=function(F,D){F=ls(F);D=ls(D);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[F]=D};
G.prototype.unlinkPaths=function(F){F=ls(F);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[F]};
G.prototype.notifySplices=function(F,D){var u={path:""};F=U2(this,F,u);LhQ(this,F,u.path,D)};
G.prototype.get=function(F,D){return U2(D||this,F)};
G.prototype.set=function(F,D,u){u?ixU(u,F,D):this.__readOnly&&this.__readOnly[F]||this._setPendingPropertyOrPath(F,D,!0)&&this._invalidateProperties()};
G.prototype.push=function(F){var D=_.xS.apply(1,arguments),u={path:""},R=U2(this,F,u),N=R.length,y=R.push.apply(R,_.gi(D));D.length&&XL(this,R,u.path,N,D.length,[]);return y};
G.prototype.pop=function(F){var D={path:""};F=U2(this,F,D);var u=!!F.length,R=F.pop();u&&XL(this,F,D.path,F.length,0,[R]);return R};
G.prototype.splice=function(F,D,u){var R=_.xS.apply(3,arguments),N={path:""},y=U2(this,F,N);D<0?D=y.length-Math.floor(-D):D&&(D=Math.floor(D));var U=arguments.length===2?y.splice(D):y.splice.apply(y,[D,u].concat(_.gi(R)));(R.length||U.length)&&XL(this,y,N.path,D,R.length,U);return U};
G.prototype.shift=function(F){var D={path:""};F=U2(this,F,D);var u=!!F.length,R=F.shift();u&&XL(this,F,D.path,0,0,[R]);return R};
G.prototype.unshift=function(F){var D=_.xS.apply(1,arguments),u={path:""},R=U2(this,F,u),N=R.unshift.apply(R,_.gi(D));D.length&&XL(this,R,u.path,0,D.length,[]);return N};
G.prototype.notifyPath=function(F,D){if(arguments.length==1){var u={path:""};D=U2(this,F,u);u=u.path}else u=Array.isArray(F)?ls(F):F;this._setPendingPropertyOrPath(u,D,!0,!0)&&this._invalidateProperties()};
G.prototype._createReadOnlyProperty=function(F,D){this._addPropertyEffect(F,"__readOnly");D&&(this["_set"+(F[0].toUpperCase()+F.substring(1))]=function(u){this._setProperty(F,u)})};
G.prototype._createPropertyObserver=function(F,D,u){var R={property:F,method:D,dynamicFn:!!u};this._addPropertyEffect(F,"__observeEffects",{fn:uio,info:R,trigger:{name:F}});u&&this._addPropertyEffect(D,"__observeEffects",{fn:uio,info:R,trigger:{name:D}})};
G.prototype._createMethodObserver=function(F,D){var u=QCL(F);if(!u)throw Error("Fd`"+F);KhM(this,u,"__observeEffects",nwU,null,D)};
G.prototype._createNotifyingProperty=function(F){this._addPropertyEffect(F,"__notifyEffects",{fn:wPc,info:{eventName:wS(F)+"-changed",property:F}})};
G.prototype._createReflectedProperty=function(F){var D=this.constructor.attributeNameForProperty(F);D[0]==="-"?console.warn("Property "+F+" cannot be reflected to attribute "+D+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(F,"__reflectEffects",{fn:CQI,info:{attrName:D}})};
G.prototype._createComputedProperty=function(F,D,u){var R=QCL(D);if(!R)throw Error("Gd`"+D);D=KhM(this,R,"__computeEffects",lw6,F,u);FhL(this,"__computeInfo")[F]=D};
G.prototype._marshalArgs=function(F,D,u){for(var R=this.__data,N=[],y=0,U=F.length;y<U;y++){var q=F[y],h=q.name,K=q.structured,a=q.wildcard,m=q.value;q.literal||(a?(q=yN(h,D),K=jCz(R,u,q?D:h),m={path:q?D:h,value:K,base:q?U2(R,h):K}):m=K?jCz(R,u,h):R[h]);if(mj&&!this._overrideLegacyUndefined&&m===void 0&&F.length>1)return ap;N[y]=m}return N};
G.addPropertyEffect=function(F,D,u){this.prototype._addPropertyEffect(F,D,u)};
G.createPropertyObserver=function(F,D,u){this.prototype._createPropertyObserver(F,D,u)};
G.createMethodObserver=function(F,D){this.prototype._createMethodObserver(F,D)};
G.createNotifyingProperty=function(F){this.prototype._createNotifyingProperty(F)};
G.createReadOnlyProperty=function(F,D){this.prototype._createReadOnlyProperty(F,D)};
G.createReflectedProperty=function(F){this.prototype._createReflectedProperty(F)};
G.createComputedProperty=function(F,D,u){this.prototype._createComputedProperty(F,D,u)};
G.bindTemplate=function(F){return this.prototype._bindTemplate(F)};
G.prototype._bindTemplate=function(F,D){var u=this.constructor._parseTemplate(F),R=this.__preBoundTemplateInfo==u;if(!R)for(var N in u.propertyEffects)this._createPropertyAccessor(N);D?(u=Object.create(u),u.wasPreBound=R,this.__templateInfo?(F=F._parentTemplateInfo||this.__templateInfo,D=F.lastChild,u.parent=F,F.lastChild=u,(u.previousSibling=D)?D.nextSibling=u:F.firstChild=u):this.__templateInfo=u):this.__preBoundTemplateInfo=u;return u};
G._addTemplatePropertyEffect=function(F,D,u){(F.hostProps=F.hostProps||{})[D]=!0;F=F.propertyEffects=F.propertyEffects||{};(F[D]=F[D]||[]).push(u)};
G.prototype._stampTemplate=function(F,D){D=D||this._bindTemplate(F,!0);bw.push(this);F=B.prototype._stampTemplate.call(this,F,D);bw.pop();D.nodeList=F.nodeList;if(!D.wasPreBound)for(var u=D.childNodes=[],R=F.firstChild;R;R=R.nextSibling)u.push(R);F.templateInfo=D;u=D.nodeList;R=D.nodeInfoList;if(R.length)for(var N=0;N<R.length;N++){var y=u[N],U=R[N].bindings;if(U)for(var q=0;q<U.length;q++){var h=U[q],K=y,a=h;if(a.isCompound){for(var m=K.__dataCompoundStorage||(K.__dataCompoundStorage={}),L=a.parts,
W=Array(L.length),e=0;e<L.length;e++)W[e]=L[e].literal;L=a.target;m[L]=W;a.literal&&a.kind=="property"&&(L==="className"&&(K=(0,_.hA)(K)),K[L]=a.literal)}hOQ(y,this,h)}y.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(D,this.__data,null,!1),this._flushClients());return F};
G.prototype._removeBoundDom=function(F){F=F.templateInfo;var D=F.previousSibling,u=F.nextSibling,R=F.parent;D?D.nextSibling=u:R&&(R.firstChild=u);u?u.previousSibling=D:R&&(R.lastChild=D);F.nextSibling=F.previousSibling=null;F=F.childNodes;for(D=0;D<F.length;D++)u=F[D],(0,_.hA)((0,_.hA)(u).parentNode).removeChild(u)};
G._parseTemplateNode=function(F,D,u){var R=B._parseTemplateNode.call(this,F,D,u);if(F.nodeType===Node.TEXT_NODE){var N=this._parseBindings(F.textContent,D);N&&(F.textContent=awg(N)||" ",Ews(this,D,u,"text","textContent",N),R=!0)}return R};
G._parseTemplateNodeAttribute=function(F,D,u,R,N){var y=this._parseBindings(N,D);if(y){N=R;var U="property";KCq.test(R)?U="attribute":R[R.length-1]=="$"&&(R=R.slice(0,-1),U="attribute");var q=awg(y);q&&U=="attribute"&&(R=="class"&&F.hasAttribute("class")&&(q+=" "+F.getAttribute(R)),F.setAttribute(R,q));U=="attribute"&&N=="disable-upgrade$"&&F.setAttribute(R,"");F.localName==="input"&&N==="value"&&F.setAttribute(N,"");F.removeAttribute(N);U==="property"&&(R=DN(R));Ews(this,D,u,U,R,y,q);return!0}return B._parseTemplateNodeAttribute.call(this,
F,D,u,R,N)};
G._parseTemplateNestedTemplate=function(F,D,u){var R=B._parseTemplateNestedTemplate.call(this,F,D,u),N=F.parentNode,y=u.templateInfo,U=N.localName==="dom-if",q=N.localName==="dom-repeat";HL&&(U||q)&&(N.removeChild(F),u=u.parentInfo,u.templateInfo=y,u.noted=!0,R=!1);F=y.hostProps;if(ke&&U)F&&(D.hostProps=Object.assign(D.hostProps||{},F),HL||(u.parentInfo.noted=!0));else for(var h in F)Ews(this,D,u,"property","_host_"+h,[{mode:"{",source:h,dependencies:[h],hostProp:!0}]);return R};
G._parseBindings=function(F,D){for(var u=[],R=0,N;(N=m7q.exec(F))!==null;){N.index>R&&u.push({literal:F.slice(R,N.index)});R=N[1][0];var y=!!N[2];N=N[3].trim();var U=!1,q="",h=-1;R=="{"&&(h=N.indexOf("::"))>0&&(q=N.substring(h+2),N=N.substring(0,h),U=!0);h=QCL(N);var K=[];if(h){var a=h,m=a.args;a=a.methodName;for(var L=0;L<m.length;L++){var W=m[L];W.literal||K.push(W)}if((m=D.dynamicFns)&&m[a]||h.static)K.push(a),h.dynamicFn=!0}else K.push(N);u.push({source:N,mode:R,negate:y,customEvent:U,signature:h,
dependencies:K,event:q});R=m7q.lastIndex}R&&R<F.length&&(F=F.substring(R))&&u.push({literal:F});return u.length?u:null};
G._evaluateBinding=function(F,D,u,R,N,y){F=D.signature?nwU(F,u,R,N,D.signature):u!=D.source?U2(F,D.source):y&&Ct(u)?U2(F,u):F.__data[u];D.negate&&(F=!F);return F};
_.ZN.Object.defineProperties(G.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return h6y}}});
return G}),bw=[];var XcU=window.ShadyCSS&&window.ShadyCSS.cssBuild,vL=zu(function(G){function B(D,u,R,N){if(!XcU){for(var y=u.content.querySelectorAll("style"),U=kd8(u),q=Oxs(R),h=u.content.firstElementChild,K=0;K<q.length;K++){var a=q[K];a.textContent=D._processStyleText(a.textContent,N);u.content.insertBefore(a,h)}for(h=q=0;h<U.length;h++)K=U[h],a=y[q],a!==K?(K=K.cloneNode(!0),a.parentNode.insertBefore(K,a)):q++,K.textContent=D._processStyleText(K.textContent,N)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,
R);if(g7y&&XcU&&cVw&&(u=u.content.querySelectorAll("style"))){var m="";Array.from(u).forEach(function(L){m+=L.textContent;L.parentNode.removeChild(L)});
D._styleSheet=new CSSStyleSheet;D._styleSheet.replaceSync(m)}}
var F=D78(Ve(G));G=function(){return F.call(this)||this};
_.r(G,F);G._finalizeClass=function(){F._finalizeClass.call(this);var D;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(D=this.__ownObservers)&&this.createObservers(D,this._properties);this._prepareTemplate()};
G._prepareTemplate=function(){var D=this.template;D&&(typeof D==="string"?(console.error("template getter must return HTMLTemplateElement"),D=null):VN||(D=D.cloneNode(!0)));this.prototype._template=D};
G.createProperties=function(D){for(var u in D){var R=this.prototype,N=u,y=D[u],U=D;y.computed&&(y.readOnly=!0);y.computed&&(R._hasReadOnlyEffect(N)?console.warn("Cannot redefine computed property '"+N+"'."):R._createComputedProperty(N,y.computed,U));y.readOnly&&!R._hasReadOnlyEffect(N)?R._createReadOnlyProperty(N,!y.computed):y.readOnly===!1&&R._hasReadOnlyEffect(N)&&console.warn("Cannot make readOnly property '"+N+"' non-readOnly.");y.reflectToAttribute&&!R._hasReflectEffect(N)?R._createReflectedProperty(N):
y.reflectToAttribute===!1&&R._hasReflectEffect(N)&&console.warn("Cannot make reflected property '"+N+"' non-reflected.");y.notify&&!R._hasNotifyEffect(N)?R._createNotifyingProperty(N):y.notify===!1&&R._hasNotifyEffect(N)&&console.warn("Cannot make notify property '"+N+"' non-notify.");y.observer&&R._createPropertyObserver(N,y.observer,U[y.observer]);R._addPropertyToAttributeMap(N)}};
G.createObservers=function(D,u){for(var R=this.prototype,N=0;N<D.length;N++)R._createMethodObserver(D[N],u)};
G.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);F.prototype._initializeProperties.call(this);this.rootPath=TKG;this.importPath=this.constructor.importPath;var D=this.constructor;if(!D.hasOwnProperty("__propertyDefaults")){D.__propertyDefaults=null;var u=D._properties,R;for(R in u){var N=u[R];"value"in N&&(D.__propertyDefaults=D.__propertyDefaults||{},D.__propertyDefaults[R]=N)}}if(D=D.__propertyDefaults)for(var y in D)u=D[y],
this._canApplyPropertyDefault(y)&&(u=typeof u.value=="function"?u.value.call(this):u.value,this._hasAccessor(y)?this._setPendingProperty(y,u,!0):this[y]=u)};
G.prototype._canApplyPropertyDefault=function(D){return!this.hasOwnProperty(D)};
G._processStyleText=function(D,u){return dkQ(D,u)};
G._finalizeTemplate=function(D){var u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;var R=this.importPath;R=R?_.is(R):"";B(this,u,D,R);this.prototype._bindTemplate(u)}};
G.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);F.prototype.connectedCallback.call(this)};
G.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);F.prototype.ready.call(this)};
G.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));F.prototype._readyClients.call(this)};
G.prototype._attachDom=function(D){var u=(0,_.hA)(this);if(u.attachShadow)return D?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:D}),u.shadowRoot.appendChild(D),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),fkG&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw Error("Id");};
G.prototype.updateStyles=function(D){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,D)};
G.prototype.resolveUrl=function(D,u){!u&&this.importPath&&(u=_.is(this.importPath));return _.is(D,u)};
G._parseTemplateContent=function(D,u,R){u.dynamicFns=u.dynamicFns||this._properties;return F._parseTemplateContent.call(this,D,u,R)};
G._addTemplatePropertyEffect=function(D,u,R){!pt||u in this._properties||R.info.part.signature&&R.info.part.signature.static||R.info.part.hostProp||D.nestedTemplate||console.warn("Property '"+u+"' used in template but not declared in 'properties'; attribute will not be observed.");return F._addTemplatePropertyEffect.call(this,D,u,R)};
_.ZN.Object.defineProperties(G,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var D=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof D==="function"&&(D=D());if(D===void 0){if(D=this.hasOwnProperty("is")){D=this.is;var u=null;if(D&&(!Yb||Ikv)&&(u=QN.import(D,"template"),Yb&&!u))throw Error("Hd`"+D);D=u}D=D||Object.getPrototypeOf(this.prototype).constructor.template}this._template=D}return this._template},
set:function(D){this._template=D}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var D=this.importMeta;D?this._importPath=Jml(D.url):this._importPath=(D=QN.import(this.is))&&D.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return G});var QyN=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(G){return G}}),owo=function(G,B){jyL(G,B);
this.value=B.reduce(function(F,D,u){return F+MTl(D)+G[u+1]},G[0]).toString()},jyL;
owo.prototype.toString=function(){return this.value};
_.LCG=function(G){var B=_.xS.apply(1,arguments);jyL(G,B);var F=document.createElement("template");B=B.reduce(function(D,u,R){if(u instanceof HTMLTemplateElement)u=u.innerHTML;else if(u instanceof owo)u=MTl(u);else throw Error("Kd`"+u);return D+u+G[R+1]},G[0]);
QyN&&(B=QyN.createHTML(B));F.innerHTML=B;return F};
jyL=function(G,B){if(!Array.isArray(G)||!Array.isArray(G.raw)||B.length!==G.length-1)throw new TypeError("Ld");};var o6=vL(HTMLElement);var rSa=zu(function(G){var B=vL(G);G=function(){var F=B.call(this)||this;F.__lastItems=null;F.__lastMulti=null;F.__selectedMap=null;return F};
_.r(G,B);G.prototype.__updateSelection=function(F,D){var u=D.path;u=="items"?(D=D.base||[],u=this.__lastItems,F!==this.__lastMulti&&this.clearSelection(),u&&(u=vwJ(D,u),this.__applySplices(u)),this.__lastItems=D,this.__lastMulti=F):D.path=="items.splices"?this.__applySplices(D.value.indexSplices):(F=u.slice(6),D=parseInt(F,10),F.indexOf(".")<0&&F==D&&this.__deselectChangedIdx(D))};
G.prototype.__applySplices=function(F){for(var D=this,u=this.__selectedMap,R={},N=0;N<F.length;R={s$jscomp$109:void 0},N++){R.s$jscomp$109=F[N];u.forEach(function(h){return function(K,a){K<h.s$jscomp$109.index||(K>=h.s$jscomp$109.index+h.s$jscomp$109.removed.length?u.set(a,K+h.s$jscomp$109.addedCount-h.s$jscomp$109.removed.length):u.set(a,-1))}}(R));
for(var y=0;y<R.s$jscomp$109.addedCount;y++){var U=R.s$jscomp$109.index+y;u.has(this.items[U])&&u.set(this.items[U],U)}}this.__updateLinks();var q=0;u.forEach(function(h,K){h<0?(D.multi?D.splice("selected",q,1):D.selected=D.selectedItem=null,u.delete(K)):q++})};
G.prototype.__updateLinks=function(){var F=this;this.__dataLinkedPaths={};if(this.multi){var D=0;this.__selectedMap.forEach(function(u){u>=0&&F.linkPaths("items."+u,"selected."+D++)})}else this.__selectedMap.forEach(function(u){F.linkPaths("selected","items."+u);
F.linkPaths("selectedItem","items."+u)})};
G.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
G.prototype.isSelected=function(F){return this.__selectedMap.has(F)};
G.prototype.isIndexSelected=function(F){return this.isSelected(this.items[F])};
G.prototype.__deselectChangedIdx=function(F){var D=this,u=this.__selectedIndexForItemIndex(F);if(u>=0){var R=0;this.__selectedMap.forEach(function(N,y){u==R++&&D.deselect(y)})}};
G.prototype.__selectedIndexForItemIndex=function(F){if(F=this.__dataLinkedPaths["items."+F])return parseInt(F.slice(9),10)};
G.prototype.deselect=function(F){var D=this.__selectedMap.get(F);if(D>=0){this.__selectedMap.delete(F);var u;this.multi&&(u=this.__selectedIndexForItemIndex(D));this.__updateLinks();this.multi?this.splice("selected",u,1):this.selected=this.selectedItem=null}};
G.prototype.deselectIndex=function(F){this.deselect(this.items[F])};
G.prototype.select=function(F){this.selectIndex(this.items.indexOf(F))};
G.prototype.selectIndex=function(F){var D=this.items[F];this.isSelected(D)?this.toggle&&this.deselectIndex(F):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(D,F),this.__updateLinks(),this.multi?this.push("selected",D):this.selected=this.selectedItem=D)};
_.ZN.Object.defineProperties(G,{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 G}),WCq=rSa(o6),MQ=function(){return WCq.apply(this,arguments)||this};
_.r(MQ,WCq);_.ZN.Object.defineProperties(MQ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(MQ.is,MQ);var HW7=window.Polymer;window.Polymer=function(G){return window.Polymer._polymerFn(G)};
HW7&&Object.assign(Polymer,HW7);Polymer._polymerFn=function(){throw Error("Md");};/*

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:dkQ,resolveUrl:_.is,pathFromUrl:Jml};Polymer.DomModule=QN;Polymer.Async={timeOut:_.$e,animationFrame:_.l4,idlePeriod:GaN,microTask:zc};Polymer.dedupingMixin=zu;Polymer.wrap=_.hA;Polymer.PropertiesChanged=iWt;Polymer.telemetry={instanceCount:FC8,incrementInstanceCount:function(){FC8++},
registrations:fbS,register:tgz,dumpRegistrations:function(){fbS.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=D78;Polymer.CaseMap={dashToCamelCase:DN,camelToDashCase:wS};Polymer.PropertyAccessors=ySa;Polymer.TemplateStamp=ETP;Polymer.Path={isPath:Ct,root:N0,isAncestor:PvJ,isDescendant:yN,translate:nt,matches:Gd6,normalize:ls,split:B6z,get:U2,set:ixU,isDeep:Ct};Polymer.Settings={useShadow:vw,useNativeCSSProperties:pma,useNativeCustomElements:Yjs,get rootPath(){return TKG},setRootPath:function(G){TKG=G},
get sanitizeDOMValue(){return Kt},setSanitizeDOMValue:function(G){Kt=G},
get passiveTouchGestures(){return S$z},setPassiveTouchGestures:function(G){S$z=G},
get strictTemplatePolicy(){return Yb},setStrictTemplatePolicy:function(G){Yb=G},
get allowTemplateFromDomModule(){return Ikv},setAllowTemplateFromDomModule:function(G){Ikv=G},
get legacyOptimizations(){return VN},setLegacyOptimizations:function(G){VN=G},
get syncInitialRender(){return fkG},setSyncInitialRender:function(G){fkG=G},
get legacyUndefined(){return mj},setLegacyUndefined:function(G){mj=G},
get legacyWarnings(){return pt},setLegacyWarnings:function(G){pt=G},
get orderedComputed(){return tsU},setOrderedComputed:function(G){tsU=G},
get fastDomIf(){return ke},setFastDomIf:function(G){ke=G},
get removeNestedTemplates(){return HL},setRemoveNestedTemplates:function(G){HL=G},
get suppressTemplateNotifications(){return O9},setSuppressTemplateNotifications:O9};Polymer.rootPath!==void 0&&(TKG=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Kt=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(S$z=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Yb=Polymer.strictTemplatePolicy);Ikv=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(VN=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(fkG=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(mj=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(pt=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(tsU=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(ke=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(HL=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(O9=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Kt},
set:function(G){Kt=G}});Polymer.PropertyEffects=Ve;Polymer.StyleGather={stylesFromModules:HxU,stylesFromModule:Wh6,stylesFromTemplate:kd8,stylesFromModuleImports:Oxs,cssFromModules:$tJ,cssFromModule:eOU,cssFromTemplate:zOS,cssFromModuleImports:function(G){return(G=QN.import(G))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):""}};Polymer.ElementMixin=vL;Polymer.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleDocument(G)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:vwJ};Polymer.html=_.LCG;Polymer.htmlLiteral=function(G){return new owo(G,_.xS.apply(1,arguments))};Polymer.Element=o6;Polymer.ArraySelectorMixin=rSa;Polymer.ArraySelector=MQ;var kaT=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,OW7=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,hrM=/@media\s(.*)/;var dtc=null,A1c=window.HTMLImports&&window.HTMLImports.whenReady||null,J16;var e68=null,pd=null,Ye=function(){this.customStyles=[];this.enqueued=!1;c1I(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$78=function(G){!G.enqueued&&pd&&(G.enqueued=!0,c1I(pd))};
Ye.prototype.addCustomStyle=function(G){G.__seenByShadyCSS||(G.__seenByShadyCSS=!0,this.customStyles.push(G),$78(this))};
Ye.prototype.getStyleForCustomStyle=function(G){if(G.__shadyCSSCachedStyle)return G.__shadyCSSCachedStyle;var B;G.getStyle?B=G.getStyle():B=G;return B};
Ye.prototype.processStyles=function(){for(var G=this.customStyles,B=0;B<G.length;B++){var F=G[B];if(!F.__shadyCSSCachedStyle){var D=this.getStyleForCustomStyle(F);D&&(D=D.__appliedElement||D,e68&&e68(D),F.__shadyCSSCachedStyle=D)}}return G};
Ye.prototype.addCustomStyle=Ye.prototype.addCustomStyle;Ye.prototype.getStyleForCustomStyle=Ye.prototype.getStyleForCustomStyle;Ye.prototype.processStyles=Ye.prototype.processStyles;Object.defineProperties(Ye.prototype,{transformCallback:{get:function(){return e68},
set:function(G){e68=G}},
validateCallback:{get:function(){return pd},
set:function(G){var B=!1;pd||(B=!0);pd=G;B&&$78(this)}}});var Iwl=!(window.ShadyDOM&&window.ShadyDOM.inUse),T6c,tA;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(tA=window.ShadyCSS.cssBuild);var z6G=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?T6c=window.ShadyCSS.nativeCss:window.ShadyCSS?(fwo(window.ShadyCSS),window.ShadyCSS=void 0):fwo(window.WebComponents&&window.WebComponents.flags);var UBs=T6c;var bWs=new Ye;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(G,B){bWs.processStyles();pPo(G,B)},
styleElement:function(){bWs.processStyles()},
styleDocument:function(G){bWs.processStyles();pPo(document.body,G)},
getComputedStyleValue:function(G,B){return Y$I(G,B)},
flushCustomStyles:function(){},
nativeCss:UBs,nativeShadow:Iwl,cssBuild:tA,disableRuntime:z6G});window.ShadyCSS.CustomStyleInterface=bWs;var VIP=window.ShadyCSS.CustomStyleInterface,As=function(){var G=HTMLElement.call(this)||this;G._style=null;VIP.addCustomStyle(G);return G};
_.r(As,HTMLElement);As.prototype.getStyle=function(){if(this._style)return this._style;var G=this.querySelector("style");if(!G)return null;this._style=G;var B=G.getAttribute("include");B&&(G.removeAttribute("include"),G.textContent=$tJ(B)+G.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
As.prototype.getStyle=As.prototype.getStyle;window.customElements.define("custom-style",As);Polymer.CustomStyle=As;var dL=function(){this._timer=this._callback=this._asyncModule=null},Js,oTP;
dL.prototype.setConfig=function(G,B){var F=this;this._asyncModule=G;this._callback=B;this._timer=this._asyncModule.run(function(){F._timer=null;Js.delete(F);F._callback()})};
dL.prototype.cancel=function(){this.isActive()&&(vTs(this),Js.delete(this))};
var vTs=function(G){G.isActive()&&(G._asyncModule.cancel(G._timer),G._timer=null)};
dL.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
dL.prototype.isActive=function(){return this._timer!=null};
_.cL=function(G,B,F){G instanceof dL?vTs(G):G=new dL;G.setConfig(B,F);return G};
Js=new Set;_.Tu=function(G){Js.add(G)};
oTP=function(){var G=!!Js.size;Js.forEach(function(B){try{B.flush()}catch(F){setTimeout(function(){throw F;})}});
return G};var Zxo=typeof document.head.style.touchAction==="string",tTS=["mousedown","mousemove","mouseup","click"],Fvl=[0,1,4,2],MIy;try{MIy=(new MouseEvent("test",{buttons:1})).buttons===1}catch(G){MIy=!1}var iXg=MIy,gw8=!1;(function(){try{var G=Object.defineProperty({},"passive",{get:function(){gw8=!0}});
window.addEventListener("test",null,G);window.removeEventListener("test",null,G)}catch(B){}})();
var xtJ=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),PQU=[],pcw={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Ezg={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},G9S=function(G){var B=G.sourceCapabilities;if(!B||B.firesTouchEvents)if(G.__polymerGesturesHandled={skip:!0},G.type==="click"){B=!1;for(var F=wUJ(G),D=0;D<F.length;D++){if(F[D].nodeType===Node.ELEMENT_NODE)if(F[D].localName==="label")PQU.push(F[D]);
else if(pcw[F[D].localName]){var u=F[D];var R=Array.prototype.slice.call(u.labels||[]);if(!R.length){R=[];try{var N=u.getRootNode();if(u.id){var y=N.querySelectorAll("label[for = '"+u.id+"']");for(u=0;u<y.length;u++)R.push(y[u])}}catch(U){}}for(u=0;u<R.length;u++)B=B||PQU.indexOf(R[u])>-1}if(F[D]===YFN)return}B||(G.preventDefault(),G.stopPropagation())}},YFN=null,I6=null,NIo=0,yRc=0,Ccz=-1,nzs=!1;
document.addEventListener("touchend",function(G){I6||BIo(!0);YFN=wUJ(G)[0];I6=_.cL(I6,_.$e.after(2500),function(){BIo();I6=YFN=null})},gw8?{passive:!0}:!1);
var wUJ=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(G){return G.composedPath&&G.composedPath()||[]},kb={},Ww=[];
lIs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){rS(this.info)},
mousedown:function(G){if(Lt(G)){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),F=this;uSQ(this.info,function(D){Lt(D)||(bs("up",B,D),rS(F.info))},function(D){Lt(D)&&bs("up",B,D);
rS(F.info)});
bs("down",B,G)}},
touchstart:function(G){bs("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)},
touchend:function(G){bs("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)}});
lIs({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(G){this.moves.length>2&&this.moves.shift();this.moves.push(G)},
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;rS(this.info)},
mousedown:function(G){if(Lt(G)){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),F=this,D=function(u){var R=u.clientX,N=u.clientY;UVI(F.info,R,N)&&(F.info.state=F.info.started?u.type==="mouseup"?"end":"track":"start",F.info.state==="start"&&Hw("tap"),F.info.addMove({x:R,y:N}),Lt(u)||(F.info.state="end",rS(F.info)),B&&q8I(F.info,B,u),F.info.started=!0)};
uSQ(this.info,D,function(u){F.info.started&&D(u);rS(F.info)});
this.info.x=G.clientX;this.info.y=G.clientY}},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchmove:function(G){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];var F=G.clientX,D=G.clientY;UVI(this.info,F,D)&&(this.info.state==="start"&&Hw("tap"),this.info.addMove({x:F,y:D}),q8I(this.info,B,G),this.info.state="track",this.info.started=!0)},
touchend:function(G){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:G.clientX,y:G.clientY}),q8I(this.info,B,G))}});
lIs({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(G){Lt(G)&&(this.info.x=G.clientX,this.info.y=G.clientY)},
click:function(G){Lt(G)&&hPo(this.info,G)},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchend:function(G){hPo(this.info,G.changedTouches[0],G)}});var ASy=zu(function(G){var B=function(){return G.apply(this,arguments)||this};
_.r(B,G);B.prototype._addEventListenerToNode=function(F,D,u){O2(F,D,u)||G.prototype._addEventListenerToNode.call(this,F,D,u)};
B.prototype._removeEventListenerFromNode=function(F,D,u){eW(F,D,u)||G.prototype._removeEventListenerFromNode.call(this,F,D,u)};
return B});var fd=zu(function(G){var B=function(){return G.apply(this,arguments)||this};
_.r(B,G);B.prototype._shouldPropertyChange=function(F,D,u){return Kvl(this,F,D,u,!0)};
return B}),d7y=zu(function(G){var B=function(){return G.apply(this,arguments)||this};
_.r(B,G);B.prototype._shouldPropertyChange=function(F,D,u){return Kvl(this,F,D,u,this.mutableData)};
_.ZN.Object.defineProperties(B,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return B});
fd._mutablePropertyChange=Kvl;var aI6=!1;var JSw=ASy(d7y(Ve(HTMLElement))),ts=function(){var G=JSw.call(this)||this;if(Yb)throw Error("Nd");G.root=null;G.$=null;G.__children=null;return G};
_.r(ts,JSw);_.w=ts.prototype;_.w.attributeChangedCallback=function(){this.mutableData=!0};
_.w.connectedCallback=function(){mVg()||(this.style.display="none");this.render()};
_.w.disconnectedCallback=function(){this.__removeChildren()};
_.w.__insertChildren=function(){(0,_.hA)((0,_.hA)(this).parentNode).insertBefore(this.root,this)};
_.w.__removeChildren=function(){if(this.__children)for(var G=0;G<this.__children.length;G++)this.root.appendChild(this.__children[G])};
_.w.render=function(){var G=this;if(!this.__children){var B=B||this.querySelector("template");if(!B){var F=new MutationObserver(function(){if(B=G.querySelector("template"))F.disconnect(),G.render();else throw Error("Od");});
F.observe(this,{childList:!0});return}this.root=this._stampTemplate(B);this.$=this.root.$;this.__children=[];for(var D=this.root.firstChild;D;D=D.nextSibling)this.__children[this.__children.length]=D;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.ZN.Object.defineProperties(ts,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",ts);Polymer.Debouncer=dL;Polymer.Gestures={gestures:kb,recognizers:Ww,deepTargetFind:RPg,addListener:O2,removeListener:eW,register:lIs,setTouchAction:_.$b,prevent:Hw,resetMouseCanceller:function(){I6&&I6.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:O2,remove:eW};Polymer.GestureEventListeners=ASy;Polymer.MutableData=fd;Polymer.OptionalMutableData=d7y;Polymer.DomBind=ts;_.Zz=function(){do{var G=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var B=oTP()}while(G||B)};var XUg=null;QDg.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:QDg,writable:!0}});var ePL=Ve(QDg),OXM=fd(ePL),cSv=Ve(function(){}),op=function(G){var B=cSv.call(this)||this;
B._configureProperties(G);B.root=B._stampTemplate(B.__dataHost);var F=[];B.children=F;for(var D=B.root.firstChild;D;D=D.nextSibling)F.push(D),D.__templatizeInstance=B;B.__templatizeOwner&&B.__templatizeOwner.__hideTemplateChildren__&&B._showHideChildren(!0);F=B.__templatizeOptions;(G&&F.instanceProps||!F.instanceProps)&&B._enableProperties();return B};
_.r(op,cSv);_.w=op.prototype;_.w._configureProperties=function(G){if(this.__templatizeOptions.forwardHostProp)for(var B in this.__hostProps)this._setPendingProperty(B,this.__dataHost["_host_"+B]);for(var F in G)this._setPendingProperty(F,G[F])};
_.w.forwardHostProp=function(G,B){this._setPendingPropertyOrPath(G,B,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.w._addEventListenerToNode=function(G,B,F){var D=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(G,B,function(R){R.model=D;F(R)});
else{var u=this.__dataHost.__dataHost;u&&u._addEventListenerToNode(G,B,F)}};
_.w._showHideChildren=function(G){LvJ(G,this.children)};
_.w._setUnmanagedPropertyToNode=function(G,B,F){G.__hideTemplateChildren__&&G.nodeType==Node.TEXT_NODE&&B=="textContent"?G.__polymerTextContent__=F:cSv.prototype._setUnmanagedPropertyToNode.call(this,G,B,F)};
_.w.dispatchEvent=function(){return!0};
_.ZN.Object.defineProperties(op.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var G=this.__parentModel;if(!G){var B;G=this;do G=G.__dataHost.__dataHost;while((B=G.__templatizeOptions)&&!B.parentModel);this.__parentModel=G}return G}}});
var WvU=fd(op);var gL=function(){var G=o6.call(this)||this;G.__renderDebouncer=null;G._lastIf=!1;G.__hideTemplateChildren__=!1;return G};
_.r(gL,o6);_.w=gL.prototype;_.w.__debounceRender=function(){var G=this;this.__renderDebouncer=_.cL(this.__renderDebouncer,zc,function(){return G.__render()});
_.Tu(this.__renderDebouncer)};
_.w.disconnectedCallback=function(){o6.prototype.disconnectedCallback.call(this);var G=(0,_.hA)(this).parentNode;G&&(G.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.hA)(G).host)||this.__teardownInstance()};
_.w.connectedCallback=function(){o6.prototype.connectedCallback.call(this);mVg()||(this.style.display="none");this.if&&this.__debounceRender()};
_.w.__ensureTemplate=function(){var G=this;if(!this.__template){var B=this._templateInfo?this:(0,_.hA)(this).querySelector("template");if(!B){var F=new MutationObserver(function(){if((0,_.hA)(G).querySelector("template"))F.disconnect(),G.__render();else throw Error("Rd");});
F.observe(this,{childList:!0});return!1}this.__template=B}return!0};
_.w.__ensureInstance=function(){var G=(0,_.hA)(this).parentNode;if(this.__hasInstance()){var B=this.__getInstanceNodes();if(B&&B.length&&(0,_.hA)(this).previousSibling!==B[B.length-1])for(var F=0,D=void 0;F<B.length&&(D=B[F]);F++)(0,_.hA)(G).insertBefore(D,this)}else{if(!G||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(G)}return!0};
_.w.render=function(){_.Zz()};
_.w.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();O9&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.w.__hasInstance=function(){};
_.w.__getInstanceNodes=function(){};
_.w.__createAndInsertInstance=function(){};
_.w.__teardownInstance=function(){};
_.w._showHideChildren=function(){};
_.ZN.Object.defineProperties(gL,{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:gL.prototype.__debounceRender},restamp:{type:Boolean,observer:gL.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var T3a=function(){var G=gL.call(this)||this;G.__instance=null;G.__syncInfo=null;return G};
_.r(T3a,gL);_.w=T3a.prototype;_.w.__hasInstance=function(){return!!this.__instance};
_.w.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.w.__createAndInsertInstance=function(G){var B=this,F=this.__dataHost||this;if(Yb&&!this.__dataHost)throw Error("Pd");var D=F._bindTemplate(this.__template,!0);D.runEffects=function(u,R,N){var y=B.__syncInfo;if(B.if)y&&(B.__syncInfo=null,B._showHideChildren(),R=Object.assign(y.changedProps,R)),u(R,N);else if(B.__instance)if(y||(y=B.__syncInfo={runEffects:u,changedProps:{}}),N)for(var U in R)u=N0(U),y.changedProps[u]=B.__dataHost[u];else Object.assign(y.changedProps,R)};
this.__instance=F._stampTemplate(this.__template,D);(0,_.hA)(G).insertBefore(this.__instance,this)};
_.w.__syncHostProperties=function(){var G=this.__syncInfo;G&&(this.__syncInfo=null,G.runEffects(G.changedProps,!1))};
_.w.__teardownInstance=function(){var G=this.__dataHost||this;this.__instance&&(G._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.w._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,LvJ(G,this.__instance.templateInfo.childNodes));G||this.__syncHostProperties()};
var IOG=function(){var G=gL.call(this)||this;G.__ctor=null;G.__instance=null;G.__invalidProps=null;return G};
_.r(IOG,gL);_.w=IOG.prototype;_.w.__hasInstance=function(){return!!this.__instance};
_.w.__getInstanceNodes=function(){return this.__instance.children};
_.w.__createAndInsertInstance=function(G){this.__ctor||(this.__ctor=M0(this.__template,this,{mutableData:!0,forwardHostProp:function(B,F){this.__instance&&(this.if?this.__instance.forwardHostProp(B,F):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[N0(B)]=!0))}}));
this.__instance=new this.__ctor;(0,_.hA)(G).insertBefore(this.__instance.root,this)};
_.w.__teardownInstance=function(){if(this.__instance){var G=this.__instance.children;if(G&&G.length){var B=(0,_.hA)(G[0]).parentNode;if(B){B=(0,_.hA)(B);for(var F=0,D=void 0;F<G.length&&(D=G[F]);F++)B.removeChild(D)}}this.__instance=this.__invalidProps=null}};
_.w.__syncHostProperties=function(){var G=this.__invalidProps;if(G){this.__invalidProps=null;for(var B in G)this.__instance._setPendingProperty(B,this.__dataHost[B]);this.__instance._flushProperties()}};
_.w._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,this.__instance._showHideChildren(G));G||this.__syncHostProperties()};
_.EF=ke?T3a:IOG;customElements.define(_.EF.is,_.EF);Polymer.enqueueDebouncer=_.Tu;Polymer.flush=_.Zz;Polymer.Templatize={templatize:M0,modelForElement:ozJ};Polymer.TemplateInstanceBase=op;Polymer.DomIf=_.EF;var fOv=d7y(o6),q7=function(){var G=fOv.call(this)||this;G.__instances=[];G.__renderDebouncer=null;G.__itemsIdxToInstIdx={};G.__chunkCount=null;G.__renderStartTime=null;G.__itemsArrayChanged=!1;G.__shouldMeasureChunk=!1;G.__shouldContinueChunking=!1;G.__chunkingId=0;G.__sortFn=null;G.__filterFn=null;G.__observePaths=null;G.__ctor=null;G.__isDetached=!0;G.template=null;return G};
_.r(q7,fOv);_.w=q7.prototype;_.w.disconnectedCallback=function(){fOv.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var G=0;G<this.__instances.length;G++)this.__detachInstance(G);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.w.connectedCallback=function(){fOv.prototype.connectedCallback.call(this);mVg()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var G=(0,_.hA)((0,_.hA)(this).parentNode),B=0;B<this.__instances.length;B++)this.__attachInstance(B,G);this.__chunkingId&&this.__render()}};
_.w.__ensureTemplatized=function(){var G=this;if(!this.__ctor){var B=this.template=this._templateInfo?this:this.querySelector("template");if(!B){var F=new MutationObserver(function(){if(G.querySelector("template"))F.disconnect(),G.__render();else throw Error("Sd");});
F.observe(this,{childList:!0});return!1}var D={};D[this.as]=!0;D[this.indexAs]=!0;D[this.itemsIndexAs]=!0;this.__ctor=M0(B,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:D,forwardHostProp:function(u,R){for(var N=this.__instances,y=0,U=void 0;y<N.length&&(U=N[y]);y++)U.forwardHostProp(u,R)},
notifyInstanceProp:function(u,R,N){Gd6(this.as,R)&&(u=u[this.itemsIndexAs],R==this.as&&(this.items[u]=N),R=nt(this.as,"items."+u,R),this.notifyPath(R,N))}})}return!0};
_.w.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.w.__functionFromPropertyValue=function(G){if(typeof G==="string"){var B=this.__getMethodHost();return function(){return B[G].apply(B,arguments)}}return G};
_.w.__sortChanged=function(G){this.__sortFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.w.__filterChanged=function(G){this.__filterFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.w.__computeFrameTime=function(G){return Math.ceil(1E3/G)};
_.w.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.w.__handleObservedPaths=function(G){if(this.__sortFn||this.__filterFn)if(!G)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var B=this.__observePaths,F=0;F<B.length;F++)G.indexOf(B[F])===0&&this.__debounceRender(this.__render,this.delay)};
_.w.__itemsChanged=function(G){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(G.path,G.value)||(G.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.w.__debounceRender=function(G,B){B=B===void 0?0:B;this.__renderDebouncer=_.cL(this.__renderDebouncer,B>0?_.$e.after(B):zc,G.bind(this));_.Tu(this.__renderDebouncer)};
_.w.render=function(){this.__debounceRender(this.__render);_.Zz()};
_.w.__render=function(){var G=this;if(this.__ensureTemplatized()){var B=this.items||[],F=this.__sortAndFilterItems(B),D=this.__calculateLimit(F.length);this.__updateInstances(B,D,F);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){G.__chunkingId=null;G.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);O9&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.w.__sortAndFilterItems=function(G){for(var B=this,F=Array(G.length),D=0;D<G.length;D++)F[D]=D;this.__filterFn&&(F=F.filter(function(u,R,N){return B.__filterFn(G[u],R,N)}));
this.__sortFn&&F.sort(function(u,R){return B.__sortFn(G[u],G[R])});
return F};
_.w.__calculateLimit=function(G){var B=G,F=this.__instances.length;if(this.initialCount){var D;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(B=Math.min(G,this.initialCount),this.__chunkCount=(D=Math.max(B-F,0))||1):(D=Math.min(Math.max(G-F,0),this.__chunkCount),B=Math.min(F+D,G));this.__shouldMeasureChunk=D===this.__chunkCount;this.__shouldContinueChunking=B<G;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return B};
_.w.__continueChunking=function(){if(this.__shouldMeasureChunk){var G=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/G*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.w.__updateInstances=function(G,B,F){var D=this.__itemsIdxToInstIdx={},u;for(u=0;u<B;u++){var R=this.__instances[u],N=F[u],y=G[N];D[N]=u;R?(R._setPendingProperty(this.as,y),R._setPendingProperty(this.indexAs,u),R._setPendingProperty(this.itemsIndexAs,N),R._flushProperties()):this.__insertInstance(y,u,N)}for(G=this.__instances.length-1;G>=u;G--)this.__detachAndRemoveInstance(G)};
_.w.__detachInstance=function(G){G=this.__instances[G];for(var B=(0,_.hA)(G.root),F=0;F<G.children.length;F++)B.appendChild(G.children[F]);return G};
_.w.__attachInstance=function(G,B){B.insertBefore(this.__instances[G].root,this)};
_.w.__detachAndRemoveInstance=function(G){this.__detachInstance(G);this.__instances.splice(G,1)};
_.w.__stampInstance=function(G,B,F){var D={};D[this.as]=G;D[this.indexAs]=B;D[this.itemsIndexAs]=F;return new this.__ctor(D)};
_.w.__insertInstance=function(G,B,F){G=this.__stampInstance(G,B,F);F=(F=this.__instances[B+1])?F.children[0]:this;(0,_.hA)((0,_.hA)(this).parentNode).insertBefore(G.root,F);return this.__instances[B]=G};
_.w._showHideChildren=function(G){for(var B=0;B<this.__instances.length;B++)this.__instances[B]._showHideChildren(G)};
_.w.__handleItemPath=function(G,B){var F=G.slice(6),D=F.indexOf(".");G=D<0?F:F.substring(0,D);if(G==parseInt(G,10)){F=D<0?"":F.substring(D+1);this.__handleObservedPaths(F);if(G=this.__instances[this.__itemsIdxToInstIdx[G]])G._setPendingPropertyOrPath(this.as+(F?"."+F:""),B,!1,!0),G._flushProperties();return!0}};
_.w.itemForElement=function(G){return(G=this.modelForElement(G))&&G[this.as]};
_.w.indexForElement=function(G){return(G=this.modelForElement(G))&&G[this.indexAs]};
_.w.modelForElement=function(G){return ozJ(this.template,G)};
_.ZN.Object.defineProperties(q7,{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:q7.prototype.__sortChanged},filter:{type:Function,observer:q7.prototype.__filterChanged},observe:{type:String,observer:q7.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!O9,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.*)"]}}});
q7.prototype._setRenderedItemCount=function(){};
customElements.define(q7.is,q7);Polymer.DomRepeat=q7;var tI7=function(G,B){var F=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=G;this.callback=B;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){F._schedule()};
this.connect();this._schedule()},ZWt=function(G){var B=(0,_.hA)(G);
if(AA(G))return B.assignedNodes({flatten:!0});G=[];for(var F=0;F<B.childNodes.length;F++){var D=B.childNodes[F];AA(D)?G.push.apply(G,_.gi((0,_.hA)(D).assignedNodes({flatten:!0}))):G.push(D)}return G};
_.w=tI7.prototype;_.w.connect=function(){var G=this;AA(this._target)?this._listenSlots([this._target]):(0,_.hA)(this._target).children&&(this._listenSlots((0,_.hA)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(B){G._processMutations(B)}):(this._nativeChildrenObserver=new MutationObserver(function(B){G._processMutations(B)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.w.disconnect=function(){AA(this._target)?this._unlistenSlots([this._target]):(0,_.hA)(this._target).children&&(this._unlistenSlots((0,_.hA)(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};
_.w._schedule=function(){var G=this;this._scheduled||(this._scheduled=!0,zc.run(function(){return G.flush()}))};
_.w._processMutations=function(G){this._processSlotMutations(G);this.flush()};
_.w._processSlotMutations=function(G){if(G)for(var B=0;B<G.length;B++){var F=G[B];F.addedNodes&&this._listenSlots(F.addedNodes);F.removedNodes&&this._unlistenSlots(F.removedNodes)}};
_.w.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 G={target:this._target,addedNodes:[],removedNodes:[]},B=ZWt(this._target),F=vwJ(B,this._effectiveNodes),D=0,u=void 0;D<F.length&&(u=F[D]);D++)for(var R=0,N=void 0;R<u.removed.length&&(N=u.removed[R]);R++)G.removedNodes.push(N);
D=0;for(u=void 0;D<F.length&&(u=F[D]);D++)for(R=u.index;R<u.index+u.addedCount;R++)G.addedNodes.push(B[R]);this._effectiveNodes=B;B=!1;if(G.addedNodes.length||G.removedNodes.length)B=!0,this.callback.call(this._target,G);return B};
_.w._listenSlots=function(G){for(var B=0;B<G.length;B++){var F=G[B];AA(F)&&F.addEventListener("slotchange",this._boundSchedule)}};
_.w._unlistenSlots=function(G){for(var B=0;B<G.length;B++){var F=G[B];AA(F)&&F.removeEventListener("slotchange",this._boundSchedule)}};var SH=Element.prototype,gTq=SH.matches||SH.matchesSelector||SH.mozMatchesSelector||SH.msMatchesSelector||SH.oMatchesSelector||SH.webkitMatchesSelector,SFq=function(G,B){return gTq.call(G,B)},dS=function(G){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(G);
this.node=G},GmP;
_.w=dS.prototype;_.w.observeNodes=function(G){return new tI7(this.node,G)};
_.w.unobserveNodes=function(G){G.disconnect()};
_.w.notifyObserver=function(){};
_.w.deepContains=function(G){if((0,_.hA)(this.node).contains(G))return!0;var B=G;for(G=G.ownerDocument;B&&B!==G&&B!==this.node;)B=(0,_.hA)(B).parentNode||(0,_.hA)(B).host;return B===this.node};
_.w.getOwnerRoot=function(){return(0,_.hA)(this.node).getRootNode()};
_.w.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.hA)(this.node).assignedNodes({flatten:!0}):[]};
_.w.getDestinationInsertionPoints=function(){for(var G=[],B=(0,_.hA)(this.node).assignedSlot;B;)G.push(B),B=(0,_.hA)(B).assignedSlot;return G};
_.w.importNode=function(G,B){return(0,_.hA)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(G,B)};
_.w.getEffectiveChildNodes=function(){return ZWt(this.node)};
_.w.queryDistributedElements=function(G){for(var B=this.getEffectiveChildNodes(),F=[],D=0,u=B.length,R=void 0;D<u&&(R=B[D]);D++)R.nodeType===Node.ELEMENT_NODE&&SFq(R,G)&&F.push(R);return F};
_.ZN.Object.defineProperties(dS.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var G=this.node;return G._activeElement!==void 0?G._activeElement:G.activeElement}}});
var s9=function(G){this.event=G};
_.ZN.Object.defineProperties(s9.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 syw=dS;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var x77=window.ShadyDOM.Wrapper,PAU=function(){return x77.apply(this,arguments)||this};
_.r(PAU,x77);Object.getOwnPropertyNames(dS.prototype).forEach(function(G){G!="activeElement"&&G!="constructor"&&(PAU.prototype[G]=dS.prototype[G])});
pUo(PAU.prototype,["classList"]);syw=PAU;Object.defineProperties(s9.prototype,{localTarget:{get:function(){var G=this.event.currentTarget;G=G&&_.u2(G).getOwnerRoot();for(var B=this.path,F=0;F<B.length;F++){var D=B[F];if(_.u2(D).getOwnerRoot()===G)return D}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else MUL(),pUo(dS.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Y8M();GmP=syw;_.u2=function(G){G=G||document;if(G instanceof syw)return G;if(G instanceof s9)return G;var B=G.__domApi;B||(G instanceof Event?B=new s9(G):B=new syw(G),G.__domApi=B);return B};var BJ7=/:host\(:dir\((ltr|rtl)\)\)/g,iks=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,FrU=/:dir\((?:ltr|rtl)\)/,Dhy=!(!window.ShadyDOM||!window.ShadyDOM.inUse),cw=[],xe=null,JA="",u1w=zu(function(G){Dhy||xe||(JA=document.documentElement.getAttribute("dir"),xe=new MutationObserver(ARJ),xe.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var B=ySa(G);G=function(){var F=B.call(this)||this;F.__autoDirOptOut=!1;return F};
_.r(G,B);G._processStyleText=function(F,D){F=B._processStyleText.call(this,F,D);!Dhy&&FrU.test(F)&&(F=this._replaceDirInCssText(F),this.__activateDir=!0);return F};
G._replaceDirInCssText=function(F){F=F.replace(BJ7,':host([dir="$1"])');return F=F.replace(iks,':host([dir="$2"]) $1')};
G.prototype.ready=function(){B.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
G.prototype.connectedCallback=function(){B.prototype.connectedCallback&&B.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(xe&&xe.takeRecords().length&&ARJ(),cw.push(this),this.__autoDirOptOut||this.setAttribute("dir",JA))};
G.prototype.disconnectedCallback=function(){B.prototype.disconnectedCallback&&B.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var F=cw.indexOf(this);F>-1&&cw.splice(F,1)}};
G.__activateDir=!1;return G});var Rta=function(G){for(;G;){var B=Object.getOwnPropertyDescriptor(G,"observedAttributes");if(B)return B.get;G=Object.getPrototypeOf(G.prototype).constructor}return function(){return[]}};
zu(function(G){var B=vL(G),F=Rta(B);G=function(){return B.call(this)||this};
_.r(G,B);G.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:B.prototype._initializeProperties.call(this)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||B.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(D){return B.prototype._canApplyPropertyDefault.call(this,D)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(D))};
G.prototype.attributeChangedCallback=function(D,u,R,N){D=="disable-upgrade"?this.__isUpgradeDisabled&&R==null&&(B.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.hA)(this).isConnected&&B.prototype.connectedCallback.call(this)):B.prototype.attributeChangedCallback.call(this,D,u,R,N)};
G.prototype.connectedCallback=function(){this.__isUpgradeDisabled||B.prototype.connectedCallback.call(this)};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||B.prototype.disconnectedCallback.call(this)};
_.ZN.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F.call(this).concat("disable-upgrade")}}});
return G});var Tc=!1,JRc=[],Ip=[];var fIQ=window.ShadyDOM,tUz=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",gzJ):document.readyState==="interactive"||document.readyState==="complete"?gzJ():window.addEventListener("DOMContentLoaded",gzJ);var xVg=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=""},S8L=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,sDg=/@import[^;]*;/gim,DBL=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,u3l=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Rrg=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,wbg=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,icU=/^@[^\s]*keyframes/,
BZz=/\s+/g;var CLL={};var nWM=Promise.resolve();var wrt=new Set;var C4G=/;\s*/m,NJT=/^\s*(initial)|(inherit)\s*$/,yxa=/\s*!important/,nNv=function(){this._map={}};
nNv.prototype.set=function(G,B){G=G.trim();this._map[G]={properties:B,dependants:{}}};
nNv.prototype.get=function(G){G=G.trim();return this._map[G]||null};
var UhP=null,PL=function(){this._measureElement=this._currentElement=null;this._map=new nNv};
_.w=PL.prototype;_.w.detectMixin=function(G){G=OW7.test(G)||kaT.test(G);OW7.lastIndex=0;kaT.lastIndex=0;return G};
_.w.transformTemplate=function(G,B){if(G._gatheredStyle===void 0){var F=[];for(var D=G.content.querySelectorAll("style"),u=0;u<D.length;u++){var R=D[u];if(R.hasAttribute("shady-unscoped")){if(!Iwl){var N=R.textContent;if(!wrt.has(N)){wrt.add(N);var y=document.createElement("style");y.setAttribute("shady-unscoped","");y.textContent=N;document.head.appendChild(y)}R.parentNode.removeChild(R)}}else F.push(R.textContent),R.parentNode.removeChild(R)}(F=F.join("").trim())?(D=document.createElement("style"),
D.textContent=F,G.content.insertBefore(D,G.content.firstChild),F=D):F=null;G._gatheredStyle=F}return(G=G._gatheredStyle)?this.JSC$11588_transformStyle(G,B):null};
_.w.JSC$11588_transformStyle=function(G,B){B=B===void 0?"":B;var F=EW6(G);this.transformRules(F,B);G.textContent=qlz(F);return F};
_.w.transformCustomStyle=function(G){var B=this,F=EW6(G);KYl(F,function(D){D.selector===":root"&&(D.selector="html");B.transformRule(D)});
G.textContent=qlz(F);return F};
_.w.transformRules=function(G,B){var F=this;this._currentElement=B;KYl(G,function(D){F.transformRule(D)});
this._currentElement=null};
_.w.transformRule=function(G){G.cssText=q_v(this,G.parsedCssText,G);G.selector===":root"&&(G.selector=":host > *")};
var q_v=function(G,B,F){B=B.replace(kaT,function(D,u,R,N){return G._produceCssProperties(D,u,R,N,F)});
return G._consumeCssProperties(B,F)};
_.w=PL.prototype;_.w._getInitialValueForProperty=function(G){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(G)};
_.w._fallbacksFromPreviousRules=function(G){for(var B=this,F=G;F.parent;)F=F.parent;var D={},u=!1;KYl(F,function(R){(u=u||R===G)||R.selector===G.selector&&Object.assign(D,B._cssTextToMap(R.parsedCssText))});
return D};
_.w._consumeCssProperties=function(G,B){for(var F;F=OW7.exec(G);){var D=F[0],u=F[1];F=F.index;var R=F+D.indexOf("@apply"),N=F+D.length;D=G.slice(0,R);G=G.slice(N);R=B?this._fallbacksFromPreviousRules(B):{};Object.assign(R,this._cssTextToMap(D));u=this._atApplyToCssProperties(u,R);G=D+u+G;OW7.lastIndex=F+u.length}return G};
_.w._atApplyToCssProperties=function(G,B){G=G.replace(C4G,"");var F=[],D=this._map.get(G);D||(this._map.set(G,{}),D=this._map.get(G));if(D){this._currentElement&&(D.dependants[this._currentElement]=!0);var u,R=D.properties;for(u in R){var N=B&&B[u];D=[u,": var(",G,"_-_",u];N&&D.push(",",N.replace(yxa,""));D.push(")");yxa.test(R[u])&&D.push(" !important");F.push(D.join(""))}}return F.join("; ")};
_.w._replaceInitialOrInherit=function(G,B){var F=NJT.exec(B);F&&(B=F[1]?this._getInitialValueForProperty(G):"apply-shim-inherit");return B};
_.w._cssTextToMap=function(G,B){B=B===void 0?!1:B;G=G.split(";");for(var F,D,u={},R=0;R<G.length;R++)if(F=G[R])D=F.split(":"),D.length>1&&(F=D[0].trim(),D=D.slice(1).join(":"),B&&(D=this._replaceInitialOrInherit(F,D)),u[F]=D);return u};
_.w._invalidateMixinEntry=function(G){if(UhP)for(var B in G.dependants)B!==this._currentElement&&UhP(B)};
_.w._produceCssProperties=function(G,B,F,D,u){var R=this;F&&aXI(F,function(L,W){W&&R._map.get(W)&&(D="@apply "+W+";")});
if(!D)return G;var N=this._consumeCssProperties(""+D,u);u=G.slice(0,G.indexOf("--"));var y=N=this._cssTextToMap(N,!0),U=this._map.get(B),q=U&&U.properties;q?y=Object.assign(Object.create(q),N):this._map.set(B,y);var h=[],K,a=!1;for(K in y){var m=N[K];m===void 0&&(m="initial");!q||K in q||(a=!0);h.push(B+"_-_"+K+": "+m)}a&&this._invalidateMixinEntry(U);U&&(U.properties=y);F&&(u=G+";"+u);return u+h.join("; ")+";"};
PL.prototype.detectMixin=PL.prototype.detectMixin;PL.prototype.transformStyle=PL.prototype.JSC$11588_transformStyle;PL.prototype.transformCustomStyle=PL.prototype.transformCustomStyle;PL.prototype.transformRules=PL.prototype.transformRules;PL.prototype.transformRule=PL.prototype.transformRule;PL.prototype.transformTemplate=PL.prototype.transformTemplate;PL.prototype._separator="_-_";Object.defineProperty(PL.prototype,"invalidCallback",{get:function(){return UhP},
set:function(G){UhP=G}});var Gk=new PL,ENy=function(){this.customStyleInterface=null;Gk.invalidCallback=NZg},BV=function(G){!G.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(G.customStyleInterface=window.ShadyCSS.CustomStyleInterface,G.customStyleInterface.transformCallback=function(B){Gk.transformCustomStyle(B)},G.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){G.customStyleInterface.enqueued&&G.flushCustomStyles()})})};
_.w=ENy.prototype;_.w.prepareTemplate=function(G,B){BV(this);mBs(G)===""&&(CLL[B]=G,B=Gk.transformTemplate(G,B),G._styleAst=B)};
_.w.flushCustomStyles=function(){BV(this);if(this.customStyleInterface){var G=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var B=0;B<G.length;B++){var F=this.customStyleInterface.getStyleForCustomStyle(G[B]);F&&Gk.transformCustomStyle(F)}this.customStyleInterface.enqueued=!1}}};
_.w.styleSubtree=function(G,B){BV(this);B&&pPo(G,B);if(G.shadowRoot)for(this.styleElement(G),G=G.shadowRoot.children||G.shadowRoot.childNodes,B=0;B<G.length;B++)this.styleSubtree(G[B]);else for(G=G.children||G.childNodes,B=0;B<G.length;B++)this.styleSubtree(G[B])};
_.w.styleElement=function(G){BV(this);var B=G.localName,F;B?B.indexOf("-")>-1?F=B:F=G.getAttribute&&G.getAttribute("is")||"":F=G.is;B=CLL[F];if(!(B&&mBs(B)!==""||!B||y5Q(B))){if(y5Q(B)||B._applyShimValidatingVersion!==B._applyShimNextVersion)this.prepareTemplate(B,F),lXU(B);if(G=G.shadowRoot)if(G=G.querySelector("style"))G.__cssRules=B._styleAst,G.textContent=qlz(B._styleAst)}};
_.w.styleDocument=function(G){BV(this);this.styleSubtree(document.body,G)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var iP=new ENy,htT=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(G,B){iP.flushCustomStyles();iP.prepareTemplate(G,B)},
prepareTemplateStyles:function(G,B,F){window.ShadyCSS.prepareTemplate(G,B,F)},
prepareTemplateDom:function(){},
styleSubtree:function(G,B){iP.flushCustomStyles();iP.styleSubtree(G,B)},
styleElement:function(G){iP.flushCustomStyles();iP.styleElement(G)},
styleDocument:function(G){iP.flushCustomStyles();iP.styleDocument(G)},
getComputedStyleValue:function(G,B){return Y$I(G,B)},
flushCustomStyles:function(){iP.flushCustomStyles()},
nativeCss:UBs,nativeShadow:Iwl,cssBuild:tA,disableRuntime:z6G};htT&&(window.ShadyCSS.CustomStyleInterface=htT)}window.ShadyCSS.ApplyShim=Gk;var KrL;KrL=window.ShadyCSS;_.FM=zu(function(G){G=ASy(vL(G));var B=XcU?G:u1w(G),F=Rta(B),D={x:"pan-x",y:"pan-y",none:"none",all:"auto"};G=function(){return B.call(this)||this};
_.r(G,B);G.prototype.created=function(){};
G.prototype.__attributeReaction=function(u,R,N){(this.__dataAttributes&&this.__dataAttributes[u]||u==="disable-upgrade")&&this.attributeChangedCallback(u,R,N,null)};
G.prototype.setAttribute=function(u,R){if(Zp7&&!this._legacyForceObservedAttributes){var N=this.getAttribute(u);B.prototype.setAttribute.call(this,u,R);this.__attributeReaction(u,N,String(R))}else B.prototype.setAttribute.call(this,u,R)};
G.prototype.removeAttribute=function(u){if(Zp7&&!this._legacyForceObservedAttributes){var R=this.getAttribute(u);B.prototype.removeAttribute.call(this,u);this.__attributeReaction(u,R,null)}else B.prototype.removeAttribute.call(this,u)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||B.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(u){return B.prototype._canApplyPropertyDefault.call(this,u)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(u))};
G.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(B.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
G.prototype.attached=function(){};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(B.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
G.prototype.detached=function(){};
G.prototype.attributeChangedCallback=function(u,R,N,y){R!==N&&(u=="disable-upgrade"?this.__isUpgradeDisabled&&N==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.hA)(this).isConnected&&this.connectedCallback()):(B.prototype.attributeChangedCallback.call(this,u,R,N,y),this.attributeChanged(u,R,N)))};
G.prototype.attributeChanged=function(){};
G.prototype._initializeProperties=function(){if(VN&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var u=Object.getPrototypeOf(this);u.hasOwnProperty("__hasRegisterFinished")||(this._registered(),u.__hasRegisterFinished=!0);B.prototype._initializeProperties.call(this);this.root=this;this.created();Zp7&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
G.prototype._takeAttributes=function(){for(var u=this.attributes,R=0,N=u.length;R<N;R++){var y=u[R];this.__attributeReaction(y.name,null,y.value)}};
G.prototype._registered=function(){};
G.prototype.ready=function(){this._ensureAttributes();B.prototype.ready.call(this)};
G.prototype._ensureAttributes=function(){};
G.prototype._applyListeners=function(){};
G.prototype.serialize=function(u){return this._serializeValue(u)};
G.prototype.deserialize=function(u,R){return this._deserializeValue(u,R)};
G.prototype.reflectPropertyToAttribute=function(u,R,N){this._propertyToAttribute(u,R,N)};
G.prototype.serializeValueToAttribute=function(u,R,N){this._valueToNodeAttribute(N||this,u,R)};
G.prototype.extend=function(u,R){if(!u||!R)return u||R;for(var N=Object.getOwnPropertyNames(R),y=0,U=void 0;y<N.length&&(U=N[y]);y++){var q=Object.getOwnPropertyDescriptor(R,U);q&&Object.defineProperty(u,U,q)}return u};
G.prototype.mixin=function(u,R){for(var N in R)u[N]=R[N];return u};
G.prototype.chainObject=function(u,R){u&&R&&u!==R&&(u.__proto__=R);return u};
G.prototype.instanceTemplate=function(u){u=this.constructor._contentForTemplate(u);return document.importNode(u,!0)};
G.prototype.fire=function(u,R,N){N=N||{};R=R===null||R===void 0?{}:R;u=new Event(u,{bubbles:N.bubbles===void 0?!0:N.bubbles,cancelable:!!N.cancelable,composed:N.composed===void 0?!0:N.composed});u.detail=R;(0,_.hA)(N.node||this).dispatchEvent(u);return u};
G.prototype.listen=function(u,R,N){u=u||this;var y=this.__boundListeners||(this.__boundListeners=new WeakMap),U=y.get(u);U||(U={},y.set(u,U));y=R+N;U[y]||(U[y]=this._addMethodEventListenerToNode(u,R,N,this))};
G.prototype.unlisten=function(u,R,N){u=u||this;var y=this.__boundListeners&&this.__boundListeners.get(u);N=R+N;var U=y&&y[N];U&&(this._removeEventListenerFromNode(u,R,U),y[N]=null)};
G.prototype.setScrollDirection=function(u,R){_.$b(R||this,D[u]||"auto")};
G.prototype.$$=function(u){return this.root.querySelector(u)};
G.prototype.distributeContent=function(){var u=_.u2(this);window.ShadyDOM&&u.shadowRoot&&ShadyDOM.flush()};
G.prototype.getEffectiveChildNodes=function(){return _.u2(this).getEffectiveChildNodes()};
G.prototype.queryDistributedElements=function(u){return _.u2(this).queryDistributedElements(u)};
G.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(u){return u.nodeType===Node.ELEMENT_NODE})};
G.prototype.getEffectiveTextContent=function(){for(var u=this.getEffectiveChildNodes(),R=[],N=0,y;y=u[N];N++)y.nodeType!==Node.COMMENT_NODE&&R.push(y.textContent);return R.join("")};
G.prototype.queryEffectiveChildren=function(u){return(u=this.queryDistributedElements(u))&&u[0]};
G.prototype.queryAllEffectiveChildren=function(u){return this.queryDistributedElements(u)};
G.prototype.getContentChildNodes=function(u){return(u=this.root.querySelector(u||"slot"))?_.u2(u).getDistributedNodes():[]};
G.prototype.getContentChildren=function(u){return this.getContentChildNodes(u).filter(function(R){return R.nodeType===Node.ELEMENT_NODE})};
G.prototype.isLightDescendant=function(u){return this!==u&&(0,_.hA)(this).contains(u)&&(0,_.hA)(this).getRootNode()===(0,_.hA)(u).getRootNode()};
G.prototype.isLocalDescendant=function(u){return this.root===(0,_.hA)(u).getRootNode()};
G.prototype.scopeSubtree=function(u,R){return ZXz(u,R===void 0?!1:R)};
G.prototype.getComputedStyleValue=function(u){return KrL.getComputedStyleValue(this,u)};
G.prototype.debounce=function(u,R,N){this._debouncers=this._debouncers||{};return this._debouncers[u]=_.cL(this._debouncers[u],N>0?_.$e.after(N):zc,R.bind(this))};
G.prototype.isDebouncerActive=function(u){this._debouncers=this._debouncers||{};u=this._debouncers[u];return!(!u||!u.isActive())};
G.prototype.flushDebouncer=function(u){this._debouncers=this._debouncers||{};(u=this._debouncers[u])&&u.flush()};
G.prototype.cancelDebouncer=function(u){this._debouncers=this._debouncers||{};(u=this._debouncers[u])&&u.cancel()};
G.prototype.async=function(u,R){return R>0?_.$e.run(u.bind(this),R):~zc.run(u.bind(this))};
G.prototype.cancelAsync=function(u){u<0?zc.cancel(~u):_.$e.cancel(u)};
G.prototype.create=function(u,R){u=document.createElement(u);if(R)if(u.setProperties)u.setProperties(R);else for(var N in R)u[N]=R[N];return u};
G.prototype.elementMatches=function(u,R){return SFq(R||this,u)};
G.prototype.toggleAttribute=function(u,R){var N=this;arguments.length===3&&(N=arguments[2]);arguments.length==1&&(R=!N.hasAttribute(u));if(R)return(0,_.hA)(N).setAttribute(u,""),!0;(0,_.hA)(N).removeAttribute(u);return!1};
G.prototype.toggleClass=function(u,R,N){N=N||this;arguments.length==1&&(R=!N.classList.contains(u));R?N.classList.add(u):N.classList.remove(u)};
G.prototype.transform=function(u,R){R=R||this;R.style.webkitTransform=u;R.style.transform=u};
G.prototype.translate3d=function(u,R,N,y){this.transform("translate3d("+u+","+R+","+N+")",y||this)};
G.prototype.arrayDelete=function(u,R){if(Array.isArray(u)){if(R=u.indexOf(R),R>=0)return u.splice(R,1)}else if(R=U2(this,u).indexOf(R),R>=0)return this.splice(u,R,1);return null};
G.prototype._logger=function(u,R){Array.isArray(R)&&R.length===1&&Array.isArray(R[0])&&(R=R[0]);switch(u){case "log":case "warn":case "error":console[u].apply(console,_.gi(R))}};
G.prototype._log=function(){this._logger("log",_.xS.apply(0,arguments))};
G.prototype._warn=function(){this._logger("warn",_.xS.apply(0,arguments))};
G.prototype._error=function(){this._logger("error",_.xS.apply(0,arguments))};
G.prototype._logf=function(u){return["[%s::%s]",this.is,u].concat(_.gi(_.xS.apply(1,arguments)))};
_.ZN.Object.defineProperties(G.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var u=(0,_.hA)(this).getRootNode();return u instanceof DocumentFragment?u.host:u}}});
_.ZN.Object.defineProperties(G,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Zp7&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],tgz(this.prototype)),this.__observedAttributes):F.call(this).concat("disable-upgrade")}}});
G.prototype.is="";return G});Polymer.FlattenedNodesObserver=tI7;Polymer.DomApi=GmP;Polymer.EventApi=s9;Polymer.dom=_.u2;Polymer.dom.matchesSelector=SFq;Polymer.dom.flush=_.Zz;Polymer.dom.addDebouncer=_.Tu;Polymer.DirMixin=u1w;Polymer.RenderStatus={beforeNextRender:_.IIs,afterNextRender:_.ft,flush:function(){for(;JRc.length||Ip.length;)dVg(JRc),dVg(Ip);Tc=!1}};Polymer.LegacyElementMixin=_.FM;var aea;aea=fd._mutablePropertyChange;var mhG={properties:{mutableData:Boolean},_shouldPropertyChange:function(G,B,F){return aea(this,G,B,F,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(G,B,F){return aea(this,G,B,F,!0)}};
Polymer.OptionalMutableDataBehavior=mhG;var Xbz={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},WYz={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},r5l=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},WYz),Xrq=(0,_.FM)(HTMLElement),oGS=function(G,B){G||console.warn("Polymer.Class requires `info` argument");B=B?B(Xrq):Xrq;B=HcQ(G,B,G.behaviors);B.is=B.prototype.is=
G.is;return B};Polymer.Class=oGS;Polymer.mixinBehaviors=function(G,B){return HcQ({},(0,_.FM)(B),G)};
Polymer.GenerateClassFromInfo=HcQ;_.UF=function(G){var B=typeof G==="function"?G:_.UF.Class(G);G._legacyForceObservedAttributes&&(B.prototype._legacyForceObservedAttributes=G._legacyForceObservedAttributes);customElements.define(B.is,B);return B};
_.UF.Class=oGS;Polymer._polymerFn=_.UF;var QhG=window.onLegacyPolymerFunctionDefinedCallback;QhG&&QhG();var pxL={templatize:function(G,B){this._templatizerTemplate=G;this.ctor=M0(G,this,{mutableData:!!B,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(G){return new this.ctor(G)},
modelForElement:function(G){return ozJ(this._templatizerTemplate,G)}};Polymer.Templatizer=pxL;_.DT=(0,_.FM)(HTMLElement).prototype;Polymer.Base=_.DT;var Ocs=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.gS=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(_.gS,PolymerFakeBaseClass);var SW=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(SW,PolymerFakeBaseClass);var erc=Symbol("Td"),pbJ=[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 jhU=jhU||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Lrq;(function(G){function B(T,A,Z){var P=t.get(T);if(!P){if(!Z)return;P=new b;t.set(T,P)}T=P.get(A);if(!T){if(!Z)return;T=new b;P.set(A,T)}return T}
function F(T,A,Z){if(D(T,A,Z))return!0;A=a(A);return A!==null?F(T,A,Z):!1}
function D(T,A,Z){A=B(A,Z,!1);return A===void 0?!1:!!A.has(T)}
function u(T,A,Z){if(D(T,A,Z))return R(T,A,Z);A=a(A);if(A!==null)return u(T,A,Z)}
function R(T,A,Z){A=B(A,Z,!1);if(A!==void 0)return A.get(T)}
function N(T,A){var Z=y(T,A);T=a(T);if(T===null)return Z;var P=N(T,A);if(P.length<=0)return Z;if(Z.length<=0)return P;A=new M;T=[];Z=_.C(Z);for(var RI=Z.next();!RI.done;RI=Z.next())RI=RI.value,A.has(RI)||(A.add(RI),T.push(RI));Z=_.C(P);for(P=Z.next();!P.done;P=Z.next())P=P.value,A.has(P)||(A.add(P),T.push(P));return T}
function y(T,A){T=B(T,A,!1);var Z=[];T&&T.forEach(function(P,RI){return Z.push(RI)});
return Z}
function U(T){return T===void 0}
function q(T){return typeof T==="object"?T!==null:typeof T==="function"}
function h(T){return typeof T==="function"}
function K(T){return typeof T==="symbol"?T:String(T)}
function a(T){var A=Object.getPrototypeOf(T);if(typeof T!=="function"||T===e||A!==e)return A;var Z=Object.getPrototypeOf(T.prototype);if(Z==null||Z===Object.prototype)return A;Z=Z.constructor;return typeof Z!=="function"||Z===T?A:Z}
function m(){function T(){this._keys=[];this._values=[];this._cache=A}
var A={};T.prototype={get size(){return this._keys.length},has:function(Z){return Z===this._cache?!0:this._find(Z)>=0?(this._cache=Z,!0):!1},
get:function(Z){var P=this._find(Z);if(P>=0)return this._cache=Z,this._values[P]},
set:function(Z,P){this.delete(Z);this._keys.push(Z);this._values.push(P);this._cache=Z;return this},
delete:function(Z){Z=this._find(Z);return Z>=0?(this._keys.splice(Z,1),this._values.splice(Z,1),this._cache=A,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=A},
forEach:function(Z){for(var P=this.size,RI=0;RI<P;++RI){var yo=this._keys[RI],hg=this._values[RI];this._cache=yo;Z.call(this,hg,yo,this)}},
_find:function(Z){for(var P=this._keys,RI=P.length,yo=0;yo<RI;++yo)if(P[yo]===Z)return yo;return-1}};
return T}
function L(){function T(){this._map=new b}
T.prototype={get size(){return this._map.length},has:function(A){return this._map.has(A)},
add:function(A){this._map.set(A,A);return this},
delete:function(A){return this._map.delete(A)},
clear:function(){this._map.clear()},
forEach:function(A,Z){this._map.forEach(A,Z)}};
return T}
function W(){function T(){this._key=Z()}
function A(aI,v6){for(var Jg=0;Jg<v6;++Jg)aI[Jg]=Math.random()*255|0}
function Z(){do{if(RI)var aI=RI.randomBytes(16);else typeof Uint8Array==="function"?(aI=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(aI):A(aI,16)):(aI=Array(16),A(aI,16));aI[6]=aI[6]&79|64;aI[8]=aI[8]&191|128;for(var v6="",Jg=0;Jg<16;++Jg){var c6=aI[Jg];if(Jg===4||Jg===6||Jg===8)v6+="-";c6<16&&(v6+="0");v6+=c6.toString(16).toLowerCase()}aI="@@WeakMap@@"+v6}while(yo.call(hg,aI));hg[aI]=!0;return aI}
function P(aI,v6){if(!yo.call(aI,US)){if(!v6)return;Object.defineProperty(aI,US,{value:Object.create(null)})}return aI[US]}
var RI=typeof global!=="undefined"&&typeof jhU==="object"&&typeof require==="function"&&require("crypto"),yo=Object.prototype.hasOwnProperty,hg={},US=Z();T.prototype={has:function(aI){return(aI=P(aI,!1))?this._key in aI:!1},
get:function(aI){if(aI=P(aI,!1))return aI[this._key]},
set:function(aI,v6){P(aI,!0)[this._key]=v6;return this},
delete:function(aI){return(aI=P(aI,!1))&&this._key in aI?delete aI[this._key]:!1},
clear:function(){this._key=Z()}};
return T}
var e=Object.getPrototypeOf(Function),b=typeof Map==="function"?Map:m(),M=typeof Set==="function"?Set:L(),t=new (typeof WeakMap==="function"?WeakMap:W());G.decorate=function(T,A,Z,P){if(U(P)){if(U(Z)){if(!Array.isArray(T))throw new TypeError;if(!h(A))throw new TypeError;for(Z=T.length-1;Z>=0;--Z)if(P=(0,T[Z])(A),!U(P)){if(!h(P))throw new TypeError;A=P}return A}if(!Array.isArray(T))throw new TypeError;if(!q(A))throw new TypeError;Z=K(Z);for(P=T.length-1;P>=0;--P)(0,T[P])(A,Z)}else{if(Array.isArray(T))if(q(A)){if(U(Z))throw new TypeError;
if(!q(P))throw new TypeError;}else throw new TypeError;else throw new TypeError;Z=K(Z);for(var RI=T.length-1;RI>=0;--RI){var yo=(0,T[RI])(A,Z,P);if(!U(yo)){if(!q(yo))throw new TypeError;P=yo}}return P}};
G.metadata=function(T,A){return function(Z,P){if(U(P)){if(!h(Z))throw new TypeError;B(Z,void 0,!0).set(T,A)}else{if(!q(Z))throw new TypeError;P=K(P);B(Z,P,!0).set(T,A)}}};
G.defineMetadata=function(T,A){var Z;if(q(A))U(Z)||(Z=K(Z));else throw new TypeError;B(A,Z,!0).set("parameters",T)};
G.hasMetadata=function(T,A,Z){if(q(A))U(Z)||(Z=K(Z));else throw new TypeError;return F(T,A,Z)};
G.hasOwnMetadata=function(T,A,Z){if(q(A))U(Z)||(Z=K(Z));else throw new TypeError;return D(T,A,Z)};
G.getMetadata=function(T,A,Z){if(q(A))U(Z)||(Z=K(Z));else throw new TypeError;return u(T,A,Z)};
G.getOwnMetadata=function(T,A,Z){if(q(A))U(Z)||(Z=K(Z));else throw new TypeError;return R(T,A,Z)};
G.getMetadataKeys=function(T,A){if(q(T))U(A)||(A=K(A));else throw new TypeError;return N(T,A)};
G.getOwnMetadataKeys=function(T,A){if(q(T))U(A)||(A=K(A));else throw new TypeError;return y(T,A)};
G.deleteMetadata=function(T,A,Z){if(q(A))U(Z)||(Z=K(Z));else throw new TypeError;var P=B(A,Z,!1);if(!U(P)){if(!P.delete(T))return!1;if(P.size>0)return!0;T=t.get(A);T.delete(Z);if(T.size>0)return!0;t.delete(A);return!0}};
(function(T){if(typeof T.Reflect!=="undefined"){if(T.Reflect!==G)for(var A in G)T.Reflect[A]=G[A]}else T.Reflect=G})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Lrq||(Lrq={}));var U56=self;var rxv=[0,_.oD,_.Yz,_.oD];var Wra=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Wra,_.q3);var Hkq=_.HX(Wra,[0,_.T9,_.JR,rxv,_.Yz,_.fX]);var OkN=[0,_.ID,-3,_.fX,_.T9,_.oD,_.AjU,_.ID,Jjv,MzT,z9,_.MV,_.oD,function(){return kmP},
_.Yz],kmP=[0,_.JR,function(){return OkN},
_.T9,14,_.ID];_.IC(_.s2,_.uz);_.w=_.s2.prototype;_.w.start=function(){this.stop();this.usingListeners_=!1;var G=etv(this),B=$ha(this);G&&!B&&this.JSC$11631_win_.mozRequestAnimationFrame?(this.JSC$11631_id_=_.H1(this.JSC$11631_win_,"MozBeforePaint",this.callback_),this.JSC$11631_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11631_id_=G&&B?G.call(this.JSC$11631_win_,this.callback_):this.JSC$11631_win_.setTimeout(weN(this.callback_),20)};
_.w.stop=function(){if(this.isActive()){var G=etv(this),B=$ha(this);G&&!B&&this.JSC$11631_win_.mozRequestAnimationFrame?Nh(this.JSC$11631_id_):G&&B?B.call(this.JSC$11631_win_,this.JSC$11631_id_):this.JSC$11631_win_.clearTimeout(this.JSC$11631_id_)}this.JSC$11631_id_=null};
_.w.fire=function(){this.stop();this.JSC$11633_doAction_()};
_.w.isActive=function(){return this.JSC$11631_id_!=null};
_.w.JSC$11633_doAction_=function(){this.usingListeners_&&this.JSC$11631_id_&&Nh(this.JSC$11631_id_);this.JSC$11631_id_=null;this.JSC$11631_listener_.call(this.handler_,_.Td())};
_.w.disposeInternal=function(){this.stop();_.s2.superClass_.disposeInternal.call(this)};
var etv=function(G){G=G.JSC$11631_win_;return G.requestAnimationFrame||G.webkitRequestAnimationFrame||G.mozRequestAnimationFrame||G.oRequestAnimationFrame||G.msRequestAnimationFrame||null},$ha=function(G){G=G.JSC$11631_win_;
return G.cancelAnimationFrame||G.cancelRequestAnimationFrame||G.webkitCancelRequestAnimationFrame||G.mozCancelRequestAnimationFrame||G.oCancelRequestAnimationFrame||G.msCancelRequestAnimationFrame||null};_.s_=function(G,B,F){_.uz.call(this);this.JSC$11634_listener_=F!=null?G.bind(F):G;this.JSC$11634_interval_=B;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11634_timer_=null};
_.r(_.s_,_.uz);_.w=_.s_.prototype;_.w.fire=function(G){this.args_=arguments;this.JSC$11634_timer_||this.pauseCount_?this.shouldFire_=!0:zty(this)};
_.w.stop=function(){this.JSC$11634_timer_&&(_.Fz.clearTimeout(this.JSC$11634_timer_),this.JSC$11634_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.w.pause=function(){this.pauseCount_++};
_.w.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11634_timer_||(this.shouldFire_=!1,zty(this))};
_.w.disposeInternal=function(){_.uz.prototype.disposeInternal.call(this);this.stop()};
var zty=function(G){G.JSC$11634_timer_=mK(function(){G.JSC$11634_timer_=null;G.shouldFire_&&!G.pauseCount_&&(G.shouldFire_=!1,zty(G))},G.JSC$11634_interval_);
var B=G.args_;G.args_=null;G.JSC$11634_listener_.apply(null,B)};var bkT=function(G,B){this.childIterator_=G[_.Fz.Symbol.iterator]();this.mapFn_=B};
bkT.prototype[Symbol.iterator]=function(){return this};
bkT.prototype.next=function(){var G=this.childIterator_.next();return{value:G.done?void 0:this.mapFn_.call(void 0,G.value),done:G.done}};
var VFt=function(G,B){return new bkT(G,B)};var SlJ={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 sKg=/#(.)(.)(.)/,fXM=/^#(?:[0-9a-f]{3}){1,2}$/i,PLU=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var vN7={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},Gf=vN7;Gf=vN7;var aYl,oN8,MFy;aYl=function(G,B){switch(B){case 1:return G%4!=0||G%100==0&&G%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
oN8=function(G,B,F,D,u){G=new Date(G,B,F);u=u||0;return G.valueOf()+(((D!==void 0?D:3)-u+7)%7-((G.getDay()+6)%7-u+7)%7)*864E5};
_.uP=function(G,B,F){typeof G==="number"?(this.date=MFy(G,B||0,F||1),prN(this,F||1)):_.Zc(G)?(this.date=MFy(G.getFullYear(),G.getMonth(),G.getDate()),prN(this,G.getDate())):(this.date=new Date(_.Td()),G=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),prN(this,G))};
MFy=function(G,B,F){B=new Date(G,B,F);G>=0&&G<100&&B.setFullYear(B.getFullYear()-1900);return B};
_.w=_.uP.prototype;_.w.firstDayOfWeek_=Gf.FIRSTDAYOFWEEK;_.w.firstWeekCutOffDay_=Gf.FIRSTWEEKCUTOFFDAY;_.w.clone=function(){var G=new _.uP(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.w.getFullYear=function(){return this.date.getFullYear()};
_.w.getYear=function(){return this.getFullYear()};
_.w.getMonth=function(){return this.date.getMonth()};
_.w.getDate=function(){return this.date.getDate()};
_.w.getTime=function(){return this.date.getTime()};
_.w.getDay=function(){return this.date.getDay()};
_.w.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.w.getUTCMonth=function(){return this.date.getUTCMonth()};
_.w.getUTCDate=function(){return this.date.getUTCDate()};
_.w.getUTCDay=function(){return this.date.getDay()};
_.w.getUTCHours=function(){return this.date.getUTCHours()};
_.w.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.w.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.w.set=function(G){this.date=new Date(G.getFullYear(),G.getMonth(),G.getDate())};
_.w.setFullYear=function(G){this.date.setFullYear(G)};
_.w.setYear=function(G){this.setFullYear(G)};
_.w.setMonth=function(G){this.date.setMonth(G)};
_.w.setDate=function(G){this.date.setDate(G)};
_.w.setTime=function(G){this.date.setTime(G)};
_.w.setUTCFullYear=function(G){this.date.setUTCFullYear(G)};
_.w.setUTCMonth=function(G){this.date.setUTCMonth(G)};
_.w.setUTCDate=function(G){this.date.setUTCDate(G)};
_.w.add=function(G){if(G.years||G.months){var B=this.getMonth()+G.months+G.years*12,F=this.getYear()+Math.floor(B/12);B%=12;B<0&&(B+=12);var D=Math.min(aYl(F,B),this.getDate());this.setDate(1);this.setFullYear(F);this.setMonth(B);this.setDate(D)}G.days&&(F=this.getYear(),B=F>=0&&F<=99?-1900:0,G=new Date((new Date(F,this.getMonth(),this.getDate(),12)).getTime()+G.days*864E5),this.setDate(1),this.setFullYear(G.getFullYear()+B),this.setMonth(G.getMonth()),this.setDate(G.getDate()),prN(this,G.getDate()))};
_.w.JSC$11647_toIsoString=function(G){var B=this.getFullYear(),F=B<0?"-":B>=1E4?"+":"";return[F+_.PU(Math.abs(B),F?6:4),_.PU(this.getMonth()+1,2),_.PU(this.getDate(),2)].join(G?"-":"")};
_.w.equals=function(G){return!(!G||this.getYear()!=G.getYear()||this.getMonth()!=G.getMonth()||this.getDate()!=G.getDate())};
_.w.toString=function(){return this.JSC$11647_toIsoString()};
var prN=function(G,B){G.getDate()!=B&&G.date.setUTCHours(G.date.getUTCHours()+(G.getDate()<B?1:-1))};
_.uP.prototype.valueOf=function(){return this.date.valueOf()};var wu=function(G,B,F,D,u){this.reversed=!!B;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!F;G&&R3(this,G,D);this.depth=u!=void 0?u:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.IC(wu,dP);var R3=function(G,B,F,D){if(G.node=B)G.tagType=typeof F==="number"?F:G.node.nodeType!=1?0:G.reversed?-1:1;typeof D==="number"&&(G.depth=D)};
_.w=wu.prototype;_.w.JSC$11662_copyFrom=function(G){this.node=G.node;this.tagType=G.tagType;this.depth=G.depth;this.reversed=G.reversed;this.constrained=G.constrained};
_.w.clone=function(){return new wu(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.w.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return JE;var G=this.node;var B=this.reversed?-1:1;if(this.tagType==B){var F=this.reversed?G.lastChild:G.firstChild;F?R3(this,F):R3(this,G,B*-1)}else(F=this.reversed?G.previousSibling:G.nextSibling)?R3(this,F):R3(this,G.parentNode,B*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(G=this.node)?cf(G):JE};
_.w.equals=function(G){return G.node==this.node&&(!this.node||G.tagType==this.tagType)};
_.w.splice=function(G){var B=this.node,F=this.reversed?1:-1;this.tagType==F&&(this.tagType=F*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;wu.prototype.next.call(this);this.reversed=!this.reversed;F=_.fQ(arguments[0])?arguments[0]:arguments;for(var D=F.length-1;D>=0;D--)_.Hb(F[D],B);_.B1(B)};var Y_w=function(){},Co=function(G){for(var B=[],F=G.getTextRangeCount(),D=0;D<F;D++)B.push(G.getTextRange(D));
return B};
Y_w.prototype.isReversed=function(){return!1};
Y_w.prototype.getWindow=function(){return EK(_.KT(this.JSC$11664_getStartNode()))};
var AxN=function(G,B){wu.call(this,G,B,!0)};
_.IC(AxN,wu);var Np=function(G,B,F,D,u){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!u;if(G){this.startNode_=G;this.startOffset_=B;this.endNode_=F;this.endOffset_=D;if(G.nodeType==1&&G.tagName!="BR")if(G=G.childNodes,B=G[B])this.startNode_=B,this.startOffset_=0;else{G.length&&(this.startNode_=_.bl(G));var R=!0}F.nodeType==1&&((this.endNode_=F.childNodes[D])?this.endOffset_=0:this.endNode_=F)}wu.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);R&&this.next()};
_.IC(Np,AxN);_.w=Np.prototype;_.w.JSC$11670_getStartNode=function(){return this.startNode_};
_.w.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)};
_.w.next=function(){return this.isLast()?JE:Np.superClass_.next.call(this)};
_.w.JSC$11662_copyFrom=function(G){this.startNode_=G.startNode_;this.endNode_=G.endNode_;this.startOffset_=G.startOffset_;this.endOffset_=G.endOffset_;this.isReversed_=G.isReversed_;Np.superClass_.JSC$11662_copyFrom.call(this,G)};
_.w.clone=function(){var G=new Np(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);G.JSC$11662_copyFrom(this);return G};GEM.prototype.__iterator__=function(){return new Np(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.IC(xb,GEM);var dhs=function(G){var B=_.KT(G).createRange();if(G.nodeType==3)B.setStart(G,0),B.setEnd(G,G.length);else if(Lc(G)||G.nodeType==3){for(var F,D=G;(F=D.firstChild)&&(Lc(F)||F.nodeType==3);)D=F;B.setStart(D,0);for(D=G;(F=D.lastChild)&&(Lc(F)||F.nodeType==3);)D=F;B.setEnd(D,D.nodeType==1?D.childNodes.length:D.length)}else F=G.parentNode,G=Array.prototype.indexOf.call(F.childNodes,G),B.setStart(F,G),B.setEnd(F,G+1);return B},JxL=function(G,B,F,D){var u=_.KT(G).createRange();
u.setStart(G,B);u.setEnd(F,D);return u};
_.w=xb.prototype;_.w.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.w.getContainer=function(){return this.range_.commonAncestorContainer};
_.w.compareBrowserRangeEndpoints=function(G,B,F){return this.range_.compareBoundaryPoints(F==1?B==1?_.Fz.Range.START_TO_START:_.Fz.Range.START_TO_END:B==1?_.Fz.Range.END_TO_START:_.Fz.Range.END_TO_END,G)};
_.w.isCollapsed=function(){return this.range_.collapsed};
_.w.select=function(G){this.selectInternal(EK(_.KT(this.range_.startContainer)).getSelection(),G)};
_.w.selectInternal=function(G){G.removeAllRanges();G.addRange(this.range_)};
_.w.insertNode=function(G,B){var F=this.range_.cloneRange();F.collapse(B);F.insertNode(G);F.detach();return G};
_.w.collapse=function(G){this.range_.collapse(G)};_.IC(Pw,xb);Pw.prototype.selectInternal=function(G,B){!B||this.isCollapsed()?Pw.superClass_.selectInternal.call(this,G,B):(G.collapse(this.range_.endContainer,this.range_.endOffset),G.extend(this.range_.startContainer,this.range_.startOffset))};_.IC(GN,xb);GN.prototype.compareBrowserRangeEndpoints=function(G,B,F){return GN.superClass_.compareBrowserRangeEndpoints.call(this,G,B,F)};
GN.prototype.selectInternal=function(G,B){B?G.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):G.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var yF=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},uWU;
_.IC(yF,Y_w);uWU=function(G,B){var F=new yF;F.browserRangeWrapper_=G;F.isReversed_=!!B;return F};
_.cxU=function(G){G=_.Bz?new GN(dhs(G)):_.ih?new Pw(dhs(G)):new xb(dhs(G));return uWU(G)};
_.uh=function(G,B,F,D){var u=new yF;u.isReversed_=DXM(G,B,F,D);if(_.Zn(G)&&!Lc(G)){var R=G.parentNode;B=Array.prototype.indexOf.call(R.childNodes,G);G=R}_.Zn(F)&&!Lc(F)&&(R=F.parentNode,D=Array.prototype.indexOf.call(R.childNodes,F),F=R);u.isReversed_?(u.startNode_=F,u.startOffset_=D,u.endNode_=G,u.endOffset_=B):(u.startNode_=G,u.startOffset_=B,u.endNode_=F,u.endOffset_=D);return u};
_.w=yF.prototype;_.w.clone=function(){var G=new yF;G.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();G.startNode_=this.startNode_;G.startOffset_=this.startOffset_;G.endNode_=this.endNode_;G.endOffset_=this.endOffset_;G.isReversed_=this.isReversed_;return G};
_.w.JSC$11664_getType=function(){return"text"};
_.w.getBrowserRangeObject=function(){return no(this).range_};
_.w.getTextRangeCount=function(){return 1};
_.w.getTextRange=function(){return this};
var no=function(G){var B;if(!(B=G.browserRangeWrapper_)){B=G.JSC$11664_getStartNode();var F=G.JSC$11664_getStartOffset(),D=G.JSC$11664_getEndNode(),u=G.JSC$11664_getEndOffset();B=_.Bz?new GN(JxL(B,F,D,u)):_.ih?new Pw(JxL(B,F,D,u)):new xb(JxL(B,F,D,u));B=G.browserRangeWrapper_=B}return B};
_.w=yF.prototype;_.w.getContainer=function(){return no(this).getContainer()};
_.w.JSC$11664_getStartNode=function(){return this.startNode_||(this.startNode_=no(this).range_.startContainer)};
_.w.JSC$11664_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=no(this).range_.startOffset};
_.w.JSC$11664_getEndNode=function(){return this.endNode_||(this.endNode_=no(this).range_.endContainer)};
_.w.JSC$11664_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=no(this).range_.endOffset};
_.w.isReversed=function(){return this.isReversed_};
_.w.JSC$11664_containsRange=function(G,B){if(G.JSC$11664_getType()=="text"){var F=no(this);G=no(G);B=B&&!G.isCollapsed();G=G.range_;F=B?F.compareBrowserRangeEndpoints(G,0,1)>=0&&F.compareBrowserRangeEndpoints(G,1,0)<=0:F.compareBrowserRangeEndpoints(G,0,0)>=0&&F.compareBrowserRangeEndpoints(G,1,1)<=0}else F=!1;return F};
_.w.isCollapsed=function(){return no(this).isCollapsed()};
_.w.JSC$11664_getText=function(){return no(this).range_.toString()};
_.w.__iterator__=function(){return new Np(this.JSC$11664_getStartNode(),this.JSC$11664_getStartOffset(),this.JSC$11664_getEndNode(),this.JSC$11664_getEndOffset())};
_.w.select=function(){no(this).select(this.isReversed_)};
_.w.JSC$11664_removeContents=function(){var G=no(this).range_;G.extractContents();if(G.startContainer.hasChildNodes()&&(G=G.startContainer.childNodes[G.startOffset])){var B=G.previousSibling;G_w(G)==""&&_.B1(G);B&&G_w(B)==""&&_.B1(B)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.w.insertNode=function(G,B){G=no(this).insertNode(G,B);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return G};
_.w.collapse=function(G){G=this.isReversed()?!G:G;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(G);G?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var TJL=function(){};
_.IC(TJL,Y_w);TJL.prototype.JSC$11664_containsRange=function(G,B){var F=Co(this);G=Co(G);return(B?Ao:_.$5U)(G,function(D){return Ao(F,function(u){return u.JSC$11664_containsRange(D,B)})})};
TJL.prototype.insertNode=function(G,B){B?_.Wb(G,this.JSC$11664_getStartNode()):_.Hb(G,this.JSC$11664_getEndNode());return G};var IeG,feL=Ri().JSC$9636_document_.documentElement;IeG=feL.requestFullscreen?"fullscreenchange":feL.webkitRequestFullscreen?"webkitfullscreenchange":feL.mozRequestFullScreen?"mozfullscreenchange":feL.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var DH=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.IC(DH,TJL);_.w=DH.prototype;_.w.clone=function(){var G=new DH;G.browserRanges_=_.II(this.browserRanges_);return G};
_.w.JSC$11664_getType=function(){return"mutli"};
_.w.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.w.getTextRangeCount=function(){return this.browserRanges_.length};
_.w.getTextRange=function(G){this.ranges_[G]||(this.ranges_[G]=uWU(B2o(this.browserRanges_[G])));return this.ranges_[G]};
_.w.getContainer=function(){if(!this.container_){for(var G=[],B=this.getTextRangeCount(),F=0;F<B;F++)G.push(this.getTextRange(F).getContainer());this.container_=tyv.apply(null,G)}return this.container_};
var lP=function(G){G.sortedRanges_||(G.sortedRanges_=Co(G),G.sortedRanges_.sort(function(B,F){var D=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();var u=F.JSC$11664_getStartNode();F=F.JSC$11664_getStartOffset();return D==u&&B==F?0:DXM(D,B,u,F)?1:-1}));
return G.sortedRanges_};
_.w=DH.prototype;_.w.JSC$11664_getStartNode=function(){return lP(this)[0].JSC$11664_getStartNode()};
_.w.JSC$11664_getStartOffset=function(){return lP(this)[0].JSC$11664_getStartOffset()};
_.w.JSC$11664_getEndNode=function(){return _.bl(lP(this)).JSC$11664_getEndNode()};
_.w.JSC$11664_getEndOffset=function(){return _.bl(lP(this)).JSC$11664_getEndOffset()};
_.w.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.w.JSC$11664_getText=function(){return Co(this).map(function(G){return G.JSC$11664_getText()}).join("")};
_.w.__iterator__=function(){return new UV(this)};
_.w.select=function(){var G=this.getWindow().getSelection();G.removeAllRanges();for(var B=this.getTextRangeCount(),F=0;F<B;F++)G.addRange(this.getTextRange(F).getBrowserRangeObject())};
_.w.JSC$11664_removeContents=function(){Co(this).forEach(function(G){G.JSC$11664_removeContents()})};
_.w.collapse=function(G){if(!this.isCollapsed()){var B=G?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;B.collapse(G);this.ranges_=[B];this.sortedRanges_=[B];this.browserRanges_=[B.getBrowserRangeObject()]}};
var UV=function(G){this.iterators_=null;this.currentIdx_=0;G&&(this.iterators_=lP(G).map(function(B){return _.qqs(B)}));
wu.call(this,G?this.JSC$11670_getStartNode():null,!1,!0)};
_.IC(UV,AxN);_.w=UV.prototype;_.w.JSC$11670_getStartNode=function(){return this.iterators_[0].JSC$11670_getStartNode()};
_.w.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.w.next=function(){for(;this.currentIdx_<this.iterators_.length;){var G=this.iterators_[this.currentIdx_],B=G.next();if(B.done)this.currentIdx_++;else return R3(this,G.node,G.tagType,G.depth),B}return JE};
_.w.JSC$11662_copyFrom=function(G){this.iterators_=_.II(G.iterators_);UV.superClass_.JSC$11662_copyFrom.call(this,G)};
_.w.clone=function(){var G=new UV(null);G.JSC$11662_copyFrom(this);return G};var qp=function(){_.W1.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.R_)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.R_)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.R_)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.R_)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.R_)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.R_)(this.dispatchProgressEvent_,this)};
_.IC(qp,_.W1);qp.prototype.abort=function(){try{this.reader_.abort()}catch(G){throw new hZU(G,"aborting read");}};
qp.prototype.getError=function(){return this.reader_.error&&new hZU(this.reader_.error,"reading file")};
qp.prototype.dispatchProgressEvent_=function(G){this.dispatchEvent(new KO6(G,this))};
qp.prototype.disposeInternal=function(){qp.superClass_.disposeInternal.call(this);delete this.reader_};
var ZkL=function(G){var B=new qp,F=tFy(B);B.reader_.readAsArrayBuffer(G);return F},gNw=function(G){var B=new qp,F=tFy(B);
B.reader_.readAsDataURL(G);return F},tFy=function(G){var B=new lz;
G.listen("loadend",_.Fw(function(F,D){var u=D.reader_.result,R=D.getError();u==null||R?F.errback(R):F.callback(u);D.dispose()},B,G));
return B};var EV=function(){_.W1.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11704_eventHandler_=new _.Cn(this);this.JSC$11704_isInitialized_=!1};
_.IC(EV,_.W1);var S_s=new _.y_("d"),shs=new _.y_("beforedragstart"),xhL=new _.y_("dragstart"),P4U=new _.y_("beforedragmove"),GnG=new _.y_("dragmove"),Bet=new _.y_("beforedragend"),iAG=new _.y_("dragend"),FAG=new _.y_("e");EV.prototype.isDragging=function(){return!!this.JSC$11704_dragger_};
var D6y=function(G,B){B.dlgGrowthDirection_=0;B.dlgDragHoverClass_=void 0;B.dlgDragPermission=0;G.dragLists_.push(B)},uTT=function(G,B){G.getHandleForDragItem_=B};
EV.prototype.init=function(){if(!this.JSC$11704_isInitialized_){for(var G=this.dragLists_.length,B=0;B<G;B++)for(var F=_.kW(this.dragLists_[B]),D=F.length,u=0;u<D;++u){var R=F[u],N=this.getHandleForDragItem_(R),y=_.S8(N);this.dragItemForHandle_[y]=R;this.dragItemHoverClasses_&&(this.JSC$11704_eventHandler_.listen(R,"mouseover",this.handleDragItemMouseover_),this.JSC$11704_eventHandler_.listen(R,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11704_eventHandler_.listen(N,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11704_eventHandler_.listen(N,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(R);this.JSC$11704_eventHandler_.listen(N,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11704_isInitialized_=!0}};
EV.prototype.disposeInternal=function(){this.JSC$11704_eventHandler_.dispose();for(var G=this.dragLists_.length,B=0;B<G;B++){var F=this.dragLists_[B];F.dlgGrowthDirection_=void 0;F.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;RiN(this);EV.superClass_.disposeInternal.call(this)};
var wIq=function(G,B){for(var F=G.dragLists_.length,D=0;D<F;D++){var u=G.dragLists_[D];u.dlgBounds_=wpc(u)}F=G.dragItems_.length;for(D=0;D<F;D++)u=G.dragItems_[D],u!=B&&(u.dlgBounds_=wpc(u))};
_.w=EV.prototype;
_.w.handlePotentialDragStart_=function(G){var B=_.S8(G.currentTarget);B=this.dragItemForHandle_[B];if(B.parentElement.dlgDragPermission!=2){this.currDragItem_=B;a:{B=this.currDragItem_;for(var F=B.cloneNode(!0),D=iz("TEXTAREA",B),u=iz("TEXTAREA",F),R=0;R<D.length;R++)u[R].value=D[R].value;switch(B.tagName){case "TR":B=_.Qy("TABLE",null,_.Qy("TBODY",null,F));break a;case "TD":case "TH":B=_.Qy("TABLE",null,_.Qy("TBODY",null,_.Qy("TR",null,F)));break a;case "TEXTAREA":F.value=B.value;default:B=F;break a}B=
void 0}this.draggerEl_=B;this.draggerElClasses_&&MX(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.KT(this.currDragItem_).body.appendChild(this.draggerEl_);F=_.ai(this.currDragItem_);B=this.draggerEl_;D=_.ai(B);if(F instanceof _.e5){var N=F.y;F=F.x}z6(B,B.offsetLeft+(F-D.x),B.offsetTop+(Number(N)-D.y));this.JSC$11704_dragger_=new _.QV(this.draggerEl_);_.e2y(this.JSC$11704_dragger_,this.hysteresisDistance_);
_.H1(this.JSC$11704_dragger_,"start",this.handleDragStart_,!1,this);_.H1(this.JSC$11704_dragger_,"end",this.handleDragEnd_,!1,this);_.H1(this.JSC$11704_dragger_,"earlycancel",this.JSC$11706_cleanup_,!1,this);this.dispatchEvent(new hD(S_s,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_));this.JSC$11704_dragger_.startDrag(G)}};
_.w.handleDragStart_=function(G){if(this.dispatchEvent(new hD(shs,this,G.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Tqs(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?MX(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var B=RWw(this.draggerEl_);this.draggerEl_.halfWidth=B.width/2;this.draggerEl_.halfHeight=B.height/2;B=this.draggerEl_.getBoundingClientRect();
var F=G.clientY,D=$YP(this.JSC$11704_dragger_,G.clientX);if(D>B.right){var u=this.currDragItem_.getBoundingClientRect();this.JSC$11704_dragger_.deltaX=D-(D-u.left)/u.width*B.width}F=z2U(this.JSC$11704_dragger_,F);F>B.bottom&&(this.JSC$11704_dragger_.deltaY+=F-B.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";wIq(this,this.currDragItem_);this.currDragItem_.style.display="";_.H1(this.JSC$11704_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new hD(xhL,
this,G.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_))}else G.preventDefault(),this.JSC$11706_cleanup_()};
_.w.handleDragMove_=function(G){var B=_.ai(this.draggerEl_);B=new _.e5(B.x+this.draggerEl_.halfWidth,B.y+this.draggerEl_.halfHeight);a:{var F=null;if(this.currDragItem_.style.display!="none"){F=this.currDragItem_.parentNode;var D=wpc(F);if(CNy(B,D))break a}D=this.dragLists_.length;for(var u=0;u<D;u++){var R=this.dragLists_[u];if(R!=F&&CNy(B,R.dlgBounds_)){F=R;break a}}F=null}if(F){if(F==null)throw Error("ae");D=0;u=!1;R=void 0;switch(F.dlgGrowthDirection_){case 0:D=B.y;var N=Nev;var y=yZa;break;case 4:u=
!0;case 2:D=B.x;N=nFt;y=yZa;break;case 5:u=!0;case 3:D=B.x,N=l$N,y=U6q}for(var U=null,q,h=_.kW(F),K=h.length,a=0;a<K;a++){var m=h[a];if(m!=this.currDragItem_){var L=N(m.dlgBounds_);if(u){var W=qRw(m,B);R===void 0&&(R=W);y(D,L)&&(q==void 0||W<R||W==R&&(y(L,q)||L==q))&&(U=m,q=L);W<R&&(R=W)}else y(D,L)&&(q==void 0||y(L,q))&&(U=m,q=L)}}N=U!==null&&qRw(U,B)>R?null:U}else N=null;if(!this.dispatchEvent(new hD(P4U,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_,B,F,N)))return!1;if(F&&F.dlgDragPermission!=
1)this.currDragItem_.parentNode==F&&_.Tqs(this.currDragItem_)==N||F.insertBefore(this.currDragItem_,N),this.currDragItem_.style.display="",F.dlgDragHoverClass_&&_.b4(F,F.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",y=this.dragLists_.length,q=0;q<y;q++)D=this.dragLists_[q],D.dlgDragHoverClass_&&_.zm(D,D.dlgDragHoverClass_);F!=this.currHoverList_&&(this.currHoverList_=F,wIq(this,this.currDragItem_));this.dispatchEvent(new hD(GnG,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_,
B,F,N));return!1};
_.w.JSC$11706_cleanup_=function(){RiN(this);this.JSC$11704_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var G=this.dragLists_.length,B=0;B<G;B++)this.dragLists_[B].dlgBounds_=null;G=this.dragItems_.length;for(B=0;B<G;B++)this.dragItems_[B].dlgBounds_=null};
_.w.handleDragEnd_=function(G){if(!this.dispatchEvent(new hD(Bet,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_)))return!1;RiN(this);this.dispatchEvent(new hD(iAG,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_));this.JSC$11706_cleanup_();return!0};
var RiN=function(G){_.ve(G.JSC$11704_dragger_);var B=G.draggerEl_&&G.draggerEl_.parentElement;G.draggerEl_&&_.B1(G.draggerEl_);G.currDragItem_&&G.currDragItem_.style.display=="none"&&(G.origList_.insertBefore(G.currDragItem_,G.origNextItem_),G.currDragItem_.style.display="");G.currDragItemClasses_&&G.currDragItem_?po8(G.currDragItem_,G.currDragItemClasses_||[]):G.currDragItem_&&(G.currDragItem_.style.visibility="");for(var F=G.dragLists_.length,D=0;D<F;D++){var u=G.dragLists_[D];u.dlgDragHoverClass_&&
_.zm(u,u.dlgDragHoverClass_)}B&&G.dispatchEvent(new hD(FAG,G,null,G.currDragItem_,G.draggerEl_,G.JSC$11704_dragger_))};
_.w=EV.prototype;_.w.getHandleForDragItem_=function(G){return G};
_.w.handleDragItemMouseover_=function(G){MX(G.currentTarget,this.dragItemHoverClasses_||[])};
_.w.handleDragItemMouseout_=function(G){po8(G.currentTarget,this.dragItemHoverClasses_||[])};
_.w.handleDragItemHandleMouseover_=function(G){MX(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.w.handleDragItemHandleMouseout_=function(G){po8(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
var CNy=function(G,B){return G.x>B.left&&G.x<B.left+B.width&&G.y>B.top&&G.y<B.top+B.height},qRw=function(G,B){G=G.dlgBounds_;
return Math.abs(B.y-(G.top+(G.height-1)/2))},Nev=function(G){return G.top+G.height-1},nFt=function(G){return G.left+G.width-1},l$N=function(G){return G.left||0},yZa=function(G,B){return G<B},U6q=function(G,B){return G>B},hD=function(G,B,F,D,u,R){_.T_.call(this,G);
this.event=F;this.currDragItem=D;this.draggerEl=u;this.JSC$11708_dragger=R};
_.IC(hD,_.T_);_.IC(Cr,_.uz);var EFL=new _.e5(0,0);Cr.prototype.JSC$11712_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Cr.prototype.JSC$11712_onMouseMove=function(G){var B=this.containerIsActuallyContent_?EFL:uB(Ri(this.containerNode_)),F=this.horizontalScrolling_?this.calculateScrollDelta(G.clientX+B.x,this.scrollBounds_.left,this.scrollBounds_.width):0,D=this.calculateScrollDelta(G.clientY+B.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=F;this.scrollDelta_.y=D;!(F=!F&&!D)&&(F=this.constrainScroll_)&&(F=G.clientX+B.x,G=G.clientY+B.y,B=this.containerBounds_,F=!(B.left<=F&&B.left+B.width>=
F&&B.top<=G&&B.top+B.height>=G));F?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Cr.prototype.calculateScrollDelta=function(G,B,F){var D=0;G<B?D=-8:G>B+F&&(D=8);return D};
Cr.prototype.disposeInternal=function(){Cr.superClass_.disposeInternal.call(this);this.JSC$11710_eventHandler_.dispose();this.scrollTimer_.dispose()};var hiw={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"}}},Ko=hiw;Ko=hiw;var a3={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 OX=function(G){if(typeof G=="number"){var B=new C16;B.standardOffset_=G;var F=G;if(F==0)F="Etc/GMT";else{var D=["Etc/GMT",F<0?"-":"+"];F=Math.abs(F);D.push(Math.floor(F/60)%100);F%=60;F!=0&&D.push(":",_.PU(F,2));F=D.join("")}B.timeZoneId_=F;F=G;F==0?F="UTC":(D=["UTC",F<0?"+":"-"],F=Math.abs(F),D.push(Math.floor(F/60)%100),F%=60,F!=0&&D.push(":",F),F=D.join(""));G=KA8(G);B.tzNames_=[F,F];B.tzNamesExt_={STD_LONG_NAME_GMT:G,STD_GENERIC_LOCATION:G};B.transitions_=[];return B}B=new C16;B.timeZoneId_=
G.id;B.standardOffset_=-G.std_offset;B.tzNames_=G.names;B.tzNamesExt_=G.names_ext;B.transitions_=G.transitions;return B},KA8=function(G){var B=["GMT"];
B.push(G<=0?"+":"-");G=Math.abs(G);B.push(_.PU(Math.floor(G/60)%100,2),":",_.PU(G%60,2));return B.join("")},a$8=function(G,B){B=Date.UTC(B.getUTCFullYear(),B.getUTCMonth(),B.getUTCDate(),B.getUTCHours(),B.getUTCMinutes())/36E5;
for(var F=0;F<G.transitions_.length&&B>=G.transitions_[F];)F+=2;return F==0?0:G.transitions_[F-1]},m6G=function(G,B){G=G.standardOffset_-a$8(G,B);
return G===-1440?0:G};var ew=function(G,B){this.patternParts_=[];this.JSC$11723_dateTimeSymbols_=B||Gf;typeof G=="number"?XIs(this,G):QQT(this,G)},jQL=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],QF=function(G){return G.getHours?G.getHours():0},QQT=function(G,B){for(IpI&&(B=B.replace(/\u200f/g,""));B;){for(var F=B,D=0;D<jQL.length;++D){var u=B.match(jQL[D]);
if(u){var R=u[0];B=B.substring(R.length);D==0&&(R=="''"?R="'":(R=R.substring(1,u[1]=="'"?R.length-1:R.length),R=R.replace(/''/g,"'")));G.patternParts_.push({text:R,type:D});break}}if(F===B)throw Error("be`"+B);}};
ew.prototype.format=function(G,B){if(!G)throw Error("ce");var F=B?(G.getTimezoneOffset()-m6G(B,G))*6E4:0,D=F?new Date(G.getTime()+F):G,u=D;B&&D.getTimezoneOffset()!=G.getTimezoneOffset()&&(D=new Date(D.getTime()+(D.getTimezoneOffset()-G.getTimezoneOffset())*6E4),u=new Date(G.getTime()+(F+(F>0?-864E5:864E5))));F=[];for(var R=0;R<this.patternParts_.length;++R){var N=this.patternParts_[R].text;1==this.patternParts_[R].type?F.push(LAs(this,N,G,D,u,B)):F.push(N)}return F.join("")};
var XIs=function(G,B){if(B<4)var F=G.JSC$11723_dateTimeSymbols_.DATEFORMATS[B];else if(B<8)F=G.JSC$11723_dateTimeSymbols_.TIMEFORMATS[B-4];else if(B<12)F=G.JSC$11723_dateTimeSymbols_.DATETIMEFORMATS[B-8],F=F.replace("{1}",G.JSC$11723_dateTimeSymbols_.DATEFORMATS[B-8]),F=F.replace("{0}",G.JSC$11723_dateTimeSymbols_.TIMEFORMATS[B-8]);else if(B===12)F=G.JSC$11723_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(B===13)F=G.JSC$11723_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{XIs(G,10);return}QQT(G,F)},j7=function(G,B){B=String(B);
G=G.JSC$11723_dateTimeSymbols_||Gf;if(G.ZERODIGIT!==void 0&&!T4M){for(var F=[],D=0;D<B.length;D++){var u=B.charCodeAt(D);F.push(48<=u&&u<=57?String.fromCharCode(G.ZERODIGIT+u-48):B.charAt(D))}B=F.join("")}return B},T4M=!1,IpI=!1,WAL=function(G,B,F,D){F=F.getFullYear();
F<=0&&D&&(F=1-F);return j7(G,rZa(F,B))},rZa=function(G,B){B==2&&(G%=100);
G<0&&B++;return _.PU(G,B)},Lo=function(G){if(!(G.getHours&&G.getSeconds&&G.getMinutes))throw Error("de");
},HA7=function(G,B){Lo(B);
B=QF(B);return G.JSC$11723_dateTimeSymbols_.AMPMS[B>=12&&B<24?1:0]},LAs=function(G,B,F,D,u,R){var N=B.length;
switch(B.charAt(0)){case "G":return F=D.getFullYear()>0?1:0,N>=4?G.JSC$11723_dateTimeSymbols_.ERANAMES[F]:G.JSC$11723_dateTimeSymbols_.ERAS[F];case "y":return WAL(G,N,D,!0);case "Y":return F=(new Date(oN8(D.getFullYear(),D.getMonth(),D.getDate(),G.JSC$11723_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11723_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),N==2&&(F%=100),j7(G,rZa(F,N));case "u":return WAL(G,N,D,!1);case "M":a:switch(F=D.getMonth(),N){case 5:N=G.JSC$11723_dateTimeSymbols_.NARROWMONTHS[F];
break a;case 4:N=G.JSC$11723_dateTimeSymbols_.MONTHS[F];break a;case 3:N=G.JSC$11723_dateTimeSymbols_.SHORTMONTHS[F];break a;default:N=j7(G,_.PU(F+1,N))}return N;case "k":return Lo(u),j7(G,_.PU(QF(u)||24,N));case "S":return j7(G,(u.getMilliseconds()/1E3).toFixed(Math.min(3,N)).slice(2)+(N>3?_.PU(0,N-3):""));case "E":return F=D.getDay(),N>=4?G.JSC$11723_dateTimeSymbols_.WEEKDAYS[F]:G.JSC$11723_dateTimeSymbols_.SHORTWEEKDAYS[F];case "a":return HA7(G,u);case "b":return HA7(G,u);case "B":return HA7(G,
u);case "h":return Lo(u),j7(G,_.PU(QF(u)%12||12,N));case "K":return Lo(u),j7(G,_.PU(QF(u)%12,N));case "H":return Lo(u),j7(G,_.PU(QF(u),N));case "c":a:switch(F=D.getDay(),N){case 5:N=G.JSC$11723_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[F];break a;case 4:N=G.JSC$11723_dateTimeSymbols_.STANDALONEWEEKDAYS[F];break a;case 3:N=G.JSC$11723_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[F];break a;default:N=j7(G,_.PU(F,1))}return N;case "L":a:switch(F=D.getMonth(),N){case 5:N=G.JSC$11723_dateTimeSymbols_.STANDALONENARROWMONTHS[F];
break a;case 4:N=G.JSC$11723_dateTimeSymbols_.STANDALONEMONTHS[F];break a;case 3:N=G.JSC$11723_dateTimeSymbols_.STANDALONESHORTMONTHS[F];break a;default:N=j7(G,_.PU(F+1,N))}return N;case "Q":return F=Math.floor(D.getMonth()/3),N<4?G.JSC$11723_dateTimeSymbols_.SHORTQUARTERS[F]:G.JSC$11723_dateTimeSymbols_.QUARTERS[F];case "d":return j7(G,_.PU(D.getDate(),N));case "m":return Lo(u),j7(G,_.PU(u.getMinutes?u.getMinutes():0,N));case "s":return Lo(u),j7(G,_.PU(u.getSeconds(),N));case "v":return(R||OX(F.getTimezoneOffset())).timeZoneId_;
case "V":return G=R||OX(F.getTimezoneOffset()),N<=2?G.timeZoneId_:a$8(G,F)>0?G.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?G.tzNamesExt_.STD_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return F=oN8(u.getFullYear(),u.getMonth(),u.getDate(),G.JSC$11723_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11723_dateTimeSymbols_.FIRSTDAYOFWEEK),j7(G,_.PU(Math.floor(Math.round((F-(new Date((new Date(F)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,N));case "z":return G=R||OX(F.getTimezoneOffset()),N<4?G.tzNames_[a$8(G,F)>0?2:0]:G.tzNames_[a$8(G,F)>0?3:1];case "Z":return B=R||OX(F.getTimezoneOffset()),N<4?(N=-m6G(B,F),G=[N<0?"-":"+"],N=Math.abs(N),G.push(_.PU(Math.floor(N/60)%100,2),_.PU(N%60,2)),N=G.join("")):N=j7(G,KA8(m6G(B,F))),N;default:return""}};var knw=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,OAP=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,TMI=function(G){this.patternParts_=[];this.JSC$11732_dateTimeSymbols_=Gf;if(typeof G=="number"){G>11&&(G=10);if(G<4)var B=this.JSC$11732_dateTimeSymbols_.DATEFORMATS[G];else G<8?B=this.JSC$11732_dateTimeSymbols_.TIMEFORMATS[G-4]:(B=this.JSC$11732_dateTimeSymbols_.DATETIMEFORMATS[G-8],B=B.replace("{1}",this.JSC$11732_dateTimeSymbols_.DATEFORMATS[G-8]),B=B.replace("{0}",this.JSC$11732_dateTimeSymbols_.TIMEFORMATS[G-
8]));ei7(this,B)}else ei7(this,G)},ei7=function(G,B){for(var F=!1,D="",u=0;u<B.length;u++){var R=B.charAt(u);
if(knw.test(R))for(D.length>0&&(G.patternParts_.push({text:D,count:0,abutStart:!1,numeric:!1}),D=""),G.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});u<B.length-1&&B.charAt(u+1)==" ";)u++;else if(F)R=="'"?u+1<B.length&&B.charAt(u+1)=="'"?(D+="'",u++):F=!1:D+=R;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(R)>=0){D.length>0&&(G.patternParts_.push({text:D,count:0,abutStart:!1,numeric:!1}),D="");for(var N=B.charAt(u),y=u+1;y<B.length&&B.charAt(y)==N;)y++;N=y-u;N<=0?y=!1:(y="MydhHmsSDkK".indexOf(R),
y=y>0||y==0&&N<3);G.patternParts_.push({text:R,count:N,abutStart:!1,numeric:y});u+=N-1}else R=="'"?u+1<B.length&&B.charAt(u+1)=="'"?(D+="'",u++):F=!0:D+=R}D.length>0&&G.patternParts_.push({text:D,count:0,abutStart:!1,numeric:!1});B=!1;for(F=0;F<G.patternParts_.length;F++)G.patternParts_[F].numeric?!B&&F+1<G.patternParts_.length&&G.patternParts_[F+1].numeric&&(B=!0,G.patternParts_[F].abutStart=!0):B=!1};
TMI.prototype.parse=function(G,B,F){var D=!1,u=!1;F&&(D=F.predictive||!1,u=F.validate||!1);if(D)for(F=0;F<this.patternParts_.length;F++){var R=this.patternParts_[F];if(R.count>0&&("abBhHkKm".indexOf(R.text.charAt(0))<0||R.count>2||R.abutStart))throw Error("ee`"+R.text.charAt(0));}R=new $6a;F=[0];R.dayPeriodIndex=-1;for(var N=0;N<this.patternParts_.length&&!(D&&F[0]>=G.length);N++){if(this.patternParts_[N].count==0){a:{var y=G;var U=F,q=this.patternParts_[N],h=D;if(q.text.match(knw)!=null){if(q=U[0],
ziq(y,U),U[0]>q){y=!0;break a}}else{if(y.indexOf(q.text,U[0])==U[0]){U[0]+=q.text.length;y=!0;break a}if(h&&q.text.indexOf(y.substring(U[0]))==0){U[0]+=y.length-U[0];y=!0;break a}}y=!1}if(y)continue;return 0}if(this.patternParts_[N].abutStart){a:{U=G;q=F;h=N;var K=q[0],a=0;for(y=h;y<this.patternParts_.length;y++){var m=this.patternParts_[y],L=m.count;if(L===0)break;if(y==h&&(L-=a,a++,L==0)){y=0;break a}var W=y>h&&m.numeric,e=q[0];if(!bAq(this,U,q,m,L,R,!1)||W&&q[0]-e<L)y=h-1,q[0]=K}y-=h}if(y<=0)return 0;
N+=y-1}else if(!bAq(this,G,F,this.patternParts_[N],0,R,D))return 0}a:{G=u;if(B==null)throw Error("fe");R.era!=void 0&&R.year!=void 0&&R.era==0&&R.year>0&&(R.year=-(R.year-1));R.year!=void 0&&B.setFullYear(R.year);D=B.getDate();B.setDate(1);R.month!=void 0&&B.setMonth(R.month);R.day!=void 0?B.setDate(R.day):(u=aYl(B.getFullYear(),B.getMonth()),B.setDate(D>u?u:D));typeof B.setHours==="function"&&(R.hours==void 0&&(R.hours=B.getHours()),R.hours<12&&(R.ampm!=void 0&&R.ampm>0?R.hours+=12:R.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(R.dayPeriodName)||["night1","night2"].includes(R.dayPeriodName)&&R.hours>=6)&&(R.hours+=12)),B.setHours(R.hours));typeof B.setMinutes==="function"&&R.minutes!=void 0&&B.setMinutes(R.minutes);typeof B.setSeconds==="function"&&R.seconds!=void 0&&B.setSeconds(R.seconds);typeof B.setMilliseconds==="function"&&R.milliseconds!=void 0&&B.setMilliseconds(R.milliseconds);if(G&&(R.year&&R.year!=B.getFullYear()||R.month&&R.month!=
B.getMonth()||R.day&&R.day!=B.getDate()||R.hours&&R.hours>=24||R.minutes&&R.minutes>=60||R.seconds&&R.seconds>=60||R.milliseconds&&R.milliseconds>=1E3))B=!1;else{R.tzOffset!=void 0&&B.setTime(B.getTime()+(R.tzOffset-B.getTimezoneOffset())*60*1E3);R.ambiguousYear&&(G=new Date,G.setFullYear(G.getFullYear()-80),B.getTime()<G.getTime()&&B.setFullYear(G.getFullYear()+100));if(R.dayOfWeek!=void 0)if(R.day==void 0)R=(7+R.dayOfWeek-B.getDay())%7,R>3&&(R-=7),G=B.getMonth(),B.setDate(B.getDate()+R),B.getMonth()!=
G&&B.setDate(B.getDate()+(R>0?-7:7));else if(R.dayOfWeek!=B.getDay()){B=!1;break a}B=!0}}return B?F[0]:0};
var bAq=function(G,B,F,D,u,R,N){ziq(B,F);if(D.numeric&&u>0&&F[0]+u>B.length)return!1;switch(D.text.charAt(0)){case "G":return ru(B,F,[G.JSC$11732_dateTimeSymbols_.ERAS],function(y){return R.era=y}),!0;
case "M":case "L":return Vot(G,B,F,u,D,R);case "E":return ru(B,F,[G.JSC$11732_dateTimeSymbols_.WEEKDAYS,G.JSC$11732_dateTimeSymbols_.SHORTWEEKDAYS],function(y){return R.dayOfWeek=y});
case "B":case "b":return u=[],G=[[].concat(G.JSC$11732_dateTimeSymbols_.AMPMS)],u.push("isAm"),u.push("isPm"),B=ru(B,F,G,function(y){return R.dayPeriodIndex=y},N),R.dayPeriodName=u[R.dayPeriodIndex],N?B:!0;
case "a":return B=ru(B,F,[G.JSC$11732_dateTimeSymbols_.AMPMS],function(y){return R.ampm=y},N),N?B:!0;
case "y":return vFU(G,B,F,D,u,R);case "Q":return ru(B,F,[G.JSC$11732_dateTimeSymbols_.QUARTERS,G.JSC$11732_dateTimeSymbols_.SHORTQUARTERS],function(y){R.month=y*3;R.day=1});
case "d":return WV(G,B,F,D,u,function(y){R.day=y}),!0;
case "S":return oFs(G,B,F,u,R);case "h":case "K":case "H":case "k":return B=WV(G,B,F,D,u,function(y){R.hours=D.text.charAt(0)==="h"&&y===12?0:y},N),N?B:!0;
case "m":return B=WV(G,B,F,D,u,function(y){R.minutes=y},N),N?B:!0;
case "s":return WV(G,B,F,D,u,function(y){R.seconds=y}),!0;
case "z":case "Z":case "v":return MoU(G,B,F,R);default:return!1}},vFU=function(G,B,F,D,u,R){var N=F[0];
u=HV(G,B,F,u);u===null&&(u=HV(G,B,F,0,!0));if(u===null)return!1;u>=0&&F[0]-N==2&&D.count==2?(G=u,B=(new Date).getFullYear()-80,F=B%100,R.ambiguousYear=G==F,G+=Math.floor(B/100)*100+(G<F?100:0),R.year=G):R.year=u;return!0},Vot=function(G,B,F,D,u,R){return u.numeric&&WV(G,B,F,u,D,function(N){R.month=N-1})?!0:ru(B,F,[G.JSC$11732_dateTimeSymbols_.MONTHS,
G.JSC$11732_dateTimeSymbols_.STANDALONEMONTHS,G.JSC$11732_dateTimeSymbols_.SHORTMONTHS,G.JSC$11732_dateTimeSymbols_.STANDALONESHORTMONTHS],function(N){R.month=N})},oFs=function(G,B,F,D,u){var R=F[0];
G=HV(G,B,F,D);if(G===null)return!1;F=F[0]-R;u.milliseconds=F<3?G*Math.pow(10,3-F):Math.round(G/Math.pow(10,F-3));return!0},MoU=function(G,B,F,D){B.indexOf("GMT",F[0])==F[0]&&(F[0]+=3);
if(F[0]>=B.length)return D.tzOffset=0,!0;var u=F[0],R=HV(G,B,F,0,!0);if(R===null)return!1;if(F[0]<B.length&&B.charAt(F[0])==":"){var N=R*60;F[0]++;R=HV(G,B,F,0);if(R===null)return!1;N+=R}else N=R,N=N<24&&F[0]-u<=3?N*60:N%100+N/100*60;D.tzOffset=-N;return!0},WV=function(G,B,F,D,u,R,N){N=N||!1;
var y=F[0];G=HV(G,B,F,u);if(G===null)return!1;if(N&&F[0]-y<D.count){if(F[0]<B.length)return!1;G*=Math.pow(10,D.count-(F[0]-y))}R(G);return!0},ru=function(G,B,F,D,u){u=u||!1;
for(var R,N=0;N<F.length;N++){R=B;for(var y=F[N],U=u,q=0,h=null,K=G.substring(R[0]).toLowerCase(),a=0;a<y.length;a++){var m=y[a].toLowerCase();if(U&&m.indexOf(K)==0){q=K.length;h=a;break}y[a].length>q&&K.indexOf(m)==0&&(q=y[a].length,h=a)}h!==null&&(R[0]+=q);R=h;if(R!==null)return D(R),!0}return!1},ziq=function(G,B){(G=G.substring(B[0]).match(OAP))&&(B[0]+=G[0].length)},HV=function(G,B,F,D,u){B=D>0?B.substring(0,F[0]+D):B;
u=u||!1;if(G.JSC$11732_dateTimeSymbols_.ZERODIGIT){D=[];for(var R=F[0];R<B.length;R++){var N=B.charCodeAt(R)-G.JSC$11732_dateTimeSymbols_.ZERODIGIT;D.push(0<=N&&N<=9?String.fromCharCode(N+48):B.charAt(R))}B=D.join("")}else B=B.substring(F[0]);G=B.match(new RegExp("^"+(u?"[+-]?":"")+"\\d+"));if(!G)return null;F[0]+=G[0].length;return parseInt(G[0],10)},$6a=function(){};
$6a.prototype.ambiguousYear=!1;var pIv;
pIv={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 YRG={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}"]};
YRG={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 AZs=function(){var G={type:"unit",style:"narrow"};this.listType_=G&&G.type?G.type:"conjunction";this.listStyle_=G&&G.style?G.style:"long";this.listSymbols_=YRG;G=0;switch(this.listStyle_){case "short":G=1;break;case "narrow":G=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[G];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[G];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=
this.listSymbols_.AND_END[G];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[G];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[G];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=this.listSymbols_.OR_END[G];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[G],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[G],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[G],this.listEndPattern_=this.listSymbols_.UNIT_END[G]}};
AZs.prototype.format=function(G){return d6w(this,G)};
var d6w=function(G,B){var F=B.length;switch(F){case 0:return"";case 1:return String(B[0]);case 2:return G.listTwoPattern_.replace("{0}",String(B[0])).replace("{1}",String(B[1]))}for(var D=G.listStartPattern_.replace("{0}",String(B[0])).replace("{1}",String(B[1])),u=2;u<F-1;++u)D=G.listMiddlePattern_.replace("{0}",D).replace("{1}",String(B[u]));return G.listEndPattern_.replace("{0}",D).replace("{1}",String(B[F-1]))};var JZw={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"},cZt=JZw,TeL=JZw;TeL=cZt=JZw;var f$w,kC,e7,bYU,OV,I$G;
_.W2=function(G,B,F,D){var u;if(u=B){a:if(B&&B.length===3){for(u=0;u<3;u++){var R=B[u];if(R<"A"||R>"Z"&&R<"a"||R>"z"){u=!1;break a}}u=!0}else u=!1;u=!u}if(u)throw new TypeError("ge");this.intlCurrencyCode_=B?B.toUpperCase():null;this.currencyStyle_=F||0;this.overrideNumberFormatSymbols_=D||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_=kC(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof G==="number")switch(G){case 1:OV(this,kC(this).DECIMAL_PATTERN);break;case 2:OV(this,kC(this).SCIENTIFIC_PATTERN);break;case 3:OV(this,kC(this).PERCENT_PATTERN);break;case 4:G=kC(this).CURRENCY_PATTERN;B=["0"];if(F=
a3[e7(this)]){F=F[0]&7;if(F>0)for(B.push("."),D=0;D<F;D++)B.push("0");G=G.replace(/0.00/g,B.join(""))}OV(this,G);break;case 5:I$G(this,1);break;case 6:I$G(this,2);break;default:throw Error("je");}else OV(this,G)};
f$w=!1;kC=function(G){return G.overrideNumberFormatSymbols_||(f$w?TeL:cZt)};
e7=function(G){return G.intlCurrencyCode_||kC(G).DEF_CURRENCY_CODE};
bYU=function(G,B){if(B>308)throw Error("ie`"+B);G.maximumFractionDigits_=B;return G};
OV=function(G,B){var F=[0];G.positivePrefix_=tos(G,B,F);for(var D=F[0],u=-1,R=0,N=0,y=0,U=-1,q=B.length,h=!0;F[0]<q&&h;F[0]++)switch(B.charAt(F[0])){case "#":N>0?y++:R++;U>=0&&u<0&&U++;break;case "0":if(y>0)throw Error("pe`"+B);N++;U>=0&&u<0&&U++;break;case ",":U>0&&G.groupingArray_.push(U);U=0;break;case ".":if(u>=0)throw Error("qe`"+B);u=R+N+y;break;case "E":if(G.useExponentialNotation_)throw Error("re`"+B);G.useExponentialNotation_=!0;G.minExponentDigits_=0;F[0]+1<q&&B.charAt(F[0]+1)=="+"&&(F[0]++,
G.useSignForPositiveExponent_=!0);for(;F[0]+1<q&&B.charAt(F[0]+1)=="0";)F[0]++,G.minExponentDigits_++;if(R+N<1||G.minExponentDigits_<1)throw Error("se`"+B);h=!1;break;default:F[0]--,h=!1}N==0&&R>0&&u>=0&&(N=u,N==0&&N++,y=R-N,R=N-1,N=1);if(u<0&&y>0||u>=0&&(u<R||u>R+N)||U==0)throw Error("te`"+B);y=R+N+y;G.maximumFractionDigits_=u>=0?y-u:0;u>=0&&(G.minimumFractionDigits_=R+N-u,G.minimumFractionDigits_<0&&(G.minimumFractionDigits_=0));G.minimumIntegerDigits_=(u>=0?u:y)-R;G.useExponentialNotation_&&(G.maximumIntegerDigits_=
R+G.minimumIntegerDigits_,G.maximumFractionDigits_==0&&G.minimumIntegerDigits_==0&&(G.minimumIntegerDigits_=1));G.groupingArray_.push(Math.max(0,U));G.decimalSeparatorAlwaysShown_=u==0||u==y;D=F[0]-D;G.positiveSuffix_=tos(G,B,F);F[0]<B.length&&B.charAt(F[0])==";"?(F[0]++,G.multiplier_!=1&&(G.negativePercentSignExpected_=!0),G.negativePrefix_=tos(G,B,F),F[0]+=D,G.negativeSuffix_=tos(G,B,F)):(G.negativePrefix_+=G.positivePrefix_,G.negativeSuffix_+=G.positiveSuffix_)};
I$G=function(G,B){G.compactStyle_=B;OV(G,kC(G).DECIMAL_PATTERN);G.minimumFractionDigits_=0;bYU(G,2);if(G.minimumFractionDigits_>0)throw Error("he");G.significantDigits_=2};
_.W2.prototype.parse=function(G,B){B=B||[0];if(this.compactStyle_!==0)throw Error("ke");G=G.replace(/ |\u202f/g,"\u00a0");var F=G.indexOf(this.positivePrefix_,B[0])==B[0],D=G.indexOf(this.negativePrefix_,B[0])==B[0];F&&D&&(this.positivePrefix_.length>this.negativePrefix_.length?D=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(F=!1));F?B[0]+=this.positivePrefix_.length:D&&(B[0]+=this.negativePrefix_.length);if(G.indexOf(kC(this).INFINITY,B[0])==B[0]){B[0]+=kC(this).INFINITY.length;var u=
Infinity}else{u=G;var R=!1,N=!1,y=!1,U=-1,q=1,h=kC(this).DECIMAL_SEP,K=kC(this).GROUP_SEP,a=kC(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");K=K.replace(/\u202f/g,"\u00a0");for(var m="";B[0]<u.length;B[0]++){var L=u.charAt(B[0]),W=ZAa(this,L);if(W>=0&&W<=9)m+=W,y=!0;else if(L==h.charAt(0)){if(R||N)break;m+=".";R=!0}else if(L==K.charAt(0)&&("\u00a0"!=K.charAt(0)||B[0]+1<u.length&&ZAa(this,u.charAt(B[0]+1))>=0)){if(R||N)break}else if(L==a.charAt(0)){if(N)break;m+="E";N=!0;U=B[0]}else if(L==
"+"||L=="-"){if(y&&U!=B[0]-1)break;m+=L}else if(this.multiplier_==1&&L==kC(this).PERCENT.charAt(0)){if(q!=1)break;q=100;if(y){B[0]++;break}}else if(this.multiplier_==1&&L==kC(this).PERMILL.charAt(0)){if(q!=1)break;q=1E3;if(y){B[0]++;break}}else break}this.multiplier_!=1&&(q=this.multiplier_);u=parseFloat(m)/q}if(F){if(G.indexOf(this.positiveSuffix_,B[0])!=B[0])return NaN;B[0]+=this.positiveSuffix_.length}else if(D){if(G.indexOf(this.negativeSuffix_,B[0])!=B[0])return NaN;B[0]+=this.negativeSuffix_.length}return D?
-u:u};
_.W2.prototype.format=function(G){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(G))return kC(this).NAN;var B=[];var F=G;if(this.compactStyle_==0)F=$C;else{F=Math.abs(F);var D=gFq(this,F<=1?0:SR7(F)).divisorBase;F=gFq(this,D+SR7(sQU(this,zk(F,-D)).intValue))}G=zk(G,-F.divisorBase);(D=G<0||G==0&&1/G<0)?F.negative_prefix?B.push(F.negative_prefix):(B.push(F.prefix),B.push(this.negativePrefix_)):(B.push(F.prefix),B.push(this.positivePrefix_));if(isFinite(G))if(G*=
D?-1:1,G*=this.multiplier_,this.useExponentialNotation_){var u=G;if(u==0)x6G(this,u,this.minimumIntegerDigits_,B),PNN(this,0,B);else{var R=Math.floor(Math.log(u)/Math.log(10)+2E-15);u=zk(u,-R);var N=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(N=R%this.maximumIntegerDigits_,N<0&&(N=this.maximumIntegerDigits_+N),u=zk(u,N),R-=N,N=1):this.minimumIntegerDigits_<1?(R++,u=zk(u,-1)):(R-=this.minimumIntegerDigits_-1,u=zk(u,this.minimumIntegerDigits_-
1));x6G(this,u,N,B);PNN(this,R,B)}}else x6G(this,G,this.minimumIntegerDigits_,B);else B.push(kC(this).INFINITY);D?F.negative_suffix?B.push(F.negative_suffix):(isFinite(G)&&B.push(F.suffix),B.push(this.negativeSuffix_)):(isFinite(G)&&B.push(F.suffix),B.push(this.positiveSuffix_));return B.join("")};
var sQU=function(G,B){var F=zk(B,G.maximumFractionDigits_);G.significantDigits_>0&&(F=GPU(F,G.significantDigits_,G.maximumFractionDigits_));F=Math.round(F);if(isFinite(F)){var D=Math.floor(zk(F,-G.maximumFractionDigits_));F=Math.floor(F-zk(D,G.maximumFractionDigits_));if(F<0||F>=zk(1,G.maximumFractionDigits_))D=Math.round(B),F=0}else D=B,F=0;return{intValue:D,fracValue:F}},x6G=function(G,B,F,D){if(G.minimumFractionDigits_>G.maximumFractionDigits_)throw Error("me");
D||(D=[]);B=sQU(G,B);var u=B.intValue,R=B.fracValue,N=G.minimumFractionDigits_>0||R>0||!1;B=G.minimumFractionDigits_;N&&(B=G.minimumFractionDigits_);for(var y="",U=u;U>1E20;)y="0"+y,U=Math.round(zk(U,-1));y=U+y;var q=kC(G).DECIMAL_SEP;U=kC(G).ZERO_DIGIT.codePointAt(0);var h=y.length,K=0;if(u>0||F>0){for(u=h;u<F;u++)D.push(String.fromCodePoint(U));if(G.groupingArray_.length>=2)for(F=1;F<G.groupingArray_.length;F++)K+=G.groupingArray_[F];F=h-K;if(F>0){u=G.groupingArray_;K=h=0;for(var a,m=kC(G).GROUP_SEP,
L=y.length,W=0;W<L;W++)if(D.push(String.fromCodePoint(U+Number(y.charAt(W)))),L-W>1)if(a=u[K],W<F){var e=F-W;(a===1||a>0&&e%a===1)&&D.push(m)}else K<u.length&&(W===F?K+=1:a===W-F-h+1&&(D.push(m),h+=a,K+=1))}else{F=y;y=G.groupingArray_;u=kC(G).GROUP_SEP;a=F.length;m=[];for(h=y.length-1;h>=0&&a>0;h--){K=y[h];for(L=0;L<K&&a-L-1>=0;L++)m.push(String.fromCodePoint(U+Number(F.charAt(a-L-1))));a-=K;a>0&&m.push(u)}D.push.apply(D,m.reverse())}}else N||D.push(String.fromCodePoint(U));(G.decimalSeparatorAlwaysShown_||
N)&&D.push(q);R=String(R);N=R.split("e+");N.length==2&&(R=String(GPU(parseFloat(N[0]),G.significantDigits_,1)),R=R.replace(".",""),R+=(0,_.$Pw)("0",parseInt(N[1],10)-R.length+1));G.maximumFractionDigits_+1>R.length&&(R="1"+(0,_.$Pw)("0",G.maximumFractionDigits_-R.length)+R);for(G=R.length;R.charAt(G-1)=="0"&&G>B+1;)G--;for(B=1;B<G;B++)D.push(String.fromCodePoint(U+Number(R.charAt(B))))},PNN=function(G,B,F){F.push(kC(G).EXP_SYMBOL);
B<0?(B=-B,F.push(kC(G).MINUS_SIGN)):G.useSignForPositiveExponent_&&F.push(kC(G).PLUS_SIGN);B=""+B;for(var D=kC(G).ZERO_DIGIT,u=B.length;u<G.minExponentDigits_;u++)F.push(D);G=D.codePointAt(0)-BCq;for(D=0;D<B.length;D++)F.push(String.fromCodePoint(G+B.codePointAt(D)))},ZAa=function(G,B){B=B.codePointAt(0);
if(48<=B&&B<58)return B-48;G=kC(G).ZERO_DIGIT.codePointAt(0);return G<=B&&B<G+10?B-G:-1},BCq="0".codePointAt(0),tos=function(G,B,F){for(var D="",u=!1,R=B.length;F[0]<R;F[0]++){var N=B.charAt(F[0]);
if(N=="'")F[0]+1<R&&B.charAt(F[0]+1)=="'"?(F[0]++,D+="'"):u=!u;else if(u)D+=N;else switch(N){case "#":case "0":case ",":case ".":case ";":return D;case "\u00a4":if(F[0]+1<R&&B.charAt(F[0]+1)=="\u00a4")F[0]++,D+=e7(G);else switch(G.currencyStyle_){case 0:N=e7(G);D+=N in a3?a3[N][1]:N;break;case 2:N=e7(G);var y=a3[N];D+=y?N==y[1]?N:N+" "+y[1]:N;break;case 1:N=e7(G),D+=N in a3?a3[N][2]:N}break;case "%":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("ne");if(G.negativePercentSignExpected_&&
G.multiplier_!=100)throw Error("oe");G.multiplier_=100;G.negativePercentSignExpected_=!1;D+=kC(G).PERCENT;break;case "\u2030":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("ne");if(G.negativePercentSignExpected_&&G.multiplier_!=1E3)throw Error("oe");G.multiplier_=1E3;G.negativePercentSignExpected_=!1;D+=kC(G).PERMILL;break;default:D+=N}}return D},$C={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},gFq=function(G,B){G=G.compactStyle_==1?Ko.COMPACT_DECIMAL_SHORT_PATTERN:Ko.COMPACT_DECIMAL_LONG_PATTERN;G==null&&(G=Ko.COMPACT_DECIMAL_SHORT_PATTERN);if(B<3)return $C;B=Math.min(14,B);var F=G[zk(1,B)];for(--B;!F&&B>=3;)F=G[zk(1,B)],B--;if(!F)return $C;F=F.other;var D=G="",u=F.indexOf(";");u>=0&&(F=F.substring(0,u),u=F.substring(u+1))&&(D=/([^0]*)(0+)(.*)/.exec(u),G=D[1],D=D[3]);return F&&F!="0"?(F=/([^0]*)(0+)(.*)/.exec(F))?{divisorBase:B+
1-(F[2].length-1),negative_prefix:G,negative_suffix:D,prefix:F[1],suffix:F[3]}:$C:$C},SR7=function(G){if(!isFinite(G))return G>0?G:0;
for(var B=0;(G/=10)>=1;)B++;return B},zk=function(G,B){if(!G||!isFinite(G)||B==0)return G;
G=String(G).split("e");return parseFloat(G[0]+"e"+(parseInt(G[1]||0,10)+B))},ihq=function(G,B){return G&&isFinite(G)?zk(Math.round(zk(G,B)),-B):G},GPU=function(G,B,F){if(!G)return G;
B=B-SR7(G)-1;return B<-F?ihq(G,-F):ihq(G,B)};var FR8,Djv=FR8=FR8=N2g;var ujy=function(G,B){var F=G|0;if(void 0===B){B=Math;var D=B.min,u=G+"",R=u.indexOf(".");B=D.call(B,R===-1?0:u.length-R-1,3)}D=Math.pow(10,B);G={v:B,f:(G*D|0)%D};return F==1&&G.v==0?"one":"other"},r8=ujy;
r8=ujy;var NC7=function(G){this.JSC$11773_pattern_=G;this.parsedPattern_=this.literals_=this.initialLiterals_=null;G=cZt;var B=Ko;if(Rat!==G||w_U!==B)Rat=G,w_U=B,CRT=new _.W2(1);this.numberFormatter_=CRT},Rat=null,w_U=null,CRT=null,yta=RegExp("'([{}#].*?)'","g"),nPN=RegExp("''","g");
NC7.prototype.format=function(G){if(this.JSC$11773_pattern_){this.initialLiterals_=[];var B=lMN(this,this.JSC$11773_pattern_);this.parsedPattern_=UjG(this,B);this.JSC$11773_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.II(this.initialLiterals_),B=[],qYt(this,this.parsedPattern_,G,!1,B),G=B.join("");this.literals_.length>0;)G=G.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else G="";return G};
var qYt=function(G,B,F,D,u){for(var R=0;R<B.length;R++)switch(B[R].type){case 4:u.push(B[R].value);break;case 3:var N=B[R].value;var y=G,U=u,q=F[N];q===void 0?U.push("Undefined parameter - "+N):(y.literals_.push(q),U.push(y.buildPlaceholder_(y.literals_)));break;case 2:N=B[R].value;y=G;U=F;q=D;var h=u,K=N.argumentIndex;U[K]===void 0?h.push("Undefined parameter - "+K):(K=N[U[K]],K===void 0&&(K=N.other),qYt(y,K,U,q,h));break;case 0:N=B[R].value;EPq(G,N,F,r8,D,u);break;case 1:N=B[R].value,EPq(G,N,F,
Djv,D,u)}},EPq=function(G,B,F,D,u,R){var N=B.argumentIndex,y=B.argumentOffset,U=+F[N];
isNaN(U)?R.push("Undefined or invalid parameter - "+N):(y=U-y,N=B[F[N]],N===void 0&&(D=D(Math.abs(y)),N=B[D],N===void 0&&(N=B.other)),B=[],qYt(G,N,F,u,B),F=B.join(""),u?R.push(F):(G=G.numberFormatter_.format(y),R.push(F.replace(/#/g,G))))},lMN=function(G,B){var F=G.initialLiterals_,D=G.buildPlaceholder_.bind(G);
B=B.replace(nPN,function(){F.push("'");return D(F)});
return B=B.replace(yta,function(u,R){F.push(R);return D(F)})},haG=function(G){var B=0,F=[],D=[],u=/[{}]/g;
u.lastIndex=0;for(var R;R=u.exec(G);){var N=R.index;R[0]=="}"?(F.pop(),F.length==0&&(R={type:1},R.value=G.substring(B,N),D.push(R),B=N+1)):(F.length==0&&(B=G.substring(B,N),B!=""&&D.push({type:0,value:B}),B=N+1),F.push("{"))}G=G.substring(B);G!=""&&D.push({type:0,value:G});return D},KRq=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,aMN=/^\s*(\w+)\s*,\s*selectordinal\s*,/,mj7=/^\s*(\w+)\s*,\s*select\s*,/,UjG=function(G,B){var F=[];
B=haG(B);for(var D=0;D<B.length;D++){var u={};if(0==B[D].type)u.type=4,u.value=B[D].value;else if(1==B[D].type){var R=B[D].value;switch(KRq.test(R)?0:aMN.test(R)?1:mj7.test(R)?2:/^\s*\w+\s*/.test(R)?3:5){case 2:u.type=2;u.value=X_t(G,B[D].value);break;case 0:u.type=0;u.value=QxU(G,B[D].value);break;case 1:u.type=1;u.value=jxt(G,B[D].value);break;case 3:u.type=3,u.value=B[D].value}}F.push(u)}return F},X_t=function(G,B){var F="";
B=B.replace(mj7,function(y,U){F=U;return""});
var D={};D.argumentIndex=F;B=haG(B);for(var u=0;u<B.length;){var R=B[u].value;u++;var N=void 0;1==B[u].type&&(N=UjG(G,B[u].value));D[R.replace(/\s/g,"")]=N;u++}return D},QxU=function(G,B){var F="",D=0;
B=B.replace(KRq,function(U,q,h){F=q;h&&(D=parseInt(h,10));return""});
var u={};u.argumentIndex=F;u.argumentOffset=D;B=haG(B);for(var R=0;R<B.length;){var N=B[R].value;R++;var y=void 0;1==B[R].type&&(y=UjG(G,B[R].value));u[N.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=y;R++}return u},jxt=function(G,B){var F="";
B=B.replace(aMN,function(y,U){F=U;return""});
var D={};D.argumentIndex=F;D.argumentOffset=0;B=haG(B);for(var u=0;u<B.length;){var R=B[u].value;u++;var N=void 0;1==B[u].type&&(N=UjG(G,B[u].value));D[R.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=N;u++}return D};
NC7.prototype.buildPlaceholder_=function(G){return"\ufddf_"+(G.length-1).toString(10)+"_"};var z_Q=function(){var G={style:1},B=LRv;this.style_=(G==null?void 0:G.style)||0;this.durationSymbols_=B||pIv},rtN=function(G,B){switch(B){default:case "years":return G.durationSymbols_.YEAR;
case "months":return G.durationSymbols_.MONTH;case "weeks":return G.durationSymbols_.WEEK;case "days":return G.durationSymbols_.DAY;case "hours":return G.durationSymbols_.HOUR;case "minutes":return G.durationSymbols_.MINUTE;case "seconds":return G.durationSymbols_.SECOND}},bP=function(G,B,F){a:{F=rtN(G,F);
switch(G.style_){case 1:if(F.LONG!=void 0){G=F.LONG;break a}case 2:if(F.NARROW!=void 0){G=F.NARROW;break a}default:G=F.SHORT;break a}G=void 0}return G?(new NC7("{DURATION_VALUE,plural,"+G+"}")).format({DURATION_VALUE:B}):""};
z_Q.prototype.format=function(G){var B=[],F=G.years,D=G.months,u=G.weeks,R=G.days,N=G.hours,y=G.minutes;G=G.seconds;F!=null&&B.push(bP(this,F,"years"));D!=null&&B.push(bP(this,D,"months"));u!=null&&B.push(bP(this,u,"weeks"));R!=null&&B.push(bP(this,R,"days"));N!=null&&B.push(bP(this,N,"hours"));y!=null&&B.push(bP(this,y,"minutes"));G!=null&&B.push(bP(this,G,"seconds"));return(new AZs).format(B)};var WRy;
WRy={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 thJ=function(){this.rdtfSymbols_=HhG||WRy;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
thJ.prototype.format=function(G,B){a:{B=kPw(this,B);switch(this.style_){case 2:if(B.NARROW!=void 0){B=B.NARROW;break a}case 1:if(B.SHORT!=void 0){B=B.SHORT;break a}default:B=B.LONG;break a}B=void 0}if(!this.alwaysNumeric_&&B&&B.R&&B.R[""+G])G=B.R[""+G];else if(B){var F=Math.abs(G);G=(new NC7("{N,plural,"+(G>0||G==0&&1/G==Infinity?B.F:B.P)+"}")).format({N:F})}else G="";return G};
var kPw=function(G,B){switch(B){default:case 0:return G.rdtfSymbols_.YEAR;case 1:return G.rdtfSymbols_.QUARTER;case 2:return G.rdtfSymbols_.MONTH;case 3:return G.rdtfSymbols_.WEEK;case 4:return G.rdtfSymbols_.DAY;case 5:return G.rdtfSymbols_.HOUR;case 6:return G.rdtfSymbols_.MINUTE;case 7:return G.rdtfSymbols_.SECOND}};yhg.prototype.clone=function(){return new yhg(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
yhg.prototype.equals=function(G){return this.x0==G.x0&&this.y0==G.y0&&this.x1==G.x1&&this.y1==G.y1&&this.x2==G.x2&&this.y2==G.y2&&this.x3==G.x3&&this.y3==G.y3};
var Ohw=function(G,B){if(B==0)return G.x0;if(B==1)return G.x3;var F=Oh(G.x0,G.x1,B),D=Oh(G.x1,G.x2,B);G=Oh(G.x2,G.x3,B);F=Oh(F,D,B);D=Oh(D,G,B);return Oh(F,D,B)},eaN=function(G,B){var F=(B-G.x0)/(G.x3-G.x0);
if(F<=0)return 0;if(F>=1)return 1;for(var D=0,u=1,R=0,N=0;N<8;N++){R=Ohw(G,F);var y=(Ohw(G,F+1E-6)-R)/1E-6;if(Math.abs(R-B)<1E-6)return F;if(Math.abs(y)<1E-6)break;else R<B?D=F:u=F,F-=(R-B)/y}for(N=0;Math.abs(R-B)>1E-6&&N<8;N++)R<B?(D=F,F=(F+u)/2):(u=F,F=(F+D)/2),R=Ohw(G,F);return F};var VF;_.IC(NY,_.W1);var lgs={},nuc=0,$js=function(G,B){var F=Ri(G);lST(B,function(D,u){Array.isArray(D)||(D=[D]);_.dn(D,function(R){R=F.JSC$9638_createDom("INPUT",{type:"hidden",name:u,value:R});G.appendChild(R)})})};
_.w=NY.prototype;_.w.JSC$11795_form_=null;_.w.JSC$11795_iframe_=null;_.w.iframeName_=null;_.w.nextIframeId_=0;_.w.JSC$11795_active_=!1;_.w.complete_=!1;_.w.success_=!1;_.w.lastContent_=null;_.w.JSC$11795_lastErrorCode_=0;_.w.iframeDisposalTimer_=null;
_.w.send=function(G,B,F,D){if(this.JSC$11795_active_)throw Error("ue");G=new _.ea(G);B=B?B.toUpperCase():"GET";F&&_.St(G);VF||(VF=_.Qy("FORM"),VF.acceptCharset="utf-8",F=VF.style,F.position="absolute",F.visibility="hidden",F.top=F.left="-10px",F.width=F.height="10px",F.overflow="hidden",document.body.appendChild(VF));this.JSC$11795_form_=VF;B=="GET"&&$js(this.JSC$11795_form_,G.JSC$10342_queryData_);D&&$js(this.JSC$11795_form_,D);F=G.toString();F=O8J(F);D=this.JSC$11795_form_;F=_.PX(TX(F));F!==void 0&&
(D.action=F);this.JSC$11795_form_.method=B;zaT(this);bhq(this)};
_.w.abort=function(G){if(this.JSC$11795_active_){var B=vV(this);if(B)if(l1(B))B.removeAllListeners(void 0);else if(B=UC(B)){var F=0,D;for(D in B.listeners)for(var u=B.listeners[D].concat(),R=0;R<u.length;++R)Nh(u[R])&&++F}this.success_=this.JSC$11795_active_=this.complete_=!1;this.JSC$11795_lastErrorCode_=G||7;this.dispatchEvent("abort");V3P(this)}};
_.w.disposeInternal=function(){this.JSC$11795_active_&&this.abort();NY.superClass_.disposeInternal.call(this);this.JSC$11795_iframe_&&vPP(this);bhq(this);this.JSC$11795_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11795_form_=null;this.JSC$11795_lastErrorCode_=0;delete lgs[this.JSC$11793_name_]};
_.w.isComplete=function(){return this.complete_};
_.w.isSuccess=function(){return this.success_};
_.w.isActive=function(){return this.JSC$11795_active_};
_.w.getResponseText=function(){return this.lastContent_};
_.w.getLastError=function(){return _.tRL(this.JSC$11795_lastErrorCode_)};
var zaT=function(G){G.JSC$11795_active_=!0;G.complete_=!1;G.JSC$11795_lastErrorCode_=0;G.iframeName_=G.JSC$11793_name_+"_"+(G.nextIframeId_++).toString(36);G.JSC$11795_iframe_=Ri(G.JSC$11795_form_).JSC$9638_createDom("IFRAME",{name:G.iframeName_,id:G.iframeName_});var B=G.JSC$11795_iframe_.style;B.visibility="hidden";B.width=B.height="10px";B.display="none";_.Bz?B.marginTop=B.marginLeft="-10px":(B.position="absolute",B.top=B.left="-10px");Ri(G.JSC$11795_form_).JSC$9636_document_.body.appendChild(G.JSC$11795_iframe_);
B=G.iframeName_+"_inner";var F=ZTN(G.JSC$11795_iframe_);if(document.baseURI){var D=Z$(B);D='<head><base href="'+Z$(document.baseURI)+'"></head><body><iframe id="'+D+'" name="'+D+'"></iframe>';D=i5(D)}else D=Z$(B),D=i5('<body><iframe id="'+D+'" name="'+D+'"></iframe>');F.write(DK(D));_.H1(F.getElementById(B),"load",G.onIframeLoaded_,!1,G);D=iz("TEXTAREA",G.JSC$11795_form_);for(var u=0,R=D.length;u<R;u++){var N=D[u].value;G_w(D[u])!=N&&(_.Ol(D[u],N),D[u].value=N)}D=F.importNode(G.JSC$11795_form_,!0);
D.target=B;D.action=G.JSC$11795_form_.action;F.body.appendChild(D);u=iz("SELECT",G.JSC$11795_form_);R=iz("SELECT",D);N=0;for(var y=u.length;N<y;N++)for(var U=iz("OPTION",u[N]),q=iz("OPTION",R[N]),h=0,K=U.length;h<K;h++)q[h].selected=U[h].selected;u=iz("INPUT",G.JSC$11795_form_);R=iz("INPUT",D);N=0;for(y=u.length;N<y;N++)if(u[N].type=="file"&&u[N].value!=R[N].value){G.JSC$11795_form_.target=B;D=G.JSC$11795_form_;break}try{G.errorHandled_=!1,D.submit(),F.close(),_.ih&&setTimeout(G.testForFirefoxSilentError_.bind(G),
250)}catch(a){_.qX(F.getElementById(B),"load",G.onIframeLoaded_,!1,G),F.close(),o3(G,2)}};
NY.prototype.onIframeLoaded_=function(){_.qX(vV(this),"load",this.onIframeLoaded_,!1,this);try{var G=this.JSC$11795_iframe_?ZTN(vV(this)):null;this.complete_=!0;this.JSC$11795_active_=!1;try{var B=G.body;this.lastContent_=B.textContent||B.innerText}catch(u){var F=1}var D;F||typeof this.errorChecker_!="function"||(D=this.errorChecker_(G))&&(F=4);F?o3(this,F):(this.success_=!0,this.JSC$11795_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),V3P(this))}catch(u){o3(this,1)}};
var o3=function(G,B){G.errorHandled_||(G.success_=!1,G.JSC$11795_active_=!1,G.complete_=!0,G.JSC$11795_lastErrorCode_=B,G.dispatchEvent("complete"),G.dispatchEvent("error"),V3P(G),G.errorHandled_=!0)},V3P=function(G){vPP(G);
bhq(G);G.JSC$11795_form_=null;G.dispatchEvent("ready")},vPP=function(G){var B=G.JSC$11795_iframe_;
B&&(B.onreadystatechange=null,B.onload=null,B.onerror=null,G.iframesForDisposal_.push(B));G.iframeDisposalTimer_&&(clearTimeout(G.iframeDisposalTimer_),G.iframeDisposalTimer_=null);_.ih?G.iframeDisposalTimer_=setTimeout(G.disposeIframes_.bind(G),2E3):G.disposeIframes_();G.JSC$11795_iframe_=null;G.iframeName_=null};
NY.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var G=this.iframesForDisposal_.pop();_.B1(G)}};
var bhq=function(G){G.JSC$11795_form_&&G.JSC$11795_form_==VF&&_.rZ(G.JSC$11795_form_)},vV=function(G){return G.JSC$11795_iframe_?ZTN(G.JSC$11795_iframe_).getElementById(G.iframeName_+"_inner"):null};
NY.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11795_active_){var G=this.JSC$11795_iframe_?ZTN(vV(this)):null;G&&!xPM(G,"documentUri")?(_.qX(vV(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?o3(this,3):o3(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Mp=function(G){return G=="\r"||G=="\n"||G==" "||G=="\t"};_.yz.prototype.isInputValid=function(){return this.streamState_!=3};
_.yz.prototype.done=function(){return this.streamState_===2};
var po=function(G,B,F){G.streamState_=3;G.errorMessage_="The stream is broken @"+G.JSC$11797_pos_+"/"+F+". With input:\n"+B;throw Error(G.errorMessage_);};
_.yz.prototype.acceptsBinaryInput=function(){return!1};
_.yz.prototype.parse=function(G){function B(){for(;K<G.length;)if(_.Mp(G[K]))K++,R.JSC$11797_pos_++;else break;return K<U}
function F(){for(var m;;){m=G[K++];if(!m)break;R.JSC$11797_pos_++;switch(R.state_){case 0:m==="{"?R.state_=2:m==="["?R.state_=4:_.Mp(m)||po(R,G,K);continue;case 7:case 2:if(_.Mp(m))continue;if(R.state_===7)N.push(8);else if(m==="}"){u("{}");R.state_=D();continue}else N.push(3);m==='"'?R.state_=6:po(R,G,K);continue;case 8:case 3:if(_.Mp(m))continue;m===":"?(R.state_===3&&(N.push(3),R.depth_++),R.state_=1):m==="}"?(R.depth_--,u(),R.state_=D()):m===","?(R.state_===3&&N.push(3),R.state_=7):po(R,G,K);
continue;case 4:case 1:if(_.Mp(m))continue;if(R.state_===4)if(R.depth_++,R.state_=1,m==="]"){R.depth_--;if(R.depth_===0){R.state_=5;return}u("[]");R.state_=D();continue}else N.push(5);m==='"'?R.state_=6:m==="{"?R.state_=2:m==="["?R.state_=4:m==="t"?R.state_=9:m==="f"?R.state_=12:m==="n"?R.state_=16:m!=="-"&&("0123456789".indexOf(m)!==-1?R.state_=20:po(R,G,K));continue;case 5:if(m===",")N.push(5),R.state_=1,R.depth_===1&&(h=K);else if(m==="]"){R.depth_--;if(R.depth_===0)return;u();R.state_=D()}else if(_.Mp(m))continue;
else po(R,G,K);continue;case 6:var L=K;a:for(;;){for(;R.unicodeCount_>0;)if(m=G[K++],R.unicodeCount_===4?R.unicodeCount_=0:R.unicodeCount_++,!m)break a;if(m==='"'&&!R.slashed_){R.state_=D();break}if(m==="\\"&&!R.slashed_&&(R.slashed_=!0,m=G[K++],!m))break;if(R.slashed_)if(R.slashed_=!1,m==="u"&&(R.unicodeCount_=1),m=G[K++])continue;else break;y.lastIndex=K;m=y.exec(G);if(!m){K=G.length+1;break}K=m.index+1;m=G[m.index];if(!m)break}R.JSC$11797_pos_+=K-L;continue;case 9:if(!m)continue;m==="r"?R.state_=
10:po(R,G,K);continue;case 10:if(!m)continue;m==="u"?R.state_=11:po(R,G,K);continue;case 11:if(!m)continue;m==="e"?R.state_=D():po(R,G,K);continue;case 12:if(!m)continue;m==="a"?R.state_=13:po(R,G,K);continue;case 13:if(!m)continue;m==="l"?R.state_=14:po(R,G,K);continue;case 14:if(!m)continue;m==="s"?R.state_=15:po(R,G,K);continue;case 15:if(!m)continue;m==="e"?R.state_=D():po(R,G,K);continue;case 16:if(!m)continue;m==="u"?R.state_=17:po(R,G,K);continue;case 17:if(!m)continue;m==="l"?R.state_=18:
po(R,G,K);continue;case 18:if(!m)continue;m==="l"?R.state_=D():po(R,G,K);continue;case 19:m==="."?R.state_=20:po(R,G,K);continue;case 20:if("0123456789.eE+-".indexOf(m)!==-1)continue;else K--,R.JSC$11797_pos_--,R.state_=D();continue;default:po(R,G,K)}}}
function D(){var m=N.pop();return m!=null?m:1}
function u(m){R.depth_>1||(m||(m=h===-1?R.JSC$11797_buffer_+G.substring(q,K):G.substring(h,K)),R.deliverMessageAsRawString_?R.result_.push(m):R.result_.push(JSON.parse(m)),h=K)}
for(var R=this,N=R.stack_,y=R.stringInputPattern_,U=G.length,q=0,h=-1,K=0;K<U;)switch(R.streamState_){case 3:return po(R,G,K),null;case 2:return B()&&po(R,G,K),null;case 0:if(B()){var a=G[K++];R.JSC$11797_pos_++;if(a==="["){R.streamState_=1;q=K;R.state_=4;continue}else po(R,G,K)}return null;case 1:return F(),R.depth_===0&&R.state_==5?(R.streamState_=2,R.JSC$11797_buffer_=G.substring(K)):R.JSC$11797_buffer_=h===-1?R.JSC$11797_buffer_+G.substring(q):G.substring(h),R.result_.length>0?(a=R.result_,R.result_=
[],a):null}return null};_.IC(_.nr,hP);lh.prototype.getValue=function(){return this.JSC$11804_value_};
lh.prototype.clone=function(){return new lh(this.JSC$11804_key_,this.JSC$11804_value_)};var YC=function(G){this.nodes_=[];if(G)a:{if(G instanceof YC){var B=G.getKeys();G=G.getValues();if(this.getCount()<=0){for(var F=this.nodes_,D=0;D<B.length;D++)F.push(new lh(B[D],G[D]));break a}}else B=_.UK.getKeys(G),G=_.UK.getValues(G);for(F=0;F<B.length;F++)this.insert(B[F],G[F])}};
_.w=YC.prototype;_.w.insert=function(G,B){var F=this.nodes_;F.push(new lh(G,B));G=F.length-1;B=this.nodes_;for(F=B[G];G>0;){var D=G-1>>1;if(B[D].JSC$11804_key_>F.JSC$11804_key_)B[G]=B[D],G=D;else break}B[G]=F};
_.w.remove=function(){var G=this.nodes_,B=G.length,F=G[0];if(!(B<=0)){if(B==1)G.length=0;else{G[0]=G.pop();G=0;B=this.nodes_;for(var D=B.length,u=B[G];G<D>>1;){var R=G*2+1,N=G*2+2;R=N<D&&B[N].JSC$11804_key_<B[R].JSC$11804_key_?N:R;if(B[R].JSC$11804_key_>u.JSC$11804_key_)break;B[G]=B[R];G=R}B[G]=u}return F.getValue()}};
_.w.peek=function(){var G=this.nodes_;if(G.length!=0)return G[0].getValue()};
_.w.getValues=function(){for(var G=this.nodes_,B=[],F=G.length,D=0;D<F;D++)B.push(G[D].getValue());return B};
_.w.getKeys=function(){for(var G=this.nodes_,B=[],F=G.length,D=0;D<F;D++)B.push(G[D].JSC$11804_key_);return B};
_.w.containsValue=function(G){return this.nodes_.some(function(B){return B.getValue()==G})};
_.w.containsKey=function(G){return this.nodes_.some(function(B){return B.JSC$11804_key_==G})};
_.w.clone=function(){return new YC(this)};
_.w.getCount=function(){return this.nodes_.length};
_.w.isEmpty=function(){return this.nodes_.length===0};
_.w.clear=function(){this.nodes_.length=0};_.w=_.U1.prototype;_.w.getCount=function(){return this.size};
_.w.getValues=function(){AD(this);for(var G=[],B=0;B<this.JSC$11810_keys_.length;B++)G.push(this.JSC$11810_map_[this.JSC$11810_keys_[B]]);return G};
_.w.getKeys=function(){AD(this);return this.JSC$11810_keys_.concat()};
_.w.containsKey=function(G){return this.has(G)};
_.w.has=function(G){return du(this.JSC$11810_map_,G)};
_.w.containsValue=function(G){for(var B=0;B<this.JSC$11810_keys_.length;B++){var F=this.JSC$11810_keys_[B];if(du(this.JSC$11810_map_,F)&&this.JSC$11810_map_[F]==G)return!0}return!1};
_.w.equals=function(G,B){if(this===G)return!0;if(this.size!=G.getCount())return!1;B=B||oPP;AD(this);for(var F,D=0;F=this.JSC$11810_keys_[D];D++)if(!B(this.get(F),G.get(F)))return!1;return!0};
var oPP=function(G,B){return G===B};
_.U1.prototype.isEmpty=function(){return this.size==0};
_.U1.prototype.clear=function(){this.JSC$11810_map_={};this.version_=this.size=this.JSC$11810_keys_.length=0};
_.U1.prototype.remove=function(G){return this.delete(G)};
_.U1.prototype.delete=function(G){return du(this.JSC$11810_map_,G)?(delete this.JSC$11810_map_[G],--this.size,this.version_++,this.JSC$11810_keys_.length>2*this.size&&AD(this),!0):!1};
var AD=function(G){if(G.size!=G.JSC$11810_keys_.length){for(var B=0,F=0;B<G.JSC$11810_keys_.length;){var D=G.JSC$11810_keys_[B];du(G.JSC$11810_map_,D)&&(G.JSC$11810_keys_[F++]=D);B++}G.JSC$11810_keys_.length=F}if(G.size!=G.JSC$11810_keys_.length){B={};for(D=F=0;F<G.JSC$11810_keys_.length;){var u=G.JSC$11810_keys_[F];du(B,u)||(G.JSC$11810_keys_[D++]=u,B[u]=1);F++}G.JSC$11810_keys_.length=D}};
_.w=_.U1.prototype;_.w.get=function(G,B){return du(this.JSC$11810_map_,G)?this.JSC$11810_map_[G]:B};
_.w.set=function(G,B){du(this.JSC$11810_map_,G)||(this.size+=1,this.JSC$11810_keys_.push(G),this.version_++);this.JSC$11810_map_[G]=B};
_.w.addAll=function(G){if(G instanceof _.U1)for(var B=G.getKeys(),F=0;F<B.length;F++)this.set(B[F],G.get(B[F]));else for(B in G)this.set(B,G[B])};
_.w.forEach=function(G,B){for(var F=this.getKeys(),D=0;D<F.length;D++){var u=F[D],R=this.get(u);G.call(B,R,u,this)}};
_.w.clone=function(){return new _.U1(this)};
_.w.transpose=function(){for(var G=new _.U1,B=0;B<this.JSC$11810_keys_.length;B++){var F=this.JSC$11810_keys_[B];G.set(this.JSC$11810_map_[F],F)}return G};
_.w.keys=function(){return EIG(this.__iterator__(!0)).toEs6()};
_.w.values=function(){return EIG(this.__iterator__(!1)).toEs6()};
_.w.entries=function(){var G=this;return VFt(this.keys(),function(B){return[B,G.get(B)]})};
_.w.__iterator__=function(G){AD(this);var B=0,F=this.version_,D=this,u=new dP;u.next=function(){if(F!=D.version_)throw Error("ve");if(B>=D.JSC$11810_keys_.length)return JE;var R=D.JSC$11810_keys_[B++];return cf(G?R:D.JSC$11810_map_[R])};
return u};
var du=function(G,B){return Object.prototype.hasOwnProperty.call(G,B)};var M3y=function(G,B){if(B=G.JSC$11813_map_.get(B))B.remove(),G.insert_(B);return B};
_.w=qCU.prototype;_.w.get=function(G,B){return(G=M3y(this,G))?G.value:B};
_.w.set=function(G,B){var F=M3y(this,G);F?F.value=B:(F=new UX6(G,B),this.JSC$11813_map_.set(G,F),this.insert_(F))};
_.w.peek=function(){return this.JSC$11813_head_.next.value};
_.w.shift=function(){return p_w(this,this.JSC$11813_head_.next)};
_.w.pop=function(){return p_w(this,this.JSC$11813_head_.prev)};
_.w.remove=function(G){return(G=this.JSC$11813_map_.get(G))?(this.removeNode(G),!0):!1};
_.w.removeNode=function(G){G.remove();this.JSC$11813_map_.remove(G.key)};
_.w.getCount=function(){return this.JSC$11813_map_.getCount()};
_.w.isEmpty=function(){return this.JSC$11813_map_.isEmpty()};
_.w.getKeys=function(){return this.map(function(G,B){return B})};
_.w.getValues=function(){return this.map(function(G){return G})};
_.w.contains=function(G){return this.some(function(B){return B==G})};
_.w.containsKey=function(G){return this.JSC$11813_map_.containsKey(G)};
_.w.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11813_head_.prev)};
_.w.forEach=function(G,B){for(var F=this.JSC$11813_head_.next;F!=this.JSC$11813_head_;F=F.next)G.call(B,F.value,F.key,this)};
_.w.map=function(G,B){for(var F=[],D=this.JSC$11813_head_.next;D!=this.JSC$11813_head_;D=D.next)F.push(G.call(B,D.value,D.key,this));return F};
_.w.some=function(G,B){for(var F=this.JSC$11813_head_.next;F!=this.JSC$11813_head_;F=F.next)if(G.call(B,F.value,F.key,this))return!0;return!1};
_.w.every=function(G,B){for(var F=this.JSC$11813_head_.next;F!=this.JSC$11813_head_;F=F.next)if(!G.call(B,F.value,F.key,this))return!1;return!0};
_.w.insert_=function(G){G.next=this.JSC$11813_head_.next;G.prev=this.JSC$11813_head_;this.JSC$11813_head_.next=G;for(G.next.prev=G;this.getCount()>100;)this.removeNode(this.JSC$11813_head_.prev)};
var p_w=function(G,B){G.JSC$11813_head_!=B&&G.removeNode(B);return B.value},UX6=function(G,B){this.key=G;
this.value=B};
UX6.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var YYw=function(){YC.apply(this,arguments)};
_.r(YYw,YC);YYw.prototype.enqueue=function(G,B){this.insert(G,B)};var AtU=function(){var G=Error();G.name="SecurityError";throw G;},ImL=function(){return{get opener(){return null},
get closed(){return!0},get location(){AtU()},get document(){AtU()},postMessage:function(){},
close:function(){},
focus:function(){}}};var EuQ={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 agM={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 djw={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(agM).join("|");var JtP=function(){function G(y){y.substr(-1)!==";"&&(y+=";");return N(y)}
for(var B=Object.keys(djw).sort(KKQ),F=Object.keys(agM).sort(KKQ),D=0,u=0;D<F.length;D++)B[u]===F[D]?(F[D]+=";?",u++):F[D]+=";";var R=new RegExp("&(?:"+F.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),N=mXs();return function(y){return String(y).replace(R,G)}}();/*

 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 cts={};var TCw=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"),IMv=/[\\&]/,fMq=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),t3q=RegExp('[&<>"]',"g"),Zh7=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),gPy=function(G){return G.charCodeAt(0)===92?G.charAt(1):JtP(G)},SYG=function(G){return IMv.test(G)?G.replace(fMq,gPy):G},sxw=function(G){try{var B,F="";
if(typeof u!=="string"){var D=u;var u=";/?:@&=+$,-_.!~*'()#"}typeof D==="undefined"&&(D=!0);var R,N=cts[u];if(N)var y=N;else{N=cts[u]=[];for(R=0;R<128;R++){var U=String.fromCharCode(R);/^[0-9a-z]$/i.test(U)?N.push(U):N.push("%"+("0"+R.toString(16).toUpperCase()).slice(-2))}for(R=0;R<u.length;R++)N[u.charCodeAt(R)]=u[R];y=N}var q=0;for(B=G.length;q<B;q++){var h=G.charCodeAt(q);if(D&&h===37&&q+2<B&&/^[0-9a-f]{2}$/i.test(G.slice(q+1,q+3)))F+=G.slice(q,q+3),q+=2;else if(h<128)F+=y[h];else if(h>=55296&&
h<=57343){if(h>=55296&&h<=56319&&q+1<B){var K=G.charCodeAt(q+1);if(K>=56320&&K<=57343){F+=encodeURIComponent(G[q]+G[q+1]);q++;continue}}F+="%EF%BF%BD"}else F+=encodeURIComponent(G[q])}return F}catch(a){return G}},xjP=function(G){switch(G){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return G}},JD=function(G,B){return t3q.test(G)?B?G.replace(Zh7,xjP):G.replace(t3q,xjP):G};/*

 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 cV;if(String.fromCodePoint)cV=function(G){try{return String.fromCodePoint(G)}catch(B){if(B instanceof RangeError)return String.fromCharCode(65533);throw B;}};
else{var PRL=String.fromCharCode,GfN=Math.floor;cV=function(){var G=[],B=-1,F=arguments.length;if(!F)return"";for(var D="";++B<F;){var u=Number(arguments[B]);if(!isFinite(u)||u<0||u>1114111||GfN(u)!==u)return String.fromCharCode(65533);if(u<=65535)G.push(u);else{u-=65536;var R=(u>>10)+55296;u=u%1024+56320;G.push(R,u)}if(B+1===F||G.length>16384)D+=PRL.apply(null,G),G.length=0}return D}};var BNL=function(G){this.root=this.current=G;this.entering=!0};
BNL.prototype.next=function(){var G=this.current,B=this.entering;if(G===null)return null;a:switch(G._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 F=!0;break a;default:F=!1}B&&F?G._firstChild?(this.current=G._firstChild,this.entering=!0):this.entering=!1:G===this.root?this.current=null:G._next===null?(this.current=
G._parent,this.entering=!1):(this.current=G._next,this.entering=!0);return{entering:B,node:G}};
var Kr=function(G,B){this._type=G;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=B;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Kr.prototype.appendChild=function(G){G.unlink();G._parent=this;this._lastChild?(this._lastChild._next=G,G._prev=this._lastChild):this._firstChild=G;this._lastChild=G};
Kr.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var izt=function(G,B){B.unlink();B._next=G._next;B._next&&(B._next._prev=B);B._prev=G;G._next=B;B._parent=G._parent;B._next||(B._parent._lastChild=B)};
Kr.prototype.insertBefore=function(G){G.unlink();G._prev=this._prev;G._prev&&(G._prev._next=G);G._next=this;this._prev=G;G._parent=this._parent;G._prev||(G._parent._firstChild=G)};
_.ZN.Object.defineProperties(Kr.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(G){this._literal=G}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(G){this._destination=G}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(G){this._title=G}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(G){this._info=G}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(G){this._level=G}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(G){this._listData.type=G}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(G){this._listData.tight=G}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(G){this._listData.start=G}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(G){this._onEnter=G}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(G){this._onExit=G}}});var Xpz=/[ \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,
Qts={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 FHG=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]/),
Dks=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),upv=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),R97=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),w0L=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Cvy=/`+/,NNG=/^`+/,ym8=/\.\.\./g,nLT=/--+/g,lbt=/^<([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])?)*)>/,
Ukw=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,qdq=/^ *(?:\n *)?/,ELa=/^[ \t\n\x0b\x0c\x0d]/,h9v=/[ \t\n\x0b\x0c\x0d]+/g,KHt=/^\s/,abt=/ *$/,mka=/^ */,X07=/^ *(?:\n|$)/,QGs=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),jGs=/^[^\n`\[\]\\!<&*_'"]+/m,Tk=function(G){var B=new Kr("text");B._literal=G;return B},I3=function(G){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=G||{}};
I3.prototype.match=function(G){G=G.exec(this.subject.slice(this.pos));if(G===null)return null;this.pos+=G.index+G[0].length;return G[0]};
I3.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var fo=function(G){G.match(qdq);return!0},LHw=function(G,B,F){var D=0;
var u=G.pos;if(B===39||B===34)D++,G.pos++;else for(;G.peek()===B;)D++,G.pos++;if(D===0)D=null;else{var R=u===0?"\n":G.subject.charAt(u-1);var N=G.peek();N=N===-1?"\n":cV(N);var y=KHt.test(N);N=FHG.test(N);var U=KHt.test(R);var q=FHG.test(R);R=!y&&!(N&&!U&&!q);y=!U&&!(q&&!y&&!N);B===95?(U=R&&(!y||q),N=y&&(!R||N)):(U=B===39||B===34?R&&!y:R,N=y);G.pos=u;D={numdelims:D,can_open:U,can_close:N}}if(!D)return!1;u=D.numdelims;N=G.pos;G.pos+=u;N=B===39?"\u2019":B===34?"\u201c":G.subject.slice(N,G.pos);N=Tk(N);
F.appendChild(N);G.delimiters={cc:B,numdelims:u,origdelims:u,node:N,previous:G.delimiters,next:null,can_open:D.can_open,can_close:D.can_close};G.delimiters.previous!==null&&(G.delimiters.previous.next=G.delimiters);return!0},rmU=function(G,B){B.previous!==null&&(B.previous.next=B.next);
B.next===null?G.delimiters=B.previous:B.next.previous=B.previous},WHt=function(G,B){var F,D,u=[],R=!1;
u[95]=B;u[42]=B;u[39]=B;u[34]=B;for(F=G.delimiters;F!==null&&F.previous!==B;)F=F.previous;for(;F!==null;){var N=F.cc;if(F.can_close){var y=F.previous;for(D=!1;y!==null&&y!==B&&y!==u[N];){R=(F.can_open||y.can_close)&&(y.origdelims+F.origdelims)%3===0;if(y.cc===F.cc&&y.can_open&&!R){D=!0;break}y=y.previous}var U=F;if(N===42||N===95)if(D){var q=F.numdelims>=2&&y.numdelims>=2?2:1;var h=y.node;var K=F.node;y.numdelims-=q;F.numdelims-=q;h._literal=h._literal.slice(0,h._literal.length-q);K._literal=K._literal.slice(0,
K._literal.length-q);var a=new Kr(q===1?"emph":"strong");for(q=h._next;q&&q!==K;){var m=q._next;q.unlink();a.appendChild(q);q=m}izt(h,a);q=y;m=F;q.next!==m&&(q.next=m,m.previous=q);y.numdelims===0&&(h.unlink(),rmU(G,y));F.numdelims===0&&(K.unlink(),y=F.next,rmU(G,F),F=y)}else F=F.next;else N===39?(F.node._literal="\u2019",D&&(y.node._literal="\u2018"),F=F.next):N===34&&(F.node._literal="\u201d",D&&(y.node.literal="\u201c"),F=F.next);D||R||(u[N]=U.previous,U.can_open||rmU(G,U))}else F=F.next}for(;G.delimiters!==
null&&G.delimiters!==B;)rmU(G,G.delimiters)},HzT=function(G){G=G.match(Dks);
return G===null?null:SYG(G.substr(1,G.length-2))},kfG=function(G){var B=G.match(upv);
if(B===null){B=G.pos;for(var F=0,D;(D=G.peek())!==-1;)if(D===92)G.pos+=1,G.peek()!==-1&&(G.pos+=1);else if(D===40)G.pos+=1,F+=1;else if(D===41)if(F<1)break;else G.pos+=1,--F;else if(ELa.exec(cV(D))!==null)break;else G.pos+=1;B=G.subject.substr(B,G.pos-B);return sxw(SYG(B))}return sxw(SYG(B.substr(1,B.length-2)))},OzT=function(G){G=G.match(QGs);
return G===null||G.length>1001?0:G.length},e97=function(G,B,F,D){G.brackets!==null&&(G.brackets.bracketAfter=!0);
G.brackets={node:B,previous:G.brackets,previousDelimiter:G.delimiters,index:F,image:D,active:!0}},$kL=function(G,B){var F;
return(F=G.match(jGs))?(G.options.smart?B.appendChild(Tk(F.replace(ym8,"\u2026").replace(nLT,function(D){var u=0,R=0;D.length%3===0?R=D.length/3:D.length%2===0?u=D.length/2:D.length%3===2?(u=1,R=(D.length-2)/3):(u=2,R=(D.length-4)/3);D="";var N;for(N=0;N<R;N++)D+="\u2014";for(N=0;N<u;N++)D+="\u2013";return D}))):B.appendChild(Tk(F)),!0):!1},z9a=function(G,B,F){G.subject=B;
G.pos=0;B=G.pos;var D=OzT(G);if(D===0)return 0;var u=G.subject.substr(0,D);if(G.peek()===58)G.pos++;else return G.pos=B,0;fo(G);D=kfG(G);if(D===null||D.length===0)return G.pos=B,0;var R=G.pos;fo(G);var N=HzT(G);N===null&&(N="",G.pos=R);var y=!0;G.match(X07)===null&&(N===""?y=!1:(N="",G.pos=R,y=G.match(X07)!==null));if(!y)return G.pos=B,0;u=jtL(u);if(u==="")return G.pos=B,0;F[u]||(F[u]={destination:D,title:N});return G.pos-B},bz7=function(G,B){var F,D=G.peek();
if(D===-1)return!1;switch(D){case 10:G.pos+=1;if((F=B._lastChild)&&F.type==="text"&&F._literal[F._literal.length-1]===" "){var u=F._literal[F._literal.length-2]===" ";F._literal=F._literal.replace(abt,"");B.appendChild(new Kr(u?"linebreak":"softbreak"))}else B.appendChild(new Kr("softbreak"));G.match(mka);F=!0;break;case 92:F=G.subject;G.pos+=1;G.peek()===10?(G.pos+=1,F=new Kr("linebreak"),B.appendChild(F)):R97.test(F.charAt(G.pos))?(B.appendChild(Tk(F.charAt(G.pos))),G.pos+=1):B.appendChild(Tk("\\"));
F=!0;break;case 96:a:if(F=G.match(NNG),F===null)F=!1;else{u=G.pos;for(var R;(R=G.match(Cvy))!==null;)if(R===F){R=new Kr("code");R._literal=G.subject.slice(u,G.pos-F.length).trim().replace(h9v," ");B.appendChild(R);F=!0;break a}G.pos=u;B.appendChild(Tk(F));F=!0}break;case 42:case 95:F=LHw(G,D,B);break;case 39:case 34:F=G.options.smart&&LHw(G,D,B);break;case 91:F=G.pos;G.pos+=1;u=Tk("[");B.appendChild(u);e97(G,u,F,!1);F=!0;break;case 33:F=G.pos;G.pos+=1;G.peek()===91?(G.pos+=1,u=Tk("!["),B.appendChild(u),
e97(G,u,F+1,!0)):B.appendChild(Tk("!"));F=!0;break;case 93:var N,y=!1,U;G.pos+=1;var q=G.pos;u=G.brackets;if(u===null)B.appendChild(Tk("]"));else if(u.active){F=u.image;var h=G.pos;G.peek()===40&&(G.pos++,fo(G)&&(R=kfG(G))!==null&&fo(G)&&(ELa.test(G.subject.charAt(G.pos-1))&&(N=HzT(G)),1)&&fo(G)&&G.peek()===41?(G.pos+=1,y=!0):G.pos=h);if(!y){var K=G.pos,a=OzT(G);a>2?U=G.subject.slice(K,K+a):u.bracketAfter||(U=G.subject.slice(u.index,q));a===0&&(G.pos=h);U&&(U=G.refmap[jtL(U)])&&(R=U.destination,N=
U.title,y=!0)}if(y){q=new Kr(F?"image":"link");q._destination=R;q._title=N||"";for(R=u.node._next;R;)N=R._next,R.unlink(),q.appendChild(R),R=N;B.appendChild(q);WHt(G,u.previousDelimiter);G.brackets=G.brackets.previous;u.node.unlink();if(!F)for(u=G.brackets;u!==null;)u.image||(u.active=!1),u=u.previous}else G.brackets=G.brackets.previous,G.pos=q,B.appendChild(Tk("]"))}else B.appendChild(Tk("]")),G.brackets=G.brackets.previous;F=!0;break;case 60:(F=G.match(lbt))?(F=F.slice(1,F.length-1),u=new Kr("link"),
u._destination=sxw("mailto:"+F),u._title="",u.appendChild(Tk(F)),B.appendChild(u),F=!0):(F=G.match(Ukw))?(F=F.slice(1,F.length-1),u=new Kr("link"),u._destination=sxw(F),u._title="",u.appendChild(Tk(F)),B.appendChild(u),F=!0):F=!1;F||(F=G.match(TCw),F===null?F=!1:(u=new Kr("html_inline"),u._literal=F,B.appendChild(u),F=!0));break;case 38:(F=G.match(w0L))?(B.appendChild(Tk(JtP(F))),F=!0):F=!1;break;default:F=$kL(G,B)}F||(G.pos+=1,B.appendChild(Tk(cV(D))));return!0};
I3.prototype.parseInlines=function(G){this.subject=G._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;bz7(this,G););G._string_content=null;WHt(this,null)};
I3.prototype.parse=I3.prototype.parseInlines;var Vg8=[/./,/^<(?: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")],vLt=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],oLq=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,MgU=/^[#`~*+_=<>0-9-\|]|\|/,p0L=/[^ \t\f\v\r\n]/,YdG=/^[*+-]/,Am7=/^(\d{1,9})([.)])/,dk7=/^#{1,6}(?:[ \t]+|$)/,Jmy=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,cmL=/^(?:`{3,}|~{3,})(?= *$)/,TNq=/^(?:=+|-+)[ \t]*$/,Ib7=/\r\n|\n|\r/,rhJ=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,WKS=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,fbG={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(G,B){for(G=B._firstChild;G;){if(LK8(G)&&G._next){B._listData.tight=!1;break}for(var F=G._firstChild;F;){if(LK8(F)&&(G._next||F._next)){B._listData.tight=!1;break}F=F._next}G=G._next}},
canContain:function(G){return G==="item"},
acceptsLines:!1},block_quote:{continue:function(G){var B=G.currentLine;if(G.indented||E1(B,G.nextNonspace)!==62)return 1;tD(G);ZT(G,1,!1);qY(E1(B,G.offset))&&ZT(G,1,!0);return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},item:{continue:function(G,B){if(G.blank){if(B._firstChild==null)return 1;tD(G)}else if(G.indent>=B._listData.markerOffset+B._listData.padding)ZT(G,B._listData.markerOffset+B._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(G){return G!=="item"&&!HGQ(G)},
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(G,B){var F=G.currentLine,D=G.indent;if(B._isFenced){if((D=D<=3&&F.charAt(G.nextNonspace)===B._fenceChar&&F.slice(G.nextNonspace).match(cmL))&&D[0].length>=B._fenceLength)return G.finalize(B,G.lineNumber),2;for(B=B._fenceOffset;B>0&&qY(E1(F,G.offset));)ZT(G,1,!0),B--}else if(D>=4)ZT(G,4,!0);else if(G.blank)tD(G);else return 1;return 0},
finalize:function(G,B){if(B._isFenced){var F=B._string_content,D=F.indexOf("\n");G=F.slice(0,D);F=F.slice(D+1);B.info=SYG(G.trim());B._literal=F}else B._literal=B._string_content.replace(/(\n *)+$/,"\n");B._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(G,B){return!G.blank||B._htmlBlockType!==6&&B._htmlBlockType!==7?0:1},
finalize:function(G,B){B._literal=B._string_content.replace(/(\n *)+$/,"");B._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(G){return G.blank?1:0},
finalize:function(G,B){for(var F,D=!1;E1(B._string_content,0)===91&&(F=z9a(G.inlineParser,B._string_content,G.refmap));)B._string_content=B._string_content.slice(F),D=!0;D&&!p0L.test(B._string_content)&&B.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(G){return hU(G.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(G){return G=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(G,B){if(!B._rowIsDelimiter){G=B._isHeader?"th":"td";for(var F=B._parent._tableColumns,D=B._string_content,u=0,R="",N,y=B._sourcepos[0][0];u<D.length;){switch(D[u]){case "|":N&&(N._string_content=R.trim(),R="",N=null,F--,F<=0&&(u=D.length));break;default:if(!N){N=new Kr(G,[[y,u],[y,u]]);var U=B._parent._columnAlignment,q=B._parent._tableColumns-F;U&&q<=U.length&&q>=0&&(N._alignment=U[q]);B.appendChild(N)}R+=D[u];N._sourcepos[1][1]=u}u++}N&&(N._string_content=R.trim());B._string_content=
""}},
canContain:function(G){return G!=="row"},
acceptsLines:!1}},tga=[function(G){if(G.indented||E1(G.currentLine,G.nextNonspace)!==62)return 0;tD(G);ZT(G,1,!1);qY(E1(G.currentLine,G.offset))&&ZT(G,1,!0);gu(G);G.addChild("block_quote",G.nextNonspace);return 1},
function(G){var B;if(!G.indented&&(B=G.currentLine.slice(G.nextNonspace).match(dk7))){tD(G);ZT(G,B[0].length,!1);gu(G);var F=G.addChild("heading",G.nextNonspace);F.level=B[0].trim().length;F._string_content=G.currentLine.slice(G.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");ZT(G,G.currentLine.length-G.offset);return 2}return 0},
function(G){var B;if(!G.indented&&(B=G.currentLine.slice(G.nextNonspace).match(Jmy))){var F=B[0].length;gu(G);var D=G.addChild("code_block",G.nextNonspace);D._isFenced=!0;D._fenceLength=F;D._fenceChar=B[0][0];D._fenceOffset=G.indent;tD(G);ZT(G,F,!1);return 2}return 0},
function(G,B){if(!G.indented&&E1(G.currentLine,G.nextNonspace)===60){var F=G.currentLine.slice(G.nextNonspace),D;for(D=1;D<=7;D++)if(Vg8[D].test(F)&&(D<7||B.type!=="paragraph"))return gu(G),G.addChild("html_block",G.offset)._htmlBlockType=D,2}return 0},
function(G,B){var F;if(!G.indented&&B.type==="paragraph"&&(F=G.currentLine.slice(G.nextNonspace).match(TNq))){gu(G);var D=new Kr("heading",B.sourcepos);D.level=F[0][0]==="="?1:2;D._string_content=B._string_content;izt(B,D);B.unlink();G.tip=D;ZT(G,G.currentLine.length-G.offset,!1);return 2}return 0},
function(G){return!G.indented&&oLq.test(G.currentLine.slice(G.nextNonspace))?(gu(G),G.addChild("thematic_break",G.nextNonspace),ZT(G,G.currentLine.length-G.offset,!1),2):0},
function(G,B){var F,D;if(!(D=G.indented&&B.type!=="list")){a:{var u=B,R=G.currentLine.slice(G.nextNonspace);D={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:G.indent};if(F=R.match(YdG))D.type="bullet",D.bulletChar=F[0][0];else{if(!(F=R.match(Am7))||u.type==="paragraph"&&F[1]!=="1"){F=null;break a}D.type="ordered";D.start=parseInt(F[1],10);D.delimiter=F[2]}var N=E1(G.currentLine,G.nextNonspace+F[0].length);if(N!==-1&&N!==9&&N!==32||u.type==="paragraph"&&!G.currentLine.slice(G.nextNonspace+
F[0].length).match(p0L))F=null;else{tD(G);ZT(G,F[0].length,!0);u=G.column;R=G.offset;do ZT(G,1,!0),N=E1(G.currentLine,G.offset);while(G.column-u<5&&qY(N));N=E1(G.currentLine,G.offset)===-1;var y=G.column-u;y>=5||y<1||N?(D.padding=F[0].length+1,G.column=u,G.offset=R,qY(E1(G.currentLine,G.offset))&&ZT(G,1,!0)):D.padding=F[0].length+y;F=D}}D=!F}if(D)return 0;gu(G);(D=G.tip.type!=="list")||(B=B._listData,D=!(B.type===F.type&&B.delimiter===F.delimiter&&B.bulletChar===F.bulletChar));D&&(B=G.addChild("list",
G.nextNonspace),B._listData=F);B=G.addChild("item",G.nextNonspace);B._listData=F;return 1},
function(G){var B;return((B=G.options.shouldParseIndentAsCodeBlock)!=null?B:1)&&G.indented&&G.tip.type!=="paragraph"&&!G.blank?(ZT(G,4,!0),gu(G),G.addChild("code_block",G.offset),2):0},
function(G,B){var F=hU(G.currentLine),D=hU(G.lookahead);if(F!==0&&D<0&&Math.abs(F)==Math.abs(D)&&!HGQ(B.type)){gu(G);B=G.addChild("table",G.nextNonspace);B._tableRows=1;B._tableColumns=Math.abs(F);F=G.lookahead;if(WKS.test(F)){D=[];for(var u=0,R=!1,N=0,y=void 0;u<F.length;){var U=N>=3;switch(F[u]){case "-":N++;break;case "|":R&&(D.push(y),y=void 0,N=0);R=!0;break;case ":":y||U||(y="left"),!y&&U&&(y="right"),y==="left"&&U&&(y="center")}u++}F=D}else F=void 0;B._columnAlignment=F;B=G.addChild("row",
G.nextNonspace);B._isHeader=!0;ZT(G,G.currentLine.length-G.offset,!1);B._string_content=G.currentLine;return 1}return 0},
function(G,B){if(B.type=="table"&&hU(G.currentLine)!==0){gu(G);var F=B;B=G.addChild("row",G.nextNonspace);hU(G.currentLine)<0?B._rowIsDelimiter=!0:F._tableRows+=1;ZT(G,G.currentLine.length-G.offset,!1);B._string_content=G.currentLine;return 2}return 0}],tZJ=function(){var G={shouldParseIndentAsCodeBlock:!1};
G=G===void 0?{}:G;this.lastMatchedContainer=this.doc=kEg();this.refmap={};this.lastLineLength=0;this.inlineParser=new I3(G);this.options=G;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=fbG;this.blockStarts=tga},Zz8=function(G){G.partiallyConsumedTab&&(G.offset+=1,G.tip._string_content+=" ".repeat(4-G.column%
4));
G.tip._string_content+=G.currentLine.slice(G.offset)+"\n"};
tZJ.prototype.addChild=function(G,B){for(;!this.blocks[this.tip.type].canContain(G);)this.finalize(this.tip,this.lineNumber-1);G=new Kr(G,[[this.lineNumber,B+1],[0,0]]);G._string_content="";this.tip.appendChild(G);return this.tip=G};
var gu=function(G){if(!G.allClosed){for(;G.oldtip!==G.lastMatchedContainer;){var B=G.oldtip._parent;G.finalize(G.oldtip,G.lineNumber-1);G.oldtip=B}G.allClosed=!0}},ZT=function(G,B,F){for(var D=G.currentLine,u,R;B>0&&(R=D[G.offset]);)R==="\t"?(u=4-G.column%4,F?(G.partiallyConsumedTab=u>B,u=u>B?B:u,G.column+=u,G.offset+=G.partiallyConsumedTab?0:1,B-=u):(G.partiallyConsumedTab=!1,G.column+=u,G.offset+=1,--B)):(G.partiallyConsumedTab=!1,G.offset+=1,G.column+=1,--B)},tD=function(G){G.offset=G.nextNonspace;
G.column=G.nextNonspaceColumn;G.partiallyConsumedTab=!1},gLs=function(G){for(var B=G.currentLine,F=G.offset,D=G.column,u;(u=B.charAt(F))!=="";)if(u===" ")F++,D++;
else if(u==="\t")F++,D+=4-D%4;else break;G.blank=u==="\n"||u==="\r"||u==="";G.nextNonspace=F;G.nextNonspaceColumn=D;G.indent=G.nextNonspaceColumn-G.column;G.indented=G.indent>=4};
tZJ.prototype.finalize=function(G,B){var F=G._parent;G._open=!1;G.sourcepos[1]=[B,this.lastLineLength];this.blocks[G.type].finalize(this,G);this.tip=F};
tZJ.prototype.parse=function(G){this.tip=this.doc=kEg();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!G)return this.doc;this.options.time&&console.time("preparing input");var B=G.split(Ib7),F=B.length;G.charCodeAt(G.length-1)===10&&--F;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(G=0;G<F;G++)a:{var D=void 0,u=B[G],R=B[G+1],N=!0,y=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;u.indexOf("\x00")!==-1&&(u=u.replace(/\0/g,"\ufffd"));this.currentLine=u;for(this.lookahead=R;(D=y._lastChild)&&D._open;){y=D;gLs(this);switch(this.blocks[y.type].continue(this,y)){case 0:break;case 1:N=!1;break;case 2:this.lastLineLength=u.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!N){y=y._parent;break}}this.allClosed=y===this.oldtip;this.lastMatchedContainer=
y;D=y.type!=="paragraph"&&fbG[y.type].acceptsLines;R=this.blockStarts;for(N=R.length;!D;){gLs(this);if(!this.indented&&!MgU.test(u.slice(this.nextNonspace))){tD(this);break}for(var U=0;U<N;){var q=R[U](this,y);if(q===1){y=this.tip;break}else if(q===2){y=this.tip;D=!0;break}else U++}if(U===N){tD(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){gu(this);this.blank&&y.lastChild&&(y.lastChild._lastLineBlank=!0);D=y.type;R=this.blank&&!(D==="block_quote"||D==="code_block"&&y._isFenced||
D==="item"&&!y._firstChild&&y.sourcepos[0][0]===this.lineNumber);for(N=y;N;)N._lastLineBlank=R,N=N._parent;this.blocks[D].acceptsLines?(Zz8(this),D==="html_block"&&y._htmlBlockType>=1&&y._htmlBlockType<=5&&vLt[y._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(y,this.lineNumber)):this.offset<u.length&&!this.blank&&(this.addChild("paragraph",this.offset),tD(this),Zz8(this))}else Zz8(this);this.lastLineLength=u.length}for(;this.tip;)this.finalize(this.tip,F);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");u=new BNL(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;F=u.next();)B=F.node,G=B.type,F.entering||G!=="paragraph"&&G!=="heading"&&G!=="th"&&G!="td"||this.inlineParser.parse(B);this.options.time&&console.timeEnd("inline parsing");return this.doc};OGl.prototype.render=function(G){G=new BNL(G);var B;this.buffer="";for(this.lastOut="\n";B=G.next();){var F=B.node.type;if(this[F])this[F](B.node,B.entering)}return this.buffer};
OGl.prototype.out=function(G){S7(this,G)};
var S7=function(G,B){G.buffer+=B;G.lastOut=B};
OGl.prototype.cr=function(){this.lastOut!=="\n"&&S7(this,"\n")};var Sdw=/^javascript:|vbscript:|file:|data:/i,sGT=/^data:image\/(?:png|gif|jpeg|webp)/i,xk7=function(G){return Sdw.test(G)&&!sGT.test(G)};
as.prototype=Object.create(OGl.prototype);_.w=as.prototype;_.w.text=function(G){this.out(G.literal)};
_.w.html_inline=function(G){this.options.safe?S7(this,"\x3c!-- raw HTML omitted --\x3e"):S7(this,G.literal)};
_.w.html_block=function(G){this.cr();this.options.safe?S7(this,"\x3c!-- raw HTML omitted --\x3e"):S7(this,G.literal);this.cr()};
_.w.softbreak=function(){S7(this,this.options.softbreak)};
_.w.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.w.link=function(G,B){var F=this.attrs(G);B?(this.options.safe&&xk7(G.destination)||F.push(["href",JD(G.destination,!0)]),G.title&&F.push(["title",JD(G.title,!0)]),this.tag("a",F)):this.tag("/a")};
_.w.image=function(G,B){B?(this.disableTags===0&&(this.options.safe&&xk7(G.destination)?S7(this,'<img src="" alt="'):S7(this,'<img src="'+JD(G.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(G.title&&S7(this,'" title="'+JD(G.title,!0)),S7(this,'" />')))};
_.w.emph=function(G,B){this.tag(B?"em":"/em")};
_.w.strong=function(G,B){this.tag(B?"strong":"/strong")};
_.w.paragraph=function(G,B){var F=G.parent.parent;G=this.attrs(G);F!==null&&F.type==="list"&&F.listTight||(B?(this.cr(),this.tag("p",G)):(this.tag("/p"),this.cr()))};
_.w.heading=function(G,B){var F="h"+G.level;G=this.attrs(G);B?(this.cr(),this.tag(F,G)):(this.tag("/"+F),this.cr())};
_.w.code=function(G){this.tag("code");this.out(G.literal);this.tag("/code")};
_.w.code_block=function(G){var B=G.info?G.info.split(/\s+/):[],F=this.attrs(G);B.length>0&&B[0].length>0&&F.push(["class","language-"+JD(B[0],!0)]);this.cr();this.tag("pre");this.tag("code",F);this.out(G.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.w.thematic_break=function(G){G=this.attrs(G);this.cr();this.tag("hr",G,!0);this.cr()};
_.w.block_quote=function(G,B){G=this.attrs(G);B?(this.cr(),this.tag("blockquote",G)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.w.list=function(G,B){var F=G.listType==="bullet"?"ul":"ol",D=this.attrs(G);B?(G=G.listStart,G!==null&&G!==1&&D.push(["start",G.toString()]),this.cr(),this.tag(F,D)):(this.cr(),this.tag("/"+F));this.cr()};
_.w.item=function(G,B){G=this.attrs(G);B?this.tag("li",G):(this.tag("/li"),this.cr())};
_.w.custom_inline=function(G,B){B&&G.onEnter?S7(this,G.onEnter):!B&&G.onExit&&S7(this,G.onExit)};
_.w.custom_block=function(G,B){this.cr();B&&G.onEnter?S7(this,G.onEnter):!B&&G.onExit&&S7(this,G.onExit);this.cr()};
_.w.table=function(G,B){G=this.attrs(G);B?(this.cr(),this.tag("table",G)):(this.tag("/table"),this.cr())};
_.w.row=function(G,B){G._rowIsDelimiter||(G=this.attrs(G),B?this.tag("tr",G):this.tag("/tr"))};
_.w.td=function(G,B){var F=this.attrs(G);G._alignment&&F.push(["align",G._alignment]);B?this.tag("td",F):this.tag("/td")};
_.w.th=function(G,B){var F=this.attrs(G);G._alignment&&F.push(["align",G._alignment]);B?this.tag("th",F):this.tag("/th")};
_.w.out=function(G){S7(this,JD(G,!1))};
_.w.tag=function(G,B,F){if(!(this.disableTags>0)){this.buffer+="<"+G;if(B&&B.length>0){G=0;for(var D;(D=B[G])!==void 0;)this.buffer+=" "+D[0]+'="'+D[1]+'"',G++}F&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.w.attrs=function(G){var B=[];this.options.sourcepos&&(G=G.sourcepos)&&B.push(["data-sourcepos",String(G[0][0])+":"+String(G[0][1])+"-"+String(G[1][0])+":"+String(G[1][1])]);return B};
as.prototype.text=as.prototype.text;as.prototype.html_inline=as.prototype.html_inline;as.prototype.html_block=as.prototype.html_block;as.prototype.softbreak=as.prototype.softbreak;as.prototype.linebreak=as.prototype.linebreak;as.prototype.link=as.prototype.link;as.prototype.image=as.prototype.image;as.prototype.emph=as.prototype.emph;as.prototype.strong=as.prototype.strong;as.prototype.paragraph=as.prototype.paragraph;as.prototype.heading=as.prototype.heading;as.prototype.code=as.prototype.code;
as.prototype.code_block=as.prototype.code_block;as.prototype.thematic_break=as.prototype.thematic_break;as.prototype.block_quote=as.prototype.block_quote;as.prototype.list=as.prototype.list;as.prototype.item=as.prototype.item;as.prototype.custom_inline=as.prototype.custom_inline;as.prototype.custom_block=as.prototype.custom_block;as.prototype.table=as.prototype.table;as.prototype.row=as.prototype.row;as.prototype.td=as.prototype.td;as.prototype.th=as.prototype.th;as.prototype.out=as.prototype.out;
as.prototype.tag=as.prototype.tag;as.prototype.attrs=as.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 PvU,Gds,GRI;(function(){function G(V,z){return V<z?-1:V>z?1:V>=z?0:NaN}
function B(V){return function(z,J){return G(V(z),J)}}
function F(){for(var V=0,z=arguments.length,J={},il;V<z;++V){if(!(il=arguments[V]+"")||il in J)throw Error("xe`"+il);J[il]=[]}return new D(J)}
function D(V){this._=V}
function u(V,z){return V.trim().split(/^|\s+/).map(function(J){var il="",nQ=J.indexOf(".");nQ>=0&&(il=J.slice(nQ+1),J=J.slice(0,nQ));if(J&&!z.hasOwnProperty(J))throw Error("ye`"+J);return{type:J,name:il}})}
function R(V,z,J){for(var il=0,nQ=V.length;il<nQ;++il)if(V[il].name===z){V[il]=Yt$;V=V.slice(0,il).concat(V.slice(il+1));break}J!=null&&V.push({name:z,value:J});return V}
function N(V){var z=V,J=z.indexOf(":");J>=0&&(z=V.slice(0,J))!=="xmlns"&&(V=V.slice(J+1));return rN.hasOwnProperty(z)?{space:rN[z],local:V}:V}
function y(V){return function(){var z=this.ownerDocument,J=this.namespaceURI;return J==="http://www.w3.org/1999/xhtml"&&z.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?z.createElement(V):z.createElementNS(J,V)}}
function U(V){return function(){return this.ownerDocument.createElementNS(V.space,V.local)}}
function q(V){V=N(V);return(V.local?U:y)(V)}
function h(){}
function K(V){return V==null?h:function(){return this.querySelector(V)}}
function a(V){return Array(V.length)}
function m(V,z){this.ownerDocument=V.ownerDocument;this.namespaceURI=V.namespaceURI;this._next=null;this._parent=V;this.__data__=z}
function L(V){return function(){return V}}
function W(V,z,J,il,nQ,Xz){for(var H6=0,Vo,C7=z.length,Fa=Xz.length;H6<Fa;++H6)(Vo=z[H6])?(Vo.__data__=Xz[H6],il[H6]=Vo):J[H6]=new m(V,Xz[H6]);for(;H6<C7;++H6)if(Vo=z[H6])nQ[H6]=Vo}
function e(V,z,J,il,nQ,Xz,H6){var Vo,C7,Fa={},yP=z.length,Xa=Xz.length,xv=Array(yP),oz;for(Vo=0;Vo<yP;++Vo)if(C7=z[Vo])xv[Vo]=oz="$"+H6.call(C7,C7.__data__,Vo,z),oz in Fa?nQ[Vo]=C7:Fa[oz]=C7;for(Vo=0;Vo<Xa;++Vo)oz="$"+H6.call(V,Xz[Vo],Vo,Xz),(C7=Fa[oz])?(il[Vo]=C7,C7.__data__=Xz[Vo],Fa[oz]=null):J[Vo]=new m(V,Xz[Vo]);for(Vo=0;Vo<yP;++Vo)(C7=z[Vo])&&Fa[xv[Vo]]===C7&&(nQ[Vo]=C7)}
function b(V,z){return V<z?-1:V>z?1:V>=z?0:NaN}
function M(V){return function(){this.removeAttribute(V)}}
function t(V){return function(){this.removeAttributeNS(V.space,V.local)}}
function T(V,z){return function(){this.setAttribute(V,z)}}
function A(V,z){return function(){this.setAttributeNS(V.space,V.local,z)}}
function Z(V,z){return function(){var J=z.apply(this,arguments);J==null?this.removeAttribute(V):this.setAttribute(V,J)}}
function P(V,z){return function(){var J=z.apply(this,arguments);J==null?this.removeAttributeNS(V.space,V.local):this.setAttributeNS(V.space,V.local,J)}}
function RI(V){return function(){this.style.removeProperty(V)}}
function yo(V,z,J){return function(){this.style.setProperty(V,z,J)}}
function hg(V,z,J){return function(){var il=z.apply(this,arguments);il==null?this.style.removeProperty(V):this.style.setProperty(V,il,J)}}
function US(V,z){return V.style.getPropertyValue(z)||(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView).getComputedStyle(V,null).getPropertyValue(z)}
function aI(V){return function(){delete this[V]}}
function v6(V,z){return function(){this[V]=z}}
function Jg(V,z){return function(){var J=z.apply(this,arguments);J==null?delete this[V]:this[V]=J}}
function c6(){this.textContent=""}
function q8(V){return function(){this.textContent=V}}
function n7(V){return function(){var z=V.apply(this,arguments);this.textContent=z==null?"":z}}
function Ts(){this.innerHTML=""}
function hT(V){return function(){this.innerHTML=V}}
function L7(V){return function(){var z=V.apply(this,arguments);this.innerHTML=z==null?"":z}}
function K7(){return null}
function kD(){var V=this.parentNode;V&&V.removeChild(this)}
function Rz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function KQ(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function pQ(V,z,J){V=aq(V,z,J);return function(il){var nQ=il.relatedTarget;nQ&&(nQ===this||nQ.compareDocumentPosition(this)&8)||V.call(this,il)}}
function aq(V,z,J){return function(){V.call(this,this.__data__,z,J)}}
function Zq(V){return V.trim().split(/^|\s+/).map(function(z){var J="",il=z.indexOf(".");il>=0&&(J=z.slice(il+1),z=z.slice(0,il));return{type:z,name:J}})}
function eN(V){return function(){var z=this.__on;if(z){for(var J=0,il=-1,nQ=z.length,Xz;J<nQ;++J)(Xz=z[J],V.type&&Xz.type!==V.type||Xz.name!==V.name)?z[++il]=Xz:this.removeEventListener(Xz.type,Xz.listener,Xz.capture);++il?z.length=il:delete this.__on}}}
function Ps(V,z,J){var il=c3a.hasOwnProperty(V.type)?pQ:aq;return function(nQ,Xz,H6){nQ=this.__on;var Vo;Xz=il(z,Xz,H6);if(nQ){H6=0;for(var C7=nQ.length;H6<C7;++H6)if((Vo=nQ[H6]).type===V.type&&Vo.name===V.name){this.removeEventListener(Vo.type,Vo.listener,Vo.capture);this.addEventListener(Vo.type,Vo.listener=Xz,Vo.capture=J);Vo.value=z;return}}this.addEventListener(V.type,Xz,J);Vo={type:V.type,name:V.name,value:z,listener:Xz,capture:J};nQ?nQ.push(Vo):this.__on=[Vo]}}
function el(V,z,J){var il=V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView,nQ=il.CustomEvent;typeof nQ==="function"?nQ=new nQ(z,J):(nQ=il.document.createEvent("Event"),J?(nQ.initEvent(z,J.bubbles,J.cancelable),nQ.detail=J.detail):nQ.initEvent(z,!1,!1));V.dispatchEvent(nQ)}
function sG(V,z){return function(){return el(this,V,z)}}
function qH(V,z){return function(){return el(this,V,z.apply(this,arguments))}}
function TL(V,z){this._groups=V;this._parents=z}
function Iz(){return new TL([[document.documentElement]],AFS)}
function N8(){this._="@"+(++do$).toString(36)}
function EA(V,z,J){V.prototype=z.prototype=J;J.constructor=V}
function EG(V,z){V=Object.create(V.prototype);for(var J in z)V[J]=z[J];return V}
function f7(){}
function M8(V){var z;V=(V+"").trim().toLowerCase();return(z=JFS.exec(V))?(z=parseInt(z[1],16),new xD(z>>8&15|z>>4&240,z>>4&15|z&240,(z&15)<<4|z&15,1)):(z=cFS.exec(V))?NH(parseInt(z[1],16)):(z=T_z.exec(V))?new xD(z[1],z[2],z[3],1):(z=Ir$.exec(V))?new xD(z[1]*255/100,z[2]*255/100,z[3]*255/100,1):(z=frz.exec(V))?Jj(z[1],z[2],z[3],z[4]):(z=tPQ.exec(V))?Jj(z[1]*255/100,z[2]*255/100,z[3]*255/100,z[4]):(z=ZFN.exec(V))?$0(z[1],z[2]/100,z[3]/100,1):(z=ghS.exec(V))?$0(z[1],z[2]/100,z[3]/100,z[4]):T4v.hasOwnProperty(V)?
NH(T4v[V]):V==="transparent"?new xD(NaN,NaN,NaN,0):null}
function NH(V){return new xD(V>>16&255,V>>8&255,V&255,1)}
function Jj(V,z,J,il){il<=0&&(V=z=J=NaN);return new xD(V,z,J,il)}
function JT(V){V instanceof f7||(V=M8(V));if(!V)return new xD;V=V.rgb();return new xD(V.r,V.g,V.b,V.opacity)}
function w$(V,z,J,il){return arguments.length===1?JT(V):new xD(V,z,J,il==null?1:il)}
function xD(V,z,J,il){this.r=+V;this.g=+z;this.b=+J;this.opacity=+il}
function ia(V){V=Math.max(0,Math.min(255,Math.round(V)||0));return(V<16?"0":"")+V.toString(16)}
function $0(V,z,J,il){il<=0?V=z=J=NaN:J<=0||J>=1?V=z=NaN:z<=0&&(V=NaN);return new Sy(V,z,J,il)}
function $d(V){if(V instanceof Sy)return new Sy(V.h,V.s,V.l,V.opacity);V instanceof f7||(V=M8(V));if(!V)return new Sy;if(V instanceof Sy)return V;V=V.rgb();var z=V.r/255,J=V.g/255,il=V.b/255,nQ=Math.min(z,J,il),Xz=Math.max(z,J,il),H6=NaN,Vo=Xz-nQ,C7=(Xz+nQ)/2;Vo?(H6=z===Xz?(J-il)/Vo+(J<il)*6:J===Xz?(il-z)/Vo+2:(z-J)/Vo+4,Vo/=C7<.5?Xz+nQ:2-Xz-nQ,H6*=60):Vo=C7>0&&C7<1?0:H6;return new Sy(H6,Vo,C7,V.opacity)}
function DB(V,z,J,il){return arguments.length===1?$d(V):new Sy(V,z,J,il==null?1:il)}
function Sy(V,z,J,il){this.h=+V;this.s=+z;this.l=+J;this.opacity=+il}
function HY(V,z,J){return(V<60?z+(J-z)*V/60:V<180?J:V<240?z+(J-z)*(240-V)/60:z)*255}
function lZ(V){if(V instanceof OS)return new OS(V.l,V.a,V.b,V.opacity);if(V instanceof Hs){if(isNaN(V.h))return new OS(V.l,0,0,V.opacity);var z=V.h*Ipq;return new OS(V.l,Math.cos(z)*V.c,Math.sin(z)*V.c,V.opacity)}V instanceof xD||(V=JT(V));var J=LN(V.r),il=LN(V.g),nQ=LN(V.b);z=Ag(.2225045*J+.7168786*il+.0606169*nQ);if(J===il&&il===nQ)var Xz=J=z;else Xz=Ag((.4360747*J+.3850649*il+.1430804*nQ)/.96422),J=Ag((.0139322*J+.0971045*il+.7141733*nQ)/.82521);return new OS(116*z-16,500*(Xz-z),200*(z-J),V.opacity)}
function OS(V,z,J,il){this.l=+V;this.a=+z;this.b=+J;this.opacity=+il}
function Ag(V){return V>StB?Math.pow(V,1/3):V/fpT+thU}
function gU(V){return V>ZG?V*V*V:fpT*(V-thU)}
function rw(V){return 255*(V<=.0031308?12.92*V:1.055*Math.pow(V,1/2.4)-.055)}
function LN(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}
function kS(V){if(V instanceof Hs)return new Hs(V.h,V.c,V.l,V.opacity);V instanceof OS||(V=lZ(V));if(V.a===0&&V.b===0)return new Hs(NaN,0,V.l,V.opacity);var z=Math.atan2(V.b,V.a)*ZLw;return new Hs(z<0?z+360:z,Math.sqrt(V.a*V.a+V.b*V.b),V.l,V.opacity)}
function OA(V,z,J,il){return arguments.length===1?kS(V):new Hs(V,z,J,il==null?1:il)}
function Hs(V,z,J,il){this.h=+V;this.c=+z;this.l=+J;this.opacity=+il}
function Ws(V,z,J,il){if(arguments.length===1){var nQ=V;if(nQ instanceof d$)nQ=new d$(nQ.h,nQ.s,nQ.l,nQ.opacity);else{nQ instanceof xD||(nQ=JT(nQ));var Xz=nQ.g/255,H6=nQ.b/255,Vo=(gjq*H6+nQ.r/255*-1.7884503806-3.5172982438*Xz)/(gjq+-1.7884503806-3.5172982438);H6-=Vo;var C7=(1.97294*(Xz-Vo)- -.29227*H6)/-.90649;H6=(Xz=Math.sqrt(C7*C7+H6*H6)/(1.97294*Vo*(1-Vo)))?Math.atan2(C7,H6)*ZLw-120:NaN;nQ=new d$(H6<0?H6+360:H6,Xz,Vo,nQ.opacity)}}else nQ=new d$(V,z,J,il==null?1:il);return nQ}
function d$(V,z,J,il){this.h=+V;this.s=+z;this.l=+J;this.opacity=+il}
function RM(V,z,J,il,nQ){var Xz=V*V,H6=Xz*V;return((1-3*V+3*Xz-H6)*z+(4-6*Xz+3*H6)*J+(1+3*V+3*Xz-3*H6)*il+H6*nQ)/6}
function mt(V){return function(){return V}}
function VQ(V,z){return function(J){return V+J*z}}
function c1(V,z,J){return V=Math.pow(V,J),z=Math.pow(z,J)-V,J=1/J,function(il){return Math.pow(V+il*z,J)}}
function cX(V,z){var J=z-V;return J?VQ(V,J>180||J<-180?J-360*Math.round(J/360):J):mt(isNaN(V)?z:V)}
function hM(V){return(V=+V)===1?G0:function(z,J){return J-z?c1(z,J,V):mt(isNaN(z)?J:z)}}
function G0(V,z){var J=z-V;return J?VQ(V,J):mt(isNaN(V)?z:V)}
function Wo(V){return function(z){var J=z.length,il=Array(J),nQ=Array(J),Xz=Array(J),H6;for(H6=0;H6<J;++H6){var Vo=w$(z[H6]);il[H6]=Vo.r||0;nQ[H6]=Vo.g||0;Xz[H6]=Vo.b||0}il=V(il);nQ=V(nQ);Xz=V(Xz);Vo.opacity=1;return function(C7){Vo.r=il(C7);Vo.g=nQ(C7);Vo.b=Xz(C7);return Vo+""}}}
function P7(V,z){return V=+V,z-=V,function(J){return V+z*J}}
function rs(V){return function(){return V}}
function C4(V){return function(z){return V(z)+""}}
function Uz(V,z){var J=xv8.lastIndex=P3c.lastIndex=0,il,nQ,Xz,H6=-1,Vo=[],C7=[];V+="";for(z+="";(il=xv8.exec(V))&&(nQ=P3c.exec(z));)(Xz=nQ.index)>J&&(Xz=z.slice(J,Xz),Vo[H6]?Vo[H6]+=Xz:Vo[++H6]=Xz),(il=il[0])===(nQ=nQ[0])?Vo[H6]?Vo[H6]+=nQ:Vo[++H6]=nQ:(Vo[++H6]=null,C7.push({i:H6,x:P7(il,nQ)})),J=P3c.lastIndex;J<z.length&&(Xz=z.slice(J),Vo[H6]?Vo[H6]+=Xz:Vo[++H6]=Xz);return Vo.length<2?C7[0]?C4(C7[0].x):rs(z):(z=C7.length,function(Fa){for(var yP=0,Xa;yP<z;++yP)Vo[(Xa=C7[yP]).i]=Xa.x(Fa);return Vo.join("")})}
function m$(V,z,J,il,nQ,Xz){var H6,Vo,C7;if(H6=Math.sqrt(V*V+z*z))V/=H6,z/=H6;if(C7=V*J+z*il)J-=V*C7,il-=z*C7;if(Vo=Math.sqrt(J*J+il*il))J/=Vo,il/=Vo,C7/=Vo;V*il<z*J&&(V=-V,z=-z,C7=-C7,H6=-H6);return{translateX:nQ,translateY:Xz,rotate:Math.atan2(z,V)*SBv,skewX:Math.atan(C7)*SBv,scaleX:H6,scaleY:Vo}}
function eI(V,z,J,il){function nQ(Fa){return Fa.length?Fa.pop()+" ":""}
function Xz(Fa,yP,Xa,xv,oz,ez){Fa!==Xa||yP!==xv?(oz=oz.push("translate(",null,z,null,J),ez.push({i:oz-4,x:P7(Fa,Xa)},{i:oz-2,x:P7(yP,xv)})):(Xa||xv)&&oz.push("translate("+Xa+z+xv+J)}
function H6(Fa,yP,Xa,xv){Fa!==yP?(Fa-yP>180?yP+=360:yP-Fa>180&&(Fa+=360),xv.push({i:Xa.push(nQ(Xa)+"rotate(",null,il)-2,x:P7(Fa,yP)})):yP&&Xa.push(nQ(Xa)+"rotate("+yP+il)}
function Vo(Fa,yP,Xa,xv){Fa!==yP?xv.push({i:Xa.push(nQ(Xa)+"skewX(",null,il)-2,x:P7(Fa,yP)}):yP&&Xa.push(nQ(Xa)+"skewX("+yP+il)}
function C7(Fa,yP,Xa,xv,oz,ez){Fa!==Xa||yP!==xv?(oz=oz.push(nQ(oz)+"scale(",null,",",null,")"),ez.push({i:oz-4,x:P7(Fa,Xa)},{i:oz-2,x:P7(yP,xv)})):Xa===1&&xv===1||oz.push(nQ(oz)+"scale("+Xa+","+xv+")")}
return function(Fa,yP){var Xa=[],xv=[];Fa=V(Fa);yP=V(yP);Xz(Fa.translateX,Fa.translateY,yP.translateX,yP.translateY,Xa,xv);H6(Fa.rotate,yP.rotate,Xa,xv);Vo(Fa.skewX,yP.skewX,Xa,xv);C7(Fa.scaleX,Fa.scaleY,yP.scaleX,yP.scaleY,Xa,xv);Fa=yP=null;return function(oz){for(var ez=-1,sx=xv.length,Mm;++ez<sx;)Xa[(Mm=xv[ez]).i]=Mm.x(oz);return Xa.join("")}}}
function XJ(V){return function(z,J){var il=V((z=DB(z)).h,(J=DB(J)).h),nQ=G0(z.s,J.s),Xz=G0(z.l,J.l),H6=G0(z.opacity,J.opacity);return function(Vo){z.h=il(Vo);z.s=nQ(Vo);z.l=Xz(Vo);z.opacity=H6(Vo);return z+""}}}
function Rt(V){return function(z,J){var il=V((z=OA(z)).h,(J=OA(J)).h),nQ=G0(z.c,J.c),Xz=G0(z.l,J.l),H6=G0(z.opacity,J.opacity);return function(Vo){z.h=il(Vo);z.c=nQ(Vo);z.l=Xz(Vo);z.opacity=H6(Vo);return z+""}}}
function $T(V){return function il(J){function nQ(Xz,H6){var Vo=V((Xz=Ws(Xz)).h,(H6=Ws(H6)).h),C7=G0(Xz.s,H6.s),Fa=G0(Xz.l,H6.l),yP=G0(Xz.opacity,H6.opacity);return function(Xa){Xz.h=Vo(Xa);Xz.s=C7(Xa);Xz.l=Fa(Math.pow(Xa,J));Xz.opacity=yP(Xa);return Xz+""}}
J=+J;nQ.gamma=il;return nQ}(1)}
function za(){return QS||(s8w(we),QS=IE.now()+Jbl)}
function we(){QS=0}
function FS(){this._call=this._time=this._next=null}
function w2(V,z,J){var il=new FS;il.restart(V,z,J);return il}
function XM(){QS=(cb6=IE.now())+Jbl;gG=fY=0;try{za();++gG;for(var V=Tal,z;V;)(z=QS-V._time)>=0&&V._call.call(null,z),V=V._next;--gG}finally{gG=0;V=Tal;for(var J=Infinity;V;)if(V._call){J>V._time&&(J=V._time);var il=V;V=V._next}else z=V._next,V._next=null,V=il?il._next=z:Tal=z;tu=il;DI(J);QS=0}}
function x2(){var V=IE.now(),z=V-cb6;z>1E3&&(Jbl-=z,cb6=V)}
function DI(V){gG||(fY&&(fY=clearTimeout(fY)),V-QS>24?(V<Infinity&&(fY=setTimeout(XM,V-IE.now()-Jbl)),ZC&&(ZC=clearInterval(ZC))):(ZC||(cb6=IE.now(),ZC=setInterval(x2,1E3)),gG=1,s8w(XM)))}
function NR(V,z,J){var il=new FS;z=z==null?0:+z;il.restart(function(nQ){il.stop();V(nQ+z)},z,J);
return il}
function GL(V,z,J,il,nQ,Xz){var H6=V.__transition;if(!H6)V.__transition={};else if(J in H6)return;pI(V,J,{name:z,index:il,group:nQ,on:sAZ,tween:xoU,time:Xz.time,delay:Xz.delay,duration:Xz.duration,ease:Xz.ease,timer:null,state:0})}
function h2(V,z){V=ZZ(V,z);if(V.state>0)throw Error("ze");return V}
function z$(V,z){V=ZZ(V,z);if(V.state>2)throw Error("Ae");return V}
function ZZ(V,z){V=V.__transition;if(!V||!(V=V[z]))throw Error("Be");return V}
function pI(V,z,J){function il(C7){var Fa,yP;if(J.state!==1)return Xz();for(xv in H6){var Xa=H6[xv];if(Xa.name===J.name){if(Xa.state===3)return NR(il);Xa.state===4?(Xa.state=6,Xa.timer.stop(),Xa.on.call("interrupt",V,V.__data__,Xa.index,Xa.group),delete H6[xv]):+xv<z&&(Xa.state=6,Xa.timer.stop(),delete H6[xv])}}NR(function(){J.state===3&&(J.state=4,J.timer.restart(nQ,J.delay,J.time),nQ(C7))});
J.state=2;J.on.call("start",V,V.__data__,J.index,J.group);if(J.state===2){J.state=3;Vo=Array(yP=J.tween.length);var xv=0;for(Fa=-1;xv<yP;++xv)if(Xa=J.tween[xv].value.call(V,V.__data__,J.index,J.group))Vo[++Fa]=Xa;Vo.length=Fa+1}}
function nQ(C7){C7=C7<J.duration?J.ease.call(null,C7/J.duration):(J.timer.restart(Xz),J.state=5,1);for(var Fa=-1,yP=Vo.length;++Fa<yP;)Vo[Fa].call(null,C7);J.state===5&&(J.on.call("end",V,V.__data__,J.index,J.group),Xz())}
function Xz(){J.state=6;J.timer.stop();delete H6[z];for(var C7 in H6)return;delete V.__transition}
var H6=V.__transition,Vo;H6[z]=J;J.timer=w2(function(C7){J.state=1;J.timer.restart(il,J.delay,J.time);J.delay<=C7&&il(C7-J.delay)},0,J.time)}
function JC(V,z){var J,il;return function(){var nQ=z$(this,V),Xz=nQ.tween;if(Xz!==J){il=J=Xz;Xz=0;for(var H6=il.length;Xz<H6;++Xz)if(il[Xz].name===z){il=il.slice();il.splice(Xz,1);break}}nQ.tween=il}}
function I_(V,z,J){var il,nQ;if(typeof J!=="function")throw Error();return function(){var Xz=z$(this,V),H6=Xz.tween;if(H6!==il){nQ=(il=H6).slice();H6={name:z,value:J};for(var Vo=0,C7=nQ.length;Vo<C7;++Vo)if(nQ[Vo].name===z){nQ[Vo]=H6;break}Vo===C7&&nQ.push(H6)}Xz.tween=nQ}}
function T7(V,z,J){var il=V._id;V.each(function(){var nQ=z$(this,il);(nQ.value||(nQ.value={}))[z]=J.apply(this,arguments)});
return function(nQ){return ZZ(nQ,il).value[z]}}
function W0(V,z){var J;return(typeof z==="number"?P7:z instanceof M8?x2G:(J=M8(z))?(z=J,x2G):Uz)(V,z)}
function j$(V){return function(){this.removeAttribute(V)}}
function ISM(V){return function(){this.removeAttributeNS(V.space,V.local)}}
function fSc(V,z,J){var il,nQ;return function(){var Xz=this.getAttribute(V);return Xz===J?null:Xz===il?nQ:nQ=z(il=Xz,J)}}
function gz(V,z,J){var il,nQ;return function(){var Xz=this.getAttributeNS(V.space,V.local);return Xz===J?null:Xz===il?nQ:nQ=z(il=Xz,J)}}
function tmJ(V,z,J){var il,nQ,Xz;return function(){var H6=J(this);if(H6==null)return void this.removeAttribute(V);var Vo=this.getAttribute(V);return Vo===H6?null:Vo===il&&H6===nQ?Xz:Xz=z(il=Vo,nQ=H6)}}
function SY(V,z,J){var il,nQ,Xz;return function(){var H6=J(this);if(H6==null)return void this.removeAttributeNS(V.space,V.local);var Vo=this.getAttributeNS(V.space,V.local);return Vo===H6?null:Vo===il&&H6===nQ?Xz:Xz=z(il=Vo,nQ=H6)}}
function so(V,z){function J(){var il=this,nQ=z.apply(il,arguments);return nQ&&function(Xz){il.setAttributeNS(V.space,V.local,nQ(Xz))}}
J._value=z;return J}
function ZZU(V,z){function J(){var il=this,nQ=z.apply(il,arguments);return nQ&&function(Xz){il.setAttribute(V,nQ(Xz))}}
J._value=z;return J}
function PeB(V,z){return function(){h2(this,V).delay=+z.apply(this,arguments)}}
function GQ$(V,z){return z=+z,function(){h2(this,V).delay=z}}
function BE$(V,z){return function(){z$(this,V).duration=+z.apply(this,arguments)}}
function iDU(V,z){return z=+z,function(){z$(this,V).duration=z}}
function F4$(V,z){if(typeof z!=="function")throw Error();return function(){z$(this,V).ease=z}}
function D5Q(V){return(V+"").trim().split(/^|\s+/).every(function(z){var J=z.indexOf(".");J>=0&&(z=z.slice(0,J));return!z||z==="start"})}
function uN$(V,z,J){var il,nQ,Xz=D5Q(z)?h2:z$;return function(){var H6=Xz(this,V),Vo=H6.on;if(Vo!==il)(nQ=(il=Vo).copy()).on(z,J);H6.on=nQ}}
function RhB(V){return function(){var z=this.parentNode,J;for(J in this.__transition)if(+J!==V)return;z&&z.removeChild(this)}}
function whQ(V,z){var J,il,nQ;return function(){var Xz=US(this,V),H6=(this.style.removeProperty(V),US(this,V));return Xz===H6?null:Xz===J&&H6===il?nQ:nQ=z(J=Xz,il=H6)}}
function CD$(V){return function(){this.style.removeProperty(V)}}
function NE$(V,z,J){var il,nQ;return function(){var Xz=US(this,V);return Xz===J?null:Xz===il?nQ:nQ=z(il=Xz,J)}}
function yNQ(V,z,J){var il,nQ,Xz;return function(){var H6=US(this,V),Vo=J(this);Vo==null&&(Vo=(this.style.removeProperty(V),US(this,V)));return H6===Vo?null:H6===il&&Vo===nQ?Xz:Xz=z(il=H6,nQ=Vo)}}
function npD(V,z,J){function il(){var nQ=this,Xz=z.apply(nQ,arguments);return Xz&&function(H6){nQ.style.setProperty(V,Xz(H6),J)}}
il._value=z;return il}
function lvA(V){return function(){this.textContent=V}}
function U5S(V){return function(){var z=V(this);this.textContent=z==null?"":z}}
function y0(V,z,J,il){this._groups=V;this._parents=z;this._name=J;this._id=il}
function GlQ(V){return{type:V}}
function B48(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function g2o(){}
function PIq(V,z){var J=new g2o;if(V instanceof g2o)V.each(function(H6,Vo){J.set(Vo,H6)});
else if(Array.isArray(V)){var il=-1,nQ=V.length,Xz;if(z==null)for(;++il<nQ;)J.set(il,V[il]);else for(;++il<nQ;)J.set(z(Xz=V[il],il,V),Xz)}else if(V)for(il in V)J.set(il,V[il]);return J}
function SzJ(){}
function GOL(V){return function(z){for(var J={},il=0;il<V.length;il++)J[V[il]]=z[il]||"";return J}}
function qLA(V,z){var J=GOL(V);return function(il,nQ){return z(J(il),nQ,V)}}
function EpB(V){var z=Object.create(null),J=[];V.forEach(function(il){for(var nQ in il)nQ in z||J.push(z[nQ]=nQ)});
return J}
function BkG(V){function z(H6,Vo){function C7(){if(ez)return iLl;if(sx)return sx=!1,iU7;var KZ,Ng=Xa,z1;if(H6.charCodeAt(Ng)===34){for(;Xa++<yP&&H6.charCodeAt(Xa)!==34||H6.charCodeAt(++Xa)===34;);(KZ=Xa)>=yP?ez=!0:(z1=H6.charCodeAt(Xa++))===10?sx=!0:z1===13&&(sx=!0,H6.charCodeAt(Xa)===10&&++Xa);return H6.slice(Ng+1,KZ-1).replace(/""/g,'"')}for(;Xa<yP;){if((z1=H6.charCodeAt(KZ=Xa++))===10)sx=!0;else if(z1===13)sx=!0,H6.charCodeAt(Xa)===10&&++Xa;else if(z1!==Xz)continue;return H6.slice(Ng,KZ)}return ez=
!0,H6.slice(Ng,yP)}
var Fa=[],yP=H6.length,Xa=0,xv=0,oz,ez=yP<=0,sx=!1;H6.charCodeAt(yP-1)===10&&--yP;for(H6.charCodeAt(yP-1)===13&&--yP;(oz=C7())!==iLl;){for(var Mm=[];oz!==iU7&&oz!==iLl;)Mm.push(oz),oz=C7();Vo&&(Mm=Vo(Mm,xv++))==null||Fa.push(Mm)}return Fa}
function J(H6){return H6.map(il).join(V)}
function il(H6){return H6==null?"":nQ.test(H6)?'"'+H6.replace(/"/g,'""')+'"':H6}
var nQ=new RegExp('["'+V+"\n\r]"),Xz=V.charCodeAt(0);return{parse:function(H6,Vo){var C7,Fa;H6=z(H6,function(yP,Xa){if(C7)return C7(yP,Xa-1);Fa=yP;C7=Vo?qLA(yP,Vo):GOL(yP)});
H6.columns=Fa||[];return H6},
parseRows:z,format:function(H6,Vo){Vo==null&&(Vo=EpB(H6));return[Vo.map(il).join(V)].concat(H6.map(function(C7){return Vo.map(function(Fa){return il(C7[Fa])}).join(V)})).join("\n")},
formatRows:function(H6){return H6.map(J).join("\n")}}}
function hh$(V){if(!V.ok)throw Error("Ce`"+V.status+"`"+V.statusText);return V.text()}
function FMG(V){return function(z,J,il){arguments.length===2&&typeof J==="function"&&(il=J,J=void 0);return fetch(z,J).then(hh$).then(function(nQ){return V(nQ,il)})}}
function DFy(V,z,J,il){if(isNaN(z)||isNaN(J))return V;var nQ,Xz=V._root;il={data:il};var H6=V._x0,Vo=V._y0,C7=V._x1,Fa=V._y1,yP,Xa,xv,oz,ez;if(!Xz)return V._root=il,V;for(;Xz.length;)if((xv=z>=(yP=(H6+C7)/2))?H6=yP:C7=yP,(oz=J>=(Xa=(Vo+Fa)/2))?Vo=Xa:Fa=Xa,nQ=Xz,!(Xz=Xz[ez=oz<<1|xv]))return nQ[ez]=il,V;var sx=+V._x.call(null,Xz.data);var Mm=+V._y.call(null,Xz.data);if(z===sx&&J===Mm)return il.next=Xz,nQ?nQ[ez]=il:V._root=il,V;do nQ=nQ?nQ[ez]=Array(4):V._root=Array(4),(xv=z>=(yP=(H6+C7)/2))?H6=yP:C7=
yP,(oz=J>=(Xa=(Vo+Fa)/2))?Vo=Xa:Fa=Xa;while((ez=oz<<1|xv)===(xv=(Mm>=Xa)<<1|sx>=yP));return nQ[xv]=Xz,nQ[ez]=il,V}
function wK(V,z,J,il,nQ){this.node=V;this.x0=z;this.y0=J;this.x1=il;this.y1=nQ}
function K42(V){return V[0]}
function avS(V){return V[1]}
function FP6(V,z,J,il,nQ,Xz){this._x=V;this._y=z;this._x0=J;this._y0=il;this._x1=nQ;this._y1=Xz;this._root=void 0}
function uOv(V){for(var z={data:V.data},J=z;V=V.next;)J=J.next={data:V.data};return z}
function suI(V,z){if((z=(V=z?V.toExponential(z-1):V.toExponential()).indexOf("e"))<0)return null;var J=V.slice(0,z);return[J.length>1?J[0]+J.slice(2):J,+V.slice(z+1)]}
function m5$(V){return V=suI(Math.abs(V)),V?V[1]:NaN}
function XhU(V,z){return function(J,il){for(var nQ=J.length,Xz=[],H6=0,Vo=V[0],C7=0;nQ>0&&Vo>0;){C7+Vo+1>il&&(Vo=Math.max(1,il-C7));Xz.push(J.substring(nQ-=Vo,nQ+Vo));if((C7+=Vo+1)>il)break;Vo=V[H6=(H6+1)%V.length]}return Xz.reverse().join(z)}}
function QHD(V){return function(z){return z.replace(/[0-9]/g,function(J){return V[+J]})}}
function D26(V){return new ukz(V)}
function ukz(V){if(!(z=jH2.exec(V)))throw Error("De`"+V);var z;this.fill=z[1]||" ";this.align=z[2]||">";this.sign=z[3]||"-";this.symbol=z[4]||"";this.zero=!!z[5];this.width=z[6]&&+z[6];this.comma=!!z[7];this.precision=z[8]&&+z[8].slice(1);this.trim=!!z[9];this.type=z[10]||""}
function RmP(V,z){z=suI(V,z);if(!z)return V+"";V=z[0];z=z[1];return z<0?"0."+Array(-z).join("0")+V:V.length>z+1?V.slice(0,z+1)+"."+V.slice(z+1):V+Array(z-V.length+2).join("0")}
function wKP(V){return V}
function L4S(V){function z(Vo){function C7(FJ){var zD=z1,PS=HI,Le,Uy;if(Ng==="c")PS=yI(FJ)+PS,FJ="";else{FJ=+FJ;var MH=FJ<0;FJ=yI(Math.abs(FJ),Mm);if(KZ){var CH=FJ.length,us=1,au=-1;a:for(;us<CH;++us)switch(FJ[us]){case ".":au=Le=us;break;case "0":au===0&&(au=us);Le=us;break;default:if(!+FJ[us])break a;au>0&&(au=0)}FJ=au>0?FJ.slice(0,au)+FJ.slice(Le+1):FJ}MH&&+FJ===0&&(MH=!1);zD=(MH?Xa==="("?Xa:"-":Xa==="-"||Xa==="("?"":Xa)+zD;PS=(Ng==="s"?CuG[8+Nkt/3]:"")+PS+(MH&&Xa==="("?")":"");if(ey)for(MH=-1,
Le=FJ.length;++MH<Le;)if(Uy=FJ.charCodeAt(MH),48>Uy||Uy>57){PS=(Uy===46?nQ+FJ.slice(MH+1):FJ.slice(MH))+PS;FJ=FJ.slice(0,MH);break}}sx&&!oz&&(FJ=J(FJ,Infinity));Uy=zD.length+FJ.length+PS.length;MH=Uy<ez?Array(ez-Uy+1).join(Fa):"";sx&&oz&&(FJ=J(MH+FJ,MH.length?ez-PS.length:Infinity),MH="");switch(yP){case "<":FJ=zD+FJ+PS+MH;break;case "=":FJ=zD+MH+FJ+PS;break;case "^":FJ=MH.slice(0,Uy=MH.length>>1)+zD+FJ+PS+MH.slice(Uy);break;default:FJ=MH+zD+FJ+PS}return Xz(FJ)}
Vo=D26(Vo);var Fa=Vo.fill,yP=Vo.align,Xa=Vo.sign,xv=Vo.symbol,oz=Vo.zero,ez=Vo.width,sx=Vo.comma,Mm=Vo.precision,KZ=Vo.trim,Ng=Vo.type;Ng==="n"?(sx=!0,Ng="g"):y8G[Ng]||(Mm==null&&(Mm=12),KZ=!0,Ng="g");if(oz||Fa==="0"&&yP==="=")oz=!0,Fa="0",yP="=";var z1=xv==="$"?il[0]:xv==="#"&&/[boxX]/.test(Ng)?"0"+Ng.toLowerCase():"",HI=xv==="$"?il[1]:/[%p]/.test(Ng)?H6:"",yI=y8G[Ng],ey=/[defgprs%]/.test(Ng);Mm=Mm==null?6:/[gprs]/.test(Ng)?Math.max(1,Math.min(21,Mm)):Math.max(0,Math.min(20,Mm));C7.toString=function(){return Vo+
""};
return C7}
var J=V.grouping&&V.thousands?XhU(V.grouping,V.thousands):wKP,il=V.currency,nQ=V.decimal,Xz=V.numerals?QHD(V.numerals):wKP,H6=V.percent||"%";return{format:z,formatPrefix:function(Vo,C7){var Fa=z((Vo=D26(Vo),Vo.type="f",Vo));Vo=Math.max(-8,Math.min(8,Math.floor(m5$(C7)/3)))*3;var yP=Math.pow(10,-Vo),Xa=CuG[8+Vo/3];return function(xv){return Fa(yP*xv)+Xa}}}}
function WU(){this.reset()}
function nma(V,z,J){var il=V.s=z+J,nQ=il-z;V.t=z-(il-nQ)+(J-nQ)}
function xI6(V){return V>1?H0:V<-1?-H0:Math.asin(V)}
function rNG(){}
function ldL(V){var z=V[0];V=V[1];var J=kL(V);return[J*kL(z),J*Ig(z),Ig(V)]}
function UFa(V,z){return[V[1]*z[2]-V[2]*z[1],V[2]*z[0]-V[0]*z[2],V[0]*z[1]-V[1]*z[0]]}
function qvq(V){var z=PZz(V[0]*V[0]+V[1]*V[1]+V[2]*V[2]);V[0]/=z;V[1]/=z;V[2]/=z}
function W4Q(){var V=[],z;return{point:function(J,il){z.push([J,il])},
lineStart:function(){V.push(z=[])},
lineEnd:rNG,rejoin:function(){V.length>1&&V.push(V.pop().concat(V.shift()))},
result:function(){var J=V;V=[];z=null;return J}}}
function GcI(V,z,J,il){this.x=V;this.z=z;this.o=J;this.e=il;this.v=!1;this.n=this.p=null}
function HDD(V,z,J,il,nQ){var Xz=[],H6=[];V.forEach(function(Xa){if(!((xv=Xa.length-1)<=0)){var xv,oz=Xa[0],ez=Xa[xv],sx=oz;if(n9(sx[0]-ez[0])<1E-6&&n9(sx[1]-ez[1])<1E-6){nQ.lineStart();for(Vo=0;Vo<xv;++Vo)nQ.point((oz=Xa[Vo])[0],oz[1]);nQ.lineEnd()}else Xz.push(xv=new GcI(oz,Xa,null,!0)),H6.push(xv.o=new GcI(oz,null,xv,!1)),Xz.push(xv=new GcI(ez,Xa,null,!1)),H6.push(xv.o=new GcI(ez,null,xv,!0))}});
if(Xz.length){H6.sort(z);Emy(Xz);Emy(H6);var Vo=0;for(V=H6.length;Vo<V;++Vo)H6[Vo].e=J=!J;J=Xz[0];for(var C7;;){for(var Fa=J,yP=!0;Fa.v;)if((Fa=Fa.n)===J)return;z=Fa.z;nQ.lineStart();do{Fa.v=Fa.o.v=!0;if(Fa.e){if(yP)for(Vo=0,V=z.length;Vo<V;++Vo)nQ.point((C7=z[Vo])[0],C7[1]);else il(Fa.x,Fa.n.x,1,nQ);Fa=Fa.n}else{if(yP)for(z=Fa.p.z,Vo=z.length-1;Vo>=0;--Vo)nQ.point((C7=z[Vo])[0],C7[1]);else il(Fa.x,Fa.p.x,-1,nQ);Fa=Fa.p}Fa=Fa.o;z=Fa.z;yP=!yP}while(!Fa.v);nQ.lineEnd()}}}
function Emy(V){if(z=V.length){for(var z,J=0,il=V[0],nQ;++J<z;)il.n=nQ=V[J],nQ.p=il,il=nQ;il.n=nQ=V[0];nQ.p=il}}
function kQA(V){return V.length>1}
function ODG(V,z){return((V=V.x)[0]<0?V[1]-H0-1E-6:H0-V[1])-((z=z.x)[0]<0?z[1]-H0-1E-6:H0-z[1])}
function R_J(){}
function hmt(V){return function(z,J){var il=kL(z),nQ=kL(J);il=V(il*nQ);return[il*nQ*Ig(z),il*Ig(J)]}}
function xs(V){return function(z,J){var il=PZz(z*z+J*J),nQ=V(il),Xz=Ig(nQ);nQ=kL(nQ);return[KMG(z*Xz,il*nQ),xI6(il&&J*Xz/il)]}}
function ehH(V){var z=0,J=V.children,il=J&&J.length;if(il)for(;--il>=0;)z+=J[il].value;else z=1;V.value=z}
function adq(V,z){var J=new PJ(V);V=+V.value&&(J.value=V.value);var il,nQ=[J],Xz,H6,Vo,C7;for(z==null&&(z=$5$);il=nQ.pop();)if(V&&(il.value=+il.data.value),(H6=z(il.data))&&(C7=H6.length))for(il.children=Array(C7),Vo=C7-1;Vo>=0;--Vo)nQ.push(Xz=il.children[Vo]=new PJ(H6[Vo])),Xz.parent=il,Xz.depth=il.depth+1;return J.eachBefore(zh2)}
function $5$(V){return V.children}
function bDz(V){V.data=V.data.data}
function zh2(V){var z=0;do V.height=z;while((V=V.parent)&&V.height<++z)}
function PJ(V){this.data=V;this.depth=this.height=0;this.parent=null}
function $Q(V,z,J,il){function nQ(Xz){return V(Xz=new Date(+Xz)),Xz}
nQ.floor=nQ;nQ.ceil=function(Xz){return V(Xz=new Date(Xz-1)),z(Xz,1),V(Xz),Xz};
nQ.round=function(Xz){var H6=nQ(Xz),Vo=nQ.ceil(Xz);return Xz-H6<Vo-Xz?H6:Vo};
nQ.offset=function(Xz,H6){return z(Xz=new Date(+Xz),H6==null?1:Math.floor(H6)),Xz};
nQ.range=function(Xz,H6,Vo){var C7=[],Fa;Xz=nQ.ceil(Xz);Vo=Vo==null?1:Math.floor(Vo);if(!(Xz<H6&&Vo>0))return C7;do C7.push(Fa=new Date(+Xz)),z(Xz,Vo),V(Xz);while(Fa<Xz&&Xz<H6);return C7};
nQ.filter=function(Xz){return $Q(function(H6){if(H6>=H6)for(;V(H6),!Xz(H6);)H6.setTime(H6-1)},function(H6,Vo){if(H6>=H6)if(Vo<0)for(;++Vo<=0;)for(;z(H6,-1),!Xz(H6););
else for(;--Vo>=0;)for(;z(H6,1),!Xz(H6););})};
J&&(nQ.count=function(Xz,H6){wMg.setTime(+Xz);CI6.setTime(+H6);V(wMg);V(CI6);return Math.floor(J(wMg,CI6))},nQ.every=function(Xz){Xz=Math.floor(Xz);
return isFinite(Xz)&&Xz>0?Xz>1?nQ.filter(il?function(H6){return il(H6)%Xz===0}:function(H6){return nQ.count(0,H6)%Xz===0}):nQ:null});
return nQ}
function LD(V){return $Q(function(z){z.setDate(z.getDate()-(z.getDay()+7-V)%7);z.setHours(0,0,0,0)},function(z,J){z.setDate(z.getDate()+J*7)},function(z,J){return(J-z-(J.getTimezoneOffset()-z.getTimezoneOffset())*6E4)/6048E5})}
function rE(V){return $Q(function(z){z.setUTCDate(z.getUTCDate()-(z.getUTCDay()+7-V)%7);z.setUTCHours(0,0,0,0)},function(z,J){z.setUTCDate(z.getUTCDate()+J*7)},function(z,J){return(J-z)/6048E5})}
function V$$(V){if(0<=V.y&&V.y<100){var z=new Date(-1,V.m,V.d,V.H,V.M,V.S,V.L);z.setFullYear(V.y);return z}return new Date(V.y,V.m,V.d,V.H,V.M,V.S,V.L)}
function BSc(V){if(0<=V.y&&V.y<100){var z=new Date(Date.UTC(-1,V.m,V.d,V.H,V.M,V.S,V.L));z.setUTCFullYear(V.y);return z}return new Date(Date.UTC(V.y,V.m,V.d,V.H,V.M,V.S,V.L))}
function GI(V){return{y:V,m:0,d:1,H:0,M:0,S:0,L:0}}
function vp$(V){function z(PS,Le){return function(Uy){var MH=[],CH=-1,us=0,au=PS.length,OD,Cg;for(Uy instanceof Date||(Uy=new Date(+Uy));++CH<au;)if(PS.charCodeAt(CH)===37){MH.push(PS.slice(us,CH));(us=mFw[OD=PS.charAt(++CH)])!=null?OD=PS.charAt(++CH):us=OD==="e"?" ":"0";if(Cg=Le[OD])OD=Cg(Uy,us);MH.push(OD);us=CH+1}MH.push(PS.slice(us,CH));return MH.join("")}}
function J(PS,Le){return function(Uy){var MH=GI(1900);if(il(MH,PS,Uy,0)!=Uy.length)return null;if("Q"in MH)return new Date(MH.Q);"p"in MH&&(MH.H=MH.H%12+MH.p*12);if("V"in MH){if(MH.V<1||MH.V>53)return null;"w"in MH||(MH.w=1);if("Z"in MH){Uy=BSc(GI(MH.y));var CH=Uy.getUTCDay();Uy=CH>4||CH===0?N4z.ceil(Uy):N4z(Uy);Uy=XKv.offset(Uy,(MH.V-1)*7);MH.y=Uy.getUTCFullYear();MH.m=Uy.getUTCMonth();MH.d=Uy.getUTCDate()+(MH.w+6)%7}else Uy=Le(GI(MH.y)),CH=Uy.getDay(),Uy=CH>4||CH===0?y3U.ceil(Uy):y3U(Uy),Uy=Q$v.offset(Uy,
(MH.V-1)*7),MH.y=Uy.getFullYear(),MH.m=Uy.getMonth(),MH.d=Uy.getDate()+(MH.w+6)%7}else if("W"in MH||"U"in MH)"w"in MH||(MH.w="u"in MH?MH.u%7:"W"in MH?1:0),CH="Z"in MH?BSc(GI(MH.y)).getUTCDay():Le(GI(MH.y)).getDay(),MH.m=0,MH.d="W"in MH?(MH.w+6)%7+MH.W*7-(CH+5)%7:MH.w+MH.U*7-(CH+6)%7;return"Z"in MH?(MH.H+=MH.Z/100|0,MH.M+=MH.Z%100,BSc(MH)):Le(MH)}}
function il(PS,Le,Uy,MH){for(var CH=0,us=Le.length,au=Uy.length,OD;CH<us;){if(MH>=au)return-1;OD=Le.charCodeAt(CH++);if(OD===37){if(OD=Le.charAt(CH++),OD=zD[OD in mFw?Le.charAt(CH++):OD],!OD||(MH=OD(PS,Uy,MH))<0)return-1}else if(OD!=Uy.charCodeAt(MH++))return-1}return MH}
var nQ=V.dateTime,Xz=V.date,H6=V.time,Vo=V.periods,C7=V.days,Fa=V.shortDays,yP=V.months,Xa=V.shortMonths,xv=Bq(Vo),oz=iF(Vo),ez=Bq(C7),sx=iF(C7),Mm=Bq(Fa),KZ=iF(Fa),Ng=Bq(yP),z1=iF(yP),HI=Bq(Xa),yI=iF(Xa),ey={a:function(PS){return Fa[PS.getDay()]},
A:function(PS){return C7[PS.getDay()]},
b:function(PS){return Xa[PS.getMonth()]},
B:function(PS){return yP[PS.getMonth()]},
c:null,d:j$y,e:j$y,f:opQ,H:M$S,I:phN,j:YL$,L:LMG,m:ANz,M:d5A,p:function(PS){return Vo[+(PS.getHours()>=12)]},
Q:r87,s:WMs,S:JNG,u:cN$,U:TED,V:IvD,w:fv2,W:t$$,x:null,X:null,y:ZDB,Y:gpA,Z:SL$,"%":HUT},FJ={a:function(PS){return Fa[PS.getUTCDay()]},
A:function(PS){return C7[PS.getUTCDay()]},
b:function(PS){return Xa[PS.getUTCMonth()]},
B:function(PS){return yP[PS.getUTCMonth()]},
c:null,d:kO8,e:kO8,f:sHD,H:x5$,I:PDH,j:GqB,L:OUa,m:BpN,M:iPU,p:function(PS){return Vo[+(PS.getUTCHours()>=12)]},
Q:r87,s:WMs,S:Fz$,u:Ds$,U:unQ,V:RH2,w:wOS,W:CkG,x:null,X:null,y:Np$,Y:yqZ,Z:n$B,"%":HUT},zD={a:function(PS,Le,Uy){return(Le=Mm.exec(Le.slice(Uy)))?(PS.w=KZ[Le[0].toLowerCase()],Uy+Le[0].length):-1},
A:function(PS,Le,Uy){return(Le=ez.exec(Le.slice(Uy)))?(PS.w=sx[Le[0].toLowerCase()],Uy+Le[0].length):-1},
b:function(PS,Le,Uy){return(Le=HI.exec(Le.slice(Uy)))?(PS.m=yI[Le[0].toLowerCase()],Uy+Le[0].length):-1},
B:function(PS,Le,Uy){return(Le=Ng.exec(Le.slice(Uy)))?(PS.m=z1[Le[0].toLowerCase()],Uy+Le[0].length):-1},
c:function(PS,Le,Uy){return il(PS,nQ,Le,Uy)},
d:emt,e:emt,f:l0D,H:$Fv,I:$Fv,j:UsU,L:qEG,m:E$B,M:hHU,p:function(PS,Le,Uy){return(Le=xv.exec(Le.slice(Uy)))?(PS.p=oz[Le[0].toLowerCase()],Uy+Le[0].length):-1},
Q:Kzz,s:a0A,S:msS,u:XO$,U:QRB,V:jRS,w:LzH,W:rqS,x:function(PS,Le,Uy){return il(PS,Xz,Le,Uy)},
X:function(PS,Le,Uy){return il(PS,H6,Le,Uy)},
y:Wz$,Y:HP$,Z:kqB,"%":OPD};ey.x=z(Xz,ey);ey.X=z(H6,ey);ey.c=z(nQ,ey);FJ.x=z(Xz,FJ);FJ.X=z(H6,FJ);FJ.c=z(nQ,FJ);return{format:function(PS){var Le=z(PS,ey);Le.toString=function(){return PS};
return Le},
parse:function(PS){var Le=J(PS,V$$);Le.toString=function(){return PS};
return Le},
utcFormat:function(PS){var Le=z(PS,FJ);Le.toString=function(){return PS};
return Le},
utcParse:function(PS){var Le=J(PS,BSc);Le.toString=function(){return PS};
return Le}}}
function o7(V,z,J){var il=V<0?"-":"";V=(il?-V:V)+"";var nQ=V.length;return il+(nQ<J?Array(J-nQ+1).join(z)+V:V)}
function eHD(V){return V.replace($sz,"\\$&")}
function Bq(V){return new RegExp("^(?:"+V.map(eHD).join("|")+")","i")}
function iF(V){for(var z={},J=-1,il=V.length;++J<il;)z[V[J].toLowerCase()]=J;return z}
function LzH(V,z,J){return(z=b2.exec(z.slice(J,J+1)))?(V.w=+z[0],J+z[0].length):-1}
function XO$(V,z,J){return(z=b2.exec(z.slice(J,J+1)))?(V.u=+z[0],J+z[0].length):-1}
function QRB(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.U=+z[0],J+z[0].length):-1}
function jRS(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.V=+z[0],J+z[0].length):-1}
function rqS(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.W=+z[0],J+z[0].length):-1}
function HP$(V,z,J){return(z=b2.exec(z.slice(J,J+4)))?(V.y=+z[0],J+z[0].length):-1}
function Wz$(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.y=+z[0]+(+z[0]>68?1900:2E3),J+z[0].length):-1}
function kqB(V,z,J){return(z=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(z.slice(J,J+6)))?(V.Z=z[1]?0:-(z[2]+(z[3]||"00")),J+z[0].length):-1}
function E$B(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.m=z[0]-1,J+z[0].length):-1}
function emt(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.d=+z[0],J+z[0].length):-1}
function UsU(V,z,J){return(z=b2.exec(z.slice(J,J+3)))?(V.m=0,V.d=+z[0],J+z[0].length):-1}
function $Fv(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.H=+z[0],J+z[0].length):-1}
function hHU(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.M=+z[0],J+z[0].length):-1}
function msS(V,z,J){return(z=b2.exec(z.slice(J,J+2)))?(V.S=+z[0],J+z[0].length):-1}
function qEG(V,z,J){return(z=b2.exec(z.slice(J,J+3)))?(V.L=+z[0],J+z[0].length):-1}
function l0D(V,z,J){return(z=b2.exec(z.slice(J,J+6)))?(V.L=Math.floor(z[0]/1E3),J+z[0].length):-1}
function OPD(V,z,J){return(V=zH2.exec(z.slice(J,J+1)))?J+V[0].length:-1}
function Kzz(V,z,J){return(z=b2.exec(z.slice(J)))?(V.Q=+z[0],J+z[0].length):-1}
function a0A(V,z,J){return(z=b2.exec(z.slice(J)))?(V.Q=+z[0]*1E3,J+z[0].length):-1}
function j$y(V,z){return o7(V.getDate(),z,2)}
function M$S(V,z){return o7(V.getHours(),z,2)}
function phN(V,z){return o7(V.getHours()%12||12,z,2)}
function YL$(V,z){return o7(1+Q$v.count(SG(V),V),z,3)}
function LMG(V,z){return o7(V.getMilliseconds(),z,3)}
function opQ(V,z){return LMG(V,z)+"000"}
function ANz(V,z){return o7(V.getMonth()+1,z,2)}
function d5A(V,z){return o7(V.getMinutes(),z,2)}
function JNG(V,z){return o7(V.getSeconds(),z,2)}
function cN$(V){V=V.getDay();return V===0?7:V}
function TED(V,z){return o7(bPU.count(SG(V),V),z,2)}
function IvD(V,z){var J=V.getDay();V=J>=4||J===0?njc(V):njc.ceil(V);return o7(njc.count(SG(V),V)+(SG(V).getDay()===4),z,2)}
function fv2(V){return V.getDay()}
function t$$(V,z){return o7(y3U.count(SG(V),V),z,2)}
function ZDB(V,z){return o7(V.getFullYear()%100,z,2)}
function gpA(V,z){return o7(V.getFullYear()%1E4,z,4)}
function SL$(V){V=V.getTimezoneOffset();return(V>0?"-":(V*=-1,"+"))+o7(V/60|0,"0",2)+o7(V%60,"0",2)}
function kO8(V,z){return o7(V.getUTCDate(),z,2)}
function x5$(V,z){return o7(V.getUTCHours(),z,2)}
function PDH(V,z){return o7(V.getUTCHours()%12||12,z,2)}
function GqB(V,z){return o7(1+XKv.count(s0(V),V),z,3)}
function OUa(V,z){return o7(V.getUTCMilliseconds(),z,3)}
function sHD(V,z){return OUa(V,z)+"000"}
function BpN(V,z){return o7(V.getUTCMonth()+1,z,2)}
function iPU(V,z){return o7(V.getUTCMinutes(),z,2)}
function Fz$(V,z){return o7(V.getUTCSeconds(),z,2)}
function Ds$(V){V=V.getUTCDay();return V===0?7:V}
function unQ(V,z){return o7(VvN.count(s0(V),V),z,2)}
function RH2(V,z){var J=V.getUTCDay();V=J>=4||J===0?lpM(V):lpM.ceil(V);return o7(lpM.count(s0(V),V)+(s0(V).getUTCDay()===4),z,2)}
function wOS(V){return V.getUTCDay()}
function CkG(V,z){return o7(N4z.count(s0(V),V),z,2)}
function Np$(V,z){return o7(V.getUTCFullYear()%100,z,2)}
function yqZ(V,z){return o7(V.getUTCFullYear()%1E4,z,4)}
function n$B(){return"+0000"}
function HUT(){return"%"}
function r87(V){return+V}
function WMs(V){return Math.floor(+V/1E3)}
function j5(V){for(var z=V.length/6|0,J=Array(z),il=0;il<z;)J[il]="#"+V.slice(il*6,++il*6);return J}
function Nn(V){return v$D(V[V.length-1])}
function itl(V){var z=V.length;return function(J){return V[Math.max(0,Math.min(z-1,Math.floor(J*z)))]}}
function zmw(V){this._context=V}
function bUN(V){this._curve=V}
function VqU(V,z,J){var il=V._x1-V._x0;z-=V._x1;var nQ=(V._y1-V._y0)/(il||z<0&&-0);V=(J-V._y1)/(z||il<0&&-0);return((nQ<0?-1:1)+(V<0?-1:1))*Math.min(Math.abs(nQ),Math.abs(V),.5*Math.abs((nQ*z+V*il)/(il+z)))||0}
function vmT(V,z){var J=V._x1-V._x0;return J?(3*(V._y1-V._y0)/J-z)/2:z}
function U2L(V,z,J){var il=V._x0,nQ=V._x1,Xz=V._y1,H6=(nQ-il)/3;V._context.bezierCurveTo(il+H6,V._y0+H6*z,nQ-H6,Xz-H6*J,nQ,Xz)}
function qBg(V){this._context=V}
function omU(V){this._context=V}
function F$(V,z,J){this.k=V;this.x=z;this.y=J}
(function(V){V.length===1&&(V=B(V));return{left:function(z,J,il,nQ){il==null&&(il=0);nQ==null&&(nQ=z.length);for(;il<nQ;){var Xz=il+nQ>>>1;V(z[Xz],J)<0?il=Xz+1:nQ=Xz}return il},
right:function(z,J,il,nQ){il==null&&(il=0);nQ==null&&(nQ=z.length);for(;il<nQ;){var Xz=il+nQ>>>1;V(z[Xz],J)>0?nQ=Xz:il=Xz+1}return il}}})(G);
var Yt$={value:function(){}};
D.prototype=F.prototype={constructor:D,on:function(V,z){var J=this._,il=u(V+"",J),nQ,Xz=-1,H6=il.length;if(arguments.length<2)for(;++Xz<H6;){var Vo;if(Vo=nQ=(V=il[Xz]).type){a:{Vo=J[nQ];for(var C7=0,Fa=Vo.length;C7<Fa;++C7)if((nQ=Vo[C7]).name===V.name){nQ=nQ.value;break a}nQ=void 0}Vo=nQ}if(Vo)return nQ}else{if(z!=null&&typeof z!=="function")throw Error("Ee`"+z);for(;++Xz<H6;)if(nQ=(V=il[Xz]).type)J[nQ]=R(J[nQ],V.name,z);else if(z==null)for(nQ in J)J[nQ]=R(J[nQ],V.name,null);return this}},
copy:function(){var V={},z=this._,J;for(J in z)V[J]=z[J].slice();return new D(V)},
call:function(V,z){if((nQ=arguments.length-2)>0)for(var J=Array(nQ),il=0,nQ,Xz;il<nQ;++il)J[il]=arguments[il+2];if(!this._.hasOwnProperty(V))throw Error("ye`"+V);Xz=this._[V];il=0;for(nQ=Xz.length;il<nQ;++il)Xz[il].value.apply(z,J)},
apply:function(V,z,J){if(!this._.hasOwnProperty(V))throw Error("ye`"+V);V=this._[V];for(var il=0,nQ=V.length;il<nQ;++il)V[il].value.apply(z,J)}};
var rN={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/"},MqU=function(V){return function(){return this.matches(V)}};
if(typeof document!=="undefined"){var DQ=document.documentElement;if(!DQ.matches){var o$Q=DQ.webkitMatchesSelector||DQ.msMatchesSelector||DQ.mozMatchesSelector||DQ.oMatchesSelector;MqU=function(V){return function(){return o$Q.call(this,V)}}}}var pKw=MqU;
m.prototype={constructor:m,appendChild:function(V){return this._parent.insertBefore(V,this._next)},
insertBefore:function(V,z){return this._parent.insertBefore(V,z)},
querySelector:function(V){return this._parent.querySelector(V)},
querySelectorAll:function(V){return this._parent.querySelectorAll(V)}};
var c3a={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(c3a={mouseenter:"mouseover",mouseleave:"mouseout"}));var AFS=[null];TL.prototype=Iz.prototype={constructor:TL,select:function(V){typeof V!=="function"&&(V=K(V));for(var z=this._groups,J=z.length,il=Array(J),nQ=0;nQ<J;++nQ)for(var Xz=z[nQ],H6=Xz.length,Vo=il[nQ]=Array(H6),C7,Fa,yP=0;yP<H6;++yP)(C7=Xz[yP])&&(Fa=V.call(C7,C7.__data__,yP,Xz))&&("__data__"in C7&&(Fa.__data__=C7.__data__),Vo[yP]=Fa);return new TL(il,
this._parents)},
filter:function(V){typeof V!=="function"&&(V=pKw(V));for(var z=this._groups,J=z.length,il=Array(J),nQ=0;nQ<J;++nQ)for(var Xz=z[nQ],H6=Xz.length,Vo=il[nQ]=[],C7,Fa=0;Fa<H6;++Fa)(C7=Xz[Fa])&&V.call(C7,C7.__data__,Fa,Xz)&&Vo.push(C7);return new TL(il,this._parents)},
data:function(V,z){if(!V)return oz=Array(this.size()),Fa=-1,this.each(function(Ng){oz[++Fa]=Ng}),oz;
var J=z?e:W,il=this._parents,nQ=this._groups;typeof V!=="function"&&(V=L(V));for(var Xz=nQ.length,H6=Array(Xz),Vo=Array(Xz),C7=Array(Xz),Fa=0;Fa<Xz;++Fa){var yP=il[Fa],Xa=nQ[Fa],xv=Xa.length,oz=V.call(yP,yP&&yP.__data__,Fa,il),ez=oz.length,sx=Vo[Fa]=Array(ez),Mm=H6[Fa]=Array(ez);xv=C7[Fa]=Array(xv);J(yP,Xa,sx,Mm,xv,oz,z);Xa=yP=0;for(var KZ;yP<ez;++yP)if(xv=sx[yP]){for(yP>=Xa&&(Xa=yP+1);!(KZ=Mm[Xa])&&++Xa<ez;);xv._next=KZ||null}}H6=new TL(H6,il);H6._enter=Vo;H6._exit=C7;return H6},
enter:function(){return new TL(this._enter||this._groups.map(a),this._parents)},
exit:function(){return new TL(this._exit||this._groups.map(a),this._parents)},
merge:function(V){var z=this._groups;V=V._groups;for(var J=z.length,il=Math.min(J,V.length),nQ=Array(J),Xz=0;Xz<il;++Xz)for(var H6=z[Xz],Vo=V[Xz],C7=H6.length,Fa=nQ[Xz]=Array(C7),yP,Xa=0;Xa<C7;++Xa)if(yP=H6[Xa]||Vo[Xa])Fa[Xa]=yP;for(;Xz<J;++Xz)nQ[Xz]=z[Xz];return new TL(nQ,this._parents)},
order:function(){for(var V=this._groups,z=-1,J=V.length;++z<J;)for(var il=V[z],nQ=il.length-1,Xz=il[nQ],H6;--nQ>=0;)if(H6=il[nQ])Xz&&Xz!==H6.nextSibling&&Xz.parentNode.insertBefore(H6,Xz),Xz=H6;return this},
sort:function(V){function z(Xa,xv){return Xa&&xv?V(Xa.__data__,xv.__data__):!Xa-!xv}
V||(V=b);for(var J=this._groups,il=J.length,nQ=Array(il),Xz=0;Xz<il;++Xz){for(var H6=J[Xz],Vo=H6.length,C7=nQ[Xz]=Array(Vo),Fa,yP=0;yP<Vo;++yP)if(Fa=H6[yP])C7[yP]=Fa;C7.sort(z)}return(new TL(nQ,this._parents)).order()},
call:function(){var V=arguments[0];arguments[0]=this;V.apply(null,arguments);return this},
nodes:function(){var V=Array(this.size()),z=-1;this.each(function(){V[++z]=this});
return V},
node:function(){for(var V=this._groups,z=0,J=V.length;z<J;++z)for(var il=V[z],nQ=0,Xz=il.length;nQ<Xz;++nQ){var H6=il[nQ];if(H6)return H6}return null},
size:function(){var V=0;this.each(function(){++V});
return V},
empty:function(){return!this.node()},
each:function(V){for(var z=this._groups,J=0,il=z.length;J<il;++J)for(var nQ=z[J],Xz=0,H6=nQ.length,Vo;Xz<H6;++Xz)(Vo=nQ[Xz])&&V.call(Vo,Vo.__data__,Xz,nQ);return this},
attr:function(V,z){var J=N(V);if(arguments.length<2){var il=this.node();return J.local?il.getAttributeNS(J.space,J.local):il.getAttribute(J)}return this.each((z==null?J.local?t:M:typeof z==="function"?J.local?P:Z:J.local?A:T)(J,z))},
style:function(V,z,J){return arguments.length>1?this.each((z==null?RI:typeof z==="function"?hg:yo)(V,z,J==null?"":J)):US(this.node(),V)},
property:function(V,z){return arguments.length>1?this.each((z==null?aI:typeof z==="function"?Jg:v6)(V,z)):this.node()[V]},
text:function(V){return arguments.length?this.each(V==null?c6:(typeof V==="function"?n7:q8)(V)):this.node().textContent},
html:function(V){return arguments.length?this.each(V==null?Ts:(typeof V==="function"?L7:hT)(V)):this.node().innerHTML},
append:function(V){var z=typeof V==="function"?V:q(V);return this.select(function(){return this.appendChild(z.apply(this,arguments))})},
insert:function(V,z){var J=typeof V==="function"?V:q(V),il=z==null?K7:typeof z==="function"?z:K(z);return this.select(function(){return this.insertBefore(J.apply(this,arguments),il.apply(this,arguments)||null)})},
remove:function(){return this.each(kD)},
clone:function(V){return this.select(V?KQ:Rz)},
datum:function(V){return arguments.length?this.property("__data__",V):this.node().__data__},
on:function(V,z,J){var il=Zq(V+""),nQ=il.length,Xz;if(arguments.length<2){var H6=this.node().__on;if(H6)for(var Vo=0,C7=H6.length,Fa;Vo<C7;++Vo){var yP=0;for(Fa=H6[Vo];yP<nQ;++yP)if((Xz=il[yP]).type===Fa.type&&Xz.name===Fa.name)return Fa.value}}else{H6=z?Ps:eN;J==null&&(J=!1);for(yP=0;yP<nQ;++yP)this.each(H6(il[yP],z,J));return this}},
dispatch:function(V,z){return this.each((typeof z==="function"?qH:sG)(V,z))}};
var do$=0;N8.prototype=function(){return new N8}.prototype={constructor:N8,
get:function(V){for(var z=this._;!(z in V);)if(!(V=V.parentNode))return;return V[z]},
set:function(V,z){return V[this._]=z},
remove:function(V){return this._ in V&&delete V[this._]},
toString:function(){return this._}};
var x8=1/.7,JFS=/^#([0-9a-f]{3})$/,cFS=/^#([0-9a-f]{6})$/,T_z=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Ir$=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),frz=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),tPQ=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*\\)$"),
ZFN=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ghS=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*\\)$"),T4v={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};
EA(f7,M8,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
EA(xD,w$,EG(f7,{brighter:function(V){V=V==null?x8:Math.pow(x8,V);return new xD(this.r*V,this.g*V,this.b*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new xD(this.r*V,this.g*V,this.b*V,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"#"+ia(this.r)+ia(this.g)+ia(this.b)},
toString:function(){var V=this.opacity;V=isNaN(V)?1:Math.max(0,Math.min(1,V));return(V===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))+(V===1?")":", "+V+")")}}));
EA(Sy,DB,EG(f7,{brighter:function(V){V=V==null?x8:Math.pow(x8,V);return new Sy(this.h,this.s,this.l*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new Sy(this.h,this.s,this.l*V,this.opacity)},
rgb:function(){var V=this.h%360+(this.h<0)*360,z=this.l,J=z+(z<.5?z:1-z)*(isNaN(V)||isNaN(this.s)?0:this.s);z=2*z-J;return new xD(HY(V>=240?V-240:V+120,z,J),HY(V,z,J),HY(V<120?V+240:V-120,z,J),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 Ipq=Math.PI/180,ZLw=180/Math.PI,thU=4/29,ZG=6/29,fpT=3*ZG*ZG,StB=ZG*ZG*ZG;EA(OS,function(V,z,J,il){return arguments.length===1?lZ(V):new OS(V,z,J,il==null?1:il)},EG(f7,{brighter:function(V){return new OS(this.l+18*(V==null?1:V),this.a,this.b,this.opacity)},
darker:function(V){return new OS(this.l-18*(V==null?1:V),this.a,this.b,this.opacity)},
rgb:function(){var V=(this.l+16)/116,z=isNaN(this.a)?V:V+this.a/500,J=isNaN(this.b)?V:V-this.b/200;z=.96422*gU(z);V=1*gU(V);J=.82521*gU(J);return new xD(rw(3.1338561*z-1.6168667*V-.4906146*J),rw(-.9787684*z+1.9161415*V+.033454*J),rw(.0719453*z-.2289914*V+1.4052427*J),this.opacity)}}));
EA(Hs,OA,EG(f7,{brighter:function(V){return new Hs(this.h,this.c,this.l+18*(V==null?1:V),this.opacity)},
darker:function(V){return new Hs(this.h,this.c,this.l-18*(V==null?1:V),this.opacity)},
rgb:function(){return lZ(this).rgb()}}));
var gjq=1.78277*-.29227-.1347134789;EA(d$,Ws,EG(f7,{brighter:function(V){V=V==null?x8:Math.pow(x8,V);return new d$(this.h,this.s,this.l*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new d$(this.h,this.s,this.l*V,this.opacity)},
rgb:function(){var V=isNaN(this.h)?0:(this.h+120)*Ipq,z=+this.l,J=isNaN(this.s)?0:this.s*z*(1-z),il=Math.cos(V);V=Math.sin(V);return new xD(255*(z+J*(-.14861*il+1.78277*V)),255*(z+J*(-.29227*il+-.90649*V)),255*(z+1.97294*il*J),this.opacity)}}));
var x2G=function J(z){function il(Xz,H6){var Vo=nQ((Xz=w$(Xz)).r,(H6=w$(H6)).r),C7=nQ(Xz.g,H6.g),Fa=nQ(Xz.b,H6.b),yP=G0(Xz.opacity,H6.opacity);return function(Xa){Xz.r=Vo(Xa);Xz.g=C7(Xa);Xz.b=Fa(Xa);Xz.opacity=yP(Xa);return Xz+""}}
var nQ=hM(z);il.gamma=J;return il}(1),v$D=Wo(function(z){var J=z.length-1;
return function(il){var nQ=il<=0?il=0:il>=1?(il=1,J-1):Math.floor(il*J),Xz=z[nQ],H6=z[nQ+1];return RM((il-nQ/J)*J,nQ>0?z[nQ-1]:2*Xz-H6,Xz,H6,nQ<J-1?z[nQ+2]:2*H6-Xz)}});
Wo(function(z){var J=z.length;return function(il){var nQ=Math.floor(((il%=1)<0?++il:il)*J);return RM((il-nQ/J)*J,z[(nQ+J-1)%J],z[nQ%J],z[(nQ+1)%J],z[(nQ+2)%J])}});
var xv8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,P3c=new RegExp(xv8.source,"g"),SBv=180/Math.PI,Ej6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},uF,h_l,Yv7,Fjo,MvU=eI(function(z){if(z==="none")return Ej6;uF||(uF=document.createElement("DIV"),h_l=document.documentElement,Yv7=document.defaultView);uF.style.transform=z;z=Yv7.getComputedStyle(h_l.appendChild(uF),null).getPropertyValue("transform");h_l.removeChild(uF);z=z.slice(7,-1).split(",");return m$(+z[0],+z[1],+z[2],+z[3],
+z[4],+z[5])},"px, ","px)","deg)"),pOH=eI(function(z){if(z==null)return Ej6;
Fjo||(Fjo=document.createElementNS("http://www.w3.org/2000/svg","g"));Fjo.setAttribute("transform",z);if(!(z=Fjo.transform.baseVal.consolidate()))return Ej6;z=z.matrix;return m$(z.a,z.b,z.c,z.d,z.e,z.f)},", ",")",")");
XJ(cX);XJ(G0);Rt(cX);Rt(G0);$T(cX);var KPS=$T(G0),gG=0,fY=0,ZC=0,Tal,tu,cb6=0,QS=0,Jbl=0,IE=typeof performance==="object"&&performance.now?performance:Date,s8w=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(z){setTimeout(z,17)};
FS.prototype=w2.prototype={constructor:FS,restart:function(z,J,il){if(typeof z!=="function")throw new TypeError("Fe");il=(il==null?za():+il)+(J==null?0:+J);this._next||tu===this||(tu?tu._next=this:Tal=this,tu=this);this._call=z;this._time=il;DI()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,DI())}};
var sAZ=F("start","end","interrupt"),xoU=[],YE$=Iz.prototype.constructor,A8N=0,Pg=Iz.prototype;y0.prototype=function(z){return Iz().transition(z)}.prototype={constructor:y0,
select:function(z){var J=this._name,il=this._id;typeof z!=="function"&&(z=K(z));for(var nQ=this._groups,Xz=nQ.length,H6=Array(Xz),Vo=0;Vo<Xz;++Vo)for(var C7=nQ[Vo],Fa=C7.length,yP=H6[Vo]=Array(Fa),Xa,xv,oz=0;oz<Fa;++oz)(Xa=C7[oz])&&(xv=z.call(Xa,Xa.__data__,oz,C7))&&("__data__"in Xa&&(xv.__data__=Xa.__data__),yP[oz]=xv,GL(yP[oz],J,il,oz,yP,ZZ(Xa,il)));return new y0(H6,this._parents,J,il)},
filter:function(z){typeof z!=="function"&&(z=pKw(z));for(var J=this._groups,il=J.length,nQ=Array(il),Xz=0;Xz<il;++Xz)for(var H6=J[Xz],Vo=H6.length,C7=nQ[Xz]=[],Fa,yP=0;yP<Vo;++yP)(Fa=H6[yP])&&z.call(Fa,Fa.__data__,yP,H6)&&C7.push(Fa);return new y0(nQ,this._parents,this._name,this._id)},
merge:function(z){if(z._id!==this._id)throw Error();var J=this._groups;z=z._groups;for(var il=J.length,nQ=Math.min(il,z.length),Xz=Array(il),H6=0;H6<nQ;++H6)for(var Vo=J[H6],C7=z[H6],Fa=Vo.length,yP=Xz[H6]=Array(Fa),Xa,xv=0;xv<Fa;++xv)if(Xa=Vo[xv]||C7[xv])yP[xv]=Xa;for(;H6<il;++H6)Xz[H6]=J[H6];return new y0(Xz,this._parents,this._name,this._id)},
selection:function(){return new YE$(this._groups,this._parents)},
transition:function(){for(var z=this._name,J=this._id,il=++A8N,nQ=this._groups,Xz=nQ.length,H6=0;H6<Xz;++H6)for(var Vo=nQ[H6],C7=Vo.length,Fa,yP=0;yP<C7;++yP)if(Fa=Vo[yP]){var Xa=ZZ(Fa,J);GL(Fa,z,il,yP,Vo,{time:Xa.time+Xa.delay+Xa.duration,delay:0,duration:Xa.duration,ease:Xa.ease})}return new y0(nQ,this._parents,z,il)},
call:Pg.call,nodes:Pg.nodes,node:Pg.node,size:Pg.size,empty:Pg.empty,each:Pg.each,on:function(z,J){var il=this._id;return arguments.length<2?ZZ(this.node(),il).on.on(z):this.each(uN$(il,z,J))},
attr:function(z,J){var il=N(z),nQ=il==="transform"?pOH:W0;return this.attrTween(z,typeof J==="function"?(il.local?SY:tmJ)(il,nQ,T7(this,"attr."+z,J)):J==null?(il.local?ISM:j$)(il):(il.local?gz:fSc)(il,nQ,J+""))},
attrTween:function(z,J){var il="attr."+z;if(arguments.length<2)return(il=this.tween(il))&&il._value;if(J==null)return this.tween(il,null);if(typeof J!=="function")throw Error();var nQ=N(z);return this.tween(il,(nQ.local?so:ZZU)(nQ,J))},
style:function(z,J,il){var nQ=z==="transform"?MvU:W0;return J==null?this.styleTween(z,whQ(z,nQ)).on("end.style."+z,CD$(z)):this.styleTween(z,typeof J==="function"?yNQ(z,nQ,T7(this,"style."+z,J)):NE$(z,nQ,J+""),il)},
styleTween:function(z,J,il){var nQ="style."+z;if(arguments.length<2)return(nQ=this.tween(nQ))&&nQ._value;if(J==null)return this.tween(nQ,null);if(typeof J!=="function")throw Error();return this.tween(nQ,npD(z,J,il==null?"":il))},
text:function(z){return this.tween("text",typeof z==="function"?U5S(T7(this,"text",z)):lvA(z==null?"":z+""))},
remove:function(){return this.on("end.remove",RhB(this._id))},
tween:function(z,J){var il=this._id;if(arguments.length<2){il=ZZ(this.node(),il).tween;for(var nQ=0,Xz=il.length,H6;nQ<Xz;++nQ)if((H6=il[nQ]).name===z)return H6.value;return null}return this.each((J==null?JC:I_)(il,z,J))},
delay:function(z){var J=this._id;return arguments.length?this.each((typeof z==="function"?PeB:GQ$)(J,z)):ZZ(this.node(),J).delay},
duration:function(z){var J=this._id;return arguments.length?this.each((typeof z==="function"?BE$:iDU)(J,z)):ZZ(this.node(),J).duration},
ease:function(z){var J=this._id;return arguments.length?this.each(F4$(J,z)):ZZ(this.node(),J).ease}};
var apl={time:null,delay:0,duration:250,ease:function(z){return((z*=2)<=1?z*z*z:(z-=2)*z*z+2)/2}};
Iz.prototype.transition=function(z){var J;if(z instanceof y0){var il=z._id;z=z._name}else il=++A8N,(J=apl).time=za(),z=z==null?null:z+"";for(var nQ=this._groups,Xz=nQ.length,H6=0;H6<Xz;++H6)for(var Vo=nQ[H6],C7=Vo.length,Fa,yP=0;yP<C7;++yP)if(Fa=Vo[yP]){var Xa=Fa,xv=z,oz=il,ez=yP,sx=Vo,Mm;if(!(Mm=J))a:{Mm=void 0;for(var KZ=il;!(Mm=Fa.__transition)||!(Mm=Mm[KZ]);)if(!(Fa=Fa.parentNode)){Mm=(apl.time=za(),apl);break a}}GL(Xa,xv,oz,ez,sx,Mm)}return new y0(nQ,this._parents,z,il)};
["e","w"].map(GlQ);["n","s"].map(GlQ);"n e s w nw ne se sw".split(" ").map(GlQ);B48.prototype=function(){return new B48}.prototype={constructor:B48,
moveTo:function(z,J){this._+="M"+(this._x0=this._x1=+z)+","+(this._y0=this._y1=+J)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(z,J){this._+="L"+(this._x1=+z)+","+(this._y1=+J)},
bezierCurveTo:function(z,J,il,nQ,Xz,H6){this._+="C"+ +z+","+ +J+","+ +il+","+ +nQ+","+(this._x1=+Xz)+","+(this._y1=+H6)},
rect:function(z,J,il,nQ){this._+="M"+(this._x0=this._x1=+z)+","+(this._y0=this._y1=+J)+"h"+ +il+"v"+ +nQ+"h"+-il+"Z"},
toString:function(){return this._}};
g2o.prototype=PIq.prototype={constructor:g2o,has:function(z){return" "+z in this},
get:function(z){return this[" "+z]},
set:function(z,J){this[" "+z]=J;return this},
remove:function(z){z=" "+z;return z in this&&delete this[z]},
clear:function(){for(var z in this)z[0]===" "&&delete this[z]},
keys:function(){var z=[],J;for(J in this)J[0]===" "&&z.push(J.slice(1));return z},
values:function(){var z=[],J;for(J in this)J[0]===" "&&z.push(this[J]);return z},
entries:function(){var z=[],J;for(J in this)J[0]===" "&&z.push({key:J.slice(1),value:this[J]});return z},
size:function(){var z=0,J;for(J in this)J[0]===" "&&++z;return z},
empty:function(){for(var z in this)if(z[0]===" ")return!1;return!0},
each:function(z){for(var J in this)J[0]===" "&&z(this[J],J.slice(1),this)}};
var Wh=PIq.prototype;SzJ.prototype=function(z,J){var il=new SzJ;if(z instanceof SzJ)z.each(function(H6){il.add(H6)});
else if(z){var nQ=-1,Xz=z.length;if(J==null)for(;++nQ<Xz;)il.add(z[nQ]);else for(;++nQ<Xz;)il.add(J(z[nQ],nQ,z))}return il}.prototype={constructor:SzJ,
has:Wh.has,add:function(z){this[" "+z]=z;return this},
remove:Wh.remove,clear:Wh.clear,values:Wh.keys,size:Wh.size,empty:Wh.empty,each:Wh.each};var iU7={},iLl={},AqZ=BkG(",").parse,ds$=BkG("\t").parse;FMG(AqZ);FMG(ds$);var Cp=function(z,J,il){J=new FP6(J==null?K42:J,il==null?avS:il,NaN,NaN,NaN,NaN);return z==null?J:J.addAll(z)}.prototype=FP6.prototype;
Cp.copy=function(){var z=new FP6(this._x,this._y,this._x0,this._y0,this._x1,this._y1),J=this._root,il,nQ;if(!J)return z;if(!J.length)return z._root=uOv(J),z;for(il=[{source:J,target:z._root=Array(4)}];J=il.pop();)for(var Xz=0;Xz<4;++Xz)if(nQ=J.source[Xz])nQ.length?il.push({source:nQ,target:J.target[Xz]=Array(4)}):J.target[Xz]=uOv(nQ);return z};
Cp.add=function(z){var J=+this._x.call(null,z),il=+this._y.call(null,z);return DFy(this.cover(J,il),J,il,z)};
Cp.addAll=function(z){var J,il,nQ=z.length,Xz,H6,Vo=Array(nQ),C7=Array(nQ),Fa=Infinity,yP=Infinity,Xa=-Infinity,xv=-Infinity;for(il=0;il<nQ;++il)isNaN(Xz=+this._x.call(null,J=z[il]))||isNaN(H6=+this._y.call(null,J))||(Vo[il]=Xz,C7[il]=H6,Xz<Fa&&(Fa=Xz),Xz>Xa&&(Xa=Xz),H6<yP&&(yP=H6),H6>xv&&(xv=H6));Xa<Fa&&(Fa=this._x0,Xa=this._x1);xv<yP&&(yP=this._y0,xv=this._y1);this.cover(Fa,yP).cover(Xa,xv);for(il=0;il<nQ;++il)DFy(this,Vo[il],C7[il],z[il]);return this};
Cp.cover=function(z,J){if(isNaN(z=+z)||isNaN(J=+J))return this;var il=this._x0,nQ=this._y0,Xz=this._x1,H6=this._y1;if(isNaN(il))Xz=(il=Math.floor(z))+1,H6=(nQ=Math.floor(J))+1;else if(il>z||z>Xz||nQ>J||J>H6){var Vo=Xz-il,C7=this._root,Fa;switch(Fa=(J<(nQ+H6)/2)<<1|z<(il+Xz)/2){case 0:do{var yP=Array(4);yP[Fa]=C7;C7=yP}while(Vo*=2,Xz=il+Vo,H6=nQ+Vo,z>Xz||J>H6);break;case 1:do yP=Array(4),yP[Fa]=C7,C7=yP;while(Vo*=2,il=Xz-Vo,H6=nQ+Vo,il>z||J>H6);break;case 2:do yP=Array(4),yP[Fa]=C7,C7=yP;while(Vo*=
2,Xz=il+Vo,nQ=H6-Vo,z>Xz||nQ>J);break;case 3:do yP=Array(4),yP[Fa]=C7,C7=yP;while(Vo*=2,il=Xz-Vo,nQ=H6-Vo,il>z||nQ>J)}this._root&&this._root.length&&(this._root=C7)}else return this;this._x0=il;this._y0=nQ;this._x1=Xz;this._y1=H6;return this};
Cp.data=function(){var z=[];this.visit(function(J){if(!J.length){do z.push(J.data);while(J=J.next)}});
return z};
Cp.extent=function(z){return arguments.length?this.cover(+z[0][0],+z[0][1]).cover(+z[1][0],+z[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Cp.find=function(z,J,il){var nQ=this._x0,Xz=this._y0,H6,Vo,C7,Fa,yP=this._x1,Xa=this._y1,xv=[],oz=this._root,ez;oz&&xv.push(new wK(oz,nQ,Xz,yP,Xa));il==null?il=Infinity:(nQ=z-il,Xz=J-il,yP=z+il,Xa=J+il,il*=il);for(;ez=xv.pop();)if(!(!(oz=ez.node)||(H6=ez.x0)>yP||(Vo=ez.y0)>Xa||(C7=ez.x1)<nQ||(Fa=ez.y1)<Xz))if(oz.length){ez=(H6+C7)/2;var sx=(Vo+Fa)/2;xv.push(new wK(oz[3],ez,sx,C7,Fa),new wK(oz[2],H6,sx,ez,Fa),new wK(oz[1],ez,Vo,C7,sx),new wK(oz[0],H6,Vo,ez,sx));if(oz=(J>=sx)<<1|z>=ez)ez=xv[xv.length-
1],xv[xv.length-1]=xv[xv.length-1-oz],xv[xv.length-1-oz]=ez}else if(ez=z-+this._x.call(null,oz.data),sx=J-+this._y.call(null,oz.data),ez=ez*ez+sx*sx,ez<il){var Mm=Math.sqrt(il=ez);nQ=z-Mm;Xz=J-Mm;yP=z+Mm;Xa=J+Mm;Mm=oz.data}return Mm};
Cp.remove=function(z){if(isNaN(Fa=+this._x.call(null,z))||isNaN(yP=+this._y.call(null,z)))return this;var J,il=this._root,nQ,Xz=this._x0,H6=this._y0,Vo=this._x1,C7=this._y1,Fa,yP,Xa,xv,oz,ez,sx;if(!il)return this;if(il.length)for(;;){(oz=Fa>=(Xa=(Xz+Vo)/2))?Xz=Xa:Vo=Xa;(ez=yP>=(xv=(H6+C7)/2))?H6=xv:C7=xv;if(!(J=il,il=il[sx=ez<<1|oz]))return this;if(!il.length)break;if(J[sx+1&3]||J[sx+2&3]||J[sx+3&3]){var Mm=J;var KZ=sx}}for(;il.data!==z;)if(!(nQ=il,il=il.next))return this;(z=il.next)&&delete il.next;
if(nQ)return z?nQ.next=z:delete nQ.next,this;if(!J)return this._root=z,this;z?J[sx]=z:delete J[sx];(il=J[0]||J[1]||J[2]||J[3])&&il===(J[3]||J[2]||J[1]||J[0])&&!il.length&&(Mm?Mm[KZ]=il:this._root=il);return this};
Cp.removeAll=function(z){for(var J=0,il=z.length;J<il;++J)this.remove(z[J]);return this};
Cp.root=function(){return this._root};
Cp.size=function(){var z=0;this.visit(function(J){if(!J.length){do++z;while(J=J.next)}});
return z};
Cp.visit=function(z){var J=[],il,nQ=this._root,Xz,H6,Vo,C7,Fa;for(nQ&&J.push(new wK(nQ,this._x0,this._y0,this._x1,this._y1));il=J.pop();)if(!z(nQ=il.node,H6=il.x0,Vo=il.y0,C7=il.x1,Fa=il.y1)&&nQ.length){il=(H6+C7)/2;var yP=(Vo+Fa)/2;(Xz=nQ[3])&&J.push(new wK(Xz,il,yP,C7,Fa));(Xz=nQ[2])&&J.push(new wK(Xz,H6,yP,il,Fa));(Xz=nQ[1])&&J.push(new wK(Xz,il,Vo,C7,yP));(Xz=nQ[0])&&J.push(new wK(Xz,H6,Vo,il,yP))}};
Cp.visitAfter=function(z){var J=[],il=[],nQ;for(this._root&&J.push(new wK(this._root,this._x0,this._y0,this._x1,this._y1));nQ=J.pop();){var Xz=nQ.node;if(Xz.length){var H6,Vo=nQ.x0,C7=nQ.y0,Fa=nQ.x1,yP=nQ.y1,Xa=(Vo+Fa)/2,xv=(C7+yP)/2;(H6=Xz[0])&&J.push(new wK(H6,Vo,C7,Xa,xv));(H6=Xz[1])&&J.push(new wK(H6,Xa,C7,Fa,xv));(H6=Xz[2])&&J.push(new wK(H6,Vo,xv,Xa,yP));(H6=Xz[3])&&J.push(new wK(H6,Xa,xv,Fa,yP))}il.push(nQ)}for(;nQ=il.pop();)z(nQ.node,nQ.x0,nQ.y0,nQ.x1,nQ.y1);return this};
Cp.x=function(z){return arguments.length?(this._x=z,this):this._x};
Cp.y=function(z){return arguments.length?(this._y=z,this):this._y};
var jH2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;D26.prototype=ukz.prototype;ukz.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 Nkt,y8G={"%":function(z,J){return(z*100).toFixed(J)},
b:function(z){return Math.round(z).toString(2)},
c:function(z){return z+""},
d:function(z){return Math.round(z).toString(10)},
e:function(z,J){return z.toExponential(J)},
f:function(z,J){return z.toFixed(J)},
g:function(z,J){return z.toPrecision(J)},
o:function(z){return Math.round(z).toString(8)},
p:function(z,J){return RmP(z*100,J)},
r:RmP,s:function(z,J){var il=suI(z,J);if(!il)return z+"";var nQ=il[0];il=il[1];il=il-(Nkt=Math.max(-8,Math.min(8,Math.floor(il/3)))*3)+1;var Xz=nQ.length;return il===Xz?nQ:il>Xz?nQ+Array(il-Xz+1).join("0"):il>0?nQ.slice(0,il)+"."+nQ.slice(il):"0."+Array(1-il).join("0")+suI(z,Math.max(0,J+il-1))[0]},
X:function(z){return Math.round(z).toString(16).toUpperCase()},
x:function(z){return Math.round(z).toString(16)}},CuG="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),JqS;
(function(z){return JqS=L4S(z)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});WU.prototype={constructor:WU,reset:function(){this.s=this.t=0},
add:function(z){nma(D0U,z,this.t);nma(this,D0U.s,this.s);this.s?this.t+=D0U.t:this.s=D0U.t},
valueOf:function(){return this.s}};
var D0U=new WU,Rp=Math.PI,H0=Rp/2,dFP=Rp/4,cqG=Rp*2,m2L=Rp/180,n9=Math.abs,XMg=Math.atan,KMG=Math.atan2,kL=Math.cos,Ig=Math.sin,PZz=Math.sqrt;new WU;new WU;new WU;var Q8l=new WU;(function(z,J,il,nQ){return function(Xz){function H6(yI,ey){z(yI,ey)&&Xz.point(yI,ey)}
function Vo(yI,ey){oz.point(yI,ey)}
function C7(){HI.point=Vo;oz.lineStart()}
function Fa(){HI.point=H6;oz.lineEnd()}
function yP(yI,ey){z1.push([yI,ey]);sx.point(yI,ey)}
function Xa(){sx.lineStart();z1=[]}
function xv(){yP(z1[0][0],z1[0][1]);sx.lineEnd();var yI=sx.clean(),ey=ez.result(),FJ=ey.length,zD;z1.pop();KZ.push(z1);z1=null;if(FJ)if(yI&1){if(FJ=ey[0],(ey=FJ.length-1)>0){Mm||(Xz.polygonStart(),Mm=!0);Xz.lineStart();for(yI=0;yI<ey;++yI)Xz.point((zD=FJ[yI])[0],zD[1]);Xz.lineEnd()}}else FJ>1&&yI&2&&ey.push(ey.pop().concat(ey.shift())),Ng.push(ey.filter(kQA))}
var oz=J(Xz),ez=W4Q(),sx=J(ez),Mm=!1,KZ,Ng,z1,HI={point:H6,lineStart:C7,lineEnd:Fa,polygonStart:function(){HI.point=yP;HI.lineStart=Xa;HI.lineEnd=xv;Ng=[];KZ=[]},
polygonEnd:function(){HI.point=H6;HI.lineStart=C7;HI.lineEnd=Fa;var yI=Ng,ey=yI.length;var FJ=-1;for(var zD=0,PS,Le;++FJ<ey;)zD+=yI[FJ].length;for(PS=Array(zD);--ey>=0;)for(Le=yI[ey],FJ=Le.length;--FJ>=0;)PS[--zD]=Le[FJ];Ng=PS;yI=KZ;ey=nQ[0];zD=nQ[1];var Uy=Ig(zD);FJ=[Ig(ey),-kL(ey),0];Le=PS=0;Q8l.reset();Uy===1?zD=H0+1E-6:Uy===-1&&(zD=-H0-1E-6);Uy=0;for(var MH=yI.length;Uy<MH;++Uy)if(us=(CH=yI[Uy]).length){var CH,us,au=CH[us-1],OD=au[0],Cg=au[1]/2+dFP,uLM=Ig(Cg),J8P=kL(Cg);for(Cg=0;Cg<us;++Cg,OD=
j8M,uLM=c8t,J8P=RW,au=RfI){var RfI=CH[Cg],j8M=RfI[0];RW=RfI[1]/2+dFP;var c8t=Ig(RW),RW=kL(RW),GZ=j8M-OD,LP6=GZ>=0?1:-1,r36=LP6*GZ,wwg=r36>Rp;uLM*=c8t;Q8l.add(KMG(uLM*LP6*Ig(r36),J8P*RW+uLM*kL(r36)));PS+=wwg?GZ+LP6*cqG:GZ;wwg^OD>=ey^j8M>=ey&&(au=UFa(ldL(au),ldL(RfI)),qvq(au),OD=UFa(FJ,au),qvq(OD),OD=(wwg^GZ>=0?-1:1)*xI6(OD[2]),zD>OD||zD===OD&&(au[0]||au[1]))&&(Le+=wwg^GZ>=0?1:-1)}}yI=(PS<-1E-6||PS<1E-6&&Q8l<-1E-6)^Le&1;Ng.length?(Mm||(Xz.polygonStart(),Mm=!0),HDD(Ng,ODG,yI,il,Xz)):yI&&(Mm||(Xz.polygonStart(),
Mm=!0),Xz.lineStart(),il(null,null,1,Xz),Xz.lineEnd());Mm&&(Xz.polygonEnd(),Mm=!1);Ng=KZ=null},
sphere:function(){Xz.polygonStart();Xz.lineStart();il(null,null,1,Xz);Xz.lineEnd();Xz.polygonEnd()}};
return HI}})(function(){return!0},function(z){var J=NaN,il=NaN,nQ=NaN,Xz;
return{lineStart:function(){z.lineStart();Xz=1},
point:function(H6,Vo){var C7=H6>0?Rp:-Rp,Fa=n9(H6-J);if(n9(Fa-Rp)<1E-6)z.point(J,il=(il+Vo)/2>0?H0:-H0),z.point(nQ,il),z.lineEnd(),z.lineStart(),z.point(C7,il),z.point(H6,il),Xz=0;else if(nQ!==C7&&Fa>=Rp){n9(J-nQ)<1E-6&&(J-=nQ*1E-6);n9(H6-C7)<1E-6&&(H6-=C7*1E-6);Fa=J;var yP=il,Xa=H6,xv,oz,ez=Ig(Fa-Xa);il=n9(ez)>1E-6?XMg((Ig(yP)*(oz=kL(Vo))*Ig(Xa)-Ig(Vo)*(xv=kL(yP))*Ig(Fa))/(xv*oz*ez)):(yP+Vo)/2;z.point(nQ,il);z.lineEnd();z.lineStart();z.point(C7,il);Xz=0}z.point(J=H6,il=Vo);nQ=C7},
lineEnd:function(){z.lineEnd();J=il=NaN},
clean:function(){return 2-Xz}}},function(z,J,il,nQ){z==null?(il*=H0,nQ.point(-Rp,il),nQ.point(0,il),nQ.point(Rp,il),nQ.point(Rp,0),nQ.point(Rp,-il),nQ.point(0,-il),nQ.point(-Rp,-il),nQ.point(-Rp,0),nQ.point(-Rp,il)):n9(z[0]-J[0])>1E-6?(z=z[0]<J[0]?Rp:-Rp,il=il*z/2,nQ.point(-z,il),nQ.point(0,il),nQ.point(z,il)):nQ.point(J[0],J[1])},[-Rp,
-H0]);new WU;new WU;new WU;new WU;R_J.prototype={constructor:R_J,point:function(z,J){this.stream.point(z,J)},
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()}};
kL(30*m2L);(function(z){return function(J){var il=new R_J,nQ;for(nQ in z)il[nQ]=z[nQ];il.stream=J;return il}})({point:function(z,J){this.stream.point(z*m2L,J*m2L)}});
hmt(function(z){return PZz(2/(1+z))}).invert=xs(function(z){return 2*xI6(z/2)});
hmt(function(z){return(z=z>1?0:z<-1?Rp:Math.acos(z))&&z/Ig(z)}).invert=xs(function(z){return z});
PZz(3);xs(XMg);xs(xI6);xs(function(z){return 2*XMg(z)});
PJ.prototype=adq.prototype={constructor:PJ,count:function(){return this.eachAfter(ehH)},
each:function(z){var J,il=[this],nQ;do{var Xz=il.reverse();for(il=[];J=Xz.pop();)if(z(J),J=J.children){var H6=0;for(nQ=J.length;H6<nQ;++H6)il.push(J[H6])}}while(il.length);return this},
eachAfter:function(z){for(var J,il=[this],nQ=[],Xz,H6;J=il.pop();)if(nQ.push(J),J=J.children)for(Xz=0,H6=J.length;Xz<H6;++Xz)il.push(J[Xz]);for(;J=nQ.pop();)z(J);return this},
eachBefore:function(z){for(var J,il=[this],nQ;J=il.pop();)if(z(J),J=J.children)for(nQ=J.length-1;nQ>=0;--nQ)il.push(J[nQ]);return this},
sum:function(z){return this.eachAfter(function(J){for(var il=+z(J.data)||0,nQ=J.children,Xz=nQ&&nQ.length;--Xz>=0;)il+=nQ[Xz].value;J.value=il})},
sort:function(z){return this.eachBefore(function(J){J.children&&J.children.sort(z)})},
path:function(z){var J=this;var il=J;var nQ=z;if(il!==nQ){var Xz=il.ancestors(),H6=nQ.ancestors(),Vo=null;il=Xz.pop();for(nQ=H6.pop();il===nQ;)Vo=il,il=Xz.pop(),nQ=H6.pop();il=Vo}for(nQ=[J];J!==il;)J=J.parent,nQ.push(J);for(J=nQ.length;z!==il;)nQ.splice(J,0,z),z=z.parent;return nQ},
ancestors:function(){for(var z=this,J=[z];z=z.parent;)J.push(z);return J},
links:function(){var z=this,J=[];z.each(function(il){il!==z&&J.push({source:il.parent,target:il})});
return J},
copy:function(){return adq(this).eachBefore(bDz)}};
(function(z,J){this._=z;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=J}).prototype=Object.create(PJ.prototype);
var wMg=new Date,CI6=new Date,TkG=$Q(function(){},function(z,J){z.setTime(+z+J)},function(z,J){return J-z});
TkG.every=function(z){z=Math.floor(z);return isFinite(z)&&z>0?z>1?$Q(function(J){J.setTime(Math.floor(J/z)*z)},function(J,il){J.setTime(+J+il*z)},function(J,il){return(il-J)/z}):TkG:null};
$Q(function(z){z.setTime(Math.floor(z/1E3)*1E3)},function(z,J){z.setTime(+z+J*1E3)},function(z,J){return(J-z)/1E3},function(z){return z.getUTCSeconds()});
$Q(function(z){z.setTime(Math.floor(z/6E4)*6E4)},function(z,J){z.setTime(+z+J*6E4)},function(z,J){return(J-z)/6E4},function(z){return z.getMinutes()});
$Q(function(z){var J=z.getTimezoneOffset()*6E4%36E5;J<0&&(J+=36E5);z.setTime(Math.floor((+z-J)/36E5)*36E5+J)},function(z,J){z.setTime(+z+J*36E5)},function(z,J){return(J-z)/36E5},function(z){return z.getHours()});
var Q$v=$Q(function(z){z.setHours(0,0,0,0)},function(z,J){z.setDate(z.getDate()+J)},function(z,J){return(J-z-(J.getTimezoneOffset()-z.getTimezoneOffset())*6E4)/864E5},function(z){return z.getDate()-1}),bPU=LD(0),y3U=LD(1);
LD(2);LD(3);var njc=LD(4);LD(5);LD(6);$Q(function(z){z.setDate(1);z.setHours(0,0,0,0)},function(z,J){z.setMonth(z.getMonth()+J)},function(z,J){return J.getMonth()-z.getMonth()+(J.getFullYear()-z.getFullYear())*12},function(z){return z.getMonth()});
var SG=$Q(function(z){z.setMonth(0,1);z.setHours(0,0,0,0)},function(z,J){z.setFullYear(z.getFullYear()+J)},function(z,J){return J.getFullYear()-z.getFullYear()},function(z){return z.getFullYear()});
SG.every=function(z){return isFinite(z=Math.floor(z))&&z>0?$Q(function(J){J.setFullYear(Math.floor(J.getFullYear()/z)*z);J.setMonth(0,1);J.setHours(0,0,0,0)},function(J,il){J.setFullYear(J.getFullYear()+il*z)}):null};
$Q(function(z){z.setUTCSeconds(0,0)},function(z,J){z.setTime(+z+J*6E4)},function(z,J){return(J-z)/6E4},function(z){return z.getUTCMinutes()});
$Q(function(z){z.setUTCMinutes(0,0,0)},function(z,J){z.setTime(+z+J*36E5)},function(z,J){return(J-z)/36E5},function(z){return z.getUTCHours()});
var XKv=$Q(function(z){z.setUTCHours(0,0,0,0)},function(z,J){z.setUTCDate(z.getUTCDate()+J)},function(z,J){return(J-z)/864E5},function(z){return z.getUTCDate()-1}),VvN=rE(0),N4z=rE(1);
rE(2);rE(3);var lpM=rE(4);rE(5);rE(6);$Q(function(z){z.setUTCDate(1);z.setUTCHours(0,0,0,0)},function(z,J){z.setUTCMonth(z.getUTCMonth()+J)},function(z,J){return J.getUTCMonth()-z.getUTCMonth()+(J.getUTCFullYear()-z.getUTCFullYear())*12},function(z){return z.getUTCMonth()});
var s0=$Q(function(z){z.setUTCMonth(0,1);z.setUTCHours(0,0,0,0)},function(z,J){z.setUTCFullYear(z.getUTCFullYear()+J)},function(z,J){return J.getUTCFullYear()-z.getUTCFullYear()},function(z){return z.getUTCFullYear()});
s0.every=function(z){return isFinite(z=Math.floor(z))&&z>0?$Q(function(J){J.setUTCFullYear(Math.floor(J.getUTCFullYear()/z)*z);J.setUTCMonth(0,1);J.setUTCHours(0,0,0,0)},function(J,il){J.setUTCFullYear(J.getUTCFullYear()+il*z)}):null};
var mFw={"-":"",_:" ",0:"0"},b2=/^\s*\d+/,zH2=/^%/,$sz=/[\\^$*+?|[\]().{}]/g,CsI;(function(z){CsI=vp$(z);PvU=CsI.utcFormat;Gds=CsI.utcParse;return CsI})({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||PvU("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Gds("%Y-%m-%dT%H:%M:%S.%LZ");j5("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
j5("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");j5("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");j5("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");j5("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");j5("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");j5("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
j5("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");j5("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");j5("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");j5("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");j5("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Tp$=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(j5);Nn(Tp$);var I0Q=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(j5);Nn(I0Q);var f0B=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(j5);Nn(f0B);var tv2=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(j5);
Nn(tv2);var ZP$=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(j5);Nn(ZP$);var g$U=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(j5);Nn(g$U);var SEA=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(j5);Nn(SEA);var sRQ=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(j5);Nn(sRQ);var xsD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(j5);Nn(xsD);var Pkz=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(j5);Nn(Pkz);var GKN=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(j5);Nn(GKN);var B1D=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(j5);Nn(B1D);var il2=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(j5);Nn(il2);var Fk$=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(j5);Nn(Fk$);var D1N=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(j5);Nn(D1N);var udS=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(j5);Nn(udS);var RLN=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(j5);Nn(RLN);var wxS=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(j5);Nn(wxS);var Cd$=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(j5);Nn(Cd$);var N1$=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(j5);Nn(N1$);var yYZ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(j5);Nn(yYZ);var nGU=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(j5);Nn(nGU);var lF$=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(j5);Nn(lF$);var U1H=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(j5);Nn(U1H);var qWQ=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(j5);Nn(qWQ);var EGz=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(j5);Nn(EGz);var hLS=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(j5);Nn(hLS);KPS(Ws(300,.5,0),Ws(-240,.5,1));KPS(Ws(-100,.75,.35),Ws(80,1.5,.8));KPS(Ws(260,.75,.35),Ws(80,1.5,.8));Ws();w$();itl(j5("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
itl(j5("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
itl(j5("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
itl(j5("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
zmw.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(z,J){z=+z;J=+J;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(z,J):this._context.moveTo(z,J);break;case 1:this._point=2;default:this._context.lineTo(z,J)}}};
(function(z){function J(il){return new bUN(z(il))}
J._curve=z;return J})(function(z){return new zmw(z)});
bUN.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(z,J){this._curve.point(J*Math.sin(z),J*-Math.cos(z))}};
qBg.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:U2L(this,this._t0,vmT(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(z,J){var il=NaN;z=+z;J=+J;if(z!==this._x1||J!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(z,J):this._context.moveTo(z,J);break;case 1:this._point=2;break;case 2:this._point=3;U2L(this,vmT(this,il=VqU(this,z,J)),il);break;default:U2L(this,this._t0,il=VqU(this,z,J))}this._x0=this._x1;this._x1=z;this._y0=this._y1;this._y1=J;this._t0=il}}};
(function(z){this._context=new omU(z)}.prototype=Object.create(qBg.prototype)).point=function(z,J){qBg.prototype.point.call(this,J,z)};
omU.prototype={moveTo:function(z,J){this._context.moveTo(J,z)},
closePath:function(){this._context.closePath()},
lineTo:function(z,J){this._context.lineTo(J,z)},
bezierCurveTo:function(z,J,il,nQ,Xz,H6){this._context.bezierCurveTo(J,z,nQ,il,H6,Xz)}};
F$.prototype={constructor:F$,scale:function(z){return z===1?this:new F$(this.k*z,this.x,this.y)},
translate:function(z,J){return z===0&J===0?this:new F$(this.k,this.x+this.k*z,this.y+this.k*J)},
apply:function(z){return[z[0]*this.k+this.x,z[1]*this.k+this.y]},
invert:function(z){return[(z[0]-this.x)/this.k,(z[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new F$(1,0,0);GRI=M8;rN.svg=rN.svg;rN.xhtml=rN.xhtml;rN.xlink=rN.xlink;rN.xml=rN.xml;rN.xmlns=rN.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 B6a="hammer_"+(Math.random()*1E6|0),ixw=function(){var G=document||document;if(!G[B6a]){var B=function(){(function(F,D,u,R){function N(OS,Ag,gU){return setTimeout(a(OS,gU),Ag)}
function y(OS,Ag,gU){return Array.isArray(OS)?(U(OS,gU[Ag],gU),!0):!1}
function U(OS,Ag,gU){var rw;if(OS)if(OS.forEach)OS.forEach(Ag,gU);else if(OS.length!==R){var LN=0;for(rw=OS.length;LN<rw;LN++)Ag.call(gU,OS[LN],LN,OS)}else for(LN in OS)OS.hasOwnProperty(LN)&&Ag.call(gU,OS[LN],LN,OS)}
function q(OS,Ag,gU){for(var rw=Object.keys(Ag),LN=0,kS=rw.length;LN<kS;LN++)if(!gU||gU&&OS[rw[LN]]===R)OS[rw[LN]]=Ag[rw[LN]];return OS}
function h(OS,Ag){return q(OS,Ag,!0)}
function K(OS,Ag,gU){Ag=Ag.prototype;var rw=OS.prototype=Object.create(Ag);rw.constructor=OS;rw._super=Ag;gU&&q(rw,gU)}
function a(OS,Ag){return function(){return OS.apply(Ag,arguments)}}
function m(OS,Ag){return typeof OS=="function"?OS.apply(Ag?Ag[0]||R:R,Ag):OS}
function L(OS,Ag,gU){U(e(Ag),function(rw){OS.addEventListener(rw,gU,!1)})}
function W(OS,Ag,gU){U(e(Ag),function(rw){OS.removeEventListener(rw,gU,!1)})}
function e(OS){return OS.trim().split(/\s+/g)}
function b(OS,Ag,gU){if(OS.indexOf&&!gU)return OS.indexOf(Ag);for(var rw=0,LN=OS.length;rw<LN;rw++)if(gU&&OS[rw][gU]==Ag||!gU&&OS[rw]===Ag)return rw;return-1}
function M(OS,Ag,gU){for(var rw=[],LN=[],kS=0,OA=OS.length;kS<OA;kS++){var Hs=Ag?OS[kS][Ag]:OS[kS];b(LN,Hs)<0&&rw.push(OS[kS]);LN[kS]=Hs}gU&&(rw=Ag?rw.sort(function(Ws,d$){return Ws[Ag]>d$[Ag]}):rw.sort());
return rw}
function t(OS,Ag){for(var gU,rw=Ag[0].toUpperCase()+Ag.slice(1),LN=0,kS=qH.length;LN<kS;LN++)if(gU=(gU=qH[LN])?gU+rw:Ag,gU in OS)return gU;return R}
function T(OS,Ag){var gU=this;this.manager=OS;this.callback=Ag;this.element=OS.element;this.target=OS.options.inputTarget;this.domHandler=function(rw){m(OS.options.enable,[OS])&&gU.handler(rw)};
this.evEl&&L(this.element,this.evEl,this.domHandler);this.evTarget&&L(this.target,this.evTarget,this.domHandler);this.evWin&&L(F,this.evWin,this.domHandler)}
function A(OS){var Ag;NH?Ag=v6:Jj?Ag=Jg:M8?Ag=c6:Ag=aI;return new Ag(OS,Z)}
function Z(OS,Ag,gU){var rw=gU.pointers.length,LN=gU.changedPointers.length,kS=Ag&1&&rw-LN===0;gU.isFirst=!!kS;gU.isFinal=!!(Ag&12&&rw-LN===0);kS&&(OS.session={});gU.eventType=Ag;Ag=OS.session;rw=gU.pointers;LN=rw.length;Ag.firstInput||(Ag.firstInput=P(gU));LN>1&&!Ag.firstMultiple?Ag.firstMultiple=P(gU):LN===1&&(Ag.firstMultiple=!1);kS=Ag.firstInput;var OA=(LN=Ag.firstMultiple)?LN.center:kS.center,Hs=gU.center=RI(rw);gU.timeStamp=EA();gU.deltaTime=gU.timeStamp-kS.timeStamp;gU.angle=US(OA,Hs);gU.distance=
hg(OA,Hs);kS=gU.center;OA=Ag.offsetDelta||{};Hs=Ag.prevDelta||{};var Ws=Ag.prevInput||{};if(gU.eventType===1||Ws.eventType===4)Hs=Ag.prevDelta={x:Ws.deltaX||0,y:Ws.deltaY||0},OA=Ag.offsetDelta={x:kS.x,y:kS.y};gU.deltaX=Hs.x+(kS.x-OA.x);gU.deltaY=Hs.y+(kS.y-OA.y);gU.offsetDirection=yo(gU.deltaX,gU.deltaY);LN?(kS=LN.pointers,kS=hg(rw[0],rw[1],w$)/hg(kS[0],kS[1],w$)):kS=1;gU.scale=kS;LN?(LN=LN.pointers,rw=US(rw[1],rw[0],w$)-US(LN[1],LN[0],w$)):rw=0;gU.rotation=rw;OA=Ag.lastInterval||gU;rw=gU.timeStamp-
OA.timeStamp;gU.eventType!=8&&(rw>25||OA.velocity===R)?(kS=OA.deltaX-gU.deltaX,OA=OA.deltaY-gU.deltaY,Hs=kS/rw||0,Ws=OA/rw||0,rw=Hs,LN=Ws,Hs=N8(Hs)>N8(Ws)?Hs:Ws,kS=yo(kS,OA),Ag.lastInterval=gU):(Hs=OA.velocity,rw=OA.velocityX,LN=OA.velocityY,kS=OA.direction);gU.velocity=Hs;gU.velocityX=rw;gU.velocityY=LN;gU.direction=kS;Ag=OS.element;a:{for(rw=gU.srcEvent.target;rw;){if(rw==Ag){rw=!0;break a}rw=rw.parentNode}rw=!1}rw&&(Ag=gU.srcEvent.target);gU.target=Ag;OS.emit("hammer.input",gU);OS.recognize(gU);
OS.session.prevInput=gU}
function P(OS){for(var Ag=[],gU=0;gU<OS.pointers.length;gU++)Ag[gU]={clientX:Iz(OS.pointers[gU].clientX),clientY:Iz(OS.pointers[gU].clientY)};return{timeStamp:EA(),pointers:Ag,center:RI(Ag),deltaX:OS.deltaX,deltaY:OS.deltaY}}
function RI(OS){var Ag=OS.length;if(Ag===1)return{x:Iz(OS[0].clientX),y:Iz(OS[0].clientY)};for(var gU=0,rw=0,LN=0;LN<Ag;LN++)gU+=OS[LN].clientX,rw+=OS[LN].clientY;return{x:Iz(gU/Ag),y:Iz(rw/Ag)}}
function yo(OS,Ag){return OS===Ag?1:N8(OS)>=N8(Ag)?OS>0?2:4:Ag>0?8:16}
function hg(OS,Ag,gU){gU||(gU=JT);var rw=Ag[gU[0]]-OS[gU[0]];OS=Ag[gU[1]]-OS[gU[1]];return Math.sqrt(rw*rw+OS*OS)}
function US(OS,Ag,gU){gU||(gU=JT);return Math.atan2(Ag[gU[1]]-OS[gU[1]],Ag[gU[0]]-OS[gU[0]])*180/Math.PI}
function aI(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;T.apply(this,arguments)}
function v6(){this.evEl=$d;this.evWin=DB;T.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Jg(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};T.apply(this,arguments)}
function c6(){T.apply(this,arguments);var OS=a(this.handler,this);this.touch=new Jg(this.manager,OS);this.mouse=new aI(this.manager,OS)}
function q8(OS,Ag){this.manager=OS;this.set(Ag)}
function n7(OS){if(OS.indexOf("none")>-1)return"none";var Ag=OS.indexOf("pan-x")>-1,gU=OS.indexOf("pan-y")>-1;return Ag&&gU?"pan-x pan-y":Ag||gU?Ag?"pan-x":"pan-y":OS.indexOf("manipulation")>-1?"manipulation":"auto"}
function Ts(OS){this.id=EG++;this.manager=null;this.options=h(OS||{},this.defaults);OS=this.options.enable;this.options.enable=OS===R?!0:OS;this.state=1;this.simultaneous={};this.requireFail=[]}
function hT(OS){return OS==16?"down":OS==8?"up":OS==2?"left":OS==4?"right":""}
function L7(OS,Ag){return(Ag=Ag.manager)?Ag.get(OS):OS}
function K7(){Ts.apply(this,arguments)}
function kD(){K7.apply(this,arguments);this.pY=this.pX=null}
function Rz(){K7.apply(this,arguments)}
function KQ(){Ts.apply(this,arguments);this._input=this._timer=null}
function pQ(){K7.apply(this,arguments)}
function aq(){K7.apply(this,arguments)}
function Zq(){Ts.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function eN(OS,Ag){Ag=Ag||{};var gU=Ag.recognizers;Ag.recognizers=gU===R?eN.defaults.preset:gU;return new Ps(OS,Ag)}
function Ps(OS,Ag){Ag=Ag||{};this.options=h(Ag,eN.defaults);this.options.inputTarget=this.options.inputTarget||OS;this.handlers={};this.session={};this.recognizers=[];this.element=OS;this.input=A(this);this.touchAction=new q8(this,this.options.touchAction);el(this,!0);U(Ag.recognizers,function(gU){var rw=this.add(new gU[0](gU[1]));gU[2]&&rw.recognizeWith(gU[2]);gU[3]&&rw.requireFailure(gU[2])},this)}
function el(OS,Ag){var gU=OS.element;U(OS.options.cssProps,function(rw,LN){gU.style[t(gU.style,LN)]=Ag?rw:""})}
function sG(OS,Ag){var gU=D.createEvent("Event");gU.initEvent(OS,!0,!0);gU.gesture=Ag;Ag.target.dispatchEvent(gU)}
var qH=" webkit moz MS ms o".split(" "),TL=D.createElement("div"),Iz=Math.round,N8=Math.abs,EA=Date.now,EG=1,f7=/mobile|tablet|ip(ad|hone|od)|android/i,M8="ontouchstart"in F,NH=t(F,"PointerEvent")!==R,Jj=M8&&f7.test(navigator.userAgent),JT=["x","y"],w$=["clientX","clientY"];T.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(F,this.evWin,this.domHandler)}};
var xD={mousedown:1,mousemove:2,mouseup:4};K(aI,T,{handler:function(OS){var Ag=xD[OS.type];Ag&1&&OS.button===0&&(this.pressed=!0);Ag&2&&OS.which!==1&&(Ag=4);this.pressed&&this.allow&&(Ag&4&&(this.pressed=!1),this.callback(this.manager,Ag,{pointers:[OS],changedPointers:[OS],pointerType:"mouse",srcEvent:OS}))}});
var ia={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},$0={2:"touch",3:"pen",4:"mouse",5:"kinect"},$d="pointerdown",DB="pointermove pointerup pointercancel";F.MSPointerEvent&&($d="MSPointerDown",DB="MSPointerMove MSPointerUp MSPointerCancel");K(v6,T,{handler:function(OS){var Ag=this.store,gU=!1,rw=OS.type.toLowerCase().replace("ms","");rw=ia[rw];var LN=$0[OS.pointerType]||OS.pointerType;rw&1&&(OS.button===0||LN=="touch")?Ag.push(OS):rw&12&&(gU=!0);var kS=b(Ag,OS.pointerId,"pointerId");
kS<0||(Ag[kS]=OS,this.callback(this.manager,rw,{pointers:Ag,changedPointers:[OS],pointerType:LN,srcEvent:OS}),gU&&Ag.splice(kS,1))}});
var Sy={touchstart:1,touchmove:2,touchend:4,touchcancel:8};K(Jg,T,{handler:function(OS){var Ag=Sy[OS.type];var gU=Array.prototype.slice.call(OS.touches,0);var rw=this.targetIds;if(Ag&3&&gU.length===1)rw[gU[0].identifier]=!0,rw=[gU,gU];else{var LN,kS=Array.prototype.slice.call(OS.targetTouches,0),OA=Array.prototype.slice.call(OS.changedTouches,0),Hs=[];if(Ag===1)for(gU=0,LN=kS.length;gU<LN;gU++)rw[kS[gU].identifier]=!0;gU=0;for(LN=OA.length;gU<LN;gU++)rw[OA[gU].identifier]&&Hs.push(OA[gU]),Ag&12&&
delete rw[OA[gU].identifier];rw=Hs.length?[M(kS.concat(Hs),"identifier",!0),Hs]:void 0}rw&&this.callback(this.manager,Ag,{pointers:rw[0],changedPointers:rw[1],pointerType:"touch",srcEvent:OS})}});
K(c6,T,{handler:function(OS,Ag,gU){var rw=gU.pointerType=="mouse";if(gU.pointerType=="touch")this.mouse.allow=!1;else if(rw&&!this.mouse.allow)return;Ag&12&&(this.mouse.allow=!0);this.callback(OS,Ag,gU)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var HY=t(TL.style,"touchAction"),lZ=HY!==R;q8.prototype={set:function(OS){OS=="compute"&&(OS=this.compute());lZ&&(this.manager.element.style[HY]=OS);this.actions=OS.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var OS=[];U(this.manager.recognizers,function(Ag){m(Ag.options.enable,[Ag])&&(OS=OS.concat(Ag.getTouchAction()))});
return n7(OS.join(" "))},
preventDefaults:function(OS){if(!lZ){var Ag=OS.srcEvent;OS=OS.offsetDirection;if(this.manager.session.prevented)Ag.preventDefault();else{var gU=this.actions,rw=gU.indexOf("none")>-1,LN=gU.indexOf("pan-y")>-1;gU=gU.indexOf("pan-x")>-1;if(rw||LN&&gU||LN&&OS&6||gU&&OS&24)return this.preventSrc(Ag)}}},
preventSrc:function(OS){this.manager.session.prevented=!0;OS.preventDefault()}};
Ts.prototype={defaults:{},set:function(OS){q(this.options,OS);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(OS){if(y(OS,"recognizeWith",this))return this;var Ag=this.simultaneous;OS=L7(OS,this);Ag[OS.id]||(Ag[OS.id]=OS,OS.recognizeWith(this));return this},
dropRecognizeWith:function(OS){if(y(OS,"dropRecognizeWith",this))return this;OS=L7(OS,this);delete this.simultaneous[OS.id];return this},
requireFailure:function(OS){if(y(OS,"requireFailure",this))return this;var Ag=this.requireFail;OS=L7(OS,this);b(Ag,OS)===-1&&(Ag.push(OS),OS.requireFailure(this));return this},
dropRequireFailure:function(OS){if(y(OS,"dropRequireFailure",this))return this;OS=L7(OS,this);OS=b(this.requireFail,OS);OS>-1&&this.requireFail.splice(OS,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(OS){return!!this.simultaneous[OS.id]},
emit:function(OS){function Ag(LN){gU.manager.emit(gU.options.event+(LN?rw&16?"cancel":rw&8?"end":rw&4?"move":rw&2?"start":"":""),OS)}
var gU=this,rw=this.state;rw<8&&Ag(!0);Ag();rw>=8&&Ag(!0)},
tryEmit:function(OS){if(this.canEmit())return this.emit(OS);this.state=32},
canEmit:function(){for(var OS=0;OS<this.requireFail.length;OS++)if(!(this.requireFail[OS].state&33))return!1;return!0},
recognize:function(OS){OS=q({},OS);m(this.options.enable,[this,OS])?(this.state&56&&(this.state=1),this.state=this.process(OS),this.state&30&&this.tryEmit(OS)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
K(K7,Ts,{defaults:{pointers:1},attrTest:function(OS){var Ag=this.options.pointers;return Ag===0||OS.pointers.length===Ag},
process:function(OS){var Ag=this.state,gU=OS.eventType,rw=Ag&6;OS=this.attrTest(OS);return rw&&(gU&8||!OS)?Ag|16:rw||OS?gU&4?Ag|8:Ag&2?Ag|4:2:32}});
K(kD,K7,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var OS=this.options.direction;if(OS===30)return["none"];var Ag=[];OS&6&&Ag.push("pan-y");OS&24&&Ag.push("pan-x");return Ag},
directionTest:function(OS){var Ag=this.options,gU=!0,rw=OS.distance,LN=OS.direction,kS=OS.deltaX,OA=OS.deltaY;LN&Ag.direction||(Ag.direction&6?(LN=kS===0?1:kS<0?2:4,gU=kS!=this.pX,rw=Math.abs(OS.deltaX)):(LN=OA===0?1:OA<0?8:16,gU=OA!=this.pY,rw=Math.abs(OS.deltaY)));OS.direction=LN;return gU&&rw>Ag.threshold&&LN&Ag.direction},
attrTest:function(OS){return K7.prototype.attrTest.call(this,OS)&&(this.state&2||!(this.state&2)&&this.directionTest(OS))},
emit:function(OS){this.pX=OS.deltaX;this.pY=OS.deltaY;var Ag=hT(OS.direction);Ag&&this.manager.emit(this.options.event+Ag,OS);this._super.emit.call(this,OS)}});
K(Rz,K7,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(OS){return this._super.attrTest.call(this,OS)&&(Math.abs(OS.scale-1)>this.options.threshold||this.state&2)},
emit:function(OS){this._super.emit.call(this,OS);OS.scale!==1&&this.manager.emit(this.options.event+(OS.scale<1?"in":"out"),OS)}});
K(KQ,Ts,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(OS){var Ag=this.options,gU=OS.pointers.length===Ag.pointers,rw=OS.distance<Ag.threshold,LN=OS.deltaTime>Ag.time;this._input=OS;if(!rw||!gU||OS.eventType&12&&!LN)this.reset();else if(OS.eventType&1)this.reset(),this._timer=N(function(){this.state=8;this.tryEmit()},Ag.time,this);
else if(OS.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(OS){this.state===8&&(OS&&OS.eventType&4?this.manager.emit(this.options.event+"up",OS):(this._input.timeStamp=EA(),this.manager.emit(this.options.event,this._input)))}});
K(pQ,K7,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(OS){return this._super.attrTest.call(this,OS)&&(Math.abs(OS.rotation)>this.options.threshold||this.state&2)}});
K(aq,K7,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return kD.prototype.getTouchAction.call(this)},
attrTest:function(OS){var Ag=this.options.direction;if(Ag&30)var gU=OS.velocity;else Ag&6?gU=OS.velocityX:Ag&24&&(gU=OS.velocityY);return this._super.attrTest.call(this,OS)&&Ag&OS.direction&&N8(gU)>this.options.velocity&&OS.eventType&4},
emit:function(OS){var Ag=hT(OS.direction);Ag&&this.manager.emit(this.options.event+Ag,OS);this.manager.emit(this.options.event,OS)}});
K(Zq,Ts,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(OS){var Ag=this.options,gU=OS.pointers.length===Ag.pointers,rw=OS.distance<Ag.threshold,LN=OS.deltaTime<Ag.time;this.reset();if(OS.eventType&1&&this.count===0)return this.failTimeout();if(rw&&LN&&gU){if(OS.eventType!=4)return this.failTimeout();gU=this.pTime?OS.timeStamp-this.pTime<Ag.interval:!0;rw=!this.pCenter||hg(this.pCenter,OS.center)<Ag.posThreshold;this.pTime=OS.timeStamp;this.pCenter=OS.center;rw&&gU?this.count+=1:this.count=1;this._input=OS;if(this.count%Ag.taps===0)return this.hasRequireFailures()?
(this._timer=N(function(){this.state=8;this.tryEmit()},Ag.interval,this),2):8}return 32},
failTimeout:function(){this._timer=N(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))}});
eN.VERSION="2.0.2";eN.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[pQ,{enable:!1}],[Rz,{enable:!1},["rotate"]],[aq,{direction:6}],[kD,{direction:6},["swipe"]],[Zq],[Zq,{event:"doubletap",taps:2},["tap"]],[KQ]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ps.prototype={set:function(OS){q(this.options,OS);return this},
stop:function(OS){this.session.stopped=OS?2:1},
recognize:function(OS){var Ag=this.session;if(!Ag.stopped){this.touchAction.preventDefaults(OS);var gU=this.recognizers,rw=Ag.curRecognizer;if(!rw||rw&&rw.state&8)rw=Ag.curRecognizer=null;for(var LN=0,kS=gU.length;LN<kS;LN++){var OA=gU[LN];Ag.stopped===2||rw&&OA!=rw&&!OA.canRecognizeWith(rw)?OA.reset():OA.recognize(OS);!rw&&OA.state&14&&(rw=Ag.curRecognizer=OA)}}},
get:function(OS){if(OS instanceof Ts)return OS;for(var Ag=this.recognizers,gU=0;gU<Ag.length;gU++)if(Ag[gU].options.event==OS)return Ag[gU];return null},
add:function(OS){if(y(OS,"add",this))return this;var Ag=this.get(OS.options.event);Ag&&this.remove(Ag);this.recognizers.push(OS);OS.manager=this;this.touchAction.update();return OS},
remove:function(OS){if(y(OS,"remove",this))return this;var Ag=this.recognizers;OS=this.get(OS);Ag.splice(b(Ag,OS),1);this.touchAction.update();return this},
on:function(OS,Ag){var gU=this.handlers;U(e(OS),function(rw){gU[rw]=gU[rw]||[];gU[rw].push(Ag)});
return this},
off:function(OS,Ag){var gU=this.handlers;U(e(OS),function(rw){Ag?gU[rw].splice(b(gU[rw],Ag),1):delete gU[rw]});
return this},
emit:function(OS,Ag){this.options.domEvents&&sG(OS,Ag);var gU=this.handlers[OS]&&this.handlers[OS].slice();if(gU&&gU.length){Ag.type=OS;Ag.preventDefault=function(){Ag.srcEvent.preventDefault()};
OS=0;for(var rw=gU.length;OS<rw;OS++)gU[OS](Ag)}},
destroy:function(){this.element&&el(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
q(eN,{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:Ps,Input:T,TouchAction:q8,Recognizer:Ts,AttrRecognizer:K7,Tap:Zq,Pan:kD,Swipe:aq,Pinch:Rz,Rotate:pQ,Press:KQ,on:L,off:W,each:U,merge:h,extend:q,inherit:K,bindFn:a,prefixed:t});
F[u]=eN})(window,document,"Hammer");
return window.Hammer}.call({});
B.DOCUMENT=G;G[B6a]=B}return G[B6a]};/*

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

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
*/
_.UF({_template:function(){if(tUa!==void 0)return tUa;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;fI7===void 0&&(fI7=document.createElement("template"));var D=fI7;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return tUa=G},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.DW,_.xC],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(G){this.$.textarea.selectionStart=G},set selectionEnd(G){this.$.textarea.selectionEnd=G},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var G=this.$.textarea.validity.valid;G&&(this.required&&this.value===""?G=!1:this.hasValidator()&&(G=_.DW.validate.call(this,this.value)));this.invalid=!G;this.fire("iron-input-validate");return G},
_bindValueChanged:function(G){this.value=G},
_valueChanged:function(G){var B=this.textarea;B&&(B.value!==G&&(B.value=G||G===0?G:""),this.bindValue=G,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(G){var B=_.u2(G).path;this.value=B?B[0].value:G.target.value},
_constrain:function(G){var B;G=G||[""];for(B=this.maxRows>0&&G.length>this.maxRows?G.slice(0,this.maxRows):G.slice(0);this.rows>0&&B.length<this.rows;)B.push("");return B.join("\n")+"\u00a0"},
_valueForMirror:function(){var G=this.textarea;if(G)return this.tokens=G&&G.value?G.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var ZXa;var gzU;_.UF({_template:function(){if(gzU!==void 0)return gzU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;ZXa===void 0&&(ZXa=document.createElement("template"));var D=ZXa;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return gzU=G},
is:"tp-yt-iron-collapse",behaviors:[_.Rc],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(G,B){G=G==="auto"?"":G;B=B&&!this.noAnimation&&this.isAttached&&this._desiredSize!==G;this._desiredSize=G;this._updateTransition(!1);B&&(B=this._calcSize(),G===""&&(this.style[this._dimensionMax]="",G=this._calcSize()),this.style[this._dimensionMax]=B,this.scrollTop=this.scrollTop,this._updateTransition(!0),B=G!==B);this.style[this._dimensionMax]=G;B||this._transitionEnd()},
enableTransition:function(G){_.DT._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!G},
_updateTransition:function(G){this.style.transitionDuration=G&&!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(G){_.u2(G).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var S88;var sDT;var xVT=void 0,Pcw={properties:{sizingTarget:{type:Object,value:function(){var G;return(G=this.hostElement)!=null?G: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},addSpacing:{type:Boolean,value:!1}},get _defaultPositionTarget(){var G,
B=_.u2((G=this.hostElement)!=null?G:this).parentNode;B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(B=B.host);return B},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var G;this._memoizedIsRTL=window.getComputedStyle((G=this.hostElement)!=
null?G:this).direction=="rtl"}return this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var G;window.getComputedStyle((G=this.hostElement)!=null?G: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 G,B=window.getComputedStyle((G=this.hostElement)!=null?G:this);G=window.getComputedStyle(this.sizingTarget);var F,D,u;this._fitInfo={inlineStyle:{top:((F=this.hostElement)!=null?F:this).style.top||"",left:((D=this.hostElement)!=null?D:this).style.left||"",position:((u=this.hostElement)!=null?u:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:B.top!=="auto"?"top":B.bottom!=="auto"?"bottom":null,horizontally:B.left!=="auto"?"left":B.right!=="auto"?"right":null},sizedBy:{height:G.maxHeight!=="none",width:G.maxWidth!=="none",minWidth:parseInt(G.minWidth,10)||0,minHeight:parseInt(G.minHeight,10)||0},margin:{top:parseInt(B.marginTop,10)||0,right:parseInt(B.marginRight,10)||0,bottom:parseInt(B.marginBottom,10)||0,left:parseInt(B.marginLeft,10)||0}}}},
resetFit:function(){var G=this._fitInfo||{},B;for(B in G.sizerInlineStyle)this.sizingTarget.style[B]=G.sizerInlineStyle[B];for(B in G.inlineStyle){var F=void 0;((F=this.hostElement)!=null?F:this).style[B]=G.inlineStyle[B]}this._fitInfo=null},
refit:function(){var G=this.sizingTarget.scrollLeft,B=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=G;this.sizingTarget.scrollTop=B},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var G;((G=this.hostElement)!=null?G:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var B;((B=this.hostElement)!=null?B:this).style.left="0px";var F;((F=this.hostElement)!=null?F:this).style.top="0px";var D,u=((D=this.hostElement)!=null?D:this).getBoundingClientRect();F=this.__getNormalizedRect(this.positionTarget);D=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(D={left:D.left+24,right:D.right-24,top:D.top+24,bottom:D.bottom-24});if(this.expandSizingTargetForScrollbars){var R=this.sizingTarget.offsetWidth;var N=this.sizingTarget.offsetHeight;var y=this.sizingTarget.clientWidth;var U=this.sizingTarget.clientHeight}G=this._fitInfo.margin;var q={width:u.width+G.left+G.right,height:u.height+G.top+G.bottom};B=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,q,u,F,D);this.addSpacing&&(F.left-q.width===B.left?B.left-=8:F.top-q.height===B.top?B.top-=
8:F.right===B.left?B.left+=8:F.bottom===B.top&&(B.top+=8));q=B.left+G.left;var h=B.top+G.top;F=Math.min(D.right-G.right,q+u.width);var K=Math.min(D.bottom-G.bottom,h+u.height);q=Math.max(D.left+G.left,Math.min(q,F-this._fitInfo.sizedBy.minWidth));h=Math.max(D.top+G.top,Math.min(h,K-this._fitInfo.sizedBy.minHeight));F=Math.max(F-q,this._fitInfo.sizedBy.minWidth);K=Math.max(K-h,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=F+"px";this.sizingTarget.style.maxHeight=K+"px";q-=u.left;
u=h-u.top;var a;((a=this.hostElement)!=null?a:this).style.left=q+"px";var m;((m=this.hostElement)!=null?m:this).style.top=u+"px";if(this.expandSizingTargetForScrollbars){a=this.sizingTarget.offsetHeight;N=a-this.sizingTarget.clientHeight-(N-U);if(N>0){this.sizingTarget.style.maxHeight=Math.min(D.height-G.top-G.bottom,K+N)+"px";N=this.sizingTarget.offsetHeight;U=N-a;var L;B.verticalAlign==="top"?L=u:B.verticalAlign==="middle"?L=u-U/2:B.verticalAlign==="bottom"&&(L=u-U);L=Math.max(D.top+G.top,Math.min(L,
D.bottom-G.bottom-N));var W;((W=this.hostElement)!=null?W:this).style.top=L+"px"}L=this.sizingTarget.offsetWidth;R=L-this.sizingTarget.clientWidth-(R-y);if(R>0){xVT!==void 0?y=xVT:(y=document.createElement("div"),Object.assign(y.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),W=document.createElement("div"),W.style.width="200px",W.style.height="200px",y.appendChild(W),document.body.appendChild(y),xVT=Math.abs(y.offsetWidth-100)>1?y.offsetWidth-y.clientWidth:
0,document.body.removeChild(y),y=xVT);this.sizingTarget.style.maxWidth=Math.min(D.width-G.left-G.right,F+R-y)+"px";R=this.sizingTarget.offsetWidth+y;y=R-L;var e;B.horizontalAlign==="left"?e=q:B.horizontalAlign==="center"?e=q-y/2:B.horizontalAlign==="right"&&(e=q-y);e=Math.max(D.left+G.left,Math.min(e,D.right-G.right-R));var b;((b=this.hostElement)!=null?b:this).style.left=e+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo;if(!G.positionedBy.vertically){var B;((B=this.hostElement)!=null?B:this).style.position="fixed";var F;((F=this.hostElement)!=null?F:this).style.top="0px"}if(!G.positionedBy.horizontally){var D;((D=this.hostElement)!=null?D:this).style.position="fixed";var u;((u=this.hostElement)!=null?u:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var R;B=((R=this.hostElement)!=null?R:this).getBoundingClientRect();
G.sizedBy.height||this.__sizeDimension(B,G.positionedBy.vertically,"top","bottom","Height");G.sizedBy.width||this.__sizeDimension(B,G.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(G,B,F,D,u){this.__sizeDimension(G,B,F,D,u)},
__sizeDimension:function(G,B,F,D,u){var R=this._fitInfo,N=this.__getNormalizedRect(this.fitInto);N=u==="Width"?N.width:N.height;G=(B=B===D)?N-G[D]:G[F];F=R.margin[B?F:D];D="offset"+u;var y;R=((y=this.hostElement)!=null?y:this)[D]-this.sizingTarget[D];this.sizingTarget.style["max"+u]=N-F-G-R+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo.positionedBy;if(!G.vertically||!G.horizontally){var B;((B=this.hostElement)!=null?B:this).style.position="fixed";if(!G.vertically){var F;((F=this.hostElement)!=null?F:this).style.top="0px"}if(!G.horizontally){var D;((D=this.hostElement)!=null?D:this).style.left="0px"}var u;B=((u=this.hostElement)!=null?u:this).getBoundingClientRect();u=this.__getNormalizedRect(this.fitInto);if(!G.vertically){F=u.top-B.top+(u.height-
B.height)/2;var R;((R=this.hostElement)!=null?R:this).style.top=F+"px"}if(!G.horizontally){G=u.left-B.left+(u.width-B.width)/2;var N;((N=this.hostElement)!=null?N:this).style.left=G+"px"}}}},
__getNormalizedRect:function(G){return G===document.documentElement||G===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:G.getBoundingClientRect()},
__getOffscreenArea:function(G,B,F){return Math.abs(Math.min(0,G.top)+Math.min(0,F.bottom-(G.top+B.height)))*B.width+Math.abs(Math.min(0,G.left)+Math.min(0,F.right-(G.left+B.width)))*B.height},
__getPosition:function(G,B,F,D,u,R){var N=[{verticalAlign:"top",horizontalAlign:"left",top:u.top+this.verticalOffset,left:u.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:u.top+this.verticalOffset,left:u.right-F.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:u.bottom-F.height-this.verticalOffset,left:u.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:u.bottom-F.height-this.verticalOffset,left:u.right-F.width-
this.horizontalOffset}];if(this.noOverlap){for(var y=0,U=N.length;y<U;y++){var q={},h;for(h in N[y])q[h]=N[y][h];N.push(q)}N[0].top=N[1].top+=u.height;N[2].top=N[3].top-=u.height;N[4].left=N[6].left+=u.width;N[5].left=N[7].left-=u.width}B=B==="auto"?null:B;G=G==="auto"?null:G;G&&G!=="center"||(N.push({verticalAlign:"top",horizontalAlign:"center",top:u.top+this.verticalOffset+(this.noOverlap?u.height:0),left:u.left-D.width/2+u.width/2+this.horizontalOffset}),N.push({verticalAlign:"bottom",horizontalAlign:"center",
top:u.bottom-F.height-this.verticalOffset-(this.noOverlap?u.height:0),left:u.left-D.width/2+u.width/2+this.horizontalOffset}));B&&B!=="middle"||(N.push({verticalAlign:"middle",horizontalAlign:"left",top:u.top-D.height/2+u.height/2+this.verticalOffset,left:u.left+this.horizontalOffset+(this.noOverlap?u.width:0)}),N.push({verticalAlign:"middle",horizontalAlign:"right",top:u.top-D.height/2+u.height/2+this.verticalOffset,left:u.right-F.width-this.horizontalOffset-(this.noOverlap?u.width:0)}));B==="middle"&&
G==="center"&&N.push({verticalAlign:"middle",horizontalAlign:"center",top:u.top-D.height/2+u.height/2+this.verticalOffset,left:u.left-D.width/2+u.width/2+this.horizontalOffset});for(y=0;y<N.length;y++){D=N[y];u=D.verticalAlign===B;U=D.horizontalAlign===G;if(!this.dynamicAlign&&!this.noOverlap&&u&&U){var K=D;break}q=(!B||u)&&(!G||U);if(this.dynamicAlign||q){D.offscreenArea=this.__getOffscreenArea(D,F,R);if(D.offscreenArea===0&&q){K=D;break}D.alignsOk=u+U;K=K||D;u=D.offscreenArea-K.offscreenArea;if(u<
0||u===0&&D.alignsOk>K.alignsOk)K=D}}return K}};/*

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 mi,G6v,BZa;mi=Element.prototype;G6v=mi.matches||mi.matchesSelector||mi.mozMatchesSelector||mi.msMatchesSelector||mi.oMatchesSelector||mi.webkitMatchesSelector;BZa=function(){};
_.FYq=function(G){var B=icw,F=[];return B._collectTabbableNodes(G,F)?B._sortByTabIndex(F):F};
_.w=BZa.prototype;_.w.isFocusable=function(G){return G6v.call(G,"input, select, textarea, button, object")?G6v.call(G,":not([disabled])"):G6v.call(G,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.w._normalizedTabIndex=function(G){return this.isFocusable(G)?(G=G.getAttribute("tabindex")||0,Number(G)):-1};
_.w._collectTabbableNodes=function(G,B){if(G.nodeType!==Node.ELEMENT_NODE||!this._isVisible(G))return!1;var F=this._normalizedTabIndex(G),D=F>0;F>=0&&B.push(G);if(G.localName==="content"||G.localName==="slot")F=_.u2(G).getDistributedNodes();else{var u;F=((u=_.u2(G).shadowRoot)!=null?u:_.u2(G.root||G)).children}for(G=0;G<F.length;G++)D=this._collectTabbableNodes(F[G],B)||D;return D};
_.w._isVisible=function(G){var B=G.style;return B.visibility!=="hidden"&&B.display!=="none"?(B=window.getComputedStyle(G),B.visibility!=="hidden"&&B.display!=="none"):!1};
_.w._sortByTabIndex=function(G){var B=G.length;if(B<2)return G;var F=Math.ceil(B/2);B=this._sortByTabIndex(G.slice(0,F));G=this._sortByTabIndex(G.slice(F));return this._mergeSortByTabIndex(B,G)};
_.w._mergeSortByTabIndex=function(G,B){for(var F=[];G.length>0&&B.length>0;)this._hasLowerTabOrder(G[0],B[0])?F.push(B.shift()):F.push(G.shift());return F.concat(G,B)};
_.w._hasLowerTabOrder=function(G,B){G=Math.max(G.tabIndex,0);B=Math.max(B.tabIndex,0);return G===0||B===0?B>G:G>B};
var icw=new BZa;var DB8;var u3y;_.UF({_template:function(){if(u3y!==void 0)return u3y;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;DB8===void 0&&(DB8=document.createElement("template"));var D=DB8;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return u3y=G},
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&&_.u2(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.u2(this.parentNode).removeChild(this)},
_onTransitionend:function(G){G&&G.target===this&&this.complete()},
_openedChanged:function(G){G?this.prepare():(G=window.getComputedStyle(this),G.transitionDuration!=="0s"&&G.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 XP=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;O2(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)};
XP.prototype._bringOverlayAtIndexToFront=function(G){var B=this._overlays[G];if(B){var F=this._overlays.length-1,D=this._overlays[F];D&&this._shouldBeBehindOverlay(B,D)&&F--;if(!(G>=F)){D=Math.max(this._getZ(_.RrT(this)),this._minimumZ);for(this._getZ(B)<=D&&this._applyOverlayZ(B,D);G<F;)this._overlays[G]=this._overlays[G+1],G++;this._overlays[F]=B}}};
XP.prototype.addOverlay=function(G){var B=this._overlays.indexOf(G);if(B>=0)this._bringOverlayAtIndexToFront(B);else{B=this._overlays.length;var F=this._overlays[B-1],D=Math.max(this._getZ(F),this._minimumZ),u=this._getZ(G);F&&this._shouldBeBehindOverlay(G,F)&&(this._applyOverlayZ(F,D),B--,D=Math.max(this._getZ(this._overlays[B-1]),this._minimumZ));u<=D&&this._applyOverlayZ(G,D);this._overlays.splice(B,0,G)}this.trackBackdrop()};
XP.prototype.removeOverlay=function(G){G=this._overlays.indexOf(G);G!==-1&&(this._overlays.splice(G,1),this.trackBackdrop())};
_.RrT=function(G){return G._overlays[G._overlays.length-1]};
_.w=XP.prototype;_.w.trackBackdrop=function(){var G=this._overlayWithBackdrop();if(G||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(G)-1,this.backdropElement.opened=!!G,this.backdropElement.prepare()};
_.w._overlayWithBackdrop=function(){for(var G=this._overlays.length-1;G>=0;G--)if(this._overlays[G].withBackdrop)return this._overlays[G]};
_.w._getZ=function(G){var B=this._minimumZ;if(G){var F,D,u=Number(((F=G.hostElement)!=null?F:G).style.zIndex||window.getComputedStyle((D=G.hostElement)!=null?D:G).zIndex);u===u&&(B=u)}return B};
_.w._setZ=function(G,B){var F;((F=G.hostElement)!=null?F:G).style.zIndex=B};
_.w._applyOverlayZ=function(G,B){this._setZ(G,B+2)};
_.w._overlayInPath=function(G){G=G||[];for(var B=0;B<G.length;B++){var F=void 0;if(((F=G[B].polymerController)!=null?F:G[B])._manager===this)return G[B]}};
_.w._onCaptureClick=function(G){var B=this._overlays.length-1;if(B!==-1)for(var F=_.u2(G).path,D,u;(D=this._overlays[B])&&this._overlayInPath(F)!==((u=D.hostElement)!=null?u:D);)if(D._onCaptureClick(G),D.allowClickThrough)B--;else break};
_.w._onCaptureFocus=function(G){var B=_.RrT(this);B&&B._onCaptureFocus(G)};
_.w._onCaptureKeyDown=function(G){var B=_.RrT(this);B&&(_.sV.keyboardEventMatchesKeys(G,"esc")?B._onCaptureEsc(G):_.sV.keyboardEventMatchesKeys(G,"tab")&&B._onCaptureTab(G))};
_.w._shouldBeBehindOverlay=function(G,B){return!G.alwaysOnTop&&B.alwaysOnTop&&!B.contains(G)};
_.ZN.Object.defineProperties(XP.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 G=document.activeElement;G&&G instanceof Element!==!1||(G=document.body);for(;G.root&&_.u2(G.root).activeElement;)G=_.u2(G.root).activeElement;return G}}});
_.QM=new XP;var hTg=0,Kio=0,aWU=null,m9l=[],Ra=["wheel","mousewheel","DOMMouseScroll"],XHS;_.X("web_no_lock_on_touchstart_killswitch")&&(Ra.push("touchstart"),Ra.push("touchmove"));_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[];_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;
_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;_.jA={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},
_manager:{type:Object,value:_.QM},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var G;return this._focusedChild||_.u2((G=this.hostElement)!=null?G:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var G;return _.FYq((G=this.hostElement)!=null?G: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 G;this._observer=_.u2((G=this.hostElement)!=null?G:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var G;_.u2((G=this.hostElement)!=null?G:this).unobserveNodes(this._observer)}this._observer=null;for(var B in this.__rafs)this.__rafs[B]!==null&&cancelAnimationFrame(this.__rafs[B]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(G){this.fire("iron-overlay-canceled",G,{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 G;((G=this.hostElement)!=null?G:this).style.outline="none";var B;((B=this.hostElement)!=null?B:this).style.display="none"}},
_openedChanged:function(G){if(G){var B;((B=this.hostElement)!=null?B:this).removeAttribute("aria-hidden")}else{var F;((F=this.hostElement)!=null?F: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 G;if(this.withBackdrop&&!((G=this.hostElement)!=null?G:this).hasAttribute("tabindex")){var B;((B=this.hostElement)!=null?B:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var F;((F=this.hostElement)!=null?F: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 G;((G=this.hostElement)!=null?G:this).style.display="none";var B;((B=this.hostElement)!=null?B:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var G,B;((G=this.hostElement)!=null?G:this).style.transition=((B=this.hostElement)!=null?B:this).style.webkitTransition="none";var F,D;((F=this.hostElement)!=null?F:this).style.transform=((D=this.hostElement)!=null?D:this).style.webkitTransform="none";var u;((u=this.hostElement)!=null?u:this).style.display=""},
_finishPositioning:function(){var G;((G=this.hostElement)!=null?G:this).style.display="none";this.scrollTop=this.scrollTop;var B,F;((B=this.hostElement)!=null?B:this).style.transition=((F=this.hostElement)!=null?F:this).style.webkitTransition="";var D,u;((D=this.hostElement)!=null?D:this).style.transform=((u=this.hostElement)!=null?u:this).style.webkitTransform="";var R;((R=this.hostElement)!=null?R:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var G=this._manager.deepActiveElement,B;if(!(B=G===document.body))a:{for(;G;G=G.assignedSlot||G.parentNode||G.host)if(G===this){B=!0;break a}B=!1}B&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(G){this.noCancelOnOutsideClick||this.cancel(G)},
_onCaptureFocus:function(G){if(this.withBackdrop){var B=_.u2(G).path;B.indexOf(this)===-1?(G.stopPropagation(),this._applyFocus()):this._focusedChild=B[0]}},
_onCaptureEsc:function(G){this.noCancelOnEscKey||this.cancel(G)},
_onCaptureTab:function(G){if(this.withBackdrop){this.__ensureFirstLastFocusables();var B=G.shiftKey,F=B?this.__firstFocusableNode:this.__lastFocusableNode;B=B?this.__lastFocusableNode:this.__firstFocusableNode;if(F===B)F=!0;else{var D=this._manager.deepActiveElement;F=D===F||D===this}F&&(G.preventDefault(),this._focusedChild=B,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var G=this._focusableNodes;this.__firstFocusableNode=G[0];this.__lastFocusableNode=G[G.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(G,B){var F=this.__rafs;F[G]!==null&&cancelAnimationFrame(F[G]);F[G]=requestAnimationFrame(function(){F[G]=null;B.call(this)}.bind(this))},
__updateScrollObservers:function(G,B,F){G&&B&&this.__isValidScrollAction(F)?(F==="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),XHS=_._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()):(G=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),G!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(G,1),XHS=_._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(vw)for(var G=this;G;)G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&G.host&&this.__rootNodes.push(G),G=G.host||G.assignedSlot||G.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(B){B.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(G){G.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(G){return G==="lock"||G==="refit"||G==="cancel"},
__onCaptureScroll:function(G){if(!(this.__isAnimating||_.u2(G).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(G)}},
__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)}};
_.Lg=[Pcw,_.Rc,_.jA];_.UF({_template:function(){if(sDT!==void 0)return sDT;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;S88===void 0&&(S88=document.createElement("template"));var D=S88;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return sDT=G},
is:"tp-yt-iron-dropdown",behaviors:[_.xC,_.sV,_.Lg,XPT],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 G=_.u2(this.$.content).getDistributedNodes(),B=0,F=G.length;B<F;B++)if(G[B].nodeType===Node.ELEMENT_NODE)return G[B]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.jA._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.jA._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.jA._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var G=this.containedElement,B=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),F=0;F<B.length;F++)B[F].node=G;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(G){this._readied&&(G?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var G=this.focusTarget||this.containedElement;G&&this.opened&&!this.noAutoFocus?G.focus():_.jA._applyFocus.apply(this,arguments)}});var wbt;var CL8;/*

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 NZT=new _.iE({type:"iconset"});
_.UF({_template:function(){if(CL8!==void 0)return CL8;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;wbt===void 0&&(wbt=document.createElement("template"));
var D=wbt;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return CL8=G},
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(G){G=(G||"").split(":");this._iconName=G.pop();this._iconsetName=G.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&&_.u2(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=NZT.byKey(this._iconsetName)){var G=this._iconset.applyIcon(this,this._iconName,this.theme);G&&G.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,_.u2(this.root).appendChild(this._img)}});var y57;var nWv;_.UF({_template:function(){if(nWv!==void 0)return nWv;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;y57===void 0&&(y57=document.createElement("template"));var D=y57;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return nWv=G},
is:"tp-yt-iron-input",behaviors:[_.DW],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(){_.ac.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.u2(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.u2(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 G=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":G=/[0-9.,e-]/}return G},_bindValueChanged:function(G,B){B&&(G===void 0?B.value=null:G!==B.value&&(this.inputElement.value=G),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:G}))},
_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(G){var B=G.keyCode==19||G.keyCode==20||G.keyCode==45||G.keyCode==46||G.keyCode==144||G.keyCode==145||G.keyCode>32&&G.keyCode<41||G.keyCode>111&&G.keyCode<124;return!(G.keyCode==8||G.keyCode==9||G.keyCode==13||G.keyCode==27)&&!(G.charCode==0&&B)},
_onKeypress:function(G){if(this.allowedPattern||this.inputElement.type==="number"){var B=this._patternRegExp;if(B&&!(G.metaKey||G.ctrlKey||G.altKey)){this._patternAlreadyChecked=!0;var F=String.fromCharCode(G.charCode);this._isPrintable(G)&&!B.test(F)&&(G.preventDefault(),this._announceInvalidCharacter("Invalid character "+F+" not entered."))}}},
_checkPatternValidity:function(){var G=this._patternRegExp;if(!G)return!0;for(var B=0;B<this.inputElement.value.length;B++)if(!G.test(this.inputElement.value[B]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var G=this.inputElement.checkValidity();G&&(this.required&&this.bindValue===""?G=!1:this.hasValidator()&&(G=_.DW.validate.call(this,this.bindValue)));this.invalid=!G;this.fire("iron-input-validate");return G},
_announceInvalidCharacter:function(G){this.fire("iron-announce",{text:G})},
_computeValue:function(G){return G}});var lXw;var UBL;var qla=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),EWs=qla&&qla[1]>=8;
_.UF({_template:function(){if(UBL!==void 0)return UBL;var G=document.createElement("template");_.H(G,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;lXw===void 0&&(lXw=document.createElement("template"));var D=lXw;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return UBL=G},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[pxL,_.Rc,_.mty,mhG],_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 _.u2(_.u2(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var G=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,G-this._physicalCount)},set _virtualStart(G){G=this._clamp(G,0,this._maxVirtualStart);this.grid&&(G-=G%this._itemsPerRow);this._virtualStartVal=G},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(G){G%=this._physicalCount;G<0&&(G=this._physicalCount+G);this.grid&&(G-=G%this._itemsPerRow);this._physicalStartVal=G},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(G){this._physicalCountVal=G},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 G=this._firstVisibleIndexVal;if(G==null){var B=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
G=this._iterateItems(function(F,D){B+=this._getPhysicalSizeIncrement(F);if(B>this._scrollPosition)return this.grid?D-D%this._itemsPerRow:D;if(this.grid&&this._virtualCount-1===D)return D-D%this._itemsPerRow})||0}return G},
get lastVisibleIndex(){var G=this._lastVisibleIndexVal;if(G==null){if(this.grid)G=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var B=this._physicalTop+this._scrollOffset;this._iterateItems(function(F,D){B<this._scrollBottom&&(G=D);B+=this._getPhysicalSizeIncrement(F)})}this._lastVisibleIndexVal=G}return G},
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,_.l4);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(G){this.style.webkitOverflowScrolling=G===this?"touch":"";this.style.overflowY=G===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.l4)},
updateViewportBoundaries:function(){var G=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(G["padding-top"],10);this._isRTL=G.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var G=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),B=G-this._scrollPosition,F=B>=0;this._scrollPosition=G;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(B)>this._physicalSize&&this._physicalSize>0?(B-=this._scrollOffset,F=Math.round(B/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=F,this._physicalStart+=F,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(G=this._getReusables(F),F?(this._physicalTop=G.physicalTop,this._virtualStart+=G.indexes.length,this._physicalStart+=G.indexes.length):(this._virtualStart=this._virtualStart-G.indexes.length,this._physicalStart=this._physicalStart-G.indexes.length),this._update(G.indexes,F?null:G.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),zc))},
_getReusables:function(G){var B=[],F=this._hiddenContentSize*this._ratio,D=this._virtualStart,u=this._virtualEnd,R=this._physicalCount,N=this._physicalTop+this._scrollOffset;var y=this._physicalBottom+this._scrollOffset;var U=this._scrollPosition,q=this._scrollBottom;if(G){var h=this._physicalStart;y=U-N}else h=this._physicalEnd,y-=q;for(;;){var K=this._getPhysicalSizeIncrement(h);y-=K;if(B.length>=R||y<=F)break;if(G){if(u+B.length+1>=this._virtualCount)break;if(N+K>=U-this._scrollOffset)break;B.push(h);
N+=K;h=(h+1)%R}else{if(D-B.length<=0)break;if(N+this._physicalSize-K<=q)break;B.push(h);N-=K;h=h===0?R-1:h-1}}return{indexes:B,physicalTop:N-this._scrollOffset}},
_update:function(G,B){if(!(G&&G.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(G);this._updateMetrics(G);if(B)for(;B.length;)G=B.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(G);this._positionItems();this._updateScrollerSize()}},
_createPool:function(G){this._ensureTemplatized();var B,F=Array(G);for(B=0;B<G;B++){var D=this.stamp(null);F[B]=D.root.querySelector("*");this._itemsParent.appendChild(D.root)}return F},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(G){G=this._clamp(this._physicalCount+G,3,this._virtualCount-this._virtualStart);G=this._convertIndexToCompleteRow(G);if(this.grid){var B=G%this._itemsPerRow;B&&G-B<=this._physicalCount&&(G+=this._itemsPerRow);G-=B}G-=this._physicalCount;B=Math.round(this._physicalCount*.5);if(!(G<0)){if(G>0){B=window.performance.now();[].push.apply(this._physicalItems,this._createPool(G));for(var F=0;F<G;F++)this._physicalSizes.push(0);this._physicalCount+=G;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=G);this._update();this._templateCost=(window.performance.now()-B)/G;B=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||B===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,B)),GaN):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,B),zc))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var G=this._getReusables(!0);this._physicalTop=G.physicalTop;this._virtualStart+=G.indexes.length;this._physicalStart+=G.indexes.length;this._update(G.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 G={__key__:!0};G[this.as]=!0;G[this.indexAs]=!0;G[this.selectedAs]=!0;G.tabIndex=!0;this._instanceProps=G;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(G,B){typeof B!=="undefined"&&(this.notifyResize(),_.Zz(),G&&this._updateGridMetrics())},
_itemsChanged:function(G){if(G.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,
_.l4);else if(G.path==="items.splices"){this._adjustVirtualIndex(G.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(G.value.indexSplices.some(function(F){return F.addedCount>0||F.removed.length>0})){var B=this._getActiveElement();
this.contains(B)&&B.blur()}G=G.value.indexSplices.some(function(F){return F.index+F.addedCount>=this._virtualStart&&F.index<=this._virtualEnd},this);
this._isClientFull()&&!G||this._debounce("_render",this._render,_.l4)}else G.path!=="items.length"&&this._forwardItemPath(G.path,G.value)},
_forwardItemPath:function(G,B){G=G.slice(6);var F=G.indexOf(".");F===-1&&(F=G.length);var D,u=this.modelForElement(this._offscreenFocusedItem),R=parseInt(G.substring(0,F),10);if(D=this._isIndexRendered(R)){var N=this._getPhysicalIndex(R);var y=this.modelForElement(this._physicalItems[N])}else u&&(y=u);y&&y[this.indexAs]===R&&(G=G.substring(F+1),G=this.as+(G?"."+G:""),y._setPendingPropertyOrPath(G,B,!1,!0),y._flushProperties&&y._flushProperties(),D&&(this._updateMetrics([N]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(G){G.forEach(function(B){B.removed.forEach(this._removeItem,this);B.index<this._virtualStart&&(B=Math.max(B.addedCount-B.removed.length,B.index-this._virtualStart),this._virtualStart+=B,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=B))},this)},
_removeItem:function(G){this.$.selector.deselect(G);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===G&&this._removeFocusedItem()},
_iterateItems:function(G,B){var F,D;if(arguments.length===2&&B)for(D=0;D<B.length;D++){var u=B[D];var R=this._computeVidx(u);if((F=G.call(this,u,R))!=null)return F}else{u=this._physicalStart;for(R=this._virtualStart;u<this._physicalCount;u++,R++)if((F=G.call(this,u,R))!=null)return F;for(u=0;u<this._physicalStart;u++,R++)if((F=G.call(this,u,R))!=null)return F}},
_computeVidx:function(G){return G>=this._physicalStart?this._virtualStart+(G-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+G},
_assignModels:function(G){this._iterateItems(function(B,F){var D=this._physicalItems[B],u=this.items&&this.items[F];if(u!=null){var R=this.modelForElement(D);R.__key__=null;this._forwardProperty(R,this.as,u);this._forwardProperty(R,this.selectedAs,this.$.selector.isSelected(u));this._forwardProperty(R,this.indexAs,F);this._forwardProperty(R,"tabIndex",this._focusedVirtualIndex===F?0:-1);this._physicalIndexForKey[R.__key__]=B;R._flushProperties&&R._flushProperties(!0);D.removeAttribute("hidden")}else D.setAttribute("hidden",
"")},G)},
_updateMetrics:function(G){_.Zz();var B=0,F=0,D=this._physicalAverageCount,u=this._physicalAverage;this._iterateItems(function(R){F+=this._physicalSizes[R];this._physicalSizes[R]=this._physicalItems[R].offsetHeight;B+=this._physicalSizes[R];this._physicalAverageCount+=this._physicalSizes[R]?1:0},G);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(F=this._itemsPerRow===1?F:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+B-F,this._itemsPerRow=1);this._physicalAverageCount!==D&&(this._physicalAverage=Math.round((u*D+B)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var G=this._physicalTop;if(this.grid){var B=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(F,D){var u=Math.floor(D%this._itemsPerRow*this._itemWidth+B);this._isRTL&&(u*=-1);this.translate3d(u+"px",G+"px",0,this._physicalItems[F]);this._shouldRenderNextRow(D)&&(G+=this._rowHeight)})}else this._iterateItems(function(F){this.translate3d(0,G+"px",0,this._physicalItems[F]);
G+=this._physicalSizes[F]})},
_getPhysicalSizeIncrement:function(G){return this.grid?this._computeVidx(G)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[G]},
_shouldRenderNextRow:function(G){return G%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var G=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(G!==0){this._physicalTop=this._physicalTop-G;var B=this._scrollPosition;!EWs&&B>0&&this._resetScrollPosition(B-G)}},
_resetScrollPosition:function(G){this.scrollTarget&&G>=0&&(this._scrollPosition=this._scrollTop=G)},
_updateScrollerSize:function(G){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((G=(G=(G=G||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(G){return this.scrollToIndex(this.items.indexOf(G))},
scrollToIndex:function(G){if(!(typeof G!=="number"||G<0||G>this.items.length-1)&&(_.Zz(),this._physicalCount!==0)){G=this._clamp(G,0,this._virtualCount-1);if(!this._isIndexRendered(G)||G>=this._maxVirtualStart)this._virtualStart=this.grid?G-this._itemsPerRow*2:G-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var B=this._physicalStart,F=this._virtualStart,D=0,u=this._hiddenContentSize;F<G&&
D<=u;)D+=this._getPhysicalSizeIncrement(B),B=(B+1)%this._physicalCount,F++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+D);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)},_.l4)},
selectItem:function(G){return this.selectIndex(this.items.indexOf(G))},
selectIndex:function(G){if(!(G<0||G>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(G)){var B=this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)]);B&&(B[this.selectedAs]=!0);this.updateSizeForIndex(G)}this.$.selector.selectIndex(G)}},
deselectItem:function(G){return this.deselectIndex(this.items.indexOf(G))},
deselectIndex:function(G){G<0||G>=this._virtualCount||(this._isIndexRendered(G)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)])[this.selectedAs]=!1,this.updateSizeForIndex(G)),this.$.selector.deselectIndex(G))},
toggleSelectionForItem:function(G){return this.toggleSelectionForIndex(this.items.indexOf(G))},
toggleSelectionForIndex:function(G){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(G):this.$.selector.isSelected(this.items[G]))?this.deselectIndex(G):this.selectIndex(G)},
clearSelection:function(){this._iterateItems(function(G){this.modelForElement(this._physicalItems[G])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(G){(G?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(G){var B=this.modelForElement(G.target);if(B){var F=_.u2(G).path[0];G=this._getActiveElement();var D=this._physicalItems[this._getPhysicalIndex(B[this.indexAs])];if(F.localName!=="input"&&F.localName!=="button"&&F.localName!=="select"){F=B.tabIndex;B.tabIndex=-100;var u=G?G.tabIndex:-1;B.tabIndex=F;G&&D!==G&&D.contains(G)&&u!==-100||this.toggleSelectionForItem(B[this.as])}}},
_multiSelectionChanged:function(G){this.clearSelection();this.$.selector.multi=G},
updateSizeForItem:function(G){return this.updateSizeForIndex(this.items.indexOf(G))},
updateSizeForIndex:function(G){if(!this._isIndexRendered(G))return null;this._updateMetrics([this._getPhysicalIndex(G)]);this._positionItems();return null},
_manageFocus:function(){var G=this._focusedVirtualIndex;G>=0&&G<this._virtualCount?this._isIndexRendered(G)?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(G){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(G/this._itemsPerRow)*this._itemsPerRow:G},
_isIndexRendered:function(G){return G>=this._virtualStart&&G<=this._virtualEnd},
_isIndexVisible:function(G){return G>=this.firstVisibleIndex&&G<=this.lastVisibleIndex},
_getPhysicalIndex:function(G){return(this._physicalStart+(G-this._virtualStart))%this._physicalCount},
focusItem:function(G){this._focusPhysicalItem(G)},
_focusPhysicalItem:function(G){if(!(G<0||G>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(G)||this.scrollToIndex(G);var B=this._physicalItems[this._getPhysicalIndex(G)],F=this.modelForElement(B),D;F.tabIndex=-100;B.tabIndex===-100&&(D=B);D||(D=_.u2(B).querySelector('[tabindex="-100"]'));F.tabIndex=0;this._focusedVirtualIndex=G;D&&D.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 G=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var B=this.stamp(null);this._focusBackfillItem=B.root.querySelector("*");this._itemsParent.appendChild(B.root)}this._offscreenFocusedItem=this._physicalItems[G];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[G]=this._focusBackfillItem;this._focusedPhysicalIndex=G;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var G=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),B=this._physicalItems[G];if(B){var F=this.modelForElement(B),D=this.modelForElement(this._offscreenFocusedItem);F[this.as]===D[this.as]?(this._focusBackfillItem=B,F.tabIndex=-1,this._physicalItems[G]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(G){G=this.modelForElement(G.target);var B=this.modelForElement(this._focusedItem),F=this._offscreenFocusedItem!==null,D=this._focusedVirtualIndex;G&&(B===G?this._isIndexVisible(D)||this.scrollToIndex(D):(this._restoreFocusedItem(),B&&(B.tabIndex=-1),G.tabIndex=0,this._focusedVirtualIndex=D=G[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(D),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],F&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(G){switch(G.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&G.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&&G.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(G)}},
_clamp:function(G,B,F){return Math.min(F,Math.max(B,G))},
_debounce:function(G,B,F){this._debouncers=this._debouncers||{};this._debouncers[G]=_.cL(this._debouncers[G],F,B.bind(this));_.Tu(this._debouncers[G])},
_forwardProperty:function(G,B,F){G._setPendingProperty(B,F)},
_forwardHostPropV2:function(G,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&this.modelForElement(F).forwardHostProp(G,B)},this)},
_notifyInstancePropV2:function(G,B,F){Gd6(this.as,B)&&(G=G[this.indexAs],B==this.as&&(this.items[G]=F),this.notifyPath(nt(this.as,"items."+G,B),F))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(G,B,F){B.indexOf(this.as+".")===0&&this.notifyPath("items."+G.__key__+"."+B.slice(this.as.length+1),F)},
_forwardParentPath:function(G,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&this.modelForElement(F).notifyPath(G,B)},this)},
_forwardParentProp:function(G,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&(this.modelForElement(F)[G]=B)},this)},
_getActiveElement:function(){var G=this._itemsParent.node.domHost;return _.u2(G?G.root:document).activeElement},
_scrollTargetChanged:function(G,B){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(B)if(G==="document")this.scrollTarget=this._doc;else if(typeof G==="string"){var F,D;this.scrollTarget=(B=(D=(F=this.domHost)==null?void 0:F.polymerController)!=null?D:this.domHost)&&B.$?B.$[G]:_.u2(this.ownerDocument).querySelector("#"+G)}else this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G))}});var hrv;var KYy;var aXq=function(G,B,F,D){G-=F;B-=D;return Math.sqrt(G*G+B*B)},mBL=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Qcs.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var jcg=function(G){G.maxRadius=0;G.mouseDownStart=0;G.mouseUpStart=0;G.xStart=0;G.yStart=0;G.xEnd=0;G.yEnd=0;G.containerMetrics=new Qcs(G.element)};
Li8.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var G=mBL()-this.mouseDownStart;this.mouseUpStart&&(G-=this.mouseUpElapsed);return G},get mouseUpElapsed(){return this.mouseUpStart?mBL()-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 G=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(G*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-G/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var G=this.radius/(this.containerMetrics.size/2);var B=this.xNow-this.containerMetrics.width/2;var F=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+B+"px, "+F+"px)";this.waveContainer.style.transform="translate3d("+B+"px, "+F+"px, 0)";this.wave.style.webkitTransform="scale("+G+","+G+")";this.wave.style.transform="scale3d("+G+","+G+",1)"},
downAction:function(G){var B=this.containerMetrics.width/2,F=this.containerMetrics.height/2;jcg(this);this.mouseDownStart=mBL();this.center?(this.xStart=B,this.yStart=F):(this.xStart=G?G.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=G?G.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=B,this.yEnd=F);G=this.containerMetrics;B=this.xStart;F=this.yStart;this.maxRadius=Math.max(aXq(B,F,0,0),aXq(B,F,
G.width,0),aXq(B,F,0,G.height),aXq(B,F,G.width,G.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=mBL())},
remove:function(){_.u2(_.u2(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.UF({_template:function(){if(KYy!==void 0)return KYy;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;hrv===void 0&&(hrv=document.createElement("template"));var D=hrv;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return KYy=G},
is:"tp-yt-paper-ripple",behaviors:[_.sV],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(){_.u2(this).parentNode.nodeType==11?this.keyEventTarget=_.u2(this).getOwnerRoot().host:this.keyEventTarget=_.u2(this).parentNode;var G=this.keyEventTarget;this.listen(G,"up","uiUpAction");this.listen(G,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(G){G.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var G=0;G<this.ripples.length;++G)if(!this.ripples[G].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(G){this.noink||this.downAction(G)},
downAction:function(G){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(G),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(G){this.noink||this.upAction(G)},
upAction:function(G){this.holdDown||(this.ripples.forEach(function(B){B.upAction(G)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var G=0;G<this.ripples.length;++G){var B=this.ripples[G];B.isOpacityFullyDecayed&&!B.isRestingAtMaxRadius&&this.removeRipple(B)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var G=new Li8(this);_.u2(this.$.waves).appendChild(G.waveContainer);this.$.background.style.backgroundColor=G.color;this.ripples.push(G);this._setAnimating(!0);return G},
removeRipple:function(G){var B=this.ripples.indexOf(G);B<0||(this.ripples.splice(B,1),G.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var G;for(G=0;G<this.ripples.length;++G){var B=this.ripples[G];B.draw();this.$.background.style.opacity=B.outerOpacity;B.isOpacityFullyDecayed&&!B.isRestingAtMaxRadius&&this.removeRipple(B)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(G,B){B!==void 0&&(G?this.downAction():this.upAction())}});var rY={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(G){PV._downHandler.call(this,G);this.pressed&&this.ensureRipple(G)},
ensureRipple:function(G){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var B=this._rippleContainer||this.root;B&&_.u2(B).appendChild(this._ripple);if(G){B=_.u2(this._rippleContainer||this);var F=_.u2(G).rootTarget;B.deepContains(F)&&this._ripple.uiDownAction(G)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(G){this.hasRipple()&&(this._ripple.noink=G)}};var Xba={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 G=1;this.disabled?G=0:this.active||this.pressed?G=4:this.receivedFocusFromKeyboard&&(G=3);this._setElevation(G)},
_computeKeyboardClass:function(G){this.toggleClass("keyboard-focus",G)},
_spaceKeyDownHandler:function(G){PV._spaceKeyDownHandler.call(this,G);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(G){PV._spaceKeyUpHandler.call(this,G);this.hasRipple()&&this._ripple.uiUpAction()}},QKy=[CQq,
_.xC,rY,Xba];_.jKq={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=G)},
_createRipple:function(){var G=rY._createRipple();G.id="ink";G.setAttribute("center","");G.classList.add("circle");return G}};
_.LYv=[CQq,_.xC,rY,_.jKq];_.r5y=[_.LYv,nww,{_checkedChanged:function(){y1a._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){rY._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var WYa;var Hc7;var k6G=function(){};
_.w=k6G.prototype;_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._buttonStateChanged=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._createRipple=function(){};
_.w._noinkChanged=function(){};
_.w._computeKeyboardClass=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
_.w._setElevation=function(){};
k6G=_.UF({_template:function(){if(Hc7!==void 0)return Hc7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;WYa===void 0&&(WYa=document.createElement("template"));var D=WYa;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return Hc7=G},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[QKy],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Xba._calculateElevation.apply(this):this._setElevation(0)}});var OcL;var erq;var $BT={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(G){_.X("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(G)},
_onDialogClickWrapped:function(G){_.X("dialog_behavior_no_tap_killswitch")||this._onDialogClick(G)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(G,B){B&&(G?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(G){if(G){var B;((B=this.hostElement)!=null?B:this).setAttribute("aria-modal","true")}else{var F;((F=this.hostElement)!=null?F:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(G){this.closingReason=this.closingReason||{};this.closingReason.confirmed=G},
_onDialogClick:function(G){for(var B=_.u2(G).path,F=0,D,u=B.indexOf((D=this.hostElement)!=null?D:this);F<u;F++)if(D=B[F],D.hasAttribute&&(D.hasAttribute("dialog-dismiss")||D.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(D.hasAttribute("dialog-confirm"));this.close();G.stopPropagation();break}}},zra=[_.Lg,
$BT];var bct=document.createElement("template");_.H(bct,'<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(bct.content);var VeG=document.createElement("template");_.H(VeG,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(VeG.content);_.UF({_template:function(){if(erq!==void 0)return erq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;OcL===void 0&&(OcL=document.createElement("template"));var D=OcL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return erq=G},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[zra,XPT],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 vWq;var oWv;_.UF({_template:function(){if(oWv!==void 0)return oWv;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;vWq===void 0&&(vWq=document.createElement("template"));var D=vWq;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return oWv=G},
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 G,B,F;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)!==!0&&((B=window.ShadyDOM)==null?void 0:B.noPatch)!=="on-demand"||((F=this.__shady_parentNode)==null?void 0:F.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf($BT)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var MeN=_.vP(['<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>']),pbU=_.LCG(MeN);pbU.setAttribute("style","display: none;");document.head.appendChild(pbU.content);var YlG;var A5y;var dBa;var J5L;_.UF({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[wY],configure:function(G){var B=G.node,F=B.getBoundingClientRect().height;return this._effect=new KeyframeEffect(B,[{height:F/2+"px"},{height:F+"px"}],this.timingFromConfig(G))}});
_.UF({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[wY],configure:function(G){var B=G.node,F=B.getBoundingClientRect().width;return this._effect=new KeyframeEffect(B,[{width:F/2+"px"},{width:F+"px"}],this.timingFromConfig(G))}});
_.UF({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[wY],configure:function(G){var B=G.node,F=B.getBoundingClientRect().width;return this._effect=new KeyframeEffect(B,[{width:F+"px"},{width:F-F/20+"px"}],this.timingFromConfig(G))}});
_.UF({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[wY],configure:function(G){var B=G.node,F=B.getBoundingClientRect().height;this.setPrefixedProperty(B,"transformOrigin","0 0");return this._effect=new KeyframeEffect(B,[{height:F+"px",transform:"translateY(0)"},{height:F/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(G))}});var WH={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},c5s=function(){};
_.w=c5s.prototype;_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._focusBlurHandler=function(){};
_.w._changedControlState=function(){};
_.w._setFocused=function(){};
c5s=_.UF({_template:function(){if(J5L!==void 0)return J5L;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;dBa===void 0&&(dBa=document.createElement("template"));var D=dBa;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return J5L=G},
is:"tp-yt-paper-menu-button",behaviors:[_.sV,_.xC],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:WH.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:WH.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:WH.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 G=_.u2(this.$.content).getDistributedNodes(),B=0,F=G.length;B<F;B++)if(G[B].nodeType===Node.ELEMENT_NODE)return G[B]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(G,B){G?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):B!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(G){_.xC._disabledChanged.apply(this,arguments);G&&this.opened&&this.close()},
__onIronOverlayCanceled:function(G){var B=this.$.trigger;_.u2(G.detail).path.indexOf(B)>-1&&G.preventDefault()}});
Object.keys(WH).forEach(function(G){c5s[G]=WH[G]});var TZP=_.GG.IronButtonState,IXq=(0,_.FM)(HTMLElement);
_.UF({_template:function(){if(A5y!==void 0)return A5y;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;YlG===void 0&&(YlG=document.createElement("template"));var D=YlG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return A5y=G},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[TZP,_.xC,rY,_.BH,_.DW],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(G){var B=(0,_.hA)(this);B.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:G});B.shadowRoot.appendChild(G);return IXq.prototype._attachDom.call(this,G)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.u2(this.$.content).getDistributedNodes(),B=0,F=G.length;B<F;B++)if(G[B].nodeType===Node.ELEMENT_NODE)return G[B]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var B="";G?B=G.label||G.getAttribute("label")||G.textContent.trim():B="";this.value=B;this._setSelectedItemLabel(B)},
_computeMenuVerticalOffset:function(G,B){return B?B:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",B=this.contentElement;B&&B.setAttribute("aria-expanded",G)},
_computeLabelClass:function(G,B,F){var D="label";if(G)F&&(D+=" label-is-hidden");else if(F||B)D+=" label-is-floating";return D},
_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 fXv;var tes;_.UF({is:"tp-yt-paper-icon-button",_template:function(){if(tes!==void 0)return tes;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;fXv===void 0&&(fXv=document.createElement("template"));var D=fXv;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return tes=G},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.LYv],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(G,B){var F=this.getAttribute("aria-label");F&&B!=F||this.setAttribute("aria-label",G)}});var Zcw;var gW7;_.HH=[CQq,_.xC,{hostAttributes:{role:"option",tabindex:"0"}}];_.UF({_template:function(){if(gW7!==void 0)return gW7;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Zcw===void 0&&(Zcw=document.createElement("template"));var D=Zcw;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return gW7=G},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.HH]});var SlU;var sKT;var xBa={attached:function(){this.fire("addon-attached")},
update:function(){}};var PLw=1,GEv=1,B2P=1,iGP=[_.xC,_.sV,{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();!o6&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(G,B){G?G=G+" "+B:G=B;return G},
_onAddonAttached:function(G){G=_.u2(G).rootTarget;if(G.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G.id);else{var B="paper-input-add-on-"+GEv++;G.id=B;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,B)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(G){_.xC._focusBlurHandler.call(this,G);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var G=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(G){try{var B=this.inputElement.selectionStart;this.value=G;this.inputElement.selectionStart=B;this.inputElement.selectionEnd=B}catch(F){this.value=G}},
_computeAlwaysFloatLabel:function(G,B){return B||G},
_updateAriaLabelledBy:function(){var G=_.u2(this.root).querySelector("label");if(G){if(G.id)var B=G.id;else B="paper-input-label-"+PLw++,G.id=B;this._ariaLabelledBy=B}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+B2P++)},
_onChange:function(G){this.shadowRoot&&this.fire(G.type,{sourceEvent:G},{node:this,bubbles:G.bubbles,cancelable:G.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var G=document.activeElement;G instanceof HTMLElement&&G!==document.body&&G!==document.documentElement||this._focusableElement.focus()}}}];var FKq;var DXv;_.UF({_template:function(){if(DXv!==void 0)return DXv;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;FKq===void 0&&(FKq=document.createElement("template"));var D=FKq;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return DXv=G},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[xBa],properties:{_charCounterStr:{type:String,value:"0"}},update:function(G){if(G.inputElement){G.value=G.value||"";var B=G.value.toString().length.toString();G.inputElement.hasAttribute("maxlength")&&(B+="/"+G.inputElement.getAttribute("maxlength"));this._charCounterStr=B}}});var uWw;var RGN;_.UF({_template:function(){if(RGN!==void 0)return RGN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;uWw===void 0&&(uWw=document.createElement("template"));var D=uWw;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return RGN=G},
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 DN(this.attrForValue)},get _inputElement(){return _.u2(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(G){this._addons||(this._addons=[]);G=G.target;this._addons.indexOf(G)===-1&&(this._addons.push(G),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(G){this._handleValueAndAutoValidate(G.target)},
_onValueChanged:function(G){var B=G.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,B.value===void 0||B.value===""))return;this._handleValueAndAutoValidate(G.target)},
_handleValue:function(G){var B=this._inputElementValue;B||B===0||G.type==="number"&&!G.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:G,value:B,invalid:this.invalid})},
_handleValueAndAutoValidate:function(G){this.autoValidate&&G&&(this.invalid=!(G.validate?G.validate(this._inputElementValue):G.checkValidity()));this._handleValue(G)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(G){if(this._addons)for(var B,F=0;B=this._addons[F];F++)B.update(G)},
_computeInputContentClass:function(G,B,F,D,u){var R="input-content";G?(u&&(R+=" label-is-hidden"),D&&!this.noUnfloatedLabelError&&(R+=" is-invalid")):(G=this.querySelector("label"),B||u?(R+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",D?R+=" is-invalid":F&&(R+=" label-is-highlighted")):(G&&(this.$.labelAndInputContainer.style.position="relative"),D&&!this.noUnfloatedLabelError&&(R+=" is-invalid")));F&&(R+=" focused");return R},
_computeUnderlineClass:function(G,B){var F="underline";B?F+=" is-invalid":G&&(F+=" is-highlighted");return F},
_computeAddOnContentClass:function(G,B){var F="add-on-content";B?F+=" is-invalid":G&&(F+=" is-highlighted");return F}});var wpq;var C1s;_.UF({_template:function(){if(C1s!==void 0)return C1s;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;wpq===void 0&&(wpq=document.createElement("template"));var D=wpq;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return C1s=G},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[xBa],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(G){this._setInvalid(G.invalid)}});_.UF({is:"tp-yt-paper-input",_template:function(){if(sKT!==void 0)return sKT;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;SlU===void 0&&(SlU=document.createElement("template"));var D=SlU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return sKT=G},
behaviors:[iGP,_.BH],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 N2t;var yhT;_.UF({_template:function(){if(yhT!==void 0)return yhT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=
G.content,F=B.insertBefore;N2t===void 0&&(N2t=document.createElement("template"));var D=N2t;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return yhT=G},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.HH]});var nuq;var lgL;_.UF({_template:function(){if(lgL!==void 0)return lgL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;nuq===void 0&&(nuq=document.createElement("template"));var D=nuq;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return lgL=G},
is:"tp-yt-paper-item-body"});var UXs;var qCw;var Eu7=function(){};
_.w=Eu7.prototype;_.w.indexOf=function(){};
_.w.selectPrevious=function(){};
_.w.selectNext=function(){};
_.w.selectIndex=function(){};
_.w.forceSynchronousItemUpdate=function(){};
_.w._checkFallback=function(){};
_.w._addListener=function(){};
_.w._removeListener=function(){};
_.w._activateEventChanged=function(){};
_.w._updateItems=function(){};
_.w._selectSelected=function(){};
_.w._filterItem=function(){};
_.w._valueToItem=function(){};
_.w._valueToIndex=function(){};
_.w._indexToValue=function(){};
_.w._valueForItem=function(){};
_.w._observeItems=function(){};
_.w._itemActivate=function(){};
_.w.multiChanged=function(){};
_.w._updateAttrForSelected=function(){};
_.w._updateSelected=function(){};
_.w._selectMulti=function(){};
_.w._selectionChange=function(){};
_.w._toggleSelected=function(){};
_.w._valuesToItems=function(){};
_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w.select=function(){};
_.w._resetTabindices=function(){};
_.w._updateMultiselectable=function(){};
_.w._focusWithKeyboardEvent=function(){};
_.w._clearSearchText=function(){};
_.w._focusPrevious=function(){};
_.w._focusNext=function(){};
_.w._applySelection=function(){};
_.w._focusedItemChanged=function(){};
_.w._onIronItemsChanged=function(){};
_.w._onShiftTabDown=function(){};
_.w._onFocus=function(){};
_.w._onUpKey=function(){};
_.w._onDownKey=function(){};
_.w._onEscKey=function(){};
_.w._onKeydown=function(){};
_.w._activateHandler=function(){};
_.w._disabledChanged=function(){};
_.w._setSelectedItem=function(){};
_.w._setItems=function(){};
_.w._setSelectedItems=function(){};
_.w._setFocusedItem=function(){};
Eu7=_.UF({_template:function(){if(qCw!==void 0)return qCw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;UXs===void 0&&(UXs=document.createElement("template"));var D=UXs;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return qCw=G},
is:"tp-yt-paper-listbox",behaviors:[EwL],hostAttributes:{role:"listbox"}});var hGG;var KK7;var agv={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(G,B){return[G||B?"active":"",B?"cooldown":""].join(" ")},
__activeChanged:function(G,B){this.__setAriaHidden(!G);this.__coolingDown=!G&&B},
__altChanged:function(G){this.setAttribute("aria-label",G||"loading")},
__setAriaHidden:function(G){G?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.UF({_template:function(){if(KK7!==void 0)return KK7;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;hGG===void 0&&(hGG=document.createElement("template"));var D=hGG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return KK7=G},
is:"tp-yt-paper-spinner",behaviors:[agv]});var mXL;var Xpa;_.UF({_template:function(){if(Xpa!==void 0)return Xpa;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;mXL===void 0&&(mXL=document.createElement("template"));var D=mXL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return Xpa=G},
is:"tp-yt-paper-spinner-lite",behaviors:[agv]});var QtL;var jt8;_.UF({_template:function(){if(jt8!==void 0)return jt8;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;QtL===void 0&&(QtL=document.createElement("template"));var D=QtL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return jt8=G},
is:"tp-yt-paper-tab",behaviors:[_.xC,_.GG.IronButtonState,rY],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 G=_.u2(this).parentNode;return!!G&&!!G.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(G){if(this.link){var B=this.queryEffectiveChildren("a");B&&G.target!==B&&B.click()}}});var LKN;var rhU;var WKG=_.vP(['<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>']),HG7=_.LCG(WKG);document.head.appendChild(HG7.content);_.UF({_template:function(){if(rhU!==void 0)return rhU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;LKN===void 0&&(LKN=document.createElement("template"));var D=LKN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return rhU=G},
is:"tp-yt-paper-tabs",behaviors:[_.Rc,_.Khv],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(G){_.u2(this).querySelectorAll("tp-yt-paper-tab").forEach(G?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(G){G.setAttribute("noink","")},
_removeNoinkAttribute:function(G){G.removeAttribute("noink")},
_computeScrollButtonClass:function(G,B,F,D){return!B||F?"hidden":G?D?"hidden":"not-visible":""},
_computeTabsContentClass:function(G,B){var F="tabs-content";G&&(F+=" scrollable");if(!G||B)F+=" fit-container";return F},
_computeSelectionBarClass:function(G,B){var F="selection-bar";G?F+=" hidden":B&&(F+=" align-bottom");return F},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(G){return""+G},
_onIronSelect:function(G){this._tabChanged(G.detail.item,this._previousTab);this._previousTab=G.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();_.uE._activateHandler.apply(this,arguments)},
_scheduleActivation:function(G,B){this._pendingActivationItem=G;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,B)},
_delayedActivationHandler:function(){var G=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;G.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(G){G.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(G,B){this.scrollable&&this._affectScroll(B&&-B.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(G){this.$.tabsContainer.scrollLeft+=G;G=this.$.tabsContainer.scrollLeft;this._leftHidden=G===0||this.hideScrollButtons;this._rightHidden=G===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(G,B){if(G){var F=this.$.tabsContent.getBoundingClientRect(),D=F.width,u=G.getBoundingClientRect();F=u.left-F.left;this._pos={width:this._calcPercent(u.width,D),left:this._calcPercent(F,D)};if(this.noSlide||B==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var R=B.getBoundingClientRect();B=this.items.indexOf(B);G=this.items.indexOf(G);this.$.selectionBar.classList.add("expand");
G=B<G;this._isRTL&&(G=!G);G?this._positionBar(this._calcPercent(u.left+u.width-R.left,D)-5,this._left):this._positionBar(this._calcPercent(R.left+R.width-u.left,D)-5,this._calcPercent(F,D)+5);this.scrollable&&this._scrollToSelectedIfNeeded(u.width,F)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(G,B){B-=this.$.tabsContainer.scrollLeft;B<0?this.$.tabsContainer.scrollLeft+=B:(B+=G-this.$.tabsContainer.offsetWidth,B>0&&(this.$.tabsContainer.scrollLeft+=B))},
_calcPercent:function(G,B){return 100*G/B},
_positionBar:function(G,B){G=G||0;B=B||0;this._width=G;this._left=B;this.transform("translateX("+B+"%) scaleX("+G/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var G=this.$.selectionBar.classList;G.contains("expand")?(G.remove("expand"),G.add("contract"),this._positionBar(this._pos.width,this._pos.left)):G.contains("contract")&&G.remove("contract")}});var kET;var OGy;_.UF({_template:function(){if(OGy!==void 0)return OGy;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;kET===void 0&&(kET=document.createElement("template"));var D=kET;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return OGy=G},
is:"tp-yt-paper-textarea",behaviors:[iGP,_.BH],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(G){this.$.input.textarea.selectionStart=G},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(G){this.$.input.textarea.selectionEnd=G},_ariaLabelledByChanged:function(G){this._focusableElement.setAttribute("aria-labelledby",G)},
_ariaDescribedByChanged:function(G){this._focusableElement.setAttribute("aria-describedby",G)},
get _focusableElement(){return this.inputElement.textarea}});var eGy;var $Xq;/*

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 zGs=function(){};
_.w=zGs.prototype;_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._noinkChanged=function(){};
_.w._focusedChanged=function(){};
_.w.registered=function(){};
_.w._invalidChanged=function(){};
_.w.hasValidator=function(){};
_.w.validate=function(){};
_.w._getValidity=function(){};
_.w._requiredChanged=function(){};
_.w._valueChanged=function(){};
_.w._checkedChanged=function(){};
_.w._buttonStateChanged=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
zGs=_.UF({is:"tp-yt-paper-toggle-button",_template:function(){if($Xq!==void 0)return $Xq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;eGy===void 0&&(eGy=document.createElement("template"));var D=eGy;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return $Xq=G},
behaviors:[_.r5y],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");_.ft(this,function(){_.$b(this,"pan-y")})},
_ontrack:function(G){G=G.detail;G.state==="start"?this._trackStart(G):G.state==="track"?this._trackMove(G):G.state==="end"&&this._trackEnd(G)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(G){G=G.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+G:G)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+G:G));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 G=rY._createRipple();G.id="ink";G.setAttribute("recenters","");G.classList.add("circle","toggle-ink");return G}});var bGq;var Vt8;_.UF({_template:function(){if(Vt8!==void 0)return Vt8;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;bGq===void 0&&(bGq=document.createElement("template"));var D=bGq;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return Vt8=G},
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 G=_.u2(this).parentNode,B=_.u2(this).getOwnerRoot(),F;this.for?F=_.u2(B).querySelector("#"+this.for):F=G.nodeType==Node.DOCUMENT_FRAGMENT_NODE?B.host:G;return F},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(G){G==="entry"?this.show():G==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.u2(this).textContent.trim()===""){for(var G=!0,B=_.u2(this).getEffectiveChildNodes(),F=0;F<B.length;F++)if(B[F].textContent.trim()!==""){G=!1;break}if(G)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 G=this.offset;this.marginTop!=14&&this.offset==14&&(G=this.marginTop);var B=this.offsetParent.getBoundingClientRect(),F=this._target.getBoundingClientRect(),D=this.getBoundingClientRect(),u=(F.width-D.width)/2,R=(F.height-D.height)/2,N=F.left-B.left,y=F.top-B.top;switch(this.position){case "top":var U=N+u;var q=y-D.height-G;break;case "bottom":U=N+u;q=y+F.height+G;break;case "left":U=N-D.width-G;q=y+R;break;case "right":U=N+F.width+
G,q=y+R}this.fitToVisibleBounds?(B.left+U+D.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,U)+"px",this.style.right="auto"),B.top+q+D.height>window.innerHeight?(this.style.bottom=B.height+"px",this.style.top="auto"):(this.style.top=Math.max(-B.top,q)+"px",this.style.bottom="auto")):(this.style.left=U+"px",this.style.top=q+"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(G){G!==500&&this.updateStyles({"--paper-tooltip-delay-in":G+"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(G){if(G==="entry"&&this.animationEntry!=="")return this.animationEntry;if(G==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[G]&&typeof this.animationConfig[G][0].name==="string"){if(this.animationConfig[G][0].timing&&this.animationConfig[G][0].timing.delay&&this.animationConfig[G][0].timing.delay!==0){var B=this.animationConfig[G][0].timing.delay;G==="entry"?this.updateStyles({"--paper-tooltip-delay-in":B+"ms"}):G==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":B+
"ms"})}return this.animationConfig[G][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 vuU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(vuU,_.q3);var ouv=_.HX(vuU,[0,_.fX]);var kA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(kA,_.q3);var Mtq=[3,4],ppt=[5,6];var YCG=[0,Mtq,ppt,_.fc,-1,_.cU,_.t5,-1,Syw,sMv];var AhP=_.HX(kA,YCG),dXU=_.Oy(YCG);var Jhw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Jhw,_.q3);var chT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(chT,_.q3);var T2w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(T2w,_.q3);var Igq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Igq,_.q3);var fgs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(fgs,_.q3);var Og=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Og,_.q3);Og.prototype.getSource=function(){return _.aD(this,1)};
Og.prototype.getMessage=function(){return _.KX(this,4)};
Og.prototype.getData=function(){return _.sf(this,fgs,8)};var ttG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ttG,_.q3);var eA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(eA,_.q3);var $A=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r($A,_.q3);var zG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(zG,_.q3);zG.prototype.getUrl=function(){return _.KX(this,1)};
zG.prototype.setUrl=function(G){return _.wq(this,1,G)};
zG.prototype.hasUrl=function(){return _.eQ(_.uc(this,1))!=null};var ZGs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ZGs,_.q3);var guq=[3];var SCN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(SCN,_.q3);var bE=function(G){var B=new SCN;return _.xK(B,2,G)};
SCN.prototype.getLanguage=function(){return XS(this,4,VM)};
var sty=function(G){var B=bE(1);return _.VC(B,6,VM,G)},VM=[3,
4,5,6];var xXq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(xXq,_.q3);var vH=function(G){var B=new xXq;return _.xK(B,1,G)},oc=function(G,B){return _.VC(G,2,P1y,B)},P1y=[2,
3,4,5];var G8a=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(G8a,_.q3);var M9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(M9,_.q3);var BPt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(BPt,_.q3);var iBt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(iBt,_.q3);var FwN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(FwN,_.q3);var DUT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(DUT,_.q3);var u8L=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(u8L,_.q3);var RYG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(RYG,_.q3);var pg=function(G){return _.sf(G,$A,5)};var wfv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(wfv,_.q3);wfv.prototype.getValue=function(){return E8(this,1)};var CJT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(CJT,_.q3);var YA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(YA,_.q3);YA.prototype.getMetadata=function(){return _.Q1(this,DUT,7,AQ)};
YA.prototype.hasMetadata=function(){return _.wI(this,DUT,7,AQ)};
var NPv=_.ylg(YA),AQ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var dY=function(G){this.JSC$12488_name_=G;this.files_=[];this.directories_=[];this.directoryMap_={}};
dY.prototype.getName=function(){return this.JSC$12488_name_};var cH=function(G,B){this.callback_=B;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new dY("");yEv(this,G,this.rootDirectory_);JQ(this)},yEv=function(G,B,F){for(var D=0;D<B.length;D++){var u=B[D];
u.isFile?(G.fileOps_++,u.file((0,_.R_)(G.handleFileSuccess_,G,F),(0,_.R_)(G.handleFileError_,G))):G.unscannedDirectories_.push(new nEG(u,F))}},JQ=function(G){if(G.unscannedDirectories_.length>0&&G.directoryOps_<5&&!G.hasError_){G.directoryOps_++;
var B=G.unscannedDirectories_.shift(),F=B.entry,D=new dY(F.name);B=B.parent;B.directoryMap_[D.getName()]=D;B.directories_.push(D);F=F.createReader();F.readEntries((0,_.R_)(G.handleDirectorySuccess_,G,F,D),(0,_.R_)(G.handleDirectoryError_,G))}G.directoryOps_!=0||G.fileOps_!=0||G.unscannedDirectories_.length!=0&&!G.hasError_||G.callback_(G.rootDirectory_.files_,G.rootDirectory_.directories_,G.hasError_)};
cH.prototype.handleDirectorySuccess_=function(G,B,F){yEv(this,F,B);F.length==0?(this.directoryOps_--,JQ(this)):G.readEntries((0,_.R_)(this.handleDirectorySuccess_,this,G,B),(0,_.R_)(this.handleDirectoryError_,this))};
cH.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;JQ(this)};
cH.prototype.handleFileSuccess_=function(G,B){G.files_.push(B);this.fileOps_--;JQ(this)};
cH.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;JQ(this)};
var nEG=function(G,B){this.entry=G;this.parent=B};var TG=function(G){_.W1.call(this);_.H1(G,"drop",this.onObjectsDropped_,!1,this);_.H1(G,"dragenter",this.onFilesDragged_,!1,this);_.H1(G,"dragover",this.onFilesDragged_,!1,this);_.H1(G,"dragleave",this.onDragLeave_,!1,this);_.H1(G,"dragend",this.onDragLeave_,!1,this)};
_.IC(TG,_.W1);var l98=function(G,B){_.T_.call(this,"f");this.files=G;this.directories=B};
_.IC(l98,_.T_);var UUL=function(){_.T_.call(this,"h")};
_.IC(UUL,_.T_);var q7L=function(){_.T_.call(this,"i")};
_.IC(q7L,_.T_);var EEs=function(){_.T_.call(this,"g")};
_.IC(EEs,_.T_);TG.prototype.onObjectsDropped_=function(G){var B=this;G.preventDefault();var F=G.event_.dataTransfer;if((G=F&&F.items)&&G.length>0&&G[0].webkitGetAsEntry){F=[];for(var D=[],u=0;u<G.length;u++){var R=G[u].webkitGetAsEntry();R?F.push(R):D.push(G[u])}new cH(F,function(N,y,U){U?B.dispatchEvent(new EEs("Error occurred while reading from the file system.")):B.dispatchEvent(new l98(N,y,D))})}else(G=F&&F.files)&&this.dispatchEvent(new l98(Array.from(G),[]))};
TG.prototype.onFilesDragged_=function(G){G.type==="dragenter"&&this.dispatchEvent(new UUL);G.preventDefault()};
TG.prototype.onDragLeave_=function(){this.dispatchEvent(new q7L)};var hYs=function(G,B){this.JSC$12511_name_=G;this.inputElement_=B};
hYs.prototype.getName=function(){return this.JSC$12511_name_};
hYs.prototype.getInputElement=function(){return this.inputElement_};var Ic=function(G,B,F){B=B===void 0?"single_file":B;F=F===void 0?[]:F;_.W1.call(this);this.overlayTarget_=G;this.parentOverlay_=G!=null?G.parentNode:_.G_("scotty-overlay-parent");this.selectorType_=B;this.acceptTypes_=F;this.overlay_=KwG(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.r(Ic,_.W1);
var KwG=function(G,B,F,D){var u=document.createElement("input");u.setAttribute("type","file");u.setAttribute("name","Filedata");_.H1(u,"change",G.onFilesSelected_,!1,G);F==="multiple_file"&&(u.multiple="true");F==="single_directory"&&(u.webkitdirectory="true");D.length>0&&u.setAttribute("accept",D.join(","));u.style.position="absolute";u.style.overflow="hidden";u.style.height="0px";u.style.width="0px";u.style.opacity="0";u.setAttribute("aria-hidden","true");u.setAttribute("tabIndex",-1);if(G.overlayTarget_!=
null)return u.style.height=B.offsetHeight+"px",u.style.width=B.offsetWidth+"px",G.parentOverlay_&&(G.parentOverlay_.style.position="relative"),_.Hb(u,B),z6(u,new _.e5(B.offsetLeft,B.offsetTop)),u;G.parentOverlay_.appendChild(u);return u};
Ic.prototype.click=function(){this.overlay_.click()};
Ic.prototype.onFilesSelected_=function(G){a:{try{var B=(new XMLHttpRequest).upload!==void 0;break a}catch(q){}B=!1}if(B){var F;G=Array.from((F=G.target.files)!=null?F:[]);F=[];if(this.selectorType_==="single_directory"&&(_.Bz||cQ||_.ih)){F=new dY("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(B=0;B<G.length;B++)for(var D=G[B],u=D.webkitRelativePath.split("/"),R=F,N=0;N<u.length;N++){var y=u[N];if(N==u.length-1){y!="."&&R.files_.push(D);break}var U=R.directoryMap_[y];U==void 0&&(y=
U=new dY(y),R.directoryMap_[y.getName()]=y,R.directories_.push(y));R=U}F=F.directories_}this.dispatchEvent(new a9w(G,F,null))}else G=G.target.value,G.match(/^c:\\fakepath\\/i)&&(G=G.substring(12)),this.dispatchEvent(new a9w([],[],new hYs(G,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=KwG(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var a9w=function(G,B){_.T_.call(this,"j");this.files=G;this.directories=B};
_.r(a9w,_.T_);var mUG=function(G){this.uploadUrl_=G};var Xft=function(){_.W1.call(this)};
_.IC(Xft,_.W1);var fg=function(G){_.T_.call(this,G)};
_.IC(fg,_.T_);var tQ=function(G){_.T_.call(this,G)};
_.IC(tQ,_.T_);var QVa=function(G,B,F,D,u){_.W1.call(this);F=document.createElement("form");F.setAttribute("method",B);F.setAttribute("enctype","multipart/form-data");F.setAttribute("encoding","multipart/form-data");B=document.createElement("input");B.setAttribute("type","hidden");B.setAttribute("name","metadata");B.setAttribute("value",u);F.appendChild(B);F.appendChild(D);this.JSC$12528_form_=F;G=new _.ea(G);_.A7(G,"upload_protocol","multipart");this.JSC$12528_url_=G.toString();this.JSC$12528_request_=new NY;this.state_=
"Ready";this.JSC$12528_errorDescription_=null;this.JSC$12528_eventHandler_=new _.Cn(this);_.gq(this,this.JSC$12528_eventHandler_);this.JSC$12528_eventHandler_.listen(this.JSC$12528_request_,"success",this.onTransferSuccess_);this.JSC$12528_eventHandler_.listen(this.JSC$12528_request_,"error",this.onTransferError_)};
_.r(QVa,Xft);_.w=QVa.prototype;_.w.run=function(){this.state_="Transferring";var G=this.JSC$12528_request_,B=this.JSC$12528_form_;if(G.JSC$11795_active_)throw Error("ue");var F=new _.ea(this.JSC$12528_url_||B.action);G.JSC$11795_form_=B;B=G.JSC$11795_form_;F=_.PX(F.toString());F!==void 0&&(B.action=F);zaT(G)};
_.w.getResponseCode=function(){return null};
_.w.getResponseText=function(){return this.JSC$12528_request_&&this.JSC$12528_request_.getResponseText()||null};
_.w.JSC$30540_getErrorDescription=function(){return this.JSC$12528_errorDescription_};
_.w.cancel=function(){this.JSC$12528_request_&&this.JSC$12528_request_.abort();this.state_="Cancelled";this.dispatchEvent(new fg("o"))};
_.w.pause=function(){};
_.w.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new fg("l"))};
_.w.onTransferError_=function(){this.JSC$12528_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new fg("n"))};var ZW=function(){_.jt.call(this)};
_.r(ZW,_.jt);ZW.prototype.createXhr=function(){var G=_.jt.prototype.createXhr.call(this);G.upload&&(G.upload.onprogress=(0,_.R_)(this.onProgress_,this));return G};
ZW.prototype.onProgress_=function(G){this.dispatchEvent(G)};var jVq=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},rEt=function(G,B){var F=G.attempt_+1;
if(G.maxAttempts_>0&&F>G.maxAttempts_)return!1;F==0?B():G.delayCallId_=mK(function(){G.delayCallId_=null;B()},Lws(G),G);
G.attempt_=F;return!0};
jVq.prototype.reset=function(){this.delayCallId_&&_.Fz.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Lws=function(G){var B=250*Math.pow(2,G.attempt_);G.maxDelayMs_>=0&&(B=Math.min(B,G.maxDelayMs_));return B};var Wi6=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var gY=function(){_.W1.call(this);this.JSC$12538_request_=this.state_=null;this.JSC$12538_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12538_bytesTransferred_=0;this.retryIterator_=new jVq;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12538_errorDescription_=null;this.JSC$12538_eventHandler_=new _.Cn(this);_.gq(this,this.JSC$12538_eventHandler_);this.JSC$12538_url_=this.blob_=null;this.JSC$12538_method_=void 0;this.chunkSize_=this.JSC$12538_metadata_=
this.JSC$12538_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12538_responseText_=this.JSC$12538_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.IC(gY,Xft);_.w=gY.prototype;_.w.run=function(){SA(this)};
_.w.getResponseCode=function(){return this.JSC$12538_responseCode_};
_.w.getResponseText=function(){return this.JSC$12538_responseText_};
_.w.JSC$30540_getErrorDescription=function(){return this.JSC$12538_errorDescription_};
_.w.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12538_eventHandler_.removeAll();this.JSC$12538_request_&&this.JSC$12538_request_.abort();this.retryIterator_.reset();var G=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(G==="Upload"||G==="Query")G=new ZW,G.JSC$10106_withCredentials_=this.JSC$12538_withCredentials_,G.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12538_bytesTransferred_=
0;this.dispatchEvent(new fg("o"))}};
_.w.pause=function(){this.pauseRequested_=!0};
var SA=function(G){var B=G.state_;G.pauseRequested_?(G.pauseRequested_=!1,G.stateAfterUnpausing_=B,G.state_="Paused"):rEt(G.retryIterator_,function(){switch(G.state_){case "Start":G.JSC$12538_request_=new ZW;var F=_.UK.clone(G.JSC$12538_headers_);G.blob_.size!=null&&(F["Content-Length"]=G.blob_.size);F=Hg6(F);F["X-Goog-Upload-Protocol"]="resumable";F["X-Goog-Upload-Command"]="start";G.JSC$12538_eventHandler_.removeAll();G.JSC$12538_eventHandler_.listen(G.JSC$12538_request_,"complete",G.onStartComplete_);
G.JSC$12538_request_.JSC$10106_withCredentials_=G.JSC$12538_withCredentials_;G.JSC$12538_request_.send(G.JSC$12538_url_,G.JSC$12538_method_,G.JSC$12538_metadata_,F);G.lastCommandResponseCode_=null;G.dispatchEvent(new tQ("q"));break;case "Upload":F=G.transferHandle_.uploadUrl_;var D=G.blob_.size;if(XZy()){var u=G.chunkSize_;var R=G.offset_+u>=D;D=mWP(G.blob_,G.offset_,R?D:G.offset_+u)}else G.offset_=0,D=G.blob_,R=!0;G.JSC$12538_request_=new ZW;G.JSC$12538_request_.JSC$10106_withCredentials_=G.JSC$12538_withCredentials_;
G.JSC$12538_eventHandler_.removeAll();G.JSC$12538_eventHandler_.listen(G.JSC$12538_request_,"progress",G.onUploadProgress_);u=(0,_.R_)(G.JSC$12540_onUploadComplete_,G,G.offset_+D.size,R);G.JSC$12538_eventHandler_.listen(G.JSC$12538_request_,"complete",u);G.lastCommandResponseCode_=null;G.dispatchEvent(new tQ("q"));R=Object.assign({},G.JSC$12538_headers_||{},{"X-Goog-Upload-Command":"upload"+(R?", finalize":""),"X-Goog-Upload-Offset":G.offset_});G.JSC$12538_request_.send(F,"POST",D,R);break;case "Query":G.JSC$12538_request_=
new ZW;G.JSC$12538_eventHandler_.removeAll();G.JSC$12538_eventHandler_.listen(G.JSC$12538_request_,"complete",G.onQueryComplete_);F=Object.assign({},G.JSC$12538_headers_||{},{"X-Goog-Upload-Command":"query"});G.JSC$12538_request_.send(G.transferHandle_.uploadUrl_,"POST","",F);G.lastCommandResponseCode_=null;G.dispatchEvent(new tQ("q"));break;default:throw Error("mf");}})||sg(G,"Transfer encountered too many consecutive failures.")},sg=function(G,B){G.state_="Error";
G.JSC$12538_errorDescription_=B;G.dispatchEvent(new fg("n"))};
gY.prototype.onStartComplete_=function(G){var B=G.target;this.lastCommandResponseCode_=B.getStatus();this.dispatchEvent(new tQ("r"));if(Wwq(B))HBG(this,B);else if(k88(B)){G=t7(G.target.getAllResponseHeaders());for(var F in G)_.wU(F.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new fg("m"));F=ws(G,"X-Goog-Upload-URL");G=(G=ws(G,"X-Goog-Upload-Chunk-Granularity"))?parseInt(G,10):1;F===void 0||isNaN(G)||G<=0?sg(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
G)*G,this.transferHandle_=new mUG(F),this.dispatchEvent(new fg("p")),this.state_="Upload",this.retryIterator_.reset(),SA(this))}else SA(this)};
gY.prototype.onUploadProgress_=function(G){this.JSC$12538_bytesTransferred_=this.offset_+G.loaded;this.dispatchEvent(new fg("k"))};
gY.prototype.JSC$12540_onUploadComplete_=function(G,B,F){var D=this,u,R;return _.n(function(N){switch(N.nextAddress){case 1:u=F.target;D.lastCommandResponseCode_=u.getStatus();D.dispatchEvent(new tQ("r"));if(OBU(u)||u.getStatus()==404)return D.JSC$12538_bytesTransferred_=G,HBG(D,u),N.return();if(k88(u)){N.jumpTo(2);break}if(!(R=D.detectCorruptedBlobEnabled_)){N.jumpTo(3);break}return N.yield(eY8(D),4);case 4:R=N.yieldResult;case 3:if(R)return sg(D,"Blob has been modified or corrupted."),N.return();
D.requireUploadRequestModification_=u.getStatus()==400;D.state_="Query";SA(D);return N.return();case 2:if(B)return sg(D,"Got a non-final success response after issuing a finalize command."),N.return();D.JSC$12538_bytesTransferred_=G;D.offset_=G;D.retryIterator_.reset();SA(D);return N.return()}})};
gY.prototype.onQueryComplete_=function(G){var B=G.target;this.lastCommandResponseCode_=B.getStatus();this.dispatchEvent(new tQ("r"));Wwq(B)?(B.getStatus()===200&&(this.JSC$12538_bytesTransferred_=this.blob_.size),HBG(this,B)):k88(B)?(G=t7(G.target.getAllResponseHeaders()),G=parseInt(ws(G,"X-Goog-Upload-Size-Received"),10),isNaN(G)?sg(this,"Server did not respond with current offset."):G<this.offset_?sg(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
G+"."):this.requireUploadRequestModification_&&this.offset_===G?sg(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<G&&this.retryIterator_.reset(),this.offset_=this.JSC$12538_bytesTransferred_=G,this.state_="Upload",SA(this))):SA(this)};
var HBG=function(G,B){G.JSC$12538_responseCode_=B.getStatus();var F=t7(B.getAllResponseHeaders());kGz(F);G.JSC$12538_responseText_=B.getResponseText();G.state_="Response received";G.dispatchEvent(new fg("l"))},k88=function(G){var B=G.getStatus();
G=t7(G.getAllResponseHeaders());G=ws(G,"X-Goog-Upload-Status");return B===200&&G==="active"},OBU=function(G){G=t7(G.getAllResponseHeaders());
return ws(G,"X-Goog-Upload-Status")==="final"},Wwq=function(G){if(OBU(G))return!0;
G=G.getStatus();return G>=400&&G<500},eY8=function(G){var B;
return _.n(function(F){if(F.nextAddress==1){if(!G.blob_||G.originalBlobSize_<=0)return F.return(!1);if(G.blob_.size!==G.originalBlobSize_)return F.return(!0);_.b5(F,2);if(B=mWP(G.blob_,0,1)){var D=F.yield,u=new qp,R=tFy(u);u.reader_.readAsBinaryString(B);F=D.call(F,R,4)}else F=F.return(!0);return F}if(F.nextAddress!=2)return F.return(G.blob_.size!==G.originalBlobSize_);_.Al(F);return F.return(!0)})};var $UU=function(G,B,F,D,u,R){_.W1.call(this);this.payload_=D;this.JSC$12541_url_=G;this.JSC$12541_method_=B;this.JSC$12541_headers_=F;this.JSC$12541_metadata_=u;this.encoding_=R||"binary";G=new _.uP;this.boundary_="uploader-"+MN()+"-"+G.JSC$11647_toIsoString();this.JSC$12541_responseText_=this.JSC$12541_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12541_errorDescription_=null;this.JSC$12541_eventHandler_=new _.Cn(this);_.gq(this,this.JSC$12541_eventHandler_)};
_.r($UU,Xft);_.w=$UU.prototype;
_.w.run=function(){var G=_.UK.clone(this.JSC$12541_headers_);this.payload_.length!=null&&(G["Content-Length"]=this.payload_.length);G=Hg6(G);G["X-Goog-Upload-Protocol"]="multipart";G["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new ZW;this.JSC$12541_eventHandler_.removeAll();this.JSC$12541_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12541_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12541_url_,this.JSC$12541_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12541_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",G)};
_.w.getResponseCode=function(){return this.JSC$12541_responseCode_};
_.w.getResponseText=function(){return this.JSC$12541_responseText_};
_.w.JSC$30540_getErrorDescription=function(){return this.JSC$12541_errorDescription_};
_.w.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12541_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new fg("o")))};
_.w.pause=function(){};
_.w.onTransferProgress_=function(){this.dispatchEvent(new fg("k"))};
_.w.onTransferComplete_=function(G){var B=G.target.getStatus();B===void 0||B===-1?(this.JSC$12541_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new fg("n"))):(this.JSC$12541_responseCode_=B,G=G.target,B=t7(G.getAllResponseHeaders()),kGz(B),this.JSC$12541_responseText_=G.getResponseText(),this.state_="Complete",this.dispatchEvent(new fg("l")))};_.zYT=function(G,B,F,D){D=D===void 0?!1:D;if(F instanceof hYs)return new QVa(G,"POST",B,F.getInputElement(),"");if(typeof F==="string"||F instanceof String)return new $UU(G,"POST",B,F,"");var u=new gY(void 0);u.JSC$12538_url_=G;u.JSC$12538_method_="POST";u.JSC$12538_headers_=B;u.blob_=F;u.originalBlobSize_=F.size;u.JSC$12538_metadata_="";D&&(u.JSC$12538_withCredentials_=D);u.state_="Start";return u};var xA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(xA,_.q3);_.w=xA.prototype;_.w.getEnableSsEngine=function(){return _.qV(this,2)};
_.w.getEnableAwr=function(){return _.qV(this,3)};
_.w.getAlohaAutoGaRollout=function(){return _.qV(this,5)};
_.w.getEnableConfigurator=function(){return _.qV(this,6)};
_.w.getEnableMweb=function(){return _.qV(this,7)};
var VOw=function(){var G=bBy();return _.y9(G,7,!0)};
xA.prototype.getEnableCtlConsentCheckbox=function(){return _.qV(this,8)};
xA.prototype.getEnableIframe=function(){return _.qV(this,9)};
var bBy=function(){var G=new xA;G=_.y9(G,5,!0);G=_.y9(G,2,!0);G=_.y9(G,4,!1);G=_.y9(G,8,!0);return _.y9(G,9,!0)};
xA.prototype.getEnableScreenshotNudge=function(){return _.qV(this,10)};
var vEa=function(){var G=VOw();return _.y9(G,10,!0)};
xA.prototype.getEnableWebStartupConfigEndpoint=function(){return _.qV(this,11)};
xA.prototype.getEnableJunkNudge=function(){return _.qV(this,12)};
var tAI=function(){var G=vEa();return _.y9(G,12,!0)};
_.w=xA.prototype;_.w.getEnableConfiguratorLocale=function(){return _.qV(this,13)};
_.w.getEnableTinyNoPointer=function(){return _.qV(this,14)};
_.w.getEnableSupportSessionLogging=function(){return _.qV(this,15)};
_.w.getEnableFileUploadForScreenshot=function(){return _.qV(this,16)};
_.w.getEnableDirectDeflectionForSingleCategory=function(){return _.qV(this,17)};
_.w.getEnableImageSanitization=function(){return _.qV(this,18)};
_.w.getEnableAlohaBinarySplit=function(){return _.qV(this,19)};
_.w.getEnableDbFeedbackIntents=function(){return _.qV(this,20)};
_.w.getEnableMarkMandatoryFieldsWithRequired=function(){return _.qV(this,21)};
_.w.getEnableFeedbackCategoryCustomUi=function(){return _.qV(this,22)};
_.w.getEnableRealtimeCtl=function(){return _.qV(this,23)};var fWJ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(fWJ,_.q3);var OgM=[/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 $9o="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 zTo=_.vP(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),bgL=_.vP(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Ci=function(){var G=Error.call(this,"Form is either loading or already opened");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="DuplicateFormError"};
_.r(Ci,Error);var vAo,pHU,oAQ,Ygo;var PH,oET;
PH=function(G,B,F){G.timeOfStartCall=(new Date).getTime();var D=F||_.Fz,u=D.document,R=G.nonce||_.CI(D.document);R&&!G.nonce&&(G.nonce=R);if(G.flow=="help"){var N=_.Yf("document.location.href",D);!G.helpCenterContext&&N&&(G.helpCenterContext=N.substring(0,1200));N=!0;if(B&&JSON&&JSON.stringify){var y=JSON.stringify(B);(N=y.length<=1200)&&(G.psdJson=y)}N||(B={invalidPsd:!0})}B=[G,B,F];D.GOOGLE_FEEDBACK_START_ARGUMENTS=B;F=G.feedbackServerUri||"//www.google.com/tools/feedback";if(N=D.GOOGLE_FEEDBACK_START)N.apply(D,B);
else{D=F+"/load.js?";for(var U in G)B=G[U],B==null||_.Zc(B)||(D+=encodeURIComponent(U)+"="+encodeURIComponent(B)+"&");G=Ri(u).createElement("SCRIPT");R&&G.setAttribute("nonce",R);_.Ux(G,_.pe(D));u.body.appendChild(G)}};
oET=function(G,B,F,D){var u,R;return _.n(function(N){u=F||_.Fz;var y=G.serverEnvironment==="DEV",U=F||_.Fz;U=G.nonce||_.CI(U.document);y={integrationKeys:{productId:G.productId,feedbackBucket:G.bucket,triggerId:G.triggerId},callbacks:{onClose:G.callback,onLoad:G.onLoadCallback},formContent:{locale:G.locale,disableScreenshot:G.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:G.abuseLink,additionalDataConsent:G.additionalDataConsent},initializationData:{isLocalServer:y,nonce:U,useNightlyRelease:y,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:G.feedbackServerUri,colorScheme:G.colorScheme},extraData:{productVersion:G.productVersion,authUser:G.authuser,configuratorId:G.configuratorId,customZIndex:G.customZIndex,tinyNoPointer:G.tinyNoPointer,
allowNonLoggedInFeedback:G.allowNonLoggedInFeedback,enableAnonymousFeedback:G.enableAnonymousFeedback}};B&&(U=new Map(Object.entries(B)),y.extraData.productSpecificData=U);R=y;return N.yield(cQz(R,D,u),0)})};
_.MO8=function(G,B,F){try{if(G.flow==="help"){var D=G.helpCenterPath.replace(/^\//,"");_.wi(F||window,"https://support.google.com/"+D)}else G.flow==="submit"?PH(G,B,F):ZgJ(G.productId,G.feedbackServerUri).then(function(u){u=_.sf(u,xA,1);var R=!UHU||(u==null?void 0:u.getEnableMweb()),N=!G.tinyNoPointer||(u==null?void 0:u.getEnableTinyNoPointer());!u||u.getAlohaAutoGaRollout()&&R&&N?oET(G,B,F,u).catch(function(y){!y||y instanceof Ci||PH(G,B,F)}):PH(G,B,F)},function(u){!u||u instanceof Ci||PH(G,B,F)})}catch(u){oET(G,
B,F,null).catch(function(R){!R||R instanceof Ci||PH(G,B,F)})}};
_.IY("userfeedback.api.startFeedback",_.MO8);var gAL=/https?:\/\/\S+\.\S+/,SgM=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],sco=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var u$U=function(G){var B=G.split(""),F=[-263237435,15,B,function(D,u,R){var N=u.length;R.forEach(function(y,U,q){this.push(q[U]=u[(u.indexOf(y)-u.indexOf(this[U])+U+N--)%u.length])},D.split(""))},
function(D,u){D=(D%u.length+u.length)%u.length;u.splice(-D).reverse().forEach(function(R){u.unshift(R)})},
"response",function(){for(var D=64,u=[];++D-u.length-32;){switch(D){case 58:D-=14;case 91:case 92:case 93:continue;case 123:D=47;case 94:case 95:case 96:continue;case 46:D=95}u.push(String.fromCharCode(D))}return u},
null,12,1540023973,65941107,null,B,function(D,u){for(D=(D%u.length+u.length)%u.length;D--;)u.unshift(u.pop())},
695603893,function(D){for(var u=D.length;u;)D.push(D.splice(--u,1)[0])},
"'[;'[(",function(D,u){D.push(u)},
null,function(D,u,R,N,y){return u(R,N,y)},
"continuation",B,function(D,u){if(D.length!=0){u=(u%D.length+D.length)%D.length;var R=D[0];D[0]=D[u];D[u]=R}},
function(){for(var D=64,u=[];++D-u.length-32;){switch(D){case 91:D=44;continue;case 123:D=65;break;case 65:D-=18;continue;case 58:D=96;continue;case 46:D=95}u.push(String.fromCharCode(D))}return u},
'"),/]];'];F[7]=F;F[11]=F;F[18]=F;try{(((0,F[15])(F[21]),F[22])(F[11],F[9]),F[22])(F[new Date("1970-01-01T04:30:12.000+04:30")/1E3],F[1]),((0,F[22])(F[11],F[23]),F[4])(F[10],F[18]),(0,F[20])(F[21],F[14])<<(0,F[17])(F[18],F[1]),(0,F[4])(F[8],F[21]),(0,F[19])((0,F[19])((0,F[17])(F[7],F[9]),F[3],F[20],(0,F[6])(),F[2]),F[3],F[5],(0,F[15])(),F[2])}catch(D){return"aTlOUOubTO4AP____8P_"+G}return B.join("")};_.pfq=new _.vf("runAttestationCommand");var Y78=new _.vf("verifyCommand");_.yL=new _.vf("accessibilityContext");var AE8=new _.vf("accessibilityData");var dUw=new _.vf("profileCardCommand");var gto=new _.vf("signInEndpoint");var ZK6=new _.vf("signOutEndpoint");var cEw;_.JEL=new _.vf("accountItemSectionRenderer");cEw=new _.vf("accountItemRenderer");_.TPN=new _.vf("saveCommandToSessionStorageAction");var I9v=new _.vf("crossAccountChannelTransferEndpoint");var JOS=new _.vf("getAccountMenuEndpoint");_.cOS=new _.vf("getAccountSwitcherEndpoint");var dwQ=new _.vf("getAccountsListEndpoint");var f9T=new _.vf("getAccountsListInnertubeEndpoint");_.tOs=new _.vf("addToToastAction");var ZBP=new _.vf("hideEnclosingAction");_.GV=new _.vf("replaceEnclosingAction");var gEG=new _.vf("buttonRefreshAction");var S7P=new _.vf("adsControlFlowOpportunityReceivedCommand");var sVs=new _.vf("openAdAllowlistInstructionCommand");var xUP=new _.vf("videoMastheadAdPrimaryVideoRenderer");var PJU=new _.vf("displayAdRenderer");_.Gus=new _.vf("inFeedAdLayoutRenderer");var BLs=new _.vf("sequenceItemInPlayerAdLayoutRenderer");_.id7=new _.vf("adSlotRenderer");var FEs=new _.vf("adAvatarViewModel");var DQU=new _.vf("adBadgeViewModel");var u77=new _.vf("adButtonViewModel");var RyT=new _.vf("adImageViewModel");var y$o=new _.vf("reelsAdCardButtonedViewModel");var wLN=new _.vf("reelsPlayerOverlayLayoutViewModel");var CwN=new _.vf("formDataDecoratorCommand");var NL7=new _.vf("updateConversationIdCommand");var ysy=new _.vf("showSchedulingPanelCommand");var lzL=new _.vf("backstageCommentsRenderer");var UQ8=new _.vf("backstageImageRenderer");var q9q=new _.vf("backstagePostRenderer");var EeT=new _.vf("backstageZeroStateRenderer");var hyT=new _.vf("postRenderer");var KEa=new _.vf("sharedPostRenderer");var azq=new _.vf("createBackstagePostEndpoint");var mQt=new _.vf("getPostVideoPreviewEndpoint");var XLt=new _.vf("updateBackstagePostEndpoint");var Q6t=new _.vf("filterChipTransformCommand");var j6y=new _.vf("insertRichSectionCommand");var MfL=new _.vf("talkToRecsDeselectCommand");var LEw=new _.vf("talkToRecsNextCommand");var oH6=new _.vf("talkToRecsSelectCommand");var rsG=new _.vf("talkToRecsUpdateTextCommand");_.x9=new _.vf("browseEndpoint");_.WE8=new _.vf("confirmDialogEndpoint");var Hdy=new _.vf("expandOnHoverCardRenderer");var kuy=new _.vf("lumiereShelfDetailsRenderer");var Odq=new _.vf("revealBusinessEmailCommand");var eyP=new _.vf("validateChannelHandleCommand");var $Qy=new _.vf("channelCreationFormEndpoint");var zyq=new _.vf("aboutChannelViewModel");var bdP=new _.vf("channelThumbnailWithLinkRenderer");var VHy=new _.vf("channelCreationServiceEndpoint");var ve8=new _.vf("updateChannelPageSettingsEndpoint");var BR=function(G){this.delegate=G},i6=function(){BR.apply(this,arguments)};
_.r(i6,BR);_.ZN.Object.defineProperties(i6.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(G){this.delegate.entityMetadata=G}}});var oe7=function(){i6.apply(this,arguments)};
_.r(oe7,i6);oe7.prototype.getAssociations=function(){return[]};
oe7.prototype.getTypeName=function(){return"channelHandle"};var MHs=new _.vf("webResponseContextExtensionData");var tGQ=new _.vf("webThumbnailDetailsExtensionData");_.Xj=new _.vf("commandContext");var pLP=new _.vf("addVideoLinkAction");var Y9t=new _.vf("banAuthorAction");var AsN=new _.vf("createCommentAction");var dQs=new _.vf("createCommentReplyAction");var JsP=new _.vf("createPollAction");var csw=new _.vf("hideIdentityChipAction");var TLG=new _.vf("openUpdateCommentDialogAction");var IzL=new _.vf("pinCommentAction");var fzq=new _.vf("removeCommentAction");var tHa=new _.vf("unpinCommentAction");var Fq=new _.vf("updateBackstagePollAction");var Zdw=new _.vf("updateCommentVoteAction");var gea=new _.vf("commentThreadRenderer");var S9L=function(){i6.apply(this,arguments)};
_.r(S9L,i6);S9L.prototype.getAssociations=function(){return[]};
S9L.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var s6v=function(){i6.apply(this,arguments)};
_.r(s6v,i6);s6v.prototype.getAssociations=function(){return[]};
s6v.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.xQG=new _.vf("commentDialogRenderer");var Pwy=new _.vf("reloadCommentsCommand");var Gk8=new _.vf("updateCommentsSettingsEndpoint");var BuP=new _.vf("commentViewModel");var ioU=new _.vf("triStateButtonViewModel");var F$y=new _.vf("voiceReplyContainerViewModel");_.gs=new _.vf("commandExecutorCommand");var Kk=new _.vf("emoji");var DpL=new _.vf("updateCreatorChannelInnertubeCommand");_.uMs=new _.vf("appendContinuationItemsAction");_.RdL=new _.vf("changeEngagementPanelVisibilityAction");_.QO=new _.vf("continuationCommand");var wVs=new _.vf("hideReportedCommentAction");var CPG=new _.vf("listMutationCommand");_.Dx=new _.vf("openPopupAction");var Nuq=new _.vf("persistSubscriptionsDisplayPreferencesCommand");var K$P;_.yD7=new _.vf("playlistRemoveVideosAction");_.nCG=new _.vf("updatePlaylistAction");_.lTP=new _.vf("addToPlaylistCommand");_.Ups=new _.vf("endPlaylistCommand");_.qVs=new _.vf("recoverPlaylistCommand");_.ECy=new _.vf("refreshPlaylistCommand");_.hdq=new _.vf("refreshFormCommand");K$P=new _.vf("openOnePickAddVideoModalCommand");var SJ6=new _.vf("reloadContinuationItemsCommand");var aTv=new _.vf("restoreCachedContinuableDataCommand");_.mpP=new _.vf("scrollToEngagementPanelCommand");var XVq=new _.vf("selectCountryCommand");var Q3q=new _.vf("showReloadUiCommand");var j3w=new _.vf("undoFeedbackAction");var L$v=new _.vf("updateButtonAction");var rDs=new _.vf("updateSubscribeButtonAction");var W$P=new _.vf("updateToggleAction");var Hot=new _.vf("webNativeShareCommand");_.xy=new _.vf("webCommandMetadata");_.u6=new _.vf("webHandleServiceEndpointExtension");var is6=new _.vf("webNavigationEndpointData");var kkG=new _.vf("backgroundAudioPlaybackCommand");var Ooq=new _.vf("copyLinkCommand");var edt=new _.vf("playlistVotingRefreshPopupCommand");var $py=new _.vf("selectChipCommand");var zdN=new _.vf("setCookieCommand");var boa=new _.vf("setLocalStorageCommand");var V7t=new _.vf("setPrefStorageEntryCommand");var pVU;_.vCt=new _.vf("settingsUpdateCheckboxCommand");_.oCv=new _.vf("settingsUpdateTextCommand");_.M77=new _.vf("settingsUpdateOptionsCommand");pVU=new _.vf("settingsUpdateSwitchCommand");_.YVt=new _.vf("settingsUpdateConnectedAppRendererCommand");var ADq=new _.vf("showCreatorChatbotEngagementPanelCommand");var dpP=new _.vf("updateTextInputFormFieldRendererCommand");var JDN=new _.vf("updateToggleButtonStateCommand");var cDG=new _.vf("updateUrlParamCommand");var Tuq=new _.vf("webSubmitFormCommand");var IT7=new _.vf("channelSwitcherPageRenderer"),fT7=new _.vf("updateChannelSwitcherPageAction");_.c0=new _.vf("continuationItemRenderer");_.R1=new _.vf("richItemRenderer");var t7t=new _.vf("richSectionRenderer");_.Zoa=new _.vf("richShelfRenderer");_.gCT=new _.vf("metadataBadgeRenderer");_.SVq=new _.vf("multiPageMenuNotificationSectionRenderer");_.s37=new _.vf("playlistLoopButtonStateRenderer");var xpG=new _.vf("claimLegacyYoutubeChannelEndpoint");var PPq=new _.vf("getNotificationMenuEndpoint");var GGy=new _.vf("getSearchInVideoCommand");_.BY8=new _.vf("getTranscriptEndpoint");_.sw=new _.vf("signalServiceEndpoint");var ig7=new _.vf("verifyAgeEndpoint");var wql=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(wql,_.q3);wql.prototype.getPath=function(){return _.KX(this,1)};
wql.prototype.getValue=function(){return _.KX(this,2)};var FiP=[0,_.Yz,-1];var D9G=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(D9G,_.q3);var RKS=_.HX(D9G,[0,_.JR,FiP]);var uPw=new _.vf("dismissalEndpoint");var RTa=new _.vf("elementsCommand");_.mr=new _.vf("innertubeCommand");var vOM=new _.vf("multipleInlinePlaybackCommand");var AkJ=new _.vf("loggingDirectives");var wHq=new _.vf("acknowledgeChannelTouStrikeCommand");var CEU=function(){i6.apply(this,arguments)};
_.r(CEU,i6);CEU.prototype.getAssociations=function(){return[]};
CEU.prototype.getTypeName=function(){return"booleanEntity"};var NYv=function(){i6.apply(this,arguments)};
_.r(NYv,i6);NYv.prototype.getAssociations=function(){return[]};
NYv.prototype.getTypeName=function(){return"stringEntity"};var bN=new _.vf("entityBatchUpdate");_.yQq=new _.vf("entityUpdateCommand");var nAy=function(){i6.apply(this,arguments)};
_.r(nAy,i6);nAy.prototype.getAssociations=function(){var G=[];this.delegate.alternateChannel&&G.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&G.push.apply(G,_.gi(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&G.push(this.delegate.oneofChannelEntity);return[].concat(_.gi(new Set(G)))};
nAy.prototype.getTypeName=function(){return"fakeChannel"};var lW7=function(){i6.apply(this,arguments)};
_.r(lW7,i6);lW7.prototype.getAssociations=function(){var G=[];this.delegate.entryCollection&&G.push(this.delegate.entryCollection);return[].concat(_.gi(new Set(G)))};
lW7.prototype.getTypeName=function(){return"fakePlaylist"};
var U9t=function(){i6.apply(this,arguments)};
_.r(U9t,i6);U9t.prototype.getAssociations=function(){var G=[];this.delegate.parentPlaylist&&G.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var B=_.C(this.delegate.entries),F=B.next();!F.done;F=B.next())G.push.apply(G,_.gi((new qgG(F.value)).getAssociations()));return[].concat(_.gi(new Set(G)))};
U9t.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var qgG=function(){BR.apply(this,arguments)};
_.r(qgG,BR);qgG.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);return[].concat(_.gi(new Set(G)))};var EAq=function(){i6.apply(this,arguments)};
_.r(EAq,i6);EAq.prototype.getAssociations=function(){var G=[];this.delegate.descriptionEntity&&G.push(this.delegate.descriptionEntity);this.delegate.creators&&G.push.apply(G,_.gi(this.delegate.creators));this.delegate.theBiggestFan&&G.push(this.delegate.theBiggestFan);return[].concat(_.gi(new Set(G)))};
EAq.prototype.getTypeName=function(){return"fakeVideo"};
var hTt=function(){i6.apply(this,arguments)};
_.r(hTt,i6);hTt.prototype.getAssociations=function(){return[]};
hTt.prototype.getTypeName=function(){return"fakeVideoDescription"};var KiP=new _.vf("fantasyRosterViewModel");var aWw=new _.vf("addFollowUpSurveyCommand");var m9y=new _.vf("getSurveyCommand");var XHG=new _.vf("ratingSurveyOptionRenderer");_.QG=new _.vf("feedbackEndpoint");var QcL=new _.vf("reportHistoryTableCellRenderer"),jcT=new _.vf("reportHistoryTableTextCellRenderer"),LiN=new _.vf("reportHistoryTableReasonCellRenderer");_.rQN=new _.vf("flagEndpoint");var Wis=new _.vf("deleteFlowStepsCommand");_.Hgs=new _.vf("flowNextStepCommand");_.kGa=new _.vf("flowPrevStepCommand");var Ogv=new _.vf("getFlowCommand");var eTa=new _.vf("submitFormWithValidationFlowCommand");_.$9P=new _.vf("updateFlowCommand");var zTP=function(){i6.apply(this,arguments)};
_.r(zTP,i6);zTP.prototype.getAssociations=function(){return[]};
zTP.prototype.getTypeName=function(){return"flowStateEntity"};var bg8=new _.vf("flowFormState");_.wr=new _.vf("flowStepRenderer");var VAt=new _.vf("gameCardRenderer");var vAP=new _.vf("accountLinkingStateChangedCommand");var oA7=function(){i6.apply(this,arguments)};
_.r(oA7,i6);oA7.prototype.getAssociations=function(){return[]};
oA7.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var MAU=new _.vf("changeMiniAppPlayStateCommand");var pHw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(pHw,_.q3);var CV=[1,2,3];var YgP=[0,CV,tz7,_.dI,Yy8];var AQT=_.HX(pHw,YgP),d97=_.Oy(YgP);var JQq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(JQq,_.q3);var cQa=[0,_.bc,_.Yz];var TYT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(TYT,_.q3);var IWq=[0,_.Yz,_.bc,-1];var N_=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(N_,_.q3);var fWU=_.Oy([0,1,cQa,_.fX,IWq,_.Yz,-1]);var tAq=new _.vf("miniAppScoreChallengeViewModel");var ZgU=new _.vf("miniGameCardViewModel");var gA8=new _.vf("teaserCardViewModel");var Sgv=function(){i6.apply(this,arguments)};
_.r(Sgv,i6);Sgv.prototype.getAssociations=function(){return[]};
Sgv.prototype.getTypeName=function(){return"logoEntity"};var scP=new _.vf("feedbackItemRenderer");var x9P=function(){i6.apply(this,arguments)};
_.r(x9P,i6);x9P.prototype.getAssociations=function(){return[]};
x9P.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.PE7=new _.vf("playerInterstitialRenderer");var GV8=new _.vf("getKidsBlocklistPickerCommand");_.Bra=new _.vf("updateKidsBlacklistEndpoint");_.yr=new _.vf("likeEndpoint");var iVv,F9N,D_G;iVv=new _.vf("addChatItemAction");F9N=new _.vf("removeChatItemAction");D_G=new _.vf("markChatItemAsDeletedAction");_.uq7=new _.vf("setLiveChatCollapsedStateAction");var RxP=function(){i6.apply(this,arguments)};
_.r(RxP,i6);RxP.prototype.getAssociations=function(){return[]};
RxP.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var wRU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(wRU,_.q3);wRU.prototype.getPayloadCase=function(){return _.NV(this,C6N)};
var C6N=[3,4];var Nra=[0,_.JR,[0,[1,2],_.dI,_.cU,[0,_.AR,1,_.AR]]];var y97=[0,_.Yz,-1];var nZa=[0,[1],_.dI];var nV=[0,[1,2],_.dI,_.cU,[0,_.fX]];var l6=[0,_.Yz];var lxP=[0,[0,_.MV,_.oD,[0,_.AR,_.tR,_.AR]],1,[0,_.MV]];var U_y=[0,V1];var qsN=[0,V1];var EZP=[0,qsN,U_y];var hxG=[0,_.JR,[0,[1,2],_.dI,-1],_.MV];var K9w=[0,[2],1,_.cU,[0,_.AR,-1,hxG]];var axP=[0,[1],_.cU,[0,_.AR,_.Yz,_.tR,1,hxG]];var m_T=[0,_.oD,-1,pXw,_.fX];var XRt=[0,[0,z9,-3],-4];var Us=[0,_.MV,-3,_.Yz,_.MV,_.fc,_.MV,Nra,_.MV,-2];var q_=[0,_.JR,[0,[1,2],_.dI,-1],_.MV,_.Yz];var Q1G=[0,[3],nV,[0,[2,3,4],x3L,_.dI,-2],_.cU,[0,_.Yz],_.bc];var j1T=[0,[3,5],_.Yz,_.vU,_.cU,[0,1,_.bc,_.fX],_.fX,_.cU,[0,_.fX,_.bc]];var L9y=[0,2,_.vU,_.Yz,-1];var r9t=[0,I6s];var W9s=[0,[3,4],2,d3P,_.dI,_.Yz];var HVy=[0,_.fX,-2,1,_.Yz];var kVa=[0,_.Yz,-1,_.fX];var OVy=[0,l6,function(){return Es},
l6,_.Yz],exy=[0,_.fX,l6,nV,function(){return Es},
_.Yz],Es=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],l6,_.vU,[0,_.MV,1,_.MV,1,_.MV,1,_.fX,-1,l6],[0,1,_.MV,2,_.MV,_.fX,_.MV],1,_.vU,-1,_.Yz,_.vU,2,z9,[0,z9,_.vU],_.Yz,1,lxP,1,nV,_.fc,1,[0,[0,_.JR,[0,_.Yz,_.MV,_.fX]]],[0,_.MV,[0,_.bc,[0,_.tR]],_.bc,1,[0,cjy,-1]],_.Yz,[0,1,_.Yz],76,_.cU,[0,nV,q_,lxP,1,[0,_.JR,q_]],1,_.cU,[0,nV,_.Yz,
_.MV],_.cU,[0,nV,nZa],_.cU,[0,nV,nZa,_.vU],_.cU,[0,nV,nZa],_.cU,[0,nV,_.JR,l6,nV,ZeG],_.cU,[0,nV,l6,_.Yz],_.cU,[0,nV,_.MV,Us,-1,_.MV],4,_.cU,[0,nV,_.MV,_.vU,Us,_.MV],_.cU,[0,[4,9],nV,_.fX,_.vU,_.dI,q_,1,lxP,_.Yz,_.dI,HVy],_.cU,[0,nV,l6,nV,_.fX,_.Yz],_.cU,[0,_.MV,nV,Us,_.MV,_.Yz],_.cU,[0,nV,l6,nV,_.fX,_.Yz],1,_.cU,[0,nV,_.fX,_.Yz,Us],_.cU,[0,nV,_.fX,[0,_.Yz,_.vU],_.Yz,_.vU,_.Yz,_.ID,-2,3,kVa,_.JR,kVa,kVa,HVy],_.cU,[0,nV,_.fX,axP,_.JR,[0,qsN,K9w],l6,_.JR,EZP,_.Yz,1,_.fX,m_T,XRt,MzT,-1],_.cU,[0,nV,[0,
_.tR,-1,axP,_.JR,[0,qsN,K9w,U_y],[0,_.t5],1,_.AR],l6,_.Yz],_.cU,[0,nV,q_,_.Yz,[0,_.oD]],_.cU,function(){return exy},
_.cU,[0,nV,_.vU,_.Yz,-1,_.MV],_.cU,[0,[6,7],nV,_.JR,L9y,_.fX,q_,1,_.cU,W9s,_.cU,r9t],_.cU,[0,_.JR,L9y,_.fX,_.MV],_.cU,[0,_.Yz,$zv,-1],_.cU,[0,l6,_.JR,EZP,_.Yz],_.cU,[0,nV,l6,_.Yz],_.cU,[0,_.ID,_.Yz],_.cU,[0,y97],_.cU,[0,y97],_.cU,[0,q_],_.cU,[0,l6,q_],_.cU,function(){return OVy},
_.cU,[0,l6,_.Yz],_.cU,[0,l6,_.Yz],1,_.cU,[0,_.MV,nV,Us,_.MV,Us],_.cU,[0,_.t5],1,_.cU,[0],1,_.cU,[0,l6,_.fX,nV,_.fX],_.cU,[0,[1,2],_.cU,W9s,_.cU,r9t,_.vU],_.cU,[0,_.t5,q_,j1T,_.Yz,_.vU],_.cU,[0,j1T,_.Yz,_.vU],_.cU,[0,m_T,q_,_.MV,XRt],_.cU,Q1G,_.cU,[0],_.cU,[0,_.Yz,-1,_.bc],_.cU,[0,l6,_.Yz],_.cU,[0,Q1G,_.bc,_.Yz],_.cU,[0,nV,Us,_.MV],_.cU,[0,nV,Us,_.MV],_.cU,[0,m_T,XRt,q_,_.fc,_.MV,MzT,-1],_.cU,[0,nV,Us,_.MV],_.cU,[0,_.vU]];var $_U=[0,_.JR,Es];var zxt=_.HX(wRU,[0,C6N,1,_.bc,_.cU,[0,[18,22,24],$_U,3,[0,$_U],1,_.bc,[0,_.JR,[0,_.vU,z9],_.vU],1,Es,-1,[0,_.pX,-2,_.fc,_.pX,-1,_.fc,_.pX,Nra,_.pX,-2],vS7,[!0,_.Yz,[0,nZa,2,_.Yz,_.vU,_.MV,2,_.Yz,_.ID]],[0,[1,2,3],[5,6],_.cU,[0,_.AR],_.cU,[0,_.AR,-1],_.cU,[0,_.AR],1,_.cU,y97,_.cU,[0,_.Yz]],[0,Es,-1],_.t5,Es,_.cU,Es,[0,$_U],_.bc,Es,_.cU,Es,_.Yz,_.cU,Es,Es],_.cU,kmP,_.bc]);var bV8=new _.vf("liveChatEndpoint");var V0N=new _.vf("liveChatItemContextMenuEndpoint");var vZU=new _.vf("liveChatReplayEndpoint");_.oZa=new _.vf("emojiPickerRenderer");var M0q=new _.vf("liveChatAuthorBadgeViewModel");var pR7=new _.vf("deleteLiveChatMessageCommand");var YsU=new _.vf("liveChatActionEndpoint");var A9t=new _.vf("createLiveChatPollEndpoint");var d_U=new _.vf("manageLiveChatUserEndpoint");var J9L=new _.vf("moderateLiveChatEndpoint");_.c9U=new _.vf("sendLiveChatMessageEndpoint");var TrG=new _.vf("sendLiveChatVoteEndpoint");var Ixv=new _.vf("clearLocationCommand");var fxa=new _.vf("resolveLocationCommand");var t0t=new _.vf("interactionLoggingCommandMetadata");var ZVT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ZVT,_.q3);var gZw=function(G,B){return _.Ii(G,1,B)};var Sss=[0,_.MV];var s1w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(s1w,_.q3);var x_q=function(G,B){return NI(G,1,ZVT,B)};s1w.prototype.JSC$12637_serializeBinary=Nig([0,_.JR,Sss]);var m_g={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 P6t={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"},
GSG={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 Nwo={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE"};_.OaQ=new _.vf("logFlowLoggingEventCommand");_.wJ=new _.vf("loggingContext");var BB7=new _.vf("audioTrackSelectActionCommand");var iMy=new _.vf("captionLanguageSelectActionCommand");var FJG=new _.vf("showAudioTrackPickerActionCommand");var DyT=new _.vf("showCaptionLanguageSelectActionCommand");var u57=new _.vf("dismissDialogEndpoint");var RAt=new _.vf("dismissPlayerOverlayCommand");var wva=new _.vf("hideItemSectionVideosByIdCommand");var C_q=new _.vf("showMiniplayerCommand");var NBa=function(){i6.apply(this,arguments)};
_.r(NBa,i6);NBa.prototype.getAssociations=function(){return[]};
NBa.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var yXU=function(){i6.apply(this,arguments)};
_.r(yXU,i6);yXU.prototype.getAssociations=function(){return[]};
yXU.prototype.getTypeName=function(){return"downloadStatusEntity"};var nlq=function(){i6.apply(this,arguments)};
_.r(nlq,i6);nlq.prototype.getAssociations=function(){return[]};
nlq.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var lhw=function(){i6.apply(this,arguments)};
_.r(lhw,i6);lhw.prototype.getAssociations=function(){var G=[];this.delegate.downloadsList&&G.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&G.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&G.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.gi(new Set(G)))};
lhw.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var UyL=function(){i6.apply(this,arguments)};
_.r(UyL,i6);UyL.prototype.getAssociations=function(){var G=[];this.delegate.refresh&&G.push(this.delegate.refresh);if(this.delegate.downloads)for(var B=_.C(this.delegate.downloads),F=B.next();!F.done;F=B.next())G.push.apply(G,_.gi((new qcN(F.value)).getAssociations()));return[].concat(_.gi(new Set(G)))};
UyL.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var qcN=function(){BR.apply(this,arguments)};
_.r(qcN,BR);qcN.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playlist&&G.push(this.delegate.playlist);this.delegate.videoItem&&G.push(this.delegate.videoItem);this.delegate.playlistItem&&G.push(this.delegate.playlistItem);return[].concat(_.gi(new Set(G)))};var ElT=function(){i6.apply(this,arguments)};
_.r(ElT,i6);ElT.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.gi(this.delegate.localImageEntities));return[].concat(_.gi(new Set(G)))};
ElT.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var hA8=function(){i6.apply(this,arguments)};
_.r(hA8,i6);hA8.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.gi(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.gi(new Set(G)))};
hA8.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var KJy=function(){i6.apply(this,arguments)};
_.r(KJy,i6);KJy.prototype.getAssociations=function(){return[]};
KJy.prototype.getTypeName=function(){return"offlineabilityEntity"};var ahv=function(){i6.apply(this,arguments)};
_.r(ahv,i6);ahv.prototype.getAssociations=function(){var G=[];this.delegate.fakeChildren&&G.push.apply(G,_.gi(this.delegate.fakeChildren));return[].concat(_.gi(new Set(G)))};
ahv.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var myU=function(){i6.apply(this,arguments)};
_.r(myU,i6);myU.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);return[].concat(_.gi(new Set(G)))};
myU.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var XvU=function(){i6.apply(this,arguments)};
_.r(XvU,i6);XvU.prototype.getAssociations=function(){return[]};
XvU.prototype.getTypeName=function(){return"continuationTokenEntity"};var Qe8=function(){i6.apply(this,arguments)};
_.r(Qe8,i6);Qe8.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.videos&&G.push.apply(G,_.gi(this.delegate.videos));this.delegate.collaboratorChannels&&G.push.apply(G,_.gi(this.delegate.collaboratorChannels));this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.gi(new Set(G)))};
Qe8.prototype.getTypeName=function(){return"mainPlaylistEntity"};var jey=function(){i6.apply(this,arguments)};
_.r(jey,i6);jey.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.channelContributor&&G.push(this.delegate.channelContributor);return[].concat(_.gi(new Set(G)))};
jey.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var LJU=function(){BR.apply(this,arguments)};
_.r(LJU,BR);LJU.prototype.getAssociations=function(){var G=[];this.delegate.recommendedVideoMetadata&&G.push.apply(G,_.gi((new rXq(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.gi(new Set(G)))};
var rXq=function(){BR.apply(this,arguments)};
_.r(rXq,BR);rXq.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.gi(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.gi(new Set(G)))};var WJt=function(){BR.apply(this,arguments)};
_.r(WJt,BR);WJt.prototype.getAssociations=function(){var G=[];this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);return[].concat(_.gi(new Set(G)))};var HM7=function(){i6.apply(this,arguments)};
_.r(HM7,i6);HM7.prototype.getAssociations=function(){var G=[];this.delegate.owner&&G.push(this.delegate.owner);this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.userState&&G.push.apply(G,_.gi((new WJt(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&G.push.apply(G,_.gi((new LJU(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.gi(new Set(G)))};
HM7.prototype.getTypeName=function(){return"mainVideoEntity"};var kSP=function(){i6.apply(this,arguments)};
_.r(kSP,i6);kSP.prototype.getAssociations=function(){var G=[];this.delegate.userChannelDetails&&G.push(this.delegate.userChannelDetails);return[].concat(_.gi(new Set(G)))};
kSP.prototype.getTypeName=function(){return"ytMainChannelEntity"};var OMP=function(){i6.apply(this,arguments)};
_.r(OMP,i6);OMP.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&G.push.apply(G,_.gi(this.delegate.localImageEntities));this.delegate.downloadStatus&&G.push(this.delegate.downloadStatus);return[].concat(_.gi(new Set(G)))};
OMP.prototype.getTypeName=function(){return"ytMainVideoEntity"};var q5c=new _.vf("downloadsPageSmartDownloadsOptInBannerParams");var as6=new _.vf("downloadsPageUpsellBannerParams");var eAs=function(){i6.apply(this,arguments)};
_.r(eAs,i6);eAs.prototype.getAssociations=function(){return[]};
eAs.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var $yt=function(){i6.apply(this,arguments)};
_.r($yt,i6);$yt.prototype.getAssociations=function(){return[]};
$yt.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var zAv=function(){i6.apply(this,arguments)};
_.r(zAv,i6);zAv.prototype.getAssociations=function(){return[]};
zAv.prototype.getTypeName=function(){return"macroMarkerEntity"};var bMw=function(){i6.apply(this,arguments)};
_.r(bMw,i6);bMw.prototype.getAssociations=function(){return[]};
bMw.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var Vj7=function(){i6.apply(this,arguments)};
_.r(Vj7,i6);Vj7.prototype.getAssociations=function(){return[]};
Vj7.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var vlw=function(){i6.apply(this,arguments)};
_.r(vlw,i6);vlw.prototype.getAssociations=function(){return[]};
vlw.prototype.getTypeName=function(){return"playerStateEntity"};var olG=function(){i6.apply(this,arguments)};
_.r(olG,i6);olG.prototype.getAssociations=function(){return[]};
olG.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Mjs=function(){i6.apply(this,arguments)};
_.r(Mjs,i6);Mjs.prototype.getAssociations=function(){return[]};
Mjs.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var pv8=function(){i6.apply(this,arguments)};
_.r(pv8,i6);pv8.prototype.getAssociations=function(){return[]};
pv8.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.kw=new _.vf("dislikeButtonViewModel");_.HP=new _.vf("likeButtonViewModel");var Ycq=new _.vf("videoSummaryContentViewModel");var AXy=new _.vf("videoSummaryParagraphViewModel");var dy8=new _.vf("changeTimelyActionVisibilityCommand");var JXt=new _.vf("hideEngagementPanelEndpoint");var cXq=new _.vf("refreshPanelEndpoint");var TBy=new _.vf("scrollToSectionEndpoint");var Iht=new _.vf("seekToVideoTimestampCommand");_.Xi=new _.vf("showEngagementPanelEndpoint");var fhs=new _.vf("showTransientPlayerScrimOverlayCommand");var tjN=new _.vf("toggleEngagementPanelCommand");var ZMP=new _.vf("aiResponseBoxViewModel");_.gla=new _.vf("createBroadcastCommand");var Sc7=new _.vf("metadataUpdateCommand");var seq=function(){i6.apply(this,arguments)};
_.r(seq,i6);seq.prototype.getAssociations=function(){return[]};
seq.prototype.getTypeName=function(){return"featuredProductsEntity"};var xyq=function(){i6.apply(this,arguments)};
_.r(xyq,i6);xyq.prototype.getAssociations=function(){return[]};
xyq.prototype.getTypeName=function(){return"pinnedProductEntity"};var P_T=function(){i6.apply(this,arguments)};
_.r(P_T,i6);P_T.prototype.getAssociations=function(){return[]};
P_T.prototype.getTypeName=function(){return"trendingOfferEntity"};_.GTt=new _.vf("merchandiseShelfRenderer");var ByT=new _.vf("shoppingContentLineItemViewModel");var i4N=new _.vf("shoppingDescriptionItemViewModel");var Foy=new _.vf("gridMovieRenderer");_.Dua=new _.vf("movieRenderer");var uZL=function(){i6.apply(this,arguments)};
_.r(uZL,i6);uZL.prototype.getAssociations=function(){return[]};
uZL.prototype.getTypeName=function(){return"compositeSourceEntity"};var RzG=function(){i6.apply(this,arguments)};
_.r(RzG,i6);RzG.prototype.getAssociations=function(){var G=[];this.delegate.compositeSourceKeys&&G.push.apply(G,_.gi(this.delegate.compositeSourceKeys));return[].concat(_.gi(new Set(G)))};
RzG.prototype.getTypeName=function(){return"multiviewStagingEntity"};var wdq=function(){i6.apply(this,arguments)};
_.r(wdq,i6);wdq.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.gi(this.delegate.trackDownloadMetadatas));return[].concat(_.gi(new Set(G)))};
wdq.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var CYT=function(){i6.apply(this,arguments)};
_.r(CYT,i6);
CYT.prototype.getAssociations=function(){var G=[];this.delegate.downloadedTracks&&G.push.apply(G,_.gi(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&G.push.apply(G,_.gi(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&G.push.apply(G,_.gi(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&G.push.apply(G,_.gi(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&G.push.apply(G,_.gi(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
G.push.apply(G,_.gi(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&G.push.apply(G,_.gi(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&G.push.apply(G,_.gi(this.delegate.metadataOnlyTracks));return[].concat(_.gi(new Set(G)))};
CYT.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Nyq=function(){i6.apply(this,arguments)};
_.r(Nyq,i6);Nyq.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.gi(this.delegate.trackDownloadMetadatas));return[].concat(_.gi(new Set(G)))};
Nyq.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var yi7=function(){i6.apply(this,arguments)};
_.r(yi7,i6);yi7.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.gi(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.gi(new Set(G)))};
yi7.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var nR7=function(){i6.apply(this,arguments)};
_.r(nR7,i6);
nR7.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&G.push.apply(G,_.gi(this.delegate.primaryArtists));this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.tracks&&G.push.apply(G,_.gi(this.delegate.tracks));this.delegate.share&&G.push(this.delegate.share);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.refresh&&
G.push(this.delegate.refresh);return[].concat(_.gi(new Set(G)))};
nR7.prototype.getTypeName=function(){return"musicAlbumRelease"};
var lat=function(){i6.apply(this,arguments)};
_.r(lat,i6);lat.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.tracks&&G.push.apply(G,_.gi(this.delegate.tracks));return[].concat(_.gi(new Set(G)))};
lat.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Uua=function(){i6.apply(this,arguments)};
_.r(Uua,i6);Uua.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);return[].concat(_.gi(new Set(G)))};
Uua.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var qpq=function(){i6.apply(this,arguments)};
_.r(qpq,i6);qpq.prototype.getAssociations=function(){var G=[];this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);return[].concat(_.gi(new Set(G)))};
qpq.prototype.getTypeName=function(){return"musicArtist"};
var ERt=function(){i6.apply(this,arguments)};
_.r(ERt,i6);ERt.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.gi(new Set(G)))};
ERt.prototype.getTypeName=function(){return"musicArtistDetail"};
var hzP=function(){i6.apply(this,arguments)};
_.r(hzP,i6);hzP.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.gi(new Set(G)))};
hzP.prototype.getTypeName=function(){return"musicArtistUserDetail"};var KoN=function(){i6.apply(this,arguments)};
_.r(KoN,i6);KoN.prototype.getAssociations=function(){return[]};
KoN.prototype.getTypeName=function(){return"musicLibraryEdit"};var aay=function(){i6.apply(this,arguments)};
_.r(aay,i6);aay.prototype.getAssociations=function(){return[]};
aay.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var muq=function(){i6.apply(this,arguments)};
_.r(muq,i6);
muq.prototype.getAssociations=function(){var G=[];this.delegate.tracks&&G.push.apply(G,_.gi(this.delegate.tracks));this.delegate.refresh&&G.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&G.push(this.delegate.details);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&G.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.entryCollection&&
G.push(this.delegate.entryCollection);this.delegate.share&&G.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&G.push.apply(G,_.gi((new Xdv(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.gi(new Set(G)))};
muq.prototype.getTypeName=function(){return"musicPlaylist"};
var Xdv=function(){BR.apply(this,arguments)};
_.r(Xdv,BR);Xdv.prototype.getAssociations=function(){var G=[];this.delegate.creatorEntity&&G.push(this.delegate.creatorEntity);return[].concat(_.gi(new Set(G)))};var QSy=function(){i6.apply(this,arguments)};
_.r(QSy,i6);QSy.prototype.getAssociations=function(){return[]};
QSy.prototype.getTypeName=function(){return"musicShare"};var jSs=function(){i6.apply(this,arguments)};
_.r(jSs,i6);
jSs.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&G.push.apply(G,_.gi(this.delegate.artists));this.delegate.audioModeVersion&&G.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&G.push(this.delegate.videoModeVersion);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.details&&G.push(this.delegate.details);this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.share&&
G.push(this.delegate.share);this.delegate.libraryEdit&&G.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.lyrics&&G.push(this.delegate.lyrics);return[].concat(_.gi(new Set(G)))};
jSs.prototype.getTypeName=function(){return"musicTrack"};
var Lot=function(){i6.apply(this,arguments)};
_.r(Lot,i6);Lot.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.gi(new Set(G)))};
Lot.prototype.getTypeName=function(){return"musicTrackDetail"};
var riL=function(){i6.apply(this,arguments)};
_.r(riL,i6);riL.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.gi(new Set(G)))};
riL.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Am=new _.vf("musicResponsiveListItemRenderer");var Pj8=new _.vf("addToPlaylistEndpoint");var Woa=new _.vf("captionPickerEndpoint");var H47=new _.vf("suggestStats");var kTL=new _.vf("backstageImageUploadEndpoint");var O4q=new _.vf("createBackstagePostDialogEndpoint");_.ezG=new _.vf("createCommentReplyDialogEndpoint");_.$ua=new _.vf("updateCommentDialogEndpoint");_.zzT=new _.vf("updateCommentReplyDialogEndpoint");var b47=new _.vf("menuEndpoint");var Pm8=new _.vf("modalEndpoint");var VxL=new _.vf("playlistEditorEndpoint");var vRG=new _.vf("copyTextEndpoint");var oR7,Mxt;oR7=new _.vf("shareEndpoint");Mxt=new _.vf("shareEntityEndpoint");_.pdG=new _.vf("shareEntityServiceEndpoint");_.Ttg=new _.vf("userFeedbackEndpoint");_.Ow=new _.vf("watchEndpoint");var PeJ=new _.vf("watchPlaylistEndpoint");var YpG=new _.vf("addUpcomingEventReminderEndpoint");_.h9=new _.vf("getCommentsFromInboxCommand");var Aiw=new _.vf("notificationOptOutEndpoint");var duy=new _.vf("recordNotificationInteractionsEndpoint");var Jis=new _.vf("removeUpcomingEventReminderEndpoint");_.vI=new _.vf("getDownloadActionCommand");_.ciN=new _.vf("offlineOrchestrationActionCommand");var TyG=function(){i6.apply(this,arguments)};
_.r(TyG,i6);TyG.prototype.getAssociations=function(){return[]};
TyG.prototype.getTypeName=function(){return"captionTrack"};var Iav=function(){i6.apply(this,arguments)};
_.r(Iav,i6);Iav.prototype.getAssociations=function(){return[]};
Iav.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var faT=function(){i6.apply(this,arguments)};
_.r(faT,i6);faT.prototype.getAssociations=function(){return[]};
faT.prototype.getTypeName=function(){return"offlineVideoPolicy"};var txP=function(){i6.apply(this,arguments)};
_.r(txP,i6);txP.prototype.getAssociations=function(){return[]};
txP.prototype.getTypeName=function(){return"offlineVideoStreams"};var Z4y=function(){i6.apply(this,arguments)};
_.r(Z4y,i6);Z4y.prototype.getAssociations=function(){var G=[];this.delegate.transfer&&G.push(this.delegate.transfer);this.delegate.adsPlaybackData&&G.push.apply(G,_.gi(this.delegate.adsPlaybackData));this.delegate.drmLicense&&G.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.gi(new Set(G)))};
Z4y.prototype.getTypeName=function(){return"playbackData"};var gRL=function(){i6.apply(this,arguments)};
_.r(gRL,i6);gRL.prototype.getAssociations=function(){return[]};
gRL.prototype.getTypeName=function(){return"refresh"};var SpP=function(){i6.apply(this,arguments)};
_.r(SpP,i6);SpP.prototype.getAssociations=function(){var G=[];this.delegate.offlineVideoStreams&&G.push.apply(G,_.gi(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&G.push.apply(G,_.gi(this.delegate.captionTrack));return[].concat(_.gi(new Set(G)))};
SpP.prototype.getTypeName=function(){return"transfer"};var sSG=function(){i6.apply(this,arguments)};
_.r(sSG,i6);sSG.prototype.getAssociations=function(){return[]};
sSG.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var xu8=new _.vf("showMoreDrawerCommand");var PYN=new _.vf("updateEngagementPanelContentCommand");var Gjq=new _.vf("getPdgBuyFlowCommand");var Blq=new _.vf("liveChatPurchaseMessageEndpoint");var i9y=new _.vf("openSuperStickerBuyFlowCommand");var FF8=new _.vf("updatePdgFeatureEnablementCommand");var DRs=function(){i6.apply(this,arguments)};
_.r(DRs,i6);DRs.prototype.getAssociations=function(){return[]};
DRs.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var uEG=function(){i6.apply(this,arguments)};
_.r(uEG,i6);uEG.prototype.getAssociations=function(){return[]};
uEG.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.RjN=new _.vf("pdgCommentChipRenderer");_.wjU=new _.vf("permissionRoleBottomBarRenderer");_.CxU=new _.vf("updatePermissionRoleCommand");var Nla=new _.vf("prefetchWatchCommand");var yWU=new _.vf("updatePlayerErrorMessageCommand");var T9S=new _.vf("toggleCaptionsVisibilityCommand");var nYq=new _.vf("playerDisclosureViewModel");_.l7w=new _.vf("quickActionsViewModel");var URs=new _.vf("playerResponse");var qe8=new _.vf("playlistRenderer");_.EYq=new _.vf("playlistVideoListRenderer");_.KV=new _.vf("playlistEditEndpoint");var hj7=new _.vf("createImagePollCommand");var KFw=new _.vf("createQuizCommand");var a77=new _.vf("quizRenderer");var mRw=new _.vf("uploadedVideoRenderer");var Xjy=new _.vf("decorateMessageEndpoint");var Q5w=new _.vf("lpOfferCardOptionViewModel");var j58=new _.vf("sfvAudioItemPlaybackCommand");var LF8=function(){i6.apply(this,arguments)};
_.r(LF8,i6);LF8.prototype.getAssociations=function(){return[]};
LF8.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.a1=new _.vf("reelNonVideoContentEndpoint");_.Fu=new _.vf("reelWatchEndpoint");var rWt=new _.vf("reelActionBarViewModel");_.m9=new _.vf("reelItemRenderer");var WFt=new _.vf("reelMetapanelViewModel");_.H9q=new _.vf("reelNonVideoContentRenderer");var kjU=new _.vf("shortsLockupViewModel");var O9P=new _.vf("sponsorButtonViewModel");var ejG=new _.vf("reelItemWatchResponse");var $RT=new _.vf("textBadgeRenderer");_.Xq=new _.vf("buttonRenderer");_.Qr=new _.vf("toggleButtonRenderer");var DAc=new _.vf("switchButtonViewModel");_.zjq=new _.vf("confirmDialogRenderer");var b9v;b9v=new _.vf("menuRenderer");_.VCv=new _.vf("menuFlexibleItemRenderer");var vYP=new _.vf("pollRenderer");_.oYU=new _.vf("backgroundPromoRenderer");var pjs;_.MCL=new _.vf("chipCloudRenderer");pjs=new _.vf("chipCloudChipRenderer");var YeT=new _.vf("dropdownRenderer");var AWa=new _.vf("gridVideoRenderer");_.dRP=new _.vf("itemSectionRenderer");_.JW8=new _.vf("messageRenderer");var cWP=new _.vf("sortFilterHeaderRenderer");_.TlT=new _.vf("videoRenderer");var I7v=new _.vf("resolveUrlCommandMetadata");var f7y=function(){i6.apply(this,arguments)};
_.r(f7y,i6);f7y.prototype.getAssociations=function(){return[]};
f7y.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.tCa=new _.vf("getAnswerCommand");_.P2=new _.vf("searchEndpoint");var Z9t=new _.vf("genAiRichTextViewModel");var sN6=new _.vf("overviewAnswerViewModel");var gYs=new _.vf("videoOverviewViewModel");var Seq=new _.vf("addToPlaylistServiceEndpoint");var s5N=new _.vf("clearSearchHistoryEndpoint");var xRt=new _.vf("clearWatchHistoryEndpoint");var Pxt=new _.vf("webSerializedServiceEndpointExtension");_.GiU=new _.vf("createCommentEndpoint");var BAN=new _.vf("createCommentReplyEndpoint");var i3s=new _.vf("performCommentActionEndpoint");var F78=new _.vf("updateCommentEndpoint");var DvT=new _.vf("updateCommentReplyEndpoint");_.j0=new _.vf("createPlaylistServiceEndpoint");var u6t=new _.vf("deletePlaylistEndpoint");var Rot=new _.vf("deleteVideoEndpoint");var xwM=new _.vf("getReportFormEndpoint");var w9P=new _.vf("modifyChannelNotificationPreferenceEndpoint");var CV6;_.B_=new _.vf("offlinePlaylistEndpoint");CV6={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 Nfg;_.GP=new _.vf("offlineVideoEndpoint");Nfg={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 C3w=new _.vf("pingingEndpoint");_.NAv=new _.vf("selectActiveIdentityEndpoint");var yf7=new _.vf("setSettingEndpoint");var plL=new _.vf("undoFeedbackEndpoint");var nVw=new _.vf("unsubscribeEndpoint");_.ls7=new _.vf("updatedMetadataEndpoint");var Uvv=function(){i6.apply(this,arguments)};
_.r(Uvv,i6);Uvv.prototype.getAssociations=function(){return[]};
Uvv.prototype.getTypeName=function(){return"settingEntity"};_.q5q=new _.vf("updateLocalAppSettingCommand");var EVL=new _.vf("saveImageToDeviceEndpoint");var hoL=new _.vf("shareImageCommand");var K78=new _.vf("sharingProviderDataCommand");var ass=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ass,_.q3);var mvP=[0,_.Yz,-1];ass.prototype.JSC$12844_serializeBinary=Nig(mvP);var X9N=_.Oy(mvP);var QJG=new _.vf("userMentionSuggestionRenderer");var jJs=new _.vf("liveChatTunnelCommand");var L7T=new _.vf("showSponsorshipsGiftOfferDialogCommand");var rfy=new _.vf("sponsorshipsScrollableShelfViewModel");var W7N=new _.vf("updateUpcomingEventReminderButtonStateCommand");var H3q=new _.vf("upcomingEventReminderButtonStateRenderer");var kiG=new _.vf("subscribeEndpoint");var O3U=new _.vf("registerTasksCommand");var eoq=new _.vf("hideSheetCommand");var $vq=new _.vf("hideSnackbarCommand");var zoN=new _.vf("showDialogCommand");_.Ch=new _.vf("showSheetCommand");var b3U=new _.vf("showSnackbarCommand");var Vpq=function(){i6.apply(this,arguments)};
_.r(Vpq,i6);Vpq.prototype.getAssociations=function(){return[]};
Vpq.prototype.getTypeName=function(){return"chipEntity"};var vVv=function(){i6.apply(this,arguments)};
_.r(vVv,i6);vVv.prototype.getAssociations=function(){return[]};
vVv.prototype.getTypeName=function(){return"dismissState"};_.QH=new _.vf("avatarViewModel");var oVv=new _.vf("badgeViewModel");_.LV=new _.vf("buttonViewModel");_.rr=new _.vf("chipViewModel");var Mpq=new _.vf("contentPreviewImageViewModel");var p9y=new _.vf("decoratedAvatarViewModel");_.LII=new _.vf("engagementBarViewModel");_.Y5s=new _.vf("imageBannerViewModel");var Aft=new _.vf("lockupContentMetadataRowExtension");_.dv8=new _.vf("lockupMetadataViewModel");var JfL=new _.vf("lockupViewModel");var cfq=new _.vf("avatarStackViewModel");_.TAq=new _.vf("contentMetadataViewModel");var Isw=function(){i6.apply(this,arguments)};
_.r(Isw,i6);Isw.prototype.getAssociations=function(){return[]};
Isw.prototype.getTypeName=function(){return"pageHeaderEntity"};_.fsG=new _.vf("pageHeaderViewModel");var tpL=new _.vf("snackbarViewModel");var Z3T=new _.vf("thumbnailHoverOverlayToggleActionsViewModel");_.WR=new _.vf("toggleButtonViewModel");var gVa=function(){i6.apply(this,arguments)};
_.r(gVa,i6);gVa.prototype.getAssociations=function(){return[]};
gVa.prototype.getTypeName=function(){return"votingEntity"};_.rHg=new _.vf("votingViewModel");var S5v=new _.vf("sectionHeaderViewModel");var sJa=new _.vf("notifyDropdownOptionSelectedCommand");var b0l=new _.vf("listViewModel");_.Nj=new _.vf("listItemViewModel");var xvN=new _.vf("dialogHeaderViewModel");var P3q=function(){i6.apply(this,arguments)};
_.r(P3q,i6);P3q.prototype.getAssociations=function(){return[]};
P3q.prototype.getTypeName=function(){return"dataFreshnessEntity"};var Azg=new _.vf("suspenseViewModel");var Gl7=new _.vf("tooltipViewModel");var B4N=function(){i6.apply(this,arguments)};
_.r(B4N,i6);B4N.prototype.getAssociations=function(){return[]};
B4N.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var iLy=function(){i6.apply(this,arguments)};
_.r(iLy,i6);iLy.prototype.getAssociations=function(){return[]};
iLy.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var FPs=function(){i6.apply(this,arguments)};
_.r(FPs,i6);FPs.prototype.getAssociations=function(){return[]};
FPs.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.D2s=new _.vf("transcriptSubmitCaptionCorrectionCommand");var uka=function(){i6.apply(this,arguments)};
_.r(uka,i6);uka.prototype.getAssociations=function(){return[]};
uka.prototype.getTypeName=function(){return"buttonEntity"};var dTl=new _.vf("unpluggedStringRunImage");var R_U=new _.vf("tabViewModel");var wMt=new _.vf("tabbedViewModel");var CIs=function(){i6.apply(this,arguments)};
_.r(CIs,i6);CIs.prototype.getAssociations=function(){return[]};
CIs.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.N4a=new _.vf("updateDescriptionAction");var y3w=new _.vf("updateToggleButtonTextAction");var njq=new _.vf("showFullscreenPlayerControlsCommand");var lpv=new _.vf("updateVideoMetadataCommand");_.U28=new _.vf("autoplaySwitchButtonRenderer");var jT;_.qBT=new _.vf("multiMarkersPlayerBarRenderer");jT=new _.vf("chapterRenderer");var Ejs=new _.vf("heatMarkerRenderer");var STU=new _.vf("heatmapRenderer");var h_y=new _.vf("smartSkipPlayerScrimOverlayRenderer");var KPG=new _.vf("timedMarkerDecorationRenderer");var nss=new _.vf("postWebToNativeMessageCommand");var QL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(QL,_.q3);QL.prototype.getMethodName=function(){return _.KX(this,1)};var apy=[0,_.Yz,-2];QL.prototype.JSC$12866_serializeBinary=Nig(apy);var m28=_.HX(QL,apy);var XMT=new _.vf("whitelistEditEndpoint");var Q8y=new _.vf("clearUrlParamCommand");var j8v=new _.vf("commerceActionCommand");_.LPs=new _.vf("getPaymentInstrumentsParamsCommand");var r3s=new _.vf("getPaymentsClientTokenCommand");var WPq=new _.vf("googlePaymentBillingCommand");var HLG=new _.vf("googlePaymentPurchaseManagerCommand");_.klL=new _.vf("logGtmCommand");var OL7=new _.vf("updateCardItemOnClickCommand");_.e_G=new _.vf("ypcPauseSubscriptionCommand");_.$2T=new _.vf("ypcResumeSubscriptionCommand");var z_7=function(){i6.apply(this,arguments)};
_.r(z_7,i6);z_7.prototype.getAssociations=function(){return[]};
z_7.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var bLt=function(){i6.apply(this,arguments)};
_.r(bLt,i6);bLt.prototype.getAssociations=function(){return[]};
bLt.prototype.getTypeName=function(){return"commerceCartListEntity"};var VhN=function(){i6.apply(this,arguments)};
_.r(VhN,i6);VhN.prototype.getAssociations=function(){return[]};
VhN.prototype.getTypeName=function(){return"iconBadgeEntity"};var vjG=function(){i6.apply(this,arguments)};
_.r(vjG,i6);vjG.prototype.getAssociations=function(){return[]};
vjG.prototype.getTypeName=function(){return"pdpStateEntity"};var ojG=function(){i6.apply(this,arguments)};
_.r(ojG,i6);ojG.prototype.getAssociations=function(){return[]};
ojG.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Y3I=new _.vf("ypcOffersEndpoint");var Mhq=new _.vf("cardItemRenderer"),pMy=new _.vf("cardItemTextRenderer");var YB8=new _.vf("commerceCartItemQuantityPickerRenderer");var A3P=new _.vf("linkCardRenderer");var Ddg=new _.vf("quantityIncrementerButtonViewModel");var d2a=new _.vf("quantityIncrementerViewModel");var J3T=new _.vf("themedImageViewModel");_.Idv=new _.vf("ypcCancelRecurrenceEndpoint");var fdL=new _.vf("ypcCompleteTransactionEndpoint");_.tq7=new _.vf("ypcGetCartEndpoint");_.v_=new _.vf("ypcGetOffersEndpoint");_.HR=new _.vf("ypcHandleTransactionEndpoint");var ZUw=new _.vf("ypcLogWalletAnalyticDataEndpoint");_.gmv=new _.vf("ypcRedeemCodeEndpoint");var Svs=new _.vf("ypcUpdateFopEndpoint");oc(vH(1),bE(4));HIt((new MessageChannel).port2);var s$v=function(){this.register=new Map},Q1S=function(G,B,F){G=G+"_"+B;
kZ.register.has(G)?F=kZ.register.get(G):(F=F(),kZ.register.set(G,F));return F},xFy=function(G){G=_.C(G.register.values());
for(var B=G.next();!B.done;B=G.next())_.Fi(B.value,"ABORTED")};
s$v.prototype.clear=function(){xFy(this);this.register.clear()};
var kZ=new s$v;var Brz=Date.now().toString();var D_S=F98();var lxo={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 Puq;Puq=1;_.l2=function(G){this.veData=G};
_.yX=function(G){return new _.l2({trackingParams:G})};
_.ge=function(G,B,F,D,u,R){var N=Puq++;return new _.l2({veType:G,veCounter:N,elementIndex:F,dataElement:B,youtubeData:D,jspbYoutubeData:u,loggingDirectives:R})};
_.w=_.l2.prototype;
_.w.getAsJson=function(){var G={};this.veData.trackingParams!==void 0?G.trackingParams=this.veData.trackingParams:(G.veType=this.veData.veType,this.veData.veCounter!==void 0&&(G.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(G.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(G.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(G.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(G.isCounterfactual=!0);
return G};
_.w.getAsJspb=function(){var G=new Daw;this.veData.trackingParams!==void 0?G.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.jU(G,2,this.veData.veType),this.veData.veCounter!==void 0&&_.jU(G,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.jU(G,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Ii(G,5,!0));if(this.veData.dataElement!==void 0){var B=this.veData.dataElement.getAsJspb();_.ba(G,7,B)}this.veData.youtubeData!==void 0&&_.ba(G,8,this.veData.jspbYoutubeData);
return G};
_.w.toString=function(){return JSON.stringify(this.getAsJson())};
_.w.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.w.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.IY("yt_logging_screen.getRootVeType",Nrz);_.IY("yt_logging_screen.getCurrentCsn",_.qW);_.IY("yt_logging_screen.getCttAuthInfo",Ew);_.IY("yt_logging_screen.setCurrentScreen",_.hL);var GFq=function(){this.events=new Map},B_q=function(G){var B=[];
G=_.C(G.events.values());for(var F=G.next();!F.done;F=G.next())B.push(F.value);return B};
GFq.prototype.clear=function(){this.events.clear()};var F3L=function(){this.logTransport=new iFN;this.loggedEventRegister=new GFq;this.unloggedEventRegister=new GFq;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12903_flushTimer=new _.nn(this.flushInterval);this.JSC$12903_flushTimer.listen("tick",this.flush,!1,this)};
F3L.prototype.flush=function(){if(this.eventsCount){var G={loggedEvents:B_q(this.loggedEventRegister),unloggedEvents:B_q(this.unloggedEventRegister)};if(_.X("export_player_version_to_ytconfig")){var B;(B=_.v5("PLAYER_CLIENT_VERSION"))?(B=B.split("-")[0].replace(/\./g,""),B=isNaN(Number(B))?"0":B):B="";var F=_.v5("PLAYER_CLIENT_VERSION");if(F){F=F.split("-");var D="";F.length>1&&(D=F[F.length-1]);F=GVL(D.startsWith("canary_experiment")?"canary":D.startsWith("canary_control")?"control":"none")}else F=
"CLIENT_CANARY_STATE_UNKNOWN";G.dimensions={playerClientVersion:B,playerCanaryState:F}}this.logTransport.flush(G);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12903_flushTimer.enabled&&this.JSC$12903_flushTimer.stop()}};
var Dov=function(G){Os==null&&(Os=new F3L);var B=Os;var F=B.loggedEventRegister;G.dimensions=G.dimensions||{};G.dimensions.csn=_.qW()||"";var D=EZo(G.dimensions).join(";");if(G.records!=null)if(F.events.has(D)){var u;(u=F.events.get(D).records)==null||u.push.apply(u,_.gi(G.records))}else F.events.set(D,G);B.JSC$12903_flushTimer.enabled||B.JSC$12903_flushTimer.start();B.eventsCount++;B.eventsCount>=100&&B.flush()};var iFN=function(){};
iFN.prototype.flush=function(G,B){_.X("enable_client_sli_logging")&&_.W$("sliEventBatch",G,{sendIsolatedPayload:!!B})};var Os;var Rks;Rks=function(G){var B=urP;G=G===void 0?{}:G;B=B.name;var F=XRg("SUCCESS");Dov({dimensions:G,records:[{name:B,state:"SLI_STATE_END",status:F}]})};
_.j1g=function(G,B,F,D){this.name=G;this.sliId=B;this.timeoutMs=F;this.statusOnTimeout=D;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.j1g.prototype.getId=function(){return this.sliId};
_.iQ=function(G,B){B=B===void 0?{}:B;G.ongoing||(G.ongoing=!0,G.dimensions=B,G.logSliId=T2U(),Dov({dimensions:G.dimensions,records:[{name:G.name,state:"SLI_STATE_START",sliId:G.logSliId}]}),G.timeoutMs>0&&(G.timeoutHandle=setTimeout(function(){_.Fi(G,G.statusOnTimeout)},G.timeoutMs)))};
_.Fi=function(G,B){G.ongoing&&(G.timeoutMs>0&&clearTimeout(G.timeoutHandle),G.ongoing=!1,B={dimensions:G.dimensions,records:[{name:G.name,status:XRg(B),state:"SLI_STATE_END",sliId:G.logSliId}]},kZ.register.delete(G.name+"_"+G.sliId),Dov(B))};var urP=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var wat=function(){i6.apply(this,arguments)};
_.r(wat,i6);wat.prototype.getAssociations=function(){return[]};
wat.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var CeN=new _.vf("highlightTextDecoratorColorMapExtension");var N_a=new _.vf("styleRunColorMapExtension");var exl=_.vP(["data-"]),bVL={};var vZJ={};var e0=function(G){this.wrappedPromise_=G===void 0?null:G;this.state_=0;this.JSC$12934_value_=null};
e0.prototype.then=function(G,B,F){return this.wrappedPromise_?this.wrappedPromise_.then(G,B,F):this.state_===1&&G?(G=G.call(F,this.JSC$12934_value_))&&typeof G.then==="function"?G:_.$Z(G):this.state_===2&&B?(G=B.call(F,this.JSC$12934_value_))&&typeof G.then==="function"?G:_.yFs(G):this};
e0.prototype.getValue=function(){return this.JSC$12934_value_};
e0.prototype.isRejected=function(){return this.state_==2};
Qna(e0);_.yFs=function(G){var B=new e0;G=G===void 0?null:G;B.state_=2;B.JSC$12934_value_=G===void 0?null:G;return B};
_.$Z=function(G){var B=new e0;G=G===void 0?null:G;B.state_=1;B.JSC$12934_value_=G===void 0?null:G;return B};var Ss6="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var nhN=["load","abort","error"],zV=function(G,B,F){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12954_maxAspectRatio_=G;this.disableAnimation_=B===void 0?!1:B;this.disableExifRotation_=F===void 0?!1:F;this.JSC$12954_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12954_reject_=this.resolve_=null};
zV.prototype.transform=function(G){var B=this;this.mime_=G.type;Yu(gNw(G),this.dataUrlRead_,this.readError_,this);Yu(ZkL(G.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(F,D){B.resolve_=F;B.JSC$12954_reject_=D})};
zV.prototype.dataUrlRead_=function(G){this.dataUrl_=G;this.angle_!=null&&lrv(this)};
zV.prototype.exifRead_=function(G){if(this.disableExifRotation_)this.angle_=0;else{a:if(G=new DataView(G),G.byteLength<2||G.getUint16(0)!==65496)G=-2;else{for(var B=2,F=G.byteLength;B<F;){var D=G.getUint16(B),u=G.getUint16(B+2);if(D===65505){B+=4;D=G.getUint32(B);u=G.getUint16(B+4);if(D!==1165519206||u!==0)break;B+=6;D=G.getUint16(B)===18761;B+=G.getUint32(B+4,D);u=G.getUint16(B,D);B+=2;for(var R=0;R<u;R++){if(G.getUint16(B,D)===274){B+=8;G=G.getUint16(B,D);break a}B+=12}}else if(D>>8!==255)break;
else B+=u+2}G=-1}switch(G){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&&lrv(this)};
zV.prototype.readError_=function(){this.JSC$12954_reject_()};
var lrv=function(G){h7(G.JSC$12954_image_,nhN,G.completeTransform_,!1,G);G.JSC$12954_image_.src=_.Sz(G.dataUrl_).toString();G.JSC$12954_image_.src!=gm.toString()&&G.JSC$12954_image_.src.substr(0,11)==="data:image/"||G.JSC$12954_reject_()};
zV.prototype.completeTransform_=function(){if(this.JSC$12954_image_.src!=gm.toString()){var G=_.Sz(this.dataUrl_),B=this.JSC$12954_image_.naturalHeight?this.JSC$12954_image_.naturalWidth/this.JSC$12954_image_.naturalHeight:null;this.invalidAspectRatio=B>this.JSC$12954_maxAspectRatio_||B<1/this.JSC$12954_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var F=this.JSC$12954_image_.naturalWidth,D=this.JSC$12954_image_.naturalHeight,u=B=0,R=this.JSC$12954_image_.naturalHeight?this.JSC$12954_image_.naturalWidth/
this.JSC$12954_image_.naturalHeight:null;R>this.JSC$12954_maxAspectRatio_?(F=this.JSC$12954_maxAspectRatio_*D,B=(F-this.JSC$12954_image_.naturalWidth)/2,this.cropped=!0):R<1/this.JSC$12954_maxAspectRatio_?(D=this.JSC$12954_maxAspectRatio_*F,u=(D-this.JSC$12954_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)R=F,F=D,D=R,R=B,B=u,u=R;switch(this.angle_){case 90:u-=F;break;case 180:B-=F;u-=D;break;case 270:B-=
D}this.cropped||this.angle_%360!==0?(G=document.createElement("canvas"),G.width=F||1,G.height=D||1,this.JSC$12954_image_.naturalWidth&&this.JSC$12954_image_.naturalHeight&&(F=G.getContext("2d"),F.rotate(Math.PI/180*this.angle_),F.drawImage(this.JSC$12954_image_,B,u,this.JSC$12954_image_.naturalWidth,this.JSC$12954_image_.naturalHeight)),this.transformedData=_.Sz(G.toDataURL(this.mime_))):this.transformedData=G}else this.transformedData=G;this.resolve_(this)}};var b6=function(G,B){_.T_.call(this,G);this.value=B};
_.r(b6,_.T_);
var Vr=function(G,B,F,D,u,R,N){N=N===void 0?!1:N;_.W1.call(this);var y=this;this.JSC$12959_url_=G;this.channelId_=B;this.maxFileSizeMb_=F;this.JSC$12959_maxAspectRatio_=D;this.dropZoneEl_=u;this.rejectInvalidAspectRatio_=N;this.selectButtonEl_=R;this.JSC$12959_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new TG(this.dropZoneEl_);this.selectOverlay_=new Ic(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12959_image_=this.transfer_=null;this.handler_=new _.Cn(this);_.gq(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(R,"click",function(){y.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.r(Vr,_.W1);Vr.prototype.disposeInternal=function(){for(var G=this.selectButtonEl_.nextSibling;G&&G.parentNode&&G.tagName=="INPUT";)G.parentNode.removeChild(G),G=this.selectButtonEl_.nextSibling;this.cancel();_.W1.prototype.disposeInternal.call(this)};
Vr.prototype.uploadPromise=function(){if(this.JSC$12959_image_==null)return null;this.uploadPromise_||Uo8(this);return this.uploadPromise_};
Vr.prototype.cancel=function(){qtL(this);this.JSC$12959_image_=null};
var qtL=function(G){G.transfer_&&G.transfer_.cancel();G.transfer_=null;G.uploadPromise_=null;G.resolve_=null;G.JSC$12959_reject_=null},Uo8=function(G){qtL(G);
G.transfer_=_.zYT(G.JSC$12959_url_,{"X-YouTube-ChannelId":G.channelId_},G.JSC$12959_image_);G.handler_.listenOnce(G.transfer_,"l",G.JSC$12961_onUploadComplete_);G.handler_.listenOnce(G.transfer_,"n",G.onUploadError_);G.transfer_.run();G.uploadPromise_=new Promise(function(B,F){G.resolve_=B;G.JSC$12959_reject_=F})};
_.w=Vr.prototype;_.w.onChange_=function(G){G.files.length&&(this.JSC$12959_image_=G.files[0],this.JSC$12959_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12959_image_=null,this.dispatchEvent(new b6("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Uo8(this),(new zV(this.JSC$12959_maxAspectRatio_)).transform(this.JSC$12959_image_).then((0,_.R_)(this.onPreview_,this),(0,_.R_)(this.onPreviewError_,this))))};
_.w.onPreview_=function(G){if(G.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12959_image_=null),this.dispatchEvent(new b6("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;G.cropped&&this.dispatchEvent(new b6("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new b6("yt.comments.ImageUploadOverlay.CHANGE_EVENT",G.transformedData))};
_.w.onPreviewError_=function(){this.JSC$12959_image_=null;this.dispatchEvent(new b6("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.w.onHover_=function(G){G.stopPropagation();G.preventDefault();if(G.type==="dragover")G=!0;else if(G.type==="dragleave")G=!1;else return;this.dispatchEvent(new b6("yt.comments.ImageUploadOverlay.HOVER_EVENT",G))};
_.w.JSC$12961_onUploadComplete_=function(){var G=(0,_.fA7)(this.transfer_.getResponseText());this.resolve_(G.encryptedBlobId)};
_.w.onUploadError_=function(){this.JSC$12959_reject_();qtL(this)};var EhU=function(G){G=G||{};var B={},F={};this.url=G.url||"";this.args=G.args||_.UK.clone(B);this.assets=G.assets||{};this.attrs=G.attrs||_.UK.clone(F);this.fallback=G.fallback||null;this.fallbackMessage=G.fallbackMessage||null;this.html5=!!G.html5;this.disable=G.disable||{};this.loaded=!!G.loaded;this.messages=G.messages||{}};
EhU.prototype.clone=function(){var G=new EhU,B;for(B in this)if(this.hasOwnProperty(B)){var F=this[B];_.DZ(F)=="object"?G[B]=_.UK.clone(F):G[B]=F}return G};var FJS=function(G,B,F){F=F===void 0?{}:F;this.name=G;this.id=Yy.nextSpanId++;this.sessionId=Yy.sessionId;this.attributes=B;this.status="SPAN_STATUS_UNSET";var D;this.startTime=(D=F.startTime)!=null?D:(0,_.Zl)();this.isActiveSpan=F.active;if(G=Yy.stack[Yy.stack.length-1])this.parentId=G.id,G.children||(G.children=[]),G.children.push(this);G=_.C(Yy.processors);for(B=G.next();!B.done;B=G.next()){B=B.value;try{var u=D=void 0;(u=(D=B).onSpanStart)==null||u.call(D,this)}catch(R){_.em(R)}}F.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",F.endTime))};
FJS.prototype.end=function(G,B){G=G===void 0?"SPAN_STATUS_OK":G;this.endTime=B=B===void 0?(0,_.Zl)():B;this.duration=this.endTime-this.startTime;this.status=G;this.isActiveSpan!==!1&&(Yy.stack[Yy.stack.length-1]===this?Yy.stack.pop():_.em(Error("Cf`"+String(this.name))));G=_.C(Yy.processors);for(B=G.next();!B.done;B=G.next()){B=B.value;try{var F=void 0,D=void 0;(D=(F=B).onSpanEnd)==null||D.call(F,this)}catch(u){_.em(u)}}};
FJS.prototype.addAttributes=function(G){Object.assign(this.attributes,G)};
var Dyg={end:function(){},
addAttributes:function(){}},Yy={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},iMl={rootSpan:function(){return Yy.stack[0]}};var JL={};var rdU=function(G){this.observers=[];this.value=G};
_.w=rdU.prototype;_.w.subscribe=function(G){var B=this;if(G.idx!=null)throw Error("Ef");G.idx=this.observers.length;this.observers.push(G);try{G(this.value)}catch(F){}return function(){var F=B.observers[B.observers.length-1];B.observers[G.idx]=F;F.idx=G.idx;B.observers.pop()}};
_.w.update=function(G){this.value=G(this.value);this.notify()};
_.w.mutate=function(G){G(this.value);this.notify()};
_.w.set=function(G){this.value=G;this.notify()};
_.w.notify=function(){for(var G=_.C(this.observers),B=G.next();!B.done;B=G.next()){B=B.value;try{B(this.value)}catch(F){}}};var hkv,K3N,ary,YL,Xat,QAN,jAt,L3y,rF7,W3s,HFs,kFG,OFq,ek7,$o7,zkN,bFP,VPN,vhL,ohL,MPG,paU,Ytw,AFs,doL,JFs,cFs,T_q,IrL,mCL,frq,tPN,ZF7,ghs,StU,sAq,xot,PeU,GQL,BEL,aQg,iDt,F4L,D5N,uNL,RhU,whN,CDw,NEw,yNN,npv,lvG,U5s,qLG,EpU,hhL,vR,K4T,avs,m5P,Xht,QHa,jHT,L4s,rNy,W4N,HDa,kQG,ODy,eh8,$5w,zhT,bDq,V$P,vpP,opN,hKU,M$s,ph7,YLP,ANq,d5G,JNy,cNL,TEv,Iva,fvT,t$L,ZDU,gpG,SLP,sHa,x5w,PD8,GqU,Bp7,iPt,Fzw,DsP,unN,RHT,wOs;hkv=["account/accounts_list"];K3N=["acknowledge_channel_tou_strike"];ary=["notification/add_upcoming_event_reminder"];
_.moq=["att/get"];YL=["browse","music/browse","streaming_browse","unplugged/browse"];Xat=["channel/claim_legacy_youtube_channel"];QAN=["history/clear_search_history"];jAt=["history/clear_watch_history"];L3y=["comment/perform_comment_action"];rF7=["comment/get_comment_replies"];W3s=["ypc/commerce_action"];HFs=["backstage/create_post"];kFG=["live/create_broadcast"];OFq=["channel/create_channel"];ek7=["comment/create_comment_reply"];$o7=["comment/create_comment"];zkN=["live_chat/create_poll"];bFP=["playlist/create"];
VPN=["decorate_message"];vhL=["live_chat/delete_message"];ohL=["playlist/delete"];MPG=["video/delete"];paU=["like/dislike"];Ytw=["dismissal/dismiss"];AFs=["flag/flag"];doL=["flow"];JFs=["account/account_menu"];cFs=["playlist/get_add_to_playlist"];T_q=["get_answer"];IrL=["channel/get_channel_creation_form"];mCL=["offline/get_download_action"];frq=["kids/get_kids_blocklist_picker"];tPN=["live_chat/get_item_context_menu"];ZF7=["live_chat/get_live_chat_message_buy_flow"];ghs=["live_chat/get_live_chat_replay"];
StU=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];sAq=["live_chat/get_live_chat_super_sticker_buy_flow"];xot=["notification/get_notification_menu"];PeU=["playlist/get_settings_editor"];GQL=["backstage/get_post_video_preview"];BEL=["account/get_profile_card"];aQg=["share/get_share_panel"];iDt=["share/get_sharing_provider_data"];F4L=["get_survey"];D5N=["notification/get_unseen_count"];uNL=["get_user_mention_suggestions"];RhU=["get_watch"];whN=["guide"];
CDw=["feedback"];NEw=["kids/update_blacklist"];yNN=["like/like"];npv=["live_chat/live_chat_action"];lvG=["live_chat/manage_user"];U5s=["video_manager/metadata_update"];qLG=["live_chat/moderate"];EpU=["notification/modify_channel_preference"];hhL=["notification/opt_out"];vR=["get_panel","get_posts_by_host_panel"];K4T=["player"];avs=["browse/edit_playlist"];m5P=["notification/record_interactions"];Xht=["reel/reel_item_watch"];QHa=["reel/reel_watch_sequence"];jHT=["like/removelike"];L4s=["notification/remove_upcoming_event_reminder"];
rNy=["flag/get_form"];W4N=["miniapp/report_value"];HDa=["navigation/resolve_url"];kQG=["channel/reveal_business_email"];ODy=["in_video/search"];eh8=["search","sfv/search","unplugged/search"];$5w=["live_chat/send_message"];zhT=["live_chat/send_live_chat_vote"];bDq=["account/set_setting"];V$P=["submit_caption_correction"];vpP=["submit_form"];opN=["subscription/subscribe"];hKU=["get_transcript"];M$s=["resolve_location","unplugged/resolve_location"];ph7=["subscription/unsubscribe"];YLP=["backstage/update_post"];
ANq=["channel_edit/update_channel_page_settings"];d5G=["comment/update_comment_reply"];JNy=["comment/update_comment"];cNL=["comment/update_comments_settings"];TEv=["creator/update_creator_channel"];Iva=["pdg/update_enablement"];fvT=["updated_metadata"];t$L=["channel_edit/validate_channel_handle"];ZDU=["verify_age"];gpG=["next","unplugged/watch_next"];SLP=["whitelist/edit"];sHa=["ypc/cancel_recurrence"];x5w=["ypc/complete_transaction"];PD8=["ypc/get_cart"];GqU=["ypc/get_fix_instrument_params"];
Bp7=["ypc/get_offers"];iPt=["ypc/get_payment_instruments_params"];Fzw=["ypc/handle_transaction"];DsP=["ypc/log_payment_server_analytics"];unN=["ypc/pause_subscription"];RHT=["ypc/redeem_code"];wOs=["ypc/resume_subscription"];var Cky=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,275198,271884,222932,279119,271886,213915,275199,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,
16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,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,283898,120137,186350,186351,256690,264349,264351,264350,264352,
211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,
105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,
23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,
135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,
141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,
220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,
25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,
262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var PZ=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.IY("yt.msgs_",PZ);var o1=new _.oV("ACTION_ROUTER_TOKEN");_.M_=function(){this.autonavState_=_.X("kevlar_is_pupi_enabled")?2:KJl()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.M_.prototype.getState=function(){return this.autonavState_};
_.M_.prototype.pause=function(G){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=G):this.autonavState_==1&&(this.disabledAutonavPauseReason_=G)};
_.M_.prototype.setState=function(G,B,F){B&&(this.autoplayChangedByUser=!0);B=this.autonavState_===3||G===3;this.autonavState_!=G&&(this.autonavState_=G,G!=3&&_.ahM(G==2),G=_.X("kevlar_is_pupi_enabled")?F||B:!0,_.pZ.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,G,F))};
_.M_.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.cP(_.M_);var pV=function(){this.gM=!1};var YZ={},eA6=(YZ.auto_search="LATENCY_ACTION_AUTO_SEARCH",YZ.ad_to_ad="LATENCY_ACTION_AD_TO_AD",YZ.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",YZ.app_startup="LATENCY_ACTION_APP_STARTUP",YZ.browse="LATENCY_ACTION_BROWSE",YZ.cast_splash="LATENCY_ACTION_CAST_SPLASH",YZ.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",YZ.channels="LATENCY_ACTION_CHANNELS",YZ.chips="LATENCY_ACTION_CHIPS",YZ.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",YZ.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
YZ.editor="LATENCY_ACTION_EDITOR",YZ.embed="LATENCY_ACTION_EMBED",YZ.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",YZ.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",YZ.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",YZ.explore="LATENCY_ACTION_EXPLORE",YZ.favorites="LATENCY_ACTION_FAVORITES",YZ.home="LATENCY_ACTION_HOME",YZ.inboarding="LATENCY_ACTION_INBOARDING",YZ.landing="LATENCY_ACTION_LANDING",YZ.learning="LATENCY_ACTION_LEARNING",
YZ.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",YZ.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",YZ.library="LATENCY_ACTION_LIBRARY",YZ.live="LATENCY_ACTION_LIVE",YZ.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",YZ.management="LATENCY_ACTION_MANAGEMENT",YZ.mini_app="LATENCY_ACTION_MINI_APP_PLAY",YZ.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",YZ.onboarding="LATENCY_ACTION_ONBOARDING",YZ.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
YZ.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",YZ.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",YZ.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",YZ.prebuffer="LATENCY_ACTION_PREBUFFER",YZ.prefetch="LATENCY_ACTION_PREFETCH",YZ.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",YZ.profile_switcher="LATENCY_ACTION_LOGIN",YZ.projects="LATENCY_ACTION_PROJECTS",YZ.reel_watch="LATENCY_ACTION_REEL_WATCH",YZ.results="LATENCY_ACTION_RESULTS",YZ.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
YZ.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",YZ.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",YZ.review="LATENCY_ACTION_REVIEW",YZ.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",YZ.search_ui="LATENCY_ACTION_SEARCH_UI",YZ.search_suggest="LATENCY_ACTION_SUGGEST",YZ.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",YZ.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",YZ.seek="LATENCY_ACTION_PLAYER_SEEK",YZ.settings="LATENCY_ACTION_SETTINGS",YZ.store="LATENCY_ACTION_STORE",
YZ.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",YZ.tenx="LATENCY_ACTION_TENX",YZ.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",YZ.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",YZ.watch="LATENCY_ACTION_WATCH",YZ.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",YZ["watch,watch7"]="LATENCY_ACTION_WATCH",YZ["watch,watch7_html5"]="LATENCY_ACTION_WATCH",YZ["watch,watch7ad"]="LATENCY_ACTION_WATCH",YZ["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",YZ.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
YZ.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",YZ.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",YZ.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",YZ.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",YZ.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",YZ.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",YZ.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",YZ),NpP=0;var ZMo=function(G,B){R6.call(this,1,arguments);this.timer=B};
_.r(ZMo,R6);var tj8=new qFL("aft-recorded",ZMo);var VjQ=_.Fz.ytLoggingGelSequenceIdObj_||{};_.IY("ytLoggingGelSequenceIdObj_",VjQ);var A9=_.Fz.ytLoggingLatencyUsageStats_||{};_.IY("ytLoggingLatencyUsageStats_",A9);var dr=function(){this.cleanupJob=0},Mj6=function(){dr.instance||(dr.instance=new dr);
return dr.instance};
_.w=dr.prototype;_.w.baseline=function(G,B,F){J9(this,"baseline_"+G)||_.W$("latencyActionBaselined",{clientActionNonce:G},{timestamp:B,cttAuthInfo:F})};
_.w.tick=function(G,B,F,D){J9(this,"tick_"+G+"_"+B)||_.W$("latencyActionTicked",{tickName:G,clientActionNonce:B},{timestamp:F,cttAuthInfo:D})};
_.w.info=function(G,B,F){var D=Object.keys(G).join("");J9(this,"info_"+D+"_"+B)||(G=Object.assign({},G),G.clientActionNonce=B,_.W$("latencyActionInfo",G,{cttAuthInfo:F}))};
_.w.jspbInfo=function(G,B,F){for(var D="",u=0;u<YD(G).length;u++)YD(G)[u]!==void 0&&(D=u===0?D.concat(""+u):D.concat("_"+u));J9(this,"info_"+D+"_"+B)||(_.wq(G,2,B),B={cttAuthInfo:F},F=_.X("jspb_sparse_encoded_pivot")?new hb([{}]):new hb,_.VC(F,7,X2w,G),vlU("latencyActionInfo",F,B))};
_.w.span=function(G,B,F){var D=Object.keys(G).join("");J9(this,"span_"+D+"_"+B)||(G.clientActionNonce=B,_.W$("latencyActionSpan",G,{cttAuthInfo:F}))};
var J9=function(G,B){A9[B]=A9[B]||{count:0};var F=A9[B];F.count++;F.time=(0,_.Zl)();G.cleanupJob||(G.cleanupJob=_.mX(_.Lu,function(){var D=(0,_.Zl)(),u;for(u in A9)A9[u]&&D-A9[u].time>6E4&&delete A9[u];G&&(G.cleanupJob=0)},5E3));
return F.count>5?(F.count===6&&Math.random()*1E5<1&&(F=new _.Uf("CSI data exceeded logging limit with key",B.split("_")),B.indexOf("plev")>=0||_.em(F)),!0):!1};var yqq,n$U;yqq=window;n$U=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.nR=yqq.performance||yqq.mozPerformance||yqq.msPerformance||yqq.webkitPerformance||new n$U;var fh6=!1,Ycc=!1,glz=(0,_.R_)(_.nR.clearResourceTimings||_.nR.webkitClearResourceTimings||_.nR.mozClearResourceTimings||_.nR.msClearResourceTimings||_.nR.oClearResourceTimings||_.qB,_.nR);var me8=_.pH(function(G,B,F,D,u,R,N){if(!_.X("web_csi_action_sampling_enabled")||!_.Rg(R).actionDisabled){var y=N==null?void 0:N.spanStatus;N=N==null?void 0:N.rootSpanNonce;var U=_.w5(R);if(U.gelSpans)U.gelSpans[G]=!0;else{var q={};U.gelSpans=(q[G]=!0,q)}NpP++;G={spanName:G,spanLengthUsec:String(Math.round(B*1E3)),spanNonce:NpP,rootSpanNonce:N||NpP};y&&(G.spanStatus=y);D&&(G.spanInfo=D);u&&(G.parentSpanNonce=u);F&&(G.spanStartTimeUsec=String(Math.round(F*1E3)));_.CR(R||"").span[String(G.spanName)]=
G;F=_.w5(R);F.gelSpans||(F.gelSpans={});_.aa(F.gelSpans,G);F=WJg(R);R=_.Rg(R).cttAuthInfo;Mj6().span(G,F,R);return G.spanNonce}}),l0a=window;
l0a.ytcsi&&(l0a.ytcsi.infoGel=_.qa,l0a.ytcsi.tick=_.KR);var RzS=function(G){R6.call(this,1,arguments);this.csn=G};
_.r(RzS,R6);var m7I=new qFL("screen-created",RzS),jS6=[],uZs=QSl,Log=0,jD=new Map,wdc=new Map,CYg=new Map;var hEg=Symbol("Gf"),VY=new WeakMap;var cR=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ck=function(){cR.instance||(cR.instance=new cR);
return cR.instance};
_.w=cR.prototype;_.w.setClient=function(G){this.client=G};
_.w.JSC$13058_newScreen=function(){this.clear();this.csn=_.qW()};
_.w.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.w.reportShown=function(G,B,F,D){var u=this.JSC$13058_getTrackingParams(G),R=G.visualElement?G.visualElement:u;B=this.shownElements.has(R);var N=this.visibleState.get(R);this.shownElements.add(R);this.visibleState.set(R,!0);G.impressionLog&&!B&&G.impressionLog();if(u||G.visualElement)if(F=Ust(this,G,F))if(R=qEy(this,G),TV(this,G)||R){u=G.visualElement?G.visualElement:_.yX(u);var y=G.interactionLoggingClientData;R||B?TV(this,G)&4?N||hzo(this.client,F,u,y):TV(this,G)&1&&!B&&Uuz(this.client,F,u,y,D):
Uuz(this.client,F,u,y,D)}};
_.w.reportHidden=function(G,B,F,D){var u=this.JSC$13058_getTrackingParams(G),R=G.visualElement?G.visualElement:u;B=this.hiddenElements.has(R);var N=this.visibleState.get(R);this.hiddenElements.add(R);this.visibleState.set(R,!1);if(N===!1)return!0;if(!u&&!G.visualElement)return!1;F=Ust(this,G,F);if(!F||!TV(this,G)&&qEy(this,G))return!1;u=G.visualElement?G.visualElement:_.yX(u);TV(this,G)&8?Ko8(this.client,F,u,void 0,void 0,D):TV(this,G)&2&&!B&&(G=this.client,D=QY({cttAuthInfo:Ew(F)||void 0,automatedLogEventSource:D},
F),B={csn:F,ve:u.getAsJson(),eventType:2},F==="UNDEFINED_CSN"?r5("visualElementHidden",D,B):G?LZ("visualElementHidden",B,G,D):_.W$("visualElementHidden",B,D));return!0};
_.w.JSC$13058_getTrackingParams=function(G){var B=this.getData(G),F,D;if(_.X("il_use_view_model_logging_context")&&(B==null?0:(F=B.context)==null?0:(D=F.loggingContext)==null?0:D.loggingDirectives))return B.context.loggingContext.loggingDirectives.trackingParams||"";var u,R;if(B==null?0:(u=B.rendererContext)==null?0:(R=u.loggingContext)==null?0:R.loggingDirectives)return B.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(B==null?0:B.loggingDirectives)return B.loggingDirectives.trackingParams||
"";var N;return((N=G.veContainer)==null?0:N.trackingParams)?G.veContainer.trackingParams:(B==null?void 0:B.trackingParams)||""};
_.w.JSC$13058_elementShouldLogGesture=function(G,B){G=this.getData(G);return!!((Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.gestures&&G.loggingDirectives.gestures.types||""))||0)&B)};
_.w.JSC$13058_getNearestParentVe=function(G){var B=this.JSC$13058_getTrackingParams(G);return G.visualElement?G.visualElement:B?_.yX(B):G.parentElement?this.JSC$13058_getNearestParentVe(G.parentElement):null};
var Ust=function(G,B,F){var D=_.qW(F);return G.csn===null||D===G.csn||F?D:(G=new _.Uf("VisibilityLogger called before newScreen",{caller:B.tagName,previous_csn:G.csn,current_csn:D}),_.em(G),null)};
cR.prototype.getData=function(G){var B,F=G.data||((B=G.props)==null?void 0:B.data);if(!F||G.isWebComponentWrapper){var D;F=(D=VY.get(G))==null?void 0:D[hEg]}return F};
var qEy=function(G,B){var F;return!((F=G.getData(B))==null||!F.loggingDirectives)},TV=function(G,B){G=G.getData(B);
return Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.visibility&&G.loggingDirectives.visibility.types||""))||1};var I1;I1=function(){};
_.De=function(){I1.instance||(I1.instance=new I1);return I1.instance};
I1.prototype.setClient=function(G){_.pH(Ck().setClient).bind(Ck())(G)};
_.E$U=function(){_.De();_.pH(Ck().JSC$13058_newScreen).bind(Ck())()};
I1.prototype.clear=function(){_.pH(Ck().clear).bind(Ck())()};
I1.prototype.reportShown=function(G,B,F,D){_.pH(Ck().reportShown).bind(Ck())(G,B,F,D)};
I1.prototype.reportHidden=function(G,B,F,D){return _.pH(Ck().reportHidden).bind(Ck())(G,B,F,D)};
var rko=function(G,B){return _.pH(Ck().JSC$13058_getTrackingParams).bind(Ck())(B)},Klg=function(G,B){return _.pH(Ck().JSC$13058_getNearestParentVe).bind(Ck())(B)};var fV,hHt;fV=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};
_.Rh=function(){fV.instance||(fV.instance=new fV);return fV.instance};
fV.prototype.setClient=function(G){this.client=G};
hHt=function(G,B,F){F=F===void 0?{}:F;_.pH(function(){var D,u,R,N=((D=_.Q(B==null?void 0:B.commandMetadata,_.xy))==null?void 0:D.rootVe)||((u=_.Q(B==null?void 0:B.commandMetadata,t0t))==null?void 0:(R=u.screenVisualElement)==null?void 0:R.uiType);if(N){D=_.Q(B==null?void 0:B.commandMetadata,I7v);if(D==null?0:D.parentTrackingParams){var y=_.yX(D.parentTrackingParams);if(D.parentCsn)var U=D.parentCsn}else F.clickedVisualElement?y=F.clickedVisualElement:B.clickTrackingParams&&(y=_.yX(B.clickTrackingParams));
a:{D=_.Q(B,_.Ow);u=_.Q(B,PeJ);if(D){if(u=myJ(D,"VIDEO")){D={token:u,videoId:D.videoId};break a}}else if(u&&(D=myJ(u,"PLAYLIST"))){D={token:D,playlistId:u.playlistId};break a}D=void 0}F=Object.assign({},{cttAuthInfo:D,parentCsn:U},F);if(_.X("expectation_logging")){var q;F.loggingExpectations=((q=_.Q(B==null?void 0:B.commandMetadata,t0t))==null?void 0:q.loggingExpectations)||void 0}_.t9(G,N,y,F)}else _.em(new _.Uf("Error: Trying to create a new screen without a rootVeType",B))})()};
_.t9=function(G,B,F,D){D=D===void 0?{}:D;_.pH(function(){Cky.includes(B)||(_.em(new _.Uf("createClientScreen() called with a non-page VE",B)),B=83769);D.isHistoryNavigation||(G.forwardHistoryStack=[],G.backHistoryStack.push({rootVe:B,key:D.key||""}));G.graftQueue=[];G.stateChangedQueue=[];D.dataPromises?Kzq(G,B,F,D):a0G(G,B,F,D)})()};
_.mss=function(G,B,F){F=F===void 0?0:F;_.pH(function(){B.then(function(D){G.pendingScreenCreation.has(F)&&G.pendingScreenFn&&G.pendingScreenFn();var u=_.qW(F),R=_.Uw(F);if(u&&R){var N={automatedLogEventSource:3},y;(D==null?0:(y=D.response)==null?0:y.trackingParams)&&LR(G.client,u,R,_.yX(D.response.trackingParams),!1,N);var U;(D==null?0:(U=D.playerResponse)==null?0:U.trackingParams)&&LR(G.client,u,R,_.yX(D.playerResponse.trackingParams),!1,N)}})})()};
fV.prototype.graftServerVe=function(G,B,F){var D=this;return _.pH(function(){var u=_.yX(G);_.Zx(D,u,B,F);return u})()};
_.afQ=function(G,B,F,D){return _.X("enable_client_ve_spec")&&B.clientVeSpec?(B=_.ge(B.clientVeSpec.uiType,void 0,B.clientVeSpec.elementIndex,B.clientVeSpec.clientYoutubeData,void 0,B),_.Zx(G,B,F,D)?B:null):B.trackingParams?G.graftServerVe(B.trackingParams,F,D):null};
_.u4=function(G,B,F,D){return _.pH(function(){if(!B.veType)return _.Oz(new _.Uf("Error: Trying to graft a client VE without a veType.")),null;if(B.visibilityTypes){var u=B.visibilityTypes.reduce(function(R,N){return R|N});
u={visibility:{types:String(u)}}}u=_.ge(B.veType,B.visualElement,B.elementIndex,B.clientYouTubeData,void 0,u);return _.Zx(G,u,F,D)?u:null})()};
_.Zx=function(G,B,F,D){D=D===void 0?0:D;return _.pH(function(){if(G.pendingScreenCreation.has(D))return G.graftQueue.push([B,F]),!0;var u=_.qW(D),R=F||_.Uw(D);if(u&&R){if(_.X("combine_ve_grafts")){var N=G.cachedVisualElements.get(R.toString());N?N.push(B):(G.cachedRootVisualElements.set(R.toString(),R),G.cachedVisualElements.set(R.toString(),[B]));G.attachTimeout||(G.attachTimeout=_.mX(_.Lu,function(){XOL(G,u)},1200))}else LR(G.client,u,R,B);
return!0}return!1})()};
_.gr=function(G,B,F){F=F===void 0?0:F;var D=G.recurringGrafts.get(F)||new Map;if(_.X("smarter_ve_dedupping"))for(var u=Array.from(D.keys()),R=0;R<u.length;R++){var N=void 0,y=void 0;var U=B;var q=u[R];q.isClientVe()&&U.isClientVe()?(N=U.getAsJson(),y=q.getAsJson(),U=N.veType!==y.veType||N.elementIndex!==y.elementIndex||N.dataElement!==y.dataElement||U.getLoggingDirectives()!==q.getLoggingDirectives()?!1:!0):U=q.veData.trackingParams!==void 0&&U.veData.trackingParams!==void 0?((y=U.veData)==null?void 0:
y.trackingParams)===((N=q.veData)==null?void 0:N.trackingParams):!1;if(U)return}else if(D.has(B))return;D.set(B,void 0);G.recurringGrafts.set(F,D);_.qW(F)==="UNDEFINED_CSN"||G.pendingScreenCreation.has(F)||_.Zx(G,B,void 0,F)};
_.S0=function(G,B,F,D){D=_.qW(D===void 0?0:D);if(!D)return!1;muI(G.client,D,B,F);return!0};
_.ss=function(G,B,F,D){if(!B)return!1;D=_.qW(D===void 0?0:D);if(!D)return!1;muI(G.client,D,_.yX(B),F);return!0};
_.kF=function(G,B){var F=B.getScreenLayer&&B.getScreenLayer();if(B.visualElement)return _.S0(G,B.visualElement,void 0,F);B=rko(_.De(),B);return _.ss(G,B,void 0,F)};
fV.prototype.clickCommand=function(G,B,F){return _.ss(this,G.clickTrackingParams,B,F===void 0?0:F)};
fV.prototype.stateChanged=function(G,B,F){this.visualElementStateChanged(_.yX(G),B,F===void 0?0:F)};
fV.prototype.visualElementStateChanged=function(G,B,F){F=F===void 0?0:F;F===0&&this.pendingScreenCreation.has(F)?this.stateChangedQueue.push([G,B]):this.logStateChanged(G,B,F)};
fV.prototype.logStateChanged=function(G,B,F){F=F===void 0?0:F;var D=_.qW(F);G=G||_.Uw(F);return D&&G?(XdM(this.client,D,G,B),!0):!1};
var Kzq=function(G,B,F,D){D=D===void 0?{}:D;G.pendingScreenCreation.add(D.layer||0);G.pendingScreenFn=function(){a0G(G,B,F,D);var N=_.Uw(D.layer);if(N){for(var y=_.C(G.graftQueue),U=y.next();!U.done;U=y.next())U=U.value,_.Zx(G,U[0],U[1]||N,D.layer);N=_.C(G.stateChangedQueue);for(y=N.next();!y.done;y=N.next())y=y.value,G.logStateChanged(y[0],y[1])}};
F||_.qW(D.layer)||G.pendingScreenFn();if(D.dataPromises)for(var u=_.C(D.dataPromises),R=u.next();!R.done;R=u.next())_.mss(G,R.value,D.layer);else _.k2(Error("Hf"))},a0G=function(G,B,F,D){D=D===void 0?{}:D;
var u=void 0;D.layer||(D.layer=0);u=D.parentLayer!==void 0?D.parentLayer:D.layer;var R=_.qW(u);u=_.Uw(u);var N=F||u,y;N&&(D.parentCsn!==void 0?y={clientScreenNonce:D.parentCsn,visualElement:N}:R&&R!=="UNDEFINED_CSN"&&(y={clientScreenNonce:R,visualElement:N}));var U,q=_.v5("EVENT_ID");R==="UNDEFINED_CSN"&&q&&(U={servletData:{serializedServletEventId:q}});_.X("combine_ve_grafts")&&R&&XOL(G,R);_.X("no_client_ve_attach_unless_shown")&&N&&R&&lag(N,R);try{var h=_.Nyc(G.client,B,y,D.csnToClone,D.cttAuthInfo,
U,D.implicitGestureType,void 0,D.loggingExpectations,D.automatedLogEventSource)}catch(m){_.$2(m,{rootVeType:B,rootVe:u,parentVisualElement:F,currentCsn:R,parentEl:y,csnToClone:D.csnToClone});_.k2(m);return}_.hL(h,B,D.layer,D.cttAuthInfo);R&&R!=="UNDEFINED_CSN"&&u&&!U_l(R)&&Ko8(G.client,R,u,!0);G.backHistoryStack[G.backHistoryStack.length-1]&&!G.backHistoryStack[G.backHistoryStack.length-1].csn&&(G.backHistoryStack[G.backHistoryStack.length-1].csn=h||"");_.qa({clientScreenNonce:h});_.E$U();var K=_.Uw(D.layer);
R&&R!=="UNDEFINED_CSN"&&K&&_.X("music_web_mark_root_visible")&&_.kI(h,K);G.pendingScreenCreation.delete(D.layer||0);G.pendingScreenFn=void 0;var a;(a=G.recurringGrafts.get(D.layer))==null||a.forEach(function(m,L){m?_.Zx(G,L,m,D.layer):K&&_.Zx(G,L,K,D.layer)});
QRU(G)},QRU=function(G){for(var B=0;B<G.afterNewScreenOneOffJobs.length;B++){var F=G.afterNewScreenOneOffJobs[B];
try{F()}catch(D){_.k2(D)}}for(B=G.afterNewScreenOneOffJobs.length=0;B<G.afterNewScreenRecurringJobs.length;B++){F=G.afterNewScreenRecurringJobs[B];try{F()}catch(D){_.k2(D)}}},XOL=function(G,B){if(B===void 0)for(var F=nZz(),D=0;D<F.length;D++)F[D]!==void 0&&XOL(G,F[D]);
else G.cachedVisualElements.forEach(function(u,R){(R=G.cachedRootVisualElements.get(R))&&yiQ(G.client,B,R,u)}),G.cachedVisualElements.clear(),G.cachedRootVisualElements.clear(),G.attachTimeout=void 0};var xZ=function(G){G=G===void 0?{layer:0}:G;this.gM=!1;this.createScreenConfig=G;G={};this.a1b=(G.response=!1,G.playerResponse=!1,G)};
_.r(xZ,pV);xZ.prototype.validate=function(G){return!(!G.data||!G.data.response&&!G.data.playerResponse)};
xZ.prototype.handle=function(G){var B=_.Rh(),F=this.createScreenConfig.layer;G.data.response&&G.data.response.trackingParams&&!this.a1b.response&&(B.graftServerVe(G.data.response.trackingParams,void 0,F),this.a1b.response=!0);G.data.playerResponse&&G.data.playerResponse.trackingParams&&!this.a1b.playerResponse&&(B.graftServerVe(G.data.playerResponse.trackingParams,void 0,F),this.a1b.playerResponse=!0)};var PR=function(){this.n5=_.zn();this.bA=[];this.mte=0};
PR.prototype.processChunk=function(G){if(G){for(var B=_.C(this.bA),F=B.next();!F.done;F=B.next())F=F.value,F.validate(G)&&(F.handle(G),F.gM=!0);_.KR("np"+this.mte);this.mte++}};var YT8,jRs,WzL;_.Gm=function(G,B,F,D,u,R,N,y){N=N===void 0?[]:N;y=y===void 0?[]:y;this.buildCommandPayload=G;this.navigate=B;this.handleServiceRequest=F;this.sendAction=D;this.JSC$13093_screenManager=u;this.commandResolverMap=R;this.autoLogResolverAllowlist=N;this.metaCommandClickLoggingDenylist=y;this.pendingCommands=new Set;this.isTracingEnabled=!1;jRs(this)};
YT8=function(G,B,F){var D=[_.yQq,LEw],u=rnS,R=WlQ,N=_.Rh(),y=Lz8;F=F===void 0?[]:F;D=D===void 0?[]:D;_.Gm.instance=new _.Gm(G,B,u,R,N,y,F,D)};
jRs=function(G){if(!G.isTracingEnabled&&AL("command")){var B=G.resolveCommand;G.resolveCommand=function(F,D){a:{for(u in F)if(Object.prototype.hasOwnProperty.call(F,u)){var u={commandType:u};break a}u={}}return _.ds("command",u,B.bind(this,F,D))};
G.isTracingEnabled=!0}};
WzL=function(G,B,F){if(!G.commandResolverMap)return!1;var D=O4I(B,G.commandResolverMap);return D?((G.autoLogResolverAllowlist.some(function(u){return!!_.Q(B,u)})||(F==null?0:F.forceClickLogging))&&rqs(G,B,F),D instanceof Promise?D.then(function(u){u.resolve(B,F)}):D.resolve(B,F),!0):!1};
_.Gm.prototype.resolveCommand=function(G,B){var F=this,D=HPL(G);if((B==null||!B.skipCommandResolverMap)&&WzL(this,G,B))return!0;if(D)return kqU(this,G,B);if(!this.buildCommandPayload)return Woz(G,"Unhandled command by buildCommandPayload"),!1;var u=this.buildCommandPayload(G,B);if(B==null?0:B.commandController)u.commandController=B.commandController;if(u.type===0){if(!this.navigate)return H4Q(G,"navigate"),!1;if(!OPv(u.command))return Woz(G,"Page requests need to specify a url"),!1;_.X("logging_avoid_blocking_during_navigation")&&
_.BCc().transition("application_navigating");G=this.navigate(u)||[];OHG(G).then(function(){F.pendingCommands.delete(u.command)});
return!0}if(u.type===1){if(!this.handleServiceRequest)return H4Q(G,"handleServiceRequest"),!1;(B==null?0:B.forceClickLogging)&&rqs(this,u.command,B);G=this.handleServiceRequest(u);OHG(G).then(function(){F.pendingCommands.delete(u.command)});
return!0}if(u.type===2){if(!this.sendAction)return H4Q(G,"sendAction"),!1;rqs(this,u.command,B);this.sendAction(u);return!0}return!1};
var rqs=function(G,B,F){if((F==null||!F.disableClickTracking)&&G.JSC$13093_screenManager)if(B.clickTrackingParams&&_.X("log_click_with_layer_from_element_in_command_handler")){var D;F=F==null?void 0:(D=F.form)==null?void 0:D.element;G.JSC$13093_screenManager.clickCommand(B,null,F&&F.getScreenLayer&&F.getScreenLayer())}else B.clickTrackingParams?G.JSC$13093_screenManager.clickCommand(B):!_.X("disable_clicked_visual_element_in_command_handler")&&(F==null?0:F.clickedVisualElement)&&_.S0(G.JSC$13093_screenManager,
F.clickedVisualElement)},HPL=function(G){var B=!!_.Q(G,_.gs),F;
G=((F=_.Q(G,_.sw))==null?void 0:F.signal)==="CLIENT_SIGNAL";return B||G},kqU=function(G,B,F){var D=_.Q(B,_.gs);
if(D)var u=(D==null?void 0:D.commands)||[];else{var R;if(((R=_.Q(B,_.sw))==null?void 0:R.signal)==="CLIENT_SIGNAL"){var N;u=((N=_.Q(B,_.sw))==null?void 0:N.actions)||[]}}if(u){(D=eHa(G,u))&&rqs(G,B,F);B=_.C(u);for(u=B.next();!u.done;u=B.next()){u=u.value;try{var y=Object.assign({},F);D&&(y.disableClickTracking=!0);G.resolveCommand(u,y)}catch(U){U instanceof Error&&_.k2(U)}}return!0}Woz(B,"Could not handle the meta command");return!1},eHa=function(G,B){return B.every(function(F){return G.metaCommandClickLoggingDenylist.some(function(D){return!!_.Q(F,
D)})})},OPv=function(G){var B;
return!((B=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null||!B.url)};var GS=function(){pV.apply(this,arguments)};
_.r(GS,pV);GS.prototype.validate=function(G){var B,F;return!this.gM&&!!((B=G.data.response)==null?0:(F=B.onResponseReceivedEndpoints)==null?0:F.length)};
GS.prototype.handle=function(G){var B=_.Gm.instance;G=_.C(G.data.response.onResponseReceivedEndpoints);for(var F=G.next();!F.done;F=G.next())B.resolveCommand(F.value)};var $sq,zHT,i_;
$sq=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.ZL();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Bv=function(){zHT||(zHT=new $sq);return zHT};
i_=function(){var G=_.Bv();G.miniplayerButtonActivation=!1;G.userActivation=!1;G.playlistWatchPageActivation=!1;G.productDetailsPageActivation=!1;G.miniAppPageActivation=!1;G.playablesDestPageActivation=!1;G.lockupActivation=!1;G.showMiniplayerCommandActivation=!1;G.playlistSuggestionsShelfActivation=!1;G.mediaSessionPipActivation=!1;G.watchPipActivation=!1;G.watchWhileActivation=!1;G.shortsPipActivation=!1;G.companionCanvasActivation=!1};
_.bPt=function(){var G=_.Bv(),B=G.mediaSessionPipActivation,F=G.watchPipActivation,D=G.watchWhileActivation,u=G.playlistWatchPageActivation,R=G.lockupActivation,N=G.showMiniplayerCommandActivation,y=G.navigatingAwayFromWatchDeletedVideo,U=G.shortsPipActivation,q=G.playlistSuggestionsShelfActivation,h=G.productDetailsPageActivation,K=G.miniAppPageActivation,a=G.playablesDestPageActivation,m=G.companionCanvasActivation;return!G.miniplayerButtonActivation&&!u&&!q&&!h&&!K&&!a&&!R&&!N&&!B&&!F&&!D&&!U&&
!m||y};var nco;_.F5=_.og("FEwhat_to_watch","/",3854);_.lUU=_.og("FEdownloads","/feed/downloads",42352);nco=_.og("FEmusic_offline","browse/FEmusic_offline",42352);var bo=function(G,B){B=B===void 0?[]:B;var F=F===void 0?[]:F;B=Igc.apply(null,[fg6.apply(null,_.gi(B))].concat(_.gi(F)));this.store=SC8(G,void 0,B)};
bo.prototype.getState=function(){return this.store.getState()};
bo.prototype.dispatch=function(G){return this.store.dispatch(G)};
bo.prototype.subscribe=function(G){return this.store.subscribe(G)};
bo.prototype.replaceReducer=function(G){return this.store.replaceReducer(G)};
bo.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Dh=function(G,B,F){var D=B(G.getState());return G.subscribe(function(){var u=B(G.getState());if(u!==D){var R=D;D=u;F(u,R)}})};var mRU;_.wC=function(G,B,F){return _.d5({type:"REPLACE_ENTITY",payload:{entityPayload:F,entityType:G,key:B}})};
mRU=function(G){return _.d5({type:"REPLACE_ENTITIES",payload:G})};
_.mH=function(G,B,F,D){return _.d5({type:"UPDATE_ENTITY",payload:{entityPayload:F,entityType:G,key:B,mergeOption:D}})};var Ji6=function(G){var B=this;G=G===void 0?[]:G;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;G.forEach(function(F){B.append(F)})};
_.w=Ji6.prototype;_.w.getLength=function(){return this.totalLength};
_.w.append=function(G){var B=this.arrays.length===0?!1:(B=this.arrays[this.arrays.length-1])&&B.buffer===G.buffer&&B.byteOffset+B.length===G.byteOffset;B?(B=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(B.buffer,B.byteOffset,B.length+G.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(G);this.totalLength+=G.length};
_.w.split=function(G){for(var B=new Ji6,F=new Ji6,D=_.C(this.arrays),u=D.next();!u.done;u=D.next())u=u.value,G>=u.length?(B.append(u),G-=u.length):G?(B.append(new Uint8Array(u.buffer,u.byteOffset,G)),F.append(new Uint8Array(u.buffer,u.byteOffset+G,u.length-G)),G=0):F.append(u);return{headView:B,tailView:F}};
_.w.isFocused=function(G){return G>=this.arrayPos&&G<this.arrayPos+this.arrays[this.arrayIdx].length};
_.w.focus=function(G){if(!this.isFocused(G))for(G<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=G&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Vv7=function(G,B){G.focus(B);return G.arrays[G.arrayIdx][B-G.arrayPos]};(function(){var G=function(D){return new Uint8Array(D)},B=function(D){for(var u=new Uint8Array(D.length),R=0;R<D.length;R++)u[R]=D[R];
return u},F=new Uint8Array([1]);
return F.length===1&&F[0]===1?G:B})();
var oRQ=Array(1024),vRS=window.TextDecoder?new TextDecoder:void 0,pdS=window.TextEncoder?new TextEncoder:void 0;var dul=function(G){this.arrayView=G;this.pos=0;this.pendingTagAndType=-1},JJ=function(G){var B=Vv7(G.arrayView,G.pos);
++G.pos;if(B<128)return B;for(var F=B&127,D=1;B>=128;)B=Vv7(G.arrayView,G.pos),++G.pos,D*=128,F+=(B&127)*D;return F},ci8=function(G,B){var F=G.pendingTagAndType;
for(G.pendingTagAndType=-1;G.pos+1<=G.arrayView.totalLength;){F<0&&(F=JJ(G));var D=F>>3,u=F&7;if(D===B)return!0;if(D>B){G.pendingTagAndType=F;break}F=-1;switch(u){case 0:JJ(G);break;case 1:G.pos+=8;break;case 2:D=JJ(G);G.pos+=D;break;case 5:G.pos+=4}}return!1};var IaM=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=AiU(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},tJ=function(G,B){B=G.pos+B;
if(!(G.buf.length>=B)){for(var F=G.buf.length*2;F<B;)F*=2;G.buf=AiU(F,G.wasm,G.buf.subarray(0,G.pos));G.view=new DataView(G.buf.buffer,G.buf.byteOffset,G.buf.byteLength)}},fR=function(G,B){if(B>268435455){tJ(G,4);
for(var F=B&1073741823,D=0;D<4;D++)G.view.setUint8(G.pos,F&127|128),F>>=7,G.pos+=1;B=Math.floor(B/268435456)}for(tJ(G,4);B>127;)G.view.setUint8(G.pos,B&127|128),B>>=7,G.pos+=1;G.view.setUint8(G.pos,B);G.pos+=1};for(var fag={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},TyS={},v$a=_.C(Object.entries(fag)),o$N=v$a.next();!o$N.done;o$N=v$a.next()){var Mvt=_.C(o$N.value),pO8=Mvt.next().value,YEP=Mvt.next().value,Aqq=pO8,dsP=YEP;dsP&&(TyS[dsP]=Aqq)};var Z4l=function(G,B){G=G===void 0?{}:G;switch(B.type){case "ENTITY_LOADED":return B.payload.reduce(function(D,u){var R,N=(R=u.options)==null?void 0:R.persistenceOption;if(N&&N!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&N!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return D;if(!u.entityKey)return _.k2(Error("Jf")),D;if(u.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!u.payload)return u=new _.Uf("REPLACE entity mutation is missing a payload",{entityKey:u.entityKey}),_.k2(u),D;var y=(0,_.UK.getAnyKey)(u.payload);
return Spo(D,y,u.entityKey,u.payload[y])}if(u.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{u=u.entityKey;try{var U=_.cT(u).entityType;y=Spo(D,U,u);break a}catch(K){if(K instanceof Error){u=new _.Uf("Failed to deserialize entity key",{entityKey:u,originalMessage:K.message});_.k2(u);y=D;break a}throw K;}y=void 0}return y}if(u.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!u.payload)return u=new _.Uf("UPDATE entity mutation is missing a payload",{entityKey:u.entityKey}),_.k2(u),D;y=(0,_.UK.getAnyKey)(u.payload);
var q,h;return sSS(D,y,u.entityKey,u.payload[y],(q=u.fieldMask)==null?void 0:(h=q.mergeOptions)==null?void 0:h.repeatedFieldsMergeOption)}return D},G);
case "REPLACE_ENTITY":var F=B.payload;return Spo(G,F.entityType,F.key,F.entityPayload);case "REPLACE_ENTITIES":return Object.keys(B.payload).reduce(function(D,u){var R=B.payload[u];return Object.keys(R).reduce(function(N,y){return Spo(N,u,y,R[y])},D)},G);
case "UPDATE_ENTITY":return F=B.payload,sSS(G,F.entityType,F.key,F.entityPayload,F.mergeOption);default:return G}};var xuL;var Jqs=!1,u_,Re,wB,CM,Ny,cqy=function(G){_.uz.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Jqs){var B,F=new Uint8Array(256),D=new Uint8Array(256);var u=1;for(B=0;B<256;B++)F[u]=B,D[B]=u,u^=u<<1^(u>>7&&283);u_=new Uint8Array(256);Re=SD(256);wB=SD(256);CM=SD(256);Ny=SD(256);for(var R=0;R<256;R++){u=R?D[255^F[R]]:0;u^=u<<1^u<<2^u<<3^u<<4;u=u&255^u>>>8^99;u_[R]=u;B=u<<1^(u>>7&&283);var N=B^u;Re[R]=B<<24|u<<16|u<<8|N;wB[R]=N<<24|Re[R]>>>8;CM[R]=u<<24|wB[R]>>>
8;Ny[R]=u<<24|CM[R]>>>8}Jqs=!0}u=SD(44);for(F=0;F<4;F++)u[F]=G[4*F]<<24|G[4*F+1]<<16|G[4*F+2]<<8|G[4*F+3];for(D=1;F<44;F++)G=u[F-1],F%4||(G=(u_[G>>16&255]^D)<<24|u_[G>>8&255]<<16|u_[G&255]<<8|u_[G>>>24],D=D<<1^(D>>7&&283)),u[F]=u[F-4]^G;this.key=u};
_.r(cqy,_.uz);
cqy.prototype.encrypt=function(G){var B=G.length;G=new Uint8Array(G.buffer.slice(G.byteOffset,G.byteOffset+B));for(var F=this.cipherBlock,D=0;D<B&&this.blockOffset<16;)G[D++]^=F[this.blockOffset++];for(var u=B-(B-D)%16;D<u;)TpL(this),G[D++]^=F[0],G[D++]^=F[1],G[D++]^=F[2],G[D++]^=F[3],G[D++]^=F[4],G[D++]^=F[5],G[D++]^=F[6],G[D++]^=F[7],G[D++]^=F[8],G[D++]^=F[9],G[D++]^=F[10],G[D++]^=F[11],G[D++]^=F[12],G[D++]^=F[13],G[D++]^=F[14],G[D++]^=F[15];if(D<B)for(TpL(this),this.blockOffset=0;D<B;)G[D++]^=
F[this.blockOffset++];return G};
var TpL=function(G){for(var B=G.key,F=G.counter[0]^B[0],D=G.counter[1]^B[1],u=G.counter[2]^B[2],R=G.counter[3]^B[3],N=3;N>=0&&!(G.counter[N]=-~G.counter[N]);N--);for(var y,U,q=4;q<40;)N=Re[F>>>24]^wB[D>>16&255]^CM[u>>8&255]^Ny[R&255]^B[q++],y=Re[D>>>24]^wB[u>>16&255]^CM[R>>8&255]^Ny[F&255]^B[q++],U=Re[u>>>24]^wB[R>>16&255]^CM[F>>8&255]^Ny[D&255]^B[q++],R=Re[R>>>24]^wB[F>>16&255]^CM[D>>8&255]^Ny[u&255]^B[q++],F=N,D=y,u=U;G=G.cipherBlock;N=B[40];G[0]=u_[F>>>24]^N>>>24;G[1]=u_[D>>16&255]^N>>16&255;G[2]=
u_[u>>8&255]^N>>8&255;G[3]=u_[R&255]^N&255;N=B[41];G[4]=u_[D>>>24]^N>>>24;G[5]=u_[u>>16&255]^N>>16&255;G[6]=u_[R>>8&255]^N>>8&255;G[7]=u_[F&255]^N&255;N=B[42];G[8]=u_[u>>>24]^N>>>24;G[9]=u_[R>>16&255]^N>>16&255;G[10]=u_[F>>8&255]^N>>8&255;G[11]=u_[D&255]^N&255;N=B[43];G[12]=u_[R>>>24]^N>>>24;G[13]=u_[F>>16&255]^N>>16&255;G[14]=u_[D>>8&255]^N>>8&255;G[15]=u_[u&255]^N&255};var I0N=!1;(function(){var G=function(D){return new Uint8Array(D)},B=function(D){for(var u=new Uint8Array(D.length),R=0;R<D.length;R++)u[R]=D[R];
return u},F=new Uint8Array([1]);
return F.length===1&&F[0]===1?G:B})();
var yq;var ZPP=function(G){a:{if(!I0N&&!cQ){if(yq){var B=yq;break a}yq=(B=window.crypto)==null?void 0:B.subtle;var F,D,u;if(((F=yq)==null?0:F.importKey)&&((D=yq)==null?0:D.sign)&&((u=yq)==null?0:u.encrypt)){B=yq;break a}yq=void 0}B=void 0}B&&(this.nativeEncryptor=new f0U(G,B));this.encryptorPolyfill=new tvT(G)};
ZPP.prototype.encrypt=function(G,B){var F=this,D;return _.n(function(u){switch(u.nextAddress){case 1:if(!F.nativeEncryptor){u.jumpTo(2);break}_.b5(u,3);return u.yield(F.nativeEncryptor.encrypt(G,B),5);case 5:return u.return(u.yieldResult);case 3:D=_.Al(u),_.em(D),I0N=!0,F.nativeEncryptor=void 0;case 2:return u.return(F.encryptorPolyfill.encrypt(G,B))}})};
ZPP.prototype.decrypt=function(G,B){return this.encrypt(G,B)};
var f0U=function(G,B){this.JSC$13166_aesKey=G;this.subtleCrypto=B};
f0U.prototype.encrypt=function(G,B){var F=this,D;return _.n(function(u){if(u.nextAddress==1)return _.b5(u,2),u.yield(g$t(F,G,B),4);if(u.nextAddress!=2)return u.return(u.yieldResult);D=_.Al(u);_.em(D);I0N=!0;throw D;})};
var g$t=function(G,B,F){var D,u;return _.n(function(R){switch(R.nextAddress){case 1:if(G.cryptoKey){R.jumpTo(2);break}return R.yield(G.subtleCrypto.importKey("raw",G.JSC$13166_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:G.cryptoKey=R.yieldResult;case 2:return D={name:"AES-CTR",counter:F,length:128},R.yield(G.subtleCrypto.encrypt(D,G.cryptoKey,B),4);case 4:return u=R.yieldResult,R.return(new Uint8Array(u))}})},tvT=function(G){this.JSC$13169_aesKey=G};
tvT.prototype.encrypt=function(G,B){this.encryptor||(this.encryptor=new cqy(this.JSC$13169_aesKey));for(var F=this.encryptor,D=0;D<4;D++)F.counter[D]=B[D*4]<<24|B[D*4+1]<<16|B[D*4+2]<<8|B[D*4+3];F.blockOffset=16;return this.encryptor.encrypt(G)};
tvT.prototype.decrypt=function(G,B){return this.encrypt(G,B)};var SEG={},Blc=tP("yt-idb-pref-storage",{objectStores:(SEG.prefs={addedAtVersion:1},SEG),shared:!1,upgrade:function(G,B){B(1)&&Vv(bi(G,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.nM=function(G){this.token=G};
_.nM.getInstance=function(){return _.n(function(G){return G.return(new Promise(function(B){_.f8().then(function(F){F?(_.nM.instance||(_.nM.instance=new _.nM(F)),B(_.nM.instance)):B(void 0)})}))})};
_.nM.prototype.get=function(G){var B=this,F,D,u;return _.n(function(R){if(R.nextAddress==1)return R.yield(i9l(B.token),2);if(R.nextAddress!=3)return F=R.yieldResult,R.yield(F.get("prefs",G),3);D=R.yieldResult;if(!D)return R.return();u=(0,_.Zl)();return D.expirationTimestampMs<=u?R.return():R.return(D.value)})};
_.nM.prototype.set=function(G,B,F){F=F===void 0?31536E3:F;var D=this,u,R,N;return _.n(function(y){if(y.nextAddress==1)return u=(0,_.Zl)(),R={key:G,value:B,expirationTimestampMs:u+F*1E3},y.yield(i9l(D.token),2);N=y.yieldResult;return y.yield(N.put("prefs",R),0)})};
_.nM.prototype.remove=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(i9l(B.token),2);F=D.yieldResult;return D.yield(F.delete("prefs",G),0)})};var l_={},sRN=(l_.INVALID_ENCODER_VERSION="Invalid encoder version",l_.KEY_CREATION_FAILED="Failed to create encoder key",l_.UNKNOWN_DECODE_ERROR="Failed to decode PES data",l_.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",l_.WRONG_DATA_TYPE="Encoder cannot process the data type",l_),sq=function(G,B){B=B===void 0?{}:B;_.Uf.call(this,sRN[G],Object.assign({},{name:"PESEncoderError",type:G},B));this.type=G;this.level="WARNING";Object.setPrototypeOf(this,sq.prototype)};
_.r(sq,_.Uf);var Uc=function(){};
Uc.prototype.encode=function(G,B){try{return this.encodeImpl(G,B)}catch(F){Rj8(F,DR6)}};
Uc.prototype.decode=function(G,B){try{return this.decodeImpl(G,B)}catch(F){Rj8(F,uES)}};
var xsa=function(G,B,F){var D;return _.n(function(u){if(u.nextAddress==1)return _.b5(u,2),u.yield(G.decodeAsyncImpl(B,F),4);if(u.nextAddress!=2)return u.return(u.yieldResult);D=_.Al(u);Rj8(D,uES);_.di(u)})};
Uc.prototype.decodeAsyncImpl=function(G,B){return Promise.resolve(this.decodeImpl(G,B))};var qy=function(G,B){this.aesEncryptor=G;this.aesEncryptorAsync=B};
_.r(qy,Uc);qy.prototype.encodeImpl=function(G,B){B=wjJ(B);G=(new TextEncoder).encode(JSON.stringify(G));return this.aesEncryptor.encrypt(G,B)};
qy.prototype.decodeImpl=function(G,B){if(!(G instanceof Uint8Array))throw FFL(1);var F=new TextDecoder;B=wjJ(B);G=this.aesEncryptor.decrypt(G,B);return JSON.parse(F.decode(G))};
qy.prototype.decodeAsyncImpl=function(G,B){var F=this,D,u,R;return _.n(function(N){if(N.nextAddress==1){if(!(G instanceof Uint8Array))throw FFL(1);D=new TextDecoder;u=wjJ(B);return N.yield(F.aesEncryptorAsync.decrypt(G,u),2)}R=N.yieldResult;return N.return(JSON.parse(D.decode(R)))})};var CxJ={accountLinkStatusEntity:oA7,booleanEntity:CEU,buttonEntity:uka,captionTrack:TyG,channelHandle:oe7,chipEntity:Vpq,commerceAcquisitionClientPayloadEntity:z_7,commerceCartListEntity:bLt,compositeSourceEntity:uZL,multiviewStagingEntity:RzG,contextNoteFeedEntityPayload:S9L,contextNoteUserRatingEntityPayload:s6v,continuationTokenEntity:XvU,downloadQualityPickerEntity:NBa,downloadsPageRefreshTokenEntity:nlq,downloadsPageViewConfigurationEntity:eAs,downloadStatusEntity:yXU,dismissState:vVv,sfvAudioItemCurrentlyPlayingEntity:LF8,
emojiFountainDataEntity:iLy,emojiCustomizationSetEntity:B4N,fakeChannel:nAy,fakePlaylist:lW7,fakePlaylistEntryCollection:U9t,fakeVideo:EAq,fakeVideoDescription:hTt,featuredProductsEntity:seq,flowStateEntity:zTP,iconBadgeEntity:VhN,interstitialInteractionStateEntity:x9P,likeButtonAnimationEntity:$yt,liveChatPollStateEntity:RxP,dataFreshnessEntity:P3q,liveViewerLeaderboardChatEntryPointStateEntity:DRs,liveViewerLeaderboardPointsEntity:uEG,liveReactionsDataEntity:FPs,logoEntity:Sgv,macroMarkerEntity:zAv,
mainDownloadsLibraryEntity:lhw,mainDownloadsListEntity:UyL,mainPlaylistDownloadStateEntity:ElT,mainPlaylistEntity:Qe8,mainPlaylistVideoEntity:jey,mainVideoDownloadStateEntity:hA8,mainVideoEntity:HM7,markersEngagementPanelSyncEntity:bMw,markersVisibilityOverrideEntity:Vj7,musicAlbumReleaseDetail:lat,musicAlbumReleaseDownloadMetadataEntity:wdq,musicAlbumRelease:nR7,musicAlbumReleaseUserDetail:Uua,musicArtistDetail:ERt,musicArtist:qpq,musicArtistUserDetail:hzP,musicDownloadsLibraryEntity:CYT,musicLibraryEdit:KoN,
musicLibraryStatusEntity:aay,musicPlaylist:muq,musicPlaylistDownloadMetadataEntity:Nyq,musicShare:QSy,musicTrackDetail:Lot,musicTrackDownloadMetadataEntity:yi7,musicTrack:jSs,musicTrackUserDetail:riL,offlineOrchestrationActionWrapperEntity:Iav,offlineVideoPolicy:faT,offlineVideoStreams:txP,offlineabilityEntity:KJy,orchestrationWebSamplingEntity:ahv,pageHeaderEntity:Isw,pdpStateEntity:vjG,pinnedProductEntity:xyq,playbackData:Z4y,playerStateEntity:vlw,quantityIncrementerEntity:ojG,refresh:gRL,saveToPlaylistListEntity:f7y,
selectedChipIndexEntityPayload:olG,settingEntity:Uvv,stringEntity:NYv,suggestedFeedbackChipStateEntity:Mjs,transfer:SpP,trendingOfferEntity:P_T,videoDownloadContextEntity:sSG,videoOverviewAsyncDataEntity:wat,videoPlaybackPositionEntity:CIs,votingEntity:gVa,ytMainChannelEntity:kSP,youchatPendingResponseEntity:pv8,ytMainDownloadedVideoEntity:myU,ytMainVideoEntity:OMP};var Pkq,B1v,io,hjQ,KFU,D17,RL7,uds,FkP;Pkq=function(G,B){this.JSC$13188_wrapped=G;this.JSC$13188_encoderRegistry=B;this.changedKeys={}};
B1v=function(G,B){return GK7(G.JSC$13188_encoderRegistry,B.version).decode(B.data,B.key)};
_.ilT=function(G,B,F){return G.JSC$13188_wrapped.objectStore("EntityStore").get(B).then(function(D){if(D){if(F&&D.entityType!==F)throw Error("Kf");return B1v(G,D)}})};
io=function(G,B,F){return F?(F=F.map(function(D){return _.ilT(G,D,B)}),$K.all(F)):G.JSC$13188_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(B)).then(function(D){return D.map(function(u){return B1v(G,u)})})};
_.EYc=function(G,B,F){var D=txo(B),u=GK7(G.JSC$13188_encoderRegistry,1),R=Object.assign({},B);return G.JSC$13188_wrapped.objectStore("EntityStore").get(D).then(function(N){if(N){if(N.entityType!==F)throw Error("Kf");R.entityMetadata||(N=B1v(G,N),R.entityMetadata=N.entityMetadata)}}).then(function(){var N={key:D,
entityType:F,data:u.encode(R,D),version:1};return $K.all([G.JSC$13188_wrapped.objectStore("EntityStore").put(N),FkP(G,R,F)])}).then(function(){D17(G,D,F);
return D})};
hjQ=function(G,B){var F=_.cT(B).entityType;return $K.all([G.JSC$13188_wrapped.objectStore("EntityStore").delete(B),uds(G,B)]).then(function(){D17(G,B,F)})};
KFU=function(G,B,F,D){var u=GK7(G.JSC$13188_encoderRegistry,1);return _.ilT(G,B,D).then(function(R){if(R){R=Vxs(R,F);var N={key:B,entityType:D,data:u.encode(R,B),version:1};return $K.all([G.JSC$13188_wrapped.objectStore("EntityStore").put(N),FkP(G,R,D)])}}).then(function(){D17(G,B,D);
return B})};
D17=function(G,B,F){var D=G.changedKeys[F];D||(D=new Set,G.changedKeys[F]=D);D.add(B)};
RL7=function(G,B,F){var D=txo(B);F=Nlz(F);if(!F)return $K.resolve([]);F=new F(B);G=G.JSC$13188_wrapped.objectStore("EntityAssociationStore");B=[];F=_.C(F.getAssociations());for(var u=F.next();!u.done;u=F.next())B.push(G.put({parentEntityKey:D,childEntityKey:u.value}));return $K.all(B).then(function(R){return R.map(function(N){return N[1]})})};
uds=function(G,B){return G.JSC$13188_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(B))};
FkP=function(G,B,F){var D=txo(B);return uds(G,D).then(function(){return RL7(G,B,F)})};var wxs=function(){};
_.r(wxs,Uc);wxs.prototype.encodeImpl=function(G){return G};
wxs.prototype.decodeImpl=function(G){if(G instanceof Uint8Array)throw FFL(0);return G};var l7U=function(){this.cacheMap={};this.cacheMap[0]=new wxs;if(!_.X("aes_pes_encoder_killswitch")){var G=this.cacheMap;try{var B=_.n8();var F=wjJ(B);var D=new qy(new tvT(F),new ZPP(F))}catch(u){throw G=u instanceof Error?new sq("KEY_CREATION_FAILED",{originalMessage:u.message}):new sq("KEY_CREATION_FAILED"),_.k2(G),G;}G[1]=D}},GK7=function(G,B){B=B===void 0?0:B;
G=G.cacheMap[B];if(!G)throw B=new sq("INVALID_ENCODER_VERSION",{encoderVersion:B}),_.k2(B),B;return G};var PT=function(G,B){_.uz.call(this);this.token=G;this.JSC$13202_encoderRegistry=B;this.observers=[];G=new _.Fz.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.n8());G.onmessage=this.JSC$13202_handleMessage.bind(this);this.channel=G};
_.r(PT,_.uz);_.B2=function(G,B,F){var D,u,R,N;return _.n(function(y){if(y.nextAddress==1)return y.yield(Gjc(G.token),2);if(y.nextAddress!=3)return D=y.yieldResult,y.yield(_.YK(D,["EntityStore","EntityAssociationStore"],B,function(U){u=new Pkq(U,G.JSC$13202_encoderRegistry);return F(u)}),3);
R=y.yieldResult;u&&(N=u.changedKeys,Object.keys(N).length>0&&(G.channel.postMessage(N),CdP(G,N)));return y.return(R)})};
PT.prototype.observe=function(G){var B=this;this.observers.push(G);return function(){var F=B.observers.indexOf(G);F>=0&&B.observers.splice(F,1)}};
var YQo=function(G){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(_.B2(G,{mode:"readonly",enableRetries:!0},function(D){return D.JSC$13188_wrapped.objectStore("EntityStore").getAll()}),2);
B=F.yieldResult;return F.return(Promise.all(B.filter(function(D){return!!D}).map(function(D){var u,R;
return _.n(function(N){if(N.nextAddress==1){u=D.key;R=D.entityType;var y=N.yield;var U=xsa(GK7(G.JSC$13202_encoderRegistry,D.version),D.data,D.key);return y.call(N,U,2)}return N.return({key:u,entityType:R,data:N.yieldResult})})})))})};
PT.prototype.JSC$13202_handleMessage=function(G){CdP(this,G.data)};
var CdP=function(G,B){G=_.C(G.observers);for(var F=G.next();!F.done;F=G.next())F=F.value,F(B)};
PT.prototype.disposeInternal=function(){this.channel.close()};
var yWJ;var Ec,yYq,MCs;Ec={};_.N1L=(Ec.mainVideoEntity="mainVideoEntityActionMetadata",Ec.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Ec.musicTrack="musicTrackEntityActionMetadata",Ec.musicPlaylist="musicPlaylistEntityActionMetadata",Ec);yYq=new _.oV("DOWNLOADS_ENTITY_TYPE_MAP");_.yU=_.Z4("","downloadsPageViewConfigurationEntity");MCs=_.Z4("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.hos=_.Z4("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Z4("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Z4("SMART_DOWNLOADS_ENABLED","settingEntity");_.Z4("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var j5L=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var ejS=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var nGt={isLeaderTab:!0};var Dvg={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var hX=window,LJ=hX.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",$2g=hX.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||r8,ojS=hX.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Gf,HhG=hX.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||WRy,LRv=hX.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||pIv,VYl=hX.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||TeL;var e_S;OX({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 gjc=MhI(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(G){return G}}}),xcs=MhI(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(G){return G}}}),d2z=new Map;var s8U=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],fpg;var lFP=function(G){return _.d5({type:"SET_EPHEMERAL_ACTION",payload:G})};var U18={ephemeralAction:null};var qWN=Xh({ephemeralAction:function(G,B){G=G===void 0?U18.ephemeralAction:G;switch(B.type){case "SET_EPHEMERAL_ACTION":return B.payload;default:return G}}});var EGq=function(G){return _.d5({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:G})};var hLs={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var KkT={sharedUi:hLs,a11y:U18,entities:{}},j$l={sharedUi:function(G,B){G=G===void 0?hLs:G;switch(B.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},G,{animatedThumbnailEnabled:B.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},G,{inlinePreviewEnabled:B.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:B.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},G,{currentPageSubType:B.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},G,{persistentPanelVisible:B.payload});default:return G}},
a11y:qWN,entities:gRs};var FMS={playlistId:"",inviteLinkURL:""};var aFL={continuationCommand:{}};var qvI=Xh({continuationCommand:function(G,B){G=G===void 0?aFL.continuationCommand:G;switch(B.type){case "SET_CONTINUATION_COMMAND":return B.payload.continuationCommand;default:return G}}});var uOM={currentFormId:"",commandsMap:{}};var Eml=Xh({isLeaderTab:function(G,B){G=G===void 0?nGt.isLeaderTab:G;switch(B.type){case "SET_IS_LEADER_TAB":var F,D;return(D=B==null?void 0:(F=B.payload)==null?void 0:F.isLeaderTab)!=null?D:G;default:return G}}});var Xx7;_.m1N=function(G){return _.d5({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:G}})};
Xx7=function(G){return _.d5({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:G}})};var KM={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var Q$M=Xh({isDesktopSmallWidth:function(G,B){G=G===void 0?KM.isDesktopSmallWidth:G;switch(B.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return B.payload.isDesktopSmallWidth;default:return G}},
isShortsActive:function(G,B){G=G===void 0?KM.isShortsActive:G;switch(B.type){case "SET_IS_SHORTS_ACTIVE":return B.payload.isShortsActive;default:return G}},
isWatchWhileMode:function(G,B){G=G===void 0?KM.isWatchWhileMode:G;switch(B.type){case "SET_IS_WATCH_WHILE_MODE":return B.payload.isWatchWhileMode;default:return G}},
playerState:function(G,B){G=G===void 0?KM.playerState:G;switch(B.type){case "SET_PLAYER_STATE":return B.payload.playerState;default:return G}},
isFullscreen:function(G,B){G=G===void 0?KM.isFullscreen:G;switch(B.type){case "SET_IS_FULLSCREEN":return B.payload.isFullscreen;default:return G}},
isSmallScreenSqueezeback:function(G,B){G=G===void 0?KM.isSmallScreenSqueezeback:G;switch(B.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return B.payload.isSmallScreenSqueezeback;default:return G}},
isShortsPipActive:function(G,B){G=G===void 0?KM.isShortsPipActive:G;switch(B.type){case "SET_IS_SHORTS_PIP_ACTIVE":return B.payload.isShortsPipActive;default:return G}},
isPlaybackStarted:function(G,B){G=G===void 0?KM.isPlaybackStarted:G;switch(B.type){case "SET_IS_PLAYBACK_STARTED":return B.payload.isPlaybackStarted;default:return G}}});var wKo={currentMode:"canvas-hidden"};var r8Q=function(){return function(G){return function(B){var F=G(B);_.T1(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[B],!0);return F}}};var Qra,GWs;Qra=new _.tc;_.IQ=new _.oV("WATCH_PLAYER_PROMISE_TOKEN");_.jrv=new _.tc;_.Lkq=new _.oV("SHORTS_PLAYER_PROMISE_TOKEN");GWs=new _.oV("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var WM6=function(){return function(G){return function(B){B.type==="ENTITY_LOADED"&&_.te().resolve(_.IQ).then(function(F){var D;(D=F.dispatchReduxAction)==null||D.call(F,B)});
return G(B)}}};var rYw={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var hmg=Xh({additionalContext:function(G,B){G=G===void 0?rYw.additionalContext:G;switch(B.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var F;return(F=B.payload)!=null?F:"";default:return G}},
impersonatedChannelUrl:function(G,B){G=G===void 0?rYw.impersonatedChannelUrl:G;switch(B.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var F;return(F=B.payload)!=null?F:"";default:return G}},
selectedVideoIds:function(G,B){G=G===void 0?rYw.selectedVideoIds:G;switch(B.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var F={};return Object.assign({},G,(F[B.payload]=!0,F));case "VIDEO_UNSELECTED":return B=B.payload,G=Object.assign({},G),delete G[B],G;default:return G}}});var Wk7={parentClickTrackingParams:""};var KMS=Xh({parentClickTrackingParams:function(G,B){G=G===void 0?Wk7.parentClickTrackingParams:G;switch(B.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return B.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return G}}});var Hlq=function(G){return _.d5({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:G})},kKy=function(G){return _.d5({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:G})};var OlU={stepStates:{}};var adc=Xh({stepStates:function(G,B){G=G===void 0?OlU.stepStates:G;switch(B.type){case "TALK_TO_RECS_RESET_STEP_STATE":var F=B.payload,D=Object.assign({},G);delete D[F.stepId];return D;case "TALK_TO_RECS_UPDATE_SELECTION":var u=G,R=B.payload,N;G={};B={selectionStates:Object.assign({},(N=(F=u[R.stepId])==null?void 0:F.selectionStates)!=null?N:{},(G[R.token]={isSelected:R.isSelected},G)),userQuery:(D=u[R.stepId])==null?void 0:D.userQuery};F={};return Object.assign({},u,(F[R.stepId]=B,F));case "TALK_TO_RECS_UPDATE_USER_QUERY":return F=
G,D=B.payload,N={selectionStates:Object.assign({},(R=(u=F[D.stepId])==null?void 0:u.selectionStates)!=null?R:{}),userQuery:{userQuery:D.userQuery,token:D.userQueryToken}},u={},Object.assign({},F,(u[D.stepId]=N,u));default:return G}}});var eLa,$1q,bls;eLa=function(G){return _.d5({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:G})};
$1q=function(G){return _.d5({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:G})};
_.aC=function(G){return _.d5({type:"SET_CURRENT_PAGE_TYPE",payload:G})};
_.zLs=function(G){return _.d5({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:G})};
bls=function(G){return _.d5({type:"SET_CHIP_BAR_IS_STICKY",payload:G})};var Nkg={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"};_.ae=function(G){return _.d5({type:"SET_PLAYER_STATE",payload:{playerState:G}})};var mJ={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:nmz(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var mFU=Xh({isTheaterMode:function(G,B){G=G===void 0?nmz():G;switch(B.type){case "SET_IS_THEATER_MODE":return B.payload.isTheaterMode;default:return G}},
isWatchActive:function(G,B){G=G===void 0?mJ.isWatchActive:G;switch(B.type){case "SET_IS_WATCH_ACTIVE":return B.payload.isWatchActive;default:return G}},
isLearningJourneyActive:function(G,B){G=G===void 0?mJ.isLearningJourneyActive:G;switch(B.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return B.payload.isLearningJourneyActive;default:return G}},
isWatchFullscreen:function(G,B){G=G===void 0?mJ.isWatchFullscreen:G;switch(B.type){case "SET_IS_WATCH_FULLSCREEN":return B.payload.isWatchFullscreen;default:return G}},
isWatchNarrowWidth:function(G,B){G=G===void 0?mJ.isWatchNarrowWidth:G;switch(B.type){case "SET_IS_WATCH_NARROW_WIDTH":return B.payload.isWatchNarrowWidth;default:return G}},
isSwatcherooActive:function(G,B){G=G===void 0?mJ.isSwatcherooActive:G;switch(B.type){case "SET_IS_SWATCHEROO_ACTIVE":return B.payload.isSwatcherooActive;default:return G}},
isWatchRetroMode:function(G,B){G=G===void 0?mJ.isWatchRetroMode:G;switch(B.type){case "SET_IS_WATCH_RETRO_MODE":return B.payload.isWatchRetroMode;default:return G}},
isLiveChatCollapsed:function(G,B){G=G===void 0?mJ.isLiveChatCollapsed:G;switch(B.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return B.payload.isLiveChatCollapsed;default:return G}},
openEngagementPanels:function(G,B){G=G===void 0?mJ.openEngagementPanels:G;var F=[].concat(_.gi(G));switch(B.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return F.push(B.payload.panelToAdd),F;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return F.splice(F.indexOf(B.payload.panelToRemove),1),F;default:return G}},
playerState:function(G,B){G=G===void 0?mJ.playerState:G;switch(B.type){case "SET_PLAYER_STATE":return B.payload.playerState;default:return G}},
watchScrollTop:function(G,B){G=G===void 0?mJ.watchScrollTop:G;switch(B.type){case "SET_WATCH_SCROLL_TOP":return B.payload.watchScrollTop;default:return G}},
watchWindowSize:function(G,B){G=G===void 0?mJ.watchWindowSize:G;switch(B.type){case "SET_WATCH_WINDOW_SIZE":return B.payload.watchWindowSize;default:return G}}});var VKw={surveyFeedbackData:{feedbackTokens:[]}};var XKM=Xh({surveyFeedbackData:function(G,B){G=G===void 0?VKw.surveyFeedbackData:G;switch(B.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return B.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},G,B.payload);default:return G}}});var lds={};var kOL=void 0;_.X("web_enable_redux_store_on_demand")||(kOL=HUg());var vGN=function(G,B,F){var D=this;this.listId=G;this.JSC$13347_updateCallback=B;this.isOfflineVideoCallback=F;_.VU().subscribe(function(){D.handleUpdate()})};
vGN.prototype.getPlaylistData=function(){var G=_.VU().getState().entities;if(this.listId&&this.listId!=="PPSV"){var B=tCz(G,this.listId,!0),F=_.Z4(this.listId,"mainPlaylistEntity"),D,u;G=G==null?void 0:(D=G.mainPlaylistEntity)==null?void 0:(u=D[F])==null?void 0:u.title;return OUz(B,G,this.listId)}B=_.$Rg(jJ6(G));G=_.$Rg(_.nJ(G));G=B.concat(G);return OUz(G)};
vGN.prototype.getPlaylistId=function(){return this.listId};
vGN.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13347_updateCallback(this.listId,this.getPlaylistData(),{})};var X5=function(G,B,F,D){D=D===void 0?[]:D;this.JSC$13350_playlistNetworkManager=G;this.listId=B;this.JSC$13350_updateCallback=F;this.videoIds=D;this.pendingUpdates=[];this.currentIndex=0};
X5.prototype.JSC$13350_setCurrentIndex=function(G){this.currentIndex=G};
X5.prototype.setListId=function(G){this.listId=G};
var oGG=function(G,B){G.currentCreateRequest&&G.currentCreateRequest.cancel(B);G.currentUpdateRequest&&G.currentUpdateRequest.cancel(B);G.currentRefreshRequest&&G.currentRefreshRequest.cancel(B)};
X5.prototype.delete=function(){oGG(this,"PROXY DELETED")};
X5.prototype.addVideos=function(G,B,F){var D=this;F!==void 0?this.videoIds.splice.apply(this.videoIds,[F,0].concat(_.gi(G))):this.videoIds.push.apply(this.videoIds,_.gi(G));this.listId||this.currentCreateRequest?(G.forEach(function(u,R){u={addedVideoId:u,action:"ACTION_ADD_VIDEO"};F&&(u.addedVideoPosition=F+R);D.pendingUpdates.push(u)}),Qq(this)):MKP(this,B.onCreateListCommand)};
var px8=function(G,B,F,D,u){YSs(G.videoIds,B,F);B>G.currentIndex&&F<=G.currentIndex?G.JSC$13350_setCurrentIndex(G.currentIndex+1):B===G.currentIndex?G.JSC$13350_setCurrentIndex(F):B<G.currentIndex&&F>=G.currentIndex&&G.JSC$13350_setCurrentIndex(G.currentIndex-1);G.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:D,movedSetVideoIdPredecessor:u});Qq(G)},MKP=function(G,B){oGG(G,"OBSOLETE");
G.currentCreateRequest=YWq(G.JSC$13350_playlistNetworkManager,B,G.videoIds);_.at(G.currentCreateRequest,function(){G.currentCreateRequest=void 0}).then(function(F){G.setListId(F.playlistId);
G.pendingUpdates.length>0?Qq(G):AYy(G)})},Qq=function(G){if(G.pendingUpdates.length!==0&&(G.currentRefreshRequest&&G.currentRefreshRequest.cancel("OBSOLETE"),!G.currentUpdateRequest&&!G.currentCreateRequest)){var B=G.pendingUpdates.splice(0,G.pendingUpdates.length);
G.currentUpdateRequest=G.JSC$13350_playlistNetworkManager.updatePlaylist(G.listId,B);_.at(G.currentUpdateRequest,function(){G.currentUpdateRequest=void 0}).then(function(){G.pendingUpdates.length>0?Qq(G):AYy(G)}).thenCatch(function(){G.pendingUpdates.unshift.apply(G.pendingUpdates,_.gi(B))})}},AYy=function(G){G.currentRefreshRequest=_.d1v(G.JSC$13350_playlistNetworkManager,G.listId,G.currentIndex,G.videoIds[G.currentIndex]);
_.at(G.currentRefreshRequest,function(){G.currentRefreshRequest=void 0}).then(function(B){G.JSC$13350_updateCallback(B.playlistId,B.playlistPanelRenderer,B.autoplayRenderer)})};
X5.prototype.size=function(){return this.videoIds.length};var JYL=function(G,B,F,D){D=D===void 0?[]:D;X5.call(this,G,B,F,D);this.JSC$13350_playlistNetworkManager=G;this.listId=B;this.JSC$13350_updateCallback=F;this.videoIds=D};
_.r(JYL,X5);_.jj=function(G,B,F,D,u,R,N){u=u===void 0?[]:u;N=N===void 0?T2:N;X5.call(this,G,B,F,u);this.JSC$13350_playlistNetworkManager=G;this.listId=B;this.JSC$13350_updateCallback=F;this.onAuthChange=D;this.videoIds=u;this.storage=R;this.cookieReader=N;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Tm(_.Lu,this.checkLoggedInStatusChange.bind(this),1E3)};
_.r(_.jj,X5);_.w=_.jj.prototype;_.w.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Tm(_.Lu,this.checkLoggedInStatusChange.bind(this),1E3)};
_.w.JSC$13350_setCurrentIndex=function(G){X5.prototype.JSC$13350_setCurrentIndex.call(this,G);this.store()};
_.w.delete=function(){_.Lu.cancelJob(this.queueSapisIdJob);X5.prototype.delete.call(this)};
_.w.setListId=function(G){X5.prototype.setListId.call(this,G);this.store()};
_.w.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var cY8=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],T1s=["playerResponse","videoDetails"],IFG=["response","currentVideoEndpoint","watchEndpoint","videoId"],fF8=["response","currentVideoEndpoint","watchEndpoint","playlistId"],tKU=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],ZlT=["response","contents","twoColumnWatchNextResults","playlist","playlist"],gGw=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
SWa=["response","contents","twoColumnWatchNextResults"];var LM={},VqJ=(LM.WEB_UNPLUGGED="^unplugged/",LM.WEB_UNPLUGGED_ONBOARDING="^unplugged/",LM.WEB_UNPLUGGED_OPS="^unplugged/",LM.WEB_UNPLUGGED_PUBLIC="^unplugged/",LM.WEB_CREATOR="^creator/",LM.WEB_KIDS="^kids/",LM.WEB_EXPERIMENTS="^experiments/",LM.WEB_MUSIC="^music/",LM.WEB_REMIX="^music/",LM.WEB_MUSIC_EMBEDDED_PLAYER="^music/",LM.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",LM);var D58,YWq;D58=function(G,B){this.networkManager=G;this.innertubeTransportService=B};
YWq=function(G,B,F){if(!_.Q(B,_.j0))return _.U_(Error("Of"));_.Q(B,_.j0).videoIds=F;F={create_playlist_title:_.G7("QUEUE",void 0,"Queue")};return zmU(_.$F(G.innertubeTransportService,B,F),emg)};
_.d1v=function(G,B,F,D){B={videoId:D,playlistId:B,playlistIndex:F};F=_.v2(gpG);return zmU(_.rB(G.innertubeTransportService,B,F),bU8)};
D58.prototype.updatePlaylist=function(G,B){return zmU(_.$F(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:G,actions:B}}),$FM)};var srv=function(G){this.storage=G},x1N;
srv.prototype.store=function(G,B){B=B===void 0?0:B;if(this.storage&&G.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",G),this.storage.set("TLPQindex",String(B)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(F){}};
srv.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
srv.prototype.getPlaylistId=function(){if(!this.storage)return null;var G=null;try{G=this.storage.get("TLPQplaylist")}catch(B){}return G};var pKU=["navigationEndpoint","watchEndpoint","videoId"],MqJ=["nextButtonVideo","watchEndpoint","videoId"];_.un=new _.oV("NETWORK_TOKEN");_.pA=new _.oV("PAGE_TOKEN");_.Wv=new _.oV("PLAYLIST_TOKEN");var Pds;Pds=new _.oV("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.RF=new _.oV("INNERTUBE_TRANSPORT_TOKEN");var GCv,Hv,iOq,Fpa,u4L,Rea;GCv=new Set(["ci","cr","carml"]);Hv=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13397_parkedJobs=new Map;this.parkedProcessors=new Map};
_.kl=function(){Hv.instance||(Hv.instance=new Hv);return Hv.instance};
Hv.prototype.onAny=function(G){return _.Bv7(this,G,2)};
Hv.prototype.parkOrScheduleJob=function(G,B,F,D,u){_.Oc(this,F)?_.Kx().addJob(G,B,D):(u&&(G=iOq(G),Fpa(this,G,B,F,u)),u=this.JSC$13397_parkedJobs.get(F),u||(this.JSC$13397_parkedJobs.set(F,[]),u=this.JSC$13397_parkedJobs.get(F)),u.push({job:G,priority:B,delay:D}))};
Hv.prototype.addListener=function(G,B,F){F&&(B=iOq(B),Fpa(this,B,0,G,F));F=this.parkedProcessors.get(G);F||(this.parkedProcessors.set(G,[]),F=this.parkedProcessors.get(G));F.push(B)};
Hv.prototype.processSignal=function(G){if(!_.Oc(this,G)){this.inProgressSignals.add(G);var B=this.JSC$13397_parkedJobs.get(G);if(B){B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,_.Kx().addJob(F.job,F.priority,F.delay);this.JSC$13397_parkedJobs.delete(G)}if(B=this.parkedProcessors.get(G)){B=_.C(B);for(F=B.next();!F.done;F=B.next())F=F.value,F();this.parkedProcessors.delete(G)}this.signals.push(G);this.inProgressSignals.delete(G)}};
_.Oc=function(G,B){return GCv.has(B)||_.on("IS_HOMEPAGE_COLD")||_.on("IS_RESULTS_PAGE_COLD")||_.on("IS_WATCH_PAGE_COLD")?G.signals.indexOf(B)>=0:!0};
iOq=function(G){var B=!1;return function(){B||(B=!0,G())}};
Fpa=function(G,B,F,D,u){if(Dqq.has(D))_.Kx().addJob(B,F,u);else{var R=G.compoundSignals.get(D);R&&_.Kx().addJob(function(){_.Oc(G,D)||(R.isTimeoutConditionSatisfied?_.Kx().addJob(B,F):R.timeoutConditionObservers.push(function(){_.Kx().addJob(B,F)}))},F,u)}};
_.Bv7=function(G,B,F){if(B.length>1){var D=[],u=Object.create(null);B=_.C(B);for(var R=B.next();!R.done;R=B.next())R=R.value,u[R]||(D.push(R),u[R]=!0);B=D}if(B.length===1)return B[0];R=B;D="";u=F===2?"|":"&";R.sort();R=_.C(R);for(var N=R.next();!N.done;N=R.next())D+=N.value+u;if(!G.compoundSignals.get(D)){u=0;R=[];N=_.C(B);for(var y=N.next();!y.done;y=N.next())y=y.value,u++,_.Oc(G,y)||R.push(y);(F=F===2)&&u>R.length||!F&&!R.length?G.signals.push(D):u4L(G,D,F,B,R)}return D};
u4L=function(G,B,F,D,u){var R=u.length,N=function(){F||--R===0?G.processSignal(B):Rea(G,B)};
u=_.C(u);for(var y=u.next();!y.done;y=u.next())G.addListener(y.value,N);G.compoundSignals.set(B,{signals:D,isOnAny:F,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Rea(G,B)};
Rea=function(G,B){if(!_.Oc(G,B)){var F=G.compoundSignals.get(B);if(F&&!F.isTimeoutConditionSatisfied){for(var D=!1,u=0,R=0,N=_.C(F.signals),y=N.next();!y.done;y=N.next()){var U=y.value;y=!_.Oc(G,U);Dqq.has(U)?D=!0:(U=G.compoundSignals.get(U))?y&&!U.isTimeoutConditionSatisfied&&(R++,F.isInitialized||U.timeoutConditionObservers.push(function(){Rea(G,B)})):y&&u++}F.isInitialized=!0;
F.isOnAny?D&&(F.isTimeoutConditionSatisfied=!0):u===0&&R===0&&(F.isTimeoutConditionSatisfied=!0);if(F.isTimeoutConditionSatisfied)for(F=_.C(F.timeoutConditionObservers),D=F.next();!D.done;D=F.next())D=D.value,D()}}};
Hv.prototype.processSignal=Hv.prototype.processSignal;Hv.prototype.parkOrScheduleJob=Hv.prototype.parkOrScheduleJob;Hv.prototype.onAny=Hv.prototype.onAny;_.IY("ytsignals.getInstance",_.kl);Hv.prototype.onAny=Hv.prototype.onAny;Hv.prototype.parkOrScheduleJob=Hv.prototype.parkOrScheduleJob;Hv.prototype.processSignal=Hv.prototype.processSignal;var Dqq=new Set(["eop","eocs","dl","pcl"]);_.WP=new _.oV("MINIPLAYER_SERVICE");var ej,wCT,CtP;ej=function(G,B,F){var D=_.pZ.getInstance();if(!x1N){var u=new X2U;var R=void 0,N=_.v5("ID_TOKEN");N&&u.isAvailable()&&(R=new aY(u,"yt-queue"+N));x1N=new srv(R)}u=x1N;R=_.kl();this.JSC$13404_actionRouter=D;this.JSC$13404_pageManager=G;this.playlistManager=B;this.JSC$13404_playlistNetworkManager=F;this.storage=u;this.signals=R;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.$l=function(){if(!wCT){var G=_.te(),B=G.resolve(_.fH(_.pA)),F=G.resolve(_.fH(_.un)),D=G.resolve(_.fH(_.Wv));G=G.resolve(_.RF);wCT=new ej(B,D,new D58(F,G))}return wCT};
CtP=function(G,B,F){if(F){var D;if(((D=G.responsePlaylistData)==null?void 0:D.playlistId)!==F)return}G.responsePlaylistData&&(F=TkS(B,G.responsePlaylistData),G.responsePlaylistData=(0,_.UK.unsafeClone)(G.responsePlaylistData),fds(G.responsePlaylistData,F));F=G.temporaryItems.findIndex(function(u){return u.videoId===B});
F>-1&&G.temporaryItems.splice(F,1);_.zS(G,_.b_(G,G.response?G.response.autoplayRenderer:void 0))};
_.Nvq=function(G,B){if(G.responsePlaylistData){var F=IdM(B,G.responsePlaylistData);fds(G.responsePlaylistData,F);if(G.queueProxy){var D=G.queueProxy;F<0||(D.videoIds.splice(F,1),F<D.currentIndex&&D.JSC$13350_setCurrentIndex(D.currentIndex-1),D.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:B}),Qq(D))}}_.zS(G,_.b_(G,G.response?G.response.autoplayRenderer:void 0))};
ej.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.zS(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
ej.prototype.setPlaylistData=function(G,B,F){this.temporaryItems=[];this.listId=G;this.responsePlaylistData=B;_.zS(this,_.b_(this,F))};
var yvt=function(G){return(G==null?0:G.playlistId)?G.playlistId:"PPSV"},nBq=function(G){return G&&G.playlistId?G.playlistId==="PPSV"?!0:I7M(_.VU().getState().entities,G.playlistId):!1};
ej.prototype.isPlayingOfflineVideo=function(){return this.response?nBq(this.response):!1};
ej.prototype.closeMiniplayer=function(G){var B=this.queueProxy&&this.queueProxy.size()<=1,F=_.te().resolve(_.WP);if(!this.queueProxy||B)this.queueProxy&&this.clearQueue(),F.close(!0);else{F.pipController.getWindow()&&window.focus();B=this.responsePlaylistData;var D=this.temporaryItems.length+(B&&B.contents?B.contents.length:0);B=_.G7("QUEUE_CLEARED_UNPLURALIZED")||_.BT("QUEUE_CLEARED",D);B=_.MD(B);F=_.G7("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");D=_.G7("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.BT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",D);var u=_.G7("MINIPLAYER_CLOSE",void 0,"Close"),R=_.G7("CANCEL",void 0,"Cancel");_.hs(this.JSC$13404_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.$9(F),dialogMessages:[_.$9(D)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.$9(u),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
B]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.$9(R)}}}}}}],G)}};
_.b_=function(G,B){var F={},D=G.response;F.autoplayRenderer=B;if(!G.responsePlaylistData&&!G.temporaryItems.length)return!D||!D.hasRelatedVideoData&&_.X("kevlar_prefetch_data_augments_network_data")||(F.playerData={rvs:D.relatedVideoArgs,endScreenRenderer:D.endScreenRenderer}),F;F.playerData={};if(G.index===void 0)return _.k2(Error("Qf")),F;F.panel=G.responsePlaylistData?(0,_.UK.unsafeClone)(G.responsePlaylistData):{titleText:_.$9(_.G7("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
B=F.panel;if(B.contents)for(var u=_.C(G.temporaryItems),R=u.next();!R.done;R=u.next())B.contents.push({playlistPanelVideoRenderer:R.value});G.queueProxy&&D&&D.playingVideo&&D.playingVideoId&&!c8g(D.playingVideoId,F.panel)&&(B=D.playingVideo,u=F.panel,R=G.index,u.contents&&u.contents.splice(R===void 0?0:R,0,{playlistPanelVideoRenderer:B}));D&&D.playingVideoId&&(B=G.index,u=F.panel,B=!u.contents||B>=u.contents.length?void 0:u.contents[B].playlistPanelVideoRenderer,B&&B.videoId===D.playingVideoId||(B=
TkS(D.playingVideoId,F.panel),G.index=B!==-1?B:G.index?G.index-1:0));B=J8o(G.index+1,F.panel);u=void 0;G.index>0&&(u=J8o(G.index-1,F.panel));if(u||B)F.autoplayRenderer=YvQ(B,u,F.autoplayRenderer);!B&&(D==null?0:D.relatedVideoArgs)&&(F.playerData.rvs=D.relatedVideoArgs);D=D?D.playlistIndexOffset:0;G.queueProxy?gmM(F.panel,G.index,D,dFo,!0,!0,!0):gmM(F.panel,G.index,D);F.playerData.playlistPanelRenderer=F.panel;return F};
ej.prototype.isMiniplayerActive=function(){return _.te().resolve(_.WP).isMiniplayerActive()};
_.zS=function(G,B){G.playlistManager.setAutoplayRenderer(B.autoplayRenderer||null);G.playlistManager.setPlaylistData(B.panel||null);B.playerData&&G.playlistManager.setPlayerPlaybackControlData(B.playerData)};var Sv6="#";var lPq={},UqT={},qP8={},EBq={},heq={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:(lPq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",lPq),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:(UqT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",UqT),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:(qP8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",qP8),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:(EBq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",EBq),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 bFo=[{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:heq},{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:heq}}];var jAg;_.fJ=[[["c2VvM3c3a2luZCNxMDM2M3Y=","NzNiN3ZhbHVlI2tkOWZuN29z"],"djF4M0FEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzJkYjd2cnBs"]];
jAg=[[["cHJpbWFyeSNlNW1mb2VvNmlrazk=",null,null],[null,["dW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzJuMm8yNW16M3V3NXl0ZC10d28tY29s","b3BlIzFhZHU3ZHhlaDM2cHN0eWxlLXNj"],null],["LWFkIzY1dWszbjlrMWttZG1hc3RoZWFk",["M2hhNHV5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzMxdHh3cnY="],null],[null,["YTF0YW95dGQtcmljaC1ncmlkLXJlbmRlcmVyIzFuazY3Y2M=","b3BlIzNxODBkYngwc3JraHN0eWxlLXNj"],null],[null,["dHR5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzJqNTJzd2ZtN2M=","b3BlIzIxaWhvYWZ0aW1ubHN0eWxlLXNj"],null],[null,["b2E3eTlvcXl0ZC1hZC1zbG90LXJlbmRlcmVyI2pxYjN2"],
null]],[["LWFkcyN2M3gzNmxwbGd0azFwbGF5ZXI=",null,null]]];_.I9=["ZGVxb3ptZ3l3ZmZoZ2xvYmFsQ2FsbGJhY2tzIw==","OG5yYXlmMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMxbXM5","QWRTa2lwIzNzeGVzbXU3czJ5dG9u","dXZsYzFkdmpyYXdfcGxheWVyX3Jlc3BvbnNlI2JtcTM=","YWRTbG90cyM0MWdqc3gzcnAzdG4="];_.Vq="ZGVxb3ptZ3l3ZmZoZ2xvYmFsQ2FsbGJhY2tzIw== OG5yYXlmMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMxbXM5 QWRTa2lwIzNzeGVzbXU3czJ5dG9u dXZsYzFkdmpyYXdfcGxheWVyX3Jlc3BvbnNlI2JtcTM= aXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2xiYmtxdHk3M3k1OHdlYl9wbGF5bA== X3NhX2VmIzg5b3lwdXhpeDJzMmFi YWRTbG90cyM0MWdqc3gzcnAzdG4=".split(" ");var vv;vv=function(G,B,F){this.roS=G;this.lKP=B;this.x87=F};
_.Irs=[new vv("b.f_",!1,0),new vv("j.s_",!1,2),new vv("r.s_",!1,4),new vv("e.h_",!1,6),new vv("i.s_",!0,8),new vv("s.t_",!1,10),new vv("p.h_",!1,12),new vv("s.i_",!1,14),new vv("f.i_",!1,16),new vv("a.b_",!1,18),new vv("a.o_",!1),new vv("g.o_",!1,22),new vv("p.i_",!1,24),new vv("p.m_",!1),new vv("n.k_",!0,20),new vv("i.f_",!1),new vv("a.s_",!0),new vv("m.c_",!1),new vv("n.h_",!1,26),new vv("o.p_",!1),new vv("m.p_",!0,28),new vv("o.a_",!1),new vv("d.p_",!1),new vv("e.i_",!1)].reduce(function(G,B){G[B.roS]=
B;return G},{});var KpT=function(){};
KpT.prototype.flush=function(G,B){G=G===void 0?[]:G;B=B===void 0?!1:B;if(_.X("enable_client_streamz_web")){G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=Q7v(F.value),this.rootSpec&&_.ba(F,2,this.rootSpec),F={serializedIncrementBatch:_.xM(F.JSC$9917_serializeBinary())},_.W$("streamzIncremented",F,{sendIsolatedPayload:B})}};
var B_I=function(){};
_.r(B_I,KpT);var aPT=function(G){var B=new q4w;var F=new n0y;F=_.wq(F,1,"botguard");G=_.wq(F,2,G);this.rootSpec=_.VC(B,1,E0a,G)};
_.r(aPT,KpT);var Jc,mqv=new Map;var HF6,F3s,lrM,Rk6,N_z,Xag,OFI,arl;HF6=2;F3s=2;lrM=2;Rk6=2;N_z=2;Xag=2;OFI=2;arl=new qO8;var Qjs,jjy;Qjs=function(){this.ongoingFlowNonces=new Map};
_.g8=function(){jjy||(jjy=new Qjs);return jjy};
_.ZV=function(G,B,F){return{eventType:{flowEventNamespace:G,flowEventType:B},metadata:F,statusCode:void 0,csn:void 0,can:void 0}};
_.tP8=function(G,B){var F=_.g8(),D=LpP(F,B,!0);F.logFlowEvent(G,B,D,void 0)};
Qjs.prototype.logFlowEvent=function(G,B,F,D){B={flowNonce:F||LpP(this,B),flowType:B,flowEventType:G.eventType};G.metadata&&(B.flowMetadata=G.metadata);G.statusCode!==void 0&&(B.flowEventStatus=G.statusCode);G.csn&&(B.csn=G.csn);G.can&&(B.can=G.can);_.W$("flowEvent",B,D)};
var LpP=function(G,B,F){F=F===void 0?!1:F;var D=G.ongoingFlowNonces.get(B);if(!D||F)D=ni(16),G.ongoingFlowNonces.set(B,D);return D};_.rva=new Uzy;var xog={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var oe=function(G,B,F,D,u,R,N){F=F===void 0?!1:F;D=D===void 0?!1:D;R=R===void 0?_.$l():R;this.gM=!1;this.lSX=G;this.uJr=B;this.xZS=F;this.fromHistory=D;this.previousVideoId=u;this.qkP=R;this.tempData=N;this.l8J=new _.ErT};
_.r(oe,pV);oe.prototype.validate=function(G){return!(!G.data.playerResponse||G.data.page!=="watch"&&G.data.page!=="learning_journey_watch"&&G.data.page!=="shorts"||this.gM)};
oe.prototype.handle=function(G){var B=this,F=_.Q(G.endpoint,_.Ow),D=_.Q(G.endpoint,_.Fu);if(_.X("kevlar_continue_playback_without_player_response")&&(F==null?0:F.videoId)&&this.previousVideoId&&(F==null?void 0:F.videoId)===this.previousVideoId&&(F==null?0:F.continuePlayback)&&!this.fromHistory)this.lSX.resolve();else{var u={};F?u.watch_endpoint=F:D&&(u.watch_endpoint=D,D.endTimeSeconds&&(u.end=D.endTimeSeconds));G.data.page==="watch"?(G.data.filler||this.xZS||(_.ag("cfg"),_.pZ.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(u,Wpy(this,G.endpoint)),_.X("enable_masthead_quartile_ping_fix")&&Object.assign(u,HOw(this)),Object.assign(u,void 0),G.data.forceExternalPlaylist&&(u.external_list=!0)):G.data.page==="shorts"?_.pZ.getInstance().triggerAction("yt-start-loading-shorts"):G.data.page==="learning_journey_watch"&&_.pZ.getInstance().triggerAction("yt-start-loading-learning-journey");if(F=this.uJr()){try{F.loadVideoWithPlayerResponse(G.data.playerResponse,u),F.getPlayerPromise().then(this.lSX.resolve)}catch(R){_.k2(R),
this.lSX.resolve()}this.gM=!0;F.getPlayerPromise().then(function(R){R.addEventListener("onAbnormalityDetected",function(){var N=G.data.playerResponse,y=R.getVideoData().cpn;OFI=0;_.XCt=y;if(y=T_I(N))B.l8J.increment("IN_PLAYER"),_.Sw(5),_.X("ab_st_vid_ks")?R.pauseVideo(!0):R.stopVideo(),N.playabilityStatus=Object.assign({},N.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:y}}),N.videoDetails=void 0,_.pZ.getInstance().triggerOptionalAction("yt-updated-playability-status",
N.playabilityStatus)})})}else _.em(Error("Tf"))}};
var Wpy=function(G,B){var F=_.Q(B,_.Ow);if(B&&F&&F.playlistId&&F.videoId&&(G=G.qkP,G.queueProxy?(G=G.queueProxy,F=G.listId===F.playlistId?G.attributionData.get(F.videoId):void 0):F=void 0,F))return{queue_info:F}},HOw=function(G){var B;
if((B=G.tempData)==null?0:B.adpings)return{adpings:G.tempData.adpings}};var My=function(G,B,F){this.gM=!1;this.sD7=G;this.eIa=B;this.cIS=F};
_.r(My,pV);My.prototype.validate=function(G){return!!_.UK.getValueByKeys.apply(null,[G.data].concat(_.gi(SWa)))};
My.prototype.handle=function(G){var B=this;this.sD7.promise.then(function(){var F=G.data;var D=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(cY8))),u=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(ZlT))),R=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(IFG)));var N=(N=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(T1s))))?{videoId:N.videoId,thumbnail:N.thumbnail,title:N.title?_.$9(N.title):void 0,shortBylineText:N.author?_.$9(N.author):void 0}:void 0;var y=void 0;_.X("web_get_playlist_id_from_current_endpoint_ks")||
(y=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(fF8))));var U=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(gGw))),q=_.UK.getValueByKeys.apply(null,[F].concat(_.gi(tKU))),h=!!U||!!q&&!!q.results&&q.results.length>0,K=0;u&&u.currentIndex&&u.localCurrentIndex&&(K=u.currentIndex-u.localCurrentIndex);u&&u.playlistId&&(y=u.playlistId);F={rawResponse:F,autoplayRenderer:D,hasRelatedVideoData:h,playingVideo:N,playingVideoId:R,playlistPanelRenderer:u,playlistId:y,playlistIndex:u&&u.currentIndex,relatedVideoArgs:U,
endScreenRenderer:q,playlistIndexOffset:K};a:{D=B.cIS;u=B.eIa;D.response=F;if(nBq(F))D.downloadPlaylistProxy&&D.downloadPlaylistProxy.getPlaylistId()===yvt(F)||(D.downloadPlaylistProxy=new vGN(yvt(F),D.setPlaylistData.bind(D),D.isPlayingOfflineVideo.bind(D))),D.responsePlaylistData=D.downloadPlaylistProxy.getPlaylistData(),D.listId=yvt(F),D.index=0;else if(F.playlistPanelRenderer&&F.playlistId&&F.autoplayRenderer)F.playlistId.startsWith("TLPQ")?D.queueProxy?D.listId===F.playlistId?(D.index=F.playlistIndex,
D.responsePlaylistData=F.playlistPanelRenderer,D.queueProxy.JSC$13350_setCurrentIndex(D.index)):F.playingVideoId&&D.index!==void 0&&u.clientParams.autoSaveToQueue&&(D.index+=1,D.queueProxy.JSC$13350_setCurrentIndex(D.index),D.queueProxy.addVideos([F.playingVideoId],{},D.index)):(D.queueProxy=new _.jj(D.JSC$13404_playlistNetworkManager,F.playlistId,D.setPlaylistData.bind(D),D.clearQueue.bind(D),_.tqQ(F.playlistPanelRenderer),D.storage),D.responsePlaylistData=F.playlistPanelRenderer,D.listId=F.playlistId,
D.index=F.playlistIndex):(D.index=F.playlistIndex,D.listId!==F.playlistId&&D.clearQueue(),D.responsePlaylistData=F.playlistPanelRenderer,D.listId=F.playlistId,D.playlistProxy=new JYL(D.JSC$13404_playlistNetworkManager,F.playlistId,D.setPlaylistData.bind(D),_.tqQ(F.playlistPanelRenderer)));else if(!D.queueProxy)D.responsePlaylistData=void 0;else if(F.playingVideoId&&u.clientParams.autoSaveToQueue){if(D.index===void 0){_.k2(Error("Pf"));D.clearQueue();break a}D.queueProxy.videoIds.includes(F.playingVideoId)||
(D.index+=1,D.queueProxy.JSC$13350_setCurrentIndex(D.index),D.queueProxy.addVideos([F.playingVideoId],{},D.index))}_.zS(D,_.b_(D,D.response.autoplayRenderer))}})};var kCy=function(G,B){B=B===void 0?_.$l():B;PR.call(this);this.bA.push(new My(this.n5,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},B));this.bA.push(new oe(this.n5,G,!1,!1));_.X("web_response_commands_chunk_processor")&&this.bA.push(new GS)};
_.r(kCy,PR);kCy.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.n5.resolve();PR.prototype.processChunk.call(this,G)};var pM=function(G,B){G=G===void 0?{layer:0}:G;this.gM=!1;this.createScreenConfig=G;this.soU=B;this.createScreenConfig.automatedLogEventSource=9};
_.r(pM,pV);pM.prototype.validate=function(G){return!(this.gM||!G.endpoint)};
pM.prototype.handle=function(G){var B=_.Rh(),F,D,u=(D=_.Q((F=G.endpoint)==null?void 0:F.commandMetadata,_.xy))==null?void 0:D.rootVe;this.soU&&u?_.t9(B,u,this.soU,this.createScreenConfig):hHt(B,G.endpoint,this.createScreenConfig);this.gM=!0};var Yl=function(G,B){this.gM=!1;this.f8A=G;this.previousVideoId=B};
_.r(Yl,pV);Yl.prototype.validate=function(G){return _.X("kevlar_continue_playback_without_player_response")&&(G=_.Q(G.endpoint,_.Ow),(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback))?!1:this.f8A.mte===0};
Yl.prototype.handle=function(G){_.pZ.getInstance().triggerAction("yt-stop-old-player",G.data,!0)};var OO7=function(G){G=G===void 0?{layer:0}:G;PR.call(this);this.bA.push(new Yl(this));this.bA.push(new pM(G));this.bA.push(new xZ(G))};
_.r(OO7,PR);var AX=function(){pV.apply(this,arguments)};
_.r(AX,pV);AX.prototype.validate=function(G){return!!G.data.preconnect};
AX.prototype.handle=function(G){_.KR("bc");G=_.C(G.data.preconnect);for(var B=G.next();!B.done;B=G.next())B=B.value,(new Image).src=B};var eeq=function(G,B,F,D,u,R,N){F=F===void 0?{layer:0}:F;R=R===void 0?_.$l():R;PR.call(this);if(D)if(u){u=R;this.bA.push(new My(this.n5,B,u));this.bA.push(new AX);var y,U;this.bA.push(new oe(this.n5,G,!1,!((y=B.clientParams)==null||!y.fromHistory),(U=B.clientParams)==null?void 0:U.previousVideoId,u,B.tempData));var q;this.bA.push(new Yl(this,(q=B.clientParams)==null?void 0:q.previousVideoId));var h;(h=B.clientParams)!=null&&h.fromHistory||(F.layer||(F=Object.assign({},F,{layer:0})),this.bA.push(new pM(F,
N)),this.bA.push(new xZ(F)))}else this.bA.push(new My(this.n5,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},R)),this.bA.push(new oe(this.n5,G,!1,!1));else this.bA.push(new Yl(this)),this.bA.push(new pM(F)),this.bA.push(new xZ(F));_.X("web_response_commands_chunk_processor")&&D&&this.bA.push(new GS)};
_.r(eeq,PR);eeq.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.n5.resolve();PR.prototype.processChunk.call(this,G)};var $qN=function(){this.gM=this.gM=!1};
_.r($qN,pV);$qN.prototype.validate=function(G){return!this.gM&&!(!G.data.csn||!G.data.rootVe)};
$qN.prototype.handle=function(G){this.gM=!0;_.hL(G.data.csn,G.data.rootVe,3)};var zey=function(G,B,F){F=F===void 0?{layer:0}:F;PR.call(this);this.bA.push(new oe(this.n5,G));this.bA.push(new pM(F));this.bA.push(new xZ(F))};
_.r(zey,PR);var bOq=function(G,B,F,D,u){F=F===void 0?{layer:0}:F;D=D===void 0?_.$l():D;PR.call(this);var R=!!B&&!!B.clientParams&&!!B.clientParams.miniplayer;R&&this.bA.push(new $qN);this.bA.push(new My(this.n5,B,D));this.bA.push(new AX);var N,y;this.bA.push(new oe(this.n5,G,R,!((N=B.clientParams)==null||!N.fromHistory),(y=B.clientParams)==null?void 0:y.previousVideoId,D,B.tempData));var U;this.bA.push(new Yl(this,(U=B.clientParams)==null?void 0:U.previousVideoId));var q;(q=B.clientParams)!=null&&q.fromHistory||
(F.layer||(F=Object.assign({},F,{layer:R?3:0})),this.bA.push(new pM(F,u)),this.bA.push(new xZ(F)));_.X("web_response_commands_chunk_processor")&&this.bA.push(new GS)};
_.r(bOq,PR);var dB,oBw;dB={};
_.Vcq=(dB["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dB["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dB["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dB["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dB["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dB["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dB["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dB);_.JX=new _.e6("yt-edu");_.vBv=function(){this.JSC$13502_eduDisplayedThisLoad_={}};
oBw=function(G){var B=_.vBv.getInstance();var F=_.sD("kevlar_tooltip_impression_cap");B=F&&parseInt(_.JX.get(G+"-impression")||0,10)>=F||_.JX.get(G+"-dismissed")?!1:(F=_.Vcq[G])&&!B.JSC$13502_eduDisplayedThisLoad_[F.setKey||G]&&(F.titleText&&_.G7(F.titleText)||F.bodyText&&_.G7(F.bodyText))?!0:!1;if(!B)return null;B=_.Vcq[G];if(!B)return null;F=B.bodyText?_.G7(B.bodyText):void 0;var D=B.titleText?_.G7(B.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:B.position,popup:{bubbleHintRenderer:{text:D?
_.$9(D):void 0,detailsText:F?_.$9(F):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.$9(_.G7("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:G}}]}}}}}}}},{eduImpressionAction:{key:G}}]};
_.cP(_.vBv);var ZFQ=!1;for(var Mcq="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),pCL=[],cv=6;cv>=1;cv--)pCL.push({columnCount:cv,query:cv==1?0:cv*2*107-4+32,className:"grid-"+cv+"-columns",width:cv*2*107+"px"});_.TS=function(G){this.actionRouter_=G=G===void 0?_.pZ.getInstance():G;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.YPU(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.YPU=function(G){var B=G.documentWidth_-(G.miniGuideVisible_?72:0)-(G.guidePersistentAndVisible_?240:0)-(G.persistentPanelVisible_?400:0);return pCL.find(function(F){return B>F.query})};
_.cP(_.TS);var AvP=function(){var G=this;this.JSC$13514_keyboardInUse=!1;document.addEventListener("keydown",function(){G.onKeydown()});
document.addEventListener("mousedown",function(){G.JSC$13514_keyboardInUse=!1})},dq7;
AvP.prototype.isKeyBoardInUse=function(){return this.JSC$13514_keyboardInUse};
AvP.prototype.onKeydown=function(){this.JSC$13514_keyboardInUse=!0};var Jvs,tX;_.Ie=new _.e6("yt-mentions");_.fM=function(){};
Jvs=function(G,B){return tX(B,"drag-to-reorder-edu-displayed")};
tX=function(G,B,F,D,u,R){F=F===void 0?"OPEN_POPUP_POSITION_TOP":F;if(B){if(_.Ie.get(B))return;_.Ie.set(B,!0,D)}if(u&&R!==void 0){B=Number(_.Ie.get(u)||0);if(B>=R)return;_.Ie.set(u,B+1)}return[{openPopupAction:{popupType:"HINT",position:F,popup:{bubbleHintRenderer:{detailsText:G,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.cP(_.fM);var cva,Tvy,IPv;cva=function(G,B,F,D){this.JSC$13524_taskManager_=G;this.onFulfilled_=typeof B==="function"?B:null;this.onRejected_=typeof F==="function"?F:null;this.JSC$13524_context_=D};
Tvy=function(G,B){G.onFulfilled_&&_.yH(G.JSC$13524_taskManager_,function(){G.onFulfilled_.call(G.JSC$13524_context_,B)})};
IPv=function(G,B){G.onRejected_&&_.yH(G.JSC$13524_taskManager_,function(){G.onRejected_.call(G.JSC$13524_context_,B)})};
_.Zh=function(G){this.JSC$13527_taskManager_=G;this.callbacks_=[]};
_.Zh.prototype.then=function(G,B,F){this.callbacks_.push(new cva(this.JSC$13527_taskManager_,G,B,F));return this};
_.Zh.prototype.onSuccess=function(G){this.callbacks_.forEach(function(B){Tvy(B,G)})};
_.Zh.prototype.onFailure=function(G){this.callbacks_.forEach(function(B){IPv(B,G)})};
_.Zh.prototype.cancel=function(){this.callbacks_.length=0};
Qna(_.Zh);_.GQs=null;_.uN=new _.oV("ACTIVITY_TOKEN");var fPU;_.E$=new _.oV("PAGE_REQUEST_TOKEN");fPU=new _.oV("FETCH_PBJ_TOKEN");_.tcT=function(G){if(G.validatedFragments_.length==0)return null;if(!G.mergedPrefetchedData_){for(var B=[],F=_.C(G.validatedFragments_),D=F.next();!D.done;D=F.next()){D=_.C(G.fragmentConfiguration_[D.value].graftedKeys);for(var u=D.next();!u.done;u=D.next())(u=G.prefetchedData_[u.value].trackingParams)&&B.push(u)}G.mergedPrefetchedData_={};Object.assign(G.mergedPrefetchedData_,G.prefetchedData_,{clientSideGrafts:B})}return G.mergedPrefetchedData_};var ZOq;_.gB=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ZOq=function(G,B,F){if(_.BEs(B))return G.prefetchCache_.get(_.iDg(B,F))};_.Sj=new _.oV("NAVIGATION_TOKEN");var gBw=function(G){var B=this;var F=F===void 0?uNs():F;var D=D===void 0?_.te().resolve(_.Sj):D;this.onePickCommand=G;this.JSC$13599_playlistNetworkManager=F;this.navigationManager=D;this.videoPickerBuilder=_.F4s("yt-addtoplaylist");_.MWG(KVP(aLt(h7v(this.videoPickerBuilder.setTitle(G.modalTitle).setSize(1E3).addView(btt()).addView(zfT())).addView("youtube"),G.selectButtonLabel)),function(u){B.handleAction(u)})};
gBw.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
gBw.prototype.handleAction=function(G){var B=this;if(G&&this.onePickCommand.listId&&G.action==="picked"&&G.docs){var F=[];G.docs.forEach(function(D){F.push({addedVideoId:D.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13599_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,F).then(function(){_.X("playlist_add_video_hard_reload_killswitch")?B.navigationManager.reload():SPU(B.navigationManager)})}};var sjt=function(){if(this.constructor===sjt)throw new TypeError("Vf");};
_.w=sjt.prototype;_.w.dispose=function(){};
_.w.disconnect=function(){};
_.w.reconnect=function(){};
_.w.observe=function(G,B,F){return{element:G,option:F}};
_.w.unobserveByKey=function(){};var RhJ=function(G,B){B=B===void 0?0:B;sjt.call(this);this.viewroot=G;this.defaultPrescanHeight=B;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),G?{root:G,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.r(RhJ,sjt);_.w=RhJ.prototype;_.w.dispose=function(){this.disconnect();this.handlers.clear()};
_.w.disconnect=function(G){this.isConnected=!1;this.pauseObservingUntilReconnect=G===void 0?!1:G;this.observer.disconnect();G=_.C(this.prescanObservers.values());for(var B=G.next();!B.done;B=G.next())B.value.disconnect()};
_.w.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var G=_.C(this.handlers),B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;var D=F.next().value;F=!1;D=_.C(D.keys());for(var u=D.next();!u.done;u=D.next())if((u=u.value)&&u.state==="prescan"){F=!0;break}F&&xqT(this,B).observe(B);this.observer.observe(B)}}};
_.w.handleObserveEvent=function(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next()){B=B.value;var F=this.handlers.get(B.target);if(F){var D=B.isIntersecting;F=_.C(F);for(var u=F.next();!u.done;u=F.next()){var R=_.C(u.value);u=R.next().value;R=R.next().value;u&&(u.state==="visible"&&D||u.state==="hidden"&&!D)&&(R(B.target,u.state),u.calledOnce&&this.unobserveByKey({element:B.target,option:u}))}}}};
_.w.handlePrescanEvent=function(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next()){B=B.value;var F=this.handlers.get(B.target);if(F&&B.isIntersecting){F=_.C(F);for(var D=F.next();!D.done;D=F.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;D&&D.state==="prescan"&&(u(B.target,D.state),D.calledOnce&&this.unobserveByKey({element:B.target,option:D}))}}}};
_.w.observe=function(G,B,F){var D=(D=this.handlers.get(G))&&D.has(F)?{element:G,option:F}:void 0;if(D)return D;D={element:G,option:F};this.handlers.has(G)||this.handlers.set(G,new Map);var u=this.handlers.get(G);u&&!u.has(F)&&u.set(F,B);this.pauseObservingUntilReconnect||(F.state==="prescan"&&xqT(this,G).observe(G),this.observer.observe(G));return D};
_.w.unobserveByKey=function(G){var B=this.handlers.get(G.element);if(B&&B.has(G.option)){B.delete(G.option);if(G&&G.option.state==="prescan")for(var F=_.C(this.prescanObservers.values()),D=F.next();!D.done;D=F.next())D.value.unobserve(G.element);B.size===0&&(this.handlers.delete(G.element),this.observer.unobserve(G.element))}};
var xqT=function(G,B){var F=G.defaultPrescanHeight;B.hasAttribute("prescan-height")&&(B=Number(B.getAttribute("prescan-height")),isNaN(B)||(F=B));if(G.prescanObservers.has(F))return G.prescanObservers.get(F);B="-0.1px -0.1px "+F+"px -0.1px";B=new IntersectionObserver(G.handlePrescanEvent.bind(G),G.viewroot?{root:G.viewroot,rootMargin:B}:{rootMargin:B});G.prescanObservers.set(F,B);return B};var Ptt=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Gza=function(){var G,B=this;this.JSC$13616_actionRouter=G=G===void 0?_.pZ.getInstance():G;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return B.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return B.visibilityObservedElementHandlerKeys}}},BQG,sc,Diy;
Gza.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.X("kevlar_use_vimio_behavior")&&_.v5("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=wh8())};
Gza.prototype.dispose=function(){this.visibilityMonitor&&_.qX(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Gza.prototype.handleVisibilityRefreshed=function(){for(var G=_.C(this.targetMap.entries()),B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;F=F.next().value;_.i2a(this,B,F)}};
_.xl=function(G,B,F){sc(G,F);var D=_.FuU(G,B);D.element=F;G.targetedElements.set(F,B);_.i2a(G,B,D)};
sc=function(G,B){var F=G.targetedElements.get(B);if(F){var D=G.targetMap.get(F);D&&(delete D.element,G.targetMap.set(F,D));G.targetedElements.delete(B);G.visibilityObserver&&G.visibilityObservedElementHandlerKeys&&(F=G.visibilityObservedElementHandlerKeys.get(B))&&(G.visibilityObserver.unobserveByKey(F),G.visibilityObservedElementHandlerKeys.delete(B))}};
_.i2a=function(G,B,F){var D=F.action,u=F.element;u&&D&&(Ptt.includes(B)||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||G.visibilityMonitor&&G.visibilityMonitor.isNodeVisible(u)?Diy(G,B,F):G.visibilityObserver&&(G.visibilityObservedElementHandlerKeys||(G.visibilityObservedElementHandlerKeys=new WeakMap),D=G.visibilityObserver.observe(u,function(){Diy(G,B,F);G.visibilityObservedElementHandlerKeys.delete(u)},{calledOnce:!0,
state:"visible"}),G.visibilityObservedElementHandlerKeys.set(u,D)))};
Diy=function(G,B,F){var D=F.action;(F=F.element)&&D&&(_.hs(G.JSC$13616_actionRouter,[D],F),G.targetMap.delete(B),G.targetedElements.delete(F),G.triggeredTargets.add(B))};
_.FuU=function(G,B){var F=G.targetMap.get(B);F||(F={},G.targetMap.set(B,F));return F};
_.Pv=function(){BQG||(BQG=new Gza);return BQG};var uFv=document.createElement("div");uFv.style.touchAction="pan-down";var CDU=uFv.style.touchAction==="pan-down";var RgN,wBy;RgN=function(){this.hammerFn=ixw();this.JSC$13624_screenManager=_.Rh();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.ge(83615);_.gr(this.JSC$13624_screenManager,this.ve);NEU()};
_.GT=function(){wBy||(wBy=new RgN);return wBy};
RgN.prototype.registerTouchEvents=function(G,B,F){var D=_.xS.apply(3,arguments),u=this.hammerFn(G,{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}]]});F&&u.set({touchAction:F});this.nodeManagerMapping.set(G,u);var R=
yN8(B);D=_.C(D);for(var N=D.next();!N.done;N=D.next()){N=N.value;if(N.includes("swipe")||N.includes("pinch")||N.includes("pan"))N.includes("swipe")?u.get("swipe").set({enable:!0,direction:R,velocity:.2}):N.includes("pinch")?u.get("pinch").set({enable:!0}):N.includes("pan")&&(u.get("pan").set({enable:!0,direction:R}),u.get("swipe").set({enable:!0,direction:R,velocity:.2}),u.get("swipe").recognizeWith("pan"));Cg7(this,G,u,N)}};
var Cg7=function(G,B,F,D){F.on(D,function(u){if(D.includes("pinch"))G.lastPinchTime=Date.now();else if(D.includes("swipe")&&Date.now()-G.lastPinchTime<400)return;u.pointerType!=="mouse"&&(u=D==="doubletap"?{coordinates:u.center}:D.includes("pan")?u:D.includes("swipe")?{target:u.target}:{},B.dispatchEvent(new CustomEvent(D,{bubbles:!0,composed:!0,detail:u})))})};
RgN.prototype.unregisterTouchEvents=function(G){var B=_.xS.apply(1,arguments),F=this.nodeManagerMapping.get(G);if(F){B=_.C(B);for(var D=B.next();!D.done;D=B.next())F.off(D.value);this.nodeManagerMapping.delete(G);G.style.touchAction="unset"}};var NQT=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.NO={getLocalStorage:_.El(function(){try{var G=new mDz;var B=G.isAvailable()?G:null}catch(F){return null}return B?new _.nr(B):null}),
getSessionStorage:_.El(function(){var G=new X2U;return G.isAvailable()?new _.nr(G):null})};var ywt=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},HDz=function(){ywt.instance||(ywt.instance=new ywt);
return ywt.instance},kQS=function(G){var B=G.networkEvents;
G.networkEvents=[];return B};var naP;naP={};_.l5N=tP("yt-serviceworker-metadata",{objectStores:(naP.auth={addedAtVersion:1},naP["resource-manifest-assets"]={addedAtVersion:2},naP),shared:!0,upgrade:function(G,B){B(1)&&bi(G,"resource-manifest-assets");B(2)&&bi(G,"auth")},
version:2});var qLS=self.location.origin+"/";EpJ([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);EpJ([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);EpJ([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);EpJ([/purge_shell=1/]);var UiG=void 0;UiG=UiG===void 0?[]:UiG;
for(var qHq=[],Ea7=_.C(xW8),hgt=Ea7.next();!hgt.done;hgt=Ea7.next())qHq.push({key:hgt.value});for(var KuP=_.C(UiG),a5w=KuP.next();!a5w.done;a5w=KuP.next())qHq.push(a5w.value);var miq,Uj=_.Fz==null?void 0:(miq=_.Fz.performance)==null?void 0:miq.memory,av6=!1,ODl={},QHz={},qO={},Ej=navigator;var Bd=function(G){this.JSC$13669_expiringStorage=new hP(G)};
Bd.prototype.set=function(G,B,F){F=F!==void 0?Date.now()+F:void 0;this.JSC$13669_expiringStorage.set(G,B,F)};
Bd.prototype.get=function(G){return this.JSC$13669_expiringStorage.get(G)};
Bd.prototype.remove=function(G){this.JSC$13669_expiringStorage.remove(G)};var op8=_.vP(["https://www.youtube.com/",""]),M$6=_.vP(["https://studio.youtube.com/",""]),JNl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",YLo=null,t$s;var XBG=_.vP(["https://www.youtube.com/iframe_api"]),iY=function(){this.playerResolver_=_.zn();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.qB;this.playbackDurationSeconds_=0},Q4w=function(G){var B=function(){return window.YT&&typeof window.YT.ready==="function"};
if(B())return _.ZL(window.YT);var F=_.zn(),D=_.G_("SCRIPT");D.onload=D.onreadystatechange=function(){D.readyState&&D.readyState!="loaded"&&D.readyState!="complete"||(D.onload=_.qB,D.onreadystatechange=_.qB,D.onerror=_.qB,B()?F.resolve(window.YT):F.reject(new _.Uf("Failed to load the iframe player library","script.onload",D.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
D.onerror=function(u){D.onload=_.qB;D.onreadystatechange=_.qB;D.onerror=_.qB;F.reject(new _.Uf("Failed to load the iframe player library","script.onerror",u&&u.target&&u.target.src))};
_.Ux(D,_.W7(XBG));G.insertBefore(D,G.firstChild);return F.promise},j4s=function(G,B,F){var D,u;
_.n(function(R){switch(R.nextAddress){case 1:return G.playbackEndedCallback_=F,_.b5(R,2),R.yield(Q4w(B.parentElement||null),4);case 4:D=R.yieldResult;_.oY(R,3);break;case 2:return u=_.Al(R),u instanceof _.Uf&&u.args&&u.args[0]=="script.onerror"?_.em(u):_.k2(u),R.return();case 3:D.ready(function(){return new D.Player(B,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:G.onPlayerReady_.bind(G),onStateChange:G.onPlayerStateChange_.bind(G),
onCueRangeExit:G.onCueRangeExit_.bind(G)}})}),_.di(R)}})};
_.w=iY.prototype;_.w.getPlayerPromise=function(){return this.playerPromise_};
_.w.onPlayerReady_=function(G){this.playerResolver_.resolve(G.target)};
_.w.onPlayerStateChange_=function(G){if(G.data==YT.PlayerState.PLAYING){G=G.target;var B=G.getCurrentTime();G.addCueRange("playback",B,B+this.playbackDurationSeconds_)}};
_.w.onCueRangeExit_=function(G){G.data=="playback"&&(G.target.stopVideo(),this.playbackEndedCallback_())};
_.w.stopVideo=function(){this.playerPromise_.then(function(G){G.stopVideo()})};
var Luq=function(G){G.playerVars_&&G.playerPromise_.then(function(B){typeof B.cueVideoByPlayerVars!="function"?_.em(new _.Uf("vmh: player API not ready","cueVideoByPlayerVars",typeof B.cueVideoByPlayerVars)):B.cueVideoByPlayerVars(G.playerVars_)})};
iY.prototype.playVideo=function(){var G=this;this.playerVars_&&this.playerPromise_.then(function(B){typeof B.loadVideoByPlayerVars!="function"?(B=new _.Uf("vmh: player API not ready","loadVideoByPlayerVars",typeof B.loadVideoByPlayerVars),_.k2(B)):B.loadVideoByPlayerVars(G.playerVars_)})};
var rwq=function(G,B,F,D,u){B&&(F===void 0&&(F=0),D===void 0&&(D=0),G.playbackDurationSeconds_=D/1E3,G.playerVars_={adformat:"17_8",videoId:B,suggestedQuality:"hd720",startSeconds:F/1E3,player_params:u})};
iY.prototype.mute=function(){this.playerPromise_.then(function(G){G.mute()})};
iY.prototype.unMute=function(){this.playerPromise_.then(function(G){G.unMute()})};var GqJ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var FZ;FZ=function(){this.tokenJars={};if(this.cookiesEnabled=_.y5()){var G=_.C8.get("CONSISTENCY",void 0);G&&Wus(this,{encryptedTokenJarContents:G})}};
_.iPg=function(){FZ.instance||(FZ.instance=new FZ);return FZ.instance};
FZ.prototype.handleResponse=function(G,B){if(!B)throw Error("$f");var F,D;B=((F=B.innerTubeRequest.context)==null?void 0:(D=F.request)==null?void 0:D.consistencyTokenJars)||[];var u;(G=(u=G.responseContext)==null?void 0:u.consistencyTokenJar)&&this.replace(B,G)};
FZ.prototype.replace=function(G,B){G=_.C(G);for(var F=G.next();!F.done;F=G.next())delete this.tokenJars[F.value.encryptedTokenJarContents];Wus(this,B)};
var Wus=function(G,B){if(B.encryptedTokenJarContents&&(G.tokenJars[B.encryptedTokenJarContents]=B,typeof B.expirationSeconds==="string")){var F=Number(B.expirationSeconds);setTimeout(function(){delete G.tokenJars[B.encryptedTokenJarContents]},F*1E3);
G.cookiesEnabled&&_.NS("CONSISTENCY",B.encryptedTokenJarContents,F,void 0,!0)}};var H2w,Da;H2w=window.location.hostname.split(".").slice(-2).join(".");_.k7=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var G=_.v5("LOCATION_PLAYABILITY_TOKEN");_.v5("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=kzT(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0)};
_.k7.getInstance=function(){Da=_.Yf("yt.clientLocationService.instance");Da||(Da=new _.k7,_.IY("yt.clientLocationService.instance",Da));return Da};
_.k7.prototype.setLocationOnInnerTubeContext=function(G){G.client||(G.client={});if(this.mostRecentPosition)G.client.locationInfo||(G.client.locationInfo={}),G.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),G.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),G.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),G.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)G.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.k7.prototype.handleResponse=function(G){var B;G=(B=G.responseContext)==null?void 0:B.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0,_.v5("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=kzT(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):_.NS("YT_CL",JSON.stringify({loctok:G}),15552E3,H2w,!0))};
var kzT=function(G){return G.localStorage===void 0?new _.e6("yt-client-location"):G.localStorage};
_.k7.prototype.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=kzT(this))&&this.localStorage.remove("yt-location-playability-token"):_.lVS("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.k7.prototype.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var B=!1,F=1E4;_.v5("INNERTUBE_CLIENT_NAME")==="MWEB"&&(B=!0,F=15E3);return new Promise(function(D,u){navigator.geolocation.getCurrentPosition(function(R){G.mostRecentPosition=R;D(R)},function(R){u(R)},{enableHighAccuracy:B,
maximumAge:0,timeout:F})})};
_.k7.prototype.createUnpluggedLocationInfo=function(G){var B={};G=G.coords;if(G==null?0:G.latitude)B.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)B.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)B.locationRadiusMeters=Math.round(G.accuracy);return B};
_.k7.prototype.createLocationInfo=function(G){var B={};G=G.coords;if(G==null?0:G.latitude)B.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)B.longitudeE7=Math.floor(G.longitude*1E7);return B};var O27=function(G,B){var F=XK();G||(G="unknown");B||(B="unknown");G="MAIN_APP_WEB_PAGE_TYPE_"+G.toUpperCase();G in P6t||(G="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");B="MAIN_APP_WEB_REQUEST_TYPE_"+B.toUpperCase();B in GSG||(B="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.iQ(F,{mainAppWeb:{pageType:G,requestType:B,isShellLoad:_.on("IS_SHELL_LOAD",!1)}})},egq={start:function(){_.iQ(r9g(),{mainAppWeb:_.es()})},
success:function(){_.Fi(r9g(),"SUCCESS")},
failure:function(){_.Fi(r9g(),"FAILURE")},
cancelled:function(){_.Fi(r9g(),"CANCELLED")}};var $iy,zgv,RHg;$iy=_.vP(["/sw.js"]);zgv=_.vP(["/sw.js?0"]);_.b2T=_.W7($iy);RHg=_.W7(zgv);var Vba=function(){var G=Error.apply(this,arguments);this.message=G.message;"stack"in G&&(this.stack=G.stack)};
_.r(Vba,Error);_.bn.prototype.load=function(G){this.megabloxUrl_=_.v5("YPC_MB_URL");_.Q9(this.megabloxUrl_,(0,_.R_)(function(){G&&G()},this))};
_.Nxl=function(G,B,F,D,u,R,N,y,U,q,h){_.Ckl(U);G.load((0,_.R_)(function(){try{var K=R?R:_.v5("HL"),a=_.v5("SESSION_INDEX");_.lhU("client",function(){kD8("59",{helpCenterPath:"/youtube",locale:K,window:window}).JSC$10285_loadChatSupport({authuser:String(a)})})}catch(m){throw $7(10,h,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),u&&u(m),_.k2(m),m;
}vav(this,B,F,D,u,R,N,y,U,q,h)},G))};
_.bn.prototype.openFixFlowDialog=function(G,B,F,D){this.load((0,_.R_)(function(){try{oa7(this,_.Yf("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(G).withIntegratorCallback(B).load(F,D)}catch(u){throw _.k2(u),u;}},this))};
var oa7=function(G,B,F,D){var u=B.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.X("enable_window_constrained_buy_flow_dialog")&&(u=u.usingPopupStyle(_.Yf("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));D&&(u=u.usingCloseCallback(D));B.bootstrap.fromPaymentsUrl(G.megabloxUrl_);G=B.bootstrap.asMashupMode(u);F=F?F:_.v5("HL");G.usingGaiaIndex(_.v5("SESSION_INDEX")).usingLocale(F).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.X("enable_google_payments_buyflow_material2_style_web")?
G.usingStyle(":m2;pc=#444;ac=#065fd4"):G.usingStyle(":md;pc=#444;ac=#065fd4");return G},vav=function(G,B,F,D,u,R,N,y,U,q,h){try{var K=_.Yf("payments.business.integration");
if(!K)throw new Vba("payments.business.integration is undefined");var a=K.standaloneContextAuthId.forUserId(),m=oa7(G,K,R,function(){yqc(!1);y&&y()});
N&&m.usingServerAnalyticsEventHandler(N);var L=m.inStandaloneContext(a).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.Npo(U);else{var e=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";$7(10,h,e,W.debugCode);_.zB(e,U,W.debugCode);e=new _.Uf("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);
_.k2(e)}else $7(10,h,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.zB("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",U,"EMPTY_INTEGRATOR_DATA"),_.k2(Error("cg"));F&&(yqc(!1),F(W))}).withEncryptedParameters(B);
q&&L.withClientParameters(ULM(_.TU8(q)));L.load(function(){$7(24,h);_.mb("ttc",void 0,"commerce_transaction");Eq("commerce_transaction");D&&(D(),yqc(!0))},function(W){if(W==null?0:W.debugCode)var e=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))e="EMPTY_LOAD_FAILURE_ERROR",_.k2(Error(e));else{e="EMPTY_LOAD_FAILURE_DEBUG_CODE";var b=new _.Uf("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+e);_.k2(b)}$7(10,h,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",e);_.zB("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",U,e);_.k2(W);u&&u(W)})}catch(W){throw W instanceof Vba&&($7(10,h,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),u&&u(W)),_.k2(W),W;
}};var MbN;MbN=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.R16=function(G,B){B=B===void 0?!1:B;G=MbN.test(G)?_.pe(G):null;!B&&window.payments||!G?(G=_.zn(),B=G.promise,G.resolve()):B=_.wzw(G,{attributes:{"data-payments-main":"",id:"payment-lib"}});return B};var pBy;pBy=_.vP(["//www.googletagmanager.com/gtm.js?id=",""]);_.uY=function(G,B){_.JZ(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:B}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.v5("GL")}),B=_.G_("SCRIPT"),B.async=!0,_.Ux(B,_.W7(pBy,G)),B.id="gtm",G=document.getElementsByTagName("script"),G.length==0?document.head.appendChild(B):(G=G[0],G.parentNode.insertBefore(B,G)))};
_.RS=function(G){if(G=JSON.parse(G))window.dataLayer=window.dataLayer||[],window.dataLayer.push(G)};var YH8,AwN;YH8=_.vP(["https://clients2.google.com/gr/gr_sync.js"]);_.DJS=function(){};
_.DJS.prototype.init=function(){if(AwN()){var G=_.zn();G.resolve();return G.promise}return _.wzw(_.W7(YH8)).then(function(){if(!AwN())throw Error("dg");},function(){throw Error("eg");
})};
_.uHJ=function(){if(!AwN())return"";var G=window.google.gr;G.init({async:{schedule:"sync"},merchantId:"youtube"});G.start();G=G.finish();return G==null?"":G};
AwN=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.p=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.p,PolymerFakeBaseClassWithoutHtml);_.DO=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.DO,PolymerFakeBaseClassWithoutHtml);var n$J=window.ShadyDOM;var g$g,tvg,sR8,xsz,GKQ,B1M,wy,TB;g$g=_.X("enable_shadydom_free_scoped_query_methods");tvg=_.X("enable_shadydom_free_scoped_node_methods");sR8=_.X("enable_shadydom_free_scoped_readonly_properties_batch_one");xsz=_.X("enable_shadydom_free_parent_node");GKQ=_.X("enable_shadydom_free_children");B1M=_.X("enable_shadydom_free_last_child");wy=window.ShadyDOM;_.gK=wy&&wy.noPatch&&wy.wrap?wy.wrap:wy?function(G){return wy.patch(G)}:function(G){return G};
TB=function(G){if(G instanceof ShadowRoot)this.host=(0,_.gK)(G.host),this.root=G;else if(G.$$){this.host=(0,_.gK)(G);var B;this.root=(B=G.root)!=null?B:this.host}else if(G.polymerController){this.host=(0,_.gK)(G);var F;this.root=(F=this.host.shadowRoot)!=null?F:this.host}else this.root=this.host=(0,_.gK)(G)};
ZPo();SES();ilg();Fko();PkI();var diN={querySelector:function(G,B){B=rq6(B,Y7(G));return _.X("sunnydom_native_scoped_query_selectors")?Usg(G,B):Usg(_.AV(G),B)},
querySelectorAll:function(G,B){B=rq6(B,Y7(G));return _.X("sunnydom_native_scoped_query_selectors")?Array.from(qEl(G,B)):qEl(_.AV(G),B)}},Jw8={appendChild:function(G,B){var F=Y7(G),D=_.pp(B);
return _.I08(_.AV(G),F?_.JV(B,F,D):B)},
cloneNode:function(G,B){var F=_.pp(G);G=_.AV(G);B=MO(G).prototype.cloneNode.call(G,B);return F?cm(B,F):B},
contains:function(G,B){var F=Y7(G),D=_.pp(B);return F!==D?!1:f0J(G,B)},
insertBefore:function(G,B,F){var D=Y7(G),u=_.pp(B);G=_.AV(G);B=D?_.JV(B,D,u):B;return MO(G).prototype.insertBefore.call(G,B,F)},
removeChild:function(G,B){var F=Y7(G);G=_.AV(G);B=F?cm(B,F):B;return MO(G).prototype.removeChild.call(G,B)},
replaceChild:function(G,B,F){var D=Y7(G),u=_.pp(B);B=D?_.JV(B,D,u):u?cm(B,u):B;F=D?cm(F,D):F;G=_.AV(G);return MO(G).prototype.replaceChild.call(G,B,F)},
getRootNode:function(G,B){B=B===void 0?{composed:!0}:B;var F;if(((F=B)!=null?F:{}).composed)G=Tps(G);else{B=G;for(G=hHg(G);G;)B=G,G=HPs(G);G=B}return G}},ud6=sR8?{firstChild:pOL,
nextSibling:v$z,previousSibling:Mvg,firstElementChild:YEo,lastElementChild:dso,nextElementSibling:VvQ,previousElementSibling:o$8,childNodes:Jq6}:{};xsz&&(ud6.parentNode=bPg);GKQ&&(ud6.children=cql);B1M&&(ud6.lastChild=Aqc);g$g&&D1Q(diN);tvg&&D1Q(Jw8);RLQ();var wx6=function(G){this.node=G instanceof ShadowRoot?G.host:G};
Cdo();N1s();var lFo=new WeakMap;var qW8=Symbol("Cd");var m18=new Set(["tap","track","down","up"]),XxQ=_.X("pbcm_fi_query_decorators");var Nu=function(){return _.DO.apply(this,arguments)||this};
_.r(Nu,_.DO);_.w=Nu.prototype;_.w.getState=function(){return this.store.getState()};
_.w.dispatch=function(G){this.store.dispatch(G)};
_.w.beforeRegister=function(){if(this&&typeof this==="object"){var G;var B=!!this.useSignals||!((G=this.polymerController)==null||!G.useSignals)}else B=!1;if(!B&&this.properties)for(B=_.C(Object.keys(this.properties)),G=B.next();!G.done;G=B.next()){var F=G.value;G=this.properties[F];if(G.selector){if(G.computed)throw Error("lg");F=["reduxPropertiesRecomputeTrigger",'"'+F+'"'].concat(_.gi(G.selectorArgs||[])).join(",");G.computed="recomputeReduxSelector("+F+")"}}};
_.w.attached=function(){var G=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){G.reduxPropertiesRecomputeTrigger++}));
_.X("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.w.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.w.recomputeReduxSelector=function(G,B){var F=_.xS.apply(2,arguments),D=this.properties[B].selector;if(!D)throw Error("jg`"+B);return D.apply(null,[this.store.getState()].concat(_.gi(F)))};
_.w.select=function(G){var B=_.xS.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return G.apply(null,[this.store.getState()].concat(_.gi(B)))};
_.ZN.Object.defineProperties(Nu.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
Nu.prototype.recomputeReduxSelector=Nu.prototype.recomputeReduxSelector;_.c([_.v(),_.I("design:type",Number)],Nu.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.c([_.uA()],Nu);var y8=[],rYU={},KW=function(){return SW.apply(this,arguments)||this};
_.r(KW,SW);KW.prototype._addPropertyEffect=function(G,B,F){if(B==="__observeEffects"&&F){var D,u=(D=F.info.method)!=null?D:F.info.methodName;if(u){var R=this[u];this[u]=function(){y8.push(u);try{R==null||R.apply(this,arguments)}finally{y8.pop()}}}}_.DT._addPropertyEffect.apply(this,[G,
B,F])};
KW.prototype._setPendingProperty=function(G,B,F){if(y8.length){var D=y8[y8.length-1],u;(u=rYU[this.is])!=null&&u.has(D)||(WkQ(this.is,D),_.W$("polymerPropertyChangedInObserver",{componentName:this.is,observerName:D}))}return _.DT._setPendingProperty.apply(this,[G,B,F])};
_.c([zrz()],KW);var HlI=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),OlJ,CW={};_.X("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=CW);var nW=function(){return _.DO.apply(this,arguments)||this};
_.r(nW,_.DO);nW.prototype._setUnmanagedPropertyToNode=function(G,B,F){G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0);if(F!==G[B]||typeof F==="object")G[B]=F;G.is&&G.polymerController&&G.polymerController!==G&&N7(G.is,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)};
_.c([_.uA()],nW);kKl()&&(op.prototype._setUnmanagedPropertyToNode=(new nW)._setUnmanagedPropertyToNode);_.cYL={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(G){},set polymerController(G){}}]};var hS=function(){var G=SW.apply(this,arguments)||this;G.json=function(){};
return G};
_.r(hS,SW);hS.prototype.equals=function(G,B){return G===B};
hS.prototype.isEmpty=function(G){var B;(B=!G)||(B=_.fQ(G)&&G.length===0);return B};
_.c([zrz()],hS);var cws=function(G){G=igQ(G);hQ.call(this,G)};
_.r(cws,hQ);cws.prototype.addProvider=function(G){G=G.key?G:igQ([G])[0];var B=this.keyIdToIndex.get(G.key.id);if(B){if(VKU(G,this.providers[B]))throw Error("mg`"+G.key.displayName);}else hQ.prototype.addProvider.call(this,G)};
var TQU=new cws([]);var I5v=!1;var AYl={};I5v||(YWI(),I5v=!0);
AYl.InjectBehavior={initializeInjection:function(){var G=this.provide;try{if((G=G!=null?G:[])&&G.length>0)for(var B=igQ(G),F=_.C(B),D=F.next();!D.done;D=F.next())TQU.addProvider(D.value);var u=new Set;vG8(this.behaviors||[],u);B={};for(var R=_.C(u),N=R.next();!N.done;N=R.next()){var y=N.value;y.inject&&Object.assign(B,y.inject)}this.inject&&Object.assign(B,this.inject);for(var U=_.C(Object.keys(B)),q=U.next();!q.done;q=U.next()){var h=q.value,K=B[h];try{this[h]=TQU.resolve(K)}catch(a){throw a;}}}catch(a){throw Error(a.message);
}}};var JYs;var T16=/\bclass\b/.test(function(){}.toString()),tKJ=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var f5y=function(G){this.wasDefined=!0;Array.isArray(G)||G instanceof Array?(this.JSC$13827_getImpl=G[0],this.JSC$13827_setImpl=G[1]):this.JSC$13827_getImpl=G};
_.w=f5y.prototype;_.w.getWithPath=function(G){return SWz(this.JSC$13827_getImpl(),G)};
_.w.setWithPath=function(G,B){var F=this;if(G.length)throw Error("ng");if(!this.JSC$13827_setImpl)throw Error("og");Xe(function(){F.JSC$13827_setImpl(B)})};
_.w.notifyPath=function(){throw Error("pg");};
_.w.notifySplices=function(){throw Error("qg");};
_.w.getChangeRecordSignal=function(G,B){var F=this;if(G.length)throw Error("rg");return function(){var D=F.getWithPath(G);return{path:B!=null?B:"",base:D,value:D}}};
_.w.getSplicesSignal=function(){throw Error("sg");};
_.w.getPathMutationSignal=function(){throw Error("tg");};
_.w.pop=function(){throw Error("ug");};
_.w.push=function(){throw Error("vg");};
_.w.splice=function(){throw Error("wg");};
_.w.unshift=function(){throw Error("xg");};var n4=function(G){var B=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(G)||G instanceof Array?(this.JSC$13832_getImpl=G[0],this.JSC$13832_setImpl=G[1]):this.JSC$13832_getImpl=G;this.wasDefined=!1;_.U4(function(){B.wasDefined=B.JSC$13832_getImpl()!==void 0})};
n4.prototype.getWithPath=function(G){return SWz(this.JSC$13832_getImpl(),G)};
n4.prototype.setWithPath=function(G,B){var F=this;if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){var D=_.U4(function(){return F.getWithPath([])});
if(G.length===0){if(!this.JSC$13832_setImpl)throw Error("yg");if(D===B)return;this.wasDefined||(this.wasDefined=B!==void 0);Xe(function(){F.JSC$13832_setImpl(B)})}else{for(var u=0;u<G.length-1;u++){if(!D)return;
D=D[G[u]]}u=G[G.length-1];D&&(D[u]=B);this.wasDefined||(this.wasDefined=G.length>1||B!==void 0)}tbs(this,G,{pathComponents:G,value:B})}};
n4.prototype.notifyPath=function(G,B){G.length===0?B&&this.setWithPath(G,B.value):tbs(this,G,{pathComponents:G,value:B==null?void 0:B.value,fallbackWhenUndefined:B==null?void 0:B.value})};
var tbs=function(G,B,F,D){if(G.setMutationSignal){var u=++G.mutationIndex,R=[G.observedPath],N=G.observedPath,y;B.length===0&&(y=N);for(var U=0;U<B.length;U++){var q=N.subPaths[B[U]];if(!q)break;R.push(q);N=q;U===B.length-1&&(y=q)}for(B=!1;R.length;)N=R.shift(),N.data={index:u,mutation:F,spliceMutationIndex:D},B||(B=N===y),B&&R.push.apply(R,_.gi(Object.values(N.subPaths)));Xe(function(){G.setMutationSignal(u)})}};
n4.prototype.notifySplices=function(G,B){var F=this,D=_.U4(function(){return F.getWithPath(G)}),u=[].concat(_.gi(G),["splices"]);
tbs(this,u,{pathComponents:u,value:{indexSplices:B}});if(D==null?0:D.length)B=this.mutationIndex,u=[].concat(_.gi(G),["length"]),tbs(this,u,{pathComponents:u,value:D.length},B)};
var Z2G=function(G,B,F,D,u,R){G.notifySplices(F,[{index:D,addedCount:u,removed:R,object:B,type:"splice"}])},gav=function(G,B){G=G.observedPath;
for(var F=0;F<B.length;F++){var D=B[F],u=G.subPaths[D];u||(u={pathComponents:B.slice(0,F+1),subPaths:{}},G.subPaths[D]=u);G=u}},s47=function(G,B,F){gav(G,B);
if(!G.getMutationSignal){var D=_.C(_.qg(G.mutationIndex,void 0,"sNBMCd"));G.getMutationSignal=D.next().value;G.setMutationSignal=D.next().value}var u=G.getMutationSignal;return _.mS(function(){u();return F(SH8(G,B))},void 0,"zvsXEd")};
n4.prototype.getChangeRecordSignal=function(G,B){var F=this,D=this.mutationIndex,u;return s47(this,G,function(R){if(R&&R.index>D){var N=R.mutation;D=R.index;u=void 0}R=_.U4(function(){return F.getWithPath(G)});
if(N){var y=N.pathComponents[N.pathComponents.length-1],U=[].concat(_.gi(N.pathComponents));if(y==="splices"||y==="length")return{base:R,path:(B?[B].concat(_.gi(U)):U).join("."),value:N.value};var q=G.length>U.length?G:U,h;return{base:R!=null?R:N.fallbackWhenUndefined,path:(B?[B].concat(_.gi(q)):q).join("."),value:(h=_.U4(function(){return F.getWithPath(q)}))!=null?h:N.fallbackWhenUndefined}}u||(u={base:R,
path:(B?[B].concat(_.gi(G)):G).join("."),value:R});return u})};
n4.prototype.getSplicesSignal=function(G){var B=this.mutationIndex,F;return s47(this,G,function(D){if(D&&D.index>B&&D.spliceMutationIndex!==B){var u=D.mutation;B=D.index;F=void 0}return u&&u.pathComponents[u.pathComponents.length-1]==="splices"?F=D=u.value:F})};
n4.prototype.getPathMutationSignal=function(G){var B=this;gav(this,G);if(!this.getMutationSignal){var F=_.C(_.qg(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=F.next().value;this.setMutationSignal=F.next().value}var D=this.getMutationSignal,u=this.mutationIndex,R;return _.mS(function(){D();var N=SH8(B,G);if(N&&N.index>u&&N.mutation&&srM(N.mutation.pathComponents,G)){var y=N.mutation;u=N.index}if(!R||u!==R.index){var U,q;N=(q=_.U4(function(){return B.getWithPath(G)}))!=null?q:(U=y)==null?
void 0:U.fallbackWhenUndefined;
R={index:u,value:N}}return R},void 0,"RXYC9b")};
var SH8=function(G,B){G=G.observedPath;B=_.C(B);for(var F=B.next();!F.done;F=B.next())G=G.subPaths[F.value];return G.data};
n4.prototype.pop=function(G){var B=this,F=_.U4(function(){return B.getWithPath(G)});
if(!(F instanceof Array))throw Error("zg");var D=F.length>0,u=F.pop();D&&Z2G(this,F,G,F.length,0,[u]);return u};
n4.prototype.push=function(G){var B=_.xS.apply(1,arguments),F=this,D=_.U4(function(){return F.getWithPath(G)});
if(!(D instanceof Array))throw Error("Ag");var u=D.length,R=D.push.apply(D,_.gi(B));B.length&&Z2G(this,D,G,u,B.length,[]);return R};
n4.prototype.splice=function(G,B,F){var D=_.xS.apply(3,arguments),u=this,R=_.U4(function(){return u.getWithPath(G)});
if(!(R instanceof Array))throw Error("Bg");B<0?B=R.length-Math.floor(-B):B&&(B=Math.floor(B));var N=R.splice.apply(R,[B,F].concat(_.gi(D)));(D.length||N.length)&&Z2G(this,R,G,B,D.length,N);return N};
n4.prototype.unshift=function(G){var B=_.xS.apply(1,arguments),F=this,D=_.U4(function(){return F.getWithPath(G)});
if(!(D instanceof Array))throw Error("Cg");var u=D.unshift.apply(D,_.gi(B));B.length&&Z2G(this,D,G,0,B.length,[]);return u};var lY=function(G,B,F){this.model=G;this.unknownSignalResolver=B;this.options=F;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];B=_.C(Rez());G=B.next().value;B=B.next().value;this.owner=G;this.disposeImpl=B};
lY.prototype.dispose=function(){if(!this.isDisposed){for(var G=_.C(this.childSignalProxies),B=G.next();!B.done;B=G.next())B.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var xiU=function(G,B){G=SV(G.owner);try{B()}finally{SV(G)}};
lY.prototype.effect=function(G){xiU(this,function(){_.zM(G,"j")})};
var Pgy=function(G,B){G.options!=null||(G.options={});var F;(F=G.options).immutableProps!=null||(F.immutableProps=new Set);G.options.immutableProps.add(B)},zel=function(G,B){B=""+B;
Gh8(G,B);var F,D;if((F=G.options)==null?0:(D=F.immutableProps)==null?0:D.has(B))return!0;var u;if((u=G.model.__signalCache)==null?0:u.has(B))F=G.model.__signalCache.get(B),Array.isArray(F)&&Pgy(G,B);var R,N,y;return(y=(R=G.options)==null?void 0:(N=R.immutableProps)==null?void 0:N.has(B))!=null?y:!1},BX7=function(G,B){var F;
G.unknownSignalResolver&&(F=G.unknownSignalResolver(B));var D,u;((D=G.options)==null?0:(u=D.immutableProps)==null?0:u.has(B))?F!=null||(F=new f5y(_.qg(G.model[B],void 0,"By5iP"))):F!=null||(F=new n4(_.qg(G.model[B],void 0,"CXghNc")));var R=G.model.hostElement;Object.defineProperty(G.model,B,{get:function(){$1I(R,B);return F.getWithPath([])},
set:function(N){y7(R,B);G.setWithPath([B],N)},
configurable:!0});return F},Gh8=function(G,B){var F,D,u;
((F=G.model.__signalCache)==null||!F.has(B))&&((D=G.options)==null?0:(u=D.externalSignalProps)==null?0:u.has(B))&&G.model[B]},jI=function(G,B){B=""+B;
var F=G.signalCache[B];if(F!==void 0)return F;F=!1;Gh8(G,B);var D;if((D=G.model.__signalCache)==null?0:D.has(B))if(F=G.model.__signalCache.get(B),Array.isArray(F))F=!0,Pgy(G,B);else return G.signalCache[B]=G.model.__signalCache.get(B).signal,G.signalCache[B];var u,R;D=(R=(u=G.options)==null?void 0:u.reactivityMode)!=null?R:0;var N,y;if(!((N=G.options)==null?0:(y=N.reactiveProps)==null?0:y.has(B))&&!F&&D===1)throw Error("Dg`"+B);u=F?i$t(G,B):BX7(G,B);return G.signalCache[B]=u},i$t=function(G,B){var F=
Object.getOwnPropertyDescriptor(G.model.constructor.prototype,B),D=function(){return G.model[B]};
return new f5y(F&&F.get&&!F.set?D:[D,function(u){G.model[B]=u}])};
lY.prototype.getWithPath=function(G){var B=_.C(G);G=B.next().value;B=fn(B);$1I(this.model.hostElement,""+G);return jI(this,G).getWithPath(B)};
lY.prototype.setWithPath=function(G,B){if(G.length){y7(this.model.hostElement,G.join("."));var F=_.C(G);G=F.next().value;F=fn(F);jI(this,G).setWithPath(F,B)}};
lY.prototype.getPathMutationSignal=function(G){var B=_.C(G);G=B.next().value;B=fn(B);return jI(this,G).getPathMutationSignal(B)};
lY.prototype.notifyPath=function(G,B){var F=_.C(G);G=F.next().value;F=fn(F);jI(this,G).notifyPath(F,B)};
var F2s=function(G,B){if(B.type==="literal")return function(){return{rootWasDefined:!0,value:B.value}};
var F=XQ(B.path),D=_.C(F),u=D.next().value;D=fn(D);var R,N;if(B.type==="path"&&(F.length===1||((R=G.options)==null?0:(N=R.immutableProps)==null?0:N.has(u))))return function(){var K=G.getWithPath(F.slice(0,1));K=SWz(K,F.slice(1));return{rootWasDefined:jI(G,F[0]).wasDefined,value:K}};
var y=jI(G,u);if(B.type==="path"){var U=y.getPathMutationSignal(D);return function(){var K,a=(K=U())==null?void 0:K.value;return{rootWasDefined:y.wasDefined,value:a}}}if(B.type==="splices"){var q=y.getSplicesSignal(D);
return function(){var K=q();return{rootWasDefined:y.wasDefined,value:K}}}var h=y.getChangeRecordSignal(D,""+u);
return function(){var K=h();return{rootWasDefined:y.wasDefined,value:K}}},Fpz=function(G,B,F){var D=F.map(function(y){return F2s(G,y)}),u=F.length===0,R=[],N=F.length!==1||F[0].type!=="path"?!1:!0;
G.effect(function(){for(var y=D.length,U=[],q=!!R.length,h=0;h<y;h++){var K=D[h](),a=K.rootWasDefined;K=K.value;u||(u=a);U[h]=K;N&&(U[h+y]=q?R[h]:U[h],R[h]=K)}u&&pE(G.owner,function(){return void B.apply(null,_.gi(U))})})},x18=function(G,B,F,D,u){var R=jI(G,B);
u!==void 0&&R.setWithPath([],u);Fpz(G,function(){var N=_.xS.apply(0,arguments);y7(G.model.hostElement,B,!0);R.setWithPath([],F.apply(null,_.gi(N)))},D)};
lY.prototype.arrayPush=function(G){var B=_.xS.apply(1,arguments),F=_.C(G),D=F.next().value;F=fn(F);D=jI(this,D);return D.push.apply(D,[F].concat(_.gi(B)))};
lY.prototype.arraySplice=function(G,B,F){var D=_.xS.apply(3,arguments),u=_.C(G),R=u.next().value;u=fn(u);R=jI(this,R);return R.splice.apply(R,[u,B,F].concat(_.gi(D)))};
lY.prototype.arrayUnshift=function(G){var B=_.xS.apply(1,arguments),F=_.C(G),D=F.next().value;F=fn(F);D=jI(this,D);return D.unshift.apply(D,[F].concat(_.gi(B)))};
lY.prototype.notifySplices=function(G,B){var F=_.C(G);G=F.next().value;F=fn(F);jI(this,G).notifySplices(F,B)};var Drs=!0,uxq=!1,b2g=!1,R48=!1,wiv=0;R48=!1;wiv=0;Drs=!0;uxq=b2g=!1;var lPI=/([^\s]+?)\(([\s\S]*)\)/,Nvc=/\.([^.]+)$/,qPL=/\\,/g,wCg=/&comma;/g,Cto=/\\(.)/g,Uqg=[],yvg={"*":"wildcard",splices:"splices"};var rvz=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"),XCg=/[A-Z]/,CpU=["class","hidden","id","on-dom-change"],HOU=new Set([].concat(_.gi(CpU),
["if","notify-dom-change","restamp"])),kCl=new Set([].concat(_.gi(CpU),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),OOQ=new Set(["restamp"]);var H$z=new Set(["className","id"]);var Vcc=Symbol(),dqQ=window;var gBU=window;var i2z=0,xqg=0,LW=[],BQS=0,sjg=!1,Gzz=document.createTextNode("");(new window.MutationObserver(Ptg)).observe(Gzz,{characterData:!0});var Wc=new Map,r3=0,NXa=function(G){this.mappedHandleId=G},Dil=function(G,B,F,D){this.mappedHandleId=G;
var u=this;this.mappedHandleId=G;this.callback=B;this.waitTime=F;this.schedulerPriority=D;this.handleId=_.Lu.addJob(function(){u.callback();Wc.delete(u.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.r(Dil,NXa);Dil.prototype.cancel=function(){_.Lu.cancelJob(this.handleId);Wc.delete(this.mappedHandleId)};
var uFM=function(G,B){this.mappedHandleId=G;var F=this;this.mappedHandleId=G;this.callback=B;this.handleId=FuJ(function(){F.callback();Wc.delete(F.mappedHandleId)})};
_.r(uFM,NXa);uFM.prototype.cancel=function(){var G=this.handleId-xqg;G<0||LW.length<=G||(LW[G]=null);Wc.delete(this.mappedHandleId)};var NQg=function(){};
NQg.prototype.cancel=function(){this.jobHandle!==void 0&&(Rg8(this.jobHandle),this.jobHandle=void 0)};
NQg.prototype.run=function(G,B,F){var D=this;this.cancel();this.callback=G;this.jobHandle=_.Hc(function(){G();D.callback=void 0},B,F)};
NQg.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var wBl=new WeakMap;var y6s=zu(function(G){for(var B=G,F=0;F<3;F++)B=Object.getPrototypeOf(B);delete B.prototype.connectedCallback;var D=function(){return G.apply(this,arguments)||this};
_.r(D,G);D.prototype._attachDom=function(u){if(!u)return null;var R=(0,_.gK)(this.hostElement);R.attachShadow({mode:"open",shadyUpgradeFragment:u});R.shadowRoot.appendChild(u);return R.shadowRoot};
D.prototype._takeAttributes=function(){for(var u=this.hostElement.attributes,R=0;R<u.length;R++){var N=u[R],y=void 0,U=void 0;(U=(y=this).__attributeReaction)==null||U.call(y,N.name,null,N.value)}};
D.prototype._readyClients=function(){G.prototype._readyClients.call(this);this.root=this};
D.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);G.prototype.connectedCallback.call(this)};
_.ZN.Object.defineProperties(D,{template:{configurable:!0,enumerable:!0,get:function(){return D.prototype._template}}});
return D}),n5P=zu(function(G){var B=function(){return G.apply(this,arguments)||this};
_.r(B,G);B.prototype.created=function(){if(this.__notifyEffects)for(var F=_.C(Object.values(this.__notifyEffects)),D=F.next();!D.done;D=F.next()){D=_.C(D.value);for(var u=D.next();!u.done;u=D.next())u.value.fn=UiS}if(this.__reflectEffects)for(F=_.C(Object.values(this.__reflectEffects)),D=F.next();!D.done;D=F.next())for(D=_.C(D.value),u=D.next();!u.done;u=D.next())u.value.fn=qHc};
B.prototype._addEventListenerToNode=function(F,D,u){F=OF(F);O2(F,D,u)||G.prototype._addEventListenerToNode.call(this,F,D,u)};
B.prototype._removeEventListenerFromNode=function(F,D,u){F=OF(F);eW(F,D,u)||G.prototype._removeEventListenerFromNode.call(this,F,D,u)};
B.prototype._propertiesChanged=function(F,D,u){if(this.__dataToNotify&&this.__notifyEffects)for(var R=_.C(Object.keys(this.__dataToNotify)),N=R.next();!N.done;N=R.next()){N=N.value;var y=l58(N);this.__notifyEffects[y]||delete this.__dataToNotify[N]}else this.__dataToNotify=null;G.prototype._propertiesChanged.call(this,F,D,u)};
B.prototype.fire=function(F,D,u){D=D===void 0?{}:D;var R;return _.cZ(OF((R=u==null?void 0:u.node)!=null?R:this),F,D,u)};
B.prototype._ensureAttribute=function(F,D){var u=OF(this);u.hasAttribute(F)||Q7(u,D,F)};
B.prototype.isLightDescendant=function(F){var D=OF(this);return OF(D)!==F&&_.IF(D).contains(F)&&_.IF(D).getRootNode()===_.IF(F).getRootNode()};
return B});
_.xC.ready=function(){var G;((G=this.hostElement)!=null?G:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var B;((B=this.hostElement)!=null?B:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Rc._subscribeIronResize=function(G){var B;((B=G.hostElement)!=null?B:G).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Rc._unsubscribeIronResize=function(G){var B;((B=G.hostElement)!=null?B:G).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Kuo=[Array,Boolean,Date,Number,Object,String],V7=function(G,B,F,D){this.polySiInfo=G;this.polySiParams=B;this.polySiContext=F;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;D||this instanceof HTMLElement&&(D=this);if(!D)throw Error("Kg");this.allowedProps=B.allowedProps;this.hostElement=D;this.is=G.is;this.upgradeDisabled=!!B.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");G=new Set(B.reactiveSchemas.filter(function(u){return u.type!==
"observe"}).map(function(u){return u.propertyKey}));
this.signalProxy=new lY(this,void 0,{reactiveProps:G,reactivityMode:B.reactivityMode});this.__dataHasAccessor={};B=_.C(B.reactiveSchemas);for(G=B.next();!G.done;G=B.next())G=G.value,G.type==="signal"&&(this.__dataHasAccessor[G.propertyKey]=!0);this.upgradeDisabled||luq(this)};
V7.prototype.getExtraMethodsToForward=function(){return[]};
var luq=function(G){G.polySiContext.didRegister||(G.registered(),G.polySiContext.didRegister=!0);G.polySiContext.finalizedTemplate||(G.polySiContext.finalizedTemplate={},G.polySiParams.templateGetter&&(G.polySiContext.finalizedTemplate.processedTemplate=SPJ(G.polySiParams.templateGetter,G.polySiParams.is)));UrG(G);var B=G.hostElement;B.loggingStatus!=null||(B.loggingStatus={});B.loggingStatus.isInitializing=!0;_.U4(function(){return void G.created()});
B.loggingStatus.isInitializing=!1;G.isPolySiElementConnected&&quP(G)},quP=function(G){G.didCallReady||(_.U4(function(){return void G.ready()}),G.didCallReady=!0);
G.isAttached=!0;G.attached()};
_.w=V7.prototype;_.w.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||quP(this)};
_.w.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.w.attributeChangedCallback=function(G,B,F){if(this.upgradeDisabled)G==="disable-upgrade"&&F===null&&(this.upgradeDisabled=!1,luq(this));else if(B!==F){var D=_.xQ(G),u=this.polySiContext.typesForSignals[D];if(u&&(!this.reflecting||_.X("polysi_attribute_changed_serializing_killswitch"))){switch(u){case Object:try{var R=JSON.parse(F)}catch(y){R=F}break;case Array:try{R=JSON.parse(F)}catch(y){R=null}break;case Date:R=isNaN(F)?String(F):Number(F);R=new Date(R);break;case Boolean:R=F!==null;break;case Number:R=
Number(F);break;default:R=F}this[D]=R}D=_.C(this.polySiParams.behaviors);for(u=D.next();!u.done;u=D.next())R=void 0,(R=u.value.attributeChanged)==null||R.call(this,G,B,F);var N;(N=this.attributeChanged)==null||N.call(this,G,B,F)}};
_.w.attributeChangedCallbackWrapper=function(G,B,F){this.attributeChangedCallback(G,B,F)};
_.w.setPropertiesFromInitialAttributeValues=function(){for(var G=0;G<this.hostElement.attributes.length;G++){var B=this.hostElement.attributes[G];(B.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(B.name))&&this.attributeChangedCallback(B.name,null,B.value)}};
_.w.created=function(){this.provide=this.polySiParams.provide;var G;(G=this.initializeInjection)==null||G.call(this);G=_.C(this.polySiParams.reactiveSchemas);for(var B=G.next();!B.done;B=G.next())B=B.value,B.type==="signal"&&(this.mutablePropNames.add(B.propertyKey),jI(this.signalProxy,B.propertyKey));hgg(this,this.polySiInfo,this.polySiParams.behaviors);G=_.C(this.polySiParams.reactiveSchemas);for(B=G.next();!B.done;B=G.next())B=B.value,B.type==="signal"&&B.value!==void 0&&(this.signalProxy.model[B.propertyKey]=
typeof B.value==="function"?B.value.call(this):B.value);if(this.polySiParams.signalProperties)for(G=_.C(this.polySiParams.signalProperties),B=G.next();!B.done;B=G.next()){B=B.value;var F=void 0;((F=this.__signalCache)==null?0:F.has(B))||(this.signalProxy.model[B]=void 0)}R48||E5N(this);EaQ(this);G=_.C(this.polySiParams.behaviors);for(B=G.next();!B.done;B=G.next())F=void 0,(F=B.value.created)==null||F.call(this);var D;(D=this.polySiInfo.created)==null||D.call(this)};
_.w.registered=function(){var G=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var B=Object.getPrototypeOf(this);B.addReactiveSchema=function(y){G.polySiParams.reactiveSchemas.push(y)};
for(var F=_.C(this.polySiParams.behaviors),D=F.next();!D.done;D=F.next()){var u=void 0;(u=D.value.beforeRegister)==null||u.call(B)}var R;(R=this.polySiInfo.beforeRegister)==null||R.call(B);B.addReactiveSchema=mic;F=_.C(this.polySiParams.behaviors);for(D=F.next();!D.done;D=F.next())u=void 0,(u=D.value.registered)==null||u.call(B);var N;(N=this.polySiInfo.registered)==null||N.call(B)};
_.w.ready=function(){var G;(G=this.beforeReady)==null||G.call(this);R48&&E5N(this);var B;if(G=(B=this.polySiContext.finalizedTemplate)==null?void 0:B.processedTemplate){G=ZOc(G.template,G.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:G.hasInsertionPoint,thisCtx:this});B=G.nodesById;G=G.root;var F=this.hostElement;var D=D===void 0?!1:D;F=(0,_.gK)(F);if(!F.attachShadow)throw Error("Id");if(!F.shadowRoot||D)F.attachShadow({mode:"open",shadyUpgradeFragment:G}),F.shadowRoot.appendChild(G);
this.root=F.shadowRoot;this.$=B}h4P(this);D=_.C(this.polySiParams.behaviors);for(B=D.next();!B.done;B=D.next())G=void 0,(G=B.value.ready)==null||G.call(this);var u;(u=this.polySiInfo.ready)==null||u.call(this)};
_.w.attached=function(){for(var G=_.C(this.polySiParams.behaviors),B=G.next();!B.done;B=G.next()){var F=void 0;(F=B.value.attached)==null||F.call(this)}var D;(D=this.polySiInfo.attached)==null||D.call(this)};
_.w.detached=function(){for(var G=_.C(this.polySiParams.behaviors),B=G.next();!B.done;B=G.next()){var F=void 0;(F=B.value.detached)==null||F.call(this)}var D;(D=this.polySiInfo.detached)==null||D.call(this)};
var UrG=function(G){for(var B=_.C(G.polySiParams.behaviors),F=B.next();!F.done;F=B.next())if(F=F.value,F.listeners)for(var D in F.listeners)tcg(G,G.hostElement,D,F.listeners[D]);if(G.polySiInfo.listeners)for(var u in G.polySiInfo.listeners)tcg(G,G.hostElement,u,G.polySiInfo.listeners[u])},tcg=function(G,B,F,D,u){G=gGU(G,D,u);
O2(B,F,G)||B.addEventListener(F,G);return G},E5N=function(G){for(var B=_.C(G.polySiParams.reactiveSchemas),F=B.next();!F.done;F=B.next())F=F.value,F.type==="compute"||F.type==="computeWithMethod"?Pd6(G.signalProxy,F,G):F.type==="redux"?iOc(G.signalProxy,F,G.store):F.type==="signal"&&F.readOnly&&BvQ(G.signalProxy,F)},h4P=function(G){for(var B=_.C(G.polySiParams.reactiveSchemas),F=B.next(),D={};!F.done;D={schema$jscomp$12:void 0},F=B.next())D.schema$jscomp$12=F.value,D.schema$jscomp$12.type==="notify"?
DqI(G.signalProxy,D.schema$jscomp$12,G.hostElement):D.schema$jscomp$12.type==="observe"?u4s(G.signalProxy,D.schema$jscomp$12,G):D.schema$jscomp$12.type==="reflect"&&G.signalProxy.effect(function(R){return function(){var N=G.signalProxy.getWithPath([R.schema$jscomp$12.propertyKey]);
G.reflecting=!0;heI(G.hostElement,R.schema$jscomp$12.propertyKey,N,!0);G.reflecting=!1}}(D));
if(G.reflectedAttributes)for(B=_.C(Object.entries(G.reflectedAttributes)),D=B.next(),F={};!D.done;F={key$jscomp$940:void 0,value$jscomp$10341:void 0},D=B.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;F.key$jscomp$940=D;F.value$jscomp$10341=u;G.signalProxy.effect(function(R){return function(){G.reflecting=!0;heI(G.hostElement,R.key$jscomp$940,(0,R.value$jscomp$10341)(),!0);G.reflecting=!1}}(F))}};
_.w=V7.prototype;_.w._setPendingProperty=function(G,B){this.set(G,B);return!1};
_.w._enableProperties=function(){};
_.w._setPendingPropertyOrPath=function(G,B){this.notifyPath(G,B);return!1};
_.w._addPropertyEffect=function(){};
_.w._stampTemplate=function(){throw Error("Lg");};
_.w.fire=function(G,B,F){B=B===void 0?{}:B;F=F===void 0?{}:F;var D,u,R={bubbles:(D=F.bubbles)!=null?D:!0,cancelable:!!F.cancelable,composed:(u=F.composed)!=null?u:!0},N;return _.cZ(XBS((N=F.node)!=null?N:this.hostElement),G,B,R)};
_.w.isLightDescendant=function(G){return this.hostElement!==G&&_.IF(this.hostElement).contains(G)&&_.IF(this.hostElement).getRootNode()===_.IF(G).getRootNode()};
_.w.get=function(G,B){var F=XQ(G);return B?SWz(B,F):G==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(F)};
_.w.linkPaths=function(){};
_.w.listen=function(G,B,F){G=XBS(G);this.boundListeners!=null||(this.boundListeners=new WeakMap);var D=this.boundListeners.get(G);D||(D={},this.boundListeners.set(G,D));var u=B+F;D[u]||(D[u]=tcg(this,G,B,F))};
_.w.notifyPath=function(G,B){this.signalProxy.notifyPath(XQ(G),arguments.length===2?{value:B}:void 0)};
_.w.canNotifyPath=function(G){return this.mutablePropNames.has(G)&&!zel(this.signalProxy,G)};
_.w.notifySplices=function(G,B){this.signalProxy.notifySplices(XQ(G),B)};
_.w.pop=function(G){var B=this.signalProxy;G=XQ(G);var F=_.C(G);G=F.next().value;F=fn(F);return jI(B,G).pop(F)};
_.w.push=function(G){var B=_.xS.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[XQ(G)].concat(_.gi(B)))};
_.w.set=function(G,B,F){if(F)throw Error("Mg");G==="hidden"?this.hostElement.hidden=!!B:this.signalProxy.setWithPath(XQ(G),B)};
_.w.setProperties=function(G){G=_.C(Object.entries(G));for(var B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;F=F.next().value;this[B]=F}};
_.w.splice=function(G,B,F){var D=_.xS.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[XQ(G),B,F].concat(_.gi(D)))};
_.w.unlinkPaths=function(){};
_.w.unlisten=function(G,B,F){G=XBS(G);if(this.boundListeners){var D=this.boundListeners.get(G);if(D){F=B+F;var u=D[F];u&&(eW(G,B,u)||G.removeEventListener(B,u),delete D[F])}}};
_.w.unshift=function(G){var B=_.xS.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[XQ(G)].concat(_.gi(B)))};
_.ZN.Object.defineProperties(V7.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 zgM=[Array,Boolean,Date,Number,Object,String];var vaM=!1;var Up=function(){var G=HTMLElement.apply(this,arguments)||this;G.restamp=!1;G.notifyDomChange=!1;G.JSC$13940_didCallConnected=!1;G.JSC$13940_renderDebouncer=null;G.disableTemplateUpdateSignalImpl=vc()?void 0:_.qg(!1,void 0,"kCcqO");var B;G.getDisableTemplateUpdate=(B=G.disableTemplateUpdateSignalImpl)==null?void 0:B[0];var F;G.setDisableTemplateUpdate=(F=G.disableTemplateUpdateSignalImpl)==null?void 0:F[1];return G};
_.r(Up,HTMLElement);var K2N=function(G){G.conditionSignalImpl!=null||(G.conditionSignalImpl=new n4(_.qg(!1,void 0,"ahkyAc")));return G.conditionSignalImpl};
_.w=Up.prototype;_.w.showHideChildren=function(G){auN(this,G,this.if)};
_.w.attributeChangedCallback=function(G,B,F){if(this.JSC$13940_didCallConnected)throw Error("Qg`"+G);G==="notify-dom-change"?this.notifyDomChange=F!==null:G==="restamp"&&(this.restamp=F!==null)};
_.w.debounceRender=function(){this.JSC$13940_renderDebouncer=_.cL(this.JSC$13940_renderDebouncer,zc,this.JSC$13940_renderImpl.bind(this));_.Tu(this.JSC$13940_renderDebouncer)};
_.w.disconnectedCallback=function(){var G=(0,_.gK)(this).parentNode;(!G||G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in G&&!G.host)&&mrP(this)};
_.w.connectedCallback=function(){var G=this;if(_.X("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13940_didCallConnected=!0,Drs?oaQ():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.X("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){K2N(G).getWithPath([]);G.debounceRender()});
else{var B=(0,_.gK)(this).parentNode,F={parentNode:B==null?void 0:B.nodeName};B instanceof Element&&(F.parentClassName=B.className);_.em(new _.Uf("PsDomIf connected with undefined parentSignalProxy",F))}};
_.w.render=function(){_.Zz()};
_.w.JSC$13940_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var G=this.if,B=!1;if(G){this.hasInstance()||(XiT(this),B=!0);a:{var F=(0,_.gK)(this).parentNode;if(this.hasInstance()){var D=this.instance.children;if((D==null?0:D.length)&&(0,_.gK)(this).previousSibling!==D[D.length-1])for(var u=0;u<D.length;u++)(0,_.gK)(F).insertBefore(D[u],this)}else{if(!F){F=!1;break a}Qdt(this,F)}F=!0}if(!F)return}else this.restamp&&mrP(this);auN(this,!1,G);G&&!B&&XiT(this);uxq&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.w.hasInstance=function(){return!!this.instance};
var Qdt=function(G,B){var F=G.parentSignalProxy;if(vc()){var D=_.C(_.qg(!0,void 0,"QNXUce"));var u=D.next().value;D=D.next().value;F=G.parentSignalProxy}else{var R;var N=new lY((R=jdy(G))!=null?R:{},function(U){var q=jI(G.parentSignalProxy,U).getChangeRecordSignal([]);U=_.qg(void 0,void 0,"mIYvwe");var h=new n4(U);N.effect(function(){if(G.getDisableTemplateUpdate&&!G.getDisableTemplateUpdate()){var K=q();h.notifyPath(XQ(K.path),{value:K.value})}});
return h});
G.parentSignalProxy.childSignalProxies.push(N);var y=F=N}F=ZOc(G.templateInfo,G.templateInfo.nodeInfoList,F,{eventListenerHost:G.eventListenerHost,hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,enabledSignal:vc()?u:void 0,getModel:function(){return jdy(G)}}).root;
G.instance={root:F,children:[],hidden:!1,signalProxy:y,getTemplateUpdatesEnabled:u,setTemplateUpdatesEnabled:D};y=_.C(F.childNodes);for(u=y.next();!u.done;u=y.next())G.instance.children.push(u.value);(0,_.gK)(B).insertBefore(G.instance.root,G)},jdy=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var B={},F;
for(F in G)G.hasOwnProperty(F)&&(B[F]=G[F]);return B}},mrP=function(G){if(G.instance){var B=G.instance.children;
if(B.length){var F=(0,_.gK)(B[0]).parentNode;if(F){F=(0,_.gK)(F);for(var D=0;D<B.length;D++)F.removeChild(B[D])}}vc()?G.instance.setTemplateUpdatesEnabled(!1):G.instance.signalProxy.dispose();G.instance=void 0}},auN=function(G,B,F){B=B||!F;
G.instance&&G.instance.hidden!==B&&(G.instance.hidden=B,Vbz(B,G.instance.children))},XiT=function(G){if(vc()){var B=G.instance;
B&&pE(G.parentSignalProxy.owner,function(){return!B.getTemplateUpdatesEnabled()})&&B.setTemplateUpdatesEnabled(!0)}else G.setDisableTemplateUpdate(!1)};
_.ZN.Object.defineProperties(Up.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var G=this;return pE(this.parentSignalProxy.owner,function(){return K2N(G).getWithPath([])})},
set:function(G){G||(vc()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));K2N(this).setWithPath([],!!G)}}});
_.ZN.Object.defineProperties(Up,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Up);var L2U=[],qu=function(){var G=HTMLElement.apply(this,arguments)||this;G.as="item";G.indexAs="index";G.itemsIndexAs="itemsIndex";G.targetFramerate=20;G.notifyDomChange=!1;G.isDetached=!1;G.JSC$13947_renderDebouncer=null;G.instances=[];G.chunkingId=null;G.chunkCount=null;G.shouldMeasureChunk=!1;G.shouldContinueChunking=!1;G.renderStartTime=null;G.JSC$13947_didCallConnected=!1;return G};
_.r(qu,HTMLElement);var r6G=function(G){G.itemSignalImpl!=null||(G.itemSignalImpl=new n4(_.qg(L2U,void 0,"fBC3h")));return G.itemSignalImpl},W2G=function(G,B){Array.isArray(B)||(B=L2U);
r6G(G).setWithPath([],B)};
_.w=qu.prototype;_.w.showHideChildren=function(G){for(var B=_.C(this.instances),F=B.next();!F.done;F=B.next())Vbz(G,F.value.children)};
_.w.notifyPath=function(G,B){G=XQ(G);G[0]==="items"&&(G.length===1?W2G(this,B):r6G(this).setWithPath(G.slice(1),B))};
_.w.canNotifyPath=function(G){return G==="items"};
_.w.attributeChangedCallback=function(G,B,F){if(this.JSC$13947_didCallConnected)throw Error("Rg`"+G);G==="as"?this.as=F:G==="index-as"?this.indexAs=F:G==="items-index-as"?this.itemsIndexAs=F:G==="initial-count"?this.initialCount=Number(F):G==="notify-dom-change"?this.notifyDomChange=F!==null:G==="target-framerate"&&(this.targetFramerate=Number(F))};
_.w.disconnectedCallback=function(){this.isDetached=!0;for(var G=0;G<this.instances.length;G++)H$a(this,G);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.w.connectedCallback=function(){var G=this;if(_.X("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var B=r6G(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var u=B(),R=XQ(u.path);if(R[0]===void 0||R[0]==="splices"||R[0]==="length")G.debounceRender();else{var N=R[0];if(N=G.instances[typeof N==="string"?Math.floor(Number(N)):N])R=[G.as].concat(_.gi(R.slice(1))),N.signalProxy.notifyPath(R,u)}});
this.JSC$13947_didCallConnected=!0;Drs?oaQ():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var F=(0,_.gK)((0,_.gK)(this).parentNode),D=0;D<this.instances.length;D++)F.insertBefore(this.instances[D].root,this);this.chunkingId&&this.render()}}else F=(0,_.gK)(this).parentNode,D={parentNode:F==null?void 0:F.nodeName},F instanceof Element&&(D.parentClassName=F.className),_.em(new _.Uf("PsDomRepeat connected with undefined parentSignalProxy",D))};
_.w.debounceRender=function(){this.JSC$13947_renderDebouncer=_.cL(this.JSC$13947_renderDebouncer,zc,this.JSC$13947_renderImpl.bind(this));_.Tu(this.JSC$13947_renderDebouncer)};
_.w.render=function(){this.debounceRender();_.Zz()};
_.w.JSC$13947_renderImpl=function(){var G=this;if(!this.parentSignalProxy.isDisposed){var B=this.items,F=kht(this,B.length);O$8(this,B,F);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){G.chunkingId=null;if(G.shouldMeasureChunk){var D=performance.now()-G.renderStartTime;G.chunkCount=Math.round(Math.ceil(1E3/G.targetFramerate)/D*G.chunkCount)||1}G.shouldContinueChunking&&G.debounceRender()}));
uxq&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var kht=function(G,B){var F=B,D=G.instances.length;if(G.initialCount){if(G.chunkCount){var u=Math.min(Math.max(B-D,0),G.chunkCount);F=Math.min(D+u,B)}else F=Math.min(B,G.initialCount),u=Math.max(F-D,0),G.chunkCount=u||1;G.shouldMeasureChunk=u===G.chunkCount;G.shouldContinueChunking=F<B;G.renderStartTime=performance.now()}return F},O$8=function(G,B,F){for(var D=0;D<F;D++){var u=G.instances[D],R=B[D];
u?(u.signalProxy.setWithPath([G.as],R),u.signalProxy.setWithPath([G.indexAs],D)):e4G(G,R,D)}for(B=G.instances.length-1;B>=D;B--)F=G,u=B,H$a(F,u),_.C(F.instances.splice(u,1)).next().value.signalProxy.dispose()},H$a=function(G,B){G=G.instances[B];
B=(0,_.gK)(G.root);for(var F=0;F<G.children.length;F++)B.appendChild(G.children[F])},e4G=function(G,B,F){var D={};
B=Object.assign({},$rU(G),(D[G.as]=B,D[G.indexAs]=F,D[G.itemsIndexAs]=F,D));var u=new lY(B,function(N){if(N!==G.as&&N!==G.indexAs){if(N===G.itemsIndexAs)return jI(u,G.indexAs);var y=jI(G.parentSignalProxy,N).getChangeRecordSignal([]);N=_.qg(void 0,void 0,"Y7rQEe");var U=new n4(N);u.effect(function(){var q=y();U.notifyPath(XQ(q.path),{value:q.value})});
return U}});
G.parentSignalProxy.childSignalProxies.push(u);D=ZOc(G.templateInfo,G.templateInfo.nodeInfoList,u,{eventListenerHost:G.eventListenerHost,getModel:function(){var N={};return Object.assign({},$rU(G),(N[G.as]=u.model[G.as],N[G.indexAs]=u.model[G.indexAs],N[G.itemsIndexAs]=u.model[G.indexAs],N))},
hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,methodInvocationRequirement:wiv,enabledSignal:G.stampingEnabled}).root;B={root:D,children:[],signalProxy:u};D=_.C(D.childNodes);for(var R=D.next();!R.done;R=D.next())B.children.push(R.value);D=(D=G.instances[F+1])?D.children[0]:G;(0,_.gK)((0,_.gK)(G).parentNode).insertBefore(B.root,D);G.instances[F]=B},$rU=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var B={},F;
for(F in G)G.hasOwnProperty(F)&&(B[F]=G[F]);return B}};
qu.prototype.itemForElement=function(G){var B=this,F=this.instances.find(function(D){return D.children.includes(G)});
if(F)return pE(this.parentSignalProxy.owner,function(){return F.signalProxy.getWithPath([B.as])})};
qu.prototype.indexForElement=function(G){var B=this.instances.findIndex(function(F){return F.children.includes(G)});
return B>=0?B:void 0};
_.ZN.Object.defineProperties(qu.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var G=this;return pE(this.parentSignalProxy.owner,function(){return r6G(G).getWithPath([])})},
set:function(G){W2G(this,G)}},
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}}});
_.ZN.Object.defineProperties(qu,{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",qu);var z4G,b$q;_.Ep=new _.oV("STATE_STORE_TOKEN");z4G=new _.oV("SELECT_TOKEN");b$q=new _.oV("DISPATCH_TOKEN");var JwL={getSelectFn:function(){var G;return(G=_.te().resolve(_.fH(z4G)))!=null?G:Mb8},
getDispatchFn:function(){var G;return(G=_.te().resolve(_.fH(b$q)))!=null?G:_.oy().dispatch.bind(_.oy())},
getAppStore:function(){return _.te().resolve(_.Ep)}},pBl,di8=!1;var gaM=function(){};var f5l=void 0;var VJ8=function(){};
VJ8.prototype.hasAttribute=function(G){if(G==="dir")return!1;if(G==="disable-upgrade"){var B,F;return(F=(B=this.hostElement)==null?void 0:B.hasAttribute("disable-upgrade"))!=null?F:!1}throw Error("Sg`"+G);};
VJ8.prototype.attributeChangedCallbackWrapper=function(G,B,F){if(G==="disable-upgrade"&&this.__isUpgradeDisabled&&F===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var D;((D=this.hostElement)!=null?D:this).isConnected&&this.connectedCallback()}else B===F||this.__isReflecting||this.attributeChangedCallback(G,B,F)};
VJ8.prototype.getExtraMethodsToForward=function(){for(var G=this,B=[],F=_.C(v58),D=F.next(),u={};!D.done;u={tagName$jscomp$67:void 0,name$jscomp$631:void 0},D=F.next())u.name$jscomp$631=D.value,D=void 0,u.name$jscomp$631==="_setPendingProperty"?(u.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),D=function(R){return function(N,y,U){N7(R.tagName$jscomp$67,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return G._setPendingProperty(N,y,U)}}(u)):D=function(R){return function(){return G[R.name$jscomp$631].apply(G,
_.gi(_.xS.apply(0,arguments)))}}(u),B.push([u.name$jscomp$631,
D]);return B};
for(var xiJ=n5P(y6s((0,_.FM)(VJ8))),i$g=["disabled","disable-upgrade"],o5G=(0,_.FM)(function(){}),MJ8=new Set(Object.getOwnPropertyNames(o5G.prototype)),wiM=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.gi(MJ8))),Dr6=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),v58=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),pis=new Set([].concat(_.gi(Dr6),_.gi(v58),_.gi(MJ8))),Yua=_.C(pis),A6P=Yua.next();!A6P.done;A6P=Yua.next())HlI.add(A6P.value);var R4L={created:function(){EaQ(this);this.initializeInjection()}};var h4o=!1,Iy=window.ShadyDOM,r6S=["appendChild","insertBefore","removeChild","replaceChild"],L2J=[Node];Iy&&L2J.push(Iy.Wrapper);var z4S,b$I,o5S={};var fW,drJ=new WeakMap,pi6=new Set;var fuM=new Set("context didCallReady is info params signalProxy".split(" ")),Z$g="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),g5z="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var drU=Xh({entities:gRs}),J6w=new bo(drU);var c6s=function(){return _.DO.apply(this,arguments)||this};
_.r(c6s,_.DO);_.ZN.Object.defineProperties(c6s.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return J6w}}});
_.c([_.uA()],c6s);_.hi=[Nu.prototype,c6s.prototype];_.K4={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var G=this,B={};setTimeout(function(){var F;return _.cZ((F=G.hostElement)!=null?F:G,"yt-live-chat-add-tooltip-target",B)},0);
this.handler_=B.handler},
detached:function(){if(this.handler_){var G;this.handler_.removeElementFromSupportingTooltips((G=this.hostElement)!=null?G:this)}this.handler_=null}}};_.Pc=new _.oV("ICON_MANAGER_TOKEN");var TXU=[48,20,18,16,15,13,12],l3M=new Map,CmL=new Set,u_Q=new Set,w8I=new Set,DTM=new Set,RqM=new Set,ykU=new Promise(function(G){var B=!1,F=!1,D=!1,u=[],R=function(N){if("detail"in N)if(N=N.detail,N.name==="yt-icons")NcJ(N),B=!0;else if(N.name==="yt-sys-icons")NcJ(N),F=!0;else{var y;((y=N.name)==null?0:y.includes("yt-sys-icons"))&&N.size!==24&&(NcJ(N,!0),u.push(N.size),u.length===TXU.length&&(D=!0))}B&&F&&D&&(window.removeEventListener("iron-iconset-added",R),G())};
window.addEventListener("iron-iconset-added",R)}),Iuq=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"]]);_.aS={};_.aS.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.zx,computeHref_:function(G,B){B=B===void 0?!1:B;if(!G||G.commandExecutorCommand)return null;var F=Jto(G,B);return B||F!==null?F?_.X("enable_polymer_resin")?_.Sz(F).toString():F:null:(_.em(new _.Uf("computeHref was null",this.is,G)),null)},
computeOptionalHref_:function(G){return this.computeHref_(G,!0)},
computeNofollow_:function(G){return G?bhc(G)?"nofollow":null:null},
computeIcon_:function(G){return G&&G.iconType?_.xT(G.iconType):""},
resolveCommand:function(G,B,F){B=B===void 0?{}:B;return _.Br(G,this.hostElement,B,F===void 0?!1:F)}};var tJt,mo;_.fuv={};tJt=null;
mo={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_=wh8(this.viewroot));_.Hc(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var G=this;this.unobserve_();if(_.X("kevlar_vimio_use_shared_monitor"))F1(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var B=[];this.visibilityOptionVisible_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=B}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){UTS(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 G=_.mG(this.parentNode,function(F){var D,u=(D=F.polymerController)!=null?D:F;return!!u.getVisibilityObserverForChild&&u.getVisibilityObserverForChild()},!0);
if(G){var B;this.localVisibilityObserver_=((B=G.polymerController)!=null?B:G).getVisibilityObserverForChild()}else tJt||(tJt=wh8()),this.localVisibilityObserver_=tJt;return this.localVisibilityObserver_},visibilityCallback:function(G){G?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.X("kevlar_use_vimio_behavior")||(mo={});mo&&!_.X("kevlar_use_vimio_behavior")&&(delete mo.attached,delete mo.detached);_.fuv.YtVisibilityObserverBehavior=[mo];var Z$T={};Z$T.YtVisualElementBehavior=[_.fuv.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.X("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.X("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var G=this.getScreenLayer&&this.getScreenLayer(),B=this.getVisibilityLogger();B&&B.reportShown(this,void 0,G)}},
onHidden:function(){if(_.X("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.X("kevlar_vimio_use_shared_monitor")){var G=this.getScreenLayer&&this.getScreenLayer(),B=this.getVisibilityLogger();B&&B.reportHidden(this,void 0,G)}},
getVisibilityLogger:function(){return _.X("kevlar_use_vimio_behavior")?_.De():null},
shouldSkipLogging:function(){if(_.v5("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var G=this.getParentRenderer&&this.getParentRenderer();if(!G)return!1;var B,F=(B=G.polymerController)!=null?B:G;if(!F.data)return!1;G=this.data.trackingParams;G=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:G;var D;B=(D=F.data)==null?void 0:D.trackingParams;var u,R;B=((u=F.data)==null?0:u.loggingDirectives)?(R=F.data)==null?void 0:R.loggingDirectives.trackingParams:B;return G&&B&&G===
B}}];var mTI=new Map,nk;var EHz=function(G){this.layer=G},Dw=function(G){return G.layer!==void 0?G.layer:G.parent?Dw(G.parent):G.layer=0};var WZJ;_.g={};WZJ=0;_.g.YtRendererBehavior=[_.aS.YtComponentBehavior,Z$T.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_:_.X("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var G,B;(B=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||B.removeEventListener("scroll",_.x7(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();KZS(this.hostElement);sc(_.Pv(),this.hostElement);VY.delete(this.hostElement)},
registerRenderer:function(G){var B;((B=G.polymerController)!=null?B:G).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(G),this.markDirty())},
unregisterRenderer_:function(G){this.useVimio_||(this.childCache_.delete(G),this.markDirty())},
attached:function(){var G=this,B=this.getParentRenderer();if(B){var F,D,u;(D=(F=(u=B.polymerController)!=null?u:B).registerRenderer)==null||D.call(F,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var R,N;(N=(R=this.monitorScrollElement)!=null?R:this.hostElement)==null||N.addEventListener("scroll",_.x7(this,this.onScroll))}_.Lu.addJob(function(){X8M(G.hostElement)},8);
F=new EHz(this.screenLayer||void 0);(B=VY.get(B))&&B.layerNode&&(F.parent=B.layerNode);B={};ris(this.hostElement,(B.isRenderer=!0,B.layerNode=F,B[hEg]=this.data,B))},
getParentRenderer:function(){for(var G=this.hostElement.parentNode,B,F;G&&((B=VY.get(G))==null||!B.isRenderer)&&!((F=G.polymerController)!=null?F:G).isRenderer_;)G=G.parentNode||G.host;return G},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.X("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.on("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.X("debug_web_ve_data")&&this.data.trackingParams){var G="";try{G=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(F){_.k2(F)}if(G){var B=Cog(G,1);B!==void 0&&(this.hostElement.dataset.veIndex=String(B));G=Cog(G,2);
G!==void 0&&(this.hostElement.dataset.ve=String(G))}}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,_.X("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.yX(this.data.loggingDirectives.trackingParams)),this.visualElement=_.u4(_.Rh(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var G=this.data.targetId;_.xl(_.Pv(),G,this.hostElement)}else sc(_.Pv(),this.hostElement)},
onScroll:function(){var G=Date.now();G-this.lastHandledScroll_<50||(this.lastHandledScroll_=G,this.markDirty())},
markDirty:function(){_.X("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Hal(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var G=this.getParentRenderer();if(G&&(G=VY.get(G))&&G.layerNode)return Dw(G.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.gi(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++)this.sendImpression(this.data.impressionEndpoints[G]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(G){G.clickTrackingParams&&delete G.clickTrackingParams;var B,F;(G==null?0:(B=G.commandMetadata)==null?0:(F=B.webCommandMetadata)==null?0:F.sendPost)?_.fi(this.hostElement,[G,{impression:!0}]):_.tL(this.hostElement,[G],this.hostElement)},
logExplicitClick:function(G){var B=_.qW(this.getScreenLayer());if(B){var F,D=(F=G.polymerController)!=null?F:G;G=D.visualElement;D=D.trackingParams||D.clickTrackingParams;!G&&D&&(G=_.yX(D));G&&_.$I(B,G)}}}];var g5a={},XZ=function(){return _.DO.apply(this,arguments)||this};
_.r(XZ,_.DO);XZ.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XZ.prototype.onPdgItemBehaviorClick=XZ.prototype.onPdgItemBehaviorClick;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],XZ.prototype,"data",void 0);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],XZ.prototype,"onPdgItemBehaviorClick",null);_.c([_.uA()],XZ);g5a.YtPdgLiveChatItemBehavior=[XZ.prototype,_.g.YtRendererBehavior];var Suy;var sdT;_.Q8={};_.Q8.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var jx=function(){var G=SW.apply(this,arguments)||this;G.switchTemplateAtRegistration=!1;return G};
_.r(jx,SW);jx.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||$Ts(this),_.ywg(this,"doRender"),this.doRender())};
jx.prototype.debounceRender=function(){this.templatingFn&&_.kT(this,"doRender",this.doRender)};
jx.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.k2(Error("bh"))};
jx.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.c([zrz()],jx);var xr7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,L4={},vJI=(L4[1]={filterString:null,isUnwrappable:null,unwrap:null},L4[2]={filterString:function(G,B,F){return Z$(F)},
isUnwrappable:function(G){return G instanceof BY},
unwrap:function(G){return DK(G)}},L4[3]={filterString:function(G,B,F){return xr7.test(F)?F:gm.toString()},
isUnwrappable:function(G){return IM(G)},
unwrap:function(G){return _.fe(G)}},L4[4]={filterString:function(){return gm.toString()},
isUnwrappable:function(G){return G instanceof M3},
unwrap:function(G){return _.YS(G).toString()}},L4[5]={filterString:function(G,B,F){return F},
isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G.toString()}},L4[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(G){return G instanceof _.Nm},
unwrap:function(G){return nI(G)}},L4[8]={filterString:function(G,B,F){F=String(F).toLowerCase();
return GNz(G,B,F)?F:"zClosurez"},
isUnwrappable:null,unwrap:null},L4[10]={filterString:null,isUnwrappable:null,unwrap:null},L4);c$[dT["default"]]=MLs;var p8S=[];(function(){var G=gT;gT=function(B){G==null||G(B);qh(function(){for(var F=0;F<B.length;F++)YIc(B[F])})}})();var Ppq=function(){var G=_.DO.apply(this,arguments)||this;G.hasUnmounted=!1;return G};
_.r(Ppq,_.DO);_.w=Ppq.prototype;_.w.beforeRegister=function(){var G=this.doIdomRender;this.templatingFn?_.k2(Error("ah")):(this.templatingFn=G,this.switchTemplateAtRegistration=!0,VLJ(this))};
_.w.attached=function(){};
_.w.detached=function(){YIc(this.hostElement)};
_.w.renderIdom=function(){throw Error("dh");};
_.w.doIdomRender=function(){var G=this;xjo(this.hostElement,function(){G.renderIdom()})};
_.c([_.uA()],Ppq);var GRq=[jx.prototype,Ppq.prototype];var Bcq,iaw=function(){return Bcq!==void 0?Bcq:Bcq=document.createElement("template")};
document.head.appendChild(iaw().content);var FZq;var DTv,u_7=function(){return DTv!==void 0?DTv:DTv=document.createElement("template")};
document.head.appendChild(u_7().content);var Rqv;var w8q=document.head,Cm8=w8q.appendChild,NcU;if(Rqv===void 0){var ykw=document.createElement("template");_.H(ykw,"\x3c!--css-build:shady--\x3e");ykw.content.insertBefore(u_7().content.cloneNode(!0),ykw.content.firstChild);Rqv=ykw}NcU=Rqv;Cm8.call(w8q,NcU.content);var nJT,l3v=function(){return nJT!==void 0?nJT:nJT=document.createElement("template")};
document.head.appendChild(l3v().content);var UTG;var qIG=document.head,EJU=qIG.appendChild,hqa;if(UTG===void 0){var KZG=document.createElement("template");_.H(KZG,"\x3c!--css-build:shady--\x3e");KZG.content.insertBefore(l3v().content.cloneNode(!0),KZG.content.firstChild);UTG=KZG}hqa=UTG;EJU.call(qIG,hqa.content);var a3G=document.head,mTq=a3G.appendChild,X8v;if(FZq===void 0){var QTa=document.createElement("template");_.H(QTa,"\x3c!--css-build:shady--\x3e");QTa.content.insertBefore(iaw().content.cloneNode(!0),QTa.content.firstChild);FZq=QTa}X8v=FZq;mTq.call(a3G,X8v.content);var jTt,LZL=function(){return jTt!==void 0?jTt:jTt=document.createElement("template")};
document.head.appendChild(LZL().content);var rkP;_.Rx=new _.oV("DARK_THEME_TOKEN");var WZU=new _.vf("accessibilityProperties");var Hay=new _.vf("layoutProperties");var kRt=new _.vf("imageType");var Oa7={};if("ytAttributedStringLinkHoverColor"in Oa7)throw Error("gh`ytAttributedStringLinkHoverColor");(function(G,B){Oa7[G]="value"in B&&"unit"in B?cko(G,B):function(F){try{return B(F)}catch(D){throw Error("eh`"+G+"`"+D.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var eqq=function(G){var B=this;this.holdTime=G===void 0?500:G;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(F){var D=new CustomEvent("LONG_PRESS"),u;(u=F.changedTouches[0].target)==null||u.dispatchEvent(D)};
this.ontouchstart=function(F){B.longPressTimeout=_.uQ(_.Lu,function(){B.onlongpress(F);B.longPressOccurred=!0},B.holdTime)};
this.ontouchmove=function(){_.Lu.cancelJob(B.longPressTimeout);B.longPressTimeout=NaN;B.longPressOccurred=!1;B.moveOccurred=!0};
this.ontouchend=function(F){if(B.longPressTimeout&&!B.longPressOccurred&&!B.moveOccurred){var D;(D=F.changedTouches[0].target)==null||D.dispatchEvent(new Event("click"))}_.Lu.cancelJob(B.longPressTimeout);B.longPressTimeout=NaN;B.longPressOccurred=!1;B.moveOccurred=!1}};var wgJ=function(G,B){eqq.call(this,B);var F=this;this.callback=G;this.onlongpress=function(D){var u;(u=F.callback)==null||u.call(F,D)}};
_.r(wgJ,eqq);var CHz=function(G,B){var F=Object.assign({},B);G=_.C(new Map([["ontouchstart",G.ontouchstart],["ontouchend",G.ontouchend],["ontouchmove",G.ontouchmove]]));for(var D=G.next(),u={};!D.done;u={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},D=G.next()){var R=_.C(D.value);D=R.next().value;R=R.next().value;u.eventName$jscomp$103=D;u.eventHandler$jscomp$2=R;B[u.eventName$jscomp$103]=function(N){return function(y){var U;(U=F[N.eventName$jscomp$103])==null||U.call(F,y);(0,N.eventHandler$jscomp$2)(y)}}(u)}};_.Wr=new _.oV("COMMAND_HANDLER_TOKEN");var I3U=new _.vf("parallelCommand");var ZaU=new _.vf("performOnceCommand");var tLl=new _.vf("serialCommand");var gJc=void 0;var $TL=function(){this.data=[];this.consumer=null};
$TL.prototype.push=function(G){this.consumer?this.consumer(G):this.data.push(G)};var VH={};_.qg(VH,void 0,"sgPmTd");_.qg(null,void 0,"jypsq");_.qg(null,void 0,"mWiOof");var CUM=new $TL;var FTQ=[Eis,hDq,K_v,mPv,aJG,qht,X7t,QkL];var zqG=new _.vf("bracketTextDecorator");var O_=new _.vf("highlightTextDecorator");_.e3=new _.oV("APP_DIRECTION_TOKEN");var KTL={calledOnce:!1,state:"visible"},h3o={calledOnce:!1,state:"hidden"};var bat=new _.oV("ICON_WIZ_COMPONENT_TOKEN");_.Pr=_.Y(function(G){var B=G.icon;var F=G.active;var D=G.className;var u=G.style;var R=G.dataSelected;var N=G.dataDisabled;var y=G.role;var U=G.animateIcon;var q=G.themeOverride;var h=G.ariaHidden;var K=G.ariaExpanded;var a=G.ariaLabel;var m=G.tabindex;var L=G.id;var W=G.size;var e=G.iconFilter;var b=G.gradientColor;var M=G.onKeydown;var t=G.title;return _.l(_.E,{cond:B,then:function(){var T=_.te().resolve(bat);return _.l(T,{icon:B,dataSelected:R,dataDisabled:N,animateIcon:U,themeOverride:q,ariaExpanded:K,
tabindex:m,id:L,active:F,size:W,role:y,className:D,ariaHidden:h,ariaLabel:a,style:function(){return u!=null&&u()||W==null||!W()?u==null?void 0:u():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
title:t,iconFilter:e,gradientColor:b,onKeydown:M})}})},"p");
_.Pr.idomCompat={callbacks:{onKeydown:!0}};var k4M=new _.vf("borderImageProcessor");var $Gc=window.devicePixelRatio||1;var v86=new Map([["yt_outline_bag_black_24","bag"]]);var ry=function(G){var B=this;this.margin=.1;this.whenInViewportWithMargin=G;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){B.requestScan()});
window.addEventListener("touchend",function(){B.requestScan()});
window.addEventListener("updateui",function(){B.requestScan()});
var F=new _.s_((0,_.R_)(this.requestScan,this),100);window.addEventListener("scroll",function(){F.fire()},!0);
window.addEventListener("resize",(0,_.R_)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){B.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.R_)(this.requestScan,this))};
ry.prototype.observe=function(G){this.observationTargets.includes(G)||this.observationTargets.push(G)};
ry.prototype.unobserve=function(G){this.observationTargets=this.observationTargets.filter(function(B){return B!==G})};
ry.prototype.requestScan=function(){var G=this;this.scanRequested||(qh(function(){VLU(G)}),this.scanRequested=!0)};
var VLU=function(G){var B=(1+G.margin)*(document.documentElement.clientHeight||window.innerHeight);G.observationTargets=G.observationTargets.filter(function(F){var D=F.getBoundingClientRect();(D=B>D.top&&!!D.height)&&G.whenInViewportWithMargin(F);return!D&&F.parentNode});
G.scanRequested=!1};
ry.prototype.disconnect=function(){this.observationTargets=[]};var vJq,MLL;vJq=_.C(_.qg(ABs(),void 0,"O3X2wd"));_.oJN=vJq.next().value;MLL=vJq.next().value;window.addEventListener("resize",function(){MLL(ABs())});var p8G={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},YIq=void 0,AkU=window.innerWidth,dTy=window.innerHeight;window.addEventListener("resize",function(){YIq=void 0});var Jkq;if("IntersectionObserver"in window)Jkq=cBL();else{if(YIq===void 0){var ckP;ckP="matchMedia"in window?window.matchMedia(p8G.landscape+","+p8G.portrait).matches:void 0;YIq=ckP!==void 0?ckP:AkU>=930&&dTy>=550||AkU>=550&&dTy>=930}Jkq=YIq?{observe:function(G){qh(function(){var B;(B=G.onViewportEntered)==null||B.call(G)})},
unobserve:function(){}}:new ry(function(G){qh(function(){var B;
(B=G.onViewportEntered)==null||B.call(G)})})}var dGQ=Jkq;var TcT=_.Y(function(G){var B=!1,F=_.W5("img",function(D){_.VI(function(){B=!0;D.onload=null})});
_.bC(function(){var D,u=(D=G.data)==null?void 0:D.call(G),R,N=(R=G.getSrc)==null?void 0:R.call(G).cb,y;D=(y=G.config)==null?void 0:y.call(G);if(y=F.value)if(R=function(q,h){if(!B)return N?N(q,h):q},fGg(y,D),_.X("web_image_dont_reload_same_src")&&IGS(y,u,R))_.X("web_image_dont_reload_same_src_simulate_load")&&y.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var U;TGz(y,u||null,R,D,(U=G.lazy)==null?void 0:U.call(G))}},"zS0jKb");
return _.l("img",{el:F})},"r");
TcT.idomCompat=!0;_.vr=_.Y(function(G){var B=function(){var F,D=G.data(),u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI,v6,Jg,c6,q8;var n7={contentMode:(u=G.contentMode)==null?void 0:u.call(G),loadedClass:(R=G.loadedClass)==null?void 0:R.call(G),isPreloaded:(N=G.isPreloaded)==null?void 0:N.call(G),notifyOnLoaded:(y=G.notifyOnLoaded)==null?void 0:y.call(G),notifyOnUnloaded:(U=G.notifyOnUnloaded)==null?void 0:U.call(G),preferredThumbnail:(q=G.preferredThumbnail)==null?void 0:q.call(G),preserveHeight:(h=G.preserveHeight)==
null?void 0:h.call(G),preserveWidth:(K=G.preserveWidth)==null?void 0:K.call(G),objectPosition:(a=G.objectPosition)==null?void 0:a.call(G),targetWidth:(m=G.targetWidth)==null?void 0:m.call(G),targetHeight:(L=G.targetHeight)==null?void 0:L.call(G),shouldShowPlaceholder:(W=G.shouldShowPlaceholder)==null?void 0:W.call(G),useWidth:(e=G.useWidth)==null?void 0:e.call(G),isToggled:(b=G.isToggled)==null?void 0:b.call(G),alt:(M=G.alt)==null?void 0:M.call(G),className:(t=G.className)==null?void 0:t.call(G),
onerror:G.onerror,onload:G.onload,style$:((T=G.style$)==null?void 0:T.call(G))||((A=G.style)==null?void 0:A.call(G)),color:(Z=G.color)==null?void 0:Z.call(G),width:(P=G.width)==null?void 0:P.call(G),height:(RI=G.height)==null?void 0:RI.call(G),"aria-hidden$":(c6=(yo=G["aria-hidden$"])==null?void 0:yo.call(G))!=null?c6:(hg=G.ariaHidden)==null?void 0:hg.call(G),draggable:(US=G.draggable)==null?void 0:US.call(G),"data-disabled$":(q8=(aI=G["data-disabled$"])==null?void 0:aI.call(G))!=null?q8:(v6=G.dataDisabled)==
null?void 0:v6.call(G),size:(Jg=G.size)==null?void 0:Jg.call(G)};return ZsU(D,n7,(F=G.hideOn404)==null?void 0:F.call(G))};
return _.l(_.LH,null,_.l(_.Xm,{when:function(){var F;return((F=B())==null?void 0:F.type)==="image"}},function(){return _.l(TcT,{data:function(){return B().image},
getSrc:{cb:function(F,D){var u=B().image.sources,R=B().config.isPreloaded,N=B().config.useWidth,y=B().config.targetWidth,U=B().config.targetHeight,q=B().config.preferredThumbnail;return _.z3Q(D,u,R,N,y,U,q)||""}},
config:function(){var F=B().config,D;for(D in F)F[D]===void 0&&delete F[D];return F},
lazy:G.renderLazy})}),_.l(_.Xm,{when:function(){var F;
return((F=B())==null?void 0:F.type)==="icon"}},function(){return _.l(_.Pr,{icon:function(){return B().iconName},
role:function(){return B().config.role},
className:function(){return B().config.className},
style:function(){return B().config.style$+";width: "+(B().config.width+"px;height: ")+(B().config.height+"px;color: ")+(B().config.color+";")},
ariaLabel:function(){return B().config["aria-label$"]},
ariaHidden:function(){return B().config["aria-hidden$"]},
dataDisabled:function(){return B().config["data-disabled$"]},
active:function(){return B().config.isToggled},
size:function(){return B().config.size}})}))},"s");
_.vr.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var I3w=_.Y(function(G){var B=function(u){var R,N,y=_.VX(function(m){R=u();N=vN(function(){for(var L=_.C(K()),W=L.next();!W.done;W=L.next()){W=xGo(W.value);W=typeof W==="string"?document.createTextNode(W):W;if(!(W instanceof Node)){L=new _.Uf("Part is not a node",W,typeof W);_.k2(L);break}m.appendChild(W)}})}),U=_.pW(G.config),q=function(){var m,L=u();
return!((m=U())==null||!m.ariaLabel)||!(L.commandRuns&&L.commandRuns.length!==0||L.paragraphStyleRuns&&L.paragraphStyleRuns.length!==0)},h=S0S(U,{isEqual:GZl}),K=function(){var m=u(),L=h(),W=[],e=m.content.length,b,M=(b=_.te().resolve(_.fH(_.Rx)))==null?void 0:b();
if(m.paragraphStyleRuns)for(var t=_.C(m.paragraphStyleRuns),T=t.next();!T.done;T=t.next()){var A=W.push,Z=A.apply;var P=void 0,RI=T.value;if((P=RI.listGroup)!=null&&P.listItems){var yo=[];b:switch(RI.listGroup.listType){case "LIST_TYPE_BULLET":var hg="ul";break b;default:hg="span"}yo.push(Hr({run:RI,textLength:e,tag:hg,config:{className:"yt-core-attributed-string__list-group"},startIndex:RI.startIndex,length:RI.length}));for(var US=_.C(RI.listGroup.listItems),aI=US.next();!aI.done;aI=US.next()){var v6=
aI.value;b:switch(RI.listGroup.listType){case "LIST_TYPE_BULLET":var Jg="li";break b;default:Jg="span"}yo.push(Hr({run:RI,textLength:e,tag:Jg,startIndex:v6.startIndex,length:v6.length}))}var c6=yo}else c6=[];Z.call(A,W,_.gi(c6))}if(m.styleRuns&&(L==null||!L.noStyleRuns))for(var q8=_.C(m.styleRuns),n7=q8.next();!n7.done;n7=q8.next()){var Ts=n7.value,hT=Ts,L7=M,K7=L,kD=n8M({extension:_.Q(hT.styleRunExtensions,N_a),isDarkTheme:L7===void 0?!1:L7,runColor:hT.fontColor}),Rz=void 0,KQ=hT,pQ=[];kD&&pQ.push("yt-core-attributed-string--link-inherit-color");
KQ.italic&&pQ.push("yt-core-attributed-string--italicized");KQ.underline&&KQ.strikethrough?pQ.push("yt-core-attributed-string--underline-strikethrough",UGI(KQ.underline)):KQ.underline?pQ.push("yt-core-attributed-string--underlined",UGI(KQ.underline)):KQ.strikethrough&&pQ.push("yt-core-attributed-string--strikethrough",UGI(KQ.strikethrough));if(KQ.baselineOffset){a:switch(KQ.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Rz="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Rz=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Rz="yt-core-attributed-string--baseline-offset-unknown"}pQ.push(Rz)}var aq=pQ.join(" ");var Zq=hT,eN=kD,Ps={};if(Zq.weight||Zq.weightLabel)Ps.fontWeight=lGS(Zq,K7==null?void 0:K7.isHeadline).toString();eN&&(Ps.color=eN);W.push(Hr({run:Ts,textLength:e,tag:"span",config:{className:aq,style:Ps},startIndex:Ts.startIndex,length:Ts.length}))}if(m.decorationRuns)for(var el=_.C(m.decorationRuns),sG=el.next();!sG.done;sG=el.next()){var qH=
sG.value,TL={};if(qH.textDecorator){var Iz=qH.textDecorator,N8=M===void 0?!1:M,EA=[],EG=_.Q(Iz,O_),f7=_.Q(Iz,zqG);if(EG){var M8=EA,NH=M8.concat,Jj=[],JT=n8M({extension:_.Q(EG.highlightTextDecoratorExtensions,CeN),isDarkTheme:N8,runColor:EG.backgroundColor});JT&&Jj.push("background-color: "+JT+";");EG.backgroundCornerRadius!==void 0&&Jj.push("border-radius: "+EG.backgroundCornerRadius+"px;");EG.leftPadding!==void 0&&Jj.push("padding-left: "+EG.leftPadding+"px;");EG.rightPadding!==void 0&&Jj.push("padding-right: "+
EG.rightPadding+"px;");EG.topPadding!==void 0&&Jj.push("padding-top: "+EG.topPadding+"px;");EG.bottomPadding!==void 0&&Jj.push("padding-bottom: "+EG.bottomPadding+"px;");EA=NH.call(M8,Jj)}else if(f7){var w$=EA,xD=w$.concat,ia=N8?"#2ba640":"#107516",$0=f7.color?yBo(f7.color):ia;EA=xD.call(w$,["padding: 2px;","border-top: solid "+$0+" 2px;","border-bottom: solid "+$0+" 2px;","background: linear-gradient(135deg, "+$0+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+$0+" 3px, rgba(0, 0, 0, 0) 3px);"])}var $d=
EA.join(" ");TL.style$=$d;var DB=qH.textDecorator,Sy=[],HY=_.Q(DB,zqG);_.Q(DB,O_)?Sy.push("yt-core-attributed-string--highlight-text-decorator"):HY&&Sy.push("yt-core-attributed-string--bracket-text-decorator");var lZ=Sy.join(" ");TL.className=lZ;TL.dir="auto"}var OS=_.Q(qH.textDecorator,O_),Ag=_.Q(qH.textDecorator,zqG),gU=_.Q(qH.textDecorator,O_),rw=_.Q(qH.textDecorator,zqG);W.push(Hr({run:qH,textLength:e,tag:"span",config:TL,startIndex:(OS==null?void 0:OS.startIndex)||(Ag==null?void 0:Ag.startIndex)||
0,length:(gU==null?void 0:gU.length)||(rw==null?void 0:rw.length)||0}))}if(m.commandRuns&&(L==null||!L.noEndpoints))for(var LN=_.C(m.commandRuns),kS=LN.next();!kS.done;kS=LN.next()){var OA=kS.value,Hs=NGS(OA,L);W.push(Hr({run:OA,textLength:e,tag:"a",config:Hs,startIndex:OA.startIndex,length:OA.length}))}if(m.attachmentRuns)for(var Ws=_.C(m.attachmentRuns),d$=Ws.next();!d$.done;d$=Ws.next()){var RM=d$.value,mt=void 0,VQ=void 0,c1={className:"yt-core-attributed-string--inline-block-mod"};if((VQ=RM.element)==
null?0:VQ.properties){var cX=(mt=RM.element)==null?void 0:mt.properties,hM=[],G0=_.Q(cX,Hay);if(G0==null?0:G0.margin){var Wo=G0.margin,P7=_.v5("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",rs=P7?Wo.end||Wo.right:Wo.start||Wo.left,C4=P7?Wo.start||Wo.left:Wo.end||Wo.right;rs&&hM.push("margin-left: "+ah(rs)+";");C4&&hM.push("margin-right: "+ah(C4)+";");Wo.top&&hM.push("margin-top: "+ah(Wo.top)+";");Wo.bottom&&hM.push("margin-bottom: "+ah(Wo.bottom)+";")}var Uz=hM.length!==0?hM.join(" "):
void 0;c1.style$=Uz}var m$=c1,eI=void 0,XJ={alt:"",preserveHeight:!0,preserveWidth:!0},Rt=["yt-core-attributed-string__image-element"];if(RM.alignment){a:switch(RM.alignment){case "ALIGNMENT_BASELINE":var $T="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":$T="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:$T="yt-core-attributed-string__image-element--image-alignment-bottom"}Rt.push($T)}if((eI=
RM.element)==null?0:eI.properties){var za=[],we=_.Q(RM.element.properties,Hay);(we==null?0:we.height)&&za.push("height: "+ah(we.height)+";");(we==null?0:we.width)&&za.push("width: "+ah(we.width)+";");var FS=za.length!==0?za.join(" "):void 0;XJ.style$=FS;var w2=void 0;var XM=((w2=_.Q(RM.element.properties,WZU))==null?void 0:w2.label)||"";XJ.alt=XM}XJ.className=Rt.join(" ");var x2=XJ,DI=void 0;var NR=void 0,GL=void 0;var h2=((GL=RM.element)==null?0:GL.type)?(NR=_.Q(RM.element.type,kRt))==null?void 0:
NR.image:void 0;W.push(Hr({run:RM,textLength:e,tag:"img",image:h2,imageConfig:x2,imageWrapperConfig:m$,startIndex:RM.startIndex,length:(DI=RM.length)!=null?DI:0}))}if(L==null?0:L.headerRuns)for(var z$=_.C(L.headerRuns),ZZ=z$.next();!ZZ.done;ZZ=z$.next()){var pI=ZZ.value;if(pI.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(pI.headerMapping)){a:{switch(pI.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var JC=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":JC="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":JC="yt-core-attributed-string--heading-3";break a}JC=void 0}W.push(Hr({run:pI,textLength:e,tag:"span",config:JC?{className:JC}:void 0,startIndex:pI.startIndex,length:pI.length}))}}var I_=h();if(I_==null?0:I_.userInput)for(var T7=_.C(W),W0=T7.next();!W0.done;W0=T7.next()){var j$=W0.value;if(j$.tag!=="a"&&
j$.tag!=="li"){var ISM=void 0;(ISM=j$).config||(ISM.config={});j$.config.dir=j$.tag==="ul"?_.te().resolve(_.e3):"auto"}}if(u().content){var fSc=u().content;j26(W);for(var gz={data:null,start:0,end:fSc.length,parts:[]},tmJ=_.C(W),SY=tmJ.next();!SY.done;SY=tmJ.next()){var so=SY.value;Xgz(gz,so.startIndex,so.endIndex,so)}Q2g(fSc,gz);var ZZU=gz.parts}else ZZU=[];return ZZU},a=!0;
_.bC(function(){u();h();if(a&&(a=!1,s2S(u(),R)))return;var m=K();Promise.resolve().then(function(){var L=y.value;if(L){L.innerText="";var W;(W=N)==null||W();N=_.kf(L,function(){return _.l(PHo,{parts:m})},"t")}})},"Dfzccf");
return _.l("span",{el:y,class:function(){var m;if(m=u()){m=u();var L=U(),W=[];W.push("yt-core-attributed-string");(L==null?0:L.className)&&W.push(L==null?void 0:L.className);(L==null?0:L.ellipsisTruncate)?W.push("yt-core-attributed-string--ellipsis-truncate"):(L==null?0:L.noWrap)?W.push("yt-core-attributed-string--white-space-no-wrap"):(L==null?0:L.noPreWrap)||W.push("yt-core-attributed-string--white-space-pre-wrap");(L==null?0:L.linkInheritColor)&&W.push("yt-core-attributed-string--link-inherit-color");
m.alignment&&W.push(q0s(m.alignment));m.lineBreakMode&&W.push("yt-core-attributed-string--word-wrapping");m=W.join(" ")}return m},
dir:function(){var m;return((m=U())==null?0:m.userInput)?"auto":void 0},
"aria-label":function(){var m;return q()?(m=U())==null?void 0:m.ariaLabel:void 0},
role:function(){return q()?"text":void 0}})},F=S0S(function(){var u,R=(u=G.text)==null?void 0:u.call(G);
if(R)return u=_.$N(R)?R:_.hx(R),(u==null?0:u.content)?u:void 0},{isEqual:s2S}),D;
return((D=G.config)==null?0:D.contentAsserted)?B(F):_.l(_.E,{cond:F,then:B})},"v");
I3w.idomCompat=!0;_.Wd=_.Y(function(G){var B=_.pW(G.text),F=Bbz(G);G.contentAsserted!==void 0&&(F.contentAsserted=!0);return _.l(I3w,{text:B,config:F})},"w");
_.Wd.idomCompat=!0;var iwg=function(G,B,F){B=B===void 0?"unknown":B;F=F===void 0?{}:F;_.Uf.call(this,G+" ("+B+")",Object.assign({},{name:"YtWcwError",tagName:B},F));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(iwg,_.Uf);_.pk=new WeakMap;_.Mh=!1;var w3L,CTS,RMs;_.Hd=Symbol("ih");_.oh=Symbol("jh");w3L=Symbol("kh");CTS=new Set(Object.getOwnPropertyNames(Element.prototype));RMs=Symbol("lh");var f3G=_.Y(function(G){return _.l("yt-attributed-string",{"aria-label":G.ariaLabel,hidden:G.hidden,id:G.id,class:G.className,"force-default-style":G.forceDefaultStyle},_.l(_.Wd,{text:G.data,ariaLabel:G.ariaLabel,ellipsisTruncate:G.ellipsisTruncate,isOverlay:G.isOverlay,linkInheritColor:G.linkInheritColor,noPreWrap:G.noPreWrap,noWrap:G.noWrap,userInput:G.userInput,noEndpoints:G.noEndpoints,headerRuns:G.headerRuns,isHeadline:G.isHeadline}))},"x");
_.X("web_wiz_attributed_string")&&_.YN(f3G,"yt-attributed-string",{props:{ariaHidden:_.Hd,ariaLabel:_.Hd,className:_.Hd,ellipsisTruncate:_.Hd,isOverlay:_.Hd,linkInheritColor:_.Hd,noEndpoints:_.Hd,noStyleRuns:_.Hd,noLinkColor:_.Hd,noPreWrap:_.Hd,noWrap:_.Hd,skipOnClick:_.Hd,userInput:_.Hd,headerRuns:_.Hd,isHeadline:_.Hd,id:_.Hd,data:_.Hd,hidden:_.Hd,forceDefaultStyle:_.Hd,text:_.oh,disableUpgrade:_.oh,disable:_.oh,slot:_.oh}});var kR=function(){return _.p.apply(this,arguments)||this};
_.r(kR,_.p);kR.prototype.renderIdom=function(){if(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};var G=this.data,B=this.config;G&&(G=_.$N(G)?G:_.hx(G),G!=null&&G.content&&(B=B||{},B.contentAsserted=!0,Y08(I3w)({text:G,config:B})))}};
_.c([_.k(GRq),_.I("design:type",Object)],kR.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kR.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kR.prototype,"ariaLabel",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"disable",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"ellipsisTruncate",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"isOverlay",void 0);
_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"linkInheritColor",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"noPreWrap",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"noWrap",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"userInput",void 0);_.c([_.v(),_.I("design:type",Boolean)],kR.prototype,"noEndpoints",void 0);_.c([_.v(),_.I("design:type",Array)],kR.prototype,"headerRuns",void 0);
_.c([_.ay({is:"yt-attributed-string",disableElementRegistration:!0})],kR);
_.X("web_wiz_attributed_string")||_.d(kR,"yt-attributed-string",function(){if(rkP===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
G.content.insertBefore(LZL().content.cloneNode(!0),G.content.firstChild);rkP=G}G=rkP;return G},{mode:2});var tLy,Zaw,E4s;tLy=function(){this.firstThumbnailLoaded=!1};
_.gJq=function(){Zaw||(Zaw=new tLy);return Zaw};
E4s=function(G){var B=_.gJq();B.firstThumbnailLoaded||(B.firstThumbnailLoaded=!0,_.KR("ftl",G))};
tLy.prototype.reset=function(){this.firstThumbnailLoaded=!1};var yIU=0,qMJ=new WeakMap,lyM=0,Jx=new Set;var SIs,sTL=function(){return SIs!==void 0?SIs:SIs=document.createElement("template")};
document.head.appendChild(sTL().content);var xTw;var m$g,QLg,Op;_.Ih=_.Fz.caches;Op=function(){};
Op.prototype.open=function(G){return _.Ih.open(PmN(G))};
Op.prototype.has=function(G){return _.Ih.has(PmN(G))};
Op.prototype.delete=function(G){return _.Ih.delete(PmN(G))};
Op.prototype.match=function(G,B){var F=this,D,u,R,N,y,U;return _.n(function(q){switch(q.nextAddress){case 1:return q.yield(F.keys(),2);case 2:D=q.yieldResult,u=_.C(D),R=u.next();case 3:if(R.done){q.jumpTo(5);break}N=R.value;return q.yield(F.open(N),6);case 6:return y=q.yieldResult,q.yield(y.match(G,B),7);case 7:if(U=q.yieldResult)return q.return(U);R=u.next();q.jumpTo(3);break;case 5:return q.return()}})};
var jLo=function(){};
_.r(jLo,Op);var PmN=function(G){if(G.includes(":"))throw Error("oh`"+G);return G+":"+_.n8("CacheStorage get")};
jLo.prototype.keys=function(){var G,B,F,D,u,R,N,y,U;return _.n(function(q){if(q.nextAddress==1)return G=[],B=_.n8("CacheStorage keys"),q.yield(_.Ih.keys(),2);F=q.yieldResult;D=_.C(F);for(u=D.next();!u.done;u=D.next())R=u.value,N=_.ay6(R),y=N.originalName,U=N.datasyncId,U===B&&G.push(y);return q.return(G)})};var ex=function(){var G=_.p.apply(this,arguments)||this;G.objectURL=null;G.loadTime=Infinity;return G};
_.r(ex,_.p);_.w=ex.prototype;
_.w.renderIdom=function(){KqU(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var G=this.config,B=this.shouldRenderLazy;Y08(_.vr)({contentMode:G.contentMode,loadedClass:G.loadedClass,isPreloaded:G.isPreloaded,notifyOnLoaded:G.notifyOnLoaded,notifyOnUnloaded:G.notifyOnUnloaded,preferredThumbnail:G.preferredThumbnail,preserveHeight:G.preserveHeight,preserveWidth:G.preserveWidth,objectPosition:G.objectPosition,targetWidth:G.targetWidth,
targetHeight:G.targetHeight,shouldShowPlaceholder:G.shouldShowPlaceholder,useWidth:G.useWidth,isToggled:G.isToggled,alt:G.alt,className:G.className,onerror:G.onerror,onload:G.onload,style$:G.style$,color:G.color,width:G.width,height:G.height,"aria-hidden$":G["aria-hidden$"],draggable:G.draggable,"data-disabled$":G["data-disabled$"],data:this.data,callback:void 0,renderLazy:B===void 0?!0:B,hideOn404:!1})}}};
_.w.objectFitToContentMode=function(G){switch(G){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.w.logThumbnailFailureVe=function(){var G=_.ge(197497);_.Zx(_.Rh(),G);var B=_.qW();B&&G&&B&&_.Oq(B,[G])};
_.w.loadImageFromCacheIfExists=function(G){var B=this,F=G.target;(F==null?0:F.src)&&rIc(F.src).then(function(D){B.objectURL=_.sy(D).toString();B.setSrc(F,B.objectURL)}).catch(function(){})};
_.w.onError=function(G){var B=this;if(_.X("web_use_cache_for_image_fallback")){var F=G.target;F&&rIc(F.src).then(function(D){B.objectURL=_.sy(D).toString();B.setSrc(F,B.objectURL)}).catch(function(){_.X("kevlar_woffle_log_thumbnail_failure_ve")&&B.logThumbnailFailureVe();
_.X("kevlar_woffle_fallback_image")&&B.setSrc(F,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.w.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.w.setConfig=function(){var G=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(B){G.loadImageFromCacheIfExists(B);G.revokeObjectURL();hML(G.hostElement)},
onerror:function(B){G.onError(B)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.X("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.w.setSrc=function(G,B){B&&(G.src=B)};
_.c([_.k(GRq),_.I("design:type",Object)],ex.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ex.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],ex.prototype,"alt",void 0);_.c([_.v(),_.I("design:type",Boolean)],ex.prototype,"ftlEligible",void 0);_.c([_.v(),_.I("design:type",Number)],ex.prototype,"height",void 0);_.c([_.v(),_.I("design:type",Boolean)],ex.prototype,"notifyOnLoaded",void 0);
_.c([_.v(),_.I("design:type",Boolean)],ex.prototype,"notifyOnUnloaded",void 0);_.c([_.v(),_.I("design:type",String)],ex.prototype,"objectFit",void 0);_.c([_.v(),_.I("design:type",String)],ex.prototype,"objectPosition",void 0);_.c([_.v(),_.I("design:type",String)],ex.prototype,"preferredThumbnail",void 0);_.c([_.v(),_.I("design:type",Boolean)],ex.prototype,"preserveHeight",void 0);_.c([_.v(),_.I("design:type",Boolean)],ex.prototype,"preserveWidth",void 0);
_.c([_.v({value:!0}),_.I("design:type",Boolean)],ex.prototype,"useWidth",void 0);_.c([_.v({value:function(){return!_.on("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.I("design:type",Boolean)],ex.prototype,"shouldRenderLazy",void 0);_.c([_.v(),_.I("design:type",Number)],ex.prototype,"width",void 0);_.c([_.ay({is:"yt-image",disableElementRegistration:!0})],ex);
_.d(ex,"yt-image",function(){if(xTw===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);G.content.insertBefore(sTL().content.cloneNode(!0),G.content.firstChild);
xTw=G}G=xTw;return G},{mode:2});var $R=function(){return _.p.apply(this,arguments)||this};
_.r($R,_.p);$R.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var G=_.X1(this.data.onVisibleCommand);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$R.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Q8.YtVisibilityBehavior),_.I("design:type",Object)],$R.prototype,"ytVisibilityBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$R.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],$R);
_.d($R,"yt-bumper-user-edu-content-view-model",function(){if(sdT===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Suy===void 0&&(Suy=document.createElement("template"));var D=Suy;F.call(B,D.content.cloneNode(!0),G.content.firstChild);sdT=G}G=sdT;return G},{mode:0});var G4t;var BGU,iss=function(){if(BGU!==void 0)return BGU;var G=document.createElement("template");_.H(G,'\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="countdown style-scope yt-creator-goal-progress-flow-view-model" target-timestamp="[[endTimestamp]]"></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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;G4t===void 0&&(G4t=document.createElement("template"));var D=G4t;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return BGU=G};var FT7;_.zT={};FT7=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"]);_.zT.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var G=this.getContext_();return G?G.getTaskManager():_.Lu},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var G=_.cZ(this.hostElement,"yt-get-context-provider",{});G.detail&&G.detail.contextProvider?this.cachedProviderNode_=G.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return FT7.has(this.hostElement.localName)},
getNetworkManager:function(){var G=this.getContext_();if(G)return G.getNetworkManager()}};var $$M,DGt,R3L,ufU;_.bY=function(G){var B=DGt.get(G);if(B&&(B=B.pop()))return ufU++,B;R3L++;try{var F=document.createElement(G)}catch(D){throw new _.Uf("ElementPool failed to create element",G,D.message);}return F};
$$M=function(G){var B=G.is;if(B){var F=DGt.get(B);F||(F=[],DGt.set(B,F));var D=_.v5("ELEMENT_POOL_CONFIG")||{};F.length>=(D[B]!==void 0?D[B]:_.v5("ELEMENT_POOL_DEFAULT_CAP",0))||F.push(G)}else _.em(new _.Uf("Element pool should only handle custom elements:",G.nodeName))};
DGt=new Map;R3L=0;ufU=0;var fk=new WeakMap,eMU=new WeakMap;var CHa;_.V8=function(G,B,F){F=F===void 0?_.Kx():F;this.JSC$14214_defaultPriority=G;this.signal=B;this.scheduler=F;this.nextJobDescriptor=0;this.JSC$14214_parkedJobs=[];this.scheduledJobs=new Map};
_.vd=function(G,B){if(B){var F=_.kl();G.signal&&!_.Oc(F,G.signal)?(F.addListener(G.signal,function(){G.processSignal()}),G.JSC$14214_parkedJobs.push({job:B,
priority:void 0})):wgU(G,B)}};
CHa=function(G,B){if(B!==G.JSC$14214_defaultPriority){G.JSC$14214_defaultPriority=B;for(var F=_.C(G.scheduledJobs.values()),D=F.next();!D.done;D=F.next())D=D.value,G.scheduler.cancelJob(D.jobId),D.jobId=G.scheduler.addJob(D.jobWrapper,B)}};
_.V8.prototype.flushJobs=function(){CHa(this,10);this.processSignal()};
_.V8.prototype.cancel=function(){for(var G=_.C(this.scheduledJobs),B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;F=F.next().value;this.scheduler.cancelJob(F.jobId);this.scheduledJobs.delete(B)}this.JSC$14214_parkedJobs=[]};
_.V8.prototype.processSignal=function(){for(var G=_.C(this.JSC$14214_parkedJobs),B=G.next();!B.done;B=G.next())B=B.value,wgU(this,B.job,B.priority);this.JSC$14214_parkedJobs=[]};
var wgU=function(G,B,F){F=F||G.JSC$14214_defaultPriority;if(F===10)cr(B);else{var D=G.nextJobDescriptor++,u=function(){B();G.scheduledJobs.delete(D)},R=G.scheduler.addJob(u,F);
G.scheduledJobs.set(D,{jobWrapper:u,jobId:R,priority:F})}};var NGG;_.oS={};NGG={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.oS.YtRendererstamperBehavior=[_.zT.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 G in this.stampDom){var B=this.stampDom[G];B&&B.id&&this.addReactiveSchema({type:"observe",method:{methodName:Hws(B.id),args:[{type:"wildcard",path:G}]}})}else{(G=(this.constructor.generatedFrom||this).observers)||(G=[]);for(B in this.stampDom){var F=this.stampDom[B];F&&F.id&&G.push(Hws(F.id)+"("+B+".*)")}this.constructor.generatedFrom.observers=G}},
addStampDomObserverFns_:function(){for(var G in this.stampDom){var B=this.stampDom[G];B.id?(this[Hws(B.id)]=this.rendererStamperObserver_.bind(this,G,B.id),this.hasDataPath_[G]=!1):(B=new _.Uf("Bad rendererstamper config",this.is+":"+G),_.k2(B))}},
rendererStamperObserver_:function(G,B,F){if(F.path==G){if(F.value===void 0&&!this.hasDataPath_[G])return;this.hasDataPath_[G]=F.value!==void 0}this.rendererStamperApplyChangeRecord_(G,B,F)},
rendererStamperApplyChangeRecord_:function(G,B,F){var D=this.renderJobsMap_[B],u=null;G==F.path?(F=F.value,_.fQ(F)||(F=F===void 0||F===null?[]:[F]),G=this.stampDom[G],G.mapping&&(u=this.stampDomArray_.bind(this,F,B,G.mapping,G.reuseComponents,G.events,G.stamperStableList)),D&&D.cancel(),F=G.usePageScheduler?this.getTaskManager():void 0,D||G.initialRenderPriority==void 0)?G.renderPriority==void 0||D||(D=new _.V8(G.renderPriority,G.waitForSignal,F),this.renderJobsMap_[B]=D):(D=new _.V8(G.initialRenderPriority,
G.waitForSignal,F),this.renderJobsMap_[B]=D,u=function(R,N){R();CHa(N,10)}.bind(this,u,D)):u=G+".splices"==F.path?this.stampDomArraySplices_.bind(this,G,B,F.value):this.forwardRendererStamperChanges_.bind(this,G,B,F);
D?_.vd(D,u):u()},
forwardRendererStamperChanges_:function(G,B,F){var D=F.path.slice(G.length+1),u=this.getStampContainer_(B),R=D.indexOf("."),N=D.substring(0,R),y=!1,U=0,q=parseInt(N,0);if(N[0]=="#"){y=parseInt(N.substring(1),0);q=this.get(G);var h=this.get([G,N]);q[y]==h?U=y:U=q.indexOf(h);y=!0}else isNaN(q)||(U=q,y=!0);y&&(D=D.substring(N.length+1),R=D.indexOf("."));N=this.polymerDom(u).children[U];var K;if(u=(K=N==null?void 0:N.polymerController)!=null?K:N)D="data"+D.slice(R),typeof u.notifyPath!=="function"?_.em(new _.Uf("notifyPath missing",
this.is+": "+G+", "+B)):F.value?u.notifyPath(D,F.value):u.notifyPath(D)},
stampDomArraySplices_:function(G,B,F){if(F&&F.indexSplices){var D=this.getStampContainer_(B);if(D){for(var u=this.polymerDom(D),R=OwU(this.stampDom[G].reuseComponents),N=F.indexSplices.length,y=0;y<N;y++){for(var U=F.indexSplices[y],q=u.children[U.index],h=U.removed.length;h>0;h--)q&&q.parentElement&&(this.polymerDom(q.parentElement).removeChild(q),R&&$$M(q),q=u.children[U.index]);h=this.stampDom[G].mapping;for(var K=U.index+U.addedCount,a=document.createDocumentFragment(),m=R,L=U.index;L<K;L++){var W=
U.object[L],e=Wql(h,W);if(e){var b=h[e];W=W[e];e=this.getComponentName_(b,W);var M=q?fk.has(q):!1;m&&q&&q.is==e&&M?(e=q,this.telemetry_.reuse++,q=q.nextElementSibling):m&&q&&M?(e=this.createComponent_(b,W,R),M=this.polymerDom(q).nextElementSibling,u.insertBefore(e,M),bwI(this.is,u,q,R),q=M):(m=!1,e=this.createComponent_(b,W,R),a.appendChild(e));this.deferRenderStamperBinding_(e,b,W)}else b=new _.Uf("Unimplemented type",G,B,D.tagName,Object.keys(W)[0]),_.k2(b)}u.insertBefore(a,q)}this.flushRenderStamperComponentBindings_();
this.stampDom[G].events&&_.cZ(this.hostElement,"yt-rendererstamper-finished",{container:D})}else G=new _.Uf("Container object not found",B,this.hostElement?this.hostElement.is:""),_.k2(G)}},
stampDomArray_:function(G,B,F,D,u,R){var N=this.getStampContainer_(B);if(N)if(B=this.polymerDom(N),D=OwU(D),G){var y=0,U=0,q;if(R=R===void 0?_.on("STAMPER_STABLE_LIST",!1):R||!1)for(q=B.firstElementChild;q&&!fk.has(q)&&G.length>U;){R=G[U];var h=Wql(F,R);if(h){if(this.getComponentName_(F[h],R[h])!=q.is){var K=this.createComponent_(F[h],R[h],D),a=this.polymerDom(q).nextElementSibling;a?B.insertBefore(K,a):B.appendChild(K);bwI(this.is,B,q,D);q=K}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(q,
F[h],R[h]);y++;U++;q=this.polymerDom(q).nextElementSibling}else U++}v4l(this.is,B,y,D);y=q;if(G.length>U){R=document.createDocumentFragment();for(h=G.length;U<h;U++)if(K=G[U],a=Wql(F,K))q=this.createComponent_(F[a],K[a],D),this.deferRenderStamperBinding_(q,F[a],K[a]),R.appendChild(q);y&&this.polymerDom(y).parentNode&&q&&!fk.has(q)?B.insertBefore(R,y):B.appendChild(R)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();u&&_.cZ(this.hostElement,"yt-rendererstamper-finished",
{container:N})}else v4l(this.is,B,0,D);else G=new _.Uf("Container object not found",B,this.hostElement?this.hostElement.is:""),_.k2(G)},
polymerDom:function(G){return this.minimizePipBreakages?G:_.u2(G)},
getStampContainer_:function(G){return this.$&&this.$[G]||_.IF(this.hostElement).querySelector("#"+G)},
getComponentName_:function(G,B){return typeof G==="string"?G:G.matcher?G.matcher.call(this,B):G.component},
createComponent_:function(G,B,F){G=this.getComponentName_(G,B);try{var D=pi6.has(G);if(F&&!D){var u=_.bY(G);try{_.Ss(u)}catch(R){F="Failed to clear styles for "+G+".",R.message&&(F+=" Original error: "+R.message),_.em(new _.Uf(F))}}else u=document.createElement(G)}catch(R){return u="YtRendererStamperBehavior failed to create "+G+".",R.message&&(u+=" Original description: "+R.message),R.message="YtRendererStamperBehavior failed to create element",_.$2(R,u),NGG.hasOwnProperty(G)?_.em(R):_.k2(R),document.createElement("SPAN")}this.telemetry_.create++;
return u},
deferRenderStamperBinding_:function(G,B,F){this.deferredBindingTasks_.push({component:G,typeOrConfig:B,data:F})},
flushRenderStamperComponentBindings_:function(){for(var G=0,B=this.deferredBindingTasks_.length;G<B;G++){var F=this.deferredBindingTasks_[G];if(!F)break;VnL(this,F.component,F.typeOrConfig,F.data)}this.deferredBindingTasks_.length=0}}];_.YN(_.Y(function(G){function B(){F().seconds&&R(HLS({seconds:Number(F().seconds)-Date.now()/1E3}))}
var F=G.targetTimestamp;G=G.className;var D=_.C(_.qg("",void 0,"U1Q8Ae")),u=D.next().value,R=D.next().value;_.eR(function(){B();var N=setInterval(function(){B()},1E3);
_.VI(function(){clearInterval(N)})});
return _.l("yt-countdown",{class:_.tx("ytCountDownHost",G)},_.l("div",null,u))},"z"),"yt-countdown",{props:{targetTimestamp:_.Hd,
className:_.oh}});_.Mu=new _.oV("KEY_MANAGER_TOKEN");var cIo={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.p4=_.Y(function(G){var B=_.W5("a",G.ref),F=G.aTagConfig?G.aTagConfig:_.mS(function(){var D,u,R,N,y;var U=(y=_.X1((R=G.command)==null?void 0:R.call(G)))!=null?y:(N=G.command)==null?void 0:N.call(G);return _.jF({innertubeCommand:U,skipOnClick:(D=G.skipOnClick)==null?void 0:D.call(G),defaultTarget:(u=G.target)==null?void 0:u.call(G)})||{}},void 0,"TAvz0");
_.bC(function(){_.X("mweb_get_endpoint_from_atag_command")||(B.value._data=F()._data,B.value.params=F().params)},"dcjvAe");
return _.l("a",{el:B,href:function(){return F().href$},
rel:function(){return F().rel$},
class:function(){var D,u;return(u=F().className)!=null?u:(D=G.className)==null?void 0:D.call(G)},
style:function(){var D;if((D=G.style)==null?0:D.call(G))return G.style();var u;return((u=G.disabled)==null?0:u.call(G))?"pointer-events:none":""},
"aria-haspopup":function(){return!!F()["aria-haspopup$"]},
"force-new-state":SF(function(){return F()["force-new-state$"]}),
title:SF(function(){var D,u;return(u=F().title$)!=null?u:(D=G.title)==null?void 0:D.call(G)}),
role:SF(function(){var D;return((D=G.role)==null?void 0:D.call(G))||F().role$}),
target:SF(function(){return F().target$}),
dir:SF(function(){var D;return((D=G.dir)==null?void 0:D.call(G))||F().dir}),
tabindex:function(){var D;return F().tabindex$?Number(F().tabindex$):(D=G.tabIndex)==null?void 0:D.call(G)},
"aria-hidden":function(){var D,u;return(u=F()["aria-hidden$"])!=null?u:(D=G.ariaHidden)==null?void 0:D.call(G)},
"aria-label":function(){var D,u;return(u=F()["aria-label$"])!=null?u:(D=G.ariaLabel)==null?void 0:D.call(G)},
"aria-current":G.ariaCurrent,"aria-disabled":G.disabled,"aria-labelledby":G.ariaLabelledby,"aria-describedby":G.ariaDescribedby,"aria-selected":G.ariaSelected,"tab-identifier":G.tabIdentifier,"on:pointerdown":_.gJ(function(D){var u,R;return void((R=(u=F()).onpointerdown)==null?void 0:R.call(u,D))}),
"on:click":_.gJ(function(D){var u,R;(R=(u=F()).onclick)==null||R.call(u,D);var N;(N=G.onClick)==null||N.call(G,D)}),
"on:focusin":_.gJ(function(D){var u;(u=G.onFocusin)==null||u.call(G,D)}),
"on:focusout":_.gJ(function(D){var u;(u=G.onFocusout)==null||u.call(G,D)})},G.children)},"B");var SMg={duration:1E3,easing:"ease",fill:"forwards"};g4o.componentType=j2;var PTl={duration:1E3,easing:"ease",fill:"forwards"},lGG=_.Y(function(G){var B=_.W5("animated-rolling-character"),F=void 0,D=function(){var y,U;return $y((y=G.character)==null?void 0:y.call(G))||$y((U=G.previousCharacter)==null?void 0:U.call(G))},u=_.C(_.qg(0,void 0,"CYT8Ob")),R=u.next().value,N=u.next().value;
_.eR(function(){if(window.ResizeObserver&&_.X("web_fix_rolling_numbers_zoom_safari")){var y=new _.s_(function(){var q,h,K=Math.round(((h=(q=B.value.querySelector("div"))==null?void 0:q.getBoundingClientRect().height)!=null?h:0)*100)/100;K&&N(K)},500),U=new ResizeObserver(function(){y.fire()});
U.observe(B.value);_.VI(function(){U.disconnect();y.dispose()})}});
_.bC(function(){var y=_.X("web_fix_rolling_numbers_zoom_safari")?R:G.marginMultiplier;if(y()){var U;(U=F)==null||U.cancel();if(D()){var q;U=((q=G.previousCharacter)==null?0:q.call(G))?Number(G.previousCharacter())+10:G.rollUp()?0:30;var h;if((h=G.shouldAnimate)==null||!h.call(G)){var K,a;U-=x$6((K=G.character)==null?void 0:K.call(G),(a=G.previousCharacter)==null?void 0:a.call(G),G.rollUp(),U)}}else{U=G.rollUp()?0:2;var m;(m=G.shouldAnimate)!=null&&m.call(G)||(q=U,h=G.rollUp()?-1:1,U=q-h)}B.value.style.marginTop=
"-"+U*y()+"px";var L;if((L=G.shouldAnimate)==null?0:L.call(G)){var W,e;F=GUc(B.value,(W=G.character)==null?void 0:W.call(G),(e=G.previousCharacter)==null?void 0:e.call(G),G.rollUp(),U,D(),y())}else{var b;B.value.style.display=((b=G.character)==null?0:b.call(G))?"":"none"}}},"CA6Pmf");
return _.l("animated-rolling-character",{el:B,class:"animatedRollingCharacterHost"},_.l(_.E,{cond:D,then:function(){return _.l(yBP,null)},
else:function(){return _.l(n8v,{character:G.character})}}))},"E");
lGG.idomCompat=!0;var BtL=_.X("web_enable_sink_animated_rolling_character_and_number")?lGG:g4o,UGq=_.X("web_enable_sink_animated_rolling_character_and_number")?lGG:sLs(g4o),yBP=_.Y(function(){for(var G=[],B=1;B<30;B++)G.push(_.l("div",null,B%10));return _.l(_.GJ,null,_.l("div",null,"\u00a0"),G,_.l("div",null,"\u00a0"))},"F"),n8v=_.Y(function(G){var B=G.character;
return _.l(_.GJ,null,_.l("div",null,"\u00a0"),_.l(_.E,{cond:function(){return!(B==null?0:B())||_.NL(B==null?void 0:B())},
then:function(){return _.l("div",null,"\u00a0")},
else:function(){return _.l("div",null,B)}}),_.l("div",null,"\u00a0"))},"G");ivc.componentType=j2;var q0L=_.Y(function(G){var B=void 0,F=void 0,D=function(){var R;return((R=G.fontSizeMultiplier)==null?0:R.call(G))?G.heightPx()*G.fontSizeMultiplier():G.heightPx()},u=_.mS(function(){if(!G.numberText())return[];
var R,N,y=((R=G.forceRollUp)==null?void 0:R.call(G))||!F||!((N=G.numberValue)==null?0:N.call(G))||F<G.numberValue(),U,q=G.numberText();R=D();N=!((U=G.shouldAnimate)==null||!U.call(G));U=[];var h=0,K=0,a=(B?B.replace(/\D/g,"").length:0)-(q?q.replace(/\D/g,"").length:0),m=B?B.split(/(\d)/).filter(Boolean):[];for(q=q.split(/(\d)/).filter(Boolean);a<0;){var L=q[K];U.push({character:L,rollUp:y,marginMultiplier:R,shouldAnimate:N});K++;$y(L)&&a++}for(;h<a;)L=m[h],U.push({previousCharacter:L,rollUp:y,marginMultiplier:R,
shouldAnimate:N}),h++,$y(L)||a++;for(;K<q.length;)a=q[K],L=m[h],$y(a)===$y(L)?(K++,h++):$y(a)?(h++,a=void 0):$y(L)&&(K++,L=void 0),U.push({character:a,previousCharacter:L,rollUp:y,marginMultiplier:R,shouldAnimate:N});B=G.numberText();var W;F=(W=G.numberValue)==null?void 0:W.call(G);return U},void 0,"kWiBv");
return _.l("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return G.numberText()?["height: "+D()+"px;","line-height: "+G.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.l(_.jR,{each:u,keyBy:"INDEX"},function(R){return _.l(UGq,{character:function(){return R().character},
previousCharacter:function(){return R().previousCharacter},
marginMultiplier:function(){return R().marginMultiplier},
rollUp:function(){return R().rollUp},
shouldAnimate:function(){return R().shouldAnimate}})}))},"H");
q0L.idomCompat=!0;_.E8L=_.X("web_enable_sink_animated_rolling_character_and_number")?q0L:sLs(ivc);var h3P=function(G,B){this.fillAnimation=new Animation(RNs(G),document.timeline);this.strokeAnimation=new Animation(wWo(B),document.timeline)};
h3P.prototype.play=function(){var G,B;(B=(G=this.fillAnimation).play)==null||B.call(G);var F,D;(D=(F=this.strokeAnimation).play)==null||D.call(F)};
h3P.prototype.cancel=function(){var G,B;(B=(G=this.fillAnimation).cancel)==null||B.call(G);var F,D;(D=(F=this.strokeAnimation).cancel)==null||D.call(F)};_.YR=_.Y(function(G){var B=G.model;var F=G.pointerDownEvent;var D=G.pointerUpEvent;var u=G.pointerLeaveEvent;var R=G.hovered;G=_.W5("yt-touch-feedback-shape");var N=_.W5("div"),y=_.W5("div"),U=_.C(_.d3(function(){return(D==null?0:D())||(u==null?0:u())?!1:!(F==null||!F())||!1})),q=U.next().value,h=U.next().value,K=void 0,a=function(){!K&&y.value&&N.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(K=new h3P(y.value,N.value));
var M;(M=K)==null||M.play()},m=function(){var M;
(M=K)==null||M.cancel()},L=function(){var M;
(M=K)==null||M.cancel()};
_.bC(function(){(D==null?0:D())&&a()},"bg756c");
_.bC(function(){(F==null?0:F())&&m()},"QAes8c");
_.bC(function(){(u==null?0:u())&&L()},"YaFbrc");
U=_.gJ(function(){a();h(!1)});
var W=_.gJ(function(){m();h(!0)}),e=_.gJ(function(){L();
h(!1)});
_.VI(function(){if(K){var M;(M=K)==null||M.cancel();K=void 0}});
var b={};q=_.tx("yt-spec-touch-feedback-shape",function(){return C$S(B().color)},function(){return NtJ(B().thumbnailSize,!!B().isExtended)},(b["yt-spec-touch-feedback-shape--focused"]=function(){return!!B().focused&&!B().disabled},b["yt-spec-touch-feedback-shape--circular"]=function(){return!!B().circular},b["yt-spec-touch-feedback-shape--down"]=q,b["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!B().triggerEvents},b["yt-spec-touch-feedback-shape--hovered"]=function(){return R==
null?void 0:R()},b));
return _.l("yt-touch-feedback-shape",{el:G,class:q,style:_.xN({"margin-top":function(){return B().customTopExtend?"-"+B().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":U,"on:pointerleave":e,"on:touchstart":W,"on:touchend":U,"aria-hidden":!0},_.l(_.E,{cond:function(){return!!B().hoverEffect},
then:function(){return _.l("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.xN({"border-radius":function(){return B().borderRadius},
background:function(){var M;if(M=B().hoverEffect){for(var t=[],T=_.C((M==null?void 0:M.lightingTechniques)||[]),A=T.next();!A.done;A=T.next())switch(A.value){case 2:var Z=A=void 0,P=void 0,RI=void 0;t.push("linear-gradient(180deg, "+((A=M)==null?void 0:(Z=A.palette)==null?void 0:Z.keyLight)+", "+((P=M)==null?void 0:(RI=P.palette)==null?void 0:RI.background)+")")}var yo,hg;t.push((yo=B().hoverEffect)==null?void 0:(hg=yo.palette)==null?void 0:hg.background);M=t.join(", ")}else M=void 0;return M}})})}}),
_.l("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.xN({"border-radius":function(){return B().borderRadius},
"border-color":function(){var M,t;return(M=B().touchEffect)==null?void 0:(t=M.palette)==null?void 0:t.background}}),
el:N}),_.l("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.xN({"border-radius":function(){return B().borderRadius},
"background-color":function(){var M,t;return(M=B().touchEffect)==null?void 0:(t=M.palette)==null?void 0:t.background}}),
el:y}))},"L");
_.YR.idomCompat=!0;var KT8={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 Ai=_.Qo();Ai=Ai.toLowerCase();if(_.ll(Ai,"android")){var aGq=Ai.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);aGq&&parseFloat(aGq[1])<100||Ai.match("("+Object.keys(KT8).join("|")+")")};var mGs=_.Y(function(G){return _.l(_.E,{cond:G.aTagConfig,then:function(B){return _.l(_.p4,{aTagConfig:B,disabled:G.disabled,className:G.className,style:G.style,title:G.title,ariaLabel:G.ariaLabel,ariaCurrent:function(){var F,D;return((F=G.toggleable)==null?void 0:F.call(G))&&((D=G.toggled)==null?void 0:D.call(G))},
ref:G.ref},G.children)},
else:function(){return _.l("button",{el:_.VX(G.ref),"on:click":_.gJ(function(B){var F;return(F=G.onClick)==null?void 0:F.call(G,B)}),
class:G.className,title:G.title,style:G.style,disabled:G.disabled,"aria-pressed":function(){var B,F;return((B=G.toggleable)==null?0:B.call(G))?!((F=G.toggled)==null||!F.call(G)):void 0},
"aria-label":G.ariaLabel,"aria-disabled":G.visiblyDisabled,"aria-hidden":G.ariaHidden,tabindex:G.tabIndex},G.children)}})},"M"),Q2T=_.Y(function(G){var B=G.data;
var F=G.hasIconLeading;var D=G.hasIconLeadingTrailing;var u=G.hasIconTrailing;var R=G.iconButton;var N=G.iconClassName;var y=G.secondaryIconClassName;var U=G.icon;var q=G.secondaryIcon;var h=G.textContentClassName;return _.l(dy,{className:"",style:"display: inherit; justify-content: center"},_.l(_.E,{debugInstance:"V4z1Uc",cond:function(){return U&&(F()||D()||(R==null?void 0:R()))},
then:function(){return _.l(dy,null,_.l("div",{class:N,"aria-hidden":"true"},U==null?void 0:U()))}}),_.l(_.E,{debugInstance:"ok3btb",
cond:function(){return(B().buttonText||B().animatedTextProps||B().formattedButtonText)&&!(R==null?0:R())},
then:function(){return _.l(dy,null,_.l(Xga,{className:h,iconPosition:function(){return B().iconPosition},
text:function(){return B().buttonText},
oneOffCustomTextWrap:function(){return B().oneOffCustomTextWrap},
formattedButtonText:function(){return B().formattedButtonText},
animatedTextProps:function(){return B().animatedTextProps}}))}}),_.l(_.E,{debugInstance:"DO5Rz",
cond:u,then:function(){return _.l(dy,null,_.l("div",{class:N},U==null?void 0:U()))}}),_.l(_.E,{debugInstance:"bnojSc",
cond:D,then:function(){return _.l(dy,null,_.l("div",{class:y},q==null?void 0:q()))}}),_.l(_.E,{debugInstance:"HN3kad",
cond:function(){return!B().disabled&&!0},
then:function(){return _.l(_.YR,{model:function(){var K=B();return{color:K.style==="overlay-dark"?4:K.style==="overlay"?K.type==="filled"?4:3:K.type==="filled"||K.style==="call-to-action-inverse"||K.style==="mono-inverse"?2:1}}})}}))},"N"),Xga=_.Y(function(G){var B=function(){var F,D;
return((F=G.iconPosition)==null?void 0:F.call(G))==="icon-with-label"||((D=G.oneOffCustomTextWrap)==null?void 0:D.call(G))};
return _.l("div",{class:G.className,"aria-hidden":function(){var F,D,u;return((F=G.ariaHidden)==null?void 0:F.call(G))&&(!((D=G.animatedTextProps)==null||!D.call(G))||!((u=G.formattedButtonText)==null||!u.call(G)))}},_.l(_.LH,null,_.l(_.Xm,{when:function(){var F;
return(F=G.animatedTextProps)==null?void 0:F.call(G)}},function(){return _.l(_.E8L,{numberText:function(){return G.animatedTextProps().numberText},
numberValue:function(){return G.animatedTextProps().numberValue},
heightPx:function(){return G.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return G.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return G.animatedTextProps().shouldAnimate},
forceRollUp:function(){return G.animatedTextProps().forceRollUp}})}),_.l(_.Xm,{when:function(){var F;
return(F=G.formattedButtonText)==null?void 0:F.call(G)}},function(){return _.l(_.Wd,{text:function(){return Object.assign({},G.formattedButtonText(),{lineBreakMode:B()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":G.formattedButtonText().lineBreakMode,
alignment:B()?"TEXT_ALIGNMENT_CENTER":G.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!B()}})}),_.l(_.Xm,{when:function(){var F,D;
return((F=G.iconPosition)==null?void 0:F.call(G))==="icon-with-label"&&((D=G.text)==null?void 0:D.call(G))}},function(){return _.l(_.Wd,{text:function(){return{content:G.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.l(_.Qc,null,function(){return G.text})))},"O"),j2s=_.Y(function(G){return _.l(_.E,{debugInstance:"kM7Sgc",
cond:G.hasLabel,then:function(){var B;return _.l("label",{class:G.className},G.children,(B=G.textContent)==null?void 0:B.call(G))},
else:function(){return G.children}})},"P"),dy=_.Y(function(G){return G.children},"Q");var LTL=_.Y(function(G){function B(){R(void 0);y(void 0);q(void 0)}
var F=_.VX(),D=_.C(_.qg(void 0,void 0,"Ug77pc")),u=D.next().value,R=D.next().value;D=_.C(_.qg(void 0,void 0,"XGf7Zb"));var N=D.next().value,y=D.next().value,U=_.C(_.qg(void 0,void 0,"w55oqd"));D=U.next().value;var q=U.next().value;U=_.C(_.qg(0,void 0,"rBgpzc"));var h=U.next().value,K=U.next().value;U=_.gJ(function(){switch(h()){case 1:K(2);break;case 3:var m,L;(L=(m=F.value).hidePopover)==null||L.call(m);K(0);B()}});
_.bC(function(){if(G.show()){var m;R((m=G.children)==null?void 0:m.call(G));var L;y((L=G.location)==null?void 0:L.call(G));var W;q((W=G.classNames)==null?void 0:W.call(G));switch(h()){case 0:var e,b;(b=(e=F.value).showPopover)==null||b.call(e);K(1);break;case 3:K(1);var M,t;(t=(M=F.value).hidePopover)==null||t.call(M);var T,A;(A=(T=F.value).showPopover)==null||A.call(T)}}else switch(h()){case 2:K(3);break;case 1:var Z,P;(P=(Z=F.value).hidePopover)==null||P.call(Z);B();K(0)}},"Z8V4Qb");
_.$f(function(){});
var a={};return _.l("yt-popover",{popover:"manual",el:F,style:_.xN({left:function(){var m;return(m=N())==null?void 0:m.left},
top:function(){var m;return(m=N())==null?void 0:m.top},
bottom:function(){var m;return(m=N())==null?void 0:m.bottom},
right:function(){var m;return(m=N())==null?void 0:m.right}}),
class:_.tx("ytPopoverComponentHost",D,(a.ytPopoverComponentHostClosing=function(){return h()===3},a.ytPopoverComponentHostSeeThrough=function(){var m;
return((m=G.seeThrough)==null?void 0:m.call(G))===!0},a)),
"on:animationend":U},u)},"S");var rBw={left:"0px",right:"auto",top:"0px",bottom:"auto"},WTa=function(){var G=this;this.registerTooltipElement=function(F){var D;G.tooltipElement=(D=F.querySelector("yt-popover"))!=null?D:void 0};
var B=_.C(_.qg(void 0,void 0,"EIh5sc"));this.state=B.next().value;this.setState=B.next().value;B=_.C(_.qg(void 0,void 0,"PC1M0b"));this.schedulerJobID=B.next().value;this.setSchedulerJobID=B.next().value},aD8=function(G,B){var F=BI,D=_.Lu.addJob(function(){var u=Hsa(F,G,B);
F.currentConfig=B;F.setState({text:B.text,location:_.X("web_tooltip_location_fix")?void 0:u,anchor:G,offset:B.offset,style:B.style})},4,B.delay);
F.setSchedulerJobID(D)},mbJ=function(){var G=BI,B=G.schedulerJobID();
B&&(_.Lu.cancelJob(B),G.setSchedulerJobID(void 0));G.setState(void 0);G.currentConfig=void 0};
WTa.prototype.notify=function(G,B){var F;((F=this.state())==null?void 0:F.anchor)===G&&(F=Hsa(this,G,B),this.currentConfig=B,this.setState({text:B.text,location:_.X("web_tooltip_location_fix")?void 0:F,anchor:G,offset:B.offset,style:B.style}))};
var Hsa=function(G,B,F){var D=B.getBoundingClientRect();B=window.innerWidth;var u=window.innerHeight,R=F.location,N=F.offset;F=F.text;if(G=G.tooltipElement){var y=getComputedStyle(G);G=y.font;var U=Gn(y.lineHeight),q=Gn(y.paddingLeft),h=Gn(y.paddingRight),K=Gn(y.paddingTop);y=Gn(y.paddingBottom);var a=document.createElement("canvas").getContext("2d");a.font=G;F={width:a.measureText(F).width+q+h,height:U+K+y}}else F=void 0;G=F;if(!G)return rBw;F=G.width;G=G.height;q=N+G;K=N+F;U=D.top>=q;q=u-D.bottom>=
q;h=D.left>=K;K=B-D.right>=K;y=R;switch(R){case "top":!U&&q&&(y="bottom");break;case "bottom":!q&&U&&(y="top");break;case "left":!h&&K&&(y="right");break;case "right":!K&&h&&(y="left")}switch(y){case "top":R=D.left+D.width/2-F/2;D=D.top-G-N;break;case "bottom":R=D.left+D.width/2-F/2;D=D.bottom+N;break;case "left":R=D.left-F-N;D=D.top+D.height/2-G/2;break;case "right":R=D.right+N;D=D.top+D.height/2-G/2;break;default:R=D.left+D.width/2-F/2,D=D.bottom+N}N=Object.assign({},rBw);R+F>B?(N.right="0px",N.left=
"auto"):(N.left=Math.round(Math.max(0,R)+window.scrollX)+"px",N.right="auto");D+G>u?(N.bottom="0px",N.top="auto"):(N.top=Math.round(Math.max(0,D)+window.scrollY)+"px",N.bottom="auto");return N};var BI;BI=new WTa;_.k4v=_.Y(function(){var G=_.mS(function(){var u;return(u=BI.state())==null?void 0:u.anchor},void 0,"tiGUn"),B=_.mS(function(){var u;
return(u=BI.state())==null?void 0:u.text},void 0,"TA2GQe"),F=_.mS(function(){var u;
return(u=BI.state())==null?void 0:u.style},void 0,"ucvFsf"),D=_.X("web_tooltip_location_fix")?_.mS(function(){var u=G();
var R=BI.currentConfig;if(u&&R)return Hsa(BI,u,R)},void 0,"EpDz6"):_.mS(function(){var u;
return(u=BI.state())==null?void 0:u.location},void 0,"aRJtfd");
return _.l("yt-tooltip",{class:"ytTooltipContainerHost",el:_.VX(BI.registerTooltipElement),"aria-hidden":"true"},_.l(LTL,{classNames:function(){switch(F()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:D,show:function(){return!!B()&&!!D()},
seeThrough:!0},B))},"T");var nLg=x3("stamper-context");_.Ji=_.Y(function(G){var B=G.data;var F=G.icon;var D=G.iconName;var u=G.animateIcon;var R=G.secondaryIcon;var N=G.secondaryIconName;var y=G.focusedOverride;var U=G.clientOnlyWizTooltipsEnabled;QmJ();var q=y_U(B),h=q.size,K=q.style;G=q.disabled;var a=q.onTap,m=q.alignByText,L=q.aTagConfig,W=q.customColors,e=q.segmentedPosition,b=q.toggled,M=q.toggleable,t=q.accessibilityLabel,T=q.onToggle,A=q.iconPosition,Z=q.oneOffCustomTextWrap,P=q.disableTextEllipsis,RI=q.disableBackdropFilter,yo=q.tooltipText,
hg=q.ariaHidden,US=q.tabIndex,aI=q.buttonText,v6=q.formattedButtonText,Jg=q.animatedTextProps,c6=q.onClickRateLimitMs,q8=qa8(B,F,R,D,N,y,u),n7=q8.type;F=q8.shouldFocus;D=q8.hasIconLeading;u=q8.hasIconTrailing;var Ts=q8.hasIconLeadingTrailing,hT=q8.hasIconOnly;R=q8.hasIconOnly40;var L7=q8.hasIconWithLabel;N=q8.iconButton;var K7=q8.visiblyDisabled;y=q8.overrideSmallSizeIcon;var kD=q8.iconToRender;q8=q8.secondaryIconToRender;var Rz=_.C(XWo(yo,q.tooltipShape)).next().value,KQ=function(eN){a==null||a(eN);
M()&&(T==null||T(eN))},pQ=_.mS(function(){return c6==null?void 0:c6()},void 0,"siKywb"),aq=_.mS(function(){return pQ()?CBt(KQ,pQ()):KQ},void 0,"wDTcN");
q={};var Zq={};return _.l(j2s,{className:_.tx("yt-spec-button-shape-with-label",(q["yt-spec-button-shape-with-label--is-overlay"]=function(){return K()==="overlay"||K()==="overlay-dark"},q)),
hasLabel:L7,textContent:function(){return _.l(Xga,{text:aI,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:Z,iconPosition:A,formattedButtonText:v6,animatedTextProps:Jg})}},_.l(mGs,{aTagConfig:L,
className:_.tx("yt-spec-button-shape-next",function(){return EnM(n7())},function(){return K7()?void 0:hNQ(K())},function(){return K8S(h())},(Zq["yt-spec-button-shape-next--disabled"]=K7,Zq["yt-spec-button-shape-next--focused"]=F,Zq["yt-spec-button-shape-next--icon-trailing"]=u,Zq["yt-spec-button-shape-next--icon-leading"]=D,Zq["yt-spec-button-shape-next--icon-leading-trailing"]=Ts,Zq["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Ts()&&!(aI()||v6())},Zq["yt-spec-button-shape-next--icon-button"]=
function(){return hT()||L7()},Zq["yt-spec-button-shape-next--icon-only-default"]=R,Zq["yt-spec-button-shape-next--align-by-text"]=m,Zq["yt-spec-button-shape-next--segmented-start"]=function(){return e()==="start"},Zq["yt-spec-button-shape-next--segmented-end"]=function(){return e()==="end"},Zq["yt-spec-button-shape-next--override-small-size-icon"]=y,Zq["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=Z,Zq["yt-spec-button-shape-next--disable-text-ellipsis"]=P,Zq["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!RI()&&!_.X("web_disable_backdrop_filter")},Zq)),
style:function(){var eN=W();if(eN){var Ps=eN.color;var el=eN.backgroundColor;eN=eN.borderColor;var sG="";Ps&&(sG+="color: "+Ps+";");el&&(sG+="background-color: "+el+";");eN&&(sG+="border-color: "+eN+";");Ps={style:sG}}else Ps={};return Ps.style},
onClick:function(eN){aq()(eN)},
disabled:G,ariaLabel:t,toggleable:M,toggled:b,title:function(){return(U==null?0:U())||!yo()?"":yo()},
visiblyDisabled:K7,ariaHidden:hg,tabIndex:US,ref:function(eN){(U==null?0:U())&&Rz(eN)}},_.l(Q2T,{data:B,
hasIconLeading:D,hasIconLeadingTrailing:Ts,hasIconTrailing:u,iconButton:N,icon:kD,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:q8})))},"V");
_.Ji.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.cd=_.Y(function(G){var B=G.data;var F=G.className;var D=G.style;var u=G.useOutlinedIcon;var R=G.buttonOverrides;var N=G.animatedTextProps;var y=G.onClick;var U=G.target;var q=_.W5("button-view-model",function(A){A.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var Z=B().targetId;Z&&_.xl(_.Pv(),Z,A);return function(){sc(_.Pv(),A)}}),h=function(){return B().iconName},K=function(){var A;
return(A=B())==null?void 0:A.entityKey},a=_.FT(function(A){a:{var Z=K(),P=B().buttonEntitySelectorType;
if(P&&Z)switch(P){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":A=(A=_.Ze(A,Z))?{isHidden:A.adsState==="ADS_STATE_NONE"||A.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:A={isHidden:!1};break a}A=void 0}return A}),m,L=(m=_.te().resolve(_.fH(_.Rx)))==null?void 0:m(),W=function(){var A=B();
var Z=R==null?void 0:R(),P=N==null?void 0:N(),RI=U==null?void 0:U();if(A){var yo=eNQ(A.type);var hg=!!A.title||!!A.titleFormatted;var US=!(!A.iconName&&!A.iconImage);hg=US&&!hg?"icon-only":US?A.iconTrailing||A.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;hg==="icon-only-40"&&(yo="text");var aI;US=(aI=Z==null?void 0:Z.state)!=null?aI:$b6(A.state);var v6,Jg=(v6=Z==null?void 0:Z.disabled)!=null?v6:A.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||A.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.X("web_button_vm_refactor_disabled")){var c6;Jg=(c6=Z==null?void 0:Z.disabled)!=null?c6:US==="disabled"}P=P&&P.numberText&&!isNaN(Number(P.numberValue))?P:void 0;v6=Object;c6=v6.assign;aI=A.title;var q8=A.titleFormatted,n7=A.accessibilityText,Ts=Ovo(A.style),hT=zNs(A.buttonSize);RI=kUg(A,q,Jg,y,RI);Jg=Jg&&!A.onDisabledTap;var L7=W8U(A,q),K7=A.customFontColor,kD=A.customBackgroundColor;var Rz=A.customBorderColor;var KQ=A.customDarkThemeFontColor,pQ=A.customDarkThemeBackgroundColor,aq=A.customDarkThemeBorderColor;
K7=L&&KQ?KQ:K7;kD=L&&pQ?pQ:kD;Rz=L&&aq?aq:Rz;Rz={color:K7?_.Kp(K7):void 0,backgroundColor:kD?_.Kp(kD):void 0,borderColor:Rz?_.Kp(Rz):void 0};if(aq=_.Q(A.tooltipData,Gl7)){var Zq;kD={text:(Zq=aq.tooltipText)!=null?Zq:"",location:L8M(aq.placement),style:aq.style}}else kD=void 0;A=c6.call(v6,{},{buttonText:aI,formattedButtonText:q8,animatedTextProps:P,accessibilityLabel:n7,style:Ts,type:yo,state:US,size:hT,iconPosition:hg,onTap:RI,disabled:Jg,aTagConfig:L7,customColors:Rz,tooltipText:A.tooltip,tooltipShape:kD},
Z)}else A={style:"mono",type:"text",state:"active",size:"M"};A.focused=M();return A},e=function(){return lDl(W(),!!B().iconName)};
G=_.C(_.qg(!1,void 0,"yZ8hab"));m=G.next().value;var b=G.next().value,M=m;G=_.gJ(function(){var A=_.te().resolve(_.fH(_.Mu));A&&b(A.isKeyBoardInUse());return!0});
m=_.gJ(function(){b(!1);return!0});
_.bC(function(){var A,Z=_.Q(B==null?void 0:(A=B())==null?void 0:A.onVisible,_.mr);Z&&_.QX(Z,{disableClickTracking:!0})},"G9MlKd");
var t=function(){var A;return(B==null?0:(A=B())==null?0:A.iconImage)?{sources:[B().iconImage]}:void 0},T=_.X("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.l("button-view-model",{el:q,class:_.tx("ytSpecButtonViewModelHost",F),"on:focusin":G,"on:focusout":m},_.l(_.E,{cond:function(){var A,Z;return!((Z=K()&&B().buttonEntitySelectorType&&((A=a())==null?void 0:A.isHidden))!=null&&Z)},
then:function(){return _.l(_.E,{cond:t,then:function(A){return _.l(_.Ji,{data:W,icon:function(){return _.l(_.vr,{data:A,alt:"",targetWidth:e,targetHeight:e,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:T})},
else:function(){return _.l(_.Ji,{data:W,icon:function(){return _.l(_.Pr,{icon:h,active:function(){return(u==null?0:u())?!1:W().toggled},
animateIcon:function(){var A;return!!(D==null?0:(A=D())==null?0:A.animateIcon)},
size:e})},
clientOnlyWizTooltipsEnabled:T})}})}}))},"X");
_.cd.idomCompat={callbacks:{onClick:!0}};_.YN(_.Y(function(G){return _.l("yt-button-view-model",{id:G.id,class:_.tx(G.scopingClassName,G.classes),icon:function(){var B;return(B=G.icon)==null?void 0:B.call(G)},
"dialog-dismiss":function(){var B;return((B=G.dialogDismiss)==null?0:B.call(G))?"":void 0}},_.l(_.cd,{data:function(){var B;
return(B=G.data)==null?void 0:B.call(G)},
className:function(){var B;return(B=G.className)==null?void 0:B.call(G)},
style:function(){var B;return(B=G.style)==null?void 0:B.call(G)},
useOutlinedIcon:function(){var B;return(B=G.useOutlinedIcon)==null?void 0:B.call(G)},
buttonOverrides:function(){var B;return(B=G.buttonOverrides)==null?void 0:B.call(G)},
animatedTextProps:function(){var B;return(B=G.animatedTextProps)==null?void 0:B.call(G)},
onClick:function(B){var F;return(F=G.onClick)==null?void 0:F.call(G,B)}}))},"Y"),"yt-button-view-model",{props:{data:_.Hd,
className:_.Hd,style:_.Hd,useOutlinedIcon:_.Hd,buttonOverrides:_.Hd,animatedTextProps:_.Hd,onClick:_.oh,scopingClassName:_.Hd,id:_.Hd,icon:_.Hd,dialogDismiss:_.Hd,classes:_.Hd,target:_.oh}});_.YN(_.Y(function(G){var B=G.data;var F=G.id;var D=G.className;var u=G.iconName;var R=G.animateIcon;var N=G.secondaryIconName;G=_.C(_.qg(!1,void 0,"TtJl8"));var y=G.next().value,U=G.next().value,q=function(){var K=_.te().resolve(_.fH(_.Mu));K&&U(K.isKeyBoardInUse())},h=function(){U(!1)};
G=_.W5("yt-button-shape",function(K){if(_.te().resolve(_.fH(_.Mu)))return K.addEventListener("focusin",q),K.addEventListener("focusout",h),function(){K.removeEventListener("focusin",q);K.removeEventListener("focusout",h)}});
return _.l("yt-button-shape",{el:G,id:F,class:D},_.l(_.E,{cond:B,then:function(){return _.l(_.Ji,{data:B,iconName:u,secondaryIconName:N,focusedOverride:y,animateIcon:R})}}))},"Z"),"yt-button-shape",{props:{data:_.Hd,
id:_.Hd,className:_.Hd,iconName:_.Hd,animateIcon:_.Hd,secondaryIconName:_.Hd,clientOnlyWizTooltipsEnabled:_.Hd,disableUpgrade:_.Hd},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var TT=function(){var G=_.p.apply(this,arguments)||this;G.isGoalActive=!0;return G};
_.r(TT,_.p);TT.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
TT.prototype.progressBarChanged=function(){var G=_.IF(this.hostElement).querySelector("#progress-bar-progress"),B,F,D,u=(D=Number((B=this.creatorGoalState)==null?void 0:B.currentGoalCount)/Number((F=this.creatorGoalState)==null?void 0:F.totalGoalCount)*100)!=null?D:0,R;G.style.width=((R=Math.min(u,100))!=null?R:0)+"%"};
TT.prototype.goalStateChanged=function(){var G;this.isGoalActive=((G=this.creatorGoalState)==null?void 0:G.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var B;G={"--yt-progress-bar-color":kRg((B=this.creatorGoalState)==null?void 0:B.progressBarColor)};_.Ss(this.hostElement,G)};
TT.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.ZN.Object.defineProperties(TT.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var G;return this.isGoalActive&&!((G=this.creatorGoalState)==null||!G.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.endTimestampMs){var B;G=Number((B=this.creatorGoalState)==null?void 0:B.endTimestampMs)/1E3;return{seconds:String(G)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.themedTargetImage){var B;G=_.Q((B=this.creatorGoalState)==null?void 0:B.themedTargetImage,J3T);return this.isAppDarkTheme()?G==null?void 0:G.imageDark:G==null?void 0:G.imageLight}}}});
_.ZN.Object.defineProperties(TT,{template:{configurable:!0,enumerable:!0,get:function(){return iss()}}});
TT.prototype.goalStateChanged=TT.prototype.goalStateChanged;TT.prototype.progressBarChanged=TT.prototype.progressBarChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],TT.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);
_.c([_.v({selectorArgs:["data.creatorGoalEntityKey"],selector:function(G,B){return _.g5(G.entities,"creatorGoalEntity",B)}}),
_.I("design:type",Object)],TT.prototype,"creatorGoalState",void 0);_.c([_.v(),_.I("design:type",Object)],TT.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],TT.prototype,"isGoalActive",void 0);_.c([_.O("creatorGoalState","isGoalActive"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],TT.prototype,"shouldShowCountdown",null);_.c([_.O("creatorGoalState"),_.I("design:type",Object),_.I("design:paramtypes",[])],TT.prototype,"endTimestamp",null);
_.c([_.O("creatorGoalState"),_.I("design:type",Object),_.I("design:paramtypes",[])],TT.prototype,"targetIconThemedImage",null);_.c([_.Ga("creatorGoalState.currentGoalCount"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TT.prototype,"progressBarChanged",null);_.c([_.Ga("creatorGoalState.creatorGoalState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TT.prototype,"goalStateChanged",null);
_.c([_.ay({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],TT);_.d(TT,"yt-creator-goal-progress-flow-view-model",function(){return iss()},{mode:0});var OsT;var e3w;var IS=function(){return _.p.apply(this,arguments)||this};
_.r(IS,_.p);IS.prototype.attached=function(){var G,B,F;if(this==null?0:(G=this.data)==null?0:(B=G.pdgPurchasedBumperLoggingDirectives)==null?0:(F=B.loggingDirectives)==null?0:F.trackingParams){var D,u,R;vnJ(this==null?void 0:(D=this.data)==null?void 0:(u=D.pdgPurchasedBumperLoggingDirectives)==null?void 0:(R=u.loggingDirectives)==null?void 0:R.trackingParams)}};
IS.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],IS.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IS.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],IS);
_.d(IS,"yt-live-chat-item-bumper-view-model",function(){if(e3w===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;OsT===void 0&&(OsT=document.createElement("template"));var D=OsT;F.call(B,D.content.cloneNode(!0),G.content.firstChild);e3w=G}G=e3w;return G},{mode:0});var $Gq;var z37;_.VO=function(G,B){this.data=G;this.actions=B;this.data=G;this.actions=B};
_.WI=function(){};_.f4={};_.f4.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(G,B){onU(this.hostElement,G,B)},
getNavigationEndpointPopupAction:function(G){return M4g(G,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(G,B){pWJ(this.hostElement,G,B,this.openPopupConfig)}};var Zvz=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ti={};
_.ti.YtEndpointBehavior=[_.f4.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.v5("openPopupConfig");(this.useClickHandler=_.on("useClickHandler",!1))?this.hostElement.addEventListener("click",sj(this,this.onEndpointClick_)):(O2(this.hostElement,"tap",sj(this,this.onEndpointTap_)),O2(this.hostElement,"touchend",sj(this,this.onEndpointTouchEnd_)));O2(this.hostElement,"touchstart",sj(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
sj(this,this.onEndpointTapStart_))},
onEndpointClick_:function(G){dbg(this.hostElement,G,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(G){var B=this.hostElement,F=this.openPopupConfig,D=this.disableCommandHandlerOverride;D=D===void 0?!1:D;var u=Ya8(G);if(u){u.href&&QW(u.href);var R=G.detail;var N=R.sourceEvent;R=R.preventer;N=N.button!==void 0?N.button===0&&!D$(N):R?!D$(R):!0;u.data&&N&&A_U(B,u,G,F,D)}},
onEndpointTouchEnd_:function(G){D$(G)||Ya8(G)&&G.preventDefault()},
onEndpointTapStart_:function(G){fDS(G)}}];_.Za={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(G){for(var B=_.pZ.getInstance(),F=_.C(Object.keys(G)),D=F.next();!D.done;D=F.next()){var u=D.value;D=G[u];if(this&&this[D]){var R=B.actionRoutingMap.get(u);R||(R=new Map,B.actionRoutingMap.set(u,R));B.registerActionHandler(this,u,this[D].bind(this),R)}else u=Error("nd"),u.params=D,_.Mn(u)}},
unregisterActionMap:function(G){_.Ab(_.pZ.getInstance(),G,this)}}]};var CA=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_"+(_.X("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.X("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.X("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.X("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.X("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.X("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var RQ;var N6=new Map;var GyQ=window.matchMedia("(forced-colors: active)").matches;var bs7;var VGa;var v8s=new _.oV("LOTTIE_LOADER_TOKEN");_.gy=_.Y(function(G){var B=G.data;var F=G.className;var D=G.animationName;var u=G.animationRef;var R=G.elRefForInterop;var N=_.H5("lottie-component"),y;_.VI(function(){var q;return void((q=y)==null?void 0:q.destroy())});
var U;_.bC(function(){var q=_.Mg(D);if(q!==U){U=q;var h=Object.assign({},{animationName:q,animationRef:_.Mg(u)},_.Mg(B));try{_.te().resolve(v8s)().then(function(m){var L;(L=y)==null||L.destroy();var W,e;L=(e=R==null?void 0:(W=R())==null?void 0:W.value)!=null?e:N.value;W=h.animationRef;e=h.listeners;m=m.loadAnimation(Object.assign({},{container:L},h.animationConfig));W&&(W.lottieEl=m);if(e)for(L=_.C(Object.entries(e)),W=L.next();!W.done;W=L.next())e=_.C(W.value),W=e.next().value,(e=e.next().value)&&
m.addEventListener(W,e);y=m})}catch(m){q=m;
var K="LottieComponent error.";q.message&&(K+=" Original description: "+q.message);_.$2(q,K);_.em(q);var a;((a=h.listeners)==null?0:a.error)&&h.listeners.error(q)}}},"nrJISd");
return _.l(vyJ,{cond:function(){return!(R==null?0:R())},
then:function(){return _.l("lottie-component",{class:_.tx("ytLottieComponentHost",F),el:N})}})},"aa");_.YN(_.Y(function(G){return _.l("ytd-lottie-player",{id:G.id,hidden:G.hidden,class:G.className,"aria-label":G.ariaLabel,style:"display: block;"},_.l(_.gy,{data:G.data,animationName:function(){var B;return((B=G.data().animationConfig)==null?void 0:B.name)||""},
animationRef:function(){return G.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.Hd,
id:_.Hd,hidden:_.Hd,className:_.Hd,ariaLabel:_.Hd}});var Sx=function(){var G=_.p.apply(this,arguments)||this;G.animationRef={};G.delhiIconsEnabled=_.X("enable_web_delhi_icons");return G};
_.r(Sx,_.p);_.w=Sx.prototype;
_.w.handlePropertyChange=function(){var G=this.animatedIcon,B=this.active,F=this.isDarkTheme;if(G){var D=this.previousActive!==B;this.previousActive=B;this.animationRef.lottieEl?D?this.toggleAnimation(B,G.totalFrames):_.X("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(B,G.totalFrames):B?this.initializeAnimationAsToggled(G.lottiePlayerProps,G.totalFrames):this.initializeAnimationAsUntoggled(G.lottiePlayerProps);G.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
G.type;this.lottiePlayerProps=this.computeLottiePlayerProps(G,F)}};
_.w.computeLottiePlayerProps=function(G,B){var F=this.deepCloneLottiePlayerProps(G);B?(B=G.nameDarkTheme,G=G.pathDarkTheme):(B=G.name,G=G.path);F.animationConfig.name=B;(B=N6.get(G))?F.animationConfig.animationData=B:F.animationConfig.path=G;return F};
_.w.initializeAnimationAsToggled=function(G,B){G.animationConfig.initialSegment=[B-1,B]};
_.w.initializeAnimationAsUntoggled=function(G){G.animationConfig.initialSegment=void 0};
_.w.toggleAnimation=function(G,B){if(G){var F;(F=this.animationRef.lottieEl)==null||F.playSegments([0,B],!0)}else{var D;(D=this.animationRef.lottieEl)==null||D.playSegments([0,1],!0)}};
_.w.setAnimationState=function(G,B){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(G?B-1:0,!0)};
_.w.deepCloneLottiePlayerProps=function(G){var B=Object.assign({},G.lottiePlayerProps.animationConfig);G=Object.assign({},G.lottiePlayerProps);G.animationConfig=B;return G};
Sx.prototype.handlePropertyChange=Sx.prototype.handlePropertyChange;_.c([_.v(),_.I("design:type",Object)],Sx.prototype,"animatedIcon",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Sx.prototype,"active",void 0);_.c([_.v(),_.I("design:type",Boolean)],Sx.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Sx.prototype,"animatedIconType",void 0);_.c([_.v(),_.I("design:type",Boolean)],Sx.prototype,"previousActive",void 0);
_.c([_.v(),_.I("design:type",Object)],Sx.prototype,"lottiePlayerProps",void 0);_.c([_.v(),_.I("design:type",Object)],Sx.prototype,"animationRef",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Sx.prototype,"delhiIconsEnabled",void 0);_.c([_.Ga("animatedIcon","active","isDarkTheme"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Sx.prototype,"handlePropertyChange",null);_.c([_.ay({is:"yt-animated-icon",disableElementRegistration:!0})],Sx);
_.d(Sx,"yt-animated-icon",function(){if(VGa===void 0){var G=document.createElement("template");_.H(G,'\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="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;bs7===void 0&&(bs7=document.createElement("template"));var D=bs7;F.call(B,D.content.cloneNode(!0),G.content.firstChild);VGa=G}G=VGa;return G},{mode:2});var o8y;var MGt;_.yO=_.Y(function(G){var B={value:null,cancelled:!1};_.VI(function(){B.cancelled=!0});
var F=_.mS(G.data,{equals:function(D,u){return D.iconName===u.iconName&&D.iconStyle===u.iconStyle&&D.iconSize===u.iconSize&&D.iconSetName===u.iconSetName&&D.iconSelected===u.iconSelected}},"ck24jb");
return _.l("span",{class:"yt-icon-shape",el:_.VX(function(D){_.bC(function(){var u,R=(u=G.options)==null?void 0:u.call(G);u=F();ulI(D,B,u,R)},"v878Je")})})},"da");
_.yO.idomCompat=!0;var kIQ=["youtube_fill","youtube_outline"];var pgq=new _.iE({type:"iconset",value:void 0}),sp=function(){var G=_.p.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.iconName="";G.iconsetName="yt-icons";G.iconset=null;G.missingIconSet=!1;G.iconType=null;G.iconShapeDataSignal=_.qg(void 0,void 0,"TaEgXd");G.renderingOptionsSignal=_.qg({iconWidth:"100%",iconHeight:"100%",iconFilter:G.iconFilter,iconColor:G.gradientColor},void 0,"a1vqYe");G.wizHasRendered=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return G};
_.r(sp,_.p);sp.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
sp.prototype.handlePropertyChange=function(){var G=this,B,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b;return _.n(function(M){switch(M.nextAddress){case 1:if(B=!G.icon&&!G.iconName||!G.isAttached)return M.return();F=G;D=F.icon;u=F.size;R=F.defaultToFilled;N=F.active;y=F.targetContainer;G.toggleContainerClass(y);_.X("kevlar_use_wil_icons")&&D&&(U=FZc(D),G.iconType=U.length?U[1]:null);if(D){M.jumpTo(2);break}G.iconsetName="";G.iconName="";return M.yield(G.renderIcon(y,D),3);case 3:return M.return();case 2:q=Y0N(D);
h=FZc(q);h.length&&(G.iconsetName=h[0],G.iconName=h[1]);if(!_.X("kevlar_use_wil_icons")){M.jumpTo(4);break}K=sp;a=ABL;m=G.iconType;L=G.active;W=G.defaultToFilled;e=G.size;b=G.iconsetName;return M.yield(dG7(),6);case 6:return M.yield(a.call(K,m,L,W,e,b,M.yieldResult),5);case 5:G.iconShapeData=M.yieldResult;case 4:if(G.shouldRenderIconShape(y)){M.jumpTo(7);break}return M.yield(G.determineIconSet(q,N,R,u,y),7);case 7:return M.yield(G.renderIcon(y,D),0)}})};
sp.prototype.toggleContainerClass=function(G){G?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var Y0N=function(G){return!_.X("default_to_innertube_icon")||G.indexOf(":")>0?G:_.xT(G)};
_.w=sp.prototype;_.w.determineIconSet=function(G,B,F,D){var u=this;return _.n(function(R){return R.nextAddress==1?_.X("kevlar_system_icons")||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?R.yield(u.switchToYtSysIconset(G,B,F,D),3):R.jumpTo(2):R.nextAddress!=2?R.return():R.yield(u.useYtSysIconsetForMissingIcons(G,B,F,D),0)})};
_.w.switchToYtSysIconset=function(G,B,F,D){var u=this,R,N,y,U,q,h,K;return _.n(function(a){switch(a.nextAddress){case 1:if(!G||u.iconsetName!=="yt-icons"&&u.iconsetName!=="yt-sys-icons"){a.jumpTo(0);break}R=FZc(G);N=R[1];var m=N;if(nJg(m))N=m;else{var L=m=m.toLowerCase();(m=Iuq.get(m))&&(L=m);N=L}_.X("enable_polymer_icons_replace_underscores_dash")&&N.includes("_filled")&&(N=N.replace(/_filled/g,"-filled"));return a.yield(sF(N,!0),3);case 3:return y=a.yieldResult,a.yield(sF(N,!1),4);case 4:if((U=
a.yieldResult)||B&&y)u.iconsetName="yt-sys-icons";u.iconName=u.getIconName(N,B,F,U,y);if(D===24){a.jumpTo(0);break}q="yt-sys-icons"+D+":"+u.iconName;return a.yield(sF(q,!1,!0),6);case 6:return h=a.yieldResult,a.yield(sF(q,!0,!0),7);case 7:K=a.yieldResult;u.iconName=u.getIconName(N,B,F,h,K);if(!B&&h||B&&K)u.iconsetName="yt-sys-icons"+D;_.di(a)}})};
_.w.getIconName=function(G,B,F,D,u){G.includes("-filled")&&(G=G.replace("-filled",""));return u&&(B||F)?G+"-filled":G};
_.w.useYtSysIconsetForMissingIcons=function(G,B,F,D){var u=this,R,N;return _.n(function(y){if(y.nextAddress==1)return u.iconsetName!=="yt-icons"?y.jumpTo(0):y.yield(sF(u.iconName,!1,!1,!0),3);if(y.nextAddress!=4)return R=y.yieldResult,y.yield(sF(u.iconName,!1),4);N=y.yieldResult;if(R||!N)return y.jumpTo(0);u.iconsetName="yt-sys-icons";return y.yield(u.switchToYtSysIconset(G,B,F,D),0)})};
_.w.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var dG7=function(){return _.n(function(G){try{return G.return(_.te().resolve(_.Pc))}catch(B){return G.return(new Promise(function(F){_.kl().parkOrScheduleJob(function(){F(_.te().resolve(_.Pc))},2,"ci")}))}})},ABL=function(G,B,F,D,u,R){D=D===void 0?24:D;
if(G){G=G.toLowerCase();var N=G.endsWith("_filled")||G.endsWith("-filled");B={iconName:G,iconStyle:(B===void 0?0:B)||(F===void 0?0:F)||N?"youtube_fill":"youtube_outline",iconSize:D,iconSetName:u===void 0?"yt-icons":u};F=!!R.resolveIcon(B);F||(B.iconSize=void 0,F=!!R.resolveIcon(B));!F&&N&&(B.iconName=G.substring(0,G.length-7),B.iconSize=D,F=!!R.resolveIcon(B),F||(B.iconSize=void 0,F=!!R.resolveIcon(B)));F||(B.iconStyle=void 0,F=!!R.resolveIcon(B));F||_.em(new _.Uf("Icon not supported",{iconName:B.iconName,
iconStyle:B.iconStyle,iconSize:B.iconSize,iconType:G}));return F?B:void 0}};
_.w=sp.prototype;_.w.shouldRenderIconShape=function(G){if(!_.X("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;G=this.getContainer(G);return!B9s(G,this.icon)};
_.w.renderIcon=function(G,B){var F=this,D,u,R,N,y,U,q,h;return _.n(function(K){switch(K.nextAddress){case 1:if(B&&F.icon!==B)return K.return();D=F.getContainer(G);u=B9s(D,F.icon);if(F.shouldRenderIconShape(G)&&F.iconType)return F.applyIconShape(u,D),K.return();F.removeIconShape();if(!D)return K.return();F.iconName===""&&F.iconset&&D&&(F.removeStaticIcon(F.iconset,D),u&&F.removeAnimatedIcon(D));if(F.iconName===""&&F.iconset||!F.iconsetName||!pgq)return K.return();F.iconset=pgq.byKey(F.iconsetName);
if(!F.iconset)return F.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.x7(F,F.onIconsetAdded)),K.return();F.missingIconSet&&(F.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.x7(F,F.onIconsetAdded)));N=(R=u||F.isAnimatedIcon?xbo(F.icon):void 0)&&!R.lazyLoad;U=R&&((y=R)==null?void 0:y.lazyLoad)&&(R.lottiePlayerProps.animationConfig.animationData?!0:N6.get(F.isDarkTheme?R.pathDarkTheme:R.path)?!0:!1);if(N||U)return F.applyAnimatedIcon(D,R,F.iconset),K.return();if(U||
(q=R)==null||!q.lazyLoad){K.jumpTo(2);break}h=FfI(R,F.isDarkTheme);F.applyStaticIcon(F.iconset,D,F.iconName,G,u);return K.yield(h,3);case 3:return K.yield(F.renderIcon(F.targetContainer,F.icon),4);case 4:return K.return();case 2:F.applyStaticIcon(F.iconset,D,F.iconName,G,u),_.di(K)}})};
_.w.getContainer=function(G){var B,F=(B=Tps(this.hostElement))==null?void 0:B.host;B=!!F&&!!F.polymerController;if(!G||B)return G?this.getTargetContainer(G,F):this.hostElement};
_.w.getTargetContainer=function(G,B){var F=_.IF(B).querySelector("#"+G);F||(G=new _.Uf("yt-icon container missing",B.is,G),_.k2(G));return F};
_.w.applyStaticIcon=function(G,B,F,D,u){u&&this.removeAnimatedIcon(B);this.removeIconShape();u=u&&!!this.iconType&&!!this.iconShapeData&&_.X("kevlar_use_wil_icons");try{u?this.applyIconShape(!1,B):G.applyIcon(B,F)}catch(R){this.handleError(R,D,B)}};
_.w.applyIconShape=function(G,B){this.iconset&&B&&(this.removeStaticIcon(this.iconset,B),G&&this.removeAnimatedIcon(B));G={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var F=_.C(this.iconShapeDataSignal);B=F.next().value;F=F.next().value;var D=_.C(this.renderingOptionsSignal),u=D.next().value;D=D.next().value;F(this.iconShapeData);D(G);if(!this.wizHasRendered)for(this.wizHasRendered=!0,G=_.C(RC8(B,u)).next().value;G.firstChild;)_.IF(this.hostElement).appendChild(G.firstChild)};
_.w.removeIconShape=function(){if(_.X("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.w.removeStaticIcon=function(G,B){G.removeIcon(B)};
_.w.applyAnimatedIcon=function(G,B,F){this.removeStaticIcon(F,G);this.removeIconShape();var D;F=this.animatedIconElement&&((D=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:D.type)===B.type;if(this.animatedIconElement&&F){this.animatedIconElement.polymerController.animatedIcon=B;var u;((u=this.animatedIconElement)==null?void 0:u.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(G),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=B,this.animatedIconElement.polymerController.active=this.active,_.X("delhi_modern_web_player_icons")?(B=P$I(G,this.icon)&&G.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=B?B.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.X("kevlar_use_wil_icons")?
G.insertBefore(this.animatedIconElement,G.childNodes[0]):(G=_.IF(G),G.insertBefore(this.animatedIconElement,G.childNodes[0]))};
_.w.removeAnimatedIcon=function(G){_.X("kevlar_use_wil_icons")?this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement):(G=_.IF(G),this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.w.handleError=function(G,B,F){_.$2(G,this.iconName,B,F);B=B9s(F,this.icon);var D=!1;window.location.href.includes("JpymaW6Lh2w")?D=!0:F._svgIcon&&(F=(F=F._svgIcon.parentNode)?F.tagName:"unknown",_.$2(G,F),F==="YT-ICON"&&G.name==="NotFoundError"?D=!0:G.name==="NotFoundError"&&B&&(D=!0));D?_.em(G):_.k2(G)};
_.ZN.Object.defineProperties(sp,{template:{configurable:!0,enumerable:!0,get:function(){if(MGt===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;
o8y===void 0&&(o8y=document.createElement("template"));var D=o8y;F.call(B,D.content.cloneNode(!0),G.content.firstChild);MGt=G}G=MGt;return G}}});
sp.prototype.handlePropertyChange=sp.prototype.handlePropertyChange;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],sp.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",String)],sp.prototype,"icon",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],sp.prototype,"active",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],sp.prototype,"defaultToFilled",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],sp.prototype,"isAnimatedIcon",void 0);
_.c([_.v({value:24}),_.I("design:type",Number)],sp.prototype,"size",void 0);_.c([_.v({value:""}),_.I("design:type",String)],sp.prototype,"targetContainer",void 0);_.c([_.v(),_.I("design:type",Object)],sp.prototype,"animatedIconElement",void 0);_.c([_.v(),_.I("design:type",Object)],sp.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sp.prototype,"ariaHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],sp.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],sp.prototype,"role",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],sp.prototype,"tabindex",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],sp.prototype,"title",void 0);_.c([_.v(),_.I("design:type",String)],sp.prototype,"style",void 0);_.c([_.v(),_.I("design:type",String)],sp.prototype,"iconFilter",void 0);_.c([_.v(),_.I("design:type",String)],sp.prototype,"gradientColor",void 0);
_.c([_.Ga("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],sp.prototype,"handlePropertyChange",null);_.c([_.ay({is:"yt-icon",noInjection:!0})],sp);var wyz="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),N9I=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var JB7={};JB7.YtPlaintextBehavior=[_.sV,{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(G){G.preventDefault();G=G.clipboardData.getData("text/plain");document.execCommand("insertText",!1,G)},
preventRichTextFormatting_:function(G){_.PP&&(G=G.detail.keyboardEvent,G.stopImmediatePropagation(),G.preventDefault())}}];var cB8;var TGa;var xR=function(){var G=_.p.apply(this,arguments)||this;G.ignoreShadyDom=!1;G.hasChange_=!1;G.hasSetTitle_=!1;G.useIOObserverForVisibilityLogging_=_.X("kevlar_use_vimio_behavior")&&_.v5("INNERTUBE_CLIENT_NAME")==="WEB";G.ytFormattedStringObserverHandlerKeys_=void 0;return G};
_.r(xR,_.p);_.w=xR.prototype;_.w.created=function(){this.useIOObserverForVisibilityLogging_=_.X("kevlar_use_vimio_behavior")&&_.v5("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.w.ready=function(){_.v5("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_()};
_.w.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.w.detached=function(){this.unobserveIOObservers_()};
_.w.clearContents_=function(){for(var G=this.getRoot(),B=G.lastChild;B&&B.tagName!=="STYLE";){try{G.removeChild(B)}catch(F){break}B=G.lastChild}};
_.w.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var G=_.C(this.ytFormattedStringObserverHandlerKeys_),B=G.next();!B.done;B=G.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(B.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.w.resetForAttributedString=function(){var G=this.getRoot();!G.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),G.appendChild(this.ytAttributedStringElementRef))};
_.w.resetForFormattedString=function(){var G=this.getRoot(),B=G.querySelector("yt-attributed-string");B&&(this.ytAttributedStringElementRef=G.removeChild(B))};
_.w.textChanged=function(){this.textChanged_(this.text)};
_.w.textChanged_=function(G){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!G||!G.runs&&!G.simpleText;if(_.X("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var B=this.hostElement.firstChild;B&&B.nodeName==="FONT";){var F=B;B=B.nextSibling;this.hostElement.removeChild(F)}B=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
F=G.simpleText;var D;!F&&((D=G.runs)==null?void 0:D.length)===1&&this.isSimpleString_(G.runs[0])&&(F=G.runs[0].text);F!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.v5("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(F!==void 0){try{B.textContent=F}catch(u){}B.textContent||(this.isEmpty=!0)}else G=G.runs,F!==void 0&&(G=[{text:F}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),G&&this.updateText_(G),
B.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.w.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)};
_.w.computeAriaLabel_=function(G){return G};
_.w.computeEllipsisTruncateStyling=function(G,B){return G&&!B};
_.w.computeUseAttributedString=function(G){return _.X("web_replace_formatted_with_attributed_string")&&JkI(G)&&!this.disableAttributedString&&!this.enableContentEditable};
_.w.setNodeStyle_=function(G,B){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.X("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?B.removeAttribute("dir"):B.setAttribute("dir","auto");B.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");B.style.color="";var F=null;this.noStyles||(G.bold&&(B.classList.add("bold"),F="bold"),G.deemphasize&&(B.classList.add("deemphasize"),F="deemphasize"),G.italics&&B.classList.add("italic"),
G.strikethrough&&B.classList.add("strikethrough"),G.errorUnderline&&(B.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),G.bracket&&B.classList.add("bracket"),G.textColor&&(B.style.color=_.hV(G.textColor)));F!==B.getAttribute("style-target")&&(F?B.setAttribute("style-target",F):B.removeAttribute("style-target"))};
_.w.setUpVisibilityLogging_=function(G,B){var F=this;this.setNodeTrackingParams_(G,B);var D;((D=B.data)==null?0:D.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(G=this.ytRendererBehavior.visibilityObserver.observe(B,function(u){var R=F.ytRendererBehavior.getVisibilityLogger();R&&R.reportShown(u)},this.ytRendererBehavior.visibilityOptionVisible_),B=this.ytRendererBehavior.visibilityObserver.observe(B,function(u){var R=F.ytRendererBehavior.getVisibilityLogger();
R&&R.reportHidden(u)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(G),this.ytFormattedStringObserverHandlerKeys_.push(B))};
_.w.setNodeTrackingParams_=function(G,B){B.data||(B.data={});if((G=G.loggingDirectives?G.loggingDirectives.trackingParams:null)||B.data.trackingParams)B.data.trackingParams=G};
_.w.computeHasLinkOnly_=function(G){return!(!G||G.length!==1||this.noEndpoints||!G[0].navigationEndpoint)};
_.w.getRoot=function(){var G=this.buildScopeDomOptions();return this.enableContentEditable?_.IF(_.IF(this.hostElement,G).querySelector("[contenteditable]")):_.IF(this.hostElement,G)};
_.w.fixContenteditableScope=function(){var G=function(B){B&&(B.nodeType===1&&B.classList&&(B.classList.add("style-scope"),B.classList.add("yt-formatted-string")),B.childNodes&&B.childNodes.forEach(function(F){G(F)}))};
G(this.getRoot())};
_.w.updateText_=function(G){for(var B=G.length,F=this.getRoot(),D=F.firstChild;D&&D.nodeName==="STYLE";)D=D.nextSibling;for(var u=0;u<B&&D;){var R=G[u],N=_.X("remove_cr_char")&&R.text?R.text.replace("\r",""):R.text;if(this.isSimpleString_(R)&&!this.useMixedDirectionFormattedStrings)if(D.nodeName==="#text"){D.textContent!=N&&(D.textContent=N);u++;D=D.nextSibling;continue}else break;if(_.Q(R,Kk))break;else if(!this.noEndpoints&&R.navigationEndpoint){if(D.nodeName!=="A")break;this.setDataOnAnchor_(D,
R.navigationEndpoint)}else if(D.nodeName!=="SPAN")break;this.setNodeStyle_(R,D);this.setUpVisibilityLogging_(R,D);D.textContent!=N&&(D.textContent=N);u++;D=D.nextSibling}if(D)for(R=F.lastChild,D=u?D.previousSibling:null;R&&R!=D;){try{F.removeChild(R)}catch(y){break}R=F.lastChild}u!==B&&this.addTextNodes_(G,u)};
_.w.addTextNodes_=function(G,B){for(var F=document.createDocumentFragment(),D=G.length;B<D;B++){var u=G[B],R=_.X("remove_cr_char")&&u.text?u.text.replace("\r",""):u.text;if(this.isSimpleString_(u)&&!this.useMixedDirectionFormattedStrings)F.appendChild(document.createTextNode(R));else{var N=_.Q(u,Kk);if(N){if(N.image){var y=document.createElement("img");N.isCustomEmoji||y.classList.add("small-emoji");y.classList.add("emoji");N.isCustomEmoji&&(y.dataset.emojiId=N.emojiId);y.src=_.Ax(N.image.thumbnails,
this.emojiSize);(u=this.get("image.accessibility.accessibilityData.label",N))?y.alt=u:N.shortcuts&&N.shortcuts.length>0?y.alt=N.shortcuts[0]:N.emojiId&&(y.alt=N.emojiId);F.appendChild(y);this.hasEmoji=!0}}else!this.noEndpoints&&u.navigationEndpoint?(y=document.createElement("a"),y.classList.add("yt-simple-endpoint"),y.setAttribute("spellcheck","false"),this.setDataOnAnchor_(y,u.navigationEndpoint)):y=document.createElement("span"),this.setNodeStyle_(u,y),this.setUpVisibilityLogging_(u,y),y.appendChild(document.createTextNode(R)),
F.appendChild(y)}}this.getRoot().appendChild(F)};
_.w.isSimpleString_=function(G){return(this.noEndpoints||!G.navigationEndpoint)&&!_.Q(G,Kk)&&(this.noStyles||!(G.bold||G.deemphasize||G.italics||G.strikethrough||G.errorUnderline||G.bracket||G.textColor))&&!G.loggingDirectives};
_.w.getRawText=function(){return _.zx(this.text)};
_.w.getFirstRunText=function(){var G;if(((G=this.text)==null?0:G.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.w.setFirstRunText=function(G){var B;((B=this.text)==null?0:B.runs)&&this.text.runs[0]&&(this.text.runs[0].text=G,this.textChanged_(this.text))};
_.w.setDataOnAnchor_=function(G,B){var F=this;!_.X("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(B)||this.isSignalServiceEndpoint_(B)?(G.onclick=this.serviceEndpointHandler_(B),Go(G,"#")):$j6({text:this.text,command:B},function(){ct6(G,B,F.target)})};
_.w.isServiceEndpoint_=function(G){var B;return!((B=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null||!B.sendPost)};
_.w.isSignalServiceEndpoint_=function(G){return!!_.Q(G,_.sw)};
_.w.serviceEndpointHandler_=function(G){var B=this;return function(F){_.fi(B.hostElement,[G]);F.preventDefault()}};
_.w.overrideAriaLabelChanged_=function(){var G=this.getRoot();this.enableContentEditable&&G&&G.setAttribute("aria-label",this.overrideAriaLabel)};
_.w.enableContentEditableChanged_=function(){var G=this,B=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),B=_.IF(this.hostElement,B),!B.lastChild||B.lastChild instanceof HTMLElement&&B.lastChild.id!=="contenteditable-root"){var F=document.createElement("div");F.id="contenteditable-root";F.setAttribute("contenteditable","true");F.setAttribute("dir","auto");F.onfocus=function(){G.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
B.appendChild(F);this.overrideAriaLabel&&F.setAttribute("aria-label",this.overrideAriaLabel)}}else F=_.fp(this.hostElement).firstChild,F instanceof HTMLElement&&F.id==="contenteditable-root"&&_.IF(this.hostElement,B).removeChild(F)};
_.w.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.w.getNodesForVisibilityLogging_=function(){return _.Zw(this.getRoot().childNodes,function(G){var B;return!((B=G.data)==null||!B.trackingParams)})};
_.w.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.w.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(B){G.reportShown(B)})}};
_.w.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(B){G.reportHidden(B)})}};
_.ZN.Object.defineProperties(xR.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.X("enable_mixed_direction_formatted_strings")}}});
xR.prototype.enableContentEditableChanged_=xR.prototype.enableContentEditableChanged_;xR.prototype.overrideAriaLabelChanged_=xR.prototype.overrideAriaLabelChanged_;xR.prototype.ellipsisTruncateChanged_=xR.prototype.ellipsisTruncateChanged_;xR.prototype.textChanged=xR.prototype.textChanged;_.c([_.k(JB7.YtPlaintextBehavior),_.I("design:type",Object)],xR.prototype,"ytPlaintextBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],xR.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xR.prototype,"text",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"noEndpoints",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"noStyles",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xR.prototype,"isDarkTheme",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],xR.prototype,"splitLines",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xR.prototype,"forceDefaultStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xR.prototype,"ellipsisTruncate",void 0);_.c([_.v(),_.I("design:type",Object)],xR.prototype,"ignoreShadyDom",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.I("design:type",Boolean)],xR.prototype,"ellipsisTruncateStyling",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.I("design:type",String)],xR.prototype,"ariaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xR.prototype,"isEmpty",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.I("design:type",Boolean)],xR.prototype,"hasLinkOnly_",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"hasEmoji",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"disableAttributedString",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"isOverlay",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"linkInheritColor",void 0);
_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"noPreWrap",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"userInput",void 0);_.c([_.v({value:16}),_.I("design:type",Number)],xR.prototype,"emojiSize",void 0);_.c([_.v(),_.I("design:type",String)],xR.prototype,"target",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"enableContentEditable",void 0);_.c([_.v(),_.I("design:type",String)],xR.prototype,"overrideAriaLabel",void 0);
_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"respectHtmlDir",void 0);_.c([_.v(),_.I("design:type",Boolean)],xR.prototype,"respectLangDir",void 0);_.c([_.O("plaintextOnly"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],xR.prototype,"useMixedDirectionFormattedStrings",null);_.c([_.v({computed:"computeUseAttributedString(text)"}),_.I("design:type",Boolean)],xR.prototype,"useYtAttributedString",void 0);
_.c([_.Ga("text"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xR.prototype,"textChanged",null);_.c([_.Ga("ellipsisTruncate"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xR.prototype,"ellipsisTruncateChanged_",null);_.c([_.Ga("overrideAriaLabel"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xR.prototype,"overrideAriaLabelChanged_",null);
_.c([_.Ga("enableContentEditable"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xR.prototype,"enableContentEditableChanged_",null);_.c([_.ay({is:"yt-formatted-string",disableElementRegistration:!0})],xR);
_.d(xR,"yt-formatted-string",function(){if(TGa===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;cB8===void 0&&(cB8=document.createElement("template"));var D=cB8;F.call(B,D.content.cloneNode(!0),G.content.firstChild);TGa=G}G=TGa;return G});var IGG;var fGt;var tG7;var Zsw;var Pd=function(){var G=_.p.apply(this,arguments)||this;G.focused=!1;G.disabled=!1;G.isOverlay=!1;return G};
_.r(Pd,_.p);Pd.prototype.triggerDown=function(){if(!this.disabled){_.tV(this.hostElement,"down",!0);var G;(G=this.currentAnimation)==null||G.cancel()}};
Pd.prototype.triggerUp=function(){if(!this.disabled){_.tV(this.hostElement,"down",!1);var G=this.fillElement;var B=this.strokeElement;typeof GroupEffect==="function"?(G=new GroupEffect([RNs(G),wWo(B)]),G=new Animation(G,document.timeline)):G=new h3P(G,B);this.currentAnimation=G;var F;(F=this.currentAnimation)==null||F.play()}};
_.c([_.iA(".stroke"),_.I("design:type",HTMLElement)],Pd.prototype,"strokeElement",void 0);_.c([_.iA(".fill"),_.I("design:type",HTMLElement)],Pd.prototype,"fillElement",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Pd.prototype,"focused",void 0);_.c([_.v(),_.I("design:type",Object)],Pd.prototype,"disabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Pd.prototype,"isOverlay",void 0);_.c([_.ay({is:"yt-interaction",disableElementRegistration:!0})],Pd);
_.d(Pd,"yt-interaction",function(){if(Zsw===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;tG7===void 0&&(tG7=document.createElement("template"));var D=tG7;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Zsw=G}G=Zsw;return G},{mode:2});var Gj=function(){return _.p.apply(this,arguments)||this};
_.r(Gj,_.p);_.w=Gj.prototype;_.w.ready=function(){var G=this,B=_.IF(this.hostElement).querySelector("#button");B.addEventListener("focus",function(){dq7||(dq7=new AvP);G.keyboardFocused=dq7.isKeyBoardInUse()});
B.addEventListener("blur",function(){G.keyboardFocused=!1;G.rippleUp_()})};
_.w.computeTabIndex_=function(G){return G?-1:0};
_.w.computeButtonAriaPressed_=function(G){if(this.toggleable)return G?"true":"false"};
_.w.rippleDown_=function(){_.IF(this.hostElement).querySelector("#interaction").triggerDown()};
_.w.rippleUp_=function(){_.IF(this.hostElement).querySelector("#interaction").triggerUp()};
_.w.onPressedChanged_=function(){var G=_.fp(_.IF(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.fp(_.IF(this.hostElement).querySelector("#button")).children[0];G&&(G.active=this.pressed)};
Gj.prototype.onPressedChanged_=Gj.prototype.onPressedChanged_;Gj.prototype.rippleUp_=Gj.prototype.rippleUp_;Gj.prototype.rippleDown_=Gj.prototype.rippleDown_;_.c([_.v(),_.I("design:type",String)],Gj.prototype,"label",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Gj.prototype,"disabled",void 0);_.c([_.v(),_.I("design:type",Boolean)],Gj.prototype,"pressed",void 0);_.c([_.v(),_.I("design:type",Object)],Gj.prototype,"toggleable",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Gj.prototype,"untabbable",void 0);_.c([_.v(),_.I("design:type",Boolean)],Gj.prototype,"keyboardFocused",void 0);_.c([_.Pm("down"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gj.prototype,"rippleDown_",null);_.c([_.Pm("up"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gj.prototype,"rippleUp_",null);
_.c([_.Ga("pressed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gj.prototype,"onPressedChanged_",null);_.c([_.ay({is:"yt-icon-button",disableElementRegistration:!0})],Gj);
_.d(Gj,"yt-icon-button",function(){if(fGt===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;IGG===void 0&&(IGG=document.createElement("template"));var D=IGG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);fGt=G}G=fGt;return G},{mode:2});var g8N;var S0G=function(){var G=document.body,B=G.appendChild;if(g8N===void 0){var F=document.createElement("template");_.H(F,'\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>');
g8N=F}F=g8N;B.call(G,F.content)};
document.body?S0G():window.addEventListener("DOMContentLoaded",S0G);var s2G=_.vP(["aria-"]),Bj={};Bj.YtRenderButtonBehavior=[_.g.YtRendererBehavior,_.ti.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!!_.te().resolve(_.fH(_.Mu))&&_.X("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 G=this.computeHref_(this.endpoint,!0);G?Go(this.elements_.endpoint,G):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){G=this.buttonClass.split(" ");G=_.C(G);for(var B=G.next();!B.done;B=G.next())B=B.value,_.tV(this.hostElement,B,!0),this.elements_.button&&_.tV(this.elements_.button,B,!0),this.elements_.text&&_.tV(this.elements_.text,B,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(G=null,this.buttonAccessibility&&(G=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=G:G?_.Ex([_.LS(s2G)],this.elements_.button,"aria-label",G):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var G=_.te().resolve(_.fH(_.Mu));G&&(this.keyboardFocused=G.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.bY("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,_.u2(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.u2(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(G,B){if(B)for(G=B.split(" "),G=_.C(G),B=G.next();!B.done;B=G.next())B=B.value,_.tV(this.hostElement,B,!1),this.elements_.button&&_.tV(this.elements_.button,B,!1),this.elements_.text&&_.tV(this.elements_.text,B,!1)},
buttonIconChanged_:function(G){this.elements_.icon?G?(this.elements_.icon.icon=G,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.u2(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Zk(this.hostElement,"is-paper-button-with-icon",!1)):G&&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"&&_.u2(this.elements_.button).appendChild(this.elements_.icon):_.u2(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Zk(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(G){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,G){var B=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(G){case "yt_icon_button_with_label":B=!0;_.tV(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();G=_.u2(this.elements_.button).firstElementChild;
this.elements_.icon=G;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.u2(this.elements_.endpoint).appendChild(this.elements_.button);_.u2(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.bY("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;_.u2(this.elements_.button).appendChild(this.elements_.text);_.u2(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":B=!0,this.elements_.button=this.getYtIconButton_(),G=_.u2(this.elements_.button).firstElementChild,this.elements_.icon=G,this.setIconActive_(this.elements_.icon),
_.u2(this.elements_.endpoint).appendChild(this.elements_.button)}_.Zk(this.hostElement,"is-icon-button",B);_.Zk(this.hostElement,"is-paper-button",!B);_.Zk(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 F;_.IF((F=this.container.hostElement)!=null?F:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.u2(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(G){if(G!=void 0||this.disabled)this.disabled=G,this.elements_.button&&(this.elements_.button.disabled=G)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(G){_.X("kevlar_system_icons")&&G&&this.data&&(this.data.isSelected!==void 0?G.active=this.data.isSelected:this.data.isToggled!==void 0&&(G.active=this.data.isToggled))},
observeBasicPalette_:function(G){_.nA(this.hostElement,G)},
disabledChanged_:function(G){this.data&&this.set("data.isDisabled",G)},
onYtButtonTap_:function(G){if(this.disabled)G.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.fi(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(G=this.disableCommandHandlerOverride,!this.data||!this.data.command||G||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.X("handle_service_request_actions")||_.fi(this.hostElement,[this.serviceEndpoint]),
_.cZ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.X("handle_service_request_actions")?(G=[],this.serviceEndpoint&&G.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&G.push(this.data.command),G.length&&_.tL(this.hostElement,G,this.hostElement)):this.data&&this.data.command&&(G=this.data.command,G.accountUnlinkCommand||G.accountLinkCommand||G.insertAdCommand||G.insertHighlightMarkerCommand||
G.createLivestreamHighlightClipCommand||G.getVideoUploadFeedbackCommand||G.musicDeletePrivatelyOwnedEntityCommand||G.ypcCancelRecurrenceEndpoint||G.getMultiSelectCommandEndpoint?_.fi(this.hostElement,[G]):_.tL(this.hostElement,[G],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 G,B=_.IF((G=this.container.hostElement)!=null?G:this.container);B.lastChild&&B.lastChild.tagName!="STYLE";)try{B.removeChild(B.lastChild)}catch(F){break}},
getYtIconButton_:function(){var G=this.reuseEnabled_()?_.bY("yt-icon-button"):document.createElement("yt-icon-button"),B=_.u2(G).firstElementChild;if(B&&B.is!="yt-icon"){for(B=_.u2(G);B.lastChild;)B.removeChild(B.lastChild);B=null}B||(B=this.getIcon_(),this.setIconActive_(B),_.u2(G).appendChild(B));return G},
reuseEnabled_:function(){return _.X("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.bY("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.bY("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.xGP={};
_.xGP.YtButtonBehavior=[Bj.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var G=this.data;G&&(this._setEndpoint(this.computeEndpoint_(G)),this._setServiceEndpoint(this.computeServiceEndpoint_(G)),this._setCommand(this.computeCommand_(G)),this._setButtonIcon(this.computeButtonIcon_(G)),this._setButtonText(this.computeButtonText_(G,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(G)),this._setButtonTooltip(this.computeTooltip_(G)),this._setButtonClass(this.computeButtonClass_(G)),this._setIconPositionType(this.computeIconPositionType_(G)),this.updateRenderedElements())},
setPressedState:function(G){var B;if((B=this.elements_)==null?0:B.button)this.elements_.button.pressed=!!G},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeEndpoint_:function(G){var B=G&&G.navigationEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.url"),D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:G&&G.command&&G.command.modalEndpoint?G.command:F&&!D&&G.command?G.command:null},
computeServiceEndpoint_:function(G){var B=G&&G.serviceEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:F&&G.command?G.command:null},
computeCommand_:function(G){return G&&G.command||null},
computeButtonIcon_:function(G){return G&&G.icon&&G.icon.iconType?_.xT(G.icon.iconType):null},
computeButtonText_:function(G,B){return!B&&G&&G.text||null},
computeAccessibility_:function(G){return this.get("accessibilityData.accessibilityData",G)||G&&G.accessibility||(G&&G.text?{label:this.getSimpleString(G.text)}:null)},
computeTooltip_:function(G){return G?G.isDisabled&&G.disabledTooltip||G.tooltip||null:null},
computeButtonClass_:function(G){var B=G&&G.style?G.style.toLowerCase().replace(/_/g,"-")+" ":"";B+=G&&G.size?G.size.toLowerCase().replace(/_/g,"-")+" ":"";G.colorData&&G.colorData.basicColorPaletteData&&G.colorData.basicColorPaletteData.borderColor&&(B+="palette-with-border");return B.trim()}}];var lN={};var PHP;var GZy;var Bba,iwt=function(){return Bba!==void 0?Bba:Bba=document.createElement("template")};
document.head.appendChild(iwt().content);var FqU;var D$w,ugU=function(){return D$w!==void 0?D$w:D$w=document.createElement("template")};
document.head.appendChild(ugU().content);var RML;var w38,CTG=function(){return w38!==void 0?w38:w38=document.createElement("template")};
document.head.appendChild(CTG().content);var NbL;var yIw=document.head,n47=yIw.appendChild,lyv;if(NbL===void 0){var U$N=document.createElement("template");_.H(U$N,"\x3c!--css-build:shady--\x3e");U$N.content.insertBefore(CTG().content.cloneNode(!0),U$N.content.firstChild);NbL=U$N}lyv=NbL;n47.call(yIw,lyv.content);var qMU=document.head,E4L=qMU.appendChild,hM8;if(RML===void 0){var Kqw=document.createElement("template");_.H(Kqw,"\x3c!--css-build:shady--\x3e");Kqw.content.insertBefore(ugU().content.cloneNode(!0),Kqw.content.firstChild);RML=Kqw}hM8=RML;E4L.call(qMU,hM8.content);var ays=document.head,m$t=ays.appendChild,X3t;if(FqU===void 0){var QLT=document.createElement("template");_.H(QLT,"\x3c!--css-build:shady--\x3e");QLT.content.insertBefore(iwt().content.cloneNode(!0),QLT.content.firstChild);FqU=QLT}X3t=FqU;m$t.call(ays,X3t.content);var jLP;_.UR("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");jLP=_.X("web_button_rework")&&_.on("BUTTON_REWORK")||_.X("web_button_rework_with_live");_.ix=function(){return _.p.apply(this,arguments)||this};
_.r(_.ix,_.p);_.ix.prototype.created=function(){this.openPopupConfig=_.v5("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.ix.prototype.onYtNavigate_=function(G){var B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);B&&(this.ytOpenPopupBehavior.openPopup(B),G.stopPropagation(),G.preventDefault())};
_.ZN.Object.defineProperties(_.ix,{template:{configurable:!0,enumerable:!0,get:function(){if(GZy===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;PHP===void 0&&(PHP=document.createElement("template"));var D=PHP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);GZy=G}G=GZy;return G}}});
_.ix.prototype.onYtNavigate_=_.ix.prototype.onYtNavigate_;_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],_.ix.prototype,"ytOpenPopupBehavior",void 0);_.c([_.k(_.xGP.YtButtonBehavior),_.I("design:type",Object)],_.ix.prototype,"ytButtonBehavior",void 0);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],_.ix.prototype,"onYtNavigate_",null);
_.c([_.ay({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:jLP})],_.ix);var Lqq;var rIq=_.X("web_button_rework")&&_.on("BUTTON_REWORK")||_.X("web_button_rework_with_live"),FE=function(){var G=_.p.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.skipCommandHandling=!1;G.alignByText=!1;G.fitToVisibleBounds=!0;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};G.onTap=function(B){_.cZ(G.hostElement,"yt-service-request-sent-button-renderer",B)};
return G};
_.r(FE,_.p);_.w=FE.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.w.onClick=function(G){var B,F=this.disabled||((B=this.data)==null?void 0:B.isDisabled);B=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");F&&B&&G.stopPropagation()};
_.w.computeIcon=function(){var G,B,F=(G=this.data)==null?void 0:(B=G.icon)==null?void 0:B.iconType;if(F)return _.xT(F)};
_.w.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.w.handleUpdateButtonAction=function(G){G=_.Q(G,L$v);var B=_.Q(G==null?void 0:G.updatedButton,_.Xq);if(this.data&&G&&B){var F=this.data;F.targetId&&G.targetId&&F.targetId===G.targetId&&(this.data=B)}};
_.ZN.Object.defineProperties(FE.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.data){var B=EoL({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.cZ(G.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.cZ(G.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});B.alignByText=this.alignByText;return B}}}});
_.ZN.Object.defineProperties(FE,{template:{configurable:!0,enumerable:!0,get:function(){if(Lqq===void 0){var G=document.createElement("template");_.H(G,'\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>');Lqq=G}G=Lqq;return G}}});
FE.prototype.onClick=FE.prototype.onClick;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],FE.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],FE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"isPressed",void 0);
_.c([_.v(),_.I("design:type",Object)],FE.prototype,"forceIconButton",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"forceIconOnly",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"forceModernIconButton",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"skipCommandHandling",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"alignByText",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"buttonTooltipPosition",void 0);
_.c([_.v(),_.I("design:type",Object)],FE.prototype,"fitToVisibleBounds",void 0);_.c([_.v({computed:"computeTooltip(data)"}),_.I("design:type",Object)],FE.prototype,"tooltip",void 0);_.c([_.v(),_.I("design:type",Object)],FE.prototype,"overrides",void 0);_.c([_.v(),_.I("design:type",Boolean)],FE.prototype,"disabled",void 0);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],FE.prototype,"onClick",null);
_.c([_.O("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.I("design:type",Object),_.I("design:paramtypes",[])],FE.prototype,"computedButtonShape",null);_.c([_.ay({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!rIq,cssBuildOptOut:!0}),_.ay({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!rIq,cssBuildOptOut:!0})],FE);var Wqy;var HwL;var D7=function(){var G=_.p.apply(this,arguments)||this;G.empty_=!0;G.loadTime=Infinity;G.pendingPaint=!1;G.hasChange_=!1;G.oldThumbnail_=null;G.oldDelayedSrc_="";G.objectURL_=null;return G};
_.r(D7,_.p);_.w=D7.prototype;_.w.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.w.ready=function(){var G=this.shouldShowPlaceholder_();_.tV(this.hostElement,"no-transition",!0);G&&this.hostElement.classList.add("with-placeholder")};
_.w.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.w.isThumbPreloaded_=function(G){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",G)};
_.w.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||kZP};
_.w.computeThumbnailSrc_=function(G){return G&&G.thumbnails?_.Ax(G.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.w.computeAlt_=function(){var G=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&G||""};
_.w.thumbnailChanged_=function(){var G=_.C([this.thumbnail,this.oldThumbnail_]),B=G.next().value;G=G.next().value;this.oldThumbnail_=B;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(G=this.computeThumbnailSrc_(G),this.computeThumbnailSrc_(B)===G))return;_.X("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(B)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):B&&_.on("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.ft(this,this.onReload_):_.ft(this,this.onShow_):this.resetImage_();B&&(this.hostElement.style.opacity=""+B.opacity)}};
_.w.delayedSrcChanged_=function(){var G=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===G||this.resetImage_()};
_.w.setSrc_=function(G){G?(_.IF(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.IF(this.hostElement).querySelector("#img").src=G):(_.IF(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.w.resetImage_=function(){KqU(this.hostElement);this.empty_=!0;this.setSrc_(kZP);this.ytRendererBehavior.invalidate(!1)};
_.w.observePlaceholderColor_=function(){var G=this.thumbnail&&this.thumbnail.placeholderColor;G?this.hostElement.style.backgroundColor=_.hV(G):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.w.onLoad_=function(){_.IF(this.hostElement).querySelector("#img").src&&_.IF(this.hostElement).querySelector("#img").src!==kZP&&(hML(this.hostElement),this.notifyOnLoaded&&_.cZ(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.w.onError_=function(){var G=this;if(_.X("web_use_cache_for_image_fallback"))rIc(_.IF(this.hostElement).querySelector("#img").src).then(function(B){G.objectURL_=_.sy(B).toString();G.setSrc_(G.objectURL_)}).catch(function(){_.X("kevlar_woffle_fallback_image")&&G.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.w.onPrescanVisible=function(){this.onShow_()};
_.w.onVisible=function(){if(_.X("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.w.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var G=this.computeSrc_();G!==_.IF(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))}};
_.w.onReload_=function(){this.empty_=!1;var G=this.computeSrc_();G!==_.IF(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))};
_.w.shouldShowPlaceholder_=function(){return _.X("kevlar_thumbnail_bg")};
D7.prototype.observePlaceholderColor_=D7.prototype.observePlaceholderColor_;D7.prototype.delayedSrcChanged_=D7.prototype.delayedSrcChanged_;D7.prototype.thumbnailChanged_=D7.prototype.thumbnailChanged_;_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],D7.prototype,"alt",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],D7.prototype,"ariaHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],D7.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],D7.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],D7.prototype,"id",void 0);_.c([_.k(_.Q8.YtVisibilityBehavior),_.I("design:type",Object)],D7.prototype,"ytVisibilityBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",String)],D7.prototype,"delayedSrc",void 0);
_.c([_.v(),_.I("design:type",Object)],D7.prototype,"thumbnail",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],D7.prototype,"loaded",void 0);_.c([_.v(),_.I("design:type",Boolean)],D7.prototype,"notifyOnLoaded",void 0);_.c([_.v(),_.I("design:type",Number)],D7.prototype,"height",void 0);_.c([_.v(),_.I("design:type",Number)],D7.prototype,"width",void 0);_.c([_.v({value:function(){return"width"}}),
_.I("design:type",String)],D7.prototype,"dimension",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],D7.prototype,"fit",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],D7.prototype,"fitHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],D7.prototype,"fitWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],D7.prototype,"objectFit",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],D7.prototype,"objectPosition",void 0);_.c([_.v(),_.I("design:type",String)],D7.prototype,"preferredThumbnail",void 0);_.c([_.v({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.I("design:type",String)],D7.prototype,"alt_",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],D7.prototype,"sharedTooltipText",void 0);
_.c([_.v(),_.I("design:type",Boolean)],D7.prototype,"ftlEligible",void 0);_.c([_.v({value:void 0}),_.I("design:type",String)],D7.prototype,"observeHiddenOption",void 0);_.c([_.v({value:"observe_once"}),_.I("design:type",String)],D7.prototype,"observePrescanOption",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],D7.prototype,"roundedContainer",void 0);
_.c([_.Ry("thumbnail"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],D7.prototype,"thumbnailChanged_",null);_.c([_.Ry("delayedSrc"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],D7.prototype,"delayedSrcChanged_",null);_.c([_.Ga("thumbnail.placeholderColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],D7.prototype,"observePlaceholderColor_",null);
_.c([_.ay({is:"yt-img-shadow",disableElementRegistration:!0})],D7);var kZP=_.on("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.tS()(D7,"yt-img-shadow",function(){if(HwL===void 0){var G=document.createElement("template");_.H(G,'\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">');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Wqy===void 0&&(Wqy=document.createElement("template"));var D=Wqy;F.call(B,D.content.cloneNode(!0),G.content.firstChild);HwL=G}G=HwL;return G},{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 $ZJ;_.ux=new _.oV("SCREEN_MANAGER_TOKEN");$ZJ=new _.oV("LOG_INITIAL_SCREEN_TOKEN");var Oww=ER({entities:{}});_.R5=hZ(Oww)(Oww.entities,{selectSfvAudioItemPlaybackState:function(G,B){var F,D;G=(D=_.g5(G,"sfvAudioItemCurrentlyPlayingEntity",B))!=null?D:void 0;return(F=G==null?void 0:G.sfvAudioItemPlaybackState)!=null?F:void 0},
playlistLoopStateEntitySelector:ajJ,toggleMenuServiceItemEntitySelector:mwU});_.wl=_.Y(function(G){function B(P){return _.Q(P,_.LV)}
function F(){var P=D().isTogglingDisabled||W()&&D().toggledIsTogglingDisabled,RI=P||a()?W():!W();e(RI);M(!1);if(!P){var yo;(yo=N)==null||yo(!!RI)}var hg;((hg=R)==null?0:hg())||_.ss(_.te().resolve(_.ux),D().trackingParams);var US;if(!RI||!B(D().defaultButtonViewModel)||(US=R)!=null&&US()){var aI;!B(D().toggledButtonViewModel)||((aI=R)==null?0:aI())||_.ss(_.te().resolve(_.ux),B(D().toggledButtonViewModel).trackingParams)}else _.ss(_.te().resolve(_.ux),B(D().defaultButtonViewModel).trackingParams)}
var D=G.data,u=G.buttonShapeOverrides,R=G.disableExplicitClickLogging,N=G.onToggle,y=G.style,U=G.useOutlinedIcon,q=G.className,h=function(){var P,RI;return W()?(P=G.animatedTextPropsToggled)==null?void 0:P.call(G):(RI=G.animatedTextPropsDefault)==null?void 0:RI.call(G)},K=_.mS(function(){return h()?Object.assign({},h(),{shouldAnimate:b()}):void 0},void 0,"Zp4uoe"),a=function(){var P;
return((P=A())==null?void 0:P.isToggled)!==void 0},m=_.C(_.d3(function(){var P,RI,yo;
return a()?(P=A())==null?void 0:P.isToggled:(yo=u==null?void 0:(RI=u())==null?void 0:RI.toggled)!=null?yo:D().isToggled})),L=m.next().value;
m=m.next().value;var W=L,e=m;m=_.C(_.d3(function(){var P,RI;return(P=G.animatedTextPropsToggled)==null?void 0:(RI=P.call(G))==null?void 0:RI.shouldAnimate}));
L=m.next().value;m=m.next().value;var b=L,M=m;L=_.C(_.qg(!1,void 0,"mq3Zfe"));var t=L.next().value,T=L.next().value,A=_.FT(function(P){a:{var RI=D().entityKey,yo=D().toggledStateEntitySelectorType;if(yo)switch(yo){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!RI)break;P=_.R5.selectSfvAudioItemPlaybackState(P,RI);if(P==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){P={isToggled:!0};break a}if(P){P={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":P={isToggled:_.Lfl(P).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":P={isToggled:_.Lfl(P).includes("engagement-panel-live-chat-item-section")};break a;default:_.em(new _.Uf("Error: entitySelectorType defined but not matched in selector.",P,yo))}P=void 0}return P}),Z=function(){return Object.assign({},u==null?void 0:u(),{onToggle:F,
toggleable:!0,toggled:W(),focused:t()})};
return _.l("toggle-button-view-model",{"on:focusin":_.gJ(function(){var P=_.te().resolve(_.fH(_.Mu));P&&T(P.isKeyBoardInUse());return!1}),
"on:focusout":_.gJ(function(){T(!1);return!1})},_.l(_.E,{cond:function(){return W()?B(D().toggledButtonViewModel):B(D().defaultButtonViewModel)},
then:function(P){return _.l(_.cd,{data:P,className:q,style:y,useOutlinedIcon:U,buttonOverrides:Z,animatedTextProps:K})}}))},"fa");
_.wl.idomCompat={callbacks:{onToggle:!0}};_.YN(_.Y(function(G){return _.l("yt-toggle-button-view-model",{class:function(){var B;return(B=G.scopingClassName)==null?void 0:B.call(G)}},_.l(_.wl,{data:function(){var B;
return(B=G.data)==null?void 0:B.call(G)},
buttonShapeOverrides:function(){var B;return(B=G.overrides)==null?void 0:B.call(G)},
animatedTextPropsDefault:function(){var B;return(B=G.animatedTextPropsDefault)==null?void 0:B.call(G)},
animatedTextPropsToggled:function(){var B;return(B=G.animatedTextPropsToggled)==null?void 0:B.call(G)},
disableExplicitClickLogging:function(){var B;return(B=G.disableExplicitClickLogging)==null?void 0:B.call(G)},
onToggle:function(B){var F;return(F=G.onToggle)==null?void 0:F.call(G,B)},
style:function(){var B;return(B=G.style)==null?void 0:B.call(G)},
useOutlinedIcon:function(){var B;return(B=G.useOutlinedIcon)==null?void 0:B.call(G)},
className:function(){var B;return(B=G.className)==null?void 0:B.call(G)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.Hd,
buttonShapeOverrides:_.Hd,overrides:_.Hd,animatedTextPropsDefault:_.Hd,animatedTextPropsToggled:_.Hd,disableExplicitClickLogging:_.Hd,onToggle:_.oh,style:_.Hd,useOutlinedIcon:_.Hd,className:_.Hd,scopingClassName:_.Hd}});var C9=function(){return _.p.apply(this,arguments)||this};
_.r(C9,_.p);C9.prototype.onTap=function(G){G.stopPropagation();G=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.mH("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G})):this.ytLiveChatReduxBehavior.dispatch(_.wC("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G}))};
_.ZN.Object.defineProperties(C9.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.Q(this.data.toggleButton,_.WR),B;if(Number(((B=this.likeCountState)==null?void 0:B.likeCountIfIndifferentNumber)||"0")===0){var F;B=((F=this.data.likeCountPlaceholder)==null?void 0:F.content)||""}else{var D,u,R;B=((D=this.likeCountState)==null?void 0:(u=D.likeCountIfIndifferent)==null?void 0:u.content)||((R=this.data.likeCountPlaceholder)==null?void 0:R.content)||""}var N,y;F=((N=this.likeCountState)==null?void 0:(y=
N.likeCountIfLiked)==null?void 0:y.content)||"1";N=_.Q(G.toggledButtonViewModel,_.LV);return Object.assign({},G,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Q(G.defaultButtonViewModel,_.LV),{title:B})},toggledButtonViewModel:{buttonViewModel:Object.assign({},N,{title:F})}})}}}});
C9.prototype.onTap=C9.prototype.onTap;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],C9.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],C9.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.likeCountEntityKey"],selector:rOz}),_.I("design:type",Object)],C9.prototype,"likeCountState",void 0);_.c([_.v({selectorArgs:["data.engagementStateKey"],selector:bvo}),_.I("design:type",Object)],C9.prototype,"engagementState",void 0);_.c([_.O("data","engagementState"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],C9.prototype,"isLiked",null);
_.c([_.O("data","likeCountState","isLiked"),_.I("design:type",Object),_.I("design:paramtypes",[])],C9.prototype,"toggleButton",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],C9.prototype,"onTap",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],C9);
_.d(C9,"yt-live-chat-like-button-view-model",function(){if(z37===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;$Gq===void 0&&($Gq=document.createElement("template"));var D=$Gq;F.call(B,D.content.cloneNode(!0),G.content.firstChild);z37=G}G=z37;return G},{mode:0});var eMw;var $$v;var lx=function(){return _.p.apply(this,arguments)||this};
_.r(lx,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lx.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],lx);
_.d(lx,"yt-live-chat-paid-message-footer-renderer",function(){if($$v===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;eMw===void 0&&(eMw=document.createElement("template"));var D=eMw;F.call(B,D.content.cloneNode(!0),G.content.firstChild);$$v=G}G=$$v;return G},{mode:0});var zMv;var bwq;var Vn8;var v4y,o4t=function(){if(v4y!==void 0)return v4y;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Vn8===void 0&&(Vn8=document.createElement("template"));var D=Vn8;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return v4y=G};var Ue=function(){return _.p.apply(this,arguments)||this};
_.r(Ue,_.p);Ue.prototype.onTap=function(G){G.stopPropagation()};
_.ZN.Object.defineProperties(Ue.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.Q(this.data.replyButton,_.LV),B,F,D,u,R,N,y,U=Number(((B=this.replyCountState)==null?void 0:B.replyCountNumber)||"0")===0?(F=this.data)==null?void 0:(D=F.replyCountPlaceholder)==null?void 0:D.content:((u=this.replyCountState)==null?void 0:(R=u.replyCount)==null?void 0:R.content)||((N=this.data)==null?void 0:(y=N.replyCountPlaceholder)==null?void 0:y.content)||"",q;return Object.assign({},
G,{title:U,accessibilityText:(q=this.replyCountState)==null?void 0:q.replyButtonAccessibilityText})}}}});
_.ZN.Object.defineProperties(Ue,{template:{configurable:!0,enumerable:!0,get:function(){return o4t()}}});
Ue.prototype.onTap=Ue.prototype.onTap;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ue.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],Ue.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ue.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.replyCountEntityKey"],selector:function(G,B){return _.g5(G.entities,"replyCountEntity",B)}}),
_.I("design:type",Object)],Ue.prototype,"replyCountState",void 0);_.c([_.O("data","replyCountState"),_.I("design:type",Object),_.I("design:paramtypes",[])],Ue.prototype,"buttonViewModel",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Ue.prototype,"onTap",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Ue);_.d(Ue,"yt-live-chat-reply-button-view-model",function(){return o4t()},{mode:0});var Mna;var p3U;var qR=function(){var G=_.p.apply(this,arguments)||this;G.ariaLabel="";return G};
_.r(qR,_.p);
qR.prototype.dataChanged=function(){for(var G=(0,_.gK)(_.IF(this.hostElement).querySelector("#image"));G.firstChild;)G.removeChild(G.firstChild);if(this.data)if(this.data.icon){var B=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(B.polymerController.icon="yt-sys-icons:shield_empty",B.polymerController.defaultToFilled=!0):B.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();G.appendChild(B)}else if(this.data.customThumbnail){B=document.createElement("img");
var F=_.Nbs(this.data.customThumbnail.thumbnails,16);F?(B.src=F,G.appendChild(B),B.setAttribute("alt",this.hostElement.ariaLabel||"")):_.em(new _.Uf("Could not compute URL for thumbnail",this.data.customThumbnail))}};
qR.prototype.identity=function(G){return G};
qR.prototype.computeType=function(G){return g3(G||void 0)};
qR.prototype.dataChanged=qR.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],qR.prototype,"data",void 0);_.c([_.v({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.I("design:type",Object)],qR.prototype,"ariaLabel",void 0);_.c([_.v({computed:"computeType(data)",reflectToAttribute:!0}),_.I("design:type",String)],qR.prototype,"type",void 0);
_.c([_.v({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.I("design:type",String)],qR.prototype,"sharedTooltipText",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_new_shield_moderator_badge")}}),
_.I("design:type",Boolean)],qR.prototype,"enableNewModeratorBadge",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qR.prototype,"dataChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],qR);
_.d(qR,"yt-live-chat-author-badge-renderer",function(){if(p3U===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Mna===void 0&&(Mna=document.createElement("template"));var D=Mna;F.call(B,D.content.cloneNode(!0),G.content.firstChild);p3U=G}G=p3U;return G},{mode:0});var YMy;var AIU;var Ee=function(){return _.p.apply(this,arguments)||this};
_.r(Ee,_.p);_.w=Ee.prototype;_.w.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"}}}}};
_.w.computeBadgesInsideChip=function(G){return G?G.filter(function(B){return g3(B.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.w.computeBadgesOutsideChip=function(G){return this.prependChatBadges||!G?[]:G.filter(function(B){B=g3(B.liveChatAuthorBadgeRenderer);return B!=="verified"&&B!=="owner"})};
_.w.computeBadgesBeforeChip=function(G){return this.prependChatBadges&&G?G.filter(function(B){B=g3(B.liveChatAuthorBadgeRenderer);return B!=="verified"&&B!=="owner"}):[]};
_.w.computeIsHighlighted=function(G,B){var F=!!xrQ(G,"owner"),D=!!xrQ(G,"verified");G=!!xrQ(G,"moderator");return(F||D&&!G)&&!B};
_.w.computeAuthorType=function(G){return sdg(G)};
_.w.computeAuthorClass=function(G,B){return B?(G?G+" ":"")+"single-line":G};
_.w.onSeedColorChanged=function(){_.X("live_chat_author_name_color_usernames")||_.X("live_chat_seed_color_usernames")||_.X("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):_.X("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Ee.prototype.onSeedColorChanged=Ee.prototype.onSeedColorChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ee.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ee.prototype,"authorName",void 0);_.c([_.v(),_.I("design:type",Array)],Ee.prototype,"authorBadges",void 0);
_.c([_.v({computed:"computeAuthorType(authorBadges)"}),_.I("design:type",String)],Ee.prototype,"authorType",void 0);_.c([_.v({computed:"computeAuthorClass(authorType, singleLine)"}),_.I("design:type",String)],Ee.prototype,"authorClass",void 0);_.c([_.v({computed:"computeBadgesInsideChip(authorBadges)"}),_.I("design:type",Array)],Ee.prototype,"badgesInsideChip",void 0);_.c([_.v({computed:"computeBadgesOutsideChip(authorBadges)"}),_.I("design:type",Array)],Ee.prototype,"badgesOutsideChip",void 0);
_.c([_.v({computed:"computeBadgesBeforeChip(authorBadges)"}),_.I("design:type",Array)],Ee.prototype,"badgesBeforeChip",void 0);_.c([_.v({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Ee.prototype,"isHighlighted",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_new_shield_moderator_badge")}}),
_.I("design:type",Boolean)],Ee.prototype,"enableNewModeratorTextColor",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Ee.prototype,"singleLine",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Ee.prototype,"disableHighlighting",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Ee.prototype,"dashboardMoneyFeed",void 0);_.c([_.v({value:_.X("live_chat_prepend_badges"),reflectToAttribute:!0}),_.I("design:type",Boolean)],Ee.prototype,"prependChatBadges",void 0);
_.c([_.v(),_.I("design:type",String)],Ee.prototype,"authorNameColor",void 0);_.c([_.iA("#author-name"),_.I("design:type",HTMLDivElement)],Ee.prototype,"username",void 0);_.c([_.Ga("authorNameColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ee.prototype,"onSeedColorChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Ee);
_.d(Ee,"yt-live-chat-author-chip",function(){if(AIU===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;YMy===void 0&&(YMy=document.createElement("template"));var D=YMy;F.call(B,D.content.cloneNode(!0),G.content.firstChild);AIU=G}G=AIU;return G},{mode:0});var d$t;var JIL;var hW=function(){var G=_.p.apply(this,arguments)||this;G.debounceCommand=_.h5(function(B){G.ytComponentBehavior.resolveCommand(B)},1500);
return G};
_.r(hW,_.p);hW.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var G=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",B,F,D=this.isHearted?(B=this.data)==null?void 0:B.unheartCommand:(F=this.data)==null?void 0:F.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.mH("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:G}));(G=_.X1(D))&&this.debounceCommand(G)}};
_.ZN.Object.defineProperties(hW.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G,B;if(!((G=this.data)==null?0:(B=G.creatorThumbnail)==null?0:B.sources))return{};G={thumbnails:[]};B={};B.url=this.data.creatorThumbnail.sources[0].url;G.thumbnails.push(B);return G}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((F=this.engagementState)==null?void 0:F.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}}});
hW.prototype.onTap=hW.prototype.onTap;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],hW.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],hW.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hW.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.engagementStateKey"],selector:bvo}),_.I("design:type",Object)],hW.prototype,"engagementState",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hW.prototype,"thumbnailDetails",null);_.c([_.O("data","engagementState"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hW.prototype,"isHearted",null);_.c([_.O("data","engagementState"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hW.prototype,"isEditable",null);
_.c([_.O("data","engagementState"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hW.prototype,"showCreatorView",null);_.c([_.O("data","engagementState"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hW.prototype,"showButton",null);_.c([_.O("data","isHearted"),_.I("design:type",String),_.I("design:paramtypes",[])],hW.prototype,"label",null);_.c([_.O("data","isHearted"),_.I("design:type",Object),_.I("design:paramtypes",[])],hW.prototype,"heartHoverText",null);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hW.prototype,"onTap",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],hW);
_.d(hW,"yt-live-chat-creator-heart-view-model",function(){if(JIL===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;d$t===void 0&&(d$t=document.createElement("template"));var D=d$t;F.call(B,D.content.cloneNode(!0),G.content.firstChild);JIL=G}G=JIL;return G},{mode:0});var cIP=function(){this.internalMap={}};
_.w=cIP.prototype;_.w.contains=function(G){return Object.prototype.hasOwnProperty.call(this.internalMap,G)};
_.w.get=function(G){if(this.contains(G))return this.internalMap[G]};
_.w.set=function(G,B){this.internalMap[G]=B};
_.w.getKeys=function(){return Object.keys(this.internalMap)};
_.w.remove=function(G){delete this.internalMap[G]};var K9=function(){this.mappings=new cIP;this.errorCallbacks=new Set};
K9.prototype.getModuleId=function(G){return G.serviceId.getModuleId()};
K9.prototype.get=function(G){a:{var B=this.mappings.get(G.toString());switch(B.type){case "mapping":G=B.value;break a;case "factory":B=B.value();this.mappings.set(G.toString(),{type:"mapping",value:B});G=B;break a;default:G=_.BS(B)}}return G};
K9.prototype.registerService=function(G,B){this.mappings.set(G.toString(),{type:"mapping",value:B});return G};
K9.prototype.onLoadError=function(G){var B=this;this.errorCallbacks.add(G);return function(){B.errorCallbacks.delete(G)}};
new K9;var Tb8=function(){};
_.w=Tb8.prototype;
_.w.JSC$14488_getRequest=function(G,B,F){B=B===void 0?{}:B;F=F===void 0?uwU:F;var D=B;if(this.isNavigationCommand()){var u,R=(u=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:u.url;D=_.Oj(G.clickTrackingParams,!0,!1,R,this.JSC$14488_getClientScreen(D))}else D=_.Oj(G.clickTrackingParams,!1,this.includeCsn);D={context:D};if(u=this.getExtension(G))return this.JSC$14488_buildRequest(D,u,B),u=this.getApiUrl(G),R=Object.assign({},{command:G},this.getRequestConfig(G,B)),D={input:u,requestShell:HZ(u),
innerTubeRequest:D,config:R},D.config.authStrategy?D.config.authStrategy.identity=F:D.config.authStrategy={identity:F},(G=this.JSC$14488_getRequestKey(G,B))&&!D.config.requestKey&&(D.config.requestKey=G),D;G=new _.Uf("Error: Failed to create Request from Command.",G);_.k2(G)};
_.w.getApiUrl=function(G){var B=_.v2(this.getApiPaths(G)),F;(G=(F=_.Q(G.commandMetadata,_.xy))==null?void 0:F.apiUrl)&&(B=G);return A9g(YsJ(B))};
_.w.isNavigationCommand=function(){return!1};
_.w.JSC$14488_getClientScreen=function(){};
_.w.JSC$14488_getRequestKey=function(){};
_.w.getRequestConfig=function(){};
_.ZN.Object.defineProperties(Tb8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var a5=function(){};
_.r(a5,Tb8);a5.prototype.JSC$14495_getStoreKey=function(){};
a5.prototype.JSC$14488_getRequestKey=function(G,B){B=B===void 0?{}:B;return this.JSC$14495_getStoreKey(G,B)};var mF=function(){};
_.r(mF,a5);mF.prototype.JSC$14488_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:HZ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
mF.prototype.getApiPaths=function(){return[]};
mF.prototype.getExtension=function(){};
mF.prototype.JSC$14488_buildRequest=function(){};var IyG={},fyN=(IyG.GET_DATASYNC_IDS=jo(mF),IyG);var tnw,ZwL,g4P,ivq,GUq,XE,PTy,SMt,x$s,sLL;tnw="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");ZwL=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.OR=function(G,B,F,D,u,R,N,y,U){this.endpointMap=G;this.networkManager=B;this.authService=F;this.responseProcessorMap=D;this.innertubeResponseStore=u;this.contextProcessors=R;this.asyncContextProcessors=N;this.localInnertubeRouter=y;this.requestSequencer=U;this.inflightRequests=new Map;G.signalEndpointMap||(G.signalEndpointMap={});G.signalEndpointMap=Object.assign({},fyN,G.signalEndpointMap)};
g4P=function(G,B,F,D,u,R,N,y,U){if(_.OR.instance!==void 0){if(D=_.OR.instance,G=[G!==D.endpointMap,B!==D.networkManager,F!==D.authService,u!==D.innertubeResponseStore,R!==D.contextProcessors,N!==D.asyncContextProcessors,y!==D.localInnertubeRouter],G.some(function(q){return q}))throw new _.Uf("InnerTubeTransportService is already initialized",G);
}else _.OR.instance=new _.OR(G,B,F,D,u,R,N,y,U)};
_.$F=function(G,B,F){var D=D===void 0?uwU:D;var u=SMt(G,B);return u?new _.DS(function(R,N){var y,U,q,h,K;return _.n(function(a){switch(a.nextAddress){case 1:return a.yield(u,2);case 2:y=a.yieldResult;U=y.JSC$14488_getRequest(B,F,D);if(!U){N(new _.Uf("Error: Failed to build request for command.",B));a.jumpTo(0);break}QW(U.input);h=((q=U.requestShell)==null?void 0:q.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){K=sLL(U.config,h);a.jumpTo(4);break}return a.yield(x$s(U.config,h),5);case 5:K=
a.yieldResult;case 4:R(PTy(G,U,K)),_.di(a)}})}):_.U_(new _.Uf("Error: No request builder found for command.",B))};
ivq=function(G,B,F,D){var u=u===void 0?uwU:u;var R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z;return _.n(function(P){switch(P.nextAddress){case 1:R=OCJ(B,G.endpointMap);if(!R)throw new _.Uf("Error: No streaming request builder found for command",B);N=R.JSC$14488_getRequest(B,F,u);if(!N)throw new _.Uf("Failed to build YtRequest for streaming Command",B);if((y=G.localInnertubeRouter)==null||!y.shouldPreferLocalResponse(N.input,N.innerTubeRequest)){P.jumpTo(2);break}return P.yield(G.localInnertubeRouter.localInnertubeResponse(N.input,
N.innerTubeRequest),3);case 3:return U=P.yieldResult,q={},U.playerResponse&&(XE(G,U.playerResponse,N),q.player=U.playerResponse,(h=D)==null||h(q,U)),U.watchNextResponse&&(XE(G,U.watchNextResponse,N),q.content=U.watchNextResponse,(K=D)==null||K(q,U)),P.return(q);case 2:return P.yield(GUq(G,N),4);case 4:m=((a=N.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){L=sLL(N.config,m);P.jumpTo(5);break}return P.yield(x$s(N.config,m),6);case 6:L=P.yieldResult;case 5:return b=
(e=(W=N.requestShell)==null?void 0:W.headers)!=null?e:{},N.requestShell=Object.assign({},N.requestShell,{headers:Object.assign({},b,L)}),M=Object.assign({},N.requestShell),t=JSON.stringify(N.innerTubeRequest),N.requestShell.method==="POST"&&(M=Object.assign({},M,{body:t})),T=function(RI,yo){XE(G,yo.playerResponse||yo.watchNextResponse||yo.reelItemWatchResponse||yo.reelWatchSequenceResponse,N);D==null||D(RI,yo);yo.playerResponse&&yJt()},A={},P.yield(Bt8(G.networkManager,N.input,M,T),7);
case 7:return A=P.yieldResult,((Z=N.config)==null?0:Z.responseTick)&&_.KR(N.config.responseTick),P.return(A)}})};
_.rB=function(G,B,F,D,u){u=u===void 0?{authStrategy:{identity:uwU}}:u;var R=R===void 0?!0:R;var N=function(){};
N=Duz(i48(F));B.context||(B.context=_.Oj(D,R));return new _.DS(function(y){var U,q,h,K,a;return _.n(function(m){if(m.nextAddress==1)return U=YsJ(F),q=_.WZ(U),G.authService.syncHeaders?(h=sLL(u,q),m.jumpTo(2)):m.yield(x$s(u,q),3);m.nextAddress!=2&&(h=m.yieldResult);K=A9g(YsJ(F));a={input:K,requestShell:HZ(K),innerTubeRequest:B,config:u};y(PTy(G,a,h,N));_.di(m)})})};
GUq=function(G,B){var F,D,u,R,N,y,U,q,h,K,a;return _.n(function(m){switch(m.nextAddress){case 1:if(!((F=B)==null?0:(D=F.innerTubeRequest)==null?0:D.context)){m.jumpTo(0);break}u=B.innerTubeRequest.context;if(!(G.asyncContextProcessors&&G.asyncContextProcessors.length>0)){m.jumpTo(3);break}R=[];N=_.C(G.asyncContextProcessors);for(y=N.next();!y.done;y=N.next())U=y.value,q=U.processContext(B),q.wrappedPromise_&&R.push(q.wrappedPromise_);if(!(R.length>0)){m.jumpTo(3);break}return m.yield(Promise.all(R),
3);case 3:h=_.C(G.contextProcessors||[]),K=h.next();case 6:if(K.done){m.jumpTo(0);break}a=K.value;return m.yield(a.processContext(u),7);case 7:K=h.next(),m.jumpTo(6)}})};
XE=function(G,B,F){var D;if(B&&!(B==null?0:(D=B.sequenceMetaData)==null?0:D.skipProcessing)&&G.responseProcessorMap){D=_.C(tnw);for(var u=D.next();!u.done;u=D.next())u=u.value,G.responseProcessorMap[u]&&G.responseProcessorMap[u].handleResponse(B,F)}};
PTy=function(G,B,F,D){D=D===void 0?function(){}:D;
var u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI,v6,Jg,c6,q8,n7;return _.n(function(Ts){switch(Ts.nextAddress){case 1:N=(u=B.config)==null?void 0:(R=u.storeStrategy)==null?void 0:R.storeKey;if(!(N&&G.innertubeResponseStore&&G.innertubeResponseStore.has(N))||((y=B.config)==null?0:(U=y.storeStrategy)==null?0:U.disableCache)){Ts.jumpTo(2);break}return Ts.yield(G.innertubeResponseStore.get(N),3);case 3:q=Ts.yieldResult;if(!q||q.isExpired()){Ts.jumpTo(2);break}h=_.tm(q);if(!_.X("web_process_response_store_responses")||
q.isProcessed()){Ts.jumpTo(5);break}XE(G,h,B);return Ts.yield(G.innertubeResponseStore.markAsProcessed(N),5);case 5:return Ts.return(Promise.resolve(h));case 2:if((K=G.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(B.input,B.innerTubeRequest)){Ts.jumpTo(7);break}return Ts.yield(G.localInnertubeRouter.localInnertubeResponse(B.input,B.innerTubeRequest),8);case 8:return a=Ts.yieldResult,XE(G,a,B),Ts.return(a);case 7:return Ts.yield(GUq(G,B),9);case 9:return(W=(L=B.config)==null?void 0:L.requestKey)&&
G.inflightRequests.has(W)?m=G.inflightRequests.get(W):(e=JSON.stringify(B.innerTubeRequest),t=(M=(b=B.requestShell)==null?void 0:b.headers)!=null?M:{},B.requestShell=Object.assign({},B.requestShell,{headers:Object.assign({},t,F)}),T=Object.assign({},B.requestShell),B.requestShell.method==="POST"&&(T=Object.assign({},T,{body:e})),((A=B.config)==null?0:A.requestTick)&&_.KR(B.config.requestTick),Z=function(){return G.networkManager.fetch(B.input,T,B.config)},m=G.requestSequencer?F8N(G.requestSequencer,
B,Z):Z(),W&&G.inflightRequests.set(W,m)),Ts.yield(m,10);
case 10:(P=Ts.yieldResult)&&_.X("web_streaming_player")&&Array.isArray(P)&&(P=P[0].playerResponse);if(P&&"error"in P&&((RI=P)==null?0:(yo=RI.error)==null?0:yo.details))for(hg=P.error.details,US=_.C(hg),aI=US.next();!aI.done;aI=US.next())v6=aI.value,(Jg=v6["@type"])&&ZwL.indexOf(Jg)>-1&&(delete v6["@type"],P=v6);W&&G.inflightRequests.has(W)&&G.inflightRequests.delete(W);((c6=B.config)==null?0:c6.responseTick)&&_.KR(B.config.responseTick);if(P||(q8=G.localInnertubeRouter)==null||!q8.canProvideFallbackResponse(B.input,
B.innerTubeRequest)){Ts.jumpTo(11);break}return Ts.yield(G.localInnertubeRouter.localFallbackInnertubeResponse(B.input,B.innerTubeRequest),12);case 12:P=Ts.yieldResult;case 11:return XE(G,P,B),((n7=B.config)==null?0:n7.processorTick)&&_.KR(B.config.processorTick),D(),Ts.return(P||void 0)}})};
_.eo=function(G,B){return ky8(B,G.endpointMap)};
SMt=function(G,B){G=eC8(B,G.endpointMap);if(G!==void 0)return Promise.resolve(G)};
x$s=function(G,B){var F,D,u,R;return _.n(function(N){if(N.nextAddress==1){u=(F=G)==null?void 0:(D=F.authStrategy)==null?void 0:D.sessionIndex;var y=N.yield;var U=_.ZL(WaS({sessionIndex:u}));return y.call(N,U,2)}R=N.yieldResult;return N.return(Promise.resolve(Object.assign({},$wo(B),R)))})};
sLL=function(G,B){var F;G=G==null?void 0:(F=G.authStrategy)==null?void 0:F.sessionIndex;F=WaS({sessionIndex:G});return Object.assign({},$wo(B),F)};var DbP,uIa,RNL,wWP,C$G,NtU,lDy,Ubt,L9,qaN,Env,nnq,hN7;DbP=0;uIa=/tone[1-5]/;RNL=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");wWP="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
C$G=Number.MAX_SAFE_INTEGER;NtU=RegExp("\ufe0f","g");_.Q0=function(G){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;G&&_.y_w(this,G)};
_.y_w=function(G,B){try{_.uX(B,{context:G,onSuccess:function(D,u){Array.isArray(u)?G.load(u):(D=new _.Uf("Emoji manager JSON response was not an array!",{response:u}),_.k2(D))},
onError:function(D){D=new _.Uf("Failed to retrieve emoji manager initial JSON data!",{url:B,statusCode:_.BQ(D).toString()});_.em(D)}})}catch(D){var F=new _.Uf("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:B});
_.em(F)}};
_.Q0.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Q0.prototype.load=function(G,B){if(B)if(G.length)G=G.concat(B.emojis);else{this.emojis=B.emojis;this.emojiMap=B.emojiMap;this.emojiShortcutMap=B.emojiShortcutMap;this.emojiShortcutCharMap=nnq(B);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=B.emojiRegex;return}this.emojis=[].concat(_.gi(new Set(this.emojis.concat(G))));this.hasInitializedShortcutCharMap=!1;G=Array(this.emojis.length);for(B=0;B<this.emojis.length;B++){var F=this.emojis[B];if(F.emojiId){this.emojiMap[F.emojiId]=F;this.emojiMap[F.emojiId].index=
B;for(var D=0;F.shortcuts&&D<F.shortcuts.length;D++)this.emojiShortcutMap[F.shortcuts[D].toLocaleLowerCase()]=F;G[B]=F.isCustomEmoji&&F.shortcuts?F.shortcuts[0]:F.emojiId}}G.sort(function(u,R){return R.length-u.length});
if(G.length)try{this.emojiRegex=new RegExp(G.join("|").replace("*","\\*"),"gi")}catch(u){this.emojiRegex=/$./}else this.emojiRegex=/$./};
lDy=function(G,B){B=_.C(B);for(var F=B.next();!F.done;F=B.next()){var D=F.value;if(D.emojiId&&G.emojiMap[D.emojiId]){F=Object.assign({},G.emojiMap[D.emojiId],D);G.emojiMap[D.emojiId]=F;var u=void 0;F.index&&((u=G.emojis[F.index])==null?void 0:u.emojiId)===D.emojiId&&(G.emojis[F.index]=F);D=void 0;if((D=F.shortcuts)==null?0:D.length)for(G.hasInitializedShortcutCharMap=!1,D=_.C(F.shortcuts),u=D.next();!u.done;u=D.next())G.emojiShortcutMap[u.value.toLocaleLowerCase()]=F}}};
Ubt=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(_.nM.getInstance(),2);if(D.nextAddress!=3)return(B=D.yieldResult)?D.yield(B.get("ytlc-emoji-pref"),3):D.return();(F=D.yieldResult)&&lDy(G,Object.keys(F).map(function(u){return{emojiId:u,stickyPrefId:F[u]}}).filter(function(u){return!!u.emojiId&&!!u.stickyPrefId}));
_.di(D)})};
_.jC=function(G,B,F){return(G=G.emojiMap[B])&&(!G.isLocked||F!==void 0&&F)?G:void 0};
L9=function(G,B,F){F=_.jC(G,B,F===void 0?!1:F);var D=B.match("\u200d");F&&G.skinTone!==0&&(G=(D==null?void 0:D.length)===1?_.jC(G,B.replace("\u200d",RNL[G.skinTone]+"\u200d")):_.jC(G,B+RNL[G.skinTone]))&&(F=G);return F};
qaN=function(G,B){var F=G.emojiMap[B];return(F==null?0:F.stickyPrefId)?G.emojiMap[F.stickyPrefId]:L9(G,B)};
_.ZM=function(G,B){G=G.emojiShortcutMap[B.toLocaleLowerCase()];return!G||G.isLocked?null:G};
Env=function(G,B,F){return nnq(G,F===void 0?!1:F)[B]||{}};
nnq=function(G,B){B=B===void 0?!1:B;if(!G.hasInitializedShortcutCharMap){G.hasInitializedShortcutCharMap=!0;for(var F=0;F<G.emojis.length;F++){var D=G.emojis[F];if(!(D.isLocked||B&&D.isCustomEmoji&&D.emojiId&&!G.pickerCustomEmojiIds.includes(D.emojiId)))for(var u=0;D.shortcuts&&u<D.shortcuts.length;u++){var R=D.shortcuts[u];R.startsWith(":_")&&D.isCustomEmoji&&(G.emojiShortcutCharMap[":_"]==null&&(G.emojiShortcutCharMap[":_"]=Object.create(null)),G.emojiShortcutCharMap[":_"][R]=D);if(!(R.length<3||
!D.isCustomEmoji&&uIa.test(R))){var N=R.substr(0,3).toLocaleLowerCase();G.emojiShortcutCharMap[N]==null&&(G.emojiShortcutCharMap[N]=Object.create(null));G.emojiShortcutCharMap[N][R]=D}}}}return G.emojiShortcutCharMap};
_.Q0.prototype.createEmoji=function(G,B){B=B===void 0?!0:B;var F=document.createElement("img");G.isCustomEmoji||F.classList.add("small-emoji");F.classList.add("emoji");F.classList.add("yt-formatted-string");F.src=G.image?_.Ax(G.image.thumbnails,this.emojiSize)||"":"";var D=void 0;G.image&&G.image.accessibility&&G.image.accessibility.accessibilityData&&(D=G.image.accessibility.accessibilityData.label);F.alt=D?D:(G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId)||"";G.isCustomEmoji&&(F.dataset.emojiId=
G.emojiId);_.ST&&(F.setAttribute("contenteditable","false"),F.setAttribute("unselectable","on"));B&&(G.shortcuts&&G.shortcuts.length&&F.setAttribute("shared-tooltip-text",G.shortcuts[0]),F.id="emoji-"+DbP++);return F};
_.Q0.prototype.createDocumentFragment=function(G,B,F,D){B=B===void 0?!1:B;F=F===void 0?!0:F;D=D===void 0?!1:D;G=G.replace(NtU,"");for(var u=document.createDocumentFragment(),R=0,N,y=0;(N=this.emojiRegex.exec(G))!=null;){var U=_.jC(this,N[0])||_.ZM(this,N[0]);!U||U.isCustomEmoji&&!B||(U=this.createEmoji(U,F),R!==N.index&&u.appendChild(document.createTextNode(G.substring(R,N.index))),u.appendChild(U),R=N.index+N[0].length,y++)}if(!D||y)return u.appendChild(document.createTextNode(G.substr(R))),u};
hN7=function(G,B,F){var D,u,R,N,y,U,q,h,K;return _.n(function(a){if(a.nextAddress==1){if(!B.emojiId||!G.emojiMap[B.emojiId])return a.return();D=Object.assign({},G.emojiMap[B.emojiId],{stickyPrefId:F});G.emojiMap[B.emojiId]=D;B.index&&((u=G.emojis[B.index])==null?void 0:u.emojiId)===B.emojiId&&(G.emojis[B.index]=D);if((R=B.shortcuts)==null?0:R.length)for(G.hasInitializedShortcutCharMap=!1,N=_.C(B.shortcuts),y=N.next();!y.done;y=N.next())U=y.value,G.emojiShortcutMap[U.toLocaleLowerCase()]=D;return a.yield(_.nM.getInstance(),
2)}if(a.nextAddress!=4)return(q=a.yieldResult)?a.yield(q.get("ytlc-emoji-pref"),4):a.jumpTo(0);K=(h=a.yieldResult)!=null?h:{};K[B.emojiId]=F;return a.yield(q.set("ytlc-emoji-pref",K,C$G),0)})};
_.rl=new _.Q0;var mbU;_.Wj={};
mbU={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.X("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:_.X("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 ew(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 G=_.IF(this.hostElement||this).querySelector("#inline-action-button-container");G&&G.setAttribute("aria-hidden","true");this.menuButton=_.IF(this.hostElement).querySelector("#menu-button")},
attached:function(){var G=this.menuButton;G&&(G.addEventListener("focusin",_.x7(this,this.onMenuButtonFocus_)),G.addEventListener("focusout",_.x7(this,this.onMenuButtonBlur_)))},
detached:function(){var G=this.menuButton;G&&(G.removeEventListener("focusin",_.x7(this,this.onMenuButtonFocus_)),G.removeEventListener("focusout",_.x7(this,this.onMenuButtonBlur_)))},
identity:_.oI,truthy:function(G){return!!G},
computeTimestampString:function(G){return G?G.timestampText?this.getSimpleString(G.timestampText):this.TIME_FORMATTER.format(new Date(G.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(G){return G},
computeMenuVisible_:function(G,B){return G||B},
computeHasInlineActionButtons:function(G){if(!G)return!1;var B,F;return!((B=G.inlineActionButtons)==null||!B.length)||!((F=G.additionalInlineActionButtons)==null||!F.length)},
createDocumentFragmentFromString:function(G){var B=_.rl.createDocumentFragment.bind(_.rl),F;if((F=this.participantsManager)==null||!F.viewerRegex)return B(G);F=document.createDocumentFragment();for(var D=0,u;(u=this.participantsManager.viewerRegex.exec(G))!=null;){if(u.index>0){var R=":"+u[0]+":";if((_.jC(_.rl,R)||_.ZM(_.rl,R))&&G.indexOf(R)===u.index-1)continue}F.appendChild(B(G.substring(D,u.index)));D=document.createElement("span");D.appendChild(B(u[0]));D.classList.add("mention");F.appendChild(D);
D=u.index+u[0].length}F.appendChild(B(G.substring(D)));return F},
createDocumentFragment:function(G){var B=document.createDocumentFragment();if(G.simpleText)return B.appendChild(this.createDocumentFragmentFromString(G.simpleText)),B;if(!G.runs)return B;for(var F=0;F<G.runs.length;F++){var D=G.runs[F];if(D.emoji)B.appendChild(_.rl.createEmoji(D.emoji));else if(D.text)if(D.navigationEndpoint){var u=document.createElement("a");u.classList.add("yt-simple-endpoint");ct6(u,D.navigationEndpoint);_.IF(u).appendChild(this.createDocumentFragmentFromString(D.text));B.appendChild(u)}else B.appendChild(this.createDocumentFragmentFromString(D.text))}return B},
hasModerationOverlayVisible:function(){var G;return((G=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:G.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(G){G.composedPath().some(function(B){return(B=B instanceof Element?B:null)?B.tagName&&(B.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||B.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.X("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(G)},
colorFromDecimal:function(G){return kRg(G)},
markAsDeleted:function(G,B){this.set("data.deletedStateMessage",G);this.set("data.showOriginalContentMessage",B)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(G){if(this.data.contextMenuEndpoint){var B=_.te().resolve(_.un),F=this.data.contextMenuEndpoint,D;(D=_.OR.instance)&&_.eo(D,F)?(B=K8G(B,F),D=_.rB(D,{},B)):D=_.aDN(B,F);D.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);G&&G.stopPropagation()}},
handleGetContextMenuResponse_:function(G){var B=_.OR.instance;B&&_.eo(B,{liveChatEndpoint:{}})||(G=G.response);G.liveChatItemContextMenuSupportedRenderers&&G.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(G.liveChatItemContextMenuSupportedRenderers.menuRenderer);G.actions&&_.T1(this.hostElement,"yt-live-chat-actions",[G.actions])},
handleGetContextMenuError:function(G){if(G instanceof Error||G instanceof Object||G instanceof String)var B=G;_.k2(new _.Uf("Error encountered calling GetLiveChatItemContextMenu",B))},
showContextMenu_:function(G){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.cZ(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.cZ(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Wj.YtLiveChatItemBehavior=[mbU,_.aS.YtComponentBehavior,_.f4.YtOpenPopupBehavior];_.Hj=function(){};var XWP;var QmU;var jma;var L8v;var kY=function(){var G=_.p.apply(this,arguments)||this;G.active=!1;G.identity=_.oI;return G};
_.r(kY,_.p);kY.prototype.dataChanged=function(){this.active=!1};
kY.prototype.onClick=function(){_.cZ(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
kY.prototype.dataChanged=kY.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],kY.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kY.prototype,"active",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kY.prototype,"dataChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],kY);
_.d(kY,"yt-live-chat-text-input-field-suggestion",function(){if(L8v===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;jma===void 0&&(jma=document.createElement("template"));var D=jma;F.call(B,D.content.cloneNode(!0),G.content.firstChild);L8v=G}G=L8v;return G},{mode:0});_.Oe=function(G,B,F){return CustomEvent.call(this,G,{detail:{value:B,path:F}})||this};
_.r(_.Oe,CustomEvent);_.eC=function(){var G=_.p.apply(this,arguments)||this;G.viewerName=null;G.actionMap={"yt-live-chat-actions":"onChatMessage_"};G.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];G.PARTICIPANT_TIME_USEC_=3E8;return G};
_.r(_.eC,_.p);_.w=_.eC.prototype;_.w.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.w.addParticipant=function(G){var B=_.M8S(this.participants,G,function(D,u){D=D[Object.keys(D)[0]];u=u[Object.keys(u)[0]];D=String(_.zx(D.authorName)).toLowerCase();u=String(_.zx(u.authorName)).toLowerCase();return D<u?-1:D==u?0:1}.bind(this));
if(B>=0){var F=this.participants[B];F[Object.keys(F)[0]].timestampUsec&&this.splice("participants",B,1,G)}else this.splice("participants",-B-1,0,G);G=G[Object.keys(G)[0]];B=_.zx(G.authorName).toLocaleLowerCase();F=B.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(F)||(this.allParticipantsCharMap_[F]={});this.allParticipantsCharMap_[F][B]=G};
_.w.getAuthorsFromPrefix=function(G){return this.allParticipantsCharMap_.hasOwnProperty(G)?this.allParticipantsCharMap_[G]:null};
_.w.computeViewerRegex_=function(G){if(!G)return null;G=G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var B=G.indexOf("@")===0&&_.X("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(B+G.replace(/ /g,"\\s*")+"|^"+G.replace(/ /g,"\\s*")+"$|^"+G.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+G.replace(/ /g,"\\s*")+"$|(?<=\\s)"+G.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.w.checkForStaleParticipants_=function(){var G=this;this.trimOldParticipants_();this.asyncHandle_&&Rg8(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Hc(function(){G.checkForStaleParticipants_()},3E4))};
_.w.onChatMessage_=function(G){var B=this,F=Date.now()*1E3;G.forEach(function(D){if(D=_.Q(D,iVv)){D=D.item;var u=Object.keys(D)[0];B.SUPPORTED_ITEM_TYPES_.indexOf(u)!=-1&&D[u].timestampUsec>=F-B.PARTICIPANT_TIME_USEC_&&B.addParticipant(D)}},this);
this.checkForStaleParticipants_()};
_.w.trimOldParticipants_=function(){for(var G=Date.now()*1E3,B=this.participants.length-1;B>=0;B--){var F=this.participants[B];F=F[Object.keys(F)[0]];F.timestampUsec&&F.timestampUsec<G-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",B,1)}};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],_.eC.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],_.eC.prototype,"viewerName",void 0);_.c([_.v({computed:"computeViewerRegex_(viewerName)"}),_.I("design:type",Object)],_.eC.prototype,"viewerRegex",void 0);_.c([_.v({value:function(){return[]},
notify:!0}),_.I("design:type",Array)],_.eC.prototype,"participants",void 0);_.c([_.ay({is:"yt-live-chat-participants-manager",noInjection:!0})],_.eC);var r_P=/.*([:@#].*?)$/,$Y=/\u00a0/g,W8w=String.fromCharCode(160),Hvq={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"},zj=function(){var G=_.p.apply(this,arguments)||this;G.disabled=!1;G.liveChatRichMessageInput=null;G.messageInput=null;G.isValidWithNoInputText=!1;G.suggestions=[];G.emojiManager=_.rl;G.inputMethodEditorActive=
!1;G.suggestionIndex=-1;G.JSC$14546_lastSuggestionRange=null;return G};
_.r(zj,_.p);_.w=zj.prototype;_.w.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.w.attached=function(){_.ih&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.w.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.w.dataChanged=function(){if(!this.ignoreColorMapping){var G=!1,B={},F;for(F in Hvq)this.data&&this.data.hasOwnProperty(F)&&(B[Hvq[F]]=this.colorFromDecimal(this.data[F]),G=!0);G&&_.Ss(this.hostElement,B)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.w.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.w.colorFromDecimal=function(G){G=Math.floor(Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
_.w.preventDrag=function(G){G.dataTransfer&&(G.dataTransfer.dropEffect="none");G.preventDefault()};
_.w.preventResize=function(G){G.returnValue=!1};
_.w.onInputChange=function(){var G=this.characterCount,B=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&B&&B.remove();if(!B&&this.characterCount>this.maxCharacterLimit){var F=window.getSelection();if(F){var D=F.getRangeAt(0);F.removeAllRanges();F.addRange(D)}}if(F=this.getCurrentRange())D=this.calculateTextBeforeRange(F),this.completeEmojisInRange(F,D,!0)||this.updateSuggestions(F,D);D=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(D);
_.cZ(this.hostElement,"yt-live-chat-message-input-change",D);B&&this.characterCount===0&&B.remove();F&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>G):F&&!F.collapsed&&F.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(G=this.input.childNodes.length-1;G>=0;G--)this.input.childNodes[G].nodeName==="BR"&&this.input.childNodes[G].remove()};
_.w.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.w.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var G=this.getCurrentRange();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.w.mergeOverflowText=function(G){if(G){var B=document.createRange();B.selectNodeContents(G);B=B.extractContents();this.input.insertBefore(B,G)}};
_.w.checkRangeAtEndOfInput=function(){var G=this.getCurrentRange();if(G){var B=_.IF(this.hostElement).querySelector("#overflow-text"),F=document.createRange();B&&B.previousSibling?B.previousSibling instanceof HTMLImageElement?F.selectNode(B.previousSibling):F.selectNodeContents(B.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?F.selectNode(this.input.lastChild):F.selectNodeContents(this.input.lastChild));F.collapse(!1);return F.isPointInRange(G.startContainer,
G.startOffset)}return!1};
_.w.handleOverflowText=function(G){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var B=_.IF(this.hostElement).querySelector("#overflow-text"),F=this.getCurrentRange();this.input.normalize();G=this.checkRangeAtEndOfInput()&&G;this.mergeOverflowText(B);for(var D,u=0,R=0,N,y=this.input.childNodes,U=0;U<y.length;U++){var q=y[U];q instanceof Text?(R+=q.textContent.length,R>this.maxCharacterLimit&&(D=q,u=this.maxCharacterLimit+q.textContent.length-R)):q instanceof HTMLImageElement&&
(D=void 0,R=q.dataset.emojiId&&((D=this.data)==null?0:D.emojiCharacterCount)?R+this.data.emojiCharacterCount:R+q.alt.length,D=this.input,u=U);if(R>this.maxCharacterLimit&&D){N=document.createRange();N.collapse(!1);B?(R=this.input.lastChild.previousSibling,R instanceof Text?N.setEnd(this.input.lastChild.previousSibling,R.textContent.length):R instanceof HTMLImageElement&&N.setEnd(this.input,this.input.childNodes.length-1)):N.selectNodeContents(this.input);N.setStart(D,u);break}}N&&(D=!1,F&&(G=N.isPointInRange(F.startContainer,
F.startOffset-1)),B||(B=document.createElement("span"),B.id="overflow-text",B.textContent="",B.setAttribute("contenteditable","true"),_.IF(_.IF(this.hostElement).querySelector("#input")).appendChild(B),D=!0),B&&(F=N.extractContents(),B.insertBefore(F,B.firstChild),G&&B.firstChild&&(F=document.createRange(),D?F.setStartAfter(B.lastChild):F.setStartAfter(B.firstChild),F.collapse(!0),B=window.getSelection(),B.removeAllRanges(),B.addRange(F))))}};
_.w.checkForDuplicateSpans=function(){for(var G=0;G<this.input.childNodes.length;G++){var B=this.input.childNodes[G];if(B.nodeName==="SPAN"){var F=document.createRange();F.selectNodeContents(B);F=F.extractContents();this.input.insertBefore(F,B);B.remove()}}this.handleOverflowText(!0)};
_.w.getCurrentRange=function(){var G=window.getSelection();return G&&G.rangeCount?G.getRangeAt(0).cloneRange():null};
_.w.getInputRange=function(){var G=this.getCurrentRange();if(G){for(var B=G.commonAncestorContainer,F=!1,D=_.IF(this.hostElement).querySelector("#input");B;){if(B===D){F=!0;break}B=B.parentNode}F||(G=null)}G||(G=this.getRangeAtEnd());return G};
_.w.getRangeAtEnd=function(){var G=document.createRange(),B=_.IF(this.hostElement).querySelector("#input").lastChild;!B||B.nodeName!=="#text"&&B.nodeName!=="SPAN"?(G.selectNodeContents(_.IF(this.hostElement).querySelector("#input")),G.collapse(!1)):B.nodeName==="#text"?G.setStart(B,B.textContent.length):G.setStart(B,B.childNodes.length);return G};
_.w.getChatParticipantSuggestions=function(G,B,F,D){var u=_.X("live_chat_enable_handles_web_text_input_update");if(B)for(var R in B)if(R.indexOf(G)===0||u&&R.indexOf(F+G)===0){var N=B[R],y=_.zx(N.authorName);D.push({suggestion:{author:!0,authorType:F,image:N.authorPhoto,alt:y,text:y}});if(D.length>=64)break}};
_.w.getSuggestions=function(G){var B=[],F=G.substring(0,3),D=Env(_.rl,F,!0);if(D)for(var u in D)if(u.toLocaleLowerCase().indexOf(G)===0){var R=D[u];if(R&&R.emojiId){if(R=qaN(_.rl,R.emojiId)){var N=void 0,y=void 0,U=void 0,q=void 0,h=((N=R.image)==null?0:(y=N.accessibility)==null?0:(U=y.accessibilityData)==null?0:U.label)||R.isCustomEmoji?(q=R.shortcuts)==null?void 0:q[0]:R.emojiId;B.push({suggestion:{emoji:!0,image:R.image,alt:h,text:u,textToInsertWhenSelected:R.isCustomEmoji?u:h}})}if(B.length>=
64)break}}if(!this.participantsManager)return null;if(F.indexOf("@")===0||F.indexOf("#")===0)D=F.charAt(0),G=G.substring(1),u=_.X("live_chat_enable_handles_web_text_input_update"),F.indexOf("@")===0&&u&&(u=this.participantsManager.getAuthorsFromPrefix(F.substring(0,2)),this.getChatParticipantSuggestions(G,u,D,B)),F=F.substring(1),F=this.participantsManager.getAuthorsFromPrefix(F),this.getChatParticipantSuggestions(G,F,D,B);return B?B.sort(function(K,a){return a.suggestion.text<K.suggestion.text?-1:
a.suggestion.text===K.suggestion.text?0:1}):null};
_.w.insertSuggestion=function(G){var B=_.X("live_chat_enable_handles_web_text_input_update"),F=G.authorType;B=G.text.indexOf(F)===0&&B?G.text+W8w:F+G.text+W8w;G.emoji?this.insertTextAtRange(this.JSC$14546_lastSuggestionRange,G.textToInsertWhenSelected||""):G.author&&this.insertTextAtRange(this.JSC$14546_lastSuggestionRange,B)};
_.w.updateSuggestionsAtCaret=function(){var G=this.getCurrentRange();G&&this.updateSuggestions(G,this.calculateTextBeforeRange(G))};
_.w.offsetStartOfRangeBy=function(G,B){for(;B>0;)if(G.startOffset-B>=0){G.setStart(G.startContainer,G.startOffset-B);break}else{B=G.startContainer instanceof HTMLImageElement?B-G.startContainer.alt.length:B-G.startOffset;var F=G.startContainer.previousSibling;if(!F){G.setStart(G.startContainer,0);break}if(_.X("live_chat_require_space_for_autocomplete_emoji")){var D=void 0,u=void 0;G.setStart(F,((D=F)==null?void 0:(u=D.textContent)==null?void 0:u.length)||0)}else G.setStart(F,F.childNodes.length||
0)}};
_.w.updateSuggestions=function(G,B){var F=this;this.JSC$14546_lastSuggestionRange&&(this.JSC$14546_lastSuggestionRange.detach(),this.JSC$14546_lastSuggestionRange=null);if((B=r_P.exec(B))&&B.length&&(B=B[B.length-1].toLocaleLowerCase(),B.length>2&&(this.offsetStartOfRangeBy(G,B.length),this.JSC$14546_lastSuggestionRange=G,(G=this.getSuggestions(B))&&G.length))){this.suggestions=G;_.ft(this,function(){_.IF(F.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.w.completeEmojisInRange=function(G,B,F){var D=B.replace(/[\s\xa0]+$/,"");B=B.length-D.length;D=D.split(" ");D=D[D.length-1].trim().toLocaleLowerCase();var u=D.lastIndexOf(":");if(F&&!B&&u!==D.length-1)return!1;u!==-1&&(F=D.lastIndexOf(":",u-1),F!==-1&&(D=D.substring(F)));if((F=_.ZM(_.rl,D))&&F.emojiId){F=qaN(_.rl,F.emojiId)||null;this.offsetStartOfRangeBy(G,D.length+B);var R,N,y,U;D=(((R=F)==null?0:R.isCustomEmoji)?(N=F)==null?void 0:(y=N.shortcuts)==null?void 0:y[0]:(U=F)==null?void 0:U.emojiId)||
"";B&&(D+=W8w);this.insertTextAtRange(G,D);this.dropdown.opened=!1;return!0}return!1};
_.w.onSuggestion=function(G){this.insertSuggestion(G.detail);this.dropdown.opened=!1};
_.w.onKeyPress=function(G){G.keyCode===13&&(G.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.cZ(this.hostElement,"yt-live-chat-send-message"))};
_.w.completeEmojis=function(){var G=document.createRange(),B=_.IF(this.hostElement).querySelector("#input").lastChild;B?G.setStart(B,B.childNodes.length):(G.selectNodeContents(_.IF(this.hostElement).querySelector("#input")),G.collapse(!1));this.completeEmojisInRange(G,this.calculateTextBeforeRange(G),_.X("live_chat_require_space_for_autocomplete_emoji"))};
_.w.maybePreventTextFormatting=function(G){!_.PP||!G.ctrlKey&&!G.metaKey||G.keyCode!==66&&G.keyCode!==73||(G.stopImmediatePropagation(),G.preventDefault())};
_.w.onKeyDown=function(G){this.maybePreventTextFormatting(G);if(this.dropdown.opened)switch(G.keyCode){case 27:this.dropdown.opened=!1;G.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;G.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.w.onKeyUp=function(G){switch(G.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.ST)this.onInputChange()};
_.w.changeSuggestionIndex=function(G){if(this.dropdown.opened){var B=_.IF(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<B.children.length&&(B.children[this.suggestionIndex].active=!1);var F=this.suggestions.length;this.suggestionIndex=(G+F)%F;G=B.children[this.suggestionIndex];G.active=!0;B.scrollTop=G.offsetTop}};
_.w.onInputPaste=function(G){G.preventDefault();(G=G.clipboardData)&&G.types&&(G=G.getData("text/plain")||"",G=G.replace(/\n/g,""),this.insertText(G));(G=this.getCurrentRange())&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.w.onFocus=function(){this._setFocused(!0)};
_.w.onBlur=function(){this._setFocused(!1)};
_.w.insertText=function(G){this.insertTextAtRange(this.getInputRange(),G)};
_.w.insertTextAtRange=function(G,B){if(G&&(G.collapsed||G.deleteContents(),B=_.rl.createDocumentFragment(B,!0,!1))){for(var F=_.C((B==null?void 0:B.childNodes)||[]),D=F.next();!D.done;D=F.next()){D=D.value;var u=void 0,R=void 0,N=void 0,y=void 0,U=void 0;(N=(u=window)==null?void 0:(R=u.ShadyCSS)==null?void 0:R.ScopingShim)==null||(U=(y=N).scopeNode)==null||U.call(y,D,this.hostElement.localName)}F=B.lastChild;G.insertNode(B);this.focused||this.input.focus();if(this.focused){G=G.cloneRange();G.selectNodeContents(F);
G.collapse(!1);if(B=window.getSelection())B.removeAllRanges(),B.addRange(G);G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}G=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(G);_.cZ(this.hostElement,"yt-live-chat-message-input-change",G)}};
_.w.setLiveChatRichMessageInput=function(G){_.IF(_.IF(this.hostElement).querySelector("#input")).textContent="";if(G&&G.textSegments){for(var B=0;B<G.textSegments.length;B++){var F=G.textSegments[B];F.text?_.IF(_.IF(this.hostElement).querySelector("#input")).appendChild(_.rl.createDocumentFragment(F.text,!0,!1)):F.emojiId&&(F=_.jC(_.rl,F.emojiId))&&_.IF(_.IF(this.hostElement).querySelector("#input")).appendChild(_.rl.createEmoji(F,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.w.setText=function(G){this.setLiveChatRichMessageInput(G?{textSegments:[{text:G}]}:null)};
_.w.calculateTextBeforeRange=function(G){var B="",F=G.startContainer;if(F&&F instanceof Text){var D;B=((D=F.textContent)==null?void 0:D.substring(0,G.startOffset))||"";F=F.previousSibling}for(;F&&F instanceof Text;)B=F.textContent+B,F=F.previousSibling;return B.replace($Y," ")};
_.w.calculateLiveChatRichMessageInput=function(){for(var G=[],B="",F=_.IF(_.IF(this.hostElement).querySelector("#input")).childNodes,D=0;D<F.length;D++){var u=F[D];u instanceof Text?B+=u.textContent:u instanceof HTMLImageElement&&(u.dataset.emojiId?(B&&(G.push({text:B.replace($Y," ")}),B=""),G.push({emojiId:u.dataset.emojiId})):B+=u.alt)}B&&G.push({text:B.replace($Y," ")});if(F=_.IF(this.hostElement).querySelector("#overflow-text")){B="";F=F.childNodes;for(D=0;D<F.length;D++)u=F[D],u instanceof Text?
B+=u.textContent:u instanceof HTMLImageElement&&(u.dataset.emojiId?(B&&(G.push({text:B.replace($Y," ")}),B=""),G.push({emojiId:u.dataset.emojiId})):B+=u.alt);B&&G.push({text:B.replace($Y," ")})}return{textSegments:G}};
_.w.computeCharacterCount=function(G){if(!G||!G.textSegments)return 0;for(var B=0,F=0;F<G.textSegments.length;F++){var D=G.textSegments[F];if(D.text)B+=D.text.length;else if(D.emojiId){var u=void 0;if((u=this.data)==null?0:u.emojiCharacterCount)B+=this.data.emojiCharacterCount;else{var R=u=void 0,N=void 0;B+=((R=_.jC(_.rl,(u=D)==null?void 0:u.emojiId))==null?void 0:(N=R.shortcuts)==null?void 0:N[0].length)||0}}}return B};
_.w.characterCountChanged=function(){_.cZ(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.w.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Oe("focused-changed",this.focused))};
_.w.focus=function(){this.setFocus(!1)};
_.w.focusAtEnd=function(){this.setFocus(!0)};
_.w.setFocus=function(G){G=G?this.getRangeAtEnd():this.getInputRange();_.IF(this.hostElement).querySelector("#input").focus();var B=window.getSelection();B&&(B.removeAllRanges(),B.addRange(G))};
_.w.insertEmoji=function(G){var B,F=((G==null?0:G.isCustomEmoji)?(B=G.shortcuts)==null?void 0:B[0]:G==null?void 0:G.emojiId)||"";this.insertText(F)};
_.w.computeText=function(G){if(!G||!G.textSegments)return"";for(var B="",F=0;F<G.textSegments.length;F++){var D=G.textSegments[F];if(D.text)B+=D.text;else if(D.emojiId){var u=void 0,R=void 0,N=void 0;B+=((R=_.jC(_.rl,(u=D)==null?void 0:u.emojiId))==null?void 0:(N=R.shortcuts)==null?void 0:N[0])||""}}return B};
_.w.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.ZN.Object.defineProperties(zj.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
zj.prototype.focusedChanged=zj.prototype.focusedChanged;zj.prototype.characterCountChanged=zj.prototype.characterCountChanged;zj.prototype.onSuggestion=zj.prototype.onSuggestion;zj.prototype.onMessageSet=zj.prototype.onMessageSet;zj.prototype.dataChanged=zj.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],zj.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zj.prototype,"disabled",void 0);_.c([_.O("disabled"),_.I("design:type",Number),_.I("design:paramtypes",[])],zj.prototype,"inputTabIndex",null);_.c([_.O("data.maxCharacterLimit"),_.v({readOnly:!0,notify:!0}),_.I("design:type",Number),_.I("design:paramtypes",[])],zj.prototype,"maxCharacterLimit",null);
_.c([_.O("liveChatRichMessageInput"),_.v({readOnly:!0,notify:!0}),_.I("design:type",Number),_.I("design:paramtypes",[])],zj.prototype,"characterCount",null);_.c([_.O("maxCharacterLimit, characterCount"),_.v({readOnly:!0,notify:!0}),_.I("design:type",Number),_.I("design:paramtypes",[])],zj.prototype,"remainingCharacterCount",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],zj.prototype,"isChatMessageInput",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],zj.prototype,"inputExpanded",void 0);_.c([_.v({readOnly:!0,notify:!0}),_.I("design:type",Object)],zj.prototype,"liveChatRichMessageInput",void 0);_.c([_.v(),_.I("design:type",Object)],zj.prototype,"messageInput",void 0);_.c([_.v(),_.I("design:type",Boolean)],zj.prototype,"ignoreColorMapping",void 0);_.c([_.O("characterCount"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],zj.prototype,"hasText",null);
_.c([_.v(),_.I("design:type",Object)],zj.prototype,"isValidWithNoInputText",void 0);_.c([_.O("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.v(),_.I("design:type",Boolean),_.I("design:paramtypes",[])],zj.prototype,"isInputValid",null);_.c([_.v({readOnly:!0,value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],zj.prototype,"focused",void 0);_.c([_.v(),_.I("design:type",Array)],zj.prototype,"suggestions",void 0);
_.c([_.v(),_.I("design:type",_.Q0)],zj.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",_.eC)],zj.prototype,"participantsManager",void 0);_.c([_.v(),_.I("design:type",Boolean)],zj.prototype,"noUnderline",void 0);_.c([_.v(),_.I("design:type",Object)],zj.prototype,"inputMethodEditorActive",void 0);_.c([_.iA("#dropdown"),_.I("design:type",Object)],zj.prototype,"dropdown",void 0);_.c([_.iA("#input"),_.I("design:type",HTMLElement)],zj.prototype,"input",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zj.prototype,"dataChanged",null);_.c([_.Ga("messageInput"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zj.prototype,"onMessageSet",null);_.c([_.Pm("yt-live-chat-select-suggestion"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],zj.prototype,"onSuggestion",null);
_.c([_.Ga("characterCount"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zj.prototype,"characterCountChanged",null);_.c([_.Ga("focused"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zj.prototype,"focusedChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],zj);
_.kUT=_.d(zj,"yt-live-chat-text-input-field-renderer",function(){if(QmU===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;XWP===void 0&&(XWP=document.createElement("template"));var D=XWP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);QmU=G}G=QmU;return G},{mode:0});var bx=function(){var G=_.p.apply(this,arguments)||this;G.buttonOverrides={style:"overlay",type:"filled"};G.allowAnimations=!1;G.modern=_.X("web_button_rework_with_live");G.noPadding=!1;return G};
_.r(bx,_.p);_.w=bx.prototype;_.w.shouldSupportInlineActionButtons=function(){return!0};
_.w.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"}}}}};
_.w.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.w.attached=function(){this.allowAnimations=!1};
_.w.dataChanged=function(){if(this.data){var G={"--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)};_.Ss(this.hostElement,G);this.allowAnimations=!0}};
_.w.messageChanged=function(){var G,B=(G=this.data)==null?void 0:G.message;G=_.IF(_.IF(this.hostElement).querySelector("#message"));G.textContent="";B&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.w.computeShowOnlyHeader=function(G,B){return!G||G.pdgLikeButton||G.replyButton||G.buyFlowButton?!1:this.isEmpty(G,B)&&!G.footer};
_.w.computeShowFooterDivider=function(G,B,F){return G?!!G.footer&&!this.isEmpty(G,B)&&!F:!1};
_.w.computeIsUserEditable=function(G){return!!G.inputField};
_.w.computeHasHeartButton=function(G){return(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.w.computeNoveltyImage=function(G){if(G.headerOverlayImage&&G.headerOverlayImage.thumbnails.length){var B=G.headerOverlayImage.thumbnails[0],F,D;if((F=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(D=F.loggingDirectives)==null?0:D.trackingParams){var u,R;vnJ((u=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(R=u.loggingDirectives)==null?void 0:R.trackingParams)}return B.width||0}return 0};
_.w.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.w.inputFocus=function(){var G=_.IF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.focus()};
_.w.inputInsertEmoji=function(G){var B=_.IF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");B&&B.insertEmoji(G)};
_.w.inputMessage=function(){var G=_.IF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),B;return G&&((B=this.data)==null?0:B.inputField)?(G.completeEmojis(),_.re(G.liveChatRichMessageInput)):null};
_.w.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.w.isEmpty=function(G,B){return G?G.empty||!(G.message||G.inputField||B):!0};
_.w.onLowerBuyButtonClick=function(){var G,B=_.Q((G=this.data)==null?void 0:G.buyButton,_.Xq);B&&B.trackingParams&&!eqc(B.command)&&(G=_.yX(B.trackingParams))&&(B=_.qW())&&_.$I(B,G)};
_.w.shouldSupportWholeItemClick=function(){return!0};
_.ZN.Object.defineProperties(bx.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
bx.prototype.isDeletedChanged=bx.prototype.isDeletedChanged;bx.prototype.messageChanged=bx.prototype.messageChanged;bx.prototype.dataChanged=bx.prototype.dataChanged;_.c([_.k(g5a.YtPdgLiveChatItemBehavior),_.I("design:type",Object)],bx.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],bx.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],bx.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bx.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:bvo}),_.I("design:type",Object)],bx.prototype,"engagementState",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.I("design:type",Boolean)],bx.prototype,"isUserEditable",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.I("design:type",Boolean)],bx.prototype,"hasHeartButton",void 0);_.c([_.v({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.I("design:type",Boolean)],bx.prototype,"showOnlyHeader",void 0);
_.c([_.v({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.I("design:type",Boolean)],bx.prototype,"showFooterDivider",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Object)],bx.prototype,"allowAnimations",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],bx.prototype,"dashboardMoneyFeed",void 0);_.c([_.v({computed:"computeNoveltyImage(data)"}),_.I("design:type",Number)],bx.prototype,"noveltyWidth",void 0);
_.c([_.v({computed:"computeAuthorPhotoSize(data)"}),_.I("design:type",Number)],bx.prototype,"authorPhotoSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],bx.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],bx.prototype,"noPadding",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bx.prototype,"dataChanged",null);
_.c([_.Ga("data.message"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bx.prototype,"messageChanged",null);_.c([_.O("data","dashboardMoneyFeed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],bx.prototype,"hideLowerBumper",null);_.c([_.Ga("isDeleted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bx.prototype,"isDeletedChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],bx);
_.d(bx,"yt-live-chat-paid-message-renderer",function(){if(bwq===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;zMv===void 0&&(zMv=document.createElement("template"));var D=zMv;F.call(B,D.content.cloneNode(!0),G.content.firstChild);bwq=G}G=bwq;return G},{mode:0});var OvP;var eN7;var V0=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.r(V0,_.DO);V0.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.v5("openPopupConfig")};
_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],V0.prototype,"ytOpenPopupBehavior",void 0);_.c([_.uA()],V0);_.vj=[_.f4.YtOpenPopupBehavior,V0.prototype];var $bs;var ZCS=[_.x9,$Qy,_.QG,_.tCa,_.vI,_.BY8,_.KV,_.Fu,_.P2,_.ls7,_.Ow];_.X("web_show_ep_endpoint_response_received")&&ZCS.push(_.Xi);var gMy=new _.oV("RESPONSE_RECEIVED_COMMANDS"),tX8=new _.oV("RESPONSE_RECEIVED_COMMANDS");var AOJ="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),YJs=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],pyQ=["GET_UNSEEN_NOTIFICATION_COUNT"];var o5=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;G.serviceEndpointHandlers=[];return G};
_.r(o5,_.DO);o5.prototype.created=function(){var G=this;this.endpointHandlerActionMap={"yt-service-request":function(B,F,D,u){var R;return MXg(G.hostElement,B,F,D,u,G.serviceEndpointHandlers,(R=G.onEntitiesUpdated)==null?void 0:R.bind(G))}}};
o5.prototype.attached=function(){_.Y2(_.pZ.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
o5.prototype.detached=function(){_.Ab(_.pZ.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.c([_.uA()],o5);_.zNL=[o5.prototype];var bvP,V48=function(){return bvP!==void 0?bvP:bvP=document.createElement("template")};
document.head.appendChild(V48().content);var vnU;var onw=document.head,M4t=onw.appendChild,pWU;if(vnU===void 0){var YaN=document.createElement("template");_.H(YaN,"\x3c!--css-build:shady--\x3e");YaN.content.insertBefore(V48().content.cloneNode(!0),YaN.content.firstChild);vnU=YaN}pWU=vnU;M4t.call(onw,pWU.content);var A_w,dbt=function(){return A_w!==void 0?A_w:A_w=document.createElement("template")};
document.head.appendChild(dbt().content);var J_v;var c_s=document.head,TtT=c_s.appendChild,IDa;if(J_v===void 0){var fDG=document.createElement("template");_.H(fDG,"\x3c!--css-build:shady--\x3e");fDG.content.insertBefore(dbt().content.cloneNode(!0),fDG.content.firstChild);J_v=fDG}IDa=J_v;TtT.call(c_s,IDa.content);var t4U;_.UR("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.UR("sharingRendererButtons","buttonRenderer","ytd-button-renderer");t4U=_.X("web_button_rework")&&_.on("BUTTON_REWORK")||_.X("web_button_rework_with_live");_.MR=function(){var G=_.p.apply(this,arguments)||this;G.isPressed=!1;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return G};
_.r(_.MR,_.p);_.w=_.MR.prototype;_.w.created=function(){this.showTooltips=!0};
_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.onHintIdChanged=function(){var G=this,B,F,D=(B=this.ytButtonBehavior.data)==null?void 0:(F=B.hint)==null?void 0:F.hintRenderer;if(D&&D.hintId){B=_.Ia(this.hostElement,"yt-get-opened-popups-action");B=(B&&B.length===1?B[0]:[]).length>0;var u=null;D.hintId!=="sponsor-pre-purchase"||B?D.hintId.startsWith("sponsor-post-purchase")&&!B?u=oBw("membership-manage"):D.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!B&&(u=oBw("membership-freebie-join")):u=oBw("membership-join");u&&_.Lu.addLowPriorityJob(function(){for(var R=
_.C(u),N=R.next();!N.done;N=R.next())G.ytComponentBehavior.resolveCommand(N.value)})}};
_.w.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.w.onYtNavigate=function(G){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);B&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(B))};
_.w.onYtServiceRequestSent=function(G,B){this.handleServiceRequestActions(B);_.cZ(this.hostElement,"yt-service-request-sent-button-renderer")};
_.w.onServiceRequestCompleted=function(G,B){this.handleServiceRequestActions(B);_.cZ(this.hostElement,"yt-service-request-completed-button-renderer")};
_.w.updateButton=function(G){var B;if(G=(B=_.Q(G,L$v))==null?void 0:B.updatedButton)this.ytButtonBehavior.data=_.Q(G,_.Xq)};
_.w.handleUpdateButtonAction=function(G){var B=this.ytButtonBehavior.data;B.targetId&&G.updateButtonAction.targetId&&B.targetId===G.updateButtonAction.targetId&&this.updateButton(G)};
_.w.handleServiceRequestActions=function(G){if(G=G.actions)for(var B=0;B<G.length;B++)this.updateButton(G[B])};
_.ZN.Object.defineProperties(_.MR,{template:{configurable:!0,enumerable:!0,get:function(){if($bs===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);$bs=G}G=$bs;return G}}});
_.MR.prototype.onServiceRequestCompleted=_.MR.prototype.onServiceRequestCompleted;_.MR.prototype.onYtServiceRequestSent=_.MR.prototype.onYtServiceRequestSent;_.MR.prototype.onYtNavigate=_.MR.prototype.onYtNavigate;_.MR.prototype.onPressedStateChanged=_.MR.prototype.onPressedStateChanged;_.MR.prototype.onHintIdChanged=_.MR.prototype.onHintIdChanged;_.c([_.v(),_.I("design:type",Object)],_.MR.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],_.MR.prototype,"isPressed",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],_.MR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.xGP.YtButtonBehavior),_.I("design:type",Object)],_.MR.prototype,"ytButtonBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],_.MR.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],_.MR.prototype,"ytComponentBehavior",void 0);
_.c([_.k(Bj.YtRenderButtonBehavior),_.I("design:type",Object)],_.MR.prototype,"ytRenderButtonBehavior",void 0);_.c([_.Ga("data.hint.hintRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],_.MR.prototype,"onHintIdChanged",null);_.c([_.Ga("isPressed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],_.MR.prototype,"onPressedStateChanged",null);
_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],_.MR.prototype,"onYtNavigate",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],_.MR.prototype,"onYtServiceRequestSent",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],_.MR.prototype,"onServiceRequestCompleted",null);_.c([_.mC({is:"ytd-button-renderer",disableElementRegistration:t4U})],_.MR);var p9=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.r(p9,_.p);_.w=p9.prototype;_.w.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"}}}}};
_.w.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.w.dataChanged=function(){if(this.data&&this.data.sticker){var G=_.Ax(this.data.sticker.thumbnails,this.stickerWidth);G||_.Gv8(G).thenCatch(function(){_.em(new _.Uf("Failed to load Super Sticker with url",G))})}};
_.w.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)?32:40};
_.w.computeIsV2Style=function(G){return(G==null?0:G.isV2Style)?!0:!1};
_.w.onStickerLoaded=function(G){var B,F,D;(B=_.oF(G))==null||(F=B.parentNode)==null||(D=F.classList)==null||D.add("sticker-loaded")};
_.w.computeNoveltyImageWidth=function(G){var B,F;if(G==null?0:(B=G.headerOverlayImage)==null?0:(F=B.thumbnails)==null?0:F.length){B=G.headerOverlayImage.thumbnails[0];var D,u;if((D=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(u=D.loggingDirectives)==null?0:u.trackingParams){var R,N;vnJ((R=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(N=R.loggingDirectives)==null?void 0:N.trackingParams)}return B.width||0}return 0};
_.w.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.w.updateStickerStyles=function(){var G=this.data;G&&(G={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.authorNameTextColor)},
_.Ss(this.hostElement,G))};
_.w.onBuyButtonClick=function(){var G,B=_.Q((G=this.data)==null?void 0:G.buyButton,_.Xq);B&&!eqc(B.command)&&this.ytRendererBehavior.logExplicitClick(B)};
_.w.shouldSupportWholeItemClick=function(){return!0};
_.ZN.Object.defineProperties(p9.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 G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
p9.prototype.updateStickerStyles=p9.prototype.updateStickerStyles;p9.prototype.isDeletedChanged=p9.prototype.isDeletedChanged;p9.prototype.onStickerLoaded=p9.prototype.onStickerLoaded;p9.prototype.dataChanged=p9.prototype.dataChanged;_.c([_.k(g5a.YtPdgLiveChatItemBehavior),_.I("design:type",Object)],p9.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],p9.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],p9.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],p9.prototype,"data",void 0);
_.c([_.v({computed:"computeAuthorPhotoSize(data)"}),_.I("design:type",Number)],p9.prototype,"authorPhotoSize",void 0);_.c([_.v(),_.I("design:type",Boolean)],p9.prototype,"isDeleted",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],p9.prototype,"dashboardMoneyFeed",void 0);_.c([_.v({computed:"computeNoveltyImageWidth(data)"}),_.I("design:type",Number)],p9.prototype,"noveltyWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],p9.prototype,"modern",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.I("design:type",Boolean)],p9.prototype,"isV2Style",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p9.prototype,"dataChanged",null);_.c([_.Pm("yt-img-shadow-loaded"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],p9.prototype,"onStickerLoaded",null);
_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],p9.prototype,"stickerWidth",null);_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],p9.prototype,"stickerHeight",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],p9.prototype,"hasHeartButton",null);_.c([_.O("data","dashboardMoneyFeed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],p9.prototype,"hideLowerBumper",null);
_.c([_.Ga("isDeleted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p9.prototype,"isDeletedChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p9.prototype,"updateStickerStyles",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],p9);
_.d(p9,"yt-live-chat-paid-sticker-renderer",function(){if(eN7===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;OvP===void 0&&(OvP=document.createElement("template"));var D=OvP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);eN7=G}G=eN7;return G},{mode:0});var Zva;var gns;var SaU,smy=function(){return SaU!==void 0?SaU:SaU=document.createElement("template")};
document.head.appendChild(smy().content);var xbP,P$q=function(){return xbP!==void 0?xbP:xbP=document.createElement("template")};
document.head.appendChild(P$q().content);var Gy7;var B9L,iCw=function(){return B9L!==void 0?B9L:B9L=document.createElement("template")};
document.head.appendChild(iCw().content);var Ffq;var DwN=document.head,ulq=DwN.appendChild,RCN;if(Ffq===void 0){var wya=document.createElement("template");_.H(wya,"\x3c!--css-build:shady--\x3e");wya.content.insertBefore(iCw().content.cloneNode(!0),wya.content.firstChild);Ffq=wya}RCN=Ffq;ulq.call(DwN,RCN.content);var Cjv=document.head,N9q=Cjv.appendChild,yOs;if(Gy7===void 0){var YY=document.createElement("template");_.H(YY,"\x3c!--css-build:shady--\x3e");YY.content.insertBefore(P$q().content.cloneNode(!0),YY.content.firstChild);YY.content.insertBefore(smy().content.cloneNode(!0),YY.content.firstChild);Gy7=YY}yOs=Gy7;N9q.call(Cjv,yOs.content);var AW=function(){var G=_.DO.apply(this,arguments)||this;G.focusedIndex=0;G.verticalOffset=0;G.verticalAlign="top";G.dynamicAlign=!0;return G};
_.r(AW,_.DO);AW.prototype.emojiUrl=function(G){G=_.jC(this.emojiManager,G);if(!G)return"";var B;G=(B=G.image)==null?void 0:B.thumbnails;return _.Ax(G,24)||""};
var now=function(G){var B;G.emojiVariants&&(B=G.data)!=null&&B.target&&_.ft(G,function(){G.set("verticalOffset",-1*G.hostElement.clientHeight);var F=_.IF(G.hostElement).querySelector("img");F&&F.focus()})};
_.w=AW.prototype;_.w.onKeyboardEnter=function(){};
_.w.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.w.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.w.onKeyDown=function(G){switch(G.keyCode){case 13:this.onKeyboardEnter();G.preventDefault();break;case 40:this.changeFocus(1);G.preventDefault();break;case 38:this.changeFocus(-1);G.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.w.onYtEmojiSelect=function(G){var B=this,F,D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1)return D=(F=B.data)==null?void 0:F.emoji,N=((u=D)==null?void 0:u.stickyPrefId)||((R=D)==null?void 0:R.emojiId),U=(y=G.detail)==null?void 0:y.emojiId,N&&U&&N!==U?h.yield((q=B.emojiManager)==null?void 0:hN7(q,D,U),2):h.return();_.T1(B.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[D,U]);_.di(h)})};
_.w.changeFocus=function(G){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+G+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(G=_.IF(this.hostElement).querySelector("#variants"))&&G.children[this.focusedIndex].focus())};
_.ZN.Object.defineProperties(AW.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
AW.prototype.onYtEmojiSelect=AW.prototype.onYtEmojiSelect;AW.prototype.onKeyDown=AW.prototype.onKeyDown;AW.prototype.onEmojiVariantsChanged=AW.prototype.onEmojiVariantsChanged;AW.prototype.onVerticalOffsetOrPositionTargetChanged=AW.prototype.onVerticalOffsetOrPositionTargetChanged;_.c([_.k(_.Lg),_.I("design:type",Object)],AW.prototype,"ironOverlayBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AW.prototype,"data",void 0);_.c([_.v(),_.I("design:type",_.Q0)],AW.prototype,"emojiManager",void 0);
_.c([_.v(),_.I("design:type",Object)],AW.prototype,"emojiVariants",void 0);_.c([_.v(),_.I("design:type",Object)],AW.prototype,"focusedIndex",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],AW.prototype,"positionTarget",null);_.c([_.v({reflectToAttribute:!0}),_.O("verticalOffset","data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AW.prototype,"isPositioned",null);_.c([_.v(),_.I("design:type",Object)],AW.prototype,"verticalOffset",void 0);
_.c([_.v(),_.I("design:type",Object)],AW.prototype,"verticalAlign",void 0);_.c([_.v(),_.I("design:type",Object)],AW.prototype,"dynamicAlign",void 0);_.c([_.Ga("verticalOffset","positionTarget"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],AW.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.c([_.Ga("emojiVariants"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],AW.prototype,"onEmojiVariantsChanged",null);
_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],AW.prototype,"onKeyDown",null);_.c([_.Pm("yt-emoji-select"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype",Promise)],AW.prototype,"onYtEmojiSelect",null);_.c([_.uA()],AW);var lja=[AW.prototype];var UwL;var qJv;var Eo8=/medium-light|medium-dark|light|medium|dark/,hCy=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,KfU=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),dl=function(){var G=_.p.apply(this,arguments)||this;G.userSelection={left:null,right:null};G.scrollAction="lock";G.isEmojiDraftInProgress=!1;return G};
_.r(dl,_.p);_.w=dl.prototype;_.w.onClick=function(G){G=_.oF(G);G instanceof HTMLImageElement&&this.selectOrUpdateEmoji(G)};
_.w.selectOrUpdateEmoji=function(G){var B=G.getAttribute("selection");B&&(B==="default"?_.cZ(this.hostElement,"yt-emoji-select",_.jC(this.emojiManager,G.id)):B==="left"?this.userSelection=Object.assign({},this.userSelection,{left:G.src}):B==="right"?this.userSelection=Object.assign({},this.userSelection,{right:G.src}):B==="user"&&this.userSelection.left&&this.userSelection.right&&_.cZ(this.hostElement,"yt-emoji-select",_.jC(this.emojiManager,G.id)))};
_.w.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.w.onMultiSelectorThumbnailRowChanged=function(){var G,B,F;((G=this.data)==null?0:(B=G.emoji)==null?0:(F=B.multiSelectorThumbnailRow)==null?0:F.length)&&this.openSelector()};
_.w.getThumbnailFromEmojiRow=function(G){var B,F;return(G==null?void 0:(B=G.thumbnails)==null?void 0:(F=B[0])==null?void 0:F.url)||""};
_.w.getEmojiAltTextForPartialSelector=function(G){var B;return((B=this.getThumbnailFromEmojiRow(G).match(hCy))==null?void 0:B[0])||""};
_.w.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.w.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.w.getRowSelection=function(G){return["left","right"][G]};
_.w.getIdFromComposedEmoji=function(G){return(G==null?void 0:G.emojiId)||""};
_.w.getEmojiFromPartialSelections=function(G,B){if(!G&&!B)return null;var F,D,u=(F=this.data)==null?void 0:(D=F.emoji)==null?void 0:D.variantIds;if(!u||!u.length)return null;var R;G=(R=G.match(Eo8))==null?void 0:R[0];var N;B=(N=B.match(Eo8))==null?void 0:N[0];if(!G||!B)return null;var y=KfU.get(G);N=KfU.get(B);if(y===N){N=Array.from(KfU.values()).filter(function(q){return q!==y}).join("|");
var U=new RegExp("^((?!("+N+")).)*"+y+"$")}else U=new RegExp(y+".*"+N);return(u=u.find(function(q){return U.test(q)}))&&_.jC(this.emojiManager,u)||null};
_.w.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var G,B=this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"");_.IF(this.hostElement).querySelector('[selection="user"]').src.includes(B)||(this.isEmojiDraftInProgress=!0)}};
_.w.onDomChange=function(){now(this.ytEmojiSelectorBehavior)};
_.w.getFocusableElements=function(){return _.IF(this.hostElement).querySelectorAll("img").filter(function(G){return G.getAttribute("role")==="option"})};
_.w.changeFocus=function(G){var B=this.getFocusableElements();B!=null&&B.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+G+B.length)%B.length,this.ytEmojiSelectorBehavior.focusedIndex<B.length&&(G=B[this.ytEmojiSelectorBehavior.focusedIndex])&&G.focus())};
_.w.onKeyboardEnter=function(){var G=this.getFocusableElements();G!=null&&G.length&&(G=G[this.ytEmojiSelectorBehavior.focusedIndex])&&G instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(G),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.ZN.Object.defineProperties(dl.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,B,F,D;return this.emojiManager&&((B=this.data)==null?0:(F=B.emoji)==null?0:(D=F.variantIds)==null?0:D.length)?this.data.emoji.variantIds.map(function(u){return!!u&&_.jC(G.emojiManager,u)}).filter(function(u){return!!u}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G,B=(G=this.userSelection)==null?void 0:G.left,F;G=(F=this.userSelection)==null?void 0:F.right;return B&&G?this.getEmojiFromPartialSelections(B,G):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.composedEmojiSelection)==null?0:G.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var B;G=(B=this.userSelection)==null?void 0:B.left;var F;B=(F=this.userSelection)==null?void 0:F.right;if(!G&&!B){var D;return this.ytEmojiSelectorBehavior.emojiUrl(((D=this.data.emoji)==null?void 0:D.emojiId)||"")}return G&&!B?G:!G&&B?B:""}}});
dl.prototype.onMultiSelectorThumbnailRowChanged=dl.prototype.onMultiSelectorThumbnailRowChanged;dl.prototype.onClick=dl.prototype.onClick;_.c([_.k(_.Lg),_.I("design:type",Object)],dl.prototype,"ironOverlayBehavior",void 0);_.c([_.k(lja),_.I("design:type",Object)],dl.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dl.prototype,"data",void 0);_.c([_.v(),_.I("design:type",_.Q0)],dl.prototype,"emojiManager",void 0);
_.c([_.v(),_.I("design:type",Object)],dl.prototype,"userSelection",void 0);_.c([_.v(),_.I("design:type",Object)],dl.prototype,"scrollAction",void 0);_.c([_.v(),_.I("design:type",Object)],dl.prototype,"isEmojiDraftInProgress",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],dl.prototype,"emojiVariants",null);_.c([_.O("data","userSelection"),_.I("design:type",Object),_.I("design:paramtypes",[])],dl.prototype,"composedEmojiSelection",null);
_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[MouseEvent]),_.I("design:returntype")],dl.prototype,"onClick",null);_.c([_.Ga("data.emoji.multiSelectorThumbnailRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dl.prototype,"onMultiSelectorThumbnailRowChanged",null);_.c([_.O("data","userSelection","composedEmojiSelection"),_.I("design:type",String),_.I("design:paramtypes",[])],dl.prototype,"draftEmojiUrl",null);
_.c([_.ay({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],dl);
_.d(dl,"yt-emoji-multi-person-selector",function(){if(qJv===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;UwL===void 0&&(UwL=document.createElement("template"));var D=UwL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);qJv=G}G=qJv;return G},{mode:2});var ajU;var mww;var JW=function(){var G=_.p.apply(this,arguments)||this;G.tooltip_=null;return G};
_.r(JW,_.p);_.w=JW.prototype;_.w.dataChanged_=function(){var G;if((G=this.data)==null?0:G.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.IF(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.gK)(this.tooltip_).textContent=this.data.tooltip};
_.w.computeTargetId=function(){var G;return((G=this.data)==null?void 0:G.targetId)||""};
_.w.computeId_=function(G){return G};
_.w.computeIcon_=function(G){return _.xT(G)};
_.w.onTap_=function(){this.active=!this.active;_.cZ(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.w.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("active-changed",this.active))};
_.ZN.Object.defineProperties(JW.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var G,B;if((G=this.data)==null?0:(B=G.icon)==null?0:B.iconType)return this.data.icon.iconType==="SUPER_STICKER";var F,D;return((F=this.data)==null?void 0:(D=F.icon)==null?void 0:D.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
JW.prototype.activeChangedForBinding=JW.prototype.activeChangedForBinding;JW.prototype.dataChanged_=JW.prototype.dataChanged_;_.c([_.k(_.K4.YtLiveChatTooltipTargetingBehavior),_.I("design:type",Object)],JW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],JW.prototype,"data",void 0);_.c([_.v({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.I("design:type",String)],JW.prototype,"id",void 0);
_.c([_.v({computed:"computeTargetId(data.targetId)"}),_.I("design:type",String)],JW.prototype,"targetId",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],JW.prototype,"active",void 0);_.c([_.v({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.I("design:type",String)],JW.prototype,"icon",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JW.prototype,"dataChanged_",null);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],JW.prototype,"iconFilled",null);_.c([_.Ga("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JW.prototype,"activeChangedForBinding",null);_.c([_.ay({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],JW);
_.d(JW,"yt-emoji-picker-category-button-renderer",function(){if(mww===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ajU===void 0&&(ajU=document.createElement("template"));var D=ajU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);mww=G}G=mww;return G},{mode:2});var XyN;var QNq;var cj=function(){var G=_.p.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};G.JSC$14611_ignoreNextFocus_=!1;G.longPressTimeoutId=-1;return G};
_.r(cj,_.p);_.w=cj.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.w.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.Rh(),B=0;B<this.emoji.length;B++){var F={veType:88013,elementIndex:B},D=this.emoji[B];D.isCustomEmoji&&(D=document.querySelector(("#"+D.emojiId).replace("/","\\/")))&&(F=_.u4(G,F))&&(D.visualElement=F)}};
_.w.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.w.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.w.emojiSkinToneChanged_=function(G){this.skinTone=G};
_.w.dataChanged=function(){this.data&&this.data.emojiData&&lDy(this.emojiManager,this.data.emojiData)};
_.w.emojiUrl=function(G){G=this.getEmoji(G);if(!G)return"";var B;G=(B=G.image)==null?void 0:B.thumbnails;return _.Ax(G,24)||""};
_.w.emojiAlt=function(G){var B=this.get("image.accessibility.accessibilityData.label",G);return B?B:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.w.emojiAriaLabel=function(G){return G.shortcuts?G.shortcuts[0]:""};
_.w.emojiAriaSelected=function(G,B,F){return G&&F==B?"true":"false"};
_.w.getEmoji=function(G){if(this.emojiManager)return this.shouldUseStickyPreferences?qaN(this.emojiManager,G):L9(this.emojiManager,G)};
_.w.computeId_=function(G){return G.categoryId||""};
_.w.computeEmoji=function(G){var B=this;return this.emojiManager?G.emojiIds?G.emojiIds.map(function(F){return F?_.jC(B.emojiManager,F):null}).filter(BRL):G.emojiData?G.emojiData.map(function(F){var D=!!F.emojiId&&_.jC(B.emojiManager,F.emojiId);
return D?Object.assign({},D,F):null}).filter(BRL):[]:[]};
_.w.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.w.computeAriaLabel_=function(G){return _.zx(G)};
_.w.computeAriaActivedescendant_=function(G,B){return G&&G[B]?G[B].emojiId||"":""};
_.w.handleLongPressEmojiWithVariants=function(G,B){this.changeFocusToEmoji(G.emojiId,!1);this.openVariantSelector(G,B)};
_.w.onMouseDown=function(G){var B=this;this.hostElement!==document.activeElement&&(this.JSC$14611_ignoreNextFocus_=!0);if(G.button===0){var F=_.oF(G);if(F instanceof HTMLImageElement){var D=_.IF(this.hostElement).querySelector("#repeat").itemForElement(F);this.emojiContainsVariants(D)&&(this.longPressTimeoutId=setTimeout(function(){B.handleLongPressEmojiWithVariants(D,F)},500))}}};
_.w.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.w.onFocus=function(){this.JSC$14611_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14611_ignoreNextFocus_=!1};
_.w.onBlur_=function(){this.showFocus=!1};
_.w.emojiContainsVariants=function(G){return!!(G&&G.variantIds&&G.variantIds.length)};
_.w.onClick=function(G){clearTimeout(this.longPressTimeoutId);G=_.oF(G);if(G instanceof HTMLImageElement){var B=G.id;this.changeFocusToEmoji(B,!1);var F=this.getEmoji(B),D;if(D=this.shouldUseStickyPreferences&&this.emojiContainsVariants(F)){var u;D=!((u=this.emojiManager.emojiMap[B])!=null&&u.stickyPrefId)}D?(u=_.IF(this.hostElement).querySelector("#repeat").itemForElement(G),this.openVariantSelector(u,G)):_.cZ(this.hostElement,"yt-emoji-select",F)}};
_.w.isActiveEmojiWithVariants=function(G,B){return G&&B?B.stickyPrefId?G===B.stickyPrefId:G===B.emojiId:!1};
_.w.onCloseEmojiVariantSelector=function(G){this.activeEmojiWithVariantsId===G&&(this.activeEmojiWithVariantsId="")};
_.w.onMouseOver_=function(G){G=_.oF(G);G instanceof HTMLImageElement&&_.cZ(this.hostElement,"yt-emoji-hover",_.jC(this.emojiManager,G.id))};
_.w.changeFocus_=function(G,B){this.focusedIndex=(this.focusedIndex+G+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(G=this.emoji[this.focusedIndex],B&&(this.showFocus=!0,_.IF(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.cZ(this.hostElement,"yt-emoji-hover",G)))};
_.w.changeFocusToEmoji=function(G,B){if(G){var F=this.emoji.findIndex(function(D){return D.emojiId===G});
F!==-1&&this.changeFocus_(F-this.focusedIndex,B)}};
_.w.onKeyDown_=function(G){switch(G.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var B=this.emoji[this.focusedIndex];if(B&&B.emojiId){if(this.emojiContainsVariants(B)){var F=_.IF(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(B,F)}else _.cZ(this.hostElement,"yt-emoji-select",L9(this.emojiManager,B.emojiId)),this.hostElement.focus();G.preventDefault()}}break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),
G.preventDefault()}};
_.w.onEmojiStickyPreferenceChanged=function(G,B){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&G.emojiId&&G.variantIds&&G.variantIds.includes(B)&&this.activeEmojiWithVariantsId!==B&&this.setStickyEmojiPreference(G.emojiId,B)};
_.w.openVariantSelector=function(G,B){this.activeEmojiWithVariantsId=G.stickyPrefId||G.emojiId||"";_.cZ(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:G,target:B})};
_.w.setStickyEmojiPreference=function(G,B){if(this.data){var F=this.emoji.findIndex(function(u){return u.emojiId===G});
if(F!==-1){var D=this.emoji[F];D.stickyPrefId=B;this.set("emoji."+F,Object.assign({},D));this.activeEmojiWithVariantsId=B}}};
cj.prototype.onKeyDown_=cj.prototype.onKeyDown_;cj.prototype.onMouseOver_=cj.prototype.onMouseOver_;cj.prototype.onClick=cj.prototype.onClick;cj.prototype.onBlur_=cj.prototype.onBlur_;cj.prototype.onFocus=cj.prototype.onFocus;cj.prototype.onMouseUp=cj.prototype.onMouseUp;cj.prototype.onMouseDown=cj.prototype.onMouseDown;cj.prototype.dataChanged=cj.prototype.dataChanged;cj.prototype.disableIncrementalLoadingChanged_=cj.prototype.disableIncrementalLoadingChanged_;cj.prototype.emojiManagerChanged_=cj.prototype.emojiManagerChanged_;
cj.prototype.emojiChanged_=cj.prototype.emojiChanged_;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],cj.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cj.prototype,"data",void 0);_.c([_.v({computed:"computeId_(data)"}),_.I("design:type",String)],cj.prototype,"id",void 0);_.c([_.v({computed:"computeEmoji(data)"}),_.I("design:type",Array)],cj.prototype,"emoji",void 0);_.c([_.v(),_.I("design:type",Number)],cj.prototype,"skinTone",void 0);
_.c([_.v(),_.I("design:type",_.Q0)],cj.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",Boolean)],cj.prototype,"disableIncrementalLoading",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],cj.prototype,"focusedIndex",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],cj.prototype,"showFocus",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.I("design:type",Object)],cj.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.I("design:type",Object)],cj.prototype,"ariaActivedescendant",void 0);_.c([_.v({value:60}),_.I("design:type",Number)],cj.prototype,"domRepeatTargetFramerate",void 0);_.c([_.v({value:1}),_.I("design:type",Number)],cj.prototype,"domRepeatInitialCount",void 0);_.c([_.v({value:""}),_.I("design:type",String)],cj.prototype,"activeEmojiWithVariantsId",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],cj.prototype,"shouldUseStickyPreferences",void 0);_.c([_.Ga("emoji"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"emojiChanged_",null);_.c([_.Ga("emojiManager"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"emojiManagerChanged_",null);
_.c([_.Ga("disableIncrementalLoading"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"disableIncrementalLoadingChanged_",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"dataChanged",null);_.c([_.Pm("mousedown"),_.I("design:type",Function),_.I("design:paramtypes",[Object]),_.I("design:returntype")],cj.prototype,"onMouseDown",null);
_.c([_.Pm("mouseup"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"onMouseUp",null);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"onFocus",null);_.c([_.Pm("blur"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cj.prototype,"onBlur_",null);
_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],cj.prototype,"onClick",null);_.c([_.Pm("mouseover"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],cj.prototype,"onMouseOver_",null);_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],cj.prototype,"onKeyDown_",null);
_.c([_.ay({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],cj);
_.d(cj,"yt-emoji-picker-category-renderer",function(){if(QNq===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;XyN===void 0&&(XyN=document.createElement("template"));var D=XyN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);QNq=G}G=QNq;return G},{mode:2});var jNP;var Lfy;var rOa;var Wft;var Tj=function(){var G=_.p.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.getFormattedStringRawText=_.zx;G.JSC$14617_ignoreNextFocus_=!1;return G};
_.r(Tj,_.p);_.w=Tj.prototype;_.w.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")};
_.w.emojiUrl=function(G){var B,F;G=(B=L9(this.emojiManager,G,!0))==null?void 0:(F=B.image)==null?void 0:F.thumbnails;return _.Ax(G,24)||""};
_.w.emojiAlt=function(G){var B=this.get("image.accessibility.accessibilityData.label",G);return B?B:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.w.emojiId=function(G){return"emoji"+G};
_.w.computeId_=function(G){return G.categoryId||""};
_.w.computeAriaActivedescendant_=function(G){return this.emoji&&G<this.emoji.length?this.emojiId(G):""};
_.w.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.Rh(),B=0;B<this.emoji.length;B++){var F={veType:88013,elementIndex:B},D=this.emoji[B];D.isCustomEmoji&&(D=document.querySelector(("#"+D.emojiId).replace("/","\\/")))&&(F=_.u4(G,F))&&(D.visualElement=F)}};
_.w.computeEmoji_=function(G){var B=this;return this.emojiManager?G.emojiIds.map(function(F){return _.jC(B.emojiManager,F,!0)}).filter(iK8):[]};
_.w.titleOffsetChanged_=function(){var G=this.hostElement.getBoundingClientRect(),B=_.IF(this.hostElement).querySelector("#title").getBoundingClientRect();G=Math.max(0,Math.min(this.titleOffset,G.height-B.height));_.IF(this.hostElement).querySelector("#title").style.top=G+"px"};
_.w.onEmojiMouseOver_=function(G){_.cZ(this.hostElement,"yt-emoji-hover",G.model.item)};
_.w.onEmojiTap_=function(G){this.data.command&&(G=c_6(_.te().resolve(_.fH(ou)),this.data.command,G),_.cZ(this.hostElement,"yt-navigate",G))};
_.w.emojiAriaLabel=function(G){return G.shortcuts[0]};
_.w.emojiAriaSelected=function(G,B,F){return G&&F==B?"true":"false"};
_.w.changeFocus_=function(G,B){var F=this.emoji.length;this.focusedIndex=(this.focusedIndex+G+F)%F;G=this.emoji[this.focusedIndex];if(B){var D;(D=_.IF(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||D.scrollIntoView(!1);_.cZ(this.hostElement,"yt-emoji-hover",G)}};
_.w.onMouseDown_=function(){this.JSC$14617_ignoreNextFocus_=!0};
_.w.onFocus_=function(){this.JSC$14617_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14617_ignoreNextFocus_=!1};
_.w.onBlur_=function(){this.showFocus=!1};
_.w.onKeyDown_=function(G){switch(G.keyCode){case 13:this.onEmojiTap_(G);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),G.preventDefault()}};
Tj.prototype.onKeyDown_=Tj.prototype.onKeyDown_;Tj.prototype.onBlur_=Tj.prototype.onBlur_;Tj.prototype.onFocus_=Tj.prototype.onFocus_;Tj.prototype.onMouseDown_=Tj.prototype.onMouseDown_;Tj.prototype.onEmojiTap_=Tj.prototype.onEmojiTap_;Tj.prototype.titleOffsetChanged_=Tj.prototype.titleOffsetChanged_;Tj.prototype.emojiChanged_=Tj.prototype.emojiChanged_;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Tj.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Tj.prototype,"data",void 0);_.c([_.v({computed:"computeId_(data)"}),_.I("design:type",String)],Tj.prototype,"id",void 0);_.c([_.v({computed:"computeEmoji_(data)"}),_.I("design:type",Array)],Tj.prototype,"emoji",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Tj.prototype,"titleOffset",void 0);_.c([_.v({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.I("design:type",Object)],Tj.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.I("design:type",Object)],Tj.prototype,"ariaActivedescendant",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Tj.prototype,"showFocus",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Tj.prototype,"focusedIndex",void 0);_.c([_.v(),_.I("design:type",_.Q0)],Tj.prototype,"emojiManager",void 0);
_.c([_.Ga("emoji"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tj.prototype,"emojiChanged_",null);_.c([_.Ga("titleOffset"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tj.prototype,"titleOffsetChanged_",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Tj.prototype,"onEmojiTap_",null);
_.c([_.Pm("mousedown"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tj.prototype,"onMouseDown_",null);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tj.prototype,"onFocus_",null);_.c([_.Pm("blur"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tj.prototype,"onBlur_",null);
_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Tj.prototype,"onKeyDown_",null);_.c([_.ay({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Tj);
_.d(Tj,"yt-emoji-picker-upsell-category-renderer",function(){if(Wft===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;rOa===void 0&&(rOa=document.createElement("template"));var D=rOa;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Wft=G}G=Wft;return G},{mode:2});var HCv;var kyN;var I5=function(){var G=_.p.apply(this,arguments)||this;G.scrollAction="lock";G.verticalAlign="top";return G};
_.r(I5,_.p);_.w=I5.prototype;_.w.onClick=function(G){G=_.oF(G);G instanceof HTMLImageElement&&_.cZ(this.hostElement,"yt-emoji-select",_.jC(this.emojiManager,G.id))};
_.w.openSelector=function(){this.ironOverlayBehavior.open()};
_.w.onDomChange=function(){now(this.ytEmojiSelectorBehavior)};
_.w.computeIsFamilySelector=function(G){var B;return(G==null?void 0:(B=G.emoji)==null?void 0:B.emojiId)==="\ud83d\udc6a"};
_.w.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var G=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];G&&G.emojiId&&(_.cZ(this.hostElement,"yt-emoji-select",_.jC(this.emojiManager,G.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.ZN.Object.defineProperties(I5.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,B,F,D;return this.emojiManager&&((B=this.data)==null?0:(F=B.emoji)==null?0:(D=F.variantIds)==null?0:D.length)?this.data.emoji.variantIds.map(function(u){return!!u&&_.jC(G.emojiManager,u)}).filter(function(u){return!!u}):[]}}});
I5.prototype.onClick=I5.prototype.onClick;_.c([_.k(_.Lg),_.I("design:type",Object)],I5.prototype,"ironOverlayBehavior",void 0);_.c([_.k(lja),_.I("design:type",Object)],I5.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],I5.prototype,"data",void 0);_.c([_.v(),_.I("design:type",_.Q0)],I5.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",Object)],I5.prototype,"scrollAction",void 0);_.c([_.v(),_.I("design:type",Object)],I5.prototype,"verticalAlign",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.I("design:type",Boolean)],I5.prototype,"isFamilySelector",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],I5.prototype,"emojiVariants",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[MouseEvent]),_.I("design:returntype")],I5.prototype,"onClick",null);_.c([_.ay({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],I5);
_.d(I5,"yt-emoji-variant-selector",function(){if(kyN===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;HCv===void 0&&(HCv=document.createElement("template"));var D=HCv;F.call(B,D.content.cloneNode(!0),G.content.firstChild);kyN=G}G=kyN;return G},{mode:2});var OCU=/:/g,eCN=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],f9=function(){var G=_.p.apply(this,arguments)||this;G.emojiVariantSelector=null;G.emojiMultiPersonSelector=null;G.identity=_.oI;G.lastAnimationTime_=0;G.animationStart_=null;G.animationEnd_=null;return G};
_.r(f9,_.p);_.w=f9.prototype;
_.w.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}}};
_.w.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.rl)};
_.w.attached=function(){_.ST&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Ubt(this.emojiManager)};
_.w.dataChanged=function(){var G;if((G=this.data)==null?0:G.categories){G=this.emojiManager;var B=this.getCustomEmojiIds();G.pickerCustomEmojiIds=[].concat(_.gi(wWP),_.gi(B))}};
_.w.getCustomEmojiIds=function(){var G,B=(G=this.data.categories)==null?void 0:G.find(function(R){var N;return((N=R.emojiPickerCategoryRenderer)==null?void 0:N.categoryId)&&eCN.includes(R.emojiPickerCategoryRenderer.categoryId)}),F;
G=(F=this.data.categories)==null?void 0:F.find(function(R){return R.emojiPickerUpsellCategoryRenderer});
var D,u;return[B==null?void 0:(D=B.emojiPickerCategoryRenderer)==null?void 0:D.emojiIds,G==null?void 0:(u=G.emojiPickerUpsellCategoryRenderer)==null?void 0:u.emojiIds].flat().filter(function(R){return!!R})};
_.w.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.w.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.w.updateCategoriesAndPlaceholderInternal=function(G,B){var F=this;G&&B&&(this.categories=G.categories||[],this.categoryButtons=G.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Hc(function(){F.updateButtons_()}))};
_.w.computeId_=function(G){return G.id||""};
_.w.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(G){return G.emojiPickerCategoryRenderer&&G.emojiPickerCategoryRenderer.emojiData}):!1};
_.w.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.w.onShowEmojiVariantSelector=function(G){var B=G.detail.emojiData;B.variantIds&&B.variantIds.length&&(B.multiSelectorThumbnailRow&&B.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:B,target:G.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:B,target:G.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.w.onIronOverlayClosed=function(G){var B=qaN(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");B&&G.composedPath&&(G.composedPath().includes(_.IF(this.hostElement).querySelector("#emoji-variant-selector"))||G.composedPath().includes(_.IF(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.T1(this.hostElement,"yt-close-emoji-variant-selector",[B.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.w.onEmojiVariantSelectorMouseup=function(G){var B=G.target.firstChild;this.variantSelectorOpened&&B&&_.Hc(function(){B.noCancelOnOutsideClick=!1},100)};
_.w.onEmojiVariantSelectorMousedown=function(G){G=G.target.firstChild;this.variantSelectorOpened&&G&&(G.noCancelOnOutsideClick=!1)};
_.w.onSelectCategory_=function(G){var B=this.search!="";this.search="";for(var F=_.IF(this.hostElement).querySelector("#categories").children,D=0;D<F.length;D++){var u=F[D];if(u.id==G.detail.categoryId){B?(_.IF(this.hostElement).querySelector("#categories").scrollTop=u.offsetTop,this.updateButtons_()):(this.animationStart_=_.IF(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=u.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.w.onEmojiHover_=function(G){this.placeholder=G.detail.shortcuts?G.detail.shortcuts[0]:""};
_.w.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.w.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.w.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.w.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.w.computeSearchCategory_=function(G){G=G.replace(OCU,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();G=G.split(" ");for(var B=[],F=this.emojiManager.emojis,D=0;D<F.length;D++){var u=F[D];if(u.searchTerms)for(var R=0;R<u.searchTerms.length;R++){for(var N=u.searchTerms[R].toLocaleLowerCase(),y=!1,U=0;U<G.length;U++)if(N.indexOf(G[U])!=-1){y=!0;break}if(y&&(!u.isCustomEmoji||!u.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(u.emojiId))){B.push(u.emojiId);
break}}}return{categoryId:-1,emojiIds:B}};
_.w.computeSearchEmptyMessage_=function(G,B){return G&&B&&B.emojiIds&&B.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.w.computeSearching_=function(G){return this.emojiManager&&G.replace(OCU,"").length>1};
_.w.computeSkinToneHidden=function(){var G;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((G=this.data)==null||!G.hideSkinTonePicker)};
_.w.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.w.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.w.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.w.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.w.selectSkinTone_=function(G){G=Number(G.target.getAttribute("tone"));this.set("emojiManager.skinTone",G);_.T1(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[G]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.w.skinToneChanged_=function(){_.IF(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var G=_.IF(this.hostElement).querySelector("#dropdown-content").children,B=0;B<G.length;B++)B===this.skinTone?G[B].setAttribute("selected",""):G[B].removeAttribute("selected")};
_.w.animateScroll_=function(G){this.lastAnimationTime_||(this.lastAnimationTime_=G);G-=this.lastAnimationTime_;G<200?(_.IF(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*G/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.IF(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.w.searchChanged_=function(){this.updateButtons_()};
_.w.updateButtons_=function(){var G=null;if(!this.search)for(var B=_.IF(this.hostElement).querySelector("#categories").scrollTop,F=_.IF(this.hostElement).querySelector("#categories").children,D=0;D<F.length;D++){var u=F[D];u.offsetTop<=B&&(G=u.id)}B=_.IF(this.hostElement).querySelector("#category-buttons").children;for(F=0;F<B.length;F++)D=B[F],D.active=D.id===G};
f9.prototype.searchChanged_=f9.prototype.searchChanged_;f9.prototype.skinToneChanged_=f9.prototype.skinToneChanged_;f9.prototype.onEmojiHover_=f9.prototype.onEmojiHover_;f9.prototype.onSelectCategory_=f9.prototype.onSelectCategory_;f9.prototype.onShowEmojiVariantSelector=f9.prototype.onShowEmojiVariantSelector;f9.prototype.updateCategoriesAndPlaceholder_=f9.prototype.updateCategoriesAndPlaceholder_;f9.prototype.dataChanged=f9.prototype.dataChanged;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],f9.prototype,"data",void 0);_.c([_.v({value:function(){return[]}}),
_.I("design:type",Array)],f9.prototype,"categories",void 0);_.c([_.v({value:function(){return[]}}),
_.I("design:type",Array)],f9.prototype,"categoryButtons",void 0);_.c([_.v({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.I("design:type",Boolean)],f9.prototype,"disableScroll",void 0);_.c([_.v({computed:"computeId_(data)",reflectToAttribute:!0}),_.I("design:type",String)],f9.prototype,"id",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],f9.prototype,"selected",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],f9.prototype,"disableIncrementalLoading",void 0);_.c([_.v(),_.I("design:type",String)],f9.prototype,"placeholder",void 0);_.c([_.v({value:""}),_.I("design:type",String)],f9.prototype,"search",void 0);_.c([_.v({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.I("design:type",Boolean)],f9.prototype,"searching",void 0);_.c([_.v({computed:"computeSearchCategory_(search)"}),_.I("design:type",Object)],f9.prototype,"searchCategory",void 0);
_.c([_.v({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.I("design:type",Object)],f9.prototype,"searchEmptyMessage",void 0);_.c([_.v({computed:"identity(emojiManager.skinTone)"}),_.I("design:type",Number)],f9.prototype,"skinTone",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],f9.prototype,"skinToneOpened",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],f9.prototype,"variantSelectorOpened",void 0);
_.c([_.v({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.I("design:type",Boolean)],f9.prototype,"skinToneHidden",void 0);_.c([_.v(),_.I("design:type",_.Q0)],f9.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",Object)],f9.prototype,"emojiVariantSelector",void 0);_.c([_.v(),_.I("design:type",Object)],f9.prototype,"emojiMultiPersonSelector",void 0);
_.c([_.v({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.I("design:type",Boolean)],f9.prototype,"shouldUseStickyPreferences",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f9.prototype,"dataChanged",null);_.c([_.Ga("data","selected"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f9.prototype,"updateCategoriesAndPlaceholder_",null);
_.c([_.Pm("yt-show-emoji-variant-selector"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],f9.prototype,"onShowEmojiVariantSelector",null);_.c([_.Pm("yt-emoji-picker-select-category"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],f9.prototype,"onSelectCategory_",null);_.c([_.Pm("yt-emoji-hover"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],f9.prototype,"onEmojiHover_",null);
_.c([_.Ga("skinTone"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f9.prototype,"skinToneChanged_",null);_.c([_.Ga("search"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f9.prototype,"searchChanged_",null);_.c([_.ay({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],f9);
_.d(f9,"yt-emoji-picker-renderer",function(){if(Lfy===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;jNP===void 0&&(jNP=document.createElement("template"));var D=jNP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Lfy=G}G=Lfy;return G},{mode:2});var tW=function(){var G=_.p.apply(this,arguments)||this;G.emojiManager=_.rl;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.selectedIndex=1;G.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return G};
_.r(tW,_.p);_.w=tW.prototype;_.w.handleEmojiCustomizationVisible=function(G){this.emojiPickerRenderer.selected=G;this.selectedIndex=1;G?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.w.emojiCustomizationSetChanged=function(){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.sS(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.w.updateSaveButtonState=function(G){var B;(B=this.data)!=null&&B.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.wC("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:G}))};
_.w.emojiUrl=function(G){G=_.jC(this.emojiManager,G);if(!G)return"";var B;G=(B=G.image)==null?void 0:B.thumbnails;return _.Ax(G,24)||""};
_.w.emojiAlt=function(G){var B=_.jC(this.emojiManager,G);if(!B)return G;var F,D,u,R=(B==null?void 0:(F=B.image)==null?void 0:(D=F.accessibility)==null?void 0:(u=D.accessibilityData)==null?void 0:u.label)||"";return R?R:B.isCustomEmoji?B.shortcuts[0]:B.emojiId||G};
_.w.emojiAriaLabel=function(G){var B,F;return((B=_.jC(this.emojiManager,G))==null?void 0:(F=B.shortcuts)==null?void 0:F[0])||G};
_.w.onEmojiClick=function(G){G.model.index!==0&&(this.selectedIndex=G.model.index)};
_.w.onEmojiSelect=function(G){G=G.detail;var B,F;((B=this.data)==null?0:B.emojiCustomizationSetEntityKey)&&((F=this.emojiCustomizationSet)==null?0:F.emojiId)&&G.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.wC("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)}))};
_.w.canEditEmoji=function(G,B,F){G=G.indexOf(B);return G===F||G===0||F===0?!1:!0};
_.w.getUpdatedEmojiIdList=function(G,B,F){var D=G.indexOf(B);G=[].concat(_.gi(G));D>=0&&(G[D]=G[F]);G[F]=B;return G};
_.ZN.Object.defineProperties(tW,{template:{configurable:!0,enumerable:!0,get:function(){if(gns===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Zva===void 0&&(Zva=document.createElement("template"));var D=Zva;F.call(B,D.content.cloneNode(!0),G.content.firstChild);gns=G}G=gns;return G}}});
tW.prototype.onEmojiSelect=tW.prototype.onEmojiSelect;_.c([_.k(_.hi),_.I("design:type",Object)],tW.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.iA("yt-emoji-picker-renderer"),_.I("design:type",Object)],tW.prototype,"emojiPickerRenderer",void 0);
_.c([_.v({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(G,B){return _.g5(G.entities,"emojiCustomizationSetEntity",B)},
observer:"emojiCustomizationSetChanged"}),_.I("design:type",Object)],tW.prototype,"emojiCustomizationSet",void 0);_.c([_.v(),_.I("design:type",Object)],tW.prototype,"originalEmojiSet",void 0);_.c([_.v(),_.I("design:type",_.Q0)],tW.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",Object)],tW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tW.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",Object)],tW.prototype,"selectedIndex",void 0);
_.c([_.Pm("yt-emoji-select"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],tW.prototype,"onEmojiSelect",null);_.c([_.ay({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],tW);var $wP;var zCG;var bC8;var VXv;var Z7=function(){var G=_.p.apply(this,arguments)||this;G.authorBadges=[];return G};
_.r(Z7,_.p);_.w=Z7.prototype;_.w.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.w.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]]"}}}}}};
_.w.dataChanged=function(){var G=sdg(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",G)};
_.w.updateMessage=function(){var G=this.data.message,B=_.IF(_.IF(this.hostElement).querySelector("#message"));B.textContent="";G&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.w.shouldSupportWholeItemClick=function(){return!0};
_.w.onShowOriginalClick=function(G){G.preventDefault();this.showOriginal=!0};
_.w.computeShowBar=function(G,B,F){return G&&B||F};
_.w.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.w.computeAuthorIsOwner=function(G){return!!xrQ(G.authorBadges,"owner")};
_.w.computeAuthorNameColor=function(G){var B;if(_.X("live_chat_author_name_color_usernames")&&(G==null?0:(B=G.authorName)==null?0:B.simpleText))return _.Bcc(_.iaU(G.authorName.simpleText));if(_.X("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.Bcc(_.SI(G.authorSeedColorArgb));if(_.X("live_chat_colored_usernames"))return"#cc0000";var F;return _.X("live_chat_simple_color_usernames")&&(G==null?0:(F=G.authorName)==null?0:F.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.SI(G.authorUsernameColorDark):_.SI(G.authorUsernameColorLight):""};
Z7.prototype.updateMessage=Z7.prototype.updateMessage;Z7.prototype.dataChanged=Z7.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],Z7.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Z7.prototype,"data",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"showOriginal",void 0);_.c([_.v({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"isDimmed",void 0);_.c([_.v({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"showBar",void 0);
_.c([_.v({computed:"computeAuthorBadges(data)"}),_.I("design:type",Array)],Z7.prototype,"authorBadges",void 0);_.c([_.v({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"authorIsOwner",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"inCollapsedBanner",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"inBanner",void 0);
_.c([_.v({value:_.X("live_chat_hide_avatars"),reflectToAttribute:!0}),_.I("design:type",Boolean)],Z7.prototype,"avatarHidden",void 0);_.c([_.v({computed:"computeAuthorNameColor(data)"}),_.I("design:type",String)],Z7.prototype,"authorNameColor",void 0);_.c([_.v(),_.I("design:type",_.eC)],Z7.prototype,"participantsManager",void 0);_.c([_.v({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.I("design:type",Object)],Z7.prototype,"filledButtonOverrides",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z7.prototype,"dataChanged",null);_.c([_.Ga("data.message"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z7.prototype,"updateMessage",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Z7);
_.d(Z7,"yt-live-chat-text-message-renderer",function(){if(VXv===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;bC8===void 0&&(bC8=document.createElement("template"));var D=bC8;F.call(B,D.content.cloneNode(!0),G.content.firstChild);VXv=G}G=VXv;return G},{mode:0});var gl=function(){var G=_.p.apply(this,arguments)||this;G.tonalButtonOverrides={type:"tonal",style:"overlay"};return G};
_.r(gl,_.p);
gl.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]]"}}}}}};
gl.prototype.shouldSupportInlineActionButtons=function(){return!0};
gl.prototype.shouldSupportWholeItemClick=function(){return!0};
_.ZN.Object.defineProperties(gl.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],gl.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gl.prototype,"data",void 0);_.c([_.v(),_.I("design:type",_.eC)],gl.prototype,"participantsManager",void 0);
_.c([_.v(),_.I("design:type",Object)],gl.prototype,"tonalButtonOverrides",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.infoDialogButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],gl.prototype,"hasInfoDialogButton",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],gl);
_.d(gl,"yt-live-chat-auto-mod-message-renderer",function(){if(zCG===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;$wP===void 0&&($wP=document.createElement("template"));var D=$wP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);zCG=G}G=zCG;return G},{mode:0});var voP;var ooy;var MXt;var py7=function(){return _.p.apply(this,arguments)||this};
_.r(py7,_.p);_.c([_.v(),_.I("design:type",Object)],py7.prototype,"data",void 0);_.c([_.mC({is:"ytd-factoid-renderer",disableElementRegistration:!0})],py7);
_.d(py7,"ytd-factoid-renderer",function(){if(MXt!==void 0)return MXt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MXt=G},{mode:1});var SC=function(){return _.p.apply(this,arguments)||this};
_.r(SC,_.p);SC.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.c([_.v(),_.I("design:type",Object)],SC.prototype,"data",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],SC);
_.d(SC,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ooy===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;voP===void 0&&(voP=document.createElement("template"));var D=voP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ooy=G}G=ooy;return G},{mode:0});var YJL;var AOU;var se=function(){return _.p.apply(this,arguments)||this};
_.r(se,_.p);se.prototype.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Boolean)],se.prototype,"menuFocused",void 0);_.c([_.v(),_.I("design:type",Object)],se.prototype,"data",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],se.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],se);
_.d(se,"yt-live-chat-donation-announcement-renderer",function(){if(AOU===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;YJL===void 0&&(YJL=document.createElement("template"));var D=YJL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);AOU=G}G=AOU;return G},{mode:0});var dw7;var JOG,cOG=function(){if(JOG!==void 0)return JOG;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;dw7===void 0&&(dw7=document.createElement("template"));var D=dw7;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return JOG=G};var xY=function(){return _.p.apply(this,arguments)||this};
_.r(xY,_.p);_.ZN.Object.defineProperties(xY,{template:{configurable:!0,enumerable:!0,get:function(){return cOG()}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xY.prototype,"data",void 0);_.c([_.ay({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],xY);_.d(xY,"yt-live-chat-empty-feed-view-model",function(){return cOG()},{mode:0});var T9G;var IjT;var Pj=function(){return _.p.apply(this,arguments)||this};
_.r(Pj,_.p);Pj.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"}}}}}};
_.ZN.Object.defineProperties(Pj.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var G,B;return{runs:[{text:(G=this.data)==null?void 0:(B=G.channelName)==null?void 0:B.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var G=[],B;if((B=this.data)==null||!B.channelBadges)return G;var F;B=_.C((F=this.data)==null?void 0:F.channelBadges);for(F=B.next();!F.done;F=B.next()){F=_.Q(F.value,M0q);var D=void 0,u=void 0;if((D=F)==null?0:(u=D.badgeImage)==null?0:u.sources)D=void 0,u={liveChatAuthorBadgeRenderer:{tooltip:F.tooltip,accessibility:{accessibilityData:{label:(D=_.Q(F.rendererContext,_.yL))==null?void 0:D.label}}}},F.badgeImage.sources[0].clientResource?u.liveChatAuthorBadgeRenderer.icon=
{iconType:F.badgeImage.sources[0].clientResource.imageName}:u.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:F.badgeImage.sources},G.push(u)}return G}}});
_.c([_.v(),_.I("design:type",Object)],Pj.prototype,"data",void 0);_.c([_.O("data.channelName"),_.I("design:type",Object),_.I("design:paramtypes",[])],Pj.prototype,"channelName",null);_.c([_.O("data.channelBadges"),_.I("design:type",Array),_.I("design:paramtypes",[])],Pj.prototype,"channelBadges",null);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Pj);
_.d(Pj,"yt-live-chat-identity-view-model",function(){if(IjT===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;T9G===void 0&&(T9G=document.createElement("template"));var D=T9G;F.call(B,D.content.cloneNode(!0),G.content.firstChild);IjT=G}G=IjT;return G},{mode:0});var fja;var tXN;var ZCG;var goa;var Gi=function(){var G=_.p.apply(this,arguments)||this;G.hidden=!1;G.supportsInlineActionButtons=!0;return G};
_.r(Gi,_.p);Gi.prototype.ready=function(){var G;((G=document.querySelector("yt-live-chat-app"))==null?0:G.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Gi.prototype.dataChanged=function(G){var B=(0,_.gK)(_.IF(this.hostElement).querySelector("#detail-text"));B.textContent="";(G==null?0:G.detailText)&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G.detailText))};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],Gi.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({observer:"dataChanged"}),_.I("design:type",Object)],Gi.prototype,"data",void 0);
_.c([_.v({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.I("design:type",Object)],Gi.prototype,"hidden",void 0);_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Gi);
_.d(Gi,"yt-live-chat-legacy-paid-message-renderer",function(){if(goa===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ZCG===void 0&&(ZCG=document.createElement("template"));var D=ZCG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);goa=G}G=goa;return G},{mode:0});var SJs;var sNs;var xwv={},B9=function(){return _.DO.apply(this,arguments)||this};
_.r(B9,_.DO);B9.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
B9.prototype.onLiveChatMembershipItemBehaviorClick=B9.prototype.onLiveChatMembershipItemBehaviorClick;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],B9.prototype,"data",void 0);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],B9.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.c([_.uA()],B9);
xwv.YtLiveChatMembershipItemBehavior=[B9.prototype,_.g.YtRendererBehavior];var i3=function(){var G=_.p.apply(this,arguments)||this;G.supportsInlineActionButtons=!0;G.hasPrimaryHeaderText=!1;G.showOnlyHeader=!1;G.authorBadges=[];G.modern=_.X("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.r(i3,_.p);_.w=i3.prototype;_.w.shouldSupportInlineActionButtons=function(){return!0};
_.w.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.w.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.w.messageChanged=function(){var G=this.data.message,B=(0,_.gK)(_.IF(this.hostElement).querySelector("#message"));B.textContent="";G&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.w.computeHasPrimaryHeaderText=function(G){return!(!G||!G.headerPrimaryText)};
_.w.computeShowOnlyHeader=function(G,B){return this.isMessageEmpty(G,B)};
_.w.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.w.isMessageEmpty=function(G,B){return!G||G.empty?!0:!G.message&&!G.inputField&&!B};
_.w.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.w.getInputElement=function(){return _.IF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.w.inputFocus=function(){var G=this.getInputElement();G&&G.focus()};
_.w.inputInsertEmoji=function(G){var B=this.getInputElement();B&&B.insertEmoji(G)};
_.w.inputMessage=function(){var G=this.getInputElement();return G&&this.data.inputField?(G.completeEmojis(),_.re(G.liveChatRichMessageInput)):null};
_.w.onFooterButtonClick=function(){this.data.footerButton&&_.cZ(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.w.shouldSupportWholeItemClick=function(){return!0};
i3.prototype.isDeletedChanged=i3.prototype.isDeletedChanged;i3.prototype.messageChanged=i3.prototype.messageChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],i3.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(xwv.YtLiveChatMembershipItemBehavior),_.I("design:type",Object)],i3.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],i3.prototype,"data",void 0);_.c([_.v({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.I("design:type",Object)],i3.prototype,"hasPrimaryHeaderText",void 0);_.c([_.v({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.I("design:type",Object)],i3.prototype,"showOnlyHeader",void 0);
_.c([_.v({computed:"computeAuthorBadges(data)"}),_.I("design:type",Array)],i3.prototype,"authorBadges",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],i3.prototype,"modern",void 0);_.c([_.Ga("data.message"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],i3.prototype,"messageChanged",null);_.c([_.Ga("isDeleted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],i3.prototype,"isDeletedChanged",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],i3);
_.d(i3,"yt-live-chat-membership-item-renderer",function(){if(sNs===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;SJs===void 0&&(SJs=document.createElement("template"));var D=SJs;F.call(B,D.content.cloneNode(!0),G.content.firstChild);sNs=G}G=sNs;return G},{mode:0});var PjN;var GvN;var F6=function(){return _.p.apply(this,arguments)||this};
_.r(F6,_.p);F6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],F6.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],F6);
_.d(F6,"yt-live-chat-mode-change-message-renderer",function(){if(GvN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;PjN===void 0&&(PjN=document.createElement("template"));var D=PjN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);GvN=G}G=GvN;return G},{mode:0});var BR8;var iKN;var Ds=function(){return _.p.apply(this,arguments)||this};
_.r(Ds,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],Ds.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ds.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Ds);
_.d(Ds,"yt-live-chat-moderation-message-renderer",function(){if(iKN===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;BR8===void 0&&(BR8=document.createElement("template"));var D=BR8;F.call(B,D.content.cloneNode(!0),G.content.firstChild);iKN=G}G=iKN;return G},{mode:0});var F0U;var DlN;var u3=function(){return _.p.apply(this,arguments)||this};
_.r(u3,_.p);u3.prototype.onClick=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var B;_.Gm.instance.resolveCommand((B=this.data)==null?void 0:B.onClickCommand)}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],u3.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],u3.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],u3.prototype,"data",void 0);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],u3);
_.d(u3,"yt-live-chat-offer-click-count-message-renderer",function(){if(DlN===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;F0U===void 0&&(F0U=document.createElement("template"));var D=F0U;F.call(B,D.content.cloneNode(!0),G.content.firstChild);DlN=G}G=DlN;return G},{mode:0});var uU8;var Rby=function(){return _.p.apply(this,arguments)||this};
_.r(Rby,_.p);_.c([_.v(),_.I("design:type",Object)],Rby.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Rby);
_.d(Rby,"yt-live-chat-placeholder-item-renderer",function(){if(uU8===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);uU8=G}G=uU8;return G},{mode:0});var wA8;var Cqa;var NRq=new ew(7),RJ=function(){var G=_.p.apply(this,arguments)||this;G.data={};return G};
_.r(RJ,_.p);RJ.prototype.dataChanged=function(){var G;((G=this.data)==null?0:G.class)&&_.tV(this.hostElement,this.data.class,!0);var B;((B=this.oldData)==null?0:B.class)&&_.tV(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
RJ.prototype.computeTimestampString=function(G){return NRq.format(new Date(G/1E3))};
RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],RJ.prototype,"data",void 0);_.c([_.v({computed:"computeTimestampString(data.timestampUsec)"}),_.I("design:type",String)],RJ.prototype,"timestampString",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],RJ.prototype,"dataChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],RJ);
_.d(RJ,"yt-live-chat-server-error-message",function(){if(Cqa===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;wA8===void 0&&(wA8=document.createElement("template"));var D=wA8;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Cqa=G}G=Cqa;return G},{mode:0});var ypL;var ntv;var wA=function(){var G=_.p.apply(this,arguments)||this;G.defaultToFilledIcon=!1;return G};
_.r(wA,_.p);wA.prototype.computeHasPrimaryColorIcon=function(G){return G==="SPARK"||G==="SPONSORSHIP_STAR"};
wA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],wA.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wA.prototype,"defaultToFilledIcon",void 0);_.c([_.v(),_.I("design:type",Object)],wA.prototype,"data",void 0);
_.c([_.v({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.I("design:type",Boolean)],wA.prototype,"hasPrimaryColorIcon",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],wA);
_.d(wA,"yt-live-chat-viewer-engagement-message-renderer",function(){if(ntv===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ypL===void 0&&(ypL=document.createElement("template"));var D=ypL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ntv=G}G=ntv;return G},{mode:0});var lmN;var C3=function(){var G=_.p.apply(this,arguments)||this;G.modernUpdate=!1;G.buttonStyle="overlay";G.buttonType="filled";return G};
_.r(C3,_.p);C3.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
C3.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],C3.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],C3.prototype,"modernUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],C3.prototype,"buttonStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],C3.prototype,"buttonType",void 0);
_.c([_.mC({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],C3);
_.d(C3,"ytd-ad-hover-text-button-renderer",function(){if(lmN!==void 0)return lmN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return lmN=G},{mode:1});var Ulq;var Nv=function(){var G=_.p.apply(this,arguments)||this;G.buttonOverrides={size:"XS"};return G};
_.r(Nv,_.p);Nv.prototype.onHelpTap=function(G){this.data&&this.data.informationDialog&&(_.cZ(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),G.preventDefault(),G.stopPropagation())};
_.c([_.v(),_.I("design:type",Object)],Nv.prototype,"buttonOverrides",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Nv.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Nv);
_.d(Nv,"ytd-live-chat-purchased-product-message-renderer",function(){if(Ulq!==void 0)return Ulq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Ulq=G},{mode:1});var qnT;var EtP;var yj=function(){var G=_.p.apply(this,arguments)||this;G.isContainerDeleted=!1;return G};
_.r(yj,_.p);yj.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
yj.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))};
yj.prototype.isContainerDeletedChanged=yj.prototype.isContainerDeletedChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],yj.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yj.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],yj.prototype,"isContainerDeleted",void 0);
_.c([_.v(),_.I("design:type",String)],yj.prototype,"deletedStateMessage",void 0);_.c([_.Ga("isContainerDeleted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yj.prototype,"isContainerDeletedChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],yj);
_.d(yj,"ytd-sponsorships-live-chat-header-renderer",function(){if(EtP!==void 0)return EtP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return EtP=G},{mode:1});var n3=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.r(n3,_.p);n3.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]]"}}}}}};
n3.prototype.onCtaButtonClick=function(){var G,B=_.Q((G=this.data)==null?void 0:G.optInPrompt,_.Xq);if(G=this.maybeGetButtonCommand(B)){var F;(F=_.Rh())==null||F.clickCommand(G)}};
n3.prototype.maybeGetButtonCommand=function(G){return!G||!G.command||_.Q(G.command,L7T)===void 0&&_.Q(G.command,jJs)===void 0?null:G.command};
n3.prototype.shouldHideOptinPrompt=function(G,B){return!G||B};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],n3.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],n3.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],n3.prototype,"modern",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],n3);
_.d(n3,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(qnT!==void 0)return qnT;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return qnT=G},{mode:1});var hbP;var l3=function(){return _.p.apply(this,arguments)||this};
_.r(l3,_.p);l3.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
l3.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))};
l3.prototype.isDeletedChanged=l3.prototype.isDeletedChanged;_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],l3.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],l3.prototype,"data",void 0);_.c([_.Ga("isDeleted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],l3.prototype,"isDeletedChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],l3);
_.d(l3,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(hbP!==void 0)return hbP;var G=document.createElement("template");_.H(G,'\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="star_circle_ribbon" 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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return hbP=G},{mode:1});var U5=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return G};
_.r(U5,_.p);_.w=U5.prototype;
_.w.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"}}}};
_.w.handleLiveChatAction=function(G){_.Q(G,D_G)?this.handleMarkChatItemAsDeletedAction(_.Q(G,D_G)):_.Q(G,F9N)&&this.handleRemoveChatItemAction(_.Q(G,F9N))};
_.w.handleLiveChatActions=function(G){G.forEach(this.handleLiveChatAction,this)};
_.w.handleMarkChatItemAsDeletedAction=function(G){var B=this,F;((F=this.data)==null?0:F.items)&&this.data.items.forEach(function(D,u){var R=Object.keys(D)[0];Object.values(D)[0].id===G.targetItemId&&B.markAsDeleted("data.items",u,R,G.deletedStateMessage,G.showOriginalContentMessage)})};
_.w.handleRemoveChatItemAction=function(G){var B=this,F;((F=this.data)==null?0:F.items)&&this.data.items.forEach(function(D,u){Object.values(D)[0].id===G.targetItemId&&B.splice("data.items",u,1)})};
_.w.markAsDeleted=function(G,B,F,D,u){G=[G,B,F].join(".");this.set(G+".deletedStateMessage",D);this.set(G+".showOriginalContentMessage",u)};
_.c([_.v(),_.I("design:type",Object)],U5.prototype,"data",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],U5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],U5);
_.d(U5,"yt-live-chat-item-display-list-renderer",function(){if(tXN===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;fja===void 0&&(fja=document.createElement("template"));var D=fja;F.call(B,D.content.cloneNode(!0),G.content.firstChild);tXN=G}G=tXN;return G},{mode:0});var K0w;var amw,ml8=function(){if(amw!==void 0)return amw;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;K0w===void 0&&(K0w=document.createElement("template"));var D=K0w;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return amw=G};var qv=function(){var G=_.p.apply(this,arguments)||this;G.isHeader=!1;return G};
_.r(qv,_.p);qv.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.ZN.Object.defineProperties(qv,{template:{configurable:!0,enumerable:!0,get:function(){return ml8()}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qv.prototype,"isHeader",void 0);_.c([_.ay({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],qv);_.d(qv,"yt-live-chat-item-display-renderer",function(){return ml8()},{mode:0});var XAU,QlG,HKT,W0q;
XAU={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}};QlG={home:"eohps",search:"eosps",watch:"eowps"};_.jl7=["watch","search","home"];
_.E5=function(){this.JSC$14728_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14728_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.v5("PRECONSTRUCTION_DELAY",0);this.signals_=_.kl();this.targetPage_=""};
_.E5.prototype.init=function(G,B){G=G===void 0?"":G;B=B===void 0?null:B;if(this.JSC$14728_isInitialized_)this.abort();else if(this.JSC$14728_isInitialized_=!0,G&&_.L0T(this,G),B){var F=_.Oc(this.signals_,"pcl")?0:10,D=function(){for(var u=0,R;R=_.jl7[u++];)R!=G&&R!=B&&this.pendingPages_.push(R);_.rp7(this)}.bind(this);
this.signals_.parkOrScheduleJob(D,F,"pcl")}};
_.E5.prototype.abort=function(){this.fragmentJobId_&&(_.Lu.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);W0q(this)};
_.L0T=function(G,B){G.JSC$14728_isInitialized_&&!G.targetPage_&&(G.targetPage_=B,HKT(G,B),G.isInitialPass_=!1,HKT(G,B),G.signals_.processSignal(QlG[G.targetPage_]),W0q(G),_.rp7(G))};
_.rp7=function(G){G.pendingPages_.length&&!G.pagePreparerJobId_&&(G.pagePreparerJobId_=_.mX(_.Lu,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.L0T(this,this.pendingPages_.shift())}.bind(G),G.DEFAULT_DELAY_))};
HKT=function(G,B){if(B=XAU[B])for(var F in B){var D=!1,u=F;F.charAt(0)=="~"&&(D=!0,u=F.substring(1));var R=B[F];R=typeof R=="object"?R:{count:R};B[F]=R;R.componentName=u;R.count>0&&(G.isInitialPass_?D||G.isSeenDuringInitialPass_[u]||(G.JSC$14728_queue_.push({componentName:u,count:1,signals:R.signals}),G.isSeenDuringInitialPass_[u]=!0,R.count--):G.JSC$14728_queue_.push(R))}};
W0q=function(G){G.JSC$14728_queue_.length=0;G.targetPage_="";G.isInitialPass_=!0;G.signals_.processSignal("eop")};
_.E5.getInstance=function(){return _.IG(_.E5)};var kvU=function(){this.signals=_.kl();this.init()};
kvU.prototype.startPreconstruction=function(){_.E5.getInstance().init(_.on("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
kvU.prototype.init=function(){OK7(this);window.Polymer&&Ts7&&gh6();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var G=_.Fz.ytcsi;if(G&&G.gt&&(G=G.gt())&&G.tick&&(G.tick.aft>0||G.tick.pbs>0)&&(_.on("IS_HOMEPAGE_COLD")||_.on("IS_RESULTS_PAGE_COLD")||_.on("IS_WATCH_PAGE_COLD"))){ebw(this);break a}KCc(tj8,this.onNotifications,this)}};
var OK7=function(G){var B=function(){G.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ae(Error("uh"),"WARNING"),B()):_.fes(window,"load",B)};
kvU.prototype.onNotifications=function(G){G.timer||(_.on("IS_HOMEPAGE_COLD")||_.on("IS_RESULTS_PAGE_COLD")||_.on("IS_WATCH_PAGE_COLD"))&&ebw(this)};
var ebw=function(G){G.signals.parkOrScheduleJob(function(){G.signals.processSignal("eocs")},10,"eor")};
new kvU;var $lP=function(){return _.DO.apply(this,arguments)||this};
_.r($lP,_.DO);_.ZN.Object.defineProperties($lP.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_entity_store_from_dependency_injection")?_.oy():_.VU()}}});
_.c([_.uA()],$lP);_.hf=[Nu.prototype,$lP.prototype];var zbw=["ytd-rich-shelf-renderer"],K3=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;G.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";G.followUpDialogPromise=null;G.followUpDialogPromiseResolve=null;G.followUpDialogPromiseReject=null;return G};
_.r(K3,_.DO);_.w=K3.prototype;_.w.dismissibleItemIsDismissedChanged_=function(G){_.X("kevlar_fluid_dismiss")&&(G?_.cZ(this.hostElement,"yt-dismissible-item-dismissed"):_.cZ(this.hostElement,"yt-dismissible-item-undismissed"))};
_.w.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.w.dismissibleItemReset_=function(){var G=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 _.DS(function(B,F){G.followUpDialogPromiseResolve=B;G.followUpDialogPromiseReject=F});
_.cZ(this.hostElement,"yt-enable-lockup-interaction")};
_.w.dismissibleItemOnYtServiceRequestSent_=function(G,B){B.actions&&this.dismissibleItemProcessActions(B.actions,G)};
_.w.dismissibleItemOnRequestSent=function(G){for(var B=_.C(G.detail),F=B.next();!F.done;F=B.next()){var D=void 0;(F=(D=_.Q(F.value,_.sw))==null?void 0:D.actions)&&this.dismissibleItemProcessActions(F,G)}};
_.w.dismissibleItemOnCommandSent=function(G,B){B&&this.dismissibleItemProcessActions(B,G)};
_.w.setAndGetDismissedContentId=function(G){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+G};
_.w.replayDismissAction=function(G){this.dismissibleItemProcessActions([G])};
_.w.dismissibleItemProcessActions=function(G,B){for(var F=0;F<G.length;F++){var D=G[F],u=void 0;((u=_.Q(D,_.gs))==null?0:u.commands)&&this.dismissibleItemProcessActions(_.Q(D,_.gs).commands,B);if(_.Q(D,_.GV)){if(u=_.Q(D,_.GV),!u.replaceParentSection||zbw.includes(this.hostElement.nodeName.toLowerCase()))u.groupDismissal&&F0J(this,u.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(u),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wC("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:D})),D=void 0,(D=B)==null||D.stopPropagation()}else if(_.Q(D,ZBP))this.dismissibleItemHandleHideEnclosingAction_(),D=void 0,(D=B)==null||D.stopPropagation();else if(_.Q(D,j3w))D=_.Q(D,j3w),u=void 0,((u=D)==null?0:u.targetGroupId)&&F0J(this,{targetGroupId:D.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wC("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
D=void 0,(D=B)==null||D.stopPropagation();else if(_.Q(D,_.sw))(D=_.Q(D,_.sw).actions)&&_.tL(this.hostElement,D,this.hostElement),D=void 0,(D=B)==null||D.stopPropagation();else{var R=u=void 0;((u=_.Q(D,_.v$))==null?void 0:u.signal)!=="TELL_US_WHY"||((R=_.Q(D,_.v$))==null?0:R.targetId)&&_.X("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),D=void 0,(D=B)==null||D.stopPropagation())}}};
_.w.dismissibleItemOnYtServiceRequestCompleted_=function(G,B){var F=this.get("feedbackResponses.0.followUpDialog",B.data);F?this.followUpDialogPromiseResolve(F):B.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(B.actions,G)};
_.w.dismissibleItemHandleReplaceEnclosingAction_=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0;var B=null;(B=_.IF(this.hostElement).querySelector("#dismissed"))&&_.ft(this,function(){_.Jo(B)});
_.cZ(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.w.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.w.dismissibleItemHandleUndoFeedbackAction_=function(){_.cZ(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.w.dismissibleItemHandleTellUsWhySignalAction_=function(){var G=this;this.followUpDialogPromise.then(function(B){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:B}})})};
K3.prototype.dismissibleItemOnYtServiceRequestCompleted_=K3.prototype.dismissibleItemOnYtServiceRequestCompleted_;K3.prototype.dismissibleItemOnCommandSent=K3.prototype.dismissibleItemOnCommandSent;K3.prototype.dismissibleItemOnRequestSent=K3.prototype.dismissibleItemOnRequestSent;K3.prototype.dismissibleItemOnYtServiceRequestSent_=K3.prototype.dismissibleItemOnYtServiceRequestSent_;K3.prototype.dismissibleItemDataChanged_=K3.prototype.dismissibleItemDataChanged_;
K3.prototype.dismissibleItemIsDismissedChanged_=K3.prototype.dismissibleItemIsDismissedChanged_;_.c([_.k(_.vj),_.I("design:type",Object)],K3.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],K3.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],K3.prototype,"isDismissed",void 0);_.c([_.v(),_.I("design:type",Object)],K3.prototype,"dismissedRenderer",void 0);
_.c([_.Ga("isDismissed"),_.I("design:type",Function),_.I("design:paramtypes",[Boolean]),_.I("design:returntype")],K3.prototype,"dismissibleItemIsDismissedChanged_",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],K3.prototype,"dismissibleItemDataChanged_",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],K3.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.c([_.Pm("yt-service-request-sent-button-renderer"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],K3.prototype,"dismissibleItemOnRequestSent",null);
_.c([_.Pm("yt-dismissible-item-action"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Array]),_.I("design:returntype")],K3.prototype,"dismissibleItemOnCommandSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],K3.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.c([_.uA()],K3);_.aJ=[_.vj,_.hf,K3.prototype];var m7=function(){var G=_.DO.apply(this,arguments)||this;G.disableGridStateAware=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};G.currentGridClass="";return G};
_.r(m7,_.DO);m7.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.ft(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var G=this.gridStateAwareGetElement();_.tV(G,"grid",!0)}};
m7.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
m7.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.IF(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
m7.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var G="grid-disabled";else{G=_.TS.getInstance();var B=this.get("pageSubtype");G=B&&Mcq.includes(B)?"grid-disabled":G.currentSnapState_?G.currentSnapState_.className:null}(B=this.gridStateAwareGetElement())&&G!==this.currentGridClass&&(G&&_.tV(B,G,!0),this.currentGridClass&&_.tV(B,this.currentGridClass,!1),this.currentGridClass=G)};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],m7.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",String)],m7.prototype,"gridStateAwareSizingElementSelector",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],m7.prototype,"disableGridStateAware",void 0);_.c([_.uA()],m7);_.X6=[m7.prototype,_.Za.YtActionHandlerBehavior];_.Qj=new _.oV("GUIDE_TOKEN");var L3;_.jp={};L3=function(){var G=_.DO.apply(this,arguments)||this;G.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 G};
_.r(L3,_.DO);_.w=L3.prototype;_.w.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.w.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var G=_.te().resolve(_.fH(_.Qj));G&&(this.guidePersistentAndVisible=G.getGuidePersistentAndVisible(),this.activeEndpoint=G.getActiveEndpoint(),this.guideOpened=G.getGuideOpened(),this.miniGuideVisible=G.getMiniGuideVisible())};
_.w.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.w.handleGuideStateAction=function(G){this.guidePersistentAndVisible=G};
_.w.handleMiniGuideStateAction=function(G){this.miniGuideVisible=G};
_.w.handleGuideOpenedAction=function(G){this.guideOpened=G};
_.w.handleActiveEndpointAction=function(G){this.activeEndpoint=G};
L3.prototype.onActiveEndpointChange=L3.prototype.onActiveEndpointChange;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],L3.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],L3.prototype,"guidePersistentAndVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],L3.prototype,"miniGuideVisible",void 0);_.c([_.v(),_.I("design:type",Object)],L3.prototype,"activeEndpoint",void 0);
_.c([_.Ga("activeEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],L3.prototype,"onActiveEndpointChange",null);_.c([_.v(),_.I("design:type",Boolean)],L3.prototype,"guideOpened",void 0);_.c([_.uA()],L3);_.jp.YtdGuideStateAwareBehavior=[];_.jp.YtdGuideStateAwareBehavior.push(L3.prototype,_.Za.YtActionHandlerBehavior);var bKs=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],rA=function(){var G=_.DO.apply(this,arguments)||this;G.hoverJobId=0;G.JSC$14755_touched=!1;return G};
_.r(rA,_.DO);_.w=rA.prototype;_.w.created=function(){this.useExpandableTooltip=!bKs.includes(this.is)};
_.w.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.w.detached=function(){this.useExpandableTooltip=!1};
_.w.lockupOnDown=function(G){this.interactionElement&&!_.oQ(_.VW(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.w.lockupOnUp=function(G){this.interactionElement&&!_.oQ(_.VW(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.w.onTouchStart=function(){this.JSC$14755_touched=!0};
_.w.lockupOnMouseEnter=function(){var G=this,B=_.sD("kevlar_lockup_hover_delay",-1);this.JSC$14755_touched&&B>=0?(_.Lu.cancelJob(this.hoverJobId),this.hoverJobId=_.Lu.addJob(function(){G.lockupIsHovered=!0},8,B),this.JSC$14755_touched=!1):this.lockupIsHovered=!0};
_.w.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Lu.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.w.lockupOnPopupClosed=function(G,B){var F;((F=B.popupRenderer)==null?void 0:F.is)==="ytd-menu-popup-renderer"&&(G=B.popupRenderer.veData,B=_.qW(),G&&B&&_.eD(B,[G]))};
_.w.lockupOnLockupRequested=function(G){var B=G.detail.videoIds[0],F;G.detail&&B===((F=this.data)==null?void 0:F.videoId)&&(G.detail.returnValue=[this.data])};
_.w.lockupOnYtServiceRequestSent=function(G,B){if(G=B.actions)for(var F=0;F<G.length;F++){var D=G[F];if(D.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&B.ajaxPromise){var u=void 0,R=(u=_.Q(B.endpoint,_.KV))==null?void 0:u.playlistId;u=void 0;D=(u=D.removedVideoId)!=null?u:"";CtP(_.$l(),D,R)}else D.action==="ACTION_REMOVE_VIDEO"&&B.ajaxPromise&&(R=void 0,D=(R=D.setVideoId)!=null?R:"",_.Nvq(_.$l(),D))}};
_.w.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.w.lockupOnLockupEnabled=function(){if(!this.$){var G=_.te().resolve(_.pA).getCurrentPage(),B=this.getParentRenderer?this.getParentRenderer():void 0;_.em(new _.Uf("component not ready",this.is,this.isAttached,G==null?void 0:G.is,B==null?void 0:B.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
rA.prototype.lockupOnLockupEnabled=rA.prototype.lockupOnLockupEnabled;rA.prototype.lockupOnLockupDisabled=rA.prototype.lockupOnLockupDisabled;rA.prototype.lockupOnYtServiceRequestSent=rA.prototype.lockupOnYtServiceRequestSent;rA.prototype.lockupOnLockupRequested=rA.prototype.lockupOnLockupRequested;rA.prototype.lockupOnPopupClosed=rA.prototype.lockupOnPopupClosed;rA.prototype.lockupOnMouseLeave=rA.prototype.lockupOnMouseLeave;rA.prototype.lockupOnMouseEnter=rA.prototype.lockupOnMouseEnter;
rA.prototype.onTouchStart=rA.prototype.onTouchStart;rA.prototype.lockupOnUp=rA.prototype.lockupOnUp;rA.prototype.lockupOnDown=rA.prototype.lockupOnDown;_.c([_.v(),_.I("design:type",Object)],rA.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],rA.prototype,"lockupIsHovered",void 0);_.c([_.v(),_.I("design:type",Boolean)],rA.prototype,"lockupTouchTriggered",void 0);_.c([_.v(),_.I("design:type",Boolean)],rA.prototype,"useExpandableTooltip",void 0);
_.c([_.iA("#interaction"),_.I("design:type",Object)],rA.prototype,"interactionElement",void 0);_.c([_.Pm("down"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],rA.prototype,"lockupOnDown",null);_.c([_.Pm("up"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],rA.prototype,"lockupOnUp",null);
_.c([_.Pm("touchstart"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rA.prototype,"onTouchStart",null);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rA.prototype,"lockupOnMouseEnter",null);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rA.prototype,"lockupOnMouseLeave",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],rA.prototype,"lockupOnPopupClosed",null);_.c([_.Pm("yt-lockup-requested"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],rA.prototype,"lockupOnLockupRequested",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],rA.prototype,"lockupOnYtServiceRequestSent",null);_.c([_.Pm("yt-disable-lockup-interaction"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rA.prototype,"lockupOnLockupDisabled",null);
_.c([_.Pm("yt-enable-lockup-interaction"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rA.prototype,"lockupOnLockupEnabled",null);_.c([_.uA()],rA);_.W9=[rA.prototype];_.VkG={YtdReduxBehavior:[]};_.VkG.YtdReduxBehavior.push.apply(_.VkG.YtdReduxBehavior,_.hf);var H9=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;G.disableNowPlaying=!1;G.disableTooltips=!1;G.useHoveredProperty=!1;G.hovered=!1;G.isThumbnailHovered_=!1;G.addBackground=_.X("kevlar_thumbnail_bg");G.nowPlaying=!1;G.disableRounding=!1;G.size="small";return G};
_.r(H9,_.DO);_.w=H9.prototype;_.w.computeThumbnailOverlaySidePanelWidth_=function(G,B){return G-B};
_.w.computeSize=function(G,B){if(!this.disableRounding){if(!G&&!B)return"small";G=Math.max(G||0,B||0);return G>=256?"large":G>=96?"medium":"small"}};
_.w.computeFinalHoveredState_=function(G,B,F){return this.nowPlaying?!1:_.X("kevlar_thumbnail_fluid")&&G?B:F};
_.w.computeHoverOverlays_=function(G,B){return G&&B?B:void 0};
_.w.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.w.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.w.checkMiniplayer_=function(){var G;if(((G=this.data)==null?0:G.playlistSetVideoId)&&_.X("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{G=_.Bv();var B=G.currentEndpoint;!this.disableNowPlaying&&B&&_.Q(B,_.Ow)&&this.data?(B=_.Q(B,_.Ow),this.nowPlaying=this.data.playlistId?B.playlistId===this.data.playlistId:B.videoId===this.data.videoId,this.isVideoPlaying=G==null?void 0:G.isVideoPlaying):this.nowPlaying=!1}};
H9.prototype.checkMiniplayer_=H9.prototype.checkMiniplayer_;H9.prototype.onMouseLeave_=H9.prototype.onMouseLeave_;H9.prototype.onMouseEnter_=H9.prototype.onMouseEnter_;H9.prototype.computeHoverOverlays_=H9.prototype.computeHoverOverlays_;H9.prototype.computeFinalHoveredState_=H9.prototype.computeFinalHoveredState_;H9.prototype.computeSize=H9.prototype.computeSize;H9.prototype.computeThumbnailOverlaySidePanelWidth_=H9.prototype.computeThumbnailOverlaySidePanelWidth_;
_.c([_.k(_.hf),_.I("design:type",Object)],H9.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],H9.prototype,"height",void 0);_.c([_.v(),_.I("design:type",Boolean)],H9.prototype,"bottomSidePanel",void 0);_.c([_.v(),_.I("design:type",Number)],H9.prototype,"width",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"disableNowPlaying",void 0);
_.c([_.v({selector:_.hc}),_.I("design:type",Boolean)],H9.prototype,"miniplayerIsActive",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"disableTooltips",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"useHoveredProperty",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"hovered",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"isThumbnailHovered_",void 0);
_.c([_.v({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.I("design:type",Boolean)],H9.prototype,"finalHoveredState_",void 0);_.c([_.v({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.I("design:type",Number)],H9.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H9.prototype,"addBackground",void 0);
_.c([_.v({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.I("design:type",Object)],H9.prototype,"hoverOverlays_",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H9.prototype,"nowPlaying",void 0);_.c([_.v(),_.I("design:type",Boolean)],H9.prototype,"isVideoPlaying",void 0);_.c([_.v(),_.I("design:type",Object)],H9.prototype,"disableRounding",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.I("design:type",Object)],H9.prototype,"size",void 0);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H9.prototype,"onMouseEnter_",null);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H9.prototype,"onMouseLeave_",null);
_.c([_.Ga("data","disableNowPlaying","miniplayerIsActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H9.prototype,"checkMiniplayer_",null);_.c([_.uA()],H9);var vtq=[H9.prototype];_.kV={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(G,B){return G+":"+_.S8(B)},
getPlayerListener_:function(G,B,F){G=this.getPlayerListenerKey_(G,B);B=this.playerListeners_.get(G);F&&this.playerListeners_.delete(G);return B},
savePlayerListener_:function(G,B){var F=B.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(G,B),F);return F},
listenToPlayerEvent:function(G,B,F){F=this.savePlayerListener_(B,F);G.addEventListener(B,F)},
listenToPlayerEvents:function(G,B){B.forEach(function(F,D){this.listenToPlayerEvent(G,D,F)}.bind(this))},
unlistenFromPlayerEvent:function(G,B,F){F=this.getPlayerListener_(B,F,!0);G.removeEventListener(B,F)},
unlistenFromPlayerEvents:function(G,B){B.forEach(function(F,D){this.unlistenFromPlayerEvent(G,D,F)}.bind(this))}}};
_.O5=function(){};_.ot7=new _.oV("PLAYER_API_TOKEN");var wAL=!1,ntM,NRc=!1,UlI;var cI=function(G,B,F,D,u){_.uz.call(this);var R=this;this.playerId=B;this.webPlayerContextConfig=D;this.cfA=u;this.x1s=!1;this.api={};this.lmb=this.ltJ=null;this.dC9=new _.RY;this.i6={};this.mym=this.sdX=this.elementId=this.blp=this.config=null;this.y3a=!1;this.g6=this.y5z=null;this.eVb={};this.eYd=["onReady"];this.lastError=null;this.zQE=NaN;this.lo7={};this.h0X=0;this.qP=this.targetElement=G;_.gq(this,this.dC9);MkU(this);F?this.h0X=setTimeout(function(){R.loadNewVideoConfig(F)},0):D&&(pA7(this),
YnU(this))};
_.r(cI,_.uz);cI.prototype.getId=function(){return this.playerId};
cI.prototype.loadNewVideoConfig=function(G){if(!this.isDisposed()){this.h0X&&(clearTimeout(this.h0X),this.h0X=0);var B=G||{};B instanceof EhU||(B=new EhU(B));this.config=B;this.setConfig(G);YnU(this);this.isReady()&&ApP(this)}};
var pA7=function(G){var B;G.webPlayerContextConfig?B=G.webPlayerContextConfig.rootElementId:B=G.config.attrs.id;G.elementId=B||G.elementId;G.elementId==="video-player"&&(G.elementId=G.playerId,G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.playerId:G.config.attrs.id=G.playerId);var F;((F=G.qP)==null?void 0:F.id)===G.elementId&&(G.elementId+="-player",G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.elementId:G.config.attrs.id=G.elementId)};
cI.prototype.setConfig=function(G){this.blp=G;this.config=dls(G);pA7(this);if(!this.sdX){var B;this.sdX=JpN(this,((B=this.config.args)==null?void 0:B.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var F;if((F=this.config)==null?0:F.attrs)G=this.config.attrs,(B=G.width)&&this.qP&&(this.qP.style.width=$W(Number(B)||B,!0)),(G=G.height)&&this.qP&&(this.qP.style.height=$W(Number(G)||G,!0))};
cI.prototype.getConfig=function(){return this.blp};
var ApP=function(G){if(G.config&&G.config.loaded!==!0)if(G.config.loaded=!0,!G.config.args||G.config.args.autoplay!=="0"&&G.config.args.autoplay!==0&&G.config.args.autoplay!==!1){var B;G.api.loadVideoByPlayerVars((B=G.config.args)!=null?B:null)}else G.api.cueVideoByPlayerVars(G.config.args)},TR7=function(G){var B=!0,F=G.getPlayerElement();
F&&G.config&&(B=F.dataset.version===cp7(G));return B&&!!_.Yf("yt.player.Application.create")},YnU=function(G){if(!G.isDisposed()&&!G.y3a){var B=TR7(G);
if(B&&(G.getPlayerElement()?"html5":null)==="html5")G.mym="html5",G.isReady()||Im8(G);else if(fmy(G),G.mym="html5",B&&G.g6&&G.targetElement)G.targetElement.appendChild(G.g6),Im8(G);else{G.config&&(G.config.loaded=!0);var F=!1;G.y5z=function(){F=!0;var D=tkq(G,"player_bootstrap_method")?_.Yf("yt.player.Application.createAlternate")||_.Yf("yt.player.Application.create"):_.Yf("yt.player.Application.create");var u=G.config?dls(G.config):void 0;D&&D(G.targetElement,u,G.webPlayerContextConfig,G.cfA);Im8(G)};
G.y3a=!0;B?G.y5z():(_.Q9(cp7(G),G.y5z),(B=ZKs(G))&&hAL(B||""),gtP(G)&&!F&&_.IY("yt.player.Application.create",null))}}};
cI.prototype.getPlayerElement=function(){var G=_.JZ(document,this.elementId);!G&&this.qP&&this.qP.querySelector&&(G=this.qP.querySelector("#"+this.elementId));return G};
var Im8=function(G){if(!G.isDisposed()){var B=G.getPlayerElement(),F=!1;B&&B.getApiInterface&&B.getApiInterface()&&(F=!0);if(F){G.y3a=!1;if(!tkq(G,"html5_remove_not_servable_check_killswitch")){var D;if((B==null?0:B.isNotServable)&&G.config&&(B==null?0:B.isNotServable((D=G.config.args)==null?void 0:D.video_id)))return}SnP(G)}else G.zQE=setTimeout(function(){Im8(G)},50)}},SnP=function(G){MkU(G);
G.x1s=!0;var B=G.getPlayerElement();if(B){G.ltJ=slv(G,B,"addEventListener");G.lmb=slv(G,B,"removeEventListener");var F=B.getApiInterface();F=F.concat(B.getInternalApiInterface());for(var D=G.api,u=0;u<F.length;u++){var R=F[u];D[R]||(D[R]=slv(G,B,R))}}for(var N in G.i6)G.i6.hasOwnProperty(N)&&G.ltJ&&G.ltJ(N,G.i6[N]);ApP(G);G.sdX&&G.sdX(G.api);G.dC9.publish("onReady",G.api)},slv=function(G,B,F){var D=B[F];
return function(){var u=_.xS.apply(0,arguments);try{return G.lastError=null,D.apply(B,u)}catch(R){if(F!=="sendAbandonmentPing")throw R.params=F,G.lastError=R,u=new _.Uf("PlayerProxy error in method call",{error:R,method:F,playerId:G.playerId}),u.level="WARNING",u;}}},MkU=function(G){G.x1s=!1;
if(G.lmb)for(var B in G.i6)G.i6.hasOwnProperty(B)&&G.lmb(B,G.i6[B]);for(var F in G.lo7)G.lo7.hasOwnProperty(F)&&clearTimeout(Number(F));G.lo7={};G.ltJ=null;G.lmb=null;B=G.api;for(var D in B)B.hasOwnProperty(D)&&(B[D]=null);B.addEventListener=function(u,R){G.addEventListener(u,R)};
B.removeEventListener=function(u,R){G.removeEventListener(u,R)};
B.destroy=function(){G.dispose()};
B.getLastError=function(){return G.getLastError()};
B.getPlayerType=function(){return G.getPlayerType()};
B.getCurrentVideoConfig=function(){return G.getConfig()};
B.loadNewVideoConfig=function(u){G.loadNewVideoConfig(u)};
B.isReady=function(){return G.isReady()}};
cI.prototype.isReady=function(){return this.x1s};
cI.prototype.addEventListener=function(G,B){var F=this;this.isDisposed();var D=JpN(this,B);D&&(_.YM(this.eYd,G)||this.i6[G]||(B=xlU(this,G),this.ltJ&&this.ltJ(G,B)),this.dC9.subscribe(G,D),G==="onReady"&&this.isReady()&&setTimeout(function(){D(F.api)},0))};
cI.prototype.removeEventListener=function(G,B){this.isDisposed()||(B=JpN(this,B))&&this.dC9.unsubscribe(G,B)};
var JpN=function(G,B){var F=B;if(typeof B==="string"){if(G.eVb[B])return G.eVb[B];F=function(){var D=_.xS.apply(0,arguments),u=_.Yf(B);if(u)try{u.apply(_.Fz,D)}catch(R){throw D=new _.Uf("PlayerProxy error when executing callback",{error:R}),D.level="ERROR",D;}};
G.eVb[B]=F}return F?F:null},xlU=function(G,B){var F=function(D){var u=function(){G.isDisposed();
if(!G.isDisposed())try{G.dC9.publish(B,D!=null?D:void 0)}catch(y){var N=new _.Uf("PlayerProxy error when creating global callback",{error:y.message,event:B,playerId:G.playerId,data:D,originalStack:y.stack,componentStack:y.componentStack});N.level="WARNING";throw N;}};
if(tkq(G,"web_player_publish_events_immediately"))u();else{var R=setTimeout(function(){u();_.UK.remove(G.lo7,String(R))},0);
_.UK.add(G.lo7,String(R),!0)}};
return G.i6[B]=F};
cI.prototype.getPlayerType=function(){return this.mym||(this.getPlayerElement()?"html5":null)};
cI.prototype.getLastError=function(){return this.lastError};
var fmy=function(G){G.cancel();MkU(G);G.mym=null;G.config&&(G.config.loaded=!1);var B=G.getPlayerElement();B&&(TR7(G)||!gtP(G)?G.g6=B:(B&&B.destroy&&B.destroy(),G.g6=null));G.targetElement&&_.rZ(G.targetElement)};
cI.prototype.cancel=function(){this.y5z&&_.oZz(cp7(this),this.y5z);clearTimeout(this.zQE);this.y3a=!1};
cI.prototype.disposeInternal=function(){fmy(this);if(this.g6&&this.config&&this.g6.destroy)try{this.g6.destroy()}catch(B){var G=new _.Uf("PlayerProxy error during disposal",{error:B});G.level="ERROR";throw G;}this.eVb=null;for(G in this.i6)this.i6.hasOwnProperty(G)&&delete this.i6[G];this.blp=this.config=this.api=null;delete this.targetElement;delete this.qP;_.uz.prototype.disposeInternal.call(this)};
var gtP=function(G){var B,F;G=(B=G.config)==null?void 0:(F=B.args)==null?void 0:F.fflags;return!!G&&G.indexOf("player_destroy_old_version=true")!==-1},cp7=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.jsUrl:(G=G.config.assets)?G.js:""},ZKs=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.cssUrl:(G=G.config.assets)?G.css:""},tkq=function(G,B){if(G.webPlayerContextConfig)var F=G.webPlayerContextConfig.serializedExperimentFlags;
else{var D;if((D=G.config)==null?0:D.args)F=G.config.args.fflags}return(F||"").split("&").includes(B+"=true")},dls=function(G){for(var B={},F=_.C(Object.keys(G)),D=F.next();!D.done;D=F.next()){D=D.value;
var u=G[D];B[D]=typeof u==="object"?_.UK.clone(u):u}return B};var amU={},K0U="player_uid_"+(Math.random()*1E9>>>0);var ep=function(G,B,F,D,u,R){B=B===void 0?document.createElement("div"):B;this.webPlayerContextConfig=G;this.container=B;this.commandResolver=F;this.apiResolver=QlS();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.tc;D||R?Pqa(this):GWL(this);this.pendingPlayerResponse=D;this.pendingWatchNextResponse=u;this.pendingPlayerVars=R;Bfv(this)};
ep.prototype.loadVideoWithPlayerResponse=function(G,B,F){this.loadVideo(G,B,F)};
ep.prototype.loadVideoWithPlayerVars=function(G){return this.loadVideo(void 0,void 0,G)};
ep.prototype.destroy=function(G){if(G=_.JZ(document,G))G=K0U+"_"+_.S8(G),(G=amU[G])&&G.dispose()};
var F6a=function(G,B){var F;_.n(function(D){if(D.nextAddress==1)return G.pendingWatchNextResponse=B,G.synchronousApi?(F=G.synchronousApi,D.jumpTo(2)):D.yield(G.api,3);D.nextAddress!=2&&(F=D.yieldResult);if(!i1T(G,F))return D.return();G.pendingWatchNextResponse&&(F.updateVideoData({raw_watch_next_response:G.pendingWatchNextResponse}),G.pendingWatchNextResponse=void 0);_.di(D)})},i1T=function(G,B){var F;
if(!(B==null?0:(F=B.isReady)==null?0:F.call(B))){var D;_.em(new _.Uf("playerApi is falsey",{synchronousApi:G.synchronousApi,apiResolved:G.apiResolver.resolved,playerApiUndefined:B===void 0,playerApiNull:B===null,playerApiReady:(B==null?void 0:(D=B.isReady)==null?void 0:D.call(B))===!0,playerApiMethods:B?Object.keys(B):[]}));return!1}return!0},DMw=function(G,B){if(typeof G[B]==="function")return G[B]()},uYy=function(G){var B=window,F,D=(F=B.ytplayer)==null?void 0:F.bootstrapPlayerContainer;
if((F=D==null?void 0:D.firstElementChild)&&_.ot(F,"html5-video-player")){var u,R,N=(u=B.ytplayer)==null?void 0:(R=u.bootstrapWebPlayerContextConfig)==null?void 0:R.contextId;u=G.webPlayerContextConfig.contextId;if(N&&N===u){D!==G.container&&(D=!1,DMw(F,"getPlayerState")===2&&(D=!0),G.container.appendChild(F),D||DMw(F,"playVideo"));var y;if((y=B.ytplayer)==null?0:y.bootstrapPlayerResponse)G.bootstrapPlayerResponse=B.ytplayer.bootstrapPlayerResponse}}},Bfv=function(G){var B,F,D,u,R;
_.n(function(N){if(N.nextAddress==1)return G.pageReadyOrDataAvailable?N.jumpTo(2):N.yield(G.pageReadyOrDataAvailableResolver.promise,2);if(N.nextAddress!=4)return!_.X("kevlar_player_unified_player_loading")||Cqz()&&yps()?N.jumpTo(4):N.yield(Eto(),4);uYy(G);if(G.pendingPlayerResponse||G.pendingPlayerVars)B=hbo(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse&&(B.loaded=!0),G.bootstrapPlayerResponse=
void 0;F=XAJ(G.container,B,G.webPlayerContextConfig);((D=B)==null?0:D.loaded)&&G.pendingWatchNextResponse?(F6a(G,G.pendingWatchNextResponse),G.pendingPlayerResponse=void 0,G.pendingPlayerVars=void 0):Ru7(G);u=function(y){F.removeEventListener("onReady",u);G.synchronousApi=y;G.apiResolver.resolve(y)};
F.addEventListener("onReady",u);G.commandResolver!==void 0&&(R=G.commandResolver,F.addEventListener("innertubeCommand",function(y){R(y)}));
_.di(N)})};
ep.prototype.loadVideo=function(G,B,F){var D=this,u,R,N,y,U,q,h,K,a;return _.n(function(m){if(m.nextAddress==1)return D.pendingPlayerResponse=G,D.pendingWatchNextResponse=B,D.pendingPlayerVars=F,Pqa(D),D.synchronousApi?(u=D.synchronousApi,m.jumpTo(2)):m.yield(D.api,3);m.nextAddress!=2&&(u=m.yieldResult);if(!i1T(D,u))return m.return(new Promise(function(){}));
N=new Promise(function(L){R=L});
y=function(){var L=u.getPlayerResponse();L&&(u.removeEventListener("onVideoDataChange",y),R(L))};
u.addEventListener("onVideoDataChange",y);if(D.pendingPlayerResponse||D.pendingPlayerVars)D.pendingPlayerResponse&&D.pendingPlayerResponse===D.bootstrapPlayerResponse?(R(D.pendingPlayerResponse),D.pendingWatchNextResponse&&F6a(D,D.pendingWatchNextResponse)):(U=hbo(D.pendingPlayerResponse,D.pendingWatchNextResponse,D.pendingPlayerVars),(a=(q=D.pendingPlayerResponse)==null?void 0:(h=q.playerConfig)==null?void 0:(K=h.playbackStartConfig)==null?void 0:K.startPaused)?u.cueVideoByPlayerVars(U.args):u.loadVideoByPlayerVars(U.args)),
Ru7(D),D.bootstrapPlayerResponse=void 0;return m.return(N)})};
var GWL=function(G){if(document.readyState==="complete"||document.readyState==="interactive")Pqa(G);else{var B=function(){document.removeEventListener("DOMContentLoaded",B);Pqa(G)};
document.addEventListener("DOMContentLoaded",B)}},Pqa=function(G){G.pageReadyOrDataAvailable=!0;
G.pageReadyOrDataAvailableResolver.resolve()},Ru7=function(G){G.pendingPlayerResponse=void 0;
G.pendingWatchNextResponse=void 0;G.pendingPlayerVars=void 0};
_.ZN.Object.defineProperties(ep.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var $V=function(G){qQ.call(this,G===void 0?"document_active":G);var B=this;this.overridePriority=10;this.JSC$14788_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(F){B.transition("document_disposed",{event:F})});
window.addEventListener("beforeunload",function(F){B.transition("document_disposed_preventable",{event:F})});
window.addEventListener("unload",function(F){B.transition("document_disposed",{event:F});B.JSC$14788_hasRun=new Map})};
_.r($V,qQ);
$V.prototype.runPreventableDispose=function(G,B){if(!this.JSC$14788_hasRun.get("document_disposed_preventable")){G(B==null?void 0:B.event);var F,D;if((B==null?0:(F=B.event)==null?0:F.defaultPrevented)||(B==null?0:(D=B.event)==null?0:D.returnValue)){B.event.returnValue||(B.event.returnValue=!0);B.event.defaultPrevented||B.event.preventDefault();this.JSC$14788_hasRun=new Map;this.transition("document_active");return}}this.JSC$14788_hasRun.set("document_disposed_preventable",!0);this.JSC$14788_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
$V.prototype.runDispose=function(G,B){this.JSC$14788_hasRun.get("document_disposed")?this.transition("document_active"):(G(B==null?void 0:B.event),this.JSC$14788_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
$V.prototype.runFlush=function(G,B){G(B==null?void 0:B.event);this.transition("document_active")};
$V.prototype.runActive=function(){};var zi=function(G){qQ.call(this,G===void 0?"document_visibility_unknown":G);var B=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(F){document.visibilityState==="visible"?B.transition("document_visible",{event:F}):B.transition("document_hidden",
{event:F})});
_.X("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(F){B.transition("document_backgrounded",{event:F})}),window.addEventListener("focus",function(F){B.transition("document_foregrounded",{event:F})}))};
_.r(zi,qQ);zi.prototype.runVisible=function(G,B){G(B==null?void 0:B.event);_.X("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
zi.prototype.runHidden=function(G,B){G(B==null?void 0:B.event);_.X("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
zi.prototype.runBackgrounded=function(G,B){G(B==null?void 0:B.event)};
zi.prototype.runForegrounded=function(G,B){G(B==null?void 0:B.event)};var b3=function(){this.teardownLifecycle=new $V;this.visibilityLifecycle=new zi};
b3.prototype.install=function(){var G=_.xS.apply(0,arguments),B=this;G.forEach(function(F){B.teardownLifecycle.install(F)});
G.forEach(function(F){B.visibilityLifecycle.install(F)})};var Vj=function(){b3.call(this);var G={};this.install((G.document_disposed={callback:this.abortSlisAndFlush},G));_.X("combine_ve_grafts")&&(G={},this.install((G.document_disposed={callback:this.flushInteractionLoggingAttachVes},G)));G={};this.install((G.flush_logs={callback:this.logFinalPayload},G));_.X("web_log_cfg_cee_ks")||_.mX(_.Lu,wk7)};
_.r(Vj,b3);var jlQ=function(){Vj.loggingInstance||(Vj.loggingInstance=new Vj);return Vj.loggingInstance};
Vj.prototype.logFinalPayload=function(){if(_.X("web_fp_via_jspb")){var G=new mDa,B=_.qW();B&&_.wq(G,1,B);B=_.X("jspb_sparse_encoded_pivot")?new hb([{}]):new hb;_.VC(B,380,X2w,G);vlU("finalPayload",B);_.X("web_fp_via_jspb_and_json")&&_.W$("finalPayload",{csn:_.qW()})}else _.W$("finalPayload",{csn:_.qW()})};
Vj.prototype.abortSlisAndFlush=function(){xFy(kZ);Os!=null&&Os.flush()};
Vj.prototype.flushInteractionLoggingAttachVes=function(){XOL(_.Rh())};
var wk7=function(){var G=_.v5("CLIENT_EXPERIMENT_EVENTS");if(G){var B=yTM();G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,B(F)&&_.W$("genericClientExperimentEvent",{eventType:F});delete _.b9.CLIENT_EXPERIMENT_EVENTS}};var CVs={};
CVs.YtPlayerBehavior=[_.kV.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 G=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.tc;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;L0g(function(){G.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.$b(this,"pan-down"),_.X("kevlar_pinch_fullscreen")&&_.GT().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.X("kevlar_pinch_fullscreen")&&_.GT().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(G,B,F){var D=this;Tn(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Tn(!1,"MainAppPlayer already created.");else{var u=_.X("kevlar_player_container_query_killswitch")?this.$.container:_.IF(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ep(this.getWebPlayerContextConfig_(),u,function(R){return _.Br(R,D.hostElement)},G,B,F);
this.mainAppPlayer_.api.then(function(R){D.player_=R;D.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Qra.resolve(R)})}},
loadVideoWithPlayerResponse:function(G,B){var F=this;if(this.useUnifiedPlayer_()){var D=this.watchNextData,u,R=(u=G.videoDetails)==null?void 0:u.videoId,N,y,U;(u=(N=this.watchNextData)==null?void 0:(y=N.currentVideoEndpoint)==null?void 0:(U=y.watchEndpoint)==null?void 0:U.videoId)&&R!=u&&(D=void 0,_.X("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(G,D,B):this.createMainAppPlayer_(G,D,B);this.mainAppPlayer_.api.then(function(){_.cZ(F.hostElement,
"yt-player-updated")})}else this.update(Dl8(G,B))},
loadVideoWithPlayerVars:function(G){var B=this;this.useUnifiedPlayer_()?(_.X("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(G):this.createMainAppPlayer_(void 0,void 0,G),this.mainAppPlayer_.api.then(function(){_.cZ(B.hostElement,"yt-player-updated")})):this.update({args:G})},
update:function(G){var B=this;if(this.useUnifiedPlayer_())Tn(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(G);var F=IxM(G.args);F&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==F&&Object.assign(G.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(G).then(function(D){_.cZ(B.hostElement,"yt-player-updated",_.X("kevlar_player_updated_obsolete_player_killswitch")?
D:void 0)})}_.Oz(new _.Uf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.getPlayerPromise(),2);F=D.yieldResult;if(!F)throw Error("wh");G&&B.updatePlayerPlaylist_(G);_.di(D)})},
acquireApi_:function(G){var B=this;if(this.useUnifiedPlayer_())Tn(!1,"Invalid method call in kevlar_unified_player.");else return _.Lu.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Tn(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(F){B.shouldAutoplay_(G)?F.loadVideoByPlayerVars(G.args):F.cueVideoByPlayerVars(G.args)})):this.initPlayerPromise_=this.initPlayerContainer_(G),this.initPlayerPromise_},
initPlayerContainer_:function(G){var B=this;if(this.useUnifiedPlayer_())Tn(!1,"Invalid method call in kevlar_unified_player.");else return Tn(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.em(Error("xh")),Tn(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.X("kevlar_player_container_query_killswitch")?this.$.container:_.IF(this.hostElement).querySelector("#container"),Eto().then(function(){var F=B.initPlayer_(G);B.playerResolver_.resolve(F);
return F})},
onPlayerReady_:function(G,B){this.useUnifiedPlayer_()?Tn(!1,"Invalid method call in kevlar_unified_player."):(G.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Qra.resolve(G),B(G))},
maybeCallApiMethodOnElement_:function(G,B){if(typeof G[B]==="function")return G[B]()},
maybeAdoptBootstrapPlayer_:function(){var G=window,B,F=(B=G.ytplayer)==null?void 0:B.bootstrapPlayerContainer;if((B=F==null?void 0:F.firstElementChild)&&B.classList.contains("html5-video-player")){var D,u,R=(D=G.ytplayer)==null?void 0:(u=D.bootstrapWebPlayerContextConfig)==null?void 0:u.contextId;D=this.getWebPlayerContextConfig_().contextId;if(R&&R===D){F!==this.playerContainer_&&(F=!1,this.maybeCallApiMethodOnElement_(B,"getPlayerState")===2&&(F=!0),this.playerContainer_.appendChild(B),F||this.maybeCallApiMethodOnElement_(B,
"playVideo"));var N;if((N=G.ytplayer)==null?0:N.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=G.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(G){var B=this;if(this.useUnifiedPlayer_())Tn(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(F){B.maybeAdoptBootstrapPlayer_();var D=G?uUL(G):void 0;D&&D==B.bootstrapPlayerResponse_&&(G.loaded=!0);D=B.playerContainer_;var u=B.getWebPlayerContextConfig_();D=XAJ(D,G,u);B.player_=D;B.onPlayerReadyEvent_=B.onPlayerReady_.bind(B,B.player_,F);B.player_.addEventListener("onReady",B.onPlayerReadyEvent_);B.player_.addEventListener("innertubeCommand",
B.onPlayerInnerTubeCommand_.bind(B))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(G){G.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(G){G.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var G=_.te().resolve(_.pA).getCurrentPage();G&&G.getScrollTop()<=0?_.$b(this,"pan-down"):_.$b(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()||G.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()&&G.toggleFullscreen()})},
updatePlayerPlaylist_:function(G){var B=this,F,D,u;return _.n(function(R){if(R.nextAddress==1)return F=_.te().resolve(_.fH(_.Wv)),D=!!(F&&F.playlistComponent&&F.playlistComponent.loopOn),R.yield(B.getPlayerPromise(),2);var N=u=R.yieldResult,y=N.updatePlaylist,U=[];if(_.X("kevlar_player_playlist_use_local_index")){var q,h;var K=(h=(q=G.localCurrentIndex)!=null?q:G.currentIndex)!=null?h:0}else{var a;K=(a=G.currentIndex)!=null?a:0}if(G.contents)for(q=0;q<G.contents.length;q++)if((h=G.contents[q])&&h.playlistPanelVideoRenderer)if(A88(h)){h=
h.playlistPanelVideoRenderer;a="";h.shortBylineText&&(a=_.zx(h.shortBylineText));var m="";h.title?m=_.zx(h.title):h.unplayableText&&(m=_.zx(h.unplayableText));U.push({author:a,title:m,encrypted_id:h.videoId})}else q<K&&--K;y.call(N,{index:K,list:G.playlistId?G.playlistId:"",loop:D,playlist_title:G.title,playlist_length:U.length,video:U,fetch:0,external_list:"1",title:G.title?G.title:"",playlist_author:G.ownerName?_.zx(G.ownerName):void 0});_.di(R)})},
focusOnPlayer:function(){_.ft(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var G=this.playerContainer_.querySelector(".html5-video-player");G&&(_.v9(_.te().resolve(_.uN)),G.focus())}})},
preparePlayer:function(){var G=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(B){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")B();else{var F=function(){document.removeEventListener("DOMContentLoaded",F);B()};
document.addEventListener("DOMContentLoaded",F)}})).then(function(){return Eto()}).then(function(){G.initPlayerPromise_||G.preparePlayerJobId_||(G.preparePlayerJobId_=_.mX(_.Lu,function(){G.initPlayerPromise_||(G.initPlayerPromise_=G.initPlayerContainer_())}))}):_.Oz(new _.Uf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(G){this.useUnifiedPlayer_()?Tn(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(G)||(G.args.autoplay="0")},
shouldAutoplay_:function(G){if(this.useUnifiedPlayer_())Tn(!1,"Invalid method call in kevlar_unified_player.");else{var B=this.get("args.el",G);return B&&B!="detailpage"&&this.isMiniplayerActive_()||B&&(B=="sponsorshipsoffer"||B=="handlesclaiming")&&this.get("args.autoplay",G)=="0"?!1:(G=uUL(G))&&this.get("playerConfig.playbackStartConfig.startPaused",G)?!1:!0}},
isMiniplayerActive_:function(){return _.te().resolve(_.WP).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var G=this.getPlayer();if(G){var B=G.getPlayerState();_.X("kevlar_player_check_ad_state_on_stop")&&(B=G.getPlayerState(G.getPresentingPlayerType()));B!=5&&G.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(G,B,F){F=F===void 0?!1:F;var D=this,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return B||(B=D.hostElement),u=D.useUnifiedPlayer_()?!!D.mainAppPlayer_:!!D.initPlayerPromise_,u?U.yield(D.getPlayerPromise(),2):(F?G.insertBefore(B,G.firstChild):G.appendChild(B),U.return());R=U.yieldResult;N=R.getPlayerState(R.getPresentingPlayerType());y=!1;if(N==-1||N==1||N==3)y=!0;F?G.insertBefore(B,G.firstChild):G.appendChild(B);y&&R.playVideo();R.setSize(NaN,NaN);_.di(U)})},
watchNextDataChanged_:function(G){var B=this;G&&(this.useUnifiedPlayer_()&&_.X("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&F6a(this.mainAppPlayer_,G):this.getPlayerPromise().then(function(F){F.updateVideoData(B.computeWatchNextPlayerVars_(G))}))},
computeWatchNextPlayerVars_:function(G){if(this.useUnifiedPlayer_()&&_.X("kevlar_unified_player_update_watch_next_killswitch"))Tn(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:G}},
maybeSendAbandonmentPing_:function(){var G=this.getPlayer();G&&G.getPlayerState()!=5&&G.getPlayerState()!=0&&G.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var G=_.v5("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(G=Object.assign({},G),G.rootElementId=this.playerId);G.serializedExperimentIds&&G.serializedExperimentFlags||_.em(Error("yh"));return G},
hasWebPlayerContextConfig_:function(){return!!_.v5("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(G){this.useUnifiedPlayer_()?Tn(!1,"Invalid method call in kevlar_unified_player."):_.Br(G,this.hostElement)},
useUnifiedPlayer_:function(){var G=_.X("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.X("kevlar_unified_player")||G}}];var NfT={};NfT.YtPlaylistPanelBehavior=[_.g.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(G){G=G.detail;if(G.actions.loop!=void 0||G.actions["yt-icons:loop"]!=void 0)this.loopOn=G.actions.loop||G.actions["yt-icons:loop"];if(G.actions.shuffle!=void 0||G.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=G.actions.shuffle||G.actions["yt-icons:shuffle"]},
setMenuData_:function(G){if(!G||!G.playlistButtons||G.isInfinite)return null;for(var B=G.playlistButtons.menuRenderer.topLevelButtons,F=B.length,D=0;D<F;D++)if(B[D].toggleButtonRenderer){var u=B[D].toggleButtonRenderer;u.defaultIcon.iconType=="LOOP"&&this.loopOn?u.isToggled=this.loopOn:u.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(u.isToggled=this.shuffleOn)}return G.playlistButtons}}];_.oJ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(G,B,F){var D=this.getClickTarget_(B);if(D&&this.isClickAllowed_(D)){B.preventDefault();G=(0,_.UK.unsafeClone)(G);var u=this.getContainerBoundingRect();B=this.getRelativeClickXy_(B,u);this.expandEndpointUrlMacros_(G,{NX:B[0],NY:B[1],NB:D.code});F&&this.truncateWebCommendMetadataUrl_(G);_.cZ(this.hostElement,"yt-navigate",{endpoint:G})}},
getClickTarget_:function(G){if(!this.clickTargetMap)return null;G=_.VW(G)||[];G=_.C(G);for(var B=G.next();!B.done;B=G.next()){B=B.value;if(B===_.IF(this.hostElement).querySelector("#menu"))break;if(B=this.clickTargetMap.get(B.id))return B}return null},
getRelativeClickXy_:function(G,B){var F=Math.round(G.detail.x-B.left);G=Math.round(G.detail.y-B.top);return F<0||G<0?[null,null]:[F,G]},
getContainerBoundingRect:function(){return _.IF(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(G,B){for(var F=_.C(G.loggingUrls||[]),D=F.next();!D.done;D=F.next())D=D.value,D.baseUrl&&(D.baseUrl=fno(D.baseUrl,B));G.urlEndpoint&&G.urlEndpoint.url&&(G.urlEndpoint.url=fno(G.urlEndpoint.url,B));G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url&&(G.commandMetadata.webCommandMetadata.url=fno(G.commandMetadata.webCommandMetadata.url,B))},
truncateWebCommendMetadataUrl_:function(G){if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url){var B=G.commandMetadata.webCommandMetadata.url,F=B.indexOf("&pp=");if(F>0){var D=B.indexOf("&",F+1);G.commandMetadata.webCommandMetadata.url=D>F&&D<B.length?B.slice(0,F)+B.slice(D):B.slice(0,F)}}},
configureClickTargets:function(G,B,F){this.containerId=G;this.clickTargetMap=new Map;G=_.C(B);for(B=G.next();!B.done;B=G.next())if(B=B.value,B.location){var D=F.get(B.location);D&&(_.tV(_.IF(this.hostElement).querySelector("#"+D),"yt-simple-endpoint",this.isClickAllowed_(B)),this.clickTargetMap.set(D,B))}},
isClickAllowed_:function(G){return G.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Mv={};
_.Mv.YtLazyListBehavior=[_.zT.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 G=(this.constructor.generatedFrom||this).observers;G||(G=[]);G.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
G}},
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 G=this.renderElementsOutsideVisibleArea_;G&&(CHa(G,4),G.processSignal())},
deepLazyListObserver_:function(G){var B=this;if(G){var F=G.value||[];if(this.itemsPath==G.path){var D=this.nonDeferredItemCount;G=0;D>-1&&F.length>D&&(G=_.v5("REMAINING_DOVA_DEFERRED_CHUNKS",-1));G>0?(D>0&&(D=F.slice(0,D),this.setInitialItemsOnDataChanged(D)),(D=this.renderElementsOutsideVisibleArea_)?D.cancel():(D=this.renderElementsOutsideVisibleArea_=new _.V8(2,"eocs"),_.fes(window,"scroll",function(){return B.renderDeferredElements()})),_.vd(D,function(){B.setInitialItemsOnDataChanged(F)}),_.Vc("REMAINING_DOVA_DEFERRED_CHUNKS",
G-1)):this.setInitialItemsOnDataChanged(F)}else if(this.itemsPath+".splices"==G.path)this.onItemsUpdated_(F);
else D="shownItems"+G.path.substr(this.itemsPath.length),this.useSignals&&D==="shownItems.length"||this.notifyPath(D,G.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(G){G&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(G),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(G){G=G.indexSplices;for(var B=0,F=G.length;B<F;B++){var D=G[B];if(D.index<this.shownCount&&(D.removed&&this.splice("shownItems",D.index,D.removed.length),D.addedCount)){var u=D.object.slice(D.index,D.index+D.addedCount);D=["shownItems",D.index,0];D.push.apply(D,u);this.splice.apply(this,D)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(G){this.cancelPendingTasks_();G||(G=[]);this.items_=G;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&&(_.on("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.ft(this,this.tryRenderChunk_)))},
fillRange_:function(G,B){this.canShowMore&&this.items_&&(G=this.items_.slice(G,B),G.unshift("shownItems"),this.push.apply(this,G),this.shownCount=B,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var G=this;this.canShowMore&&_.kT(this,"renderChunk",function(){G.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.on("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.yH(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var G=this.renderElementsOutsideVisibleArea_;G&&(G.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var G=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(G-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=G;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(G){return Math.ceil(1E3/G)},
onCanShowMoreUpdated_:function(G){this.data&&this.items_!==null&&(G?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(G){!this.shouldUseTaskManager()&&this.data&&(!G&&this.canShowMore?(_.ywg(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):G&&this.partiallyRenderedItems_.has(this.items_)&&(_.X("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Af;_.p3={};
Af=function(){var G=_.DO.apply(this,arguments)||this;G.atStart=!0;G.atEnd=!0;G.startIndex=0;G.endIndex=0;G.scrollCount=0;G.initialStartIndex=0;G.disableScrollEventListener=!1;G.useFloorScrolling=!1;G.isSearch=!1;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.disableWheelScroll=!1;G.centerListItems=!1;G.offset=0;G.minComponentWidth=0;G.marginWidthRight=0;G.marginWidthLeft=0;G.setButtonsStateRequested=!1;G.itemsVisibilityObserver=null;G.fullyVisibleItemsIndices=[];G.JSC$14817_onWheelScroll=function(B){if(G.isSearch&&
!G.disableWheelScroll&&_.X("desktop_enable_dmpanel_wheel_scroll")){var F=B.shiftKey?Math.abs(B.deltaY)>Math.abs(B.deltaX)?B.deltaY:B.deltaX:B.deltaX;F!==0&&(B.preventDefault(),G.ytLazyListBehavior.fillRemainingListItems(),G.offset+=F,YV(G),G.reposition_())}};
G.onPointerDown=function(B){y4v(G)&&(G.dragMouseStart=B.clientX,G.dragOffsetStart=G.offset,G.dragging=!0)};
G.onPointerMove=function(B){y4v(G)&&G.dragging&&(G.ytLazyListBehavior.fillRemainingListItems(),G.offset=G.dragOffsetStart-(B.clientX-G.dragMouseStart),YV(G),G.reposition_())};
G.onPointerUp=function(){y4v(G)&&(G.dragging=!1)};
return G};
_.r(Af,_.DO);var n1s=function(G){var B=_.IF(G.hostElement).querySelector("#items").children;if(!B)return 0;var F=0;G=_.C(G.fullyVisibleItemsIndices);for(var D=G.next();!D.done;D=G.next())F+=B[D.value].clientWidth;return F},y4v=function(G){return G.isSearch&&_.X("desktop_enable_dmpanel_click_drag_scroll")};
Af.prototype.created=function(){this.cachedViewportWidth=_.v5("initialInnerWidth")||window.innerWidth;this.JSC$14817_cachedViewportHeight=_.v5("initialInnerHeight")||window.innerHeight;_.v5("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Vc("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Af.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.X("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();l1v(this)};
Af.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.X("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var G;(G=this.itemsVisibilityObserver)==null||G.disconnect();this.itemsVisibilityObserver=null;var B;(B=this.itemsObserver)==null||B.disconnect()};
var l1v=function(G){var B=_.IF(G.hostElement).querySelector("#scroll-container");if(B){if(!G.itemsVisibilityObserver){var F=window.getComputedStyle(B).marginRight;G.itemsVisibilityObserver=new IntersectionObserver(function(D){UMG(G,D)},{root:B,
rootMargin:F,threshold:.98})}if(B=_.IF(G.hostElement).querySelector("#items"))G.itemsObserver=new tI7(B,function(D){q6y(G,D)})}},q6y=function(G,B){E1P(G)&&(Array.from(B.addedNodes).filter(function(F){return F.nodeType===Node.ELEMENT_NODE}).forEach(function(F){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.observe(F)}),Array.from(B.removedNodes).filter(function(F){return F.nodeType===Node.ELEMENT_NODE}).forEach(function(F){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.unobserve(F)}))},
UMG=function(G,B){var F=new Set(G.fullyVisibleItemsIndices);
B=_.C(B);for(var D=B.next();!D.done;D=B.next()){D=D.value;var u=D.target.parentElement;u?(u=Array.from(u.children).indexOf(D.target),D.isIntersecting?F.add(u):F.has(u)&&F.delete(u)):_.em(new _.Uf("Parent element not found",D.target.nodeName))}G.fullyVisibleItemsIndices=Array.from(F).sort(function(R,N){return R-N});
F.size===0?_.em(new _.Uf("No visible entries in horizontal list")):(G.startIndex=G.fullyVisibleItemsIndices[0],G.endIndex=G.fullyVisibleItemsIndices[G.fullyVisibleItemsIndices.length-1])},E1P=function(G){G.data?G=(G=G.data)&&G.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===G.itemSizeConstraint:!1:G=!1;
return G};
_.w=Af.prototype;_.w.addScrollEventListeners=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container");G.style.touchAction="pan-y";G.addEventListener("wheel",this.JSC$14817_onWheelScroll);G.addEventListener("pointerdown",this.onPointerDown);G.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.w.removeScrollEventListeners=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.JSC$14817_onWheelScroll);G.removeEventListener("pointerdown",this.onPointerDown);G.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.w.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.ft(this,this.setStartIndex,[this.initialStartIndex])};
_.w.reposition_=function(){var G=_.v5("HTML_DIR")=="rtl"?"":"-",B=_.IF(this.hostElement).querySelector("#items");B&&(B.style.transform="translateX("+G+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.w.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.ft(this,this.setButtonsState_))};
_.w.setButtonsState_=function(){this.setButtonsStateRequested=!1;var G=_.IF(this.hostElement).querySelector("#items").firstElementChild;if(G){this.minComponentWidth||(this.minComponentWidth=huG(this,G));G=_.IF(this.hostElement).querySelector("#scroll-container").clientWidth;var B=_.IF(this.hostElement).querySelector("#items");B=_.X("kevlar_horizontal_list_scroll_width_killswitch")?B.clientWidth:B.scrollWidth;var F=this.get(this.ytLazyListBehavior.itemsPath,this);if(F){var D=Math.round(G/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+D,F.length)-1)}this.ytLazyListBehavior.canShowMore?B+this.minComponentWidth>=this.offset+G&&(this.atEnd=!1):this.atEnd=this.offset+G>=B-20?!0:!1;this.atStart=this.offset<=20}};
_.w.setStartIndex=function(G){if(!this.minComponentWidth){var B=_.IF(this.hostElement).querySelector("#items").firstElementChild;if(!B)return;this.minComponentWidth=huG(this,B)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*G;YV(this);this.reposition_()};
_.w.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Zz();var G=_.IF(this.hostElement).querySelector("#scroll-container").clientWidth;_.X("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=huG(this,_.IF(this.hostElement).querySelector("#items").firstElementChild));G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&K6a(this);this.offset+=E1P(this)?
n1s(this):G*this.minComponentWidth;YV(this);this.reposition_();this.scrollCount++};
_.w.prevClick_=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container").clientWidth;G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=E1P(this)?n1s(this):this.minComponentWidth*this.scrollCount-1):this.offset-=E1P(this)?n1s(this):G*this.minComponentWidth;this.centerListItems&&K6a(this);YV(this);this.reposition_()};
_.w.onIronResize_=function(){this.resizeSupportEnabled&&_.ft(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.w.onItemsTransitionEnd_=function(G){_.oF(G)===_.IF(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.w.onChildElementFocus_=function(G){G=G.target.closest("#items > *");var B=_.IF(this.hostElement).querySelector("#scroll-container");if(B.contains(G)){if(_.X("web_horizontal_list_behavior_focus_killswitch"))if(G.offsetLeft<this.offset)this.offset=Math.abs(G.offsetLeft)<G.clientWidth?0:G.offsetLeft;else if(G.offsetLeft+G.clientWidth>this.offset+B.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Zz(),this.offset=G.offsetLeft+G.clientWidth-B.clientWidth;else return;else{var F=_.IF(this.hostElement).querySelector("#items"),
D=_.v5("HTML_DIR")==="rtl",u=D?F.clientWidth-G.offsetLeft:G.offsetLeft;F=D?F.clientWidth-(G.offsetLeft+G.clientWidth):G.offsetLeft+G.clientWidth;var R=D?u>this.offset+B.clientWidth:u<this.offset,N=D?F<this.offset:F>this.offset+B.clientWidth,y=D?R:N;if(D?N:R)B=D?F:u,this.offset=Math.abs(B)<G.clientWidth?0:B;else if(y)this.ytLazyListBehavior.fillRemainingListItems(),_.Zz(),this.offset=(D?u:F)-B.clientWidth;else return}YV(this);this.reposition_()}};
_.w.observeShownItems_=function(){this.reset()};
_.w.checkComponentWidthResize=function(){var G=_.IF(this.hostElement).querySelector("#items").firstElementChild;G&&(G=huG(this,G),this.centerListItems||G!==this.minComponentWidth)&&(this.minComponentWidth=G,this.offset=G*this.scrollCount,this.centerListItems&&K6a(this),YV(this),this.reposition_())};
var huG=function(G,B){var F=window.getComputedStyle(B).marginRight;F=Math.floor(Number(F.replace("px","")));var D=window.getComputedStyle(B).marginLeft;D=Math.floor(Number(D.replace("px","")));G.centerListItems&&!G.marginWidthRight&&(G.marginWidthRight=F,G.marginWidthLeft=D);return G.resizeSupportEnabled?B.getBoundingClientRect().width+F:B.offsetWidth+F},YV=function(G){var B=_.IF(G.hostElement).querySelector("#scroll-container").clientWidth,F=_.IF(G.hostElement).querySelector("#items").clientWidth;
G.offset<0?G.offset=0:G.offset+B>=F&&(G.offset=F-B)},K6a=function(G){G.offset-=(_.IF(G.hostElement).querySelector("#scroll-container").clientWidth+G.marginWidthRight-G.minComponentWidth)/2-G.marginWidthLeft};
_.ZN.Object.defineProperties(Af.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var G=_.v5("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(G==-1)G=this.JSC$14817_cachedViewportHeight,G=G>1320?5:G>1020?4:G>730?3:G>430?2:1;else if(G==0)return 0;_.Vc("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",G-1);G=_.v5("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(G>-1)return G;G=this.cachedViewportWidth;G=G>1600?6:G>1400?5:G>1300?4:G>1090?5:G>870?4:G>660?3:2;_.Vc("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
G);return G},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.X("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Af.prototype.observeShownItems_=Af.prototype.observeShownItems_;Af.prototype.onChildElementFocus_=Af.prototype.onChildElementFocus_;Af.prototype.onItemsTransitionEnd_=Af.prototype.onItemsTransitionEnd_;Af.prototype.onIronResize_=Af.prototype.onIronResize_;Af.prototype.prevClick_=Af.prototype.prevClick_;Af.prototype.nextClick_=Af.prototype.nextClick_;Af.prototype.setButtonsState_=Af.prototype.setButtonsState_;Af.prototype.requestButtonsStateUpdate_=Af.prototype.requestButtonsStateUpdate_;
Af.prototype.reposition_=Af.prototype.reposition_;Af.prototype.reset=Af.prototype.reset;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Af.prototype,"ytLazyListBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Af.prototype,"atStart",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Af.prototype,"atEnd",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"startIndex",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"endIndex",void 0);_.c([_.v({value:6}),_.I("design:type",Number)],Af.prototype,"initialCount",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"scrollCount",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"initialStartIndex",void 0);
_.c([_.v(),_.I("design:type",Object)],Af.prototype,"disableScrollEventListener",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"supportComponentResize",void 0);_.c([_.v({value:function(){var G=this;return function(){return G.prevClick_()}}}),
_.I("design:type",Function)],Af.prototype,"boundPrevClick",void 0);_.c([_.v({value:function(){var G=this;return function(){return G.nextClick_()}}}),
_.I("design:type",Function)],Af.prototype,"boundNextClick",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"useFloorScrolling",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"isSearch",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"dragging",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"dragMouseStart",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"dragOffsetStart",void 0);
_.c([_.v(),_.I("design:type",Object)],Af.prototype,"disableWheelScroll",void 0);_.c([_.v(),_.I("design:type",Object)],Af.prototype,"centerListItems",void 0);_.c([_.Pm("iron-resize"),_.Ga("guideOpened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Af.prototype,"onIronResize_",null);_.c([_.Pm("transitionend"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Af.prototype,"onItemsTransitionEnd_",null);
_.c([_.Pm("focusin"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Af.prototype,"onChildElementFocus_",null);_.c([_.Ga("shownItems"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Af.prototype,"observeShownItems_",null);_.c([_.uA()],Af);_.p3.YtdHorizontalListBehavior=[];_.p3.YtdHorizontalListBehavior.push(_.Rc,_.g.YtRendererBehavior,_.Mv.YtLazyListBehavior,_.jp.YtdGuideStateAwareBehavior,Af.prototype);var W0c=["APP_STATE","PI"];var dA,Jf=function(G){this.hostElement=G},c9=function(G,B){if(B&&(ebU(B.viewableCommands)||ebU(B.endOfSessionCommands))){var F=zbU(B.viewableCommands);
B=zbU(B.endOfSessionCommands);if(!dA){var D=_.sD("custom_active_view_tos_timeout_ms");dA=D>0&&D!==36E5?new Gw8($lo(),D):new Gw8($lo())}i5z(dA,G.hostElement);Fel(dA,G.hostElement,F,B)}},Ti=function(G){dA&&i5z(dA,G.hostElement)};var a1N=_.vP(["about:blank"]),mMT={pushState:window.history.pushState,replaceState:window.history.replaceState};var IJ=function(G){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=G;this.internalPushState=G.pushState.bind(G);this.internalReplaceState=G.replaceState.bind(G)};
IJ.prototype.init=function(){this.initialized=!0};
IJ.prototype.pushState=function(G,B){this.initialized||this.init();this.internalPushState&&this.internalPushState(G,"",B)};
IJ.prototype.replaceState=function(G,B){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(G,"",B)};
IJ.prototype.getState=function(){return this.history&&this.history.state};var XkL=function(G){var B=function(){var F=G.apply(this,arguments)||this;F.boundHistoryPushState=!1;F.boundHistoryReplaceState=!1;F.debugInfo={};return F};
_.r(B,G);B.prototype.init=function(){var F=_.G_("IFRAME");_.u5(F,_.W7(a1N));F.sandbox="allow-same-origin";F.style.display="none";this.iframe=F;document.body.appendChild(F);this.bindHistoryStateFunctions();G.prototype.init.call(this)};
B.prototype.bindHistoryStateFunctions=function(){var F=this,D=[],u;this.iframe&&((u=this.iframe.contentWindow)==null?0:u.history)&&(u=this.iframe.contentWindow.history)&&(D.push(u),Object.getPrototypeOf(u)&&D.push(Object.getPrototypeOf(u)));window.history&&D.push(window.history);u=window.history;Object.getPrototypeOf(u)&&D.push(Object.getPrototypeOf(u));D.push(mMT);u=function(N){for(var y=null,U=0;U<D.length;U++){var q=D[U][N];if(typeof q==="function"){y=q.bind(window.history);F.debugInfo[N]=U;break}}return y};
if(!this.boundHistoryReplaceState){var R=u("replaceState");R&&(this.internalReplaceState=R,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(u=u("pushState"))&&(this.internalPushState=u,this.boundHistoryPushState=!0)};
return B}(IJ),Qfq=function(){return XkL.call(this,window.history)||this};
_.r(Qfq,XkL);Qfq.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var f3=function(G){this.browserHistory=G;this.initialized=!1};
f3.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
f3.prototype.pushState=function(G,B){this.initialized||this.init();this.browserHistory.pushState(G,B)};
f3.prototype.replaceState=function(G,B){this.initialized||this.init();this.browserHistory.replaceState(G,B)};
f3.prototype.handlePopstate=function(G){return G.state};_.jfG=function(G,B,F,D,u){this.endpoint=G;this.forward=B;this.historyEntry=F;this.JSC$31238_savedComponentState=D;this.legacyBorder=u===void 0?!1:u};var L6U=function(G,B){this.rootData=G;this.scrollTop=B};_.tf=new _.oV("EPHEMERAL_STORE_TOKEN");_.Zs=function(G){this.data=Object.assign({},G);var B;(B=this.data.innertubeResponse)==null||delete B.frameworkUpdates};
_.Zs.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Zl)()};
_.Zs.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.tm=function(G){return Object.assign({},G.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var r4v=function(){this.maxSize=100;this.timeToDataCache=new Map};
r4v.prototype.get=function(G){var B=this.timeToDataCache.get(G);B&&(this.timeToDataCache.delete(G),this.timeToDataCache.set(G,B));if(B&&B.rootData&&(_.X("web_use_response_store_for_history_cache")||_.X("mweb_use_new_history_manager"))){var F=_.te().resolve(_.tf),D=W67(B),u=!!D;if(D){if(D.content){var R=gA(F,D.content);u&&R?B.rootData.response=_.tm(R):u=!1}D.player&&(R=gA(F,D.player),u&&R?B.rootData.playerResponse=_.tm(R):u=!1);D.reelSequence&&(F=gA(F,D.reelSequence),u&&F?B.rootData.reelWatchSequenceResponse=
_.tm(F):u=!1)}u||(this.timeToDataCache.delete(G),B=void 0)}return B};
r4v.prototype.set=function(G,B){if(B.rootData&&(_.X("web_use_response_store_for_history_cache")||_.X("mweb_use_new_history_manager"))){var F=W67(B),D=Object.assign({},B.rootData);F&&(F.content&&B.rootData.response&&(H1q(this,F.content,B.rootData.response),D.response=null),F.player&&B.rootData.playerResponse&&(H1q(this,F.player,B.rootData.playerResponse),D.playerResponse=null),F.reelSequence&&B.rootData.reelWatchSequenceResponse&&(H1q(this,F.reelSequence,B.rootData.reelWatchSequenceResponse),D.reelWatchSequenceResponse=
null));B=new L6U(D,B.scrollTop)}this.timeToDataCache.has(G)?this.timeToDataCache.delete(G):this.timeToDataCache.size>=this.maxSize&&(F=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(F.value));this.maxSize!==0&&this.timeToDataCache.set(G,B)};
r4v.prototype.clear=function(){this.timeToDataCache.clear()};
var W67=function(G){var B=_.te().resolve(_.fH(_.E$)),F;if((F=G.rootData)==null?0:F.endpoint)return B==null?void 0:JgG(B,G.rootData.endpoint);var D;_.em(new _.Uf("History snapshot response data does not contain endpoint",(D=G.rootData)==null?void 0:D.url));return null},H1q=function(G,B,F){if(G.maxSize>0){var D;
(G=(D=F.responseContext)==null?void 0:D.maxAgeSeconds)&&Number(G)>0&&(D=_.te().resolve(_.tf),F=tZ(F,G),D.put(B,new _.Zs(F)))}};var kWq=function(G,B,F){this.endpoint=B;this.JSC$31244_savedComponentState=F===void 0?null:F;this.entryTime=G};var VkS=1;var Sp=function(G){var B=function(){var F=G.apply(this,[].concat(_.gi(_.xS.apply(0,arguments))))||this;F.historyEntryTime=0;F.historySnapshotCache=F.createHistoryCache();return F};
_.r(B,G);B.prototype.createHistoryCache=function(){return new r4v};
B.prototype.saveAndReplace=function(F,D,u){var R=window.location.href;var N=N===void 0?{}:N;var y=(y=this.browserHistory.getState())&&y.entryTime?y.entryTime:vtI();F=this.createNewHistoryEntry(F,N,y);this.saveSnapshot(y,D,u);this.replaceState(F,R||window.location.href)};
B.prototype.saveAndPush=function(F,D,u,R,N){N=N===void 0?{}:N;this.saveSnapshot(this.historyEntryTime,u,R);u=this.historySnapshotCache;R=this.historyEntryTime;var y=u.timeToDataCache.keys();y=_.C(y);for(var U=y.next();!U.done;U=y.next())U=U.value,U>R&&u.timeToDataCache.delete(U);D=this.createNewHistoryEntry(D,N);this.pushState(D,F)};
B.prototype.saveSnapshot=function(F,D,u){this.historySnapshotCache.set(F,new L6U(D,u))};
B.prototype.createNewHistoryEntry=function(F,D,u){u=u===void 0?vtI():u;return new kWq(u,F,D)};
B.prototype.handlePopstate=function(F){var D=G.prototype.handlePopstate.call(this,F),u=null,R=null,N=!1,y=null;D&&D.entryTime&&(y=this.historySnapshotCache.get(D.entryTime)||null,N=D.entryTime>this.historyEntryTime,this.historyEntryTime=D.entryTime,u=D.endpoint,R=D.JSC$31244_savedComponentState);this.handleHistoryCacheLoad(new _.jfG(u,N,y,R),F);return D};
B.prototype.pushState=function(F,D){Number(F==null?void 0:F.entryTime)>=0&&(this.historyEntryTime=F.entryTime);G.prototype.pushState.call(this,F,D)};
B.prototype.replaceState=function(F,D){Number(F==null?void 0:F.entryTime)>=0&&(this.historyEntryTime=F.entryTime);G.prototype.replaceState.call(this,F,D)};
B.prototype.handleHistoryCacheLoad=function(){};
return B}(f3),O1T=function(){var G=Sp.call(this,new Qfq)||this;
G.dispatchElement=null;G.entryIndex=0;return G};
_.r(O1T,Sp);_.w=O1T.prototype;_.w.init=function(G){G=G===void 0?!0:G;Sp.prototype.init.call(this);this.initialized||(G||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.w.handlePopstate=function(G){var B=null;G.state||(B="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Sp.prototype.handlePopstate.call(this,G);var F=new CustomEvent("yt-history-pop",{cancelable:!0});_.T1(this.dispatchElement,"yt-history-pop",[F,{errorMsg:B}]);_.Ia(this.dispatchElement,"yt-close-all-popups-action");if(!F.defaultPrevented){F=_.te().resolve(_.pA);B=F.getCurrentData();var D=F.getCurrentPage();F=0;D?(D=_.T1(this.dispatchElement,"yt-get-page-offset",
[D]),D.length>0&&(F=D[0])):_.em(new _.Uf("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:B?B.page:"undefined"}));B&&(B.csn=_.qW());this.saveSnapshot(this.historyEntryTime,B,F)}return Sp.prototype.handlePopstate.call(this,G)};
_.w.handleHistoryCacheLoad=function(G,B){G.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.C(_.Ia(this.dispatchElement,"yt-history-will-navigate",[B])).next().value||_.T1(this.dispatchElement,"yt-history-load",[B,G]))};
_.w.pushState=function(G,B){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var F=new _.Uf("history.pushState is not a function",this.getDebugString());_.k2(F)}Sp.prototype.pushState.call(this,G,B)};
_.w.replaceState=function(G,B){if(!this.browserHistory.boundHistoryReplaceState){var F=new _.Uf("history.replaceState is not a function",this.getDebugString());_.k2(F)}Sp.prototype.replaceState.call(this,G,B)};
_.w.saveAndPush=function(G,B,F,D,u){u=u===void 0?{}:u;F&&(F.csn=_.qW());Sp.prototype.saveAndPush.call(this,G,B,F,D,u)};
_.w.getDebugString=function(){var G=[];this.initialized&&G.push("i");this.browserHistory.boundHistoryReplaceState&&G.push("bhr");this.browserHistory.boundHistoryPushState&&G.push("bhs");"replaceState"in this.browserHistory.debugInfo&&G.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&G.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&G.push("ei:"+String(this.entryIndex));return G.join(",")};
_.s5=function(G,B){G.init(!0);var F=G.browserHistory.getState();G.replaceState(F,fA(B))};
O1T.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.xV=new _.oV("DESKTOP_HISTORY_MANAGER_TOKEN");var euv=[10,20,30,40,50,60],P9=function(){this.currentPartitionIndex=0},$ML=function(G){Rks({mainAppWeb:_.es(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},zuy=function(G){Rks({mainAppWeb:_.es(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},b1L=function(G){return G.currentPartitionIndex>=0&&G.currentPartitionIndex<euv.length?euv[G.currentPartitionIndex]:-1},VMy=function(G){return G.currentPartitionIndex>0&&G.currentPartitionIndex-1<euv.length?euv[G.currentPartitionIndex-1]:-1};
P9.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var G=VMy(this);G>0&&zuy(G);G=b1L(this);G>0&&$ML(G);v1t(this)}};
var v1t=function(G){var B=b1L(G);if(B>0){var F=VMy(G);F<0&&(F=0);G.intervalId=_.Lu.addJob(function(){var D=VMy(G);D>0&&zuy(D);D=b1L(G);D>0&&$ML(D);v1t(G)},3,(B-F)*6E4);
G.currentPartitionIndex+=1}else G.currentPartitionIndex=-1};var o1P=function(G){Cr.call(this,G,132);this.isDocument=G===document.documentElement};
_.r(o1P,Cr);o1P.prototype.calculateScrollDelta=function(G,B,F){var D=0;G<B?D=G<B-100?-48:-8:G>B+F&&(D=G>B+F+100?48:8);return D};
o1P.prototype.JSC$11712_onMouseMove=function(G){this.isDocument||(G.clientX=G.event_.pageX,G.clientY=G.event_.pageY);Cr.prototype.JSC$11712_onMouseMove.call(this,G)};_.MMw=function(G,B){var F=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14871_dragListGroup=null;this.onDraggerCreated=function(D){var u=D.JSC$11708_dragger;u.scrollTarget_=F.scrollElement;D=D.draggerEl;u&&D.menuOpened&&u.setEnabled(!1)};
this.onDragStart=function(D){var u=D.draggerEl;D=D.currDragItem;var R=Object.assign({},D==null?void 0:D.data);R.trackingParams=void 0;u.data=R;u.style.position="absolute";u.style.width=(D==null?void 0:D.clientWidth)+"px";u.style.zIndex="2030";u.onDrag&&u.onDrag();D=_.KT(u);(R=D.querySelector("ytd-app"))?_.IF(R).appendChild(u):D.body.appendChild(u);F.dragScrollSupport=new o1P(F.scrollElement);F.dragScrollSupport.horizontalScrolling_=!1;u=F.dragScrollSupport;u.constrainScroll_=!!u.margin_&&!1};
this.onDrop=function(D){F.handleDrop(D);F.dragScrollSupport&&(_.ve(F.dragScrollSupport),F.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(F.JSC$14871_dragListGroup){var D=F.JSC$14871_dragListGroup;wIq(D,D.currDragItem_)}};
this.handleDrop=B};
_.Gl=function(G){G.JSC$14871_dragListGroup&&(_.qX(G.JSC$14871_dragListGroup,xhL,G.onDragStart),_.qX(G.JSC$14871_dragListGroup,iAG,G.onDragStart),G.JSC$14871_dragListGroup.dispose(),G.JSC$14871_dragListGroup=null);G.dragScrollSupport&&(_.ve(G.dragScrollSupport),G.dragScrollSupport=null);G.scrollElement.removeEventListener("scroll",G.onReorderableScroll)};
_.pka=function(G,B,F,D){D=D===void 0?"":D;_.Gl(G);F&&(G.scrollElement=F);G.JSC$14871_dragListGroup=new EV;G.JSC$14871_dragListGroup.hysteresisDistance_=2;D6y(G.JSC$14871_dragListGroup,B);G.JSC$14871_dragListGroup.draggerElClasses_=ES("dragging").split(" ");D&&uTT(G.JSC$14871_dragListGroup,function(u){var R=u||document,N=null;R.getElementsByClassName?N=R.getElementsByClassName(D)[0]:N=zFT("*",D,u);return N||u});
_.H1(G.JSC$14871_dragListGroup,S_s,G.onDraggerCreated);_.H1(G.JSC$14871_dragListGroup,xhL,G.onDragStart);_.H1(G.JSC$14871_dragListGroup,iAG,G.onDrop);G.JSC$14871_dragListGroup.init();G.scrollElement.addEventListener("scroll",G.onReorderableScroll,{passive:!0})};
_.ZN.Object.defineProperties(_.MMw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var Y6v=function(){this.skipNextNavigation=!1},A4y=function(G,B,F){if(!B)return!1;
if(G.skipNextNavigation)return G.skipNextNavigation=!1;if(_.Q(F,_.MI))return!1;var D,u,R;if((D=_.Q(F,_.x9))==null?0:(u=D.browseEndpointContextSupportedConfigs)==null?0:(R=u.browseEndpointContextMainConfig)==null?0:R.skipConfirmation)return!1;var N;return((N=_.Q(B.commandMetadata,_.xy))==null?void 0:N.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Y6v.prototype.showConfirmationDialog=function(G,B){this.navigateParams=B;this.customConfirmationCommand?_.te().resolve(_.Wr).resolveCommand(this.customConfirmationCommand):(B={openPopupAction:{popup:{confirmDialogRenderer:{title:_.$9(_.G7("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.$9(_.G7("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.$9(_.G7("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.$9(_.G7("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.pZ.getInstance().triggerAction("yt-open-popup-action",B,G))};
Y6v.prototype.cancelPendingNavigation=function(){var G;((G=this.navigateParams)==null?void 0:G.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var dM7=function(){},c4N=function(G,B,F,D,u,R,N){F=F===void 0?{}:F;
N=N===void 0?{}:N;var y=_.te().resolve(_.E$),U,q=(U=_.Q(B,_.MI))==null?void 0:U.url;return q?OfQ(y,q,F,window.location.href,function(h,K){J4w(G,h,K,!1,!0,F,R,D)},function(){return!1}):O$(y,B,F,window.location.href,GB(B),function(h,K){J4w(G,h,K,!1,!0,F,R,D)},u,N)},J4w=function(G,B,F,D,u,R,N,y){if(!G.JSC$14886_chunkHandler)if(F.page==="learning_journey_watch"&&_.X("web_enable_canvas_on_learning_journey")){var U=!_.Q(y,_.x9);
u=u||D;if(U)if(u){if(_.X("kevlar_continue_playback_without_player_response")){var q;var h=(q=_.Q(y,_.Ow))==null?void 0:q.videoId}D={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:D,previousVideoId:h},tempData:R}}else D={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else D={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};G.JSC$14886_chunkHandler=new eeq(_.AZ,D,N,U,u)}else if(F.page==="watch"||F.page==="learning_journey_watch")if(u||D){if(_.X("kevlar_continue_playback_without_player_response")){var K;
U=(K=_.Q(y,_.Ow))==null?void 0:K.videoId}G.JSC$14886_chunkHandler=new bOq(_.AZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:D,previousVideoId:U},tempData:R},N)}else G.JSC$14886_chunkHandler=new kCy(_.AZ);else F.page==="shorts"&&u&&!D?G.JSC$14886_chunkHandler=new zey(_.AZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:R},N):G.JSC$14886_chunkHandler=new OO7(N);G.JSC$14886_chunkHandler.processChunk({endpoint:B,data:F});return G.JSC$14886_chunkHandler.n5.promise},
Tfq=function(G,B,F,D,u){(F=_.tcT(F))&&J4w(G,B,F,!1,!0,D,void 0,u)};_.I1T=new _.oV("NAVIGATION_SERVICE_TOKEN");var f1t=function(){this.pendingNavigationPromise=null};
_.w=f1t.prototype;_.w.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.w.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.w.addEventListener=function(){throw Error("zh");};
_.w.dispatchEvent=function(){throw Error("zh");};
_.w.removeEventListener=function(){throw Error("zh");};var tMa=new _.oV("APP_ROOT");var MkJ=null;var Z1P=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],BM=function(){_.W1.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];g1q(this)};
_.r(BM,_.W1);BM.prototype.verifyUser=function(){var G=g1q(this),B=G.logout;if(!G.sessionChange)return!0;this.dispatchEvent("ytsessionchange");B&&this.dispatchEvent("ytuserinvalid");return!1};
var g1q=function(G){var B=Z1P.map(function(u){var R;return(R=_.C8.get(u))!=null?R:""}),F=B.some(function(u,R){return G.sessionCookies&&G.sessionCookies[R]!==""&&u===""}),D=B.some(function(u,R){return G.sessionCookies&&G.sessionCookies[R]!==u});
G.sessionCookies=B;return{logout:F,sessionChange:D}};
BM.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Lu.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var cpQ=new _.oV("POSTMESSAGE_TUNNEL_TOKEN");var Apo=["/parent_tools","/file_download","/artist_roster"],fml=[Eis,hDq,K_v,mPv,aJG,qht,X7t,QkL];var iI=new _.oV("NAVIGATION_CONFIRMATION_SERVICE");var S6N="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /recap /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),sfv=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],Fk=function(G,B){this.pendingNavigationPromise=null;this.JSC$14909_clientRoot=G;this.historyManager=B;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=
new dM7;this.debugString=G.is;G={"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};_.Y2(_.pZ.getInstance(),G,this.JSC$14909_clientRoot)},i0L,FcL,Dcq,uXL,BWP;
_.r(Fk,f1t);Fk.prototype.reload=function(){_.js(window.location.href)};
var SPU=function(G){G.currentEndpoint&&_.Q(G.currentEndpoint,_.Fu)?G.reload():G.currentEndpoint&&G.navigate(G.currentEndpoint,!0,void 0,{disableCache:!0})};
Fk.prototype.navigate=function(G,B,F,D,u,R,N,y){B=B===void 0?!1:B;F=F===void 0?{}:F;D=D===void 0?{}:D;var U=_.te().resolve(iI),q;if(!N&&A4y(U,(q=this.currentEndpoint)!=null?q:void 0,G))return U.showConfirmationDialog(this.JSC$14909_clientRoot.parentElement,{endpoint:G,reload:B,params:F,tempData:D,requestType:u,createScreenConfig:R}),!1;var h=_.kl();_.Oc(h,"eocs")||h.parkOrScheduleJob(function(){h.processSignal("eocs")},10,"eor");
pAQ();N=GB(G);U=D.autonav==="1";q=_.qW();BM.instance||(BM.instance=new BM);var K=BM.instance.verifyUser(),a;if(_.X("enable_dark_theme_only_on_shorts")){var m=document.documentElement.hasAttribute("dark"),L=_.rK(!0)==="USER_INTERFACE_THEME_DARK";if(N==="shorts"){if(!m)if(_.X("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.js((W=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:W.url,void 0,void 0,window.top)}}else{var e;_.js(_.TJ((e=_.Q(G==
null?void 0:G.commandMetadata,_.xy))==null?void 0:e.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.X("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!m){var b;_.js(_.TJ((b=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:b.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(L!==m){var M;_.js(_.TJ((M=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:M.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(N==="watch"){if(xMN(_.te().resolve(_.WP),
G)&&(K||_.X("fix_miniplayer_navigation_killswitch")))return!1;_.X("block_all_player_prefetch_requests")||(a=ZOq(_.IG(_.gB),G,U))}else{var t,T=(t=_.Q(this.currentEndpoint,_.Ow))==null?void 0:t.videoId;T&&_.nM.getInstance().then(function(v6){v6&&v6.set("yt-miniplayer-shown-video-id",T)})}a&&(F.frags=a.missingFragments_.join(","));
W=null;var A;e=(A=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:A.ignoreNavigation;if(!e)if(_.X("kevlar_command_url")){var Z;W=(Z=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?void 0:Z.url}else W=_.zag(G,F);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.qa({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Fi(XK(),"CANCELLED")}W&&(this.lastNavigationUrl=W);frI();_.Vc("IS_HOMEPAGE_COLD",
!1);_.Vc("IS_RESULTS_PAGE_COLD",!1);_.Vc("IS_WATCH_PAGE_COLD",!1);G.loggingUrls&&G.loggingUrls.forEach(function(v6){v6.baseUrl&&_.oB(v6.baseUrl)});
_.Sno(G,R?R.layer:0)&&_.X("kevlar_flush_logs_on_away_navigation")&&_.H$();if(tkc(G))return!1;O27(N,u);if(!W)return e||_.em(new _.Uf("Can't construct url for endpoint",G)),_.Fi(XK(),"FAILURE"),!1;_.YnJ();A=G&&_.Q(G,_.x9)&&_.Q(G,_.x9).browseId.startsWith("UC");F=(Z=_.X("enable_dark_theme_only_on_shorts")&&N==="shorts"?!1:_.Wm()&&document.documentElement.hasAttribute("dark")!==_.Lp())?{themeRefresh:1}:{};Z&&!_.y5()&&_.rK()==="USER_INTERFACE_THEME_DARK"&&(F.theme="dark");A=Z||PVG(W)&&!A&&!_.X("kevlar_disable_url_allowlist");
K||(A=!0);if(A||_.v5("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var P;var RI=(P=window.top)==null?void 0:P.location.href}catch(v6){var yo;RI=(yo=v6)==null?void 0:yo.message}_.em(new _.Uf("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:RI}))}G=_.X("kevlar_redirect_on_window_killswitch")?window.top:window;QW(W);_.js(_.TJ(W,F),void 0,void 0,G);_.Fi(XK(),"ABORTED");return!1}_.X("kevlar_early_popup_close")&&_.T1(this.JSC$14909_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14886_chunkHandler=void 0;var hg;RI=GB((hg=this.currentEndpoint)!=null?hg:void 0);(hg=N==="shorts"&&RI==="shorts")||_.sec();_.pH(AXl)("nr",void 0);U&&_.qa({webInfo:{navigationReason:"an"}});G.clickTrackingParams&&(D.itct=G.clickTrackingParams,D.csn=q);d5S(D);D.endpoint=JSON.stringify(G);_.X("enable_unknown_lact_fix_on_html5")&&(_.te().resolve(_.uN),D.lact=_.Z8());_.UK.isEmpty(D)||_.V9(W,D);!_.X("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(R=Object.assign({},{layer:0},R,{parentLayer:3}));this.pendingNavigationPromise=R=c4N(this.pageFetcher,G,D,this.currentEndpoint,this.JSC$14909_isNetworkPromiseStale.bind(this),R,y);R=R.then(this.handleNavigateSuccess.bind(this,R,G,a,D),this.handleNavigateFail.bind(this,R,G));_.Bv().navigationFinishPromise=R;B={endpoint:G,pageType:N,url:fA(W),reload:!!B,noProgressBar:hg};u&&(B.type=u);var US;u=_.sX((US=this.currentEndpoint)!=null?US:null);US=_.sX(G!=null?G:null);this.fireEvent("yt-navigate-start",
B);var aI;(aI=_.te().resolve(_.fH(_.I1T)))==null||aI.publish("navigation-start",{sourcePageSubtype:u,destinationPageSubtype:US});a&&Tfq(this.pageFetcher,G,a,D,this.currentEndpoint);return!0};
Fk.prototype.JSC$14909_isNetworkPromiseStale=function(G){return G!=this.pendingNavigationPromise};
var G3q=function(G,B,F,D,u){var R=GB(B);B={endpoint:B,pageType:R};u&&(B.errorMessage=u);_.em(F);B.navigationDoneMs=_.KR("nd");B.navigationErrorReason=D;G.fireEvent("yt-navigate-error",B)};
Fk.prototype.handleNavigateFail=function(G,B,F){var D=void 0;F instanceof _.eg&&(D=F,ea8(F));if(this.JSC$14909_isNetworkPromiseStale(G))return _.U_(D);_.Fi(XK(),"FAILURE");G3q(this,B,F,"101");return _.U_(F)};
Fk.prototype.handleNavigateSuccess=function(G,B,F,D,u){if(this.JSC$14909_isNetworkPromiseStale(G))return _.ZL();this.pendingNavigationPromise=null;if(!u)return B=new _.Uf("Missing data in response for navigation endpoint",B),_.U_(B);if(u.reload)return window.location.reload(!0),_.ZL();F&&(G={},_.UK.extend(G,_.tcT(F),u),u=G);var R,N;F=(R=u)==null?void 0:(N=R.timing)==null?void 0:N.responseStart;F!=null&&_.KR("srt",F);_.KR("pdc");var y,U;R=(y=u)==null?void 0:(U=y.timing)==null?void 0:U.info;R!=null&&
(y=_.pH(_.cXI)(R),_.qa(y));_.Fi(XK(),"SUCCESS");BWP(this,B,u,1,D);return _.ZL()};
var PVG=function(G){var B=G;_.X("kevlar_no_redirect_to_classic_2_ks")||(B=(new _.ea(G)).getPath());if(B==="/"||B==="/red")return!1;var F=!0;S6N.forEach(function(D){G.indexOf(D)===0&&(F=!1)});
sfv.forEach(function(D){var u=D.url;_.X(D.expFlag)&&G.indexOf(u)===0&&(F=!1)});
return F};
Fk.prototype.publishPageData=function(G){this.fireEvent("yt-page-data-fetched",{pageData:G})};
i0L=function(G,B,F,D,u,R){var N=null;B.page!=="watch"&&B.page!=="learning_journey_watch"||D?B.filler||_.T1(G.JSC$14909_clientRoot,"yt-stop-old-player",[B]):N=J4w(G.pageFetcher,u,B,F,!1,R,void 0,G.currentEndpoint);if(N)return N.then(G.publishPageData.bind(G,B));G.publishPageData(B);return _.ZL()};
FcL=function(G,B,F){var D=null;if(!F)return D=new _.Uf("Empty data",G.debugString,B);var u=F.response;if(!u)return D;var R={endpointType:GB(B)||"unknown"};u.responseContext?(u=u.responseContext.errors)&&(D=new _.Uf("Errors in response context",G.debugString,B,u,R)):D=u.error||u.errorMetadata?new _.Uf("Errors in response",G.debugString,B,u.error,u.errorMetadata,R):new _.Uf("responseContext missing",G.debugString,B,Object.keys(u).sort().join(","),R);var N,y,U,q;if(G=F==null?void 0:(N=F.response)==null?
void 0:(y=N.responseContext)==null?void 0:(U=y.webResponseContextExtensionData)==null?void 0:(q=U.webResponseContextDebugData)==null?void 0:q.debugErrorMessages)for(N=0;N<G.length;N++);return D};
Dcq=function(G){var B,F,D,u;return G==null?void 0:(B=G.response)==null?void 0:(F=B.responseContext)==null?void 0:(D=F.errors)==null?void 0:(u=D.error)==null?void 0:u["0"]};
uXL=function(G,B){var F;if(F=B.url&&!B.url.startsWith("/clip"))F=B.url,F=!_.X("webfe_parse_debug_param_in_resolveurl_service")&&G.searchDebugUrlMatcher.test(F)||daQ(F)?!0:!1;if(F)daQ(B.url)&&_.c5(window.location.href).themeRefresh?(B=_.iB(B.url,"themeRefresh"),_.s5(G.historyManager,B)):B.url&&!bK6(B.url)&&_.s5(G.historyManager,B.url);else if(B.endpoint){var D,u,R;(F=(D=B.endpoint)==null?void 0:(u=D.commandMetadata)==null?void 0:(R=u.webCommandMetadata)==null?void 0:R.url)&&!bK6(F)&&_.s5(G.historyManager,
F);F&&B.url&&F!=B.url&&!B.url.match("playnext=1")&&new _.Uf("Response url mismatch in response data",G.debugString,F,B.url)}};
_.R$q=function(G,B,F,D,u,R,N,y){R=R===void 0?!1:R;var U=_.te().resolve(iI),q;if(!y&&A4y(U,(q=G.currentEndpoint)!=null?q:void 0,B))return U.showConfirmationDialog(G.JSC$14909_clientRoot.parentElement,{endpoint:B,data:F,navigationType:D,tempData:u,isMiniplayer:R,isForwardHistoryNavigation:N==null?void 0:N.forward}),_.ZL();G.pageFetcher.JSC$14886_chunkHandler=void 0;return BWP(G,B,F,D,u,R)};
BWP=function(G,B,F,D,u,R){R=R===void 0?!1:R;G.isMiniplayerExpansion=R;var N=D===2;G.currentEndpoint=B;G.numNavigations++;G.numNavigations&&(ODl.navigationCount=G.numNavigations);_.Vc("NUM_NAV",G.numNavigations);var y=FcL(G,B,F);if(y)return G3q(G,B,y,"102",Dcq(F)),_.U_(y);var U,q,h,K;y=F.rootVe||(F==null?void 0:(U=F.response)==null?void 0:(q=U.responseContext)==null?void 0:(h=q.webResponseContextExtensionData)==null?void 0:(K=h.ytConfigData)==null?void 0:K.rootVisualElementType);!N&&F&&uXL(G,F);var a,
m;U=F==null?void 0:(a=F.response)==null?void 0:(m=a.responseContext)==null?void 0:m.maxAgeSeconds;if(!N&&!isNaN(U)){var L;_.X("kevlar_use_response_ttl_to_invalidate_cache")?L=(0,_.Zl)()+1E3*U:_.X("kevlar_always_invalidate_cache")&&(L=0);isNaN(L)||(F.expirationTime=L)}_.IG(_.gB).prefetchCache_.clear();N||F.page!=="watch"||D!==1?D=i0L(G,F,N,!!R,B,u):(G.publishPageData(F),D=_.ZL());u=D.then(function(){var W=GB(B);W={endpoint:B,pageType:W,fromHistory:N,response:F};W.navigationDoneMs=_.KR("nd");G.fireEvent("yt-navigate-finish",
W);var e;(e=_.te().resolve(_.fH(_.I1T)))==null||e.publish("navigation-end")});
F.csn&&y&&F.clientSideGrafts&&D.then(G.attachClientSideGrafts.bind(G,F,_.Uw()));return u};
_.w=Fk.prototype;_.w.attachClientSideGrafts=function(G,B){G.clientSideGrafts&&B&&G.clientSideGrafts.forEach(function(F){if(B&&F){var D=_.yX(F);_.X("combine_ve_grafts")?_.Rh().graftServerVe(F,B):_.WT(G.csn,B,D)}})};
_.w.handleSignalActionHistoryBack=function(){window.history.back()};
_.w.handleSignalActionCloseWindow=function(){window.close()};
_.w.handleSignalActionReloadPage=function(){this.reload()};
_.w.handleSignalActionSoftReloadPage=function(){SPU(this)};
_.w.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.w.fireEvent=function(G,B){G=new CustomEvent(G,{bubbles:!0,cancelable:!1,composed:!0,detail:B});this.dispatchEvent(G)};
_.w.addEventListener=function(G,B){this.JSC$14909_clientRoot.addEventListener(G,B)};
_.w.dispatchEvent=function(G){return this.JSC$14909_clientRoot.dispatchEvent(G)};
_.w.removeEventListener=function(G,B){this.JSC$14909_clientRoot.removeEventListener(G,B)};
Fk[ZA]=[tMa,_.xV];var wEU;var C0y=function(){return _.p.apply(this,arguments)||this};
_.r(C0y,_.p);_.ZN.Object.defineProperties(C0y,{template:{configurable:!0,enumerable:!0,get:function(){if(wEU===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);wEU=G}G=wEU;return G}}});
_.c([_.k(CVs.YtPlayerBehavior),_.I("design:type",Object)],C0y.prototype,"ytPlayerBehavior",void 0);_.c([_.mC({is:"ytd-player"})],C0y);var NWa;var yaP;var n_P;var Dp=function(){var G=_.p.apply(this,arguments)||this;G.forceModernIconButton=!1;G.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return G};
_.r(Dp,_.p);Dp.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]]"}}}}}};
Dp.prototype.handleAccountLinkingStateChangedCommand=function(G){if(G=_.Q(G,vAP)){var B,F=(B=this.data)==null?void 0:B.providerKey;B=G.providerKey;F&&B&&F.id===B.id&&F.subject===B.subject&&(G=G.linked,G!==void 0&&(this.set("data.linked",G),this.notifyPath("data.linked"),_.X("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(G)))}};
Dp.prototype.setPlayerAccountLinkState=function(G){var B=new s1w;x_q(B,gZw(new ZVT,G));var F=_.AZ();F&&F.getPlayerPromise().then(function(D){D.setAccountLinkState(_.xM(B.JSC$12637_serializeBinary(),4));D.updateAccountLinkingConfig(G)})};
Dp.prototype.handleShowAccountLinkDialog=function(){var G=this.get("button.buttonRenderer.command");G&&_.Sa([G],this.hostElement)};
_.ZN.Object.defineProperties(Dp.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}}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.c([_.k([_.Za.YtActionHandlerBehavior]),_.I("design:type",Object)],Dp.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Dp.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Dp.prototype,"overrides",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Dp.prototype,"forceModernIconButton",void 0);_.c([_.v({value:"bottom"}),_.I("design:type",String)],Dp.prototype,"buttonTooltipPosition",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Dp.prototype,"forceIconButton",void 0);_.c([_.v(),_.I("design:type",Boolean)],Dp.prototype,"disableTextTransform",void 0);
_.c([_.O("data","data.linked","data.isWarning"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dp.prototype,"button",null);_.c([_.mC({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Dp);
_.d(Dp,"ytd-account-link-button-renderer",function(){if(n_P!==void 0)return n_P;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return n_P=G},{mode:1});var ltL;var UcT=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],uI=function(){return _.p.apply(this,arguments)||this};
_.r(uI,_.p);uI.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
uI.prototype.updateButtonActiveState=function(){var G=this,B=!!UcT.find(function(F){return G.currentState===F});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.X("enable_web_delhi_icons")&&(B=!1);this.button&&(this.button.isPressed=B)};
_.ZN.Object.defineProperties(uI.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.playlistLoopStateEntity)==null?void 0:G.state)||((B=this.data)==null?void 0:B.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=void 0,B;if(this.currentState&&((B=this.data)==null?0:B.states)){B=_.C(this.data.states);for(var F=B.next();!F.done;F=B.next()){F=_.Q(F.value,_.s37);var D=void 0;if(((D=F)==null?void 0:D.state)===this.currentState){G=F;break}}}return G}}});
uI.prototype.updateButtonActiveState=uI.prototype.updateButtonActiveState;_.c([_.k(_.hf),_.I("design:type",Object)],uI.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.R5.playlistLoopStateEntitySelector}),_.I("design:type",Object)],uI.prototype,"playlistLoopStateEntity",void 0);_.c([_.v(),_.I("design:type",Object)],uI.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],uI.prototype,"forceIconOnly",void 0);_.c([_.iA("ytd-button-renderer"),_.I("design:type",_.MR)],uI.prototype,"button",void 0);
_.c([_.O("data","playlistLoopStateEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],uI.prototype,"currentState",null);_.c([_.Ga("currentButtonStateRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uI.prototype,"updateButtonActiveState",null);_.c([_.O("currentState"),_.I("design:type",Object),_.I("design:paramtypes",[])],uI.prototype,"currentButtonStateRenderer",null);
_.c([_.mC({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],uI);
_.d(uI,"ytd-playlist-loop-button-renderer",function(){if(ltL!==void 0)return ltL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ltL=G},
{mode:1});var qUy;var E_N=_.G7("DOWNLOAD",{},"Download"),h$t=_.G7("DOWNLOADING",{},"Downloading"),Kca=_.G7("DOWNLOADED",{},"Downloaded"),at7=_.G7("RETRY",{},"Retry"),R8=function(){var G=_.p.apply(this,arguments)||this;G.forceIconButton=!1;G.forceIconOnly=!1;G.overrides=!1;G.buttonTooltipPosition=!1;G.styleActionButton=!1;G.disableTextTransform=!1;G.downloadProgress=0;G.isDownloadComplete=!1;G.isHidden=!0;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return G};
_.r(R8,_.p);_.w=R8.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.dataChanged=function(){var G;(G=this.data)!=null&&G.text||(G=_.mD(_.VU().getState(),this.videoId),this.updateButtonState(G))};
_.w.computeVideoId=function(G){return G};
_.w.computePlayerStateEntityKey=function(G){return G};
_.w.showHideButton=function(){this.updateButtonVisibility()};
_.w.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var G;((G=this.playerStateEntity)==null?void 0:G.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.w.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.w.updateButtonState=function(G){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==h$t||!_.DV(G))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=E_N;var B="OFFLINE_DOWNLOAD";var F="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":G=at7;B="OFFLINE_DOWNLOAD";F="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":G=Kca;B="OFFLINE_PIN";F="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":G=
h$t;B="OFFLINE_DOWNLOADING_ZERO";F="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":G=at7;B="OFFLINE_DOWNLOAD";F="ACTION_RETRY";break;default:G=E_N,B="OFFLINE_DOWNLOAD",F="ACTION_ADD"}this.isVideoDeletedByUser&&(G=E_N,B="OFFLINE_DOWNLOAD",F="ACTION_ADD");var D=Object.assign({},this.data);D.text=_.$9(G);D.tooltip=G;D.icon={iconType:B};D.size="SIZE_DEFAULT";D.style="STYLE_DEFAULT";_.Q(D.command,_.GP)&&(_.Q(D.command,_.GP).action=F);this.set("data",D)}};
_.w.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?G="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var B;G!==((B=this.data.icon)==null?void 0:B.iconType)&&(B=Object.assign({},this.data),B.text=_.$9(h$t),B.tooltip=h$t,B.icon={iconType:G},_.Q(B.command,_.GP)&&(_.Q(B.command,_.GP).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",B))}};
R8.prototype.updateProgress=R8.prototype.updateProgress;R8.prototype.onTransferStateChanged=R8.prototype.onTransferStateChanged;R8.prototype.showHideButton=R8.prototype.showHideButton;R8.prototype.dataChanged=R8.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],R8.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],R8.prototype,"forceIconButton",void 0);
_.c([_.v(),_.I("design:type",Object)],R8.prototype,"forceIconOnly",void 0);_.c([_.v(),_.I("design:type",Object)],R8.prototype,"overrides",void 0);_.c([_.v(),_.I("design:type",Object)],R8.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.I("design:type",Object)],R8.prototype,"styleActionButton",void 0);_.c([_.v(),_.I("design:type",Object)],R8.prototype,"disableTextTransform",void 0);
_.c([_.v({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.I("design:type",String)],R8.prototype,"videoId",void 0);_.c([_.v({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.I("design:type",String)],R8.prototype,"playerStateEntityKey",void 0);_.c([_.v(),_.I("design:type",Object)],R8.prototype,"data",void 0);_.c([_.v({selector:QU,selectorArgs:["videoId"]}),_.I("design:type",Object)],R8.prototype,"downloadProgress",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],R8.prototype,"isDownloadComplete",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],R8.prototype,"isHidden",void 0);_.c([_.v({selector:_.mD,selectorArgs:["videoId"]}),_.I("design:type",String)],R8.prototype,"transferState",void 0);_.c([_.v({selector:_.Z3g,selectorArgs:["videoId"]}),_.I("design:type",Object)],R8.prototype,"isVideoDeletedByUser",void 0);
_.c([_.v({selector:Jfs,selectorArgs:["videoId"]}),_.I("design:type",Object)],R8.prototype,"offlineabilityState",void 0);_.c([_.v({selector:_.Ze,selectorArgs:["playerStateEntityKey"]}),_.I("design:type",Object)],R8.prototype,"playerStateEntity",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],R8.prototype,"showTooltips",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],R8.prototype,"sendCommandWhenDisabled",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],R8.prototype,"disabled",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],R8.prototype,"dataChanged",null);_.c([_.Ry("offlineabilityState","playerStateEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],R8.prototype,"showHideButton",null);
_.c([_.Ry("transferState","isVideoDeletedByUser"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],R8.prototype,"onTransferStateChanged",null);_.c([_.Ry("downloadProgress"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],R8.prototype,"updateProgress",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],R8);
_.d(R8,"ytd-download-button-renderer",function(){if(qUy!==void 0)return qUy;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return qUy=G},{mode:2});var mcw;var XEL,QbG=function(){if(XEL!==void 0)return XEL;var G=document.createElement("template");_.H(G,'\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 XEL=G};var jbv=_.X("web_button_rework")&&_.on("BUTTON_REWORK")||_.X("web_button_rework_with_live"),Lc7=_.sD("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,w4=function(){var G=_.p.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.alignByText=!1;G.isShorts=!1;G.animatedText=!1;G.shouldAnimate=!1;G.JSC$14947_browserSupportsAnimation=_.X("web_supports_animations_api");G.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};G.onTap=function(){var B;if((B=G.data)==null||!B.defaultNavigationEndpoint){var F;B=!((F=G.data)==null?0:F.isToggled);var D;if((D=G.data)==null||!D.preventAutoToggle){G.shouldAnimate=!1;G.disableTextUpdateJobId&&_.Lu.cancelJob(G.disableTextUpdateJobId);G.disableTextUpdateJobId=_.Lu.addLowPriorityJob(function(){G.disableTextUpdateJobId=void 0},Lc7);
var u;G.set("data.isToggled",!((u=G.data)==null?0:u.isToggled));F=G.getInnertubeIcon();D={toggled:B,actions:{}};F&&(D.actions[F.toLowerCase()]=B);_.cZ(G.hostElement,"yt-toggle-button",D)}}};
return G};
_.r(w4,_.p);_.w=w4.prototype;_.w.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Lu.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.toggle=function(G){var B;this.set("data.isToggled",G!==void 0?G:!((B=this.data)==null?0:B.isToggled))};
_.w.handleUpdateToggleButtonStateCommand=function(G){if(this.data){G=_.Q(G,JDN);var B,F,D,u=(B=this.data)==null?void 0:(F=B.toggleButtonSupportedData)==null?void 0:(D=F.toggleButtonIdData)==null?void 0:D.id;u&&G&&u===(G==null?void 0:G.buttonId)&&this.set("data.isToggled",G.toggled)}};
_.w.handleUpdateToggleButtonTextAction=function(G){if(this.data){G=_.Q(G,y3w);var B,F,D,u=(B=this.data)==null?void 0:(F=B.toggleButtonSupportedData)==null?void 0:(D=F.toggleButtonIdData)==null?void 0:D.id;u&&G&&u===(G==null?void 0:G.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=G.defaultNumericalValue,this.set("data.defaultText",G.defaultText),this.set("data.toggledText",G.toggledText),this.shouldAnimate=!1)}};
_.w.getInnertubeIcon=function(){var G=this.data;if(G){var B,F,D=((B=G.defaultIcon)==null?0:B.iconType)?(F=G.defaultIcon)==null?void 0:F.iconType:null,u,R;B=((u=G.toggledIcon)==null?0:u.iconType)?(R=G.toggledIcon)==null?void 0:R.iconType:D;return G.isToggled?B:D}};
_.w.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.ZN.Object.defineProperties(w4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G={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$14947_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var B=G.renderer;var F=G.element;var D=G.toggled;var u=G.onTapCallback;var R=G.commandClientArgs;var N=G.overrides;var y=G.forceIcon;var U=G.forceModernIconButton;var q=G.forceDisabled;var h=G.useAnimatedText;var K=G.animatedTextProps;G=Pqz(B,D);y=!B.defaultIcon||!y&&B.defaultText?B.defaultIcon?"leading":void 0:U?"icon-only":"icon-only-40";y==="icon-only-40"&&(G.type="text");var a;U=Object;var m=U.assign,L;a:switch((L=
B.style)==null?void 0:L.styleType){case "STYLE_COMPACT_GRAY":L={size:"S"};break a;default:L={size:"M"}}var W=!!D;var e=(e=D&&B.toggledText||B.defaultText)?_.hx(e):void 0;h?(h=_.zx(D&&B.toggledText||B.defaultText))&&K&&!isNaN(Number(K.numberValue))?(K.numberText=h,D&&(K.numberValue+=1),h=K):h=void 0:h=void 0;var b,M,t,T;var A=(K=((M=D?B.toggledAccessibilityData||((A=B.toggledText)==null?void 0:A.accessibility):B.accessibilityData||((b=B.defaultText)==null?void 0:b.accessibility))==null?void 0:(t=M.accessibilityData)==
null?void 0:t.label)||((T=B.accessibility)==null?void 0:T.label))?K:_.zx(D&&B.toggledText||B.defaultText);q=q===void 0?B.isDisabled:q;F=xlJ(B,D,u,F,R);D=slM(B,D);D!=null&&D.length?(D=_.jF({innertubeCommand:BGJ(D),forceNewState:!0}),D=Lk(D)?D:void 0):D=void 0;B=m.call(U,{},G,L,{iconPosition:y},N,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:e,animatedTextProps:h,accessibilityLabel:A,disabled:q,onTap:F,aTagConfig:D},yO6((a=B.colorData)==null?void 0:a.basicColorPaletteData));B.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(B.type="filled");return B}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.getInnertubeIcon();if(G)return _.xT(G)}}});
w4.prototype.resetAnimation=w4.prototype.resetAnimation;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],w4.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],w4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],w4.prototype,"isPressed",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"forceIconButton",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"forceIconOnly",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"forceModernIconButton",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"alignByText",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"overrides",void 0);
_.c([_.v(),_.I("design:type",Boolean)],w4.prototype,"disabled",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"isShorts",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.I("design:type",Object)],w4.prototype,"animatedText",void 0);_.c([_.v(),_.I("design:type",String)],w4.prototype,"textNumberValue",void 0);_.c([_.v({computed:"computeTooltip(data, data.isToggled)"}),_.I("design:type",Object)],w4.prototype,"tooltip",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],w4.prototype,"resetAnimation",null);_.c([_.O("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.I("design:type",Object),_.I("design:paramtypes",[])],w4.prototype,"computedButtonShape",null);_.c([_.O("data.*"),_.I("design:type",Object),_.I("design:paramtypes",[])],w4.prototype,"computedIcon",null);
_.c([_.mC({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],w4);jbv&&_.d(w4,"ytd-toggle-button-renderer",QbG,{mode:2});var raN=_.Y(function(G){function B(q){var h;return _.n(function(K){if(K.nextAddress==1)return(h=!BfM(q,y())||!y().enabled)?K.jumpTo(2):K.yield(RuQ(),3);K.nextAddress!=2&&(h=K.yieldResult);if(h)return K.return();F();setTimeout(function(){N(!1)},1500);
_.di(K)})}
function F(){setTimeout(function(){N(!0);var q;(q=D.lottieEl)==null||q.goToAndPlay(0)},150)}
var D=_.xF(),u=_.C(_.qg(!1,void 0,"UfUosc")),R=u.next().value,N=u.next().value,y=_.pW(G.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.$f(function(){var q,h;((q=G.settings)==null?void 0:(h=q.call(G))==null?void 0:h.uniqueId)==="this is not intended behavior"&&_.em(new _.Uf("Smartimation Settings is undefined"))});
_.bC(function(){y().experimentEnabled&&(y().enabled?i1g(B):(N(!1),F6z(B)),_.VI(function(){F6z(B)}))},"IHhVmc");
_.bC(function(){y().timings.join("");y().experimentEnabled&&(DMU(y()),_.VI(function(){uYl(y())}))},"fsfhOe");
var U=_.mS(function(){var q=D,h=y().uniqueId+"-border",K,a;var m="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((a=(K=_.te().resolve(_.fH(_.Rx)))==null?void 0:K())!=null&&a?"dark":"light")+"_v2.json";return{animationRef:q,animationConfig:{name:h,autoplay:!1,loop:!1,path:m}}},void 0,"UWvUGe");
u={};return _.l("yt-smartimation",{class:_.tx(G.className,"smartimation",(u["smartimation--experiment-enabled"]=function(){return y().experimentEnabled},u["smartimation--active-border"]=R,u["smartimation--enable-masking"]=wkQ(),u))},_.l(_.E,{cond:function(){return y().experimentEnabled},
then:function(){return _.l("div",{class:"smartimation__border"},_.l(_.gy,{className:"smartimation__border-gradient",data:U,animationName:function(){return U().animationConfig.name}}))}}),_.l("div",{class:"smartimation__content"},G.children))},"ja");
raN.idomCompat=!0;_.YN(raN,"yt-smartimation",{props:{className:_.Hd,settings:_.Hd}});var CL=function(){var G=_.p.apply(this,arguments)||this;G.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};G.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};G.shouldEnableSmartimation=!1;return G};
_.r(CL,_.p);CL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
CL.prototype.onDataChanged=function(){var G,B;this.shouldEnableSmartimation=(((G=this.data)==null?void 0:(B=G.timedAnimationData)==null?void 0:B.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
CL.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var G=_.Q(this.data.likeButton,_.Qr),B=_.Q(this.data.dislikeButton,_.Qr);return!!((G==null?0:G.isToggled)||(B==null?0:B.isToggled))};
CL.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]]"}}}}}};
_.ZN.Object.defineProperties(CL.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,B,F=((G=this.data)==null?void 0:(B=G.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"like-dislike",timings:F,enabled:this.shouldEnableSmartimation,experimentEnabled:F.length>0}}}});
CL.prototype.onDataChanged=CL.prototype.onDataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],CL.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],CL.prototype,"likeButtonOverride",void 0);_.c([_.v(),_.I("design:type",Object)],CL.prototype,"dislikeButtonOverride",void 0);
_.c([_.O("shouldEnableSmartimation"),_.I("design:type",Object),_.I("design:paramtypes",[])],CL.prototype,"smartimationSettings",null);_.c([_.Ga("data"),_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],CL.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],CL);
_.d(CL,"ytd-segmented-like-dislike-button-renderer",function(){if(mcw!==void 0)return mcw;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return mcw=G},{mode:1});var Wcw;var H0T;(H0T=document.body)==null||H0T.setAttribute("rounded-container","");var k3w={};k3w.YtToggleButtonBehavior=[_.Za.YtActionHandlerBehavior,Bj.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 G=this.data.isToggled;if(!this.isModal_(G)){if(!this.data.preventAutoToggle){this.toggle();var B={toggled:this.data.isToggled,actions:{}};B.actions[this.buttonIcon]=this.data.isToggled;_.cZ(this.hostElement,"yt-toggle-button",B)}B=this.data.defaultServiceEndpoint||null;var F=this.data.toggledServiceEndpoint||null;if(B&&F||B&&this.data.preventAutoToggle)G=G?F:B,B=this.disableCommandHandlerOverride,_.X("killswitch_toggle_button_behavior_resolve_command")||B?_.fi(this.hostElement,
[G]):_.Br(G,this.hostElement),_.cZ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:G})}},
stateChanged_:function(){var G=this.data;if(G){var B=G.isToggled;this._setEndpoint(this.computeEndpoint_(G));this._setServiceEndpoint(this.computeServiceEndpoint_(G));this._setButtonIcon(this.computeButtonIcon_(G,B));this._setButtonText(this.computeButtonText_(G,B));this._setButtonAccessibility(this.computeAccessibility_(G,B));this._setButtonTooltip(this.computeTooltip_(G,B));this._setButtonClass(this.computeButtonClass_(G,B));this._setIconPositionType(this.computeIconPositionType_(G));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=B):this.elements_.button.setAttribute("aria-pressed",B));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=B)}},
shouldSetIconActiveState_:function(){return _.X("kevlar_system_icons")},
toggle:function(G){this.set("data.isToggled",G!==void 0?G:!this.data.isToggled);_.X("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(G){if(G){var B,F;return!!((B=this.data)==null?0:(F=B.toggledServiceEndpoint)==null?0:F.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(G){return G&&G.defaultNavigationEndpoint||null},
computeButtonIcon_:function(G,B){var F=G&&G.defaultIcon?_.xT(G.defaultIcon.iconType):null;G=G&&G.toggledIcon?_.xT(G.toggledIcon.iconType):F;return B?G:F},
handleUpdateToggleButtonStateCommand_:function(G){G=G.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&this.toggle(G.toggled)},
computeButtonText_:function(G,B){return G?B&&G.toggledText||G.defaultText||null:null},
computeAccessibility_:function(G,B){return G?(B?this.get("toggledAccessibilityData.accessibilityData",G):this.get("accessibilityData.accessibilityData",G))||G.accessibility||null:null},
computeTooltip_:function(G,B){return G?B&&G.toggledTooltip||G.defaultTooltip||null:null},
computeButtonClass_:function(G,B){if(!G)return"";var F="",D=G.toggledStyle||G.style;if(B=B?D:G.style){B.styleType&&(B=B.styleType);try{F+=B.toLowerCase().replace(/_/g,"-")+" "}catch(u){_.$2(u,B,typeof B),_.em(u)}}if(G=G.size){G.sizeType&&(G=G.sizeType);try{F+=G.toLowerCase().replace(/_/g,"-")+" "}catch(u){_.$2(u,G,typeof G),_.em(u)}}return F.trim()},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeServiceEndpoint_:function(G){var B=G&&G.serviceEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:F&&G.command?G.command:null},
handleUpdateToggleButtonTextAction_:function(G){G=G.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&(this.set("data.defaultText",G.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",G.toggledText),this.notifyPath("data.toggledText"))}}];_.UR("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var O0T=_.X("web_button_rework")&&_.on("BUTTON_REWORK")||_.X("web_button_rework_with_live"),N2=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");G.roundedContainer=!0;return G};
_.r(N2,_.p);N2.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
N2.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var G=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var B={toggled:!!this.data.isToggled,actions:{}};B.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var F,D;B.actions.playlistId=(F=this.data.defaultServiceEndpoint)==null?void 0:(D=F.playlistEditEndpoint)==null?void 0:D.playlistId;_.cZ(this.hostElement,"yt-toggle-button",B)}(G=G?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(G)}};
N2.prototype.onYtNavigate=function(G){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);B&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(B))};
_.ZN.Object.defineProperties(N2,{template:{configurable:!0,enumerable:!0,get:function(){if(Wcw===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);Wcw=G}G=Wcw;return G}}});
N2.prototype.onYtNavigate=N2.prototype.onYtNavigate;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],N2.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],N2.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(k3w.YtToggleButtonBehavior),_.I("design:type",Object)],N2.prototype,"ytToggleButtonBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],N2.prototype,"data",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],N2.prototype,"showTooltips",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],N2.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],N2.prototype,"roundedContainer",void 0);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],N2.prototype,"onYtNavigate",null);
_.c([_.mC({is:"ytd-toggle-button-renderer",disableElementRegistration:O0T})],N2);var e$y,$cy;_.yR=new _.oV("PANEL_CONTROLLER_TOKEN");_.nL=new _.oV("SHEET_CONTROLLER_TOKEN");_.lI=new _.oV("DIALOG_CONTROLLER_TOKEN");e$y=new _.oV("DIALOG_CONTAINER_TOKEN");$cy=new _.oV("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.UB=new _.oV("PERSISTENT_PANEL_CONTROLLER_TOKEN");var huS=_.G7("DOWNLOAD",{},"Download"),K6z=_.G7("DOWNLOADING",{},"Downloading"),a18=_.G7("DOWNLOADED",{},"Downloaded"),mMg=_.G7("RETRY",{},"Retry");var z$t=_.Y(function(G){var B=r4M,F=function(){return""},D=Xks(G.data),u=Qfc(G.data),R=jfS(G.data),N=L6J(G.data);
B=function(){var y=G.data(),U=q6l(y,D(),u(),R(),N()),q=!!y.videoId,h=U.text;return{title:q?h:void 0,tooltip:q?void 0:h,accessibilityText:h,onTap:U.onTap,iconName:U.iconType,style:y.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:U.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:y.buttonSize}};
F={};F=_.tx("ytDownloadButtonViewModelHost",(F.ytDownloadButtonViewModelIsHidden=function(){var y=G.data(),U=N();return y.playlistId||U()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||U()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},F));
return _.l("download-button-view-model",{class:F},_.l(_.cd,{data:B}))},"ka");
z$t.idomCompat=!0;var VMl=new _.oV("SUBMIT_API_SERVICE_TOKEN");var $Ms,zul,v1g={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var BWo=new _.oV("RENDERER_LOGGER_TOKEN");var sfM=new _.oV("RENDERER_STAMPER_OPTIONS_TOKEN");var MMU;_.DM=new qCU;MMU=new Map;var xM8="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),G3I=["notificationTextRenderer","notificationMultiActionRenderer"],
PVS="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),S68=pkz(function(G){return _.Mg(G==null?void 0:G.targetId)}).useUpdatableData;var J4U=null;var g1c=0,tMz=new Set;_.uR.debugName="EjJbCe";var b0y=_.Y(function(G){var B=G.data;G=G.className;_.eR(function(){B().formId||_.k2(Error("Dh"))});
var F=_.euM(function(){return B().formId},function(){return B().beforeSubmitCommand},function(){return B().afterSubmitCommand}),D=F.submitForm,u=F.isValid,R=F.isSubmitting,N=function(){return{state:B().isDisabled||!u()||R()?"disabled":"active"}};
return _.l("yt-submit-button-view-model",{class:_.tx("ytSubmitButtonViewModelHost",G)},_.l(_.uR,{data:function(){return B().button}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data,
buttonOverrides:N,onClick:D})}}))},"na");var v_q=_.Y(function(G){var B=G.backgroundLottieRef;var F=G.foregroundLottieRef;var D=G.children;var u=G.wrapperClass;var R=G.disableAnimation;G=function(){return(_.X("web_animated_actions")||_.X("web_animated_actions_v2"))&&!(R==null?0:R())};
return _.l("yt-animated-action",{class:_.tx("ytAnimatedActionHost",u)},_.l("div",{class:"ytAnimatedActionContentWithBackground"},_.l(_.E,{cond:G,then:function(){return _.l(Vd7,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:B==null?void 0:B(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(i0s()?"dark":"light")+"_v5.json"}}}})}}),D),_.l(_.E,{cond:G,
then:function(){return _.l(Vd7,{lottiePlayerProps:function(){return{animationRef:F==null?void 0:F(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(i0s()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
v_q.idomCompat=!0;var Vd7=_.Y(function(G){var B=G.wrapperClass;var F=G.lottieClass;var D=G.lottiePlayerProps;return _.l("div",{class:_.tx("ytAnimatedActionLottie",B),"aria-hidden":"true"},_.l(_.gy,{className:F,data:D,animationName:function(){return D().animationConfig.name}}))},"pa");var Fcs={isOpen:!1};var uXs={isAllowed:!1};var wEJ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var NWz={isOpen:!1};var n_o={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var o_a={response:void 0};var Ucg=function(G,B){G=G===void 0?o_a:G;switch(B.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},G,{response:B.payload});default:return G}};var MdP={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var qUl=function(G,B){G=G===void 0?MdP:G;switch(B.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},G,{nextDisabled:B.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},G,{nextCommand:B.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},G,{footerSubmissionData:B.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},G,{isImpersonationValid:B.payload});default:return G}};var pEq={reportFormData:void 0,reportDetailsFormData:void 0};var E_8=function(G,B){G=G===void 0?pEq:G;switch(B.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportFormData:B.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportDetailsFormData:B.payload});default:return G}};var YUP=void 0;_.X("mweb_enable_redux_store_on_demand")||(YUP=new bo(h$g()));var q2=_.X("enable_web_delhi_icons");var Aav=_.Y(function(G){G=_.AS(G,{themeOverride:void 0,animationRef:{}});var B=G.animatedIconType,F=G.active,D=G.themeOverride,u=G.animationRef;G=G.staticIconFn;var R=_.C(_.qg(void 0,void 0,"l48agc")),N=R.next().value,y=R.next().value,U=function(){a:{var e=B();var b=D==null?void 0:D();var M;b=(b==null?void 0:b.useDarkTheme)||((M=_.te().resolve(_.fH(_.Rx)))==null?void 0:M());switch(e){case "LIKE":YUP||(YUP=new bo(h$g()));e=(e=JIs(YUP.getState()))&&e.animationLightUrl&&e.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:b?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:b?e.animationDarkUrl:e.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(e){b=e;break a}b="animated_like_icon_"+(b?"dark":"light")+"_"+(q2?"v5":"v4");b={lottiePlayerProps:{animationConfig:{name:b,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+b+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(q2?" animated-like-icon-delhi":"")}}},totalFrames:q2?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":b={lottiePlayerProps:{animationConfig:{name:b?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(b?"dark":"light")+(q2?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(q2?" animated-subscribe-icon-delhi":"")}}},totalFrames:q2?120:79,lazyLoad:!1};break a}b=
void 0}return b},q=function(){var e,b;
return(b=(e=U())==null?void 0:e.lottiePlayerProps.animationConfig.name)!=null?b:""},h=function(){if(U()){var e=U().lottiePlayerProps.animationConfig.path;
return N6.get(e)||N()}};
R=_.C(_.qg(!1,void 0,"sDrGId"));var K=R.next().value;R=R.next().value;var a=atQ(R),m=function(){var e=U(),b,M,t;return(t=e==null?void 0:(b=e.lottiePlayerProps.animationConfig)==null?void 0:(M=b.rendererSettings)==null?void 0:M.className)!=null?t:""},L=void 0,W=void 0;
_.bC(function(){var e=U(),b=q(),M=h(),t=K(),T=F();if(e&&(W!==b&&(W=b,L=T,b=u(),a.animationConfig=e.lottiePlayerProps.animationConfig,a.animationRef=b,M&&(a.animationConfig.animationData=M,a.animationConfig.path=void 0),b=e.lottiePlayerProps.animationConfig.path,!N6.get(b)&&e.lazyLoad&&b&&Kcz(b,y)),!(t||e.lazyLoad&&!M))){if(M=!u().lottieEl)T?(t=e.totalFrames,a.animationConfig.initialSegment=[t-1,t]):a.animationConfig.initialSegment=void 0;if(L!==T&&!M)if(M=u(),T){var A;(A=M.lottieEl)==null||A.playSegments([0,
e.totalFrames],!0)}else{var Z;(Z=M.lottieEl)==null||Z.playSegments([0,1],!0)}L=T}},"RQVZ1d");
return _.l("animated-icon",{class:"ytAnimatedIconHost"},_.l(_.E,{cond:function(){var e,b;return!((e=U())==null||!e.lottiePlayerProps.animationConfig.path||((b=U())==null?0:b.lazyLoad)&&!h()||K())},
then:function(){return _.l(_.gy,{data:a,animationName:q,className:m,animationRef:u})},
else:G}))},"ra");_.EB=_.Y(function(G){var B=_.W5("yt-subscribe-button-view-model"),F=_.W5("div"),D=_.W5("div"),u=_.xF(),R=_.xF(),N=_.xF(),y=_.iR(jbM,function(){return G.data().stateEntityStoreKey}),U=_.iR(LcQ,function(){var Ts,hT;
return(hT=(Ts=G.data().notificationStateEntityStoreKeys)==null?void 0:Ts.subsNotificationStateKey)!=null?hT:""}),q=function(){return!G.data().enableSubscribeButtonPostClickAnimation},h=_.C(_.qg(0,void 0,"YtsSKb")),K=h.next().value,a=h.next().value;
h=_.C(_.qg(0,void 0,"V6JxRe"));var m=h.next().value,L=h.next().value;h=_.C(_.qg(!1,void 0,"JUCSZ"));var W=h.next().value,e=h.next().value;h=_.C(_.qg(!1,void 0,"oV6jwf"));var b=h.next().value,M=h.next().value;h=_.C(_.qg(!1,void 0,"hK1Whe"));var t=h.next().value,T=h.next().value,A;h=_.C(_.qg(!1,void 0,"Asaolf"));var Z=h.next().value,P=h.next().value,RI=function(){M(!0);_.yH(_.Lu,function(){M(!1)},1500)};
_.bC(function(){var Ts=b();_.U4(function(){Ts&&!q()&&y()&&Mdo(u,R,N)})},"Qq6Hsf");
_.bC(function(){var Ts=y();_.U4(function(){if(!q()&&Ts){var hT;((hT=G.animateWidth)==null?0:hT.call(G))&&o_z(B.value,!!Ts.subscribed,K(),m());var L7,K7;((L7=A)==null?0:L7.subscribed)||!Ts.subscribed||Ts.key!==((K7=A)==null?void 0:K7.key)||RI();A=Ts}})},"hog8te");
h=_.mS(function(){var Ts,hT,L7,K7=G.data(),kD=!((Ts=y())==null||!Ts.subscribed);Ts=!((hT=G.isOverlay)==null||!hT.call(G));hT=W()?B:void 0;var Rz=(L7=U())==null?void 0:L7.state;L7=Z();v_c(K7,Rz);return QbS({model:K7,subscribed:kD,isOverlay:Ts,element:hT,notificationState:Rz,disableTextEllipsis:!0,focused:L7})},void 0,"hc1PRd");
var yo=function(){var Ts;if(!q()&&((Ts=G.animateWidth)==null?0:Ts.call(G))&&(F==null?0:F.value)&&(D==null?0:D.value)&&!t()){Ts=y();var hT=_.C((Ts==null?0:Ts.subscribed)?[F,D]:[D,F]),L7=hT.next().value;hT=hT.next().value;L7=Math.ceil(L7.value.getBoundingClientRect().width);hT=Math.ceil(hT.value.getBoundingClientRect().width);a(L7);L(hT);o_z(B.value,!(Ts==null||!Ts.subscribed),L7,hT);T(!0)}},hg=_.gJ(function(Ts){yo();
var hT=y();hT&&(Ts.detail.endpoint.subscribeEndpoint||Ts.detail.endpoint.unsubscribeEndpoint)&&z$g(B.value,!hT.subscribed,hT)}),US=function(){var Ts=_.te().resolve(_.fH(_.Mu));
Ts&&P(Ts.isKeyBoardInUse())},aI=function(){P(!1)};
_.da("yt-player-subscribe",function(Ts){var hT=y();hT&&Ts===G.data().channelId&&z$g(B.value,!0,hT)});
_.da("yt-player-unsubscribe",function(Ts){var hT=y();hT&&Ts===G.data().channelId&&z$g(B.value,!1,hT)});
_.da("yt-update-subscribe-button-action",function(Ts){Ts=_.Q(Ts,rDs);var hT=y();hT&&Ts&&Ts.channelId===G.data().channelId&&z$g(B.value,!!Ts.subscribed,hT)});
_.$f(function(){B.value&&(B.value.addEventListener("focusin",US),B.value.addEventListener("focusout",aI));var Ts=_.mX(_.Lu,function(){yo()});
e(!0);_.VI(function(){_.Lu.cancelJob(Ts);B.value&&(B.value.removeEventListener("focusin",US),B.value.removeEventListener("focusout",aI))})});
var v6=function(){var Ts,hT,L7;if(L7=!((Ts=y())==null||!Ts.subscribed))Ts=!!G.data().disableNotificationBell,L7=(hT=U())==null?void 0:hT.state,L7=!Ts&&!!L7;return L7},Jg=function(){var Ts;
return!((Ts=y())==null?0:Ts.subscribed)},c6=function(){var Ts,hT;
if(hT=Jg()){hT=!!G.data().disableNotificationBell;var L7=(Ts=U())==null?void 0:Ts.state;hT=!hT&&!!L7}return hT},q8={},n7={};
return _.l("yt-subscribe-button-view-model",{class:_.tx(G.className,"ytSubscribeButtonViewModelHost",(q8.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Ts,hT;return!((Ts=y())==null||!Ts.subscribed)&&((hT=G.animateWidth)==null?void 0:hT.call(G))&&b()},q8.ytSubscribeButtonViewModelHostHidden=function(){var Ts;
return!((Ts=y())==null?0:Ts.subscribed)&&G.data().hideWhenUnsubscribed},q8)),
el:B,"on:yt-service-request-sent":hg},_.l(v_q,{backgroundLottieRef:u,foregroundLottieRef:R,wrapperClass:_.tx("ytSubscribeButtonViewModelAnimatedActionWrapper",(n7.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Ts;return((Ts=G.animateWidth)==null?void 0:Ts.call(G))&&b()},n7.ytSubscribeButtonViewModelStaticWidth=function(){var Ts;
return!((Ts=G.animateWidth)==null?0:Ts.call(G))},n7)),
disableAnimation:q},_.l("div",{el:F,class:"ytSubscribeButtonViewModelContainer"},_.l(_.Ji,{data:h,icon:function(){return _.l(_.E,{cond:v6,then:function(){var Ts=function(){var hT;return $cl((hT=U())==null?void 0:hT.state)};
return _.l(_.E,{cond:function(){return q()||Ts()!=="NOTIFICATIONS_NONE"},
then:function(){return _.l(_.Pr,{icon:Ts})},
else:function(){return _.l(Aav,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:N})}})}})},
secondaryIconName:function(){return v6()?"EXPAND":void 0}}))),_.l("div",{el:D,
class:"ytSubscribeButtonViewModelInvisible"},_.l(_.E,{cond:function(){var Ts;return((Ts=G.animateWidth)==null?void 0:Ts.call(G))&&!q()&&!t()},
then:function(){return _.l(_.Ji,{data:_.mS(function(){var Ts;return QbS({model:G.data(),subscribed:Jg(),isOverlay:!((Ts=G.isOverlay)==null||!Ts.call(G)),element:B,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Ts;return c6()?$cl((Ts=U())==null?void 0:Ts.state):void 0},
secondaryIconName:function(){return c6()?"EXPAND":void 0}})}})))},"ua");
_.EB.idomCompat=!0;var dc7=_.Y(function(G){var B=G.data;var F=_.iR(jbM,function(){return B().subscriptionStateEntityKey});
return _.l(_.E,{cond:function(){var D=B(),u=F();return!D.hideWhenUnsubscribed||(u==null?0:u.subscribed)?_.Q(B().button,_.LV):void 0},
then:function(D){return _.l("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.l(_.cd,{data:D,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
dc7.idomCompat=!0;var JaT,h3;JaT=_.Y(function(G){return _.l(_.uR,{data:function(){return G.actionRow().actions}},{buttonViewModel:function(B){var F=B.data;
return _.l(h3,{isRow:G.isRow,isIconOnlyButton:function(){return pEI(F())},
useIntrinsicWidth:G.useIntrinsicWidth},_.l(_.cd,{data:F}))},
subscribeButtonViewModel:function(B){return _.l(h3,{isRow:G.isRow},_.l(_.EB,{data:B.data,isOverlay:!1,animateWidth:function(){return!G.isRow()}}))},
downloadButtonViewModel:function(B){var F=B.data;return _.l(h3,{isRow:G.isRow,isIconOnlyButton:function(){return!!F().playlistId}},_.l(z$t,{data:F}))},
submitButtonViewModel:function(B){var F=B.data;return _.l(h3,{isRow:G.isRow,isIconOnlyButton:function(){var D=F();return pEI(_.Q(D==null?void 0:D.button,_.LV))}},_.l(b0y,{data:F}))},
toggleButtonViewModel:function(B){var F=B.data;return _.l(h3,{isRow:G.isRow,isIconOnlyButton:function(){var D=F();return pEI(_.Q(D.isToggled?D.toggledButtonViewModel:D.defaultButtonViewModel,_.LV))}},_.l(_.wl,{data:F}))},
subscribePlusButtonViewModel:function(B){return _.l(h3,{isRow:G.isRow},_.l(dc7,{data:B.data}))}})},"wa");
h3=_.Y(function(G){var B={};return _.l("div",{class:_.tx("ytFlexibleActionsViewModelAction",(B.ytFlexibleActionsViewModelActionRowAction=G.isRow,B.ytFlexibleActionsViewModelActionIntrinsicWidth=G.useIntrinsicWidth,B.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,B.ytFlexibleActionsViewModelActionIconOnlyButton=G.isIconOnlyButton,B))},G.children)},"xa");
_.KL=_.Y(function(G){var B=function(){var D;return((D=G.layout)==null?void 0:D.call(G))===1},F={};
return _.l("yt-flexible-actions-view-model",{class:_.tx("ytFlexibleActionsViewModelHost",G.className,(F.ytFlexibleActionsViewModelInline=function(){return!B()},F.ytFlexibleActionsViewModelScrollable=function(){return G.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},F))},_.l(_.jR,{each:function(){return G.data().actionsRows||[]}},function(D){return _.l(_.E,{cond:B,
then:function(){return _.l("div",{class:"ytFlexibleActionsViewModelActionRow"},_.l(JaT,{actionRow:D,isRow:B,useIntrinsicWidth:function(){return!!G.data().respectActionIntrinsicWidth}}))},
else:function(){return _.l(JaT,{actionRow:D,isRow:B})}})}))},"ya");_.YN(_.KL,"yt-flexible-actions-view-model",{props:{data:_.Hd,layout:_.Hd,justifyContentOverride:_.Hd,className:_.Hd}});_.a8=_.Y(function(G){var B=_.iR(_.XT,function(){var u;return(u=G.data().dislikeEntityKey)!=null?u:""}),F=_.mS(function(){var u=B();
return u?u.likeStatus==="DISLIKE":_.Q(G.data().toggleButtonViewModel,_.WR).isToggled},void 0,"fNr9he"),D=_.mS(function(){return Object.assign({},_.Q(G.data().toggleButtonViewModel,_.WR),{isToggled:F()})},void 0,"AezoCc");
return _.l("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.l(_.wl,{data:D,buttonShapeOverrides:G.buttonShapeOverrideables,onToggle:function(u){var R=B();R&&u!==(R.likeStatus==="DISLIKE")&&R.key&&_.M7(_.mH("likeStatusEntity",R.key,{likeStatus:u?"DISLIKE":"INDIFFERENT",hadUserInteraction:u}))}}))},"za");
_.a8.idomCompat=!0;_.mP=_.Y(function(G){var B=_.X("web_supports_animations_api"),F=S0S(function(a){var m=q();if(!a){var L,W;return{numberText:(W=m==null?void 0:(L=m.likeCountIfIndifferent)==null?void 0:L.content)!=null?W:"",numberValue:Number(m==null?void 0:m.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var e;L=(m==null?void 0:(e=m.likeCountIfIndifferent)==null?void 0:e.content)!==a.numberText;if(y()||!L)return a;var b;return{numberText:(m==null?void 0:(b=m.likeCountIfIndifferent)==null?void 0:b.content)||
"",numberValue:Number(m==null?void 0:m.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!m}}),D=S0S(function(a){var m=q();
if(!a){var L,W;return{numberText:(W=m==null?void 0:(L=m.likeCountIfLiked)==null?void 0:L.content)!=null?W:"",numberValue:Number(m==null?void 0:m.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var e;L=(m==null?void 0:(e=m.likeCountIfIndifferent)==null?void 0:e.content)!==a.numberText;if(y()||!L)return a;var b;return{numberText:(m==null?void 0:(b=m.likeCountIfLiked)==null?void 0:b.content)||"",numberValue:Number(m==null?void 0:m.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!m}}),u=_.C(_.qg(void 0,
void 0,"xYSlUe")),R=u.next().value,N=u.next().value,y=R,U=_.iR(_.XT,function(){var a,m;
return(m=(a=G.data())==null?void 0:a.likeStatusEntityKey)!=null?m:""}),q=_.iR(rOz,function(){var a,m;
return((a=G.likeCountEntity)==null?void 0:(m=a.call(G))==null?void 0:m.key)||""}),h=_.mS(function(){var a;
return((a=U())==null?void 0:a.likeStatus)==="LIKE"},void 0,"DG5Osd"),K=function(){var a;
return B&&!((a=G.likeCountEntity)==null||!a.call(G))};
return _.l("like-button-view-model",{class:_.tx("ytLikeButtonViewModelHost",G.className)},_.l(_.wl,{data:function(){var a=Object,m=a.assign,L;var W=_.Q((L=G.data())==null?void 0:L.toggleButtonViewModel,_.WR);return m.call(a,{},W||{},{isToggled:h()})},
buttonShapeOverrides:G.buttonShapeOverrideables,animatedTextPropsDefault:function(){return K()?F():void 0},
animatedTextPropsToggled:function(){return K()?D():void 0},
onToggle:function(a){YUo(a,U(),y(),N)},
style:function(){var a;return((a=G.disableIconAnimation)==null?0:a.call(G))?void 0:{animateIcon:"true"}}}))},"Aa");
_.mP.idomCompat=!0;var ca7=_.Y(function(G){var B=function(){return _.Q(G.data().likeButtonViewModel,_.HP)},F=function(){var u;
return((u=B())==null?void 0:u.likeStatusEntityKey)||""},D=_.mS(function(){var u,R;
var N=(R=_.iR(_.XT,F)())!=null?R:(u=B())==null?void 0:u.likeStatusEntity;u=G.data();var y;u=(u==null?void 0:(y=u.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:(N==null?void 0:N.likeStatus)==="INDIFFERENT"&&u.length>0,experimentEnabled:u.length>0}},void 0,"zZ3GQb");
return _.l("segmented-like-dislike-button-view-model",{class:_.tx("ytSegmentedLikeDislikeButtonViewModelHost",G.className),"button-renderer":!0},_.l(raN,{settings:D},_.l("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.l(_.E,{cond:B,then:function(u){return _.l(_.mP,{data:u,likeCountEntity:function(){return G.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.X("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.l(_.E,{cond:function(){return _.Q(G.data().dislikeButtonViewModel,_.kw)},
then:function(u){return _.l(_.a8,{data:u,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
ca7.idomCompat=!0;_.YN(ca7,"segmented-like-dislike-button-view-model",{props:{data:_.Hd,className:_.Hd}});var TWv=_.Y(function(G){var B=G.data;var F=G.className;var D=G.setMinWidth;var u=G.forceIconOnly;var R=_.W5("account-link-button-view-model"),N=_.iR(_.AaM,function(){var a;return(a=B().accountLinkStatusEntityKey)!=null?a:""}),y=_.iR(_.AaM,function(){var a;
return(a=B().accountLinkStatusSecondaryEntityKey)!=null?a:""}),U=function(){if(!_.X("web_account_link_secondary_killswitch")){var a,m;
return((a=N())==null?void 0:a.linked)||((m=y())==null?void 0:m.linked)}var L;return(L=N())==null?void 0:L.linked};
_.bC(function(){var a=N();if(a){var m=x_q(new s1w,gZw(new ZVT,!!a.linked));_.So().then(function(L){L&&(L.setAccountLinkState(_.xM(m.JSC$12637_serializeBinary(),4)),L.updateAccountLinkingConfig(!!a.linked))})}},"IvZF7");
var q=function(){return _.Q(B().toggleButtonViewModel,_.WR)};
_.da("yt-signal-action-show-account-link-dialog",function(){if(q()){var a=U()?q().toggledButtonViewModel:q().defaultButtonViewModel;a=_.Q(a,_.LV);var m;if((m=N())==null?0:m.isWarning){m=_.Q(B().warningButtonViewModel,_.LV);if(!m){_.Ae(Error("Eh"));return}a=m}var L;(m=_.X1((L=a)==null?void 0:L.onTap))&&_.Sa([m],R.value)}else _.Ae(Error("Fh"))});
var h=function(){var a=q();return Object.assign({},a,{isToggled:U()})},K=function(){return(u==null?0:u())?{iconPosition:"icon-only"}:{}};
return _.l("account-link-button-view-model",{class:_.tx("ytwAccountLinkButtonViewModelHost",F,function(){return(D==null?0:D())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:R,"button-renderer":!0},_.l("div",null,_.l(_.E,{cond:function(){var a;if((a=N())==null?0:a.isWarning)return(a=_.Q(B().warningButtonViewModel,_.LV))||_.Ae(Error("Eh")),a},
then:function(a){return _.l(_.cd,{data:a,buttonOverrides:K})},
else:function(){return _.l(_.wl,{data:h,buttonShapeOverrides:K})}})))},"Da");_.YN(TWv,"account-link-button-view-model",{props:{data:_.Hd,className:_.oh,setMinWidth:_.oh,forceIconOnly:_.oh}});_.UR("menuRenderer","menuRenderer","ytd-menu-renderer");
var It8={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"}},
fts=_.X("web_fix_missing_action_buttons")?100:200,Xk=function(){var G=_.p.apply(this,arguments)||this;G.safeArea=!_.X("kevlar_flex_menu_safe_area_killswitch");G.tonalOverride=!1;G.threeDotSize="M";G.isOverlay=!1;G.useOverlayDark=!1;G.topLevelIconsOnly=!1;G.JSC$15082_lastWidth=0;G.maybeUpdateFlexibleMenu=function(){_.X("web_fix_missing_action_buttons")?requestAnimationFrame(G.maybeUpdateFlexibleMenuImpl):G.maybeUpdateFlexibleMenuImpl()};
G.maybeUpdateFlexibleMenuImpl=function(){var B;if((B=G.data)!=null&&B.flexibleItems){G.maybeFlushDebouncer();B=G.hostElement.clientWidth;var F=B>G.JSC$15082_lastWidth,D,u=((D=G.topLevelButtonsContainer)==null?void 0:D.scrollHeight)||0,R;D=((R=G.flexibleItemButtonsContainer)==null?void 0:R.scrollHeight)||0;R=G.hostElement.scrollHeight>Math.max(u,D)+8;F?(G.resetFlexibleItems(),G.JSC$15082_lastWidth=G.hostElement.clientWidth,G.maybeUpdateFlexibleMenu()):R&&(G.shrinkFlexibleMenu(),G.JSC$15082_lastWidth=
B)}};
G.computeThreeDotButtonShape=function(){if(G.tonalOverride)return Object.assign({},{onTap:function(){G.onOverflowTap()},
iconPosition:"icon-only",style:G.isOverlay?G.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:G.threeDotSize,state:"active",accessibilityLabel:G.computeAccessibilityLabel(G.data)},G.threeDotButtonOverride)};
G.onOverflowTap=function(){var B,F,D,u,R,N,y,U,q,h,K;_.n(function(a){switch(a.nextAddress){case 1:if((B=G.data)==null?0:B.fetchMenuCommand)return F=_.te().resolve(_.Wr),F.resolveCommand(G.data.fetchMenuCommand,{form:{element:G.hostElement}}),a.return();if(((D=G.data)==null?0:D.isDisabled)&&((u=G.data)==null?0:u.disabledCommand))return _.Br(G.data.disabledCommand,G.hostElement),a.return();R=G.createMenuRendererVe();N={items:G.items};if((y=G.data)==null?0:y.menuPopupAccessibility)N.menuPopupAccessibility=
G.data.menuPopupAccessibility;if((U=G.data)==null?0:U.footer)N.footer=G.data.footer;q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:N},veData:R}};h=_.te().resolve(_.nL);if(!_.X("ytd-menu-singleton-sheet-killswitch")){a.jumpTo(2);break}return a.yield(h.openSheet({openPopupActionCommand:q},G.hostElement),3);case 3:return a.return();case 2:return a.yield(h.isSheetOpen(),4);case 4:return(K=a.yieldResult)?a.yield(h.closeSheet(),0):a.yield(h.openSheet({openPopupActionCommand:q},G.hostElement),
0)}})};
return G};
_.r(Xk,_.p);_.w=Xk.prototype;_.w.updateButtonOverrides=function(){if(!_.X("menu_renderer_label_update_upkillswitch")){var G=_.IF(this.hostElement).querySelector("yt-button-view-model");G&&(G.buttonOverrides=this.buttonOverrides)}};
_.w.computeHasItems=function(){var G;return((G=this.topLevelButtonData)==null?void 0:G.length)||this.hasFlexibleItems};
_.w.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.w.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Ss(this.hostElement,{"--ytd-menu-renderer-button-color":_.hV(this.data.iconColor)}))};
_.w.onStamperFinished=function(){this.JSC$15082_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.w.setupFlexibleMenu=function(){var G=this,B;(B=this.data)!=null&&B.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.s_(this.maybeUpdateFlexibleMenu,fts,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){G.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))};
_.w.maybeFlushDebouncer=function(){if(_.X("web_replace_formatted_with_attributed_string")){var G;(G=this.topLevelButtons)==null||G.forEach(function(F){var D;(F=(D=F.getElementsByTagName("yt-attributed-string"))==null?void 0:D[0])&&nao(F)});
var B;(B=this.flexibleItemButtons)==null||B.forEach(function(F){var D;(F=(D=F.getElementsByTagName("yt-attributed-string"))==null?void 0:D[0])&&nao(F)})}};
_.w.resetFlexibleItems=function(){var G;if((G=this.data)!=null&&G.flexibleItems){_.X("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var B;this.flexAsTopLevelButtons=(B=this.data.flexibleItems)==null?void 0:B.map(function(F){return _.Q(F,_.VCv).topLevelButton});
_.X("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.w.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.w.shrinkFlexibleMenu=function(){var G;(G=this.flexAsTopLevelButtons)!=null&&G.length&&(this.flexAsTopLevelButtons=[].concat(_.gi(this.flexAsTopLevelButtons.slice(0,-1))))};
_.w.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:It8,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:It8,events:!0}}};
_.w.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.w.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.w.detached=function(){this.icon="MORE_VERT"};
_.w.computeTopLevelButtonData=function(G){if(!G)return[];var B;G=(B=G==null?void 0:G.topLevelButtons)!=null?B:[];return _.UK.unsafeClone([].concat(_.gi(G)))};
_.w.computeItems=function(G,B){if(!G)return[];var F=[];if(B){var D=(G.flexibleItems||[]).map(function(N){return _.Q(N,_.VCv)});
D=_.C(D);for(var u=D.next();!u.done;u=D.next())u=u.value,B.includes(u.topLevelButton)||(u=u.menuItem)&&F.push(u)}var R;G=(R=G==null?void 0:G.items)!=null?R:[];return[].concat(_.gi(F),_.gi(G))};
_.w.computeMenuActive=function(G,B){return G||B};
_.w.onPopupOpened=function(){this.overlayOpen=!0;_.cZ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.w.onPopupClosed=function(){this.overlayOpen=!1;_.cZ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.w.onPopupCanceled=function(){this.overlayOpen=!1;_.cZ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.w.computeAccessibilityLabel=function(G){return this.get("accessibility.accessibilityData.label",G)};
_.w.isHidden=function(G,B){return this.tonalOverride||!G?!0:G.fetchMenuCommand||G.isDisabled&&G.disabledCommand?!1:!(B==null?0:B.length)};
_.w.isModernOverflowHidden=function(G,B){return this.tonalOverride&&G?G.fetchMenuCommand?!1:!(B==null?0:B.length):!0};
_.w.createMenuRendererVe=function(){var G=this.data.trackingParams,B=_.qW(),F=_.Uw();return G&&B&&F?(G=_.yX(G),F=_.ge(7591),_.X("combine_ve_grafts")?_.Zx(_.Rh(),F,G):_.WT(B,G,F),F):null};
_.ZN.Object.defineProperties(Xk.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.flexAsTopLevelButtons)==null||!G.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Xk.prototype.onPopupCanceled=Xk.prototype.onPopupCanceled;Xk.prototype.onPopupClosed=Xk.prototype.onPopupClosed;Xk.prototype.onPopupOpened=Xk.prototype.onPopupOpened;Xk.prototype.tonalOverrideChanged=Xk.prototype.tonalOverrideChanged;Xk.prototype.resetFlexibleItems=Xk.prototype.resetFlexibleItems;Xk.prototype.setupFlexibleMenu=Xk.prototype.setupFlexibleMenu;Xk.prototype.iconButtonColorChanged=Xk.prototype.iconButtonColorChanged;Xk.prototype.updateButtonOverrides=Xk.prototype.updateButtonOverrides;
_.c([_.k(_.vj),_.I("design:type",Object)],Xk.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#button-shape"),_.I("design:type",HTMLElement)],Xk.prototype,"buttonShape",void 0);_.c([_.iA("#button"),_.I("design:type",Object)],Xk.prototype,"button",void 0);
_.c([_.v(),_.I("design:type",Object)],Xk.prototype,"data",void 0);_.c([_.v({computed:"computeTopLevelButtonData(data)"}),_.I("design:type",Array)],Xk.prototype,"topLevelButtonData",void 0);_.c([_.v(),_.I("design:type",Array)],Xk.prototype,"flexAsTopLevelButtons",void 0);_.c([_.v({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.I("design:type",Array)],Xk.prototype,"items",void 0);_.c([_.v({value:"MORE_VERT"}),_.I("design:type",String)],Xk.prototype,"icon",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Xk.prototype,"safeArea",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.I("design:type",Boolean)],Xk.prototype,"menuActive",void 0);_.c([_.v(),_.I("design:type",Boolean)],Xk.prototype,"menuFocused",void 0);_.c([_.v({value:"bottom"}),_.I("design:type",String)],Xk.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.I("design:type",Boolean)],Xk.prototype,"overlayOpen",void 0);
_.c([_.v({value:!0}),_.I("design:type",Boolean)],Xk.prototype,"forceIconButton",void 0);_.c([_.v(),_.I("design:type",Boolean)],Xk.prototype,"styleActionButton",void 0);_.c([_.v(),_.I("design:type",Boolean)],Xk.prototype,"disableTextTransformOnButtons",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Xk.prototype,"tonalOverride",void 0);_.c([_.v(),_.I("design:type",Object)],Xk.prototype,"threeDotSize",void 0);
_.c([_.v(),_.I("design:type",Object)],Xk.prototype,"threeDotButtonOverride",void 0);_.c([_.v(),_.I("design:type",Object)],Xk.prototype,"isOverlay",void 0);_.c([_.v(),_.I("design:type",Object)],Xk.prototype,"useOverlayDark",void 0);_.c([_.v({computed:"computeButtonOverride(tonalOverride)"}),_.I("design:type",Object)],Xk.prototype,"buttonOverride",void 0);_.c([_.v(),_.I("design:type",Boolean)],Xk.prototype,"minimizePipBreakages",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Xk.prototype,"hasCustomIconColor",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("flexAsTopLevelButtons"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xk.prototype,"hasFlexibleItems",null);_.c([_.v({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.I("design:type",Boolean)],Xk.prototype,"hasItems",void 0);_.c([_.v(),_.I("design:type",Object)],Xk.prototype,"topLevelIconsOnly",void 0);
_.c([_.Ga("topLevelIconsOnly"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"updateButtonOverrides",null);_.c([_.O("topLevelIconsOnly"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xk.prototype,"buttonOverrides",null);_.c([_.iA("#top-level-buttons-computed"),_.I("design:type",HTMLElement)],Xk.prototype,"topLevelButtonsContainer",void 0);_.c([_.FQ(".top-level-buttons > *"),_.I("design:type",Array)],Xk.prototype,"topLevelButtons",void 0);
_.c([_.iA("#flexible-item-buttons"),_.I("design:type",HTMLElement)],Xk.prototype,"flexibleItemButtonsContainer",void 0);_.c([_.FQ("#flexible-item-buttons > *"),_.I("design:type",Array)],Xk.prototype,"flexibleItemButtons",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"iconButtonColorChanged",null);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"setupFlexibleMenu",null);_.c([_.Ry("topLevelIconsOnly"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"resetFlexibleItems",null);_.c([_.Ga("tonalOverride"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"tonalOverrideChanged",null);
_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"onPopupOpened",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"onPopupClosed",null);_.c([_.Pm("yt-popup-canceled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xk.prototype,"onPopupCanceled",null);
_.d(Xk,"ytd-menu-renderer",function(){if(yaP===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);yaP=G}G=yaP;return G},{mode:2});var tdP;var Z0G;_.QR=_.Y(function(G){var B=G.data;var F=function(){if(B().icon)a:{var u={iconName:B().icon};for(var R=_.te().resolve(_.Pc),N=_.C([12,24]),y=N.next();!y.done;y=N.next()){var U=y.value;y=Object.assign({},u,{iconStyle:"youtube_fill",iconSize:U});U=Object.assign({},u,{iconStyle:"youtube_outline",iconSize:U});if(R.resolveIcon(y)){u=y;break a}if(R.resolveIcon(U)){u=U;break a}}u=void 0}else u=void 0;return u};
G={};var D={};return _.l("badge-shape",{class:_.tx("yt-badge-shape",function(){return ft6(B().type)},(G["yt-badge-shape--overlay"]=function(){return B().isOverlay},G["yt-badge-shape--ads-include-dot"]=function(){return B().adsIncludeDot},G["yt-badge-shape--thumbnail-badge"]=function(){a:switch(B().type){case 17:case 18:case 19:var u=!0;
break a;default:u=!1}return u},G["yt-badge-shape--status-badge"]=function(){a:switch(B().type){case 12:case 13:case 14:case 15:case 16:var u=!0;
break a;default:u=!1}return u},G["yt-badge-shape--no-text"]=function(){return!B().text},G["yt-badge-shape--modern"]=function(){return B().modern||_.X("web_modern_badge_shape")},G["yt-badge-shape--typography"]=function(){a:{var u=B();
if(u.shouldInheritTypography)switch(u.type){case 0:case 1:case 9:u=!0;break a;default:u=!1}else u=!1}return!u},G)),
style:_.xN({"background-color":function(){var u;return(u=B().customColors)==null?void 0:u.backgroundColor}}),
role:function(){return B().accessibilityText?"img":void 0},
"aria-label":function(){return B().accessibilityText}},_.l(_.E,{cond:function(){return B().animation},
then:function(u){return _.l(_.gy,{className:"yt-badge-shape__icon",data:u,animationName:function(){return u().animationConfig.name||""}})}}),_.l(_.E,{cond:function(){var u;
return F()&&!((u=B())==null?0:u.animation)},
then:function(){return _.l("div",{class:"yt-badge-shape__icon"},_.l(_.yO,{data:function(){return F()}}))}}),_.l("div",{class:_.tx("yt-badge-shape__text",(D["yt-badge-shape__text--clip-text-overflow"]=function(){return B().clipTextOverflow},D["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(B().numBadgesInRow||0)>1},D))},function(){var u;
return(u=B())==null?void 0:u.text}))},"Ea");
_.QR.idomCompat=!0;_.YN(_.QR,"badge-shape",{props:{data:_.Hd}});var jh=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");G.animated=_.X("animated_live_badge_icon");G.useBadgeShape=_.X("web_badge_shape_defrag");return G};
_.r(jh,_.p);_.w=jh.prototype;_.w.addTooltips=function(){for(var G=_.IF(this.hostElement).querySelectorAll(".badge"),B=0,F;F=G[B++];){var D=this.repeatElement.itemForElement(F);F=_.IF(F);F.lastChild&&F.lastChild.is==="tp-yt-paper-tooltip"&&F.removeChild(F.lastChild);if(D=D.metadataBadgeRenderer&&D.metadataBadgeRenderer.tooltip){var u=_.bY("tp-yt-paper-tooltip");(0,_.gK)(u).textContent=D;u.setAttribute("position","top");u.setAttribute("aria-hidden","true");F.appendChild(u)}}};
_.w.badgesChanged=function(){var G=this;_.kl().parkOrScheduleJob(function(){G.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.w.standaloneRoundedBadgeChanged=function(){var G=this.useRoundedBadge?this.useRoundedBadge:void 0;G&&(this.useRoundedBadge=G)};
_.w.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.w.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.w.computeStyle=function(G){_.X("kevlar_ytb_live_badges")&&G==="BADGE_STYLE_TYPE_LIVE_NOW"&&(G="badge-style-type-live-now-alternate");return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeRole=function(G){return this.computeAriaLabel(G)?"img":"status"};
_.w.computeAriaLabel=function(G){var B;return(G==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)||(G==null?void 0:G.label)};
_.w.computeBadgeShape=function(G){if(G){var B,F;var D=TWM(G.style);var u=ItL(G.style),R=G.label,N=((B=G.accessibilityData)==null?void 0:B.label)||G.label;a:switch(G.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":B=!0;break a;default:B=!1}var y=(F=G.icon)==null?void 0:F.iconType;a:switch(G.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":G=!0;break a;default:G=!1}D={type:D,brNzRatingBadgeType:u,text:R,accessibilityText:N,
isOverlay:B,icon:y!=="PREMIUM"?y:void 0,modern:_.X("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:G}}else D={};return D};
_.w.updateComputedBadges=function(G,B,F){var D=this;(B=B?[B]:F?[F]:void 0)?this.computedBadges=B:this.computedBadges=G==null?void 0:G.filter(function(u){var R;if((R=u.metadataBadgeRenderer)==null?0:R.groups){R=!1;u=_.C(u.metadataBadgeRenderer.groups);for(var N=u.next();!N.done;N=u.next()){N=N.value;var y=void 0;R=R||((y=D.hiddenBadgeGroups)==null?void 0:y.includes(N))}return!R}return!0})};
_.w.useFilledIcons=function(G){return _.X("kevlar_system_icons")&&(G==="AUDIO_BADGE"||G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE"||G==="SPONSORSHIP_STAR"||G==="PERSON_RADAR_FILLED"||G==="PERSON_RADAR")};
_.w.computeBadgeShapeStyle=function(G){return this.useBadgeShape?G==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||G==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":G==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.w.computeIcon=function(G){var B,F;G=G==null?void 0:(B=G.metadataBadgeRenderer)==null?void 0:(F=B.icon)==null?void 0:F.iconType;if(G!=="PREMIUM"&&G)return _.xT(G)};
_.w.computeStandaloneBadge=function(G){var B;G=G==null?void 0:(B=G.icon)==null?void 0:B.iconType;return G==="PREMIUM_STANDALONE"||G==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
jh.prototype.hiddenBadgeGroupsChanged=jh.prototype.hiddenBadgeGroupsChanged;jh.prototype.standaloneBadgeChanged=jh.prototype.standaloneBadgeChanged;jh.prototype.standaloneRoundedBadgeChanged=jh.prototype.standaloneRoundedBadgeChanged;jh.prototype.badgesChanged=jh.prototype.badgesChanged;_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"hidden",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],jh.prototype,"componentBehavior",void 0);
_.c([_.v(),_.I("design:type",Array)],jh.prototype,"badges",void 0);_.c([_.v(),_.I("design:type",Object)],jh.prototype,"topStandaloneBadge",void 0);_.c([_.v(),_.I("design:type",Object)],jh.prototype,"bottomStandaloneBadge",void 0);_.c([_.v(),_.I("design:type",Object)],jh.prototype,"computedBadges",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"mediumFontAdBadge",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"useRoundedBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"largeFontAdBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"overlayAd",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"overlayPremium",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"noDotAdBadge",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"collectionTruncate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"isThumbnailBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jh.prototype,"wrapBadges",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Number)],jh.prototype,"numBadgesInRow",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jh.prototype,"systemIcons",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jh.prototype,"animated",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jh.prototype,"useBadgeShape",void 0);_.c([_.v({value:[]}),_.I("design:type",Array)],jh.prototype,"hiddenBadgeGroups",void 0);_.c([_.iA("#repeat"),_.I("design:type",q7)],jh.prototype,"repeatElement",void 0);_.c([_.Ry("badges"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jh.prototype,"badgesChanged",null);
_.c([_.Ry("useRoundedBadge"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jh.prototype,"standaloneRoundedBadgeChanged",null);_.c([_.Ry("topStandaloneBadge","bottomStandaloneBadge"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jh.prototype,"standaloneBadgeChanged",null);_.c([_.Ry("hiddenBadgeGroups"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jh.prototype,"hiddenBadgeGroupsChanged",null);
_.c([_.mC({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],jh);
var g_a=_.tS()(jh,"ytd-badge-supported-renderer",function(){if(Z0G===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);Z0G=G}G=Z0G;return G},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var LL=function(){var G=_.p.apply(this,arguments)||this;G.iconType="STAR";G.plaMedium=_.X("enable_pla_resizing_for_desktop_medium");G.plaLarge=_.X("enable_pla_resizing_for_desktop_large");G.plaExtraLarge=_.X("enable_pla_resizing_for_desktop_extra_large");G.standardizeIconSize=_.X("kevlar_system_icons");G.mediaHoverOverlayInitialVisibility=_.X("enable_top_landscape_image_button_command_web");G.noBottomMargin=!1;G.thumbnailObjectFit="CONTAIN";G.thumbnailFitHeight=!0;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return G};
_.r(LL,_.p);_.w=LL.prototype;_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.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"}}}};
_.w.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",LL.JSC$15095_DEFAULT_CLICK_LOCATION_BEHAVIOR,LL.JSC$15095_CLICK_LOCATION_ID_MAP))};
_.w.onTap=function(G){this.onTapOrClick(G)};
_.w.onTapOrClick=function(G){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,G,!1)};
_.w.updateMediaBackgroundImage=function(){var G=this.get("data.image.thumbnail.thumbnails");G&&(G=_.Ax(G,0))&&_.Ss(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+G+")"})};
_.w.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var G=0;G<this.data.impressionEndpoints.length;G++){var B=this.data.impressionEndpoints[G];B.clickTrackingParams&&delete B.clickTrackingParams;_.te().resolve(_.Wr).resolveCommand(B,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var F;((F=this.data)==null?0:F.activeView)&&c9(this.activeView,this.data.activeView)}};
_.w.handleMuteAd=function(){};
_.w.attached=function(){var G=this;_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ti(G.activeView)})};
_.w.detached=function(){_.X("stop_av_measurement_on_detach")&&Ti(this.activeView)};
_.ZN.Object.defineProperties(LL.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.titleText)return"";var B;return _.G7("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((B=this.data)==null?void 0:B.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.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 G;return!((G=this.data)==null||!G.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
LL.prototype.onTap=LL.prototype.onTap;LL.prototype.dataChanged=LL.prototype.dataChanged;
LL.JSC$15095_CLICK_LOCATION_ID_MAP=_.X("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
LL.JSC$15095_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.X("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"}];_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.aJ),_.I("design:type",Object)],LL.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],LL.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],LL.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.k([_.Za.YtActionHandlerBehavior]),_.I("design:type",Object)],LL.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],LL.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],LL.prototype,"clickCommand",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],LL.prototype,"miniMode",void 0);_.c([_.v(),_.I("design:type",String)],LL.prototype,"iconType",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],LL.prototype,"plaMedium",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],LL.prototype,"plaLarge",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],LL.prototype,"plaExtraLarge",void 0);_.c([_.O("data.titleText"),_.I("design:type",String),_.I("design:paramtypes",[])],LL.prototype,"titleAriaLabel",null);_.c([_.O("data.rating"),_.I("design:type",Object),_.I("design:paramtypes",[])],LL.prototype,"getRating",null);_.c([_.O("data.price"),_.I("design:type",Object),_.I("design:paramtypes",[])],LL.prototype,"getPrice",null);
_.c([_.O("data.thirdLine"),_.I("design:type",Object),_.I("design:paramtypes",[])],LL.prototype,"getThirdLine",null);_.c([_.O("data.fourthLine"),_.I("design:type",Object),_.I("design:paramtypes",[])],LL.prototype,"getFourthLine",null);_.c([_.O("data.fifthLine"),_.I("design:type",Object),_.I("design:paramtypes",[])],LL.prototype,"getFifthLine",null);_.c([_.O("getRating"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"computeRatingHidden",null);
_.c([_.O("getPrice"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"computePriceHidden",null);_.c([_.O("getThirdLine"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"computeThirdLineHidden",null);_.c([_.O("getFourthLine"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"computeFourthLineHidden",null);_.c([_.O("getFifthLine"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"computeFifthLineHidden",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.energyIcon"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"hasEnergyIcon",null);_.c([_.O("computePriceHidden","computeRatingHidden"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"computeSecondaryTextHidden",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],LL.prototype,"standardizeIconSize",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],LL.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],LL.prototype,"noBottomMargin",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.layout"),_.I("design:type",String),_.I("design:paramtypes",[])],LL.prototype,"layout",null);_.c([_.O("data.layout"),_.I("design:type",Object),_.I("design:paramtypes",[])],LL.prototype,"mediaThumbnailWidth",null);
_.c([_.O("layout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LL.prototype,"useRoundedBadge",null);_.c([_.v(),_.I("design:type",String)],LL.prototype,"thumbnailObjectFit",void 0);_.c([_.v(),_.I("design:type",Object)],LL.prototype,"thumbnailFitHeight",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],LL.prototype,"dataChanged",null);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],LL.prototype,"onTap",null);_.c([_.mC({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],LL);
_.d(LL,"ytd-display-ad-renderer",function(){if(tdP!==void 0)return tdP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return tdP=G},{mode:1});var SUq;var sbw;var xcL;var tdo=new Map;var P07=!1;var r4=function(){var G=_.p.apply(this,arguments)||this;G.DEFAULT_TOOLTIP_OFFSET="10";G.TOOLTIP_OFFSET_NO_BANNER="-8";G.badges=null;G.noEndpoints=!1;G.wrapText=!1;G.forceVerified=!1;G.tooltipPosition="top";G.compactStyle=!1;G.height=0;G.lineHeight=0;return G};
_.r(r4,_.p);_.w=r4.prototype;_.w.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.w.attached=function(){var G=this;this.observer=new MutationObserver(function(B,F){G.handleResized();F.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.w.detached=function(){this.observer&&this.observer.disconnect()};
_.w.logTooltipEvent=function(){_.X("kevlar_wiz_tooltip_event_killswitch")||P07||(_.Z0S("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),P07=!0)};
_.w.handleWindowResized=function(){this.handleResized()};
_.w.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")))};
_.w.onHeightChanged=function(){if(this.verified){var G=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.v5("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=G:this.textContainerEl.style.marginRight=G}};
_.w.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.v5("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.w.handleResized=function(){var G=this;this.verified&&_.Lu.addLowPriorityJob(function(){G.fitBackgroundToText();var B=getComputedStyle(G.hostElement).lineHeight;B&&(B=B.match(/\d+/))&&B.length&&(G.lineHeight=Number(B[0]));G.height=G.lineHeight&&!G.wrapText?G.lineHeight:G.textEl.offsetHeight})};
_.w.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var G=document.createRange(),B=_.IF(this.textEl).children;B.length>0?G.selectNodeContents(B[0]):G.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(G.getBoundingClientRect().width)+"px"}};
_.w.computeChannelBadgeStyle=function(G){var B;if((G==null?0:(B=G.runs)==null?0:B.length)&&G.runs[0].textColor)return"--ytd-badge-icon-color:"+_.hV(G.runs[0].textColor)+";"};
_.ZN.Object.defineProperties(r4.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"?_.$9(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var G=this.get("badges.0.metadataBadgeRenderer.tooltip");if(G)return G}return _.zx(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
r4.prototype.onLineHeightChanged=r4.prototype.onLineHeightChanged;r4.prototype.onHeightChanged=r4.prototype.onHeightChanged;r4.prototype.onChannelNameChanged=r4.prototype.onChannelNameChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],r4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],r4.prototype,"badges",void 0);_.c([_.v(),_.I("design:type",Object)],r4.prototype,"channelName",void 0);
_.c([_.v(),_.I("design:type",Object)],r4.prototype,"noEndpoints",void 0);_.c([_.v(),_.I("design:type",Object)],r4.prototype,"wrapText",void 0);_.c([_.v(),_.I("design:type",Object)],r4.prototype,"forceVerified",void 0);_.c([_.v(),_.I("design:type",Object)],r4.prototype,"tooltipPosition",void 0);_.c([_.v(),_.I("design:type",String)],r4.prototype,"tooltip",void 0);_.c([_.v(),_.I("design:type",Boolean)],r4.prototype,"hasChannelArt",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r4.prototype,"compactStyle",void 0);_.c([_.iA("#text-container"),_.I("design:type",HTMLElement)],r4.prototype,"textContainerEl",void 0);_.c([_.iA("#text"),_.I("design:type",Object)],r4.prototype,"textEl",void 0);_.c([_.iA("#verified-tooltip"),_.I("design:type",HTMLElement)],r4.prototype,"verifiedTooltip",void 0);_.c([_.v(),_.I("design:type",Object)],r4.prototype,"height",void 0);
_.c([_.v(),_.I("design:type",Object)],r4.prototype,"lineHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("badges","forceVerified"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],r4.prototype,"verified",null);_.c([_.O("badges","verified"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],r4.prototype,"hideBadges",null);_.c([_.O("channelName"),_.I("design:type",Object),_.I("design:paramtypes",[])],r4.prototype,"formattedName",null);
_.c([_.O("badges","verified","formattedName"),_.I("design:type",String),_.I("design:paramtypes",[])],r4.prototype,"tooltipText",null);_.c([_.O("hasChannelArt"),_.I("design:type",String),_.I("design:paramtypes",[])],r4.prototype,"tooltipOffset",null);_.c([_.Ga("channelName"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r4.prototype,"onChannelNameChanged",null);
_.c([_.Ga("height"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r4.prototype,"onHeightChanged",null);_.c([_.Ga("lineHeight","height"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r4.prototype,"onLineHeightChanged",null);_.c([_.mC({is:"ytd-channel-name",disableElementRegistration:!0})],r4);
_.d(r4,"ytd-channel-name",function(){if(xcL!==void 0)return xcL;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return xcL=G},{mode:2});var WM=function(){var G=_.p.apply(this,arguments)||this;G.standardizeIconSize=_.X("kevlar_system_icons");return G};
_.r(WM,_.p);WM.prototype.basicPaletteChanged=function(){var G;(G=this.data.color)!=null&&G.basicColorPaletteData&&_.nA(this.hostElement,this.data.color.basicColorPaletteData)};
WM.prototype.useFilledIcons=function(G){return _.X("kevlar_system_icons")&&(G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE")};
_.ZN.Object.defineProperties(WM.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return this.data.authorCreator||((G=this.data)==null?void 0:(B=G.color)==null?void 0:(F=B.basicColorPaletteData)==null?void 0:F.backgroundColor)}}});
WM.prototype.basicPaletteChanged=WM.prototype.basicPaletteChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WM.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],WM.prototype,"standardizeIconSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.authorUnifiedVerified"),_.I("design:type",Object),_.I("design:paramtypes",[])],WM.prototype,"verified",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],WM.prototype,"creator",null);_.c([_.Ga("data.color.basicColorPaletteData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WM.prototype,"basicPaletteChanged",null);_.c([_.mC({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],WM);
_.d(WM,"ytd-author-comment-badge-renderer",function(){if(sbw!==void 0)return sbw;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return sbw=G},{mode:1});var GYq;var HM=function(){return _.p.apply(this,arguments)||this};
_.r(HM,_.p);HM.prototype.computeThumbnailWidth=function(G){if(G==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],HM.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",String)],HM.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],HM.prototype,"surface",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.X("enable_shrink_image_size_on_web_posts_singleton")}),_.I("design:type",Boolean)],HM.prototype,"searchSxsUx",void 0);_.c([_.v({reflectToAttribute:!0,value:_.X("enable_community_page_on_desktop")}),_.I("design:type",Boolean)],HM.prototype,"useSmallerPostImageAttachments",void 0);_.c([_.mC({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],HM);
_.d(HM,"ytd-backstage-image-renderer",function(){if(GYq!==void 0)return GYq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return GYq=G},{mode:1});var B7L;var kj=function(){var G=_.p.apply(this,arguments)||this;G.isLoading=!1;G.selectedItemIndex=-1;return G};
_.r(kj,_.p);_.w=kj.prototype;_.w.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.w.computeIsImagePoll=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.w.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.w.thumbnailSrc=function(G){var B,F,D,u;return(G==null?0:(B=G.thumbnails)==null?0:(F=B[0])==null?0:F.url)?_.Sz((D=G.thumbnails)==null?void 0:(u=D[0])==null?void 0:u.url):void 0};
_.w.progressWidth=function(G){return"width:"+(G?G*100:0)+"%;"};
_.w.textAreaWidth=function(G){return this.isImagePoll?null:"width:"+(G?G*100:0)+"%;"};
_.w.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.w.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var G=this.data.choices,B=0;B<G.length;B++)if(G[B].selected){this.selectedItemIndex=B;break}};
_.w.onPopupClosed=function(G,B){G=Number(this.pollVotes.selected);B.confirmed&&(this.selectChoice(G,!1),_.T1(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.w.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.w.onYtCommentPollRevert=function(G,B){B&&(this.selectChoice(B.selectedChoiceIndex,!0),this.set("data.totalVotes",B.totalVotes))};
_.w.onYtServiceRequestSent=function(G,B){if(B.actions)for(G=0;G<B.actions.length;G++){var F=B.actions[G];_.Q(F,Fq)&&this.set("data.totalVotes",_.Q(F,Fq).totalVotes)}};
_.w.onYtServiceRequestCompleted=function(G){var B=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(B==="FEEDBACK_DESELECT"||B==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.cZ(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.w.getEndpoint=function(G,B){return B===G?this.data.choices[B].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.w.selectChoice=function(G,B){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var F=0;F<this.data.choices.length;F++){var D;if(G===this.selectedItemIndex){var u=!1;var R=D=null}else D=(u=F===G)?this.data.choices[F].voteRatioIfSelected:this.data.choices[F].voteRatioIfNotSelected,R=u?this.data.choices[F].votePercentageIfSelected:this.data.choices[F].votePercentageIfNotSelected;this.set("data.choices."+F+".voteRatio",D);
this.set("data.choices."+F+".votePercentage",R);this.set("data.choices."+F+".selected",u)}B||(this.isLoading=!0,(B=this.getEndpoint(G,this.selectedItemIndex))&&_.te().resolve(_.Wr).resolveCommand(B,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.ZN.Object.defineProperties(kj.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
kj.prototype.onYtServiceRequestCompleted=kj.prototype.onYtServiceRequestCompleted;kj.prototype.onYtServiceRequestSent=kj.prototype.onYtServiceRequestSent;kj.prototype.onYtCommentPollRevert=kj.prototype.onYtCommentPollRevert;kj.prototype.onPopupClosed=kj.prototype.onPopupClosed;kj.prototype.dataChanged=kj.prototype.dataChanged;_.c([_.k(_.HH),_.I("design:type",Object)],kj.prototype,"paperItemBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],kj.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kj.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],kj.prototype,"isLoading",void 0);_.c([_.v({computed:"computeIsChannelOwner(data.choices)"}),_.I("design:type",Boolean)],kj.prototype,"isChannelOwner",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.I("design:type",Boolean)],kj.prototype,"isImagePoll",void 0);_.c([_.v({computed:"computeIsTotalVotesDisabled(data)"}),_.I("design:type",Boolean)],kj.prototype,"isTotalVotesDisabled",void 0);_.c([_.v(),_.I("design:type",Object)],kj.prototype,"previousPollInfo",void 0);_.c([_.v(),_.I("design:type",Object)],kj.prototype,"selectedItemIndex",void 0);_.c([_.iA("#poll-votes"),_.I("design:type",Object)],kj.prototype,"pollVotes",void 0);
_.c([_.O("isChannelOwner"),_.I("design:type",Object),_.I("design:paramtypes",[])],kj.prototype,"endpointStyle",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kj.prototype,"dataChanged",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],kj.prototype,"onPopupClosed",null);
_.c([_.Pm("yt-comment-poll-revert"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],kj.prototype,"onYtCommentPollRevert",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],kj.prototype,"onYtServiceRequestSent",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],kj.prototype,"onYtServiceRequestCompleted",null);_.c([_.mC({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],kj);
_.d(kj,"ytd-backstage-poll-renderer",function(){if(B7L!==void 0)return B7L;var G=document.createElement("template");_.H(G,'\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" aria-selected$="[[item.selected]]">\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return B7L=G},{mode:2});var ijq;var FQL={autoplay:!1,loop:!1},Dft={simpleText:""},OB=function(){var G=_.p.apply(this,arguments)||this;G.isLoading=!1;G.usesPanelLockup=!1;G.selectedItemIndex=-1;G.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},FQL,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});G.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},FQL,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});G.correctnessAnimationProps=[];G.correctnessAnimationRefs=[];return G};
_.r(OB,_.p);_.w=OB.prototype;_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.w.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.w.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.w.computeIsImageQuiz=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.w.onExplanationChanged=function(){this.expander.reset()};
_.w.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var G=this.data.choices;if(G){this.maybeInitializeQuizLotties(G);for(var B=0;B<G.length;B++)if(G[B].isSelected||this.isChannelOwner&&G[B].isCorrect){this.selectedItemIndex=B;return}this.selectedItemIndex=-1}}};
_.w.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var G=this.selectedItemIndex,B=Number(this.quizVotes.selected);this.selectChoice(B);this.sendVoteAction(B,G);this.quizVotes.selected=-1;var F;G=!((F=this.data)==null?0:F.enableAnimation);this.maybePlayAnswerAnimations(G)}};
_.w.onYtCommentPollRevert=function(G,B){B&&(this.selectChoice(B.selectedChoiceIndex),this.set("data.totalVotes",B.totalVotes))};
_.w.onYtServiceRequestSent=function(G,B){if(B.actions)for(G=_.C(B.actions),B=G.next();!B.done;B=G.next())(B=_.Q(B.value,Fq))&&this.set("data.totalVotes",B.totalVotes)};
_.w.onYtServiceRequestCompleted=function(G){var B=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(B==="FEEDBACK_DESELECT"||B==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.cZ(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.w.getAnimationPropsForChoiceIndex=function(G,B){return B[G]};
_.w.maybePlayAnswerAnimations=function(G){G=G===void 0?!1:G;var B;if((B=this.data)!=null&&B.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){B=_.C(this.correctnessAnimationRefs);for(var F=B.next();!F.done;F=B.next()){var D=void 0,u=void 0;(D=F.value)==null||(u=D.lottieEl)==null||u.stop()}if(!(this.selectedItemIndex<0)){B=0;G&&(B=this.isCorrect?37:25);var R,N;(R=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(N=R.lottieEl)==null||N.goToAndPlay(G?B:0,!0);if(!(this.isCorrect||
(R=this.data.choices.findIndex(function(h){return h.isCorrect}),R<0))){var y,U;
(U=(y=this.correctnessAnimationRefs[R])==null?void 0:y.lottieEl)==null||U.goToAndPlay(37,!0);var q;y=(q=this.fadeContainers)==null?void 0:q.item(R);!G&&y&&this.fadeIn(y)}}}};
_.w.thumbnailSrc=function(G){var B,F,D,u;return(G==null?0:(B=G.thumbnails)==null?0:(F=B[0])==null?0:F.url)?_.Sz((D=G.thumbnails)==null?void 0:(u=D[0])==null?void 0:u.url):void 0};
_.w.a11yVotedText=function(G,B){var F,D,u=((F=this.data)==null?void 0:(D=F.correctVotedText)==null?void 0:D.simpleText)||"",R,N;F=((R=this.data)==null?void 0:(N=R.votedText)==null?void 0:N.simpleText)||"";if(!B)return"";var y,U;if((y=this.data)==null?0:(U=y.choices)==null?0:U[G].isCorrect)return u;var q,h;return((q=this.data)==null?0:(h=q.choices)==null?0:h[G].isSelected)?F:""};
_.w.getEndpoint=function(G,B){return B===G?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.w.sendVoteAction=function(G,B){if(G=this.getEndpoint(G,B))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(G)};
_.w.selectChoice=function(G){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var B=0;B<this.data.choices.length;B++)this.set("data.choices."+B+".isSelected",G===this.selectedItemIndex?!1:B===G);this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.w.maybeInitializeQuizLotties=function(G){var B=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=G.map(function(F){return{animationConfig:F.isCorrect?B.baseCorrectLottiePlayerAnimationConfig:B.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){B.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(F){return F.animationRef||{}})};
_.w.fadeIn=function(G){G.classList.add("fade-in");_.Tm(_.Lu,function(){G.classList.remove("fade-in")},900)};
_.ZN.Object.defineProperties(OB.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.zx(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 G,B;return((G=this.data)==null?void 0:(B=G.choices)==null?void 0:B.some(function(F){return F.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Dft:this.data.choices[this.selectedItemIndex].explanation||Dft}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
OB.prototype.onYtServiceRequestCompleted=OB.prototype.onYtServiceRequestCompleted;OB.prototype.onYtServiceRequestSent=OB.prototype.onYtServiceRequestSent;OB.prototype.onYtCommentPollRevert=OB.prototype.onYtCommentPollRevert;OB.prototype.dataChanged=OB.prototype.dataChanged;OB.prototype.onExplanationChanged=OB.prototype.onExplanationChanged;_.c([_.k(_.HH),_.I("design:type",Object)],OB.prototype,"paperItemBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],OB.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.zT.YtTaskEmitterBehavior),_.I("design:type",Object)],OB.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],OB.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],OB.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],OB.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Object)],OB.prototype,"usesPanelLockup",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.I("design:type",Boolean)],OB.prototype,"isChannelOwner",void 0);_.c([_.v({computed:"computeIsTotalVotesDisabled(data)"}),_.I("design:type",Boolean)],OB.prototype,"isTotalVotesDisabled",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.I("design:type",Boolean)],OB.prototype,"isImageQuiz",void 0);_.c([_.v(),_.I("design:type",Object)],OB.prototype,"previousQuizInfo",void 0);_.c([_.v(),_.I("design:type",Object)],OB.prototype,"selectedItemIndex",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data","usesPanelLockup"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],OB.prototype,"shouldUseModernUi",null);
_.c([_.FQ(".fade-container"),_.I("design:type",Object)],OB.prototype,"fadeContainers",void 0);_.c([_.v(),_.I("design:type",Array)],OB.prototype,"correctnessAnimationProps",void 0);_.c([_.O("explanation","showCorrectAnswer"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],OB.prototype,"showExplanation",null);_.c([_.O("isChannelOwner","isAttempted"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],OB.prototype,"showCorrectAnswer",null);
_.c([_.O("isChannelOwner","isAttempted","data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],OB.prototype,"isQuizAnsweringDisabled",null);_.c([_.O("isQuizAnsweringDisabled"),_.I("design:type",Object),_.I("design:paramtypes",[])],OB.prototype,"endpointStyle",null);_.c([_.O("data","selectedItemIndex"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],OB.prototype,"isAttempted",null);
_.c([_.O("data","selectedItemIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],OB.prototype,"explanation",null);_.c([_.O("data","selectedItemIndex"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],OB.prototype,"isCorrect",null);_.c([_.iA("ytd-expander"),_.I("design:type",Object)],OB.prototype,"expander",void 0);_.c([_.iA("#quiz-votes"),_.I("design:type",Object)],OB.prototype,"quizVotes",void 0);
_.c([_.Ga("explanation"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OB.prototype,"onExplanationChanged",null);_.c([_.Ga("data","isChannelOwner"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OB.prototype,"dataChanged",null);_.c([_.Pm("yt-comment-quiz-revert"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],OB.prototype,"onYtCommentPollRevert",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],OB.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],OB.prototype,"onYtServiceRequestCompleted",null);_.c([_.mC({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],OB);
_.d(OB,"ytd-backstage-quiz-renderer",function(){if(ijq!==void 0)return ijq;var G=document.createElement("template");_.H(G,'\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="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ijq=G},{mode:1});var uvU;var eh=function(){return _.p.apply(this,arguments)||this};
_.r(eh,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],eh.prototype,"data",void 0);_.c([_.mC({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],eh);
_.d(eh,"ytd-post-uploaded-video-renderer",function(){if(uvU!==void 0)return uvU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return uvU=G},{mode:1});var R08;var zl=function(){return _.p.apply(this,arguments)||this};
_.r(zl,_.p);zl.prototype.useFilledIcons=function(G){return G==="SPONSORSHIP_STAR"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zl.prototype,"data",void 0);_.c([_.mC({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],zl);
var wuy=_.tS()(zl,"ytd-sponsors-only-badge-renderer",function(){if(R08===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);R08=G}G=R08;return G},{allowedProps:["data"],
mode:1});var C7U;var bI=function(){return _.p.apply(this,arguments)||this};
_.r(bI,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],bI.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bI.prototype,"data",void 0);_.c([_.mC({is:"ytd-child-video-renderer",disableElementRegistration:!0})],bI);
_.d(bI,"ytd-child-video-renderer",function(){if(C7U!==void 0)return C7U;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return C7U=G},{mode:1});var N7t;var yra;var VR=function(){var G=_.p.apply(this,arguments)||this;G.size=0;G.fallbackImageSize={height:void 0,width:9999};G.webModernCollections=!1;return G};
_.r(VR,_.p);_.w=VR.prototype;_.w.computeBlurredImageSize=function(G){return G?{height:G*2,width:G*2}:this.fallbackImageSize};
_.w.computeImageSize=function(G){return G?{height:G,width:G}:this.fallbackImageSize};
_.w.computeObjectFit=function(G){return G?"FILL":"CONTAIN"};
_.w.computePreserve=function(G){return G?!0:!1};
_.w.setBackground=function(){var G,B;if((G=this.data)==null?0:(B=G.thumbnail)==null?0:B.sampledThumbnailColor)G=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+G.red+","+G.green+","+G.blue+",1)"};
VR.prototype.setBackground=VR.prototype.setBackground;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],VR.prototype,"watchFeedThumbnail",void 0);_.c([_.v(),_.I("design:type",Object)],VR.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],VR.prototype,"size",void 0);
_.c([_.v({computed:"computeBlurredImageSize(size)"}),_.I("design:type",Object)],VR.prototype,"blurredImageSize",void 0);_.c([_.v({computed:"computeImageSize(size)"}),_.I("design:type",Object)],VR.prototype,"imageSize",void 0);_.c([_.v({computed:"computePreserve(size)"}),_.I("design:type",String)],VR.prototype,"preserve",void 0);_.c([_.v({computed:"computeObjectFit(size)"}),_.I("design:type",String)],VR.prototype,"objectFit",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],VR.prototype,"webModernCollections",void 0);_.c([_.Ga("data.thumbnail.sampledThumbnailColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],VR.prototype,"setBackground",null);_.c([_.mC({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],VR);
_.d(VR,"ytd-playlist-custom-thumbnail-renderer",function(){if(yra!==void 0)return yra;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return yra=G},{mode:1});var nx8;var vM=function(){return _.p.apply(this,arguments)||this};
_.r(vM,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vM.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],vM.prototype,"width",void 0);_.c([_.mC({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],vM);
_.d(vM,"ytd-playlist-video-thumbnail-renderer",function(){if(nx8!==void 0)return nx8;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return nx8=G},{mode:1});var loP;var o8=function(){return _.p.apply(this,arguments)||this};
_.r(o8,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],o8.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],o8.prototype,"width",void 0);_.c([_.mC({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],o8);
_.d(o8,"ytd-show-custom-thumbnail-renderer",function(){if(loP!==void 0)return loP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return loP=G},{mode:1});var Ufs;var M2=function(){return _.p.apply(this,arguments)||this};
_.r(M2,_.p);M2.prototype.useFilledIcons=function(G){return G==="MUSIC"||G==="COURSE"};
M2.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=aF(this.overlayColor,"0.8");else if(this.overlayColor){var G=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+G.red+","+G.green+","+G.blue+",0.8)"}};
_.ZN.Object.defineProperties(M2.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)}}});
M2.prototype.overlayColorChanged=M2.prototype.overlayColorChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],M2.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],M2.prototype,"overlayColor",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.icon","data.text"),_.I("design:type",Object),_.I("design:paramtypes",[])],M2.prototype,"overlayStyle",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.icon","data.text"),_.I("design:type",Object),_.I("design:paramtypes",[])],M2.prototype,"overlayTextStyle",null);_.c([_.Ga("overlayColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],M2.prototype,"overlayColorChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],M2);
_.d(M2,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Ufs!==void 0)return Ufs;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Ufs=G},{mode:1});var qmP;var pL=function(){var G=_.p.apply(this,arguments)||this;G.active=!1;return G};
_.r(pL,_.p);pL.prototype.computeIsSpinnerHidden=function(G){return(G==null?void 0:G.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
pL.prototype.computeOverlayIcon=function(G){return(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],pL.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],pL.prototype,"active",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],pL);
_.d(pL,"ytd-thumbnail-overlay-downloading-renderer",function(){if(qmP!==void 0)return qmP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qmP=G},{mode:1});var ExT;var Yj=function(){return _.p.apply(this,arguments)||this};
_.r(Yj,_.p);_.ZN.Object.defineProperties(Yj.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Yj.prototype,"data",void 0);_.c([_.O("data.text"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yj.prototype,"text",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Yj);
_.d(Yj,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(ExT!==void 0)return ExT;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ExT=G},{mode:1});var h0s,KQv=function(){if(h0s!==void 0)return h0s;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return h0s=G};var A3=function(){return _.p.apply(this,arguments)||this};
_.r(A3,_.p);_.ZN.Object.defineProperties(A3,{template:{configurable:!0,enumerable:!0,get:function(){return KQv()}}});
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],A3.prototype,"animateEqualizer",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],A3);_.tS()(A3,"ytd-thumbnail-overlay-equalizer",function(){return KQv()},{allowedProps:["animateEqualizer"],
mode:1});var aoN;var d4=function(){var G=_.p.apply(this,arguments)||this;G.nowPlayingBadge=_.X("web_now_playing_badge");G.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return G};
_.r(d4,_.p);d4.prototype.activeChanged=function(){var G=this;_.X("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.ft(this,function(){_.cZ(G.hostElement,"yt-playlist-lockup-now-playing-active",G)})};
d4.prototype.onMiniplayerPlayStateChanged=function(G){var B,F=(B=_.Q(_.Bv().currentEndpoint,_.Ow))==null?void 0:B.videoId;this.isVideoPlaying=G&&(_.X("web_limit_now_playing_animation_killswitch")||this.videoId===F)};
d4.prototype.activeChanged=d4.prototype.activeChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],d4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],d4.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],d4.prototype,"isVideoPlaying",void 0);_.c([_.v(),_.I("design:type",String)],d4.prototype,"videoId",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],d4.prototype,"equalizerOnly",void 0);_.c([_.v(),_.I("design:type",Boolean)],d4.prototype,"isActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],d4.prototype,"nowPlayingBadge",void 0);_.c([_.Ga("isActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d4.prototype,"activeChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],d4);
_.d(d4,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(aoN!==void 0)return aoN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return aoN=G},{mode:1});var mft;var J3=function(){return _.p.apply(this,arguments)||this};
_.r(J3,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],J3.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],J3);
_.d(J3,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(mft!==void 0)return mft;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return mft=G},{mode:2});var XuP;var cM=function(){return _.p.apply(this,arguments)||this};
_.r(cM,_.p);cM.prototype.onDurationChanged=function(){var G,B;_.IF(this.hostElement).querySelector("#progress").style.width=((B=(G=this.data)==null?void 0:G.percentDurationWatched)!=null?B:0)+"%"};
cM.prototype.onDurationChanged=cM.prototype.onDurationChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],cM.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cM.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],cM.prototype,"isLive",void 0);_.c([_.Ga("data.percentDurationWatched"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cM.prototype,"onDurationChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],cM);
_.d(cM,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(XuP!==void 0)return XuP;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return XuP=G},{mode:1});var QUs;var Tl=function(){var G=_.p.apply(this,arguments)||this;G.bottomPanel=!1;G.richGridOverlay=!1;G.watchFeedOverlay=!1;G.isCompact=!1;return G};
_.r(Tl,_.p);Tl.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.ZN.Object.defineProperties(Tl.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.icon)==null?void 0:B.iconType)==="PLAY_ALL"&&_.X("kevlar_system_icons")}}});
Tl.prototype.widthChanged=Tl.prototype.widthChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Tl.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],Tl.prototype,"width",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tl.prototype,"bottomPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tl.prototype,"richGridOverlay",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tl.prototype,"watchFeedOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tl.prototype,"isCompact",void 0);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Tl.prototype,"isIconFilled",null);_.c([_.Ga("width","watchFeedOverlay"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tl.prototype,"widthChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Tl);
_.d(Tl,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(QUs!==void 0)return QUs;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QUs=G},{mode:1});var jUN;var LQv=["CLIP","SHORTS"],I8=function(){var G=_.p.apply(this,arguments)||this;G.animated=_.X("animated_live_badge_icon");G.hasIcon=!1;G.updateTimerIntervalId=0;G.timeSinceLive=0;return G};
_.r(I8,_.p);_.w=I8.prototype;_.w.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.w.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.w.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.w.hasIconOrText=function(){var G,B;return!!(((G=this.data)==null?0:G.icon)||((B=this.data)==null?0:B.text))};
_.w.initializeLiveBadgeTimer=function(){var G=this,B,F=(B=this.liveBadgeData)==null?void 0:B.startTimestampSec;if(F&&this.canShowLiveBadgeTimer()){var D;B=Number((D=this.liveBadgeData)==null?void 0:D.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(F);this.updateTimerIntervalId=_.FB(function(){G.canShowLiveBadgeTimer()?G.timeSinceLive++:(G.timeSinceLive=0,window.clearInterval(G.updateTimerIntervalId))},B)}else this.timeSinceLive=0};
_.w.canShowLiveBadgeTimer=function(){var G=Date.now(),B,F;return G<(Number((B=this.liveBadgeData)==null?void 0:B.endTimestampSec)-1)*1E3&&G>Number((F=this.liveBadgeData)==null?void 0:F.startTimestampSec)*1E3};
_.ZN.Object.defineProperties(I8.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.g_z(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.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 LQv.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
I8.prototype.initializeLiveBadgeTimer=I8.prototype.initializeLiveBadgeTimer;I8.prototype.dataChanged=I8.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],I8.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],I8.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",String)],I8.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],I8.prototype,"animated",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.I("design:type",Boolean)],I8.prototype,"hideTimeStatus",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],I8.prototype,"hasIcon",void 0);_.c([_.v(),_.I("design:type",Object)],I8.prototype,"timeSinceLive",void 0);_.c([_.O("data","timeSinceLive"),_.I("design:type",Object),_.I("design:paramtypes",[])],I8.prototype,"badgeShapeData",null);
_.c([_.O("data","overlayType"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],I8.prototype,"hideBadgeShape",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],I8.prototype,"dataChanged",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.style"),_.I("design:type",Object),_.I("design:paramtypes",[])],I8.prototype,"overlayStyle",null);
_.c([_.O("data.liveBadgeData"),_.I("design:type",Object),_.I("design:paramtypes",[])],I8.prototype,"liveBadgeData",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.type"),_.I("design:type",Object),_.I("design:paramtypes",[])],I8.prototype,"overlayType",null);_.c([_.O("overlayType","overlayStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],I8.prototype,"useFilledIcon",null);
_.c([_.Ry("liveBadgeData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],I8.prototype,"initializeLiveBadgeTimer",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],I8);
_.d(I8,"ytd-thumbnail-overlay-time-status-renderer",function(){if(jUN!==void 0)return jUN;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jUN=G},{mode:2});var rrs;var fL=function(){return _.p.apply(this,arguments)||this};
_.r(fL,_.p);fL.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"}}}}};
fL.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(G){if(this.hasPlaybackProgressBar)return{percentDurationWatched:G.percentDurationWatched}};
fL.prototype.computeHasPlaybackProgressBar=function(G){return!!G.percentDurationWatched&&G.percentDurationWatched>0};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],fL.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.I("design:type",Boolean)],fL.prototype,"hasPlaybackProgressBar",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],fL);
_.d(fL,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(rrs!==void 0)return rrs;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return rrs=G},{mode:1});var WQq;var HjT=_.Y(function(G){var B=G.data;var F=G.children;var D=function(){return!!B().doubleStack},u=function(){return!!B().includeStackHeight};
return _.l("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!B().experimentEnabled}},_.l(_.E,{cond:B,
then:function(){var R={};return _.l(_.GJ,null,_.l(_.E,{cond:u,then:function(){var N={};return _.l("div",{class:_.tx("ytCollectionsStackSpacer",(N.ytCollectionsStackSpacerDoubleStack=D,N))})}}),_.l("div",{class:_.tx((R.ytCollectionsStackRelativeStack=u,R))},_.l(_.E,{cond:D,
then:function(){var N={};return _.l("div",{class:_.tx("ytCollectionsStackCollectionStack2",function(){return B().customClassName2ndStack},(N.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return B().enableResponsiveMode},N)),
style:_.xN({"background-color":function(){return sbU(B())}})})}}),_.l("div",{class:_.tx("ytCollectionsStackCollectionStack1",function(){return B().customClassName1stStack},function(){return SUI(B().thumbnailSize?B().thumbnailSize:"medium")}),
style:_.xN({"background-color":function(){return sbU(B())}})}),F))}}))},"Fa");_.YN(HjT,"yt-collections-stack",{props:{data:_.Hd}});var t3=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};G.webModernCollections=!1;G.isSearch=!1;G.isDoubleStack=!1;G.thumbnailSize="medium";return G};
_.r(t3,_.p);_.w=t3.prototype;
_.w.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]]"}}}}}};
_.w.getThumbnailDetails=function(G){if(G!=null&&G.thumbnailRenderer){var B=G.thumbnailRenderer,F;if((F=B.playlistVideoThumbnailRenderer)==null?0:F.thumbnail)return B.playlistVideoThumbnailRenderer.thumbnail;var D;if((D=B.playlistCustomThumbnailRenderer)==null?0:D.thumbnail)return B.playlistCustomThumbnailRenderer.thumbnail;G=G.thumbnailRenderer;var u;if((u=G.showCustomThumbnailRenderer)==null?0:u.thumbnail)return G.showCustomThumbnailRenderer.thumbnail}};
_.w.computeOverlayColor=function(G){var B,F;if((B=this.getThumbnailDetails(G))==null?0:(F=B.darkColorPalette)==null?0:F.section2Color)return this.getThumbnailDetails(G).darkColorPalette.section2Color;var D;return(D=this.getThumbnailDetails(G))==null?void 0:D.sampledThumbnailColor};
_.w.computeWebModernCollections=function(G){if(G==null||!G.thumbnailOverlays)return!1;G=_.C(G.thumbnailOverlays);for(var B=G.next();!B.done;B=G.next()){var F=void 0;if((F=B.value)==null?0:F.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.w.computeNavigationEndpoint=function(G){return zzg(G==null?void 0:G.navigationEndpoint)};
_.ZN.Object.defineProperties(t3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:G==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:G==null?void 0:G.vibrantColorPalette,darkColorPalette:G==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],t3.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(vtq),_.I("design:type",Object)],t3.prototype,"ytdThumbnailBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],t3.prototype,"componentBehavior",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],t3.prototype,"watchFeedThumbnail",void 0);_.c([_.v(),_.I("design:type",Number)],t3.prototype,"customThumbnailSize",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],t3.prototype,"hideAria",void 0);_.c([_.v(),_.I("design:type",Object)],t3.prototype,"data",void 0);_.c([_.v({computed:"computeOverlayColor(data)"}),_.I("design:type",Object)],t3.prototype,"overlayColor",void 0);
_.c([_.v({computed:"computeWebModernCollections(data)"}),_.I("design:type",Object)],t3.prototype,"webModernCollections",void 0);_.c([_.v({computed:"computeNavigationEndpoint(data)"}),_.I("design:type",Object)],t3.prototype,"computedNavigationEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],t3.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],t3.prototype,"isDoubleStack",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],t3.prototype,"thumbnailSize",void 0);_.c([_.O("data","isDoubleStack","thumbnailSize"),_.I("design:type",Object),_.I("design:paramtypes",[])],t3.prototype,"collectionStack",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],t3);
_.d(t3,"ytd-playlist-thumbnail",function(){if(WQq!==void 0)return WQq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return WQq=G},{mode:2});var kYP;_.YN(_.Y(function(G){return _.l("yt-text-view-model",{class:_.tx("ytTextViewModelHost")},_.l(_.Wd,{text:function(){return G.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.Hd}});var Zp=function(){var G=_.p.apply(this,arguments)||this;G.noEndpoints=!1;G.amsterdamPostMvp=_.X("web_amsterdam_post_mvp_playlists");G.badges=[];G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.r(Zp,_.p);_.w=Zp.prototype;_.w.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.w.getMetadata=function(G){if(!G)return[];var B=[],F=G.shortViewCountText||G.viewCountText;F&&B.push(_.zx(F));G.publishedTimeText&&B.push(_.zx(G.publishedTimeText));G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&B.push(_.nh(_.zx(G.upcomingEventData.upcomingEventText),Number(G.upcomingEventData.startTime)));return B};
_.w.observeDataForBylineSeparator=function(){this.data&&_.tV(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.w.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.hV(this.metadataColor)};
_.w.getSimpleString=function(G){return _.zx(G)};
_.w.isBylineHidden=function(G){return this.noByline||!((G==null?0:G.longBylineText)||(G==null?0:G.shortBylineText))};
_.w.isMetadataHidden=function(G){var B;return((B=this.getMetadata(G))==null?void 0:B.length)===0};
_.w.isBylineMetadataSeparatorHidden=function(G){return this.isMetadataHidden(G)||!this.shouldShowVideoInfo};
_.w.isLongByline=function(G,B){return B&&!(G==null||!G.longBylineText)};
_.ZN.Object.defineProperties(Zp.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var G;return this.amsterdamPostMvp&&!((G=this.data)==null||!G.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Zp.prototype.metadataColorChanged=Zp.prototype.metadataColorChanged;Zp.prototype.observeDataForBylineSeparator=Zp.prototype.observeDataForBylineSeparator;_.c([_.k(_.hf),_.I("design:type",Object)],Zp.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Zp.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Zp.prototype,"noEndpoints",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"isSlimShort",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"radioMeta",void 0);_.c([_.v({selector:_.mA}),_.I("design:type",Object)],Zp.prototype,"isGridViewEnabled",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"richMeta",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Zp.prototype,"amsterdamPostMvp",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Zp.prototype,"noByline",void 0);_.c([_.v({computed:"isLongByline(data, radioMeta)"}),_.I("design:type",Boolean)],Zp.prototype,"longByline",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"truncateMetadataLine",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"miniMode",void 0);_.c([_.v(),_.I("design:type",Number)],Zp.prototype,"metadataColor",void 0);
_.c([_.v(),_.I("design:type",Array)],Zp.prototype,"badges",void 0);_.c([_.v({selector:_.mD,selectorArgs:["data.videoId"]}),_.I("design:type",String)],Zp.prototype,"transferState",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"isDownloading",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Zp.prototype,"typographyBump",void 0);_.c([_.iA("#metadata-line"),_.I("design:type",HTMLElement)],Zp.prototype,"metadataLine",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Zp.prototype,"observeDataForBylineSeparator",null);_.c([_.Ga("metadataColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Zp.prototype,"metadataColorChanged",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Zp.prototype,"shouldShowVideoInfo",null);
_.c([_.O("badges"),_.I("design:type",String),_.I("design:paramtypes",[])],Zp.prototype,"inlineBadgeClass",null);_.c([_.O("longByline"),_.I("design:type",String),_.I("design:paramtypes",[])],Zp.prototype,"longBylineClass",null);_.c([_.O("data","longByline"),_.I("design:type",Object),_.I("design:paramtypes",[])],Zp.prototype,"bylineText",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Zp.prototype,"hasAttributedBylineText",null);
_.c([_.O("isGridViewEnabled","data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Zp.prototype,"watchFeedBigThumbs",null);_.c([_.mC({is:"ytd-video-meta-block",disableElementRegistration:!0})],Zp);
_.d(Zp,"ytd-video-meta-block",function(){if(kYP!==void 0)return kYP;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return kYP=G},{mode:2});_.UR("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var g4=function(){var G=_.p.apply(this,arguments)||this;G.displayItemCount=2;G.isBackstagePlaylist=!1;G.isPostCompactPlaylist=!1;G.shouldShowChannelThumbnail=!1;return G};
_.r(g4,_.p);_.w=g4.prototype;_.w.computeFirstVideos=function(G,B){return G===void 0||B===void 0?[]:G.slice(0,B)};
_.w.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var G=this.data.thumbnailRenderer;G.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",G.playlistVideoThumbnailRenderer.thumbnail);G.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",G.playlistCustomThumbnailRenderer.thumbnail)}};
_.w.computeThumbnailHeight=function(G,B,F,D,u){return D?u==="BIG"?280:u==="MASSIVE"?337:234:F?240:B?72:G?118:138};
_.w.computeThumbnailWidth=function(G,B,F,D,u){return D?u==="MEDIUM"?450:u==="BIG"?500:u==="MASSIVE"?600:420:F?360:B?128:G?210:246};
_.w.computeUseBiggerThumbs=function(G){return G&&_.X("enable_desktop_search_bigger_thumbs")};
_.w.computeShouldShowChannelThumbnail=function(G,B){return G&&!(B==null||!B.channelThumbnail)};
_.ZN.Object.defineProperties(g4.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
g4.prototype.dataChanged=g4.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],g4.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],g4.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],g4.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],g4.prototype,"displayItemCount",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],g4.prototype,"isBackstagePlaylist",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],g4.prototype,"isPostCompactPlaylist",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],g4.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.I("design:type",Boolean)],g4.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],g4.prototype,"biggerThumbsStyle",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],g4.prototype,"isDownloads",void 0);_.c([_.v({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.I("design:type",Object)],g4.prototype,"shouldShowChannelThumbnail",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],g4.prototype,"dataChanged",null);
_.c([_.O("isSearch"),_.I("design:type",String),_.I("design:paramtypes",[])],g4.prototype,"stackThumbnailSize",null);_.c([_.mC({is:"ytd-playlist-renderer",disableElementRegistration:!0})],g4);
_.d(g4,"ytd-playlist-renderer",function(){if(N7t===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);N7t=G}G=N7t;return G},{mode:1});var OjT;var e0q;var Sh=function(){var G=_.p.apply(this,arguments)||this;G.startX=0;return G};
_.r(Sh,_.p);Sh.prototype.onEndpointMouseDown=function(G){this.startX=G.clientX};
Sh.prototype.onEndpointClick=function(G){this.startX!==G.clientX&&(G.preventDefault(),G.stopPropagation())};
Sh.prototype.computeObjectFit=function(G){return G==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Sh.prototype.computeCardStyle=function(G){return G?G.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.ZN.Object.defineProperties(Sh.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.searchRefinementCardRendererStyle)==null?void 0:B.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Sh.prototype,"data",void 0);_.c([_.v({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.I("design:type",Number)],Sh.prototype,"objectFit",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.I("design:type",String)],Sh.prototype,"cardStyle",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],Sh.prototype,"roundContainer",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Sh.prototype,"isAlbumCard",null);_.c([_.O("data","isAlbumCard"),_.I("design:type",Object),_.I("design:paramtypes",[])],Sh.prototype,"collectionStack",null);_.c([_.mC({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Sh);
_.d(Sh,"ytd-search-refinement-card-renderer",function(){if(e0q!==void 0)return e0q;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return e0q=G},{mode:1});var $fT;var sB=function(){var G=_.p.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.r(sB,_.p);_.c([_.v(),_.I("design:type",Object)],sB.prototype,"data",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],sB.prototype,"componentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],sB.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],sB.prototype,"isRichGrid",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],sB.prototype,"miniMode",void 0);
_.c([_.mC({is:"ytd-game-details-renderer",disableElementRegistration:!0})],sB);
_.d(sB,"ytd-game-details-renderer",function(){if($fT!==void 0)return $fT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $fT=G},{mode:1});var z08;var bjw;var xj=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return G};
_.r(xj,_.p);_.w=xj.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.currentStateData=function(G){var B=G||this.data;return B&&B.states&&B.currentStateId!=null?B.states.find(function(F){return F.stateId===B.currentStateId})||null:null};
_.w.currentStateRendererData=function(G){return(G=this.currentStateData(G))&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.w.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())};
_.w.computeButtonIcon=function(G){G=this.currentStateRendererData(G);var B;return(G==null?0:(B=G.icon)==null?0:B.iconType)?G.icon.iconType.toLowerCase():null};
_.w.computeAccessibility=function(G){return(G=this.currentStateRendererData(G))&&G.accessibilityData?G.accessibilityData.accessibilityData||null:null};
_.w.computeButtonClass=function(G){var B=this.currentStateRendererData(G);if(!B)return"";G="";var F=B.style;F&&(G+=F.toLowerCase().replace(/_/g,"-")+" ");(B=B.size)&&(G+=B.toLowerCase().replace(/_/g,"-")+" ");return G.trim()};
_.w.computeServiceEndpoint=function(G){if(!G)return null;var B=G&&G.serviceEndpoint,F=this.get("command.commandMetadata.webCommandMetadata.sendPost",G);return B?B:F&&G.command?G.command:null};
_.w.computeBellMenuItemParams=function(G){var B;G=(B=_.Q(G==null?void 0:G.command,_.gs))==null?void 0:B.commands;if(!G||G.length===0)return null;B=_.Q(G[0],_.Dx);var F,D;return(B==null?0:(F=B.popup)==null?0:(D=F.menuPopupRenderer)==null?0:D.items)?B.popup.menuPopupRenderer.items.map(function(u){return u.menuServiceItemRenderer.trackingParams}):null};
_.w.handleBellMenuOpenSelectedAction=function(G){var B=G.trackingParams,F=this.computeBellMenuItemParams(this.data);this.data&&B&&F&&F.includes(B)&&this.ytRenderButtonBehavior._setButtonIcon(G.icon.iconType.toLowerCase())};
_.w.onYtServiceRequestCompleted=function(G,B){(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",B))&&this.set("data",G)};
_.w.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.w.resetState=function(){this.set("data.currentStateId",3)};
_.w.onYtButtonTapHandler=function(){if(this.data){var G=this.currentStateRendererData(this.data);G&&this.ytRendererBehavior.logExplicitClick(G)}};
xj.prototype.onYtServiceRequestError=xj.prototype.onYtServiceRequestError;xj.prototype.onYtServiceRequestCompleted=xj.prototype.onYtServiceRequestCompleted;xj.prototype.stateChanged=xj.prototype.stateChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],xj.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(Bj.YtRenderButtonBehavior),_.I("design:type",Object)],xj.prototype,"ytRenderButtonBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xj.prototype,"data",void 0);_.c([_.Ry("data","data.currentStateId"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xj.prototype,"stateChanged",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],xj.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],xj.prototype,"onYtServiceRequestError",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],xj);
_.d(xj,"ytd-subscription-notification-toggle-button-renderer",function(){if(bjw!==void 0)return bjw;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return bjw=G},{mode:1});var Vrt;var PM=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};G.tapHandler=function(){if(G.data){var B=G.currentStateRendererData();B&&G.ytRendererBehavior.logExplicitClick(B)}};
return G};
_.r(PM,_.p);_.w=PM.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.currentStateData=function(){var G=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(B){return B.stateId===G.data.currentStateId})||null:null};
_.w.currentStateRendererData=function(){var G=this.currentStateData();return G&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.w.computeAccessibilityLabel=function(){var G,B,F;return(G=this.currentStateRendererData())==null?void 0:(B=G.accessibilityData)==null?void 0:(F=B.accessibilityData)==null?void 0:F.label};
_.w.computeBellMenuItemParams=function(){var G,B,F=(B=_.Q((G=this.data)==null?void 0:G.command,_.gs))==null?void 0:B.commands;if(!F||F.length===0)return null;G=_.Q(F[0],_.Dx);var D,u;return(G==null?0:(D=G.popup)==null?0:(u=D.menuPopupRenderer)==null?0:u.items)?G.popup.menuPopupRenderer.items.map(function(R){return R.menuServiceItemRenderer.trackingParams}):null};
_.w.handleBellMenuOpenSelectedAction=function(G){var B=G.trackingParams,F=this.computeBellMenuItemParams();if(this.data&&B&&F&&F.includes(B)&&(G==null||!G.isDisabled)){var D;((D=_.Q(G.serviceEndpoint,_.sw))==null?void 0:D.signal)!=="CLIENT_SIGNAL"&&(this.icon=G.icon.iconType)}};
_.w.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.w.onYtServiceRequestCompleted=function(G,B){if(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",B))this.icon=void 0,this.set("data",G)};
_.w.onYtServiceRequestError=function(){this.icon=void 0};
_.ZN.Object.defineProperties(PM.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data,B=this.textLabel,F=this.hostElement,D=this.computeAccessibilityLabel(),u=this.tapHandler,R=this.isOverlay?"overlay":"mono",N=(G==null?0:G.disableButton)?"disabled":"active";B=B?_.hx(B):void 0;return{style:R,type:"tonal",state:N,size:"M",focused:!1,formattedButtonText:B,iconPosition:"leading-trailing",onTap:P0Q(G,u,F),accessibilityLabel:D}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.currentStateRendererData(),B,F,D=(F=this.icon)!=null?F:G==null?void 0:(B=G.icon)==null?void 0:B.iconType;if(D)return _.xT(D)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.secondaryIcon)==null?void 0:B.iconType;if(F)return _.xT(F)}}});
PM.prototype.onYtServiceRequestError=PM.prototype.onYtServiceRequestError;PM.prototype.onYtServiceRequestCompleted=PM.prototype.onYtServiceRequestCompleted;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],PM.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PM.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],PM.prototype,"textLabel",void 0);
_.c([_.v(),_.I("design:type",String)],PM.prototype,"icon",void 0);_.c([_.v(),_.I("design:type",Boolean)],PM.prototype,"isOverlay",void 0);_.c([_.O("data.*","textLabel"),_.I("design:type",Object),_.I("design:paramtypes",[])],PM.prototype,"computedButtonShape",null);_.c([_.O("data.*","icon"),_.I("design:type",Object),_.I("design:paramtypes",[])],PM.prototype,"computedIcon",null);_.c([_.O("computedIcon"),_.I("design:type",Object),_.I("design:paramtypes",[])],PM.prototype,"computedAnimateIcon",null);
_.c([_.O("data.*"),_.I("design:type",Object),_.I("design:paramtypes",[])],PM.prototype,"computedSecondaryIcon",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],PM.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],PM.prototype,"onYtServiceRequestError",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],PM);_.d(PM,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Vrt!==void 0)return Vrt;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Vrt=G},{mode:2});var vxy;_.YN(v_q,"yt-animated-action",{props:{backgroundLottieRef:_.Hd,foregroundLottieRef:_.Hd,wrapperClass:_.Hd,disableAnimation:_.Hd},unsafeExternallySettableAttributes:new Set(["key"])});var GO=function(){var G=_.p.apply(this,arguments)||this;G.animatedActionEnabled=_.X("web_animated_actions");G.foregroundLottieRef={};G.backgroundLottieRef={};G.forceIconOnly=!1;G.showTextWhileAnimating=!1;G.keyboardFocused=!1;G.isAnimating=!1;G.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return G};
_.r(GO,_.p);_.w=GO.prototype;_.w.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.w.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]]"}}}}}};
_.w.attached=function(){this.keyboardFocused=!1};
_.w.onYtServiceRequestSent=function(G,B){(this.get("endpoint.subscribeEndpoint",B)||this.get("endpoint.unsubscribeEndpoint",B))&&this.updateSubscriptionState(!this.subscribed)};
_.w.onYtServiceRequestCompleted=function(G,B){(G=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",B.data))&&this.bellButton&&(this.bellButton.data=G)};
_.w.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Ss(this.hostElement)};
_.w.onPlayerSubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.w.onPlayerUnsubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||this.updateSubscriptionState(!1)};
_.w.handleUpdateSubscribeButtonAction=function(G){G=_.Q(G,rDs);var B;G&&G.channelId===((B=this.data)==null?void 0:B.channelId)&&this.updateSubscriptionState(!!G.subscribed)};
_.w.computeButtonStyle=function(G){return this.get("style.styleType",G)||null};
_.w.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.w.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.w.updateSubscriptionState=function(G){if(G!==this.subscribed){this.set("data.subscribed",G);var B,F=(B=this.data)==null?void 0:B.subscribedEntityKey;F&&this.ytdReduxBehavior.dispatch(_.wC("subscriptionStateEntity",F,{key:F,subscribed:G}));this.isCompactRed()||_.cZ(this.hostElement,"yt-subscription-changed",G);G||(_.T1(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!G),G&&this.hasBellButton&&this.startAnimation())}};
_.w.startAnimation=function(){var G=this;if(!this.isAnimating){var B=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var F;(F=this.backgroundLottieRef.lottieEl)==null||F.goToAndPlay(0);var D;(D=this.foregroundLottieRef.lottieEl)==null||D.goToAndPlay(0);_.Lu.addJob(function(){G.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Lu.addJob(function(){G.updateContainerToFitContent(!!G.subscribed,!0)},2,1500);
_.Lu.addJob(function(){G.isAnimating=!1},2,B)}};
_.w.maybeAnimateBellIcon=function(){var G=_.fp(this.hostElement).querySelector("yt-animated-icon");if(G){var B;(B=G.animationRef.lottieEl)==null||B.goToAndPlay(0)}};
_.w.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.w.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.w.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var G;this.unsubscribedWidth=(G=this.subscribeButtonShape)==null?void 0:G.getBoundingClientRect().width}var B;this.subscribedWidth=(B=this.bellButton)==null?void 0:B.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.w.updateContainerToFitContent=function(G,B){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(G?(G=this.subscribedWidth,B=this.isAnimating&&!B,this.subscribedIconOnlyWidth===void 0||B||(G=this.subscribedIconOnlyWidth),this.hostElement.style.width=G+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.w.clearContainerSize=function(){this.hostElement.style.width=""};
_.w.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.w.maybeSetSubscribedButtonIconOnlyWidth=function(){var G=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var B;G.subscribedIconOnlyWidth=(B=G.bellButton)==null?void 0:B.getBoundingClientRect().width;requestAnimationFrame(function(){if(G.bellButton){var F;G.bellButton.textLabel=
(F=G.data)==null?void 0:F.subscribedButtonText}})})))};
_.ZN.Object.defineProperties(GO.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 G;return(G=this.data)==null?void 0:G.subscribedButtonText}var B;return this.forceIconOnly?void 0:(B=this.data)==null?void 0:B.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,B,F=((G=this.data)==null?void 0:(B=G.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"subscribe",timings:F,enabled:F.length>0&&!this.subscribed,experimentEnabled:F.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!this.subscribed&&((G=this.data)==null?void 0:G.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 G={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var B=G.renderer;var F=G.element;var D=G.subscribed;var u=G.commandController;var R=G.isOverlay;G=G.stopPropagation;var N=FQs(B,D);R&&(N.style="overlay");R=Object;var y=R.assign,U;a:switch((U=B.style)==null?void 0:U.styleType){case "COMPACT_GRAY":case "COMPACT_RED":U={size:"S"};break a;default:U={size:"M"}}var q=ijI(B,
D);var h=(h=D?B.subscribedButtonText:B.unsubscribedButtonText)?_.hx(h):void 0;return y.call(R,{},N,U,{focused:!1,toggled:D,accessibilityLabel:q,formattedButtonText:h,onTap:B7s(B,D,F,u,G)})}}}});
GO.prototype.onMouseDown=GO.prototype.onMouseDown;GO.prototype.onDataChanged=GO.prototype.onDataChanged;GO.prototype.observedSubscribed=GO.prototype.observedSubscribed;GO.prototype.onYtServiceRequestCompleted=GO.prototype.onYtServiceRequestCompleted;GO.prototype.onYtServiceRequestSent=GO.prototype.onYtServiceRequestSent;GO.prototype.maybeUpdateBellButtonText=GO.prototype.maybeUpdateBellButtonText;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],GO.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],GO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],GO.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],GO.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.subscribedEntityKey"],selector:jbM}),_.I("design:type",Object)],GO.prototype,"subscriptionStateEntity",void 0);_.c([_.v({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.I("design:type",Boolean)],GO.prototype,"subscribed",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],GO.prototype,"branded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],GO.prototype,"animatedActionEnabled",void 0);
_.c([_.v(),_.I("design:type",Object)],GO.prototype,"foregroundLottieRef",void 0);_.c([_.v(),_.I("design:type",Object)],GO.prototype,"backgroundLottieRef",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],GO.prototype,"overlayButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.I("design:type",Object)],GO.prototype,"buttonStyle",void 0);_.c([_.v(),_.I("design:type",Object)],GO.prototype,"forceIconOnly",void 0);
_.c([_.v(),_.I("design:type",Object)],GO.prototype,"showTextWhileAnimating",void 0);_.c([_.v({value:function(){return!!_.te().resolve(_.fH(_.Mu))&&_.X("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.I("design:type",Boolean)],GO.prototype,"useKeyboardFocused",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],GO.prototype,"keyboardFocused",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],GO.prototype,"isAnimating",void 0);_.c([_.O("data.notificationPreferenceButton.*"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"hasBellButton",null);
_.c([_.Ga("subscribedButtonText"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],GO.prototype,"maybeUpdateBellButtonText",null);_.c([_.O("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"subscribedButtonText",null);_.c([_.O("data.timedAnimationData.animationTiming","subscribed"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"smartimationSettings",null);
_.c([_.v({reflectToAttribute:!0}),_.O("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"subscribeButtonHidden",null);_.c([_.v({reflectToAttribute:!0}),_.O("subscribed","hasBellButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"subscribeButtonInvisible",null);
_.c([_.v({reflectToAttribute:!0}),_.O("subscribed"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"unsubscribeButtonHidden",null);_.c([_.iA("ytd-subscription-notification-toggle-button-renderer-next"),_.I("design:type",Object)],GO.prototype,"bellButton",void 0);_.c([_.iA("#subscribe-button-shape"),_.I("design:type",HTMLElement)],GO.prototype,"subscribeButtonShape",void 0);
_.c([_.O("overlayButton","subscribed","data"),_.I("design:type",Object),_.I("design:paramtypes",[])],GO.prototype,"buttonShape",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],GO.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],GO.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Ga("subscribed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],GO.prototype,"observedSubscribed",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],GO.prototype,"onDataChanged",null);_.c([_.Pm("mousedown"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],GO.prototype,"onMouseDown",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],GO);
_.d(GO,"ytd-subscribe-button-renderer",function(){if(vxy!==void 0)return vxy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vxy=G},{mode:1});var BK=function(){var G=_.p.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.r(BK,_.p);BK.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],BK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],BK.prototype,"isRichGrid",void 0);_.c([_.mC({is:"ytd-game-card-renderer",disableElementRegistration:!0})],BK);
_.d(BK,"ytd-game-card-renderer",function(){if(z08!==void 0)return z08;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return z08=G},{mode:1});var iu={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.X("defer_menus")&&!NQT?0:void 0,waitForSignal:"eocs"};var oxa;var Mr8;var FO=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return G};
_.r(FO,_.p);_.w=FO.prototype;_.w.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.w.onSeriesReminderStateEntityChange=function(){var G,B,F;((G=this.eventReminderStateEntity)==null?0:G.key)&&((B=this.seriesReminderStateEntity)==null?void 0:B.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((F=this.eventReminderStateEntity)==null?void 0:F.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.wC("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.w.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.w.onYtServiceRequestError=function(){var G;this.updateReminderStateEntitiesFromButtonState((G=this.data)==null?void 0:G.currentState)};
_.w.handleUpdateUpcomingEventReminderButtonStateCommand=function(G){if(G=_.Q(G,W7N)){var B,F=(B=this.data)==null?void 0:B.targetId;F&&G.targetId===F&&_.Hc(this.updateReminderStateEntitiesFromButtonState.bind(this,G.state))}};
_.w.getButtonStateFromReminderState=function(){var G;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var B;if(((B=this.eventReminderStateEntity)==null?void 0:B.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var F,D;if(((F=this.seriesReminderStateEntity)==null?void 0:F.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((D=this.eventReminderStateEntity)==
null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var u;return(u=this.data)==null?void 0:u.currentState};
_.w.updateReminderStateEntitiesFromButtonState=function(G){if(G){switch(G){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":G="UPCOMING_EVENT_REMINDER_STATE_NONE";var B="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":G="UPCOMING_EVENT_REMINDER_STATE_SINGLE";B="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":G="UPCOMING_EVENT_REMINDER_STATE_NONE";B="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var F;
((F=this.eventReminderStateEntity)==null?0:F.key)&&this.ytdReduxBehavior.dispatch(_.wC("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:G})));var D;((D=this.seriesReminderStateEntity)==null?0:D.key)&&this.ytdReduxBehavior.dispatch(_.wC("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:B})))}};
_.ZN.Object.defineProperties(FO.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.getButtonStateFromReminderState(),B,F;if(G&&((B=this.data)==null?0:(F=B.states)==null?0:F.length))for(B=_.C(this.data.states),F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0;if(((D=_.Q(F,H3q))==null?void 0:D.state)===G)return _.Q(F,H3q)}}}});
FO.prototype.onYtServiceRequestError=FO.prototype.onYtServiceRequestError;FO.prototype.onYtServiceRequestCompleted=FO.prototype.onYtServiceRequestCompleted;FO.prototype.onSeriesReminderStateEntityChange=FO.prototype.onSeriesReminderStateEntityChange;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],FO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],FO.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],FO.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:ra8}),_.I("design:type",Object)],FO.prototype,"eventReminderStateEntity",void 0);
_.c([_.v({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(G,B){return _.g5(G.entities,"sportsSeriesReminderStateEntity",B)}}),
_.I("design:type",Object)],FO.prototype,"seriesReminderStateEntity",void 0);_.c([_.O("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],FO.prototype,"currentButtonStateRenderer",null);_.c([_.Ga("seriesReminderStateEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FO.prototype,"onSeriesReminderStateEntityChange",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FO.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FO.prototype,"onYtServiceRequestError",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],FO);
_.d(FO,"ytd-upcoming-event-reminder-button-renderer",function(){if(Mr8!==void 0)return Mr8;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return Mr8=G},{mode:1});var puP;var Dd=function(){return _.p.apply(this,arguments)||this};
_.r(Dd,_.p);Dd.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.ZN.Object.defineProperties(Dd.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(_.X("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Dd.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Dd.prototype,"shelfDismissal",void 0);_.c([_.O("data.responseText"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dd.prototype,"text",null);
_.c([_.O("data.responseText"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dd.prototype,"textAriaLabel",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Dd);
_.d(Dd,"ytd-notification-multi-action-renderer",function(){if(puP!==void 0)return puP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return puP=G},{mode:1});var Ymq;var uu=function(){return _.p.apply(this,arguments)||this};
_.r(uu,_.p);uu.prototype.ready=function(){var G=this;_.IF(this.hostElement).querySelector("#undo").addEventListener("tap",function(){G.onUndoTap()})};
uu.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],uu.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],uu);
_.d(uu,"ytd-notification-text-renderer",function(){if(Ymq!==void 0)return Ymq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Ymq=G},{mode:1});var ArL;var R$=function(){var G=_.p.apply(this,arguments)||this;G.mouseOverDelayJobId=0;G.fadeInImageDelayJobId=0;G.startTimeMs=-1;G.loadingStartTimeMs=-1;G.loadingEndTimeMs=-1;G.hasVideoPreview=!1;return G};
_.r(R$,_.p);_.w=R$.prototype;_.w.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.w.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.w.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.w.showThumbnail=function(){var G=this;this.csn=_.qW();_.ag("fmth");_.Lu.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Tm(_.Lu,function(){G.loadingStartTimeMs=(0,_.Zl)();var B=_.IF(G.hostElement).querySelector("#thumbnail");B.complete?G.displayMouseOverImage():B.addEventListener("load",_.x7(G,G.displayMouseOverImage))},150):_.tV(_.IF(this.hostElement).querySelector("#play"),"show",!0)};
_.w.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.w.onTap=function(){this.removeVideoPreview()};
_.w.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var G=this.videoId,B=this.csn,F=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,D=this.startTimeMs,u=this.hasVideoPreview,R=_.yX(this.trackingParams),N={isMovingThumbnail:u};u&&D>0&&(F>0&&(N.movingThumbnailLoadingDurationMs=Math.round(F)),N.durationHoveredMs=Math.round((0,_.Zl)()-D));G&&(N.videoId=G);_.z7(B,R,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:N});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.w.removeVideoPreview=function(){_.Lu.cancelJob(this.mouseOverDelayJobId);_.Lu.cancelJob(this.fadeInImageDelayJobId);var G=_.IF(this.hostElement).querySelector("#thumbnail");_.tV(G,"fade-in",!1);G.removeEventListener("load",_.x7(this,this.displayMouseOverImage));G=_.IF(this.hostElement).querySelector("#play");_.tV(G,"fade-in",!1);_.tV(G,"show",!1)};
_.w.displayMouseOverImage=function(){var G=_.IF(this.hostElement).querySelector("#thumbnail"),B=_.IF(this.hostElement).querySelector("#play");this.isImageAvailable(G)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Zl)(),this.startTimeMs=(0,_.Zl)(),this.fadeInImageDelayJobId=_.Tm(_.Lu,function(){_.tV(G,"fade-in",!0)},50)):_.tV(B,"fade-in",!0)};
_.w.computeThumbnail=function(G,B){var F;G&&G.movingThumbnailDetails&&G.movingThumbnailDetails.thumbnails&&B?F=_.Ax(G.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):F=B?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(F)return _.Sz(F)};
_.w.isImageAvailable=function(G){return!(!G.src||G.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||G.naturalWidth===120)};
R$.prototype.onTap=R$.prototype.onTap;R$.prototype.dataChanged=R$.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],R$.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],R$.prototype,"csn",void 0);_.c([_.v(),_.I("design:type",Object)],R$.prototype,"trackingParams",void 0);
_.c([_.v(),_.I("design:type",String)],R$.prototype,"videoId",void 0);_.c([_.v(),_.I("design:type",Boolean)],R$.prototype,"isAttachedAndDataSet",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],R$.prototype,"dataChanged",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],R$.prototype,"onTap",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],R$);
_.d(R$,"ytd-moving-thumbnail-renderer",function(){if(ArL!==void 0)return ArL;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ArL=G},{mode:1});var dfv;_.P0=function(G){this.hostElement=G;this.eventSink=null;this.eventList=[]};
_.P0.prototype.shouldForward=function(){var G,B;return(B=(G=this.eventSink)==null?void 0:G.isConnected)!=null?B:document.body.contains(this.eventSink)};
_.P0.prototype.start=function(G,B){this.eventSink&&this.stop();for(var F=0;F<G.length;F++)this.hostElement.addEventListener(G[F],_.x7(this,this.forwardEvent));var D;this.eventSink=(D=B.hostElement)!=null?D:B;this.eventList=G};
_.P0.prototype.stop=function(){for(var G=0;G<this.eventList.length;G++)this.hostElement.removeEventListener(this.eventList[G],_.x7(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.P0.prototype.forwardEvent=function(G,B){this.shouldForward()&&(G.stopPropagation(),this.eventSink instanceof Element?_.cZ(this.eventSink,G.type,B):_.em(new _.Uf("eventSink is not an element")))};_.wk={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.P0(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(G,B){this.forwarder_.start(G,B)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var CU=function(){return _.p.apply(this,arguments)||this};
_.r(CU,_.p);_.w=CU.prototype;_.w.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=_.v5("HTML_DIR")==="rtl"?"right":"left"};
_.w.dataChanged=function(){this.popupOpen=!1};
_.w.computeAriaLabel=function(G){return _.Q(G,AE8).label};
_.w.onTap=function(G){G.stopPropagation();G.preventDefault();this.data.command&&_.te().resolve(_.Wr).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.w.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.w.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
CU.prototype.onPopupClosed=CU.prototype.onPopupClosed;CU.prototype.onPopupOpened=CU.prototype.onPopupOpened;CU.prototype.onTap=CU.prototype.onTap;CU.prototype.dataChanged=CU.prototype.dataChanged;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],CU.prototype,"eventForwardingBehavior",void 0);_.c([_.k(_.N9),_.I("design:type",Object)],CU.prototype,"ironButtonState",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],CU.prototype,"componentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],CU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:-1}),_.I("design:type",Number)],CU.prototype,"tabindex",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.I("design:type",Object)],CU.prototype,"ariaLabel",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],CU.prototype,"disableTooltips",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],CU.prototype,"popupOpen",void 0);
_.c([_.v(),_.I("design:type",Element)],CU.prototype,"eventSink",void 0);_.c([_.iA("#tooltip"),_.I("design:type",Object)],CU.prototype,"tooltip",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],CU.prototype,"dataChanged",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],CU.prototype,"onTap",null);
_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],CU.prototype,"onPopupOpened",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],CU.prototype,"onPopupClosed",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],CU);
_.d(CU,"ytd-thumbnail-overlay-button-renderer",function(){if(dfv!==void 0)return dfv;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return dfv=G},{mode:1});var JrG;var NF=function(){return _.p.apply(this,arguments)||this};
_.r(NF,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],NF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],NF.prototype,"disableAnimation",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],NF.prototype,"rounded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],NF.prototype,"transparentBackground",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],NF.prototype,"noPadding",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],NF);
_.d(NF,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(JrG!==void 0)return JrG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JrG=G},{mode:1});var cra;var y3=function(){return _.p.apply(this,arguments)||this};
_.r(y3,_.p);y3.prototype.computeIconPosition=function(G){return this.get("iconPosition",G)||null};
y3.prototype.computeIconStyle=function(G){return this.get("iconStyle",G)||null};
y3.prototype.computeIsIconStyleFilled=function(G){if(!G)return!1;var B;return G.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((B=G.icon)==null?void 0:B.iconType)==="ERROR_BLACK"};
_.c([_.v(),_.I("design:type",Object)],y3.prototype,"data",void 0);_.c([_.v({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.I("design:type",Object)],y3.prototype,"iconPosition",void 0);_.c([_.v({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.I("design:type",Object)],y3.prototype,"iconStyle",void 0);_.c([_.v({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],y3.prototype,"iconStyleFilled",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],y3);
_.d(y3,"ytd-thumbnail-overlay-icon-renderer",function(){if(cra!==void 0)return cra;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cra=G},{mode:1});var T7L;var nU=function(){return _.p.apply(this,arguments)||this};
_.r(nU,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nU.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],nU);
_.d(nU,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(T7L!==void 0)return T7L;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return T7L=G},{mode:1});var IoL;var lu=function(){var G=_.p.apply(this,arguments)||this;G.isPreviewLoading=!1;return G};
_.r(lu,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lu.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],lu.prototype,"isPreviewLoading",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],lu);
_.d(lu,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(IoL!==void 0)return IoL;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IoL=G},{mode:1});var foT;var Uv=function(){return _.p.apply(this,arguments)||this};
_.r(Uv,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Uv.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Uv);
_.d(Uv,"ytd-thumbnail-overlay-pinking-renderer",function(){if(foT!==void 0)return foT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return foT=G},{mode:1});var trq;var qF=function(){var G=_.p.apply(this,arguments)||this;G.disableTooltips=!1;G.isLoading=!1;G.useExpandableTooltip=!1;G.toggled=!1;G.hovered=!1;G.mouseoverDelayJobId=0;G.toggleDelayJobId=0;G.expandAnimationDelayJobId=0;return G};
_.r(qF,_.p);_.w=qF.prototype;_.w.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");_.IF(this.hostElement).querySelector("#tooltip").position=_.v5("HTML_DIR")==="rtl"?"right":"left"};
_.w.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Lu.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Lu.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Lu.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.w.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Lu.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Lu.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Lu.cancelJob(this.expandAnimationDelayJobId)};
_.w.computeIcon=function(G,B,F){return(G=F?B:G)&&G.iconType?_.xT(G.iconType):void 0};
_.w.computeAriaLabel=function(G,B,F){return _.Q(F?B:G,AE8).label};
_.w.computeTooltip=function(G,B,F){return F?B:G};
_.w.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.w.computeIconOnHover=function(G,B){if((G==null?0:G.iconType)&&!B)return _.xT(G.iconType)};
_.w.onTap=function(G){var B=this;G.stopPropagation();G.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(G),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Tm(_.Lu,function(){B.hovered=!1;B.data&&!B.data.toggledServiceEndpoint&&(B.expandAnimationDelayJobId=_.Tm(_.Lu,function(){B.set("data.isToggled",
!1)},200))},2E3))};
_.w.onMouseenter=function(){var G=this;this.mouseoverDelayJobId=_.Tm(_.Lu,function(){G.hovered=!0},300)};
_.w.onMouseleave=function(){_.Lu.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.w.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.w.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.w.onServiceRequestCompleted=function(G,B){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(B)||this.set("data.isToggled",!this.data.isToggled)};
_.w.serviceRequestWasSuccessful=function(G){return _.Q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.KV)?G.data.status==="STATUS_SUCCEEDED":!0};
qF.prototype.onServiceRequestCompleted=qF.prototype.onServiceRequestCompleted;qF.prototype.onPopupClosed=qF.prototype.onPopupClosed;qF.prototype.onPopupOpened=qF.prototype.onPopupOpened;qF.prototype.onMouseleave=qF.prototype.onMouseleave;qF.prototype.dataChanged=qF.prototype.dataChanged;_.c([_.k(_.N9),_.I("design:type",Object)],qF.prototype,"ironButtonState",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],qF.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],qF.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.I("design:type",Object)],qF.prototype,"ariaLabel",void 0);_.c([_.v(),_.I("design:type",Object)],qF.prototype,"disableTooltips",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],qF.prototype,"popupOpen",void 0);_.c([_.v(),_.I("design:type",Object)],qF.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Element)],qF.prototype,"eventSink",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qF.prototype,"useExpandableTooltip",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.I("design:type",Object)],qF.prototype,"toggled",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qF.prototype,"hovered",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.I("design:type",Object)],qF.prototype,"iconOnHover",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qF.prototype,"dataChanged",null);
_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qF.prototype,"onMouseleave",null);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qF.prototype,"onPopupOpened",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qF.prototype,"onPopupClosed",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],qF.prototype,"onServiceRequestCompleted",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],qF);
_.d(qF,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(trq!==void 0)return trq;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return trq=G},{mode:2});var Zja;var gx7=_.Y(function(G){var B=G.data;var F=G.thumbnailSize;var D=function(){return B().enableSegmentView};
return _.l("yt-thumbnail-overlay-progress-bar-view-model",{class:_.tx("ytThumbnailOverlayProgressBarHost",function(){return Dfg(F==null?void 0:F())})},_.l(_.E,{cond:D,
then:function(){return _.l("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.l("div",{class:_.UY("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+B().startPercent+"%"}}),_.l("div",{class:_.UY("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+B().segmentDurationPercent+"%"}},_.l("div",{class:_.UY("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.l("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.l("div",null," ",function(){return B().segmentLabel})),_.l("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.l("div",{class:_.UY("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.l(_.E,{cond:function(){return!D()&&B().startPercent},
then:function(){var u={};return _.l("div",{class:_.UY("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(u.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.X("web_enable_modern_progress_bar_overlay"),u))},_.l("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+B().startPercent+"%"}}))}}))},"Ha");
gx7.idomCompat=!0;_.SmU=_.Y(function(G){var B=_.xF(),F=_.FT(function(u){var R,N,y;a:{var U=(R=G.data())==null?void 0:R.animationActivationTargetId;R=((N=G.data())==null?void 0:N.animationActivationEntityKey)||"";N=(y=G.data())==null?void 0:y.animationActivationEntitySelectorType;if(R&&U)switch(N){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":u=_.Ze(u,R);y=_.te().resolve(_.fH(_.WP));U=!!(u&&u.videoId===U&&(y==null?0:y.isMiniplayerActive()));U={activated:U,playAnimation:U&&u.playerState==="PLAYER_STATE_PLAYING"};
break a}U=void 0}return U});
_.bC(function(){var u;if((u=F())==null?0:u.activated){var R;if((R=F())==null?0:R.playAnimation){var N;(N=B.lottieEl)==null||N.goToAndPlay(0)}else{var y;(y=B.lottieEl)==null||y.goToAndStop(0)}}},"DbQiXd");
var D=function(){var u,R=!((u=F())==null||!u.activated);if(G.data()){u=G.data();var N=void 0;u.icon&&(N=_.Hsz(u.icon),N=o8l(N));var y=void 0,U;if((U=u.backgroundColor)==null?0:U.lightTheme){var q;y={backgroundColor:aF((q=u.backgroundColor)==null?void 0:q.lightTheme,"0.8")}}if(u.text||N||R){if(R&&u.lottieData&&B){q=u.lottieData;var h,K,a;U={animationConfig:{name:q.url,path:q.url,autoplay:(h=q.settings)==null?void 0:h.autoplay,loop:(a=(K=q.settings)==null?void 0:K.loop)!=null?a:!0},animationRef:B}}else U=
void 0;if(R)h=17;else b:switch(u.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":h=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":h=19;break b;default:h=17}R={type:h,text:R&&u.animatedText?u.animatedText:u.text,icon:N,customColors:y,animation:U}}else R=void 0}else R=void 0;return R};
return _.l("yt-thumbnail-badge-view-model",{class:_.tx("ytThumbnailBadgeViewModelHost",G.class)},_.l(_.E,{cond:D,then:function(){return _.l(_.QR,{data:function(){return D()}})}}))},"Ja");var sUt=_.Y(function(G){var B={},F={};return _.l("yt-thumbnail-bottom-overlay-view-model",{class:_.tx("ytThumbnailBottomOverlayViewModelHost",(B.ytThumbnailBottomOverlayViewModelHostBackground=function(){return G.data().enableGradientBackground},B))},_.l(_.uR,{data:function(){return G.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(D){return _.l(gx7,{data:D.data,
thumbnailSize:G.thumbnailSize})}}),_.l("div",{class:_.tx("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var D;
return uvJ((D=G.thumbnailSize)==null?void 0:D.call(G))},(F.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var D;
return(D=G.isClip)==null?void 0:D.call(G)},F.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var D;
return!_.X("web_enable_modern_progress_bar_overlay")&&((D=G.thumbnailSize)==null?void 0:D.call(G))==="small"},F))},_.l(_.uR,{data:function(){return G.data().badge}},{thumbnailBadgeViewModel:function(D){return _.l(_.SmU,{data:D.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.l(_.uR,{data:function(){return G.data().badges}},{thumbnailBadgeViewModel:function(D){return _.l(_.SmU,{data:D.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
sUt.idomCompat=!0;_.YN(sUt,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.oh,thumbnailSize:_.oh,isClip:_.oh}});var Ev=_.Y(function(G){var B=G.data;var F=G.className;G=G.alwaysShow;var D=_.wul(),u={};return _.l("thumbnail-hover-overlay-view-model",{el:_.VX(_.mR(function(){return B().rendererContext})),
class:_.tx("ytThumbnailHoverOverlayViewModelHost",F,(u.ytThumbnailHoverOverlayViewModelHostForceHover=G,u)),"aria-label":function(){var R;return(R=_.Q(B().rendererContext,_.yL))==null?void 0:R.label},
role:function(){return _.Kh(B().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Kh(B().rendererContext)!==void 0?0:void 0},
"on:keypress":D},_.l("div",{class:_.tx("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(B().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var R="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:R="ytThumbnailHoverOverlayViewModelStyleCover"}return R})},_.l(_.E,{cond:function(){return B().icon},
then:function(R){return _.l(_.vr,{data:R,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.l(_.E,{cond:function(){return B().text},
then:function(R){return _.l(_.Wd,{text:R,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
Ev.idomCompat=!0;var xft=_.Y(function(G){var B=G.data;return _.l(_.uR,{data:function(){return B==null?void 0:B().overlays}},{thumbnailHoverOverlayViewModel:Ev})},"Na");
xft.idomCompat=!0;var P7G={};var GH7=_.Y(function(G){var B=G.data;var F=G.image;var D=G.state;var u=G.iconType;var R=G.overlays;var N=G.isOverlay;var y=_.H5("div");G=_.C(_.qg(!0,void 0,"AA4e7b"));var U=G.next().value,q=G.next().value,h=function(){return!!B().onTap},K=_.pW(u,"LIVE");
_.bC(function(){var m=B();requestAnimationFrame(function(){if(y.value===null)var L=!0;else{var W=y.value;L=m.badgeText;var e=Exg(m.size);L in P7G?W=P7G[L]:(W=W.clientWidth,P7G[L]=W);(L=W>e)?y.value.style.display="none":y.value.style.visibility="visible"}q(L)})},"vNdN8b");
var a=function(){var m={};return m["yt-spec-avatar-shape__image"]=!0,m["yt-spec-avatar-shape__image--ads-app"]=B().type===1,m["yt-spec-avatar-shape__image--inscribed-square"]=B().type===2,m};
return _.l("yt-avatar-shape",null,_.l("div",{el:_.VX(KQM(h,{keydown:function(m){if(m.key==="Enter"){var L;(L=m.currentTarget)==null||L.click()}},
click:function(m){var L,W;return void((W=(L=B()).onTap)==null?void 0:W.call(L,m))}})),
class:function(){var m={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},L=B();m=(m[L.clusterLayoutConfig?Xuo(L.clusterLayoutConfig):QU6(L.size)]=!0,m["yt-spec-avatar-shape__button--tappable"]=h(),m);(L=B().avatarButtonCustomClassName)&&(m[L]=!0);return _.UY(m)},
"aria-label":function(){return h()?B().accessibilityText:""},
role:function(){return h()?"button":void 0},
tabindex:function(){return h()?0:void 0}},_.l("div",{class:function(){var m,L=B(),W=D==null?void 0:D(),e=N==null?void 0:N(),b=!((m=L.decorations)==null||!m.includes(2)||L.size!=="medium"&&L.size!=="large"),M=L.size==="tiny"||L.size==="extra-small",t,T,A,Z,P={};
m=(P["yt-spec-avatar-shape--live-ring"]=!!(((t=L.decorations)==null?0:t.includes(0))&&LQM(L.size)),P["yt-spec-avatar-shape--stories-watched"]=b&&!(W==null||!W.storiesWatched),P["yt-spec-avatar-shape--stories-unwatched"]=b&&!(W==null?0:W.storiesWatched),P["yt-spec-avatar-shape--background-border"]=rr6(L.decorations)&&!M,P["yt-spec-avatar-shape--background-border-thin"]=rr6(L.decorations)&&M,P["yt-spec-avatar-shape__on-select-border"]=!((T=L.decorations)==null||!T.includes(4)),P["yt-spec-avatar-shape__white-border"]=
!((A=L.decorations)==null||!A.includes(5)),P["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((Z=L.decorations)==null?0:Z.includes(5))&&M),P["yt-spec-avatar-shape--is-overlay"]=!!e,P);return _.UY(m)},
style:function(){a:{var m=B().clusterLayoutConfig;if(m){b:{var L=m.numAvatarsInCluster;var W=m.avatarIndex;if(W!==L-1){switch(m.clusterSize){case "small":m="32";break;case "medium":m="36";break;case "40":m="40";break;default:L=void 0;break b}L="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+m+"x"+m+"_avatars_"+L+"_index_"+W+".svg"}else L=void 0}if(L){L=_.xN({"-webkit-mask-image":"url("+L+")","mask-image":"url("+L+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}L=void 0}return L}},_.l("div",{class:function(){var m={};
var L=B();m=(m[L.clusterLayoutConfig?ao8(L.clusterLayoutConfig):mfg(L.size)]=!0,m["yt-spec-avatar-shape--no-margin"]=rr6(B().decorations),m["yt-spec-avatar-shape--square"]=B().type===2,m);return _.UY(m)}},_.l(_.vr,{data:F,
alt:function(){return!h()&&B().accessibilityText?B().accessibilityText:""},
targetWidth:function(){return jU8(B().size)},
targetHeight:function(){return jU8(B().size)},
className:function(){return _.UY(a())}}),_.l(_.E,{cond:function(){var m;
return((m=B().decorations)==null?void 0:m.includes(0))&&LQM(B().size)},
then:function(){return _.l("div",{class:function(){var m={};m=(m["yt-spec-avatar-shape__live-badge"]=!0,m["yt-spec-avatar-shape__live-badge--badge-small"]=B().size==="small",m["yt-spec-avatar-shape__live-badge--badge-medium"]=B().size==="medium"||B().size==="48",m["yt-spec-avatar-shape__live-badge--badge-large"]=B().size==="large",m["yt-spec-avatar-shape__live-badge--badge-extra-large"]=B().size==="extra-large"||B().size==="extra-extra-large"||B().size==="giant",m);return _.UY(m)}},_.l(_.E,{cond:function(){return B().badgeText},
then:function(m){return _.l("div",{class:"yt-spec-avatar-shape__badge-text",el:y},m)}}),_.l(_.E,{cond:U,
then:function(){return _.l("div",{class:"yt-spec-avatar-shape__badge-icon"},_.l(_.Pr,{icon:K,size:function(){a:switch(B().size){case "extra-large":var m=16;break a;default:m=13}return m}}))}}))}}),_.l(_.E,{cond:function(){var m,L;
return((m=B().decorations)==null?void 0:m.includes(1))||((L=B().decorations)==null?void 0:L.includes(0))&&!LQM(B().size)},
then:function(){return _.l("div",{class:function(){var m=B(),L,W,e={};var b=(e["yt-spec-avatar-shape__live-dot"]=!((L=m.decorations)==null||!L.includes(0)||LQM(m.size)),e["yt-spec-avatar-shape__new-content"]=!((W=m.decorations)==null||!W.includes(1)),e);return _.UY(b)}})}}),_.l(_.E,{cond:function(){return!!R},
then:function(){return _.l("div",{class:function(){var m={};m=Object.assign((m["yt-spec-avatar-shape__image-overlays"]=!0,m),a());return _.UY(m)}},R==null?void 0:R())}})))))},"Qa");
GH7.idomCompat={callbacks:{overlays:!0}};_.h8=_.Y(function(G){function B(){F().endpoint&&_.rJ(F().endpoint)}
var F=G.data;var D=G.decorations;var u=G.avatarButtonCustomClassName;var R=G.isOverlay;var N=G.clusterLayoutConfig;return _.l("avatar-view-model",null,_.l(_.E,{cond:function(){return F().image},
then:function(y){return _.l(GH7,{data:function(){return Hjg({data:F(),onTap:F().endpoint?B:void 0,decorations:D==null?void 0:D(),badgeText:void 0,accessibilityText:F().accessibilityText,avatarButtonCustomClassName:u==null?void 0:u(),clusterLayoutConfig:N==null?void 0:N()})},
image:y,iconType:"RADAR_LIVE",overlays:function(){return _.l(xft,{data:F})},
isOverlay:R})}}))},"Ra");
_.h8.idomCompat=!0;_.KU=_.Y(function(G){var B=G.data;G=G.className;var F=_.H5("yt-decorated-avatar-view-model"),D=function(){return _.Q(B().avatar,_.QH)},u=_.mS(function(){var R,N=B(),y=D(),U=_.Kh(B().rendererContext),q=(R=F.value)!=null?R:void 0,h;
if(y){q={data:N,avatar:y,onTap:U,element:q};R=q.data;N=q.avatar;y=q.onTap;U=q.element;q=q.commandController;y=y?$fg(y,U,q):void 0;U=[];R.liveData&&U.push(0);var K;q=(K=R.liveData)==null?void 0:K.liveBadgeText;K=(h=_.Q(R.rendererContext,_.yL))==null?void 0:h.label;h=Hjg({data:N,onTap:y,decorations:U,badgeText:q,accessibilityText:K?K:R.a11yLabel})}else h={size:"medium"};return h},void 0,"c00kWd");
return _.l("yt-decorated-avatar-view-model",{class:_.tx("ytDecoratedAvatarViewModelHost",G),el:F},_.l(_.E,{cond:function(){var R;return(R=D())==null?void 0:R.image},
then:function(R){return _.l(GH7,{data:u,image:R,iconType:"RADAR_LIVE",overlays:function(){return _.l(xft,{data:D})}})}}))},"Sa");
_.KU.idomCompat=!0;_.a$=_.Y(function(G){var B=function(){var y;return Object.assign({},G.data(),(y=G.overrides)==null?void 0:y.call(G))},F=function(){return _.ax(B().rendererContext)},D=function(){var y=B().avatars,U,q;
return(q=(U=(y==null?0:y[0])?_.Q(y[0],_.QH):void 0)==null?void 0:U.avatarImageSize)!=null?q:"AVATAR_SIZE_UNKNOWN"},u=function(){return e0I(B())},R=function(){if(B().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var y=void 0;
else if((y=G.decorations)==null?0:y.call(G))y=G.decorations();else{y=B();var U=0;y.avatars&&(U+=y.avatars.length);y.decoratedText&&(U+=1);y=U>1?[3]:[]}return y},N={};
return _.l("yt-avatar-stack-view-model",{el:_.VX(_.mR(function(){return B().rendererContext})),
class:_.tx("yt-avatar-stack-view-model",G.className,(N["yt-avatar-stack-view-model--tappable"]=F,N["yt-avatar-stack-view-model--is-overlay"]=G.isOverlay,N["yt-avatar-stack-view-model--medium-text"]=G.useMediumText,N)),tabindex:function(){return F()?0:void 0},
role:function(){return F()?"link":void 0},
"aria-label":function(){var y,U;return(U=(y=_.Q(B().rendererContext,_.yL))==null?void 0:y.label)!=null?U:""}},_.l(_.E,{cond:function(){var y;
return B().avatars&&!((y=G.hideAvatar)==null?0:y.call(G))},
then:function(){return _.l("div",{class:"yt-avatar-stack-view-model__avatars"},_.l(_.E,{cond:function(){return B().decoratedText},
then:function(y){var U={};return _.l("div",{class:_.tx("yt-avatar-stack-view-model__text-container",(U["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return D()==="AVATAR_SIZE_XXS"||D()==="AVATAR_SIZE_XS"},U["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var q;
return((q=G.isOverlay)==null?void 0:q.call(G))&&(D()==="AVATAR_SIZE_XXS"||D()==="AVATAR_SIZE_XS")},U)),
style:_.xN({width:function(){return u().avatarSizeInPx+"px"},
height:function(){return u().avatarSizeInPx+"px"}})},_.l(_.Wd,{text:y,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.l("div",{style:function(){return _.xN(u().avatarStackStyle)()},
class:function(){return u().avatarStackClass}},_.l(_.uR,{data:function(){return u().avatars.reverse()}},{avatarViewModel:function(y,U){return _.l("div",{style:function(){var q,h;
return _.xN((h=(q=u()).avatarStyle)==null?void 0:h.call(q,U()))()},
class:function(){return u().avatarClass}},_.l(_.h8,{data:y.data,
decorations:R,avatarButtonCustomClassName:function(){return u().avatarButtonCustomClassName},
isOverlay:G.isOverlay,clusterLayoutConfig:function(){var q,h;return(h=(q=u()).clusterLayoutConfig)==null?void 0:h.call(q,U())}}))},
decoratedAvatarViewModel:function(y,U){return _.l("div",{style:function(){var q,h;return _.xN((h=(q=u()).avatarStyle)==null?void 0:h.call(q,U()))()},
class:function(){return u().avatarClass}},_.l(_.KU,{data:y.data}))}})))}}),_.l(_.E,{cond:function(){return B().text},
then:function(y){return _.l(_.Wd,{text:y,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.a$.idomCompat=!0;_.YN(_.Y(function(G){var B=G.data;var F=G.thumbnailSize;return _.l("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.l("div",{class:_.tx("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return z0L(F==null?void 0:F())})},_.l(_.uR,{data:function(){return B().avatarStack}},{avatarStackViewModel:function(D){return _.l(_.a$,{data:D.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Hd,
thumbnailSize:_.Hd}});var Bha=_.Y(function(G){G=_.AS(G,{hidden:!1});var B=G.data;G=G.hidden;return _.l("yt-thumbnail-overlay-title-view-model",{class:_.tx("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(B().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var F="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:F="ytThumbnailOverlayTitleViewModelPositionTop"}return F}),
hidden:G},_.l(_.E,{cond:function(){return B().leadingContent},
then:function(F){return _.l("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.l(_.uR,{data:F},{decoratedAvatarViewModel:_.KU}))}}),_.l("div",null,_.l(_.Wd,{text:function(){return B().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.l(_.E,{cond:function(){return B().subtitle},
then:function(){return _.l(_.Wd,{text:function(){return B().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
Bha.idomCompat=!0;_.YN(Bha,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Hd,hidden:_.Hd}});_.mM=_.Y(function(G){G=_.AS(G,{isClip:!1});var B=G.data,F=G.thumbnailSize,D={};return _.l("yt-thumbnail-overlay-badge-view-model",{class:_.tx("yt-thumbnail-overlay-badge-view-model",function(){a:switch(B().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var u="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:u="yt-thumbnail-overlay-badge-view-model--bottom-end"}return u},function(){return bjU(F==null?void 0:F())},(D["yt-thumbnail-overlay-badge-view-model--clip"]=G.isClip,
D))},_.l(_.uR,{data:function(){return B().thumbnailBadges}},{thumbnailBadgeViewModel:function(u){return _.l(_.SmU,{data:u.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.mM.idomCompat=!0;_.YN(_.mM,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Hd,thumbnailSize:_.Hd,isClip:_.Hd}});var i6a=_.Y(function(G){var B=G.data;G=G.hidden;var F=_.mS(function(){return B().indicatorCount||0},void 0,"AbKnMc"),D={};
return _.l("yt-page-indicator-view-model",{class:_.tx("ytPageIndicatorViewModelHost",(D.ytPageIndicatorViewModelIndicatorHidden=function(){return!B().indicatorCount},D)),
hidden:G},_.l(_.jR,{each:function(){return Array(F())}},function(u,R){var N={};
return _.l("div",{class:_.tx("ytPageIndicatorViewModelIndicator",(N.ytPageIndicatorViewModelIndicatorSelected=function(){return B().selectedIndex===R()},N))})}))},"Xa");
i6a.idomCompat=!0;_.YN(i6a,"yt-page-indicator-view-model",{props:{data:_.Hd,hidden:_.Hd}});var XO=function(){var G=_.p.apply(this,arguments)||this;G.eventSink=function(){return G};
G.disableInteraction=!1;G.noRoundedCorners=!1;G.isPreviewLoading=!1;G.isOriginalAspectRatio=!1;G.computedObjectFit=!1;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return G};
_.r(XO,_.p);_.w=XO.prototype;
_.w.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:_.X("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"}}};
_.w.onImageLoaded=function(){this.loaded=!0};
_.w.onImageUnloaded=function(){this.loaded=!1};
_.w.computeRichThumbnail=function(G,B,F,D){if(G&&B&&!D&&!_.X("disable_moving_thumbs_handling")&&!F)return B};
_.w.computeImageWidth=function(G,B){return B||9999};
_.w.computeIsOriginalAspectRatio=function(G){return G};
_.w.computeIsLive=function(G){if(G==null?0:G.badges)for(var B=0;B<G.badges.length;B++){var F=G.badges[B];if(F.metadataBadgeRenderer&&F.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(G==null?0:G.thumbnailOverlays)for(B=0;B<G.thumbnailOverlays.length;B++)if(F=G.thumbnailOverlays[B],F.thumbnailOverlayTimeStatusRenderer&&F.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.w.computeObjectFit=function(G,B){return B||(G?"CONTAIN":"")};
_.w.computeNavigationEndpoint=function(G,B,F){return G?B:F};
_.w.computeHasClip=function(G){G=_.C(G||[]);for(var B=G.next();!B.done;B=G.next())if(B.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.w.computeOverlayColor=function(G){var B;return(G==null?0:(B=G.darkColorPalette)==null?0:B.section2Color)?G.darkColorPalette.section2Color:G==null?void 0:G.sampledThumbnailColor};
_.ZN.Object.defineProperties(XO.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Dbo(this.width)}}});
XO.prototype.onImageUnloaded=XO.prototype.onImageUnloaded;XO.prototype.onImageLoaded=XO.prototype.onImageLoaded;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],XO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(vtq),_.I("design:type",Object)],XO.prototype,"ytdThumbnailBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],XO.prototype,"componentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],XO.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],XO.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],XO.prototype,"circular",void 0);
_.c([_.v({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.I("design:type",Object)],XO.prototype,"richThumbnail",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.I("design:type",Boolean)],XO.prototype,"hasClip",void 0);_.c([_.v(),_.I("design:type",Object)],XO.prototype,"eventSink",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],XO.prototype,"queued",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],XO.prototype,"richGridThumbnail",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],XO.prototype,"useExpandableTooltip",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],XO.prototype,"useUntranslatedNavigationEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],XO.prototype,"disableInteraction",void 0);
_.c([_.v({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.I("design:type",Object)],XO.prototype,"computedNavigationEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],XO.prototype,"nowPlayingEqualizerOnly",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],XO.prototype,"hidePlaybackStatus",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],XO.prototype,"objectFit",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],XO.prototype,"noRoundedCorners",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],XO.prototype,"watchFeedThumbnail",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],XO.prototype,"isPreviewLoading",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.I("design:type",Object)],XO.prototype,"isOriginalAspectRatio",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.I("design:type",Object)],XO.prototype,"computedObjectFit",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.I("design:type",Boolean)],XO.prototype,"isLiveVideo",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],XO.prototype,"loaded",void 0);_.c([_.v({computed:"computeOverlayColor(data.thumbnail)"}),_.I("design:type",Object)],XO.prototype,"overlayColor",void 0);_.c([_.v(),_.I("design:type",Boolean)],XO.prototype,"minimizePipBreakages",void 0);_.c([_.v({selector:_.$vc}),_.I("design:type",Boolean)],XO.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.v(),_.I("design:type",Number)],XO.prototype,"width",void 0);
_.c([_.O("inlinePreviewIsEnabled"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],XO.prototype,"isPreviewDisabled",null);_.c([_.O("width"),_.I("design:type",String),_.I("design:paramtypes",[])],XO.prototype,"thumbnailSize",null);_.c([_.Pm("image-loaded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],XO.prototype,"onImageLoaded",null);
_.c([_.Pm("image-unloaded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],XO.prototype,"onImageUnloaded",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-thumbnail"})],XO);
_.tS()(XO,"ytd-thumbnail",function(){if(Zja===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);Zja=G}G=Zja;return G},{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 minimizePipBreakages".split(" "),mode:2});var oxz=function(G){var B=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15355_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15355_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(F){Fxq(B,F)};
this.onLockupMouseLeaveFn=function(F){F=F.relatedTarget;var D,u;((D=document.getElementsByTagName("ytd-video-preview"))==null?0:(u=D.item(0))==null?0:u.contains(F))||(B.terminateVideoPreview(),Q3(B))};
this.onThumbnailMouseDownFn=function(){B.terminateVideoPreview();Q3(B)};
this.onTouchStart=function(){B.JSC$15355_touched=!0};
this.mediaRenderer=G.mediaRenderer;this.thumbnailElement=G.thumbnailElement;this.lockupElement=G.lockupElement;this.videoPreviewOptsInput=G.videoPreviewOpts;DEy(this);jq(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)):
_.em(Error("Gh")):_.em(Error("Hh")):uCt(this)},Jm=function(G){uCt(G);
var B;(B=G.lockupElement)==null||B.removeEventListener("mouseenter",G.onMouseMoveFn);var F;(F=G.lockupElement)==null||F.removeEventListener("mouseleave",G.onLockupMouseLeaveFn);var D;(D=G.lockupElement)==null||D.removeEventListener("touchstart",G.onTouchStart);var u;(u=G.thumbnailElement)==null||u.removeEventListener("mousedown",G.onThumbnailMouseDownFn);Q3(G)},DEy=function(G){G.inlinePreviewIsEnabledForUser=_.VU().getState().ui.inlinePreviewIsEnabled;
G.unsubscribeFromInlinePreviewIsEnabled=_.Dh(_.VU(),_.$vc,function(B){(G.inlinePreviewIsEnabledForUser=B)||Q3(G)});
G.JSC$15355_unsubscribeFromInlinePreviewIsActive=_.Dh(_.VU(),_.eoc,function(B){(G.inlinePreviewIsActive=B)||Q3(G)})},uCt=function(G){G.unsubscribeFromInlinePreviewIsEnabled();
G.unsubscribeFromInlinePreviewIsEnabled=function(){};
G.JSC$15355_unsubscribeFromInlinePreviewIsActive();G.JSC$15355_unsubscribeFromInlinePreviewIsActive=function(){}},Fxq=function(G,B){B.buttons>0||(B=_.sD("kevlar_lockup_hover_delay",-1),G.JSC$15355_touched&&B>=0?(_.Lu.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.Tm(_.Lu,function(){RQN(G)},B),G.JSC$15355_touched=!1):RQN(G))},oOl=function(G){G.videoPreviewJobId=_.Tm(_.Lu,function(){return _.n(function(B){return B.yield(w4w(G,{isAutoplay:!0}),0)})})},RQN=function(G){!G.previewTriggered&&jq(G)&&
(G.inlinePreviewIsActive&&G.terminateVideoPreview(),G.previewTriggered=!0,G.mediaRenderer.isInlinePreviewTriggered=!0,_.Lu.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.Tm(_.Lu,function(){return _.n(function(B){return B.yield(w4w(G),0)})}))},w4w=function(G,B){B=B===void 0?{}:B;
var F=B.isAutoplay===void 0?!1:B.isAutoplay;var D,u,R,N;return _.n(function(y){if(y.nextAddress==1){if(!jq(G))return y.return();D=G.getVideoPreviewOpts();if(!D)return y.return();F&&(D.isAutoplay=!0);return(R=(u=_.Ia(G.mediaRenderer.hostElement,"yt-open-video-preview-action",[D]))&&u[0])?y.yield(u[0],3):y.jumpTo(2)}y.nextAddress!=2&&(R=y.yieldResult===1);if(R){var U=(N=G.mediaRenderer)==null?void 0:N.data;U&&(vxl(U)?delete U.inlinePlayerData:"inlinePlaybackEndpoint"in U&&delete U.inlinePlaybackEndpoint)}_.di(y)})};
oxz.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var G,B;if((B=(G=this.videoPreviewOptsInput)==null?void 0:G.videoPreviewData)!=null)G=B;else if(G=this.mediaRenderer.data)if(vxl(G))G={inlinePlaybackEndpoint:_.X1(G.inlinePlayerData.onVisible),navigationEndpoint:_.X1(G.onTap),thumbnail:"image"in G?G.image:G.thumbnail,thumbnailOverlays:void 0,accessibilityText:Vrg(G)};else if("multipleInlinePlaybackEndpoint"in G){var F=_.Q(_.Q(G.multipleInlinePlaybackEndpoint,RTa),vOM);if(F!=
null&&F.playerDescriptors){B=[];F=_.C(F.playerDescriptors);for(var D=F.next();!D.done;D=F.next())D=D.value,B.push({inlinePlaybackEndpoint:D.inlinePlaybackEndpoint,navigationEndpoint:D.navigationEndpoint,thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays,accessibilityText:Vrg(G)});G=B}else G=void 0}else G={inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:Vrg(G)};else G=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:G,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var jq=function(G){var B;if(B=G.inlinePreviewIsEnabledForUser)B=(G=G.mediaRenderer.data)?"inlinePlaybackEndpoint"in G&&G.inlinePlaybackEndpoint||vxl(G)&&G.inlinePlayerData||"multipleInlinePlaybackEndpoint"in G&&G.multipleInlinePlaybackEndpoint?!0:!1:!1;return B};
oxz.prototype.terminateVideoPreview=function(){_.T1(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Q3=function(G){_.Lu.cancelJob(G.videoPreviewJobId);G.inlinePreviewIsActive=!1;G.previewTriggered=!1;G.mediaRenderer.isInlinePreviewTriggered=!1};var CKN=_.vP(["#"]),LU=function(){var G=_.p.apply(this,arguments)||this;G.isDisabled=!1;return G};
_.r(LU,_.p);_.w=LU.prototype;
_.w.configureRendererStamper=function(){return{"data.menu":iu,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.getMetadata=function(G){var B=[];if(G.metadataText&&Object.keys(G.metadataText).length>0){var F=this.ytRendererBehavior.getSimpleString(G.metadataText);G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&(F=_.nh(F,Number(G.upcomingEventData.startTime)));B.push(F)}else G.shortViewCountText&&B.push(this.ytRendererBehavior.getSimpleString(G.shortViewCountText)),G.publishedTimeText&&B.push(this.ytRendererBehavior.getSimpleString(G.publishedTimeText)),G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&
(F=this.ytRendererBehavior.getSimpleString(G.upcomingEventData.upcomingEventText),B.push(_.nh(F,Number(G.upcomingEventData.startTime))));return B};
_.w.calculateBylineText=function(G){return G.shortBylineText?G.shortBylineText:G.bylineText?G.bylineText:null};
_.w.calculateIsDisabled=function(G){return!!G.isDisabled};
_.w.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.rlM(CKN)};
_.w.onDetailsTap=function(G){var B=this.data&&this.data.navigationEndpoint;B&&!_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.X("kevlar_grid_video_renderer_killswitch")?_.cZ(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B))};
_.w.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15362_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:_.IF(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.IF(this.hostElement).querySelector("ytd-thumbnail")})};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15362_inlinePreviewHoverListener)==null||Jm(G)};
_.w.computeThumbnailWidth=function(G,B){return B&&B>0?B:G?360:210};
_.w.computeNumBadgesInRow=function(G){var B;return((B=G.badges)==null?void 0:B.length)||0};
_.w.computeShowChannelThumbnail=function(G,B){var F;return B&&!!(G==null?0:(F=G.channelThumbnailSupportedRenderers)==null?0:F.channelThumbnailWithLinkRenderer)};
_.ZN.Object.defineProperties(LU.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15362_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
LU.prototype.dataChanged=LU.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],LU.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],LU.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.W9),_.I("design:type",Object)],LU.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],LU.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],LU.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],LU.prototype,"noEndpoints",void 0);_.c([_.v({computed:"calculateBylineText(data)"}),_.I("design:type",Object)],LU.prototype,"bylineText",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],LU.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],LU.prototype,"isDownloading",void 0);_.c([_.v({reflectToAttribute:!0,value:0}),_.I("design:type",Number)],LU.prototype,"width",void 0);_.c([_.v({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.I("design:type",Object)],LU.prototype,"isDisabled",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],LU.prototype,"dataChanged",null);_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LU.prototype,"isHovered",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LU.prototype,"hasAttributedBylineText",null);
_.c([_.O("bylineText","hasAttributedBylineText"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LU.prototype,"showBylineText",null);_.c([_.mC({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],LU);
_.d(LU,"ytd-grid-video-renderer",function(){if(oxa!==void 0)return oxa;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return oxa=G},{mode:2});var Nhq;var rk=function(){var G=_.p.apply(this,arguments)||this;G.roundedContainer=!0;G.skipRoundingTop=!1;G.disableTopPadding=!1;G.amsterdamEnabled=_.X("enable_desktop_amsterdam_info_panels");G.extractOverlay=!1;return G};
_.r(rk,_.p);rk.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
rk.prototype.onClick=function(G){var B,F=(B=this.data)==null?void 0:B.sourceEndpoint;!_.oQ(_.VW(G),this.hostElement,["A".toString()])&&F&&_.cZ(this.hostElement,"yt-navigate",{endpoint:F})};
_.ZN.Object.defineProperties(rk.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 G;return!((G=this.data)==null||!G.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.data)==null?void 0:G.paragraphMaxLines)!=null?B:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rk.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rk.prototype,"showVerticalDividers",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rk.prototype,"roundedContainer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rk.prototype,"skipRoundingTop",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rk.prototype,"disableTopPadding",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],rk.prototype,"amsterdamEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rk.prototype,"extractOverlay",void 0);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],rk.prototype,"showMetadataAtTop",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],rk.prototype,"showMetadataBelowTitle",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.menu"),_.I("design:type",Object),_.I("design:paramtypes",[])],rk.prototype,"hasMenu",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.truncateParagraphs"),_.I("design:type",Object),_.I("design:paramtypes",[])],rk.prototype,"truncateParagraphs",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.paragraphMaxLines"),_.I("design:type",Number),_.I("design:paramtypes",[])],rk.prototype,"paragraphMaxLines",null);
_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.background"),_.I("design:type",Object),_.I("design:paramtypes",[])],rk.prototype,"background",null);_.c([_.mC({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],rk);
_.d(rk,"ytd-info-panel-content-renderer",function(){if(Nhq!==void 0)return Nhq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Nhq=G},{mode:2});var yzL;var n6a;var l_s;var UEG;var WK=function(){return _.p.apply(this,arguments)||this};
_.r(WK,_.p);WK.prototype.computeStyle=function(G){return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],WK.prototype,"style_",void 0);_.c([_.ay({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],WK);
_.d(WK,"yt-channel-thumbnail-with-link-renderer",function(){if(UEG===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;l_s===void 0&&(l_s=document.createElement("template"));var D=l_s;F.call(B,D.content.cloneNode(!0),G.content.firstChild);UEG=G}G=UEG;return G},{mode:2});var HK=function(){return _.p.apply(this,arguments)||this};
_.r(HK,_.p);HK.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"}}}};
HK.prototype.computeTitleStyle=function(G){return G||null};
HK.prototype.computeAvatarStyle=function(G){return G||null};
HK.prototype.computeShowNavigationButton=function(G,B){return!(G==null||!G.navigationButton||B)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],HK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.I("design:type",String)],HK.prototype,"titleStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.I("design:type",String)],HK.prototype,"avatarStyle",void 0);_.c([_.v(),_.I("design:type",Boolean)],HK.prototype,"hideNavigationButton",void 0);_.c([_.mC({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],HK);
_.d(HK,"ytd-rich-list-header-renderer",function(){if(n6a!==void 0)return n6a;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return n6a=G},{mode:2});var km=function(){return _.p.apply(this,arguments)||this};
_.r(km,_.p);km.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]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],km.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],km.prototype,"isSearch",void 0);_.c([_.mC({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],km);
_.d(km,"ytd-preview-card-renderer",function(){if(yzL!==void 0)return yzL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return yzL=G},{mode:1});var q3s;var Ov=function(){return _.p.apply(this,arguments)||this};
_.r(Ov,_.p);Ov.prototype.configureRendererStamper=function(){return{"data.menu":iu}};
Ov.prototype.dataChanged=function(){var G=this.get("colorExtractionPalette.section1Color",this.data);G=_.hV(G);_.Ss(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":G})};
Ov.prototype.computeCardStyle=function(G){return this.get("style.value",G)||null};
Ov.prototype.dataChanged=Ov.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Ov.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ov.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.I("design:type",String)],Ov.prototype,"cardStyle",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ov.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Ov);
_.d(Ov,"ytd-compact-channel-recommendation-card-renderer",function(){if(q3s!==void 0)return q3s;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return q3s=G},{mode:1});var E6T;var hQy;var eq=function(){var G=_.p.apply(this,arguments)||this;G.alignAuto=!1;G.collapsed=!0;G.isToggled=!1;G.alwaysCollapsed=!1;G.canToggle=!0;G.collapsedHeight=80;G.disableToggle=!1;G.alwaysToggleable=!1;G.reversed=!1;G.shouldUseNumberOfLines=!1;G.recomputeOnResize=!1;G.canToggleJobId=0;G.lastReversed=!1;return G};
_.r(eq,_.p);_.w=eq.prototype;_.w.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.w.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.w.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var G=_.IF(this.hostElement),B=G.childNodes,F=document.createDocumentFragment(),D=G.childNodes.length-1;D>=0;D--)_.IF(F).appendChild(B[D]);_.X("enable_shadydom_free_scoped_node_methods")?_.fp(this.hostElement).appendChild(F):G.appendChild(F)}};
_.w.ready=function(){var G=this;_.Hc(function(){G.initChildrenObserver()},1)};
_.w.attached=function(){var G;(G=this.resizeObserver)==null||G.observe(this.content)};
_.w.detached=function(){this.detachObserver()};
_.w.toggle=function(G,B){this.canToggle&&(this.isToggled=B,_.cZ(this.hostElement,"yt-refit"),G&&G.stopPropagation())};
_.w.reset=function(){this.childrenChanged()};
_.w.onIronResize=function(){this.recomputeOnResize&&!_.X("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.w.computeIsMoreVisible=function(G,B){return G&&!B};
_.w.computeShouldUseNumberOfLines=function(G){try{return!!G&&window.CSS.supports("-webkit-line-clamp","1")}catch(B){}return!1};
_.w.computeIsLessVisible=function(G,B){return G&&B};
_.w.observeCollapsedHeightAndMaxLines=function(){var G=this.collapsedHeight,B=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Ss(this.hostElement,{"--ytd-expander-max-lines":""+B,"--ytd-expander-collapsed-height":""}):_.Ss(this.hostElement,{"--ytd-expander-collapsed-height":G+"px","--ytd-expander-max-lines":""})};
_.w.handleMoreTap=function(G){this.disableToggle||(_.cZ(this.hostElement,"yt-expander-more-tapped"),this.toggle(G,!0))};
_.w.handleLessTap=function(G){_.cZ(this.hostElement,"yt-expander-less-tapped");this.toggle(G,!1)};
_.w.initChildrenObserver=function(){var G=this;this.observer=new MutationObserver(function(){G.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.X("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.s_(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var B;(B=G.resizeThrottle)==null||B.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.w.childrenChanged=function(){var G=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){cr(function(){G.canToggleJobId=0;G.calculateCanCollapse()})}))};
_.w.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};
_.w.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.w.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("collapsed-changed",this.collapsed))};
_.w.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("is-toggled-changed",this.isToggled))};
_.w.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("can-toggle-changed",this.canToggle))};
_.ZN.Object.defineProperties(eq.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
eq.prototype.canToggleChangedForBinding=eq.prototype.canToggleChangedForBinding;eq.prototype.isToggledChangedForBinding=eq.prototype.isToggledChangedForBinding;eq.prototype.collapsedChangedForBinding=eq.prototype.collapsedChangedForBinding;eq.prototype.observeCollapsedHeightAndMaxLines=eq.prototype.observeCollapsedHeightAndMaxLines;eq.prototype.onIronResize=eq.prototype.onIronResize;eq.prototype.reversedChanged=eq.prototype.reversedChanged;eq.prototype.toggledChanged=eq.prototype.toggledChanged;
eq.prototype.alwaysToggleableChanged=eq.prototype.alwaysToggleableChanged;_.c([_.k(_.Rc),_.I("design:type",Object)],eq.prototype,"ironResizableBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],eq.prototype,"alignAuto",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],eq.prototype,"collapsed",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"isToggled",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"alwaysCollapsed",void 0);
_.c([_.v(),_.I("design:type",Object)],eq.prototype,"canToggle",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"collapsedHeight",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"disableToggle",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"alwaysToggleable",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"reversed",void 0);_.c([_.v(),_.I("design:type",Number)],eq.prototype,"maxNumberOfLines",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.I("design:type",Object)],eq.prototype,"shouldUseNumberOfLines",void 0);_.c([_.v(),_.I("design:type",Object)],eq.prototype,"recomputeOnResize",void 0);_.c([_.iA("#content"),_.I("design:type",HTMLDivElement)],eq.prototype,"content",void 0);_.c([_.Ry("alwaysToggleable"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"alwaysToggleableChanged",null);
_.c([_.Ry("isToggled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"toggledChanged",null);_.c([_.O("canToggleJobId"),_.I("design:type",Object),_.I("design:paramtypes",[])],eq.prototype,"isResetting",null);_.c([_.Ga("reversed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"reversedChanged",null);
_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"onIronResize",null);_.c([_.Ga("maxNumberOfLines","collapsedHeight"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"observeCollapsedHeightAndMaxLines",null);_.c([_.Ga("collapsed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"collapsedChangedForBinding",null);
_.c([_.Ga("isToggled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"isToggledChangedForBinding",null);_.c([_.Ga("canToggle"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eq.prototype,"canToggleChangedForBinding",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-expander"})],eq);
_.d(eq,"ytd-expander",function(){if(hQy!==void 0)return hQy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return hQy=G},{mode:1});var $m=function(){return _.p.apply(this,arguments)||this};
_.r($m,_.p);$m.prototype.computeIsCarousel=function(G){return!!G.isCarousel};
$m.prototype.observeLightsourcePalette=function(){var G,B=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;B&&_.nA(this.hostElement,B)};
$m.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
$m.prototype.observeLightsourcePalette=$m.prototype.observeLightsourcePalette;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$m.prototype,"data",void 0);_.c([_.v({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],$m.prototype,"isCarousel",void 0);
_.c([_.Ga("data.vibrantsourceColorPaletteData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$m.prototype,"observeLightsourcePalette",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],$m);
_.d($m,"ytd-media-upsell-renderer",function(){if(E6T!==void 0)return E6T;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return E6T=G},{mode:2});var KxN;var zO=function(){var G=_.p.apply(this,arguments)||this;G.JSC$15389_playerEvents=new Map;G.listeningToPlayer=!1;G.startX=0;G.active=!1;G.shouldShowButtons=_.X("web_buttons_hidden_killswitch");G.isHighlighted=!1;G.useHighlightStyling=_.X("web_enable_deeper_metadata_highlight_styling");G.enableProblemWalkthrough=_.X("problem_walkthrough_sd");return G};
_.r(zO,_.p);_.w=zO.prototype;
_.w.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}}}}}};
_.w.created=function(){this.JSC$15389_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.w.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.x7(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.x7(this,this.onActiveUpdate))};
_.w.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.x7(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.x7(this,this.onActiveUpdate))};
_.w.onDataChanged=function(){this.removePlayerListeners()};
_.w.onColorPaletteChange=function(){var G={},B;if(_.rK()==="USER_INTERFACE_THEME_DARK"&&((B=this.data)==null?0:B.darkColorPalette)){var F=this.data.darkColorPalette;G["--ytd-macro-markers-list-item-background-color"]=_.Kp(this.get("section2Color",F))}else{var D;_.rK()==="USER_INTERFACE_THEME_LIGHT"&&((D=this.data)==null?0:D.lightColorPalette)&&(F=this.data.lightColorPalette,G["--ytd-macro-markers-list-item-background-color"]=_.Kp(this.get("section3Color",F)))}F?(G["--ytd-macro-markers-list-item-title-color"]=
_.Kp(this.get("primaryTitleColor",F)),G["--ytd-macro-markers-list-item-secondary-color"]=_.Kp(this.get("secondaryTitleColor",F)),G["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Kp(this.get("section1Color",F)),this.customButtonProperties={customColors:{color:_.Kp(this.get("primaryTitleColor",F))}},this.useColorSampling=!0):(G["--ytd-macro-markers-list-item-background-color"]="initial",G["--ytd-macro-markers-list-item-title-color"]="initial",G["--ytd-macro-markers-list-item-secondary-color"]=
"initial",G["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Ss(this.hostElement,G)};
_.w.onEndpointMouseDown=function(G){this.startX=G.clientX};
_.w.onEndpointClick=function(G){var B=this,F,D,u;return _.n(function(R){if(R.nextAddress==1){if(B.startX!==G.clientX)return G.preventDefault(),R.return();B.data&&B.ytRendererBehavior.logExplicitClick(B.data);if(!B.seekWithAnimationOnClick)return R.jumpTo(0);if(G.button!==0||G.shiftKey||G.altKey||G.metaKey||G.ctrlKey||_.oQ(_.VW(G),B.hostElement,["BUTTON".toString()]))return R.return();G.stopPropagation();G.preventDefault();return B.data?R.yield(_.de().getPlayerPromise(),3):R.return()}F=R.yieldResult;
u=(D=_.Q(B.data.onTap,_.Ow))==null?void 0:D.startTimeSeconds;u!==void 0&&F.seekToTimeWithAnimation(u*1E3,_.zx(B.data.title));_.di(R)})};
_.w.computeLayout=function(G){return G};
_.w.computeIsHighlighted=function(G){return!!G};
_.w.computeCarouselType=function(G){return G};
_.w.hideCarousel=function(G){return this.hideThumbnail(G)};
_.w.hideThumbnail=function(G){return this.enableProblemWalkthrough&&G!==null&&G==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.w.onRepeatButtonToggle=function(G){var B=this;G.detail.toggled&&_.de().getPlayerPromise().then(function(F){B.ytPlayerListenerBehavior.listenToPlayerEvents(F,B.JSC$15389_playerEvents);B.listeningToPlayer=!0})};
_.w.onLoopRangeChange=function(G){var B=_.IF(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(B){var F=B.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",B.polymerController.data);if(F){var D=Number(F.endTimeMs);if(Number(F.startTimeMs)!==(G==null?void 0:G.startTimeMs)||D!==(G==null?void 0:G.endTimeMs))B.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.w.removePlayerListeners=function(){var G=this;this.listeningToPlayer&&_.de().getPlayerPromise().then(function(B){G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(B,G.JSC$15389_playerEvents);G.listeningToPlayer=!1})};
_.w.onActiveUpdate=function(G){this.active=G.detail.active};
zO.prototype.onColorPaletteChange=zO.prototype.onColorPaletteChange;zO.prototype.onDataChanged=zO.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],zO.prototype,"ytPlayerListenerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],zO.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],zO.prototype,"useCustomColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zO.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],zO.prototype,"shouldShowButtons",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.I("design:type",String)],zO.prototype,"layout",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.I("design:type",Object)],zO.prototype,"isHighlighted",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zO.prototype,"useHighlightStyling",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zO.prototype,"enableProblemWalkthrough",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.I("design:type",String)],zO.prototype,"carouselType",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],zO.prototype,"useColorSampling",void 0);_.c([_.v(),_.I("design:type",Boolean)],zO.prototype,"seekWithAnimationOnClick",void 0);_.c([_.v(),_.I("design:type",Object)],zO.prototype,"customButtonProperties",void 0);
_.c([_.iA("#repeat-button"),_.I("design:type",HTMLElement)],zO.prototype,"repeatButton",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zO.prototype,"onDataChanged",null);_.c([_.Ga("data.lightColorPalette","data.darkColorPalette"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zO.prototype,"onColorPaletteChange",null);
_.c([_.mC({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],zO);
_.d(zO,"ytd-macro-markers-list-item-renderer",function(){if(KxN!==void 0)return KxN;var G=document.createElement("template");_.H(G,'\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="[[hideCarousel(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="[[!hideCarousel(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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return KxN=G},{mode:1});var a_P;var mEG;var bu=function(){return _.p.apply(this,arguments)||this};
_.r(bu,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bu.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],bu);
_.d(bu,"ytd-title-and-button-list-header-renderer",function(){if(mEG!==void 0)return mEG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return mEG=G},{mode:1});var X4s;var Q0t=new _.oV("BUTTON_RENDERER_TOKEN");_.V3=_.Y(function(G){var B=_.te().resolve(Q0t);return _.l(B,Object.assign({},G,{overrides:G.buttonOverrides}))},"Ya");var j0y=_.Y(function(G){var B=G.data,F=_.pW(G.useSquareAspectRatio,!1);return _.l("dismissed-mini-game-card-view-model",null,_.l(_.E,{cond:function(){var D,u;return(D=B().responseText)==null?void 0:(u=D.runs)==null?void 0:u.length},
then:function(){var D={};return _.l("div",{class:_.tx("yt-mini-game-card-view-model__dismissed-card",(D["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!F()},D["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.X("web_game_card_force_2_by_3")},D["yt-mini-game-card-view-model--dismissed-square-card"]=F,D))},_.l("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.l(_.E,{cond:function(){return B().responseText.runs[0].text},
then:function(u){return _.l("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:u},u)}}),_.l(_.uR,{data:function(){return B().buttons}},{buttonRenderer:_.V3,
buttonViewModel:_.cd})))}}))},"Za");var Lx8=_.Y(function(G){var B=G.data;return _.l("br-nz-badge-shape",{class:_.tx(function(){return MrL(B().brNzRatingBadgeType)}),
role:function(){return B().accessibilityText?"img":void 0},
"aria-label":function(){return B().accessibilityText}},function(){var F;
return(F=B())==null?void 0:F.text})},"$a");_.vK=_.Y(function(G){var B=function(){var F=G.data(),D,u,R,N,y;if(F){var U=!((D=G.workaroundShortsIsThumbnailBadge)==null||!D.call(G));D=(u=G.modern)==null?void 0:u.call(G);u=(R=G.numBadgesInRow)==null?void 0:R.call(G);R=(N=G.clipTextOverflow)==null?void 0:N.call(G);N=(y=G.inheritTypography)==null?void 0:y.call(G);var q;a:switch(F.badgeStyle){case "BADGE_OVERLAY":y=!0;break a;default:y=!1}F={type:U?17:puo(F.badgeStyle),brNzRatingBadgeType:YmI(F.badgeStyle),text:F.badgeText,icon:F.iconName,isOverlay:y,
modern:D||_.X("web_modern_badge_view_model"),accessibilityText:F.accessibilityLabel||((q=_.Q(F.rendererContext,_.yL))==null?void 0:q.label),numBadgesInRow:u,clipTextOverflow:R,shouldInheritTypography:N}}else F=void 0;return F};
return _.l("yt-badge-view-model",{class:_.tx("ytBadgeViewModelHost",G.class)},_.l(_.LH,null,_.l(_.Xm,{when:function(){var F;return!((F=B())==null||!F.brNzRatingBadgeType)}},function(){return _.l(Lx8,{data:function(){return B()}})}),_.l(_.Xm,{when:function(){return!!B()&&!B().brNzRatingBadgeType}},function(){return _.l(_.QR,{data:function(){return B()}})})))},"ab");
_.vK.idomCompat=!0;var zQt=_.Y(function(G){G=_.AS(G,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var B=G.data,F=G.useFullWidth,D=G.isDesktopWeb,u=G.addSearchResultTopMargin,R=function(){return B().layout},N=function(){return B().title},y=function(){return B().metadataText?B().metadataText:B().genre},U=function(){return B().channelName},q=function(){return B().image},h=function(){return B().colorPalette},K=function(){return B().actionButton},a=function(){return B().overflowButton},
m=function(){return B().avatar},L=function(){return B().ageRating},W=function(){return B().thumbnailOverlays},e=function(){var T={};
T=_.tx("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(T["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return D()},T));
return _.l("div",{class:T},_.l(rzG,{imageData:q,colorPalette:h}),_.l(Wxa,{onTap:function(){return B().onTap},
imageData:q,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
thumbnailOverlays:W,isDesktopWeb:D}),_.l(_.E,{cond:function(){return!D()},
then:function(){return _.l(_.GJ,null,_.l(H67,{layout:R,colorPalette:h,isDesktopWeb:D,overflowButton:a,avatar:m,onTap:function(){return B().onTap},
genre:y,title:N,channelName:U}),_.l(kHw,{actionButton:K}))}}))},b=function(){var T={};
T=_.tx((T["yt-mini-game-card-view-model--search-result-desktop"]=function(){return D()},T["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!D()},T["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return u()},T));
return _.l("div",{class:T},e(),_.l(O6y,{description:function(){return B().description},
isDesktopWeb:D,title:N,genre:y,onTap:function(){return B().onTap},
actionButton:K,overflowButton:a,avatar:m,channelName:U}))},M=function(){var T={};
T=_.tx("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(T["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return D()},T["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return D()&&B().width===135},T["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return D()},T["yt-mini-game-card-view-model--big-metadata-font"]=function(){return B().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},T["yt-mini-game-card-view-model--use-full-width"]=
function(){return F()},T["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.X("web_game_card_force_2_by_3")},T));
return _.l("div",{class:T},_.l(eQP,{colorPalette:h,isDesktopWeb:D,onTap:function(){return B().onTap},
accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
actionButton:K,imageData:q,thumbnailOverlays:W}),_.l(H67,{layout:R,colorPalette:h,isDesktopWeb:D,overflowButton:a,avatar:m,onTap:function(){return B().onTap},
genre:y,title:N,channelName:U}),_.l(_.E,{cond:L,then:function(A){return _.l($E7,{ageRating:A})}}))},t=function(){var T={};
T=_.tx("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(T["yt-mini-game-card-view-model--square-card-desktop"]=function(){return D()},T["yt-mini-game-card-view-model--use-full-width"]=function(){return F()},T));
return _.l("div",{class:T},_.l(Wxa,{onTap:function(){return B().onTap},
imageData:q,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
thumbnailOverlays:W,isDesktopWeb:D}),_.l(H67,{layout:R,colorPalette:h,isDesktopWeb:D,overflowButton:a,avatar:m,onTap:function(){return B().onTap},
genre:y,title:N,channelName:U}),_.l(_.E,{cond:L,then:function(A){return _.l($E7,{ageRating:A})}}))};
return _.l("mini-game-card-view-model",{class:G.className},_.l(_.LH,null,_.l(_.Xm,{when:function(){return R()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return M()}),_.l(_.Xm,{when:function(){return R()==="MINI_APP_LAYOUT_SQUARE"}},function(){return t()}),_.l(_.Xm,{when:function(){return R()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return b()})))},"bb");
zQt.idomCompat=!0;var kHw=_.Y(function(G){var B=_.pW(G.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.l(_.uR,{data:G.actionButton},{buttonViewModel:function(F){return _.l("div",{class:B},_.l(_.cd,{data:F.data}))}})},"cb"),Wxa=_.Y(function(G){var B=G.onTap;
var F=G.imageData;var D=G.accessibilityText;var u=G.overlayBadgeText;var R=G.iconName;var N=G.unplayableInlinePlaybackIconName;var y=G.isDesktopWeb;G=G.thumbnailOverlays;return _.l(_.p4,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:B},_.l(_.vr,{data:F,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(D==null?void 0:D())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.l(_.uR,{data:G},{thumbnailOverlayBadgeViewModel:_.mM}),_.l(b6s,{overlayBadgeText:u,iconName:R,unplayableInlinePlaybackIconName:N,isDesktopWeb:y}))},"db"),b6s=_.Y(function(G){var B=G.overlayBadgeText;
var F=G.iconName;var D=G.unplayableInlinePlaybackIconName;var u=G.isDesktopWeb;return _.l("div",{class:"yt-mini-game-card-view-model__badge-container"},_.l(_.E,{cond:F,then:function(R){return _.l("div",{class:"yt-mini-game-card-view-model__badge"},_.l("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.l(_.Pr,{icon:R,className:"yt-mini-game-card-view-model__icon",size:12}),_.l("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},B)))}}),_.l(_.E,{cond:function(){return!F()&&
B()},
then:function(){return _.l("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},B)}}),_.l(_.E,{cond:function(){return D()&&u()},
then:function(){return _.l("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.l(_.Pr,{icon:D,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),rzG=_.Y(function(G){var B=G.colorPalette;
var F=G.imageData;var D=function(){return B().vibrantColorPalette?B().vibrantColorPalette.section2Color:B().sectionTwoColor};
return _.l(_.GJ,null,_.l("div",{class:"yt-mini-game-card-view-model__background-base",style:_.xN({"background-color":function(){return aF(D(),"1")}})}),_.l("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.xN({"background-image":function(){return"url("+F().sources[0].url+")"}})}),_.l("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.xN({background:function(){return"linear-gradient(180deg,\n    "+aF(D(),".8")+" 0%,\n    "+aF(D(),".4")+" 25%,\n    "+aF(B().vibrantColorPalette?B().vibrantColorPalette.section4Color:B().sectionFourColor,".8")+" 100%)"}})}))},"fb"),H67=_.Y(function(G){var B=G.layout;
var F=G.colorPalette;var D=G.overflowButton;var u=G.avatar;var R=G.onTap;var N=G.title;var y=G.channelName;var U=G.genre;var q=function(){var h;return B()!=="MINI_APP_LAYOUT_SQUARE"&&((h=F())==null?0:h.textPrimaryColor)?"color: "+aF(F().textPrimaryColor,".7"):""};
return _.l("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.l(_.E,{cond:u,then:function(){return _.l("div",{class:"yt-mini-game-card-view-model__avatar"},_.l(_.uR,{data:u},{avatarViewModel:_.h8}))}}),_.l(_.p4,{command:R,
className:"yt-mini-game-card-view-model__metadata-details"},_.l("h3",{class:"yt-mini-game-card-view-model__title",title:N},N),_.l(_.E,{cond:u,then:function(){return _.l("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.l("span",{class:"yt-mini-game-card-view-model__genre",title:y,style:q},y),_.l("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:q},U))},
else:function(){return _.l("span",{class:"yt-mini-game-card-view-model__genre",title:U},U)}})),_.l("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.l(_.uR,{data:D},{buttonViewModel:function(h){var K=h.data;
return _.l(_.cd,{data:function(){return Object.assign({},K(),{customFontColor:B()==="MINI_APP_LAYOUT_SINGLETON"?K().customFontColor:void 0})}})}})))},"gb"),eQP=_.Y(function(G){var B=G.colorPalette;
var F=G.isDesktopWeb;var D=G.onTap;var u=G.accessibilityText;var R=G.overlayBadgeText;var N=G.iconName;var y=G.unplayableInlinePlaybackIconName;var U=G.actionButton;var q=G.imageData;G=G.thumbnailOverlays;return _.l("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.l(rzG,{imageData:q,colorPalette:B}),_.l(Wxa,{onTap:D,imageData:q,accessibilityText:u,overlayBadgeText:R,iconName:N,unplayableInlinePlaybackIconName:y,isDesktopWeb:F,thumbnailOverlays:G}),_.l(_.E,{cond:function(){return U==
null?void 0:U()},
then:function(){return _.l(kHw,{actionButton:U})}}))},"hb"),O6y=_.Y(function(G){var B=G.description;
var F=G.isDesktopWeb;var D=G.title;var u=G.genre;var R=G.onTap;var N=G.actionButton;var y=G.overflowButton;var U=G.avatar;G=G.channelName;var q={};q=_.tx("yt-mini-game-card-view-model--search-result-metadata-wrapper",(q["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=F,q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=F,q["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!F()},q));
var h={};h=_.tx("yt-mini-game-card-view-model__search-result-info-row",(h["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!F()},h));
return _.l("div",{class:q},_.l("div",{class:h},_.l(_.p4,{command:R,className:"yt-mini-game-card-view-model__metadata-details"},_.l("h3",{class:"yt-mini-game-card-view-model__title",title:D},D),_.l("span",{class:"yt-mini-game-card-view-model__genre",title:u},u)),_.l(kHw,{actionButton:N,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.l("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.l(_.uR,{data:y},{buttonViewModel:_.cd}))),_.l("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.l("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.l("div",{class:"yt-mini-game-card-view-model__avatar"},_.l(_.uR,{data:U},{avatarViewModel:function(K){var a=K.data;return _.l(_.h8,{data:function(){return Object.assign({},a(),{avatarImageSize:F()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.l(_.p4,{command:R,
className:"yt-mini-game-card-view-model__description"},_.l("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},G)),_.l(_.p4,{command:R,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.l("div",null)))),_.l(_.E,{cond:F,then:function(){return _.l(_.p4,{command:R,className:"yt-mini-game-card-view-model__description"},B)}}))},"ib"),$E7=_.Y(function(G){var B=G.ageRating;
return _.l("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.l(_.vr,{data:function(){return{sources:[{url:B().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.l(_.vK,{data:function(){return{badgeText:B().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.YN(zQt,"mini-game-card-view-model",{props:{data:_.Hd,className:_.Hd,useFullWidth:_.Hd,isDesktopWeb:_.Hd,addSearchResultTopMargin:_.Hd}});_.YN(j0y,"dismissed-mini-game-card-view-model",{props:{data:_.Hd,useSquareAspectRatio:_.Hd}});var o$=function(){var G=_.p.apply(this,arguments)||this;G.isSearch=!1;G.isRichGrid=!1;return G};
_.r(o$,_.p);_.w=o$.prototype;_.w.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.w.dismissibleItemOnYtServiceRequestSent=function(G,B){B.actions&&this.dismissibleItemProcessActions(G,B.actions)};
_.w.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.w.dataChanged=function(){this.dismissibleItemReset()};
_.w.dismissibleItemProcessActions=function(G,B){for(var F=0;F<B.length;F++){var D=B[F];_.Q(D,_.GV)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Q(D,_.GV)),G.stopPropagation())}};
_.w.dismissibleItemHandleReplaceEnclosingAction=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0};
_.ZN.Object.defineProperties(o$.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var G;return!!this.data&&!((G=this.dismissedRenderer)==null?0:G.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.dismissedRenderer)==null||!G.notificationMultiActionRenderer)}}});
o$.prototype.dataChanged=o$.prototype.dataChanged;o$.prototype.dismissibleItemOnRequestSent=o$.prototype.dismissibleItemOnRequestSent;o$.prototype.dismissibleItemOnYtServiceRequestSent=o$.prototype.dismissibleItemOnYtServiceRequestSent;_.c([_.v(),_.I("design:type",Object)],o$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],o$.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],o$.prototype,"isDismissed",void 0);
_.c([_.v(),_.I("design:type",Object)],o$.prototype,"dismissedRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],o$.prototype,"isRichGrid",void 0);_.c([_.O("data.layout"),_.I("design:type",Object),_.I("design:paramtypes",[])],o$.prototype,"useSquareAspectRatio",null);_.c([_.O("data","dismissedRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],o$.prototype,"showCard",null);
_.c([_.O("data","dismissedRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],o$.prototype,"showDismissed",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],o$.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.c([_.Pm("yt-service-request-sent-button-renderer"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],o$.prototype,"dismissibleItemOnRequestSent",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],o$.prototype,"dataChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],o$);
_.d(o$,"ytd-mini-game-card-view-model",function(){if(X4s!==void 0)return X4s;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return X4s=G},{mode:2});var VuL;var v6t;var MF=function(){return _.gS.apply(this,arguments)||this};
_.r(MF,_.gS);MF.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
MF.prototype.getContinuationUrl=function(G){var B={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(B.itct=this.data.clickTrackingParams);return _.xi(G,B)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],MF.prototype,"data",void 0);_.c([_.ay({is:"yt-reload-continuation",noInjection:!0})],MF);var o6G;var Muq;var pU=function(){var G=_.p.apply(this,arguments)||this;G.notificationData={};return G};
_.r(pU,_.p);_.w=pU.prototype;_.w.isMenuExpanded=function(G){return G&&G.length<=1?"undefined":"false"};
_.w.dataChanged_=function(){this.selected=void 0;var G=this.computeSelectedIndex_(this.data);G>=0&&(this.selected=G);G=this.data&&this.data.length>1;_.tV(this.hostElement,"has-items",G);_.IF(this.hostElement).querySelector("#label").tabIndex=G?0:-1};
_.w.onDropdownOpen=function(){var G=_.qW();if(this.parentTrackingParams&&this.data){var B=_.yX(this.parentTrackingParams);this.data.forEach(function(F){G&&B&&F.trackingParams&&(F=_.yX(F.trackingParams),_.WT(G,B,F),_.Oq(G,[F]))})}else this.parentTrackingParams||_.em(new _.Uf("No parent tracking params passed in for yt-dropdown-menu."))};
_.w.hasNotification=function(G){var B;if(G.targetId&&((B=this.notificationData)==null?0:B.targetId)){var F;return G.targetId===((F=this.notificationData)==null?void 0:F.targetId)}};
_.w.computeSelectedIndex_=function(G){if(G)for(var B=0,F=G.length;B<F;B++)if(G[B].selected)return B;return-1};
_.w.computeLabel_=function(G){return this.data&&G!=void 0?this.data[G].title:""};
_.w.computeShowIcon_=function(G,B){return!B&&!!G};
_.w.computeVerticalOffset_=function(G){return G?36:0};
_.w.computeEndpoint_=function(G){return G.endpoint||G.navigationEndpoint};
_.w.onLabelClick_=function(G){this.data&&this.data.length<=1?G.stopPropagation():this.menuExpanded="true"};
_.w.onIronActivate_=function(G){G=G.detail.item;var B=_.IF(this.hostElement).querySelector("#repeat").itemForElement(G);if(B&&B.trackingParams){var F=_.qW(),D=_.yX(B.trackingParams);F&&_.$I(F,D)}if(B&&B.serviceEndpoint)_.X("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(B.serviceEndpoint):_.fi(this.hostElement,[B.serviceEndpoint]),_.cZ(this.hostElement,"yt-playlist-reloading");else a:{if((B=G.querySelector("yt-supported-renderers"))&&
(B=B.rendererElement)&&B.is=="yt-reload-continuation"){B.trigger();break a}(G=G.querySelector("yt-reload-continuation"))&&G.trigger()}};
_.w.onTap_=function(G){G.preventDefault()};
_.w.onItemTap_=function(G){this.ytEndpointBehavior.onEndpointTap_(G)};
_.w.onLinkFocus_=function(G){try{var B=G.target}catch(D){}if(B){var F=B.querySelector("tp-yt-paper-item");F&&_.kT(this,"focus",function(){F.focus()})}};
_.w.onMenuClose_=function(){this.menuExpanded="false"};
_.w.isLabelIconActive_=function(G){return G==="true"};
_.w.computeHasSubtitle_=function(G){return!!G};
_.w.computeHrefForItem_=function(G){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(G))};
_.w.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
_.ZN.Object.defineProperties(pU.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
pU.prototype.onMenuClose_=pU.prototype.onMenuClose_;pU.prototype.onTap_=pU.prototype.onTap_;pU.prototype.onIronActivate_=pU.prototype.onIronActivate_;pU.prototype.onDropdownOpen=pU.prototype.onDropdownOpen;pU.prototype.dataChanged_=pU.prototype.dataChanged_;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],pU.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],pU.prototype,"ytEndpointBehavior",void 0);
_.c([_.v(),_.I("design:type",Array)],pU.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],pU.prototype,"parentTrackingParams",void 0);_.c([_.v(),_.I("design:type",Object)],pU.prototype,"selected",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],pU.prototype,"useLabel",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],pU.prototype,"useComputedAriaLabel",void 0);_.c([_.v(),_.I("design:type",String)],pU.prototype,"icon",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],pU.prototype,"iconLabel",void 0);_.c([_.v(),_.I("design:type",String)],pU.prototype,"ariaLabel",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],pU.prototype,"disabled",void 0);_.c([_.v({computed:"isMenuExpanded(data)"}),_.I("design:type",String)],pU.prototype,"menuExpanded",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],pU.prototype,"closeOnActivate",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.X("web_modern_buttons")}),_.I("design:type",Boolean)],pU.prototype,"modernButtons",void 0);_.c([_.v(),_.I("design:type",Object)],pU.prototype,"notificationData",void 0);_.c([_.O("ariaLabel, selected"),_.v(),_.I("design:type",String),_.I("design:paramtypes",[])],pU.prototype,"computedAriaLabel",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],pU.prototype,"dataChanged_",null);
_.c([_.Pm("paper-dropdown-open"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],pU.prototype,"onDropdownOpen",null);_.c([_.Pm("iron-activate"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],pU.prototype,"onIronActivate_",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],pU.prototype,"onTap_",null);
_.c([_.Pm("iron-overlay-closed"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],pU.prototype,"onMenuClose_",null);_.c([_.ay({is:"yt-dropdown-menu",disableElementRegistration:!0})],pU);
_.d(pU,"yt-dropdown-menu",function(){if(Muq===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;o6G===void 0&&(o6G=document.createElement("template"));var D=o6G;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Muq=G}G=Muq;return G},{mode:2});var Ym=function(){var G=_.p.apply(this,arguments)||this;G.hasNotification=!1;return G};
_.r(Ym,_.p);Ym.prototype.computeId=function(G){return G};
Ym.prototype.computeHorizontalAlign=function(G){return G?"right":"left"};
Ym.prototype.computeAccessibilityLabel=function(G){var B,F;return((B=G.accessibility)==null?void 0:(F=B.accessibilityData)==null?void 0:F.label)||null};
Ym.prototype.notificationDataChanged=function(){var G;this.hasNotification=!!this.notificationData&&!((G=this.data)==null?0:G.icon)};
Ym.prototype.notificationDataChanged=Ym.prototype.notificationDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.K4.YtLiveChatTooltipTargetingBehavior),_.I("design:type",Object)],Ym.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ym.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.I("design:type",String)],Ym.prototype,"id",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],Ym.prototype,"isRightAligned",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Ym.prototype,"disabled",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Ym.prototype,"closeOnActivate",void 0);_.c([_.v(),_.I("design:type",Object)],Ym.prototype,"notificationData",void 0);_.c([_.v(),_.I("design:type",Object)],Ym.prototype,"hasNotification",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],Ym.prototype,"useComputedAriaLabel",void 0);_.c([_.Ga("notificationData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ym.prototype,"notificationDataChanged",null);_.c([_.ay({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Ym);
_.d(Ym,"yt-sort-filter-sub-menu-renderer",function(){if(v6t===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;VuL===void 0&&(VuL=document.createElement("template"));var D=VuL;F.call(B,D.content.cloneNode(!0),G.content.firstChild);v6t=G}G=v6t;return G},{mode:2});var p4T=_.Y(function(G){var B=G.data;var F=_.gJ(function(){var R=B().onTap;(R=_.Q(R,_.mr))&&_.te().resolve(_.Wr).resolveCommand(R);return!1}),D=function(){return{sources:[{url:B().thumbnailUrl,
width:120,height:90}]}},u=function(){return B().rating&&B().ratingA11yLabel&&B().reviewsCount&&B().reviewsCountA11yLabel};
return _.l("place-data-view-model",null,_.l(_.E,{cond:function(){return B().placeName&&B().placeCategory},
then:function(){return _.l("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":F},_.l(_.vr,{data:D,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.l(_.p4,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return B().onTap}},_.l("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return B().placeName}},function(){return B().placeName})),_.l("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.l(_.E,{cond:u,
then:function(){return _.l("div",{class:_.tx("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.l("span",{class:"score",title:function(){return B().ratingA11yLabel}},function(){return B().rating}),_.l("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.l(_.Pr,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.l("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return B().reviewsCountA11yLabel}},function(){return B().reviewsCount}))},
else:function(){return _.l("div",{class:_.tx("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.l("div",{class:_.tx("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.l("span",{class:"category",
title:function(){return B().placeCategory}},function(){return B().placeCategory}))))}}))},"kb");
p4T.idomCompat=!0;_.YN(p4T,"place-data-view-model",{props:{data:_.Hd}});var Y3q=new _.oV("INLINE_PLAYBACK_HOOK_TOKEN");var Azt=ER({sharedUi:hLs});_.OY=hZ(Azt)(Azt.sharedUi,{animatedThumbnailEnabledSelector:function(G){return G.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(G){return G.inlinePreviewEnabled},
currentPageTypeSelector:function(G){return G.currentPageType},
currentPageSubTypeSelector:function(G){return G.currentPageSubType},
persistentPanelVisibleSelector:function(G){return G.persistentPanelVisible}});var dEv=function(G){this.setActiveSlideIndex=G;this.jobIds=[];this.isSlideshowPlaying=!1},ThT=function(G,B){G.isSlideshowPlaying||(G.isSlideshowPlaying=!0,Jzq(G),czy(G,B,0))},Jzq=function(G){_.Tm(_.Lu,function(){G.setActiveSlideIndex(0)},1)},czy=function(G,B,F){G.jobIds.push(_.Tm(_.Lu,function(){var D=F<B-1?F+1:0;
G.setActiveSlideIndex(D);czy(G,B,D)},1800))};var I_G,tuq;I_G=new _.oV("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.f_y=new _.oV("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");tuq=new _.oV("COMMON_MARK_VIEW_MODEL_TOKEN");var Z6P=new _.oV("IMAGE_ON_LOAD_HANDLER_TOKEN");var g6N=_.Y(function(G){return _.l("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.l(_.E,{cond:function(){var B;return(B=G.data())==null?void 0:B.thumbnail},
then:function(B){return _.l(_.vr,{data:B,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.S3q=_.Y(function(G){var B=G.data;var F=G.lockupExperiments;G={};return _.l("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.l("div",{class:_.tx("ytThumbnailOverlayButtonViewModelButton",(G.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var D;return F&&((D=F())==null?void 0:D.useLegacySizedIconButton)},G))},_.l(_.uR,{data:function(){return B().overlayButton}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
buttonOverrides:function(){var u;return F&&((u=F())==null?0:u.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.S3q.idomCompat=!0;var s0w=_.Y(function(G){return _.l("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.gJ(function(B){B.preventDefault();return!1})},_.l(_.uR,{data:function(){return G.data().buttons}},{toggleButtonViewModel:function(B){return _.l("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.l(_.wl,{data:B.data}))}}))},"nb");
s0w.idomCompat=!0;var xEG=_.Y(function(G){var B=function(){var F;return((F=_.Q(G.data().rendererContext,_.yL))==null?void 0:F.label)||""};
return _.l("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.l(_.E,{cond:function(){return G.data().image},
then:function(){return _.l("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.l(_.vr,{data:function(){return G.data().image},
alt:B}))}}),_.l(_.E,{cond:function(){return G.data().text},
then:function(){return _.l("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return G.data().text})}}))},"ob");var PKv=_.OY.animatedThumbnailEnabledSelector,A8=_.Y(function(G){var B=[],F=function(){var a,m;return _.Dbo((a=G.width)==null?void 0:a.call(G),(m=G.height)==null?void 0:m.call(G))},D=_.te().resolve(_.fH(Z6P)),u=_.W5("yt-thumbnail-view-model",function(){B.push("elRef.value set");
var a;(a=G.playbackRef)==null||a.call(G,{thumbnailElRef:u,thumbnail:G.data().image,thumbnailOverlays:G.data().overlays,thumbnailSize:F()})});
_.$f(function(){B.push("onInit");_.VI(function(){B.push("onCleanup")})});
var R=_.FT(PKv),N=function(){var a,m;return(m=(a=G.aspectRatio)==null?void 0:a.call(G))!=null?m:0},y=function(){return(G.data().image?_.WTz(G.data().image):N())<=1&&N()===0},U=function(){return y()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},q=function(){u.value||_.em(new _.Uf("Thumbnail elRef.value is null",B.join("\n")));
D&&u.value&&D(u.value)},h=function(){var a,m;
return((a=G.hovered)==null?void 0:a.call(G))&&F()!=="large"&&((m=G.data().overlays)==null?void 0:m.some(function(L){return _.Q(L,Z3T)}))},K={};
return _.l("yt-thumbnail-view-model",{class:_.tx("ytThumbnailViewModelHost",G.className,function(){return dfM(N())},function(){var a,m;
a:{var L=F(),W=(a=G.disableRounding)==null?void 0:a.call(G);a=(m=G.isClip)==null?void 0:m.call(G);if(!W&&!a)switch(L){case "large":m="ytThumbnailViewModelLarge";break a;case "small":m="ytThumbnailViewModelSmall";break a;default:m="ytThumbnailViewModelMedium";break a}m=void 0}return m},(K.ytThumbnailViewModelCinematic=y,K)),
style:_.xN({"background-color":function(){var a,m=y()?(a=G.data().backgroundColor)==null?void 0:a.lightTheme:void 0;return m?aF(m,"1"):void 0}}),
el:u},_.l(_.E,{cond:y,then:function(){return _.l("div",{class:"ytThumbnailViewModelBlurredImage"},_.l(_.vr,{data:function(){return G.data().image},
alt:"",contentMode:U,targetWidth:G.width,onload:q}))}}),_.l("div",{class:"ytThumbnailViewModelImage"},_.l(_.vr,{data:function(){return G.data().image},
alt:"",contentMode:U,targetWidth:G.width,onload:q}),null),_.l(_.uR,{data:function(){return h()?void 0:G.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Bha,thumbnailOverlayBadgeViewModel:function(a){return _.l(_.mM,{data:a.data,thumbnailSize:F,isClip:G.isClip})},
thumbnailBottomOverlayViewModel:function(a){return _.l(sUt,{data:a.data,thumbnailSize:F,isClip:G.isClip})},
thumbnailOverlayFullViewModel:xEG,thumbnailOverlayButtonViewModel:function(a){return _.l(_.S3q,{data:a.data,lockupExperiments:G.lockupExperiments})},
channelDisclosureViewModel:function(a){a=a.data;var m;return _.l("div",null,(m=_.te().resolve(_.fH(I_G)))==null?void 0:m({data:a}))}}),_.l(_.uR,{data:function(){var a;
return((a=G.hovered)==null?0:a.call(G))?G.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(a){return _.l(Ev,{data:a.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:s0w}),_.l(_.uR,{data:function(){var a;return((a=G.hovered)==null?0:a.call(G))&&R()?G.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:g6N}),_.l(_.E,{cond:G.isClip,then:function(){return _.l("div",{class:"ytPinkingNsHost"},_.l("svg",{class:"ytPinkingNsPinkingLeft"},_.l("defs",null,_.l("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.l("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.l("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.l("svg",{class:"ytPinkingNsPinkingRight"},_.l("defs",null,_.l("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.l("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.l("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
A8.idomCompat={callbacks:{playbackRef:!0}};var GwN=_.Y(function(G){var B=_.C(_.qg(-1,void 0,"RW2Ole")),F=B.next().value,D=B.next().value;_.$f(function(){var u=new dEv(D);ThT(u,G.data().thumbnails.length);_.VI(function(){if(u.isSlideshowPlaying){u.isSlideshowPlaying=!1;for(var R=u.jobIds,N=0,y=R.length;N<y;N++)_.Lu.cancelJob(R[N]);u.jobIds.length=0}})});
return _.l("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.l(_.uR,{data:function(){return G.data().thumbnails}},{thumbnailViewModel:function(u,R){return _.l("div",{class:function(){var N=!G.data().primaryThumbnail,y=R(),U=F(),q=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
N&&y===0&&q.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");y<=U&&q.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return q.join(" ")}},_.l(A8,{data:u.data,
disableRounding:G.disableRounding}))}}))},"qb");
GwN.idomCompat=!0;var JrS=new _.oV("DWELL_DETECTOR_REGISTRY_TOKEN");var i5a=_.Y(function(G){var B=crz(G.triggeringElement),F=function(){return!!G.data().primaryThumbnail},D=function(){var R,N=(R=G.data())==null?void 0:R.maxHeight,y;
R=(y=G.maxHeight)==null?void 0:y.call(G);return N!=null&&R!=null?Math.min(N,R):R!=null?R:N},u=function(){var R=D();
if(R){var N;if(F()&&(N=G.includeStackHeight)!=null&&N.call(G)){var y;N=((y=G.doubleStack)==null?0:y.call(G))?8:4}else N=0;R=R-N-1;if(!(R<0)){y=Math;N=y.ceil;var U,q;var h=F88((q=(U=G.aspectRatio)==null?void 0:U.call(G))!=null?q:0);return N.call(y,R*h)}}};
return _.l("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.xN({height:function(){return D()?D()+"px":void 0},
width:function(){return u()?u()+"px":void 0}})},_.l(BMs,{stackEnabled:F,
thumbnailSize:function(){var R,N;return _.Dbo((R=G.width)==null?void 0:R.call(G),(N=G.height)==null?void 0:N.call(G))},
doubleStack:G.doubleStack,stackColor:function(){return G.data().stackColor},
includeStackHeight:G.includeStackHeight},_.l(_.uR,{data:function(){return G.data().primaryThumbnail}},{thumbnailViewModel:function(R){var N={};
return _.l(A8,{data:R.data,width:G.width,height:G.height,aspectRatio:G.aspectRatio,disableRounding:G.disableRounding,className:_.tx((N.ytCollectionThumbnailViewModelHostHasStacks=F,N)),hovered:G.hovered,playbackRef:G.playbackRef})}}),_.l(_.E,{cond:function(){var R;
return B()&&((R=G.data().thumbnails)==null?void 0:R.length)},
then:function(){return _.l("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.l(GwN,{data:G.data,disableRounding:function(){return!F()}}))}})))},"rb");
i5a.idomCompat={callbacks:{playbackRef:!0}};
var BMs=_.Y(function(G){var B=G.children;var F=G.stackEnabled;var D=G.thumbnailSize;var u=G.doubleStack;var R=G.stackColor;var N=G.includeStackHeight;var y,U=(y=_.te().resolve(_.fH(_.Rx)))==null?void 0:y();return _.l(_.E,{cond:F,then:function(){return _.l(HjT,{data:function(){var q,h;return{experimentEnabled:!0,thumbnailSize:D(),doubleStack:u==null?void 0:u(),color:U?R==null?void 0:(q=R())==null?void 0:q.darkTheme:R==null?void 0:(h=R())==null?void 0:h.lightTheme,enableResponsiveMode:!1,includeStackHeight:N==
null?void 0:N()}}},B)},
else:function(){return B}})},"sb");var Fey=new _.oV("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.Dxt=_.Y(function(G){var B=G.data;G=_.W5("ad-card-badge-view-model");return _.l("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:G},_.l(_.E,{cond:function(){return B().imageBadge},
then:function(F){return _.l(_.vr,{data:F,alt:""})}}))},"tb");var J8;_.dk={calledOnce:!0,state:"visible"};J8={calledOnce:!0,state:"hidden"};_.cK=_.Y(function(G){var B=_.AS(G,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});G=Object.assign({},B);var F=B.data;B=B.customCommandResolver;var D=(delete G.data,delete G.customCommandResolver,G);G=_.tb({visibilityCallback:function(y,U){var q,h=(q=F().interaction)==null?void 0:q.onFirstVisible;y&&(h&&_.rJ(h),D.setOnErrorHandler()&&T7s(U))},
showOption:_.dk});B=_.rC(function(){return F().interaction},B,function(){var y;
return(y=D.listenToTapEvent)==null?void 0:y.call(D)});
var u=_.C(_.qg(!1,void 0,"wAC0Lc")),R=u.next().value,N=u.next().value;u=_.gJ(function(y){var U;((U=D.setTouchEndHandler)==null?0:U.call(D))&&!R()&&(y.currentTarget.click(),N(!0),setTimeout(function(){N(!1)},100));
return!1});
return _.l("ad-image-view-model",{class:function(){var y,U=[((y=F().interaction)==null?0:y.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],q;((q=D.isGridViewEnabled)==null?0:q.call(D))&&U.push("ytwAdImageViewModelHostInGridView");return U.join(" ")},
el:_.VX(G,B),"on:touchend":u},_.l("div",{class:"ytwAdImageViewModelHostImageContainer"},_.l(_.vr,{data:function(){var y;return{sources:F().imageSources,contentMode:(y=F().imageProperties)==null?void 0:y.contentMode}},
alt:function(){var y,U;return((y=F().interaction)==null?void 0:(U=y.accessibility)==null?void 0:U.label)||""},
targetHeight:D.targetHeight,targetWidth:D.targetWidth,preserveHeight:D.preserveHeight,preserveWidth:D.preserveWidth,useWidth:D.useWidth,style:function(){var y,U;return"vertical-align: bottom;"+(((y=F().background)==null?0:y.color)?"background-color:"+_.hV((U=F().background)==null?void 0:U.color)+";":"")},
className:function(){return D.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var y,U;return(U=(y=D.setDraggable)==null?void 0:y.call(D))!=null?U:void 0}})))},"vb");var ucq=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;return _.l("carousel-ad-card-image-view-model",{class:function(){var D;return((D=B().interaction)==null?0:D.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk}),_.rC(function(){return B().interaction},F)),
"aria-label":function(){var D,u;return(D=B().interaction)==null?void 0:(u=D.accessibility)==null?void 0:u.label}},_.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(D){return _.l(_.cK,{data:D.data,
customCommandResolver:F})}}),_.l("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.l(_.uR,{data:function(){return B().badge}},{adCardBadgeViewModel:_.Dxt})),_.l(_.YR,{model:{color:4}}))},"wb");var RlT=_.Y(function(G){var B=_.C(_.qg(0,void 0,"JJ0QQc")),F=B.next().value;B.next();var D=B.next().value,u=_.C(_.qg(!1,void 0,"f6YICe"));B=u.next().value;var R=u.next().value,N;_.VI(function(){clearTimeout(N)});
u=_.gJ(function(){var q;((q=G.animate)==null?0:q.call(G))?(R(!0),N=setTimeout(function(){R(!1);y()},200)):y();
return!1});
var y=function(){D(function(q){return(q+G.numShownItems())%G.data().length})},U={};
return _.l("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.l("div",{class:_.tx("ytwHorizontalCarouselCarouselWrapper")},_.l("div",{class:_.tx("ytwHorizontalCarouselCarouselInnerWrapper",(U.ytwHorizontalCarouselAnimating=B,U))},_.l(_.jR,{each:G.data,keyBy:"INDEX"},function(q,h){return _.l("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.xN({"flex-basis":function(){return"calc((100% - (8px * "+(G.numShownItems()-1)+")) / "+G.numShownItems()+")"},
order:function(){var K=h-F();K<0&&(K+=G.data().length);return K}})},G.children(q,h))}))),_.l("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":u},G.nextButton()))},"xb");var NMN=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;var D=G.expansive;var u=G.isLockupAttachment;return _.l("carousel-ad-card-collection-view-model",{el:_.VX(_.tb({visibilityCallback:function(R){var N,y=(N=B().interaction)==null?void 0:N.onFirstVisible;R&&y&&_.rJ(y)},
showOption:_.dk})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.l(_.E,{cond:function(){return u==null?void 0:u()},
then:function(){return _.l(wGq,{data:B,customCommandResolver:F})},
else:function(){return _.l(CrL,{data:B,customCommandResolver:F,expansive:D})}}))},"yb"),wGq=_.Y(function(G){var B=G.data;
var F=G.customCommandResolver;return _.l("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.l(_.uR,{data:function(){return B().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(D){return _.l("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.l(ucq,{data:D.data,
customCommandResolver:F}))}}))},"zb"),CrL=_.Y(function(G){var B=G.data;
var F=G.customCommandResolver;var D=G.expansive;return _.l(RlT,{data:function(){var u;return((u=B())==null?void 0:u.carouselAdCards)||[]},
nextButton:function(){return _.l(_.uR,{data:function(){return B().nextButton}},{buttonViewModel:function(u){var R=u.data;
return _.l(_.cd,{data:function(){return(D==null?0:D())?Object.assign({},R(),{style:"mono"}):R()},
className:_.X("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(u){return _.l(_.uR,{data:u},{carouselAdCardImageViewModel:function(R){return _.l(ucq,{data:R.data,customCommandResolver:F})}})})},"Ab");_.TO=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;var D=G.className;var u=G.delayedClassName;var R=G.animationEntityKey;var N=G.isCompactWidth;var y=G.isContentWidth;G=_.C(_.qg(!1,void 0,"B1koDf"));var U=G.next().value,q=G.next().value,h=_.pW(R,""),K=_.iR(AIJ,h),a=function(){var US,aI;return(aI=(US=K())==null?void 0:US.value)!=null?aI:!1},m=function(){_.M7(_.wC("booleanEntity",h(),{key:h(),
value:!0}));A=void 0};
R=_.C(_.d3(a));var L=R.next().value,W=R.next().value;R=_.C(_.d3(a));var e=R.next().value,b=R.next().value;R=_.C(_.d3(function(){var US;return a()?(US=B().styleTransitionConfig)==null?void 0:US.destinationStyle:void 0}));
var M=R.next().value,t=R.next().value,T=function(){var US=Object.assign({},B(),M()&&{style:M()});var aI,v6,Jg=US.label,c6=(aI=US.interaction)==null?void 0:(v6=aI.accessibility)==null?void 0:v6.label;aI=US.iconImage?US.label&&US.label.content?US.iconLeading?"leading":"trailing":"icon-only":void 0;US={formattedButtonText:Jg,accessibilityLabel:c6,style:Zjz(US.style),type:gxQ(US.style),state:"active",size:trI(US.size),iconPosition:aI,disabled:!1,aTagConfig:fog(US,F)};US.focused=U();return US},A;
R=_.tb({visibilityCallback:function(US){var aI,v6=(aI=B().interaction)==null?void 0:aI.onFirstVisible;US&&v6&&_.rJ(v6)},
showOption:_.dk});var Z=function(){return lDl(T(),!!B().iconImage)};
G={};var P={};D=_.tx(function(){return"ytwAdButtonViewModelHost"},function(){return B().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var US=!!B().delayedAppearanceConfig,aI=L();
return US?aI?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var US=!!B().delayedAppearanceConfig,aI=e();
return US?aI?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!B().delayedAppearanceConfig||L()?u==null?void 0:u():""},(G.ytwAdButtonViewModelHostCompactWidth=function(){return N==null?void 0:N()},G),(P.ytwAdButtonViewModelHostContentWidth=function(){return y==null?void 0:y()},P),D!=null?D:"");
var RI=function(){var US,aI=(US=B().delayedAppearanceConfig)==null?void 0:US.delayedInvisibleSeconds;aI&&(A=_.yH(_.Lu,function(){W(!0);yo()},aI*1E3))},yo=function(){var US,aI=(US=B().delayedAppearanceConfig)==null?void 0:US.delayedVisibleSeconds;
aI&&(A=_.yH(_.Lu,function(){b(!0);hg()},aI*1E3))},hg=function(){var US,aI=(US=B().styleTransitionConfig)==null?void 0:US.styleTransitionSeconds,v6,Jg=(v6=B().styleTransitionConfig)==null?void 0:v6.destinationStyle;
aI&&Jg?A=_.yH(_.Lu,function(){t(Jg);m()},aI*1E3):m()};
_.$f(function(){RI()});
_.VI(function(){A&&_.Lu.cancelJob(A)});
return _.l("ad-button-view-model",{"on:focusin":_.gJ(function(){var US=_.te().resolve(_.fH(_.Mu));US&&q(US.isKeyBoardInUse());return!1}),
"on:focusout":_.gJ(function(){q(!1);return!1}),
class:D,el:_.VX(R),style:_.xN({"transition-duration":"0.3s"})},_.l(_.E,{cond:T,then:function(){return _.l(_.Ji,{data:T,icon:function(){return _.l(_.E,{cond:function(){return B().iconImage},
then:function(US){return _.l(_.vr,{data:US,alt:"",targetWidth:Z,targetHeight:Z,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var y$P=_.Y(function(G){var B=G.data;G=function(){return B().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var F=_.tb({visibilityCallback:function(R){var N,y=(N=B().interaction)==null?void 0:N.onFirstVisible;R&&y&&_.rJ(y)},
showOption:_.dk}),D={},u={};return _.l("ad-button-group-view-model",{class:_.tx("ytwAdButtonGroupViewModelHost",(D.ytwAdButtonGroupViewModelHostCompactWidth=G,D)),el:_.VX(F)},_.l("div",{class:_.tx("ytwAdButtonGroupViewModelHostSecondaryButton",(u.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=G,u))},_.l(_.uR,{data:function(){return B().secondaryAdButton}},{adButtonViewModel:function(R){return _.l(_.TO,{data:R.data})}})),_.l("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.l(_.uR,
{data:function(){return B().primaryAdButton}},{adButtonViewModel:function(R){return _.l(_.TO,{data:R.data})}})))},"Cb");var nXq=_.Y(function(G){var B=function(){var F;return((F=G.data())==null?void 0:F.answers)||[]};
return _.l("yt-survey-icons",{class:"ytSurveyIconsHost"},_.l("div",{class:"ytSurveyIconsHeader"},_.l("div",{class:"ytSurveyIconsTitle"},function(){var F;return(F=G.data())==null?void 0:F.text}),_.l("div",null,_.l(_.Ji,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var F;(F=G.onDismiss)==null||F.call(G)}}},
iconName:"DISMISSAL"}))),_.l("div",null,_.l("div",{class:"ytSurveyIconsAnswers"},_.l(_.jR,{each:function(){return B()},
keyBy:"INDEX"},function(F,D){return _.l("div",null,_.l(_.Ji,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var u;(u=G.onSelect)==null||u.call(G,F(),D)}}},
icon:function(){return _.l(_.Pr,{icon:function(){var u,R;return(u=F())==null?void 0:(R=u.icon)==null?void 0:R.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.l("div",{class:"ytSurveyIconsAnswersText"},_.l("div",null,function(){return B().length?B()[0].text:""}),_.l("div",null,function(){return B().length?B()[B().length-1].text:""}))))},"Db");var lYa=_.Y(function(G){var B=_.VX(_.mR(function(){var U;return(U=G.data())==null?void 0:U.rendererContext},void 0,void 0,void 0,!0)),F=_.C(_.qg(!1,void 0,"GW0yjf")),D=F.next().value,u=F.next().value,R=_.iR(dcQ,function(){var U;
return(U=G.data().keys)==null?void 0:U.surveyEntityKey}),N=_.iR(Jag,function(){var U;
return(U=G.data().keys)==null?void 0:U.surveyStateEntityKey});
_.da("ytd-slimline-survey-show-action",function(){u(!1)});
var y=function(){var U,q;var h=(U=N())==null?void 0:(q=U.questionStack)==null?void 0:q[0];if(h!==void 0){var K,a;return(K=R())==null?void 0:(a=K.questions)==null?void 0:a[h]}};
F={};return _.l("yt-slimline-survey-view-model",{el:B,class:_.tx("ytSlimlineSurveyViewModelHost",(F.ytSlimlineSurveyViewModelCollapsed=function(){return D()},F))},_.l("div",{class:"ytSlimlineSurveyViewModelContainer"},_.l(_.E,{cond:function(){var U;
return((U=y())==null?void 0:U.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.l(nXq,{data:function(){return y()},
onSelect:function(U,q){var h,K;return _.n(function(a){u(!0);if(K=(h=G.data())==null?void 0:h.onSelectRating)_.rJ(K),_.M7(eLa(q));_.di(a)})},
onDismiss:function(){u(!0);var U;var q=(U=R())==null?void 0:U.dismissalFeedbackToken;U=q?{feedbackEndpoint:{feedbackToken:q}}:void 0;U&&_.QX(U,{form:{element:B.value}})}})}})))},"Eb");var UxP=_.Y(function(G){return _.l("yt-table-view-model",{class:_.tx("ytTableViewModelHost",G.className)},_.l(_.jR,{each:function(){return G.data().rows||[]}},function(B){var F={};
return _.l("div",{class:_.tx("ytTableViewModelRow",(F.ytTableViewModelRowBottomBorder=function(){return G.data().showSeparators},F))},_.l(_.jR,{each:function(){return(B==null?void 0:B.cells)||[]}},function(D,u){var R,N={};
return _.l("span",{class:_.tx((N.ytTableViewModelRowLabel=function(){return u()===0&&G.data().showHorizontalHeaders},N.ytTableViewModelCell=function(){return!G.data().showHorizontalHeaders||u()>0},N))},(R=D.text)==null?void 0:R.content)}))}))},"Fb");var qkw=_.Y(function(G){return _.l("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.l(_.uR,{data:function(){var B;return(B=G.data())==null?void 0:B.attachments}},{flexibleActionsViewModel:function(B){return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.l(_.KL,{data:B.data,
layout:function(){var F;return((F=G.lockupStyle())==null?void 0:F.arrangement)===1?0:1},
justifyContentOverride:function(){var F;return((F=G.lockupStyle())==null?void 0:F.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(B){return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.l(lYa,{data:B.data}))},
expandableMetadataViewModel:function(B){B=B.data;var F;return _.l("div",{class:_.tx("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(F=_.te().resolve(_.fH(Fey)))==null?void 0:F({data:B}))},
adButtonGroupViewModel:function(B){return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.l(y$P,{data:B.data}))},
adButtonViewModel:function(B){return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.l(_.TO,{data:B.data,isCompactWidth:!0}))},
tableViewModel:function(B){return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.l(UxP,{data:B.data}))},
aiCompanionAttachmentViewModel:function(B){B=B.data;var F;return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},(F=_.te().resolve(_.fH(_.f_y)))==null?void 0:F({data:B}))},
carouselAdCardCollectionViewModel:function(B){return _.l("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.l(NMN,{data:B.data,isLockupAttachment:!0}))}}))},"Gb");var Bhz=_.sD("rich_grid_min_item_width",310),P7S=_.sD("rich_grid_max_item_width",500);var yzs,Nhc;yzs=16/9;Nhc=2/3;_.I$=_.Y(function(G){var B=G.data;var F=G.className;var D=G.imageSizeConfig;var u=G.notifyOnLoaded;var R=function(){return B().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},N=function(){var a;
return _.ax((a=B())==null?void 0:a.rendererContext)};
G={};G=(G.ytContentPreviewImageViewModelHost=!0,G.ytContentPreviewImageViewModelCircleImage=function(){return R()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G.ytContentPreviewImageViewModelTappable=function(){return N()},G);
var y=function(){var a,m;return(m=(a=_.Q(B().rendererContext,_.yL))==null?void 0:a.label)!=null?m:""},U=function(){return l_6(B())},q=function(){var a=n6z(R(),B().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",D==null?void 0:D(),UES(U()),B().layoutWidth,B().layoutHeight),m=Object.assign({},a);
a.width&&(m.width=Math.round(a.width));a.height&&(m.height=Math.round(a.height));a.maxWidth&&(m.maxWidth=Math.round(a.maxWidth));a.maxHeight&&(m.maxHeight=Math.round(a.maxHeight));return m},h=_.mS(function(){return q().height},void 0,"CxFlJb"),K=_.mS(function(){return q().width},void 0,"lb8Jhd");
return _.l("yt-content-preview-image-view-model",{el:_.VX(_.mR(function(){var a;return(a=B())==null?void 0:a.rendererContext})),
role:function(){return N()?"link":void 0},
tabindex:function(){return N()?0:void 0},
class:_.tx(F,G,function(){var a=R();var m=D==null?void 0:D();a=a==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||a==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||a==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||a==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(m==null?void 0:m.size)!=null&&m.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(m==null?void 0:m.size)!=null&&m.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return a}),
style:function(){var a=q(),m=[];a.width&&m.push("width: "+a.width+"px");a.height&&m.push("height: "+a.height+"px");a.maxWidth&&m.push("max-width: "+a.maxWidth+"px");a.maxHeight&&m.push("max-height: "+a.maxHeight+"px");a.fullWidth&&m.push("width: 100%");return m.join(";")}},_.l(_.E,{cond:U,
then:function(a){return _.l(_.vr,{data:a,alt:y,"data-disabled$":function(){return!y()},
notifyOnLoaded:u,targetWidth:K,targetHeight:h,preserveWidth:function(){return!!K()},
preserveHeight:function(){return!!h()}})}}),_.l(_.uR,{data:function(){var a;
return(a=B())==null?void 0:a.overlays}},{thumbnailHoverOverlayViewModel:Ev,
thumbnailOverlayButtonViewModel:_.S3q}))},"Hb");
_.I$.idomCompat=!0;var fU=_.Y(function(G){var B=G.data;var F=G.className;var D=G.useSmallLayout;var u=G.useMediumText;var R=G.useHeavyText;var N=function(){return!(u==null||!u())||!(R==null||!R())};
G={};return _.l("yt-attribution-view-model",{el:_.VX(_.mR(function(){var y;return(y=B())==null?void 0:y.rendererContext})),
class:_.tx(F,(G.ytAttributionViewModelHost=!0,G.ytAttributionViewModelMediumText=u,G.ytAttributionViewModelHeavyText=R,G))},_.l(_.E,{cond:function(){return _.ax(B().rendererContext)},
then:function(){return _.l("button",{class:"ytAttributionViewModelTappable"},_.l(EXa,{data:B,useSmallLayout:D,badgesShouldInheritTypography:N}))},
else:function(){return _.l(EXa,{data:B,useSmallLayout:D,badgesShouldInheritTypography:N})}}))},"Ib"),EXa=_.Y(function(G){var B=G.data;
var F=G.useSmallLayout;var D=G.badgesShouldInheritTypography;var u=function(){return{size:(F==null?0:F())?16:24}};
return _.l(_.GJ,null,_.l(_.uR,{data:function(){return B().contentPreviewImage}},{contentPreviewImageViewModel:function(R){return _.l(_.I$,{data:R.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:u})}}),_.l(_.uR,{data:function(){return B().badge}},{badgeViewModel:function(R){return _.l(_.vK,{data:R.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:D})}}),_.l(_.E,{cond:function(){return B().text},
then:function(){return _.l(_.Wd,{text:function(){return B().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.l(_.E,{cond:function(){return B().suffix},
then:function(){return _.l(_.Wd,{text:function(){return B().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
fU.idomCompat=!0;var hlT,Keq,aYy,mxP,XGN;hlT=_.Y(function(G){var B=G.delimiter;var F=G.max;var D=G.index;var u=G.isStandalone;return _.l(_.E,{cond:function(){return F()-1>D()},
then:function(){var R={};return _.l("span",{class:_.tx("yt-content-metadata-view-model__delimiter",(R["yt-content-metadata-view-model__delimiter--standalone"]=u,R)),"aria-hidden":!0},B)}})},"Kb");
Keq=_.Y(function(G){var B=G.metadataPart;var F=G.maxLines;return _.l(_.Wd,{text:function(){return B().text},
linkInheritColor:!0,className:function(){return q36(F())},
userInput:!0})},"Lb");
aYy=_.Y(function(G){var B=G.metadataPart;var F=G.maxLines;return _.l(_.E,{cond:function(){return B().tooltip},
then:function(D){return _.l("span",{title:D,role:"tooltip"},_.l(Keq,{metadataPart:B,maxLines:F}))},
else:function(){return _.l(Keq,{metadataPart:B,maxLines:F})}})},"Mb");
mxP=_.Y(function(G){var B=G.metadataPart;var F=G.isOverlay;var D=G.useMediumText;var u=G.hideAvatar;var R=function(){return B().maxLines!==void 0?B().maxLines:1};
return _.l(_.GJ,null,_.l(_.uR,{data:function(){return B().avatarStack}},{avatarStackViewModel:function(N){return _.l(_.a$,{data:N.data,
isOverlay:F,useMediumText:D,hideAvatar:u})},
badgeViewModel:_.vK}),_.l(_.E,{cond:function(){return B().leadingIcon},
then:function(N){return _.l(_.Pr,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return N().name},
size:function(){return N().width}})}}),_.l(_.E,{cond:function(){return B().text},
then:function(){return _.l(aYy,{metadataPart:B,maxLines:R})}}),_.l(_.E,{cond:function(){return B().icon},
then:function(N){return _.l(_.Pr,{className:"yt-content-metadata-view-model__icon",icon:function(){return N().name},
size:function(){return N().width}})}}))},"Nb");
XGN=_.Y(function(G){var B=G.metadataRow;var F=G.isInline;var D=G.delimiter;var u=G.isOverlay;var R=G.useMediumText;var N=G.extensions;var y=function(){var q,h=N==null?void 0:(q=N())==null?void 0:q.lockupMetadata;q=B();var K,a;return!!((h==null?0:(K=h.byline)==null?0:K.hideAvatar)&&((a=_.Q(q,Aft))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},U=function(){return B().metadataParts||[]};
G={};return _.l("div",{class:_.tx("yt-content-metadata-view-model__metadata-row",(G["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=F,G["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var q,h=N==null?void 0:(q=N())==null?void 0:q.lockupMetadata;q=B();var K,a;return!!((h==null?0:(K=h.byline)==null?0:K.addPadding)&&((a=_.Q(q,Aft))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},G["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var q;
return!!(N==null?0:(q=N())==null?0:q.lockupMetadata)&&B().badges&&!B().metadataParts},G))},_.l(_.uR,{data:function(){return B().badges}},{badgeViewModel:function(q){return _.l("div",{class:"yt-content-metadata-view-model__badge"},_.l(_.vK,{data:q.data,
numBadgesInRow:function(){var h,K;return((h=B())==null?void 0:(K=h.badges)==null?void 0:K.length)||0}}))}}),_.l(_.jR,{each:U},function(q,h){return _.l(_.GJ,null,_.l(mxP,{metadataPart:q,
isOverlay:u,useMediumText:R,hideAvatar:y}),_.l(hlT,{delimiter:D,max:function(){return U().length},
index:h,isStandalone:!1}))}),_.l(_.E,{cond:function(){return B().isSpacerRow&&!F()},
then:function(){return _.l("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.t8=_.Y(function(G){G=_.AS(G,{layout:0,isOverlay:!1});var B=G.data,F=G.layout,D=G.isOverlay,u=G.useMediumText,R=G.extensions,N=function(){return F()===0},y=function(){var q;
return((q=B().metadataRows)==null?void 0:q.filter(function(h){var K,a=R==null?void 0:(K=R())==null?void 0:K.lockupMetadata,m,L;K=!!((a==null?0:(m=a.description)==null?0:m.hideDescription)&&((L=_.Q(h,Aft))==null?void 0:L.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var W,e;return!((a==null?0:(W=a.spacer)==null?0:W.hideSpacer)&&((e=_.Q(h,Aft))==null?void 0:e.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||K)}))||[]},U={};
return _.l("yt-content-metadata-view-model",{class:_.tx(G.className,"yt-content-metadata-view-model",(U["yt-content-metadata-view-model--inline"]=N,U["yt-content-metadata-view-model--tappable"]=function(){return _.ax(B().rendererContext)},U["yt-content-metadata-view-model--medium-text"]=u,U)),
el:_.VX(_.mR(function(){return B().rendererContext}))},_.l(_.jR,{each:y},function(q,h){return _.l(_.GJ,null,_.l(XGN,{metadataRow:q,
isInline:N,delimiter:function(){return B().delimiter},
isOverlay:D,useMediumText:u,extensions:R}),_.l(_.E,{cond:function(){return N()&&!q.isSpacerRow},
then:function(){return _.l(hlT,{delimiter:function(){return B().delimiter},
max:function(){return y().length},
index:h,isStandalone:!0})}}))}))},"Pb");
_.t8.idomCompat=!0;var QvT=_.Y(function(G){var B=_.te().resolve(_.fH(_.Rx)),F={};return _.l("yt-lockup-metadata-view-model",{class:_.tx("yt-lockup-metadata-view-model",function(){a:{var D=G.lockupStyle();if(D==null?0:D.isOverlay)D="yt-lockup-metadata-view-model--overlay";else switch(D==null?void 0:D.arrangement){case 1:D="yt-lockup-metadata-view-model--horizontal";break a;default:D="yt-lockup-metadata-view-model--vertical"}}return D},function(){a:{var D=G.lockupStyle();
switch(D==null?void 0:D.titleMaxLines){case 1:D="yt-lockup-metadata-view-model--title-max-lines-1";break a}D=void 0}return D},function(){a:{var D=G.lockupStyle();
if(D==null?0:D.isTiny)D="yt-lockup-metadata-view-model--tiny";else switch(D==null?void 0:D.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":D="yt-lockup-metadata-view-model--compact";break a;default:D="yt-lockup-metadata-view-model--standard"}}return D},(F["yt-lockup-metadata-view-model--overlay"]=function(){var D;
return(D=G.lockupStyle())==null?void 0:D.isOverlay},F["yt-lockup-metadata-view-model--card"]=function(){var D;
return(D=G.lockupStyle())==null?void 0:D.isCard},F["yt-lockup-metadata-view-model--centered"]=function(){var D;
return(D=G.lockupStyle())==null?void 0:D.isCentered},F["yt-lockup-metadata-view-model--typography-bump"]=function(){var D;
return(D=G.lockupStyle())==null?void 0:D.typographyBump},F["yt-lockup-metadata-view-model--legacy-typography"]=function(){var D;
return(D=G.lockupStyle())==null?void 0:D.useLegacyTypography},F["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var D;
return(D=G.lockupStyle())==null?void 0:D.useRichGridLegacyTypography},F))},_.l(_.uR,{data:function(){return G.data().image}},{avatarStackViewModel:function(D){return _.l("div",{class:"yt-lockup-metadata-view-model__avatar"},_.l(_.a$,{data:D.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(D){return _.l("div",{class:"yt-lockup-metadata-view-model__avatar"},_.l(_.h8,{data:D.data}))},
decoratedAvatarViewModel:function(D){return _.l("div",{class:"yt-lockup-metadata-view-model__avatar"},_.l(_.KU,{data:D.data}))}}),_.l("div",{class:"yt-lockup-metadata-view-model__text-container"},_.l("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var D;return(D=G.data().title)==null?void 0:D.content}},_.l(_.E,{cond:function(){return G.data().title},
then:function(D){return _.l(_.p4,{command:G.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.xN({color:function(){var u;a:{var R=G.lockupStyle();var N=(u=G.hovered)==null?void 0:u.call(G);u=!(B==null||!B());var y;if((R==null?0:(y=R.onFocusEffect)==null?0:y.textPrimaryColor)&&N&&(R=u?R.onFocusEffect.textPrimaryColor.darkTheme:R.onFocusEffect.textPrimaryColor.lightTheme)){R=ma(R);break a}R=void 0}return R}}),
ariaLabel:G.lockupAccessibilityLabel},_.l(_.Wd,{text:D,userInput:!0}))}})),_.l("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.xN({color:function(){var D;a:{var u=G.lockupStyle();var R=(D=G.hovered)==null?void 0:D.call(G);D=!(B==null||!B());var N;if((u==null?0:(N=u.onFocusEffect)==null?0:N.textSecondaryColor)&&R&&(u=D?u.onFocusEffect.textSecondaryColor.darkTheme:u.onFocusEffect.textSecondaryColor.lightTheme)){u=ma(u);break a}u=void 0}return u}})},_.l(_.uR,{data:function(){return G.data().metadata}},{contentMetadataViewModel:function(D){return _.l(_.t8,{data:D.data,
layout:function(){var u,R;return(R=(u=G.layout)==null?void 0:u.call(G))!=null?R:1},
useMediumText:function(){var u,R;return((u=G.lockupStyle())==null?void 0:u.typographyBump)||((R=G.lockupStyle())==null?void 0:R.useRichGridLegacyTypography)},
extensions:function(){var u,R,N,y;return{lockupMetadata:{byline:{hideAvatar:((u=G.lockupStyle())==null?void 0:u.arrangement)===0,addPadding:((R=G.lockupStyle())==null?void 0:R.arrangement)===1},description:{hideDescription:!((N=G.lockupStyle())==null||!N.compactMetadata)},spacer:{hideSpacer:!((y=G.lockupStyle())==null||!y.compactMetadata)}}}}})}})),_.l(_.uR,{data:function(){return G.data().attribution}},{attributionViewModel:function(D){return _.l("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.l(fU,{data:D.data,
useSmallLayout:!0}))}})),_.l("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.l(_.uR,{data:function(){return G.data().menuButton}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
buttonOverrides:function(){var u;return((u=G.lockupStyle())==null?0:u.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
QvT.idomCompat=!0;var jvU=_.Y(function(G){var B=_.W5("notification-multi-action-renderer");_.eR(function(){requestAnimationFrame(function(){_.Jo(B.value)})});
var F={},D={},u={};return _.l("notification-multi-action-renderer",{class:_.tx("ytNotificationMultiActionRendererHost",(F.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var R;return(R=G.useLegacyShelfStyle)==null?void 0:R.call(G)},F)),
el:B},_.l("span",{"aria-live":"polite",class:_.tx("ytNotificationMultiActionRendererTextContainer",(D.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var R;return(R=G.useLegacyShelfStyle)==null?void 0:R.call(G)},D))},_.l(_.Wd,{text:function(){return G.data().responseText}})),_.l("div",{class:_.tx("ytNotificationMultiActionRendererButtonContainer",(u.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var R;
return(R=G.useLegacyShelfStyle)==null?void 0:R.call(G)},u))},_.l(_.uR,{data:function(){var R;
return(R=G.data().buttons)==null?void 0:R.map(function(N){if(N=N.buttonRenderer){var y,U=Object,q=U.assign,h=(y=N.icon)==null?void 0:y.iconType;y=(y=N.command||N.serviceEndpoint||N.navigationEndpoint)?{innertubeCommand:y}:void 0;N={buttonViewModel:q.call(U,{},{iconName:h,onTap:y,trackingParams:N.trackingParams,titleFormatted:N.text?_.hx(N.text):void 0},hQl(N))}}else N=void 0;return N}).filter(function(N){return!!N})}},{buttonViewModel:function(R,N){return _.l("div",null,_.l(_.cd,{data:R.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var y;return((y=G.useModernStyles)==null?0:y.call(G))?{type:N()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var LeN=_.Y(function(G){var B=_.W5("notification-text-renderer");_.eR(function(){requestAnimationFrame(function(){_.Jo(B.value)})});
return _.l("notification-text-renderer",{el:B,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.l(_.Wd,{text:function(){return G.data().successResponseText}}))},"Ub");_.Zd=_.Y(function(G){var B=_.iR(e$l,function(){var D;return Kx8((D=G.contentId)==null?void 0:D.call(G))}),F=function(){var D;
return _.Q((D=B())==null?void 0:D.command,_.GV)};
return _.l(_.E,{cond:function(){var D;if(!(D=F())){var u;D=_.Q((u=B())==null?void 0:u.command,ZBP)}return D},
then:function(){return _.l(_.E,{cond:F,then:function(){var D={};return _.l("div",{class:_.tx("ytDismissibleItemReplacedContent",function(){var u;return a_o((u=G.aspectRatio)==null?void 0:u.call(G))})},_.l("div",{class:_.tx((D.ytDismissibleItemAspectRatioContainer=function(){var u;
return((u=G.aspectRatio)==null?void 0:u.call(G))!==void 0},D))},_.l(_.uR,{data:function(){var u;
return(u=F())==null?void 0:u.item}},{notificationMultiActionRenderer:function(u){return _.l(jvU,{data:u.data,
useModernStyles:G.useModernStyle,useLegacyShelfStyle:G.useLegacyShelfStyle})},
notificationTextRenderer:LeN})))}})},
else:G.children})},"Vb");_.r$y=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;G=_.VX(_.tb({visibilityCallback:function(R){var N,y=(N=B().interaction)==null?void 0:N.onFirstVisible;R&&y&&_.rJ(y)},
showOption:_.dk}));var D=function(){var R;return((R=B().interaction)==null?0:R.onTap)?function(N){var y;Ios(N,(y=B().interaction)==null?void 0:y.onTap,F)}:void 0},u=function(){var R,N=B(),y=D(),U=(R=_.Q(B().rendererContext,_.yL))==null?void 0:R.label;
a:switch(N.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":R=1;break a;default:R=0}return{size:Q0g(N.size),type:R,onTap:y,accessibilityText:U}};
return _.l("ad-avatar-view-model",{class:function(){var R;return((R=B().interaction)==null?0:R.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:G},_.l(_.E,{cond:function(){return B().image},
then:function(R){return _.l(GH7,{data:u,image:R})}}))},"Wb");_.gk=_.Y(function(G){var B=_.AS(G,{hasDot:!1,usedInMasthead:!1}),F=Object.assign({},B),D=B.data,u=B.hasDot;G=B.customCommandResolver;var R=B.usedInMasthead,N=(delete F.data,delete F.hasDot,delete F.customCommandResolver,delete F.usedInMasthead,F);B=function(){return D().style};
B!==void 0&&B!==null||_.Ae(Error("Ih"));G=_.rC(function(){return D().interaction},G);
return _.l("ad-badge-view-model",{class:_.tx(function(){var y;return((y=D().interaction)==null?0:y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var y=N.adRenderingContextType(),U=R();
D();return y!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||U?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.VX(G)},_.l(_.QR,{data:function(){var y;D();return{type:2,text:(y=D().label)==null?void 0:y.content,adsIncludeDot:u(),isOverlay:D().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var Weq;_.Sq=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;var D=G.adRenderingContextType;return _.l("ad-details-line-view-model",{class:function(){var u;return((u=B().interaction)==null?0:u.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(u){var R,N=(R=B().interaction)==null?void 0:R.onFirstVisible;u&&N&&_.rJ(N)},
showOption:_.dk}),_.rC(function(){return B().interaction},F))},_.l(_.E,{cond:function(){return B().style},
then:function(u){return _.l(_.jR,{each:function(){var R;return((R=B())==null?void 0:R.attributes)||[]},
keyBy:"INDEX"},function(R){return _.l(Weq,{attribute:R,style:u,adRenderingContextType:function(){return D()}})})}}))},"Yb");
Weq=_.Y(function(G){var B=G.attribute;var F=G.style;var D=G.adRenderingContextType;return _.l(_.E,{cond:function(){return B().text},
then:function(u){return _.l(_.Wd,{text:u,className:function(){var R=D();F();return R==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var H5y=_.Y(function(G){var B=G.data;var F=G.typographyBump;var D=function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},u=function(){return{size:"M"}};
G={};return _.l(_.GJ,null,_.l("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.l(_.Wd,{text:function(){return B().headline},
className:_.tx((G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.X("enable_desktop_vdc_components")},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.X("enable_desktop_vdc_components")},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return D==null?void 0:D()},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(F==null?void 0:F())&&!(D==null?0:D())},G)),
linkInheritColor:!0}),_.l(_.E,{cond:function(){return B().description},
then:function(R){var N={};return _.l(_.Wd,{text:R,className:_.tx("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return D==null?void 0:D()},N.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(F==null?void 0:F())&&!(D==null?0:D())},N)),
linkInheritColor:!0})}}),_.l(_.E,{cond:function(){return B().secondaryDescription},
then:function(R){var N={};return _.l(_.Wd,{text:R,className:_.tx("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return F==null?void 0:F()},N)),
linkInheritColor:!0})}}),_.l("div",{class:function(){return D()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.l(_.E,{cond:function(){return B().adAvatar},
then:function(){return _.l("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.l(_.uR,{data:function(){return B().adAvatar}},{adAvatarViewModel:_.r$y}))}}),_.l(_.uR,{data:function(){return B().adBadge}},{adBadgeViewModel:function(R){return _.l(_.gk,{data:R.data,
hasDot:function(){return!!B().adDetailsLine},
adRenderingContextType:function(){return B().adRenderingContextType}})}}),_.l(_.uR,{data:function(){return B().adDetailsLine}},{adDetailsLineViewModel:function(R){return _.l(_.Sq,{data:R.data,
adRenderingContextType:function(){return B().adRenderingContextType}})}}))),_.l("div",{class:function(){return _.X("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":D()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.l(_.uR,{data:function(){return B().menu}},{buttonViewModel:function(R){return _.l(_.cd,{data:R.data,
buttonOverrides:_.X("enable_desktop_vdc_components")?u:function(){a:switch(B().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var N="S";break a;default:N="M"}return{size:N}}})}})))},"$b"),kwG=_.Y(function(G){var B=G.data;
var F=G.noBottomMargin;var D=G.useVideoLockupTopPadding;var u=G.typographyBump;G={};G=_.tx("ytwFeedAdMetadataViewModelHostMetadata",(G.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return F==null?void 0:F()},G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return D==null?void 0:D()},G));
var R=function(){return B().adBadge};
R!==void 0&&R!==null||_.Ae(Error("Jh"));R={};var N={};return _.l(_.GJ,null,_.l(_.E,{cond:function(){return B().adAvatar},
then:function(){return _.l("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.l(_.uR,{data:function(){return B().adAvatar}},{adAvatarViewModel:function(y){return _.l(_.r$y,{data:y.data})}}))}}),_.l("div",{class:G},_.l("div",{class:_.tx("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(R.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return u==null?void 0:u()},R.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(u==
null?void 0:u())&&_.X("web_enable_typography_bump_v2")},R))},_.l(_.Wd,{text:function(){return B().headline},
linkInheritColor:!0})),_.l(_.E,{cond:function(){return B().description},
then:function(y){return _.l(_.Wd,{text:y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.l("div",{class:function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.X("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.l(_.uR,{data:function(){return B().adBadge}},
{adBadgeViewModel:function(y){return _.l(_.gk,{data:y.data,
hasDot:function(){return!!B().adDetailsLine},
adRenderingContextType:function(){return B().adRenderingContextType}})}}),_.l(_.uR,{data:function(){return B().adDetailsLine}},{adDetailsLineViewModel:function(y){return _.l(_.Sq,{data:y.data,
adRenderingContextType:function(){return B().adRenderingContextType}})}})),_.l(_.E,{cond:function(){return B().secondaryDescription},
then:function(y){return _.l(_.Wd,{text:y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.l("div",{class:_.tx("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(N.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return D==null?void 0:D()},N))},_.l(_.uR,{data:function(){return B().menu}},{buttonViewModel:_.cd})))},"ac"),sv=_.Y(function(G){var B=G.data;
var F=G.noBottomMargin;var D=G.listenToTapEvent;var u=G.setTouchEndHandler;var R=G.useVideoLockupTopPadding;var N=G.typographyBump;G=_.tb({visibilityCallback:function(K){var a,m=(a=B().interaction)==null?void 0:a.onFirstVisible;K&&m&&_.rJ(m)},
showOption:_.dk});var y=_.rC(function(){return B().interaction},void 0,function(){return D==null?void 0:D()}),U=_.C(_.qg(!1,void 0,"KSFskc")),q=U.next().value,h=U.next().value;
U=_.gJ(function(K){(u==null?0:u())&&!q()&&(K.currentTarget.click(),h(!0),setTimeout(function(){h(!1)},100));
return!1});
return _.l("feed-ad-metadata-view-model",{class:function(){var K;return((K=B().interaction)==null?0:K.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.VX(G,y),"on:touchend":U},_.l(_.LH,null,_.l(_.Xm,{when:function(){return B().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.l(H5y,{data:B,
typographyBump:N})}),_.l(_.Xm,{when:function(){return B().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.l(kwG,{data:B,
noBottomMargin:F,useVideoLockupTopPadding:R,typographyBump:N})})))},"bc");var O57,elP;O57=_.OY.inlinePreviewEnabledSelector;_.xm=_.Y(function(G){return _.l("yt-lockup-view-model",{class:_.tx(G.className,"yt-lockup-view-model--wrapper")},_.l(_.Zd,{contentId:function(){return G.data().contentId},
useModernStyle:!0,aspectRatio:function(){var B,F;return((B=G.containerType)==null?void 0:B.call(G))!==3?w4U(G.data().contentType,(F=G.force16By9ThumbnailAspectRatio)==null?void 0:F.call(G)):void 0}},function(){return _.l(elP,Object.assign({},G))}))},"cc");
elP=_.Y(function(G){G=_.AS(G,{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,useOverlayStyling:void 0});var B=G.data,F=G.containerLayoutConfig,D=G.containerType,u=G.sizing,R=G.protectBackground,N=G.typographyBump,y=G.force16By9ThumbnailAspectRatio,U=G.thumbnailFixedWidth,q=G.thumbnailTargetWidth,h=G.lockupExperiments,
K=G.elementsPerRow,a=G.useOverlayStyling,m=_.te().resolve(_.fH(_.Rx));G=_.VX(_.mR(function(){var c6;return(c6=B())==null?void 0:c6.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL","AD-BUTTON-VIEW-MODEL"],!0));var L=_.FT(O57),W=_.te().resolve(_.fH(Y3q)),e=W?{}:void 0,b=function(){var c6,q8,n7;return(n7=(q8=_.Q((c6=B())==null?void 0:c6.rendererContext,_.yL))==null?void 0:q8.label)!=null?n7:void 0},M=function(){var c6;
return(c6=_.Q(B().metadata,_.dv8))==null?void 0:c6.endorsement},t=function(){var c6=F==null?void 0:F(),q8;
if(c6==null?0:c6.containerType){var n7=(q8=B())==null?void 0:q8.contentType;q8=h();var Ts=N(),hT=q(),L7=R();c6=Object.assign({},CK8(Fxc(c6),H_(c6.responsiveSize),Ts,n7,c6.force16By9ThumbnailAspectRatio,hT,L7,void 0,q8),{thumbnailFixedWidth:c6.contentPreviewWidth})}else c6=CK8(D(),u(),N(),(n7=B())==null?void 0:n7.contentType,y(),q(),R(),a(),h());return c6};
W&&e&&W({enabled:function(){return L()},
itemPlaybackModel:function(){return B().itemPlayback},
thumbnailElRef:function(){return e.thumbnailElRef},
containerElRef:G,options:function(){var c6=e.thumbnailOverlays||[],q8=M(),n7;!q8||((n7=h())==null?0:n7.onFocusEffect)||c6.push(q8);var Ts,hT;return{thumbnail:e.thumbnail,thumbnailOverlays:c6,accessibilityText:b(),thumbnailSize:e.thumbnailSize,enableRounding:t().isCollection,containPlayerWithinThumbnail:t().isCollection,mouseleaveCallback:function(){Z(!1)},
trackingParams:(Ts=_.Q(B().rendererContext,_.wJ))==null?void 0:(hT=Ts.loggingDirectives)==null?void 0:hT.trackingParams}}});
var T=0;W=_.C(_.qg(!1,void 0,"hPOYMe"));var A=W.next().value,Z=W.next().value;W=_.C(_.qg(!1,void 0,"oGMpeb"));var P=W.next().value,RI=W.next().value;W=_.gJ(function(){P()?(_.Lu.cancelJob(T),T=_.Lu.addJob(function(){Z(!0)},8,32)):Z(!0);
return!0});
var yo=_.gJ(function(c6){c6=c6.relatedTarget;var q8=document.querySelector("ytd-video-preview");c6&&q8&&q8.contains(c6)||(T&&(_.Lu.cancelJob(T),T=0),Z(!1))});
_.VI(function(){T&&(_.Lu.cancelJob(T),T=0)});
var hg=X46(function(){RI(!0)}),US=hg.touchFeedbackEvents,aI=hg.touchFeedbackOnPointerUp,v6=hg.touchFeedbackOnPointerDown;
hg=hg.touchFeedbackOnPointerLeave;var Jg={};return _.l(_.GJ,null,_.l("div",{el:G,class:_.tx("yt-lockup-view-model",function(){a:{var c6=t();if(c6.metadataOnThumbnail)c6="yt-lockup-view-model--metadata-on-thumbnail";else switch(c6.arrangement){case 1:c6="yt-lockup-view-model--horizontal";break a;default:c6="yt-lockup-view-model--vertical"}}return c6},function(){a:{var c6=t();
if(c6.metadataOnThumbnail)c6="yt-lockup-view-model--metadata-on-thumbnail";else{switch(c6.collectionStackNumber){case 1:c6="yt-lockup-view-model--collection-stack-1";break a;case 2:c6="yt-lockup-view-model--collection-stack-2";break a}c6=void 0}}return c6},function(){var c6;
return _.E6g((c6=B())==null?void 0:c6.contentId)},(Jg["yt-lockup-view-model--card"]=function(){return t().isCard},Jg["yt-lockup-view-model--compact"]=function(){return t().isTiny||t().sizing!=="STANDARD"},Jg["yt-lockup-view-model--protect-background"]=R,Jg["yt-lockup-view-model--add-margins"]=function(){return t().addMarginForFullbleed},Jg["yt-lockup-view-model--centered"]=function(){return t().isCentered},Jg["yt-lockup-view-model--fullbleed"]=function(){return t().fullbleed},Jg["yt-lockup-view-model--single-column-grid"]=
function(){return K()===1&&D()===2},Jg["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var c6;
return(c6=h())==null?void 0:c6.useRichGridLegacyMargin},Jg["yt-lockup-view-model--flex-none"]=function(){return!_.X("lockup_flex_none_killswitch")},Jg)),
"on:mousedown":v6,"on:mouseleave":yo,"on:mouseup":aI,"on:mouseover":W,"on:touchstart":v6,"on:touchend":aI,"on:pointerleave":hg},_.l(_.YR,{model:function(){var c6,q8,n7=Object,Ts=n7.assign,hT=(e==null?void 0:e.thumbnailSize)||"small";a:{var L7=t();var K7=!!(M()&&((c6=h())==null?0:c6.onFocusEffect));switch((e==null?void 0:e.thumbnailSize)||"small"){case "small":c6=4;break;case "large":c6=12;break;default:c6=8}if(K7)L7=c6+12;else{switch(L7.collectionStackNumber){case 1:L7=c6+8;break a;case 2:L7=c6+12;
break a}L7=void 0}}hT={thumbnailSize:hT,triggerEvents:!0,customTopExtend:L7};var kD;L7=(q8=h())==null?void 0:q8.onFocusEffect;K7=!(m==null||!m());if(L7){var Rz,KQ;q8=K7?(Rz=L7.onFocusColor)==null?void 0:Rz.darkTheme:(KQ=L7.onFocusColor)==null?void 0:KQ.lightTheme;var pQ,aq;Rz=K7?(pQ=L7.keyLightColor)==null?void 0:pQ.darkTheme:(aq=L7.keyLightColor)==null?void 0:aq.lightTheme;var Zq;pQ=K7?(kD=L7.touchResponseColor)==null?void 0:kD.darkTheme:(Zq=L7.touchResponseColor)==null?void 0:Zq.lightTheme;kD={background:q8!==
void 0?ma(q8):void 0,keyLight:Rz!==void 0?ma(Rz):void 0};Zq=[];aq=_.C(L7.lightingTechniques||[]);for(Rz=aq.next();!Rz.done;Rz=aq.next())switch(Rz.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Zq.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Zq.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Zq.push(3)}kD={hoverEffect:{palette:kD,lightingTechniques:Zq},touchEffect:{palette:{background:pQ!==void 0?ma(pQ):void 0}}}}else kD={};return Ts.call(n7,{},hT,kD)},
hovered:function(){return A()},
pointerDownEvent:US.pointerDownEvent,pointerUpEvent:US.pointerUpEvent,pointerLeaveEvent:US.pointerLeaveEvent}),_.l(_.E,{cond:function(){var c6;return M()&&A()&&((c6=h())==null?void 0:c6.onFocusEffect)},
then:function(){return _.l("div",{class:"yt-lockup-view-model__endorsement"},_.l(_.uR,{data:function(){return M()}},{attributionViewModel:function(c6){return _.l(fU,{data:c6.data,
useHeavyText:!0})}}))}}),_.l(_.p4,{command:function(){var c6;
return _.Kh((c6=B())==null?void 0:c6.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(U()||t().thumbnailFixedWidth)&&t().arrangement===1?"width: "+(U()||t().thumbnailFixedWidth):""}},_.l(_.uR,{data:function(){var c6;
return(c6=B())==null?void 0:c6.contentImage}},{thumbnailViewModel:function(c6){return _.l(A8,{data:c6.data,
aspectRatio:function(){return t().aspectRatio},
disableRounding:function(){return t().disableRounding},
width:q,hovered:function(){return A()&&!(L()&&B().itemPlayback)},
isClip:function(){var q8;return((q8=B())==null?void 0:q8.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Ars(e),lockupExperiments:function(){return h()}})},
collectionThumbnailViewModel:function(c6){return _.l(i5a,{data:c6.data,aspectRatio:function(){return t().aspectRatio},
disableRounding:function(){return t().disableRounding},
width:q,doubleStack:function(){return t().collectionStackNumber===2},
hovered:function(){return A()&&!(L()&&B().itemPlayback)},
playbackRef:Ars(e)})},
decoratedAvatarViewModel:_.KU})),_.l("div",{class:"yt-lockup-view-model__metadata"},_.l(_.uR,{data:function(){var c6;return(c6=B())==null?void 0:c6.metadata}},{lockupMetadataViewModel:function(c6){return _.l(QvT,{data:c6.data,
hovered:A,lockupStyle:t,lockupCommand:function(){var q8;return _.Kh((q8=B())==null?void 0:q8.rendererContext)},
lockupAccessibilityLabel:function(){return b()},
layout:function(){var q8;return((q8=h())==null?0:q8.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(c6){return _.l(sv,{data:c6.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:N})}}),_.l(_.uR,{data:function(){var c6;
return(c6=B())==null?void 0:c6.attachmentSlot}},{lockupAttachmentsViewModel:function(c6){return _.l(qkw,{data:c6.data,
lockupStyle:t})}}))),_.l(_.uR,{data:function(){var c6;
return(c6=B())==null?void 0:c6.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(c6){return _.l(qkw,{data:c6.data,
lockupStyle:t})}}))},"dc");
_.xm.idomCompat=!0;_.YN(_.xm,"yt-lockup-view-model",{props:{data:_.Hd,containerLayoutConfig:_.Hd,containerType:_.Hd,sizing:_.Hd,protectBackground:_.Hd,typographyBump:_.Hd,thumbnailFixedWidth:_.Hd,thumbnailTargetWidth:_.Hd,force16By9ThumbnailAspectRatio:_.Hd,className:_.Hd,lockupExperiments:_.Hd,elementsPerRow:_.Hd,useOverlayStyling:_.Hd}});var Wxz,$xa=_.Y(function(G){var B=_.AS(G,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),F=B.text,D=B.alwaysShowTruncationText;G=B.truncationText;var u=B.onTextClick,R=B.maxLines,N=B.disableTextMask,y=B.textStyle,U=B.accessibilityLabel,q=B.textSize,h=B.alwaysTruncateAtMaxLines,K=B.expandOnClick;B=_.C(_.qg(!1,void 0,"EzA1q"));var a=B.next().value,m=B.next().value;B=_.gJ(function(){K()&&m(!a());u==null||u()});
var L=function(){a:switch(q()){case "medium":var P=2;break a;case "large":P=2.2;break a;default:P=1.8}return P},W=O6l(F,function(){return a()?Infinity:R()},L,N,h,a),e=W.isTruncated;
F=W.displayText;h=W.contentRef;var b=W.hiddenRef,M=W.placeholderTruncationTextRef,t=W.hiddenTruncationTextRef;W=W.truncationTextRef;var T={},A={},Z={};return _.l("truncated-text",{class:_.tx((T["yt-truncated-text"]=!0,T["yt-truncated-text--overlay"]=function(){return y()==="overlay"},T["yt-truncated-text--medium-text"]=function(){return q()==="medium"},T["yt-truncated-text--large-text"]=function(){return q()==="large"},T["yt-truncated-text--primary-text"]=function(){return y()==="primary-text"},T)),
"on:click":B,style:function(){return"line-height: "+L()+"rem;"}},_.l("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:h,style:function(){return a()?"":"max-height: "+R()*L()+"rem;"}},_.l(_.Wd,{text:F}),_.l("button",{"aria-disabled":!0,
disabled:!0,class:_.tx((A["yt-truncated-text__inline-button"]=!0,A["yt-truncated-text--hidden"]=function(){return!(!a()&&(D!=null&&D()||e()))},A)),
el:M,style:function(){return"line-height: "+L()+"rem;"}},_.l(_.Wd,{text:G}))),_.l("truncated-text-content",{class:_.tx("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:b,style:function(){return a()?"":"max-height: "+R()*L()+"rem;"},
"aria-hidden":"true"},_.l(_.Wd,{text:F}),_.l("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:t,style:function(){return"line-height: "+L()+"rem;"}},_.l(_.Wd,{text:G}))),_.l("button",{"aria-label":U,
class:_.tx((Z["yt-truncated-text__absolute-button"]=function(){return!N()},Z["yt-truncated-text__bottom-button"]=function(){return N()},Z["yt-truncated-text--hidden"]=function(){return!(!a()&&(D!=null&&D()||e()))},Z)),
el:W,style:function(){return"line-height: "+L()+"rem;"}},_.l(_.Wd,{text:G})))},"fc");
$xa.idomCompat={callbacks:{onTextClick:!0}};var VSa=_.Y(function(G){var B=G.data;G=G.className;var F=_.mS(function(){return $EQ(B())},void 0,"uDhDke"),D=_.l(_.GJ,null,_.l(_.E,{cond:function(){return B().heroText||B().image},
then:function(){return _.l(zlw,{data:B})}}),_.l(b57,{data:B,
sizeSmall:function(){return B().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.l("yt-video-attribute-view-model",{class:G},_.l("div",{class:function(){var u=B();a:switch(u.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var R="yt-video-attribute-view-model--vertical";break a;default:R="yt-video-attribute-view-model--horizontal"}a:switch(u.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var N="yt-video-attribute-view-model--image-small";break a;default:N="yt-video-attribute-view-model--image-large"}a:switch(u.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var y=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":y="yt-video-attribute-view-model--image-avatar";break a;default:y=""}a:switch(u.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var U="yt-video-attribute-view-model--metadata-header";break a;default:U=""}a:switch(u.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var q="yt-video-attribute-view-model--container-card";break a;default:q=""}return["yt-video-attribute-view-model",R,N,
y,U,q,$EQ(u)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.xN({"background-color":function(){var u=B();if(u.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var R="";else{R=u.lightColorPalette;u=u.darkColorPalette;var N,y=((N=_.te().resolve(_.fH(_.Rx)))==null?0:N())&&u?u:R;R=(R=y==null?void 0:y.section2Color)?_.Kp(R):""}return R}})},_.l(_.E,{cond:F,
then:function(){return _.l(_.p4,{className:"yt-video-attribute-view-model__content-container",command:F,role:"group",ariaLabel:function(){return B().title}},D)},
else:function(){return _.l("div",{class:"yt-video-attribute-view-model__content-container"},D)}})))},"gc");
VSa.idomCompat=!0;var zlw=_.Y(function(G){var B=G.data;var F,D=(F=_.te().resolve(_.fH(_.Rx)))==null?void 0:F(),u=function(){return D&&B().darkThemeImage?B().darkThemeImage:B().image},R=_.mS(function(){return zQg(B())},void 0,"UDqj0b");
return _.l("div",{class:"yt-video-attribute-view-model__hero-section"},_.l(_.LH,null,_.l(_.Xm,{when:u},function(){return _.l(_.vr,{data:function(){return u()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.l(_.Xm,{when:function(){return B().heroText}},function(){return _.l("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.l("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return B().heroText}))})),_.l(_.E,{cond:function(){return B().overflowMenuOnTap},
then:function(){return _.l("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.l(_.Ji,{data:R,iconName:"MORE_VERT"}))}}))},"hc");
zlw.idomCompat=!0;var b57=_.Y(function(G){var B=G.data;G=G.sizeSmall;var F=function(){return B().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},D=_.mS(function(){return Lk(_.jF({innertubeCommand:$EQ(B())}))?"link":$EQ(B())?"button":"group"},void 0,"e2MmYe"),u={};
return _.l("div",{class:_.tx("yt-video-attribute-view-model__metadata",(u["yt-video-attribute-view-model--small-font"]=G,u)),role:D},_.l("h1",{class:"yt-video-attribute-view-model__title"},function(){return B().title}),_.l(_.E,{cond:function(){return B().subtitle},
then:function(){return _.l("h4",{class:"yt-video-attribute-view-model__subtitle"},_.l(_.E,{cond:F,then:function(){return _.l($xa,{text:function(){return eQo(B().subtitle)},
truncationText:function(){return eQo(B().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.l("span",null,function(){return B().subtitle})}}))}}),_.l(_.E,{cond:function(){return B().secondarySubtitle},
then:function(R){return _.l("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.l(_.Wd,{text:function(){var N=R();if(N!=null&&N.attachmentRuns){for(var y=[],U=_.C(N.attachmentRuns),q=U.next();!q.done;q=U.next())q=q.value,q.element&&y.push(Object.assign({},q,{element:Object.assign({},q.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));N=Object.assign({},N,{attachmentRuns:y})}return N}}))}}),_.l(_.uR,
{data:function(){return B().buttonViewModel}},{buttonViewModel:function(R){return _.l(_.cd,{data:R.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
b57.idomCompat=!0;_.YN(VSa,"yt-video-attribute-view-model",{props:{data:_.Hd,className:_.Hd}});var PK=function(){var G=_.p.apply(this,arguments)||this;G.useHighlightStyling=_.X("web_enable_deeper_metadata_highlight_styling");G.isSearch=!1;G.JSC$15614_lastScrollContainerWidth=NaN;G.pageLoadingFromNavigation=!1;G.currentIndex=0;G.supportComponentResize=!1;return G};
_.r(PK,_.p);_.w=PK.prototype;
_.w.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}}}}}};
_.w.attached=function(){document.addEventListener("yt-page-type-changed",_.x7(this,this.onPageChange))};
_.w.detached=function(){document.removeEventListener("yt-page-type-changed",_.x7(this,this.onPageChange))};
_.w.getItemsPath=function(){return"data.cards"};
_.w.onIronResize=function(){this.updateListStyles()};
_.w.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var G;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(G=this.data)==null?void 0:G.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.X("problem_walkthrough_sd")&&!!this.centerItems};
_.w.computeCardListStyle=function(G){return G||null};
_.w.computeEmpty=function(G){return!this.get("cards.length",G)};
_.w.computeThumbnailStyle=function(G){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",G)||null};
_.w.computeHasSubtitle=function(G){return!!this.get("header.richListHeaderRenderer.subtitle",G)};
_.w.computeInitialCountNumber=function(G){return this.hasSquareMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.w.computeUseFloorScrolling=function(G){return G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.w.computeHasGameCard=function(G){return(G=this.get("cards",G))?G.some(function(B){return B.gameCardRenderer}):!1};
_.w.computeCenterHeaderTitle=function(G){return!(G==null||!G.centerHeaderTitle)};
_.w.computeHasPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.w.computeHasSquareMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.w.computeHasSkinnyWidthPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.width===135}):!1};
_.w.computeCenterItems=function(G){return!!G};
_.w.computeHasInfoPanel=function(G){var B;return G==null?void 0:(B=G.cards)==null?void 0:B.some(function(F){return F.infoPanelContentRenderer})};
_.w.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.w.getItemByIndex=function(G){var B=this.items.children;return B&&B.length>G?B[G]:void 0};
_.w.onPageChange=function(){var G=this;this.pageLoadingFromNavigation=!0;_.Lu.addJob(function(){G.pageLoadingFromNavigation=!1;_.Ia(G.hostElement,"yt-terminate-video-preview-action")},8)};
_.w.updateListStyles=function(){if(_.X("problem_walkthrough_sd")&&this.JSC$15614_scrollContainer!==void 0){var G=this.JSC$15614_scrollContainer.clientWidth;G!==this.JSC$15614_lastScrollContainerWidth&&(this.JSC$15614_lastScrollContainerWidth=G,_.Ss(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(G*.8,415)+"px"}),_.cZ(this.hostElement,"iron-resize"))}};
_.ZN.Object.defineProperties(PK.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.X("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.cards)==null?0:(F=B[0])==null?0:F.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.cards)==null?0:(F=B[0])==null?0:F.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return _.X("enable_desktop_amsterdam_info_panels")&&!!((G=this.data)==null?0:(B=G.cards)==null?0:(F=B[0])==null?0:F.infoPanelContentRenderer)}}});
PK.prototype.dataChanged=PK.prototype.dataChanged;PK.prototype.onIronResize=PK.prototype.onIronResize;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],PK.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.k(_.aJ),_.I("design:type",Object)],PK.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PK.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],PK.prototype,"useCustomColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],PK.prototype,"useHighlightStyling",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.I("design:type",Object)],PK.prototype,"cardListStyle",void 0);_.c([_.v({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.I("design:type",Boolean)],PK.prototype,"empty",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.I("design:type",Boolean)],PK.prototype,"hasSubtitle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.I("design:type",Boolean)],PK.prototype,"thumbnailStyle",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.I("design:type",Boolean)],PK.prototype,"hasGameCard",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.I("design:type",Boolean)],PK.prototype,"centerHeaderTitle",void 0);
_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.I("design:type",Boolean)],PK.prototype,"hasPortraitMiniApp",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.I("design:type",Boolean)],PK.prototype,"hasSquareMiniApp",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.I("design:type",Boolean)],PK.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.I("design:type",Boolean)],PK.prototype,"hasInfoPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],PK.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],PK.prototype,"inlineStructuredDescription",void 0);_.c([_.iA("#scroll-container"),_.I("design:type",HTMLDivElement)],PK.prototype,"JSC$15614_scrollContainer",void 0);
_.c([_.v({computed:"computeInitialCountNumber(data.style.type)"}),_.I("design:type",Number)],PK.prototype,"initialCount",void 0);_.c([_.v({computed:"computeUseFloorScrolling(data.style.type)"}),_.I("design:type",Boolean)],PK.prototype,"useFloorScrolling",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.I("design:type",Boolean)],PK.prototype,"centerItems",void 0);_.c([_.v(),_.I("design:type",Object)],PK.prototype,"pageLoadingFromNavigation",void 0);
_.c([_.v(),_.I("design:type",Object)],PK.prototype,"currentIndex",void 0);_.c([_.v(),_.I("design:type",Number)],PK.prototype,"scrollCount",void 0);_.c([_.v(),_.I("design:type",Object)],PK.prototype,"supportComponentResize",void 0);_.c([_.iA("#items"),_.I("design:type",HTMLDivElement)],PK.prototype,"items",void 0);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],PK.prototype,"onIronResize",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],PK.prototype,"dataChanged",null);_.c([_.v({reflectToAttribute:!0}),_.O("inlineStructuredDescription"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],PK.prototype,"hideNavigationButton",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],PK.prototype,"modernChapters",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],PK.prototype,"hasVideoAttributeViewModels",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],PK.prototype,"modernInfoPanels",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],PK);
_.d(PK,"ytd-horizontal-card-list-renderer",function(){if(a_P!==void 0)return a_P;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return a_P=G},{mode:2});var vXP=_.Y(function(G){var B=G.data;var F={};return _.l("video-summary-content-view-model",{class:_.tx("videoSummaryContentViewModelHost",G.className,(F.videoSummaryContentViewModelHostIsSearch=G.isSearch,F))},_.l(_.jR,{each:function(){var D=[],u=B().paragraphs;if(u==null||!u.length)return[];for(var R=0;R<u.length;R++){var N=_.Q(u[R],AXy),y=void 0;R>0&&(y=_.Q(u[R-1],AXy));y&&!!y.marker===!!N.marker?D[D.length-1].paragraphs.push(N):D.push({isList:!!N.marker,paragraphs:[N]})}return D},
keyBy:"INDEX"},function(D){return _.l(_.E,{cond:function(){return D().isList},
then:function(){return _.l("ul",{class:"videoSummaryContentViewModelList"},_.l(_.jR,{each:function(){return D().paragraphs},
keyBy:"INDEX"},function(u){return _.l("li",{class:"videoSummaryContentViewModelListItem"},_.l(_.Wd,{text:function(){return u().text}}))}))},
else:function(){return _.l("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.l(_.jR,{each:function(){return D().paragraphs},
keyBy:"INDEX"},function(u){return _.l("p",{class:"videoSummaryContentViewModelParagraph"},_.l(_.Wd,{text:function(){return u().text}}))}))}})}),_.l(_.E,{cond:function(){return!!_.Q(B().likeButtonViewModel,_.HP)&&!!_.Q(B().dislikeButtonViewModel,_.kw)},
then:function(){return _.l("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.l("div",{class:"videoSummaryContentViewModelLikeButton"},_.l(_.mP,{data:function(){return _.Q(B().likeButtonViewModel,_.HP)},
disableIconAnimation:!0})),_.l(_.a8,{data:function(){return _.Q(B().dislikeButtonViewModel,_.kw)}}))}}))},"jc");
vXP.idomCompat=!0;_.YN(vXP,"video-summary-content-view-model",{props:{data:_.Hd,isSearch:_.Hd,className:_.Hd}});var GF=function(){var G=_.p.apply(this,arguments)||this;var B,F;G.isExpanded=(F=(B=G.data)==null?void 0:B.isExpanded)!=null?F:!1;G.disableExpand=!1;G.showProminentLabel=!1;G.showRightSideLabel=!0;G.toggleExpandableContent=function(D){G.disableExpand||(D.stopPropagation(),_.M6(_.VW(D),G.hostElement,["info","expanded-subtitle"])||(G.isExpanded=!G.isExpanded,G.ytRendererBehavior.logExplicitClick(G.data),G.JSC$15625_cardList&&!_.X("expandable_metadata_a11y_fix_ks")&&_.ft(G,function(){_.dg(G.hostElement)})))};
G.useSquareThumbnail=!1;G.startX=0;return G};
_.r(GF,_.p);_.w=GF.prototype;_.w.computeUseSquareThumbnail=function(){var G;return(G=this.data)==null?void 0:G.useSquareThumbnail};
_.w.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"}}}}};
_.w.dataChanged=function(){if(this.data){var G,B;this.isExpanded=(B=(G=this.data)==null?void 0:G.isExpanded)!=null?B:!1;var F,D,u,R;if(G=this.isDarkTheme()?(F=this.data)==null?void 0:(D=F.colorData)==null?void 0:D.darkColorPalette:(u=this.data)==null?void 0:(R=u.colorData)==null?void 0:R.lightColorPalette){var N,y;if((N=this.data)==null?0:(y=N.colorData)==null?0:y.vibrantColorPalette)G.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.nA(this.hostElement,G)}}};
_.w.isExpandedChanged=function(){this.isExpanded&&this.JSC$15625_cardList&&_.cZ(this.JSC$15625_cardList,"iron-resize")};
_.w.computeIsExpanded=function(G){return!!G.isExpanded};
_.w.computeShowProminentLabel=function(G,B){var F;return!!(G==null?0:(F=G.header)==null?0:F.showLeadingCollapsedLabel)&&!B};
_.w.computeShowRightSideLabel=function(G,B){var F;return!(G==null?0:(F=G.header)==null?0:F.showLeadingCollapsedLabel)&&!B};
_.w.captureContentClick=function(G){if(!this.disableExpand)if(_.X("expandable_metadata_fix_killswitch")){var B=G.target;_.Bd7(B,"ytd-macro-markers-list-item-renderer")||G.stopPropagation();(B==null?void 0:B.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.M6(_.VW(G),this.hostElement,["items"])||_.oQ(_.VW(G),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.w.timestampClick=function(G){G.stopPropagation();var B,F;(G=(B=this.data)==null?void 0:(F=B.header)==null?void 0:F.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(G)};
_.w.onDown=function(G){G.stopPropagation();this.startX=G.detail?G.detail.x:0};
_.w.onUp=function(G){this.skipKeyInteraction(G)&&G.stopPropagation()};
_.w.skipKeyInteraction=function(G){var B=G.target;if((B==null?void 0:B.id)==="scroll-container"||(B==null?void 0:B.id)==="items"||G.detail&&G.detail.x!==this.startX)return!0;G=_.VW(G);G=_.C(G);for(B=G.next();!B.done;B=G.next()){B=B.value;if(B===this.hostElement)break;if(B.hasAttribute&&B.hasAttribute("skip-key-interaction"))return!0}return!1};
_.w.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.ZN.Object.defineProperties(GF.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.Q((G=this.data)==null?void 0:G.expandedContent,Ycq)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.Q((G=this.data)==null?void 0:G.expandedContent,JfL)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.useCustomColors)&&!((B=this.data)==null||!B.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!((G=this.data)==null?0:(B=G.header)==null?0:B.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!((G=this.data)==null?0:(B=G.header)==null?0:B.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.header)==null?void 0:B.expandedSubtitleTapCommand;G=F&&_.Q(F,_.MI);return _.X("web_open_ai_support_links_external_window")&&(G==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.header)==null?void 0:B.expandedSubtitleTapCommand;G=F&&_.Q(F,_.MI);return _.X("web_open_ai_support_links_external_window")&&(G==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!((G=this.data)==null?0:(B=G.header)==null?0:B.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
GF.prototype.onUp=GF.prototype.onUp;GF.prototype.onDown=GF.prototype.onDown;GF.prototype.isExpandedChanged=GF.prototype.isExpandedChanged;GF.prototype.dataChanged=GF.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],GF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],GF.prototype,"isExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],GF.prototype,"disableExpand",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],GF.prototype,"isSearch",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],GF.prototype,"isWatch",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.I("design:type",Object)],GF.prototype,"showProminentLabel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.I("design:type",Object)],GF.prototype,"showRightSideLabel",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"hasVideoSummary",null);_.c([_.v({value:!1,reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"hasLockupViewModel",null);_.c([_.v({reflectToAttribute:!0}),_.O("data","isWatch"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"useCustomColors",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data","isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"showInfoButton",null);_.c([_.O("data","isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"showTimestamp",null);_.c([_.O("data","isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"showExpandedSubtitle",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],GF.prototype,"expandedSubtitleTarget",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],GF.prototype,"expandedSubtitleRel",null);_.c([_.O("data","isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],GF.prototype,"showThumbnail",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],GF.prototype,"useVppShoppingDestinationStyle",null);
_.c([_.v(),_.I("design:type",Object)],GF.prototype,"toggleExpandableContent",void 0);_.c([_.iA("ytd-horizontal-card-list-renderer"),_.I("design:type",Object)],GF.prototype,"JSC$15625_cardList",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.I("design:type",Object)],GF.prototype,"useSquareThumbnail",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],GF.prototype,"dataChanged",null);
_.c([_.Ga("isExpanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],GF.prototype,"isExpandedChanged",null);_.c([_.Pm("down"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],GF.prototype,"onDown",null);_.c([_.Pm("up"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],GF.prototype,"onUp",null);
_.c([_.mC({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],GF);
_.d(GF,"ytd-expandable-metadata-renderer",function(){if(OjT!==void 0)return OjT;var G=document.createElement("template");_.H(G,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return OjT=G},{mode:1});var oXa,MSU=function(){if(oXa!==void 0)return oXa;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return oXa=G};_.YN(_.a$,"yt-avatar-stack-view-model",{props:{className:_.Hd,data:_.Hd,overrides:_.Hd,isOverlay:_.Hd,useMediumText:_.Hd,decorations:_.Hd,hideAvatar:_.Hd}});_.UR("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Ba=function(){var G=_.p.apply(this,arguments)||this;G.disableExpand=!1;G.shouldShowChannelInfo=!1;G.hasAttributedBylineText=!1;G.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return G};
_.r(Ba,_.p);_.w=Ba.prototype;_.w.computeUseSearchUi=function(){var G,B;return this.isSearch||((G=this.data)==null?void 0:(B=G.style)==null?void 0:B.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.w.computeUseThreeLineTitle=function(){var G;return((G=this.data)==null?void 0:G.maxTitleLines)===3};
_.w.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.X("polymer_video_renderer_defer_menu")&&!NQT?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.w.attached=function(){_.tV(this.hostElement,"blue-links",_.X("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Zk(_.IF(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),B;G&&((B=_.Q(G.commandMetadata,_.u6))==null?0:B.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G);this.updateInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15630_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.JSC$15630_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15630_inlinePreviewHoverListener)==null||Jm(G)};
_.w.onTextWrapperClick=function(G){var B,F,D=this.hideTranslation?(B=this.data)==null?void 0:B.untranslatedNavigationEndpoint:(F=this.data)==null?void 0:F.navigationEndpoint;B=_.M6(_.VW(G),this.hostElement,["expandable-metadata"]);!D||B&&!_.X("expandable_metadata_fix_killswitch")||_.oQ(_.VW(G),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.cZ(this.hostElement,"yt-navigate",{endpoint:D})};
_.w.computeThumbnailWidth=function(G,B,F,D,u){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:D?u==="MASSIVE"?600:u==="BIG"?500:u==="MEDIUM"?450:420:F?360:B?128:G?210:246};
_.w.computeUseBiggerThumbs=function(G){return G&&_.X("enable_desktop_search_bigger_thumbs")};
_.w.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.w.computeHasAttributedBylineText=function(){var G;return!((G=this.data)==null||!G.attributedBylineText)};
_.w.computeVideoStyle=function(){if(_.X("enable_video_style")){var G,B;return(G=this.data)==null?void 0:(B=G.style)==null?void 0:B.value}};
_.w.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.w.handleHideItemSectionVideosByIdCommand=function(G){var B;G=(B=_.Q(G,wva))==null?void 0:B.videoId;this.data&&this.data.videoId===G&&(this.isHidden=!0)};
_.w.getMetadataSnippetContainerClass=function(G){return G?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.w.computeTitleText=function(G,B,F){return G?F:B};
_.w.computeDescriptionSnippet=function(G,B,F){return G?F:B};
_.w.computeSnippetText=function(G,B,F){return G?F:B};
_.w.computeNavigationEndpoint=function(G,B){return G?B==null?void 0:B.untranslatedNavigationEndpoint:B==null?void 0:B.navigationEndpoint};
_.w.hideInlineTitleIcon=function(G,B){return G||!B};
_.ZN.Object.defineProperties(Ba.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 G;return(G=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?G:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!(this==null?0:(G=this.data)==null?0:(B=G.channelThumbnailSupportedRenderers)==null?0:(F=B.channelThumbnailWithLinkRenderer)==null?0:F.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.Q((G=this.data)==null?void 0:G.avatar,cfq)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15630_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.ZN.Object.defineProperties(Ba,{template:{configurable:!0,enumerable:!0,get:function(){return MSU()}}});
Ba.prototype.dataChanged=Ba.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ba.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Ba.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.W9),_.I("design:type",Object)],Ba.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Ba.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ba.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ba.prototype,"isBackstageVideo",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ba.prototype,"isPostCompactVideo",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Ba.prototype,"isHistory",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ba.prototype,"isRichGridVideoPost",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ba.prototype,"isHidden",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ba.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.I("design:type",Boolean)],Ba.prototype,"useSearchUi",void 0);_.c([_.v({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.I("design:type",Boolean)],Ba.prototype,"useThreeLineTitle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.I("design:type",Boolean)],Ba.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.I("design:type",Object)],Ba.prototype,"videoStyle",void 0);_.c([_.v({computed:"computeDisableExpand(videoStyle)"}),_.I("design:type",Object)],Ba.prototype,"disableExpand",void 0);
_.c([_.v({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.I("design:type",Object)],Ba.prototype,"shouldShowChannelInfo",void 0);_.c([_.v({computed:"computeHasAttributedBylineText(data)"}),_.I("design:type",Object)],Ba.prototype,"hasAttributedBylineText",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],Ba.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.I("design:type",String)],Ba.prototype,"inlineTitleIcon",void 0);_.c([_.v({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.I("design:type",Object)],Ba.prototype,"computedNavigationEndpoint",void 0);_.c([_.v({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(G,B){return _.g5(G.entities,"searchVideoResultEntity",B)}}),
_.I("design:type",Object)],Ba.prototype,"searchVideoResultEntity",void 0);_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],Ba.prototype,"thumbnail",void 0);_.c([_.iA("#dismissible"),_.I("design:type",HTMLElement)],Ba.prototype,"JSC$15630_dismissibleMedia",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ba.prototype,"dataChanged",null);
_.c([_.O("searchVideoResultEntity"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Ba.prototype,"hideTranslation",null);_.c([_.O("searchVideoResultEntity"),_.I("design:type",Array),_.I("design:paramtypes",[])],Ba.prototype,"hiddenBadgeGroups",null);_.c([_.O("data","useAvatar"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Ba.prototype,"shouldShowChannelThumbnail",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Ba.prototype,"useAvatar",null);
_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Ba.prototype,"isHovered",null);_.c([_.mC({is:"ytd-video-renderer",disableElementRegistration:!0})],Ba);_.d(Ba,"ytd-video-renderer",function(){return MSU()},{mode:2});var ie=function(){var G=_.p.apply(this,arguments)||this;G.editDialog=null;G.roundedContainer=!0;G.isLoading=!1;G.isRichGrid=!1;G.isRichGridRepost=!1;G.reduceSidePaddings=_.X("reduce_side_paddings_in_shelf");G.JSC$15637_spinnerEl=null;return G};
_.r(ie,_.p);_.w=ie.prototype;
_.w.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"}}}};
_.w.contentTextChanged=function(){this.expander.reset()};
_.w.dataChanged=function(){var G=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var B=0,F=this.data.actions&&this.data.actions.length;B<F;B++)this.openEditDialog(_.Q(this.data.actions[B],TLG));if((B=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(B=this.get("buttonRenderer.hint.hintRenderer.hintId",B))&&B.startsWith("share-post-hint")){var D=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(D){_.fM.getInstance();var u=tX(_.$9(_.G7("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Lu.addLowPriorityJob(function(){_.tL(G.hostElement,u,D)})}}}};
_.w.updatePoll=function(G){G>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.w.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15637_spinnerEl||(this.JSC$15637_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.IF(this.hostElement).appendChild(this.JSC$15637_spinnerEl));this.JSC$15637_spinnerEl&&(this.JSC$15637_spinnerEl.active=this.isLoading)};
_.w.onYtNavigate=function(G){var B=this.get("updateCommentDialogEndpoint",G.detail.endpoint);B&&(this.openEditDialog(B),G.stopPropagation())};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null};
_.w.onYtCommentPollRevert=function(G,B){B&&this.updatePoll(B.selectedChoiceIndex)};
_.w.onYtServiceRequestSent=function(G,B){var F;B.endpoint&&(_.Q(B.endpoint,F78)||_.Q(B.endpoint,i3s)&&((F=_.Q(B.endpoint,i3s))==null||!F.clientActions))&&(this.isLoading=!0);if(B.actions)for(G=0;G<B.actions.length;G++)F=B.actions[G],_.Q(F,Fq)&&(F=this.get("updateBackstagePollAction.selectedChoiceIndex",F),F==void 0&&(F=-1),this.updatePoll(F))};
_.w.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.w.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.w.computeIsPostHidden=function(G,B){return!!G||B};
_.w.computeSurfaceType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.w.computeShowWithoutToolbar=function(G){return!G.actionButtons&&!G.actionMenu};
_.w.computePostAttachment=function(G){if(G.backstageAttachment){if(_.Q(G.backstageAttachment,vYP))return"poll";if(_.Q(G.backstageAttachment,a77))return"quiz";if(_.Q(G.backstageAttachment,_.TlT))return"video";if(_.Q(G.backstageAttachment,mRw))return"uploaded-videos";if(_.Q(G.backstageAttachment,UQ8))return G.contentText?"image":"image-only";if(_.Q(G.backstageAttachment,qe8))return"playlist"}return"none"};
_.w.computePostTabIndex=function(G){return G?0:-1};
_.w.computeButtonTooltipPosition=function(G){return this.computeUsesCompactLockup(G)?"top":"bottom"};
_.w.computeHasText=function(G){return!(G==null||!G.contentText)};
_.w.onTap=function(G){var B,F;if(((B=this.data)==null?0:B.navigationEndpoint)&&((F=this.data)==null?void 0:F.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var D;((D=this.data)==null?0:D.navigationEndpoint)&&!_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.ZN.Object.defineProperties(ie.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.$9("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,vYP))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,mRw))}}});
ie.prototype.onYtServiceRequestCompleted=ie.prototype.onYtServiceRequestCompleted;ie.prototype.onYtServiceRequestSent=ie.prototype.onYtServiceRequestSent;ie.prototype.onYtCommentPollRevert=ie.prototype.onYtCommentPollRevert;ie.prototype.onYtCommentboxDismiss=ie.prototype.onYtCommentboxDismiss;ie.prototype.onYtNavigate=ie.prototype.onYtNavigate;ie.prototype.isLoadingChanged=ie.prototype.isLoadingChanged;ie.prototype.dataChanged=ie.prototype.dataChanged;ie.prototype.contentTextChanged=ie.prototype.contentTextChanged;
_.c([_.k(_.aJ),_.I("design:type",Object)],ie.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ie.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ie.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ie.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],ie.prototype,"editDialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ie.prototype,"roundedContainer",void 0);_.c([_.v(),_.I("design:type",Object)],ie.prototype,"isLoading",void 0);_.c([_.v({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.I("design:type",String)],ie.prototype,"surface",void 0);
_.c([_.v({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.I("design:type",Boolean)],ie.prototype,"usesCompactLockup",void 0);_.c([_.v({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],ie.prototype,"showWithoutToolbar",void 0);_.c([_.v({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.I("design:type",String)],ie.prototype,"attachment",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ie.prototype,"isRichGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ie.prototype,"isRichGridRepost",void 0);_.c([_.v({reflectToAttribute:!0,value:_.X("use_better_post_dismissals")}),_.I("design:type",Boolean)],ie.prototype,"useBetterPostDismissals",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ie.prototype,"reduceSidePaddings",void 0);
_.c([_.v({computed:"computeHasText(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],ie.prototype,"hasText",void 0);_.c([_.iA("#expander"),_.I("design:type",Object)],ie.prototype,"expander",void 0);_.c([_.iA("#action-buttons"),_.I("design:type",Object)],ie.prototype,"actionButtons",void 0);_.c([_.iA("#edit-dialog"),_.I("design:type",HTMLElement)],ie.prototype,"editDialogEl",void 0);
_.c([_.Ga("data.contentText"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ie.prototype,"contentTextChanged",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ie.prototype,"dataChanged",null);_.c([_.Ga("isLoading"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ie.prototype,"isLoadingChanged",null);
_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],ie.prototype,"onYtNavigate",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ie.prototype,"onYtCommentboxDismiss",null);_.c([_.Pm("yt-comment-poll-revert"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],ie.prototype,"onYtCommentPollRevert",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],ie.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],ie.prototype,"onYtServiceRequestCompleted",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],ie.prototype,"voteCount",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],ie.prototype,"commentCount",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ie.prototype,"hasPoll",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ie.prototype,"hasUploadedVideo",null);_.c([_.mC({is:"ytd-post-renderer",disableElementRegistration:!0})],ie);
_.d(ie,"ytd-post-renderer",function(){if(SUq!==void 0)return SUq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return SUq=G},{mode:1});var pGq;var Ykt;var Fr=function(){return _.p.apply(this,arguments)||this};
_.r(Fr,_.p);Fr.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],Fr.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Fr.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Fr.prototype,"data",void 0);
_.c([_.v({value:"$.items.children"}),_.I("design:type",String)],Fr.prototype,"itemsPath",void 0);_.c([_.v({value:1}),_.I("design:type",Number)],Fr.prototype,"initialCount",void 0);_.c([_.v({reflectToAttribute:!0,value:_.X("enable_community_page_on_desktop")}),_.I("design:type",Boolean)],Fr.prototype,"useSmallerPostImageAttachments",void 0);_.c([_.v(),_.I("design:type",String)],Fr.prototype,"surface",void 0);_.c([_.mC({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Fr);
_.d(Fr,"ytd-post-multi-image-renderer",function(){if(Ykt!==void 0)return Ykt;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Ykt=G},{mode:2});var A$8={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
Dr=function(){var G=_.p.apply(this,arguments)||this;G.hasInlineCommentSection=!1;G.editDialog=null;G.isLoading=!1;G.shouldHideAuthor=!1;G.shouldShowVideoTime=!1;G.isInEngagementPanel=!1;G.hideBorder=!1;G.usesFullLockup=!1;G.shouldShowMenuInCompactView=!1;G.JSC$15652_spinnerEl=null;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.r(Dr,_.p);_.w=Dr.prototype;_.w.configureRendererStamper=function(){return A$8};
_.w.computeIsPollHeaderEnabled=function(G){return(G==null?void 0:G.pollMetadataIcon)!=null};
_.w.getPublishTimeStampString=function(G,B){B=new Date((Number(B)-60*((new Date).getTimezoneOffset()-(new Date(Number(B)*1E3)).getTimezoneOffset()))*1E3);B=(new ew(10)).format(B);if(G&&G.runs&&G.runs.length)for(var F=0;F<G.runs.length;F++)G.runs[F].text&&(G.runs[F].text=G.runs[F].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",B));return G};
_.w.created=function(){this.JSC$15652_spinnerEl=null};
_.w.contentTextChanged=function(){this.expander.reset()};
_.w.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var G;if((G=this.data)==null?0:G.actions){G=_.C(this.data.actions);for(var B=G.next();!B.done;B=G.next())this.openEditDialog(_.Q(B.value,TLG))}};
_.w.handleSignalActionOpenPostCommentDialogAction=function(){_.IF(this.hostElement).querySelector("#action-buttons").reply()};
_.w.updatePoll=function(G,B){B&&this.set("data.pollMetadataVoteCountText",B);this.hasInlineCommentSection&&(G=G>=0,B=_.IF(this.hostElement).querySelector("#action-buttons"),G?B.reply():B.hideReplyDialog())};
_.w.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15652_spinnerEl||(this.JSC$15652_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.IF(this.hostElement).appendChild(this.JSC$15652_spinnerEl));this.JSC$15652_spinnerEl&&(this.JSC$15652_spinnerEl.active=this.isLoading)};
_.w.onYtNavigate=function(G){var B=this.get("updateCommentDialogEndpoint",G.detail.endpoint);B&&(this.openEditDialog(B),G.stopPropagation())};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null};
_.w.onYtCommentPollRevert=function(G,B){B&&this.updatePoll(B.selectedChoiceIndex,B.totalVotes)};
_.w.onYtServiceRequestSent=function(G,B){G.stopPropagation();G=_.Q(B.endpoint,i3s);if(_.Q(B.endpoint,F78)||G&&!G.clientActions)this.isLoading=!0;if(B.actions)for(G=0;G<B.actions.length;G++){var F=B.actions[G],D=_.Q(F,Fq);D&&(F=this.get("updateBackstagePollAction.selectedChoiceIndex",F),F===void 0&&(F=-1),this.updatePoll(F,D.totalVotes))}};
_.w.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.w.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogElement.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.w.computeIsBodyHidden=function(G,B){return!!G||B};
_.ZN.Object.defineProperties(Dr.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G=this.data,B=G.showPostAuthorBackgroundHighlight,F=G.postAuthorBadgeType,D=G.authorEndpoint;if(!B&&F!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&F!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var u,R,N;G=_.$9(((u=G.authorText)==null?void 0:(R=u.runs)==null?void 0:(N=R[0])==null?void 0:N.text)||"");u=void 0;switch(F){case "POST_AUTHOR_BADGE_TYPE_ARTIST":u={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":u={iconType:B?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:G,authorEndpoint:D,authorCreator:B,icon:u}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var G,B;if((G=this.data)==null?0:(B=G.pollMetadataIcon)==null?0:B.iconType)return _.xT(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.$9("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,vYP))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,a77))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,mRw))}}});
Dr.prototype.onYtServiceRequestCompleted=Dr.prototype.onYtServiceRequestCompleted;Dr.prototype.onYtServiceRequestSent=Dr.prototype.onYtServiceRequestSent;Dr.prototype.onYtCommentPollRevert=Dr.prototype.onYtCommentPollRevert;Dr.prototype.onYtCommentboxDismiss=Dr.prototype.onYtCommentboxDismiss;Dr.prototype.onYtNavigate=Dr.prototype.onYtNavigate;Dr.prototype.isLoadingChanged=Dr.prototype.isLoadingChanged;Dr.prototype.dataChanged=Dr.prototype.dataChanged;Dr.prototype.contentTextChanged=Dr.prototype.contentTextChanged;
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Dr.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Dr.prototype,"rendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Dr.prototype,"rendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Dr.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.iA("#contentTextExpander"),_.I("design:type",Object)],Dr.prototype,"expander",void 0);_.c([_.iA("#edit-dialog"),_.I("design:type",Element)],Dr.prototype,"editDialogElement",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"hasInlineCommentSection",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"editDialog",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"isLoading",void 0);
_.c([_.v({computed:"computeIsPollHeaderEnabled(data)"}),_.I("design:type",Boolean)],Dr.prototype,"isPollHeaderEnabled",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"shouldHideAuthor",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"shouldShowVideoTime",void 0);_.c([_.v(),_.I("design:type",Object)],Dr.prototype,"isInEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Dr.prototype,"hideBorder",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Dr.prototype,"usesFullLockup",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Dr.prototype,"shouldShowMenuInCompactView",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dr.prototype,"authorCommentBadge",null);_.c([_.O("isInEngagementPanel"),_.I("design:type",Number),_.I("design:paramtypes",[])],Dr.prototype,"postTextMaxLines",null);
_.c([_.O("data.icon.iconType"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dr.prototype,"pollIcon",null);_.c([_.Ga("data.contentText"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Dr.prototype,"contentTextChanged",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Dr.prototype,"dataChanged",null);
_.c([_.Ga("isLoading"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Dr.prototype,"isLoadingChanged",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Dr.prototype,"onYtNavigate",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Dr.prototype,"onYtCommentboxDismiss",null);
_.c([_.Pm("yt-comment-poll-revert"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],Dr.prototype,"onYtCommentPollRevert",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Dr.prototype,"onYtServiceRequestSent",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Dr.prototype,"onYtServiceRequestCompleted",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dr.prototype,"voteCount",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dr.prototype,"commentCount",null);
_.c([_.O("data.backstageAttachment"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Dr.prototype,"hasPoll",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Dr.prototype,"hasQuiz",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Dr.prototype,"hasUploadedVideo",null);_.c([_.mC({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Dr);
_.d(Dr,"ytd-backstage-post-renderer",function(){if(pGq!==void 0)return pGq;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return pGq=G},{mode:1});var dx8;var ue=function(){var G=_.p.apply(this,arguments)||this;G.editDialog=null;G.showExpandButton=!1;G.isRichGrid=!1;G.usesFullLockup=!1;return G};
_.r(ue,_.p);_.w=ue.prototype;_.w.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"}}}};
_.w.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.w.computeShowExpandButton=function(G){return this.usesCompactLockup||G&&G.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.w.computeUsesCompactLockup=function(G){return!!G.condensedContent};
_.w.computeShowFullContentText=function(G){return!G};
_.w.onYtNavigate=function(G){G=this.get("updateCommentDialogEndpoint",G.detail.endpoint);this.openEditDialog(G)};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null};
_.w.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.repostEditDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.w.onTap=function(G){if(this.data){var B=null;this.usesCompactLockup&&!_.oQ(_.VW(G)||[],this.hostElement,["YT-IMG-SHADOW"])?B=this.get("navigationEndpoint",this.data):G.target===this.moreButtonEl&&(B=this.get("navigationEndpoint",G.target.data));B&&_.cZ(this.hostElement,"yt-navigate",{endpoint:B})}};
ue.prototype.onYtCommentboxDismiss=ue.prototype.onYtCommentboxDismiss;ue.prototype.onYtNavigate=ue.prototype.onYtNavigate;ue.prototype.dataChanged=ue.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ue.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],ue.prototype,"editDialog",void 0);_.c([_.v({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],ue.prototype,"usesCompactLockup",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ue.prototype,"showExpandButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ue.prototype,"isRichGrid",void 0);
_.c([_.v({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.I("design:type",Boolean)],ue.prototype,"showFullContentText",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ue.prototype,"usesFullLockup",void 0);_.c([_.iA("#more"),_.I("design:type",Object)],ue.prototype,"moreButtonEl",void 0);_.c([_.iA("#repost-content-text"),_.I("design:type",HTMLElement)],ue.prototype,"repostContentTextEl",void 0);
_.c([_.iA("#repost-edit-dialog"),_.I("design:type",HTMLElement)],ue.prototype,"repostEditDialogEl",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ue.prototype,"dataChanged",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],ue.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ue.prototype,"onYtCommentboxDismiss",null);_.c([_.mC({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],ue);
_.d(ue,"ytd-shared-post-renderer",function(){if(dx8!==void 0)return dx8;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dx8=G},{mode:1});var J$N;var c$7;var RA=function(){return _.p.apply(this,arguments)||this};
_.r(RA,_.p);RA.prototype.attached=function(){var G=this;this.networkStatusManager||(this.networkStatusManager=new _.pu,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){G.onlineHandler()}))};
RA.prototype.detached=function(){var G=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){G.onlineHandler()}),delete this.networkStatusManager)};
RA.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],RA.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RA.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],RA);
_.d(RA,"ytd-reload-page-button-renderer",function(){if(c$7!==void 0)return c$7;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return c$7=G},{mode:1});var TMq={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"},w_=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(w_,_.p);_.w=w_.prototype;_.w.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.w.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.w.computeHasBodyText=function(G){return!!G.bodyText};
_.w.computeButtons=function(G){var B=[];G.ctaButton&&B.push(G.ctaButton);G.secondaryButton&&B.push(G.secondaryButton);return B};
_.w.computeRendererStyle=function(G){return G.style?G.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():G.icon?"":"no-icon"};
_.w.getIconName=function(G,B){B=B===void 0?!1:B;if(G===void 0)return"";G=this.get("icon.iconType",G);var F;_.X("enable_hlp_client_icon_pick")?F=this.getThemedIcon(G,B):F=G;(B=TMq[F])||(B="yt-icons");return[B,F].join(":")};
_.w.getThemedIcon=function(G,B){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(G)?B?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(G)?B?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":G};
_.w.isThumbnail=function(G){return!!G.thumbnail};
_.w.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.w.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],w_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],w_.prototype,"data",void 0);
_.c([_.v({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.I("design:type",String)],w_.prototype,"rendererStyle",void 0);_.c([_.v({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.I("design:type",String)],w_.prototype,"iconName",void 0);_.c([_.v({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],w_.prototype,"thumbnail",void 0);_.c([_.v({computed:"computeButtons(data)"}),_.I("design:type",Array)],w_.prototype,"buttons",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],w_.prototype,"isDarkTheme",void 0);_.c([_.v({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],w_.prototype,"hasBodyText",void 0);_.c([_.mC({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],w_);
_.tS()(w_,"ytd-background-promo-renderer",function(){if(J$N===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);J$N=G}G=J$N;return G},{allowedProps:["data"],
mode:1});var IYT;var CF=function(){return _.p.apply(this,arguments)||this};
_.r(CF,_.p);_.ZN.Object.defineProperties(CF.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u,R;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(D=F.thumbnail)==null?void 0:D.vibrantColorPalette,darkColorPalette:(u=this.data)==null?void 0:(R=u.thumbnail)==null?void 0:R.darkColorPalette,experimentEnabled:!0}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],CF.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],CF.prototype,"collectionStack",null);_.c([_.mC({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],CF);
_.d(CF,"ytd-compact-station-renderer",function(){if(IYT!==void 0)return IYT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IYT=G},{mode:1});var fYa;var No=function(){var G=_.p.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.r(No,_.p);No.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]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],No.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],No.prototype,"isRichGrid",void 0);_.c([_.mC({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],No);
_.d(No,"ytd-grid-channel-renderer",function(){if(fYa!==void 0)return fYa;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return fYa=G},{mode:1});var tSv;var yB=function(){return _.p.apply(this,arguments)||this};
_.r(yB,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yB.prototype,"data",void 0);_.c([_.mC({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],yB);
_.d(yB,"ytd-grid-movie-playlist-renderer",function(){if(tSv!==void 0)return tSv;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return tSv=G},{mode:1});var Z5q;var nF=function(){var G=_.p.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.modernButtons=_.X("web_modern_buttons");return G};
_.r(nF,_.p);nF.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
nF.prototype.configureRendererStamper=function(){return{"data.menu":iu}};
nF.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
nF.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.X("woffle_playlist_renderer_killswitch")){var G,B=BkS(this.entityInfo,this.transferState,this.downloadProgress,(G=this.data)==null?void 0:G.playlistId,this.isOnline);G=B.viewPlaylistText;var F=B.badges;B=B.thumbnailOverlays;this.isDownloads=!!G||!!F;this.set("data.viewPlaylistText",G);F&&F.length>0&&this.set("data.badges",F);B&&B.length>0&&this.set("data.thumbnailOverlays",
B)}};
_.ZN.Object.defineProperties(nF.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 G;return!((G=this.data)==null?0:G.menu)}}});
nF.prototype.transferStateChanged=nF.prototype.transferStateChanged;nF.prototype.dataChanged=nF.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],nF.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],nF.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v({selector:_.Y56,selectorArgs:["data.playlistId"]}),_.I("design:type",Object)],nF.prototype,"downloadProgress",void 0);_.c([_.v({selector:_.X9,selectorArgs:["data.playlistId"]}),_.I("design:type",Object)],nF.prototype,"transferState",void 0);_.c([_.v({selector:p9l,selectorArgs:["data.playlistId"]}),_.I("design:type",Object)],nF.prototype,"entityInfo",void 0);_.c([_.v({selector:_.a9}),_.I("design:type",Boolean)],nF.prototype,"isOnline",void 0);
_.c([_.v(),_.I("design:type",Object)],nF.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],nF.prototype,"downloadRenderData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],nF.prototype,"modernButtons",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],nF.prototype,"isDownloads",void 0);_.c([_.O("transferState"),_.v({reflectToAttribute:!0}),_.I("design:type",String),_.I("design:paramtypes",[])],nF.prototype,"downloadState",null);
_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],nF.prototype,"menuHidden",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],nF.prototype,"dataChanged",null);_.c([_.Ry("transferState","downloadProgress","isOnline"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],nF.prototype,"transferStateChanged",null);
_.c([_.mC({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],nF);
_.d(nF,"ytd-grid-playlist-renderer",function(){if(Z5q!==void 0)return Z5q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Z5q=G},{mode:1});var gXN;var le=function(){return _.p.apply(this,arguments)||this};
_.r(le,_.p);le.prototype.configureRendererStamper=function(){return{"data.menu":iu,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ZN.Object.defineProperties(le.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u,R;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(D=F.thumbnail)==null?void 0:D.vibrantColorPalette,darkColorPalette:(u=this.data)==null?void 0:(R=u.thumbnail)==null?void 0:R.darkColorPalette,experimentEnabled:!0}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],le.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],le.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],le.prototype,"data",void 0);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],le.prototype,"collectionStack",null);_.c([_.mC({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],le);
_.d(le,"ytd-grid-radio-renderer",function(){if(gXN!==void 0)return gXN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return gXN=G},{mode:1});var Sk7;var Ut=function(){return _.p.apply(this,arguments)||this};
_.r(Ut,_.p);Ut.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Ut.prototype.computeNavigationEndpoint=function(G){return zzg(G==null?void 0:G.navigationEndpoint)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],Ut.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ut.prototype,"data",void 0);_.c([_.v({computed:"computeNavigationEndpoint(data)"}),_.I("design:type",Object)],Ut.prototype,"computedNavigationEndpoint",void 0);
_.c([_.mC({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Ut);
_.d(Ut,"ytd-grid-show-renderer",function(){if(Sk7!==void 0)return Sk7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Sk7=G},{mode:1});var svv;_.qo=function(G){this.playerClient=G};
_.xxP=function(G,B,F){F=F===void 0?{}:F;return G.playerClient.setOption("ad",B,F)};
_.qo.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.qo.prototype.executeCommand=function(G,B){this.getOptions().includes("executeCommand")?_.xxP(this,"executeCommand",{command:G,layoutId:B}):_.$P("Calling executeCommand when adModule is not loaded")};var Et=function(){return _.p.apply(this,arguments)||this};
_.r(Et,_.p);Et.prototype.getLayoutId=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
Et.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var G=_.AZ(),B=this.getLayoutId(),F=this.data.clickthroughEndpoint;G&&B&&_.X("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(D){(new _.qo(D)).executeCommand(F,B)}):_.cZ(this.hostElement,"yt-navigate",{endpoint:F})}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Et.prototype,"data",void 0);_.c([_.mC({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Et);
_.d(Et,"ytd-shopping-companion-item-renderer",function(){if(svv!==void 0)return svv;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return svv=G},{mode:1});var PrT;var hF=function(){var G=_.p.apply(this,arguments)||this;G.isExpandableContent=!1;return G};
_.r(hF,_.p);_.ZN.Object.defineProperties(hF.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?void 0:G.price)||((B=this.data)==null?void 0:(F=B.dealsData)==null?void 0:F.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var G,B;if((G=this.data)!=null&&G.dealsData&&((B=this.data)==null||!B.priceReplacementText)){G=this.data.dealsData;var F,D,u;return((F=G.salesData)==null?void 0:F.originalPrice)||((D=G.priceDropData)==null?void 0:D.referencePrice)||((u=G.promotionData)==null?void 0:u.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var G,B;return(G=this.data)==null?void 0:(B=G.dealsData)==null?void 0:B.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],hF.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hF.prototype,"isExpandableContent",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"showCta",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"ctaText",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"hasPriceTopPosition",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"hasPriceBottomPosition",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"useNewStyle",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"showPriceReplacementText",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"priceValue",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"showDeal",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"showAffiliateDisclaimer",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"useSaleStyle",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"useFromBrandCtaStyle",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"useFromVendorCtaStyle",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hF.prototype,"useShoppingCollectionCtaStyle",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],hF);
_.d(hF,"ytd-vertical-product-card-renderer",function(){if(PrT!==void 0)return PrT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return PrT=G},{mode:1});var Gev;var KF=function(){return _.p.apply(this,arguments)||this};
_.r(KF,_.p);KF.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],KF.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],KF.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],KF);
_.d(KF,"ytd-grid-movie-renderer",function(){if(Gev!==void 0)return Gev;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Gev=G},{mode:1});var BVN;var aA=function(){var G=_.p.apply(this,arguments)||this;G.roundedFix=_.X("web_enable_merch_item_rounding_fix");G.itemStyle="small-item";return G};
_.r(aA,_.p);aA.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,B,F,D,u=(B=_.Q((G=this.data)==null?void 0:G.buttonCommand,_.tOs))==null?void 0:(F=B.item)==null?void 0:(D=F.notificationTextRenderer)==null?void 0:D.successResponseText;u&&_.b66(this.hostElement,u)}};
_.ZN.Object.defineProperties(aA.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.isProductPlaceholder)!==void 0&&((B=this.data)==null?void 0:B.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],aA.prototype,"roundedFix",void 0);_.c([_.v(),_.I("design:type",Object)],aA.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],aA.prototype,"itemStyle",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"hasPrice",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"hasPriceReplacementText",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"hasAdditionalFeesText",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"hasAffiliateDisclaimer",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"isProductPlaceholder",null);
_.c([_.v(),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"hideOpenInNewIcon",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aA.prototype,"ariaLabel",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],aA);
_.d(aA,"ytd-merch-shelf-item-renderer",function(){if(BVN!==void 0)return BVN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return BVN=G},{mode:1});_.YN(_.Y(function(G){return _.l("button-card-view-model",{el:_.VX(_.mR(function(){return G.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return G.data().title},
role:"button"},_.l(_.YR,{model:{}}),_.l("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.l("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.l(_.E,{cond:function(){return G.data().image},
then:function(B){return _.l(_.vr,{data:B,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.l("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return G.data().title})))},"kc"),"button-card-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){G=_.AS(G,{className:void 0});var B=G.data;G=G.className;var F=_.mS(function(){return B().onTapCommand},void 0,"SXkP9e");
return _.l("ytd-shopping-item-card",{class:_.tx("ytdShoppingItemCardHost",G)},_.l(_.p4,{command:F,className:"ytdShoppingItemCardHostLink"},_.l("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.l(_.uR,{data:function(){return B().thumbnailViewModel}},{thumbnailViewModel:function(D){return _.l(A8,{data:D.data,
aspectRatio:3})}})),_.l("div",null,_.l("p",{class:"ytdShoppingItemCardHostItemTitle"},_.l(_.Wd,{text:function(){return B().itemTitle}})),_.l("p",{class:"ytdShoppingItemCardHostPrice"},_.l(_.Wd,{text:function(){return B().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.Hd,
className:_.Hd}});var ibN={isAdsVideo:!0},FBN={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},D4T={showPlayerControls:!1,videoPreviewDurationMs:15E3},utv={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},RnT={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var bR=null,Vus={};var MuI="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(" "),m3={},p4g=(m3.FEwhat_to_watch="home",m3.FEhashtag="hashtag",m3.FEtrending="trending",m3.FEhistory="history",m3.SPunlimited="premium",m3.FEmemberships_and_purchases="paid_memberships",m3.SPredeem_code="redeem",m3.SPverify_location="locate",m3.SPminor_moment="minor_moment",
m3.FEmini_app_container="mini_app",m3.FEnews_destination="news",m3.SPopen_in_app="open_in_app",m3.FEexplore="explore",m3.FEsubscriptions="subscriptions",m3.FEsfv_audio_pivot="sfv_audio_pivot",m3.FEplaylist_aggregation="playlist_aggregation",m3);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");_.ZL("init");var wFs,CWT,yGq,ncP,NVq;wFs=function(){};
_.x4o=_.Y(function(G){var B=G.data;var F=G.inlineMetadata;var D=G.aspectRatio;var u=G.scrimStyle;var R=G.className;var N=G.useDefaultStyle;var y=G.titleStyle;var U=new wFs,q=_.X("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",h=_.mS(function(){return(N==null?0:N())?q==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),K=_.mS(function(){return _.Mg(F)||h()||!1},void 0,"GaU7Ef"),a=function(){return(u==null?void 0:
u())!==void 0?u==null?void 0:u():1},m=_.mS(function(){return B().belowThumbnailMetadata||!K()},void 0,"vsyhaf");
G=_.tb({visibilityCallback:function(RI){var yo=B().onFirstVisible;RI&&yo&&_.rJ(yo)},
showOption:{calledOnce:!0,state:"visible"}});var L=_.VX(),W={},e=_.tx(function(){return h(),"shortsLockupViewModelHostThumbnailContainer"},(W.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Mg(D)===1},W.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Mg(D)===2},W.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.X("web_shorts_2_by_3_lockups_study")&&!_.X("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
W)),b=_.mS(function(){if(_.Mg(D)===1)return 1;
_.Mg(D);return 2},void 0,"bBJLCd"),M,t=function(){if(U){var RI;
(RI=M)==null||Jm(RI);var yo;if(U.hostElement&&((yo=U.data)==null?0:yo.inlinePlayerData)){var hg,US;RI=((hg=U.data)==null?0:(US=hg.inlinePlayerData)==null?0:US.enableAudioControl)?Object.assign({},RnT):Object.assign({},utv);var aI,v6;((aI=U.data)==null?void 0:(v6=aI.inlinePlayerData)==null?void 0:v6.maxPlaybackLengthSec)!==void 0&&(RI.videoPreviewDurationMs=U.data.inlinePlayerData.maxPlaybackLengthSec*1E3);M=j3({mediaRenderer:U,lockupElement:U.hostElement,thumbnailElement:L.value,videoPreviewOpts:RI})}}};
_.bC(function(){U&&(U.data=B(),t())},"r1zbOc");
var T=_.mS(function(){return B().thumbnail},void 0,"wZj8b");
W=_.mS(function(){return B().badge},void 0,"qOKyU");
var A=_.mS(function(){return B().onTap},void 0,"p3kB9e"),Z={},P={};
return _.l("ytm-shorts-lockup-view-model",{el:_.VX(function(RI){U&&(U.hostElement=RI)},t,G),
class:_.tx("shortsLockupViewModelHost",R)},_.l(_.GJ,null,_.l(_.p4,{command:A,className:_.tx("shortsLockupViewModelHostEndpoint",(Z.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!m()},Z),"reel-item-endpoint",""),
ariaHidden:function(){return!K()},
tabIndex:function(){return K()?0:-1}},_.l("div",{el:L,
class:_.tx("shortsLockupViewModelHostThumbnailParentContainer",(P.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!h()},P))},_.l(_.E,{cond:T,
then:function(){return _.l("div",{class:e},_.l(_.vr,{data:function(){var RI;return(RI=T==null?void 0:T())!=null?RI:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.l(_.uR,{data:function(){return B().thumbnailViewModel}},{thumbnailViewModel:function(RI){return _.l(A8,{data:RI.data,
aspectRatio:function(){return b()},
disableRounding:function(){return h()}})}}),null),_.l(_.E,{cond:K,
then:function(){return _.l(CWT,{data:B,scrimStyle:a,useDefaultStyle:N,titleStyle:y})}}),_.l(_.uR,{data:W},{badgeViewModel:function(RI){return _.l(_.vK,{data:RI.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.l(_.E,{cond:function(){return K()&&B().menuOnTap},
then:function(){return _.l(NVq,{data:B,inlineMetadata:!0})}}),_.l(_.E,{cond:m,
then:function(){return _.l(yGq,{data:B,useDefaultStyle:N,inlineMetadata:K})}})))},"nc");
CWT=_.Y(function(G){var B=G.data;var F=G.scrimStyle;var D=G.useDefaultStyle;var u=G.titleStyle;var R=_.X("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=D&&_.X("web_hide_primary_text_for_pivot_panel"),y=_.mS(function(){return(D==null?0:D())?R==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ou5zO");
G={};G=_.tx("shortsLockupViewModelHostInlineMetadata",(G.shortsLockupViewModelHostMetadataRounded=function(){return!y()},G.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(F==null?void 0:F())===3&&!_.X("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(F==null?void 0:F())===3&&_.X("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(F==null?void 0:F())===2||(F==null?void 0:
F())===4},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
var U={};return _.l("div",{class:G},_.l("h3",{class:_.tx("shortsLockupViewModelHostMetadataTitle",(U.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(F==null?void 0:F())===4},U.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return B().belowThumbnailMetadata},U.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(u==null?void 0:u())===1},U.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(u==null?void 0:u())===2},U)),
"aria-label":function(){return B().accessibilityText}},_.l(_.E,{cond:function(){var q;
return!((q=B().overlayMetadata)==null||!q.primaryText)&&!N},
then:function(){return _.l(_.Wd,{text:function(){var q;return(q=B().overlayMetadata)==null?void 0:q.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.l(_.E,{cond:function(){var q;
return(q=B().overlayMetadata)==null?void 0:q.secondaryText},
then:function(){return _.l(ncP,{data:B,scrimStyle:F,className:void 0})}}))},"oc");
yGq=_.Y(function(G){var B=G.data;var F=G.useDefaultStyle;var D=G.inlineMetadata;var u=_.X("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",R=_.mS(function(){return(F==null?0:F())?u==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"WbzRH"),N=_.VX(),y;
G=_.gJ(function(m){if(_.ht(_.EY(m),N.value,["AVATAR-VIEW-MODEL"]))return!1;var L;(L=y)==null||L.click();return!1});
var U=_.mS(function(){return B().belowThumbnailMetadata||B().overlayMetadata},void 0,"nDfetf"),q=function(){return B().menuOnTap&&!D()},h=function(){var m;
return(m=U())==null?void 0:m.avatar},K={},a={};
return _.l("div",{class:_.tx(function(){return R()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(K.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!h()},K.shortsLockupViewModelHostOutsideMetadataHasMenu=q,K)),
"on:click":G,el:N,role:"presentation"},_.l(_.uR,{data:h},{avatarViewModel:function(m){return _.l(_.h8,{data:m.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.l("div",null,_.l("h3",{class:_.tx("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(a.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var m,L;
return!((m=U())==null?0:(L=m.primaryText)==null?0:L.content)},a.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=D,a)),
role:"presentation"},_.l(_.p4,{ref:function(m){return void(y=m)},
command:function(){return B().onTap},
className:_.tx("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var m,L;return(m=U())==null?void 0:(L=m.primaryText)==null?void 0:L.content},
"aria-label":function(){return B().accessibilityText}},_.l(_.E,{cond:function(){var m;
return(m=U())==null?void 0:m.primaryText},
then:function(m){return _.l(_.Wd,{text:m,noEndpoints:!0,noStyleRuns:!0})}}))),_.l(_.E,{cond:function(){var m;
return(m=U())==null?void 0:m.secondaryText},
then:function(m){return _.l("div",{class:_.tx("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.l(_.Wd,{text:m,noStyleRuns:!0}))}})),_.l(_.E,{cond:q,
then:function(){return _.l(NVq,{data:B,inlineMetadata:!1})}}))},"pc");
ncP=_.Y(function(G){var B=G.data;var F=G.scrimStyle;G=G.className;var D={};return _.l("div",{class:_.tx((D.shortsLockupViewModelHostMetadataSubhead=function(){return(F==null?void 0:F())!==4},D.shortsLockupViewModelHostMetadataSubheadNew=_.X("enable_shorts_lockup_new_scrim"),D.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(F==null?void 0:F())===4},D),G),
"aria-hidden":"true"},_.l(_.Wd,{text:function(){var u;return(u=B().overlayMetadata)==null?void 0:u.secondaryText},
noStyleRuns:!0}))},"qc");
NVq=_.Y(function(G){var B=G.data;var F=G.inlineMetadata;G={};G=_.tx((G.shortsLockupViewModelHostInlineMetadataMenu=function(){return F()},G.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!F()},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
return _.l("div",{class:G},_.l(_.Ji,{data:function(){return{style:F()?"overlay":"mono",accessibilityLabel:B().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(D){D.preventDefault();D.stopPropagation();var u=_.jF({elementsCommand:B().menuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(D)}}},
iconName:"MORE_VERT"}))},"rc");var Grc=_.Y(function(G){var B=G.data;var F=G.inlineMetadata;var D=G.aspectRatio;var u=G.scrimStyle;var R=G.className;var N=G.useDefaultStyle;G=_.mS(function(){var y=B().entityId;return y?y.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.l("ytm-shorts-lockup-view-model-v2",{class:_.tx("shortsLockupViewModelHost",R)},_.l(_.Zd,{contentId:G,aspectRatio:function(){return(D==null?void 0:D())===1?1:(D==null?void 0:D())===2?2:4}},function(){return _.l(_.x4o,{data:B,
inlineMetadata:F,aspectRatio:D,scrimStyle:u,className:R,useDefaultStyle:N})}))},"sc");_.YN(Grc,"ytm-shorts-lockup-view-model-v2",{props:{data:_.oh,inlineMetadata:_.oh,aspectRatio:_.oh,scrimStyle:_.oh,className:_.oh,useDefaultStyle:_.oh,titleStyle:_.oh}});var lUw=16/9*210,Xr=function(){var G=_.p.apply(this,arguments)||this;G.isExpandableContent=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.buttonClasses=["arrow"];G.isSearch=!1;G.disableScrollEventListener=!1;G.containsLockup=!1;G.overrideArrowPositionForProductCard=!1;G.overrideArrowPositionForShoppingItemCard=!1;G.overrideArrowPositionForReelItems=!1;G.overrideArrowPositionForGridMovie=!1;G.overrideArrowPositionToCenter=!1;G.isSearchPostShelf=!1;G.overrideArrowPositionForMixedShelf=!1;G.overrideArrowPositionForMixedShelfShortsOnly=
!1;G.hasBigThumbsReelItems=!1;G.shouldUseMixedListHeight=!1;G.shouldUseShortsListHeight=!1;G.gridVideoWidth=0;G.isSearchVodShelf=!1;G.disableWheelScroll=!1;G.sizing="COMPACT";G.shortsLockupAspectRatio=0;return G};
_.r(Xr,_.p);_.w=Xr.prototype;
_.w.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]]"}}}}};
_.w.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.X("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.w.computeInitialCountNumber=function(G){if(!G)return 6;var B=G.items.some(function(R){return!!R.topicRecommendationsChipRenderer}),F=G.items.some(function(R){return!!R.displayAdRenderer}),D=this.computeShouldListItemsHaveEqualHeight(G),u=G.items.some(function(R){return!!R.gridPlaylistRenderer});
G=G.items.some(function(R){return!!R.shoppingItemCardViewModel});
return B?9:F?8:u||D?10:G?7:6};
_.w.computeContainsPost=function(G){return!!G&&!!G.items&&G.items.some(function(B){return!!B.postRenderer})};
_.w.computeContainsLockup=function(){if(_.X("web_horizontal_list_lockup_arrow_killswitch"))return!1;var G,B;return(G=this.data)==null?void 0:(B=G.items)==null?void 0:B.some(function(F){return!!F.lockupViewModel})};
_.w.maybeUpdateLockupAspectRatio=function(){var G,B;if(this.computeContainsLockup()&&((G=this.data)==null?0:(B=G.items)==null?0:B.length)){var F;G=w4U((F=this.data.items[0].lockupViewModel)==null?void 0:F.contentType,this.data.force16By9ThumbnailAspectRatio);F=uIz(G);F=this.computeLockupWidth()/F;_.Ss(this.hostElement,{"--yt-horizontal-list-content-height":F+"px"})}};
_.w.computeOverrideArrowPositionForProductCard=function(G){if(this.isExpandableContent)return!1;var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){return!!F.verticalProductCardRenderer}))};
_.w.computeOverrideArrowPositionForShoppingItemCard=function(G){var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){return!!F.shoppingItemCardViewModel}))};
_.w.computeOverrideArrowPositionForReelItemRenderer=function(G){return this.containsReelItemRenderer(G)};
_.w.computeHasBigThumbsReelItems=function(G,B){return G&&this.containsReelItemRenderer(B)};
_.w.computeShouldListItemsHaveEqualHeight=function(G){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(G==null?void 0:G.itemSizeConstraint)};
_.w.computeShouldListItemsHaveShortsHeight=function(G){return this.computeShouldListItemsHaveEqualHeight(G)&&!this.containsGridVideoRenderer(G)};
_.w.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.w.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.w.containsReelItemRenderer=function(G){var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){return!(!F.reelItemRenderer&&!F.shortsLockupViewModel)}))};
_.w.containsGridVideoRenderer=function(G){var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){return!!F.gridVideoRenderer||!!F.lockupViewModel}))};
_.w.computeContainsGridMovieRenderer=function(G){var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){return!!F.gridMovieRenderer}))};
_.w.computeOverrideArrowPositionToCenter=function(G){return this.computeIsSearchPostShelf(G)};
_.w.computeIsSearchPostShelf=function(G){var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){var D,u;return((u=(D=F.postRenderer)==null?void 0:D.surface)!=null?u:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.w.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(G){var B;return!!(G==null?0:(B=G.items)==null?0:B.some(function(F){var D,u,R;return((R=(D=F.backgroundPromoRenderer)==null?void 0:(u=D.style)==null?void 0:u.value)!=null?R:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.w.computeIsSearchVodShelf=function(G,B){return G&&this.containsGridVideoRenderer(B)};
_.w.computeDisableWheelScroll=function(G,B){return this.computeIsSearchVodShelf(G,B)};
_.w.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.w.computeShortsLockupAspectRatio=function(){return 1};
_.w.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Ss(this.hostElement,{"--ytd-reel-item-thumbnail-height":lUw+"px"})};
Xr.prototype.dataChanged=Xr.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],Xr.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Xr.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],Xr.prototype,"isExpandableContent",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"hideShelfHeader",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Array)],Xr.prototype,"buttonClasses",void 0);_.c([_.v(),_.I("design:type",Object)],Xr.prototype,"isSearch",void 0);
_.c([_.v(),_.I("design:type",Object)],Xr.prototype,"disableScrollEventListener",void 0);_.c([_.v({computed:"computeInitialCountNumber(data)"}),_.I("design:type",Number)],Xr.prototype,"initialCount",void 0);_.c([_.v({computed:"computeContainsPost(data)"}),_.I("design:type",Boolean)],Xr.prototype,"supportComponentResize",void 0);_.c([_.v({computed:"computeContainsPost(data)"}),_.I("design:type",Boolean)],Xr.prototype,"containsPost",void 0);
_.c([_.v({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"containsLockup",void 0);_.c([_.v({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Xr.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.c([_.v({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionForProductCard",void 0);_.c([_.v({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.c([_.v({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionForReelItems",void 0);_.c([_.v({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionForGridMovie",void 0);
_.c([_.v({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionToCenter",void 0);_.c([_.v({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"isSearchPostShelf",void 0);_.c([_.v({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.c([_.v({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.c([_.v({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"hasBigThumbsReelItems",void 0);
_.c([_.v({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"shouldUseMixedListHeight",void 0);_.c([_.v({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"shouldUseShortsListHeight",void 0);_.c([_.v({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"gridVideoWidth",void 0);
_.c([_.v({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"isSearchVodShelf",void 0);_.c([_.v({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.I("design:type",Object)],Xr.prototype,"disableWheelScroll",void 0);_.c([_.v({computed:"computeSizing(isSearch)"}),_.I("design:type",Object)],Xr.prototype,"sizing",void 0);
_.c([_.v({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.I("design:type",Object)],Xr.prototype,"shortsLockupAspectRatio",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xr.prototype,"dataChanged",null);
_.d(Xr,"yt-horizontal-list-renderer",function(){if(NWa===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);NWa=G}G=NWa;return G},{mode:1});var U4y=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
U4y.prototype.subscribe=function(G,B){var F=this.subscriptions.get(G);if(!F)return function(){};
F.add(B);return function(){F.delete(B)}};
U4y.prototype.unsubscribe=function(G,B){(G=this.subscriptions.get(G))&&G.delete(B)};
U4y.prototype.publish=function(G,B){B=B===void 0?{}:B;(G=this.subscriptions.get(G))&&G.forEach(function(F){F(B)})};var qbq;var EcU=[10,12,14,16,18,20,24,28,32,36],hnN=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],QB=function(){var G=_.p.apply(this,arguments)||this;G.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";G.hideOverflow=!1;G.useRoboto=!1;G.fontClass="";G.overflown=!1;G.actionMap={"yt-window-resized":"resize"};return G};
_.r(QB,_.p);_.w=QB.prototype;
_.w.attached=function(){var G=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();_.ft(this,function(){G.resize()});
if(!_.ST){var B,F,D;(B=document)==null||(F=B.fonts)==null||(D=F.ready)==null||D.then(function(){G.resize()})}};
_.w.dataChanged=function(){this.resize()};
_.w.guideIsExpandedChanged=function(){this.resize()};
_.w.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 G=this.getMaxNumLines(),B=this.getMinFont(),F=this.getMaxFont(),D=this.useRoboto?EcU:hnN;for(D=D.filter(function(R){return R<=F&&R>=B});D.length>1;){var u=Math.floor(D.length/2);
this.updateFontSize(D[u]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=G)D=D.slice(u,D.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>G)D=D.slice(0,u);else break}this.updateFontSize(D[D.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(G)}};
_.w.handleOverflow=function(G){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>G&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",G.toString()))};
_.w.updateFontSize=function(G){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+G;this.textNode.classList.add(this.fontClass)};
_.w.getMaxFont=function(){var G=this.useRoboto?EcU:hnN;G=G[G.length-1];return this.maxFontSize&&this.maxFontSize<=G?this.maxFontSize:G};
_.w.getMinFont=function(){var G=(this.useRoboto?EcU:hnN)[0];return this.minFontSize&&this.minFontSize>=G?this.minFontSize:G};
_.w.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.w.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.w.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.zx(this.text).split("\n").length-1:Infinity};
_.w.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("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
QB.prototype.guideIsExpandedChanged=QB.prototype.guideIsExpandedChanged;QB.prototype.dataChanged=QB.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],QB.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],QB.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],QB.prototype,"text",void 0);
_.c([_.v(),_.I("design:type",String)],QB.prototype,"fontFamily",void 0);_.c([_.v(),_.I("design:type",Number)],QB.prototype,"maxWidth",void 0);_.c([_.v(),_.I("design:type",Number)],QB.prototype,"maxHeight",void 0);_.c([_.v(),_.I("design:type",Number)],QB.prototype,"maxFontSize",void 0);_.c([_.v(),_.I("design:type",Number)],QB.prototype,"minFontSize",void 0);_.c([_.v(),_.I("design:type",Number)],QB.prototype,"maxLines",void 0);_.c([_.v(),_.I("design:type",Object)],QB.prototype,"hideOverflow",void 0);
_.c([_.v({selector:_.W78}),_.I("design:type",Boolean)],QB.prototype,"guideIsExpanded",void 0);_.c([_.iA("#container"),_.I("design:type",HTMLElement)],QB.prototype,"containerNode",void 0);_.c([_.iA("#text"),_.I("design:type",HTMLElement)],QB.prototype,"textNode",void 0);_.c([_.Ry("text"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],QB.prototype,"dataChanged",null);
_.c([_.Ry("guideIsExpanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],QB.prototype,"guideIsExpandedChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],QB);
_.d(QB,"yt-dynamic-sizing-formatted-string",function(){if(qbq!==void 0)return qbq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qbq=G},{mode:1});var KBU;_.aUU=function(G){_.Gs.call(this,G)};
_.r(_.aUU,_.Gs);var m4s=function(G){_.Gs.call(this,G)};
_.r(m4s,_.aUU);var jP=function(){return _.p.apply(this,arguments)||this};
_.r(jP,_.p);jP.prototype.onTapSuspendedChannel=function(){var G;if((G=this.data)!=null&&G.serviceEndpoint){var B,F;(G=(F=_.Q((B=this.data)==null?void 0:B.serviceEndpoint,_.MI))==null?void 0:F.url)?_.js(G,void 0,void 0,window.top):(B=new m4s("Did not handle suspended account tap. No appealUrl."),_.k2(B))}else B=new m4s("Did not handle suspended account tap. No serviceEndpoint."),_.k2(B)};
jP.prototype.onTap=function(){var G=this,B=_.Rh(),F,D=(F=_.u4(B,{veType:7116}))!=null?F:void 0;_.kF(B,{visualElement:D});_.Xu();this.saveRoleText();var u;if((u=this.data)==null?0:u.youtubeSuspended)this.onTapSuspendedChannel();else{var R=!1,N,y;(B=(y=_.Q((N=this.data)==null?void 0:N.serviceEndpoint,_.NAv))==null?void 0:y.supportedTokens)&&B.forEach(function(U){if(U.accountSigninToken)if(R=!0,G.onAccountItemTap)G.onAccountItemTap(U.accountSigninToken.signinUrl);else _.js(U.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!R){if(N=this.get("serviceEndpoint",this.data))R=!0,this.ytComponentBehavior.resolveCommand(N);R||_.Oz(new m4s("Did not handle account switch tap. No token."))}}};
jP.prototype.saveRoleText=function(){if(this.data){var G=this.data,B=G.channelDelegationRole;if(B){var F,D=(F=_.Q(G==null?void 0:G.serviceEndpoint,_.NAv))==null?void 0:F.supportedTokens;if(!D){var u,R,N,y;D=(u=_.Q(G==null?void 0:G.serviceEndpoint,_.Dx))==null?void 0:(R=u.popup)==null?void 0:(N=R.confirmDialogRenderer)==null?void 0:(y=N.confirmButton)==null?void 0:y.buttonRenderer;var U;D=(U=_.Q(D==null?void 0:D.command,_.gs))==null?void 0:U.commands;if(!D)return;var q;D=(q=_.Q(D[1],_.NAv))==null?
void 0:q.supportedTokens}if(D){U=void 0;q=_.C(D);for(D=q.next();!D.done;D=q.next())if(D=D.value,D.datasyncIdToken){U=D.datasyncIdToken.datasyncIdToken;break}if(U){var h;a:{if(_.V$o()&&(q=_.mm(U+"::pom"))){q=new Bd(q);break a}q=void 0}(h=q)==null||h.set("role_text",B);if((t$s?t$s:window.location).href.indexOf("studio")!==-1&&(h=vpo())){q=h.src?(new URL(h.src)).origin:"*";var K;(K=h.contentWindow)==null||K.postMessage({action:"save_pom_role",datasyncId:U,roleText:B},q)}}}}}};
_.ZN.Object.defineProperties(jP.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.accountPhoto)==null?void 0:B.thumbnails;return F&&F.length>0&&(F[0].height===36||F[0].height===48)?F[0].height:40}}});
jP.prototype.onTap=jP.prototype.onTap;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],jP.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],jP.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Function)],jP.prototype,"onAccountItemTap",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jP.prototype,"enableRingForActiveAccount",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],jP.prototype,"thumbnailSize",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jP.prototype,"onTap",null);_.c([_.mC({is:"ytd-account-item-renderer",disableElementRegistration:!0})],jP);
_.d(jP,"ytd-account-item-renderer",function(){if(KBU!==void 0)return KBU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return KBU=G},{mode:1});var XF7;var LF=function(){return _.p.apply(this,arguments)||this};
_.r(LF,_.p);LF.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.te().resolve(_.Wr).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],LF.prototype,"data",void 0);_.c([_.mC({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],LF);
_.d(LF,"ytd-identity-chip-renderer",function(){if(XF7!==void 0)return XF7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return XF7=G},{mode:1});var QXt;var jXq;var LBN;var rGv;var r_=function(){var G=_.p.apply(this,arguments)||this;G.richItemMinWidth=_.sD("wn_grid_min_item_width",310);G.isShorts=!1;G.isWatchNext=!1;G.isExploreHub=!1;return G};
_.r(r_,_.p);_.ZN.Object.defineProperties(r_.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var G=[],B=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Ss(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var F;if(((F=this.data)==null?0:F.rows)&&B)for(B*=this.data.rows,F=0;F<B;F++)G.push({});return G}}});
_.c([_.k(_.hf),_.I("design:type",Object)],r_.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],r_.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.EX,value:3}),_.I("design:type",Number)],r_.prototype,"itemsPerRow",void 0);_.c([_.v({selector:_.rfl,value:6}),_.I("design:type",Number)],r_.prototype,"slimItemsPerRow",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Number)],r_.prototype,"richItemMinWidth",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],r_.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r_.prototype,"isShorts",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r_.prototype,"isWatchNext",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r_.prototype,"isExploreHub",void 0);
_.c([_.O("isExploreHub"),_.v({reflectToAttribute:!0}),_.I("design:type",Object),_.I("design:paramtypes",[])],r_.prototype,"shimmerAnimation",null);_.c([_.O("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.I("design:type",Array),_.I("design:paramtypes",[])],r_.prototype,"cardItems",null);_.c([_.mC({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],r_);
_.WBP=_.tS()(r_,"ytd-ghost-grid-renderer",function(){if(rGv===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);rGv=G}G=rGv;return G},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.YN(_.Y(function(G){var B=_.AS(G,{numberOfComments:3}).numberOfComments,F=_.AS(G,{isInitialLoad:!1}).isInitialLoad,D=_.AS(G,{engagementPanel:!1}).engagementPanel,u=function(){return Math.min(Number(B==null?void 0:B())||20,20)};
return _.l("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.l(_.E,{cond:function(){return!(D==null?0:D())&&(F==null?void 0:F())},
then:function(){return _.l("div",{class:"ytGhostCommentsComments"},_.l("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.l("div",{class:_.tx("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.l("div",{class:_.tx("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.l("div",{class:"ytGhostCommentsGhostCard"},_.l("div",{class:"ytGhostCommentsAvatar"},_.l("div",{class:"ytGhostCommentsCircle"})),_.l("div",{class:"ytGhostCommentsComments"},_.l("div",{class:"ytGhostCommentsMeta"},
_.l("div",{class:_.tx("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.l("div",{class:_.tx("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.l("div",{class:"ytGhostCommentsComments"},_.l(_.jR,{each:function(){return Array((u==null?void 0:u())||3)}},function(){return _.l("div",{class:"ytGhostCommentsGhostCard"},_.l("div",{class:"ytGhostCommentsAvatar"},_.l("div",{class:"ytGhostCommentsCircle"})),_.l("div",{class:"ytGhostCommentsHost"},_.l("div",{class:"ytGhostCommentsMeta"},
_.l("div",{class:_.tx("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.l("div",{class:_.tx("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.l("div",{class:_.tx("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.l("div",{class:"ytGhostCommentsGhostLikeDislike"},_.l("div",{class:_.tx("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.l("div",{class:_.tx("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.Hd,
isInitialLoad:_.Hd,engagementPanel:_.Hd},unsafeExternallySettableAttributes:new Set(["hidden"])});_.UR("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Wa=function(){var G=_.p.apply(this,arguments)||this;G.isOverridable=!1;G.spinnerActive=!1;G.showButton=!1;G.isCommentsSection=!1;G.engagementPanel=!0;G.isShortsGrid=!1;G.isShortsPage=!1;G.isWatchPage=!1;G.originalShowButton=!1;G.endOfList=!1;return G};
_.r(Wa,_.p);_.w=Wa.prototype;_.w.resetIntersectionObserver=function(){var G;(G=this.observer)==null||G.disconnect();this.observer=void 0};
_.w.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var G,B;((G=this.data)==null?void 0:G.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((B=this.data)==null?0:B.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.w.initializeIntersectionObserver=function(){var G=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(B){B=_.C(B);for(var F=B.next();!F.done;F=B.next())F.value.isIntersecting&&(G.triggerContinuation(),G.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.w.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.w.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var G;((G=this.data)==null?0:G.continuationEndpoint)&&(G=_.Q(this.data.continuationEndpoint,_.QO))&&this.ytdReduxBehavior.dispatch(_.d5({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:G}}))};
_.w.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.w.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.w.onServiceRequestCompleted=function(G,B){if(!_.X("kevlar_hide_spinner_on_empty_continuation_killswitch")){var F;(F=B.actions)!=null&&F.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.w.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.w.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.w.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.w.numberOfGhostCommentsChanged=function(){var G=3;if(this.engagementPanel){var B,F,D;G=Math.floor(((((B=this.hostElement)==null?void 0:(F=B.parentElement)==null?void 0:(D=F.parentElement)==null?void 0:D.scrollHeight)||108)-108)/108);G=this.isInitialLoad?Math.max(G,3):3}B=[].concat(_.gi(this.hostElement.querySelectorAll("yt-ghost-comments")));B=_.C(B);for(F=B.next();!F.done;F=B.next())F=F.value,F.numberOfComments=G,F.isInitialLoad=this.isInitialLoad,F.engagementPanel=this.engagementPanel};
_.w.detached=function(){this.resetIntersectionObserver()};
_.ZN.Object.defineProperties(Wa.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Wa.prototype.numberOfGhostCommentsChanged=Wa.prototype.numberOfGhostCommentsChanged;Wa.prototype.continuationTriggerOffsetChanged=Wa.prototype.continuationTriggerOffsetChanged;Wa.prototype.showButtonChanged=Wa.prototype.showButtonChanged;Wa.prototype.onYtServiceRequestCompletedForButtonRenderer=Wa.prototype.onYtServiceRequestCompletedForButtonRenderer;Wa.prototype.onServiceRequestCompleted=Wa.prototype.onServiceRequestCompleted;Wa.prototype.onYtServiceRequestSentForButtonRenderer=Wa.prototype.onYtServiceRequestSentForButtonRenderer;
Wa.prototype.observeData=Wa.prototype.observeData;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Q8.YtVisibilityBehavior),_.I("design:type",Object)],Wa.prototype,"ytVisibilityBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Wa.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],Wa.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"isOverridable",void 0);_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"spinnerActive",void 0);_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"showButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Wa.prototype,"isCommentsSection",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Wa.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"isShortsGrid",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.O3J}),_.I("design:type",Object)],Wa.prototype,"isShortsPage",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.kiS}),_.I("design:type",Object)],Wa.prototype,"isWatchPage",void 0);_.c([_.v(),_.I("design:type",Number)],Wa.prototype,"continuationTriggerOffset",void 0);
_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"endOfList",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Wa.prototype,"isInitialLoad",void 0);_.c([_.iA("ytd-button-renderer"),_.I("design:type",_.MR)],Wa.prototype,"buttonRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],Wa.prototype,"buttonOverrides",void 0);
_.c([_.v(),_.O("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.I("design:type",Object),_.I("design:paramtypes",[])],Wa.prototype,"showGhostCardComments",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wa.prototype,"observeData",null);
_.c([_.Pm("yt-service-request-sent-button-renderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wa.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],Wa.prototype,"onServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-completed-button-renderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wa.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.c([_.Ry("showButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wa.prototype,"showButtonChanged",null);
_.c([_.Ry("continuationTriggerOffset"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wa.prototype,"continuationTriggerOffsetChanged",null);_.c([_.Ga("isInitialLoad","engagementPanel"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wa.prototype,"numberOfGhostCommentsChanged",null);_.c([_.mC({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Wa);
_.d(Wa,"ytd-continuation-item-renderer",function(){if(LBN!==void 0)return LBN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return LBN=G},{mode:1});var Hbt;var Ha=function(){var G=_.p.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;G.downloadedVideoPlaybackPosition=0;return G};
_.r(Ha,_.p);Ha.prototype.dataChanged=function(){var G;this.videoData=_.Q((G=this.data)==null?void 0:G.renderer,AWa);this.transferStateChanged()};
Ha.prototype.downloadProgressChanged=function(){if(this.entityInfo){var G=Object.assign({},this.videoData),B=iUQ(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),F=B.publishedTimeText,D=B.badges;G.shortViewCountText=B.shortViewCountText;G.publishedTimeText=F;G.badges=D;this.set("videoData",G)}};
Ha.prototype.transferStateChanged=function(){if(this.entityInfo){var G=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",B=_.DV(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!F9(this.entityInfo.policyEntity),F=Object.assign({},this.videoData),D=iUQ(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),u=D.publishedTimeText,R=D.badges;F.shortViewCountText=
D.shortViewCountText;F.publishedTimeText=u;F.badges=R;F.isDisabled=B;F.isWatched=this.downloadedVideoPlaybackPosition>0;F.navigationEndpoint=B?void 0:ezS(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var N;G&&((N=this.videoData)==null?0:N.videoId)&&!_.X("dl_resume_click_killswitch")&&(F.isDisabled=!1,F.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});F.thumbnailOverlays=GOs(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",F)}};
Ha.prototype.transferStateChanged=Ha.prototype.transferStateChanged;Ha.prototype.downloadProgressChanged=Ha.prototype.downloadProgressChanged;Ha.prototype.dataChanged=Ha.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Ha.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ha.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],Ha.prototype,"videoData",void 0);_.c([_.v({selector:QU,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"downloadProgress",void 0);_.c([_.v(),_.I("design:type",Number)],Ha.prototype,"relativeDateReference",void 0);_.c([_.v({selector:_.mD,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"transferState",void 0);
_.c([_.v({selector:gVz,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"downloadState",void 0);_.c([_.v({selector:VpI,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"offlinePolicyAction",void 0);_.c([_.v({selector:vVM,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.c([_.v({selector:jw,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"downloadedVideoPlaybackPosition",void 0);_.c([_.v({selector:MpI,selectorArgs:["videoData.videoId"]}),_.I("design:type",Object)],Ha.prototype,"entityInfo",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ha.prototype,"isDownloading",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ha.prototype,"dataChanged",null);
_.c([_.Ry("downloadProgress"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ha.prototype,"downloadProgressChanged",null);_.c([_.Ry("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ha.prototype,"transferStateChanged",null);
_.c([_.mC({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Ha);
_.d(Ha,"ytd-downloaded-video-grid-video-renderer",function(){if(Hbt!==void 0)return Hbt;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Hbt=G},{mode:2});var key;var kh=function(){};
kh.prototype.resolve=function(G,B){var F=this;return _.n(function(D){return D.yield(F.resolveCommand(G,B),0)})};var Obq,Ot;Obq=pkz(function(G){return G.targetId},{shouldPersist:!1});
Ot=Obq.updateData;_.eP=Obq.useUpdatableData;var enT,$48;enT=pkz(function(G){return G.targetId});
$48=enT.updateData;_.zn7=enT.useUpdatableData;var bbs=dEM.bind(null,Ot),VBP=dEM.bind(null,$48);(function(G,B,F){var D=_.Q(F==null?void 0:F.updatedRenderer,_.EYq);return D?G({targetId:B},function(){return D}):!1}).bind(null,Ot);var $h=function(){};
_.r($h,kh);$h.prototype.resolveCommand=function(G){var B;return _.n(function(F){B=_.Q(G,SJ6);if(!B)return F.return();bbs(B.targetId,B);_.di(F)})};var zF=function(){var G=_.DO.apply(this,arguments)||this;G.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-restore-cached-continuable-data-command":"handleRestoreCachedContinuableDataCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return G};
_.r(zF,_.DO);_.w=zF.prototype;_.w.configureContinuationPathMap=function(){return{}};
_.w.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.w.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.w.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.w.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.w.handleAppendContinuationItemsAction=function(G){var B=_.Q(G,_.uMs);if(this.data&&this.data.targetId&&B&&this.continuationPathMap&&B.targetId===this.data.targetId){var F=oPo(G),D=F&&this.continuationPathMap[F];if(D&&F)if(G=this.get(D,this.data)){a:{for(F=0;F<G.length;F++){var u=G[F],R=void 0,N=!!_.Q((R=_.Q(u,t7t))==null?void 0:R.content,_.oYU);if(_.Q(u,_.c0)||N)break a}F=G.length}D="data."+D;B.continuationItems?F===G.length-1?(this.pop(D),this.push.apply(this,[D].concat(_.gi(B.continuationItems)))):
F===G.length?this.push.apply(this,[D].concat(_.gi(B.continuationItems))):this.splice.apply(this,[D,F,1].concat(_.gi(B.continuationItems))):this.splice(D,F,1);(_.X("web_enable_voting_animation")||_.X("enable_music_web_cairo_voting_animation"))&&_.cZ(this.hostElement,"yt-append-continuation-items-action-finished");_.cZ(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.em(new _.Uf("append continuation items does not exist",F));else _.em(new _.Uf("append continuation path does not exist",
F))}};
_.w.handleReloadContinuationItemsCommand=function(G){var B=_.Q(G,SJ6);if(this.data&&B){if(!_.X("web_reload_continuation_items_command_resolver_killswitch")){var F=_.te().resolve(_.fH($h));F&&F.resolveCommand(G)}if(this.data.targetId&&this.continuationPathMap&&B.targetId===this.data.targetId&&(!_.X("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||B.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var D;F=(D=B.slot)==null?void 0:D.replace("RELOAD_CONTINUATION_SLOT_",
"");D=(G=oPo(G)+"-"+(F==null?void 0:F.toLowerCase()))&&this.continuationPathMap[G];if(!D||!G||!F)_.em(new _.Uf("reload continuation path does not exist",G));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(B)){if(B.replaceWithFirstItem){var u;this.set("data."+D,((u=B.continuationItems)==null?0:u.length)?B.continuationItems[0]:{})}else this.set("data."+D,B.continuationItems?B.continuationItems:[]);vct(this)}}}};
_.w.handleRestoreCachedContinuableDataCommand=function(G){G=_.Q(G,aTv);var B;(B=this.data)!=null&&B.targetId&&(G==null?void 0:G.targetId)===this.data.targetId&&vct(this)};
var vct=function(G){G.continuationIsReloading=!1;G.reloadUiContent=void 0;_.cZ(G.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
zF.prototype.handleShowReloadUiCommand=function(G){G=_.Q(G,Q3q);var B;((B=this.data)==null?0:B.targetId)&&(G==null?0:G.targetId)&&G.targetId===this.data.targetId&&(this.continuationIsReloading=!0,G.content&&(this.reloadUiContent=G.content))};
zF.prototype.observeData=zF.prototype.observeData;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],zF.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],zF.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zF.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],zF.prototype,"continuationIsReloading",void 0);
_.c([_.v(),_.I("design:type",Object)],zF.prototype,"reloadUiContent",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zF.prototype,"observeData",null);_.c([_.uA()],zF);_.be=[_.aS.YtComponentBehavior,_.Za.YtActionHandlerBehavior,zF.prototype];_.VB={};_.VB.YtNextContinuationBehavior=[_.zT.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",_.x7(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.x7(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(G,B){G.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,B,{}):(G={locationRetrieved:function(F){this.makeNextContinuationRequest_(F,B,{})}.bind(this)},_.cZ(this.hostElement,"yt-retrieve-location",G))},
makeNextContinuationRequest_:function(G,B,F){_.ag("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();G=B(G);var D;this.canUseContextualNetworkManager_()&&(D=this.getNetworkManager());D||(D=_.te().resolve(_.un));B=_.OR.instance;if(_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&B){D=_.v2([G.startsWith("/")?G.substr(1):G]);var u,R;F=_.rB(B,{},D,F==null?void 0:(u=F.context)==null?void 0:(R=u.clickTracking)==null?void 0:R.clickTrackingParams).then(function(N){return{response:N}})}else F=
this.nextContinuation.usePost?D.postData(G,F):D.fetchData(G);
F.then(this.updateNextContinuationData_.bind(this,G));this.pendingContinuationRequest_=F;this.startListeningForNavigate_()},
updateNextContinuationData_:function(G,B){var F=this;_.ag("ncl");this.pendingContinuationRequest_=void 0;if(B){var D={};this.nextContinuation&&(D=this.nextContinuation);if(B.response&&B.response.continuationContents&&B.response.continuationContents[D.continuationType]){G=B.response.continuationContents[D.continuationType];var u=D.header||"data.header",R=G[D.responseHeaderKey||"header"];R&&this.set(u,R);u=D.contentsArray||"data.contents";R=this.getContents_(G,D.responseContentsKey||"contents")||[];
this.pathExists_(u)?(R.unshift(u),this.push.apply(this,R)):this.set(u,R);R&&(JzI(_.Rh(),B.response,this.hostElement,function(N){_.T1(F.hostElement,"yt-store-grafted-ve-action",[N])}),_.cZ(this.hostElement,"yt-next-continuation-data-updated",{continuationData:B,
page:this,contentsArray:u}));this.set(D.continuationsArray||"data.continuations",G[D.responseContinuationsKey||"continuations"]||[])}else B.reload?_.em(new _.Uf("Reloading from continuation is unsupported")):B.responseContext&&B.responseContext.errors||(delete B.xsrf_token,delete B.timing,delete B.endpoint,delete B.csn,B.responseContext&&delete B.responseContext.serviceTrackingParams,u={request:_.TJ(G,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(B).sort()},B.response&&(u.responseContentKeys=
Object.keys(B.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(u.continuationType=this.nextContinuation.continuationType.substr(0,256)),B=new _.Uf("Malformed continuation",u),G.indexOf("/comment_service_ajax")==0?_.em(B):_.k2(B)),this.set(D.continuationsArray||"data.continuations",[])}else _.Oz(new _.Uf("Missing continuation response",G))},
getContents_:function(G,B){B=B.split(".");return _.UK.getValueByKeys(G,B)},
pathExists_:function(G){var B=this;G=G.toString().split(".");for(var F=0;F<G.length;F++)if(B=B[G[F]],B===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var ocN;var MBG;var va=function(){var G=_.p.apply(this,arguments)||this;G.triggered_=!1;return G};
_.r(va,_.p);_.w=va.prototype;_.w.attached=function(){this.maybeTriggerAutoload()};
_.w.detached=function(){this.hasBeenTriggered_=!1};
_.w.onPrescanVisible=function(){this.onShow()};
_.w.onShow=function(){this.showButton||this.trigger()};
_.w.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.cZ(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.w.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.w.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.w.computeLabel_=function(G,B){return G===void 0?null:G.label||!B?G.label:this.showMoreText_};
_.w.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.w.getContinuationUrl=function(G){var B={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(B.itct=this.data.clickTrackingParams);return _.xi(G,B)};
_.w.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
va.prototype.showButtonChanged_=va.prototype.showButtonChanged_;va.prototype.observeData_=va.prototype.observeData_;_.c([_.k(_.Q8.YtVisibilityBehavior),_.I("design:type",Object)],va.prototype,"ytVisibilityBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],va.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],va.prototype,"showButton",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],va.prototype,"showIcon",void 0);_.c([_.v({computed:"computeLabel_(data, showButton)"}),_.I("design:type",Object)],va.prototype,"label",void 0);_.c([_.v({value:_.$9(_.G7("SHOW_MORE",void 0,"Show More"))}),_.I("design:type",Object)],va.prototype,"showMoreText_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],va.prototype,"spinnerActive_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],va.prototype,"hasBeenTriggered_",void 0);
_.c([_.v({value:void 0}),_.I("design:type",String)],va.prototype,"observeVisibleOption",void 0);_.c([_.v({value:void 0}),_.I("design:type",String)],va.prototype,"observeHiddenOption",void 0);_.c([_.v({value:"observe_once"}),_.I("design:type",Object)],va.prototype,"observePrescanOption",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],va.prototype,"observeData_",null);
_.c([_.Ga("showButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],va.prototype,"showButtonChanged_",null);_.c([_.ay({is:"yt-next-continuation",disableElementRegistration:!0})],va);
_.d(va,"yt-next-continuation",function(){if(MBG===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ocN===void 0&&(ocN=document.createElement("template"));var D=ocN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);MBG=G}G=MBG;return G},{mode:2});var pFT;var Ybv;var oA=function(){return _.p.apply(this,arguments)||this};
_.r(oA,_.p);oA.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],oA.prototype,"data",void 0);_.c([_.ay({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],oA);
_.d(oA,"yt-music-pass-small-feature-info-renderer",function(){if(Ybv===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;pFT===void 0&&(pFT=document.createElement("template"));var D=pFT;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Ybv=G}G=Ybv;return G},{mode:2});_.UR("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Mo=function(){var G=_.p.apply(this,arguments)||this;G.isCollapsible=!1;G.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return G};
_.r(Mo,_.p);_.w=Mo.prototype;_.w.computeIsCollapsible=function(G){return!!(((G==null?0:G.showMoreText)||(G==null?0:G.visibleRowCount))&&(G==null?0:G.isCollapsible))};
_.w.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"}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.w.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.w.onIronResize=function(){var G=this;_.kT(this,"updateGridInitItems",function(){G.maybeUpdateInitialItemsDisplayed()})};
_.w.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var G=this.getVisibleWidth();G!==0&&(G=Math.floor(G/214)*(this.data.visibleRowCount||2),G!==this.initialCount&&(this.initialCount=G,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.w.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.w.computeExpandVisible=function(G,B,F,D){return G&&B&&F&&!!D&&!!D.showMoreText};
_.w.computeShowMoreButton=function(G){return{text:G,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.w.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.w.initCollapsed=function(){var G=this;this.ytLazyListBehavior.canShowMore=!1;var B;(this.collapsed=!((B=this.data)==null||!B.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.ft(this,function(){_.Ia(G.hostElement,"yt-refit-popups-action")})};
_.w.fillRestIfNotCollapsible=function(){var G=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!G||this.ytLazyListBehavior.fillRemainingListItems()};
_.w.computeViewAllHidden=function(G,B){return G||!B.viewAllEndpoint};
Mo.prototype.fillRestIfNotCollapsible=Mo.prototype.fillRestIfNotCollapsible;Mo.prototype.initCollapsed=Mo.prototype.initCollapsed;Mo.prototype.onIronResize=Mo.prototype.onIronResize;Mo.prototype.persistentGuideChanged=Mo.prototype.persistentGuideChanged;_.c([_.k(_.Rc),_.I("design:type",Object)],Mo.prototype,"ironResizableBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Mo.prototype,"ytLazyListBehavior",void 0);_.c([_.k(_.VB.YtNextContinuationBehavior),_.I("design:type",Object)],Mo.prototype,"ytNextContinuationBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],Mo.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.k(_.be),_.I("design:type",Object)],Mo.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Mo.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],Mo.prototype,"collapsed",void 0);_.c([_.v(),_.I("design:type",Number)],Mo.prototype,"initialCount",void 0);_.c([_.v({computed:"computeShowMoreButton(data.showMoreText)"}),_.I("design:type",Object)],Mo.prototype,"showMoreButton",void 0);
_.c([_.v({computed:"computeIsCollapsible(data)"}),_.I("design:type",Object)],Mo.prototype,"isCollapsible",void 0);_.c([_.iA("#items"),_.I("design:type",HTMLElement)],Mo.prototype,"items",void 0);_.c([_.Ry("guidePersistentAndVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mo.prototype,"persistentGuideChanged",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mo.prototype,"onIronResize",null);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mo.prototype,"initCollapsed",null);_.c([_.Ry("canShowMore"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mo.prototype,"fillRestIfNotCollapsible",null);_.c([_.mC({is:"ytd-grid-renderer",disableElementRegistration:!0})],Mo);
_.d(Mo,"ytd-grid-renderer",function(){if(key!==void 0)return key;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return key=G},{mode:2});var pF=function(){return _.p.apply(this,arguments)||this};
_.r(pF,_.p);
pF.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"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],pF.prototype,"data",void 0);_.c([_.mC({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],pF);
_.d(pF,"ytd-carousel-ad-renderer",function(){if(jXq!==void 0)return jXq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jXq=G},{mode:1});var AGa;var Yh=function(){return _.p.apply(this,arguments)||this};
_.r(Yh,_.p);_.w=Yh.prototype;_.w.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"}}}};
_.w.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Yh.JSC$15837_CLICK_LOCATION_ID_MAP))};
_.w.onSitelinkTap=function(G){G.stopPropagation();var B,F,D=G==null?void 0:(B=G.model)==null?void 0:(F=B.item)==null?void 0:F.onTap;D&&this.ytSparklesClickLocationBehavior.handleClick(D,G,!1)};
_.w.onTap=function(G){var B=this.data&&this.data.content&&this.data.content.navigationEndpoint;B&&this.ytSparklesClickLocationBehavior.handleClick(B,G,!1)};
_.w.sendImpression=function(){if(this.data&&this.data.content)for(var G=_.C(this.data.content.impressionEndpoints||[]),B=G.next();!B.done;B=G.next()){B=_.C(B.value.loggingUrls||[]);for(var F=B.next();!F.done;F=B.next())F=F.value,F.baseUrl&&Mz(F.baseUrl,F.attributionSrcMode)}};
Yh.prototype.onTap=Yh.prototype.onTap;Yh.prototype.dataChanged=Yh.prototype.dataChanged;Yh.JSC$15837_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"]]);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],Yh.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Yh.prototype,"data",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Yh.prototype,"dataChanged",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Yh.prototype,"onTap",null);_.c([_.mC({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Yh);
_.d(Yh,"ytd-promoted-sparkles-text-search-renderer",function(){if(AGa!==void 0)return AGa;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return AGa=G},{mode:1});var d4a;var AF=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.r(AF,_.p);_.w=AF.prototype;_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.configureRendererStamper=function(){return{"data.menu":{id:_.X("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]]"}}}}}};
_.w.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.w.computeHasAdBadge=function(G){return!(G==null||!G.adBadge)};
_.w.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",AF.JSC$15846_DEFAULT_AD_BADGE_RENDERER),_.tV(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&c9(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,AF.JSC$15846_CLICK_LOCATION_ID_MAP))};
_.w.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var G;(((G=this.data)==null?void 0:G.impressionCommands)||[]).forEach(function(B){B=_.C(B.loggingUrls||[]);for(var F=B.next();!F.done;F=B.next())F=F.value,F.baseUrl&&Mz(F.baseUrl,F.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.w.onTap=function(G){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint,D;(B=(D=this.data)==null?void 0:D.thumbnailNavigationEndpoint)&&_.M6(_.VW(G),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(B,G,!1):F&&this.ytSparklesClickLocationBehavior.handleClick(F,G,!1)};
_.w.handleMuteAd=function(){this.collapsed=!0};
_.w.attached=function(){var G=this;_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ti(G.activeView)})};
_.w.detached=function(){_.X("stop_av_measurement_on_detach")&&Ti(this.activeView)};
_.ZN.Object.defineProperties(AF.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
AF.prototype.dataChanged=AF.prototype.dataChanged;
AF.JSC$15846_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"]]);
AF.JSC$15846_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.G7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],AF.prototype,"actionHandlerBehavior",void 0);
_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],AF.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],AF.prototype,"collapsed",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],AF.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],AF.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.I("design:type",Boolean)],AF.prototype,"fixAlignmentSmallScreens",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs_square")}}),
_.I("design:type",Boolean)],AF.prototype,"useBiggerThumbsSquare",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.mediaHoverOverlay"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"hideHoverOverlay",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"webSearchLayout",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"webSearchLayoutLandscape",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"webSearchLayoutSquare",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.promotedSparklesWebStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"sparklesCtaNoBackground",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.actionButton"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"hideActionButton",null);_.c([_.v({computed:"computeButtonOverride(uiUpdate)"}),_.I("design:type",Object)],AF.prototype,"buttonOverride",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.I("design:type",Boolean)],AF.prototype,"hasNewAdBadge",void 0);_.c([_.O("data.promotedSparklesWebStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AF.prototype,"useRoundedBadge",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],AF.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],AF);
_.d(AF,"ytd-promoted-sparkles-web-renderer",function(){if(d4a!==void 0)return d4a;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return d4a=G},{mode:1});var JGy;var d_=function(){var G=_.p.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.enableMonoStyle=_.X("enable_default_mono_cta_migration_web_client");return G};
_.r(d_,_.p);_.w=d_.prototype;_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.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]]"}}}}}};
_.w.computeShowCta=function(G){return!(G==null||!G.ctaRenderer)};
_.w.onCtaClick=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.ctaRenderer)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.command;D&&this.ytComponentBehavior.resolveCommand(D)};
_.w.onWatchButtonClick=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.watchButtonRenderer)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.command;D&&this.ytComponentBehavior.resolveCommand(D)};
_.w.onTap=function(){};
_.w.dataChanged=function(){if(this.data){var G;_.X("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",d_.JSC$15850_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&c9(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",d_.JSC$15850_DEFAULT_CLICK_LOCATION_BEHAVIOR,d_.JSC$15850_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var B;if(((B=this.data)==null?0:B.forceImpAutoplay)&&_.X("enable_force_imp_autoplay_on_desktop_search")){var F;(F=this.JSC$15851_inlinePreviewHoverListener)==null||oOl(F)}}};
_.w.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var G=_.C(this.data.impressionUrls),B=G.next();!B.done;B=G.next())B=B.value,XrI(B,jhJ(B));this.data.impressionsFired=!0}};
_.w.maybeComputeHref=function(){return null};
_.w.computeIsShortDR=function(G){return!(G==null||!G.watchButtonRenderer)&&!(G==null||!G.ctaRenderer)&&!!this.enableShortDR};
_.w.computeIsNewUiOrShortDr=function(G){return!!this.enableUiUpdate||this.computeIsShortDR(G)};
_.w.computeIsNewUiAndNotShortDr=function(G){return!!this.enableUiUpdate&&!this.computeIsShortDR(G)};
_.w.computeHideAvatar=function(G){return!((G==null?0:G.channelThumbnail)&&this.computeIsNewUiOrShortDr(G))};
_.w.onClick=function(G){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint;if(this.enableShortDR&&F&&(_.Q(F,_.Ow)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(F,G,!!_.Q(F,_.Ow)),G.stopPropagation();else if(F&&_.Q(F,_.Ow))this.ytSparklesClickLocationBehavior.handleClick(F,G,!0),G.stopPropagation();else if(F){var D,u;((D=this.data)==null?0:D.navigationEndpoint)&&((u=this.data)==null?0:u.adPlaybackContextParams)&&(B=this.data.navigationEndpoint,G=this.data.adPlaybackContextParams,
B.commandMetadata&&_.Q(B.commandMetadata,_.xy)&&_.Q(B.commandMetadata,_.xy).url&&(B=_.c5(_.Q(B.commandMetadata,_.xy).url).adurl)&&_.WbJ(B)&&_.V9(_.fS(B),{encoded_ad_playback_context:G}));this.ytComponentBehavior.resolveCommand(F)}};
_.w.computeButtonOverride=function(G){if(this.computeIsNewUiOrShortDr(G))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.w.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.w.onThumbnailContainerClick=function(G){this.onClick(G)};
_.w.computeThumbnailWidth=function(G,B){return G?B==="MASSIVE"?600:B==="BIG"?500:B==="MEDIUM"?450:420:360};
_.w.attached=function(){var G=this,B;_.X("enable_inline_muted_playback_on_web_search")&&((B=this.data)==null?0:B.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ti(G.activeView)})};
_.w.detached=function(){var G;_.X("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.X("stop_av_measurement_on_detach")&&Ti(this.activeView)};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15851_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:ibN})};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15851_inlinePreviewHoverListener)==null||Jm(G)};
d_.prototype.dataChanged=d_.prototype.dataChanged;d_.prototype.onTap=d_.prototype.onTap;d_.JSC$15850_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.G7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};d_.JSC$15850_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
d_.JSC$15850_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"}];_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],d_.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],d_.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.iA("#main-container"),_.I("design:type",HTMLElement)],d_.prototype,"mainContainer",void 0);
_.c([_.v(),_.I("design:type",Object)],d_.prototype,"isInlinePreviewTriggered",void 0);_.c([_.v(),_.I("design:type",Object)],d_.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],d_.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_video_display_compact_button_group_for_desktop_search")}}),
_.I("design:type",Boolean)],d_.prototype,"enableShortDR",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_vac_ui_update_for_desktop_search")}}),
_.I("design:type",Boolean)],d_.prototype,"enableUiUpdate",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],d_.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.I("design:type",Boolean)],d_.prototype,"showCta",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.I("design:type",Boolean)],d_.prototype,"isShortDr",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.I("design:type",Boolean)],d_.prototype,"isShortDrOrNewUi",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.I("design:type",Boolean)],d_.prototype,"isNewUiAndNotShortDr",void 0);_.c([_.v({computed:"computeButtonOverride(data)"}),_.I("design:type",Object)],d_.prototype,"buttonOverride",void 0);_.c([_.v({computed:"computeSecondaryButtonOverride(data)"}),_.I("design:type",Object)],d_.prototype,"secondaryButtonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],d_.prototype,"enableMonoStyle",void 0);
_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],d_.prototype,"thumbnail",void 0);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d_.prototype,"onTap",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d_.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],d_);
_.d(d_,"ytd-promoted-video-renderer",function(){if(JGy!==void 0)return JGy;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return JGy=G},{mode:1});var cGU;var JF=function(){var G=_.p.apply(this,arguments)||this;G.useRoundedBadge=!0;G.sitelinkIds=[];return G};
_.r(JF,_.p);_.w=JF.prototype;
_.w.configureRendererStamper=function(){return{"data.menu":{id:_.X("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]]"}}}}}};
_.w.dataChanged=function(){var G;(G=this.data)!=null&&G.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,JF.JSC$15856_CLICK_LOCATION_ID_MAP)};
_.w.onTap=function(G){var B,F=(B=this.data)==null?void 0:B.navigationCommand;F&&!_.M6(_.VW(G),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(F,G,!1)};
_.w.onSitelinkTap=function(G){var B,F,D=G==null?void 0:(B=G.model)==null?void 0:(F=B.item)==null?void 0:F.onTap;D&&this.ytSparklesClickLocationBehavior.handleClick(D,G,!1)};
_.w.configureSitelinkClickTargets=function(){var G=this,B,F,D=(B=this.data)==null?void 0:(F=B.clickLocationTargets)==null?void 0:F.find(function(u){return u.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
D&&_.IF(this.hostElement).querySelectorAll(".sitelink").forEach(function(u){_.tV(u,"yt-simple-endpoint",!0);G.sitelinkIds.push(u.id);var R,N;(R=G.ytSparklesClickLocationBehavior)==null||(N=R.clickTargetMap)==null||N.set(u.id,D)})};
_.w.sendImpression=function(){var G,B,F=((G=this.data)==null?void 0:(B=G.impressionCommand)==null?void 0:B.loggingUrls)||[];G=_.C(F);for(B=G.next();!B.done;B=G.next())B=B.value,B.baseUrl&&Mz(B.baseUrl,B.attributionSrcMode)};
_.w.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.ZN.Object.defineProperties(JF.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
JF.prototype.onTap=JF.prototype.onTap;JF.prototype.dataChanged=JF.prototype.dataChanged;JF.JSC$15856_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"]]);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],JF.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],JF.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],JF.prototype,"showFavicon",null);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],JF.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],JF.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.I("design:type",Boolean)],JF.prototype,"enableThumbnailScalingFix",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JF.prototype,"dataChanged",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],JF.prototype,"onTap",null);_.c([_.mC({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],JF);
_.d(JF,"ytd-text-image-no-button-layout-renderer",function(){if(cGU!==void 0)return cGU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return cGU=G},{mode:2});var TVa;var ca=function(){var G=_.p.apply(this,arguments)||this;G.isInlinePlaybackState=!1;G.uiUpdate=_.X("web_modern_buttons");G.hideCta=_.X("hide_cta_for_home_web_video_ads");G.noBottomMargin=!1;G.animateInTimeStamp=_.sD("hide_cta_for_home_web_video_ads_animate_in_time");G.animateInCta=!1;G.isHovered=!1;G.enableMonoStyle=_.X("enable_default_mono_cta_migration_web_client");G.player=null;G.JSC$15863_playerEvents=new Map;G.JSC$15863_preventProgressSaveTimer=null;G.delayedCtaJobId=null;return G};
_.r(ca,_.p);_.w=ca.prototype;_.w.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]]"}}}}}};
_.w.attached=function(){this.JSC$15863_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15863_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.X("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.w.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15863_playerEvents)};
_.w.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",ca.JSC$15862_DEFAULT_CLICK_LOCATION_BEHAVIOR,ca.JSC$15862_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.w.hoverChanged=function(){var G=this;this.delayedCtaJobId&&(_.Lu.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.X("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.yH(_.Lu,function(){G.buttonContainer.classList.add("show-delayed-buttons")},_.sD("delayed_cta_on_web_delay_milliseconds")))};
_.w.setPlayer=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return(B=_.Ia(G.hostElement,"yt-get-inline-preview-player-action"))&&B[0]?F.yield(B[0].getPlayerPromise(),3):F.jumpTo(0);G.player=F.yieldResult;G.ytPlayerListenerBehavior.listenToPlayerEvents(G.player,G.JSC$15863_playerEvents);_.di(F)})};
_.w.onPlaybackStart=function(){var G=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15863_preventProgressSaveTimer=_.Tm(_.Lu,function(){G.JSC$15863_preventProgressSaveTimer=null},1E4))};
_.w.onVideoProgress=function(G){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&G>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.w.resetPreventProgressSaveTimer=function(){_.Lu.cancelJob(this.JSC$15863_preventProgressSaveTimer);this.JSC$15863_preventProgressSaveTimer=null};
_.w.getSimpleString=function(G){return _.zx(G)};
_.w.onClick=function(G){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint,D;B=(D=this.data)==null?void 0:D.channelEndpoint;var u,R;((R=_.Q((u=this.data)==null?void 0:u.adCtaButton,_.Xq))==null?0:R.command)&&_.M6(_.VW(G),this.hostElement,["call-to-action"])||(B&&_.M6(_.VW(G),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(B,G,!1):!_.M6(_.VW(G),this.hostElement,
["secondary-button"])&&F&&(_.X("enable_short_dr_for_desktop_launchable")?(D=!!_.Q(F,_.Ow),this.isInlinePlaybackState&&D&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(F,G,D)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(F,G,!0))))}};
_.w.updateWatchEndpointStartTime=function(){var G,B;this.player&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&((B=this.data)==null?0:B.navigationEndpoint)&&!this.JSC$15863_preventProgressSaveTimer&&(G=Math.floor(this.player.getCurrentTime()),_.Q(this.data.navigationEndpoint,_.Ow).startTimeSeconds=G,_.Q(this.data.inlinePlaybackEndpoint,_.Ow).startTimeSeconds=G)};
_.w.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.w.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.ZN.Object.defineProperties(ca.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.X("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.watchButton)&&!((B=this.data)==null||!B.adCtaButton)}}});
ca.prototype.hoverChanged=ca.prototype.hoverChanged;ca.prototype.dataChanged=ca.prototype.dataChanged;
ca.JSC$15862_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"]]);
ca.JSC$15862_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"}];
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],ca.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],ca.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],ca.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ca.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"isInlinePlaybackState",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],ca.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"uiUpdate",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"hideCta",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"noBottomMargin",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"animateInCta",void 0);_.c([_.v({computed:"computeButtonOverride(uiUpdate)"}),_.I("design:type",Object)],ca.prototype,"buttonOverride",void 0);
_.c([_.v({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.I("design:type",Object)],ca.prototype,"secondaryButtonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"isHovered",void 0);_.c([_.iA("#button-container"),_.I("design:type",HTMLElement)],ca.prototype,"buttonContainer",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],ca.prototype,"typographyBump",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("typographyBump"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ca.prototype,"typographyBumpV2",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ca.prototype,"enableMonoStyle",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ca.prototype,"dataChanged",null);
_.c([_.Ga("isHovered"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ca.prototype,"hoverChanged",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ca.prototype,"isButtonGroup",null);_.c([_.mC({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],ca);
_.d(ca,"ytd-ad-inline-playback-meta-block",function(){if(TVa!==void 0)return TVa;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return TVa=G},{mode:2});var IUG;var TF=function(){var G=_.p.apply(this,arguments)||this;G.noBottomMargin=!1;G.isInlinePreviewTriggered=!1;G.JSC$15868_activeViewMeasurementDataResolver=_.zn();return G};
_.r(TF,_.p);_.w=TF.prototype;_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15868_activeViewMeasurementDataResolver.promise.then(function(B){c9(G.activeView,B)});
_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ti(G.activeView)})};
_.w.detached=function(){this.clearInlinePreviewHoverListeners();_.X("stop_av_measurement_on_detach")&&Ti(this.activeView)};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15868_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.JSC$15868_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ibN})};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15868_inlinePreviewHoverListener)==null||Jm(G)};
_.w.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15868_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",TF.JSC$15867_DEFAULT_CLICK_LOCATION_BEHAVIOR,TF.JSC$15867_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var B;if((B=this.data)==
null?0:B.forceImpAutoplay){var F;(F=this.JSC$15868_inlinePreviewHoverListener)==null||oOl(F)}};
_.w.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.w.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(F,G,!!_.Q(F,_.Ow));G.stopPropagation()}};
_.w.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.w.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var B,F,D=(F=_.Q((B=this.data)==null?void 0:B.onImpression,_.gs))==null?void 0:F.commands;D&&(D.forEach(function(u){u.clickTrackingParams&&delete u.clickTrackingParams;G.ytComponentBehavior.resolveCommand(u)}),this.data.impressionsFired=!0)}};
_.ZN.Object.defineProperties(TF.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15868_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TF.prototype.onTypographyBumpChanged=TF.prototype.onTypographyBumpChanged;TF.prototype.onDataChanged=TF.prototype.onDataChanged;TF.JSC$15867_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);TF.JSC$15867_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"}];
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],TF.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],TF.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],TF.prototype,"ytdLockupBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],TF.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],TF.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TF.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],TF.prototype,"noBottomMargin",void 0);_.c([_.v(),_.I("design:type",Object)],TF.prototype,"isInlinePreviewTriggered",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],TF.prototype,"miniMode",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],TF.prototype,"typographyBump",void 0);_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],TF.prototype,"thumbnail",void 0);_.c([_.iA("#dismissible"),_.I("design:type",HTMLElement)],TF.prototype,"JSC$15868_dismissibleMedia",void 0);
_.c([_.iA("ytd-ad-inline-playback-meta-block"),_.I("design:type",HTMLElement)],TF.prototype,"adInlinePlaybackMetaBlock",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TF.prototype,"onDataChanged",null);_.c([_.Ry("typographyBump"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TF.prototype,"onTypographyBumpChanged",null);
_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],TF.prototype,"isHovered",null);_.c([_.mC({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],TF);
_.d(TF,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(IUG!==void 0)return IUG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IUG=G},{mode:1});var fUL;var IA=function(){var G=_.p.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.JSC$15871_activeViewMeasurementDataResolver=_.zn();return G};
_.r(IA,_.p);_.w=IA.prototype;_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15871_activeViewMeasurementDataResolver.promise.then(function(B){c9(G.activeView,B)})};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15871_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.JSC$15871_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ibN})};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15871_inlinePreviewHoverListener)==null||Jm(G)};
_.w.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15871_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",IA.JSC$15870_DEFAULT_CLICK_LOCATION_BEHAVIOR,IA.JSC$15870_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))};
_.w.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(F,G,!0);G.stopPropagation()}};
_.w.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.w.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var B,F,D=(F=_.Q((B=this.data)==null?void 0:B.onImpression,_.gs))==null?void 0:F.commands;D&&(D.forEach(function(u){u.clickTrackingParams&&delete u.clickTrackingParams;_.te().resolve(_.Wr).resolveCommand(u,{form:{element:G.hostElement}})}),this.data.impressionsFired=!0)}};
_.ZN.Object.defineProperties(IA.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15871_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
IA.prototype.onDataChanged=IA.prototype.onDataChanged;IA.JSC$15870_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);IA.JSC$15870_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"}];_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],IA.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],IA.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],IA.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],IA.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],IA.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],IA.prototype,"isInlinePreviewTriggered",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],IA.prototype,"miniMode",void 0);_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],IA.prototype,"thumbnail",void 0);_.c([_.iA("#dismissible"),_.I("design:type",HTMLElement)],IA.prototype,"JSC$15871_dismissibleMedia",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IA.prototype,"onDataChanged",null);_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],IA.prototype,"isHovered",null);_.c([_.mC({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],IA);
_.d(IA,"ytd-video-display-full-buttoned-renderer",function(){if(fUL!==void 0)return fUL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return fUL=G},{mode:1});var dC=function(G,B,F,D){D=D===void 0?!1:D;_.Gs.call(this,G);this.adsClientErrorMessage=F;this.aggressivelySample=D;this.args=[];B&&this.args.push(B)};
_.r(dC,_.Gs);var YP=function(G,B,F,D){D=D===void 0?!1:D;_.Gs.call(this,G);this.adsClientErrorMessage=F;this.aggressivelySample=D;this.args=[];B&&this.args.push(B)};
_.r(YP,_.Gs);var tBw=function(G){_.uz.call(this);var B=this;this.initializationFunction=G;this.instance=null;this.addOnDisposeCallback(function(){_.ve(B.instance);B.instance=null})};
_.r(tBw,_.uz);tBw.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.$P("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var S3c=function(){var G=new Map;[].forEach(function(B){G.set(B.JSC$31551_getType(),B)});
this.getters=G};new Promise(function(){});var I_S=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"]]),czl=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"}]]),Zba=function(G){this.experimentApiProvider=G;G=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=G<.1};var fF=function(G,B,F,D){_.uz.call(this);this.adsControlFlowEventListeners=B;this.adEventLogger=F;this.experimentApiProvider=D;this.adsControlFlowManagerHelper=G(this,this,this,this,this);_.gq(this,this.adsControlFlowManagerHelper);G=_.C(B);for(B=G.next();!B.done;B=G.next())_.gq(this,B.value)};
_.r(fF,_.uz);var gc7=function(G,B,F,D){tF(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",B,F,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,D);G=_.C(G.adsControlFlowEventListeners);for(D=G.next();!D.done;D=G.next())gc7(D.value,B,F)};
_.w=fF.prototype;_.w.onOpportunityProcessedExternallyManaged=function(G,B,F,D){tF(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",G,F,B,void 0,void 0,void 0,void 0,void 0,void 0,void 0,D)};
_.w.onSlotReceivedExternallyManaged=function(G,B){Zr(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G,B)};
_.w.onSlotEntered=function(G){if(g_(this.adsControlFlowManagerHelper,G)!=null){Zr(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);this.adsControlFlowManagerHelper.onSlotEntered(G);for(var B=_.C(this.adsControlFlowEventListeners),F=B.next();!F.done;F=B.next())F.value.onSlotEntered(G);if(g_(this.adsControlFlowManagerHelper,G)!=null&&g_(this.adsControlFlowManagerHelper,G).isOccupyingSlotType()&&SP(this.adsControlFlowManagerHelper,G)&&!Sbq(this.adsControlFlowManagerHelper,G)){var D;st(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",G,(D=SP(this.adsControlFlowManagerHelper,G))!=null?D:void 0);G=g_(this.adsControlFlowManagerHelper,G);G.slotLifecycleStage!=="entered"&&xh(G.slot,G.slotLifecycleStage,"enterLayoutForSlot");G.slotLifecycleStage="rendering";G.registeredLayoutRenderingAdapter.startRendering(G.layout)}}};
_.w.onSlotExited=function(G){if(g_(this.adsControlFlowManagerHelper,G)!=null){Zr(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);this.adsControlFlowManagerHelper.onSlotExited(G);for(var B=_.C(this.adsControlFlowEventListeners),F=B.next();!F.done;F=B.next())F.value.onSlotExited(G);g_(this.adsControlFlowManagerHelper,G)!=null&&g_(this.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests&&sXG(this,G)}};
_.w.onLayoutReceivedExternallyManaged=function(G,B,F){G.managerLayer!=="core"&&st(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",G,B,F)};
var x4P=function(G,B,F){if(g_(G.adsControlFlowManagerHelper,B)!=null){st(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",B,F);G=_.C(G.adsControlFlowEventListeners);for(var D=G.next();!D.done;D=G.next())x4P(D.value,B,F)}};
fF.prototype.onLayoutExited=function(G,B,F){if(g_(this.adsControlFlowManagerHelper,G)!=null){st(this.adEventLogger,Thg(F),G,B);this.adsControlFlowManagerHelper.onLayoutExited(G,B);for(var D=_.C(this.adsControlFlowEventListeners),u=D.next();!u.done;u=D.next())u.value.onLayoutExited(G,B,F);(F=SP(this.adsControlFlowManagerHelper,G))&&B.layoutId===F.layoutId&&PWq(this,G)}};
fF.prototype.disposeInternal=function(){var G=Grq(this.adsControlFlowManagerHelper);G=_.C(G);for(var B=G.next();!B.done;B=G.next())sXG(this,B.value);_.uz.prototype.disposeInternal.call(this)};
var sXG=function(G,B){if(g_(G.adsControlFlowManagerHelper,B)!=null)if(g_(G.adsControlFlowManagerHelper,B).JSC$31581_isSlotExitRequested()||g_(G.adsControlFlowManagerHelper,B).JSC$31581_isLayoutExitRequested())g_(G.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(g_(G.adsControlFlowManagerHelper,B).isOccupyingSlotType())g_(G.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests=!0,PWq(G,B);else if(g_(G.adsControlFlowManagerHelper,B).JSC$31581_isSlotFillRequested())g_(G.adsControlFlowManagerHelper,
B).markedForUnscheduleAfterOutboundAdapterRequests=!0,g_(G.adsControlFlowManagerHelper,B)!=null&&(Zr(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",B),B=g_(G.adsControlFlowManagerHelper,B),B.fulfillmentLifecycleStage="fill_cancel_requested",B.registeredFulfillmentAdapter.cancelSlotFilling());else{var F=SP(G.adsControlFlowManagerHelper,B),D;G.experimentApiProvider.get();(D=_.X("h5_enable_layout_unscheduling_events"))&&(F?BHa(G,B,F):_.$P(Error("Mh"),B,F,void 0,!1));Zr(G.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",B);var u=g_(G.adsControlFlowManagerHelper,B),R=B.slotEntryTrigger,N=u.registeredSlotEntryTriggerAdapters.get(R.triggerId);N&&(N.unregisterTrigger(R),u.registeredSlotEntryTriggerAdapters.delete(R.triggerId));R=_.C(B.slotFulfillmentTriggers);for(N=R.next();!N.done;N=R.next()){N=N.value;var y=u.registeredFulfillmentTriggerAdapters.get(N.triggerId);y&&(y.unregisterTrigger(N),u.registeredFulfillmentTriggerAdapters.delete(N.triggerId))}R=_.C(B.slotExpirationTriggers);
for(N=R.next();!N.done;N=R.next())if(N=N.value,y=u.registeredExpirationTriggerAdapters.get(N.triggerId))y.unregisterTrigger(N),u.registeredExpirationTriggerAdapters.delete(N.triggerId);u.hasLayout()&&(R=u.layout,Pa(u,R.layoutExitNormalTriggers),Pa(u,R.layoutExitSkipTriggers),Pa(u,R.layoutExitMuteTriggers),Pa(u,R.layoutExitUserInputSubmittedTriggers),Pa(u,R.layoutExitUserCancelledTriggers));u.registeredFulfillmentAdapter=void 0;u.registeredSlotAdapter!=null&&(u.registeredSlotAdapter.release(),u.registeredSlotAdapter=
void 0);u.registeredLayoutRenderingAdapter!=null&&(u.registeredLayoutRenderingAdapter.release(),u.registeredLayoutRenderingAdapter=void 0);u=G.adsControlFlowManagerHelper;g_(u,B)&&(u=imw(u,B.slotType+"_"+B.slotPhysicalPosition))&&u.delete(B.slotId);Zr(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",B);G=_.C(G.adsControlFlowEventListeners);for(u=G.next();!u.done;u=G.next())u=u.value,u.onSlotUnscheduled(B),F&&!D&&BHa(u,B,F)}},BHa=function(G,B,F){st(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
B,F);
st(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",B,F);G=_.C(G.adsControlFlowEventListeners);for(var D=G.next();!D.done;D=G.next())D=D.value,F&&BHa(D,B,F)},PWq=function(G,B){if(g_(G.adsControlFlowManagerHelper,B)!=null&&g_(G.adsControlFlowManagerHelper,B).isOccupyingSlotType()){var F=SP(G.adsControlFlowManagerHelper,B);
if(F&&Sbq(G.adsControlFlowManagerHelper,B)){if(g_(G.adsControlFlowManagerHelper,B)!=null){var D=G.adEventLogger,u;var R=((u=czl.get("abandoned"))==null?void 0:u.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";st(D,R,B,F);G=g_(G.adsControlFlowManagerHelper,B);G.slotLifecycleStage!=="rendering"&&xh(G.slot,G.slotLifecycleStage,"exitLayout");G.slotLifecycleStage="rendering_stop_requested";G.registeredLayoutRenderingAdapter.stopRendering(F,"abandoned")}}else{Zr(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
B);try{D=g_(G.adsControlFlowManagerHelper,B);if(!D)throw new YP("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");D.slotLifecycleStage!=="enter_requested"&&D.slotLifecycleStage!=="entered"&&D.slotLifecycleStage!=="rendering"&&xh(D.slot,D.slotLifecycleStage,"exitSlot");D.slotLifecycleStage="exit_requested";if(D.registeredSlotAdapter===void 0)throw D.slotLifecycleStage="scheduled",new YP("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
D.registeredSlotAdapter.exit()}catch(N){N instanceof YP&&N.adsClientErrorMessage?(Fya(G.adEventLogger,N.adsClientErrorMessage,B),_.$P(N,B,void 0,void 0,N.aggressivelySample)):(Fya(G.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),_.$P(N,B))}}}};var GQ=function(G,B,F,D,u,R){_.uz.call(this);this.registry=G;this.experimentApiProvider=R;this.slotMap=new Map};
_.r(GQ,_.uz);var imw=function(G,B){return(G=G.slotMap.get(B))?G:new Map},g_=function(G,B){return imw(G,B.slotType+"_"+B.slotPhysicalPosition).get(B.slotId)},Grq=function(G){var B=[];
G.slotMap.forEach(function(F){F=_.C(F.values());for(var D=F.next();!D.done;D=F.next())B.push(D.value.slot)});
return B};
GQ.prototype.onSlotEntered=function(G){G=g_(this,G);G.slotLifecycleStage!=="enter_requested"&&xh(G.slot,G.slotLifecycleStage,"onSlotEntered");G.slotLifecycleStage="entered"};
var Sbq=function(G,B){G=g_(G,B);return G.hasLayout()&&G.isRendering()},SP=function(G,B){(G=g_(G,B))?G.hasLayout()&&!G.layout&&_.$P("Unexpected empty layout",B):_.$P("Unexpected undefined slotState",B);
return(G==null?void 0:G.layout)||null};
GQ.prototype.onSlotExited=function(G){G=g_(this,G);G.slotLifecycleStage!=="exit_requested"&&xh(G.slot,G.slotLifecycleStage,"onSlotExited");G.slotLifecycleStage="scheduled"};
GQ.prototype.onLayoutExited=function(G,B){G=g_(this,G);G.isPrimaryLayout(B)&&(G.slotLifecycleStage!=="rendering_stop_requested"&&xh(G.slot,G.slotLifecycleStage,"onLayoutExited"),G.slotLifecycleStage="entered")};
var Pa=function(G,B){B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=G.registeredLayoutExitTriggerAdapters.get(F.triggerId);D&&(D.unregisterTrigger(F),G.registeredLayoutExitTriggerAdapters.delete(F.triggerId))}},xh=function(G,B,F){_.$P("Slot stage was "+B+" when calling method "+F,G)};var uVw=function(G){_.uz.call(this);this.deps=G;this.JSC$15921_adsControlFlowManager=DAq(this)};
_.r(uVw,_.uz);var DAq=function(G){var B=new fF(function(F,D,u,R){return new GQ(G.deps.registry,F,D,u,R,G.deps.experimentApiProvider)},new Set(g68(G.deps.registry).concat(G.deps.listeners)),G.deps.adEventLogger,G.deps.experimentApiProvider);
_.gq(G,B);return B};var $aU=function(){};var R8q=function(G,B){_.uz.call(this);this.experimentApiProvider=G;this.eventLoggingSettingsProvider=B;this.eventCount=0;this.premiumAdSeenEventLogger=zRM()()};
_.r(R8q,_.uz);R8q.prototype.logEvent=function(G){tF(this,G)};
var Zr=function(G,B,F,D){tF(G,B,void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,void 0,D)},st=function(G,B,F,D,u){tF(G,B,void 0,void 0,void 0,F,D?D:void 0,void 0,void 0,F.adSlotLoggingData,D?D.adLayoutLoggingData:void 0,void 0,u);
F=_.te().resolve(_.fH(X0))==null?void 0:QK();B=F==null?void 0:F.adsSeenHotConfig;F=F==null?void 0:F.adsHotConfig;(B==null?0:B.logOnAdsSeen)&&(F==null?0:F.webEnablePremiumAdsSeenLogging)&&wnv(G,D?D:void 0,u)},Fya=function(G,B,F){tF(G,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:B})},tF=function(G,B,F,D,u,R,N,y,U,q,h,K,a){a=a===void 0?0:a;
COP(G.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+B,"slot:",R,"layout:",N,"ping:",y,"Opportunity:",{opportunityType:F,associatedSlotId:D,slotsFromOpportunity:u,triggerBundle:U,adSlotLoggingData:q,adLayoutLoggingData:h});try{var m=function(){G.experimentApiProvider.get();if(B!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){B||_.$P("Empty PACF event type",R,N);var L=G.eventLoggingSettingsProvider.get();var W;(W=L.alwaysIncludeDebugData)||(L.experimentApiProvider.get(),W=
!1);L=W;W={eventType:B,eventOrder:++G.eventCount};var e={};R&&(e.slotData=tuc(L,R));if(N){var b={type:N.layoutType,controlFlowManagerLayer:I_S.get(N.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L&&(b.debugData={layoutId:N.layoutId});e.layoutData=b}y&&(e.pingData={pingDispatchStatus:y.dispatchStatus,serializedAdPingMetadata:y.ping.serializedAdPingMetadata,pingIndex:y.index});U&&(e.triggerData=f_l(U.trigger,U.category));F&&(e.opportunityData=Z6o(L,F,D,u));W.adClientData=e;q&&(W.serializedSlotAdServingData=
q.serializedSlotAdServingDataEntry);h&&(W.serializedAdServingData=h.serializedAdServingDataEntry);K&&(W.errorInfo=K);_.W$("adsClientStateChange",{adsClientEvent:W})}};
a&&a>0?_.mX(_.Kx(),function(){return m()},a):m()}catch(L){COP(G.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.mX(_.Kx(),function(){_.$P(L instanceof Error?L:String(L),R,N,{pacf_message:"exception during pacf logging"})})}},wnv=function(G,B,F){if(B){var D=B.adLayoutLoggingData;
_.mX(_.Kx(),function(){G.premiumAdSeenEventLogger!=null&&D&&_.W$("adsSeenClientLogging",{serializedAdServingDataEntry:D.serializedAdServingDataEntry})},F!=null?F:0)}};var NHq=function(G,B){R8q.call(this,G,B)};
_.r(NHq,R8q);var yKq=function(){},COP=function(G,B){return _.X(B)};var lis=function(){var G=new nga;this.JSC$15946_adsControlFlowManager=(new uVw(G)).JSC$15921_adsControlFlowManager},nga=function(){_.uz.call(this);
var G=this;this.experimentApiProvider=new tBw(function(){return new yKq});
var B=new tBw(function(){return new Zba(G.experimentApiProvider)});
this.adEventLogger=new NHq(this.experimentApiProvider,B);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.r(nga,_.uz);var UAa=function(){},qNs,Bh=function(){qNs||(qNs=new UAa);
return qNs},iD=function(G){if(!G.JSC$15957_externallyManagedSlotAdapterCallback){var B=(new lis).JSC$15946_adsControlFlowManager;
G.JSC$15957_externallyManagedSlotAdapterCallback=B}return G.JSC$15957_externallyManagedSlotAdapterCallback},EgL=function(G,B,F){var D=B.opportunityType,u=Error("Nh");
if(D!==void 0){var R=iD(G);gc7(R,D,void 0,F)}else _.$P(u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});R=[];if(B.adSlotAndLayoutMetadata!==void 0){B=_.C(B.adSlotAndLayoutMetadata);for(var N=B.next();!N.done;N=B.next()){var y=N.value;if(N=y.adSlotMetadata)if(R.push(N),G.onSlotReceivedExternallyManaged(N,F),y.adLayoutMetadata){y=_.C(y.adLayoutMetadata);for(var U=y.next();!U.done;U=y.next())G.onLayoutReceivedExternallyManaged(N,U.value,F)}else F>0&&_.$P("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else F>0&&_.$P("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else F>0&&_.$P("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(D!==void 0)G.onOpportunityProcessedExternallyManaged(D,R,void 0,F);else _.$P(u,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
UAa.prototype.onSlotReceivedExternallyManaged=function(G,B){G=At(G);if(G instanceof YP)_.$P(G,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else iD(this).onSlotReceivedExternallyManaged(G,B)};
UAa.prototype.onLayoutReceivedExternallyManaged=function(G,B,F){G=At(G);B=s0U(B);if(G instanceof YP)_.$P(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(B instanceof dC)_.$P(B,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else iD(this).onLayoutReceivedExternallyManaged(G,B,F)};
UAa.prototype.onOpportunityProcessedExternallyManaged=function(G,B,F,D){var u=[];B=_.C(B);for(var R=B.next();!R.done;R=B.next())R=At(R.value),R instanceof YP?_.$P(R,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):u.push(R);iD(this).onOpportunityProcessedExternallyManaged(G,u,F,D)};
var h8U=function(G,B){B=At(B);if(B instanceof YP)_.$P(B,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var F=iD(G);Zr(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",B);F=_.C(F.adsControlFlowEventListeners);for(var D=F.next();!D.done;D=F.next())D=g_(D.value,B),D.slotLifecycleStage!=="not_scheduled"&&xh(D.slot,D.slotLifecycleStage,"onSlotScheduled"),D.slotLifecycleStage="scheduled";G=iD(G);Zr(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",B);G=_.C(G.adsControlFlowEventListeners);
for(F=G.next();!F.done;F=G.next())F.value.onSlotEntered(B)}},Kyw=function(G,B){B=At(B);
if(B instanceof YP)_.$P(B,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var F=iD(G);Zr(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",B);F=_.C(F.adsControlFlowEventListeners);for(var D=F.next();!D.done;D=F.next())D.value.onSlotExited(B);G=iD(G);Zr(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",B);G=_.C(G.adsControlFlowEventListeners);for(F=G.next();!F.done;F=G.next())F.value.onSlotUnscheduled(B)}},aiU=function(G,B,F){B=At(B);
F=s0U(F);if(B instanceof YP)_.$P(B,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(F instanceof dC)_.$P(F,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var D=iD(G);st(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",B,F);D=_.C(D.adsControlFlowEventListeners);for(var u=D.next();!u.done;u=D.next())u.value.onLayoutScheduled(B,F);G=iD(G);st(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",B,F);G=_.C(G.adsControlFlowEventListeners);
for(D=G.next();!D.done;D=G.next())x4P(D.value,B,F)}},FN=function(G,B,F){B=At(B);
F=s0U(F);if(B instanceof YP)_.$P(B,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(F instanceof dC)_.$P(F,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var D=iD(G);st(D.adEventLogger,Thg("normal"),B,F);D=_.C(D.adsControlFlowEventListeners);for(var u=D.next();!u.done;u=D.next())u.value.onLayoutExited(B,F,"normal");G=iD(G);G=_.C(G.adsControlFlowEventListeners);for(D=G.next();!D.done;D=G.next())BHa(D.value,B,F)}};var mAt=_.Y(function(G){var B=G.data,F=G.listenToTapEvent,D=function(){};
return _.l("ad-button-hover-overlay-view-model",{"on:click":_.gJ(function(u){if(_.X("enable_web_home_top_landscape_image_layout_legacy_click_command")){var R,N=(R=B().interaction)==null?void 0:R.onTap;N&&_.cZ(u.currentTarget,"yt-navigate",{endpoint:_.X1(N)})}}),
class:function(){var u;return((u=B().interaction)==null?0:u.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(u){var R,N=(R=B().interaction)==null?void 0:R.onFirstVisible;u&&N&&_.rJ(N)},
showOption:_.dk}),_.rC(function(){return B().interaction},void 0,function(){return!_.X("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(F==null?void 0:F())}))},function(){return _.X("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.l(_.uR,{data:function(){return B().button}},{adButtonViewModel:function(u){return _.l(_.TO,{data:u.data,
customCommandResolver:D})}}):_.l(_.uR,{data:function(){return B().button}},{adButtonViewModel:_.TO})}())},"uc");var Jt;_.YN(_.Y(function(G){var B=G.data;G=_.tb({visibilityCallback:function(y,U){if(y){var q;(y=(q=B().interaction)==null?void 0:q.onFirstVisible)&&_.rJ(y);var h;if(q=(h=B().adLayoutData)==null?void 0:h.activeViewData)c_(U,q),_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&TP(U)})}else _.X("stop_av_measurement_on_detach")&&TP(U)},
showOption:_.dk,hideOption:J8});var F=_.rC(function(){return B().interaction},void 0,function(){return!0}),D=_.C(_.qg(!1,void 0,"VNDDT")),u=D.next().value,R=D.next().value;
D=_.gJ(function(){R(!0)});
var N=_.gJ(function(){R(!1)});
return _.l("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.VX(G,Dxg,F),"on:mouseenter":D,"on:mouseleave":N},_.l("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.xN({"max-width":function(){return _.X("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.l("div",{class:function(){var y;
a:{var U;switch((y=_.Q(B().thumbnailImage,RyT))==null?void 0:(U=y.imageProperties)==null?void 0:U.renderingAspect){case "RENDERING_ASPECT_SQUARE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}y=void 0}return y}},_.l(_.uR,{data:function(){return B().thumbnailImage}},{adImageViewModel:function(y){return _.l(_.cK,
{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.X("enable_top_landscape_image_experiment_dom_id_web")})}})),_.l("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.l(_.E,{cond:function(){var y,U,q;
return(y=_.Q(B().thumbnailImage,RyT))==null?void 0:(U=y.imageProperties)==null?void 0:(q=U.overlayIcon)==null?void 0:q.iconImage},
then:function(y){return _.l(_.vr,{data:y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.l("div",{class:function(){return u()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.l(_.uR,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(y){return _.l(mAt,
{data:y.data,
listenToTapEvent:!0})}}))),_.l("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.l(_.uR,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.l(sv,{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.X("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;G=_.tb({visibilityCallback:function(y,U){if(y){var q;(y=(q=B().interaction)==null?void 0:q.onFirstVisible)&&_.rJ(y);var h;if(q=(h=B().adLayoutData)==null?void 0:h.activeViewData)c_(U,q),_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&TP(U)})}else _.X("stop_av_measurement_on_detach")&&TP(U)},
showOption:_.dk,hideOption:J8});var F=_.FT(_.mA),D=_.rC(function(){return B().interaction}),u={},R={},N={};
return _.l("square-image-layout-view-model",{class:_.tx("ytwSquareImageLayoutViewModelHost",(u.ytwSquareImageLayoutViewModelHostColumn=F,u)),el:_.VX(G,ucI,D)},_.l("div",{class:_.tx("ytwSquareImageLayoutViewModelHostImage",(R.ytwSquareImageLayoutViewModelHostColumnImage=F,R))},function(){return _.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(y){return _.l(_.cK,{data:y.data,
isGridViewEnabled:F,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.l("div",{class:_.tx("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(N.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=F,N))},_.l(_.uR,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:sv}),function(){return _.l(_.uR,{data:function(){return B().adButton}},{adButtonViewModel:function(y){var U={};
return _.l(_.TO,{data:y.data,className:_.tx((U.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,U.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=F,U))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.noBottomMargin;var D=G.typographyBump;G=_.tb({visibilityCallback:function(K,a){if(K){var m;(K=(m=B().interaction)==null?void 0:m.onFirstVisible)&&_.rJ(K);var L;if(m=(L=B().adLayoutData)==null?void 0:L.activeViewData)c_(a,m),_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&TP(a)})}else _.X("stop_av_measurement_on_detach")&&TP(a)},
showOption:_.dk,hideOption:J8});var u=_.rC(function(){return B().interaction},void 0,function(){return _.X("enable_web_home_top_landscape_image_layout_level_click")}),R=function(){return B().interaction};
R!==void 0&&R!==null||_.Ae(Error("Oh"));var N=function(){var K,a,m;return(K=_.Q(B().thumbnailImage,RyT))==null?void 0:(a=K.background)==null?void 0:(m=a.backgroundImageSource)==null?void 0:m.imageSources};
R=_.C(_.qg(!1,void 0,"NFjwje"));var y=R.next().value,U=R.next().value;R=_.gJ(function(){U(!0)});
var q=_.gJ(function(){U(!1)}),h=function(){return y()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.l("top-landscape-image-layout-view-model",{class:function(){var K;return((K=B().interaction)==null?0:K.onTap)&&_.X("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.VX(G,Rlg,u),"on:mouseenter":R,"on:mouseleave":q},_.l("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.l(_.E,{cond:function(){return N()&&N().length>0},
then:function(){return _.l("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.xN({top:"0","background-image":function(){return"url("+String(N()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.l(_.E,{cond:function(){return!!B().adButtonHoverOverlay},
then:function(){return _.l("div",{class:h},_.l(_.uR,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:mAt}))}}),_.l("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.l(_.uR,{data:function(){return B().thumbnailImage}},{adImageViewModel:function(K){return _.l(_.cK,{data:K.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.X("enable_web_home_top_landscape_image_layout_level_click")})}})),_.l("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.l(_.vr,{data:{sources:[{clientResource:{imageName:_.X("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.l("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.l(_.uR,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(K){return _.l(sv,{data:K.data,
noBottomMargin:function(){return F==null?void 0:F()},
listenToTapEvent:function(){return _.X("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return D==null?void 0:D()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.Hd,
noBottomMargin:_.Hd,typographyBump:_.Hd}});var Xnq=_.Y(function(G){var B=G.data,F=_.tb({visibilityCallback:function(u){var R,N=(R=B().interaction)==null?void 0:R.onFirstVisible;u&&N&&_.rJ(N)},
showOption:_.dk});G=_.rC(function(){return B().interaction},G.customCommandResolver);
var D={};return _.l("ad-text-image-view-model",{class:_.tx("ytwAdTextImageViewModelHost",(D.ytwAdTextImageViewModelHostDarkBackground=function(){return B().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},D)),
el:_.VX(F,G),"aria-label":function(){var u,R;return(u=B().interaction)==null?void 0:(R=u.accessibility)==null?void 0:R.label}},_.l("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.l(_.Wd,{text:function(){return B().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.l(_.E,{cond:function(){return B().overlayIcon},
then:function(u){return _.l("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.l(_.vr,{data:u,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var QZa=_.Y(function(G){var B=G.data;return _.l("feed-ad-sitelink-view-model",{class:function(){var F;return((F=B().interaction)==null?0:F.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.VX(_.rC(function(){return B().interaction},G.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var F,D;return(F=B().interaction)==null?void 0:(D=F.accessibility)==null?void 0:D.label},
role:"link",tabindex:0},_.l(_.Wd,{text:function(){return B().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var jZP=_.Y(function(G){var B=G.data;G={};return _.l("feed-ad-sitelinks-carousel-view-model",{el:_.VX(_.tb({visibilityCallback:function(F){var D,u=(D=B().interaction)==null?void 0:D.onFirstVisible;F&&u&&_.rJ(u)},
showOption:_.dk})),class:_.tx("ytwFeedAdSitelinksCarouselViewModelHost",(G.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return B().style==="FEED_AD_SITELINKS_STYLE_NONE"},G))},_.l(_.uR,{data:function(){return B().sitelinks}},{feedAdSitelinkViewModel:QZa}))},"Ac");_.YN(_.Y(function(G){var B=G.data;G=_.tb({visibilityCallback:function(N,y){if(N){var U;(N=(U=B().interaction)==null?void 0:U.onFirstVisible)&&_.rJ(N);var q;(U=(q=B().adLayoutData)==null?void 0:q.activeViewData)&&c_(y,U)}},
showOption:_.dk});var F=_.C(_.qg(!1,void 0,"BzPhl")),D=F.next().value,u=F.next().value;F=_.gJ(function(){u(!0)});
var R=_.gJ(function(){u(!1)});
return _.l("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.VX(G),"on:mouseenter":F,"on:mouseleave":R},_.l("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.l("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.l(_.uR,{data:function(){return B().textImage}},{adTextImageViewModel:Xnq})),_.l("div",{class:function(){return D()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.l(_.uR,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(N){return _.l(mAt,{data:N.data,
listenToTapEvent:!0})}}))),_.l("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.l(_.uR,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(N){return _.l(sv,{data:N.data,
listenToTapEvent:!0})}}),_.l(_.uR,{data:function(){return B().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:jZP})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.typographyBump;return _.l("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.VX(_.tb({visibilityCallback:function(D,u){if(D){var R;(D=(R=B().interaction)==null?void 0:R.onFirstVisible)&&_.rJ(D);var N;(R=(N=B().adLayoutData)==null?void 0:N.activeViewData)&&c_(u,R)}},
showOption:_.dk,hideOption:J8}))},_.l("div",null,_.l(_.uR,{data:function(){return B().videoLockup}},{lockupViewModel:function(D){return _.l(_.xm,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:F})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.Hd,
noBottomMargin:_.Hd,typographyBump:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.className;var D=G.typographyBump;return _.l("video-display-compact-button-group-layout-view-model",{el:_.VX(_.tb({visibilityCallback:function(u,R){if(u){var N;(u=(N=B().interaction)==null?void 0:N.onFirstVisible)&&_.rJ(u);var y;(N=(y=B().adLayoutData)==null?void 0:y.activeViewData)&&c_(R,N)}},
showOption:_.dk})),class:_.tx("videoDisplayCompactButtonGroupLayoutViewModelHost",F)},_.l(_.uR,{data:function(){return B().videoLockup}},{lockupViewModel:function(u){return _.l(_.xm,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:D})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Hd,
className:_.Hd,typographyBump:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.className;var D=G.typographyBump;return _.l("video-display-compact-buttoned-layout-view-model",{el:_.VX(_.tb({visibilityCallback:function(u,R){if(u){var N;(u=(N=B().interaction)==null?void 0:N.onFirstVisible)&&_.rJ(u);var y;(N=(y=B().adLayoutData)==null?void 0:y.activeViewData)&&c_(R,N)}},
showOption:_.dk})),class:_.tx("videoDisplayCompactButtonedLayoutViewModelHost",F)},_.l(_.uR,{data:function(){return B().videoLockup}},{lockupViewModel:function(u){return _.l(_.xm,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:D})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Hd,
className:_.Hd,typographyBump:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.className;var D=G.typographyBump;return _.l("video-display-compact-carousel-button-group-layout-view-model",{el:_.VX(_.tb({visibilityCallback:function(u,R){if(u){var N;(u=(N=B().interaction)==null?void 0:N.onFirstVisible)&&_.rJ(u);var y;(N=(y=B().adLayoutData)==null?void 0:y.activeViewData)&&c_(R,N)}},
showOption:_.dk})),class:_.tx("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",F)},_.l(_.uR,{data:function(){return B().videoLockup}},{lockupViewModel:function(u){return _.l(_.xm,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:D})}}))},"Fc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:_.Hd,
className:_.Hd,typographyBump:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.className;var D=G.typographyBump;var u=function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},R=_.FT(_.mA);
G=_.tb({visibilityCallback:function(q,h){if(q){var K=B();q=K.adLayoutData;var a;(K=(a=K.interaction)==null?void 0:a.onFirstVisible)&&_.rJ(K);(a=q==null?void 0:q.activeViewData)&&c_(h,a)}},
showOption:_.dk});var N=_.mS(function(){return{containerType:u()&&R()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:u()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),y=_.mS(function(){return u()&&R()?"":u()?"168px":"50%"},void 0,"Om6kNe"),U=_.mS(function(){return u()&&R()?9999:void 0},void 0,"S71lKd");
return _.l("video-display-compact-layout-view-model",{el:_.VX(G),class:_.tx("videoDisplayCompactLayoutViewModelHost",F)},_.l(_.uR,{data:function(){return B().videoLockup}},{lockupViewModel:function(q){return _.l(_.xm,{data:q.data,
containerLayoutConfig:N,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:y,thumbnailTargetWidth:U,typographyBump:D})}}))},"Gc"),"video-display-compact-layout-view-model",{props:{data:_.Hd,
className:_.Hd,typographyBump:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=G.typographyBump;return _.l("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.VX(_.tb({visibilityCallback:function(D,u){if(D){var R;(D=(R=B().interaction)==null?void 0:R.onFirstVisible)&&_.rJ(D);var N;(R=(N=B().adLayoutData)==null?void 0:N.activeViewData)&&c_(u,R)}},
showOption:_.dk,hideOption:J8}))},_.l("div",null,_.l(_.uR,{data:function(){return B().videoLockup}},{lockupViewModel:function(D){return _.l(_.xm,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:F})}})))},"Hc"),"video-display-full-layout-view-model",{props:{data:_.Hd,
noBottomMargin:_.Hd,typographyBump:_.Hd}});var LyT=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;var D=G.className;var u=G.buttonClassName;var R=G.animationEntityKey;var N=G.expansive;return _.l("carousel-button-view-model",{class:_.tx("ytwCarouselButtonViewModelHost",D)},_.l(_.uR,{data:function(){return B().carousel}},{carouselAdCardCollectionViewModel:function(y){return _.l(NMN,{data:y.data,
customCommandResolver:F,expansive:N})}}),_.l(_.uR,{data:function(){return B().button}},{adButtonViewModel:function(y){var U=y.data;
return _.l(_.TO,{data:function(){return(N==null?0:N())?Object.assign({},U(),{style:"AD_BUTTON_STYLE_TONAL"}):U()},
className:u,customCommandResolver:F,animationEntityKey:R})}}))},"Ic");_.rKw=_.Y(function(G){var B=G.data;G=G.className;var F=_.W5("pivot-button-view-model");_.$f(function(){var D;((D=B())==null?0:D.backgroundColor)&&F.value.setAttribute("data-background-color",String(B().backgroundColor))});
return _.l("pivot-button-view-model",{el:F,class:_.tx("ytwPivotButtonViewModelHost",G)},_.l(_.p4,{command:function(){var D=B();D=D.onClickCommand?_.X1(D.onClickCommand):D.contentDescription?_.MD(D.contentDescription):void 0;return D},
ariaLabel:function(){return B().contentDescription}},_.l(_.E,{cond:function(){return B().thumbnail},
then:function(D){return _.l(_.vr,{data:D,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.l(_.E,{cond:function(){return B().icon},
then:function(D){return _.l(_.Pr,{icon:function(){return D().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Jc");_.WyP=_.Y(function(G){var B=G.data;var F=G.buttonShapeOverrideables;G={};return _.l("reel-action-bar-view-model",{class:_.tx("ytwReelActionBarViewModelHost",(G.ytwReelActionBarViewModelHostDecluttered=function(){return _.X("enable_shorts_declutter_ui")},G))},_.l(_.uR,{data:function(){return B().buttonViewModels}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
buttonOverrides:F})},
likeButtonViewModel:function(D){return _.l(_.mP,{data:D.data,buttonShapeOverrideables:F})},
dislikeButtonViewModel:function(D){return _.l(_.a8,{data:D.data,buttonShapeOverrideables:F})},
toggleButtonViewModel:function(D){return _.l(_.wl,{data:D.data,buttonShapeOverrides:F})}}))},"Kc");var Hmt=_.Y(function(G){var B=G.avatar;var F=G.headline;var D=G.badge;var u=G.description;var R=G.expansive;G={};return _.l("yt-ad-metadata-shape",{class:_.tx("ytAdMetadataShapeHost",(G.ytAdMetadataShapeHostLarge=R,G.ytAdMetadataShapeHostDecluttered=function(){return _.X("enable_desktop_small_title_on_immersive_shorts")},G))},_.l("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.l(_.E,{cond:B,
then:function(N){return _.l(_.r$y,{data:function(){return(R==null?0:R())?Object.assign({},N(),{size:"AD_AVATAR_SIZE_M"}):N()}})}}),_.l("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.l(_.Wd,{text:F,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.l(_.E,{cond:D,then:function(N){return _.l(_.gk,{data:function(){return(R==null?0:R())?Object.assign({},N(),{style:"AD_BADGE_STYLE_STARK"}):N()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.l("h2",{class:"ytAdMetadataShapeHostDescription"},_.l(_.Wd,{text:u,
linkInheritColor:!0,isHeadline:function(){return R==null?void 0:R()}})))},"Lc");var krs=_.Y(function(G){var B=G.data;var F=G.onShow;var D=G.expansive;G=_.rC(function(){return B().interaction});
_.$f(function(){var R,N=(R=B().animatedRenderingConfig)==null?void 0:R.delayedSecondsToVisible;if(N){var y=setTimeout(F,N*1E3);_.VI(function(){clearTimeout(y)})}});
var u={};return _.l("reels-ad-card-buttoned-view-model",{class:_.tx(function(){var R;return((R=B().interaction)==null?0:R.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(u.ytwReelsAdCardButtonedViewModelHostExpansive=D,u)),
el:_.VX(G)},_.l(Hmt,{avatar:function(){return _.Q(B().avatar,FEs)},
headline:function(){return B().headline},
badge:function(){return _.Q(B().adBadge,DQU)},
description:function(){return B().description},
expansive:D}),_.l(_.uR,{data:function(){return B().ctaButton}},{adButtonViewModel:function(R){var N=R.data;
return _.l(_.TO,{data:function(){return(D==null?0:D())?Object.assign({},N(),{style:"AD_BUTTON_STYLE_FILLED"}):N()}})}}))},"Mc");var Omv=_.Y(function(G){var B=G.data;G=G.expansive;var F=_.X("web_ad_metadata_clickable")?_.rC(function(){return B().interaction},void 0,function(){return _.X("web_ad_metadata_clickable")}):void 0,D={};
D=_.UY("ytwReelsAdMetadataViewModelHost",(D.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.X("web_ad_metadata_clickable"),D));return _.l("reels-ad-metadata-view-model",{class:D,el:_.VX(F)},_.l(Hmt,{avatar:function(){return _.Q(B().avatar,FEs)},
headline:function(){return B().headline},
badge:function(){return _.Q(B().adBadge,DQU)},
description:function(){return B().description},
expansive:G}))},"Nc");var e8G=_.Y(function(){return _.l("div",{class:"ytwVideoFilteringOverlayHost",style:_.xN({"background-color":function(){return _.Kp(_.sD("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Oc");var $A7={iconPosition:"icon-with-label",size:"L"},z8v=_.Y(function(G){var B=G.data;var F=G.overlayDensity;var D=G.extractOverlay;var u=G.extractActionBar;G=_.W5("reels-player-overlay-layout-view-model");var R=_.pW(F,0),N=function(){var m;return(m=B().reelsAdCardButtonedEntityKey)!=null?m:""},y=function(){return N()+"/ad_button"},U=_.iR(AIJ,N),q=function(){var m,L;
return(L=(m=U())==null?void 0:m.value)!=null?L:!1},h=_.FT(wGc),K=function(){var m,L=Object.assign({},$A7,(h()||!((m=u==null?void 0:u())!=null&&m))&&{style:"overlay-dark"});
return _.X("mweb_shorts_rhs_no_background_protection")?Object.assign({},L,{type:"text",style:"overlay"}):L};
F={};var a={};return _.l("reels-player-overlay-layout-view-model",{class:_.tx("ytwReelsPlayerOverlayLayoutViewModelHost",(F.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!B().extension},F.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},F.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return R()===1&&!(D==null?0:D())},F.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var m;
return(m=D==null?void 0:D())!=null?m:!1},F.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var m;
return(m=u==null?void 0:u())!=null?m:!1},F)),
"overlay-density":function(){return String(R())},
el:G},_.l("div",{class:_.tx("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(a.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},a))},_.l("div",{"aria-hidden":function(){return q()},
class:_.tx("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return q()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.xN({"transition-duration":function(){return nXI(B())}})},_.l(_.uR,{data:function(){return B().adMetadata}},{reelsAdMetadataViewModel:function(m){return _.l(Omv,{data:m.data,
expansive:function(){return R()===1}})}}),_.l(_.E,{cond:function(){return B().extension},
then:function(m){return _.l("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.l(_.uR,{data:m},{adButtonViewModel:function(L){return _.l(_.TO,{data:L.data,animationEntityKey:y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(L){return _.l(LyT,{data:L.data,animationEntityKey:y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return R()===1}})}}))}})),_.l("div",{"aria-hidden":function(){return!q()},
class:_.tx("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return q()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.xN({"transition-duration":function(){return nXI(B())}})},_.l(_.uR,{data:function(){return B().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(m){return _.l(krs,{data:m.data,
onShow:function(){_.M7(_.wC("booleanEntity",N(),{key:N(),value:!0}))},
expansive:function(){var L;return(L=D==null?void 0:D())!=null?L:!1}})}}))),_.l("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.l(_.uR,{data:function(){return B().actions}},{reelActionBarViewModel:function(m){return _.l(_.WyP,{data:m.data,
buttonShapeOverrideables:K})}}),_.l(_.uR,{data:function(){return B().menu}},{buttonViewModel:function(m){return _.l(_.cd,{data:m.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},K())}})}}),_.l(_.uR,{data:function(){return B().pivotButton}},{pivotButtonViewModel:function(m){return _.l(_.rKw,{data:m.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.l(_.E,{cond:function(){return _.X("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.l(_.wTl,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.l(e8G,null)})}}))},"Pc");_.YN(z8v,"reels-player-overlay-layout-view-model",{props:{data:_.Hd,overlayDensity:_.Hd,extractOverlay:_.Hd,extractActionBar:_.Hd}});var Dv=function(){var G=_.p.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.r(Dv,_.p);_.w=Dv.prototype;
_.w.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactCarouselButtonGroupLayoutViewModel:{component:"video-display-compact-carousel-button-group-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},
compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.X("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.w.ready=function(){var G=this;L0g(function(){G.isAttached&&Mj(G.JSC$15996_storedAdSlotMetadata,G.JSC$15996_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&FN(Bh(),G.JSC$15996_storedAdSlotMetadata,G.JSC$15996_storedAdLayoutMetadata)})};
_.w.attached=function(){Mj(this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&aiU(Bh(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata)};
_.w.detached=function(){Mj(this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&FN(Bh(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata)};
_.w.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.w.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15996_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15996_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15996_storedAdLayoutMetadata!==void 0&&this.JSC$15996_storedAdSlotMetadata!==void 0&&FN(Bh(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata),aiU(Bh(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15996_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15996_storedAdSlotMetadata=this.adSlotMetadata)};
_.ZN.Object.defineProperties(Dv.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
Dv.prototype.onAdMetadataChanged=Dv.prototype.onAdMetadataChanged;Dv.prototype.onTypographyBumpChanged=Dv.prototype.onTypographyBumpChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Dv.prototype,"rendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Dv.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Dv.prototype,"noBottomMargin",void 0);_.c([_.v(),_.I("design:type",Object)],Dv.prototype,"overlayDensity",void 0);_.c([_.v(),_.I("design:type",Object)],Dv.prototype,"extractOverlay",void 0);_.c([_.v(),_.I("design:type",Object)],Dv.prototype,"extractActionBar",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Dv.prototype,"typographyBump",void 0);
_.c([_.O("data.adLayoutMetadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],Dv.prototype,"adLayoutMetadata",null);_.c([_.v(),_.I("design:type",Object)],Dv.prototype,"adSlotMetadata",void 0);_.c([_.iA("ytd-video-display-full-buttoned-and-button-group-renderer"),_.I("design:type",HTMLElement)],Dv.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.c([_.Ga("typographyBump"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Dv.prototype,"onTypographyBumpChanged",null);_.c([_.Ga("adLayoutMetadata","adSlotMetadata"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Dv.prototype,"onAdMetadataChanged",null);_.c([_.mC({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Dv);
_.d(Dv,"ytd-in-feed-ad-layout-renderer",function(){if(QXt!==void 0)return QXt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return QXt=G},
{mode:2});var bma;var VZT;_.YN(_.gk,"ad-badge-view-model",{props:{data:_.Hd,hasDot:_.Hd,customCommandResolver:_.oh,adRenderingContextType:_.oh,usedInMasthead:_.oh}});_.YN(_.TO,"ad-button-view-model",{props:{data:_.Hd,customCommandResolver:_.oh,className:_.oh,delayedClassName:_.oh,animationEntityKey:_.oh,isCompactWidth:_.oh,isContentWidth:_.oh}});var uD=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return G};
_.r(uD,_.p);_.w=uD.prototype;_.w.computeHasLiveDescription=function(G){return!(G==null||!G.liveDescription)};
_.w.computeHasByline=function(G){return!(G==null||!G.byline)};
_.w.computeUsesAdButtonViewModel=function(G){return!!_.Q(G==null?void 0:G.cta,u77)};
_.w.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.w.onYtToggleButton=function(G){var B,F=(B=this.data)==null?void 0:B.videoReminderEntityKey;F&&this.ytdReduxBehavior.dispatch(_.wC("upcomingEventReminderStateEntity",F,{key:F,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.w.attached=function(){this.updateChannelBanner()};
_.w.dataChanged=function(){this.updateChannelBanner()};
_.w.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.Q((G=this.data)==null?void 0:G.cta,_.Qr)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.w.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var G=_.Ax(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);G&&(G.startsWith("//")&&(G="https:"+G),this.hostElement.classList.add("channel-banner"),_.Ss(this.hostElement,{"--ytvmh-channel-banner":"url("+G+")"}))}else _.X("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.w.onPlayerReady=function(){this.onIronResize()};
_.w.maybeFlushDebouncer=function(){_.X("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(G){var B;G=(B=G.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0];nao(G==null?void 0:G.polymerController)})};
_.w.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var G=_.IF(this.hostElement).querySelector("#live-description"),B;G&&((B=this.data)==null?0:B.shortLiveDescription)&&G.clientWidth<G.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
uD.prototype.onIronResize=uD.prototype.onIronResize;uD.prototype.videoReminderStateChanged=uD.prototype.videoReminderStateChanged;uD.prototype.dataChanged=uD.prototype.dataChanged;uD.prototype.onYtToggleButton=uD.prototype.onYtToggleButton;_.c([_.k(_.Rc),_.I("design:type",Object)],uD.prototype,"ironResizableBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],uD.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],uD.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],uD.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.videoReminderEntityKey"],selector:ra8}),_.I("design:type",Object)],uD.prototype,"videoReminderState",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.X("web_modern_buttons")}),_.I("design:type",Boolean)],uD.prototype,"rounded",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.I("design:type",Boolean)],uD.prototype,"hasLiveDescription",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.I("design:type",Boolean)],uD.prototype,"hasByline",void 0);
_.c([_.v({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.I("design:type",String)],uD.prototype,"adRenderingContextType",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],uD.prototype,"isMasthead",void 0);_.c([_.v({computed:"computeUsesAdButtonViewModel(data)"}),_.I("design:type",Boolean)],uD.prototype,"usesAdButtonViewModel",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.X("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.I("design:type",Boolean)],uD.prototype,"resizableAdBannerSafariFix",void 0);_.c([_.FQ("yt-formatted-string"),_.I("design:type",Array)],uD.prototype,"formattedStrings",void 0);_.c([_.iA("#cta-button"),_.I("design:type",HTMLElement)],uD.prototype,"ctaButton",void 0);
_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],uD.prototype,"onYtToggleButton",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uD.prototype,"dataChanged",null);_.c([_.Ga("videoReminderState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uD.prototype,"videoReminderStateChanged",null);
_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uD.prototype,"onIronResize",null);_.c([_.mC({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],uD);
_.d(uD,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(VZT!==void 0)return VZT;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return VZT=G},{mode:1});var vgG;var RH=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.isLocked=!1;return G};
_.r(RH,_.p);_.w=RH.prototype;_.w.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.w.onExpandedChanged=function(){this.expanded&&_.Ia(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.w.onMouseOver=function(){this.maybeExpand()};
_.w.onTap=function(){this.maybeExpand()};
_.w.onExpandableTileExpanding=function(G){G!==this&&(this.expanded=!1)};
_.w.onExpandableTileLockAndCollapse=function(G){this.isLocked=!0;G!==this&&(this.expanded=!1)};
_.w.onExpandableTileUnlock=function(){this.isLocked=!1};
RH.prototype.onTap=RH.prototype.onTap;RH.prototype.onMouseOver=RH.prototype.onMouseOver;RH.prototype.onExpandedChanged=RH.prototype.onExpandedChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],RH.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RH.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],RH.prototype,"expanded",void 0);_.c([_.Ry("expanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],RH.prototype,"onExpandedChanged",null);_.c([_.Pm("mouseover"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],RH.prototype,"onMouseOver",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],RH.prototype,"onTap",null);
_.c([_.mC({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],RH);
_.d(RH,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(vgG!==void 0)return vgG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vgG=G},{mode:1});var ogv;var wE=function(){var G=_.p.apply(this,arguments)||this;G.buttonOverrides={style:"overlay"};G.useYtdPlayer=_.X("use_ytd_player_for_desktop_masthead");G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.playbackFinished=!1;G.JSC$16010_playerManager=null;G.JSC$16010_mastheadCounter=new nrq;return G};
_.r(wE,_.p);_.w=wE.prototype;_.w.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"}}}};
_.w.created=function(){this.JSC$16010_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16010_playerManager=new iY)};
_.w.ready=function(){var G=this;this.JSC$16010_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var B=_.IF(this.hostElement).querySelector("#player");this.useYtdPlayer?B.style.display="none":(this.ytdPlayer.style.display="none",j4s(this.JSC$16010_playerManager,B,function(){G.onPlaybackEnded()}),_.IF(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var F;
((F=G.data)==null?0:F.navigationEndpoint)&&_.cZ(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})}))};
_.w.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16010_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.w.attached=function(){var G=this;_.Hc(function(){G.maybePlayVideo()})};
_.w.maybePlayVideo=function(){var G=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$16010_playerManager.playVideo(),this.getPlayerPromise().then(function(){G.JSC$16010_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.w.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16010_playerManager.stopVideo()};
_.w.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var G,B={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(B);this.setupYtdPlayer()}else rwq(this.JSC$16010_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Luq(this.JSC$16010_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.w.getPlayerPromise=function(){return this.JSC$16010_playerManager.getPlayerPromise()};
_.w.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$16010_playerManager.mute():this.JSC$16010_playerManager.unMute()};
_.w.onYtNavigate=function(G){var B=gpS(G.detail.endpoint),F=SLo(this.data.clickthroughReportingData);B&&F&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=F:_.V9(B,F,30))};
_.w.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.w.onExpandedChanged=function(){this.expanded?(_.Ia(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.w.onMouseOver=function(){this.maybeExpand()};
_.w.onTap=function(){this.maybeExpand()};
_.w.onExpandableTileExpanding=function(G){G!==this&&(this.stopVideo(),this.expanded=!1)};
_.w.onExpandableTileLockAndCollapse=function(G){G!==this&&(this.isLocked=!0,this.expanded=!1)};
_.w.onExpandableTileUnlock=function(){this.isLocked=!1};
_.w.lockAndCollapseExpandableTiles=function(){_.T1(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.w.unlockExpandableTiles=function(){_.T1(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.w.setupYtdPlayer=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G.ytdPlayer.getPlayerPromise(),2);B=F.yieldResult;B.addEventListener("onStateChange",function(D){G.onPlayerStateChange(D)});
B.addEventListener("onCueRangeExit",function(D){G.onCueRangeExit(D)});
_.di(F)})};
_.w.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var B=G.getCurrentTime(),F,D,u=B+((D=(F=this.data)==null?void 0:F.playbackDurationMs)!=null?D:0)/1E3;G.addCueRange("playback",B,u);this.JSC$16010_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.w.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.w.toggleMute=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.ytdPlayer.getPlayerPromise(),2);F=D.yieldResult;G?F.mute():F.unMute();_.di(D)})};
wE.prototype.onTap=wE.prototype.onTap;wE.prototype.onMouseOver=wE.prototype.onMouseOver;wE.prototype.onExpandedChanged=wE.prototype.onExpandedChanged;wE.prototype.onYtNavigate=wE.prototype.onYtNavigate;wE.prototype.onYtToggleButton=wE.prototype.onYtToggleButton;wE.prototype.dataChanged=wE.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],wE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wE.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],wE.prototype,"expanded",void 0);_.c([_.v(),_.I("design:type",Object)],wE.prototype,"buttonOverrides",void 0);
_.c([_.v(),_.I("design:type",Object)],wE.prototype,"useYtdPlayer",void 0);_.c([_.iA("#ytd-player"),_.I("design:type",Object)],wE.prototype,"ytdPlayer",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wE.prototype,"dataChanged",null);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],wE.prototype,"onYtToggleButton",null);
_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],wE.prototype,"onYtNavigate",null);_.c([_.Ry("expanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wE.prototype,"onExpandedChanged",null);_.c([_.Pm("mouseover"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wE.prototype,"onMouseOver",null);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wE.prototype,"onTap",null);_.c([_.mC({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],wE);
_.d(wE,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(ogv!==void 0)return ogv;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ogv=G},{mode:1});var MZq;var CD=function(){return _.p.apply(this,arguments)||this};
_.r(CD,_.p);CD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
CD.prototype.onShow=function(){var G=_.IF(this.hostElement).querySelector("#live-description"),B;G&&((B=this.data)==null?0:B.shortLiveDescription)&&G.clientWidth<G.scrollWidth&&this.hostElement.classList.add("short-live-description")};
CD.prototype.onYtToggleButton=function(G){var B,F=(B=this.data)==null?void 0:B.videoReminderEntityKey;F&&this.ytdReduxBehavior.dispatch(_.wC("upcomingEventReminderStateEntity",F,{key:F,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
CD.prototype.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.Q((G=this.data)==null?void 0:G.cta,_.Qr)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
CD.prototype.videoReminderStateChanged=CD.prototype.videoReminderStateChanged;CD.prototype.onYtToggleButton=CD.prototype.onYtToggleButton;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],CD.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],CD.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.videoReminderEntityKey"],selector:ra8}),_.I("design:type",Object)],CD.prototype,"videoReminderState",void 0);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],CD.prototype,"onYtToggleButton",null);_.c([_.Ga("videoReminderState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],CD.prototype,"videoReminderStateChanged",null);
_.c([_.mC({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],CD);
_.d(CD,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(MZq!==void 0)return MZq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MZq=G},{mode:2});var pny;var N5=function(){var G=_.p.apply(this,arguments)||this;G.useYtdPlayer=_.X("use_ytd_player_for_desktop_masthead");G.buttonOverrides={style:"overlay"};G.JSC$16018_playerManager=null;G.JSC$16018_mastheadCounter=new nrq;G.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return G};
_.r(N5,_.p);_.w=N5.prototype;_.w.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"}}}};
_.w.created=function(){this.JSC$16018_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16018_playerManager=new iY)};
_.w.ready=function(){var G=this;this.JSC$16018_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var B;(B=this.embeddedPlayer)==null||B.remove()}else{var F;(F=this.ytdPlayer)==null||F.remove();j4s(this.JSC$16018_playerManager,this.embeddedPlayer,function(){G.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){G.data&&G.data.navigationEndpoint&&_.cZ(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})})}};
_.w.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16018_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.w.dataChanged=function(){var G=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var B=!this.data.disableAutoPlayback,F,D={autoplay:B,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((F=this.data.playbackStartMs)!=null?F:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(B?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(D);this.setupYtdPlayer()}else rwq(this.JSC$16018_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Luq(this.JSC$16018_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16018_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.T1(G.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");G.JSC$16018_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.w.getPlayerPromise=function(){return this.JSC$16018_playerManager.getPlayerPromise()};
_.w.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$16018_playerManager.mute():this.JSC$16018_playerManager.unMute()};
_.w.onYtNavigate=function(G){var B=gpS(G.detail.endpoint),F=SLo(this.data.clickthroughReportingData);B&&F&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=F:_.V9(B,F,30))};
_.w.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16018_playerManager.stopVideo()};
_.w.setupYtdPlayer=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G.ytdPlayer.getPlayerPromise(),2);B=F.yieldResult;B.addEventListener("onStateChange",function(D){G.onPlayerStateChange(D)});
B.addEventListener("onCueRangeExit",function(D){G.onCueRangeExit(D)});
_.di(F)})};
_.w.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var B=G.getCurrentTime(),F,D,u=B+((D=(F=this.data)==null?void 0:F.playbackDurationMs)!=null?D:0)/1E3;G.addCueRange("playback",B,u);_.T1(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16018_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.w.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.w.toggleMute=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.ytdPlayer.getPlayerPromise(),2);F=D.yieldResult;G?F.mute():F.unMute();_.di(D)})};
_.ZN.Object.defineProperties(N5.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G,B;if(!((G=this.data)==null?0:(B=G.accessibilityData)==null?0:B.label))return"Ad primary link";var F,D;return _.G7("AD_TITLE",{title:(F=this.data)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label})}}});
N5.prototype.onYtMastheadHidden=N5.prototype.onYtMastheadHidden;N5.prototype.onYtNavigate=N5.prototype.onYtNavigate;N5.prototype.onYtToggleButton=N5.prototype.onYtToggleButton;N5.prototype.dataChanged=N5.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],N5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],N5.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],N5.prototype,"useYtdPlayer",void 0);_.c([_.iA("ytd-toggle-button-renderer"),_.I("design:type",Object)],N5.prototype,"muteButton",void 0);_.c([_.v(),_.I("design:type",Object)],N5.prototype,"buttonOverrides",void 0);
_.c([_.O("data.accessibilityData.label"),_.I("design:type",String),_.I("design:paramtypes",[])],N5.prototype,"titleAriaLabel",null);_.c([_.iA("#replay-button"),_.I("design:type",Object)],N5.prototype,"replayButton",void 0);_.c([_.iA("#player-container"),_.I("design:type",Object)],N5.prototype,"playerContainer",void 0);_.c([_.iA("#player"),_.I("design:type",Object)],N5.prototype,"embeddedPlayer",void 0);_.c([_.iA("#ytd-player"),_.I("design:type",Object)],N5.prototype,"ytdPlayer",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],N5.prototype,"dataChanged",null);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],N5.prototype,"onYtToggleButton",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],N5.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-masthead-hidden"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],N5.prototype,"onYtMastheadHidden",null);_.c([_.mC({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],N5);
_.d(N5,"ytd-video-masthead-ad-primary-video-renderer",function(){if(pny!==void 0)return pny;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return pny=G},{mode:2});var YNs;var yS=function(){var G=_.p.apply(this,arguments)||this;G.collapsed=!1;G.impressionResolver=_.zn();G.JSC$16022_activeViewMeasurementDataResolver=_.zn();G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.r(yS,_.p);_.w=yS.prototype;_.w.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"}}}};
_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.ready=function(){var G=this;_.IF(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){G.expandAd()});
this.hostElement.addEventListener("yt-action",function(B){if(B.detail.actionName==="yt-service-request"){var F=B.detail.args[1];F.videoMastheadAdMuteCommand&&(G.collapseAd(F.videoMastheadAdMuteCommand.encryptedMastheadId),B.stopPropagation())}})};
_.w.attached=function(){var G=this;_.Hc(function(){G.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(B){if(!G.collapsed){B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,Mz(F.baseUrl,F.attributionSrcMode);G.data.impressionCommand=void 0}});
this.JSC$16022_activeViewMeasurementDataResolver.promise.then(function(B){c9(G.activeView,B)});
_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ti(G.activeView)})};
_.w.dataChanged=function(){var G;((G=this.data.impressionCommand)==null?0:G.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var B;((B=this.data)==null?0:B.activeView)&&this.JSC$16022_activeViewMeasurementDataResolver.resolve(this.data.activeView);(G=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(G.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.w.computeWidescreen=function(G){var B;return!!(G&&((B=_.Q(G,xUP))==null?0:B.isWidescreen))};
_.w.computeExpandable=function(G){return!!(G&&G.length>0)};
_.w.onIronResize=function(){if(this.expandable){var G=_.IF(this.hostElement).querySelector("#expandable-tile-container :first-child");G&&!G.expanded&&(G.expanded=!0)}};
_.w.handleMuteAd=function(){this.collapseAd(null)};
_.w.restoreCollapsedState=function(G){this.collapsed=_.D4().get("HIDDEN_MASTHEAD_ID")===G};
_.w.collapseAd=function(G){if(G){var B=_.D4();B.set("HIDDEN_MASTHEAD_ID",G);B.save()}(G=_.IF(this.hostElement).querySelector("#video"))&&_.cZ(G,"yt-masthead-hidden");this.collapsed=!0};
_.w.expandAd=function(){var G=_.D4();G.set("HIDDEN_MASTHEAD_ID",!1);G.save();location.reload()};
_.w.detached=function(){_.X("stop_av_measurement_on_detach")&&Ti(this.activeView)};
yS.prototype.onIronResize=yS.prototype.onIronResize;yS.prototype.dataChanged=yS.prototype.dataChanged;_.c([_.k(_.Rc),_.I("design:type",Object)],yS.prototype,"ironResizableBehavior",void 0);_.c([_.k(_.X6),_.I("design:type",Object)],yS.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],yS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yS.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.I("design:type",Boolean)],yS.prototype,"widescreen",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.I("design:type",Boolean)],yS.prototype,"expandable",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],yS.prototype,"collapsed",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yS.prototype,"dataChanged",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yS.prototype,"onIronResize",null);_.c([_.mC({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],yS);
_.d(yS,"ytd-video-masthead-ad-v3-renderer",function(){if(YNs!==void 0)return YNs;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return YNs=G},{mode:2});var nD=function(){return _.p.apply(this,arguments)||this};
_.r(nD,_.p);_.w=nD.prototype;_.w.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.w.ready=function(){var G=this;L0g(function(){G.isAttached&&Mj(G.JSC$16027_storedAdSlotMetadata,G.JSC$16027_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&FN(Bh(),G.JSC$16027_storedAdSlotMetadata,G.JSC$16027_storedAdLayoutMetadata)})};
_.w.attached=function(){Mj(this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&aiU(Bh(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata)};
_.w.detached=function(){Mj(this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&FN(Bh(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata)};
_.w.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16027_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16027_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16027_storedAdLayoutMetadata!==void 0&&this.JSC$16027_storedAdSlotMetadata!==void 0&&FN(Bh(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata),aiU(Bh(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16027_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16027_storedAdSlotMetadata=this.adSlotMetadata)};
_.ZN.Object.defineProperties(nD.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
nD.prototype.onAdMetadataChanged=nD.prototype.onAdMetadataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],nD.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nD.prototype,"data",void 0);_.c([_.O("data.adLayoutMetadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],nD.prototype,"adLayoutMetadata",null);
_.c([_.v(),_.I("design:type",Object)],nD.prototype,"adSlotMetadata",void 0);_.c([_.Ga("adLayoutMetadata","adSlotMetadata"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],nD.prototype,"onAdMetadataChanged",null);_.c([_.mC({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],nD);
_.d(nD,"ytd-page-top-ad-layout-renderer",function(){if(bma!==void 0)return bma;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return bma=
G},{mode:2});var AKw;var lD=function(){var G=_.p.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.typographyBump=!1;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.r(lD,_.p);_.w=lD.prototype;
_.w.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.w.ready=function(){var G=this;L0g(function(){G.isAttached&&G.adSlotMetadata&&Kyw(Bh(),G.adSlotMetadata)})};
_.w.attached=function(){if(this.adSlotMetadata){var G;if(this.adSlotMetadata===((G=this.data)==null?void 0:G.adSlotMetadata))h8U(Bh(),this.adSlotMetadata);else{var B;_.em(Error("Ph`"+this.adSlotMetadata+"`"+((B=this.data)==null?void 0:B.adSlotMetadata)))}}};
_.w.detached=function(){this.adSlotMetadata&&Kyw(Bh(),this.adSlotMetadata)};
_.w.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.w.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Kyw(Bh(),this.adSlotMetadata),h8U(Bh(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.ZN.Object.defineProperties(lD.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var G,B,F=_.Q((G=this.data)==null?void 0:(B=G.fulfillmentContent)==null?void 0:B.fulfilledLayout,_.Gus),D;return(G=(D=_.Q(F==null?void 0:F.renderingContent,PJU))==null?void 0:D.layout)?G.toLowerCase().replace(/_/g,"-"):""}}});
lD.prototype.onAdSlotMetadataChanged=lD.prototype.onAdSlotMetadataChanged;lD.prototype.onTypographyBumpChanged=lD.prototype.onTypographyBumpChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lD.prototype,"rendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],lD.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],lD.prototype,"noBottomMargin",void 0);_.c([_.v(),_.I("design:type",Object)],lD.prototype,"overlayDensity",void 0);_.c([_.v(),_.I("design:type",Object)],lD.prototype,"typographyBump",void 0);_.c([_.v(),_.I("design:type",Object)],lD.prototype,"extractOverlay",void 0);_.c([_.v(),_.I("design:type",Object)],lD.prototype,"extractActionBar",void 0);
_.c([_.iA("ytd-in-feed-ad-layout-renderer"),_.I("design:type",HTMLElement)],lD.prototype,"inFeedAdLayoutRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],lD.prototype,"layout",null);_.c([_.Ga("typographyBump"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lD.prototype,"onTypographyBumpChanged",null);
_.c([_.Ga("data.adSlotMetadata"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lD.prototype,"onAdSlotMetadataChanged",null);_.c([_.mC({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],lD);
_.d(lD,"ytd-ad-slot-renderer",function(){if(AKw!==void 0)return AKw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return AKw=G},{mode:2});var dAa;var UL=function(){return _.p.apply(this,arguments)||this};
_.r(UL,_.p);_.w=UL.prototype;_.w.created=function(){this.activeView=new Jf(this.hostElement)};
_.w.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"}}}};
_.w.maybeComputeHref=function(){return null};
_.w.onTap=function(){};
_.w.onThumbnailContainerClick=function(G){this.onClick(G)};
_.w.onClick=function(G){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint;F&&_.Q(F,_.Ow)&&(this.ytSparklesClickLocationBehavior.handleClick(F,G,!1),G.stopPropagation())};
_.w.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var G=_.C(this.data.impressionUrls),B=G.next();!B.done;B=G.next())B=B.value,XrI(B,jhJ(B));this.data.activeView&&c9(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",UL.JSC$16035_DEFAULT_CLICK_LOCATION_BEHAVIOR,UL.JSC$16035_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))}};
_.w.attached=function(){var G=this;_.X("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ti(G.activeView)})};
_.w.detached=function(){_.X("stop_av_measurement_on_detach")&&Ti(this.activeView)};
_.ZN.Object.defineProperties(UL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.X("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
UL.prototype.dataChanged=UL.prototype.dataChanged;UL.prototype.onTap=UL.prototype.onTap;UL.JSC$16035_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
UL.JSC$16035_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"}];_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],UL.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],UL.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.v({selector:_.mA}),_.I("design:type",Object)],UL.prototype,"isGridViewEnabled",void 0);_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UL.prototype,"watchFeedBigThumbs",null);_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",String),_.I("design:paramtypes",[])],UL.prototype,"thumbnailWidth",null);_.c([_.v(),_.I("design:type",Object)],UL.prototype,"data",void 0);
_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],UL.prototype,"thumbnail",void 0);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UL.prototype,"onTap",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UL.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],UL);
_.d(UL,"ytd-compact-promoted-video-renderer",function(){if(dAa!==void 0)return dAa;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return dAa=G},{mode:1});var JKP;_.UR("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var q5=function(){return _.p.apply(this,arguments)||this};
_.r(q5,_.p);q5.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],q5.prototype,"data",void 0);_.c([_.mC({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],q5);
_.d(q5,"ytd-search-pyv-renderer",function(){if(JKP!==void 0)return JKP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return JKP=G},{mode:1});var cKU;_.UR("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var EL=function(){var G=_.p.apply(this,arguments)||this;G.roundedContainer=!0;G.JSC$16043_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.r(EL,_.p);_.w=EL.prototype;
_.w.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}}};
_.w.onStampFinished=function(){this.JSC$16043_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.w.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.IF(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");G?G.openDialog():this.JSC$16043_handleOpenPostCommentDialogActionAfterStamp=!0};
_.w.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.w.computeHideBorder=function(){return this.isInEngagementPanel};
_.w.computeIsCompact=function(){return this.isInEngagementPanel};
_.w.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.w.computeUsesFullLockup=function(){var G,B=(G=this.data)==null?void 0:G.post,F;G=(F=_.Q(B,q9q))==null?void 0:F.surface;var D;F=(D=_.Q(B,KEa))==null?void 0:D.originalPost;var u;if(D=G||((u=_.Q(F,q9q))==null?void 0:u.surface))return!this.computeUsesCompactLockup(D)&&this.useUpdatedRepostUi;var R;return((R=_.Q(B,KEa))==null?void 0:R.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.ZN.Object.defineProperties(EL.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var G,B;return((B=_.Q((G=this.data)==null?void 0:G.post,q9q))==null?void 0:B.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useUpdatedRepostUi}}});
EL.prototype.onYtCommentModerationPanelEmpty=EL.prototype.onYtCommentModerationPanelEmpty;EL.prototype.onStampFinished=EL.prototype.onStampFinished;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],EL.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],EL.prototype,"roundedContainer",void 0);_.c([_.v({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.I("design:type",Boolean)],EL.prototype,"hideBorder",void 0);_.c([_.v({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.I("design:type",Boolean)],EL.prototype,"isCompact",void 0);
_.c([_.v({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.I("design:type",Boolean)],EL.prototype,"usesFullLockup",void 0);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],EL.prototype,"onStampFinished",null);
_.c([_.Pm("ytd-comment-moderation-panel-empty"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],EL.prototype,"onYtCommentModerationPanelEmpty",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],EL.prototype,"isInEngagementPanel",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],EL.prototype,"useUpdatedRepostUi",null);
_.c([_.mC({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],EL);
_.d(EL,"ytd-backstage-post-thread-renderer",function(){if(cKU!==void 0)return cKU;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cKU=G},{mode:1});var THq;var hN=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(hN,_.p);hN.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
hN.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var G=this.data.thumbnail.thumbnails;this.isDarkTheme&&(G=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(G=_.Ax(G,24,void 0,"height"))?G:void 0}};
hN.prototype.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
hN.prototype.computeHasText=function(){var G;return!((G=this.data)==null||!G.text)};
_.ZN.Object.defineProperties(hN.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Sz(this.bannerImageUrl))+'");'}}});
hN.prototype.computeHasText=hN.prototype.computeHasText;hN.prototype.computeBannerImageUrl=hN.prototype.computeBannerImageUrl;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],hN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],hN.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],hN.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],hN.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",String)],hN.prototype,"bannerImageUrl",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.I("design:type",Boolean)],hN.prototype,"hasText",void 0);_.c([_.Ga("data","isDarkTheme"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hN.prototype,"computeBannerImageUrl",null);
_.c([_.Ga("data.text"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hN.prototype,"computeHasText",null);_.c([_.O("bannerImageUrl"),_.I("design:type",Object),_.I("design:paramtypes",[])],hN.prototype,"bannerStyle",null);_.c([_.mC({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],hN);
_.d(hN,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(THq!==void 0)return THq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return THq=G},{mode:1});var IiL;var KD=function(){return _.p.apply(this,arguments)||this};
_.r(KD,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],KD.prototype,"data",void 0);_.c([_.mC({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],KD);
_.d(KD,"ytd-backstage-zero-state-renderer",function(){if(IiL!==void 0)return IiL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IiL=G},{mode:1});var fiy;var aH=function(){return _.p.apply(this,arguments)||this};
_.r(aH,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aH.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",String)],aH.prototype,"icon",void 0);_.c([_.mC({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],aH);
_.d(aH,"ytd-post-filter-zero-state-renderer",function(){if(fiy!==void 0)return fiy;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return fiy=G},{mode:1});var tZU;var Zma={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},m4=function(){return _.p.apply(this,arguments)||this};
_.r(m4,_.p);m4.prototype.configureRendererStamper=function(){return Zma};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],m4.prototype,"rendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],m4.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",String)],m4.prototype,"icon",void 0);_.c([_.mC({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],m4);
_.d(m4,"ytd-post-scheduling-zero-state-renderer",function(){if(tZU!==void 0)return tZU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return tZU=G},{mode:1});var ggq;var XN=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return G};
_.r(XN,_.p);XN.prototype.onTabsActivate=function(G){this.data&&this.data.tabs&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[G.detail.selected].navigationEndpoint})};
XN.prototype.shouldShowTotalCount=function(G){return G&&G.totalCount!==void 0};
XN.prototype.handleUpdatePostsTotalCountAction=function(G){var B=this.get(["data.tabs",1,"totalCount"]),F=this.get("updatePostsTotalCountAction.updateType",G);G=this.get("updatePostsTotalCountAction.number",G);B!==void 0&&F!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&G&&(F==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(B)+G):F==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(B)-G))};
_.ZN.Object.defineProperties(XN.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var G=0,B=this.data.tabs.length;G<B;G++)if(this.data.tabs[G].selected)return G;return 0}}});
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],XN.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],XN.prototype,"rendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],XN.prototype,"data",void 0);_.c([_.O("data.tabs"),_.I("design:type",Number),_.I("design:paramtypes",[])],XN.prototype,"selected",null);_.c([_.mC({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],XN);
_.d(XN,"ytd-post-stream-filter-renderer",function(){if(ggq!==void 0)return ggq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ggq=G},{mode:1});var SNy;var Hh=function(){return _.p.apply(this,arguments)||this};
_.r(Hh,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Hh.prototype,"kevlarBehaviors",void 0);_.c([_.v(),_.I("design:type",Object)],Hh.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Hh);
_.d(Hh,"ytd-channel-age-gate-renderer",function(){if(SNy!==void 0)return SNy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return SNy=G},{mode:1});var sZy;_.UR("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var kp=function(){var G=_.p.apply(this,arguments)||this;G.data=null;return G};
_.r(kp,_.p);kp.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ZN.Object.defineProperties(kp.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?0:(B=G.title)==null?0:(F=B.runs)==null?0:F.length)?147:160}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],kp.prototype,"imageSizePx",null);_.c([_.mC({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],kp);
_.d(kp,"ytd-channel-owner-empty-state-renderer",function(){if(sZy!==void 0)return sZy;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return sZy=G},{mode:1});var xAT;var PO7;var OL=function(){var G=_.p.apply(this,arguments)||this;G.boundSubmitSearch=function(){G.submitSearch()};
G.boundClearSearch=function(){G.clearSearch()};
return G};
_.r(OL,_.p);_.w=OL.prototype;_.w.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]]"}}}}}};
_.w.toggleClearButton=function(){this.hideClearButton=lZT||!this.input.value};
_.w.submitOnEnterKeyUp=function(G){G.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.w.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.w.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.w.submit=function(){_.cZ(this.hostElement,"search-query-changed",this.input.value)};
OL.prototype.toggleClearButton=OL.prototype.toggleClearButton;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],OL.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],OL.prototype,"hideClearButton",void 0);_.c([_.v(),_.I("design:type",Object)],OL.prototype,"boundSubmitSearch",void 0);_.c([_.v(),_.I("design:type",Object)],OL.prototype,"boundClearSearch",void 0);_.c([_.iA("#input"),_.I("design:type",Object)],OL.prototype,"input",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OL.prototype,"toggleClearButton",null);
_.c([_.mC({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],OL);
_.d(OL,"ytd-channel-switcher-search-box-renderer",function(){if(PO7!==void 0)return PO7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return PO7=G},{mode:1});var GbT;var e$=function(){var G=_.p.apply(this,arguments)||this;G.boundSubmit=function(){G.submit()};
return G};
_.r(e$,_.p);_.w=e$.prototype;_.w.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"}}}}};
_.w.ready=function(){var G=this;this.form.addEventListener("submit",function(B){return G.onSubmit(B)})};
_.w.onSubmit=function(G){G.preventDefault();return!1};
_.w.toggleClearButton=function(){this.hideClearButton=lZT||!this.input.value};
_.w.submitOnEnterKeyUp=function(G){G.keyCode===13&&this.submit()};
_.w.submit=function(){var G=this.data.endpoint,B=(0,_.UK.unsafeClone)(G);_.Q(B,_.x9)?_.Q(B,_.x9).query=this.input.value:_.Q(B,_.P2)&&(_.Q(B,_.P2).query=this.input.value);var F=_.Q(B.commandMetadata,_.xy);(F==null?0:F.url)?(F.url=_.F2(F.url,"query",this.input.value),_.cZ(this.hostElement,"yt-navigate",{endpoint:B})):_.Q(B,f9T)?(_.Q(B,f9T).channelSwitcherQuery=this.input.value,_.te().resolve(_.Wr).resolveCommand(B,{form:{element:this.hostElement}})):(G=Error("Qh`"+JSON.stringify(G)),_.k2(G))};
_.w.getUrl=function(G){return this.get("commandMetadata.webCommandMetadata.url",G)};
e$.prototype.toggleClearButton=e$.prototype.toggleClearButton;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],e$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],e$.prototype,"hideClearButton",void 0);
_.c([_.v(),_.I("design:type",Object)],e$.prototype,"boundSubmit",void 0);_.c([_.iA("#form"),_.I("design:type",HTMLFormElement)],e$.prototype,"form",void 0);_.c([_.iA("#input"),_.I("design:type",Object)],e$.prototype,"input",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],e$.prototype,"toggleClearButton",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],e$);
_.d(e$,"ytd-search-box-renderer",function(){if(GbT!==void 0)return GbT;var G=document.createElement("template");_.H(G,'\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  </tp-yt-paper-input>\n  <div id="search-button" class="style-scope ytd-search-box-renderer"></div>\n  <div id="clear-button" class="style-scope ytd-search-box-renderer"></div>\n</form>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return GbT=G},{mode:2});var $p=function(){var G=_.p.apply(this,arguments)||this;G.showSearchBox=!0;return G};
_.r($p,_.p);$p.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$p.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$p.prototype,"showSearchBox",void 0);_.c([_.mC({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],$p);
_.d($p,"ytd-channel-switcher-header-renderer",function(){if(xAT!==void 0)return xAT;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return xAT=G},{mode:1});var BzT;var iYs;var zQ=function(){var G=_.p.apply(this,arguments)||this;G.isDisplayed=!0;return G};
_.r(zQ,_.p);_.w=zQ.prototype;_.w.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.dataChanged=function(){this.isDisplayed=!0};
_.w.computeType=function(G){return G||"UNKNOWN"};
_.w.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isDisplayed=!1};
_.w.onClose=function(){this.isDisplayed=!1};
zQ.prototype.onYtServiceRequestCompleted=zQ.prototype.onYtServiceRequestCompleted;zQ.prototype.dataChanged=zQ.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zQ.prototype,"data",void 0);
_.c([_.v({computed:"computeType(data.type)",reflectToAttribute:!0}),_.I("design:type",String)],zQ.prototype,"type",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zQ.prototype,"isDisplayed",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zQ.prototype,"dataChanged",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],zQ.prototype,"onYtServiceRequestCompleted",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],zQ);
_.d(zQ,"ytd-alert-with-button-renderer",function(){if(iYs!==void 0)return iYs;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return iYs=G},{mode:1});var bD=function(){var G=_.p.apply(this,arguments)||this;G.noResult=!1;G.enableAlertBanner=!1;G.dismissedAlertBanner=!1;G.hideCreateChannelButton=!1;G.boundDismissAlertBanner=function(){G.dismissAlertBanner()};
G.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return G};
_.r(bD,_.p);_.w=bD.prototype;_.w.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.w.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.w.updateChannelSwitcherAction=function(G){var B;G=(B=_.Q(G,fT7))==null?void 0:B.page;_.Q(G,IT7)!==void 0&&(this.data=_.Q(G,IT7))};
_.w.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]]"}}}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.w.searchQueryChanged=function(G,B){if(this.data&&this.data.contents&&this.data.contents.length){G=[];var F=[];this.hideCreateChannelButton=this.noResult=!1;for(var D=document.querySelectorAll("ytd-account-item-renderer"),u=_.C(D),R=u.next();!R.done;R=u.next())R=R.value,F.push(R),R.style.display="block";this.resetRightBorder(F);if(B){this.hideCreateChannelButton=!0;for(F=1;F<this.data.contents.length;F++)if(R=this.data.contents[F],_.Q(R,cEw)){var N=void 0,y=void 0;u=(N=_.Q(R,cEw))==null?void 0:(y=
N.accountName)==null?void 0:y.simpleText;y=N=void 0;R=(N=_.Q(R,cEw))==null?void 0:(y=N.channelHandle)==null?void 0:y.simpleText;(N=D[F-1])&&u&&_.qL(u,B)?G.push(N):_.X("enable_handle_search_on_channel_switcher")&&N&&R&&_.qL(R.toString(),B.toString())?G.push(N):N.style.display="none"}G.length===0&&(this.noResult=!0);this.resetRightBorder(G)}}};
_.w.resetRightBorder=function(G){for(var B=0;B<G.length;B++)G[B].style.borderRight=!this.hideCreateChannelButton&&(B+2)%3===0||this.hideCreateChannelButton&&(B+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.w.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.w.setShowSearchBox=function(G){if(G&&G.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var B=0;B<G.contents.length;B++)_.Q(G.contents[B],_.c0)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.w.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.ZN.Object.defineProperties(bD.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.contents)}}});
bD.prototype.onContinuationItemsUpdated=bD.prototype.onContinuationItemsUpdated;bD.prototype.searchQueryChanged=bD.prototype.searchQueryChanged;bD.prototype.onDataChanged=bD.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],bD.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],bD.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bD.prototype,"data",void 0);_.c([_.iA("ytd-channel-switcher-header-renderer"),_.I("design:type",Object)],bD.prototype,"channelSwitcherHeaderRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],bD.prototype,"noResult",void 0);
_.c([_.v(),_.I("design:type",Object)],bD.prototype,"enableAlertBanner",void 0);_.c([_.v(),_.I("design:type",Object)],bD.prototype,"dismissedAlertBanner",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],bD.prototype,"hideCreateChannelButton",void 0);_.c([_.O("data.contents"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],bD.prototype,"isLoading",null);_.c([_.v(),_.I("design:type",Object)],bD.prototype,"boundDismissAlertBanner",void 0);
_.c([_.v({computed:"computeButtonOverride()"}),_.I("design:type",Object)],bD.prototype,"buttonOverride",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bD.prototype,"onDataChanged",null);_.c([_.Pm("search-query-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,String]),_.I("design:returntype")],bD.prototype,"searchQueryChanged",null);
_.c([_.Pm("yt-next-continuation-data-updated"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],bD.prototype,"onContinuationItemsUpdated",null);_.c([_.mC({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],bD);
_.d(bD,"ytd-channel-switcher-page-renderer",function(){if(BzT!==void 0)return BzT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return BzT=G},{mode:1});var F1G;var Ddt;var VS=function(){var G=_.p.apply(this,arguments)||this;G.images=[];G.selectedImageIndex=0;return G};
_.r(VS,_.p);_.w=VS.prototype;
_.w.ready=function(){_.H1(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.H1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.H1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.H1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.w.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.w.updateImageThumbnails=function(G){G=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:G.event_.detail});this.images.splice(this.selectedImageIndex,1,G);this.images=[].concat(_.gi(this.images))};
_.w.cancelImageRepositions=function(){this.selectedImageIndex=0;_.cZ(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.w.saveImageRepositions=function(){this.selectedImageIndex=0;_.cZ(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.ZN.Object.defineProperties(VS.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var G=this;return(this.images||[]).map(function(B,F){return{image:B,selected:F===G.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("ytd-backstage-image-preview-renderer"),_.I("design:type",Object)],VS.prototype,"imagePreviewContainer",void 0);_.c([_.iA(".thumbnail-images-container"),_.I("design:type",HTMLElement)],VS.prototype,"thumbnailImagesContainer",void 0);_.c([_.v(),_.I("design:type",Array)],VS.prototype,"images",void 0);
_.c([_.v(),_.I("design:type",Object)],VS.prototype,"repositionInstructions",void 0);_.c([_.v(),_.I("design:type",Object)],VS.prototype,"selectedImageIndex",void 0);_.c([_.O("images","selectedImageIndex"),_.I("design:type",Array),_.I("design:paramtypes",[])],VS.prototype,"thumbnailRendererDatas",null);_.c([_.O("images","selectedImageIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],VS.prototype,"selectedImageData",null);
_.c([_.mC({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],VS);
_.tS()(VS,"ytd-backstage-multi-image-reposition-renderer",function(){if(Ddt===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);Ddt=G}G=Ddt;return G},{allowedProps:["images",
"repositionInstructions"],mode:1});var vh=function(G,B){_.W1.call(this);this.uploadUrl=G;this.channelId=B;this.imagesUploadData=[]};
_.r(vh,_.W1);vh.prototype.getAllUploadStatuses=function(){var G=this,B,F,D;return _.n(function(u){if(u.nextAddress==1)return u.yield(uGL(G),2);B=u.yieldResult;F=B.get("succeed");D=B.get("failed");return u.return(F.concat(D))})};
var wJy=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(uGL(G),2);B=D.yieldResult;F=B.get("failed");F.length>0&&Rvs(G,F);return D.return(G.getAllUploadStatuses())})},uGL=function(G){var B,F,D,u,R,N,y;
return _.n(function(U){if(U.nextAddress==1)return B=new Map,U.yield(Promise.allSettled(G.imagesUploadData.map(function(q){return q.uploadPromise})),2);
F=U.yieldResult;D=[];u=_.C(F);for(R=u.next();!R.done;R=u.next())N=R.value,N.status==="fulfilled"&&D.push(N.value);y=G.imagesUploadData.map(function(q){return q.image}).filter(function(q){return D.every(function(h){return h.id!==q.id})});
B.set("succeed",D);B.set("failed",y);return U.return(B)})},Rvs=function(G,B){B=_.C(B);
for(var F=B.next();!F.done;F=B.next()){var D=G;F=F.value;CUv(D,F.id)>=0&&D.cancel(F.id);var u=new Nzw(F),R=_.zYT(D.uploadUrl,{"X-YouTube-ChannelId":D.channelId},F.imageBlob);u.transfer=R;u.uploadPromise=yuT(R,F);D.imagesUploadData.push(u);R.run()}};
vh.prototype.cancel=function(G){var B=CUv(this,G);B!==-1&&((B=this.imagesUploadData[B].transfer)&&B.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(F){return F.image.id!==G}))};
var CUv=function(G,B){return G.imagesUploadData.findIndex(function(F){return F.image.id===B})},yuT=function(G,B){return new Promise(function(F,D){G.listen("l",function(){var u=G.getResponseText();
u?(u=JSON.parse(u).encryptedBlobId,B.encryptedBlobId=u,F(B)):D("upload failed")});
G.listen("n",function(){D("upload failed")})})},Nzw=function(G){this.image=G};var lYz=function(G,B,F,D,u){this.id=G;this.imageBlob=B;this.localImageSrc=F;this.naturalWidth=D;this.naturalHeight=u;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 nsL=[".jpeg",".jpg",".png"],oH=function(){var G=_.p.apply(this,arguments)||this;G.showImagesPreview=!1;G.pollOptions=[];G.errorMessage="";G.optionPlaceholderText="";G.optionDefaultText="";G.JSC$16099_imageId=0;G.maxFileSizeMb=0;G.maxAspectRatio=0;G.invalidFileSizeError="";G.invalidAspectRatioError="";G.invalidFileTypeError="";G.imageSelector=new Ic(null,"single_file",nsL);return G};
_.r(oH,_.p);_.w=oH.prototype;_.w.ready=function(){_.H1(this.imageSelector,"j",this.onImageSelect,!1,this);_.H1(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.H1(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.w.dataChanged=function(){var G,B,F=_.Q((G=this.data)==null?void 0:(B=G.cellTemplate)==null?void 0:B.onEmptyCellTap,kTL);if(F&&F.uploadUrl&&F.channelId){var D;this.maxFileSizeMb=((D=F.imageValidationInfo)==null?void 0:D.maxFileSizeMb)||0;var u;this.maxAspectRatio=((u=F.imageValidationInfo)==null?void 0:u.allowedMaxAspectRatio)||0;var R;this.invalidFileSizeError=this.getSimpleString((R=this.data)==null?void 0:R.invalidFileSizeError);var N;this.invalidAspectRatioError=this.getSimpleString((N=this.data)==
null?void 0:N.invalidAspectRatioError);var y;this.invalidFileTypeError=this.getSimpleString((y=this.data)==null?void 0:y.invalidFileTypeError);this.uploadManager=new vh(F.uploadUrl,F.channelId)}};
_.w.onEditorInfoChange=function(){this.optionPlaceholderText=_.zx(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.zx(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.w.observeAddImageError=function(){this.errorMessage!==""&&_.cZ(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.w.onPollOptionsChange=function(){for(var G=!1,B=[],F=0;F<this.pollOptions.length;F++){var D=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(F+1);this.pollOptions[F].placeholderText!==D?(G=!0,B.push(Object.assign({},this.pollOptions[F],{placeholderText:D}))):B.push(this.pollOptions[F])}G&&(this.pollOptions=B);this.isValid()?_.cZ(this.hostElement,"yt-commentbox-post-enable"):_.cZ(this.hostElement,"yt-commentbox-post-disable")};
_.w.createPollOptions=function(G){var B=[],F;G=(F=G==null?void 0:G.minPollOptions)!=null?F:0;for(F=0;F<G;F++)B.push(this.createPollOption());return B};
_.w.onImageSelect=function(G){var B=this,F,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1){if(B.selectedImageIndex===void 0)return U.jumpTo(0);F=G.files[0];B.errorMessage="";D=B.validateImage(F);if(D!=="")return B.errorMessage=D,U.return();u=new zV(B.maxAspectRatio,!1,!0);return U.yield(u.transform(F),3)}if(U.nextAddress!=4)return R=U.yieldResult,R.transformedData?R.invalidAspectRatio?(B.errorMessage=B.invalidAspectRatioError,U.return()):U.yield(Uxo(B.JSC$16099_imageId,G.files[0],R.transformedData),
4):(B.errorMessage=B.invalidFileTypeError,U.return());N=U.yieldResult;B.JSC$16099_imageId++;Rvs(B.uploadManager,[N]);y=Object.assign({},B.pollOptions[B.selectedImageIndex],{image:N});B.pollOptions.splice(B.selectedImageIndex,1,y);B.refreshPollOptions();_.cZ(B.hostElement,"yt-backstage-poll-image-select");_.di(U)})};
_.w.validateImage=function(G){return G.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.w.refreshPollOptions=function(){this.pollOptions=[].concat(_.gi(this.pollOptions))};
_.w.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.gi(this.pollOptions),[this.createPollOption()]))};
_.w.onRemovePollOption=function(G){var B=this.pollOptions[G.model.index];B&&B.image&&this.uploadManager.cancel(B.image.id);this.pollOptions.splice(G.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.cZ(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.w.onTextInput=function(){this.refreshPollOptions()};
_.w.onImageButtonClick=function(G){this.selectedImageIndex=G.model.index;this.imageSelector.click()};
_.w.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.w.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.w.saveImageRepositions=function(G){G=G.event_.detail;for(var B=0,F=[],D=_.C(this.pollOptions),u=D.next();!u.done;u=D.next())u=u.value,u.image!==void 0?(u=Object.assign({},u,{image:G[B]}),F.push(u),B++):F.push(u);this.showImagesPreview=!1;this.pollOptions=[].concat(_.gi(F))};
_.w.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 G=0,B=_.C(this.pollOptions),F=B.next();!F.done;F=B.next())if(F=F.value,F.optionText.trim()!==""||F.image!==void 0){if(!F.image||this.hasCustomOptionText&&F.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;G++}return G>=Number(this.editorInfo.minPollOptions)};
_.w.getAllUploadStatuses=function(){var G=this,B,F,D,u;return _.n(function(R){if(R.nextAddress==1)return R.yield(G.uploadManager.getAllUploadStatuses(),2);B=R.yieldResult;F=_.C(B);for(D=F.next();!D.done;D=F.next())if(u=D.value,u.encryptedBlobId===void 0)return R.return(wJy(G.uploadManager));return R.return(B)})};
_.w.getPostCreateOptions=function(){for(var G=[],B=_.C(this.pollOptions),F=B.next();!F.done;F=B.next())F=F.value,F.image!==void 0&&G.push({text:this.hasCustomOptionText?F.optionText:F.placeholderText,image:F.image});return G};
_.w.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.w.createButtonRenderer=function(G,B){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleString(G)}},isDisabled:B}};
_.w.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.w.computeThumbnailRendererData=function(G){return G?{image:G,selected:!1}:void 0};
_.w.getSimpleString=function(G){return _.zx(G)};
_.w.updateOptionTextFromBinding=function(G){if(G.target){var B=Array.from(_.IF(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(G.target);if(B>=0){var F;this.pollOptions[B].optionText=(F=G.detail.value)!=null?F:""}}};
_.ZN.Object.defineProperties(oH.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,B;return this.pollOptions.length<((B=(G=this.editorInfo)==null?void 0:G.maxPollOptions)!=null?B:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(G){return G.image}).map(function(G){return G.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var G,B=(G=this.data)==null?void 0:G.addOptionButtonText;return B?this.createButtonRenderer(B,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var G,B=(G=this.data)==null?void 0:G.repositionImagesButtonLabel;return B?this.createButtonRenderer(B,!this.hasImages):void 0}}});
oH.prototype.onPollOptionsChange=oH.prototype.onPollOptionsChange;oH.prototype.observeAddImageError=oH.prototype.observeAddImageError;oH.prototype.onEditorInfoChange=oH.prototype.onEditorInfoChange;oH.prototype.dataChanged=oH.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("ytd-backstage-multi-image-reposition-renderer"),_.I("design:type",Object)],oH.prototype,"imageRepositionContainer",void 0);
_.c([_.v(),_.I("design:type",Object)],oH.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],oH.prototype,"editorInfo",void 0);_.c([_.v(),_.I("design:type",vh)],oH.prototype,"uploadManager",void 0);_.c([_.v(),_.I("design:type",Object)],oH.prototype,"showImagesPreview",void 0);_.c([_.v(),_.I("design:type",Array)],oH.prototype,"pollOptions",void 0);_.c([_.v(),_.I("design:type",Object)],oH.prototype,"errorMessage",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oH.prototype,"dataChanged",null);_.c([_.Ry("editorInfo"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oH.prototype,"onEditorInfoChange",null);_.c([_.Ga("errorMessage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oH.prototype,"observeAddImageError",null);
_.c([_.Ry("pollOptions"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oH.prototype,"onPollOptionsChange",null);_.c([_.O("pollOptions","editorInfo"),_.I("design:type",Object),_.I("design:paramtypes",[])],oH.prototype,"isAllowedToAddOption",null);_.c([_.O("pollOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],oH.prototype,"hasImages",null);
_.c([_.O("pollOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],oH.prototype,"imagesToReposition",null);_.c([_.O("pollOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],oH.prototype,"hasCustomOptionText",null);_.c([_.O("data","isAllowedToAddOption"),_.I("design:type",Object),_.I("design:paramtypes",[])],oH.prototype,"addOptionButton",null);_.c([_.O("data","hasImages"),_.I("design:type",Object),_.I("design:paramtypes",[])],oH.prototype,"repositionImagesButton",null);
_.c([_.mC({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],oH);
_.d(oH,"ytd-backstage-image-poll-editor-renderer",function(){if(F1G!==void 0)return F1G;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return F1G=G},{mode:2});var lCN={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 Udq;var M5=function(){var G=_.p.apply(this,arguments)||this;G.a11yConfig=lCN;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.showPreviewContainer=!0;G.startPicker=!1;G.repositionOptional=!1;G.editOnlyMode=!1;G.savedImageDisplayOffsetTop=0;G.savedImageDisplayOffsetLeft=0;return G};
_.r(M5,_.p);_.w=M5.prototype;_.w.created=function(){_.ac.requestAvailability()};
_.w.ready=function(){};
_.w.onArrowKeysDown=function(G){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var B=0,F=0,D="";switch(G.detail.keyboardEvent.key){case "ArrowUp":qkU(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?D=this.a11yConfig.reachBottomOfImage:B=this.imageHeight*.05*-1;break;case "ArrowDown":qkU(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?D=this.a11yConfig.reachTopOfImage:
B=this.imageHeight*.05;break;case "ArrowLeft":qkU(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?D=this.a11yConfig.reachRightOfImage:F=this.imageWidth*.05*-1;break;case "ArrowRight":qkU(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?D=this.a11yConfig.reachLeftOfImage:F=this.imageWidth*.05}D&&_.G7(D)&&_.cZ(this.hostElement,"iron-announce",{text:_.G7(D)});if(F||B)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+B)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.G7(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+F)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.G7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.cZ(this.hostElement,"iron-announce",{text:G})}};
_.w.getPreviewPosition=function(G,B,F,D){return Math.round(100*(G+B*.5-F)/D)};
_.w.calculateDisplayPosition=function(){var G=this.imageData.naturalWidth,B=this.imageData.naturalHeight;this.displayScale=Math.max(200/G,200/B);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var F=G*this.displayScale*this.imageData.previewCoordinates.left,D=B*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=B>G?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-F;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=G>B?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-D;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=G*this.displayScale;this.imageHeight=B*this.displayScale};
_.w.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.w.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.w.getSignedPosition=function(G,B,F){return B==="X"&&_.v5("HTML_DIR")==="rtl"?F==="-"?G+"px":G*-1+"px":F==="-"?G*-1+"px":G+"px"};
_.w.pickerMove=function(G){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var B=this.pickerOffsetX-G.clientX,F=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
F)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-B))}};
_.w.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.w.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var G=this.generateCropPreview();G&&_.cZ(this.hostElement,"ytd-backstage-image-preview-coordinates-update",G)};
_.w.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.cZ(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.w.deleteImage=function(){_.cZ(this.hostElement,"ytd-backstage-image-preview-delete")};
_.w.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.w.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var G=this.generateCropPreview();G&&_.cZ(this.hostElement,"ytd-backstage-image-preview-coordinates-save",G)};
_.w.getPreviewOffset=function(G,B,F){return B&&G?(F==="X"&&_.v5("HTML_DIR")==="rtl"?300/B*G:300/B*G*-1)+"px":"0px"};
_.w.getSimpleText=function(G){return G?_.zx(G):""};
_.w.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}};
_.ZN.Object.defineProperties(M5.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.G7(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.G7(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.G7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.G7(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 G,B,F=(G=this.instruction)==null?void 0:(B=G.previewInstruction)==null?void 0:B.editButtonLabel;return F?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u=this.editOnlyMode?(G=this.instruction)==null?void 0:(B=G.editInstruction)==null?void 0:B.saveImagesButtonLabel:(F=this.instruction)==null?void 0:(D=F.editInstruction)==null?void 0:D.saveButtonLabel;return u?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.instruction)==null?void 0:(B=G.previewInstruction)==null?void 0:B.deleteButtonLabel;return F?{size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.instruction)==null?void 0:(B=G.editInstruction)==null?void 0:B.cancelButtonLabel;G=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return F?{style:G,size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}: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"}}});
M5.prototype.onEditOnlyModeUpdate=M5.prototype.onEditOnlyModeUpdate;M5.prototype.onImageChange=M5.prototype.onImageChange;_.c([_.v(),_.I("design:type",lYz)],M5.prototype,"imageData",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"instruction",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"a11yConfig",void 0);_.c([_.v(),_.I("design:type",Number)],M5.prototype,"imageWidth",void 0);_.c([_.v(),_.I("design:type",Number)],M5.prototype,"imageHeight",void 0);
_.c([_.v(),_.I("design:type",Number)],M5.prototype,"displayScale",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"imageDisplayOffsetTop",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"showPreviewContainer",void 0);
_.c([_.v(),_.I("design:type",Object)],M5.prototype,"startPicker",void 0);_.c([_.v(),_.I("design:type",Number)],M5.prototype,"pickerOffsetX",void 0);_.c([_.v(),_.I("design:type",Number)],M5.prototype,"pickerOffsetY",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"repositionOptional",void 0);_.c([_.v(),_.I("design:type",Object)],M5.prototype,"editOnlyMode",void 0);_.c([_.iA("#picker-container"),_.I("design:type",HTMLElement)],M5.prototype,"JSC$16112_pickerContainer",void 0);
_.c([_.iA("#picker"),_.I("design:type",HTMLElement)],M5.prototype,"picker",void 0);_.c([_.iA("#preview-clipper"),_.I("design:type",HTMLElement)],M5.prototype,"previewClipper",void 0);_.c([_.iA("#image-in-picker-background"),_.I("design:type",HTMLImageElement)],M5.prototype,"JSC$16112_imageInBackground",void 0);_.c([_.iA("#image-in-picker"),_.I("design:type",HTMLImageElement)],M5.prototype,"JSC$16112_imageInPicker",void 0);
_.c([_.iA("#image-in-preview-clipper"),_.I("design:type",HTMLImageElement)],M5.prototype,"JSC$16112_imageInPreviewClipper",void 0);_.c([_.O("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],M5.prototype,"altLabelForImage",null);_.c([_.O("imageHeight","imageWidth"),_.I("design:type",Number),_.I("design:paramtypes",[])],M5.prototype,"pickerSize",null);
_.c([_.O("imageHeight","imageWidth"),_.I("design:type",Object),_.I("design:paramtypes",[])],M5.prototype,"imageOrientationStyle",null);_.c([_.O("instruction"),_.I("design:type",Object),_.I("design:paramtypes",[])],M5.prototype,"editButton",null);_.c([_.O("instruction","editOnlyMode"),_.I("design:type",Object),_.I("design:paramtypes",[])],M5.prototype,"saveButton",null);_.c([_.O("instruction"),_.I("design:type",Object),_.I("design:paramtypes",[])],M5.prototype,"deleteButton",null);
_.c([_.O("instruction","editOnlyMode"),_.I("design:type",Object),_.I("design:paramtypes",[])],M5.prototype,"cancelButton",null);_.c([_.O("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.I("design:type",Number),_.I("design:paramtypes",[])],M5.prototype,"cropOffsetTop",null);_.c([_.O("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.I("design:type",Number),_.I("design:paramtypes",[])],M5.prototype,"cropOffsetLeft",null);
_.c([_.O("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],M5.prototype,"pickerBackgroundStyle",null);_.c([_.O("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],M5.prototype,"pickerDisplayStyle",null);_.c([_.O("cropOffsetLeft","cropOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],M5.prototype,"imageInPickerStyle",null);
_.c([_.O("cropOffsetLeft","cropOffsetTop","pickerSize"),_.I("design:type",String),_.I("design:paramtypes",[])],M5.prototype,"previewClipperStyle",null);_.c([_.Ry("imageData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],M5.prototype,"onImageChange",null);_.c([_.Ry("editOnlyMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],M5.prototype,"onEditOnlyModeUpdate",null);
_.c([_.O("showPreviewContainer"),_.I("design:type",String),_.I("design:paramtypes",[])],M5.prototype,"pickerModeStyle",null);_.c([_.mC({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],M5);
_.d(M5,"ytd-backstage-image-preview-renderer",function(){if(Udq!==void 0)return Udq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Udq=G},{mode:1});var qov;var Ess={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 hvw;var K1N;var pD=function(){var G=_.p.apply(this,arguments)||this;G.a11yConfig=Ess;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.cropCoordinatesSaved=!1;G.previewSize=0;G.startPicker=!1;G.repositionOptional=!1;return G};
_.r(pD,_.p);_.w=pD.prototype;_.w.created=function(){_.ac.requestAvailability()};
_.w.ready=function(){};
_.w.onArrowKeysDown=function(G){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var B=0,F=0,D="";switch(G.detail.keyboardEvent.key){case "ArrowUp":EXz(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?D=this.a11yConfig.reachBottomOfImage:B=this.imageHeight*.05*-1;break;case "ArrowDown":EXz(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?D=this.a11yConfig.reachTopOfImage:
B=this.imageHeight*.05;break;case "ArrowLeft":EXz(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?D=this.a11yConfig.reachRightOfImage:F=this.imageWidth*.05*-1;break;case "ArrowRight":EXz(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?D=this.a11yConfig.reachLeftOfImage:F=this.imageWidth*.05}D&&_.G7(D)&&_.cZ(this.hostElement,"iron-announce",{text:_.G7(D)});if(F||B)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+B)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.G7(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+F)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.G7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.cZ(this.hostElement,"iron-announce",{text:G})}};
_.w.getPreviewPosition=function(G,B,F,D){return Math.round(100*(G+B*.5-F)/D)};
_.w.displayImage=function(){var G=this.JSC$16123_pickerContainer.getBoundingClientRect().width,B=this.JSC$16123_pickerContainer.getBoundingClientRect().height,F=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),D=this.JSC$16123_imageInBackground.naturalWidth,u=this.JSC$16123_imageInBackground.naturalHeight;this.displayScale=Math.max(F/D,F/u);this.imageWidth=D*this.displayScale;this.imageHeight=u*this.displayScale;this.pickerDisplayOffsetLeft=(G-F)/2;this.pickerDisplayOffsetTop=
(B-F)/2;this.imageDisplayOffsetLeft=u>D?this.pickerDisplayOffsetLeft:(G-this.imageWidth)/2;this.imageDisplayOffsetTop=D>u?this.pickerDisplayOffsetTop:(B-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.w.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16123_imageInBackground.src=this.imageData.toString(),this.JSC$16123_imageInPicker.src=this.imageData.toString(),this.JSC$16123_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.w.getSignedPosition=function(G,B,F){return B==="X"&&_.v5("HTML_DIR")==="rtl"?F==="-"?G+"px":G*-1+"px":F==="-"?G*-1+"px":G+"px"};
_.w.pickerMove=function(G){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var B=this.pickerOffsetX-G.clientX,F=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
F)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-B))}};
_.w.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.w.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.w.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.cZ(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.w.getPreviewOffset=function(G,B,F,D){return B&&G&&F?(D==="X"&&_.v5("HTML_DIR")==="rtl"?F/B*G:F/B*G*-1)+"px":"0px"};
_.w.getSimpleText=function(G){return G?_.zx(G):""};
_.w.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var G=this.cropOffsetTop/this.imageHeight,B=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,F=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,D=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.IF(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.cZ(this.hostElement,"yt-img-crop-coordinates-update",{top:G,right:B,bottom:F,left:D})}};
_.ZN.Object.defineProperties(pD.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.G7(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.G7(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.G7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.G7(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 G,B=(G=this.learnMore.runs[0])==null?void 0:G.navigationEndpoint,F;return((F=_.Q(B,_.MI))==null?void 0:F.url)||void 0}}}});
pD.prototype.onImageDataChange=pD.prototype.onImageDataChange;_.c([_.v(),_.I("design:type",Object)],pD.prototype,"imageData",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"instruction",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"a11yConfig",void 0);_.c([_.v(),_.I("design:type",Number)],pD.prototype,"imageWidth",void 0);_.c([_.v(),_.I("design:type",Number)],pD.prototype,"imageHeight",void 0);_.c([_.v(),_.I("design:type",Number)],pD.prototype,"displayScale",void 0);
_.c([_.v(),_.I("design:type",Object)],pD.prototype,"imageDisplayOffsetTop",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"cropCoordinatesSaved",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"previewSize",void 0);
_.c([_.v(),_.I("design:type",Object)],pD.prototype,"startPicker",void 0);_.c([_.v(),_.I("design:type",Number)],pD.prototype,"pickerOffsetX",void 0);_.c([_.v(),_.I("design:type",Number)],pD.prototype,"pickerOffsetY",void 0);_.c([_.v(),_.I("design:type",Object)],pD.prototype,"repositionOptional",void 0);_.c([_.iA("#picker-container"),_.I("design:type",HTMLElement)],pD.prototype,"JSC$16123_pickerContainer",void 0);_.c([_.iA("#picker"),_.I("design:type",HTMLElement)],pD.prototype,"picker",void 0);
_.c([_.iA("#image-in-picker-background"),_.I("design:type",HTMLImageElement)],pD.prototype,"JSC$16123_imageInBackground",void 0);_.c([_.iA("#image-in-picker"),_.I("design:type",HTMLImageElement)],pD.prototype,"JSC$16123_imageInPicker",void 0);_.c([_.iA("#image-in-preview-clipper"),_.I("design:type",HTMLImageElement)],pD.prototype,"JSC$16123_imageInPreviewClipper",void 0);_.c([_.iA("#full-image-as-preview"),_.I("design:type",HTMLImageElement)],pD.prototype,"imageAsPreview",void 0);
_.c([_.O("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],pD.prototype,"altLabelForImage",null);_.c([_.O("imageHeight","imageWidth"),_.I("design:type",Number),_.I("design:paramtypes",[])],pD.prototype,"pickerSize",null);_.c([_.O("imageHeight","imageWidth"),_.I("design:type",Object),_.I("design:paramtypes",[])],pD.prototype,"imageOrientationStyle",null);
_.c([_.O("instruction.previewInstruction.editButtonLabel"),_.I("design:type",Object),_.I("design:paramtypes",[])],pD.prototype,"editButton",null);_.c([_.O("instruction.editInstruction.saveButtonLabel"),_.I("design:type",Object),_.I("design:paramtypes",[])],pD.prototype,"saveButton",null);_.c([_.O("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.I("design:type",Number),_.I("design:paramtypes",[])],pD.prototype,"cropOffsetTop",null);
_.c([_.O("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.I("design:type",Number),_.I("design:paramtypes",[])],pD.prototype,"cropOffsetLeft",null);_.c([_.O("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],pD.prototype,"pickerBackgroundStyle",null);_.c([_.O("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],pD.prototype,"pickerDisplayStyle",null);
_.c([_.O("cropOffsetLeft","cropOffsetTop"),_.I("design:type",String),_.I("design:paramtypes",[])],pD.prototype,"imageInPickerStyle",null);_.c([_.O("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.I("design:type",String),_.I("design:paramtypes",[])],pD.prototype,"previewClipperStyle",null);_.c([_.Ga("imageData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],pD.prototype,"onImageDataChange",null);
_.c([_.O("cropCoordinatesSaved"),_.I("design:type",String),_.I("design:paramtypes",[])],pD.prototype,"pickerModeStyle",null);_.c([_.O("instruction.editInstruction.learnMore"),_.I("design:type",Object),_.I("design:paramtypes",[])],pD.prototype,"learnMore",null);_.c([_.O("learnMore"),_.I("design:type",Object),_.I("design:paramtypes",[])],pD.prototype,"learnMoreUrl",null);_.c([_.ay({is:"yt-img-crop-picker",disableElementRegistration:!0})],pD);
_.d(pD,"yt-img-crop-picker",function(){if(K1N===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;hvw===void 0&&(hvw=document.createElement("template"));var D=hvw;F.call(B,D.content.cloneNode(!0),G.content.firstChild);K1N=G}G=K1N;return G},{mode:2});var Yp=function(){var G=_.p.apply(this,arguments)||this;G.errorMessage="";G.hasPreview=!1;G.isBackstagePost=!1;G.dismissButtonOverrides={size:"XS"};return G};
_.r(Yp,_.p);_.w=Yp.prototype;_.w.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"}}}};
_.w.detached=function(){this.removeOverlay()};
_.w.setPreview=function(G){_.IF(this.hostElement).querySelector("#preview-picker").imageData=G;this.hasPreview=!0;_.cZ(this.hostElement,"yt-backstage-image-select-preview")};
_.w.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var G=_.IF(this.hostElement).querySelector("#dropzone");G.classList.remove("dragover");G.classList.remove("error");_.cZ(this.hostElement,"yt-backstage-image-select-cancel")};
_.w.setupOverlay=function(){var G=this.imageUploadEndpoint;this.removeOverlay();if(G&&G.imageValidationInfo){var B=_.IF(this.hostElement).querySelector("#dropzone"),F=_.IF(this.hostElement).querySelector("#select");this.overlay=new Vr(G.uploadUrl,G.channelId,G.imageValidationInfo.maxFileSizeMb,G.imageValidationInfo.allowedMaxAspectRatio,B,F,!0);_.H1(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.H1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.H1(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.H1(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.H1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.w.removeOverlay=function(){this.overlay&&(_.qX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.qX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.qX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.qX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.qX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.w.onDragOver=function(G){var B=_.IF(this.hostElement).querySelector("#dropzone");_.tV(B,"dragover",G.value)};
_.w.onPreview=function(G){this.setPreview(G.value)};
_.w.onImageError=function(G){if(G.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var B;G=(B=this.data)==null?void 0:B.fileSizeError}else if(G.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var F;G=(F=this.data)==null?void 0:F.invalidError}else if(G.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var D;G=(D=this.data)==null?void 0:D.invalidAspectRatioError}else return;this.errorMessage=_.zx(G);_.IF(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.w.onImageAlert=function(G){this.onImageError(G)};
_.w.uploadPromise=function(){var G=this,B=this.overlay&&this.overlay.uploadPromise();if(B)return B.catch(function(){throw Error(G.data?_.zx(G.data.uploadFailureError):"");})};
_.ZN.Object.defineProperties(Yp.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var G,B;if((G=this.data)==null?0:(B=G.icon)==null?0:B.iconType)return _.xT(this.data.icon.iconType)}}});
Yp.prototype.setupOverlay=Yp.prototype.setupOverlay;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Yp.prototype,"rendererStamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Yp.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Yp.prototype,"imageUploadEndpoint",void 0);_.c([_.v(),_.I("design:type",Object)],Yp.prototype,"errorMessage",void 0);
_.c([_.v(),_.I("design:type",Vr)],Yp.prototype,"overlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Yp.prototype,"hasPreview",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Yp.prototype,"isBackstagePost",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yp.prototype,"selectionCancel",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yp.prototype,"previewCancel",null);
_.c([_.O("data.icon.iconType"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yp.prototype,"icon",null);_.c([_.v(),_.I("design:type",Object)],Yp.prototype,"dismissButtonOverrides",void 0);_.c([_.Ga("imageUploadEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Yp.prototype,"setupOverlay",null);_.c([_.mC({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Yp);
_.d(Yp,"ytd-backstage-image-select-renderer",function(){if(qov!==void 0)return qov;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return qov=G},{mode:1});var aCP;var mdG;var AN=function(){var G=_.p.apply(this,arguments)||this;G.selected=!1;return G};
_.r(AN,_.p);_.w=AN.prototype;_.w.computeSelected=function(G){return G==null?void 0:G.selected};
_.w.computeTransform=function(G,B,F){var D,u,R=(u=(D=this.imageContainer)==null?void 0:D.getBoundingClientRect())!=null?u:{width:0,height:0};D=Math.max(R.width/B,R.height/F);F=F*D*G.top;return"translateX("+this.getSignedPosition(B*D*G.left,"X","-")+") translateY("+this.getSignedPosition(F,"Y","-")+")"};
_.w.getSignedPosition=function(G,B,F){return B==="X"&&_.v5("HTML_DIR")==="rtl"?F==="-"?G+"px":G*-1+"px":F==="-"?G*-1+"px":G+"px"};
_.w.onClick=function(){var G;_.cZ(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(G=this.data)==null?void 0:G.image)};
_.w.onKeyPress=function(G){if(G.keyCode===13)this.onClick()};
_.ZN.Object.defineProperties(AN.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.image)==null?void 0:B.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.image){var B;G=(B=this.data)==null?void 0:B.image;return G.previewCoordinates.top!==0||G.previewCoordinates.left!==0?(B=this.computeTransform(G.previewCoordinates,G.naturalWidth,G.naturalHeight),G.naturalHeight>=G.naturalWidth?"width:inherit;transform:"+B+";":"height:inherit;transform:"+B+";"):G.naturalHeight>=G.naturalWidth?"width:inherit;":"height:inherit;"}}}});
AN.prototype.onKeyPress=AN.prototype.onKeyPress;_.c([_.iA(".image-container"),_.I("design:type",HTMLElement)],AN.prototype,"imageContainer",void 0);_.c([_.v(),_.I("design:type",Object)],AN.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.I("design:type",Object)],AN.prototype,"selected",void 0);_.c([_.O("data.image"),_.I("design:type",Object),_.I("design:paramtypes",[])],AN.prototype,"thumbnailUrl",null);
_.c([_.O("data.image","data.image.previewCoordinates"),_.I("design:type",Object),_.I("design:paramtypes",[])],AN.prototype,"thumbnailStyle",null);_.c([_.Pm("keypress"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],AN.prototype,"onKeyPress",null);_.c([_.mC({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],AN);
_.tS()(AN,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(mdG===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);mdG=G}G=mdG;return G},{allowedProps:["data"],
mode:2});var dE=function(G,B,F){F=F===void 0?!1:F;_.W1.call(this);var D=this;this.dropZoneOverlay=new TG(G);this.selectOverlay=F?new Ic(B,"multiple_file",["image/*"]):new Ic(B,"single_file",["image/*"]);this.handler=new _.Cn(this);_.gq(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(B,"click",function(){D.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.r(dE,_.W1);dE.prototype.onChange=function(G){var B;(B=G.files)!=null&&B.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:G.files}))};var JN=function(){var G=_.p.apply(this,arguments)||this;G.addImageErrorMessage="";G.errorMessage="";G.images=[];G.selectedImageIndex=0;G.modern=_.X("web_modern_buttons");G.maxNumImagesPerPost=_.sD("max_num_images_per_post_web_ui");G.JSC$16138_imageId=0;return G};
_.r(JN,_.p);_.w=JN.prototype;_.w.created=function(){var G=this;this.JSC$16138_ytReorderableController=new _.MMw(100,function(B){G.handleDrop(B)})};
_.w.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.cZ(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.w.observeDragToReorder=function(){var G=this;if(this.showImagesPreview){var B,F=Jvs(_.fM.getInstance(),(B=this.data)==null?void 0:B.dragToReorderTooltip);_.Lu.addLowPriorityJob(function(){_.tL(G.hostElement,F,G.thumbnailDragDropArea)})}};
_.w.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}}};
_.w.computeThumbnail=function(G){return(G==null?void 0:G.localImageSrc)||void 0};
_.w.onRendererstamperFinished=function(){_.pka(this.JSC$16138_ytReorderableController,_.IF(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.IF(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.w.handleDrop=function(G){var B=G.currDragItem;if(B!=null&&B.data){G=this.images[this.selectedImageIndex];var F=B.data.image,D=this.images.indexOf(F)||0;B=_.ML(B.parentNode.children,B);this.images.splice(D,1);this.images.splice(B,0,F);this.images=[].concat(_.gi(this.images));this.selectedImageIndex=this.images.indexOf(G)}};
_.w.setUpImagePicker=function(){var G=this.imageUploadEndpoint;G&&G.imageValidationInfo&&(this.uploadManager=new vh(G.uploadUrl,G.channelId),this.initialPicker||(this.initialPicker=new dE(this.dropzone,this.selectLink,!0),_.H1(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new dE(this.addImageButtonContainer,this.addImageSelectButton),_.H1(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.H1(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.H1(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.H1(_.IF(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.w.detached=function(){this.initialPicker&&(_.qX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.qX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Gl(this.JSC$16138_ytReorderableController)};
_.w.onInitialSelectImages=function(G){var B=this;return _.n(function(F){return F.yield(B.onSelectImages(G,!1),0)})};
_.w.onAddImage=function(G){var B=this;return _.n(function(F){return F.yield(B.onSelectImages(G,!0),0)})};
_.w.onSelectImages=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z;return _.n(function(P){switch(P.nextAddress){case 1:B?F.addImageErrorMessage="":(F.images=[],F.errorMessage="");D=G.detail;u=F.validateImages([].concat(_.gi(D)));if(u!=="")return B?F.addImageErrorMessage=u:F.errorMessage=u,P.return();R=[].concat(_.gi(D)).map(function(RI){return(new zV(F.maxAspectRatio,!1,!0)).transform(RI)});
return P.yield(Promise.allSettled(R),2);case 2:N=P.yieldResult,y=_.C(N.entries()),U=y.next();case 3:if(U.done){P.jumpTo(5);break}q=U.value;h=_.C(q);K=h.next().value;a=h.next().value;m=K;L=a;if(L.status!=="fulfilled"){b=e=W=void 0;B?F.addImageErrorMessage=_.zx((W=F.data)==null?void 0:W.invalidError):F.errorMessage=F.errorMessage===""?_.zx((e=F.data)==null?void 0:e.invalidError):_.zx((b=F.data)==null?void 0:b.multiFileError);P.jumpTo(4);break}M=L.value;M.cropped&&_.cZ(F.hostElement,"yt-backstage-multi-image-cropped");
if(M.invalidAspectRatio){A=T=t=void 0;B?F.addImageErrorMessage=_.zx((t=F.data)==null?void 0:t.invalidAspectRatioError):F.errorMessage=F.errorMessage===""?_.zx((T=F.data)==null?void 0:T.invalidAspectRatioError):_.zx((A=F.data)==null?void 0:A.multiFileError);P.jumpTo(4);break}return P.yield(Uxo(F.JSC$16138_imageId,G.detail[m],M.transformedData),8);case 8:Z=P.yieldResult,F.images.push(Z),F.JSC$16138_imageId++;case 4:U=y.next();P.jumpTo(3);break;case 5:if(F.errorMessage!==""||F.addImageErrorMessage!==
"")return P.return();B?Rvs(F.uploadManager,[F.images[F.images.length-1]]):Rvs(F.uploadManager,F.images);F.images=[].concat(_.gi(F.images));F.selectedImageIndex=B?Math.max(F.images.length-1,0):0;_.cZ(F.hostElement,"yt-backstage-multi-image-select");_.di(P)}})};
_.w.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.w.validateImages=function(G){if(G.length>this.maxNumImagesPerPost){var B;return _.zx((B=this.data)==null?void 0:B.multiImageExceedMaxImageCountError)}var F=1048576*this.maxFileSizeMb;G=G.filter(function(R){return R.size>F}).length;
if(G===0)return"";var D,u;G=G>1?(D=this.data)==null?void 0:D.multiFileError:(u=this.data)==null?void 0:u.fileSizeError;return _.zx(G)};
_.w.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.gi(this.images));this.selectedImageIndex=0};
_.w.repositionImage=function(G){this.images[this.selectedImageIndex].previewCoordinates=G.event_.detail;this.images=[].concat(_.gi(this.images))};
_.w.getAllUploadStatuses=function(){var G=this,B,F,D,u;return _.n(function(R){if(R.nextAddress==1)return R.yield(G.uploadManager.getAllUploadStatuses(),2);B=R.yieldResult;F=_.C(B);for(D=F.next();!D.done;D=F.next())if(u=D.value,u.encryptedBlobId===void 0)return R.return(wJy(G.uploadManager));return R.return(B)})};
_.w.hasImages=function(){return this.images.length>0};
_.w.cancel=function(){for(var G=this.uploadManager,B=_.C(G.imagesUploadData),F=B.next();!F.done;F=B.next())G.cancel(F.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.cZ(this.hostElement,"yt-backstage-multi-image-cancel")};
_.ZN.Object.defineProperties(JN.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.imageUploadEndpoint)==null?void 0:(B=G.imageValidationInfo)==null?void 0:B.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.imageUploadEndpoint)==null?void 0:(B=G.imageValidationInfo)==null?void 0:B.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var G,B;if((G=this.data)==null?0:(B=G.icon)==null?0:B.iconType)return _.xT(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.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 G=this;return(this.images||[]).map(function(B,F){return{renderer:{image:B,selected:F===G.selectedImageIndex}}})}}});
JN.prototype.setUpImagePicker=JN.prototype.setUpImagePicker;JN.prototype.onRendererstamperFinished=JN.prototype.onRendererstamperFinished;JN.prototype.observeDragToReorder=JN.prototype.observeDragToReorder;JN.prototype.observeAddImageError=JN.prototype.observeAddImageError;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],JN.prototype,"rendererStamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);
_.c([_.iA("#dropzone"),_.I("design:type",HTMLElement)],JN.prototype,"dropzone",void 0);_.c([_.iA("#select-link"),_.I("design:type",HTMLElement)],JN.prototype,"selectLink",void 0);_.c([_.iA("#thumbnail-drag-drop-area"),_.I("design:type",HTMLElement)],JN.prototype,"thumbnailDragDropArea",void 0);_.c([_.iA("#add-image-button-container"),_.I("design:type",HTMLElement)],JN.prototype,"addImageButtonContainer",void 0);
_.c([_.iA("#add-image-button"),_.I("design:type",HTMLElement)],JN.prototype,"addImageSelectButton",void 0);_.c([_.iA("#image-preview-container"),_.I("design:type",Object)],JN.prototype,"imagePreviewContainer",void 0);_.c([_.v(),_.I("design:type",Object)],JN.prototype,"addImageErrorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],JN.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],JN.prototype,"errorMessage",void 0);
_.c([_.v(),_.I("design:type",Object)],JN.prototype,"imageUploadEndpoint",void 0);_.c([_.v(),_.I("design:type",Array)],JN.prototype,"images",void 0);_.c([_.v(),_.I("design:type",dE)],JN.prototype,"initialPicker",void 0);_.c([_.v(),_.I("design:type",dE)],JN.prototype,"addImagePicker",void 0);_.c([_.v(),_.I("design:type",vh)],JN.prototype,"uploadManager",void 0);_.c([_.v(),_.I("design:type",Object)],JN.prototype,"selectedImageIndex",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],JN.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],JN.prototype,"maxNumImagesPerPost",void 0);_.c([_.O("imageUploadEndpoint"),_.I("design:type",Number),_.I("design:paramtypes",[])],JN.prototype,"maxAspectRatio",null);_.c([_.O("imageUploadEndpoint"),_.I("design:type",Number),_.I("design:paramtypes",[])],JN.prototype,"maxFileSizeMb",null);
_.c([_.O("data.icon.iconType"),_.I("design:type",Object),_.I("design:paramtypes",[])],JN.prototype,"dropIcon",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],JN.prototype,"selectionCancel",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],JN.prototype,"previewCancel",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],JN.prototype,"dataForAddImageButton",null);
_.c([_.O("errorMessage"),_.I("design:type",String),_.I("design:paramtypes",[])],JN.prototype,"dropzoneClass",null);_.c([_.O("images"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],JN.prototype,"showImagesPreview",null);_.c([_.O("images"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],JN.prototype,"containMaxImages",null);_.c([_.Ga("addImageErrorMessage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JN.prototype,"observeAddImageError",null);
_.c([_.Ga("showImagesPreview"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JN.prototype,"observeDragToReorder",null);_.c([_.O("images","selectedImageIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],JN.prototype,"selectedImageData",null);_.c([_.O("images","selectedImageIndex"),_.I("design:type",Array),_.I("design:paramtypes",[])],JN.prototype,"thumbnailRenderers",null);
_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JN.prototype,"onRendererstamperFinished",null);_.c([_.Ga("imageUploadEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JN.prototype,"setUpImagePicker",null);_.c([_.mC({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],JN);
_.d(JN,"ytd-backstage-multi-image-select-renderer",function(){if(aCP!==void 0)return aCP;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return aCP=G},{mode:1});var XJT;var QEG;var jE7;var ch=function(){var G=_.p.apply(this,arguments)||this;G.boundCaptureFocus=function(B){G.onCaptureFocus(B)};
return G};
_.r(ch,_.p);_.w=ch.prototype;_.w.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.w.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.w.onCaptureFocus=function(G){_.VW(G).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.w.getIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.w.onSelect=function(){var G;if((G=this.data)==null?0:G.onSelectCommand)if(_.X("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var B;((B=_.Q(this.data.onSelectCommand.commandMetadata,_.xy))==null?0:B.url)?_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.te().resolve(_.Wr).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.ZN.Object.defineProperties(ch.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.zx(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}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ch.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ch.prototype,"data",void 0);_.c([_.iA("#item"),_.I("design:type",HTMLElement)],ch.prototype,"item",void 0);_.c([_.O("data.label"),_.I("design:type",String),_.I("design:paramtypes",[])],ch.prototype,"label",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],ch.prototype,"value",null);_.c([_.mC({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],ch);
_.d(ch,"ytd-privacy-dropdown-item-renderer",function(){if(jE7!==void 0)return jE7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jE7=G},{mode:1});var TQ=function(){var G=_.p.apply(this,arguments)||this;G.value="";G.label="";G.disabled=!1;return G};
_.r(TQ,_.p);_.w=TQ.prototype;_.w.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"}}}};
_.w.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.w.dataChanged=function(){this.reset()};
_.w.valueChanged=function(){var G;if(this.value&&(G=this.data)!=null&&G.entries){G=_.C(this.data.entries);for(var B=G.next();!B.done;B=G.next())if((B=this.getRendererForEntry(B.value))&&this.getItemRendererValue(B)===this.value){this.label=this.ytComponentBehavior.getSimpleString(B.label);break}}};
_.w.setInitialLabel=function(){if(this.data&&this.data.entries)for(var G=_.C(this.data.entries),B=G.next();!B.done;B=G.next())if(B=this.getRendererForEntry(B.value)){if(B.isSelected){this.label=this.ytComponentBehavior.getSimpleString(B.label);break}this.data.label&&(this.label=this.data.label)}};
_.w.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var G=_.C(this.data.entries),B=G.next();!B.done;B=G.next()){B=this.getRendererForEntry(B.value);var F=void 0;if((F=B)==null?0:F.isSelected)return this.getItemRendererValue(B)||-1}return-1};
_.w.getItemRendererValue=function(G){return"stringValue"in G||"int32Value"in G?G.stringValue||G.int32Value||null:null};
_.w.getRendererForEntry=function(G){return G.dropdownItemRenderer||G.privacyDropdownItemRenderer||G.navigationDropdownItemRenderer||null};
_.w.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("value-changed",this.value))};
_.w.updateValueFromBinding=function(G){this.value=G.detail.value};
TQ.prototype.valueChangedForBinding=TQ.prototype.valueChangedForBinding;TQ.prototype.valueChanged=TQ.prototype.valueChanged;TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],TQ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],TQ.prototype,"value",void 0);_.c([_.v(),_.I("design:type",Object)],TQ.prototype,"label",void 0);_.c([_.iA("#entries"),_.I("design:type",Object)],TQ.prototype,"entries",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],TQ.prototype,"disabled",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TQ.prototype,"dataChanged",null);
_.c([_.Ry("value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TQ.prototype,"valueChanged",null);_.c([_.Ga("value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TQ.prototype,"valueChangedForBinding",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],TQ);
_.d(TQ,"ytd-flat-dropdown-renderer",function(){if(QEG!==void 0)return QEG;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QEG=G},{mode:1});var L1L;var IH=function(){var G=_.p.apply(this,arguments)||this;G.quizOptions=[];G.explanationPlaceholderText="";G.optionPlaceholderText="";G.correctAnswerIndex=-1;G.isMarkAnswerTooltipShown=!1;G.timer=0;return G};
_.r(IH,_.p);_.w=IH.prototype;_.w.dataChanged=function(){this.optionPlaceholderText=_.zx(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.zx(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.w.onMarkCorrectAnswer=function(G){var B,F=((B=this.quizOptions[this.correctAnswerIndex])==null?void 0:B.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[G.model.index]=Object.assign({},this.quizOptions[G.model.index],{explanationText:F,isCorrect:!0});this.correctAnswerIndex=G.model.index;this.quizOptions=[].concat(_.gi(this.quizOptions))};
_.w.updatePlaceholderTexts=function(){for(var G=!1,B=[],F=0;F<this.quizOptions.length;F++){var D=this.optionPlaceholderText+" "+(F+1),u=void 0;((u=this.quizOptions[F])==null?void 0:u.placeholderText)!==D?(G=!0,B.push(Object.assign({},this.quizOptions[F],{placeholderText:D}))):B.push(this.quizOptions[F])}G&&(this.quizOptions=B);this.isValid()?_.cZ(this.hostElement,"yt-commentbox-post-enable"):_.cZ(this.hostElement,"yt-commentbox-post-disable")};
_.w.getSimpleString=function(G){return _.zx(G)};
_.w.createQuizOptions=function(G){var B=[],F;G=(F=G==null?void 0:G.minQuizOptions)!=null?F:0;for(F=0;F<G;F++)B.push(this.createQuizOption());return B};
_.w.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.gi(this.quizOptions),[this.createQuizOption()]))};
_.w.onInput=function(){this.quizOptions=[].concat(_.gi(this.quizOptions))};
_.w.onExplanationInput=function(){_.cZ(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.w.onRemoveQuizOption=function(G){this.quizOptions.splice(G.model.index,1);G.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:G.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.gi(this.quizOptions));this.quizOptions.length===0&&_.cZ(this.hostElement,"yt-quiz-attachment-dismiss")};
_.w.updateHintRenderer=function(){var G=this;clearTimeout(this.timer);this.timer=setTimeout(function(){G.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.w.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var G=0,B=0,F=_.C(this.quizOptions),D=F.next();!D.done;D=F.next()){D=D.value;var u=void 0;if(((u=D.optionText)==null?void 0:u.trim())!==""||D.isCorrect){D.isCorrect&&B++;u=void 0;if(this.hasCustomOptionText&&((u=D.optionText)==null?void 0:u.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;G++}}return G>=
Number(this.editorInfo.minQuizOptions)&&B===1};
_.w.getPostCreateOptions=function(){for(var G=[],B=_.C(this.quizOptions),F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0;((D=F.optionText)==null?void 0:D.trim())!==""&&G.push({pollOption:{text:F.optionText,explanation:F.explanationText},isCorrect:F.isCorrect})}return G};
_.w.getExplanationText=function(){var G;return((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||""};
_.w.maybeDisplayMarkAnswerEduToolTip=function(){var G,B,F,D,u,R,N;this.shouldShowMarkAnswerTooltip()&&((G=this.editorInfo)==null?0:(B=G.markAnswerButton)==null?0:(F=B.buttonRenderer)==null?0:(D=F.hint)==null?0:(u=D.hintRenderer)==null?0:(R=u.content)==null?0:(N=R.bubbleHintRenderer)==null?0:N.text)&&(_.fM.getInstance(),G=tX(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,(G==null?void 0:G.length)>0&&this.optionSelectors&&_.Br(G[0],this.optionSelectors[0]))};
_.w.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var G=0,B=_.C(this.quizOptions),F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0;((D=F.optionText)==null?void 0:D.trim())!==""&&G++;if(F.isCorrect)return!1}return G<2?!1:!0};
_.w.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.w.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.w.updateOptionTextFromBinding=function(G){if(G.target){var B=Array.from(_.IF(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(G.target);if(B>=0){var F;this.quizOptions[B].optionText=(F=G.detail.value)!=null?F:""}}};
_.ZN.Object.defineProperties(IH.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.editorInfo)==null?void 0:(B=G.addOptionButton)==null?void 0:B.buttonRenderer;F&&(F.style="STYLE_SUGGESTIVE",F.size="SIZE_SMALL",F.isDisabled=!this.isAllowedToAddOption);return(F==null?0:F.text)?F:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,B;return this.quizOptions.length<((B=(G=this.editorInfo)==null?void 0:G.maxQuizOptions)!=null?B:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(G){var B;return(B=G.optionText)==null?void 0:B.trim()})}}});
IH.prototype.updatePlaceholderTexts=IH.prototype.updatePlaceholderTexts;IH.prototype.dataChanged=IH.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],IH.prototype,"editorInfo",void 0);_.c([_.v(),_.I("design:type",Array)],IH.prototype,"quizOptions",void 0);_.c([_.v(),_.I("design:type",Object)],IH.prototype,"explanationPlaceholderText",void 0);_.c([_.FQ(".option-selector-button"),_.I("design:type",Array)],IH.prototype,"optionSelectors",void 0);
_.c([_.Ry("editorInfo"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IH.prototype,"dataChanged",null);_.c([_.O("editorInfo","isAllowedToAddOption","quizOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],IH.prototype,"addAnswerButton",null);_.c([_.O("editorInfo","quizOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],IH.prototype,"isAllowedToAddOption",null);
_.c([_.Ry("quizOptions"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IH.prototype,"updatePlaceholderTexts",null);_.c([_.O("quizOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],IH.prototype,"hasCustomOptionText",null);_.c([_.mC({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],IH);
_.d(IH,"ytd-backstage-quiz-editor-renderer",function(){if(L1L!==void 0)return L1L;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return L1L=G},{mode:2});var ru8;var W1T=(Gf.FIRSTDAYOFWEEK+1)%7;var HYy;var kb7=[],OYP=0,ev7=0;OYP=0;ev7=24;if(.25*(ev7-OYP)<0)HYy=[];else{for(var $dv=OYP;$dv<ev7;$dv+=.25)kb7.push($dv);HYy=kb7}var zvv=HYy.map(function(G){G=G*60*60;return{secondsSinceMidnight:G,text:(new ew(7)).format(new Date(0,0,0,0,0,G))}});var bYw;var fD=function(){var G=_.p.apply(this,arguments)||this;G.skipNextOpenDialog=!1;G.errorMessage="";G.previousMonthLabel=_.G7("PREVIOUS_MONTH_LABEL");G.nextMonthLabel=_.G7("NEXT_MONTH_LABEL");return G};
_.r(fD,_.p);_.w=fD.prototype;_.w.attached=function(){var G=this,B=new MutationObserver(function(){G.JSC$16180_calendarMain.scrollHeight>0&&(B.disconnect(),G.calendarConfig&&G.calendarConfig.selectedDate&&G.scrollToDate())});
B.observe(this.JSC$16180_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){B.disconnect()},1E3)};
_.w.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.w.onDateTextChange=function(){if(this.calendarConfig){var G=this.validateDateText();G.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(G.details)):this.textbox.setAttribute("invalid","")}};
_.w.handleDayClick=function(G){G.model.day.date&&(this.commitDate(G.model.day.date),this.dialog.close())};
_.w.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var G=r$l(this.calendarConfig.selectedDate,this.renderData);G!==void 0&&this.JSC$16180_calendarMain.scrollToIndex(G)}};
_.w.scrollToNextMonth=function(){this.JSC$16180_calendarMain.scrollToIndex(this.JSC$16180_calendarMain.firstVisibleIndex+1)};
_.w.scrollToPrevMonth=function(){this.JSC$16180_calendarMain.firstVisibleIndex===0&&this.JSC$16180_calendarMain.scrollTo(0,0);this.JSC$16180_calendarMain.scrollToIndex(this.JSC$16180_calendarMain.firstVisibleIndex-1)};
_.w.onFormSubmit=function(G){G.preventDefault();this.calendarConfig&&(G=this.validateDateText(),G.isValid&&(this.commitDate(G.details),this.dialog.close()))};
_.w.onEscOrClickingOutside=function(G){G=G.detail.path&&!!G.detail.path.length&&G.detail.path[0];if(G.classList.contains("ytd-calendar-date-picker")){G===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var B=0;B<this.dropdownButton.children.length;B++)this.dropdownButton.children[B]===G&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}G=this.textbox.value!==this.dateText;B=this.validateDateText();G&&B.isValid&&this.commitDate(B.details);this.dialog.close();this.textbox.value=
this.dateText};
_.w.commitDate=function(G){this.calendarConfig&&(this.set("calendarConfig.selectedDate",G),_.cZ(this.hostElement,"ytd-calendar-date-selected",G))};
_.w.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var G=this.textbox.value;var B=new Date;G=(new TMI(2)).parse(G,B,{validate:!0})===G.length?jvJ(B):void 0;if(!G)return this.errorMessage=_.G7("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};B=this.calendarConfig.start;var F=this.calendarConfig.end;if(KeI(G,B))return this.errorMessage=_.G7("ENTER_DATE_OR_LATER",{allowed_date:Qvg(B)}),{isValid:!1,details:void 0};if(KeI(F,G))return this.errorMessage=
_.G7("ENTER_DATE_OR_EARLIER",{allowed_date:Qvg(F)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:G}};
_.ZN.Object.defineProperties(fD.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Qvg(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var G=this.calendarConfig,B=[],F=0;F<7;F++)B.push(Gf.NARROWWEEKDAYS[(F+W1T)%7]);F=[];for(var D=new Date(G.start.year,G.start.month);D.getFullYear()<G.end.year||D.getFullYear()===G.end.year&&D.getMonth()<=G.end.month;){var u=F,R=u.push,N=D.getFullYear(),y=D.getMonth(),U=G,q=void 0,h=[],K=Object.freeze({extraCssClass:"invisible",debugClass:""}),a=new Date(N,y),m=jvJ(a);a=a.getDay();for(var L=jvJ(new Date);m.month===
y;){a!==W1T&&q||(q=Array.from({length:7}).fill(K),h.push(q));var W={date:{year:N,month:y,day:m.day},extraCssClass:"",debugClass:""};U.selectedDate&&W.date&&hlg(W.date,U.selectedDate)&&(W.extraCssClass+=" selected");if(KeI(m,U.start)||KeI(U.end,m))W.extraCssClass+=" disabled";hlg(m,L)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();q[(a-W1T+7)%7]=W;m=mxo(m);a=(a+1)%7}R.call(u,{weeks:h,monthLabel:Gf.SHORTMONTHS[y]+" "+N,year:N,month:y,monthLabelExtraCssClass:h[0][2]===K?"shift-down-label":
""});D.setMonth(D.getMonth()+1)}return{months:F,daysOfWeekLabel:B}}}}});
fD.prototype.onEscOrClickingOutside=fD.prototype.onEscOrClickingOutside;fD.prototype.scrollToDate=fD.prototype.scrollToDate;_.c([_.v(),_.I("design:type",Object)],fD.prototype,"calendarConfig",void 0);_.c([_.v(),_.I("design:type",Object)],fD.prototype,"skipNextOpenDialog",void 0);_.c([_.v(),_.I("design:type",Object)],fD.prototype,"errorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],fD.prototype,"previousMonthLabel",void 0);
_.c([_.v(),_.I("design:type",Object)],fD.prototype,"nextMonthLabel",void 0);_.c([_.iA("#textbox"),_.I("design:type",HTMLInputElement)],fD.prototype,"textbox",void 0);_.c([_.iA("#calendar-dialog"),_.I("design:type",Object)],fD.prototype,"dialog",void 0);_.c([_.iA("#calendar-main"),_.I("design:type",Object)],fD.prototype,"JSC$16180_calendarMain",void 0);_.c([_.iA("#date-picker"),_.I("design:type",HTMLElement)],fD.prototype,"dropdownButton",void 0);
_.c([_.O("calendarConfig.selectedDate"),_.I("design:type",String),_.I("design:paramtypes",[])],fD.prototype,"dateText",null);_.c([_.O("calendarConfig","calendarConfig.selectedDate"),_.I("design:type",Object),_.I("design:paramtypes",[])],fD.prototype,"renderData",null);_.c([_.Ga("renderData","calendarConfig.selectedDate"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fD.prototype,"scrollToDate",null);
_.c([_.Pm("iron-overlay-canceled"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],fD.prototype,"onEscOrClickingOutside",null);_.c([_.ay({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],fD);
_.d(fD,"ytd-calendar-date-picker",function(){if(bYw!==void 0)return bYw;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return bYw=G},{mode:2});var VYy=_.G7("UTC_OFFSET_FORMAT",{utc_offset:(new ew("Z")).format(new Date)}),vsP=(new Date).getTimezoneOffset()*-60,osT=new Date,MYU,pJL=OX(osT.getTimezoneOffset());MYU=KA8(m6G(pJL,osT));var Yoq=_.G7("LOCAL_TIME_GMT_LABEL",{gmt_text:MYU.replace("+0","+").replace("-0","-").replace(":00","")}),tN=function(){var G=_.p.apply(this,arguments)||this;G.selectedTimeIndex=0;G.selectedTimezoneIndex=0;G.timeOfDayOptions=zvv;return G};
_.r(tN,_.p);_.w=tN.prototype;_.w.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var G=XG8();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=G,this.selectedTimeIndex=0;else{var B=Le8(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},G,{selectedDate:B.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(F){return F.secondsSinceMidnight===B.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.w.onDatePicked=function(G){this.selectedDate=G.detail};
_.w.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.cZ(this.hostElement,"ytd-date-time-selection-cancelled")};
_.w.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var G=this.selectedDate;G=new Date(G.year,G.month,G.day);_.cZ(this.hostElement,"ytd-date-time-selection-update",Math.floor(G.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+G.getTimezoneOffset()*60))}};
_.w.getTimezoneFormat=function(G){return G.localizedDisplayText?G.localizedDisplayText:_.G7("TIMEZONE_FORMAT",{utc_offset_text:""+G.localizedUtcOffset,city_name:""+G.localizedName})};
_.w.updateSelectedTimeIndexFromBinding=function(G){this.selectedTimeIndex=G.detail.value};
_.w.updateSelectedTimezoneIndexFromBinding=function(G){this.selectedTimezoneIndex=G.detail.value};
_.ZN.Object.defineProperties(tN.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data.timezoneOptions;var B={name:"Etc/Unknown",localizedName:_.G7("LOCAL_TIME_LABEL"),localizedUtcOffset:VYy,utcOffsetSec:""+vsP,localizedDisplayText:Yoq};G?G.length&&G[0].name!==B.name&&(G[0].localizedDisplayText||(B.localizedDisplayText=""),G.unshift(B)):G=[B];return G}}},
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]}}});
tN.prototype.onDateTimeTimezoneChange=tN.prototype.onDateTimeTimezoneChange;tN.prototype.onDatePicked=tN.prototype.onDatePicked;tN.prototype.updateDefaultSelectedValue=tN.prototype.updateDefaultSelectedValue;_.c([_.v(),_.I("design:type",Object)],tN.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],tN.prototype,"calendarConfig",void 0);_.c([_.v(),_.I("design:type",Object)],tN.prototype,"selectedDate",void 0);_.c([_.v(),_.I("design:type",Object)],tN.prototype,"selectedTimeIndex",void 0);
_.c([_.v(),_.I("design:type",Object)],tN.prototype,"selectedTimezoneIndex",void 0);_.c([_.iA("#time-listbox"),_.I("design:type",Object)],tN.prototype,"timeListBox",void 0);_.c([_.iA("#timezone-listbox"),_.I("design:type",Object)],tN.prototype,"timezoneListBox",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],tN.prototype,"rendererStamperBehavior",void 0);_.c([_.O("data.timezoneOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],tN.prototype,"timeZones",null);
_.c([_.Ry("data","timeZones"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tN.prototype,"updateDefaultSelectedValue",null);_.c([_.O("selectedTimezoneIndex","timeZones"),_.I("design:type",Object),_.I("design:paramtypes",[])],tN.prototype,"selectedTimezone",null);_.c([_.O("selectedTimeIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],tN.prototype,"selectedTime",null);
_.c([_.Pm("ytd-calendar-date-selected"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],tN.prototype,"onDatePicked",null);_.c([_.Ga("selectedTimezone","selectedTime","selectedDate"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tN.prototype,"onDateTimeTimezoneChange",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],tN);
_.d(tN,"ytd-date-time-picker-renderer",function(){if(ru8!==void 0)return ru8;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ru8=G},{mode:1});var Aut;var Zv=function(){var G=_.p.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.dismissTapHandler()};
G.dismissButtonOverrides={size:"XS"};return G};
_.r(Zv,_.p);Zv.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}}}}}};
Zv.prototype.dismissTapHandler=function(){_.cZ(this.hostElement,"yt-backstage-attachment-dismissed")};
Zv.prototype.computeAttachmentType=function(G){return G?G.backstageImageRenderer?"image":G.videoRenderer?"video":"none":"none"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Zv.prototype,"attachmentPreview",void 0);_.c([_.v(),_.I("design:type",Object)],Zv.prototype,"dismissButton",void 0);_.c([_.v(),_.I("design:type",Object)],Zv.prototype,"boundOnTapDismissButton",void 0);
_.c([_.v(),_.I("design:type",Object)],Zv.prototype,"dismissButtonOverrides",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.I("design:type",String)],Zv.prototype,"attachmentType",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Zv);
_.d(Zv,"ytd-backstage-dismissable-attachment",function(){if(Aut!==void 0)return Aut;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Aut=G},{mode:1});var ddt;var gE=function(){var G=_.p.apply(this,arguments)||this;G.selectedVideoId=void 0;G.picker=void 0;G.dismissButtonOverrides={size:"XS"};G.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return G};
_.r(gE,_.p);_.w=gE.prototype;_.w.onServiceRequestCompleted=function(G){G.stopPropagation()};
_.w.handleAddVideoPreviewAction=function(G){G=this.get("addVideoPreviewAction",G);this.onGetVideoPreviewSuccess(G)};
_.w.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}}}}}};
_.w.onLaunchVideoPicker=function(G){var B=this,F=_.zx(this.get("addVideoLinkAction.title",G)),D=this.get("addVideoLinkAction.onePickHostId",G);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",G);D&&(this.picker||(F=_.MWG(_.F4s(D).setTitle(F).addView(btt()).addView(zfT()),function(u){B.onPickVideo(u)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",G)||F.addView("youtube"),this.picker=F.build()),this.picker.setVisible(!0))};
_.w.onPickVideo=function(G){if(G)if(G.action==="cancel")_.cZ(this.hostElement,"yt-video-link-button-cancel");else if(G.action==="picked"){G=G.docs;if(!G||G.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(G=(G==null?0:G.length)?G[0]:void 0)?G.id:void 0;this.setVideoPreview()}};
_.w.setVideoPreview=function(){var G=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){G.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.w.onGetVideoPreviewSuccess=function(G){if(G&&G.videoPreview&&G.cancelButton)this.videoPreview=G.videoPreview,this.cancelButton=G.cancelButton,_.cZ(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.w.onGetVideoPreviewError=function(){this.cancel()};
_.w.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.cZ(this.hostElement,"yt-video-link-cancel")};
_.w.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
gE.prototype.onServiceRequestCompleted=gE.prototype.onServiceRequestCompleted;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],gE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],gE.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gE.prototype,"videoPreview",void 0);_.c([_.v(),_.I("design:type",Object)],gE.prototype,"cancelButton",void 0);_.c([_.v(),_.I("design:type",Object)],gE.prototype,"getVideoPreviewCommand",void 0);_.c([_.v(),_.I("design:type",Object)],gE.prototype,"dismissButtonOverrides",void 0);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],gE.prototype,"onServiceRequestCompleted",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],gE);
_.d(gE,"ytd-backstage-video-link-attachment",function(){if(ddt!==void 0)return ddt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ddt=G},{mode:1});var Juy;var cuy;var Tzw;var S$=function(){return _.p.apply(this,arguments)||this};
_.r(S$,_.p);S$.prototype.dataChanged=function(){this.active=!1};
S$.prototype.onTap=function(){_.cZ(this.hostElement,"yt-select-emoji-suggestion",this.data)};
S$.prototype.identity=function(G){return G};
_.ZN.Object.defineProperties(S$.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;if((G=this.data)==null?0:(B=G.image)==null?0:(F=B.thumbnails)==null?0:(D=F[0])==null?0:D.url)return G=this.data.image.thumbnails[0].url,G.startsWith("data:image/svg+xml")?TX(G):_.Sz(G)}}});
S$.prototype.dataChanged=S$.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],S$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],S$.prototype,"active",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],S$.prototype,"dataChanged",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],S$.prototype,"imageSrc",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],S$);
_.d(S$,"ytd-emoji-suggestion",function(){if(Tzw!==void 0)return Tzw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tzw=G},{mode:1});var ICa=/.*([:@#].*?)$/,sL=function(){var G=_.p.apply(this,arguments)||this;G.suggestions=[];G.suggestionIndex=-1;G.JSC$16208_lastSuggestionRange=null;return G};
_.r(sL,_.p);_.w=sL.prototype;_.w.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.w.getSuggestions=function(G){var B=[],F=Env(this.emojiManager,G.substr(0,3));if(F)for(var D in F)if(D.toLocaleLowerCase().indexOf(G)===0){var u=F[D];if(u&&u.emojiId){u=L9(this.emojiManager,u.emojiId);var R=void 0,N=void 0,y=void 0,U=void 0,q=((R=u)==null?0:R.isCustomEmoji)?(N=u)==null?void 0:(y=N.shortcuts)==null?void 0:y[0]:(U=u)==null?void 0:U.emojiId;R=void 0;B.push({suggestion:{image:(R=u)==null?void 0:R.image,alt:q,text:D}});if(B.length>=64)break}}return B?B.sort(function(h,K){return K.suggestion.text<
h.suggestion.text?-1:K.suggestion.text===h.suggestion.text?0:1}):null};
_.w.insertSuggestion=function(G){_.cZ(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16208_lastSuggestionRange,text:G.alt});this.dropdown.opened=!1};
_.w.updateSuggestionsAtCaret=function(G){this.updateSuggestions(G,this.retrieveTextBeforeRange(G))};
_.w.offsetStartOfRangeBy=function(G,B){G.startOffset>=B&&G.setStart(G.startContainer,G.startOffset-B)};
_.w.updateSuggestions=function(G,B){var F=this;this.JSC$16208_lastSuggestionRange&&(this.JSC$16208_lastSuggestionRange.detach(),this.JSC$16208_lastSuggestionRange=null);if((B=ICa.exec(B))&&B.length&&(B=B[B.length-1].toLocaleLowerCase(),B.length>2||B===":_")&&(this.offsetStartOfRangeBy(G,B.length),this.JSC$16208_lastSuggestionRange=G,(G=this.getSuggestions(B))&&G.length)){this.suggestions=G;_.ft(this,function(){F.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.w.onKeyDown=function(G){if(this.dropdown.opened)switch(G.key){case "Escape":this.dropdown.opened=!1;G.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);G.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.w.onKeyUp=function(G,B){switch(G.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(B);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(B)}};
_.w.onKeyPress=function(G){G.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),G.preventDefault())};
_.w.changeSuggestionIndex=function(G){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(G+this.suggestions.length)%this.suggestions.length,G=this.dropdownContent.children[this.suggestionIndex],G.active=!0,this.dropdownContent.scrollTop=G.offsetTop)};
_.w.retrieveTextBeforeRange=function(G){var B=G.startContainer;return B&&B.nodeType===Node.TEXT_NODE?B.textContent.substr(0,G.startOffset):""};
sL.prototype.onKeyPress=sL.prototype.onKeyPress;sL.prototype.onKeyUp=sL.prototype.onKeyUp;sL.prototype.onKeyDown=sL.prototype.onKeyDown;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Array)],sL.prototype,"suggestions",void 0);_.c([_.v(),_.I("design:type",_.Q0)],sL.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",Number)],sL.prototype,"verticalSuggestionsOffset",void 0);
_.c([_.iA("#dropdown"),_.I("design:type",Object)],sL.prototype,"dropdown",void 0);_.c([_.iA("#dropdown-content"),_.I("design:type",HTMLDivElement)],sL.prototype,"dropdownContent",void 0);_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],sL.prototype,"onKeyDown",null);_.c([_.Pm("keyup"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent,Range]),_.I("design:returntype")],sL.prototype,"onKeyUp",null);
_.c([_.Pm("keypress"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],sL.prototype,"onKeyPress",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-emoji-input"})],sL);
_.d(sL,"ytd-emoji-input",function(){if(cuy!==void 0)return cuy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cuy=G},{mode:2});var fCG;var xp=function(){var G=_.p.apply(this,arguments)||this;G.hasMaxOptions=!1;return G};
_.r(xp,_.p);_.w=xp.prototype;_.w.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.w.setPrefilledChoices=function(G){var B=this;this.set("pollOptions",[]);var F;for(F=0;F<Math.min(G.length,this.data.maxPollOptions);F++)this.push("pollOptions",G[F].substring(0,this.data.maxPollOptionChars));for(;F<this.data.minPollOptions;F++)this.push("pollOptions","");this.hasMaxOptions=F>=this.data.maxPollOptions;_.ft(this,function(){for(var D=B.pollOptions,u=_.IF(B.hostElement).querySelectorAll(".poll-option-input"),R=0;R<u.length;R++)u[R].value=D[R]})};
_.w.focusChanged=function(){_.Ss(this.hostElement)};
_.w.onInput=function(){var G=this;_.kT(this,"onInput",function(){G.isValid()?_.cZ(G.hostElement,"yt-commentbox-post-enable"):_.cZ(G.hostElement,"yt-commentbox-post-disable")},300)};
_.w.setPollOptions=function(){var G=[],B,F=((B=this.data)==null?0:B.minPollOptions)?this.data.minPollOptions:0;for(B=0;B<F;B++)G.push("");return G};
_.w.addPollOption=function(){var G=this;_.cZ(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Lu.addLowPriorityJob(function(){var B;(B=_.IF(G.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||B.focus()})};
_.w.onRemovePollOption=function(G){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.cZ(this.hostElement,"yt-poll-attachment-dismiss")):(G=this.repeat.indexForElement(G.target.parentNode),G!==null&&(this.splice("pollOptions",G,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.cZ(this.hostElement,"yt-commentbox-post-enable"))))};
_.w.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.w.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var G=0,B=this.pollOptions.length;G<B;G++)if(this.pollOptions[G].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.w.getPollOptions=function(){return this.pollOptions};
_.w.setPollOptionsFromInputs=function(){for(var G=_.IF(this.hostElement).querySelectorAll(".poll-option-input"),B=0;B<G.length;B++)this.pollOptions[B]=G[B].value.trim()};
_.w.clearPollOptions=function(){var G=_.IF(this.hostElement).querySelectorAll(".poll-option-input");G=_.C(G);for(var B=G.next();!B.done;B=G.next())B.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.w.getSimpleString=function(G){return _.zx(G)};
_.w.updateValueFromBinding=function(G){if(G.target&&this.pollOptions){var B=Array.from(_.IF(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(G.target);if(B>=0){var F;this.pollOptions[B]=(F=G.detail.value)!=null?F:"";this.notifyPath("pollOptions."+B)}}};
xp.prototype.dataChanged=xp.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xp.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Array)],xp.prototype,"pollOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xp.prototype,"hasMaxOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xp.prototype,"enableCreationBox",void 0);
_.c([_.iA("#repeat"),_.I("design:type",q7)],xp.prototype,"repeat",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xp.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-poll-attachment"})],xp);
_.d(xp,"ytd-poll-attachment",function(){if(fCG!==void 0)return fCG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return fCG=G},{mode:2});var tYT;var ZYq;var gst;var Sot;var Ph=function(){return _.p.apply(this,arguments)||this};
_.r(Ph,_.p);_.ZN.Object.defineProperties(Ph.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ph.prototype,"rendererBehaviors",void 0);_.c([_.v(),_.I("design:type",Object)],Ph.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Ph.prototype,"focused",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("focused"),_.I("design:type",Object),_.I("design:paramtypes",[])],Ph.prototype,"ariaSelected",null);_.c([_.ay({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Ph);
_.d(Ph,"yt-user-mention-suggestion-renderer",function(){if(Sot===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;gst===void 0&&(gst=document.createElement("template"));var D=gst;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Sot=G}G=Sot;return G},{mode:2});var sEs;var xda;var Gq=function(){var G=_.p.apply(this,arguments)||this;G.focusedSuggestionIndex=-1;return G};
_.r(Gq,_.p);_.w=Gq.prototype;_.w.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.w.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.w.setFocusedSuggestionIndex=function(G){!this.data||!this.data.suggestions||G<0||G>=this.data.suggestions.length||(this.focusedSuggestionIndex=G,G=this.getSuggestionId(G),this._setFocusedSuggestionId(G))};
_.w.advanceSuggestion=function(G){this.focusedSuggestionIndex===-1||G!==-1&&G!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+G),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.w.ensureSuggestionVisible=function(G){G=this.getSuggestionId(G);G=_.IF(this.hostElement).querySelector("[id="+G+"]");G!=null&&(G.offsetTop<this.hostElement.scrollTop?G.scrollIntoView(!0):G.offsetTop+G.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&G.scrollIntoView(!1))};
_.w.getSuggestionId=function(G){return"user-mention-suggestion-"+G};
_.w.onSuggestionTap=function(G){var B=_.Q(G.model.item,QJG);this.ytRendererBehavior.logExplicitClick(B);_.cZ(this.hostElement,"yt-user-mention-suggestion-selected",{data:B,index:G.model.index})};
_.w.onSuggestionMouseMove=function(G){G.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(G.model.index)};
_.w.isSuggestionFocused=function(G,B){return G===B};
_.w.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.w.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("focused-suggestion-id-changed",this.focusedSuggestionId))};
Gq.prototype.focusedSuggestionIdChangedForBinding=Gq.prototype.focusedSuggestionIdChangedForBinding;Gq.prototype.onDomChange=Gq.prototype.onDomChange;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Gq.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Gq.prototype,"focusedSuggestionIndex",void 0);_.c([_.v({readOnly:!0}),_.I("design:type",String)],Gq.prototype,"focusedSuggestionId",void 0);
_.c([_.Pm("dom-change"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Gq.prototype,"onDomChange",null);_.c([_.Ga("focusedSuggestionId"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gq.prototype,"focusedSuggestionIdChangedForBinding",null);_.c([_.ay({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Gq);
_.d(Gq,"yt-user-mention-suggestions-dropdown",function(){if(xda===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;sEs===void 0&&(sEs=document.createElement("template"));var D=sEs;F.call(B,D.content.cloneNode(!0),G.content.firstChild);xda=G}G=xda;return G},{mode:2});var BO=function(){var G=_.p.apply(this,arguments)||this;G.suggestionsResponse=null;G.activeMention=null;G.selectionChangeListener=G.onSelectionChange.bind(G);G.handlesEnabled=_.X("enable_handles_in_mention_suggest_posts");G.handlesInMentionSuggestionsEnabled=_.X("handles_in_mention_suggest_posts");G.zeroPrefixMentionSuggestionEnabled=_.X("enable_zero_prefix_mention_suggestion_web");G.pendingQuery=null;G.flowNonce=null;return G};
_.r(BO,_.p);_.w=BO.prototype;_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.w.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.w.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.w.hasSuggestions=function(G){return!!(G&&G.suggestions&&G.suggestions.length>0)};
_.w.onInput=function(){var G=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var B=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),F=this.activeMention.JSC$11664_getText().slice(-1)===" ",D=this.activeMention.JSC$11664_getText().slice(-2,-1)===" ",u="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11664_getText().slice(-2,
-1))>=0;u=this.zeroPrefixMentionSuggestionEnabled&&u;if(this.activeMention.isCollapsed()||(B||D||u)&&F)this.cancelActiveMention();else{var R=this.activeMention.JSC$11664_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.kT(this,"requestSuggestions",function(){G.requestSuggestions(R)},100)}}}};
_.w.onServiceRequestSent=function(G){G.stopPropagation()};
_.w.onServiceRequestCompleted=function(G){G.stopPropagation();G=G.detail.data;G.query&&(!this.pendingQuery||this.pendingQuery!==G.query)||!this.zeroPrefixMentionSuggestionEnabled&&G.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=G,this.hasSuggestions(G)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.w.onServiceRequestError=function(G){G.stopPropagation()};
_.w.onUserMentionSuggestionSelected=function(G){this.selectSuggestion(G.detail.data,G.detail.index)};
_.w.onSelectionChange=function(){if(this.activeMention){var G=_.Fh(),B=this.activeMention.JSC$11664_containsRange(G);G=G&&this.containsHelper(this.dropdown,G.getContainer());B||G||this.cancelActiveMention()}};
_.w.containsHelper=function(G,B){var F;if(((F=window.ShadyDOM)==null?void 0:F.noPatch)===!0)return G.contains(B);for(;B;){if(B===G)return!0;B=B instanceof ShadowRoot?B.host:B.parentNode}return!1};
_.w.maybeStartSuggest=function(){var G=_.Fh();if(G&&G.isCollapsed()){var B=G.JSC$11664_getStartNode(),F=G.JSC$11664_getStartOffset();if(B instanceof Text&&!(F<1)){var D=B.textContent;!(D=D&&D.charAt(F-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(D)<0||(this.activeMention=_.w0(B,F-1,G.JSC$11664_getEndNode(),G.JSC$11664_getEndOffset()),this.flowNonce=ni(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.w.updateActiveMention=function(){if(this.activeMention){var G=_.Fh();G&&G.isCollapsed()&&(this.activeMention=_.w0(this.activeMention.JSC$11664_getStartNode(),this.activeMention.JSC$11664_getStartOffset(),G.JSC$11664_getEndNode(),G.JSC$11664_getEndOffset()))}};
_.w.requestSuggestions=function(G){if(this.activeMention){var B={suggestions_query:G};this.pendingQuery=G;_.fi(this.hostElement,[this.suggestionsEndpoint,B])}};
_.w.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()};
_.w.focusPreviousSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),G.preventDefault())};
_.w.focusNextSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),G.preventDefault())};
_.w.selectFocusedSuggestion=function(G){if(this.hasSuggestions(this.suggestionsResponse)){var B=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Q(B,QJG)&&(this.selectSuggestion(_.Q(B,QJG),this.dropdown.focusedSuggestionIndex),G.preventDefault())}};
_.w.selectSuggestion=function(G,B){if(G){var F=this.activeMention;if(F){var D=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&G.handle?_.Ol(D,"\u00a0\u2068@"+G.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ol(D,"\u00a0"+G.displayName+"\u00a0"):_.Ol(D,"\u00a0@"+G.displayName+"\u00a0");Go(D,"/channel/"+G.channelId);D.classList.add("yt-formatted-string","yt-simple-endpoint");D.setAttribute("spellcheck","false");F.isCollapsed()||F.JSC$11664_removeContents();F.insertNode(D,!0);G=document.createTextNode(" ");
D.parentNode.insertBefore(G,D.nextSibling);window.getSelection().collapse(G,1);B={suggestionSelected:{suggestionIndex:B}};if(this.zeroPrefixMentionSuggestionEnabled){var u;B.suggestionSelected.isZeroPrefix=((u=this.suggestionsResponse)==null?void 0:u.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",B);this.cancelActiveMention();_.cZ(this.hostElement,"yt-mention-inserted")}}};
_.w.getPositionTarget=function(G){return G&&G.getBrowserRangeObject()};
_.w.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.w.onFocusedSuggestionIdChanged=function(G){var B=_.nGg(this.hostElement)[0];B&&(G.detail.value?B.setAttribute("aria-activedescendant",G.detail.value):B.removeAttribute("aria-activedescendant"))};
_.w.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.w.logGELEvent=function(G,B){G={eventType:G,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};B&&(G=Object.assign(G,B));_.W$("userMentionAutoCompleteBoxEvent",G)};
BO.prototype.onDomChange=BO.prototype.onDomChange;BO.prototype.onUserMentionSuggestionSelected=BO.prototype.onUserMentionSuggestionSelected;BO.prototype.onServiceRequestError=BO.prototype.onServiceRequestError;BO.prototype.onServiceRequestCompleted=BO.prototype.onServiceRequestCompleted;BO.prototype.onServiceRequestSent=BO.prototype.onServiceRequestSent;BO.prototype.onInput=BO.prototype.onInput;_.c([_.k(_.sV),_.I("design:type",Object)],BO.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],BO.prototype,"suggestionsEndpoint",void 0);_.c([_.v(),_.I("design:type",Object)],BO.prototype,"suggestionsResponse",void 0);_.c([_.v(),_.I("design:type",Object)],BO.prototype,"activeMention",void 0);_.c([_.iA("#dropdown"),_.I("design:type",Object)],BO.prototype,"dropdown",void 0);_.c([_.iA("#iron-dropdown"),_.I("design:type",Object)],BO.prototype,"ironDropdown",void 0);
_.c([_.Pm("input"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],BO.prototype,"onInput",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BO.prototype,"onServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BO.prototype,"onServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BO.prototype,"onServiceRequestError",null);_.c([_.Pm("yt-user-mention-suggestion-selected"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BO.prototype,"onUserMentionSuggestionSelected",null);
_.c([_.Pm("dom-change"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BO.prototype,"onDomChange",null);_.c([_.ay({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],BO);
_.d(BO,"yt-user-mention-autosuggest-input",function(){if(ZYq===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;tYT===void 0&&(tYT=document.createElement("template"));var D=tYT;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ZYq=G}G=ZYq;return G},{mode:2});var ik=null;
_.UF({is:"ytd-commentbox",_template:function(){if(Juy!==void 0)return Juy;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Juy=G},
behaviors:[_.cYL.YtHostElementBehavior,_.sV,_.Za.YtActionHandlerBehavior,_.aS.YtComponentBehavior,_.oS.YtRendererstamperBehavior,_.VkG.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(G,B){return _.g5(G.entities,"aadcGuidelinesStateEntityPayload",B)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(G,B){return _.g5(G.entities,"commentboxStateEntity",B)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.rl}},
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:_.X("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.X("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",_.x7(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(G){this.fire(G?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(G){this.set("submitButtonDisabled",void 0);this.clear();G&&this.computeIsEmojiButtonDisplayed_(G)&&(G=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&G.updateEmojiCategories()},
observePrefilledImage_:function(G,B,F){this.isValidPrefilledImage_(G,B,F)&&(this.prefilledAttachment_="image",this.prefilledImageData_=B,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(G,B){this.isValidPrefilledVideo_(G,B)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(G){G&&G.pollData&&G.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(G.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Zz();this.focus()},
detached:function(){document.removeEventListener("tap",_.x7(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(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var B=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(B,G);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var G=_.Fh();if(G){G=G.getBrowserRangeObject();for(var B=G.commonAncestorContainer;B;){if(B===this.getEditableTextArea_())return G;B=B.parentNode}}G=this.getEditableTextArea_();G=_.Rs(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,B,F){(B=this.emojiManager.createDocumentFragment(B,!0,!1,F===void 0?!0:F))&&B.childNodes.length!==0&&(G.collapsed||G.deleteContents(),F=B.lastChild,G.insertNode(B),_.cxU(F).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var G=_.Fh();if(G){var B=G.JSC$11664_getStartNode(),F=G.JSC$11664_getEndNode();if(Wec(B)&&Wec(F)){var D=G.JSC$11664_getStartOffset(),u;if(_.xw&&B.nodeType===Node.ELEMENT_NODE&&(u=_.bTG(B)))_.Rs(u,0).select();else{u=tt(B)?B:_.mG(B,tt);var R=tt(F)?F:_.mG(F,tt);if(u||R)if(G.isCollapsed()){if(B.nodeType===Node.TEXT_NODE){G=!0;D===B.length&&(G=!1);if(ik==="end"||ik==="right")G=!1;B=B.parentNode;G=[].concat(_.gi(B.parentNode.childNodes)).indexOf(B)+(G?0:1);_.Rs(B.parentNode,
G).select()}}else u?u.previousSibling&&u.previousSibling.length>0?_.w0(F,G.JSC$11664_getEndOffset(),u.previousSibling,u.previousSibling.length-1).select():(B=document.createTextNode("\u200b"),u.parentNode.insertBefore(B,u),_.w0(F,G.JSC$11664_getEndOffset(),B,0).select()):R&&(R.nextSibling&&R.nextSibling.length>0?_.w0(B,G.JSC$11664_getStartOffset(),R.nextSibling,1).select():(F=document.createTextNode("\u200b"),R.parentNode.insertBefore(F,R.nextSibling),_.w0(B,G.JSC$11664_getStartOffset(),F,F.length).select()));
ik=null}}else ik=null}else ik=null},
leftKeyPressed_:function(){ik="left"},
rightKeyPressed_:function(){ik="right"},
endKeyPressed_:function(){ik="end"},
maybeDeleteChip_:function(){var G=zlU(!0);if(G){var B=_.Fh(),F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();_.uh(F,B,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=zlU(!1);if(G){var B=_.Fh(),F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();_.uh(F,B,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var B=_.Fh();if(B.isCollapsed()){var F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();var D=b5Q(F,B,!0);D&&(_.uh(F,B,D,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var B=_.Fh();if(B.isCollapsed()){var F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();var D=b5Q(F,B,!1);D&&(_.uh(F,B,D,D.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onTap_:function(G){if(!G.defaultPrevented&&(G.currentTarget.tagName==="YTD-COMMENTBOX"&&tt(G.target)&&G.preventDefault(),this.isEmojiPickerDisplayed)){var B=this.$$("#emojis"),F=this.$$("#emoji-button"),D=this.getEditableTextArea_();if((G=G.path?G.path:G.composedPath&&G.composedPath())&&!G.includes(B)&&!G.includes(D)&&!G.includes(F))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(G,B,F){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&B!==void 0&&B.encryptedBlobId!==null&&B.sourceExternalVideoId!==null&&F!==void 0&&F.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(G,B){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!B&&!!B.videoRenderer&&!!B.videoRenderer.videoId},
isValidPrefilledAttachment_:function(G,B,F){return this.isValidPrefilledImage_(G,B,F)||this.isValidPrefilledVideo_(G,F)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.X("enable_multi_image_post_creation")){var G=this.$$("ytd-backstage-multi-image-select-renderer");G&&G.hasImages()&&G.cancel()}else(G=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&G.cancel();(G=this.$["poll-attachment"])&&this.hasPoll_&&G.clearPollOptions();(G=this.$["image-poll-attachment"])&&this.hasImagePoll_&&G.resetPollOptions();(G=this.$["quiz-attachment"])&&this.hasQuiz_&&G.resetQuizOptions();
(G=this.$["video-link-attachment"])&&this.hasVideo_&&G.cancel();(G=this.$["access-restrictions-selector"].firstElementChild)&&G.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 _.IF(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.IF(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(G,B){G=kwS(G,this.emojiManager,B).cloneNode(!0);for(B=G.firstChild;B;)if(B.nodeType!==1)B=B.nextSibling;else switch(B.tagName){case "BR":var F=_.je();_.dKL(F,B);B=F.nextSibling;break;case "DIV":(F=B.lastChild)&&B.nextSibling&&_.Hb(_.je(),F);B.previousSibling&&(B.previousSibling.nodeType===1||B.previousSibling.nodeType===3&&!B.previousSibling.textContent.endsWith("\n"))&&_.Wb(_.je(),B);F&&F.nodeName==="BR"&&_.B1(F);F=B;B.hasChildNodes()?(B=B.firstChild,
_.JMv(F)):(B=B.nextSibling,_.B1(F));break;default:B=B.nextSibling}return VSz(G)},
onAddImageError_:function(G){G.stopPropagation();this.errorMessage_=_.$9(G.detail)},
setTextAreaValue_:function(G){G||(G="");var B=this.getEditableFormattedString_();B.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});B.text=G},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ik=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.Rs(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.v5("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),B=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",B)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var G;return x9o((G=this.$["quiz-attachment"])==null?void 0:G.getExplanationText())||x9o(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var B=this.getInputRange_();B&&(G=this.emojiInput.retrieveTextBeforeRange(B))}this.insertText_(G,!0);this.updateCharCount_();this.setSubmitButton_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
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(G){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(G)},
onPasteEmoji_:function(G){G.preventDefault();G.stopImmediatePropagation();G=G.clipboardData.getData("text/plain");this.insertText_(G,!1,!1)},
insertText_:function(G,B,F){B=B===void 0?!1:B;F=F===void 0?!0:F;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var D=this.getInputRange_().cloneRange();this.emojiManager&&D&&(B&&this.emojiInput.offsetStartOfRangeBy(D,G.length),this.insertTextWithEmojis_(D,G,F),H5l(this.getEditableTextArea_().lastChild)||(D=this.getInputRange_().cloneRange()),D&&(this.emojiInput.updateSuggestions(D,G),this.updateSuggestionOffset_(D)))}},
setSubmitButton_:function(){if(this.data){var G=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",B=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(G||B){var F=this.getTextAreaValue().trim();B=F===this.previousText_;F=!F||this.aboveCharLimit_;G&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(F=this.aboveCharLimit_);this.submitButtonDisabled=
B||F||!this.getTextLength();G&&_.X("enable_post_scheduling")&&(this.submitButtonDisabled=B&&!this.scheduledPublishTimeSec_||F)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.zx,computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computeFooterMessageClass_:function(G,B){return B?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(G,B){return B?B:G},
computeFooterMessageHidden_:function(G,B){return!B&&!G},
computePlaceholderText_:function(G,B,F){return(F==="video"||F==="image")&&(G==null?0:G.prefilledPlaceholderText)?G==null?void 0:G.prefilledPlaceholderText:B==="poll"||B==="image-poll"?G==null?void 0:G.pollPostPlaceholderText:B==="quiz"?G==null?void 0:G.quizPostPlaceholderText:B==="image"?G==null?void 0:G.imagePostPlaceholderText:G==null?void 0:G.placeholderText},
computeHideAttachmentButtons_:function(G,B,F,D){return G===void 0?!1:D&&this.getSimpleString(D)===this.getSimpleString(G.rateLimitErrorMessage)?!0:B!=="none"||F!=="none"||!G.videoLinkButton&&!G.pollButton&&!G.imagePollButton&&!G.quizButton&&!G.imageButton},
computeHideDismissableAttachment_:function(G){return G!=="image"&&G!=="video"},
computeHasVideo_:function(G){return G==="video"},
computeHasImage_:function(G){return G==="image"},
computeHasPoll_:function(G){return G==="poll"},
computeHasImagePoll_:function(G){return G==="image-poll"},
computeHasQuiz_:function(G){return G==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(G){return G&&G.backstageAttachment?G.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!G.backstageAttachment.quizRenderer&&!G.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(G){if(this.isValidPrefilledAttachment_(G.purpose,G.prefilledImageData,G.backstageAttachment))return G.backstageAttachment},
computeEditAttachment_:function(G){if(this.computePrefilledContent_(G)===void 0)return G.backstageAttachment},
computeAuthorThumbnailDimension_:function(G,B){return G&&!B?24:40},
computeImageUploadEndpoint_:function(G){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",G)},
computeRateLimitErrorCommands_:function(G){var B,F;return G==null?void 0:(B=G.advancedTierFeatures)==null?void 0:(F=B.rateLimit)==null?void 0:F.rateLimitCommands},
computeIsBackstageComment_:function(G){return!(!G||G!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)||this.get("replyButton.buttonRenderer.serviceEndpoint",G)||this.get("postButton.buttonRenderer.serviceEndpoint",G)},
computeSubmitButtonOverride:function(){if(_.X("web_modern_buttons")){var G,B;return{segmentedPosition:this.dropdownSchedulePanel_||!((G=this.data)==null?0:(B=G.postOptionsMenu)==null?0:B.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.X("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(G,B){G=this.get("submitButton.buttonRenderer",G)||this.get("replyButton.buttonRenderer",G)||this.get("postButton.buttonRenderer",G);B&&(G=B);G&&(G=Object.assign({},G),G.serviceEndpoint=void 0,G.isDisabled=this.submitButtonDisabled);return G},
computeHasExternalLinksAccess_:function(G){if(_.X("enable_rfa_external_links")){var B,F,D;return(D=G==null?void 0:(B=G.advancedTierFeatures)==null?void 0:(F=B.externalLinks)==null?void 0:F.allowExternalLinks)!=null?D:!0}return!0},
computeIsEmojiButtonDisplayed_:function(G){return G.emojiButton&&G.emojiPicker&&G.emojiPicker.emojiPickerRenderer&&G.emojiPicker.emojiPickerRenderer.categories?G.emojiPicker.emojiPickerRenderer.categories.find(function(B){return B.emojiPickerCategoryRenderer?B.emojiPickerCategoryRenderer.emojiIds&&B.emojiPickerCategoryRenderer.emojiIds.length>0:B.emojiPickerUpsellCategoryRenderer?B.emojiPickerUpsellCategoryRenderer.emojis&&B.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(G){return G.charLimit?G.charLimit:null},
computeDropdownSchedulingPanel_:function(G,B){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&B)return B},
computeInlineSchedulingPanel_:function(G,B){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&B)return B},
computeHideAuthorThumbnail_:function(G,B){return G||this.computeUseIdentityChip_(B)},
computeHideIdentityChipRenderer_:function(G,B){return G||!this.computeUseIdentityChip_(B)},
computeUseIdentityChip_:function(G){return!!G&&!!G.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(G){var B,F,D,u;(G==null?0:(B=G.detail)==null?0:(F=B.endpoint)==null?0:F.ypcGetOffersEndpoint)||(G==null?0:(D=G.detail)==null?0:(u=D.endpoint)==null?0:u.ypcOffersEndpoint)?(G.stopPropagation(),_.fi(this,[G.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(G.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(G){this.addedAttachment="video";this.selectedVideoId_=G.detail.videoId},
commentboxStateEntityChanged_:function(G){var B=this;(G==null?void 0:G.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(G==null?void 0:G.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){B.focus()})},
onYtServiceRequestSent_:function(G,B){if(B.actions)for(G=_.C(B.actions),B=G.next();!B.done;B=G.next())B.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(G){this.isLoading=!1;var B=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",G),F,D,u,R=G==null?void 0:(F=G.detail)==null?void 0:(D=F.data)==null?void 0:(u=D.actionResult)==null?void 0:u.commentboxStateEntityKey;if(B)this.errorMessage_=B;else if(R){var N;this.dismissData_=G==null?void 0:(N=G.detail)==null?void 0:N.data;this.commentboxStateKey_=R}else{this.clear();var y;this.fire("yt-commentbox-dismiss",G==null?void 0:(y=G.detail)==
null?void 0:y.data)}},
onYtServiceRequestError_:function(G){G.stopPropagation();this.isLoading=!1;var B,F;if(((B=this.data)==null?void 0:B.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((F=this.data)==null?void 0:F.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(B=this.get("detail.error.args",G)||[],B.length>1&&B[1].message){this.handlePostsServiceRequestError_(B[1].message);return}(G=this.get("detail.error.message",G))?this.errorMessage_=this.data.errorMessage||_.$9(G):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(G){if(_.X("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var B=_.C(this.rateLimitErrorCommands),F=B.next();!F.done;F=B.next())if(F=F.value,F.errorLabel===G){_.Br(F.command,this.hostElement);return}this.errorMessage_=_.$9(G)},
submitIfNotBackstagePost_:function(G){if(!this.isBackstagePost)this.onSubmit_(G)},
onSubmit_:function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e;return _.n(function(b){switch(b.nextAddress){case 1:G.stopPropagation();if(!B.serviceEndpoint||!B.isValidInput_())return b.return();if(B.shouldShowPostAadcNotice_())return B.showPostAadcNotice_(),b.return();if(B.shouldShowCommentAadcNotice_())return B.showCommentAadcNotice_(),b.return();if(!(B.$$("ytd-backstage-multi-image-select-renderer")&&B.hasImage_&&_.X("enable_multi_image_post_creation"))){b.jumpTo(2);break}F=B.$$("ytd-backstage-multi-image-select-renderer");
return b.yield(F.getAllUploadStatuses(),3);case 3:D=b.yieldResult;if(!D)return b.return();u=_.C(D);for(R=u.next();!R.done;R=u.next())if(N=R.value,N.encryptedBlobId===void 0)return B.isLoading=!1,U=y=void 0,B.errorMessage_=(U=(y=B.imageUploadEndpoint_)==null?void 0:y.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?U:null,b.return();return b.return(B.submitForm_(void 0,void 0,void 0,void 0,F.images,B.taggedVideoId_));case 2:if(!B.hasImagePoll_||!B.$["image-poll-attachment"]){b.jumpTo(4);
break}return b.yield(B.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:q=b.yieldResult;if(!q)return b.return();h=_.C(q);for(K=h.next();!K.done;K=h.next())if(a=K.value,!a.encryptedBlobId)return B.isLoading=!1,m=void 0,B.errorMessage_=(m=B.data.errorMessage)!=null?m:null,b.return();case 4:W=(L=B.$$("ytd-backstage-image-select-renderer"))&&L.uploadPromise(),e=B.getSharedPostId_(),W?W.then(function(){B.submitForm_.apply(B,_.gi(_.xS.apply(0,arguments)))}).catch(function(M){B.isLoading=!1;
B.errorMessage_=_.$9(M.message)}):B.selectedVideoId_?B.submitForm_(void 0,B.selectedVideoId_):B.prefilledAttachment_==="image"?B.submitForm_(B.prefilledImageData_.encryptedBlobId,void 0,void 0,B.prefilledImageData_.sourceExternalVideoId,void 0,B.taggedVideoId_):B.prefilledAttachment_==="video"?B.submitForm_(void 0,B.data.backstageAttachment.videoRenderer.videoId):e?B.submitForm_(void 0,void 0,e):B.taggedVideoId_!==void 0?B.submitForm_(void 0,void 0,void 0,void 0,void 0,B.taggedVideoId_):B.submitForm_(),
_.di(b)}})},
openSchedulingPanel:function(G){G&&G.scheduleButton&&G.scheduleButton.buttonRenderer&&(this.scheduleButton_=G.scheduleButton.buttonRenderer);G&&G.dateTimePicker&&this.set("data.schedulingDateTimePicker",G.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(G){G.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(G){G.stopPropagation();G.detail.alertMessage&&(this.alertMessage_=G.detail.alertMessage)},
onImageSelected_:function(G){G.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(G){G.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(G.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(G){var B=this.$["video-link-attachment"];B&&B.onLaunchVideoPicker(G)},
onAttachmentDismiss_:function(G){G.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"&&_.X("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.X("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 G;if(this.addedAttachment==="image-poll"&&((G=this.$["image-poll-attachment"])==null||!G.isValid()))return!1;var B;if(this.addedAttachment==="quiz"&&((B=this.$["quiz-attachment"])==null||!B.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;G=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")G=!0;return G||!!this.getTextAreaValue().trim()},
submitForm_:function(G,B,F,D,u,R){var N=this.getTextAreaValue().trim(),y={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&N===this.previousText_&&(N=void 0);N!==void 0&&(y.comment_text=N);this.isLoading=!0;R!=void 0&&(y.tagged_video_id=R);G?(y.image_blob_id=G,this.imagePreviewCoordinates_&&(y.image_preview_coordinates=this.imagePreviewCoordinates_)):B?y.attached_video_id=B:F?y.shared_post_id=F:u&&u.length>0&&(y.images_data=u.map(function(U){return{encryptedBlobId:U.encryptedBlobId,
previewCoordinates:U.previewCoordinates}}));
D&&(y.source_video_id=D);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(y.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(y.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(y.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(y.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.X("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(y.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.fi(this,[this.serviceEndpoint,y])},
onIsInputFocusChanged_:function(G,B){G?this.fire("yt-autonav-pause-focus"):B!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var B=this.getEditableTextArea_();[].concat(_.gi(G.dataTransfer.items)).forEach(function(F){F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(D){B.appendChild(document.createTextNode(D))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
computeSubmitButtonClass_:function(G,B){return!B||G?"":"with-options"},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.IF(this.emojiInput).querySelector("#dropdown")){var B=this.getEditableTextArea_().getBoundingClientRect().bottom,F=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(B-F)+5;B=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-B;_.IF(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(G){if(_.X("enable_post_scheduling")&&this.data&&this.data.purpose){G=G.detail;if(Math.floor(Date.now()/1E3)>=G)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var B=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(B)||B!==G?this.scheduledPublishTimeSec_=G:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=G;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var G=["image-button","image-poll-button","poll-button","quiz-button"];_.X("auto_convert_posts_video_tag")||G.push("video-link-button");return G},
getButtonRenderer:function(G,B){if(G)switch(B){case "video-link-button":var F;return((F=G.videoLinkButton)==null?void 0:F.buttonRenderer)||void 0;case "image-button":var D;return((D=G.imageButton)==null?void 0:D.buttonRenderer)||void 0;case "poll-button":var u;return((u=G.pollButton)==null?void 0:u.buttonRenderer)||void 0;case "image-poll-button":var R;return((R=G.imagePollButton)==null?void 0:R.buttonRenderer)||void 0;case "quiz-button":var N;return((N=G.quizButton)==null?void 0:N.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var G;return(G=this.data)==null||!G.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var G,B;return!((G=this.data)==null||!G.openAadcDialog)&&!((B=this.aadcGuidelinesState_)==null||!B.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.v5("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var G;((G=this.data)==null?0:G.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.e6("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(G){G.clickTrackingParams&&_.Rh().clickCommand(G);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.T1(this,"yt-close-popup-action")},
onHideIdentityChip:function(G){var B;this.set("data.placeholderText",(B=G.hideIdentityChipAction)==null?void 0:B.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Fn=function(){var G=_.p.apply(this,arguments)||this;G.isOpen=!1;G.modern=_.X("web_modern_buttons");G.roundedContainer=!0;G.dropdownButtonOverride=_.X("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;G.inPopupContainer=!1;G.isCommentboxLoading=!1;var B=["image-button","image-poll-button","poll-button"];_.X("enable_quiz_creation")&&B.push("quiz-button");_.X("auto_convert_posts_video_tag")||B.push("video-link-button");G.attachmentButtonIds=B;G.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 G};
_.r(Fn,_.p);_.w=Fn.prototype;_.w.computeButtonOverride=function(){var G;return((G=this.data)==null?0:G.postOptionsMenu)&&_.X("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.w.configureRendererStamper=function(){var G={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.X("auto_convert_posts_video_tag")||(G["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return G};
_.w.ready=function(){var G=this,B=_.IF(this.hostElement).querySelector("#placeholder-area"),F=function(D){G.onOpen(D)};
B.addEventListener("tap",F);B.addEventListener("keypress",F)};
_.w.showButtonEduTooltip=function(){var G,B,F,D,u,R,N;if(_.X("enable_quiz_creation")&&((G=this.data)==null?0:(B=G.quizButton)==null?0:(F=B.buttonRenderer)==null?0:(D=F.hint)==null?0:(u=D.hintRenderer)==null?0:(R=u.content)==null?0:(N=R.bubbleHintRenderer)==null?0:N.text)&&(_.fM.getInstance(),G=tX(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(G==null?void 0:
G.length)>0)){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.quizButton}});return}var y;if((y=this.data)==null?0:y.imagePollButtonTooltip)if(_.fM.getInstance(),y=tX(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(y==null?void 0:y.length)>0){this.ytComponentBehavior.resolveCommand(y[0],{form:{element:this.imagePollButton}});return}var U;_.X("enable_multi_image_post_creation")&&
((U=this.data)==null?0:U.multiImageButtonTooltip)&&(_.fM.getInstance(),U=tX(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(U==null?void 0:U.length)>0&&this.ytComponentBehavior.resolveCommand(U[0],{form:{element:this.imageButton}}))};
_.w.onCreatePollAction=function(G){_.Q(G,JsP)&&(this.JSC$16263_commentbox.addedAttachment="poll",this.openDialog())};
_.w.onAddVideoLinkAction=function(G){if(_.Q(G,pLP))this.JSC$16263_commentbox.onAddVideoLink(G)};
_.w.onShowSchedulingPanelCommand=function(G){(G=_.Q(G,ysy))&&this.openSchedulingPanel(G)};
_.w.onCreateImagePollCommand=function(G){_.Q(G,hj7)&&(this.JSC$16263_commentbox.openImagePollComponent(),this.openDialog())};
_.w.onCreateQuizCommand=function(G){_.Q(G,KFw)&&(this.JSC$16263_commentbox.openQuizComponent(),this.openDialog())};
_.w.openSchedulingPanel=function(G){_.X("enable_post_scheduling")&&(this.openDialog(),this.JSC$16263_commentbox.openSchedulingPanel(G))};
_.w.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.JSC$16263_commentbox.clear(),this.closeDialog())};
_.w.onOpen=function(G){G instanceof KeyboardEvent&&G.type==="keypress"&&G.keyCode!==13&&G.keyCode!==32||(this.data.prepareAccountEndpoint?_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.w.onYtCommentboxDismiss=function(){this.closeDialog()};
_.w.onYtCommentboxLoadingStart=function(G){G.stopPropagation();this.isCommentboxLoading=!0};
_.w.onYtCommentboxLoadingEnd=function(G){G.stopPropagation();this.isCommentboxLoading=!1};
_.w.onYtVideoLinkButtonCancel=function(G){G.stopPropagation();this.onOpen(G)};
_.w.onYtVideoLinkSelected=function(G){G.stopPropagation();this.onOpen(G)};
_.w.onIronSelect=function(G){G.stopPropagation();G.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=G.detail.item.value&&(this.accessRestriction?(this.accessRestriction=G.detail.item.value,this.onOpen(G)):this.accessRestriction=G.detail.item.value)};
_.w.onYtNavigate=function(G){this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(this.JSC$16263_commentbox.addedAttachment="image",this.JSC$16263_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.w.onRequestSent=function(G){for(var B=_.C(G.detail),F=B.next();!F.done;F=B.next())_.Q(F.value,kTL)&&(this.JSC$16263_commentbox.addedAttachment="image",this.JSC$16263_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.w.openDialog=function(){var G;(G=this.data)!=null&&G.isIneligibleForCommunityPagePostCreation||(this.JSC$16263_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16263_commentbox.focus())};
_.w.onPopupClosed=function(){_.fM.getInstance()};
_.w.computeCreationDisabled=function(G){return!!G};
_.w.computeIsCreationDialog=function(G){return!!G&&G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.w.computeDisabledPostButton=function(G){if(!G)return null;G.isDisabled=!0;return G};
_.w.computeIsCreationDialogWithHeader=function(G){return!this.inPopupContainer&&!!G&&!!G.authorText&&G.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.w.computeIsHeaderHidden=function(G,B){return!G||B};
_.w.computeDropdownRendererClasses=function(G){return G?["text-secondary-style"]:[]};
_.w.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var G=_.IF(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;G&&G.reset()};
Fn.prototype.onPopupClosed=Fn.prototype.onPopupClosed;Fn.prototype.onRequestSent=Fn.prototype.onRequestSent;Fn.prototype.onYtNavigate=Fn.prototype.onYtNavigate;Fn.prototype.onIronSelect=Fn.prototype.onIronSelect;Fn.prototype.onYtVideoLinkSelected=Fn.prototype.onYtVideoLinkSelected;Fn.prototype.onYtVideoLinkButtonCancel=Fn.prototype.onYtVideoLinkButtonCancel;Fn.prototype.onYtCommentboxLoadingEnd=Fn.prototype.onYtCommentboxLoadingEnd;Fn.prototype.onYtCommentboxLoadingStart=Fn.prototype.onYtCommentboxLoadingStart;
Fn.prototype.onYtCommentboxDismiss=Fn.prototype.onYtCommentboxDismiss;Fn.prototype.showButtonEduTooltip=Fn.prototype.showButtonEduTooltip;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Fn.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Fn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Fn.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fn.prototype,"isOpen",void 0);_.c([_.v({computed:"computeButtonOverride(data)"}),_.I("design:type",Object)],Fn.prototype,"buttonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fn.prototype,"modern",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fn.prototype,"roundedContainer",void 0);_.c([_.v(),_.I("design:type",Object)],Fn.prototype,"dropdownButtonOverride",void 0);_.c([_.v({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.I("design:type",Boolean)],Fn.prototype,"creationDisabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Fn.prototype,"enableCreationBox",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.I("design:type",Boolean)],Fn.prototype,"isCreationDialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fn.prototype,"inPopupContainer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.I("design:type",Boolean)],Fn.prototype,"isCreationDialogWithHeader",void 0);_.c([_.v(),_.I("design:type",Object)],Fn.prototype,"accessRestriction",void 0);
_.c([_.v({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.I("design:type",Array)],Fn.prototype,"dropdownRendererClasses",void 0);_.c([_.v(),_.I("design:type",Object)],Fn.prototype,"isCommentboxLoading",void 0);_.c([_.v(),_.I("design:type",Array)],Fn.prototype,"attachmentButtonIds",void 0);_.c([_.iA("#image-button"),_.I("design:type",HTMLElement)],Fn.prototype,"imageButton",void 0);
_.c([_.iA("#image-poll-button"),_.I("design:type",HTMLElement)],Fn.prototype,"imagePollButton",void 0);_.c([_.iA("#quiz-button"),_.I("design:type",HTMLElement)],Fn.prototype,"quizButton",void 0);_.c([_.iA("#commentbox"),_.I("design:type",Object)],Fn.prototype,"JSC$16263_commentbox",void 0);_.c([_.Ga("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fn.prototype,"showButtonEduTooltip",null);
_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onYtCommentboxDismiss",null);_.c([_.Pm("yt-commentbox-loading-start"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onYtCommentboxLoadingStart",null);
_.c([_.Pm("yt-commentbox-loading-end"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onYtCommentboxLoadingEnd",null);_.c([_.Pm("yt-video-link-button-cancel"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onYtVideoLinkButtonCancel",null);
_.c([_.Pm("yt-video-link-selected"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onYtVideoLinkSelected",null);_.c([_.Pm("iron-select"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onIronSelect",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-service-request-sent-button-renderer"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Fn.prototype,"onRequestSent",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fn.prototype,"onPopupClosed",null);_.c([_.mC({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Fn);
_.d(Fn,"ytd-backstage-post-dialog-renderer",function(){if(XJT!==void 0)return XJT;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return XJT=G},{mode:1});var PUT;var GIq;var D0=function(){return _.p.apply(this,arguments)||this};
_.r(D0,_.p);_.w=D0.prototype;_.w.computeHeartButtonStyle=function(G){return(G==null?0:G.styleType)?G.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.w.onYtButtonTap=function(){if(this.data.isEnabled){var G=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(G=this.getEndpoint(G))&&_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})}else(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(G)};
_.w.toggle=function(G){this.set("data.isHearted",G!==void 0?G:!this.data.isHearted)};
_.w.getEndpoint=function(G){var B,F=(B=this.data)==null?void 0:B.heartEndpoint,D;B=(D=this.data)==null?void 0:D.unheartEndpoint;if(F&&B)return G?B:F};
_.w.computeButtonAccessibility=function(G,B){var F,D,u=G==null?void 0:(F=G.heartedAccessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label,R,N;G=G==null?void 0:(R=G.unheartedAccessibility)==null?void 0:(N=R.accessibilityData)==null?void 0:N.label;return B?u:G};
_.ZN.Object.defineProperties(D0.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 G;return _.X("kevlar_system_icons")&&!((G=this.data)==null||!G.isHearted)}}});
D0.prototype.onYtButtonTap=D0.prototype.onYtButtonTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],D0.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],D0.prototype,"data",void 0);_.c([_.O("data.isHearted"),_.I("design:type",Object),_.I("design:paramtypes",[])],D0.prototype,"heartTooltip",null);
_.c([_.O("data.isHearted"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],D0.prototype,"iconFilled",null);_.c([_.v({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.I("design:type",String)],D0.prototype,"buttonAccessibility",void 0);_.c([_.v({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.I("design:type",String)],D0.prototype,"heartButtonStyle",void 0);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],D0.prototype,"onYtButtonTap",null);_.c([_.mC({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],D0);
_.d(D0,"ytd-creator-heart-renderer",function(){if(GIq!==void 0)return GIq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return GIq=G},{mode:1});var uk=function(){var G=_.p.apply(this,arguments)||this;G.hasCreatorReply=!1;G.buttonOverrides={size:"S",iconPosition:"icon-only"};G.replyButtonOverrides={size:"S",type:"text"};G.forceIconButton=!_.X("web_modern_buttons");G.modern=_.X("web_modern_buttons");G.buttonTooltipPosition="bottom";G.systemIcons=_.X("kevlar_system_icons");G.replyDialog=null;return G};
_.r(uk,_.p);_.w=uk.prototype;
_.w.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]]"}}}}}};
_.w.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.w.dataChange=function(){this.replyDialog&&_.IF(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var G,B,F;this.isLiked=this.systemIcons&&!!((G=this.data)==null?0:(B=G.likeButton)==null?0:(F=B.toggleButtonRenderer)==null?0:F.isToggled)};
_.w.computeShowVoteCountBeginning=function(G,B){return G===void 0||B===void 0?!0:G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.w.computeShowVoteCountEnd=function(G,B){return G===void 0||B===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.w.computeShowCommentCount=function(G,B){return G===void 0||B===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.w.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.w.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.w.showReplyDialog=function(G){G&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.IF(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=G,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.w.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.w.onRequestSent=function(G){G=_.C(G.detail);for(var B=G.next();!B.done;B=G.next())(B=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",B.value))&&this.showReplyDialog(B)};
_.w.onYtNavigate=function(G){var B,F;(G=(B=_.Q(G.detail.endpoint,_.ezG))==null?void 0:(F=B.dialog)==null?void 0:F.commentReplyDialogRenderer)&&this.showReplyDialog(G)};
_.w.onYtServiceRequestSent=function(G,B){G.stopPropagation();if(B.actions)for(G=0;G<B.actions.length;G++){var F=_.Q(B.actions[G],Zdw);F&&this.handleUpdateCommentVoteAction(F)}};
_.w.handleUpdateCommentVoteAction=function(G){this.voteCount=G.voteCount||_.$9("0");G.voteStatus==="LIKE"?this.JSC$16275_ytdDislikeToggleButtonRenderer.toggle(!1):G.voteStatus==="DISLIKE"?this.JSC$16275_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16275_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16275_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.w.computeReplyButtonHidden=function(G){return G};
_.w.computeReplyButtonBeginning=function(G){return(G==null?0:G.replyButton)&&G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.w.computeReplyButtonEnd=function(G){return(G==null?0:G.replyButton)&&G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.w.computeActionButtonStyle=function(G){return(G==null?0:G.style)?G.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.w.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.w.onYtToggleButton=function(G){var B,F;this.isLiked=this.systemIcons&&!!((B=G.detail)==null?0:(F=B.actions)==null?0:F.like)};
uk.prototype.onYtToggleButton=uk.prototype.onYtToggleButton;uk.prototype.onButtonTooltipPositionChanged=uk.prototype.onButtonTooltipPositionChanged;uk.prototype.onYtServiceRequestSent=uk.prototype.onYtServiceRequestSent;uk.prototype.onYtNavigate=uk.prototype.onYtNavigate;uk.prototype.onRequestSent=uk.prototype.onRequestSent;uk.prototype.onYtCommentboxDismiss=uk.prototype.onYtCommentboxDismiss;uk.prototype.dataChange=uk.prototype.dataChange;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],uk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"voteCount",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"commentCount",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"replyThumbnail",void 0);
_.c([_.v(),_.I("design:type",Object)],uk.prototype,"hasCreatorReply",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],uk.prototype,"enableCreationBox",void 0);_.c([_.v({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.I("design:type",String)],uk.prototype,"actionButtonsStyle",void 0);_.c([_.v({computed:"computeReplyButtonBeginning(data)"}),_.I("design:type",Object)],uk.prototype,"replyButtonBeginning",void 0);
_.c([_.v({computed:"computeReplyButtonEnd(data)"}),_.I("design:type",Object)],uk.prototype,"replyButtonEnd",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"buttonOverrides",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"replyButtonOverrides",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"forceIconButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],uk.prototype,"useCommentIcon",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],uk.prototype,"modern",void 0);_.c([_.v(),_.I("design:type",Object)],uk.prototype,"buttonTooltipPosition",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],uk.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],uk.prototype,"isLiked",void 0);_.c([_.iA("ytd-button-renderer"),_.I("design:type",Object)],uk.prototype,"ytdReplyButtonRenderer",void 0);
_.c([_.iA("#like-button"),_.I("design:type",Object)],uk.prototype,"JSC$16275_ytdLikeToggleButtonRenderer",void 0);_.c([_.iA("#dislike-button"),_.I("design:type",Object)],uk.prototype,"JSC$16275_ytdDislikeToggleButtonRenderer",void 0);_.c([_.iA("#reply-dialog"),_.I("design:type",HTMLElement)],uk.prototype,"replyDialogElement",void 0);_.c([_.iA("#reply-button"),_.I("design:type",HTMLElement)],uk.prototype,"replyButtonElement",void 0);
_.c([_.iA("#reply-button-end"),_.I("design:type",HTMLElement)],uk.prototype,"replyButtonEndElement",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uk.prototype,"dataChange",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],uk.prototype,"onYtCommentboxDismiss",null);
_.c([_.Pm("yt-service-request-sent-button-renderer"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],uk.prototype,"onRequestSent",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],uk.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],uk.prototype,"onYtServiceRequestSent",null);_.c([_.Ga("buttonTooltipPosition"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uk.prototype,"onButtonTooltipPositionChanged",null);
_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],uk.prototype,"onYtToggleButton",null);_.c([_.mC({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],uk);
_.d(uk,"ytd-comment-action-buttons-renderer",function(){if(PUT!==void 0)return PUT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return PUT=G},{mode:1});var BjN;var RR=function(){return _.p.apply(this,arguments)||this};
_.r(RR,_.p);RR.prototype.focus=function(){_.IF(this.hostElement).querySelector("#commentbox").focus()};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RR.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],RR.prototype,"zeroStepChannelCreationRenderer",void 0);_.c([_.mC({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],RR);
_.d(RR,"ytd-comment-dialog-renderer",function(){if(BjN!==void 0)return BjN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return BjN=G},{mode:1});var iy8;var wp=function(){var G=_.p.apply(this,arguments)||this;G.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.X("enable_web_delhi_icons")};G.replyButtonOverrides={size:"S",type:"text"};return G};
_.r(wp,_.p);_.w=wp.prototype;_.w.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.w.detached=function(){this.replyBox&&this.replyBox.remove()};
_.w.showReplyDialog=function(G){if(G){var B=this.replyBox;B||(B=document.createElement("ytd-comment-reply-dialog-renderer"),B.id="replybox",_.IF(this.replyDialogDiv).appendChild(B));B.data=G;this.replyDialogDiv.hidden=!1;B.openDialog()}};
_.w.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.w.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var G,B=_.Q((G=this.toolbarSurface)==null?void 0:G.superfanOnlySnackbarCommand,_.mr);B&&_.cZ(this.hostElement,"yt-show-superfan-only-snackbar",{command:B})}else this.isSubsOnlyCommentsEligibleUser&&(G=_.Q((B=this.toolbarSurface)==null?void 0:B.subscribersOnlyDisclaimerSnackbarCommand,_.mr))&&_.cZ(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:G})};
_.w.onYtServiceRequestSent=function(G,B){G.stopPropagation();if(B.actions)for(var F=0;F<B.actions.length;F++){var D=_.Q(B.actions[F],Zdw);D?this.handleUpdateCommentVoteAction(D):G.target===this.heartButton&&this.toggleHeartState()}};
_.w.handleUpdateCommentVoteAction=function(G){var B;(B=this.toolbarState)!=null&&B.key&&this.ytdReduxBehavior.dispatch(_.mH("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:G.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":G.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.w.toggleHeartState=function(){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.mH("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.ZN.Object.defineProperties(wp.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return(((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(B=this.toolbarData)==null?void 0:B.likeCountLiked:(F=this.toolbarData)==null?void 0:F.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand)!==void 0&&!_.X("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,B=_.Q((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.mr),F,D,u,R,N,y,U,q,h;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((F=this.toolbarSharedData)==null||!F.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:B!=null?B:_.Q((u=this.toolbarSurface)==null?void 0:u.likeCommand,_.mr),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.Q((R=this.toolbarSurface)==null?void 0:R.unlikeCommand,_.mr),defaultCommand:this.isVisiblyDisabled?_.Q((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.mr):void 0,defaultTooltip:(y=this.toolbarData)==null?void 0:y.likeInactiveTooltip,toggledTooltip:(U=this.toolbarData)==null?void 0:U.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(q=this.toolbarData)==null?void 0:q.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(h=this.toolbarSharedData)==null?void 0:h.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,B=_.Q((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.mr),F,D,u,R,N,y,U,q,h,K;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((F=this.toolbarSharedData)==null||!F.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.Q((u=this.toolbarSurface)==null?void 0:u.dislikeCommand,_.mr),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.Q((R=this.toolbarSurface)==null?void 0:R.undislikeCommand,_.mr),defaultCommand:this.isVisiblyDisabled?_.Q((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.mr):void 0,defaultTooltip:(y=this.toolbarData)==null?void 0:y.dislikeInactiveTooltip,toggledTooltip:(U=this.toolbarData)==null?void 0:
U.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(q=this.toolbarSharedData)==null?void 0:q.dislikeReplyButtonA11y:(h=this.toolbarSharedData)==null?void 0:h.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(K=this.toolbarSharedData)==null?void 0:K.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var G,B,F;if(((G=this.toolbarState)==null?void 0:G.heartState)!==void 0&&((B=this.toolbarState)==null?void 0:B.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((F=this.toolbarState)==null?void 0:F.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var D,u,R,N,y,U,q,h,K,a,m,L,W,e;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(D=this.toolbarData)==null?void 0:D.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((R=this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((N=this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Q((U=this.toolbarSurface)==null?void 0:U.heartCommand,
_.mr),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Q((q=this.toolbarSurface)==null?void 0:q.unheartCommand,_.mr),disabledEndpoint:this.isVisiblyDisabled?_.Q((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand,_.mr):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(K=this.toolbarData)==null?void 0:K.heartActiveTooltip,unheartedTooltip:(a=this.toolbarData)==null?void 0:a.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((m=
this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(L=this.toolbarSharedData)==null?void 0:L.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(e=this.toolbarSharedData)==null?void 0:e.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.toolbarSurface)==null||!G.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.commentStrings)!=null&&G.replyButtonText){var B,F,D,u;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(B=this.commentStrings)==null?void 0:B.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.Q((F=this.toolbarSurface)==null?void 0:F.replyCommand,_.mr),command:this.isVisiblyDisabled?
_.Q((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand,_.mr):this.isSubsOnlyCommentsIneligibleUser?_.Q((u=this.toolbarSurface)==null?void 0:u.subscribersOnlySnackbarCommand,_.mr):void 0}}}}});
wp.prototype.onYtServiceRequestSent=wp.prototype.onYtServiceRequestSent;wp.prototype.hideReplyDialogDiv=wp.prototype.hideReplyDialogDiv;_.c([_.v(),_.I("design:type",Object)],wp.prototype,"commentStrings",void 0);_.c([_.v(),_.I("design:type",Boolean)],wp.prototype,"isReply",void 0);_.c([_.v(),_.I("design:type",Object)],wp.prototype,"toolbarData",void 0);_.c([_.v(),_.I("design:type",Object)],wp.prototype,"toolbarSharedData",void 0);
_.c([_.v(),_.I("design:type",String)],wp.prototype,"toolbarStateKey",void 0);_.c([_.v(),_.I("design:type",String)],wp.prototype,"toolbarSurfaceKey",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],wp.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],wp.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.vj),_.I("design:type",Object)],wp.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.iA("#reply-dialog"),_.I("design:type",HTMLElement)],wp.prototype,"replyDialogDiv",void 0);_.c([_.iA("#replybox"),_.I("design:type",Object)],wp.prototype,"replyBox",void 0);_.c([_.iA("ytd-creator-heart-renderer"),_.I("design:type",Object)],wp.prototype,"heartButton",void 0);_.c([_.v({selector:function(G,B){return _.g5(G.entities,"engagementToolbarStateEntityPayload",B)},
selectorArgs:["toolbarStateKey"]}),_.I("design:type",Object)],wp.prototype,"toolbarState",void 0);_.c([_.v({selector:H0g,selectorArgs:["toolbarSurfaceKey"]}),_.I("design:type",Object)],wp.prototype,"toolbarSurface",void 0);_.c([_.v(),_.I("design:type",Object)],wp.prototype,"buttonOverrides",void 0);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wp.prototype,"hideReplyDialogDiv",null);
_.c([_.O("toolbarData","toolbarState"),_.I("design:type",String),_.I("design:paramtypes",[])],wp.prototype,"likeCount",null);_.c([_.O("likeCount"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"showLikeCount",null);_.c([_.O("toolbarSurface"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"isVisiblyDisabled",null);_.c([_.O("toolbarSurface"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.c([_.O("toolbarSurface"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"isSubsOnlyCommentsEligibleUser",null);_.c([_.O("toolbarSurface"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.c([_.O("toolbarSurface"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"hasPrepareAccountCommand",null);
_.c([_.O("toolbarData","toolbarState","toolbarSurface"),_.I("design:type",Object),_.I("design:paramtypes",[])],wp.prototype,"likeToggleButtonRenderer",null);_.c([_.O("isReply","toolbarData","toolbarState","toolbarSurface"),_.I("design:type",Object),_.I("design:paramtypes",[])],wp.prototype,"dislikeToggleButtonRenderer",null);_.c([_.O("toolbarData","toolbarState","toolbarSurface"),_.I("design:type",Object),_.I("design:paramtypes",[])],wp.prototype,"creatorHeartSupportedRenderer",null);
_.c([_.O("toolbarSurface"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],wp.prototype,"hasReplyCommand",null);_.c([_.O("toolbarSurface","commentStrings","isVisiblyDisabled"),_.I("design:type",Object),_.I("design:paramtypes",[])],wp.prototype,"replyButtonRenderer",null);_.c([_.v(),_.I("design:type",Object)],wp.prototype,"replyButtonOverrides",void 0);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],wp.prototype,"onYtServiceRequestSent",null);_.c([_.mC({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],wp);
_.d(wp,"ytd-comment-engagement-bar",function(){if(iy8!==void 0)return iy8;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return iy8=G},{mode:1});var FIq;var CP=function(){return _.p.apply(this,arguments)||this};
_.r(CP,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],CP.prototype,"data",void 0);_.c([_.mC({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],CP);
_.d(CP,"ytd-comment-inline-thumbnail-renderer",function(){if(FIq!==void 0)return FIq;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return FIq=G},{mode:1});var DCa;var Ns=function(){return _.p.apply(this,arguments)||this};
_.r(Ns,_.p);Ns.prototype.onMessageTap=function(){if(this.onTapCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);G&&this.ytdOpenPopupBehavior.openPopup(G)}};
_.ZN.Object.defineProperties(Ns.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return(G=this.data)==null?void 0:(B=G.button)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.command}}});
_.c([_.k(_.vj),_.I("design:type",Object)],Ns.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ns.prototype,"data",void 0);_.c([_.O("data.button.buttonRenderer.command"),_.I("design:type",Object),_.I("design:paramtypes",[])],Ns.prototype,"onTapCommand",null);_.c([_.mC({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Ns);
_.d(Ns,"ytd-comment-pause-composer-renderer",function(){if(DCa!==void 0)return DCa;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return DCa=G},{mode:1});var u$w;var RKG;var ys=function(){var G=_.p.apply(this,arguments)||this;G.isOpen=!1;return G};
_.r(ys,_.p);_.w=ys.prototype;_.w.dataChanged=function(){this.isOpen=!1};
_.w.onTap=function(){this.data&&(this.data.navigationEndpoint?_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.w.focus=function(){this.JSC$16304_commentbox.focus()};
_.w.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.w.openDialog=function(){this.isOpen=!0;this.JSC$16304_commentbox.focus();this.JSC$16304_commentbox.maybeHeightChanged()};
ys.prototype.onYtCommentboxDismiss=ys.prototype.onYtCommentboxDismiss;ys.prototype.dataChanged=ys.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ys.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ys.prototype,"isOpen",void 0);_.c([_.iA("#commentbox"),_.I("design:type",Object)],ys.prototype,"JSC$16304_commentbox",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ys.prototype,"dataChanged",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],ys.prototype,"onYtCommentboxDismiss",null);_.c([_.mC({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],ys);
_.d(ys,"ytd-comment-reply-dialog-renderer",function(){if(RKG!==void 0)return RKG;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return RKG=G},{mode:1});var wqy;var nP=function(){return _.p.apply(this,arguments)||this};
_.r(nP,_.p);_.ZN.Object.defineProperties(nP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.icon)==null?void 0:B.iconType;return F?"yt-icons:"+F.toLowerCase():null}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nP.prototype,"data",void 0);_.c([_.v(),_.O("data.icon"),_.I("design:type",Object),_.I("design:paramtypes",[])],nP.prototype,"icon",null);_.c([_.mC({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],nP);
_.d(nP,"ytd-pinned-comment-badge-renderer",function(){if(wqy!==void 0)return wqy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return wqy=G},{mode:1});var CFs;var Nj7={},yHw={input:!0,meta:!0,br:!0,link:!0,img:!0},lk=null;Nj7.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(){lk==null&&(lk=document.createElement("tp-yt-paper-tooltip"),lk.offset=8,lk.fitToVisibleBounds=!0)},
onMouseOver_:function(G){if(G=_.mG(G.target,function(u){return u==this||u.getAttribute&&u.getAttribute("shared-tooltip-text")}.bind(this),!0)){var B=G.getAttribute("shared-tooltip-text");
if(B){var F=this,D=null;G!=this&&(G.tagName.toLowerCase()in yHw?F=G.parentElement:F=G,G.id&&(D=G.id));this.polymerController.createTooltipIfRequired_();if(lk.parentElement!=F||lk.for!=D)(0,_.gK)(lk).textContent=B,_.IF(F).appendChild(lk),lk.for=D,lk.animationDelay=this.polymerController.sharedTooltipAnimationDelay,lk.position=this.polymerController.sharedTooltipPosition}}}};var UE=function(){return _.p.apply(this,arguments)||this};
_.r(UE,_.p);UE.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]]"}}}}}};
UE.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var G;((G=this.data)==null?0:G.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var B;((B=this.data)==null?0:B.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
UE.prototype.colorChanged=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.color)==null?void 0:(F=B.basicColorPaletteData)==null?void 0:F.foregroundBodyColor;D&&(this.rgbBadgeColor=_.hV(D));_.IF(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
UE.prototype.tooltipChanged=function(){var G;((G=this.data)==null?0:G.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
UE.prototype.tooltipChanged=UE.prototype.tooltipChanged;UE.prototype.colorChanged=UE.prototype.colorChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(Nj7.YtSharedTooltipBehavior),_.I("design:type",Object)],UE.prototype,"ytSharedTooltipBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UE.prototype,"data",void 0);
_.c([_.v({value:"#4285F4"}),_.I("design:type",String)],UE.prototype,"rgbBadgeColor",void 0);_.c([_.Ga("data.color"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UE.prototype,"colorChanged",null);_.c([_.Ga("data.tooltip"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UE.prototype,"tooltipChanged",null);_.c([_.mC({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],UE);
_.d(UE,"ytd-sponsor-comment-badge-renderer",function(){if(CFs!==void 0)return CFs;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return CFs=G},{mode:1});var nOU;var lQa;var qs=function(){return _.p.apply(this,arguments)||this};
_.r(qs,_.p);qs.prototype.computeState=function(G){switch(G==null?void 0:G.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"}};
qs.prototype.updateStateIdentifier=function(G){if(this.viewModel.triStateKey){var B=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.mH("triStateButtonStateEntityPayload",B,{key:B,stateIdentifier:G}))}};
qs.prototype.onClick=function(){var G=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(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.ZN.Object.defineProperties(qs.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 G;return((G=this.data)==null?void 0:G.buttonText)||""}}});
_.c([_.v(),_.I("design:type",Object)],qs.prototype,"viewModel",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],qs.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],qs.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.c([_.v({selector:k3U,selectorArgs:["viewModel.triStateKey"]}),_.I("design:type",Object)],qs.prototype,"triStateButtonStateEntity",void 0);
_.c([_.v({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.I("design:type",String)],qs.prototype,"state",void 0);_.c([_.O("viewModel","state"),_.I("design:type",Object),_.I("design:paramtypes",[])],qs.prototype,"data",null);_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],qs.prototype,"buttonText",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],qs);
_.d(qs,"ytd-tri-state-button-view-model",function(){if(lQa!==void 0)return lQa;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return lQa=G},{mode:1});var UC7;var qiy;var EE=function(){var G=_.p.apply(this,arguments)||this;G.defaultIconToFilled=!_.X("kevlar_fill_comment_chip_icon_killswitch");return G};
_.r(EE,_.p);EE.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
EE.prototype.dataChanged=function(){if(this.data){var G,B;((G=this.data.chipColorPalette)==null?0:G.backgroundColor)&&((B=this.data.chipColorPalette)==null?0:B.foregroundTitleColor)&&_.Ss(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Kp(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Kp(this.data.chipColorPalette.foregroundTitleColor)});var F;((F=this.data)==null?0:F.command)?(_.Ss(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Ss(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}};
EE.prototype.onTap=function(){var G;if(this.data&&(G=this.data)!=null&&G.command){var B;this.ytComponentBehavior.resolveCommand((B=this.data)==null?void 0:B.command)}};
EE.prototype.getIconSize=function(){return _.X("kevlar_fill_comment_chip_icon_killswitch")?24:12};
EE.prototype.onTap=EE.prototype.onTap;EE.prototype.dataChanged=EE.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.sV),_.I("design:type",Object)],EE.prototype,"ironA11yKeysBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EE.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],EE.prototype,"basePriceText",void 0);_.c([_.v(),_.I("design:type",Object)],EE.prototype,"chipIcon",void 0);_.c([_.v(),_.I("design:type",Object)],EE.prototype,"defaultIconToFilled",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],EE.prototype,"dataChanged",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],EE.prototype,"onTap",null);
_.c([_.ay({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],EE);
_.d(EE,"yt-pdg-comment-chip-renderer",function(){if(qiy===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;UC7===void 0&&(UC7=document.createElement("template"));var D=UC7;F.call(B,D.content.cloneNode(!0),G.content.firstChild);qiy=G}G=qiy;return G},{mode:2});var hq=function(){var G=_.p.apply(this,arguments)||this;G.useSmallAvatars=_.X("small_avatars_for_comments");G.commentThreadingEnabled=_.X("web_delhi_comment_threads");G.webWatchCompactComments=_.X("web_watch_compact_comments");G.editDialog=null;return G};
_.r(hq,_.p);_.w=hq.prototype;_.w.onShow=function(){_.ag("cmv",void 0,"wn_comments")};
_.w.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"}}}};
_.w.detached=function(){this.editDialog=null;this.expander.reset()};
_.w.updateBackgroundColor=function(){if(this.backgroundColor){var G={"--ytd-comment-paid-background-color":_.Kp(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Ss(this.hostElement,G)}else _.Ss(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.w.resetExpander=function(){var G;(G=this.expander)==null||G.reset()};
_.w.openEditDialog=function(G){G.dialog&&(this.editDialog=G.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.w.onYtNavigate=function(G){var B=G.detail.endpoint;if(B=_.Q(B,_.$ua)||_.Q(B,_.zzT))G.stopPropagation(),this.openEditDialog(B)};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null;_.Ss(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.w.onAuthorThumbnailClicked=function(){_.X("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.w.onYtCommentboxResize=function(G){var B;(G==null?0:(B=G.detail)==null?0:B.height)&&_.Ss(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":G.detail.height+"px"})};
_.ZN.Object.defineProperties(hq.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 G,B=(G=this.commentEntity)==null?void 0:G.author;return B&&(B.isCreator||B.isVerified||B.isArtist)?{renderer:{authorEndpoint:B.channelPageEndpoint?_.Q(B.channelPageEndpoint,_.mr):_.Q(B.channelCommand,_.mr),authorText:{runs:[{text:B.displayName}]},color:B.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:B.isArtist?{iconType:"AUDIO_BADGE"}:
B.isVerified?{iconType:B.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:B.isArtist||B.isVerified?B.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var G,B=(G=this.commentEntity)==null?void 0:G.author;return B!=null&&B.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:B.sponsorBadgeUrl}]},tooltip:B.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return _.Q((G=this.commentSurfaceEntity)==null?void 0:G.pdgCommentChip,_.RjN)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&((G=this.voiceReplyContainerViewModel)==null?void 0:G.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.Q((G=this.commentSurfaceEntity)==null?void 0:G.voiceReplyContainerViewModel,F$y)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&(G=this.voiceReplyContainerViewModel)!=null&&G.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.commentSurfaceEntity)==null?void 0:G.commentBackgroundColor)!=null?B:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.X("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var G,B;return(((G=this.commentEntity)==null?void 0:(B=G.properties)==null?void 0:B.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,B;if(_.X("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(B=G.author)==null?0:B.profileCardEndpoint)&&this.viewModel.allowProfileCard){var F,D;return _.Q((F=this.commentEntity)==null?void 0:(D=F.author)==null?void 0:D.profileCardEndpoint,_.mr)}var u,R;return _.Q((u=this.commentEntity)==null?void 0:(R=u.avatar)==null?void 0:R.endpoint,_.mr)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,B;if(_.X("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(B=G.author)==null?0:B.channelPageEndpoint)){var F,D;return _.Q((F=this.commentEntity)==null?void 0:(D=F.author)==null?void 0:D.channelPageEndpoint,_.mr)}var u,R;return _.Q((u=this.commentEntity)==null?void 0:(R=u.avatar)==null?void 0:R.endpoint,_.mr)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u=(G=this.commentEntity)==null?void 0:(B=G.avatar)==null?void 0:(F=B.image)==null?void 0:(D=F.sources)==null?void 0:D[0];return u?{thumbnails:[{url:u.url,width:u.width,height:u.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.commentEntity)==null?0:(B=G.author)==null?0:B.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.commentEntity)==null?void 0:(B=G.author)==null?void 0:B.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.commentEntity)==null?void 0:(B=G.properties)==null?void 0:B.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.Q((G=this.commentSurfaceEntity)==null?void 0:G.publishedTimeCommand,_.mr)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var G,B;if(((G=this.commentEntity)==null?0:G.translatedContent)&&((B=this.translateButtonState)==null?void 0:B.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var F;if((F=this.voiceReplyContainerViewModel)==null?0:F.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var D,u;return((D=this.commentEntity)==null?void 0:(u=D.properties)==null?void 0:u.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.commentSharedEntity)==null?void 0:(B=G.strings)==null?void 0:B.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.commentSharedEntity)==null?void 0:(B=G.strings)==null?void 0:B.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentEntity)==null||!G.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var G,B,F=(B=_.Q((G=this.viewModel)==null?void 0:G.translateButton,ioU))!=null?B:{},D,u,R,N,y,U,q,h,K,a,m;return Object.assign({},F,{untoggledStateData:Object.assign({},F.untoggledStateData,{buttonText:(D=this.commentEntity)==null?void 0:(u=D.translateData)==null?void 0:u.text}),togglingStateData:Object.assign({},F.togglingStateData,{buttonText:(R=this.commentSharedEntity)==null?
void 0:(N=R.strings)==null?void 0:N.translatingText}),toggledStateData:Object.assign({},F.toggledStateData,{buttonText:(y=this.commentSharedEntity)==null?void 0:(U=y.strings)==null?void 0:U.seeOriginalText}),transitionCommand:((q=this.commentEntity)==null?0:q.translatedContent)?void 0:_.Q((h=this.commentEntity)==null?void 0:(K=h.translateData)==null?void 0:K.translateComment,_.mr),triStateKey:(a=this.commentEntity)==null?void 0:(m=a.properties)==null?void 0:m.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((B=_.Q(_.Q((G=this.toolbarSurface)==null?void 0:G.menuCommand,_.mr),b47))==null?void 0:(F=B.menu)==null?void 0:F.menuRenderer)||null}}});
hq.prototype.onYtCommentboxResize=hq.prototype.onYtCommentboxResize;hq.prototype.onYtCommentboxDismiss=hq.prototype.onYtCommentboxDismiss;hq.prototype.onYtNavigate=hq.prototype.onYtNavigate;hq.prototype.resetExpander=hq.prototype.resetExpander;hq.prototype.updateBackgroundColor=hq.prototype.updateBackgroundColor;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],hq.prototype,"ytdReduxBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],hq.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#author-thumbnail > button"),_.I("design:type",HTMLElement)],hq.prototype,"authorThumbnailAnchor",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("viewModel"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hq.prototype,"linked",null);
_.c([_.O("viewModel","linked"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"linkedCommentBadge",null);_.c([_.v({reflectToAttribute:!0}),_.O("viewModel"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hq.prototype,"pinned",null);_.c([_.O("viewModel","pinned"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"pinnedCommentBadge",null);
_.c([_.O("commentEntity","commentSharedEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"authorCommentBadge",null);_.c([_.v({reflectToAttribute:!0}),_.O("authorCommentBadge"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"hasAuthorBadge",null);_.c([_.O("commentEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"sponsorCommentBadge",null);
_.c([_.v({reflectToAttribute:!0}),_.O("sponsorCommentBadge"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"hasSponsorBadge",null);_.c([_.O("commentSurfaceEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"pdgCommentChipRenderer",null);_.c([_.v({reflectToAttribute:!0}),_.O("voiceReplyContainerViewModel"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"hasVoiceReply",null);
_.c([_.O("commentSurfaceEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"voiceReplyContainerViewModel",null);_.c([_.O("voiceReplyContainerViewModel"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"voiceReplyUnavailableText",null);_.c([_.v(),_.I("design:type",Object)],hq.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"viewModel",null);
_.c([_.v({selector:function(G,B){return _.g5(G.entities,"commentSharedEntityPayload",B)},
selectorArgs:["viewModel.sharedKey"]}),_.I("design:type",Object)],hq.prototype,"commentSharedEntity",void 0);_.c([_.v({selector:WcU,selectorArgs:["viewModel.commentKey"]}),_.I("design:type",Object)],hq.prototype,"commentEntity",void 0);_.c([_.v({selector:function(G,B){return _.g5(G.entities,"commentSurfaceEntityPayload",B)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.I("design:type",Object)],hq.prototype,"commentSurfaceEntity",void 0);_.c([_.v({selector:H0g,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.I("design:type",Object)],hq.prototype,"toolbarSurface",void 0);_.c([_.v({selector:k3U,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.I("design:type",Object)],hq.prototype,"translateButtonState",void 0);
_.c([_.O("commentSurfaceEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"backgroundColor",null);_.c([_.v({reflectToAttribute:!0}),_.O("viewModel"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hq.prototype,"optimalReadingWidthComments",null);_.c([_.iA("ytd-expander"),_.I("design:type",Object)],hq.prototype,"expander",void 0);
_.c([_.Ga("backgroundColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hq.prototype,"updateBackgroundColor",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hq.prototype,"useSmallAvatars",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],hq.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hq.prototype,"commentThreadingEnabled",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hq.prototype,"webWatchCompactComments",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("commentEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"isReply",null);_.c([_.O("commentEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"authorThumbnailEndpoint",null);_.c([_.O("commentEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"authorNameEndpoint",null);
_.c([_.O("commentEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"authorThumbnail",null);_.c([_.O("commentEntity"),_.I("design:type",String),_.I("design:paramtypes",[])],hq.prototype,"authorTextClass",null);_.c([_.O("commentEntity"),_.I("design:type",String),_.I("design:paramtypes",[])],hq.prototype,"authorChannelName",null);_.c([_.O("commentEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"publishedTime",null);
_.c([_.O("commentSurfaceEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"publishedTimeCommand",null);_.c([_.O("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"contentText",null);_.c([_.Ga("contentText"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hq.prototype,"resetExpander",null);
_.c([_.O("commentEntity"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hq.prototype,"shouldShowReadMoreInitially",null);_.c([_.O("commentSharedEntity"),_.I("design:type",String),_.I("design:paramtypes",[])],hq.prototype,"expandText",null);_.c([_.O("commentSharedEntity"),_.I("design:type",String),_.I("design:paramtypes",[])],hq.prototype,"collapseText",null);_.c([_.O("commentEntity"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hq.prototype,"shouldShowTranslateButton",null);
_.c([_.O("commentEntity","commentSharedEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"translateButton",null);_.c([_.O("toolbarSurface"),_.I("design:type",Object),_.I("design:paramtypes",[])],hq.prototype,"overflowMenuRenderer",null);_.c([_.v(),_.I("design:type",Object)],hq.prototype,"editDialog",void 0);_.c([_.iA("ytd-comment-dialog-renderer"),_.I("design:type",Object)],hq.prototype,"editCommentDialogContainer",void 0);
_.c([_.iA("ytd-comment-reply-dialog-renderer"),_.I("design:type",Object)],hq.prototype,"editReplyDialogContainer",void 0);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],hq.prototype,"onYtNavigate",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],hq.prototype,"onYtCommentboxDismiss",null);
_.c([_.Pm("yt-commentbox-resize"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],hq.prototype,"onYtCommentboxResize",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-comment-view-model"})],hq);
_.d(hq,"ytd-comment-view-model",function(){if(nOU!==void 0)return nOU;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return nOU=G},{mode:_.ZO("kevlar_poly_si_batch_j025")?1:2});_.YN(_.Y(function(G){var B={},F={};return _.l("yt-sub-thread",{class:_.tx("ytSubThreadHost",(B.ytSubThreadHasButton=G.isButton,B.ytSubThreadHovered=G.hovered,B.ytSubThreadTopLevelThread=function(){var D,u;return((D=G.topLevelThread)==null?void 0:D.call(G))&&!(_.X("small_avatars_for_comments")&&((u=G.engagementPanel)==null?0:u.call(G)))},B))},_.l("div",{class:"ytSubThreadThreadline"},_.l(_.E,{cond:function(){var D;
return!((D=G.isTeaser)==null?0:D.call(G))},
then:function(){return _.l("div",{class:"ytSubThreadConnection"})}}),_.l("div",{class:"ytSubThreadContinuation"}),_.l("div",{class:"ytSubThreadShadow"})),_.l("div",{class:_.tx("ytSubThreadSubThreadContent",(F.ytSubThreadSubThreadContentEngagementPanel=G.engagementPanel,F))},G.children))},"Qc"),"yt-sub-thread",{props:{isButton:_.Hd,
isTeaser:_.Hd,hovered:_.Hd,topLevelThread:_.Hd,engagementPanel:_.Hd}});var KP=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_modern_buttons");G.commentThreadingEnabled=_.X("web_delhi_comment_threads");G.isWatchGrid=_.X("kevlar_watch_grid");G.buttonOverrides=G.commentThreadingEnabled?_.X("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};G.JSC$16350_spinnerEl=null;return G};
_.r(KP,_.p);_.w=KP.prototype;_.w.configureContinuationPathMap=function(){return _.X("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.w.shouldShowLegacyTeasers=function(G,B){return G&&!B};
_.w.shouldShowExpandedThreads=function(G,B){return this.commentThreadingEnabled&&B&&(G==null?void 0:G.length)>0};
_.w.shouldShowCollapsedThreads=function(G,B){return this.commentThreadingEnabled&&!B&&G};
_.w.computeCommentViewModel=function(G){return _.Q(G,BuP)};
_.w.computeThreadRenderer=function(G){return _.Q(G,gea)};
_.w.computeIsContinuationItem=function(G){return!!this.computeContinuationItemRenderer(G)};
_.w.computeButtonRenderer=function(G){return _.Q(G,_.Xq)};
_.w.computeContinuationItemRenderer=function(G){return _.Q(G,_.c0)};
_.w.computeShowButton=function(G){var B;return!((B=this.computeContinuationItemRenderer(G))==null||!B.button)};
_.w.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]]"}}}}}};
_.w.attached=function(){this.isShowRepliesVisible=!0};
_.w.dataChanged=function(){var G=this.expanderContents;G&&(G.hidden=!0);this.isLoading=!1};
_.w.endsInContinuation=function(G){return!!G&&G.length>0&&!!this.computeContinuationItemRenderer(G[G.length-1])};
_.w.computeShouldShowHideRepliesButton=function(G,B){return!G&&B};
_.w.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.w.isLoadingChanged=function(){this.isLoading&&!this.JSC$16350_spinnerEl&&(this.JSC$16350_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.IF(this.expanderContents).appendChild(this.JSC$16350_spinnerEl));this.JSC$16350_spinnerEl&&(this.JSC$16350_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var G;(G=this.contents)==null||G.classList.remove("reloading")}};
_.w.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var G=_.Q(this.data.viewReplies,_.Xq);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.w.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var G=_.Q(this.data.hideReplies,_.Xq);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.w.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var G=_.IF(this.hostElement).querySelector("#expander-contents");G&&(G.hidden=this.isShowRepliesVisible)}};
_.w.computeAlign=function(){if(this.modern){var G;return!((G=this.data)==null?0:G.viewRepliesCreatorThumbnail)}};
_.ZN.Object.defineProperties(KP.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var G,B;return this.endsInContinuation((G=this.data)==null?void 0:G.contents)||this.commentThreadingEnabled&&this.endsInContinuation((B=this.data)==null?void 0:B.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var G;return(G=this.data)==null?void 0:G.teaserContents}}});
KP.prototype.isShowMoreChanged=KP.prototype.isShowMoreChanged;KP.prototype.isLoadingChanged=KP.prototype.isLoadingChanged;KP.prototype.triggerFirstContinuation=KP.prototype.triggerFirstContinuation;KP.prototype.dataChanged=KP.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.be),_.I("design:type",Object)],KP.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],KP.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],KP.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],KP.prototype,"commentThreadingEnabled",void 0);_.c([_.v(),_.I("design:type",Boolean)],KP.prototype,"expanded",void 0);
_.c([_.v(),_.I("design:type",Function)],KP.prototype,"toggleExpanded",void 0);_.c([_.v(),_.I("design:type",Array)],KP.prototype,"addedReplies",void 0);_.c([_.v(),_.I("design:type",Boolean)],KP.prototype,"hovered",void 0);_.c([_.v(),_.I("design:type",Boolean)],KP.prototype,"topLevelThread",void 0);_.c([_.v(),_.I("design:type",Boolean)],KP.prototype,"isLoading",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],KP.prototype,"isShowRepliesVisible",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],KP.prototype,"useNewFormatting",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],KP.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],KP.prototype,"isWatchGrid",void 0);_.c([_.v(),_.I("design:type",Object)],KP.prototype,"buttonOverrides",void 0);_.c([_.iA("#expander-contents"),_.I("design:type",HTMLElement)],KP.prototype,"expanderContents",void 0);
_.c([_.iA("ytd-continuation-item-renderer"),_.I("design:type",Object)],KP.prototype,"continuationItemRenderer",void 0);_.c([_.iA("#contents"),_.I("design:type",HTMLElement)],KP.prototype,"contents",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],KP.prototype,"dataChanged",null);_.c([_.O("data.contents","data.subThreads.*"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],KP.prototype,"hasContinuation",null);
_.c([_.O("data.teaserContents"),_.I("design:type",Object),_.I("design:paramtypes",[])],KP.prototype,"subThreadTeasers",null);_.c([_.Pm("yt-expander-more-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],KP.prototype,"triggerFirstContinuation",null);_.c([_.Ga("isLoading"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],KP.prototype,"isLoadingChanged",null);
_.c([_.Ga("isShowRepliesVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],KP.prototype,"isShowMoreChanged",null);_.c([_.mC({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],KP);
_.d(KP,"ytd-comment-replies-renderer",function(){if(u$w!==void 0)return u$w;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer class="replies-continuation style-scope ytd-comment-replies-renderer" button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" restamp="" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return u$w=G},{mode:1});var EOa;var aR=function(){var G=_.p.apply(this,arguments)||this;G.isOpen=!1;G.commentDialog=null;G.useSmallAvatars=_.X("small_avatars_for_comments");G.useSmallAvatarsEngagementPanelOnly=_.X("small_avatars_for_comments_ep");G.placeholderFocusListener=null;G.hasOpenedDialog=!1;G.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return G};
_.r(aR,_.p);_.w=aR.prototype;_.w.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]]"}}}}}};
_.w.ready=function(){var G=this,B=_.IF(this.hostElement).querySelector("#placeholder-area"),F=_.IF(this.hostElement).querySelector("#simplebox-placeholder"),D=function(u){u.stopPropagation();u instanceof KeyboardEvent&&u.type==="keypress"&&u.keyCode!==13&&u.keyCode!==32||G.openDialog()};
this.placeholderFocusListener=D;F.addEventListener("focus",this.placeholderFocusListener);B.addEventListener("tap",D);B.addEventListener("keypress",D)};
_.w.maybeRemoveFocusEventListener=function(){var G;(G=this.data)!=null&&G.prepareAccountEndpoint&&!_.X("web_comments_simplebox_modal_focus_on_tap_ks")&&(G=_.IF(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(G.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.w.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.w.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.X("web_comment_simplebox_resolve_polymer_command_ks")?_.Gm.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Br(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(G),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.IF(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.w.onYtCommentboxDismiss=function(G){G.stopPropagation();this.isOpen=!1};
_.w.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.isOpen=!1)};
_.w.computeCommentDialog=function(G){return{placeholderText:G.placeholderText,authorThumbnail:G.authorThumbnail,submitButton:G.submitButton,imageButton:G.imageButton,cancelButton:G.cancelButton,emojiButton:G.emojiButton,emojis:G.emojis,emojiPicker:G.emojiPicker,aadcGuidelinesStateEntityKey:G.aadcGuidelinesStateEntityKey,openAadcDialog:G.openAadcDialog,unicodeEmojisUrl:G.unicodeEmojisUrl}};
_.w.onHideIdentityChip=function(G){_.Q(G,csw)&&this.set("data.placeholderText",_.Q(G,csw).placeholderText)};
aR.prototype.onYtCommentboxDismiss=aR.prototype.onYtCommentboxDismiss;aR.prototype.dataChanged=aR.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],aR.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],aR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aR.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],aR.prototype,"isOpen",void 0);_.c([_.v(),_.I("design:type",Object)],aR.prototype,"commentDialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],aR.prototype,"engagementPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],aR.prototype,"useSmallAvatars",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],aR.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],aR.prototype,"enableCreationBox",void 0);_.c([_.v(),_.I("design:type",Boolean)],aR.prototype,"showCreateDialog",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aR.prototype,"dataChanged",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],aR.prototype,"onYtCommentboxDismiss",null);_.c([_.mC({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],aR);
_.d(aR,"ytd-comment-simplebox-renderer",function(){if(EOa!==void 0)return EOa;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return EOa=G},{mode:1});var hKw;_.UR("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var mz=function(){var G=_.p.apply(this,arguments)||this;G.addHoverEffect=_.X("swatcheroo_comments_hover_effect");G.useSmallAvatars=_.X("small_avatars_for_comments");G.scrollingEnabled=_.X("web_comment_threading_scroll_on_collapse");G.isSubThread=!1;G.threadHovered=!1;G.expanded=!1;G.removed=!1;G.addedReplies=[];G.actionMap=G.configureActionMap();G.toggleExpanded=function(){G.expanded=!G.expanded;!G.expanded&&G.scrollingEnabled&&_.T1(G.hostElement,"yt-scroll-to-comment-element",[G.commentElement])};
return G};
_.r(mz,_.p);_.w=mz.prototype;_.w.configureActionMap=function(){return _.X("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.w.createCommentReplyAction=function(G){G=_.Q(G,dQs);if(G!=null&&G.contents){var B=G.replyToCommentId,F=G.parentCommentId,D,u=(D=this.commentViewModel)==null?void 0:D.commentId;(u===B||u===F&&!B)&&this.maybeAttachReply(G.contents)}};
_.w.maybeAttachReply=function(G){var B,F;(((B=this.commentEntity)==null?void 0:(F=B.properties)==null?void 0:F.replyLevel)||0)>=3?_.cZ(this.hostElement,"yt-pushed-create-comment-reply",G):this.attachReply(G)};
_.w.onPushedCreateCommentReply=function(G){var B,F;(((B=this.commentEntity)==null?void 0:(F=B.properties)==null?void 0:F.replyLevel)||0)>=3||(this.attachReply(G.detail),G.stopPropagation())};
_.w.attachReply=function(G){var B;((B=this.data)==null?0:B.replies)?(B=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+B+".continuationItemRenderer")?B===0?this.push("addedReplies",G):this.splice("data.replies.commentRepliesRenderer.subThreads",B,0,G):this.push("data.replies.commentRepliesRenderer.subThreads",G)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[G],viewReplies:{buttonRenderer:{text:_.pR(_.G7("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.w.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.gi(this.addedReplies))),this.set("addedReplies",[]))};
_.w.removeCommentAction=function(G){G=_.Q(G,fzq);var B=G==null?void 0:G.commentId,F;B&&((F=this.commentViewModel)==null?void 0:F.commentId)===B&&this.maybeRemoveComment(G.actionResult)};
_.w.banAuthorAction=function(G){G=_.Q(G,Y9t);var B=G==null?void 0:G.commentId,F;B&&((F=this.commentViewModel)==null?void 0:F.commentId)===B&&this.maybeRemoveComment(G.actionResult)};
_.w.hideReportedCommentAction=function(G){G=_.Q(G,wVs);var B=G==null?void 0:G.commentId,F;B&&((F=this.commentViewModel)==null?void 0:F.commentId)===B&&this.maybeRemoveComment(G.actionResult)};
_.w.maybeRemoveComment=function(G){G&&G.status==="STATUS_SUCCEEDED"&&(this.feedbackText=G.feedbackText||_.pR("Reply removed"),this.removed=!0)};
_.w.onTap=function(G){if(this.addHoverEffect&&!this.engagementPanel&&!_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||_.Br({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.w.attached=function(){var G=this;this.isSubThread&&(this.expanded=!0);var B;(B=this.commentThreadHitbox)==null||B.addEventListener("mouseover",function(){G.threadHovered=!0});
var F;(F=this.commentThreadHitbox)==null||F.addEventListener("mouseout",function(){G.threadHovered=!1});
var D;(D=this.commentThreadHitbox)==null||D.addEventListener("click",function(){G.maybeToggleExpanded()})};
_.w.onDataChanged=function(){var G=_.X("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(G)&&this.set(G,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.w.maybeToggleExpanded=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.replies)==null?void 0:(F=B.commentRepliesRenderer)==null?void 0:F.subThreads,u;(D==null?void 0:D.length)===1&&((u=_.Q(D[0],_.c0))==null?0:u.button)&&this.expanded||this.toggleExpanded()};
_.ZN.Object.defineProperties(mz.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.Q((G=this.data)==null?void 0:G.commentViewModel,BuP)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return _.X("web_delhi_comment_threads")&&!!((G=this.data)==null?0:(B=G.replies)==null?0:(F=B.commentRepliesRenderer)==null?0:F.subThreads)}}});
mz.prototype.onDataChanged=mz.prototype.onDataChanged;mz.prototype.onTap=mz.prototype.onTap;mz.prototype.onAppendContinuationItemsActionFinished=mz.prototype.onAppendContinuationItemsActionFinished;mz.prototype.onPushedCreateCommentReply=mz.prototype.onPushedCreateCommentReply;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],mz.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mz.prototype,"addHoverEffect",void 0);_.c([_.v(),_.I("design:type",Object)],mz.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mz.prototype,"useSmallAvatars",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mz.prototype,"scrollingEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mz.prototype,"isSubThread",void 0);_.c([_.iA(".thread-hitbox"),_.I("design:type",HTMLElement)],mz.prototype,"commentThreadHitbox",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mz.prototype,"threadHovered",void 0);_.c([_.iA("#comment"),_.I("design:type",HTMLElement)],mz.prototype,"commentElement",void 0);
_.c([_.v(),_.I("design:type",Object)],mz.prototype,"expanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mz.prototype,"removed",void 0);_.c([_.v(),_.I("design:type",Object)],mz.prototype,"feedbackText",void 0);_.c([_.v(),_.I("design:type",Array)],mz.prototype,"addedReplies",void 0);_.c([_.v({selector:WcU,selectorArgs:["commentViewModel.commentKey"]}),_.I("design:type",Object)],mz.prototype,"commentEntity",void 0);
_.c([_.Pm("yt-pushed-create-comment-reply"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],mz.prototype,"onPushedCreateCommentReply",null);_.c([_.Pm("yt-append-continuation-items-action-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mz.prototype,"onAppendContinuationItemsActionFinished",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],mz.prototype,"commentViewModel",null);
_.c([_.O("data.replies.commentRepliesRenderer.subThreads"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],mz.prototype,"hasSubThreading",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],mz.prototype,"engagementPanel",void 0);_.c([_.Pm("tap"),_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],mz.prototype,"onTap",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mz.prototype,"onDataChanged",null);_.c([_.mC({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],mz);
_.d(mz,"ytd-comment-thread-renderer",function(){if(hKw!==void 0)return hKw;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return hKw=G},{mode:2});var KIq;var Xn=function(){var G=_.p.apply(this,arguments)||this;G.compactHeader=_.X("web_watch_compact_comments_header");G.hidePanelButton=!1;G.isPostSchedulingEnabled=_.X("enable_post_scheduling");G.hasFinishedStamping=!1;G.JSC$16373_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.r(Xn,_.p);_.w=Xn.prototype;
_.w.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"}}}};
_.w.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.w.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16373_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.w.onYtServiceRequestSent=function(G,B){if(!_.X("kevlar_command_handler")&&B.actions)for(G=0;G<B.actions.length;G++){var F=B.actions[G];_.Q(F,ysy)&&_.IF(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Q(F,ysy))}};
_.w.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var G;if(this.getPrefilledBackstagePostDialog((G=this.data)==null?void 0:G.actions)){_.IF(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var B=_.IF(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;B&&_.ft(this,function(){B.focus();B.openDialog&&B.openDialog()})}}else this.hasActionsChange=!0};
_.w.computeIsBackstage=function(G){return G};
_.w.onYtCommentboxDismiss=function(){_.IF(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.w.removePrefilledDialog=function(G){if(G==null?0:G.actions){for(var B=G.actions.length-1;B>=0;B--){var F=void 0;((F=_.Q(G.actions[B],O4q))==null?0:F.dialog)&&delete G.actions[B]}this.set("data",void 0);this.set("data",G)}};
_.w.getPrefilledBackstagePostDialog=function(G){if(G)for(var B=0;B<G.length;B++){var F=G[B],D=void 0;if((D=_.Q(F,O4q))==null?0:D.dialog)return _.Q(F,O4q).dialog}return null};
_.w.computeBackstagePostDialog=function(G){return G&&(this.getPrefilledBackstagePostDialog(G.actions)||G.createRenderer)};
_.w.dataChanged=function(){if(this.data){var G=this.data.customEmojis,B=this.data.unicodeEmojisUrl;_.rl.clear();B&&_.y_w(_.rl,B);G&&_.rl.load(G)}};
_.w.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.IF(this.hostElement).querySelector("ytd-comment-simplebox-renderer");G?G.openDialog():this.JSC$16373_handleOpenPostCommentDialogActionAfterStamp=!0};
_.w.onPostHeaderTap=function(){var G;((G=this.data)==null?0:G.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.ZN.Object.defineProperties(Xn.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.X("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u,R,N;return!this.hidePanelButton&&_.X("kevlar_watch_comments_panel_button")&&((N=_.Q((G=this.data)==null?void 0:(B=G.sortMenu)==null?void 0:(F=B.sortFilterSubMenuRenderer)==null?void 0:(D=F.subMenuItems)==null?void 0:(u=D[0])==null?void 0:(R=u.serviceEndpoint)==null?void 0:R.commandMetadata,_.xy))==null?void 0:N.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.G7("MINIPLAYER_EXPAND_LABEL"),text:_.$9(_.G7("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Xn.prototype.dataChanged=Xn.prototype.dataChanged;Xn.prototype.onYtCommentboxDismiss=Xn.prototype.onYtCommentboxDismiss;Xn.prototype.observePrefilledBackstagePostDialog=Xn.prototype.observePrefilledBackstagePostDialog;Xn.prototype.onYtServiceRequestSent=Xn.prototype.onYtServiceRequestSent;Xn.prototype.onStampFinished=Xn.prototype.onStampFinished;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Xn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Xn.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Xn.prototype,"compactHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Xn.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Object)],Xn.prototype,"hidePanelButton",void 0);_.c([_.v({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Xn.prototype,"isBackstage",void 0);_.c([_.v({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.I("design:type",Object)],Xn.prototype,"backstagePostDialog",void 0);
_.c([_.v(),_.I("design:type",Object)],Xn.prototype,"isPostSchedulingEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data","showCommentsPanelButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xn.prototype,"useSpaceBetween",null);_.c([_.v({reflectToAttribute:!0}),_.O("data","hidePanelButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xn.prototype,"showCommentsPanelButton",null);
_.c([_.O("data","showCommentsPanelButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xn.prototype,"commentsPanelButtonData",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xn.prototype,"onStampFinished",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Xn.prototype,"onYtServiceRequestSent",null);
_.c([_.Ga("data.actions"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xn.prototype,"observePrefilledBackstagePostDialog",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Xn.prototype,"onYtCommentboxDismiss",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xn.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Xn);
_.d(Xn,"ytd-comments-header-renderer",function(){if(KIq!==void 0)return KIq;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return KIq=G},{mode:1});var aQt;var Qs=function(){return _.p.apply(this,arguments)||this};
_.r(Qs,_.p);_.c([_.v(),_.I("design:type",Object)],Qs.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.c([_.mC({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Qs);
_.d(Qs,"ytd-destination-button-renderer",function(){if(aQt!==void 0)return aQt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return aQt=G},{mode:1});var mC8;var jv=function(){var G=_.p.apply(this,arguments)||this;G.isRichGrid=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return G};
_.r(jv,_.p);_.w=jv.prototype;_.w.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.w.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.w.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.w.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var G;if((G=this.data)==null||!G.isExpanded){G=this.hostElement.clientWidth;var B;if(G&&(B=this.data)!=null&&B.destinationButtons){B=Math.floor((G+4)/214);G=this.data.destinationButtons.length;var F=Math.ceil(G/B);this.fullyVisibleRows=G%B===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}}}};
_.w.updateRichGridDestinationButtonsVisibility=function(){var G,B;if(this.isRichGrid&&((G=this.data)==null||!G.isExpanded)&&(B=this.data)!=null&&B.destinationButtons){G=this.richGridItemsPerRow+1;B=this.data.destinationButtons.length;var F=Math.ceil(B/G);this.fullyVisibleRows=B%G===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}};
_.w.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
jv.prototype.updateRichGridDestinationButtonsVisibility=jv.prototype.updateRichGridDestinationButtonsVisibility;_.c([_.v(),_.I("design:type",Object)],jv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Number)],jv.prototype,"fullyVisibleRows",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],jv.prototype,"isShowMoreVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jv.prototype,"isRichGrid",void 0);
_.c([_.v({selector:_.EX,value:0}),_.I("design:type",Number)],jv.prototype,"richGridItemsPerRow",void 0);_.c([_.v(),_.I("design:type",Object)],jv.prototype,"gridStateActionMap",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],jv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],jv.prototype,"ytdReduxBehavior",void 0);_.c([_.Ga("data","richGridItemsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jv.prototype,"updateRichGridDestinationButtonsVisibility",null);_.c([_.mC({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],jv);
_.d(jv,"ytd-destination-shelf-renderer",function(){if(mC8!==void 0)return mC8;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return mC8=G},{mode:1});var Xqv;var LP=function(){return _.p.apply(this,arguments)||this};
_.r(LP,_.p);LP.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],LP.prototype,"data",void 0);_.c([_.mC({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],LP);
_.d(LP,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Xqv!==void 0)return Xqv;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Xqv=G},{mode:1});var QWU;var rp=function(){var G=_.p.apply(this,arguments)||this;G.disableAnimation=!1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;return G};
_.r(rp,_.p);rp.prototype.onTap=function(G){G.preventDefault();this.data&&_.cZ(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.ZN.Object.defineProperties(rp.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 G,B,F,D,u;return((G=this.data)==null?0:G.checked)?(B=this.data)==null?void 0:(F=B.onStateIcon)==null?void 0:F.iconType:(D=this.data)==null?void 0:(u=D.defaultStateIcon)==null?void 0:u.iconType}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],rp.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rp.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],rp.prototype,"disableAnimation",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rp.prototype,"isSlimlineSurvey",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rp.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rp.prototype,"isShortsStyle",void 0);_.c([_.O("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rp.prototype,"isAnimatedIcon",null);
_.c([_.O("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.I("design:type",Number),_.I("design:paramtypes",[])],rp.prototype,"iconSize",null);_.c([_.O("isShortsStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rp.prototype,"isDarkTheme",null);_.c([_.O("data.checked"),_.I("design:type",Object),_.I("design:paramtypes",[])],rp.prototype,"icon",null);_.c([_.mC({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],rp);
_.d(rp,"ytd-rating-survey-option-renderer",function(){if(QWU!==void 0)return QWU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return QWU=G},{mode:2});var jWt;var WO=function(){var G=_.p.apply(this,arguments)||this;G.firstResponseText=null;G.lastResponseText=null;G.selectedNonStarOption=null;G.hideOptions=!1;G.hideUndoButton=!0;G.disableAnimation=!1;G.showResponseRangeText=!1;G.selectedRatingIndex=-1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.slimlineSurveyRatingSelectedIndex=-1;return G};
_.r(WO,_.p);_.w=WO.prototype;_.w.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.w.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.w.onOptionChange=function(G,B){var F=this;G=B.onStateIcon&&B.defaultStateIcon&&B.onStateIcon.iconType===B.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(N,y){N.responseText===B.responseText?F.isSlimlineSurvey?(F.selectedRatingIndex=y,F.ytdReduxBehavior.dispatch(eLa(y))):(F.setSurveyOptionValue(y,!0,"checked"),F.setSurveyOptionValue(y,!0,"selected")):(F.setSurveyOptionValue(y,!1,"checked"),F.setSurveyOptionValue(y,
!1,"selected"))});
else if(G)this.selectedNonStarOption=B,this.hideOptions=!0;else{var D=this.ytRendererBehavior.getSimpleString(B.responseText),u=!0;this.getOptionRenderers().forEach(function(N,y){F.setSurveyOptionValue(y,u,"checked");F.setSurveyOptionValue(y,!1,"selected");F.ytRendererBehavior.getSimpleString(N.responseText)===D&&(u=!1,F.setSurveyOptionValue(y,!0,"selected"))})}G=B.responseEndpoint;
var R;B.followUpCommand&&(R=_.Q(B.followUpCommand,aWw));this.isSlimlineSurvey?(this.resetComponent(),_.T1(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.T1(this.hostElement,"ytd-inline-survey-rating-select-action",[G,R])};
_.w.showSelectedOption=function(){var G=this;_.Lu.addJob(function(){var B=G.getOptionRenderers()[G.slimlineSurveyRatingSelectedIndex];G.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),B)},8,100)};
_.w.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(G){var B;return(B=_.Q(G,XHG))!=null?B:{}}):[]};
_.w.onUndoClick=function(){this.resetComponent();_.T1(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.w.setSurveyOptionValue=function(G,B,F){this.notifyPath("data.ratings."+G+".ratingSurveyOptionRenderer."+F);this.set("data.ratings."+G+".ratingSurveyOptionRenderer."+F,B)};
_.w.resetComponent=function(){var G=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var B=this.getOptionRenderers(),F,D;this.firstResponseText=(D=(F=B[0])==null?void 0:F.responseText)!=null?D:null;var u,R;this.lastResponseText=(R=(u=B[B.length-1])==null?void 0:u.responseText)!=null?R:null;B.forEach(function(N,y){G.setSurveyOptionValue(y,!1,"checked");G.setSurveyOptionValue(y,!1,"selected")})};
_.ZN.Object.defineProperties(WO.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
WO.prototype.onOptionChange=WO.prototype.onOptionChange;WO.prototype.dataChanged=WO.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],WO.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],WO.prototype,"firstResponseText",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"lastResponseText",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"selectedNonStarOption",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"hideOptions",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"hideUndoButton",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"disableAnimation",void 0);
_.c([_.v(),_.I("design:type",Object)],WO.prototype,"showResponseRangeText",void 0);_.c([_.v(),_.I("design:type",Object)],WO.prototype,"selectedRatingIndex",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],WO.prototype,"isSlimlineSurvey",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],WO.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],WO.prototype,"isShortsStyle",void 0);_.c([_.v({selector:function(G){return G.ui.slimlineSurveyRatingSelectedIndex}}),
_.I("design:type",Object)],WO.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.c([_.O("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],WO.prototype,"isSingleSelect",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WO.prototype,"dataChanged",null);
_.c([_.Pm("ytd-rating-survey-option-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],WO.prototype,"onOptionChange",null);_.c([_.mC({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],WO);
_.d(WO,"ytd-rating-survey-renderer",function(){if(jWt!==void 0)return jWt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jWt=G},{mode:1});var LIq;var rHT;var WIU;var dxL=(Gf.FIRSTDAYOFWEEK+1)%7,HyN=function(G,B,F,D){var u="";if(D.selection&&MSJ(D.selection))sY(G,D.selection)&&(u+=" selected");else if(D.selection&&pGc(D.selection)){var R=D.selection.selectionState||"START_DATE";sY(G,D.selection.start)&&(u+=" period-start ",R==="START_DATE"&&(u+="selected"));sY(G,D.selection.end)&&(u+=" period-end ",R==="END_DATE"&&(u+="selected"));xP(G,D.selection.start)||xP(D.selection.end,G)||(u+=" highlighted")}if(xP(B,D.start)||xP(D.end,B))u+=" disabled";D.circleToday&&
sY(B,F)&&(u+=" today");return u};var HO=function(){return _.p.apply(this,arguments)||this};
_.r(HO,_.p);_.w=HO.prototype;_.w.attached=function(){var G=this;_.ft(this,function(){G.JSC$16407_calendarMain.scrollHeight>0&&(G.calendarConfig.selection?G.scrollToDate(Ykg(G.calendarConfig.selection)):G.scrollToDate(G.calendarConfig.end))})};
_.w.updateSelection=function(G){G=J$8(Object.assign({},this.calendarConfig,{selection:G}),HyN);this.splice.apply(this,["renderData.months",0,G.length].concat(_.gi(G)))};
_.w.scrollToDate=function(G){this.renderData&&(G=c$Q(G,this.renderData),G!==void 0&&this.JSC$16407_calendarMain.scrollToIndex(G))};
_.w.scrollToNextMonth=function(){this.JSC$16407_calendarMain.scrollToIndex(this.JSC$16407_calendarMain.firstVisibleIndex+1)};
_.w.scrollToPrevMonth=function(){this.JSC$16407_calendarMain.firstVisibleIndex===0&&this.JSC$16407_calendarMain.scrollTo(0,0);this.JSC$16407_calendarMain.scrollToIndex(this.JSC$16407_calendarMain.firstVisibleIndex-1)};
_.w.handleDayClick=function(G){_.T1(this.hostElement,"ytd-calendar-date-clicked",[G.model.day.date])};
_.w.handleDayMouseDown=function(G){G.preventDefault();_.T1(this.hostElement,"ytd-calendar-date-mousedown",[G.model.day.date])};
_.w.handleDayMouseUp=function(G){_.T1(this.hostElement,"ytd-calendar-date-mouseup",[G.model.day.date])};
_.w.handleDayMouseEnter=function(G){G.preventDefault();_.T1(this.hostElement,"ytd-calendar-date-mouseenter",[G.model.day.date])};
_.w.handleDayMouseLeave=function(G){_.T1(this.hostElement,"ytd-calendar-date-mouseleave",[G.model.day.date])};
_.ZN.Object.defineProperties(HO.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var G=this.calendarConfig,B=HyN;B=B===void 0?HyN:B;for(var F=[],D=0;D<7;D++)F.push(Gf.NARROWWEEKDAYS[(D+dxL)%7]);return{months:J$8(G,B),daysOfWeekLabel:F}}}});
_.c([_.v(),_.I("design:type",Object)],HO.prototype,"calendarConfig",void 0);_.c([_.iA("#calendar-main"),_.I("design:type",Object)],HO.prototype,"JSC$16407_calendarMain",void 0);_.c([_.O("calendarConfig"),_.I("design:type",Object),_.I("design:paramtypes",[])],HO.prototype,"renderData",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],HO);
_.d(HO,"ytd-scrollable-calendar",function(){if(WIU!==void 0)return WIU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return WIU=G},{mode:2});var kI7;var Oys;var k$=function(){var G=_.p.apply(this,arguments)||this;G.hideCharCounter=!1;G.hideLabel=!1;G.noLabelFloat=!1;G.autoValidate=!0;G.invalid=!1;G.disabled=!1;G.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return G};
_.r(k$,_.p);_.w=k$.prototype;_.w.reset=function(G){this.value=G&&this.data?this.data.value=G:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.w.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.w.focusTextInput=function(){this.input.focus()};
_.w.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()};
_.w.valueChanged=function(){var G,B;if(((G=this.data)==null?0:G.value)||((B=this.data)==null?void 0:B.value)==="")this.value=this.data.value;else{var F;((F=this.data)==null?void 0:F.value)!==void 0||this.value||(this.value="")}};
_.w.computeLabel=function(G,B){return B?"":_.zx(G)};
_.w.computeAriaLabel=function(G,B){return B?_.zx(G):""};
_.w.computeErrorMessage=function(G,B,F,D){return!G&&B?F||this.strings.REQUIRED_LABEL:_.OSG(_.zx(D))};
_.w.computeType=function(G){return G==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.w.onTextValueChanged=function(G){this.value=G.detail.value;var B;(B=this.onValueChanged)==null||B.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.w.handleUpdateTextInputFormFieldRendererCommand=function(G){(G=_.Q(G,dpP))&&this.data&&this.data.id===G.id&&(G.invalid!==void 0&&(this.invalid=G.invalid),G.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",G.invalidValueErrorMessage))};
_.w.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("value-changed",this.value))};
_.w.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.ZN.Object.defineProperties(k$.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var G;return!((G=this.data)==null||!G.isMultiline)}}});
k$.prototype.valueChangedForBinding=k$.prototype.valueChangedForBinding;k$.prototype.valueChanged=k$.prototype.valueChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],k$.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],k$.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],k$.prototype,"value",void 0);_.c([_.v(),_.I("design:type",String)],k$.prototype,"pattern",void 0);_.c([_.v(),_.I("design:type",String)],k$.prototype,"errorMessage",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],k$.prototype,"componentStyle",void 0);_.c([_.v(),_.I("design:type",Object)],k$.prototype,"hideCharCounter",void 0);
_.c([_.v(),_.I("design:type",Object)],k$.prototype,"hideLabel",void 0);_.c([_.v(),_.I("design:type",Object)],k$.prototype,"noLabelFloat",void 0);_.c([_.v(),_.I("design:type",Function)],k$.prototype,"onValueChanged",void 0);_.c([_.v(),_.I("design:type",Boolean)],k$.prototype,"isMultilineOverride",void 0);_.c([_.v(),_.I("design:type",Object)],k$.prototype,"autoValidate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],k$.prototype,"invalid",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],k$.prototype,"disabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],k$.prototype,"enableOverlayTheme",void 0);_.c([_.v({value:{REQUIRED_LABEL:_.G7("REQUIRED_LABEL",void 0,"Required")}}),_.I("design:type",Object)],k$.prototype,"strings",void 0);_.c([_.iA("#input"),_.I("design:type",Object)],k$.prototype,"input",void 0);
_.c([_.O("data","isMultilineOverride"),_.I("design:type",Object),_.I("design:paramtypes",[])],k$.prototype,"isMultiline",null);_.c([_.Ry("data.value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],k$.prototype,"valueChanged",null);_.c([_.Ga("value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],k$.prototype,"valueChangedForBinding",null);_.c([_.ay({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],k$);
_.d(k$,"yt-text-input-form-field-renderer",function(){if(Oys===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;kI7===void 0&&(kI7=document.createElement("template"));var D=kI7;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Oys=G}G=Oys;return G},{mode:2});var OE=function(){var G=_.p.apply(this,arguments)||this;G.data=void 0;G.selectionState="START_DATE";G.isStartDateInvalid=!1;G.isEndDateInvalid=!1;G.autoapply=!1;G.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 G};
_.r(OE,_.p);_.w=OE.prototype;_.w.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"}}}}};
_.w.focus=function(){this.startDateInput.focus()};
_.w.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:P_(this.data.selection.start),end:P_(this.data.selection.end)})};
_.w.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.w.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.BS(this.selectionState)}};
_.w.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.w.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.w.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.w.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,B=G.end;G=IYg({start:G.start,end:this.endDate||B},this.startDateInput.value||"");this.isStartDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection=this.endDate?{start:G,end:this.endDate}:G,this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.w.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,B=G.start;G=IYg({start:this.startDate||B,end:G.end},this.endDateInput.value||"");this.isEndDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection={start:this.startDate,end:G},this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.w.handleCalendarDateClicked=function(G){var B=this.selection&&Ykg(this.selection),F=this.selection&&A$L(this.selection);B&&!xP(G,B)&&this.selectionState==="END_DATE"?(this.selection={start:B,end:G},this.selectionState="START_DATE"):(F&&!xP(F,G)?this.selection={start:G,end:F}:this.selection=G,this.selectionState="END_DATE")};
_.w.handleCalendarDateMouseDown=function(G){this.selection&&!MSJ(this.selection)&&(this.dragPivot=sY(G,this.selection.start)?this.selection.end:sY(G,this.selection.end)?this.selection.start:G)};
_.w.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.w.handleCalendarDateMouseEnter=function(G){this.dragPivot&&(this.selection={start:function(B,F){return xP(B,F)?B:F}(this.dragPivot,G),
end:function(B,F){return xP(B,F)?F:B}(this.dragPivot,G)},this.dragPivot||(this.selectionState="START_DATE"))};
_.w.handleCalendarDateMouseLeave=function(){};
_.w.handleCalendarSubmitDateRange=function(){this.selection&&!MSJ(this.selection)&&_.T1(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.w.updateInvalidState=function(){var G=function(B,F){F?B.setAttribute("invalid",""):B.removeAttribute("invalid")};
G(this.startDateInput,this.isStartDateInvalid);G(this.endDateInput,this.isEndDateInvalid)};
_.w.updateDateStrings=function(){this.selection&&(MSJ(this.selection)?oXz(this.selection):(oXz(this.selection.start),oXz(this.selection.end)))};
_.w.updateCalendarSelection=function(G){this.calendar.updateSelection(Object.assign({},G,{selectionState:this.selectionState}))};
_.w.updateIsStartDateInvalidFromBinding=function(G){this.isStartDateInvalid=G.detail.value};
_.w.updateIsEndDateInvalidFromBinding=function(G){this.isEndDateInvalid=G.detail.value};
_.w.updateStartDateStringFromBinding=function(){};
_.w.updateEndDateStringFromBinding=function(){};
_.ZN.Object.defineProperties(OE.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:P_(this.data.dateRangeStart),end:P_(this.data.dateRangeEnd),selection:{start:P_(this.data.selection.start),end:P_(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Ykg(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&A$L(this.selection)}}});
OE.prototype.resetTextboxes=OE.prototype.resetTextboxes;OE.prototype.observeSelection=OE.prototype.observeSelection;OE.prototype.dataChanged=OE.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],OE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#calendar"),_.I("design:type",Object)],OE.prototype,"calendar",void 0);
_.c([_.iA("#start-date"),_.I("design:type",Object)],OE.prototype,"startDateInput",void 0);_.c([_.iA("#end-date"),_.I("design:type",Object)],OE.prototype,"endDateInput",void 0);_.c([_.v(),_.I("design:type",Object)],OE.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],OE.prototype,"selection",void 0);_.c([_.v(),_.I("design:type",String)],OE.prototype,"selectionState",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],OE.prototype,"calendarConfig",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],OE.prototype,"errorMessage",null);_.c([_.O("selection"),_.I("design:type",Object),_.I("design:paramtypes",[])],OE.prototype,"startDate",null);_.c([_.O("selection"),_.I("design:type",Object),_.I("design:paramtypes",[])],OE.prototype,"endDate",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OE.prototype,"dataChanged",null);
_.c([_.Ga("selection","selectionState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OE.prototype,"observeSelection",null);_.c([_.Ga("selectionState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OE.prototype,"resetTextboxes",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],OE);
_.d(OE,"ytd-date-period-picker-renderer",function(){if(rHT!==void 0)return rHT;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return rHT=G},{mode:1});var ev=function(){var G=_.p.apply(this,arguments)||this;var B={};G.actionMap=(B["ytd-date-period-picker-apply"]="handleDateRangeUpdated",B);return G};
_.r(ev,_.p);ev.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
ev.prototype.handleDateRangeUpdated=function(){};
_.c([_.v(),_.I("design:type",Object)],ev.prototype,"data",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ev.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ev.prototype,"rendererstamperBehavior",void 0);_.c([_.mC({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],ev);
_.d(ev,"ytd-report-history-section-header-renderer",function(){if(LIq!==void 0)return LIq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return LIq=G},{mode:1});var eKU;var $CT;var zKL;var $$=function(){return _.p.apply(this,arguments)||this};
_.r($$,_.p);_.ZN.Object.defineProperties($$.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?0:(B=G.icon)==null?0:B.iconType)?_.xT(this.data.icon.iconType):""}}});
_.c([_.v(),_.I("design:type",Object)],$$.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],$$.prototype,"icon",null);_.c([_.mC({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],$$);
_.d($$,"ytd-report-history-table-text-cell-renderer",function(){if(zKL!==void 0)return zKL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return zKL=G},{mode:1});var zq=function(){return _.p.apply(this,arguments)||this};
_.r(zq,_.p);zq.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zq.prototype,"data",void 0);_.c([_.mC({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],zq);
_.d(zq,"ytd-report-history-table-reason-cell-renderer",function(){if($CT!==void 0)return $CT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $CT=G},{mode:1});var bk=function(){return _.p.apply(this,arguments)||this};
_.r(bk,_.p);bk.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"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bk.prototype,"rendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bk.prototype,"data",void 0);_.c([_.mC({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],bk);
_.d(bk,"ytd-report-history-table-cell-renderer",function(){if(eKU!==void 0)return eKU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return eKU=G},{mode:1});var bys;var Vs=function(){var G=_.p.apply(this,arguments)||this;G.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 G};
_.r(Vs,_.p);Vs.prototype.onDataChanged=function(){var G;if((G=this.data)==null?0:G.style)this.componentStyle=this.getStyleName(this.data.style)};
Vs.prototype.getCellForColumn=function(G){return this.cells.find(function(B){var F;return((F=_.Q(B==null?void 0:B.cell,LiN)||_.Q(B==null?void 0:B.cell,jcT))==null?void 0:F.columnId)===G.type})};
Vs.prototype.getClassForColumn=function(G){switch(G){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Vs.prototype.getStyleName=function(G){switch(G){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.ZN.Object.defineProperties(Vs.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.cells)||[]).map(function(B){return _.Q(B,QcL)})}}});
Vs.prototype.onDataChanged=Vs.prototype.onDataChanged;_.c([_.v(),_.I("design:type",Object)],Vs.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Array)],Vs.prototype,"columnRenderData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Vs.prototype,"componentStyle",void 0);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],Vs.prototype,"cells",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Vs.prototype,"onDataChanged",null);_.c([_.mC({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Vs);
_.d(Vs,"ytd-report-history-table-row-renderer",function(){if(bys!==void 0)return bys;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return bys=G},{mode:1});var V9T;var vOv;var fYz={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},tSM={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var vO=function(){return _.p.apply(this,arguments)||this};
_.r(vO,_.p);vO.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"}}}}}};
vO.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.ZN.Object.defineProperties(vO.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.columns)?xxo(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return SkQ(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var G=this.tableSpec,B=fYz;B=B===void 0?tSM:B;B=svM(G.columnDimensions,G.columnsToShow||[],B);G=0;B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,G+=F.minWidth+F.paddingLeft+F.paddingRight;return G}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.c([_.k(_.be),_.I("design:type",Object)],vO.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vO.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],vO.prototype,"tableSpec",null);_.c([_.O("tableSpec"),_.I("design:type",Array),_.I("design:paramtypes",[])],vO.prototype,"columnRenderData",null);
_.c([_.O("tableSpec"),_.I("design:type",Number),_.I("design:paramtypes",[])],vO.prototype,"totalMinWidth",null);_.c([_.O("totalMinWidth"),_.I("design:type",String),_.I("design:paramtypes",[])],vO.prototype,"tableWidthStyle",null);_.c([_.mC({is:"ytd-table-renderer",disableElementRegistration:!0})],vO);
_.d(vO,"ytd-table-renderer",function(){if(vOv!==void 0)return vOv;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vOv=G},{mode:1});var oR=function(){return _.p.apply(this,arguments)||this};
_.r(oR,_.p);oR.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}}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],oR.prototype,"data",void 0);_.c([_.mC({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],oR);
_.d(oR,"ytd-report-reason-history-modal-renderer",function(){if(V9T!==void 0)return V9T;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return V9T=G},{mode:1});var oOy;var M9L;var pq7;var Ms=function(){return _.p.apply(this,arguments)||this};
_.r(Ms,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ms.prototype,"data",void 0);_.c([_.mC({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ms);
_.d(Ms,"ytd-profile-column-stats-entry-renderer",function(){if(pq7!==void 0)return pq7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return pq7=G},{mode:1});var YiP;var pP=function(){return _.p.apply(this,arguments)||this};
_.r(pP,_.p);pP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],pP.prototype,"data",void 0);_.c([_.mC({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],pP);
_.d(pP,"ytd-profile-column-stats-renderer",function(){if(YiP!==void 0)return YiP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return YiP=G},{mode:1});var AHt;var Y$=function(){return _.p.apply(this,arguments)||this};
_.r(Y$,_.p);_.ZN.Object.defineProperties(Y$.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var B,F;G=(B=this.data)==null?void 0:(F=B.thumbnail)==null?void 0:F.thumbnails;var D;return G&&((D=G[0])==null?void 0:D.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var B,F;G=(B=this.data)==null?void 0:(F=B.thumbnail)==null?void 0:F.thumbnails;var D;return G&&((D=G[0])==null?void 0:D.height)||80}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Y$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Y$.prototype,"componentStyle",void 0);_.c([_.O("data.useThumbnailSize"),_.I("design:type",Object),_.I("design:paramtypes",[])],Y$.prototype,"thumbnailWidth",null);
_.c([_.O("data.useThumbnailSize"),_.I("design:type",Object),_.I("design:paramtypes",[])],Y$.prototype,"thumbnailHeight",null);_.c([_.mC({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Y$);
_.d(Y$,"ytd-profile-column-user-info-renderer",function(){if(AHt!==void 0)return AHt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return AHt=G},{mode:1});var Aq=function(){return _.p.apply(this,arguments)||this};
_.r(Aq,_.p);Aq.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]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Aq.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Aq.prototype,"componentStyle",void 0);_.c([_.mC({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Aq);
_.d(Aq,"ytd-profile-column-renderer",function(){if(M9L!==void 0)return M9L;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return M9L=G},{mode:1});var dp=function(){var G=_.p.apply(this,arguments)||this;G.componentStyle="NON_CENTERED_PROFILE";return G};
_.r(dp,_.p);dp.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
dp.prototype.getIcon=function(G){return G?"settings:"+G.toLowerCase():null};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dp.prototype,"data",void 0);_.c([_.mC({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],dp);
_.d(dp,"ytd-page-introduction-renderer",function(){if(oOy!==void 0)return oOy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return oOy=G},{mode:1});var dCq;var Jq=function(){return _.p.apply(this,arguments)||this};
_.r(Jq,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Jq.prototype,"data",void 0);_.c([_.mC({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Jq);
_.d(Jq,"ytd-report-description-renderer",function(){if(dCq!==void 0)return dCq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dCq=G},{mode:1});var JHw;var cHP;var cO=function(){return _.p.apply(this,arguments)||this};
_.r(cO,_.p);cO.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cO.prototype,"data",void 0);_.c([_.mC({is:"ytd-video-report-renderer",disableElementRegistration:!0})],cO);
_.d(cO,"ytd-video-report-renderer",function(){if(cHP!==void 0)return cHP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cHP=G},{mode:1});var Tjq;_.UR("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.UR("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Tq=function(){return _.p.apply(this,arguments)||this};
_.r(Tq,_.p);Tq.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
Tq.prototype.computeMessageStyle=function(G){return G};
Tq.prototype.computeButtonOverride=function(G){var B;if((G==null?0:(B=G.style)==null?0:B.value)&&G.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Tq.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Tq.prototype,"shelf",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Tq.prototype,"panel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.I("design:type",Boolean)],Tq.prototype,"componentStyle",void 0);_.c([_.v({computed:"computeButtonOverride(data)"}),_.I("design:type",Object)],Tq.prototype,"buttonOverride",void 0);_.c([_.mC({is:"ytd-message-renderer",disableElementRegistration:!0})],Tq);
_.d(Tq,"ytd-message-renderer",function(){if(Tjq!==void 0)return Tjq;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tjq=G},{mode:1});var IR=function(){return _.p.apply(this,arguments)||this};
_.r(IR,_.p);IR.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"}}}};
IR.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
IR.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.ZN.Object.defineProperties(IR.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!(((G=this.data)==null?0:G.header)&&((B=this.data)==null?0:B.table))}}});
IR.prototype.onRequestError=IR.prototype.onRequestError;_.c([_.k(_.be),_.I("design:type",Object)],IR.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IR.prototype,"data",void 0);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],IR.prototype,"isUnifiedReportHistory",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IR.prototype,"onRequestError",null);_.c([_.mC({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],IR);
_.d(IR,"ytd-report-history-section-renderer",function(){if(JHw!==void 0)return JHw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JHw=G},{mode:1});var IQq;var fP=function(){var G=_.p.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.r(fP,_.p);fP.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],fP.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],fP.prototype,"answerExpanded",void 0);_.c([_.mC({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],fP);
_.d(fP,"ytd-handles-claiming-faq-renderer",function(){if(IQq!==void 0)return IQq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return IQq=G},{mode:1});var fQa;var t9a=function(){return _.p.apply(this,arguments)||this};
_.r(t9a,_.p);_.c([_.v(),_.I("design:type",Object)],t9a.prototype,"data",void 0);_.c([_.mC({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],t9a);
_.d(t9a,"ytd-handles-claiming-faq-section-renderer",function(){if(fQa!==void 0)return fQa;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return fQa=G},{mode:1});var Zyt;var tq=function(){var G=_.p.apply(this,arguments)||this;G.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";G.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";G.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";G.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";G.leftSquiggly=G.leftSquigglyLight;G.rightSquiggly=G.rightSquigglyLight;
G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return G};
_.r(tq,_.p);_.w=tq.prototype;_.w.updateLeftSquigglyStyle=function(){_.Ss(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.w.updateRightSquigglyStyle=function(){_.Ss(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.w.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),G?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
tq.prototype.updateRightSquigglyStyle=tq.prototype.updateRightSquigglyStyle;tq.prototype.updateLeftSquigglyStyle=tq.prototype.updateLeftSquigglyStyle;_.c([_.v(),_.I("design:type",Object)],tq.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],tq.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",String)],tq.prototype,"leftSquiggly",void 0);_.c([_.v(),_.I("design:type",String)],tq.prototype,"rightSquiggly",void 0);
_.c([_.Ga("leftSquiggly"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tq.prototype,"updateLeftSquigglyStyle",null);_.c([_.Ga("rightSquiggly"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tq.prototype,"updateRightSquigglyStyle",null);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],tq.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tq.prototype,"actionButtonOverride",void 0);_.c([_.mC({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],tq);
_.d(tq,"ytd-handles-claiming-header-renderer",function(){if(Zyt!==void 0)return Zyt;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Zyt=G},{mode:1});var gOq;var Z0=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";G.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";G.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";G.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
G.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";G.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";G.image0SquigglyBackground=G.image0LightSquigglyBackground;G.image1SquigglyBackground=G.image1LightSquigglyBackground;G.image3SquigglyBackground=G.image3LightSquigglyBackground;return G};
_.r(Z0,_.p);_.w=Z0.prototype;_.w.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.w.onDataChanged=function(){this.updateTitleAndImages()};
_.w.onThemeChanged=function(){this.updateTitleAndImages()};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.w.updateImage0SquigglyBackground=function(){_.Ss(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.w.updateImage1SquigglyBackground=function(){_.Ss(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.w.updateImage3SquigglyBackground=function(){_.Ss(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.w.updateTitleAndImages=function(){var G,B;((G=this.data)==null?void 0:(B=G.titleImages)==null?void 0:B.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
Z0.prototype.updateImage3SquigglyBackground=Z0.prototype.updateImage3SquigglyBackground;Z0.prototype.updateImage1SquigglyBackground=Z0.prototype.updateImage1SquigglyBackground;Z0.prototype.updateImage0SquigglyBackground=Z0.prototype.updateImage0SquigglyBackground;Z0.prototype.onThemeChanged=Z0.prototype.onThemeChanged;Z0.prototype.onDataChanged=Z0.prototype.onDataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Z0.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Z0.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"title0",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"title1",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"title2",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"title3",void 0);
_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"title4",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"image0",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"image1",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"image2",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"image3",void 0);_.c([_.v(),_.I("design:type",Object)],Z0.prototype,"image4",void 0);_.c([_.v(),_.I("design:type",String)],Z0.prototype,"image0SquigglyBackground",void 0);
_.c([_.v(),_.I("design:type",String)],Z0.prototype,"image1SquigglyBackground",void 0);_.c([_.v(),_.I("design:type",String)],Z0.prototype,"image3SquigglyBackground",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z0.prototype,"onDataChanged",null);_.c([_.Ga("isDarkTheme"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z0.prototype,"onThemeChanged",null);
_.c([_.Ga("image0SquigglyBackground"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z0.prototype,"updateImage0SquigglyBackground",null);_.c([_.Ga("image1SquigglyBackground"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z0.prototype,"updateImage1SquigglyBackground",null);
_.c([_.Ga("image3SquigglyBackground"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z0.prototype,"updateImage3SquigglyBackground",null);_.c([_.mC({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Z0);
_.d(Z0,"ytd-handles-claiming-title-images-section-renderer",function(){if(gOq!==void 0)return gOq;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return gOq=G},{mode:1});var Sia;var gp=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(gp,_.p);gp.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
gp.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
gp.prototype.onCopyButtonClick=function(){var G=this,B,F,D;return _.n(function(u){return(B=G.data)!=null&&B.primaryChannelUrl?u.yield(navigator.clipboard.writeText(((F=G.data)==null?0:F.encodedChannelUrl)?G.data.encodedChannelUrl:"https://"+_.zx((D=G.data)==null?void 0:D.primaryChannelUrl)),0):u.jumpTo(0)})};
_.c([_.v(),_.I("design:type",Object)],gp.prototype,"data",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],gp.prototype,"ytComponentBehavior",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],gp.prototype,"isDarkTheme",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],gp.prototype,"ytActionHandlerBehavior",void 0);_.c([_.mC({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],gp);
_.d(gp,"ytd-handles-claiming-update-social-renderer",function(){if(Sia!==void 0)return Sia;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Sia=G},{mode:1});var sWL;var Sv=function(){var G=_.p.apply(this,arguments)||this;G.JSC$16501_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";G.JSC$16501_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.squigglyBackground=G.JSC$16501_squigglyBackgroundLight;return G};
_.r(Sv,_.p);Sv.prototype.updateSquigglyBackgroundStyle=function(){_.Ss(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Sv.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.squigglyBackground=G?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight};
Sv.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight)};
Sv.prototype.updateSquigglyBackgroundStyle=Sv.prototype.updateSquigglyBackgroundStyle;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Sv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Sv.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Sv.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",String)],Sv.prototype,"squigglyBackground",void 0);_.c([_.Ga("squigglyBackground"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Sv.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.mC({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Sv);
_.d(Sv,"ytd-handles-claiming-vanity-info-renderer",function(){if(sWL!==void 0)return sWL;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return sWL=G},{mode:1});var xCy;var sE=function(){var G=_.p.apply(this,arguments)||this;G.JSC$16504_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";G.JSC$16504_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";G.squigglyBackground=G.JSC$16504_squigglyBackgroundLight;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(sE,_.p);_.w=sE.prototype;_.w.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16504_squigglyBackgroundDark:this.JSC$16504_squigglyBackgroundLight)};
_.w.updateSquigglyBackgroundStyle=function(){_.Ss(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.w.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.w.detached=function(){this.stop()};
_.w.stop=function(){this.playerElement.stop()};
_.w.setupVideoPlayer=function(){var G=this,B,F;return _.n(function(D){B=G.data.videoId;F="http://i1.ytimg.com/vi/"+B+"/maxresdefault.jpg";G.playerElement.loadVideoWithPlayerVars({video_id:B,iurlhq:F});_.di(D)})};
sE.prototype.onDataChanged=sE.prototype.onDataChanged;sE.prototype.updateSquigglyBackgroundStyle=sE.prototype.updateSquigglyBackgroundStyle;_.c([_.v({value:!1}),_.I("design:type",Boolean)],sE.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",String)],sE.prototype,"squigglyBackground",void 0);_.c([_.iA("#player"),_.I("design:type",Object)],sE.prototype,"playerElement",void 0);_.c([_.v(),_.I("design:type",Object)],sE.prototype,"data",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],sE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Ga("squigglyBackground"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sE.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sE.prototype,"onDataChanged",null);
_.c([_.mC({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],sE);
_.d(sE,"ytd-handles-claiming-video-item-renderer",function(){if(xCy!==void 0)return xCy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return xCy=G},{mode:1});var PFa;var PO=function(){var G=_.DO.apply(this,arguments)||this;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.containerWidthDiff=0;G.boundPrevClick=function(){G.set("offset",x$(G,G.offset-(G.scrollDistance||320)))};
G.boundNextClick=function(){G.set("offset",x$(G,G.offset+(G.scrollDistance||320)))};
G.boundScrollContainerMouseDown=function(B){G.dragMouseStart=B.clientX;G.dragOffsetStart=G.offset;G.dragging=!0};
G.boundScrollContainerDrag=function(B){G.dragging&&G.set("offset",x$(G,G.dragOffsetStart-(B.clientX-G.dragMouseStart)))};
G.boundMouseUp=function(){G.onMouseUp()};
G.boundWheelScroll=function(B){var F=0;Math.abs(B.deltaX)>=Math.abs(B.deltaY)?F=B.deltaX:B.shiftKey&&(F=B.deltaY);F!==0&&(G.offset+=F,B.stopPropagation(),B.preventDefault())};
G.boundChipCloudChipScrollIntoView=function(B){(B=B.detail)&&G.scrollChipIntoView(B)};
return G};
_.r(PO,_.DO);PO.prototype.attached=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container");G.addEventListener("wheel",this.boundWheelScroll);G.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.style.touchAction="pan-y";G.addEventListener("pointerdown",this.boundScrollContainerMouseDown);G.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
PO.prototype.detached=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.boundWheelScroll);G.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);G.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
PO.prototype.reset=function(){this.set("offset",0);_.ft(this,this.setContainerWidthDiff);_.ft(this,this.setButtonsState)};
var x$=function(G,B){return Math.min(Math.max(B,0),G.containerWidthDiff)};
_.w=PO.prototype;_.w.onMouseUp=function(){this.dragging=!1};
_.w.transformContainer=function(){this.offset=x$(this,this.offset);var G=_.v5("HTML_DIR")==="rtl"?"":"-";_.IF(this.hostElement).querySelector("#chips").style.transform="translateX("+G+this.offset+"px)";_.ft(this,this.setButtonsState)};
_.w.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=x$(this,this.offset));this.atStart=this.offset<=0};
_.w.setContainerWidthDiff=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container"),B=_.IF(this.hostElement).querySelector("#chips");G&&B&&(this.containerWidthDiff=B.clientWidth-G.clientWidth)};
_.w.scrollChipIntoView=function(G){var B=_.IF(this.hostElement).querySelector("#scroll-container");if(B){var F=this.atStart?0:106,D=this.atEnd?0:106;G.offsetLeft<this.offset+F?this.offset=x$(this,G.offsetLeft-F):G.offsetLeft+G.clientWidth>this.offset+B.clientWidth-D&&(this.offset=x$(this,G.offsetLeft+G.clientWidth+D-B.clientWidth))}};
PO.prototype.transformContainer=PO.prototype.transformContainer;_.c([_.v({value:0}),_.I("design:type",Number)],PO.prototype,"offset",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.I("design:type",Boolean)],PO.prototype,"atStart",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],PO.prototype,"atEnd",void 0);_.c([_.v(),_.I("design:type",Number)],PO.prototype,"scrollDistance",void 0);
_.c([_.Ga("offset"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],PO.prototype,"transformContainer",null);_.c([_.uA()],PO);var G5a;var BxN;_.GK=_.Y(function(G){var B=G.data;G=_.C(_.qg(!1,void 0,"bob3J"));var F=G.next().value,D=G.next().value;G=function(R){if((B==null?void 0:B().state)!==1){var N,y;(y=(N=B()).onTap)==null||y.call(N,R)}};
var u={};return _.l("chip-shape",{class:"ytChipShapeHost","on:focusin":_.gJ(function(){var R=_.te().resolve(_.fH(_.Mu));if(R){D(R.isKeyBoardInUse());var N,y;(y=(N=B()).onFocusIn)==null||y.call(N)}return!1}),
"on:focusout":_.gJ(function(){D(!1);return!1})},_.l(i_L,{shouldWrapInButton:function(){return B().type!==2},
selected:function(){return B().state===0},
onClick:G,isDropdown:function(){return B().type===1},
accessibilityLabel:function(){return B().type===1?void 0:B().accessibilityLabel}},_.l("div",{class:_.tx("ytChipShapeChip",function(){a:switch(B==null?void 0:B().state){case 0:var R="ytChipShapeActive";
break a;case 1:R="ytChipShapeDisabled";break a;default:R="ytChipShapeInactive"}return R},function(){var R=B().type===1||B().type===2,N=B();
return R||N!=null&&N.startIcon?N==null||!N.startIcon||N!=null&&N.text?R?"ytChipShapeEndIconPadding":(N==null?0:N.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var R=B();
if((R==null?void 0:R.style)===0&&(R==null?void 0:R.state)===0){var N;R=((N=_.te().resolve(_.fH(_.Rx)))==null?0:N())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else R="";return R},(u.ytChipShapeFocused=function(){var R;
return F()&&((R=B())==null?void 0:R.state)!==1},u))},_.l(_.E,{cond:function(){return B().startIcon},
then:function(){return _.l(_.Pr,{icon:function(){var R;return(R=B())==null?void 0:R.startIcon},
className:_.tx(function(){return B().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var R=B(),N,y=(N=_.te().resolve(_.fH(_.Rx)))==null?void 0:N();
return(R==null?void 0:R.style)===0&&(R==null?void 0:R.state)===0&&y?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return B().text},_.l(Fsa,{shape:B,
onClick:G}),_.l(_.YR,{model:{borderRadius:"8px"}}))))},"Rc");
_.GK.idomCompat=!0;var i_L=_.Y(function(G){var B=_.gJ(function(F){G.onClick(F);return!1});
return _.l(_.E,{cond:G.shouldWrapInButton,then:function(){return _.l("button",{class:"ytChipShapeButtonReset","on:click":B,role:function(){return G.isDropdown()?"combobox":"tab"},
"aria-label":G.accessibilityLabel,"aria-selected":G.selected},G.children)},
else:function(){return G.children}})},"Sc"),Fsa=_.Y(function(G){var B=G.shape;
var F=G.onClick;var D=_.gJ(function(u){F(u);return!1});
return _.l(_.LH,null,_.l(_.Xm,{when:function(){return B().type===1}},function(){return _.l(_.Pr,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.l(_.Xm,{when:function(){return B().type===2}},function(){return _.l("button",{class:"ytChipShapeButtonReset",
"on:click":D},_.l(_.Pr,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.l(_.Xm,{when:function(){return B().type===0}},function(){return _.l(_.GJ,null)}))},"Tc");_.YN(_.GK,"chip-shape",{props:{data:_.Hd}});var Bx=function(){var G=_.p.apply(this,arguments)||this;G.disableDeselectEvent=!1;G.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return G};
_.r(Bx,_.p);_.w=Bx.prototype;_.w.onSelectChipCommand=function(G){if(!this.selected&&this.data&&(G=_.Q(G,$py),G.targetId&&G.targetId===this.data.targetId))this.onTap()};
_.w.onFilterChipTransformCommand=function(G){if(!this.selected&&this.data){var B;(G=(B=_.Q(G,Q6t))==null?void 0:B.chipUniqueId)&&G===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.w.dataChanged=function(){var G=this;_.ft(this,function(){G.data&&G.data.isSelected&&!G.selected&&(G.scrollChipIntoView(),G.onTap())})};
_.w.computeChipStyle=function(G){return G!=null?G:"STYLE_DEFAULT"};
_.w.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.T1(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.T1(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.w.onFocus=function(){var G=_.te().resolve(_.fH(_.Mu));G&&G.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.w.scrollChipIntoView=function(){_.cZ(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.ZN.Object.defineProperties(Bx.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return utM({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Bx.prototype.onFocus=Bx.prototype.onFocus;Bx.prototype.onTap=Bx.prototype.onTap;Bx.prototype.dataChanged=Bx.prototype.dataChanged;_.c([_.k(_.GG),_.I("design:type",Object)],Bx.prototype,"ironButtonState",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Bx.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.sV),_.I("design:type",Object)],Bx.prototype,"ironA11yKeysBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Bx.prototype,"disableDeselectEvent",void 0);_.c([_.v(),_.I("design:type",Object)],Bx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.icon"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Bx.prototype,"hasIcon",null);
_.c([_.v({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.I("design:type",String)],Bx.prototype,"chipStyle",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Bx.prototype,"selected",void 0);_.c([_.O("data","selected"),_.I("design:type",Object),_.I("design:paramtypes",[])],Bx.prototype,"chipShapeData",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bx.prototype,"dataChanged",null);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bx.prototype,"onTap",null);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bx.prototype,"onFocus",null);_.c([_.ay({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Bx);
_.d(Bx,"yt-chip-cloud-chip-renderer",function(){if(BxN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;G5a===void 0&&(G5a=document.createElement("template"));var D=G5a;F.call(B,D.content.cloneNode(!0),G.content.firstChild);BxN=G}G=BxN;return G},{mode:2});var CWg=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.DJG=_.Y(function(G){function B(){if(CWg.has(G.data().displayType)){var q=!D(),h;if((h=G.disableDeselection)==null||!h.call(G)||q){G.data().selected=q;h=Object.assign({},N(),{selected:q});y(h);var K;(K=G.callback)==null||K.call(G,h,q)}}}
var F=_.W5("chip-view-model",function(q){var h=G.data().tooltipTargetId,K=_.Pv();h&&_.xl(K,h,q);return function(){sc(K,q)}}),D=function(){var q,h;
return!!(((q=G.selected)==null?void 0:q.call(G))!==void 0?(h=G.selected)==null?0:h.call(G):N().selected)},u=_.C(_.d3(G.data)),R=u.next().value;
u=u.next().value;var N=R,y=u,U=_.iR(wF6,function(){return G.data().chipEntityKey||""});
return _.l("chip-view-model",{class:"ytChipViewModelHost",el:F},_.l(_.GK,{data:function(){var q,h=Object.assign({},N(),{selected:D()}),K=U(),a=(q=G.disableDeselection)==null?void 0:q.call(G);a:switch(h.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":q=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":q=3;break a;default:q=0}return{text:(K==null?void 0:K.text)||h.text,state:h.disabled?1:h.selected?0:2,type:q,onTap:NVc(h,F,B,
a),accessibilityLabel:h.accessibilityLabel||h.text}}}))},"Uc");
_.DJG.idomCompat={callbacks:{callback:!0}};_.id=_.Y(function(G){G=_.AS(G,{nextButtonStyle:0});var B=G.data,F=G.callback,D=G.selectionBehavior,u=G.disableChipsScrollAnimation,R=G.nextButtonStyle,N=_.H5("div");G=_.C(_.qg(!0,void 0,"VwW6Jc"));var y=G.next().value,U=G.next().value;G=_.C(_.qg(!1,void 0,"OIoagd"));var q=G.next().value,h=G.next().value,K=!1,a=0,m=function(){switch(R()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.eR(function(){U(e());h(b())});
G=_.C(_.d3(function(){var yo={};return B().autoselectedChipIndex!=null?(yo[B().autoselectedChipIndex]=!0,yo):{}}));
var L=G.next().value,W=G.next().value,e=function(){var yo=N.value;return yo==null||yo.scrollLeft-1<=0},b=function(){var yo=N.value;
return yo==null?!1:yo.scrollLeft+1>=(yo==null?NaN:yo.scrollWidth)-(yo==null?NaN:yo.clientWidth)},M=function(){return B().isHorizontallyScrollable},t=function(yo){N.value!=null&&(_.v5("HTML_DIR")==="rtl"&&(yo=-yo),N.value.scrollBy({left:yo,
behavior:(u==null?0:u())?"instant":"smooth"}))},T=function(){t(-320)},A=function(){t(320)},Z=_.gJ(function(yo){K=!0;
a=yo.clientX}),P=_.gJ(function(yo){if(K){yo=yo.clientX;
var hg=yo-a;a=yo;var US;(US=N.value)==null||US.scrollBy({left:-hg})}}),RI=_.gJ(function(){var yo=e(),hg=b();
yo!==y()&&U(yo);hg!==q()&&h(hg)});
_.Iu("pointerup",function(){K&&(K=!1)});
return _.l("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.l(_.Zd,{contentId:function(){return B().contentId},
useModernStyle:!0},function(){var yo={},hg={};return _.l("div",null,_.l(_.E,{cond:function(){return B().title},
then:function(){return _.l("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.l("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return B().title}),_.l(_.uR,{data:function(){return B().overflowButton}},{buttonViewModel:_.cd}))}}),_.l("div",{class:_.tx("ytChipsShelfViewModelChipsShelfContent",m)},_.l(_.E,{cond:function(){return B().previousButton},
then:function(){var US={};return _.l("div",{class:_.tx("ytChipsShelfViewModelLeftArrowContainer",(US.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return y()},US))},_.l(_.uR,{data:function(){return B().previousButton}},{buttonViewModel:function(aI){return _.l(_.cd,{data:aI.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:T})}}))}}),_.l("div",{el:N,
"on:pointerdown":Z,"on:pointermove":P,"on:scroll":RI,class:_.tx("ytChipsShelfViewModelChipsScrollContainer",(yo.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=M,yo))},_.l("div",{class:_.tx("ytChipsShelfViewModelChipsContainer",(hg.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=M,hg.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,hg)),role:"tablist"},_.l(_.uR,{data:function(){return B().contents}},{chipViewModel:function(US,aI){return _.l("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.l(_.DJG,{data:US.data,
callback:function(v6,Jg){var c6=aI(),q8,n7=(q8=D==null?void 0:D())!=null?q8:0;n7===1||n7===2?(q8={},W((q8[c6]=Jg,q8))):n7===0&&(q8={},W(Object.assign({},L(),(q8[c6]=Jg,q8))));F==null||F(v6,Jg,c6)},
disableDeselection:function(){return(D==null?void 0:D())===1},
selected:function(){return!!L()[aI()]}}))}}))),_.l(_.E,{cond:function(){return B().nextButton},
then:function(){var US={};return _.l("div",{class:_.tx("ytChipsShelfViewModelRightArrowContainer",(US.ytChipsShelfViewModelRightArrowContainerIsHidden=q,US))},_.l(_.uR,{data:function(){return B().nextButton}},{buttonViewModel:function(aI){return _.l(_.cd,{data:aI.data,
className:"ytChipsShelfViewModelRightArrow",onClick:A})}}))}})))}))},"Wc");
_.id.idomCompat={callbacks:{callback:!0}};var uHU=_.Y(function(G){var B=G.data;var F=G.showChips;var D=G.isUpdateInProgress;var u=G.chipClickCallback;G=_.C(_.qg(!1,void 0,"uth3se"));var R=G.next().value,N=G.next().value;G=_.C(_.qg(!1,void 0,"qED0bb"));var y=G.next().value,U=G.next().value,q=function(){var K,a;return!((K=B())==null?0:K.responseMessage)&&!((a=B())==null||!a.chipsShelf)},h=void 0;
_.bC(function(){U(!0);var K=(F()||q())&&!D();requestAnimationFrame(function(){N(K)});
h&&clearTimeout(h);h=setTimeout(function(){U(!1)},300)},"OBQBmf");
_.VI(function(){h&&clearTimeout(h)});
G={};return _.l("ytd-ai-response-box-view-model",{class:_.tx("ytdAiResponseBoxViewModelHost")},_.l("div",{class:_.tx("ytdAiResponseBoxViewModelResponseMessageContainer",(G.ytdAiResponseBoxViewModelResponseMessageContainerHidden=R,G.ytdAiResponseBoxViewModelNotShown=function(){return R()&&!y()},G))},_.l(_.E,{cond:D,
then:function(){return _.l("div",null,_.l(_.Wd,{text:function(){return B().responsePendingMessage}}))},
else:function(){return _.l(_.GJ,null,_.l(_.E,{cond:function(){var K;return(K=B().responseMessageIcon)==null?void 0:K.iconType},
then:function(K){return _.l("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.l(_.Pr,{icon:K}))}}),_.l("div",null,_.l(_.Wd,{text:function(){return B().responseMessage}})))}})),_.l(_.uR,{data:function(){return B().chipsShelf}},{chipsShelfViewModel:function(K){K=K.data;
var a={};return _.l("div",{class:_.tx("ytdAiResponseBoxViewModelChipsShelfContainer",(a.ytdAiResponseBoxViewModelChipsShelfContainerShown=R,a.ytdAiResponseBoxViewModelNotShown=function(){return!R()&&!y()},a))},_.l(_.id,{data:K,
selectionBehavior:3,nextButtonStyle:1,callback:u}))}}))},"Yc");var R1s;R1s=Object.assign({},{continuation:aFL,download:nGt,canvas:wKo,reportChannelAbuse:rYw,ui:Nkg,share:Wk7,talkToRecs:OlU,watch:mJ,ypc:VKw,radioButtonGroup:uOM,collabInviteLink:FMS},KkT,{voiceSearch:lds,shorts:KM});_.wD8=ER(R1s);_.Cb7=hZ(_.wD8);_.Nxy=(0,_.Cb7)(_.wD8.talkToRecs,{talkToRecsStateSelector:function(G){return G}});var nUG=_.Y(function(G){var B=_.C((0,_.eP)(G.data)).next().value,F=_.mS(function(){var pQ;a:{if(pQ=B().onUpdateText)if(pQ=_.Q(pQ,_.mr)){var aq;pQ=(aq=_.Q(pQ,rsG))==null?void 0:aq.stepId;break a}pQ=void 0}return pQ},void 0,"olO2Rd");
G=_.C(_.qg(!1,void 0,"QCzl5d"));var D=G.next().value,u=G.next().value;G=_.C(_.qg(!1,void 0,"cQ7jrd"));var R=G.next().value,N=G.next().value;G=_.C(Rng());var y=G.next().value;G=G.next().value;var U=_.FT(_.Nxy.talkToRecsStateSelector),q=_.C(_.qg("",void 0,"ry2Eac")),h=q.next().value,K=q.next().value;q=_.C(_.qg(!1,void 0,"EwWXmb"));var a=q.next().value,m=q.next().value,L=_.C(_.qg(!1,void 0,"hORmtb"));q=L.next().value;var W=L.next().value;L=_.C(_.qg(!1,void 0,"fBzwv"));var e=L.next().value,b=L.next().value;
L=_.C(_.qg(!1,void 0,"BCC4Zc"));var M=L.next().value,t=L.next().value,T=_.W5("div");L=_.C(_.qg(void 0,void 0,"Xvb7gd"));var A=L.next().value,Z=L.next().value,P=void 0,RI=function(pQ){pQ!==D()&&(N(!0),u(pQ),P&&clearTimeout(P),P=setTimeout(function(){N(!1)},300))},yo=function(){if(A()!==void 0){var pQ=A();
RI(window.scrollY>pQ)}},hg=function(){var pQ;
Z((pQ=T.value)==null?void 0:pQ.offsetHeight);y("yt-feed-filter-chip-bar-resize")},US="";
_.bC(function(){US=h()},"UJeAbb");
_.$f(function(){var pQ,aq,Zq,eN=(Zq=(aq=yGI(F(),U()))!=null?aq:(pQ=B().textInputValue)==null?void 0:pQ.content)!=null?Zq:"";K(eN);v6(eN);m(!!B().welcomeBannerTitle&&!eN);hg();document.addEventListener("scroll",yo);_.VI(function(){document.removeEventListener("scroll",yo);P&&clearTimeout(P)})});
_.bC(function(){a();hg()},"AySmPb");
L=_.gJ(function(){b(!0);W(!0)});
var aI=_.gJ(function(){W(!1)});
_.bC(function(){var pQ=B();b(!1);t(!1);m(!!pQ.welcomeBannerTitle&&!US);var aq,Zq;((Zq=_.Q((aq=pQ.contents)==null?void 0:aq[0],ZMP))==null?0:Zq.responseMessageIcon)?(pQ=yyy.cachedUserQuery,K(pQ),v6(pQ)):yyy.cachedUserQuery=US},"XKdHMd");
var v6=function(pQ){var aq=B().onUpdateText;aq&&_.rJ(aq,{form:{userQuery:pQ}})},Jg=_.h5(function(pQ){v6(pQ)},150),c6=_.gJ(function(pQ){pQ=pQ.target.value;
K(pQ);Jg(pQ);return!1});
_.bC(function(){var pQ=yGI(F(),U());pQ!==void 0&&pQ!==US&&K(pQ)},"S2rE2d");
var q8=function(){t(!0);m(!1)},n7=function(){var pQ=_.Q(B().submitButton,_.LV);
if(pQ==null?0:pQ.trackingParams){var aq=_.yX(pQ.trackingParams),Zq=_.qW();Zq&&aq&&_.z7(Zq,aq,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(pQ=pQ==null?void 0:pQ.onTap)_.rJ(pQ),q8()},Ts=_.gJ(function(pQ){pQ.key==="Enter"&&(v6(pQ.target.value.trim()),n7());
return!1}),hT=function(){n7()},L7=_.gJ(function(){y("yt-feed-customization-scroll-up")}),K7={},kD={},Rz={},KQ={};
return _.l("ytd-feed-customization-form-view-model",{class:_.tx("ytdFeedCustomizationFormViewModelHost",(K7.ytdFeedCustomizationFormViewModelHostCollapsed=D,K7)),el:_.VX(G)},_.l("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:T},_.l("div",{class:_.tx("ytdFeedCustomizationFormViewModelExpandedContent",(kD.ytdFeedCustomizationFormViewModelNotShown=function(){return D()&&!R()},kD))},_.l(_.E,{cond:function(){return B().disclaimer},
then:function(){return _.l("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.l(_.Wd,{text:function(){return B().disclaimer}}))}}),_.l(_.E,{cond:a,
then:function(){return _.l("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.l("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.l(_.Wd,{text:function(){return B().welcomeBannerTitle}})),_.l("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.l(_.Wd,{text:function(){return B().welcomeBannerSubtitle}})))}}),_.l("div",{class:_.tx("ytdFeedCustomizationFormViewModelInputContainer",(Rz.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
q,Rz))},_.l("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var pQ;return(pQ=B().textInputPlaceholder)==null?void 0:pQ.content},
"prop:value":h,"on:focus":L,"on:blur":aI,"on:input":c6,"on:keyup":Ts,maxlength:300,disabled:M}),_.l(_.E,{cond:function(){return!!h()&&!M()},
then:function(){return _.l(_.uR,{data:function(){return B().clearButton}},{buttonViewModel:function(pQ){return _.l("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.l(_.cd,{data:pQ.data}))}})}}),_.l(_.E,{cond:function(){return M()},
then:function(){return _.l(_.uR,{data:function(){return B().inProgressButton}},{buttonViewModel:function(pQ){return _.l("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.l(_.cd,{data:pQ.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.l(_.uR,{data:function(){return B().submitButton}},{buttonViewModel:function(pQ){return _.l("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.l(_.cd,{data:pQ.data,
onClick:q8}))}})}}),_.l(_.uR,{data:function(){return B().menuButton}},{buttonViewModel:function(pQ){return _.l("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.l(_.cd,{data:pQ.data,
buttonOverrides:function(){return{disabled:M()}}}))}})),_.l(_.uR,{data:function(){return B().contents}},{aiResponseBoxViewModel:function(pQ){return _.l("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.l(uHU,{data:pQ.data,
showChips:e,isUpdateInProgress:M,chipClickCallback:hT}))}})),_.l("div",{class:_.tx("ytdFeedCustomizationFormViewModelCollapsedContent",(KQ.ytdFeedCustomizationFormViewModelNotShown=function(){return!D()&&!R()},KQ)),
"on:click":L7},_.l("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var pQ;return h()||((pQ=B().textInputPlaceholder)==null?void 0:pQ.content)}))))},"cd"),l2P=function(){this.cachedUserQuery=""};
l2P.prototype.reset=function(){this.cachedUserQuery=""};
var yyy=new l2P;_.YN(nUG,"ytd-feed-customization-form-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=_.C((0,_.eP)(G.data)).next().value;return _.l("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.l(_.uR,{data:function(){return B().contents}},{feedCustomizationFormViewModel:function(F){return _.l(nUG,{data:F.data})}}))},"dd"),"yt-chip-content-loader-view-model",{props:{data:_.Hd}});var UJ8=_.OY.persistentPanelVisibleSelector,Fd=function(){var G=_.p.apply(this,arguments)||this;G.isDarkTheme=!1;G.notSticky=!1;G.transparentBackground=!1;G.shouldHide=!1;G.disableSticky=!1;G.fluidWidth=!1;G.isClipList=!1;G.defaultChipIndex=0;G.hasSelectedChipContent=!1;G.isPlaylist=!1;G.playlistVotingAnimationEnabled=_.X("web_enable_voting_animation");G.toolbarHeight=0;G.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(Fd,_.p);_.w=Fd.prototype;
_.w.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.w.attached=function(){var G=this;document.addEventListener("scroll",_.x7(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.x7(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var B;this.toolbarHeight=((B=document.querySelector("ytd-masthead"))==null?void 0:B.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(F){G.handleIntersect(F)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.w.detached=function(){var G;(G=this.intersectionObserver)==null||G.disconnect();var B;(B=this.resizeObserver)==null||B.disconnect();document.removeEventListener("scroll",_.x7(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.x7(this,this.onFeedFilterChipBarResize))};
_.w.dataChanged=function(){var G=this,B,F,D=(B=this.data)==null?void 0:(F=B.contents)==null?void 0:F.findIndex(function(R){var N;return!((N=_.Q(R,pjs))==null?0:N.navigationEndpoint)});
D&&(this.defaultChipIndex=D);this.updating=!0;var u=this.findSelectedChipIndex();this.selectedIndex!==u&&(this.selectedIndex=-1);_.ft(this,function(){G.selectedIndex=u;G.updateSelectedChipContent(G.selectedIndex);G.updating=!1;G.ytScrollableChipCloudBehavior.reset()})};
_.w.findSelectedChipIndex=function(){var G;if((G=this.data)==null||!G.contents)return 0;G=this.data.contents;for(var B=0;B<G.length;B++){var F=void 0;if((F=_.Q(G[B],pjs))==null?0:F.isSelected)return B}return 0};
_.w.computeStyle=function(G){return G};
_.w.handleChipCloudChipSelectAction=function(G){G=this.JSC$16551_chipsSelector.indexOf(G);G>-1&&(this.JSC$16551_chipsSelector.selectIndex(G),this.updateSelectedChipContent(G))};
_.w.updateSelectedChipContent=function(G){var B;if((B=this.data)==null||!B.contents||G<0||G>=this.data.contents.length)this.selectedChipContent=void 0;else{var F;this.selectedChipContent=(F=_.Q(this.data.contents[G],pjs))==null?void 0:F.content}};
_.w.handleChipCloudChipDeselectAction=function(){if(_.X("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[this.defaultChipIndex],pjs))==null?void 0:F.navigationEndpoint;D&&_.T1(this.hostElement,"yt-browse-section-list-reload-endpoint",[D]);this.JSC$16551_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.w.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.w.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.w.updateDynamicHeight=function(){var G=this;this.hasSelectedChipContent&&!this.notSticky?_.ft(this,function(){var B=_.IF(G.hostElement).querySelector("#chips-wrapper");B&&_.Ss(G.hostElement,{"--ytd-chips-bar-dynamic-height":B.clientHeight+"px"})}):_.Ss(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.w.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.w.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.w.onResize=function(){this.updateLayout()};
_.w.updateLayout=function(){var G=this.ytScrollableChipCloudBehavior;_.ft(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.ft(G,G.setButtonsState)};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.w.handleIntersect=function(G){this.notSticky=this.isChannelPageGrid||this.disableSticky||G[0].intersectionRatio===1};
_.w.updateDimensions=function(){var G=this.ytRendererBehavior.parentComponent;if(G){var B,F=(B=G.headerElement)!=null?B:G;_.Ss(this.hostElement,{"--ytd-rich-grid-chips-bar-width":F.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.w.updateSelectedIndexFromBinding=function(G){this.selectedIndex=G.detail.value};
_.w.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var G;(G=this.sortFilterHeaderRendererElement)==null||G.setAttribute("is-playlist-page-with-filters","")}};
_.w.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(bls(!this.notSticky))};
_.ZN.Object.defineProperties(Fd.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 G,B,F=(G=this.data)==null?void 0:(B=G.contents)==null?void 0:B.find(function(D){return _.Q(D,cWP)});
return{sortFilterHeaderRenderer:_.Q(F,cWP)}}}});
Fd.prototype.dispatchChipBarIsSticky=Fd.prototype.dispatchChipBarIsSticky;Fd.prototype.isPlaylistPageChanged=Fd.prototype.isPlaylistPageChanged;Fd.prototype.updateChipBarWidthAndTop=Fd.prototype.updateChipBarWidthAndTop;Fd.prototype.onResize=Fd.prototype.onResize;Fd.prototype.onPersistentPanelVisibleChanged=Fd.prototype.onPersistentPanelVisibleChanged;Fd.prototype.onGuideIsExpandedChanged=Fd.prototype.onGuideIsExpandedChanged;Fd.prototype.updateDynamicHeight=Fd.prototype.updateDynamicHeight;
Fd.prototype.onSelectedChipContentChanged=Fd.prototype.onSelectedChipContentChanged;Fd.prototype.dataChanged=Fd.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Fd.prototype,"actionHandlerBehavior",void 0);
_.c([_.k(_.Rc),_.I("design:type",Object)],Fd.prototype,"ironResizableBehavior",void 0);_.c([_.k(),_.I("design:type",PO)],Fd.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Fd.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Fd.prototype,"data",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Fd.prototype,"selectedIndex",void 0);_.c([_.v({value:320}),_.I("design:type",Number)],Fd.prototype,"scrollDistance",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"notSticky",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"transparentBackground",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.I("design:type",String)],Fd.prototype,"componentStyle",void 0);
_.c([_.v({selector:_.W78}),_.I("design:type",Boolean)],Fd.prototype,"guideIsExpanded",void 0);_.c([_.v({selector:UJ8}),_.I("design:type",Boolean)],Fd.prototype,"persistentPanelVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"shouldHide",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"disableSticky",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"fluidWidth",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"isClipList",void 0);_.c([_.v(),_.I("design:type",Object)],Fd.prototype,"defaultChipIndex",void 0);_.c([_.v(),_.I("design:type",Object)],Fd.prototype,"selectedChipContent",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"hasSelectedChipContent",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Fd.prototype,"isPlaylist",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Fd.prototype,"playlistVotingAnimationEnabled",void 0);_.c([_.iA("#chips"),_.I("design:type",Object)],Fd.prototype,"JSC$16551_chipsSelector",void 0);_.c([_.iA("ytd-sort-filter-header-renderer"),_.I("design:type",HTMLElement)],Fd.prototype,"sortFilterHeaderRendererElement",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Fd.prototype,"updating",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"dataChanged",null);_.c([_.Ga("selectedChipContent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"onSelectedChipContentChanged",null);_.c([_.Ga("hasSelectedChipContent","notSticky"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"updateDynamicHeight",null);
_.c([_.Ga("guideIsExpanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"onGuideIsExpandedChanged",null);_.c([_.Ga("persistentPanelVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"onPersistentPanelVisibleChanged",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"onResize",null);
_.c([_.Ry("isChannelPageGrid","disableSticky","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"updateChipBarWidthAndTop",null);_.c([_.O("componentStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Fd.prototype,"isChannelPageGrid",null);_.c([_.O("componentStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Fd.prototype,"isHashtagLandingPage",null);
_.c([_.Ga("isPlaylistPage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"isPlaylistPageChanged",null);_.c([_.O("componentStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Fd.prototype,"isPlaylistPage",null);_.c([_.O("componentStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Fd.prototype,"isDisableDeselectEvent",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Fd.prototype,"sortFilterHeaderRendererData",null);_.c([_.v({reflectToAttribute:!0,selector:_.b3J}),_.I("design:type",String)],Fd.prototype,"frostedGlassMode",void 0);_.c([_.Ga("notSticky"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Fd.prototype,"dispatchChipBarIsSticky",null);_.c([_.mC({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Fd);
_.d(Fd,"ytd-feed-filter-chip-bar-renderer",function(){if(PFa!==void 0)return PFa;var G=document.createElement("template");_.H(G,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return PFa=G},{mode:1});var qQP;var EUt=_.Y(function(G){var B=G.data;var F=G.buttonIndex;var D=G.selectedIndex;var u=G.onSelect;var R=function(){return F()===D()},N=function(){var y,U;
return(U=(y=B().text)==null?void 0:y.content)!=null?U:""};
G=_.qj();return _.l("yt-toggleable-image-button-view-model",{class:function(){var y={};y=(y.toggleableImageButtonViewModelHost=!0,y[""]=!0,y.toggleableImageButtonViewModelSemiTransparent=D()!==-1&&!R(),y);return _.UY(y)},
tabindex:0,"aria-label":N,"aria-pressed":R,role:"button","on:keydown":G,"on:click":_.gJ(function(){u(B().onSubmitCommand);return!1})},_.l(_.E,{cond:function(){return B().logo},
then:function(y){return _.l(_.vr,{data:y,className:function(){var U={};U=(U.toggleableImageButtonViewModelImage=!0,U.toggleableImageButtonViewModelCircularRadius=!(!B().backgroundColor||!B().backgroundColorDarkMode),U.toggleableImageButtonViewModelGradientRing=!!(R()&&B().backgroundColor&&B().backgroundColorDarkMode),U);return _.UY(U)},
alt:N,useWidth:!1,style:function(){if(R()&&B().backgroundColor&&B().backgroundColorDarkMode){var U=aF(Number(B().backgroundColorDarkMode),"1");var q=aF(Number(B().backgroundColor),"1");U="background: linear-gradient(180deg,"+U+","+q+") border-box;"}else U="";return U}})}}),_.l(_.YR,{model:{borderRadius:"16px"}}),_.l("p",{class:function(){var y={};
y=(y.toggleableImageButtonViewModelLabel=!0,y.toggleableImageButtonViewModelBoldText=R(),y);return _.UY(y)}},_.l(_.Wd,{text:function(){return B().text}})))},"ed");
EUt.idomCompat=!0;var KsL=_.Y(function(G){var B=G.data;G=_.C(_.qg({index:-1,command:{}},void 0,"GM3umb"));var F=G.next().value,D=G.next().value;return _.l("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.l("div",{class:"nudgeFormViewModelFormOptions"},_.l(_.uR,{data:function(){return B().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(u,R){return _.l(EUt,{data:u.data,buttonIndex:R,selectedIndex:function(){return F().index},
onSelect:function(N){D({index:R(),command:N})}})}})),_.l(_.Wd,{text:function(){return B().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.l("div",{class:"nudgeFormViewModelSubmit"},_.l(_.uR,{data:function(){return B().submitButton}},{buttonViewModel:function(u){return _.l(h1y,{data:u.data,
isDisabled:function(){return F().index===-1},
onClick:function(){_.rJ(F().command)}})}})))},"fd");
KsL.idomCompat=!0;var h1y=_.Y(function(G){var B=_.mS(function(){return Object.assign({},G.data(),{state:G.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.l(_.cd,{data:B,onClick:G.onClick})},"gd");_.YN(KsL,"yt-nudge-form-view-model",{props:{data:_.Hd}});var DF=function(){var G=_.p.apply(this,arguments)||this;G.roundedContainer=!0;G.buttonUpdate=_.X("web_modern_buttons");G.isDarkMode=!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.r(DF,_.p);_.w=DF.prototype;_.w.computeNudgeStyle=function(G){return G?"modernized-nudge":""};
_.w.handleDarkModeToggledAction=function(G){this.isDarkMode=G};
_.w.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.w.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"}}}};
_.w.computeIsHorizontalButtons=function(G){return G?!!G.applyModernizedStyle&&!!G.enableHorizontalButtons&&!!G.secondaryButton:!1};
_.ZN.Object.defineProperties(DF.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.data)==null?void 0:G.backgroundStyle)!=null?B:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.data)==null?void 0:G.contentsLocation)!=null?B:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.lightIconImage)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],DF.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],DF.prototype,"actionHandlerBehavior",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("isHideEnclosingAction"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],DF.prototype,"isHidden",null);_.c([_.v(),_.I("design:type",Object)],DF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],DF.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],DF.prototype,"buttonUpdate",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.I("design:type",String)],DF.prototype,"nudgeStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.trimStyle"),_.I("design:type",String),_.I("design:paramtypes",[])],DF.prototype,"trimStyle",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.backgroundStyle"),_.I("design:type",String),_.I("design:paramtypes",[])],DF.prototype,"backgroundStyle",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.contentsLocation"),_.I("design:type",String),_.I("design:paramtypes",[])],DF.prototype,"contentsLocation",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.disableDropShadow"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],DF.prototype,"noShadow",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.lightIconImage"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],DF.prototype,"noIcon",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.I("design:type",Boolean)],DF.prototype,"isHorizontalButtons",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Object)],DF.prototype,"isDarkMode",void 0);_.c([_.mC({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],DF);
_.d(DF,"ytd-feed-nudge-renderer",function(){if(qQP!==void 0)return qQP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qQP=G},{mode:2});var a2v;var mJL;var ud=function(){var G=_.p.apply(this,arguments)||this;G.collapsed=!1;G.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return G};
_.r(ud,_.p);ud.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"}}}};
ud.prototype.handleRatingSelect=function(){var G;((G=this.data)==null?0:G.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
ud.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ud.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ud.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aJ),_.I("design:type",Object)],ud.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ud.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ud.prototype,"collapsed",void 0);_.c([_.mC({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],ud);
_.d(ud,"ytd-slimline-survey-renderer",function(){if(mJL!==void 0)return mJL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return mJL=G},{mode:1});var XD8;var Rr=function(){return _.p.apply(this,arguments)||this};
_.r(Rr,_.p);Rr.prototype.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
Rr.prototype.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G&&(G==null?0:G.secondaryTitleColor)&&this.maybeGetBackgroundColor(G)?(this.hostElement.style.backgroundColor=_.hV(this.maybeGetBackgroundColor(G)),this.hostElement.style.color=_.hV(G.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Rr.prototype.colorPaletteChanged=Rr.prototype.colorPaletteChanged;_.c([_.k(_.hf),_.I("design:type",Object)],Rr.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Rr.prototype,"data",void 0);_.c([_.v({selector:function(G){return G.ui.darkModeIsEnabled}}),
_.I("design:type",Boolean)],Rr.prototype,"isDarkMode",void 0);_.c([_.v(),_.I("design:type",Object)],Rr.prototype,"lightColorPalette",void 0);_.c([_.v(),_.I("design:type",Object)],Rr.prototype,"darkColorPalette",void 0);_.c([_.Ga("darkColorPalette","lightColorPalette","data","isDarkMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Rr.prototype,"colorPaletteChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Rr);
_.d(Rr,"ytd-endorsement-header-renderer",function(){if(XD8!==void 0)return XD8;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return XD8=G},{mode:1});_.YN(_.KU,"yt-decorated-avatar-view-model",{props:{data:_.Hd,className:_.Hd}});_.w1=new _.oV("VIEW_TRANSITION_MANAGER_TOKEN");var Cl=function(){var G=_.p.apply(this,arguments)||this;G.fullHeight=_.X("web_rich_grid_media_full_height");G.showChannelAvatar=!0;G.hasPlaylistThumbnail=!1;G.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};G.registerThumbnailForPageTransition=function(){_.X("web_thumbnail_to_watch_transition")&&_.Qw8(_.te().resolve(_.w1),G.thumbnail)};
return G};
_.r(Cl,_.p);_.w=Cl.prototype;
_.w.configureRendererStamper=function(){return{lazyLoadMenu:iu,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.shouldLazyLoadMenu=function(){var G=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.X("kevlar_modern_downloads_page")||!G};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16575_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.JSC$16575_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.w.getVideoPreviewOpts=function(){var G={},B;if((B=this.data)==null?0:B.multipleInlinePlaybackEndpoint)G=D4T;this.isRadio&&(G=FBN);return G};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16575_inlinePreviewHoverListener)==null||Jm(G)};
_.w.getOwner=function(){var G,B,F;return((G=this.data)==null?void 0:(B=G.channelThumbnailSupportedRenderers)==null?void 0:B.channelThumbnailWithLinkRenderer)||_.Q((F=this.data)==null?void 0:F.showProviderChannelThumbnail,bdP)};
_.w.updateLockupSize=function(){var G;((G=this.getOwner())==null?0:G.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.w.getFeedbackEndpoint=function(G){if(_.Q(G,_.QG))return G;var B,F;G=(F=(B=_.Q(G,_.gs))==null?void 0:B.commands)!=null?F:[];B=_.C(G);for(F=B.next();!F.done;F=B.next())if(F=this.getFeedbackEndpoint(F.value))return F;return null};
_.w.computeNavigationEndpoint=function(G){return zzg(G==null?void 0:G.navigationEndpoint)};
_.w.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var G=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(G)!==JSON.stringify(this.data)&&this.set("data",G)}};
_.w.onDataChanged=function(){var G=this,B=this.getOwner();if(B){this.set("data.owner",B);var F,D,u,R,N,y=((F=this.data)==null?void 0:(D=F.shortBylineText)==null?void 0:(u=D.runs)==null?void 0:(R=u[0])==null?void 0:R.text)||((N=B.name)==null?void 0:N.simpleText);this.set("data.owner.title",y)}var U,q,h,K,a,m;B=((U=this.data)==null?void 0:(q=U.thumbnailRenderer)==null?void 0:q.playlistVideoThumbnailRenderer)||((h=this.data)==null?void 0:(K=h.thumbnailRenderer)==null?void 0:K.playlistCustomThumbnailRenderer)||
((a=this.data)==null?void 0:(m=a.thumbnailRenderer)==null?void 0:m.showCustomThumbnailRenderer);var L;((L=this.data)==null?0:L.thumbnail)||!B||this.set("data.thumbnail",B.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){G.updateLockupSize()});
var W;if(U=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(U);var e;((e=this.dismissActionToReplayEntity)==null?0:e.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.w.onHiddenChanged=function(){this.updateLockupSize()};
_.w.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.T1(this.hostElement,"yt-terminate-video-preview-action");else{var G;(G=this.videoTitleLink)==null||G.focus()}};
_.w.metadataColorChanged=function(){var G;if(this.metadataColor&&((G=this.videoTitle)==null?0:G.style))this.videoTitle.style.color=_.hV(this.metadataColor);else{var B,F;!this.metadataColor&&((B=this.videoTitle)==null?0:(F=B.style)==null?0:F.color)&&(this.videoTitle.style.color="")}};
_.w.onDetailsClick=function(G){var B=this.computedNavigationEndpoint;B&&(_.oQ(_.VW(G),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.cZ(this.hostElement,"yt-navigate",{endpoint:B}))};
_.w.onRendererTap=function(){this.registerThumbnailForPageTransition();var G,B,F=((G=this.data)==null?void 0:G.serviceEndpoint)||this.getFeedbackEndpoint((B=this.data)==null?void 0:B.navigationEndpoint);F&&_.Q(F,_.QG)&&this.ytComponentBehavior.resolveCommand(F)};
_.w.onMouseDown=function(G){var B=G.target,F=this.computedNavigationEndpoint,D;G=B.href||((D=_.Q(F==null?void 0:F.commandMetadata,_.xy))==null?void 0:D.url);D=B.data||F;G&&D&&t4J(G,D)};
_.w.computeVideoTitleText=function(){var G;if((G=this.data)==null?0:G.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.w.computeHasPlaylistThumbnail=function(G){var B,F,D,u,R;if((((B=G.thumbnailRenderer)==null?0:B.playlistVideoThumbnailRenderer)||((F=G.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer)||((D=G.thumbnailRenderer)==null?0:D.showCustomThumbnailRenderer)||((u=G.thumbnailRenderer)==null?0:u.playlistVideoThumbnailRenderer)||((R=G.thumbnailRenderer)==null?0:R.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(B=0;B<G.thumbnailOverlays.length;B++)if(F=void 0,(F=G.thumbnailOverlays[B])==
null?0:F.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ZN.Object.defineProperties(Cl.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.X("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16575_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.sAc(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.videoId)||((B=this.data)==null?void 0:B.playlistId)||""}}});
Cl.prototype.onMouseDown=Cl.prototype.onMouseDown;Cl.prototype.metadataColorChanged=Cl.prototype.metadataColorChanged;Cl.prototype.onIsDismissedChanged=Cl.prototype.onIsDismissedChanged;Cl.prototype.onHiddenChanged=Cl.prototype.onHiddenChanged;Cl.prototype.onDataChanged=Cl.prototype.onDataChanged;Cl.prototype.handleReloadDownloadsInfo=Cl.prototype.handleReloadDownloadsInfo;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Cl.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Cl.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],Cl.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Cl.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Cl.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Cl.prototype,"entitySelectorType",void 0);_.c([_.v(),_.I("design:type",Boolean)],Cl.prototype,"noEndpoints",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Cl.prototype,"isRadio",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],Cl.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Cl.prototype,"fullHeight",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Cl.prototype,"showDarkVideoMetadata",void 0);_.c([_.v(),_.I("design:type",Boolean)],Cl.prototype,"showLightVideoMetadata",void 0);_.c([_.v(),_.I("design:type",Number)],Cl.prototype,"metadataColor",void 0);_.c([_.v(),_.I("design:type",Object)],Cl.prototype,"showChannelAvatar",void 0);_.c([_.v(),_.I("design:type",Boolean)],Cl.prototype,"hidden",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Cl.prototype,"showYtInteraction",void 0);
_.c([_.v(),_.I("design:type",String)],Cl.prototype,"dismissedContentId",void 0);_.c([_.v({selectorArgs:["dismissedContentId"],selector:e$l}),_.I("design:type",Object)],Cl.prototype,"dismissActionToReplayEntity",void 0);
_.c([_.v({selectorArgs:["entitySelectorType","mediaId"],selector:function(G,B,F){if(_.X("kevlar_modern_downloads_page")&&F&&B&&B!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(B){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var D=MpI(G,F);if(D){B=_.mD(G,F);var u=QU(G,F),R=gVz(G,F);G=jw(G,F);var N=iUQ(D,B,u,R);u=N.shortViewCountText;var y=N.publishedTimeText;N=N.badges;var U=G>0;R=GOs(D,B,R,G);D=_.DV(B)||B==="TRANSFER_STATE_FAILED"||B==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!F9(D.policyEntity)?
void 0:ezS(F,G,D.videoEntity.lengthSeconds);B==="TRANSFER_STATE_PAUSED_BY_USER"&&F&&!_.X("dl_resume_click_killswitch")&&(D={offlineVideoEndpoint:{videoId:F,action:"ACTION_RESUME"}});F={shortViewCountText:u,publishedTimeText:y,badges:N,isWatched:U,navigationEndpoint:D,thumbnailOverlays:R}}else F=void 0;return F;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(B=p9l(G,F))if(D=_.X9(G,F),R=_.Y56(G,F),D!=="TRANSFER_STATE_UNKNOWN"){F=BkS(B,D,R,F,_.a9(G));break a}F=void 0}return F;default:_.em(new _.Uf("Error: entitySelectorType defined but not matched in selector.",
G,B))}}}),
_.I("design:type",Object)],Cl.prototype,"entityDrivenState",void 0);_.c([_.v({computed:"computeVideoTitleText(data)"}),_.I("design:type",Object)],Cl.prototype,"videoTitleText",void 0);_.c([_.v({computed:"computeHasPlaylistThumbnail(data)"}),_.I("design:type",Object)],Cl.prototype,"hasPlaylistThumbnail",void 0);_.c([_.v({computed:"computeNavigationEndpoint(data)"}),_.I("design:type",Object)],Cl.prototype,"computedNavigationEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Cl.prototype,"typographyBump",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("typographyBump"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Cl.prototype,"typographyBumpV2",null);_.c([_.iA("#video-title"),_.I("design:type",HTMLElement)],Cl.prototype,"videoTitle",void 0);_.c([_.iA("#video-title-link"),_.I("design:type",HTMLElement)],Cl.prototype,"videoTitleLink",void 0);
_.c([_.iA("#thumbnail"),_.I("design:type",HTMLElement)],Cl.prototype,"thumbnail",void 0);_.c([_.iA("#dismissible"),_.I("design:type",HTMLElement)],Cl.prototype,"JSC$16575_dismissibleMedia",void 0);_.c([_.O("data.menu"),_.I("design:type",Object),_.I("design:paramtypes",[])],Cl.prototype,"lazyLoadMenu",null);_.c([_.O("data.menu"),_.I("design:type",Object),_.I("design:paramtypes",[])],Cl.prototype,"immediateLoadMenu",null);
_.c([_.Ry("entityDrivenState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Cl.prototype,"handleReloadDownloadsInfo",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Cl.prototype,"onDataChanged",null);_.c([_.Ry("hidden"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Cl.prototype,"onHiddenChanged",null);
_.c([_.Ga("isDismissed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Cl.prototype,"onIsDismissedChanged",null);_.c([_.Ga("metadataColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Cl.prototype,"metadataColorChanged",null);_.c([_.Pm("mousedown"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Cl.prototype,"onMouseDown",null);
_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Cl.prototype,"isHovered",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Cl.prototype,"useAvatar",null);_.c([_.O("data","entitySelectorType"),_.I("design:type",String),_.I("design:paramtypes",[])],Cl.prototype,"mediaId",null);_.c([_.mC({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Cl);
var jwP=_.tS()(Cl,"ytd-rich-grid-media",function(){if(a2v!==void 0)return a2v;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return a2v=G},{mode:2});var Lsa;var N1=function(){var G=_.p.apply(this,arguments)||this;G.removeMaxWidth=!0;G.insetMetadata=!1;return G};
_.r(N1,_.p);_.w=N1.prototype;_.w.configureRendererStamper=function(){return{innerMenu:iu,outerMenu:Object.assign({},iu,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.onDataChanged=function(){var G,B=((G=this.data)==null?void 0:G.trackingParams)||"";B&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(B));var F;((F=this.dismissActionToReplayEntity)==null?0:F.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16580_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.JSC$16580_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:utv})};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16580_inlinePreviewHoverListener)==null||Jm(G)};
_.w.onRendererTap=function(){var G,B,F=(G=this.data)==null?void 0:(B=G.serviceEndpoints)==null?void 0:B[0];_.Q(F,_.QG)&&this.componentBehavior.resolveCommand(F)};
_.w.onDetailsClick=function(G){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint;F&&(_.oQ(_.VW(G),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(F))};
_.w.onShow=function(){var G=this.data;G.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(G.onFirstVisibleCommand),delete G.onFirstVisibleCommand)};
_.ZN.Object.defineProperties(N1.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?void 0:(G=this.data)==null?void 0:G.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?(G=this.data)==null?void 0:G.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var G=this.data;if(G!=null&&G.badge&&(G=_.Q(G.badge,$RT))){var B,F,D;return[{metadataBadgeRenderer:{label:((B=G.label)==null?void 0:(F=B.runs)==null?void 0:F[0].text)||((D=G.label)==null?void 0:D.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var G=this.data;return Object.assign({},G.headline,{accessibility:G.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return this.isSlimShort?(G=this.computedTitle)==null?void 0:(B=G.accessibility)==null?void 0:(F=B.accessibilityData)==null?void 0:F.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.X("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16580_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
N1.prototype.onDataChanged=N1.prototype.onDataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],N1.prototype,"componentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],N1.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.aJ),_.I("design:type",Object)],N1.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],N1.prototype,"ytdReduxBehavior",void 0);_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],N1.prototype,"thumbnail",void 0);_.c([_.iA("#dismissible"),_.I("design:type",HTMLElement)],N1.prototype,"JSC$16580_dismissibleMedia",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],N1.prototype,"removeMaxWidth",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],N1.prototype,"insetMetadata",void 0);_.c([_.v(),_.I("design:type",String)],N1.prototype,"dismissedContentId",void 0);_.c([_.v({selectorArgs:["dismissedContentId"],selector:e$l}),_.I("design:type",Object)],N1.prototype,"dismissActionToReplayEntity",void 0);_.c([_.O("insetMetadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],N1.prototype,"thumbnailObjectFit",null);
_.c([_.O("data","insetMetadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],N1.prototype,"innerMenu",null);_.c([_.O("data","insetMetadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],N1.prototype,"outerMenu",null);_.c([_.v(),_.I("design:type",Object)],N1.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],N1.prototype,"miniMode",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],N1.prototype,"onDataChanged",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],N1.prototype,"shortsBadges",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],N1.prototype,"isShort",null);
_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],N1.prototype,"isSlimShort",null);_.c([_.O("data","isShort"),_.I("design:type",Object),_.I("design:paramtypes",[])],N1.prototype,"computedTitle",null);_.c([_.O("isSlimShort","computedTitle"),_.I("design:type",Object),_.I("design:paramtypes",[])],N1.prototype,"computedAccessibilityLabel",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],N1.prototype,"shouldForce2By3",null);_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],N1.prototype,"isHovered",null);_.c([_.mC({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],N1);
_.d(N1,"ytd-rich-grid-slim-media",function(){if(Lsa!==void 0)return Lsa;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Lsa=G},{mode:2});var ryq;var Wst;var yw=function(){return _.p.apply(this,arguments)||this};
_.r(yw,_.p);yw.prototype.computeIcon=function(G){return G&&G.iconType?"yt-sys-icons:"+G.iconType.toLowerCase():""};
yw.prototype.onMouseEnter=function(){this.isHovered=!0};
yw.prototype.onMouseLeave=function(){this.isHovered=!1};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],yw.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yw.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],yw.prototype,"isHovered",void 0);
_.c([_.mC({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],yw);
_.d(yw,"ytd-expand-on-hover-card-renderer",function(){if(Wst!==void 0)return Wst;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Wst=G},{mode:1});var H_N,k5s=function(){if(H_N!==void 0)return H_N;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return H_N=G};_.UR("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var nl=function(){var G=_.p.apply(this,arguments)||this;G.compactStyle=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(nl,_.p);_.w=nl.prototype;_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.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"}}}};
_.w.computeHideDot=function(G){return!(G&&G.subscriberCountText&&G.videoCountText)||this.compactStyle};
_.w.hasDualButtons=function(G){return G&&G.purchaseButton&&G.subscribeButton};
_.w.backgroundColorChanged=function(){if(this.data!==void 0){var G=this.data.backgroundColor;this.isDarkTheme&&(G=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=G!=null?_.hV(G):"transparent"}};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.onTap=function(G){var B,F,D=((B=this.data)==null?void 0:B.navigationEndpoint)||((F=this.data)==null?void 0:F.serviceEndpoint);_.Q(D,_.v_)&&(D&&_.te().resolve(_.Wr).resolveCommand(D,{form:{element:this.hostElement}}),G.preventDefault())};
_.w.computeChannelEndpoint=function(G){return _.Q(G,_.v_)?null:G};
_.w.computeHrefEndpoint=function(G){return _.Q(G,_.v_)?null:this.componentBehavior.computeHref_(G)};
_.w.computeChannelRendererStyle=function(G){return G};
_.w.computeIconSize=function(G){return G?108:136};
_.ZN.Object.defineProperties(nl,{template:{configurable:!0,enumerable:!0,get:function(){return k5s()}}});
nl.prototype.backgroundColorChanged=nl.prototype.backgroundColorChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],nl.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],nl.prototype,"componentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],nl.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],nl.prototype,"isDarkTheme",void 0);_.c([_.v({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.I("design:type",String)],nl.prototype,"channelRendererStyle",void 0);_.c([_.v({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],nl.prototype,"dualButtons",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],nl.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],nl.prototype,"biggerThumbStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],nl.prototype,"compactStyle",void 0);_.c([_.Ga("data","isDarkTheme"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],nl.prototype,"backgroundColorChanged",null);_.c([_.mC({is:"ytd-channel-renderer",disableElementRegistration:!0})],nl);_.d(nl,"ytd-channel-renderer",function(){return k5s()},{mode:1});var O_w;var e1q;_.UR("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var ld=function(){var G=_.p.apply(this,arguments)||this;G.displayItemCount=2;G.hasPlaylistThumbnail=!1;G.stackThumbnailSize="large";return G};
_.r(ld,_.p);_.w=ld.prototype;_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.w.computeFirstVideos=function(G,B){return G&&B?G.slice(0,B):[]};
_.w.computeThumbnailWidth=function(G,B){return G?B==="BIG"?500:B==="MASSIVE"?600:B==="MEDIUM"?450:420:360};
_.w.computeThumbnailHeight=function(G,B){return G?B==="BIG"?280:B==="MASSIVE"?337:234:202};
_.w.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16593_inlinePreviewHoverListener)==null||Jm(G)};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16593_inlinePreviewHoverListener=j3({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:D4T,thumbnailElement:this.thumbnail})};
_.w.computeHasPlaylistThumbnail=function(G){var B,F;if((((B=G.thumbnailRenderer)==null?0:B.playlistVideoThumbnailRenderer)||((F=G.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(B=0;B<G.thumbnailOverlays.length;B++)if(F=void 0,(F=G.thumbnailOverlays[B])==null?0:F.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ZN.Object.defineProperties(ld.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16593_inlinePreviewHoverListener)==null?0:jq(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ld.prototype.dataChanged=ld.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],ld.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ld.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ld.prototype,"displayItemCount",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],ld.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],ld.prototype,"biggerThumbsStyle",void 0);_.c([_.v({computed:"computeHasPlaylistThumbnail(data)"}),_.I("design:type",Object)],ld.prototype,"hasPlaylistThumbnail",void 0);_.c([_.v(),_.I("design:type",String)],ld.prototype,"stackThumbnailSize",void 0);_.c([_.iA("ytd-thumbnail"),_.I("design:type",HTMLElement)],ld.prototype,"thumbnail",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ld.prototype,"dataChanged",null);
_.c([_.O("lockupIsHovered"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ld.prototype,"isHovered",null);_.c([_.mC({is:"ytd-radio-renderer",disableElementRegistration:!0})],ld);
_.d(ld,"ytd-radio-renderer",function(){if(e1q!==void 0)return e1q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return e1q=G},{mode:2});var $JT;_.UR("itemSectionRenderer","showRenderer","ytd-show-renderer");var UW=function(){return _.p.apply(this,arguments)||this};
_.r(UW,_.p);UW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UW.prototype.computeThumbnailWidth=function(G){return G?360:246};
UW.prototype.computeUseProminentThumbs=function(G){return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UW.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],UW.prototype,"isSearch",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.I("design:type",Boolean)],UW.prototype,"useProminentThumbs",void 0);_.c([_.mC({is:"ytd-show-renderer",disableElementRegistration:!0})],UW);
_.d(UW,"ytd-show-renderer",function(){if($JT!==void 0)return $JT;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $JT=G},{mode:1});_.UR("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var q1=function(){var G=_.p.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.r(q1,_.p);q1.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"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],q1.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],q1.prototype,"isRichGrid",void 0);_.c([_.mC({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],q1);
_.d(q1,"ytd-feed-entry-renderer",function(){if(O_w!==void 0)return O_w;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return O_w=G},{mode:1});var z17;var EW=function(){return _.p.apply(this,arguments)||this};
_.r(EW,_.p);EW.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.c([_.k(_.hf),_.I("design:type",Object)],EW.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.EX,value:3}),_.I("design:type",Number)],EW.prototype,"itemsPerRow",void 0);
_.c([_.mC({is:"ytd-link-card-renderer",disableElementRegistration:!0})],EW);
_.d(EW,"ytd-link-card-renderer",function(){if(z17!==void 0)return z17;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return z17=G},{mode:1});var b_q;var hY=function(){return _.p.apply(this,arguments)||this};
_.r(hY,_.p);_.w=hY.prototype;_.w.configureRendererStamper=function(){return{"data.menu":iu,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.onRendererTap=function(G){if(!this.ytdDismissibleItemBehavior.isDismissed){var B,F=(B=this.data)==null?void 0:B.navigationEndpoint;F&&!_.oQ(_.VW(G),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(F)?_.oQ(_.VW(G),this.hostElement,["A"])||_.cZ(this.hostElement,"yt-navigate",{endpoint:F}):this.ytComponentBehavior.resolveCommand(F,{}))}};
_.w.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.w.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
_.w.isNavigationCommand=function(G){return G?_.Q(G,_.x9)||_.Q(G,_.Ow)||_.Q(G,_.MI)?!0:!1:!1};
hY.prototype.onRendererTap=hY.prototype.onRendererTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],hY.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],hY.prototype,"data",void 0);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],hY.prototype,"onRendererTap",null);_.c([_.mC({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],hY);
_.d(hY,"ytd-lumiere-promo-item-image-renderer",function(){if(b_q!==void 0)return b_q;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return b_q=G},{mode:1});var ViL;var Kl=function(){return _.p.apply(this,arguments)||this};
_.r(Kl,_.p);Kl.prototype.computeLandscapeThumbnail=function(){var G;return((G=this.data)==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Kl.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Kl.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],Kl.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.EX}),_.I("design:type",Number)],Kl.prototype,"itemsPerRow",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.I("design:type",Boolean)],Kl.prototype,"landscapeThumbnail",void 0);_.c([_.mC({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Kl);
_.d(Kl,"ytd-lumiere-shelf-details-renderer",function(){if(ViL!==void 0)return ViL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ViL=G},{mode:2});var vUq;var ar=function(){return _.p.apply(this,arguments)||this};
_.r(ar,_.p);ar.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ar.prototype,"data",void 0);_.c([_.mC({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],ar);
_.d(ar,"ytd-primetime-promo-details-renderer",function(){if(vUq!==void 0)return vUq;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return vUq=G},{mode:1});var oUP;var mk=function(){return _.p.apply(this,arguments)||this};
_.r(mk,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],mk.prototype,"data",void 0);_.c([_.mC({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],mk);
_.d(mk,"ytd-panel-show-style-metadata-renderer",function(){if(oUP!==void 0)return oUP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return oUP=G},{mode:1});var Mi8;var Xd=function(){return _.p.apply(this,arguments)||this};
_.r(Xd,_.p);_.w=Xd.prototype;_.w.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.w.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.w.computeThumbnail=function(G){if(G)return G.smallFormFactorBackgroundThumbnail||G.largeFormFactorBackgroundThumbnail};
_.w.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.w.isNavigationCommand=function(G){return G?_.Q(G,_.x9)||_.Q(G,_.Ow)||_.Q(G,_.MI)?!0:!1:!1};
_.w.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
Xd.prototype.onPanelTap=Xd.prototype.onPanelTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Xd.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Xd.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],Xd.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0,value:_.X("web_modern_buttons")}),_.I("design:type",Boolean)],Xd.prototype,"modernButtons",void 0);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xd.prototype,"onPanelTap",null);_.c([_.mC({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Xd);
_.d(Xd,"ytd-primetime-promo-panel-renderer",function(){if(Mi8!==void 0)return Mi8;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Mi8=G},{mode:1});_.YN(_.Y(function(G){G=_.AS(G,{data:{},useFullWidth:!1});var B=G.data,F=G.useFullWidth;G={};return _.l("teaser-card-view-model",{class:_.tx("ytTeaserCardViewModelHost",(G.ytTeaserCardViewModelUseFullWidth=function(){return F()},G))},_.l(_.E,{cond:function(){return B().onTap},
then:function(D){return _.l(_.p4,{className:"ytTeaserCardViewModelLink",command:D},_.l("div",{class:"ytTeaserCardViewModelImageContainer"},_.l(_.E,{cond:function(){return B().image},
then:function(u){return _.l(_.vr,{data:u,className:"ytTeaserCardViewModelImage",alt:""})}})),_.l("p",{class:"ytTeaserCardViewModelCaption"},function(){return B().caption}))}}))},"hd"),"teaser-card-view-model",{props:{data:_.Hd,
useFullWidth:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=function(){var D;return _.kP((D=B())==null?void 0:D.iconThemedImage)};
return _.l("yt-edu-card-view-model",null,_.l(_.Zd,{contentId:function(){return B().nudgeId}},function(){return _.l("div",{class:_.tx("ytEduCardViewModelHost",function(){return B().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.l("div",{class:"ytEduCardViewModelTopCornerButton"},_.l(_.uR,{data:function(){return B().dismissButton}},{buttonViewModel:_.cd})),_.l("div",{class:"ytEduCardViewModelContentWrapper"},_.l("div",{class:"ytEduCardViewModelHeaderImage"},_.l(_.E,
{cond:F,
then:function(D){return _.l(_.vr,{data:D,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.l("div",{class:"ytEduCardViewModelTextContainer"},_.l("div",{class:"ytEduCardViewModelTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytEduCardViewModelSubtitle"},_.l(_.Wd,{text:function(){return B().subtitle}}))),_.l("div",{class:"ytEduCardViewModelContent"},_.l(_.uR,{data:function(){return B().form}},{nudgeFormViewModel:KsL}))),_.l("div",{class:_.tx("ytEduCardViewModelButtonWrapper",
function(){return B().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.l(_.uR,{data:function(){return B().primaryButton}},{buttonViewModel:function(D){return _.l("div",{class:"ytEduCardViewModelPrimaryButton"},_.l(_.cd,{data:D.data}))}}),_.l(_.uR,{data:function(){return B().secondaryButton}},{buttonViewModel:function(D){return _.l("div",{class:"ytEduCardViewModelSecondaryButton"},_.l(_.cd,{data:D.data}))}})))}))},"id"),"yt-edu-card-view-model",{props:{data:_.Hd}});var pDP=new _.oV("RICH_GRID_VIDEO_RENDERER_TOKEN");_.YN(_.Y(function(G){var B=G.data;var F=G.showYtInteractionInContent;var D=function(){return!!B().selectableFeedback};
G=_.C(_.qg(!1,void 0,"qxtgaf"));var u=G.next().value,R=G.next().value;_.$f(function(){var a=_.Q(B().primaryButton,_.WR);(a==null?0:a.isToggled)&&R(a.isToggled)});
G=_.gJ(function(a){if(!D())return!1;if(u()){var m;var L=(m=B().selectableFeedback)==null?void 0:m.onDeselect}else{var W;L=(W=B().selectableFeedback)==null?void 0:W.onSelect}L&&_.rJ(L,{form:{element:a.target}});R(!u());if(a=_.Q(B().primaryButton,_.WR))a.isToggled=u();return!1});
var N=function(){if(!D()){var a,m=(a=B().loggingDirectives)==null?void 0:a.trackingParams;m&&_.ss(_.te().resolve(_.ux),m)}},y=_.wul(),U=function(){var a;
return D()?(a=B().selectableFeedback)==null?void 0:a.a11yLabel:void 0},q=function(){return D()?{toggled:u()}:{}},h=_.te().resolve(_.fH(pDP)),K={};
return _.l("yt-feedback-item-renderer",{class:_.tx("ytFeedbackItemRendererHost",(K.ytFeedbackItemRendererSelectableFeedback=D,K)),"on:click":G,"on:keydown":y,title:U,"aria-label":U,"aria-pressed":function(){return D()?u():void 0},
tabindex:function(){return D()?0:void 0},
role:function(){return D()?"button":void 0}},_.l("div",{class:"ytFeedbackItemRendererContentContainer"},_.l(_.uR,{data:function(){return B().content}},{videoRenderer:function(a){return _.l(h,{data:a.data,
showYtInteraction:F})},
lockupViewModel:function(a){return _.l(_.xm,{data:a.data,containerType:2})}})),_.l("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.l(_.uR,{data:function(){return B().primaryButton}},{toggleButtonViewModel:function(a){return _.l(_.wl,{data:a.data,
buttonShapeOverrides:q,disableExplicitClickLogging:!0,onToggle:N})}})))},"jd"),"yt-feedback-item-renderer",{props:{data:_.Hd,
showYtInteractionInContent:_.Hd}});var Qw=function(){var G=_.p.apply(this,arguments)||this;G.isShortsGrid=!1;G.isCompactGrid=!1;G.isShortsPanelGrid=!1;G.renderedFromRichGrid=!1;G.isInFirstColumn=!1;G.noGutterMargins=!1;G.noBottomMargin=!1;G.halfBottomMargin=!1;G.isInlineGroupItem=!1;G.insetMetadata=!1;G.noBottomMarginInAds=!0;G.force16By9ThumbnailAspectRatio=!1;G.useCompactList=!1;G.containerType=2;G.thumbnailTargetWidth=9999;G.isResponsiveGrid=!1;G.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};G.hoverListener=
G.hover.bind(G);G.leaveListener=G.leave.bind(G);G.highlighted=!1;G.JSC$16629_unsubscribeFromInlinePreviewIsActive=function(){};
return G};
_.r(Qw,_.p);_.w=Qw.prototype;_.w.computeContainerType=function(){return this.useCompactList?3:2};
_.w.itemWidthChanged=function(){var G;this.thumbnailTargetWidth=(G=this.itemWidth)!=null?G:9999};
_.w.updateIsInFirstColumn=function(){var G;this.isInFirstColumn=((G=this.data)==null?void 0:G.colIndex)===0};
_.w.observerContainerType=function(){if(this.lockup){var G=this.lockup;G.containerType=this.containerType;G.sizing=this.sizing;G.typographyBump=this.typographyBump;G.itemWidth=this.itemWidth}this.richGridMedia&&_.X("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.X("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.w.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.w.leave=function(G){G=G.relatedTarget;var B=document.querySelector("ytd-video-preview");G&&B&&_.fp(B).contains(G)||this.removeAndCleanupHighlight()};
_.w.hover=function(){var G;!this.highlighted&&(G=this.data)!=null&&G.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(G=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:G,boxShadow:"0 0 0 10px "+G})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.w.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};
_.w.registerHoverHighlightListeners=function(){var G=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16629_unsubscribeFromInlinePreviewIsActive=_.Dh(_.VU(),_.eoc,function(B){G.highlighted&&!B&&G.removeAndCleanupHighlight()})};
_.w.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16629_unsubscribeFromInlinePreviewIsActive()};
_.w.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.w.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.w.getBackgroundColor=function(){var G,B,F=(G=this.data)==null?void 0:(B=G.onFocusEffect)==null?void 0:B.onFocusColor;if(F){if(document.documentElement.hasAttribute("dark")&&(F==null?0:F.darkTheme))return ma(F==null?void 0:F.darkTheme);if(F==null?0:F.lightTheme)return ma(F==null?void 0:F.lightTheme)}};
_.w.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var G=_.qW(),B,F,D;G&&((B=this.data)==null?0:B.trackingParams)&&((F=this.data)==null?void 0:F.colIndex)!=null&&((D=this.data)==null?void 0:D.rowIndex)!=null&&_.bf(G,_.yX(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.w.isSlimMediaRenderer=function(G){return!!_.Q(G==null?void 0:G.content,_.Dua)||!!_.Q(G==null?void 0:G.content,Foy)||!!_.Q(G==null?void 0:G.content,_.m9)||!!_.Q(G==null?void 0:G.content,kjU)};
_.w.isPostRenderer=function(){var G,B;return!!_.Q((G=this.data)==null?void 0:G.content,hyT)||!!_.Q((B=this.data)==null?void 0:B.content,KEa)};
_.w.computeIsGameCardShelf=function(){var G;return!!_.Q((G=this.data)==null?void 0:G.content,VAt)};
_.w.computeIsMiniGameCardShelf=function(){var G,B;return!!_.Q((G=this.data)==null?void 0:G.content,ZgU)||!!_.Q((B=this.data)==null?void 0:B.content,gA8)};
_.w.computeIsTeaserCard=function(){var G;return!!_.Q((G=this.data)==null?void 0:G.content,gA8)};
_.w.computeIsSelectableFeedbackItem=function(){var G,B;return!((B=_.Q((G=this.data)==null?void 0:G.content,scP))==null||!B.selectableFeedback)};
_.w.computeContainsLumierePosters=function(){var G,B;return((B=_.Q((G=this.data)==null?void 0:G.content,kuy))==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.w.computeIsExpandOnHoverCardShelf=function(){var G;return!!_.Q((G=this.data)==null?void 0:G.content,Hdy)};
_.w.computeIsLinkCardShelf=function(){var G;return!!_.Q((G=this.data)==null?void 0:G.content,A3P)};
_.w.computeIsReelItemStyleAvatarCircle=function(G){var B;return((B=_.Q(G==null?void 0:G.content,_.m9))==null?void 0:B.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.w.computeIsLinkCardFullWidth=function(G,B){var F;return((F=_.Q(G==null?void 0:G.content,A3P))==null?void 0:F.useFullWidth)||B<=2};
_.ZN.Object.defineProperties(Qw.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var G;return _.X("web_hover_effect_refactor")&&_.Q((G=this.data)==null?void 0:G.content,JfL)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.X("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var G;if(_.X("web_hover_effect_refactor")&&_.Q((G=this.data)==null?void 0:G.content,JfL))return!1;var B;return!((B=this.data)==null||!B.onFocusEffect)||_.X("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var G;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.X("web_hover_effect_refactor")?(G=this.data)==null?void 0:G.onFocusEffect:void 0}}}});
Qw.prototype.richGridHoverHighlightChanged=Qw.prototype.richGridHoverHighlightChanged;Qw.prototype.observerContainerType=Qw.prototype.observerContainerType;Qw.prototype.updateIsInFirstColumn=Qw.prototype.updateIsInFirstColumn;Qw.prototype.itemWidthChanged=Qw.prototype.itemWidthChanged;_.c([_.k(_.hf),_.I("design:type",Object)],Qw.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Qw.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],Qw.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Qw.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isPost",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.I("design:type",Boolean)],Qw.prototype,"containsLumierePosters",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isSlimMedia",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isGameCardShelf",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isMiniGameCardShelf",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isTeaserCard",void 0);_.c([_.v({computed:"computeIsSelectableFeedbackItem(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isSelectableFeedbackItem",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"isShortsGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Qw.prototype,"isSlimGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"isCompactGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"isShortsPanelGrid",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isExpandOnHoverCardShelf",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isLinkCardShelf",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.EX,value:3}),_.I("design:type",Number)],Qw.prototype,"itemsPerRow",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"renderedFromRichGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"isInFirstColumn",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"noGutterMargins",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"noBottomMargin",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"halfBottomMargin",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"isInlineGroupItem",void 0);_.c([_.v(),_.I("design:type",Object)],Qw.prototype,"insetMetadata",void 0);_.c([_.v(),_.I("design:type",Object)],Qw.prototype,"noBottomMarginInAds",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Qw.prototype,"isShelfItem",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.I("design:type",Boolean)],Qw.prototype,"isReelItemStyleAvatarCircle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.I("design:type",Boolean)],Qw.prototype,"isLinkCardFullWidth",void 0);_.c([_.v(),_.I("design:type",Object)],Qw.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"useCompactList",void 0);_.c([_.v(),_.I("design:type",String)],Qw.prototype,"sizing",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Qw.prototype,"typographyBump",void 0);_.c([_.v(),_.I("design:type",Number)],Qw.prototype,"itemWidth",void 0);_.c([_.v(),_.I("design:type",Boolean)],Qw.prototype,"isHomeShelf",void 0);_.c([_.v(),_.I("design:type",Boolean)],Qw.prototype,"isHomeGrid",void 0);
_.c([_.iA("yt-lockup-view-model"),_.I("design:type",HTMLElement)],Qw.prototype,"lockup",void 0);_.c([_.iA("ytd-rich-grid-media"),_.I("design:type",HTMLElement)],Qw.prototype,"richGridMedia",void 0);_.c([_.iA("ytd-ad-slot-renderer"),_.I("design:type",HTMLElement)],Qw.prototype,"adSlotRenderer",void 0);_.c([_.v({computed:"computeContainerType(useCompactList)"}),_.I("design:type",Object)],Qw.prototype,"containerType",void 0);_.c([_.v(),_.I("design:type",Object)],Qw.prototype,"thumbnailTargetWidth",void 0);
_.c([_.O("showYtInteractionOnRichItem"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Qw.prototype,"showYtInteractionOnRichGridMedia",null);_.c([_.O("isSelectableFeedbackItem","richGridHoverHighlight"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Qw.prototype,"showYtInteractionOnRichItem",null);_.c([_.O("typographyBump","isHomeGrid"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Qw.prototype,"richTypographyBump",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data","isShortsGrid","isCompactGrid"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Qw.prototype,"richGridHoverHighlight",null);_.c([_.O("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.I("design:type",Number),_.I("design:paramtypes",[])],Qw.prototype,"shortsLockupViewModelAspectRatio",null);_.c([_.O("isInlineGroupItem"),_.I("design:type",Number),_.I("design:paramtypes",[])],Qw.prototype,"shortsLockupViewModelScrimStyle",null);
_.c([_.Ga("itemWidth"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Qw.prototype,"itemWidthChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Qw.prototype,"updateIsInFirstColumn",null);_.c([_.Ga("containerType","sizing","typographyBump"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Qw.prototype,"observerContainerType",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qw.prototype,"isResponsiveGrid",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Qw.prototype,"lockupExperiments",null);_.c([_.Ga("richGridHoverHighlight"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Qw.prototype,"richGridHoverHighlightChanged",null);_.c([_.mC({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Qw);
_.YQP=_.tS()(Qw,"ytd-rich-item-renderer",function(){if(ryq===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);ryq=G}G=ryq;return G},{mode:2});var aUJ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var znQ=_.$9(_.G7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var XFQ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},jXI={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},LB8={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var Ays;var jK=function(){var G=_.p.apply(this,arguments)||this;G.useResponsiveGrid=!1;G.hidden=!1;G.isShowMoreHidden=!1;G.isShowLessHidden=!0;G.hasExpansionButton=!1;G.isInnerShelf=!1;G.allVideosCount=0;G.allPlaylistCount=0;G.haveSmartDownloadsCompleted=!1;G.restrictContentsOverflow=!1;G.firstShownIndex=0;G.horizontalOffset=0;G.atEnd=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
G.disableServiceRequestPropagation=function(B){B.stopPropagation()};
G.nextClick=function(){var B;(B=G.data)!=null&&B.contents&&(G.firstShownIndex+=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
G.previousClick=function(){var B;(B=G.data)!=null&&B.contents&&(G.firstShownIndex-=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
return G};
_.r(jK,_.p);_.w=jK.prototype;
_.w.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.v5("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.w.attached=function(){this.requestElementsPerRow();_.X("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.w.detached=function(){_.X("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.w.refreshGridLayoutNew=function(){var G;if((G=this.data)!=null&&G.contents&&this.containerWidth){var B;((B=this.data.responsiveContainerConfiguration)==null?0:B.responsiveSize)?(G=_.VBo(this.data.responsiveContainerConfiguration,this.containerWidth,2),G=_.W_(Object.assign({},G,{standardUnitMinWidth:this.standardUnitMinWidth}))):G=_.W_({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=G.typographyBump;if(this.elementsPerRow!==
G.numItems||this.gutter!==G.gutter)this.elementsPerRow=G.numItems,this.gutter=G.gutter,this.itemWidth=G.itemWidth,_.Ss(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px"})}};
_.w.computeSizing=function(){if(!this.isLumiere){var G=_.i6z(this.data);return G?G:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.w.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.w.computeButton=function(G){var B=_.Q(G,_.Xq);G=Object.assign({},_.Q(G,_.Xq));return B?(G.text||(G.text={simpleText:G.tooltip}),G.style="STYLE_MONO_OUTLINE",G.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",G):B};
_.w.onRowIndexChange=function(){var G=_.qW(),B,F;((B=this.data)==null?0:B.trackingParams)&&((F=this.data)==null?void 0:F.rowIndex)!=null&&G&&_.bf(G,_.yX(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.w.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var G,B=((G=this.getRichItemRenderers()[0])==null?void 0:G.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*B;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
_.w.onUpdateElementsPerRowAction=function(G,B,F,D,u,R){if(this.containerWidth!==R&&(this.containerWidth=R,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&G&&B&&F&&D&&u&&(this.elementsPerRow!==G||this.postsPerRow!==B||this.slimItemsPerRow!==F||this.gameCardsPerRow!==D||this.miniGameCardsPerRow!==u)&&(this.elementsPerRow=G,this.postsPerRow=B,this.slimItemsPerRow=F,this.gameCardsPerRow=D,this.miniGameCardsPerRow=u,this.updateItemVisibility())};
_.w.isExpandedChanged=function(){var G=this.getRichItemRenderers(),B=this.isExpanded;G.forEach(function(F){F.halfBottomMargin=B})};
_.w.isCollapsedChanged=function(){var G=this.getRichItemRenderers(),B=this.isCollapsed;G.forEach(function(F){F.noBottomMargin=B})};
_.w.getRichItemRenderers=function(){return _.IF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.w.updateItemVisibility=function(){var G=this;if(this.data&&this.data.contents){var B=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(D,u){var R;((R=G.data)==null?0:R.isExpanded)?(D.hidden=u>B-1,D.ytRendererBehavior.markDirty()):D.hidden=u>G.currentElementsPerRow-1||u>B-1});
var F=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||F||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||F||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.w.setHeightToSingleRow=function(){var G=this.getRichItemRenderers(),B=Number.parseInt(getComputedStyle(G[0]).marginBottom,10)||0;G=G.slice(0,this.currentElementsPerRow).reduce(function(F,D){return Math.max(F,D.getBoundingClientRect().height+B)},0);
this.contents.style.height=G+"px"};
_.w.focusNextExpandedItem=function(){var G;((G=this.data)==null?0:G.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.w.focusItem=function(G,B){var F=this.getRichItemRenderers();if(F[G]&&(G=F[G].querySelector(".focus-on-expand"))){if(B){var D;(D=F[this.currentElementsPerRow])==null||D.scrollIntoView({behavior:"smooth",block:"center"})}G.focus({preventScroll:!0})}};
_.w.onDataChange=function(){var G=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var B;if((B=this.data)==null?0:B.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.ft(this,function(){G.updateItemVisibility()});
var F;if((F=this.data)==null?0:F.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Ss(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),B=0;B<this.data.contents.length;B++)F=_.Q(this.data.contents[B],_.R1)||{},F.colIndex=B,F.rowIndex=this.data.rowIndex};
_.w.handleRerenderDownloadsData=function(){_.X("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())};
_.w.blockInlinePreview=function(G){var B=this,F;return _.n(function(D){(F=B.inlinePreviewIsEnabled)&&B.ytdReduxBehavior.dispatch(_.zLs(!1));return D.return(new Promise(function(u){G(function(){F&&B.ytdReduxBehavior.dispatch(_.zLs(!0));u()})}))})};
_.w.expandShelf=function(){var G=this;if(this.data){var B,F=(B=_.Q(this.data.showMoreButton,_.Xq))==null?void 0:B.trackingParams;F&&_.ss(_.Rh(),F);this.set("data.isExpanded",!0);this.blockInlinePreview(function(D){G.setHeightToSingleRow();G.updateItemVisibility();G.contents.style.height=G.contents.scrollHeight+"px";_.Lu.addJob(function(){G.contents.style.height="auto";G.focusNextExpandedItem();D()},2,200)})}};
_.w.collapseShelf=function(){var G=this;return _.n(function(B){if(B.nextAddress==1){if(!G.data)return B.return();G.set("data.isExpanded",!1);return B.yield(G.blockInlinePreview(function(F){G.contents.style.height=G.contents.scrollHeight+"px";G.setHeightToSingleRow();_.Lu.addJob(function(){G.updateItemVisibility();G.contents.style.height="auto";F()},2,200)}),2)}_.cZ(G.hostElement,"yt-rich-shelf-renderer-collapse",G.data.trackingParams);
G.focusItem(0,!1);_.di(B)})};
_.w.updateArrowButtonStatus=function(){this.getRichItemRenderers();var G,B;var F=((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=F};
_.w.onChildElementFocus=function(G){this.hasChevronButtons&&(G=G.target.closest("#contents > *"),this.contents.contains(G)&&(G.offsetLeft<this.horizontalOffset?this.previousClick():G.offsetLeft+G.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.w.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.v5("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.w.updateHorizontalOffset=function(){var G=this.getRichItemRenderers(),B,F;var D=((B=this.data)==null?void 0:(F=B.contents)==null?void 0:F.length)||0;var u;G=((u=G[0])==null?void 0:u.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>D?this.firstShownIndex=D-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*G};
_.w.isSlimMediaShelfRenderer=function(){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1))==null?void 0:F.content;return!!(_.Q(D,_.Dua)||_.Q(D,Foy)||_.Q(D,_.m9)||_.Q(D,kjU))};
_.w.isGameCardShelf=function(){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1))==null?void 0:F.content;return!!_.Q(D,VAt)};
_.w.isMiniGameCardShelf=function(){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1))==null?void 0:F.content;return!!_.Q(D,ZgU)||!!_.Q(D,gA8)};
_.w.hasGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.w.hasRoundedGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.w.isShortsShelf=function(){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1))==null?void 0:F.content;return!!_.Q(D,_.m9)||!!_.Q(D,kjU)};
_.w.isPostShelfRenderer=function(){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1))==null?void 0:F.content;return!(!_.Q(D,hyT)&&!_.Q(D,KEa))};
_.w.isLumiereShelf=function(){var G,B,F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1);return!!_.Q(F==null?void 0:F.content,kuy)};
_.w.isLumiereShelfWithPosters=function(){var G,B,F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1),D;return((D=_.Q(F==null?void 0:F.content,kuy))==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.w.isExpandOnHoverCardShelf=function(){var G,B,F,D=(F=_.Q((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B[0],_.R1))==null?void 0:F.content;return!!_.Q(D,Hdy)};
_.w.computeHasFeaturedBadge=function(){var G,B,F=_.Q((G=this.data)==null?void 0:(B=G.badges)==null?void 0:B[0],_.gCT);return F?F.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.w.computeHasPaygatedFeaturedBadge=function(){var G,B,F=_.Q((G=this.data)==null?void 0:(B=G.badges)==null?void 0:B[0],_.gCT);return F?(F==null?void 0:F.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.w.computeHeaderHidden=function(){var G,B,F,D,u,R;return!((G=this.data)==null?0:G.icon)&&!((B=this.data)==null?0:B.title)&&!((F=this.data)==null?0:F.subtitle)&&!((D=this.data)==null?0:D.thumbnail)&&!((u=this.data)==null?0:u.badges)&&!((R=this.data)==null?0:R.menu)};
_.w.showCtaButton=function(){var G;return!((G=this.data)==null||!G.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.w.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.w.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.w.computeForce16By9ThumbnailAspectRatio=function(){var G,B;return((G=this.data)==null?void 0:(B=G.responsiveContainerConfiguration)==null?void 0:B.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.w.onSectionReactiveDismissal=function(G,B,F){var D,u;var R=(D=this.data)==null?void 0:(u=D.targetingContext)==null?void 0:u.targetGroupId;this&&R&&B.targetGroupId&&R.includes(B.targetGroupId)?(D=this.rowIndex,G=D===void 0?!1:!(B.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&D<=G)):G=!1;G&&(this.hidden=F)};
_.ZN.Object.defineProperties(jK.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var G=this.elementsPerRow;this.isPostShelfRenderer()?G=this.postsPerRow:this.isSlimMediaShelfRenderer()?G=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?G=this.slimItemsPerRow-1:this.isGameCardShelf()?G=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(G=this.miniGameCardsPerRow);return G}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.previousButton)&&!((B=this.data)==null||!B.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.te().resolve(_.pA).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;return!((G=this.data)==null?0:(B=G.thumbnail)==null?0:(F=B.accessibility)==null?0:(D=F.accessibilityData)==null?0:D.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
jK.prototype.onChildElementFocus=jK.prototype.onChildElementFocus;jK.prototype.handleRerenderDownloadsData=jK.prototype.handleRerenderDownloadsData;jK.prototype.onDataChange=jK.prototype.onDataChange;jK.prototype.isCollapsedChanged=jK.prototype.isCollapsedChanged;jK.prototype.isExpandedChanged=jK.prototype.isExpandedChanged;jK.prototype.onRowIndexChange=jK.prototype.onRowIndexChange;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],jK.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],jK.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],jK.prototype,"ytdReduxBehavior",void 0);
_.c([_.v({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.I("design:type",Object)],jK.prototype,"useResponsiveGrid",void 0);_.c([_.v(),_.I("design:type",Object)],jK.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],jK.prototype,"standardUnitMinWidth",void 0);_.c([_.v({reflectToAttribute:!0,value:3}),_.I("design:type",Number)],jK.prototype,"elementsPerRow",void 0);_.c([_.v({value:3}),_.I("design:type",Number)],jK.prototype,"postsPerRow",void 0);
_.c([_.v({value:6}),_.I("design:type",Number)],jK.prototype,"slimItemsPerRow",void 0);_.c([_.v({value:6}),_.I("design:type",Number)],jK.prototype,"gameCardsPerRow",void 0);_.c([_.v({value:6}),_.I("design:type",Number)],jK.prototype,"miniGameCardsPerRow",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jK.prototype,"hidden",void 0);_.c([_.v(),_.I("design:type",Object)],jK.prototype,"isShowMoreHidden",void 0);
_.c([_.v(),_.I("design:type",Object)],jK.prototype,"isShowLessHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jK.prototype,"hasExpansionButton",void 0);_.c([_.O("data.isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jK.prototype,"isExpanded",null);_.c([_.O("data.isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jK.prototype,"isCollapsed",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jK.prototype,"isInnerShelf",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.I("design:type",Boolean)],jK.prototype,"isShorts",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.I("design:type",Boolean)],jK.prototype,"isLumiere",void 0);_.c([_.v({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.I("design:type",Boolean)],jK.prototype,"hasBoxArtThumbnailStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.I("design:type",Boolean)],jK.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.I("design:type",Boolean)],jK.prototype,"hasFeaturedBadge",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.I("design:type",Boolean)],jK.prototype,"hasPaygatedFeaturedBadge",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.I("design:type",Boolean)],jK.prototype,"isHeaderHidden",void 0);_.c([_.v({selector:_.oVM}),_.I("design:type",Object)],jK.prototype,"allVideosCount",void 0);_.c([_.v({selector:bb6}),_.I("design:type",Object)],jK.prototype,"allPlaylistCount",void 0);_.c([_.v({selector:fsS}),_.I("design:type",Object)],jK.prototype,"haveSmartDownloadsCompleted",void 0);
_.c([_.v({selectorArgs:["entitySelectorType"],selector:function(G,B){if(_.X("kevlar_modern_downloads_page")&&B&&B!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var F=G.entities;switch(B){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":B=_.nJ(F);G=iv(B);var D=_.uo(B);F=_.UX(F);F=_.pR(WBo(D,F,B.length));return{contents:G,subtitle:F};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return F=_.nJ(F),{contents:iv(F)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return F=
_.lo(F),{contents:iv(F)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return F=_.lsQ(F),{contents:iv(F)};default:_.em(new _.Uf("Error: entitySelectorType defined but not matched in selector.",G,B))}}}}),
_.I("design:type",Object)],jK.prototype,"entityDrivenRichShelfData",void 0);_.c([_.v({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.I("design:type",Boolean)],jK.prototype,"hasTopCtaButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.I("design:type",Boolean)],jK.prototype,"hasBottomCtaButton",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.I("design:type",Boolean)],jK.prototype,"force16By9ThumbnailAspectRatio",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jK.prototype,"restrictContentsOverflow",void 0);_.c([_.v({selector:_.$vc}),_.I("design:type",Boolean)],jK.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.v({computed:"computeSizing(data)"}),_.I("design:type",String)],jK.prototype,"sizing",void 0);
_.c([_.v(),_.I("design:type",Boolean)],jK.prototype,"typographyBump",void 0);_.c([_.v(),_.I("design:type",Number)],jK.prototype,"itemWidth",void 0);_.c([_.v(),_.I("design:type",Object)],jK.prototype,"firstShownIndex",void 0);_.c([_.v(),_.I("design:type",Object)],jK.prototype,"horizontalOffset",void 0);_.c([_.v(),_.I("design:type",Object)],jK.prototype,"atEnd",void 0);_.c([_.iA("#contents"),_.I("design:type",HTMLElement)],jK.prototype,"contents",void 0);
_.c([_.Ga("data.rowIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jK.prototype,"onRowIndexChange",null);_.c([_.Ga("isExpanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jK.prototype,"isExpandedChanged",null);_.c([_.Ga("isCollapsed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jK.prototype,"isCollapsedChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jK.prototype,"onDataChange",null);_.c([_.Ga("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jK.prototype,"handleRerenderDownloadsData",null);_.c([_.Pm("focusin"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],jK.prototype,"onChildElementFocus",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data","isHomePage"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jK.prototype,"isTruncated",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jK.prototype,"showBottomDivider",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],jK.prototype,"hasChevronButtons",null);
_.c([_.O("firstShownIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],jK.prototype,"previousButtonOverride",null);_.c([_.O("atEnd"),_.I("design:type",Object),_.I("design:paramtypes",[])],jK.prototype,"nextButtonOverride",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jK.prototype,"isHomePage",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jK.prototype,"thumbnailAriaHidden",null);
_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],jK.prototype,"entitySelectorType",null);_.c([_.mC({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],jK);
_.dJN=_.tS()(jK,"ytd-rich-shelf-renderer",function(){if(Ays===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);Ays=G}G=Ays;return G},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var Jy8;_.YN(A8,"yt-thumbnail-view-model",{props:{data:_.Hd,aspectRatio:_.Hd,width:_.Hd,height:_.Hd,disableRounding:_.Hd,isClip:_.Hd,className:_.Hd,hovered:_.Hd,playbackRef:_.Hd,lockupExperiments:_.Hd}});_.YN(_.vK,"yt-badge-view-model",{props:{data:_.Hd,class:_.Hd,workaroundShortsIsThumbnailBadge:_.Hd,modern:_.Hd,numBadgesInRow:_.Hd,clipTextOverflow:_.Hd,inheritTypography:_.Hd}});_.YN(lYa,"yt-slimline-survey-view-model",{props:{data:_.Hd}});var Ll=function(){var G=_.p.apply(this,arguments)||this;G.tileLottieAnimationRef={};G.backgroundLottieAnimationRef={};G.isOnHoverBehaviorForLottieEnabled=!0;G.useBiggerShowcaseImage=_.X("enable_desktop_search_bigger_thumbs");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return G};
_.r(Ll,_.p);_.w=Ll.prototype;_.w.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.w.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.w.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var G=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);G!==this.hasTile&&this.set("hasTile",G);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.w.hoveredChanged=function(){var G=this.thumbnail;G&&(G.hovered=this.hovered)};
_.w.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.w.currentColorChanged=function(){this.updateButtonPalette()};
_.w.computeBackgroundStyle=function(G){if(G&&this.data){var B=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.dJ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&B.push('background-image: url("'+F+'");')}var D;((D=G.basicColorData)==null?void 0:D.backgroundColor)!==void 0&&B.push("background-color: "+_.Kp(G.basicColorData.backgroundColor)+";");return B.join("")}};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
_.w.getCurrentLogo=function(G,B){if(G)return B?G.darkLogoImage:G.lightLogoImage};
_.w.getCurrentTileImageViewModel=function(G,B){if(G)return G.darkTileImageViewModel?B?G.darkTileImageViewModel:G.tileImageViewModel:G.tileImageViewModel};
_.w.getCurrentStaticTileImage=function(G,B){if(this.hasStaticTile(G))return G.darkTileImage?B?G.darkTileImage:G.tileImage:G.tileImage};
_.w.computeTitleStyle=function(G){if(this.data&&this.data.title&&G&&G.basicColorData&&G.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.hV(G.basicColorData.foregroundTitleColor)+";"};
_.w.computeSubtitleStyle=function(G){if(this.data&&this.data.subtitle&&G&&G.basicColorData&&G.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.hV(G.basicColorData.foregroundBodyColor)+";"};
_.w.computeSupplementalStyle=function(G){if(this.data&&this.data.supplementalText&&G&&G.supplementalTextColor!==void 0)return G=_.hV(G.supplementalTextColor),"color:"+G+";--yt-endpoint-color:"+G+";--yt-endpoint-hover-color:"+G+";--yt-endpoint-visited-color:"+G+";--yt-formatted-string-bold-font-weight:700;"};
_.w.computeDismissIconStyle=function(G){var B,F;if((G==null?0:(B=G.dismissButtonColorData)==null?0:B.foregroundTitleColor)&&(G==null?0:(F=G.dismissButtonColorData)==null?0:F.backgroundColor))return"--yt-button-color:"+_.Kp(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Kp(G.dismissButtonColorData.backgroundColor)+";"};
_.w.computeOverflowIconStyle=function(G){var B,F;if((G==null?0:(B=G.dismissButtonColorData)==null?0:B.foregroundTitleColor)&&(G==null?0:(F=G.dismissButtonColorData)==null?0:F.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Kp(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Kp(G.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Kp(G.dismissButtonColorData.foregroundTitleColor)+";"};
_.w.computeBannerStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeLocation=function(G){switch(G==null?void 0:G.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.w.shouldShowTileSection=function(G,B,F){return!this.shouldExpandLogo(G,B,F)&&B};
_.w.shouldShowExpandedLogoSection=function(G,B,F){return this.shouldExpandLogo(G,B,F)&&G!==void 0&&this.hasLogo(G)};
_.w.shouldExpandLogo=function(G,B,F){return G&&B?!1:F>=2};
_.w.hasStaticTile=function(G){return!(G==null||!G.tileImage)};
_.w.hasThumbnailViewModel=function(G){return!(G==null||!G.tileImageViewModel)};
_.w.hasTileLottie=function(G){var B;return!!(G==null?0:(B=G.tileLottie)==null?0:B.url)};
_.w.hasLogo=function(G){return this.getCurrentLogo(G,this.isDarkTheme)!==void 0};
_.w.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.w.getExpandedLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.w.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.w.getMaxTitleFontSize=function(G){return G.overrideTitleMaxFontSize?String(G.overrideTitleMaxFontSize):"36"};
_.w.hasBackgroundLottie=function(G){var B;return!!(G==null?0:(B=G.backgroundLottie)==null?0:B.url)};
_.w.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,B;(G=this.tileLottieAnimationRef)==null||(B=G.lottieEl)==null||B.play();var F,D;(F=this.backgroundLottieAnimationRef)==null||(D=F.lottieEl)==null||D.play()}this.hovered=!0};
_.w.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,B;(G=this.tileLottieAnimationRef)==null||(B=G.lottieEl)==null||B.pause();var F,D;(F=this.backgroundLottieAnimationRef)==null||(D=F.lottieEl)==null||D.pause()}this.hovered=!1};
_.w.pauseLottie=function(){var G,B;(G=this.tileLottieAnimationRef)==null||(B=G.lottieEl)==null||B.pause();var F,D;(F=this.backgroundLottieAnimationRef)==null||(D=F.lottieEl)==null||D.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.w.performPrimaryButtonAction=function(){var G,B,F;((G=this.data)==null?0:(B=G.primaryButton)==null?0:(F=B.buttonRenderer)==null?0:F.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
_.w.updateButtonPalette=function(){if(this.data&&this.currentColorData){var G;((G=this.data.dismissButton)==null?0:G.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var B;if((B=this.data.primaryButton)==null?0:B.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var F;if((F=this.data.secondaryButton)==
null?0:F.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 D;((D=this.data.primaryButton)==null?0:D.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var u;((u=this.data.primaryButton)==null?0:u.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var R;((R=this.data.secondaryButton)==null?0:R.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var N;((N=this.data.primaryButton)==null?0:N.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.w.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var G=this.getTileLottieDataBasedOnTheme(),B,F;if(G.url!==((B=this.tileLottiePlayerProps)==null?void 0:(F=B.animationConfig)==null?void 0:F.path)){var D,u;(D=this.tileLottieAnimationRef)==null||(u=D.lottieEl)==null||u.destroy();var R;this.isOnHoverBehaviorForLottieEnabled=!((R=G.settings)==null?0:R.autoplay);var N,y;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(y=(N=G.settings)==null?void 0:N.autoplay)!=null?y:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.tileLottiePlayerProps.animationConfig.path=G.url:this.tileLottiePlayerProps.animationConfig.animationData=G.url}}};
_.w.getOverflowButton=function(G){return _.Q(G.overflowButton,b9v)};
_.w.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var G=this.getBackgroundLottieDataBasedOnTheme(),B,F;if(G.url!==((B=this.backgroundLottiePlayerProps)==null?void 0:(F=B.animationConfig)==null?void 0:F.path)){var D,u;(D=this.backgroundLottieAnimationRef)==null||(u=D.lottieEl)==null||u.destroy();var R;this.isOnHoverBehaviorForLottieEnabled=!((R=G.settings)==null?0:R.autoplay);var N,y;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(y=(N=G.settings)==null?void 0:N.autoplay)!=null?y:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=G.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
G.url}}};
_.w.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var G;((G=this.tileLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var B;((B=this.backgroundLottieAnimationRef)==null?void 0:B.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.w.getTileLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeTileLottie))return this.data.darkThemeTileLottie;var B;return((B=this.data)==null?0:B.tileLottie)?this.data.tileLottie:{}};
_.w.getBackgroundLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var B;return((B=this.data)==null?0:B.backgroundLottie)?this.data.backgroundLottie:{}};
_.w.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.w.getLottieLoopValue=function(G){return G?G.loop!==void 0?G.loop:G.loopCount?G.loopCount-1:!0:!0};
_.w.logoWithPadding=function(G){var B,F,D;return(G=(B=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(F=B.thumbnails)==null?void 0:(D=F[0])==null?void 0:D.height)&&G%31===0?!0:!1};
Ll.prototype.currentColorChanged=Ll.prototype.currentColorChanged;Ll.prototype.themeChanged=Ll.prototype.themeChanged;Ll.prototype.hoveredChanged=Ll.prototype.hoveredChanged;Ll.prototype.dataChanged=Ll.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.aJ),_.I("design:type",Object)],Ll.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ll.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ll.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"primaryButton",void 0);
_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"tileImageViewModel",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"secondaryButton",void 0);_.c([_.v({reflectToAttribute:!0,value:3}),_.I("design:type",Number)],Ll.prototype,"elementsPerRow",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ll.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ll.prototype,"hasTile",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ll.prototype,"hasMetadata",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ll.prototype,"showLogoImage",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Ll.prototype,"hovered",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"currentColorData",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.I("design:type",String)],Ll.prototype,"bannerStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.I("design:type",String)],Ll.prototype,"location",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"tileLottiePlayerProps",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"tileLottieAnimationRef",void 0);
_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"backgroundLottiePlayerProps",void 0);_.c([_.v(),_.I("design:type",Object)],Ll.prototype,"backgroundLottieAnimationRef",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ll.prototype,"useBiggerShowcaseImage",void 0);_.c([_.iA("yt-thumbnail-view-model"),_.I("design:type",HTMLElement)],Ll.prototype,"thumbnail",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Ll.prototype,"isHideEnclosingAction",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ll.prototype,"dataChanged",null);_.c([_.Ga("hovered"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ll.prototype,"hoveredChanged",null);_.c([_.Ry("isDarkTheme"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ll.prototype,"themeChanged",null);
_.c([_.Ry("currentColorData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ll.prototype,"currentColorChanged",null);_.c([_.mC({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Ll);
_.d(Ll,"ytd-statement-banner-renderer",function(){if(Jy8!==void 0)return Jy8;var G=document.createElement("template");_.H(G,'\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="onMouseLeave" on-mouseover="onMouseOver" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <div id="tile-image-view-model" hidden="[[!hasThumbnailViewModel(data)]]" class="style-scope ytd-statement-banner-renderer"></div>\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Jy8=G},{mode:1});var cys;var r1=function(){var G=_.p.apply(this,arguments)||this;G.isSearch=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.disableMouseScroll=!0;G.useFloorScrolling=!0;return G};
_.r(r1,_.p);r1.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.G7("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.G7("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
r1.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
r1.prototype.onDataChanged=r1.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],r1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],r1.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r1.prototype,"hideShelfHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r1.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Object)],r1.prototype,"disableMouseScroll",void 0);_.c([_.v(),_.I("design:type",Object)],r1.prototype,"useFloorScrolling",void 0);_.c([_.v(),_.I("design:type",Object)],r1.prototype,"data",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r1.prototype,"onDataChanged",null);
_.c([_.mC({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],r1);
_.d(r1,"ytd-reel-shelf-renderer",function(){if(cys!==void 0)return cys;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cys=G},{mode:_.ZO("kevlar_poly_si_batch_j028")?1:2});var Tx7;var I2s;I2s=_.vP(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.f2P=_.W7(I2s);var tit=_.Y(function(G){var B=G.data;G=G.useSmallFont;var F={},D={};return _.l("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.l(_.E,{cond:function(){return B().favicon},
then:function(u){return _.l(_.vr,{data:u,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.l("div",{class:"ytChannelExternalLinkViewModelContainer"},_.l(_.Wd,{text:function(){return B().title},
className:_.tx("ytChannelExternalLinkViewModelTitle",(F.ytChannelExternalLinkViewModelTitleSmallFont=G,F)),ellipsisTruncate:!0,userInput:!0}),_.l(_.Wd,{text:function(){return B().link},
className:_.tx("ytChannelExternalLinkViewModelLink",(D.ytChannelExternalLinkViewModelLinkSmallFont=G,D)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"kd");
tit.idomCompat=!0;_.YN(tit,"yt-channel-external-link-view-model",{props:{data:_.Hd,useSmallFont:_.Hd}});_.UR("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Wx=function(){var G=_.p.apply(this,arguments)||this;G.revealButtonClass="button";G.businessEmailDisplayState="HIDE_SECTION";return G};
_.r(Wx,_.p);_.w=Wx.prototype;_.w.refit=function(){var G=this;_.Hc(function(){_.Ia(G.hostElement,"yt-refit-popups-action")});
_.ft(this,function(){_.Ia(G.hostElement,"yt-refit-popups-action")})};
_.w.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Q9(_.f2P),this.businessEmailDisplayState="CAPTCHA")};
_.w.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"};
_.w.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.w.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"}}}};
_.w.computeEmailHref=function(G){return"mailto:"+G};
_.w.computeSafeUrl=function(G){if(G)return _.Sz(G)};
_.w.linkEndpoint=function(G){return _.Q(G.onTap,_.mr)};
_.w.linkEndpointToHref=function(G){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(G))};
_.w.onYtServiceRequestCompleted=function(G){var B;if((B=G.detail.data)==null?0:B.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var F;if((F=G.detail.data)==null?0:F.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.w.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var G=this.JSC$16744_captchaTextarea.value;if(G){G={recaptcha_response_token:G,channel_id:this.metadata.channelId};var B=_.Q(this.metadata.onBusinessEmailRevealClickCommand,_.mr);B&&this.ytComponentBehavior.resolveCommand(B,{form:G})}}};
_.w.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ZN.Object.defineProperties(Wx.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var G;return _.Q((G=this.data)==null?void 0:G.metadata,zyq)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.metadata.businessEmailRevealButton,_.LV)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var G=new URL(this.metadata.canonicalChannelUrl);return G.host+G.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.metadata.learnMoreOnTap,_.mr)}}});
Wx.prototype.onYtServiceRequestCompleted=Wx.prototype.onYtServiceRequestCompleted;Wx.prototype.businessEmailMetadataChanged=Wx.prototype.businessEmailMetadataChanged;Wx.prototype.refit=Wx.prototype.refit;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#g-recaptcha-response"),_.I("design:type",HTMLTextAreaElement)],Wx.prototype,"JSC$16744_captchaTextarea",void 0);_.c([_.v(),_.I("design:type",Object)],Wx.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Wx.prototype,"revealButtonClass",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Wx.prototype,"metadata",null);
_.c([_.O("metadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],Wx.prototype,"revealButton",null);_.c([_.O("metadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],Wx.prototype,"channelDisplayUrl",null);_.c([_.Ry("metadata"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wx.prototype,"refit",null);_.c([_.O("metadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],Wx.prototype,"formattedDescription",null);
_.c([_.O("metadata","learnMoreCommand"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Wx.prototype,"shouldRendereVerifiedPhoneStatus",null);_.c([_.O("metadata"),_.I("design:type",Object),_.I("design:paramtypes",[])],Wx.prototype,"learnMoreCommand",null);_.c([_.v(),_.I("design:type",String)],Wx.prototype,"businessEmailDisplayState",void 0);_.c([_.v(),_.I("design:type",String)],Wx.prototype,"businessEmail",void 0);
_.c([_.v(),_.I("design:type",String)],Wx.prototype,"businessEmailErrorMessage",void 0);_.c([_.Ry("metadata"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wx.prototype,"businessEmailMetadataChanged",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Wx.prototype,"onYtServiceRequestCompleted",null);
_.c([_.mC({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Wx);
_.d(Wx,"ytd-about-channel-renderer",function(){if(Tx7!==void 0)return Tx7;var G=document.createElement("template");_.H(G,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tx7=G},{mode:1});var Z_q;var Hx=function(){return _.p.apply(this,arguments)||this};
_.r(Hx,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Hx.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Hx);
_.d(Hx,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Z_q!==void 0)return Z_q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Z_q=G},{mode:1});var gUw;var kG=function(){return _.p.apply(this,arguments)||this};
_.r(kG,_.p);kG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kG.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],kG.prototype,"aligment",void 0);_.c([_.mC({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],kG);
_.d(kG,"ytd-channel-list-sub-menu-renderer",function(){if(gUw!==void 0)return gUw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return gUw=
G},{mode:1});var SQU;var OW=function(){return _.p.apply(this,arguments)||this};
_.r(OW,_.p);OW.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],OW.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],OW);
_.d(OW,"ytd-channel-sub-menu-renderer",function(){if(SQU!==void 0)return SQU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return SQU=G},{mode:1});var sw8;var xJL;var eK=function(){var G=_.p.apply(this,arguments)||this;G.isCompact=!1;return G};
_.r(eK,_.p);_.ZN.Object.defineProperties(eK.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var G,B;return((B=_.Q((G=this.data)==null?void 0:G.endpoint,_.MI))==null?void 0:B.target)==="TARGET_NEW_WINDOW"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],eK.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],eK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],eK.prototype,"isCompact",void 0);_.c([_.O("isCompact"),_.I("design:type",Number),_.I("design:paramtypes",[])],eK.prototype,"thumbnailWidth",null);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],eK.prototype,"openNewWindow",null);_.c([_.mC({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],eK);
_.d(eK,"ytd-media-lockup-renderer",function(){if(xJL!==void 0)return xJL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return xJL=G},{mode:1});var PbN;var $G=function(){return _.p.apply(this,arguments)||this};
_.r($G,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$G.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$G.prototype,"data",void 0);_.c([_.mC({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],$G);
_.d($G,"ytd-structured-description-channel-lockup-renderer",function(){if(PbN!==void 0)return PbN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return PbN=G},{mode:1});var GgU;var zK=function(){var G=_.p.apply(this,arguments)||this;G.isCompact=!1;G.collectionsStackColor=_.X("modernize_structured_description_playlist_lockups_v2");return G};
_.r(zK,_.p);zK.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:_.X("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.ZN.Object.defineProperties(zK.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u,R;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(F=this.data)==null?void 0:(D=F.thumbnail)==null?void 0:D.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(u=this.data)==null?void 0:(R=u.thumbnail)==null?
void 0:R.vibrantColorPalette:void 0}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],zK.prototype,"componentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],zK.prototype,"showSidePanelThumbnailOverlay",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zK.prototype,"isCompact",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zK.prototype,"collectionsStackColor",void 0);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],zK.prototype,"twoLineTitle",null);_.c([_.O("data","collectionsStackColor"),_.I("design:type",Object),_.I("design:paramtypes",[])],zK.prototype,"collectionStack",null);
_.c([_.mC({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],zK);
_.d(zK,"ytd-structured-description-playlist-lockup-renderer",function(){if(GgU!==void 0)return GgU;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return GgU=G},{mode:1});var BF7;var bd=function(){return _.p.apply(this,arguments)||this};
_.r(bd,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],bd.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bd.prototype,"data",void 0);_.c([_.mC({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],bd);
_.d(bd,"ytd-structured-description-video-lockup-renderer",function(){if(BF7!==void 0)return BF7;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return BF7=G},{mode:2});var Vw=function(){return _.p.apply(this,arguments)||this};
_.r(Vw,_.p);
Vw.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Vw.prototype,"data",void 0);_.c([_.mC({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Vw);
_.d(Vw,"ytd-compact-infocard-renderer",function(){if(sw8!==void 0)return sw8;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return sw8=G},{mode:1});var iq7;var vx=function(){return _.p.apply(this,arguments)||this};
_.r(vx,_.p);vx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ZN.Object.defineProperties(vx.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.X("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.X("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],vx.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],vx.prototype,"ytdReduxBehavior",void 0);_.c([_.v({selector:_.mA}),_.I("design:type",Object)],vx.prototype,"isGridViewEnabled",void 0);
_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],vx.prototype,"watchFeedBigThumbs",null);_.c([_.O("isGridViewEnabled","data"),_.v({reflectToAttribute:!0,value:"168"}),_.I("design:type",String),_.I("design:paramtypes",[])],vx.prototype,"thumbnailWidth",null);_.c([_.O("isGridViewEnabled","data"),_.v({reflectToAttribute:!0,value:"94"}),_.I("design:type",String),_.I("design:paramtypes",[])],vx.prototype,"customThumbnailSize",null);
_.c([_.v(),_.I("design:type",Object)],vx.prototype,"data",void 0);_.c([_.mC({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],vx);
_.d(vx,"ytd-compact-playlist-renderer",function(){if(iq7!==void 0)return iq7;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return iq7=G},{mode:1});var FNy;var or=function(){var G=_.p.apply(this,arguments)||this;G.roundedContainer=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.r(or,_.p);_.w=or.prototype;_.w.attached=function(){this.requestElementsPerRow()};
_.w.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"}}}};
_.w.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.w.computeViewStyle=function(G){return G.style?G.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.w.onUpdateElementsPerRowAction=function(G){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&G===1};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
or.prototype.dataChanged=or.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],or.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],or.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],or.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],or.prototype,"hideThumbnail",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.I("design:type",String)],or.prototype,"viewStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],or.prototype,"roundedContainer",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],or.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],or);
_.d(or,"ytd-compact-promoted-item-renderer",function(){if(FNy!==void 0)return FNy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return FNy=G},{mode:1});var DeL;var M1=function(){return _.p.apply(this,arguments)||this};
_.r(M1,_.p);M1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
M1.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
M1.prototype.onYtNavigate=function(G,B){var F=this;if(B.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",B)){var D=this.get("watchEndpoint.videoId",B.endpoint),u=_.Ia(this.hostElement,"yt-get-current-video-id-action")[0];_.X("kevlar_mix_handle_first_endpoint_different")&&D&&u&&D!==u||(G.stopPropagation(),_.de().getPlayerPromise().then(function(R){if(R.getPlayerState()===0&&F.data.secondaryNavigationEndpoint)var N=F.data.secondaryNavigationEndpoint;else{N=
Object.assign({},B.endpoint);var y=_.Q(N.commandMetadata,_.xy);y&&(R=Math.floor(R.getCurrentTime()),y.url=_.xi(y.url,{t:R}),!_.X("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(y=_.Q(N,_.Ow)))&&(y.startTimeSeconds=R)}_.cZ(F.hostElement,"yt-navigate",{endpoint:N})}))}};
_.ZN.Object.defineProperties(M1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.X("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u,R;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(D=F.thumbnail)==null?void 0:D.vibrantColorPalette,darkColorPalette:(u=this.data)==null?void 0:(R=u.thumbnail)==null?void 0:R.darkColorPalette,experimentEnabled:!0}}}});
M1.prototype.onYtNavigate=M1.prototype.onYtNavigate;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],M1.prototype,"ytEndpointBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],M1.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.W9),_.I("design:type",Object)],M1.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],M1.prototype,"ytdReduxBehavior",void 0);_.c([_.v({selector:_.mA}),_.I("design:type",Object)],M1.prototype,"isGridViewEnabled",void 0);_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],M1.prototype,"watchFeedBigThumbs",null);
_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",String),_.I("design:paramtypes",[])],M1.prototype,"thumbnailWidth",null);_.c([_.v(),_.I("design:type",Object)],M1.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],M1.prototype,"collectionStack",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],M1.prototype,"onYtNavigate",null);
_.c([_.mC({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],M1);
_.d(M1,"ytd-compact-radio-renderer",function(){if(DeL!==void 0)return DeL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return DeL=G},{mode:1});var uy8;var pl=function(){return _.p.apply(this,arguments)||this};
_.r(pl,_.p);pl.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
pl.prototype.computeRendererStyle=function(G){return G.style?G.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.c([_.v(),_.I("design:type",Object)],pl.prototype,"data",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pl.prototype,"rendererBehavior",void 0);_.c([_.v({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.I("design:type",String)],pl.prototype,"rendererStyle",void 0);_.c([_.mC({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],pl);
_.d(pl,"ytd-compact-text-promo-renderer",function(){if(uy8!==void 0)return uy8;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return uy8=G},{mode:1});var R5P;var YG=function(){var G=_.p.apply(this,arguments)||this;G.isShortsStyle=!1;return G};
_.r(YG,_.p);_.w=YG.prototype;_.w.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"}}}};
_.w.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.cZ(this.hostElement,"yt-disable-lockup-interaction"):_.cZ(this.hostElement,"yt-enable-lockup-interaction"))};
_.w.isMetaBlockEmpty=function(G){return!G||!G.longBylineText&&!G.shortBylineText&&!G.shortViewCountText&&!G.viewCountText};
_.w.computeHasOneLineTitle=function(G){return this.forceOneLineTitle||!(G==null||!G.buttons)};
_.w.computeDisableInteraction=function(){var G;return!((G=this.data)==null?0:G.navigationEndpoint)};
_.w.hasSingularTopStandaloneBadge=function(){var G;return!((G=this.data)==null||!G.topStandaloneBadge)};
_.ZN.Object.defineProperties(YG.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.X("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 G;return this.hasSingularTopStandaloneBadge()?[(G=this.data)==null?void 0:G.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var G;return this.shouldShowTopBadges?((G=this.data)==null?void 0:G.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
YG.prototype.disableInteractionChanged=YG.prototype.disableInteractionChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],YG.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],YG.prototype,"ytdLockupBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],YG.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.I("design:type",Boolean)],YG.prototype,"metaBlockEmpty",void 0);_.c([_.v({selector:_.mA}),_.I("design:type",Object)],YG.prototype,"isGridViewEnabled",void 0);_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],YG.prototype,"watchFeedBigThumbs",null);
_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",String),_.I("design:paramtypes",[])],YG.prototype,"thumbnailWidth",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],YG.prototype,"isShortsStyle",void 0);_.c([_.v(),_.I("design:type",Object)],YG.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.I("design:type",Boolean)],YG.prototype,"hasOneLineTitle",void 0);
_.c([_.v(),_.I("design:type",Boolean)],YG.prototype,"hideThumbnail",void 0);_.c([_.v(),_.I("design:type",Boolean)],YG.prototype,"forceOneLineTitle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.I("design:type",Boolean)],YG.prototype,"disableInteraction",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],YG.prototype,"musicMetadataVideoLockup",void 0);
_.c([_.Ga("disableInteraction"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],YG.prototype,"disableInteractionChanged",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],YG.prototype,"shouldShowTopBadges",null);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],YG.prototype,"topBadges",null);
_.c([_.O("shouldShowTopBadges","data"),_.I("design:type",Array),_.I("design:paramtypes",[])],YG.prototype,"inlineMetadataBadges",null);_.c([_.O("shouldShowTopBadges"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],YG.prototype,"shouldShowBadgesBelowMetadata",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],YG.prototype,"compactTitleClass",null);_.c([_.mC({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],YG);
_.d(YG,"ytd-compact-video-renderer",function(){if(R5P!==void 0)return R5P;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return R5P=G},{mode:2});var wtL;_.UR("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var AY=function(){return _.p.apply(this,arguments)||this};
_.r(AY,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AY.prototype,"data",void 0);_.c([_.mC({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],AY);
_.d(AY,"ytd-counterfactual-renderer",function(){if(wtL!==void 0)return wtL;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return wtL=G},{mode:1});var CSP;var d1=function(){var G=_.p.apply(this,arguments)||this;G.hidden=!1;return G};
_.r(d1,_.p);d1.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.te().resolve(_.Wr).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
d1.prototype.computeHidden=function(G){return!!G};
_.ZN.Object.defineProperties(d1.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}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],d1.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.I("design:type",Object)],d1.prototype,"hidden",void 0);_.c([_.O("data.label"),_.I("design:type",String),_.I("design:paramtypes",[])],d1.prototype,"label",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],d1.prototype,"value",null);
_.c([_.mC({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],d1);
_.d(d1,"ytd-dropdown-item-renderer",function(){if(CSP!==void 0)return CSP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return CSP=G},{mode:1});var NFN;var ydL;var JY=function(){return _.p.apply(this,arguments)||this};
_.r(JY,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],JY.prototype,"data",void 0);_.c([_.v({computed:"getSimpleString(data.label)"}),_.I("design:type",String)],JY.prototype,"label",void 0);_.c([_.mC({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],JY);
_.d(JY,"ytd-navigation-dropdown-item-renderer",function(){if(ydL!==void 0)return ydL;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ydL=G},{mode:1});var cx=function(){var G=_.p.apply(this,arguments)||this;G.disabled=!1;G.value="";G.noLabelFloat=!1;G.noUnderline=!1;G.usePrimaryColor=!1;G.hasBackground=!1;G.verticalAlign="top";G.autosize=!1;G.minAutosizeWidth=100;G.autosizeFont="14px Roboto";return G};
_.r(cx,_.p);_.w=cx.prototype;_.w.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"}}}};
_.w.open=function(){this.inputEl.open()};
_.w.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.w.dataChanged=function(){this.reset()};
_.w.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("value-changed",this.value))};
_.w.stopPropagation=function(G){G.stopPropagation()};
_.w.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var G=this.canvas.getContext("2d");G&&(G.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(G.measureText(this.inputEl.value).width)+24)+"px")}};
_.w.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var G=0,B=this.data.entries.length;G<B;G++){var F=this.data.entries[G],D;for(D in F)if(F.hasOwnProperty(D)){var u=F[D];if("isSelected"in u&&u.isSelected)return"stringValue"in u?u.stringValue||"":"int32Value"in u?u.int32Value||0:0}}return null};
_.w.updateValueFromBinding=function(G){this.value=G.detail.value};
_.ZN.Object.defineProperties(cx.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 G=0,B=this.data.entries.length;G<B;G++){var F=this.data.entries[G],D;for(D in F)if(F.hasOwnProperty(D)){var u=F[D];if("isSelected"in u&&u.isSelected&&"label"in u)return this.ytRendererBehavior.getSimpleString(u.label)}}return null}}});
cx.prototype.autoSizeLabel=cx.prototype.autoSizeLabel;cx.prototype.stopPropagation=cx.prototype.stopPropagation;cx.prototype.valueChangedForBinding=cx.prototype.valueChangedForBinding;cx.prototype.dataChanged=cx.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],cx.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],cx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cx.prototype,"disabled",void 0);_.c([_.v(),_.I("design:type",Object)],cx.prototype,"value",void 0);_.c([_.v(),_.I("design:type",Object)],cx.prototype,"noLabelFloat",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cx.prototype,"noUnderline",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],cx.prototype,"theme",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cx.prototype,"usePrimaryColor",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cx.prototype,"hasBackground",void 0);_.c([_.v(),_.I("design:type",Object)],cx.prototype,"verticalAlign",void 0);_.c([_.v(),_.I("design:type",Object)],cx.prototype,"autosize",void 0);_.c([_.v(),_.I("design:type",Object)],cx.prototype,"minAutosizeWidth",void 0);_.c([_.v(),_.I("design:type",Object)],cx.prototype,"autosizeFont",void 0);
_.c([_.iA("#entries"),_.I("design:type",Object)],cx.prototype,"entries",void 0);_.c([_.iA("#input"),_.I("design:type",Object)],cx.prototype,"inputEl",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cx.prototype,"dataChanged",null);_.c([_.Ry("value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cx.prototype,"valueChangedForBinding",null);
_.c([_.Pm("iron-overlay-opened"),_.Pm("iron-overlay-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],cx.prototype,"stopPropagation",null);_.c([_.Pm("iron-select"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cx.prototype,"autoSizeLabel",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],cx.prototype,"label",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],cx);
_.d(cx,"ytd-dropdown-renderer",function(){if(NFN!==void 0)return NFN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return NFN=G},{mode:1});var nqU;var TK=function(){var G=_.p.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.r(TK,_.p);TK.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"}}}};
TK.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
TK.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
TK.prototype.computeViewAllHidden=function(G,B){return G||!B.viewAllEndpoint};
TK.prototype.fillRestIfNoShowMore=TK.prototype.fillRestIfNoShowMore;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],TK.prototype,"ytLazyListBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TK.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],TK.prototype,"isConstrainedList",void 0);_.c([_.Ry("data","canShowMore"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TK.prototype,"fillRestIfNoShowMore",null);_.c([_.mC({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],TK);
_.d(TK,"ytd-expanded-shelf-contents-renderer",function(){if(nqU!==void 0)return nqU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return nqU=G},{mode:2});var lEL;var Ir=function(){return _.p.apply(this,arguments)||this};
_.r(Ir,_.p);Ir.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ir.prototype,"data",void 0);_.c([_.mC({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Ir);
_.d(Ir,"ytd-feed-channel-filter-header-renderer",function(){if(lEL!==void 0)return lEL;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return lEL=G},{mode:1});var UeP;var qZ7;var Eqa;var fl=function(){return _.p.apply(this,arguments)||this};
_.r(fl,_.p);_.w=fl.prototype;_.w.onClick=function(G){var B,F=(B=this.data)==null?void 0:B.sectionEndpoint;!_.oQ(_.VW(G),this.hostElement,["A".toString()])&&F&&_.cZ(this.hostElement,"yt-navigate",{endpoint:F})};
_.w.computeHasSectionEndpoint=function(G){return(G==null?void 0:G.sectionEndpoint)!==void 0};
_.w.computeShowHeaderAsLink=function(G){return(G==null?void 0:G.header)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0};
_.w.computeShowSubheaderAsLink=function(G){return(G==null?void 0:G.subheader)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0&&(G==null?void 0:G.header)===void 0};
_.w.getHeaderAsLinkClass=function(G){var B=[],F;(G==null?0:(F=G.headerIcon)==null?0:F.iconType)&&B.push("header-link-active");return B.join(" ")};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],fl.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],fl.prototype,"data",void 0);
_.c([_.v({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],fl.prototype,"hasSectionEndpoint",void 0);_.c([_.v({computed:"computeShowHeaderAsLink(data)"}),_.I("design:type",Boolean)],fl.prototype,"showHeaderAsLink",void 0);_.c([_.v({computed:"computeShowSubheaderAsLink(data)"}),_.I("design:type",Boolean)],fl.prototype,"showSubheaderAsLink",void 0);_.c([_.mC({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],fl);
_.d(fl,"ytd-medical-panel-section-renderer",function(){if(Eqa!==void 0)return Eqa;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Eqa=G},{mode:1});var tY=function(){var G=_.p.apply(this,arguments)||this;G.isExpanded=!1;G.roundedContainer=!0;G.skipRoundingTop=!1;G.toggleExpandableSection=function(){G.isExpanded=!G.isExpanded};
return G};
_.r(tY,_.p);
tY.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]]"}}}}}};
tY.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
tY.prototype.dataChanged=tY.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tY.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],tY.prototype,"isExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tY.prototype,"roundedContainer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tY.prototype,"skipRoundingTop",void 0);_.c([_.v(),_.I("design:type",Object)],tY.prototype,"toggleExpandableSection",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tY.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],tY);
_.d(tY,"ytd-medical-panel-content-renderer",function(){if(qZ7!==void 0)return qZ7;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return qZ7=G},{mode:1});_.UR("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ZF=function(){var G=_.p.apply(this,arguments)||this;G.roundedContainer=!0;G.extractOverlay=!1;G.amsterdamEnabled=_.X("enable_desktop_amsterdam_info_panels");G.hasTitle=!1;G.linkIcon="OPEN_IN_NEW";G.isDismissed=!1;return G};
_.r(ZF,_.p);ZF.prototype.onOverlayConditionsChange=function(){var G=_.IF(this.hostElement).querySelector("ytd-info-panel-content-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.roundedContainer))};
ZF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ZF.prototype.computeHasTitle=function(G){return!(G==null||!G.title)};
ZF.prototype.onClick=function(G){var B,F=(B=this.data)==null?void 0:B.headerEndpoint;!_.oQ(_.VW(G),this.hostElement,["BUTTON".toString()])&&F&&this.ytComponentBehavior.resolveCommand(F)};
_.ZN.Object.defineProperties(ZF.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 G;return((G=this.data)==null?void 0:G.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.disableBottomDivider)||!((B=this.data)==null?0:B.title)}}});
ZF.prototype.onOverlayConditionsChange=ZF.prototype.onOverlayConditionsChange;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ZF.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],ZF.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],ZF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ZF.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ZF.prototype,"extractOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],ZF.prototype,"amsterdamEnabled",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.I("design:type",Object)],ZF.prototype,"hasTitle",void 0);
_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.background"),_.I("design:type",Object),_.I("design:paramtypes",[])],ZF.prototype,"background",null);_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.titleStyle"),_.I("design:type",Object),_.I("design:paramtypes",[])],ZF.prototype,"titleStyle",null);
_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.O("data.titleStyle"),_.I("design:type",Object),_.I("design:paramtypes",[])],ZF.prototype,"showLinkIcon",null);_.c([_.v(),_.I("design:type",String)],ZF.prototype,"linkIcon",void 0);_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],ZF.prototype,"hideDivider",null);
_.c([_.v({selectorArgs:["data.dismissStateEntityKey"],selector:function(G,B){G=_.g5(G.entities,"dismissState",B);return(G==null?void 0:G.isDismissed)||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.I("design:type",Object)],ZF.prototype,"isDismissed",void 0);_.c([_.Ga("roundedContainer","extractOverlay"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZF.prototype,"onOverlayConditionsChange",null);_.c([_.mC({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ZF);
_.d(ZF,"ytd-info-panel-container-renderer",function(){if(UeP!==void 0)return UeP;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return UeP=G},{mode:1});var h5P;_.UR("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var g1=function(){return _.p.apply(this,arguments)||this};
_.r(g1,_.p);g1.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
g1.prototype.computeStyle=function(G){return G?G:""};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],g1.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.I("design:type",String)],g1.prototype,"titleStyle",void 0);
_.c([_.mC({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],g1);
_.tS()(g1,"ytd-item-section-header-renderer",function(){if(h5P===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);h5P=G}G=h5P;return G},{allowedProps:["data"],
mode:1});var KN7;var aEG,meN=function(){return aEG!==void 0?aEG:aEG=document.createElement("template")};
document.head.appendChild(meN().content);var XtN;_.SK=new _.oV("VOTING_ANIMATION_CONTROLLER_TOKEN");var jOT=_.Y(function(G){var B=G.data;var F=_.W5("div"),D=_.W5("div");G=_.C(_.qg("VOTE_STATUS_NONE",void 0,"YPH5mf"));var u=G.next().value,R=G.next().value,N=_.iR(vcg,function(){var a;return(a=B())==null?void 0:a.entityKey}),y=_.X("web_enable_voting_animation")||_.X("enable_music_web_cairo_voting_animation");
_.$f(function(){var a;((a=B().initialState)==null?0:a.status)&&R(B().initialState.status)});
var U=function(){var a,m,L=(m=(a=B().initialState)==null?void 0:a.votes)!=null?m:0,W;a=(W=B().initialState)==null?void 0:W.status;return a==="VOTE_STATUS_UPVOTED"?L-1:a==="VOTE_STATUS_DOWNVOTED"?L+1:L},q=function(){return u()==="VOTE_STATUS_UPVOTED"?U()+1:u()==="VOTE_STATUS_DOWNVOTED"?U()-1:U()},h=function(a){var m=a?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
R(m);var L=q(),W=_.te().resolve(_.fH(_.SK)),e=N();e&&(a&&(e==null?0:e.upvoteDefaultButtonOnTap)?_.rJ(e.upvoteDefaultButtonOnTap,{form:{element:F.value},disableClickTracking:!0}):(e==null?0:e.upvoteToggledButtonOnTap)&&_.rJ(e.upvoteToggledButtonOnTap,{form:{element:F.value},disableClickTracking:!0}));var b;a=(b=e==null?void 0:e.enableOptimisticReordering)!=null?b:B().enableOptimisticReordering;y&&W&&B().itemId&&a&&QOy(W,B().itemId,L,m)},K=function(a){var m=a?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
R(m);var L=q(),W=_.te().resolve(_.fH(_.SK)),e=N();e&&(a&&(e==null?0:e.downvoteDefaultButtonOnTap)?_.rJ(e.downvoteDefaultButtonOnTap,{form:{element:D.value},disableClickTracking:!0}):(e==null?0:e.downvoteToggledButtonOnTap)&&_.rJ(e.downvoteToggledButtonOnTap,{form:{element:D.value},disableClickTracking:!0}));var b;a=(b=e==null?void 0:e.enableOptimisticReordering)!=null?b:B().enableOptimisticReordering;y&&W&&B().itemId&&a&&QOy(W,B().itemId,L,m)};
G={};G=_.tx("ytVotingViewModelVoteCount",(G.ytVotingViewModelVoteCountDisabled=function(){return B().isDisabled},G));
return _.l("voting-view-model",{class:"ytVotingViewModelHost"},_.l("div",{el:F},_.l(_.uR,{data:function(){var a=_.Q(B().upvoteButton,_.WR);return{toggleButtonViewModel:Object.assign({},a,{isToggled:u()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(a){return _.l(_.wl,{data:a.data,
onToggle:h})}})),_.l("div",{class:G},function(){var a,m,L;
return u()==="VOTE_STATUS_UPVOTED"?(a=B().initialState)==null?void 0:a.compactVotesUpvoted:u()==="VOTE_STATUS_DOWNVOTED"?(m=B().initialState)==null?void 0:m.compactVotesDownvoted:(L=B().initialState)==null?void 0:L.compactVotes}),_.l("div",{el:D},_.l(_.uR,{data:function(){var a=_.Q(B().downvoteButton,_.WR);
return{toggleButtonViewModel:Object.assign({},a,{isToggled:u()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(a){return _.l(_.wl,{data:a.data,
onToggle:K})}})))},"ld");_.YN(_.Y(function(G){var B=G.data;return _.l("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.l("div",{class:_.tx("ytEngagementBarViewModelEngagementBarWrapper",G.className)},_.l(_.uR,{data:function(){return B().actions}},{votingViewModel:jOT})))},"md"),"engagement-bar-view-model",{props:{data:_.Hd,
className:_.Hd}});var sW=function(){var G=_.p.apply(this,arguments)||this;G.playlistVotingAnimationEnabled=_.X("web_enable_voting_animation");G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;return G};
_.r(sW,_.p);_.w=sW.prototype;_.w.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"}}}};
_.w.canReorderChanged=function(){this.persistentDragHandle=_.X("kevlar_playlist_drag_handles")&&this.canReorder};
_.w.onDrag=function(){if(this.thumbnail){var G=_.IF(this.thumbnail).querySelector("yt-image");G&&(G.shouldRenderLazy=!1)}};
_.w.onMenuOverlayChanged=function(G,B){this.menuOpened=B};
_.w.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.w.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.w.onContentsTap=function(G){var B,F=(B=this.data)==null?void 0:B.serviceEndpoints;if(F&&F.length===1&&_.Q(F[0],Y3I)&&!_.oQ(_.VW(G),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(F[0]);else{var D;(B=(D=this.data)==null?void 0:D.navigationEndpoint)&&_.X("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?LNq(_.te().resolve(_.WP),B):(_.Bv().playlistSuggestionsShelfActivation=
!0,_.rdw(_.te().resolve(_.WP),B)):B&&!_.oQ(_.VW(G),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.X("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.cZ(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B))}};
_.w.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeThumbnailWidth=function(G){return G==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.w.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=iUQ(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))}};
_.w.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.w.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.w.dataChanged=function(){if(this.data){var G,B,F,D=((G=this.downloadRenderData)==null?void 0:G.badges)&&((B=this.downloadRenderData)==null?void 0:B.badges)!==((F=this.data)==null?void 0:F.badges),u,R,N;G=((u=this.downloadRenderData)==null?void 0:u.thumbnailOverlays)&&((R=this.downloadRenderData)==null?void 0:R.thumbnailOverlays)!==((N=this.data)==null?void 0:N.thumbnailOverlays);(!this.downloadRenderData||D||G)&&this.downloadStateChanged()}};
_.w.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var G,B,F=(G=this.data.menu)==null?void 0:(B=G.menuRenderer)==null?void 0:B.items;if(F)for(G=_.C(F),B=G.next();!B.done;B=G.next())if(B=B.value,F=void 0,_.Q((F=B.menuServiceItemRenderer)==null?void 0:F.serviceEndpoint,_.KV)){var D=F=void 0,u=void 0;B=(F=B)==null?void 0:(D=F.menuServiceItemRenderer)==null?void 0:(u=D.serviceEndpoint)==null?void 0:u.playlistEditEndpoint;u=D=void 0;if(F=(D=B)==null?void 0:(u=D.actions)==null?void 0:
u[0])D=void 0,F.setVideoId=(D=this.data)==null?void 0:D.setVideoId;u=D=F=void 0;if(B=(F=B)==null?void 0:(D=F.clientActions)==null?void 0:(u=D[0])==null?void 0:u.playlistRemoveVideosAction)F=void 0,B.setVideoIds=[(F=this.data)==null?void 0:F.setVideoId]}}};
_.ZN.Object.defineProperties(sW.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
sW.prototype.setVideoIdChanged=sW.prototype.setVideoIdChanged;sW.prototype.dataChanged=sW.prototype.dataChanged;sW.prototype.downloadStateChanged=sW.prototype.downloadStateChanged;sW.prototype.onMenuOverlayChanged=sW.prototype.onMenuOverlayChanged;sW.prototype.canReorderChanged=sW.prototype.canReorderChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],sW.prototype,"ytdReduxBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],sW.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],sW.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],sW.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sW.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sW.prototype,"canReorder",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sW.prototype,"menuOpened",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sW.prototype,"handleIsHovered",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sW.prototype,"persistentDragHandle",void 0);_.c([_.v(),_.I("design:type",Object)],sW.prototype,"downloadRenderData",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],sW.prototype,"styleType",void 0);_.c([_.v({computed:"computeThumbnailWidth(data.style)"}),_.I("design:type",Number)],sW.prototype,"thumbnailWidth",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],sW.prototype,"isDownloads",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sW.prototype,"playlistVotingAnimationEnabled",void 0);
_.c([_.v({selector:QU,selectorArgs:["data.videoId"]}),_.I("design:type",Object)],sW.prototype,"downloadProgress",void 0);_.c([_.v(),_.I("design:type",Number)],sW.prototype,"relativeDateReference",void 0);_.c([_.v({selector:_.mD,selectorArgs:["data.videoId"]}),_.I("design:type",Object)],sW.prototype,"transferState",void 0);_.c([_.v({selector:gVz,selectorArgs:["data.videoId"]}),_.I("design:type",Object)],sW.prototype,"downloadState",void 0);
_.c([_.v({selector:VpI,selectorArgs:["data.videoId"]}),_.I("design:type",Object)],sW.prototype,"offlinePolicyAction",void 0);_.c([_.v({selector:vVM,selectorArgs:["data.videoId"]}),_.I("design:type",Object)],sW.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.c([_.v({selector:MpI,selectorArgs:["data.videoId"]}),_.I("design:type",Object)],sW.prototype,"entityInfo",void 0);_.c([_.v({selector:_.hc}),_.I("design:type",Boolean)],sW.prototype,"miniplayerIsActive",void 0);
_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],sW.prototype,"playlistVideoId",null);_.c([_.iA("#thumbnail"),_.I("design:type",Object)],sW.prototype,"thumbnail",void 0);_.c([_.Ry("canReorder"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sW.prototype,"canReorderChanged",null);
_.c([_.Pm("yt-menu-overlay-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Boolean]),_.I("design:returntype")],sW.prototype,"onMenuOverlayChanged",null);_.c([_.Ry("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sW.prototype,"downloadStateChanged",null);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sW.prototype,"dataChanged",null);_.c([_.Ry("data.setVideoId"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sW.prototype,"setVideoIdChanged",null);_.c([_.mC({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],sW);
_.d(sW,"ytd-playlist-video-renderer",function(){if(XtN!==void 0)return XtN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);G.content.insertBefore(meN().content.cloneNode(!0),G.content.firstChild);return XtN=G},{mode:1});var WNN;var xG=function(){return _.p.apply(this,arguments)||this};
_.r(xG,_.p);_.c([_.v(),_.I("design:type",Object)],xG.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xG.prototype,"rendererBehavior",void 0);_.c([_.mC({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],xG);
_.d(xG,"ytd-premium-browse-footer-renderer",function(){if(WNN!==void 0)return WNN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return WNN=G},{mode:1});var Hqa;var Px=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.r(Px,_.p);_.w=Px.prototype;_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.handleDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.computeHeaderLogoThumbnail=function(G,B){if(G)return B?G.darkLogo:G.lightLogo};
_.w.computeHeaderLogoHeight=function(G,B){var F,D,u;return(G=(F=this.computeHeaderLogoThumbnail(G,B))==null?void 0:(D=F.thumbnails)==null?void 0:(u=D[0])==null?void 0:u.height)&&G%31===0?"31":"24"};
_.w.computeHeaderLogoMarginBottom=function(G,B){return this.computeHeaderLogoHeight(G,B)==="24"?"0":"-7"};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Px.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Px.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],Px.prototype,"isDarkTheme",void 0);_.c([_.v({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.I("design:type",Object)],Px.prototype,"themeLogo",void 0);
_.c([_.v({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.I("design:type",String)],Px.prototype,"logoHeight",void 0);_.c([_.v({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.I("design:type",String)],Px.prototype,"logoMarginBottom",void 0);_.c([_.mC({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Px);
_.d(Px,"ytd-primetime-promo-header-renderer",function(){if(Hqa!==void 0)return Hqa;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Hqa=G},{mode:1});var kgL;_.GC=_.Y(function(G){var B=G.className;var F=G.data;var D=G.isOverlay;var u=G.maxLinesOverride;var R=G.useMediumText;var N=function(){return F().alwaysShowTruncationText},y=function(){return F().truncationText},U=function(){return R!==void 0&&R()?"medium":"small"},q=function(){return D!==void 0&&D()?"overlay":"default"},h=function(){var L,W;
return(W=(L=_.Q(F().rendererContext,_.yL))==null?void 0:L.label)!=null?W:""};
G=_.C(_.qg(!1,void 0,"llBUm"));var K=G.next().value,a=G.next().value;G=_.gJ(function(){F().expandOnTap&&a(!K());return!1});
var m={};return _.l("yt-description-preview-view-model",{el:_.VX(_.mR(function(){return F().rendererContext})),
class:_.tx("ytDescriptionPreviewViewModelHost",B,(m.ytDescriptionPreviewViewModelClickable=function(){var L;return!((L=_.Q(F().rendererContext,_.Xj))==null||!L.onTap)},m.ytDescriptionPreviewViewModelIsOverlay=D,m)),
"on:click":G},_.l(_.E,{cond:function(){return F().description},
then:function(L){return _.l(_.E,{cond:K,then:function(){var W={};return _.l("div",{class:_.tx("ytDescriptionPreviewViewModelDescription",(W.ytDescriptionPreviewViewModelDescriptionMediumText=R,W))},_.l(_.Wd,{text:L}))},
else:function(){return _.l($xa,{text:L,alwaysShowTruncationText:N,truncationText:y,maxLines:function(){var W;return(W=u==null?void 0:u())!=null?W:F().maxLines},
textStyle:q,accessibilityLabel:h,textSize:U})}})}}))},"nd");
_.GC.idomCompat=!0;var e5q=_.Y(function(G){var B=_.gJ(function(u){var R;(R=G.onClick)==null||R.call(G,u)}),F={},D={};
return _.l("yt-shelf-header-layout",{class:_.tx("yt-shelf-header-layout",(F["yt-shelf-header-layout--disable-horizontal-padding"]=G.disableHorizontalPadding,F["yt-shelf-header-layout--disable-vertical-padding"]=G.disableVerticalPadding,F["yt-shelf-header-layout--responsive"]=G.useResponsiveLayout,F["yt-shelf-header-layout--narrow"]=function(){var u,R;return((u=G.useResponsiveLayout)==null?void 0:u.call(G))&&((R=G.forceSmallLayout)==null?void 0:R.call(G))},F["yt-shelf-header-layout--is-overlay"]=G.isOverlay,
F["yt-shelf-header-layout--tappable"]=G.isInteractive,F["yt-shelf-header-layout--optional-medium-layout-padding"]=G.useUpdatedPadding,F)),
"on:click":B,tabindex:function(){var u;return((u=G.isInteractive)==null?0:u.call(G))?0:void 0}},_.l("div",{class:"yt-shelf-header-layout__header-row"},_.l(_.E,{cond:G.leadingIcon,
then:function(u){return _.l("div",{class:"yt-shelf-header-layout__leading-icon"},_.l(_.Pr,{icon:u}))},
else:function(){return _.l(_.E,{cond:G.hasLeadingImage,then:function(){var u,R={};return _.l("div",{class:_.tx("yt-shelf-header-layout__leading-image",(R["yt-shelf-header-layout__leading-image--circular-image"]=G.circularImage,R))},(u=G.leadingImage)==null?void 0:u.call(G))}})}}),_.l("div",{class:"yt-shelf-header-layout__label-container"},_.l(_.E,{cond:G.hasSuperlabel,
then:function(){var u;return _.l("div",{class:"yt-shelf-header-layout__superlabel"},(u=G.superlabel)==null?void 0:u.call(G))}}),_.l("div",{class:"yt-shelf-header-layout__title-row"},_.l(Oqy,{text:G.title,
className:_.tx("yt-shelf-header-layout__title",(D["yt-shelf-header-layout__title--small-title"]=G.forceSmallLayout,D)),tagLevel:G.tagLevel}),_.l(_.E,{cond:G.hasDetail,then:function(){var u;return _.l("div",{class:"yt-shelf-header-layout__detail"},(u=G.detail)==null?void 0:u.call(G))}})),_.l(_.E,{cond:G.hasSublabel,
then:function(){var u;return _.l("div",{class:"yt-shelf-header-layout__sublabel"},(u=G.sublabel)==null?void 0:u.call(G))}})),_.l(_.E,{cond:G.hasTrailingActions,
then:function(){var u;return _.l("div",{class:"yt-shelf-header-layout__trailing-actions"},(u=G.trailingActions)==null?void 0:u.call(G))}})),_.l(_.E,{cond:G.hasBottomAccessory,
then:function(){var u;return _.l("div",{class:"yt-shelf-header-layout__bottom-accessory"},(u=G.bottomAccessory)==null?void 0:u.call(G))}}))},"od");
e5q.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var Oqy=_.Y(function(G){var B=G.text;var F=G.className;var D=G.tagLevel;return _.l(_.LH,null,_.l(_.Xm,{when:function(){return(D==null?void 0:D())===0}},function(){return _.l("h2",{class:F},B())}),_.l(_.Xm,{when:function(){return(D==null?void 0:D())===1}},function(){return _.l("h3",{class:F},B())}),_.l(_.Xm,{when:function(){return(D==null?void 0:D())===2}},function(){return _.l("h4",{class:F},B())}),_.l(_.Qc,null,function(){return _.l("h2",{class:F},B())}))},"pd");var bqN,$eN,z5v;_.BC=_.Y(function(G){var B=G.className;var F=G.data;var D=G.disableHorizontalPadding;var u=G.disableVerticalPadding;var R=G.forceSmallLayout;var N=G.useResponsiveLayout;var y=G.isOverlay;G=G.useUpdatedPadding;return _.l("yt-section-header-view-model",{class:_.tx("ytSectionHeaderViewModelHost",B),style:_.xN({"background-color":function(){return Fp(F().backgroundColor)?_.Kp(Fp(F().backgroundColor)):void 0}})},_.l(e5q,{hasDetail:!1,
title:function(){return _.l(_.Wd,{text:function(){return F().headline}})},
hasTitle:!0,sublabel:function(){return _.l($eN,{data:F})},
hasSublabel:function(){return!!F().sublabel||!!F().bottomBadge},
superlabel:function(){return _.l(z5v,{data:F})},
hasSuperlabel:function(){return!!F().superlabel||!!F().topBadge},
leadingImage:function(){return _.l(bqN,{leadingAccessory:function(){return F().leadingAccessory}})},
hasLeadingImage:function(){return!!F().leadingAccessory},
trailingActions:function(){return _.l(_.uR,{data:function(){return F().trailingActions}},{flexibleActionsViewModel:_.KL})},
hasTrailingActions:function(){return!!F().trailingActions},
disableHorizontalPadding:function(){return(D==null?void 0:D())||F().disableHorizontalPadding},
disableVerticalPadding:u,forceSmallLayout:R,useResponsiveLayout:N,isOverlay:y,isInteractive:function(){return!!_.Kh(F().rendererContext)},
onClick:function(U){if(_.ax(F().rendererContext)){var q=_.Kh(F().rendererContext);q&&_.QX(q,{form:{element:U.target,event:U}})}},
bottomAccessory:function(){return _.l(_.uR,{data:function(){return F().bottomAccessory}},{descriptionPreviewViewModel:function(U){return _.l(_.GC,{data:U.data,
useMediumText:!0})},
commonMarkViewModel:function(U){U=U.data;var q;return _.l(_.GJ,null,(q=_.te().resolve(_.fH(tuq)))==null?void 0:q({data:U}))}})},
hasBottomAccessory:function(){return!!F().bottomAccessory},
useUpdatedPadding:G}))},"qd");
bqN=_.Y(function(G){var B=G.leadingAccessory;return _.l(_.GJ,null,_.l(_.E,{cond:function(){var F;return(F=B().image)!=null?F:_.kP(B().themedImage)},
then:function(F){return _.l(_.vr,{data:F,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.l(_.E,{cond:function(){return _.Q(B().avatar,_.QH)},
then:function(F){return _.l(_.h8,{data:F})}}))},"rd");
$eN=_.Y(function(G){var B=G.data;return _.l(_.GJ,null,_.l(_.E,{cond:function(){return _.Q(B().bottomBadge,oVv)},
then:function(F){var D={};return _.l(_.vK,{data:F,class:_.tx((D.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!F()&&!!B().sublabel},D))})}}),_.l(_.E,{cond:function(){return B().sublabel},
then:function(F){return _.l(_.Wd,{text:F})}}))},"sd");
z5v=_.Y(function(G){var B=G.data;return _.l(_.GJ,null,_.l(_.E,{cond:function(){return _.Q(B().topBadge,oVv)},
then:function(F){var D={};return _.l(_.vK,{data:F,class:_.tx((D.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!F()&&!!B().superlabel},D))})}}),_.l(_.E,{cond:function(){return B().superlabel},
then:function(F){return _.l(_.Wd,{text:F})}}))},"td");_.YN(_.BC,"yt-section-header-view-model",{props:{data:_.Hd,className:_.Hd,disableHorizontalPadding:_.Hd,disableVerticalPadding:_.Hd,forceSmallLayout:_.Hd,useResponsiveLayout:_.Hd,isOverlay:_.Hd,useUpdatedPadding:_.Hd}});_.UR("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var F4=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.r(F4,_.p);_.w=F4.prototype;_.w.attached=function(){this.requestElementsPerRow()};
_.w.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"}}}};
_.w.onDataChange=function(){var G=this;_.ft(this,function(){G.updateItemVisibility()})};
_.w.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G,this.updateItemVisibility())};
_.w.updateItemVisibility=function(){var G=this;this.data&&this.data.panels&&_.IF(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(B,F){B.hidden=F>G.elementsPerRow-1})};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
F4.prototype.onDataChange=F4.prototype.onDataChange;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],F4.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],F4.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],F4.prototype,"data",void 0);_.c([_.v({value:3}),_.I("design:type",Number)],F4.prototype,"elementsPerRow",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],F4.prototype,"onDataChange",null);_.c([_.mC({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],F4);
_.d(F4,"ytd-primetime-promo-renderer",function(){if(kgL!==void 0)return kgL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return kgL=G},{mode:1});var V1N;var DP=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return G};
_.r(DP,_.p);DP.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
DP.prototype.handleButtonRefreshAction=function(G){if(G=_.Q(G,gEG))this.set("data.button",G.membershipButton),this.notifyPath("data.button")};
_.ZN.Object.defineProperties(DP.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.avatars)==null?void 0:B.slice(0,8))||[]}}});
_.c([_.v(),_.I("design:type",Object)],DP.prototype,"data",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],DP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DP.prototype,"rendererBehavior",void 0);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],DP.prototype,"avatars",null);
_.c([_.mC({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],DP);
_.d(DP,"ytd-recognition-shelf-renderer",function(){if(V1N!==void 0)return V1N;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return V1N=G},{mode:1});var vq7;var oqq;var ut=function(){var G=_.p.apply(this,arguments)||this;G.modernButtons=_.X("web_modern_buttons");return G};
_.r(ut,_.p);_.w=ut.prototype;
_.w.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.w.dataChanged=function(){this.collapsed=!0};
_.w.computeVisibleItems=function(G,B){return G!==void 0&&G.items?B?G.items.slice(0,this.data.collapsedItemCount):G.items:[]};
_.w.computeHideShowMore=function(G,B,F){return G>=B||!F};
_.w.computeHideShowAll=function(G,B,F){return!(G&&B)||F};
_.w.onMoreClick=function(){this.collapsed=!1};
_.ZN.Object.defineProperties(ut.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.X("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.xf("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.X("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
ut.prototype.dataChanged=ut.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ut.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],ut.prototype,"isSearch",void 0);
_.c([_.v({computed:"computeVisibleItems(data,collapsed)"}),_.I("design:type",Array)],ut.prototype,"visibleItems",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],ut.prototype,"collapsed",void 0);_.c([_.v({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.I("design:type",Boolean)],ut.prototype,"hideShowMore",void 0);
_.c([_.v({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.I("design:type",Boolean)],ut.prototype,"hideShowAll",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],ut.prototype,"modernButtons",void 0);_.c([_.O("isSearch"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ut.prototype,"typographyBump",null);
_.c([_.O("isSearch"),_.I("design:type",Object),_.I("design:paramtypes",[])],ut.prototype,"lockupExperiments",null);_.c([_.O("isSearch"),_.I("design:type",String),_.I("design:paramtypes",[])],ut.prototype,"thumbnailWidth",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ut.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],ut);
_.d(ut,"ytd-vertical-list-renderer",function(){if(oqq!==void 0)return oqq;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return oqq=G},{mode:1});var M1L=_.vP(["#"]);_.UR("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Rj=function(){var G=_.p.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.r(Rj,_.p);_.w=Rj.prototype;
_.w.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"}}}};
_.w.computeThumbnailStyle=function(G){return G||""};
_.w.computePlaceAnnotationUnderTitle=function(){var G;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((G=this.data)==null?void 0:G.thumbnailStyle)||"")};
_.w.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.rlM(M1L)};
_.w.computeIsPromoShelf=function(G){var B;return(G=G==null?void 0:(B=G[0])==null?void 0:B.metadataBadgeRenderer)?G.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.w.computePlaceBadgeBesideTitle=function(G){var B;return(G==null?0:(B=G[0])==null?0:B.metadataBadgeRenderer)?!this.computeIsPromoShelf(G):!1};
_.w.computeMenuIcon=function(G){return this.computeIsPromoShelf(G)?"yt-icons:more_vert":"yt-icons:more"};
_.w.onDataChange=function(){var G,B;((G=this.data)==null?0:(B=G.content)==null?0:B.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.w.onLockupRequested=function(G){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&G.detail&&G.detail.videoIds){for(var B=this.data.content.gridRenderer.items,F=new Set,D=_.C(G.detail.videoIds),u=D.next();!u.done;u=D.next())F.add(u.value);G.detail.returnValue=B.filter(function(R){return R.gridVideoRenderer&&R.gridVideoRenderer.videoId&&F.has(R.gridVideoRenderer.videoId)}).map(function(R){return R.gridVideoRenderer})}};
_.w.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Rj.prototype.onLockupRequested=Rj.prototype.onLockupRequested;Rj.prototype.onDataChange=Rj.prototype.onDataChange;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Rj.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Rj.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],Rj.prototype,"ironResizableBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Rj.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Rj.prototype,"isSearch",void 0);_.c([_.v(),_.I("design:type",Object)],Rj.prototype,"isConstrainedList",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("kevlar_fluid_dismiss")}}),
_.I("design:type",Boolean)],Rj.prototype,"enableFluidDismiss",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.I("design:type",String)],Rj.prototype,"thumbnailStyle",void 0);_.c([_.v({computed:"computeMenuIcon(data.badges)"}),_.I("design:type",String)],Rj.prototype,"menuIcon",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.I("design:type",Boolean)],Rj.prototype,"featuredPromo",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Rj.prototype,"onDataChange",null);_.c([_.Pm("yt-lockup-requested"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Rj.prototype,"onLockupRequested",null);_.c([_.mC({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Rj);
_.d(Rj,"ytd-shelf-renderer",function(){if(vq7!==void 0)return vq7;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vq7=G},{mode:1});var ptv;var wv=function(){return _.p.apply(this,arguments)||this};
_.r(wv,_.p);wv.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.ZN.Object.defineProperties(wv.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wv.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],wv.prototype,"isPlaylist",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],wv.prototype,"isClipList",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],wv.prototype,"isPlaylistPageWithFilters",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],wv.prototype,"hasTitle",null);_.c([_.v(),_.O("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.I("design:type",Object),_.I("design:paramtypes",[])],wv.prototype,"isRightAligned",null);
_.c([_.mC({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],wv);
_.d(wv,"ytd-sort-filter-header-renderer",function(){if(ptv!==void 0)return ptv;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ptv=G},{mode:1});var YZq;var CO=function(){var G=_.p.apply(this,arguments)||this;G.enableRightArrowHidden=_.X("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return G};
_.r(CO,_.p);CO.prototype.attached=function(){var G=this;this.enableRightArrowHidden&&(this.JSC$16873_throttledOnResize=new _.s_(function(){var B;(B=G.ytdHorizontalListBehavior)==null||B.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var B;
(B=G.JSC$16873_throttledOnResize)==null||B.fire()}),this.resizeObserver.observe(this.hostElement))};
CO.prototype.detached=function(){if(this.enableRightArrowHidden){var G;(G=this.resizeObserver)==null||G.disconnect();var B;(B=this.JSC$16873_throttledOnResize)==null||B.dispose()}};
CO.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]]"}}}}}};
CO.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.ZN.Object.defineProperties(CO.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.X("enable_creator_details_shelf_m2")){var G=[],B;((B=this.data)==null?0:B.creatorVideosButton)&&G.push(this.data.creatorVideosButton);var F;((F=this.data)==null?0:F.creatorAboutButton)&&G.push(this.data.creatorAboutButton);B=_.C(this.data.creatorCustomUrlButtons||[]);for(F=B.next();!F.done;F=B.next())G.push(F.value);return G}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.X("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],CO.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],CO.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],CO.prototype,"engagementPanel",void 0);
_.c([_.v(),_.I("design:type",Object)],CO.prototype,"enableRightArrowHidden",void 0);_.c([_.O("enableRightArrowHidden","atEnd"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],CO.prototype,"hideRightArrow",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],CO.prototype,"creatorCustomUrlButtons",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data","creatorCustomUrlButtons"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],CO.prototype,"showCreatorCustomUrlButtons",null);_.c([_.O("showCreatorCustomUrlButtons"),_.I("design:type",Number),_.I("design:paramtypes",[])],CO.prototype,"channelAvatarSize",null);_.c([_.mC({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],CO);
_.d(CO,"ytd-video-description-infocards-section-renderer",function(){if(YZq!==void 0)return YZq;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return YZq=G},{mode:2});var AdN;var Nq=function(){return _.p.apply(this,arguments)||this};
_.r(Nq,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Nq.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.infoIcon)"}),_.I("design:type",Object)],Nq.prototype,"infoIcon",void 0);_.c([_.mC({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Nq);
_.d(Nq,"ytd-eom-settings-disclaimer-renderer",function(){if(AdN!==void 0)return AdN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return AdN=G},{mode:1});var dey;var ya=function(){return _.p.apply(this,arguments)||this};
_.r(ya,_.p);_.ZN.Object.defineProperties(ya.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.suppressPaddingDisclaimer)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ya.prototype,"componentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ya.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ya.prototype,"suppressPaddingDisclaimer",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],ya);
_.d(ya,"ytd-product-list-header-renderer",function(){if(dey!==void 0)return dey;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dey=G},{mode:1});var JdL;var nO=function(){return _.p.apply(this,arguments)||this};
_.r(nO,_.p);nO.prototype.computeThumbnailStyle=function(G){if(G&&(G=_.hV(G)))return"background-color:"+G+";"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nO.prototype,"rendererBehaviors",void 0);_.c([_.v(),_.I("design:type",Object)],nO.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],nO);
_.d(nO,"ytd-hashtag-tile-renderer",function(){if(JdL!==void 0)return JdL;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JdL=G},{mode:1});var cdy;var lt=function(){return _.p.apply(this,arguments)||this};
_.r(lt,_.p);lt.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lt.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],lt);
_.d(lt,"ytd-sponsorships-alert-renderer",function(){if(cdy!==void 0)return cdy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cdy=G},{mode:1});var TFw;var UP=function(){return _.p.apply(this,arguments)||this};
_.r(UP,_.p);UP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.ZN.Object.defineProperties(UP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.X("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.c([_.k(_.aJ),_.I("design:type",Object)],UP.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],UP.prototype,"ytdLockupBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.c([_.v({selector:_.mA}),_.I("design:type",Object)],UP.prototype,"isGridViewEnabled",void 0);
_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UP.prototype,"watchFeedBigThumbs",null);_.c([_.O("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.I("design:type",String),_.I("design:paramtypes",[])],UP.prototype,"thumbnailWidth",null);_.c([_.v(),_.I("design:type",Object)],UP.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],UP);
_.d(UP,"ytd-compact-movie-renderer",function(){if(TFw!==void 0)return TFw;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return TFw=G},{mode:1});var IEU;var fEt;var t1N=_.v5("HTML_DIR")==="rtl",qq=function(){var G=_.p.apply(this,arguments)||this;G.engagementPanel=!1;G.maxLines=2;G.expandButtonOffset=0;G.showExpandButton=!1;G.isTruncated=!1;G.isExpanded=!1;G.currentSnippetType=2;G.alwaysShowExpandButton=!1;G.JSC$16890_lastWidth=NaN;G.observer=null;G.left=0;G.right=0;G.mid=0;G.longestSnippetLength=0;G.isFinalSnippet=!1;G.isFirstMutation=!1;G.isResetMutation=!1;G.OVERFLOW_THRESHOLD=5;return G};
_.r(qq,_.p);_.w=qq.prototype;_.w.onClick=function(G){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;if((B=window.getSelection())==null||!B.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.w.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.w.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.w.updateTextOnSnippetTypeChange=function(){_.X("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.w.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.w.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.em(new _.Uf("AttributedSnippet is empty when the description is not empty",this.text))};
_.w.mutationCallback=function(){if(this.observer!=null){var G=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var B=Math.floor(G*this.maxLines/8);this.setSnippetText(this.text,B);B!==0||this.attributedTextIsEmpty()||_.em(new _.Uf("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;G=G*this.maxLines/8;this.left=0;var F;this.right=Math.min(G*2,(F=(B=this.simpleText)==null?void 0:B.length)!=null?F: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)}}};
_.w.mutationObserve=function(G){var B=this;this.observer||(this.observer=new MutationObserver(function(){B.mutationCallback()}));
this.observer.observe(G,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.w.attached=function(){var G=this;_.ft(this,function(){G.resize()})};
_.w.isExpandedChanged=function(){_.cZ(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.w.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)};
_.w.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var G="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((t1N?"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",G);this.snippetContainer.style.setProperty("mask-image",
G)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(t1N?"right":"left",this.expandButtonOffset+"px")};
_.w.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.w.setSnippetText=function(G,B){G||(G={});if(_.$N(G)){var F=eF(G,B);F.attachmentRuns||F.commandRuns||F.decorationRuns||F.styleRuns||F.alignment||F.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:eF(G,B),headerRuns:E8s(B,this.headerRuns)},this.currentSnippetType=0):_.em(new _.Uf("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=kN(G.content||"",B),this.currentSnippetType=2)}else{a:{F=oc8(G,B);if(F.runs){F=_.C(F.runs);for(var D=
F.next();!D.done;D=F.next())if(D=D.value,D.bold||D.deemphasize||D.italics||D.strikethrough||D.textColor||D.navigationEndpoint||_.Q(D,Kk)){F=!0;break a}}F=!1}F?this.formattedSnippetText?(this.formattedSnippetText.text=oc8(G,B),this.currentSnippetType=1):_.em(new _.Uf("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=kN(_.zx(G),B),this.currentSnippetType=2)}};
_.w.attributedSnippetIsEmpty=function(){var G=this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl:this.plainSnippetText;return _.X("web_wiz_attributed_string")?G.innerText.length===0:G.childNodes.length===0};
_.w.attributedTextIsEmpty=function(){var G=this.text;if(!_.$N(G))return!0;var B;return((B=G.content)==null?void 0:B.length)===0?!0:!1};
_.w.resize=function(G){if(this.snippetText){if(G===void 0?0:G)this.JSC$16890_lastWidth=NaN;var B=this.hostElement.offsetWidth;if(B!==this.JSC$16890_lastWidth&&!this.isExpanded)if(this.JSC$16890_lastWidth=B,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;G=0;var F,D;B=Math.min(B*this.maxLines/8*2,(D=(F=this.simpleText)==null?void 0:F.length)!=null?D:0)-1;for(F=0;G<=B;)D=Math.floor(G+(B-G)/2),this.setSnippetText(this.text,D),this.isOverflowing()?B=D-1:(G=D+1,F=D);this.setSnippetText(this.text,F);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.w.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.w.onExpandClick=function(){var G=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.X("inline_expander_reset_focus_killswitch")||_.ft(this,function(){var B;((B=_.te().resolve(_.fH(_.Mu)))==null?0:B.isKeyBoardInUse())&&_.dg(G.hostElement)});
_.cZ(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.w.onCollapseClick=function(){this.collapse();_.cZ(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.w.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.w.computeExpandButtonOffset=function(){var G=this.expandSizer;return G?t1N?G.offsetParent?G.offsetParent.offsetWidth-G.offsetWidth-G.offsetLeft:0:G.offsetLeft:0};
_.ZN.Object.defineProperties(qq.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.$N(this.text)?this.text.content||"":_.zx(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 _.$N(this.text)?!0:this.text&&_.X("web_replace_formatted_with_attributed_string")&&JkI(this.text)?(this.text=_.hx(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}}});
qq.prototype.onTextChanged=qq.prototype.onTextChanged;qq.prototype.updateMaskAndExpandButtonOffset=qq.prototype.updateMaskAndExpandButtonOffset;qq.prototype.updateSnippetContainerMaxHeight=qq.prototype.updateSnippetContainerMaxHeight;qq.prototype.isExpandedChanged=qq.prototype.isExpandedChanged;qq.prototype.updateTextOnSnippetTypeChange=qq.prototype.updateTextOnSnippetTypeChange;qq.prototype.updateIsFormattedExpanded=qq.prototype.updateIsFormattedExpanded;qq.prototype.updateIsAttributedExpanded=qq.prototype.updateIsAttributedExpanded;
qq.prototype.onClick=qq.prototype.onClick;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],qq.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qq.prototype,"text",void 0);_.c([_.v(),_.I("design:type",Array)],qq.prototype,"headerRuns",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qq.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Object)],qq.prototype,"maxLines",void 0);
_.c([_.v(),_.I("design:type",String)],qq.prototype,"expandLabel",void 0);_.c([_.v(),_.I("design:type",String)],qq.prototype,"collapseLabel",void 0);_.c([_.v(),_.I("design:type",Object)],qq.prototype,"expandCommand",void 0);_.c([_.v(),_.I("design:type",Object)],qq.prototype,"expandButtonOffset",void 0);_.c([_.O("text"),_.I("design:type",String),_.I("design:paramtypes",[])],qq.prototype,"simpleText",null);
_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],qq.prototype,"onClick",null);_.c([_.O("text","isExpanded"),_.I("design:type",Object),_.I("design:paramtypes",[])],qq.prototype,"expandedText",null);_.c([_.O("headerRuns","isExpanded"),_.I("design:type",Object),_.I("design:paramtypes",[])],qq.prototype,"expandedHeaderRuns",null);
_.c([_.O("text"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],qq.prototype,"hasAttributedStringText",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qq.prototype,"showExpandButton",void 0);_.c([_.O("collapseLabel","isExpanded"),_.I("design:type",Object),_.I("design:paramtypes",[])],qq.prototype,"showCollapseButton",null);_.c([_.v(),_.I("design:type",Object)],qq.prototype,"isTruncated",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qq.prototype,"isExpanded",void 0);_.c([_.v(),_.I("design:type",Boolean)],qq.prototype,"isAttributedExpanded",void 0);_.c([_.Ga("isExpanded","hasAttributedStringText"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"updateIsAttributedExpanded",null);_.c([_.v(),_.I("design:type",Boolean)],qq.prototype,"isFormattedExpanded",void 0);
_.c([_.Ga("isExpanded","hasAttributedStringText"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"updateIsFormattedExpanded",null);_.c([_.v(),_.I("design:type",Number)],qq.prototype,"currentSnippetType",void 0);_.c([_.O("currentSnippetType"),_.I("design:type",Object),_.I("design:paramtypes",[])],qq.prototype,"useAttributedSnippet",null);
_.c([_.O("currentSnippetType"),_.I("design:type",Object),_.I("design:paramtypes",[])],qq.prototype,"useFormattedSnippet",null);_.c([_.O("currentSnippetType"),_.I("design:type",Object),_.I("design:paramtypes",[])],qq.prototype,"usePlainSnippet",null);_.c([_.v(),_.I("design:type",Object)],qq.prototype,"alwaysShowExpandButton",void 0);_.c([_.Ga("currentSnippetType"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"updateTextOnSnippetTypeChange",null);
_.c([_.v(),_.I("design:type",Object)],qq.prototype,"attributedSnippetText",void 0);_.c([_.iA("#snippet"),_.I("design:type",HTMLElement)],qq.prototype,"snippetContainer",void 0);_.c([_.iA("#snippet-text"),_.I("design:type",HTMLElement)],qq.prototype,"snippetText",void 0);_.c([_.iA("#plain-snippet-text"),_.I("design:type",HTMLElement)],qq.prototype,"plainSnippetText",void 0);_.c([_.iA("#formatted-snippet-text"),_.I("design:type",Object)],qq.prototype,"formattedSnippetText",void 0);
_.c([_.iA("#attributed-snippet-text"),_.I("design:type",HTMLElement)],qq.prototype,"attributedSnippetTextEl",void 0);_.c([_.iA("#expand"),_.I("design:type",HTMLElement)],qq.prototype,"expandButton",void 0);_.c([_.iA("#expand-sizer"),_.I("design:type",HTMLElement)],qq.prototype,"expandSizer",void 0);_.c([_.Ry("isExpanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"isExpandedChanged",null);
_.c([_.Ga("isExpanded","maxLines"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"updateSnippetContainerMaxHeight",null);_.c([_.Ga("isTruncated","showExpandButton","expandButtonOffset"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"updateMaskAndExpandButtonOffset",null);
_.c([_.Ry("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qq.prototype,"onTextChanged",null);_.c([_.mC({is:"ytd-text-inline-expander",disableElementRegistration:!0})],qq);
_.d(qq,"ytd-text-inline-expander",function(){if(fEt===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);fEt=G}G=fEt;return G},{mode:2});var EP=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return G};
_.r(EP,_.p);EP.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
EP.prototype.handleUpdateDescriptionAction=function(G){if(G=_.Q(G,_.N4a))if(G.attributedDescription)this.set("data.attributedDescriptionBodyText",G.attributedDescription);else if(G.description){var B;((B=this.data)==null?0:B.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.hx(G.description)):this.set("data.descriptionBodyText",G.description)}};
_.ZN.Object.defineProperties(EP.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.attributedDescriptionBodyText)||!((B=this.data)==null||!B.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.collapsedLineCount){var B;return(B=this.data)==null?void 0:B.collapsedLineCount}G=_.sD("web_watch_description_collapsed_default_lines",12);if(_.X("ww_desc_line_page_size_ks"))return G;B=Math.round(_.Bm().height*_.sD("web_watch_description_screen_height_percentage",.5)/20);return Math.max(B,G)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return(F=(G=this.data)==null?void 0:G.descriptionBodyText)!=null?F:(B=this.data)==null?void 0:B.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.sourceAttributions}}});
EP.prototype.panelContentVisibleChanged=EP.prototype.panelContentVisibleChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],EP.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EP.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Boolean)],EP.prototype,"panelContentVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],EP.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],EP.prototype,"shortsPanel",void 0);_.c([_.iA("#inline-expander"),_.I("design:type",Object)],EP.prototype,"inlineExpander",void 0);
_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],EP.prototype,"panelContentVisibleChanged",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],EP.prototype,"hasDescriptionText",null);_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],EP.prototype,"collapsedLines",null);
_.c([_.O("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.I("design:type",Object),_.I("design:paramtypes",[])],EP.prototype,"descriptionText",null);_.c([_.O("data","data.headerRuns"),_.I("design:type",Object),_.I("design:paramtypes",[])],EP.prototype,"headerRuns",null);_.c([_.O("data","data.sourceAttributions"),_.I("design:type",Object),_.I("design:paramtypes",[])],EP.prototype,"sourceAttributions",null);
_.c([_.mC({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],EP);
_.d(EP,"ytd-expandable-video-description-body-renderer",function(){if(IEU!==void 0)return IEU;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IEU=G},{mode:2});var Zqt;var gqs=_.Y(function(G){var B=G.data;return _.l("factoid-renderer",{class:"ytwFactoidRendererHost"},_.l("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return B().accessibilityText}},_.l("span",{class:"ytwFactoidRendererValue"},_.l(_.Wd,{text:function(){return B().value}})),_.l("span",{class:"ytwFactoidRendererLabel"},_.l(_.Wd,{text:function(){return B().label}}))))},"ud");_.YN(gqs,"factoid-renderer",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;return _.l("upload-time-factoid-renderer",null,_.l(_.uR,{data:function(){return B().factoid}},{factoidRenderer:gqs}))},"vd"),"upload-time-factoid-renderer",{props:{data:_.oh}});_.YN(_.Y(function(G){var B=G.data;return _.l("view-count-factoid-renderer",null,_.l(_.uR,{data:function(){return B().factoid}},{factoidRenderer:gqs}))},"wd"),"view-count-factoid-renderer",{props:{data:_.oh}});var hv=function(){var G=_.p.apply(this,arguments)||this;G.shortsPanel=!1;G.engagementPanel=!1;G.watchWhileSdp=_.X("shorts_desktop_watch_while_sdp");return G};
_.r(hv,_.p);hv.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"}}}}};
_.ZN.Object.defineProperties(hv.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var G;return(G=this.data)==null?void 0:G.channel}}});
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],hv.prototype,"componentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hv.prototype,"shortsPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hv.prototype,"engagementPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hv.prototype,"watchWhileSdp",void 0);_.c([_.O("shortsPanel","engagementPanel","data.channel"),_.I("design:type",Object),_.I("design:paramtypes",[])],hv.prototype,"showChannelInfo",null);_.c([_.mC({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],hv);
_.d(hv,"ytd-video-description-header-renderer",function(){if(Zqt!==void 0)return Zqt;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Zqt=G},{mode:1});var SZG;var KO=function(){return _.p.apply(this,arguments)||this};
_.r(KO,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],KO.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],KO.prototype,"noPadding",void 0);_.c([_.v(),_.I("design:type",Object)],KO.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],KO);
_.d(KO,"ytd-list-item-view-model",function(){if(SZG!==void 0)return SZG;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return SZG=G},{mode:1});var sOU;var xew;var PSv;var GpL;var aj=function(){var G=_.p.apply(this,arguments)||this;G.adaptiveFullWidth=!1;G.modernButtons=_.X("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return G};
_.r(aj,_.p);aj.prototype.handleSetTimestamp_=function(G){this.data&&this.data.shortUrl&&(_.IF(this.hostElement).querySelector("#share-url").value=G.isSet?_.G2(this.data.shortUrl,"t",G.timestamp):this.data.shortUrl)};
aj.prototype.handleSignalActionCopyShareUrl_=function(G,B){(_.X("killswitch_copy_link_target_check")||_.IF(this.hostElement).querySelector("#copy-button")===B)&&this.copyUrlToClipboard()};
aj.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.IF(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
aj.prototype.computeStyle_=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],aj.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aj.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.I("design:type",String)],aj.prototype,"rendererStyle",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],aj.prototype,"adaptiveFullWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],aj.prototype,"modernButtons",void 0);_.c([_.v(),_.I("design:type",Object)],aj.prototype,"buttonOverrides",void 0);_.c([_.ay({is:"yt-copy-link-renderer",disableElementRegistration:!0})],aj);
_.d(aj,"yt-copy-link-renderer",function(){if(GpL===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;PSv===void 0&&(PSv=document.createElement("template"));var D=PSv;F.call(B,D.content.cloneNode(!0),G.content.firstChild);GpL=G}G=GpL;return G},{mode:2});_.UR("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var mp=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return G};
_.r(mp,_.p);_.w=mp.prototype;_.w.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.w.attached=function(){this.keyboardFocused=!1};
_.w.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var G=_.te().resolve(_.fH(_.Mu));G&&(this.keyboardFocused=G.isKeyBoardInUse())}};
_.w.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.w.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}};
_.w.onChange_=function(){if(this.data){var G=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;G&&this.ytComponentBehavior.resolveCommand(G);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.w.handleUpdateToggleAction_=function(G){(G=_.Q(G,W$P))&&this.data&&G.targetId==this.data.targetId&&this.set("data.toggled",G.toggled)};
_.w.toBoolean_=function(G){return!!G};
_.w.reset=function(){};
_.w.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("data-changed",this.data))};
_.w.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
mp.prototype.dataChangedForBinding=mp.prototype.dataChangedForBinding;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],mp.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],mp.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],mp.prototype,"data",void 0);_.c([_.v({computed:"computeDescription_(data.*)"}),_.I("design:type",Object)],mp.prototype,"description_",void 0);_.c([_.v({value:function(){return!!_.te().resolve(_.fH(_.Mu))&&_.X("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.I("design:type",Boolean)],mp.prototype,"useKeyboardFocused",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],mp.prototype,"keyboardFocused",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mp.prototype,"dataChangedForBinding",null);_.c([_.ay({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],mp);
_.d(mp,"yt-toggle-form-field-renderer",function(){if(xew===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;sOU===void 0&&(sOU=document.createElement("template"));var D=sOU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);xew=G}G=xew;return G},{mode:2});var BDP;var ifq;var X4=function(){var G=_.p.apply(this,arguments)||this;G.isDarkTheme=!1;G.isSearch=!1;G.noTopMargin=_.X("kevlar_watch_no_top_margin");G.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 G};
_.r(X4,_.p);_.w=X4.prototype;_.w.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}}}}}};
_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.w.dataChanged=function(){var G=this.getSelectedIndex();if(G>0)this.selected=G;else{this.selected=0;var B,F;(B=this.ytScrollableChipCloudBehavior)==null||(F=B.reset)==null||F.call(B)}};
_.w.getSelectedIndex=function(){var G;if((G=this.data)==null||!G.chips)return-1;G=-1;for(var B,F=0;F<((B=this.data)==null?void 0:B.chips.length);F++){var D=void 0,u=void 0;if((D=this.data)==null?0:(u=D.chips[F].chipCloudChipRenderer)==null?0:u.isSelected){G=F;break}}return G};
_.w.onResize=function(){var G=this.ytScrollableChipCloudBehavior;_.ft(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.ft(G,G.setButtonsState)};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.handleRelatedChipCommand=function(G,B){G=this.JSC$16916_chipsSelector.indexOf(B);G!==-1&&this.JSC$16916_chipsSelector.selectIndex(G)};
_.w.handleChipCloudChipSelectAction=function(G){G=this.JSC$16916_chipsSelector.indexOf(G);G>-1&&this.JSC$16916_chipsSelector.selectIndex(G)};
_.w.handleChipCloudChipDeselectAction=function(){var G=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16916_chipsSelector&&((G==null?0:G.continuationCommand)?_.fi(this.hostElement,[G]):(G==null?0:G.searchEndpoint)?this.ytComponentBehavior.resolveCommand(G):G&&_.tL(this.hostElement,[G],this.hostElement),this.JSC$16916_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.w.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
X4.prototype.onResize=X4.prototype.onResize;X4.prototype.dataChanged=X4.prototype.dataChanged;X4.prototype.isSearchChanged=X4.prototype.isSearchChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],X4.prototype,"actionHandlerBehavior",void 0);
_.c([_.k(_.Rc),_.I("design:type",Object)],X4.prototype,"ironResizableBehavior",void 0);_.c([_.k(),_.I("design:type",PO)],X4.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],X4.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],X4.prototype,"data",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],X4.prototype,"selected",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],X4.prototype,"isDarkTheme",void 0);_.c([_.v({value:160}),_.I("design:type",Number)],X4.prototype,"scrollDistance",void 0);_.c([_.v(),_.I("design:type",Object)],X4.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],X4.prototype,"noTopMargin",void 0);_.c([_.iA("#chips"),_.I("design:type",Object)],X4.prototype,"JSC$16916_chipsSelector",void 0);
_.c([_.Ga("isSearch"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],X4.prototype,"isSearchChanged",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],X4.prototype,"dataChanged",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],X4.prototype,"onResize",null);_.c([_.ay({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],X4);
_.d(X4,"yt-chip-cloud-renderer",function(){if(ifq===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;BDP===void 0&&(BDP=document.createElement("template"));var D=BDP;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ifq=G}G=ifq;return G},{mode:2});var Fly,DZq=function(){return Fly!==void 0?Fly:Fly=document.createElement("template")};
document.head.appendChild(DZq().content);var uos;var RET=document.head,wlU=RET.appendChild,C8L;if(uos===void 0){var NDt=document.createElement("template");_.H(NDt,"");NDt.content.insertBefore(DZq().content.cloneNode(!0),NDt.content.firstChild);uos=NDt}C8L=uos;wlU.call(RET,C8L.content);var ynw=_.Y(function(G){var B=G.data;return _.l("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.l("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.l("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.l(_.E,{cond:function(){return _.kP(B().image)},
then:function(F){return _.l("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.l(_.vr,{data:F,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.l("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.l(_.Wd,{text:function(){return B().subtitle}})))),_.l(_.E,{cond:function(){var F;
return(F=B())==null?void 0:F.hasBottomDivider},
then:function(){return _.l("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"xd");var nHy=_.Y(function(G){var B=G.data;return _.l("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.l("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.l(_.uR,{data:function(){var F;return(F=B().offerPlanDetailsItem)!=null?F:[]}},{offerPlanDetailsItemViewModel:function(F){return _.l("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.l(ynw,{data:F.data}))}})),_.l("div",null,_.l(_.E,{cond:function(){return B().hasBottomDivider},
then:function(){return _.l("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.l("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.l("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.l("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.l("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"yd");var lfv=_.Y(function(G){var B=G.data;G=_.C(_.qg(!1,void 0,"MrXxy"));var F=G.next().value,D=G.next().value,u=_.gJ(function(){D(!F());return!1}),R=function(){var N;
return(N=B().offerPlanDetailsContainer)!=null?N:[]};
return _.l("lp-complex-offer-card-details-view-model",null,_.l("div",null,_.l(_.E,{cond:function(){return F()},
then:function(){return _.l("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.l("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":u,"aria-expanded":F},_.l(_.Wd,{text:function(){return B().expandedTitle}})),_.l("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.l(_.uR,{data:R},{offerPlanDetailsContainerViewModel:function(N){return _.l("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.l(nHy,{data:N.data}))}})),_.l("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.l(_.Wd,{text:function(){return B().legalText}})))},
else:function(){return _.l("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":u,"aria-expanded":F},_.l(_.Wd,{text:function(){return B().collapsedTitle}}),_.l("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.l(_.Pr,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"zd");var UZq=_.Y(function(G){var B=G.data;return _.l("lp-complex-offer-card-option-view-model",null,_.l("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.l(_.E,{cond:function(){return B().topDividerText},
then:function(){return _.l("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.l("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.l("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.l("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.l(_.Wd,{text:function(){return B().topDividerText}}))))}}),_.l(_.E,{cond:function(){return B().description},
then:function(){return _.l("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.l(_.Wd,{text:function(){return B().description}}))}}),_.l(_.E,{cond:function(){return B().planPricingPrimary},
then:function(){return _.l("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.l(_.Wd,{text:function(){return B().planPricingPrimary}}))}}),_.l(_.E,{cond:function(){return B().planPricingSecondary},
then:function(){return _.l("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.l(_.Wd,{text:function(){return B().planPricingSecondary}}))}}),_.l(_.E,{cond:function(){return B().primaryButton},
then:function(){return _.l("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.l(_.uR,{data:function(){return B().primaryButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Ad");var qTt=_.Y(function(G){var B=G.data;var F=function(){var R;return((R=B())==null?void 0:R.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var D={},u={};return _.l("ytm-lp-complex-offer-card-view-model",null,_.l("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.l("div",{class:_.tx((G.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=F,G),"ytmLpComplexOfferCardViewModelCardContainer")},_.l(_.E,{cond:function(){var R;return(R=B())==null?void 0:R.bannerText},
then:function(){return _.l("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.l("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.l(_.Wd,{text:function(){return B().bannerText}})))}}),_.l(_.E,{cond:function(){return _.kP(B().logo)},
then:function(R){var N={};return _.l("div",{class:_.tx((N.ytmLpComplexOfferCardViewModelLogoAlignLeft=F,N),"ytmLpComplexOfferCardViewModelLogo")},_.l(_.vr,{data:R,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.l("div",{class:_.tx((D.ytmLpComplexOfferCardViewModelTitleAlignLeft=F,D),"ytmLpComplexOfferCardViewModelTitle")},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.E,{cond:function(){var R;
return(R=B())==null?void 0:R.subtitle},
then:function(){var R={};return _.l("div",{class:_.tx((R.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=F,R),"ytmLpComplexOfferCardViewModelSubtitle")},_.l(_.Wd,{text:function(){return B().subtitle}}))}}),_.l(_.E,{cond:function(){return B().planPricingPrimary},
then:function(){return _.l("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.l(_.Wd,{text:function(){return B().planPricingPrimary}}))}}),_.l(_.E,{cond:function(){return B().planPricingSecondary},
then:function(){return _.l("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.l(_.Wd,{text:function(){return B().planPricingSecondary}}))}}),_.l(_.E,{cond:function(){return B().purchaseButton},
then:function(){return _.l("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.l(_.uR,{data:function(){return B().purchaseButton}},{buttonViewModel:function(R){return _.l(_.cd,{data:R.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.l(_.E,{cond:function(){var R;
return(R=B())==null?void 0:R.offerOptions},
then:function(){return _.l("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.l(_.uR,{data:function(){return B().offerOptions}},{lpComplexOfferCardOptionViewModel:UZq}))}}),_.l("div",{class:_.tx((u.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=F,u),"ytmLpComplexOfferCardViewModelLegalText")},_.l(_.Wd,{text:function(){return B().legalText}})),_.l(_.E,{cond:function(){var R;
return(R=B())==null?void 0:R.offerCardDetails},
then:function(){return _.l("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.l(_.uR,{data:function(){return B().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:lfv}))}}))))},"Bd");var EHa=_.Y(function(G){var B=G.data;var F=function(){var N;return((N=B())==null?void 0:N.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var D={},u={},R={};return _.l("ytm-lp-complex-offer-card-section-view-model",null,_.l("div",{class:_.tx("ytmLpComplexOfferCardSectionViewModelHost")},_.l("div",{class:_.tx((G.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=F,G),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.l("div",{class:_.tx((D.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=F,D),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.l("h2",{class:_.tx((u.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
F,u),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.l(_.Wd,{text:function(){return B().title}}))),_.l(_.E,{cond:function(){var N;
return(N=B())==null?void 0:N.subtitle},
then:function(){var N={},y={};return _.l("div",{class:_.tx((N.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=F,N),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.l("div",{class:_.tx((y.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=F,y),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.l(_.Wd,{text:function(){return B().subtitle}})))}}),_.l("div",{class:_.tx((R.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=F,R),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.l(_.uR,{data:function(){var N;
return(N=B().offerPlans)!=null?N:[]}},{lpComplexOfferCardViewModel:function(N){return _.l("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.l(qTt,{data:N.data}))}})))))},"Cd");var hEt=_.Y(function(G){return _.l("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.l("div",{class:"ytLpCouponBannerViewModelIcon"},_.l(_.Pr,{icon:function(){return"price_tag"}})),_.l("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.l("div",{class:"ytLpCouponBannerViewModelContent"},_.l("div",{class:"ytLpCouponBannerViewModelHeading"},_.l(_.Wd,{text:function(){var B;
return(B=G.data())==null?void 0:B.title}})),_.l("div",{class:"ytLpCouponBannerViewModelBody"},_.l(_.Wd,{text:function(){var B;
return(B=G.data())==null?void 0:B.subtitle}})))))},"Dd");
hEt.idomCompat=!0;_.Qa=APM.getInstance();var KlT;KlT=_.Y(function(G){return _.l("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":G.shouldAriaHideContent},_.l("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:G.questionId},_.l(_.Wd,{text:G.question})))},"Ed");
_.af7=_.Y(function(G){var B=G.data;var F=G.themeOverride;G=_.C(_.qg(!1,void 0,"pNli2b"));var D=G.next().value,u=G.next().value;G=_.gJ(function(){u(!D());return!1});
var R=function(){return D()?"EXPAND_LESS":"EXPAND_MORE"},N=("faq-container"+_.mw(_.Qa)).toString(),y="faq-question-and-answers-section-question"+_.mw(_.Qa),U={},q={};
return _.l("faq-entry-view-model",null,_.l("div",{class:_.tx("ytLpFaqEntryViewModelHost",(U.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return F==null?void 0:F().useDarkTheme},U))},_.l("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":G,role:"button","aria-expanded":D,"aria-labelledby":y.toString(),"tab-index":"0"},_.l(KlT,{question:function(){return B().question},
questionId:y,shouldAriaHideContent:!0}),_.l(_.E,{cond:function(){return D()!==void 0},
then:function(){return _.l("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.l(_.Pr,{icon:R,ariaHidden:!0}),_.l("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.l("div",{class:_.tx("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(q.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!D()},q))},_.l("div",{id:N},_.l(_.jR,{each:function(){return B().answers||[]}},function(h){return _.l("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.l(_.Wd,
{text:h}))})))))},"Fd");
_.af7.idomCompat=!0;var mZL=_.Y(function(G){var B=G.data;var F=G.themeOverride;G={};return _.l("lp-faq-section-view-model",null,_.l("div",{class:_.tx("yt-lp-faq-section-view-model",(G["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},G))},_.l("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.l(_.E,{cond:function(){return B().header},
then:function(D){return _.l("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.l(_.Wd,{text:D}))}}),_.l("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.l(_.uR,{data:function(){return B().faqs}},{faqEntryViewModel:function(D){return _.l(_.af7,{data:D.data,
themeOverride:F})}})),_.l("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.l(_.jR,{each:function(){return B().footers||[]}},function(D){return _.l(_.Wd,{text:D})})),_.l(_.E,{cond:function(){return B().legal},
then:function(D){return _.l("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.l(_.Wd,{text:D}))}}))))},"Gd");
mZL.idomCompat=!0;var XlG=_.Y(function(G){var B=G.data;var F=G.themeOverride;_.$f(function(){var N=B().gtmId;N&&_.uY(N,_.v5("GL",""))});
var D={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var N,y,U;return(U=(N=B().logo)==null?void 0:(y=N.accessibilityData)==null?void 0:y.label)!=null?U:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},u=_.te().resolve(_.fH(_.Rx)),R=function(){return u&&u()||(F==null?void 0:F().useDarkTheme)};
return _.l("lp-header-section-view-model",null,_.l("div",{class:function(){var N=B().layoutType,y=B().marginType==="LP_SECTION_MARGIN_TYPE_TOP",U=F==null?void 0:F().useDarkTheme,q=["lp-header-section-view-model"];switch(N){case "LP_MODULE_LAYOUT_TYPE_PTC":q.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":q.push("lp-header-section-view-model--narrow-header-layout-type")}y&&q.push("lp-header-section-view-model__lp-header-section-margin");U&&q.push("lp-header-section-view-model--premium-force-dark-mode");
return q.join(" ")}},_.l(_.E,{cond:function(){return B().logo},
then:function(){return _.l("div",null,_.l(_.E,{cond:R,then:function(){return _.l(_.E,{cond:function(){var N;return(N=B().logo)==null?void 0:N.imageDark},
then:function(N){return _.l(_.vr,Object.assign({},{data:N},D))}})},
else:function(){return _.l(_.E,{cond:function(){var N;return(N=B().logo)==null?void 0:N.imageLight},
then:function(N){return _.l(_.vr,Object.assign({},{data:N},D))}})}}))}}),_.l(_.E,{cond:function(){return B().title},
then:function(N){return _.l("div",{class:"lp-header-section-view-model__lp-header-title"},_.l(_.Wd,{text:N}))}}),_.l("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.l(_.E,{cond:function(){return B().subtitles},
then:function(N){return _.l(_.jR,{each:N},function(y){return _.l("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.l(_.Wd,{text:y}))})}})),_.l(_.E,{cond:function(){return B().additionalInfo},
then:function(N){return _.l("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.l(_.Wd,{text:N}))}}),_.l("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.l(_.E,{cond:function(){return B().primaryButton},
then:function(N){return _.l("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.l(_.uR,{data:N},{buttonViewModel:_.cd}))}}),_.l(_.E,{cond:function(){return B().secondaryButton},
then:function(N){return _.l("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.l(_.uR,{data:N},{buttonViewModel:_.cd}))}})),_.l(_.E,{cond:function(){return B().otherOffersInfo},
then:function(N){return _.l("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.l(_.Wd,{text:N}))}}),_.l("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.l(_.E,{cond:function(){return B().billingInfo},
then:function(N){return _.l(_.jR,{each:N},function(y){return _.l("div",null,_.l(_.Wd,{text:y}))})}}))))},"Hd");
XlG.idomCompat=!0;var QPt=_.Y(function(G){return _.l("lp-header-upsell-banner-view-model",{class:_.tx("lpHeaderUpsellBannerViewModelHost",G.className,{})},_.l("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.l(_.Pr,{icon:function(){return"CAMPAIGN"}})),_.l("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.l("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.l("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.l("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.l(_.Wd,{text:function(){var B;
return(B=G.data())==null?void 0:B.description}})))),_.l(_.uR,{data:function(){var B;
return(B=G.data())==null?void 0:B.purchaseButton}},{buttonViewModel:function(B){return _.l(_.cd,{data:B.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Id");var jPq=_.Y(function(G){var B=G.data;var F=_.pW(G.themeOverride,{useDarkTheme:!1});G={};G=_.tx("ytmLpHeadlineSectionViewModelHost",(G.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return F().useDarkTheme},G));
return _.l("lp-headline-section-view-model",null,_.l("div",{class:G},_.l(_.E,{cond:function(){return B().title},
then:function(D){return _.l("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.l(_.Wd,{text:D}))}}),_.l(_.E,{cond:function(){return B().subtitle},
then:function(D){return _.l("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.l(_.Wd,{text:D}))}})))},"Jd");var Llv=_.Y(function(G){var B=G.data;var F=G.themeOverride;var D=_.te().resolve(_.fH(_.Rx)),u=function(){return D&&D()||(F==null?void 0:F().useDarkTheme)},R=function(){var q,h;
var K=u()?(q=B().textBackgroundImage)==null?void 0:q.imageDark:(h=B().textBackgroundImage)==null?void 0:h.imageLight;return rBU((K==null?void 0:K.sources)||[])},N=function(){var q,h;
return u()?(q=B().featureImage)==null?void 0:q.imageDark:(h=B().featureImage)==null?void 0:h.imageLight},y=function(){return B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},U=function(){var q,h;
return u()?(q=B().logo)==null?void 0:q.imageDark:(h=B().logo)==null?void 0:h.imageLight};
return _.l("ytm-lp-large-feature-section-view-model",null,_.l("div",{class:function(){var q=B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",h=B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",K=(B().index||0)%2===1,a=F==null?void 0:F().useDarkTheme,m=["yt-lp-large-feature-section-view-model"];q?m.push("yt-lp-large-feature-section-view-model--music-feature-type"):h?m.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):K||m.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
a&&m.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return m.join(" ")}},_.l("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.l(_.E,{cond:N,
then:function(){return _.l(_.vr,{data:function(){return N()},
alt:function(){var q,h,K;return(K=(q=B().featureImage)==null?void 0:(h=q.accessibilityData)==null?void 0:h.label)!=null?K:""},
contentMode:y})}})),_.l("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var q;return((q=R())==null?0:q.url)?"background-image: url("+_.Sz(R().url)+");":""}},_.l("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.l(_.E,{cond:U,
then:function(){return _.l(_.vr,{data:function(){return U()},
alt:function(){var q,h,K;return(K=(q=B().logo)==null?void 0:(h=q.accessibilityData)==null?void 0:h.label)!=null?K:""},
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"})}}),_.l(_.E,{cond:function(){return B().eyebrowText},
then:function(){return _.l("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.l(_.Wd,{text:function(){return B().eyebrowText}}))}}),_.l(_.E,{cond:function(){return B().title},
then:function(){return _.l("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.l(_.Wd,{text:function(){return B().title}}))}}),_.l(_.E,{cond:function(){return B().subtitles},
then:function(){return _.l("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.l(_.jR,{each:function(){return B().subtitles||[]}},function(q){return _.l(_.Wd,{text:q})}))}})))))},"Kd");
Llv.idomCompat=!0;var rnG=_.Y(function(G){return _.l("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.l("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.l(_.Pr,{icon:function(){var B;return(B=G.data())==null?void 0:B.iconType},
className:function(){var B;switch((B=G.data())==null?void 0:B.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var B;return((B=G.data())==null?void 0:B.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.l("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.l(_.Wd,{text:function(){var B;
return(B=G.data())==null?void 0:B.text},
className:function(){var B;return((B=G.data())==null?void 0:B.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ld");var Wl7=_.Y(function(G){G=_.AS(G,{config:void 0,themeOverride:void 0});var B=G.data,F=G.config,D=G.themeOverride;G={};G=_.tx("ytmLpOfferCardOptionViewModelHost",(G.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var y;return(y=D())==null?void 0:y.useDarkTheme},G));
var u=_.gJ(function(){var y,U;(y=F())==null||(U=y.handleRadioButtonClick)==null||U.call(y,B());return!1}),R=function(){var y;
return(y=F())==null?void 0:y.shouldDisplayRadioButton},N=function(){var y;
return(y=B().featureListItems)!=null?y:[]};
return _.l("ytm-lp-offer-card-option-view-model",null,_.l("div",{class:G,"on:click":_.gJ(function(){if(R()){var y,U;(y=F())==null||(U=y.handleRadioButtonClick)==null||U.call(y,B())}return!1})},_.l(_.E,{cond:R,
then:function(){return _.l("div",null,_.l("input",{type:"radio","on:click":u,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var y;return!((y=F())==null||!y.isOptionSelected)}}))}}),_.l("div",null,_.l("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.l(_.Wd,{text:function(){return B().eyebrowText}})),_.l("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.l(_.Wd,
{text:function(){return B().subtitle}})),_.l(_.E,{cond:function(){return N().length>0},
then:function(){return _.l("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.l(_.uR,{data:N},{lpFeatureListItemViewModel:rnG}))}}),_.l("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.l(_.Wd,{text:function(){return B().description}})))))},"Md");
Wl7.idomCompat=!0;var Hfy=_.Y(function(G){var B=G.data;var F=G.themeOverride;G=_.C(_.d3(function(){var R,N=(R=B().offerOptions)==null?void 0:R[0];return _.Q(N,Q5w)||{}}));
var D=G.next().value,u=G.next().value;G={};return _.l("ytm-lp-offer-card-view-model",null,_.l("div",{class:_.tx("ytmLpOfferCardViewModelHost",(G.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(F==null||!F().useDarkTheme)},G))},_.l("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.l(_.E,{cond:function(){return B().titleIconType},
then:function(){return _.l("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.l(_.Pr,{icon:function(){var R;return((R=B().titleIconType)==null?void 0:R.toString())||""}}))}}),_.l("div",{class:"ytmLpOfferCardViewModelTitleText"},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.uR,{data:function(){return B().titleBadge}},{badgeViewModel:function(R){return _.l("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.l(_.vK,{data:R.data}))}})),_.l("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.l(_.uR,{data:function(){return B().offerOptions}},{lpOfferCardOptionViewModel:function(R){var N=R.data;
return _.l(_.GJ,null,_.l("div",{class:"ytmLpOfferCardViewModelDivider"}),_.l(Wl7,{data:N,config:function(){var y;return{shouldDisplayRadioButton:(B().offerOptions||[]).length>1,isOptionSelected:N().id===((y=D())==null?void 0:y.id),handleRadioButtonClick:function(U){return void u(U)}}},
themeOverride:F}))}})),_.l("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.l(_.uR,{data:function(){var R;
return(R=D())==null?void 0:R.purchaseButtonOverride}},{buttonViewModel:_.cd}))))},"Nd");
Hfy.idomCompat=!0;var kp8=_.Y(function(G){var B=G.data;var F=G.themeOverride;G={};G=_.tx("ytmLpOfferCardSectionViewModelHost",(G.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var D;return F==null?void 0:(D=F())==null?void 0:D.useDarkTheme},G));
return _.l("ytm-lp-offer-card-section-view-model",null,_.l("div",{class:G},_.l(_.E,{cond:function(){return B().title!==void 0},
then:function(){return _.l("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.l("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.E,{cond:function(){return B().subtitle},
then:function(){return _.l("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.l(_.Wd,{text:function(){return B().subtitle}}))}}))}}),_.l("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.l(_.uR,{data:function(){return B().offerCards}},{lpOfferCardViewModel:function(D){return _.l("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.l(Hfy,{data:D.data,
themeOverride:F}))}})),_.l(_.E,{cond:function(){return B().footer},
then:function(){return _.l("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.l(_.Wd,{text:function(){return B().footer}}))}})))},"Od");var Of7=_.Y(function(G){var B=G.data;var F={badgeText:"New",badgeStyle:"BADGE_STATUS_NEW"};return _.l("lp-offer-table-cell-content-view-model",null,_.l("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.l(_.LH,null,_.l(_.Xm,{when:function(){return B().title}},function(){return _.l(_.Wd,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return B().title}})}),_.l(_.Xm,{when:function(){return B().subTitle}},function(){return _.l(_.Wd,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return B().subTitle}})}),_.l(_.Xm,{when:function(){return B().featureDescription}},function(){return _.l(_.Wd,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return B().featureDescription}})}),_.l(_.Xm,{when:function(){return B().description}},function(){return _.l(_.Wd,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return B().description}})}),_.l(_.Xm,{when:function(){return B().iconType}},function(){return _.l("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.l(_.Pr,{icon:function(){return B().iconType.toString()}}))}),_.l(_.Xm,{when:function(){return B().purchaseButton}},function(){return _.l(_.uR,{data:function(){return B().purchaseButton}},{buttonViewModel:function(D){return _.l("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.l(_.cd,
{data:D.data}))}})}),_.l(_.Xm,{when:function(){return B().note}},function(){return _.l(_.Wd,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return B().note}})}),_.l(_.Xm,{when:function(){return B().featureDetail}},function(){return _.l(_.Wd,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return B().featureDetail}})}),_.l(_.Xm,{when:function(){return B().badge}},function(){return _.l(_.uR,{data:function(){return B().badge}},{badgeViewModel:_.vK})}),_.l(_.Xm,{when:function(){return B().includeBadgeSpacer}},function(){return _.l("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellBadgeSpacer",
"aria-hidden":"true"},_.l(_.vK,{data:F}))}))))},"Pd");
Of7.idomCompat=!0;var eE8=_.Y(function(G){var B=G.data;return _.l("lp-offer-table-cell-view-model",null,_.l("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(B().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.l(_.uR,{data:function(){return B().contents}},{lpOfferTableCellContentViewModel:Of7})))},
"Qd");
eE8.idomCompat=!0;var $ZU=_.Y(function(G){var B=G.data;var F=G.lpTableIsFirstRow;var D=G.lpTableIsLastRow;var u=function(){return(F==null?0:F())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},R=function(){return(F==null?0:F())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(D==null?0:D())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.l("ytm-lp-offer-table-row-view-model",null,_.l("div",{class:"ytLpOfferTableRowViewModelHost"},_.l(_.uR,{data:function(){return B().rowHeaderCell}},{lpOfferTableCellViewModel:function(N){return _.l("div",{class:u},_.l(eE8,{data:N.data}))}}),_.l(_.uR,{data:function(){return B().contentCells}},{lpOfferTableCellViewModel:function(N){return _.l("div",{class:R},_.l(eE8,{data:N.data}))}})))},"Rd");
$ZU.idomCompat=!0;var zEL=_.Y(function(G){var B=G.data;var F=G.themeOverride;var D=_.te().resolve(_.fH(_.Rx)),u=function(){return _.Q(B().logo,J3T)||{}};
G={};return _.l("ytm-lp-offer-table-section-view-model",null,_.l("div",{class:"ytLpOfferTableViewModelHost"},_.l(_.E,{cond:function(){var R,N;return D&&D()||(F==null?0:F().useDarkTheme)?(R=u())==null?void 0:R.imageDark:(N=u())==null?void 0:N.imageLight},
then:function(R){return _.l(_.vr,{data:R,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var N,y,U;return(U=(N=u())==null?void 0:(y=N.accessibilityData)==null?void 0:y.label)!=null?U:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.l(_.Wd,{text:function(){return B().subtitle}})),_.l(_.E,{cond:function(){return B().disclaimers},
then:function(R){return _.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.l(_.jR,{each:R},function(N){return _.l("div",null,_.l(_.Wd,{text:N}))}))}}),_.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.l(_.uR,{data:function(){return B().rows}},{lpOfferTableRowViewModel:function(R,N){return _.l($ZU,{data:R.data,
lpTableIsFirstRow:function(){return N()===0},
lpTableIsLastRow:function(){return N()===B().rows.length-1}})}})),_.l("div",{class:_.tx((G.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return B().hasFooterBackground},G))},_.l(_.E,{cond:function(){return B().footer},
then:function(){return _.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.l(_.Wd,{text:function(){return B().footer}}))}}),_.l(_.E,{cond:function(){return B().footerTitle},
then:function(){return _.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.l(_.Wd,{text:function(){return B().footerTitle}}))}}),_.l(_.E,{cond:function(){return B().footerDescription},
then:function(){return _.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.l(_.Wd,{text:function(){return B().footerDescription}}))}}),_.l(_.E,{cond:function(){return B().footerDescriptions},
then:function(R){return _.l("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.l(_.jR,{each:R},function(N){return _.l("div",null,_.l(_.Wd,{text:N}))}))}}))))},"Sd");
zEL.idomCompat=!0;var bfy=_.Y(function(G){var B=G.data;var F=G.themeOverride;var D=_.te().resolve(_.fH(_.Rx)),u=function(){var y;return F==null?void 0:(y=F())==null?void 0:y.useDarkTheme},R=function(){var y,U;
return D&&D()||u()?(y=B().image)==null?void 0:y.imageDark:(U=B().image)==null?void 0:U.imageLight};
G={};G=_.tx("ytmLpSmallFeatureSectionViewModelHost",(G.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=u,G));var N=function(){var y,U,q;return(q=(y=B().image)==null?void 0:(U=y.accessibilityData)==null?void 0:U.label)!=null?q:""};
return _.l("ytm-lp-small-feature-section-view-model",{class:G},_.l(_.E,{cond:function(){return R()&&!rzS},
then:function(){return _.l("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.l(_.vr,{data:function(){return R()},
alt:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.l("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.l("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.l(_.E,{cond:function(){return B().title},
then:function(y){return _.l(_.Wd,{text:y})}})),_.l("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.l(_.Wd,{text:function(){return B().description}}))))},"Td");
bfy.idomCompat=!0;var VfT=_.Y(function(G){var B=G.data;var F=G.themeOverride;G={};return _.l("ytm-lp-small-feature-section-group-view-model",null,_.l("div",{class:_.tx("ytmLpSmallFeatureSectionGroupViewModelHost",(G.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(F==null||!F().useDarkTheme)},G))},_.l("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.l(_.uR,{data:function(){return B().smallFeatures}},{lpSmallFeatureSectionViewModel:function(D){return _.l("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.l(bfy,{data:D.data,
themeOverride:F}))}}))))},"Ud");
VfT.idomCompat=!0;_.YN(_.Y(function(G){var B=G.data;var F=function(){return B().forcedTheme==="USER_INTERFACE_THEME_DARK"},D=function(){return B().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},u=function(){var N="",y,U;
var q=_.te().resolve(_.fH(_.Rx));q=F()||(q==null?0:q())?(y=B().themedImageViewModel)==null?void 0:y.imageDark:(U=B().themedImageViewModel)==null?void 0:U.imageLight;(y=rBU((q==null?void 0:q.sources)||[]))&&y.url&&(N=D()?"background-image: linear-gradient(to bottom, transparent, "+(B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Sz(y.url)+");":"background-image: url("+_.Sz(y.url)+");");return N},R=function(){return{useDarkTheme:F()}};
G={};return _.l("yt-section-group-view-model",null,_.l("div",{class:_.tx("yt-lp-section-group-view-model",(G["yt-lp-section-group-view-model--premium-force-dark-mode"]=F,G["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G))},_.l(_.E,{cond:function(){return u().length},
then:function(){var N={};return _.l("div",{class:_.tx("yt-lp-section-group-view-model__bg-image",(N["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=D,N)),style:u})}}),_.l("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.l(_.uR,{data:function(){return B().sections}},{lpHeaderUpsellBannerViewModel:function(N){return _.l(QPt,{data:N.data})},
lpFaqSectionViewModel:function(N){return _.l(mZL,{data:N.data,themeOverride:R})},
lpHeaderSectionViewModel:function(N){return _.l(XlG,{data:N.data,themeOverride:R})},
lpHeadlineSectionViewModel:function(N){return _.l(jPq,{data:N.data,themeOverride:R})},
lpLargeFeatureSectionViewModel:function(N){return _.l(Llv,{data:N.data,themeOverride:R})},
lpOfferCardSectionViewModel:function(N){return _.l(kp8,{data:N.data,themeOverride:R})},
lpComplexOfferCardSectionViewModel:function(N){return _.l(EHa,{data:N.data})},
lpOfferTableSectionViewModel:function(N){return _.l(zEL,{data:N.data,themeOverride:R})},
lpSmallFeatureSectionGroupViewModel:function(N){return _.l(VfT,{data:N.data,themeOverride:R})},
lpCouponBannerViewModel:function(N){return _.l(hEt,{data:N.data})}}))))},"Vd"),"yt-section-group-view-model",{props:{data:_.Hd}});_.vHL=_.Y(function(G){var B=_.iR(MBS,function(){var N;return(N=G.data())==null?void 0:N.chipBarStateEntityKey}),F=function(){return G.data().disableDeselection},D=_.C(_.d3(function(){var N;
if(((N=B())==null?void 0:N.selectedIndex)!=void 0)return B().selectedIndex;var y,U;N=_.C(((y=G.data())==null?void 0:(U=y.chips)==null?void 0:U.entries())||[]);for(y=N.next();!y.done;y=N.next()){y=_.C(y.value);U=y.next().value;y=y.next().value;var q=void 0;if((q=_.Q(y,_.rr))==null?0:q.selected)return U}return-1})),u=D.next().value,R=D.next().value;
return _.l("chip-bar-view-model",{class:_.tx("ytChipBarViewModelHost",G.className),role:"tablist"},_.l(_.uR,{data:function(){return G.data().chips}},{chipViewModel:function(N,y){return _.l("div",{class:"ytChipBarViewModelChipWrapper"},_.l(_.DJG,{data:N.data,
selected:function(){return y()===u()},
callback:function(U,q){U=!!q;q=y();R(U?q:-1);var h,K=(h=G.data())==null?void 0:h.chipBarStateEntityKey;K&&U&&_.M7(_.wC("chipBarStateEntity",K,{key:K,selectedIndex:q}))},
disableDeselection:G.disableDeselection||F}))}}))},"Wd");_.YN(_.vHL,"chip-bar-view-model",{props:{data:_.oh,className:_.oh,disableDeselection:_.oh}});_.oHs=_.Y(function(G){var B=G.data;G={};return _.l("divider-view-model",{class:_.tx("dividerViewModelHost",(G.dividerViewModelInsetThinPadding=function(){return B().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},G))},_.l("div",{class:_.tx("dividerViewModelBaseDivider",function(){return pFg(B().dividerStyle)})}))},"Xd");
_.oHs.idomCompat=!0;_.YN(_.oHs,"divider-view-model",{props:{data:_.Hd}});var Db=new Map,uv=new Map,d4z=0,RG;var tBU=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Sbc={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Mf8,pl8;Mf8=function(G){return function(B){return function(){return(B==null?void 0:B())!==void 0?String(B())+G:void 0}}};
_.jc=Mf8("px");pl8=Mf8("s");_.LO=new _.oV("CHUNK_REGISTRY_TOKEN");_.Cz(PWc,{debugName:"shortsLockupViewModel"});_.gn(_.LO,function(G){_.rv(G,"shortsLockupViewModel","dpUCFd",PWc)});var YTN=_.Cz(BHz,{debugName:"shortsLockupViewModelWithDismissible"});_.gn(_.LO,function(G){_.rv(G,"shortsLockupViewModelWithDismissible","U9vrqd",BHz)});var AnP=pkz(function(G){return G.targetGroupId}).useUpdatableData;_.WC=_.Y(function(G){function B(RI){return function(){var yo=e().numItemsPerGridRow,hg=RI()*yo;yo=hg+yo;var US,aI;return(aI=(US=D().contents)==null?void 0:US.slice(hg,yo))!=null?aI:[]}}
var F=_.AS(G,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),D=F.data,u=F.layoutContainerWidth,R=F.shouldUseOwnContainerSize,N=F.marginSettings,y=F.useUpdatedMargin,U=QmJ(),q=_.C(AnP(function(){var RI,yo;return{targetGroupId:(RI=D().targetingContext)==null?void 0:(yo=RI.targetGroupId)==null?void 0:yo[0]}})).next().value;
F=_.C(_.qg(!0,void 0,"CC9Rdb"));var h=F.next().value,K=F.next().value,a=function(){var RI,yo=(RI=_.Q(D().showMoreButton,_.LV))==null?void 0:RI.trackingParams;yo&&_.ss(_.Rh(),yo);K(!1)},m=function(){var RI,yo=(RI=_.Q(D().showLessButton,_.LV))==null?void 0:RI.trackingParams;
yo&&_.ss(_.Rh(),yo);K(!0)};
F=_.C(_.wN({canHaveZeroSize:!1}));var L=F.next().value;F=F.next().value;var W=function(){var RI;return(RI=D().contentAspectRatio)!=null?RI:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},e=_.mS(function(){var RI=R()&&L.width()>0?L.width()||u():u(),yo,hg=(yo=G.data())==null?void 0:yo.responsiveContainerConfiguration;
RI=_.W_({containerWidth:RI,sizing:hg?H_(hg==null?void 0:hg.responsiveSize):"EXTRA_COMPACT",marginSettings:N(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:RI.maxContainerWidth,numItemsPerGridRow:RI.numItems,contentPadding:R()?RI.margin:RI.contentMargin,itemWidth:RI.itemWidth,itemMargin:RI.gutter/2}},void 0,"YIvnde"),b=function(){if(D().enableVerticalExpansion){if(h())return M();
var RI,yo,hg=(yo=(RI=D().contents)==null?void 0:RI.length)!=null?yo:0;return Math.ceil(hg/e().numItemsPerGridRow)}return e().numItemsPerGridRow<=2?2:1},M=function(){var RI;
return Math.ceil(((RI=D().minCollapsedItemCount)!=null?RI:1)/e().numItemsPerGridRow)},t=function(){return D().enableVerticalExpansion&&D().showLessButton&&!h()&&b()>M()},T=function(){var RI,yo;
return D().enableVerticalExpansion&&D().showMoreButton&&h()&&((yo=(RI=D().contents)==null?void 0:RI.length)!=null?yo:0)>e().numItemsPerGridRow*M()},A=function(){return!t()},Z=function(){return!T()},P={};
return _.l("grid-shelf-view-model",{class:_.tx("ytGridShelfViewModelHost",G.className,(P.ytGridShelfViewModelHostHasBottomButton=function(){return t()||T()},P.ytGridShelfViewModelHostIsDismissed=function(){var RI,yo=(RI=q())!=null?RI:{};
RI=yo.behavior;var hg=yo.isDismissed,US=yo.stamperContextTargetId;yo=yo.stamperIndex;if(!(_.X("mweb_see_fewer_shorts_group_dismissal")&&hg&&RI&&US))return!1;var aI;hg=U;for(var v6,Jg,c6=((v6=hg)==null?0:v6.targetId)?_.Mg((Jg=hg)==null?void 0:Jg.targetId):void 0;((aI=hg)==null?0:aI.parent)&&c6!==US;)hg=hg.parent,Jg=v6=void 0,c6=((v6=hg)==null?0:v6.targetId)?_.Mg((Jg=hg)==null?void 0:Jg.targetId):void 0;aI=c6===US?hg:void 0;if(!aI)return!1;var q8;US=aI==null?void 0:(q8=aI.stamperIndex)==null?void 0:
q8.call(aI);return RI==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||RI==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&US!=null&&yo!=null&&US>yo},P.ytGridShelfViewModelHostOptionalMediumLayoutMargin=y,P)),
el:_.VX(F),style:_.xN({"margin-left":(0,_.jc)(function(){return e().contentPadding}),
"margin-right":(0,_.jc)(function(){return e().contentPadding})})},_.l(_.E,{cond:function(){return _.Q(D().header,S5v)},
then:function(RI){return _.l(_.BC,{data:RI,useUpdatedPadding:y,disableHorizontalPadding:!0})}}),_.l("div",null,_.l(_.jR,{each:function(){return Array(b())}},function(RI,yo){return _.l(dZq,{className:G.className,
items:B(yo),responsiveGridShelfLayout:e,contentAspectRatio:W})})),_.l("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.l(_.uR,{data:function(){return D().showMoreButton}},{buttonViewModel:function(RI){return _.l("div",{hidden:Z},_.l(_.cd,{data:RI.data,
onClick:a}))}}),_.l(_.uR,{data:function(){return D().showLessButton}},{buttonViewModel:function(RI){return _.l("div",{hidden:A},_.l(_.cd,{data:RI.data,
onClick:m}))}})))},"Zd");
_.WC.idomCompat=!0;var dZq=_.Y(function(G){var B=G.items;var F=G.responsiveGridShelfLayout;var D=G.contentAspectRatio;G=G.className;var u=(0,_.jc)(function(){return-F().itemMargin});
return _.l("div",{el:_.VX(AGz(function(R){a:{for(var N=B(),y=[],U=0;U<N.length;U++){var q=_.Q(N[U],kjU);if(!q||q==null||!q.inlinePlayerData){R=null;break a}var h=R.children.item(U);if(!h){R=null;break a}y.push({thumbnailElement:h,videoData:q})}R={gridVideoPreviewData:{gridItems:y}}}return R})),
class:_.tx("ytGridShelfViewModelGridShelfRow",G),style:_.xN({"margin-left":u,"margin-right":u})},_.l(_.uR,{data:B,replacementWrapper:function(R){return _.l(Jnt,{responsiveGridShelfLayout:F},R)}},{shortsLockupViewModel:function(R){return _.l(Jnt,{responsiveGridShelfLayout:F},_.l(YTN,{data:R.data,
aspectRatio:function(){return D()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.X("mweb_enable_one_line_title_on_shorts")?1:_.X("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(R){return _.l(Jnt,{responsiveGridShelfLayout:F},_.l(_.xm,{data:R.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"$d"),Jnt=_.Y(function(G){return _.l("div",{style:_.xN({width:(0,_.jc)(function(){return G.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+G.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},G.children)},"ae");
_.WC.idomCompat=!0;_.YN(_.WC,"grid-shelf-view-model",{props:{data:_.Hd,layoutContainerWidth:_.Hd,shouldUseOwnContainerSize:_.Hd,marginSettings:_.Hd,useUpdatedMargin:_.Hd,className:_.Hd}});_.cnv=_.Y(function(G){var B=_.C(_.qg(!1,void 0,"FVl30c")),F=B.next().value,D=B.next().value;B={};return _.l("yt-alert-banner-view-model",{class:_.tx("ytAlertBannerViewModelHost",G.className,function(){var u;a:switch((u=G.data())==null?void 0:u.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":u="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":u="ytAlertBannerViewModelWarning";break a;default:u="ytAlertBannerViewModelInformational"}return u},(B.ytAlertBannerViewModelDismissed=
F,B.ytAlertBannerViewModelFullbleed=G.fullbleed,B.ytAlertBannerViewModelNarrow=G.narrow,B.ytAlertBannerViewModelIsInRichGrid=G.isInRichGrid,B))},_.l(_.E,{cond:function(){var u;
return!((u=G.data())==null?0:u.hideIcon)},
then:function(){return _.l("div",{class:"ytAlertBannerViewModelIcon"},_.l(_.Pr,{icon:function(){return"info_circle"}}))}}),_.l("div",{class:"ytAlertBannerViewModelOuterContainer"},_.l("div",{class:"ytAlertBannerViewModelContainer"},_.l("div",{class:"ytAlertBannerViewModelContent"},_.l("div",{class:"ytAlertBannerViewModelHeading"},_.l(_.Wd,{text:function(){var u;
return(u=G.data())==null?void 0:u.heading}})),_.l("div",{class:"ytAlertBannerViewModelBody"},_.l(_.Wd,{text:function(){var u;
return(u=G.data())==null?void 0:u.body}})))),_.l(_.uR,{data:function(){var u;
return(u=G.data())==null?void 0:u.actionButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.l(_.uR,{data:function(){var u;
return(u=G.data())==null?void 0:u.dismissButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var R;((R=G.data())==null?0:R.disableLocalDismissBehavior)||D(!0)}})}}))},"be");_.YN(_.cnv,"yt-alert-banner-view-model",{props:{data:_.Hd,fullbleed:_.Hd,narrow:_.Hd,isInRichGrid:_.Hd,className:_.Hd}});var TDq;_.HC=_.Y(function(G){return _.l("basic-content-view-model",{class:_.tx("ytBasicContentViewModelHost",_.pW(G.className))},_.l(_.E,{cond:function(){return G.data().headline},
then:function(B){return _.l("div",{class:"ytBasicContentViewModelHeadline"},_.l(_.Wd,{text:B}))}}),_.l(_.jR,{each:function(){return G.data().paragraphs||[]},
keyBy:"INDEX"},function(B){return _.l("div",{class:"ytBasicContentViewModelParagraph"},_.l(_.E,{cond:function(){var F=B();return!!(F.header||F.customHeader||F.headline)},
then:function(){return _.l(TDq,{paragraph:B})}}),_.l(_.E,{cond:function(){return B().asset||B().text},
then:function(){return _.l("div",{class:"ytBasicContentViewModelParagraphContent"},_.l(_.E,{cond:function(){return B().asset},
then:function(F){return _.l("div",{class:"ytBasicContentViewModelParagraphAsset"},_.l(_.uR,{data:F},{contentPreviewImageViewModel:_.I$}))}}),_.l(_.E,{cond:function(){return B().text},
then:function(F){return _.l("div",{class:"ytBasicContentViewModelParagraphText"},_.l(_.Wd,{text:F}))}}))}}))}))},"ce");
TDq=_.Y(function(G){var B=G.paragraph;return _.l(_.GJ,null,_.l(_.E,{cond:function(){return B().headline},
then:function(F){return _.l(_.Wd,{text:F,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.l(_.uR,{data:function(){return B().header||B().customHeader}},{sectionHeaderViewModel:function(F){return _.l(_.BC,{data:F.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"de");_.IfN=_.Y(function(G){function B(){var m,L;U((L=(m=u)==null?void 0:m.isKeyBoardInUse())!=null?L:!1)}
function F(){U(!1)}
function D(){var m;return y()?(m=G.focusedClassName)==null?void 0:m.call(G):""}
var u=_.te().resolve(_.fH(_.Mu)),R=_.C(_.qg(!1,void 0,"SgkTXc")),N=R.next().value;R=R.next().value;var y=N,U=R,q=function(){var m,L;return((m=G.toggleable)==null?0:m.call(G))?(L=G.toggled)==null?void 0:L.call(G):void 0},h=_.gJ(function(m){var L,W=(L=G.command)==null?void 0:L.call(G);
W&&_.te().resolve(_.Wr).resolveCommand(W);var e;(e=G.onClick)==null||e.call(G,m)}),K=_.gJ(B),a=_.gJ(F);
return _.l(_.E,{cond:function(){var m;if(m=G.command){m=G.command();m=SI6(m);var L=m.href;m=!(!m.navigatingCommand||!L)}return m},
then:function(){return _.l(_.p4,Object.assign({},{command:G.command,style:G.style,ariaDescribedby:G.ariaDescribedby,ariaHidden:G.ariaHidden,ariaLabel:G.ariaLabel,ariaLabelledby:G.ariaLabelledby,ariaSelected:G.ariaSelected,disabled:G.disabled,dir:G.dir,tabIndex:G.tabIndex,target:G.target,title:G.title,onClick:G.onClick},{className:_.tx("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",G.className,function(){return D()}),
onFocusin:B,onFocusout:F,ariaCurrent:function(){var m,L;return(L=(m=G.ariaCurrent)==null?void 0:m.call(G))!=null?L:q()}}),G.children)},
else:function(){return _.l("button",{"on:click":h,"on:focusin":K,"on:focusout":a,class:_.tx("ytButtonOrAnchorHost","ytButtonOrAnchorButton",G.className,function(){return D()}),
style:G.style,"aria-describedby":G.ariaDescribedby,"aria-hidden":G.ariaHidden,"aria-label":G.ariaLabel,"aria-labelledby":G.ariaLabelledby,"aria-pressed":q,dir:G.dir,disabled:G.disabled,tabindex:G.tabIndex,title:G.title},G.children)}})},"ee");var ffN=_.Y(function(G){G=_.AS(G,{disabled:!1});var B=G.active,F=G.disabled;G={};G=_.tx("ytSwitchShapeTrack",(G.ytSwitchShapeTrackActive=function(){return B()},G.ytSwitchShapeTrackDisabled=function(){return F()},G));
var D={};D=_.tx("ytSwitchShapeKnob",(D.ytSwitchShapeKnobActive=function(){return B()},D));
return _.l("switch-shape",{class:"ytSwitchShapeHost"},_.l("div",{class:G}),_.l("div",{class:D}))},"fe");var tf8=_.Y(function(G){var B=_.AS(G,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),F=B.data;G=B.className;var D=B.handleOnTapEventInParent,u=B.parentActive,R=B.onTap;B=_.C(_.d3(function(){var a;return(a=u())!=null?a:F().switchedOnByDefault||!1}));
var N=B.next().value,y=B.next().value,U=function(){return F().isDisabled},q=_.W5("button");
B=_.gJ(function(a){return a.key==="Enter"?(a.preventDefault(),q.value.click(),!1):!0});
var h=_.gJ(function(a){if(F().handleOnTapEventInParent||D())return!0;if(U())return!1;if(R)return R(a),!0;Fyz(F(),N(),a);y(!N());return!1}),K={};
K=_.tx("ytSwitchButtonViewModelButton",(K.ytSwitchButtonViewModelTappable=function(){return!U()},K));
return _.l("switch-button-view-model",{class:_.tx("ytSwitchButtonViewModelHost",G)},_.l("button",{el:q,class:K,"on:click":h,"on:keydown":B,"aria-label":function(){return N()?F().a11yLabelSwitchedOn:F().a11yLabelSwitchedOff},
"aria-checked":N,"aria-disabled":U,role:"switch"},_.l(ffN,{active:N,disabled:U})))},"ge");var ZfG=_.Y(function(G){var B=G.data;var F=G.isLeading;var D=G.hideSelectionTextChevron;var u=G.isToggled;var R=G.shouldNotFillIcon;var N=function(){if(F())var K=B().leadingImage;else{var a;K=(a=B().trailingImage)!=null?a:_.kP(B().themedTrailingImage)}return K},y=function(){a:switch(B().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var K="expand_more";
break a;default:K="chevron_right"}return K};
G={};var U=_.tx("yt-list-item-view-model__image-container",(G["yt-list-item-view-model__leading"]=F,G["yt-list-item-view-model__trailing"]=function(){return!F()},G)),q=_.tx("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
G={};var h=_.tx("yt-list-item-view-model__accessory",(G["yt-list-item-view-model__leading"]=F,G["yt-list-item-view-model__trailing"]=function(){return!F()},G));
return _.l(_.E,{cond:function(){var K=B(),a=F();return!!(a&&(K.leadingImage||K.leadingAccessory)||!a&&(K.trailingImage||K.trailingButton||K.trailingButtons||K.selectionText||K.themedTrailingImage||K.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.l(_.GJ,null,_.l(_.E,{cond:N,then:function(K){return _.l("div",{class:U,"aria-hidden":"true"},_.l(_.vr,{data:K,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var a=(F()?B().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":B().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?F()?R8I(B().leadingIconAccessorySize):R8I(B().trailingIconAccessorySize):void 0;return a},
className:q,isToggled:function(){return!(R==null?0:R())&&(u==null?void 0:u())}}))}}),_.l(_.E,{cond:function(){return F()&&B().leadingAccessory},
then:function(){return _.l("div",{class:U},_.l(_.uR,{data:function(){return B().leadingAccessory}},{avatarViewModel:function(K){return _.l(_.h8,{data:K.data,
avatarButtonCustomClassName:q})},
collectionThumbnailViewModel:function(K){return _.l(i5a,{data:K.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.l(_.E,{cond:function(){return!F()&&B().trailingButton},
then:function(){return _.l("div",{class:"yt-list-item-view-model__button-container"},_.l(_.uR,{data:function(){return B().trailingButton}},{buttonViewModel:function(K){return _.l(_.cd,{data:K.data,
className:h})}}))}}),_.l(_.E,{cond:function(){var K;
return!F()&&((K=B().trailingButtons)==null?void 0:K.buttons)},
then:function(){return _.l("div",{class:"yt-list-item-view-model__button-container"},_.l(_.uR,{data:function(){var K;return(K=B().trailingButtons)==null?void 0:K.buttons}},{buttonViewModel:function(K){return _.l(_.cd,{data:K.data,
className:h})},
accountLinkButtonViewModel:function(K){return _.l(TWv,{data:K.data,className:h})},
switchButtonViewModel:function(K){return _.l(tf8,{data:K.data,className:h})},
subscribeButtonViewModel:function(K){return _.l(_.EB,{data:K.data,isOverlay:!1,animateWidth:!1,className:h})},
toggleButtonViewModel:function(K){return _.l(_.wl,{data:K.data,className:h})}}))}}),_.l(_.E,{cond:function(){return!F()&&!!B().selectionText},
then:function(){return _.l(_.GJ,null,_.l(_.Wd,{text:function(){return B().selectionText},
className:_.tx("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.l(_.E,{cond:function(){return!(D==null?0:D())},
then:function(){return _.l(_.Pr,{icon:y,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.l(_.E,{cond:function(){return!F()&&B().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.l("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"he");var gH7=_.Y(function(G){var B=G.data;return _.l(_.E,{cond:function(){return B().title||B().subtitle},
then:function(){return _.l("div",{class:"yt-list-item-view-model__text-wrapper"},_.l(_.E,{cond:function(){return B().title},
then:function(F){return _.l("div",{class:"yt-list-item-view-model__title-wrapper"},_.l(_.Wd,{text:F,className:"yt-list-item-view-model__title"}))}}),_.l(_.E,{cond:function(){return B().subtitle},
then:function(F){return _.l(_.Wd,{text:F,className:"yt-list-item-view-model__subtitle"})}}))}})},"ie");var STw=_.Y(function(G){var B=G.data;var F=G.hideSelectionTextChevron;var D=G.TrailingAccessory;var u=G.isToggled;var R=G.disabled;var N=G.isSelectItem;var y=G.isCompact;var U=G.inPopup;var q=G.disableHorizontalPadding;var h=G.isTappableWithoutSelect;var K=G.useButtonOrAnchor;var a=G.onTap;var m=G.shouldNotFillIcon;var L=function(){return _.l(gH7,{data:B,onTap:a,useButtonOrAnchor:K,isTappableWithoutSelect:h,isToggled:u})};
G={};return _.l("div",{class:_.tx("yt-list-item-view-model__label",(G["yt-list-item-view-model__container"]=function(){return!(N==null?0:N())},G["yt-list-item-view-model__container--disabled"]=function(){return!!B().isDisabled||!(R==null||!R())},G["yt-list-item-view-model__container--has-subtitle"]=function(){return!!B().subtitle},G["yt-list-item-view-model__container--compact"]=y,G["yt-list-item-view-model__container--tappable"]=h,G["yt-list-item-view-model__container--in-popup"]=U,G["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(q==null?void 0:q())&&!(N==null?0:N())},G))},_.l(ZfG,{data:B,
isLeading:!0,hideSelectionTextChevron:F,isToggled:u,shouldNotFillIcon:m}),_.l(_.E,{cond:function(){return(K==null?void 0:K())&&(h==null?void 0:h())},
then:function(){return _.l(_.IfN,{command:function(){return _.Kh(B().rendererContext)},
onClick:a,className:"yt-list-item-view-model__button-or-anchor",toggleable:u!==void 0,toggled:u},_.l(L,null))},
else:function(){return _.l(L,null)}}),_.l(_.E,{cond:function(){return!!D},
then:function(){return _.l("div",{class:"yt-list-item-view-model__trailing"},D&&_.l(D,null))},
else:function(){return _.l(ZfG,{data:B,isLeading:!1,hideSelectionTextChevron:F,isToggled:u,shouldNotFillIcon:m})}}))},"je");var xZP=_.Y(function(G){var B=_.AS(G,{checked:!1,disabled:!1});G=B.name;var F=B.onChange,D=B.onClick,u=B.checked,R=B.labelRenderable,N=B.hasLeadingLabel,y=B.labelClass,U=B.isCompact,q=B.selectElementClass,h=B.disableHorizontalPadding;B=B.disabled;var K="checkbox"+_.mw(_.Qa),a=_.gJ(function(W){D==null||D(W);return!1}),m=_.gJ(function(W){F==null||F(W);
return!1}),L={};
return _.l("checkbox-shape",null,_.l("label",{class:_.tx("ytCheckboxShapeHost",y,(L.ytCheckboxShapeHostCompact=U,L.ytCheckboxShapeDisableHorizontalPadding=h,L))},_.l("input",{class:"ytCheckboxShapeInput",id:K,checked:u,name:G,type:"checkbox",disabled:B,"prop:checked":u,"on:change":m,"on:click":a}),_.l(_.E,{cond:function(){return!(N==null?0:N())},
then:function(){return _.l(sPv,{isLeading:!0,selectElementClass:q})}}),_.l(_.E,{cond:function(){return!!R},
then:function(){return _.l("div",{class:"ytCheckboxShapeLabel"},R==null?void 0:R())}}),_.l(_.E,{cond:N,
then:function(){return _.l(sPv,{isLeading:!1,selectElementClass:q})}})))},"ke");
xZP.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var sPv=_.Y(function(G){var B=G.selectElementClass;G={};return _.l("div",{class:_.tx("ytCheckboxShapeCheckbox",B,(G.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(B==null?0:B())},G)),
"aria-hidden":"true"},_.l(_.Pr,{icon:_.X("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.l(_.Pr,{icon:_.X("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"le");_.kB=_.Y(function(G){var B=G.name;var F=G.onChange;var D=G.onClick;var u=G.checked;var R=G.labelRenderable;var N=G.useCheckIcon;var y=G.hasLeadingLabel;var U=G.labelClass;var q=G.isCompact;var h=G.selectElementClass;var K=G.ariaLabel;var a=G.className;G=G.disabled;var m="radio"+_.mw(_.Qa),L=_.W5("input"),W=_.X("enable_ios_webview_radio_button_responsiveness"),e=_.gJ(function(P){L.value.checked=!(u==null||!u());F==null||F(P);return!1}),b=_.gJ(function(P){D==null||D(P);
return!1}),M=_.C(_.qg(!1,void 0,"Ucg5gd")),t=M.next().value,T=M.next().value;
M=_.gJ(function(){var P;((P=_.te().resolve(_.fH(_.Mu)))==null?0:P.isKeyBoardInUse())&&T(!0)});
var A=_.gJ(function(){T(!1)}),Z={};
return _.l("radio-shape",{class:_.tx("yt-radio-shape",a)},_.l("input",{el:L,class:"yt-radio-shape__input",id:m,"prop:checked":u,name:B,type:"radio",disabled:G,"on:change":e,"on:click":b,"aria-label":K,"on:focusin":M,"on:focusout":A}),_.l("label",{class:_.tx("yt-radio-shape__label-container",U,(Z["yt-radio-shape--compact"]=q,Z["yt-radio-shape__label-container--keyboard-focused"]=t,Z)),for:m},_.l(_.E,{cond:function(){return!(y==null?0:y())},
then:function(){return _.l(P8G,{checked:u,useCheckIcon:N,isLeading:!0,selectElementClass:h,usePassthrough:W})}}),_.l(_.E,{cond:function(){return!!R},
then:function(){var P={};return _.l("div",{class:_.tx("yt-radio-shape__label",(P["yt-radio-shape--event-passthrough"]=W,P)),"aria-hidden":function(){return(K==null?0:K())?"true":"false"}},R==null?void 0:R())}}),_.l(_.E,{cond:y,
then:function(){return _.l(P8G,{checked:u,useCheckIcon:N,isLeading:!1,selectElementClass:h,usePassthrough:W})}})))},"me");
_.kB.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var P8G=_.Y(function(G){var B=G.useCheckIcon;var F=G.selectElementClass;G=G.usePassthrough;var D=_.X("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",u=_.X("enable_web_delhi_icons")?"CIRCLE_FULL":D,R={};return _.l("div",{class:_.tx("yt-radio-shape__radio",F,(R["yt-radio-shape__radio--check-icon"]=B,R["yt-radio-shape__radio--radio-default-style"]=function(){return!(F==null?0:F())},R["yt-radio-shape--event-passthrough"]=G,R)),
"aria-hidden":"true"},_.l(_.Pr,{icon:function(){return(B==null?0:B())?"CHECK":D}}),_.l(_.Pr,{icon:function(){return(B==null?0:B())?"CHECK":u},
active:function(){return!(B==null?0:B())}}))},"ne");_.OP=_.Y(function(G){var B=G.data;var F=G.isMenuItem;var D=G.isCompact;var u=G.onTap;var R=G.trailingAccessory;var N=G.hideSelectionTextChevron;var y=G.disabled;var U=G.inPopup;var q=G.disableHorizontalPadding;var h=G.isOverlay;var K=G.isToggled;var a=G.ariaLabel;var m=G.ariaPressed;var L=G.shouldNotFillIcon;var W=!_.X("web_enable_killswitch_for_selectable_list_item_on_tap_fix");G=!_.X("web_enable_killswitch_for_skip_child_tags");var e=_.FT(function(n7){return wnM(B(),n7)}),b=function(){return(q==
null?void 0:q())||B().disableHorizontalPadding},M=function(){var n7;
return!((n7=B())==null||!n7.entitySelectorType)},t=function(){return M()?Object.assign({},B(),e().data):B()},T=function(){return!!t().isDisabled||!(y==null||!y())},A=_.NHI(function(){return t().rendererContext}),Z=function(){return!(t().isSelected===void 0||!t().selectionStyle||t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},P=function(){return(_.ax(t().rendererContext)||u)&&!Z()},RI={},yo=_.tx("yt-list-item-view-model__container",(RI["yt-list-item-view-model__container--tappable"]=
function(){return _.ax(t().rendererContext)||Z()},RI["yt-list-item-view-model__container--compact"]=D,RI["yt-list-item-view-model__container--in-popup"]=U,RI["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(b==null?void 0:b())&&Z()},RI)),hg=function(){return t().leadingImage||t().leadingAccessory},US=_.tx("yt-list-item-view-model__image-container",function(){return hg()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
RI=_.qj();var aI=_.C(_.qg(!1,void 0,"ef0FO")),v6=aI.next().value,Jg=aI.next().value,c6=function(){return _.l(STw,{data:t,hideSelectionTextChevron:N,TrailingAccessory:R,isToggled:K,disabled:y,isSelectItem:Z,isCompact:D,inPopup:U,disableHorizontalPadding:b,isTappableWithoutSelect:P,useButtonOrAnchor:q8,onTap:u,shouldNotFillIcon:L})},q8=_.X("web_button_or_anchor_list_item");
aI={};return _.l("yt-list-item-view-model",{el:_.VX(_.mR(function(){return T()?void 0:t().rendererContext},void 0,void 0,q8?["A".toString(),
"BUTTON".toString()]:[]),COo(function(n7){if(!T()){var Ts;if(Ts=W)Ts=t().selectionStyle,Ts=Ts==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Ts==="LIST_ITEM_SELECTION_STYLE_RADIO"||Ts==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Ts||u==null||u(n7)}},G?["A".toString(),
"BUTTON".toString()]:[]),KQM(function(){return P==null?void 0:P()},{focusin:function(){var n7;
((n7=_.te().resolve(_.fH(_.Mu)))==null?0:n7.isKeyBoardInUse())&&Jg(!0)},
focusout:function(){Jg(!1)}})),
class:_.tx("yt-list-item-view-model",(aI["yt-list-item-view-model--is-overlay"]=h,aI["yt-list-item-view-model--keyboard-focused"]=v6,aI["yt-list-item-view-model--hidden"]=function(){return M()?e().isHidden:!1},aI)),
role:function(){return(F==null?0:F())?"menuitem":"listitem"},
tabindex:function(){var n7=P();var Ts=q8;Z();n7=Ts?void 0:_.X("web_enable_killswitch_tabindex_fix")?u||n7?0:void 0:n7?0:void 0;return n7},
"on:keydown":RI,"aria-label":function(){var n7;return(a==null?void 0:a())||((n7=A())==null?void 0:n7.label)},
"aria-pressed":m},_.l(_.E,{cond:Z,then:function(){return _.l(_.LH,null,_.l(_.Xm,{when:function(){return t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.l(xZP,{labelRenderable:c6,
isCompact:D,checked:function(){return t().isSelected},
hasLeadingLabel:function(){return!!hg()},
labelClass:yo,selectElementClass:US,disableHorizontalPadding:b,onClick:W?u:void 0,disabled:T})}),_.l(_.Xm,{when:function(){return t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.l(_.kB,{labelRenderable:c6,
isCompact:D,checked:function(){return t().isSelected},
hasLeadingLabel:function(){return!!hg()},
labelClass:yo,selectElementClass:US,onClick:W?u:void 0,disabled:T})}),_.l(_.Xm,{when:function(){return t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.l(_.kB,{labelRenderable:c6,
isCompact:D,checked:function(){return t().isSelected},
hasLeadingLabel:function(){return!!hg()},
labelClass:yo,selectElementClass:US,useCheckIcon:!0,onClick:W?u:void 0,disabled:T})}),_.l(_.Qc,null,c6))},
else:c6}))},"oe");
_.OP.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.ec=_.Y(function(G){var B=_.C(_.wN({canHaveZeroSize:!1})),F=B.next().value;B=B.next().value;var D=function(){return QZz(F.width(),G.data().responsiveContainerConfiguration)||h8J(F.width(),G.data().linearLayoutContainerConfiguration)};
return _.l("yt-linear-layout-view-model",{el:_.VX(B),class:"ytLinearLayoutViewModelHost"},_.l("div",{class:_.tx("ytLinearLayoutViewModelContainer",function(){a:switch(G.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var u="ytLinearLayoutViewModelHorizontal";break a;default:u="ytLinearLayoutViewModelVertical"}return u},function(){var u=G.data().linearLayoutContainerConfiguration;
return u?[UAz(u.flexDirection),qN6(u.justifyContent),Egs(u.alignItems)].join(" "):""}),
style:function(){var u;var R=((u=D())==null?void 0:u.containerStyles)||{};return _.xN(R)()}},_.l(_.uR,{data:function(){return G.data().items},
wrapper:function(u,R,N){return _.l("div",{style:function(){var y=N(),U;if((U=D())==null)y=void 0;else{var q=U.itemStyles,h,K;var a=(K=(h=G.data().items)==null?void 0:h.length)!=null?K:0;y=q.call(U,y===0,y===a-1)}return _.xN(y||{})()}},u())}},{lockupViewModel:function(u){return _.l(_.xm,{data:u.data,
containerLayoutConfig:function(){var R;return(R=D())==null?void 0:R.containerLayoutConfig}})},
basicContentViewModel:_.HC,buttonViewModel:_.cd,linearLayoutViewModel:_.ec,thumbnailViewModel:A8,descriptionPreviewViewModel:_.GC,listItemViewModel:_.OP,sectionHeaderViewModel:_.BC})))},"pe");_.YN(_.ec,"yt-linear-layout-view-model",{props:{data:_.Hd}});_.YN(_.id,"chips-shelf-view-model",{props:{data:_.Hd,callback:_.oh,selectionBehavior:_.Hd,disableChipsScrollAnimation:_.Hd,nextButtonStyle:_.Hd}});_.YN(_.Y(function(G){return _.l("yt-comment-filter-context-view-model",{class:_.tx("ytCommentFilterContextHost",G.className)},_.l(_.Wd,{text:function(){return G.data().text}}))},"qe"),"yt-comment-filter-context-view-model",{props:{data:_.Hd,
className:_.oh}});_.GsQ=_.Y(function(G){var B=G.data;var F=G.onTap;var D=G.onSwitch;var u=G.overrideDisabled;G=G.disableHorizontalPadding;var R=_.C(_.d3(function(){var a;return((a=uVU(h()))==null?void 0:a.switchedOnByDefault)||!1})),N=R.next().value,y=R.next().value;
R=_.C(_.qg(!1,void 0,"V0hCrd"));var U=R.next().value,q=R.next().value,h=function(){var a;if(!(a=B().switchButton)){var m=B();a=u==null?void 0:u();m={switchOnCommand:m.switchOnCommand,switchOffCommand:m.switchOffCommand,switchedOnByDefault:m.switchedOnByDefault,isDisabled:m.isDisabled,a11yLabelSwitchedOn:m.a11yLabelSwitchedOn,a11yLabelSwitchedOff:m.a11yLabelSwitchedOff};a!==void 0&&(m.isDisabled=a);a={switchButtonViewModel:m}}return a},K=function(a){var m=uVU(h());
!m||m.isDisabled||B().ignoreTapUntilCommandCompletes&&U()||(F==null||F(a),Fyz(m,N(),a,B().ignoreTapUntilCommandCompletes,q),y(!N()),D==null||D(N()))};
return _.l("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.l(_.OP,{data:function(){return{title:B().title,subtitle:B().attributedSubtitle,leadingImage:B().leadingImage,leadingAccessory:B().leadingAccessory,isDisabled:B().isDisabled}},
onTap:K,isToggled:N,shouldNotFillIcon:!0,trailingAccessory:function(){return _.l(_.uR,{data:h},{switchButtonViewModel:function(a){return _.l(tf8,{data:a.data,parentActive:N,onTap:K})}})},
disableHorizontalPadding:G}))},"re");var BU$=_.Y(function(G){var B=G.data;G=G.className;var F=function(){var y;return((y=D())==null?void 0:y.isToggled)!==void 0},D=_.FT(function(y){a:{var U=B().entityKey,q=B().entitySelectorType;
if(q)switch(q){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!U)break;var h,K;y={isToggled:(K=(h=_.R5.toggleMenuServiceItemEntitySelector(y,U))==null?void 0:h.isToggled)!=null?K:!1};break a;default:_.em(new _.Uf("Error: entitySelectorType defined but not matched in selector.",y,q))}y=void 0}return y}),u=_.C(_.d3(function(){var y,U,q;
return F()?(y=D())==null?void 0:y.isToggled:(U=B())==null?void 0:(q=U.initialState)==null?void 0:q.isToggled})),R=u.next().value,N=u.next().value;
return _.l("toggleable-list-item-view-model",{el:_.VX(_.mR(function(){return B().rendererContext},{onTap:function(y,U){U();
F()||N(!R())}})),
class:_.tx("toggleableListItemViewModelHost",G)},_.l(_.E,{cond:function(){if(R()){var y=B().toggledListItem;y=_.Q(y,_.Nj)}else y=B().defaultListItem,y=_.Q(y,_.Nj);return y},
then:function(y){return _.l(_.OP,{data:y,isToggled:R,ariaLabel:function(){var U=R()?B().toggledListItem:B().defaultListItem,q;U=(q=_.Q(U,_.Nj))==null?void 0:q.rendererContext;var h;return(h=_.Q(U,_.yL))==null?void 0:h.label},
ariaPressed:function(){return R()}})}}))},"se");var iQD=_.G7("DOWNLOAD",{},"Download"),Fg$=_.G7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),DL$=_.G7("RETRY",{},"Retry"),uzG=_.G7("PAUSE_DOWNLOADING",{},"Pause downloading"),RJz=_.G7("RESUME_DOWNLOAD",{},"Resume download"),jZo={text:iQD,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},nz={text:Fg$,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Wyo={text:DL$,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Lyg={text:uzG,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},rKU={text:RJz,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var w6N=_.Y(function(G){var B=function(){var y=G.data();y=_.Kh(y.rendererContext);var U;return(U=_.Q(y,_.GP))==null?void 0:U.videoId},F=_.FT(function(y){var U=B(),q=OmM(G.data());
return U?_.mD(y,U):q?_.X9(y,q):"TRANSFER_STATE_UNKNOWN"}),D=_.iR(_.Z3g,B),u=_.FT(function(y){return _.dvL(y,B(),OmM(G.data()))}),R=function(){return kr6(F(),D(),_.Kh(G.data().rendererContext),!!OmM(G.data()))},N=function(){return u()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.l("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:N},_.l(_.E,{cond:function(){return!N()},
then:function(){return _.l(_.E,{cond:R,then:function(y){return _.l(_.jR,{each:y},function(U){return _.l(_.OP,{data:U,isCompact:G.isCompact,isMenuItem:G.isMenuItem,inPopup:G.inPopup,disableHorizontalPadding:G.disableHorizontalPadding})})}})}}))},"te");
w6N.idomCompat=!0;_.ClZ=_.Y(function(G){var B=G.data;var F=G.isCompact;var D=G.hideSelectionTextChevron;var u=G.inPopup;var R=G.isOverlay;var N=G.disableHorizontalPadding;var y=function(){return e8S(B())&&(u==null?void 0:u())},U=_.X("web_list_view_model_listbox_killswitch")?"menu":"listbox";
G=_.gJ(function(h){if(u!=null&&u()&&_.X("web_enable_arrow_key_navigation_in_dropdown")){var K=_.w6Q(h.currentTarget);if(K.length!==0){var a=Array.prototype.indexOf.call(K,document.activeElement);switch(h.key){case "ArrowDown":h.preventDefault();$AQ(K,a);break;case "ArrowUp":h.preventDefault();z8M(K,a);break;case "Tab":h.preventDefault(),h.shiftKey?z8M(K,a):$AQ(K,a)}}}});
var q={};return _.l("yt-list-view-model",{class:_.tx("ytListViewModelHost",(q.ytListViewModelHostKaiosSpatNav=rzS&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",q)),role:function(){return y()?U:"list"},
style:_.xN({"max-height":function(){var h,K=(h=B())==null?void 0:h.visibleElementCount;if(K)return(K+.5)*40+"px"}}),
"on:keydown":G},_.l(_.uR,{data:function(){return B().listItems}},{listItemViewModel:function(h){return _.l(_.OP,{data:h.data,
isMenuItem:y,isCompact:F,hideSelectionTextChevron:D,inPopup:u,isOverlay:R,disableHorizontalPadding:N})},
toggleableListItemViewModel:function(h){return _.l(BU$,{data:h.data})},
downloadListItemViewModel:function(h){return _.l(w6N,{data:h.data,isMenuItem:y,isCompact:F,inPopup:u,disableHorizontalPadding:N})},
switchListItemViewModel:function(h){return _.l(_.GsQ,{data:h.data,disableHorizontalPadding:N})}}))},"ue");
_.ClZ.idomCompat=!0;var NUQ=_.Y(function(G){var B=G.data;var F=G.isOverlay;G={};return _.l("yt-course-perks-view-model",{class:_.tx("ytwCoursePerksViewModelHost",(G.ytwCoursePerksViewModelHostOverlay=F,G))},_.l("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",null,_.l(_.E,{cond:function(){return B().perks},
then:function(D){return _.l(_.ClZ,{data:function(){return{listItems:D()}},
isCompact:!0,isOverlay:F})}})))},"ve");_.YN(NUQ,"yt-course-perks-view-model",{props:{data:_.oh,isOverlay:_.oh}});_.YN(_.Y(function(G){var B=G.data;return _.l("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.l("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.l(_.Wd,{text:function(){return B().progressSummary}})),_.l("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.l("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.xN({width:function(){return B().progressPercentage*100+"%"}})})))},"we"),"yt-course-progress-view-model",{props:{data:_.Hd}});var ygA=_.Y(function(G){var B={};return _.l("yt-progress-view-model",{class:_.tx("ytwProgressViewModelHost",(B.ytwProgressViewModelHostOverlay=_.pW(G.isOverlay,!1),B))},_.l(_.E,{cond:function(){return G.data().progressSummary},
then:function(F){return _.l("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.l(_.Wd,{text:F}))}}),_.l("div",{class:"ytwProgressViewModelHostProgressContainer"},_.l(_.E,{cond:function(){return G.data().leadingLabel},
then:function(F){return _.l("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.l(_.Wd,{text:F}))}}),_.l("div",{class:"ytwProgressViewModelHostProgressBar"},_.l("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(G.data().progressPercentage||0)*100+"%"}}))))},"xe");var $B=_.Y(function(G){var B=G.starNumber;var F=G.data;var D=function(){var u;return((u=F())==null?void 0:u.rating)||0};
return _.l(_.E,{cond:function(){return B()},
then:function(u){return _.l(_.LH,null,_.l(_.Xm,{when:function(){return D()>=u()-.25}},function(){return _.l("div",{class:"ytStarRatingViewModelHostStar"},_.l(_.Pr,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.l(_.Xm,{when:function(){return D()>=u()-.75}},function(){return _.l("div",{class:"ytStarRatingViewModelHostStar"},_.l(_.Pr,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.l(_.Qc,null,function(){return _.l("div",{class:"ytStarRatingViewModelHostStar"},_.l(_.Pr,{icon:"STAR",
size:function(){return 24}}))}))}})},"ye"),nMA=_.Y(function(G){G=G.data;
return _.l("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.l($B,{starNumber:1,data:G}),_.l($B,{starNumber:2,data:G}),_.l($B,{starNumber:3,data:G}),_.l($B,{starNumber:4,data:G}),_.l($B,{starNumber:5,data:G}))},"ze");_.YN(_.Y(function(G){var B=_.AS(G,{}).data;return _.l("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.l("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.l(_.Wd,{text:function(){var F;return(F=B())==null?void 0:F.title}})),_.l("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.l(_.E,{cond:function(){return B().starProgressViewModels},
then:function(F){return _.l("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.l(_.uR,{data:F},{progressViewModel:ygA}))}}),_.l("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.l("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.l(_.Wd,{text:function(){var F;
return(F=B())==null?void 0:F.averageRatingLabel}})),_.l(_.E,{cond:function(){return B().zeroStateText},
then:function(F){return _.l("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.l(_.Wd,{text:F}))}}),_.l(_.E,{cond:function(){return B().starRatingViewModel},
then:function(F){return _.l("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.l(_.uR,{data:F},{starRatingViewModel:nMA}))}}),_.l("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.l(_.Wd,{text:function(){var F;
return(F=B())==null?void 0:F.totalRatingsCountLabel}})))))},"Ae"),"yt-course-ratings-view-model",{props:{data:_.oh}});var lc$;lc$={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.ULD=_.Y(function(G){var B=_.W5("yt-learning-journey-loader-view-model"),F=_.xF();_.eR(function(){requestAnimationFrame(function(){var u;(u=F.lottieEl)==null||u.addEventListener("DOMLoaded",function(){var R;(R=G.onLottieLoaded)==null||R.call(G)})});
var D=G.data().browseEndpoint;D&&_.rJ(D)});
return _.l("yt-learning-journey-loader-view-model",{class:_.tx("learningJourneyLoaderViewModelHost",G.className),"data-target-id":function(){return G.data().targetId||""},
el:B},_.l(_.gy,{className:_.tx("learningJourneyLoaderViewModelLoader",G.className),animationName:function(){return lc$.animationConfig.name},
data:lc$,animationRef:F}))},"Ce");_.YN(_.ULD,"yt-learning-journey-loader-view-model",{props:{data:_.Hd,className:_.oh,onLottieLoaded:_.oh}});var qSA=_.Y(function(G){var B=function(){return G.data()},F=function(){return!!_.qk(_.lv(B())).optionColor},D=_.C(_.qg(-1,void 0,"gXOYR")),u=D.next().value,R=D.next().value,N=function(K){return u()===K},y=function(K){return B().correctAnswerIndex===K},U=function(){return u()!==-1};
D=_.C(_.qg("",void 0,"BFwDQb"));var q=D.next().value,h=D.next().value;return _.l("learning-journey-quiz-view-model",{class:_.tx("learningQuizComponentHost","learningJourneyQuizYoututorHost",G.className),style:_.xN({background:function(){return _.qk(_.lv(B())).backgroundColor}})},_.l("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},q),_.l("div",{class:"learningQuizComponentQuizContainer"},_.l("div",{class:"learningQuizComponentQuiz"},_.l("div",{class:"learningQuizComponentQuizContent"},_.l(_.E,{cond:function(){return!!B().aiGeneratedQuizLabel},
then:function(){return _.l("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.l(_.Wd,{text:function(){return B().aiGeneratedQuizLabel}}))}}),_.l("div",{class:"learningQuizComponentQuizHeader",
style:_.xN({"align-items":function(){return B().overflowMenu?"start":"center"}})},_.l("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.xN({"min-height":function(){return B().overflowMenu?"48px":"26px"}})},_.l("div",{class:"learningJourneyQuizYoututorText",
style:_.xN({color:function(){return _.qk(_.lv(B())).primaryTextColor}})},_.l(_.Wd,{text:function(){return B().questionHeaderText}})))),_.l("div",{class:"learningQuizComponentQuizSubheader",
style:_.xN({color:function(){return _.qk(_.lv(B())).secondaryTextColor}})},_.l(_.Wd,{text:function(){var K=B();
return U()?K.explanationText:K.questionSubheaderText}}))),_.l("div",{role:"group",
class:_.tx("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.l(_.jR,{each:function(){return B().optionsData||[]}},function(K,a){var m={};
return _.l("button",{class:_.tx("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(m.learningQuizComponentQuizHover=function(){return!U()},m.learningQuizComponentQuizOptionWithCustomColor=F,m.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return U()&&y(a())},m.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return u()!==B().correctAnswerIndex&&N(a())},m.learningQuizComponentQuizIncorrectShake=
function(){return u()!==B().correctAnswerIndex&&N(a())},m)),
"on:click":_.gJ(function(){_.kF(_.Rh(),{data:K});if(U())return!1;R(a());var L,W;h(y(a())?((L=B().successTitle)==null?void 0:L.content)||"":((W=B().failureTitle)==null?void 0:W.content)||"");return!1}),
style:_.xN({background:"transparent"}),"aria-description":function(){var L,W;return U()?y(a())?(L=B().successTitle)==null?void 0:L.content:(W=B().failureTitle)==null?void 0:W.content:""},
"aria-disabled":U},_.l("div",{class:"learningQuizComponentQuizOptionContainer"},_.l(_.Wd,{text:K.optionText}),_.l(_.E,{cond:function(){var L=a();return U()&&(N(L)||y(L))},
then:function(){var L={};return _.l(_.Pr,{className:_.tx("learningJourneyQuizYoututorOptionIcon",(L.learningQuizComponentQuizPulse=function(){return u()===B().correctAnswerIndex&&y(a())},L)),
size:24,icon:function(){return y(a())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.l(_.E,{cond:U,
then:function(){return _.l("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.l("div",{class:"learningJourneyQuizYoututorExplanationText"},_.l(_.Wd,{text:function(){return B().explanationHeaderText}})),_.l(_.Wd,{text:function(){return B().optionsData[u()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"De");
qSA.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var ogM=function(){},EMB;
(EMB=window.requestIdleCallback)==null||EMB.bind(window);var VZg=new Set,bmz=null;var hJN;_.KgG=_.Y(function(G){var B=null,F=null,D=null,u=function(){return G.data()},R=function(){return _.qk(_.lv(u()))},N=function(){return!!R().optionColor},y=_.C(_.qg(-1,void 0,"H2gnQb")),U=y.next().value,q=y.next().value,h=function(T){return U()===T},K=function(T){return u().correctAnswerIndex===T},a=function(){return U()!==-1},m=function(){return U()===u().correctAnswerIndex},L=function(){var T=u(),A=a(),Z=m();
return A?Z?T.successTitle:T.failureTitle:T.questionHeaderText},W=function(){var T=a(),A=m();
return T?A?264685:264684:264683},e=function(){var T=u();
return a()?T.explanationText:T.questionSubheaderText},b=function(){return!!u().video},M=function(T){return m()&&K(T)},t=_.gJ(function(){q(-1);
return!1});
return _.l(_.E,{cond:function(){return u().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.l(qSA,{data:function(){return u()}})},
else:function(){return _.l("learning-journey-quiz-view-model",{class:_.tx("learningQuizComponentHost",G.className),style:_.xN({background:function(){return R().backgroundColor}})},_.l(_.E,{cond:b,
then:function(){return _.l("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.xN({background:function(){return R().videoBackgroundColor}})},_.l(_.uR,{data:function(){return u().video}},{lockupViewModel:function(T){return _.l(_.xm,{data:T.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.l("div",{class:"learningQuizComponentQuizContainer"},_.l("div",{class:"learningQuizComponentQuiz"},_.l("div",{class:"learningQuizComponentQuizContent"},_.l(_.E,{cond:function(){return!!u().aiGeneratedQuizLabel},
then:function(){return _.l("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.l(_.Wd,{text:function(){return u().aiGeneratedQuizLabel}}))}}),_.l("div",{class:"learningQuizComponentQuizHeader",
style:_.xN({"align-items":function(){return u().overflowMenu?"start":"center"}})},_.l("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.xN({"min-height":function(){return u().overflowMenu?"48px":"26px"}})},_.l("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.VX(function(T){_.Ed(W(),T,B,function(A){B=A})}),
style:_.xN({color:function(){return R().primaryTextColor}}),
"client-ve-type":W},_.l(_.Wd,{text:L}))),_.l("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.l(_.E,{cond:a,then:function(){return _.l("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.VX(function(T){_.Ed(264687,T,F,function(A){F=A})}),
"on:click":t,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.l("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.xN({fill:function(){return R().primaryTextColor}})},_.l("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"})))}}),
_.l(_.uR,{data:function(){return u().overflowMenu}},{buttonViewModel:function(T){return _.l(_.cd,{data:T.data})}}))),_.l("div",{class:"learningQuizComponentQuizSubheader",
el:_.VX(function(T){_.Ed(264688,T,D,function(A){D=A})}),
style:_.xN({color:function(){return R().secondaryTextColor}}),
"client-ve-type":264688},_.l(_.Wd,{text:e}))),_.l("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.l(_.jR,{each:function(){return u().optionsData||[]}},function(T,A){var Z={};
return _.l("button",{class:_.tx("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(Z.learningQuizComponentQuizHover=function(){return!a()},Z.learningQuizComponentQuizOptionWithCustomColor=N,Z.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return M(A())},Z.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!m()&&h(A())},Z.learningQuizComponentQuizIncorrectShake=function(){return!m()&&
h(A())},Z.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return a()&&!h(A())},Z)),
"on:click":_.gJ(function(){_.kF(_.Rh(),{data:T});if(a())return!1;q(A());return!1}),
style:_.xN({background:function(){var P=A();return a()&&h(P)?"":N()?R().optionColor:"transparent"}}),
"aria-disabled":a},_.l("div",{class:"learningQuizComponentQuizOptionContainer"},_.l(_.E,{cond:a,then:function(){return _.l(hJN,{isOptionCorrect:K,optionIndex:A,isOptionSelectedAndCorrect:M,colors:R})}}),_.l(_.Wd,{text:T.optionText})))})))))}})},"Ee");
hJN=_.Y(function(G){var B={};return _.l("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var F=G.optionIndex();return G.isOptionCorrect(F)?"0 0 24 24":"0 -960 960 960"},
class:_.tx("learningJourneyQuizViewModelQuizOptionIconLeading",(B.learningQuizComponentQuizPulse=function(){return G.isOptionSelectedAndCorrect(G.optionIndex())},B)),
style:_.xN({fill:function(){return G.colors().primaryTextColor}})},_.l("path",{d:function(){var F=G.optionIndex();
return G.isOptionCorrect(F)?"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"}}))},"Fe");
_.KgG.idomCompat=!0;_.YN(_.KgG,"learning-journey-quiz-view-model",{props:{data:_.Hd,className:_.Hd}});var acz=_.Y(function(G){var B=_.C((0,_.eP)(function(){var N;return{targetId:(N=G.data().config)==null?void 0:N.suspenseKey,contents:[G.data()]}})).next().value,F=_.te().resolve(_.Wr),D=function(){var N=B().contents.length>0?B().contents[0]:void 0;
return N==null?void 0:N.config},u=function(){var N;
return(N=D())==null?void 0:N.entityTriggerConfig},R=_.iR(HCM,function(){var N,y;
return(y=(N=u())==null?void 0:N.entityKey)!=null?y:""});
_.bC(function(){var N,y,U,q=(U=Number((N=u())==null?void 0:(y=N.invalidationTimestamp)==null?void 0:y.seconds))!=null?U:0,h,K,a;if(((a=Number((h=R())==null?void 0:(K=h.lastUpdated)==null?void 0:K.seconds))!=null?a:0)>q){var m;(N=(m=D())==null?void 0:m.continuationCommand)&&F.resolveCommand(N)}},"tC8nKe");
return _.l("yt-suspense-view-model",{class:_.tx("ytSuspenseViewModelHost")},_.l(_.uR,{data:function(){var N;return(N=D())==null?void 0:N.contents}},{lockupViewModel:_.xm}))},"He");var mLD=_.Y(function(G){var B=_.AS(G,{palette:void 0,isLastItem:!1}),F=B.palette,D=B.isLastItem,u=function(){return G.data().isHighlighted},R=function(){var U;
return MZc((U=F())==null?void 0:U.iconDisabledColor)},N=function(){var U;
return MZc((U=F())==null?void 0:U.primaryTitleColor)},y=function(){var U;
return MZc((U=F())==null?void 0:U.secondaryTitleColor)};
B={};return _.l("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.VX(_.mR(function(){return G.data().rendererContext}))},_.l(_.uR,{data:function(){return G.data().thumbnail}},{thumbnailViewModel:A8}),_.l("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.l("div",{class:_.tx("ytMacroMarkerListItemViewModelTimeDescription",(B.ytMacroMarkerListItemViewModelHighlighted=u,B)),
style:_.xN({"background-color":function(){return u()?N():R()},
color:function(){return u()?"":y()}})},_.l(_.Wd,{text:function(){return G.data().timestamp}})),_.l("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.xN({"background-color":function(){return D()?"transparent":R()}})}),_.l("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(u()?N():y())}},_.l(_.Wd,{text:function(){return G.data().title}}))))},"Ie");_.zC=_.Y(function(G){function B(pQ){M("transform:translateX("+(_.v5("HTML_DIR")==="rtl"?"":"-")+pQ+"px)")}
function F(pQ){return Math.min(Math.max(pQ,0),b()-P())}
function D(pQ){var aq=A()+US();if(!u())return 0;pQ===void 0&&(pQ=Math.round(P()/aq)||1);return pQ*aq}
var u=function(){return G.data().items||[]},R=function(){return G.data().previousButton},N=function(){return G.data().nextButton},y=function(){var pQ,aq;
return(aq=(pQ=G.disableArrows)==null?void 0:pQ.call(G))!=null?aq:!1},U=function(){var pQ;
return!((pQ=G.forceNarrowLayout)==null||!pQ.call(G))},q=_.mS(function(){var pQ;
return!((pQ=G.centerAlignItems)==null||!pQ.call(G))&&b()<=P()},void 0,"iGOqxd"),h=_.W5("horizontal-shelf-view-model"),K=_.W5("div"),a=_.C(_.qg(0,void 0,"tieKmf")),m=a.next().value,L=a.next().value;
a=_.C(_.qg(0,void 0,"W2lvv"));var W=a.next().value,e=a.next().value,b=W;W=_.C(_.qg("",void 0,"PEePkc"));a=W.next().value;var M=W.next().value;W=_.C(_.qg(0,void 0,"c7a4W"));var t=W.next().value,T=W.next().value,A=t;W=_.C(_.qg(0,void 0,"KGhRJf"));t=W.next().value;var Z=W.next().value,P=t;W=_.C(_.qg(!1,void 0,"fgWgyc"));var RI=W.next().value,yo=W.next().value;W=_.C(_.qg(0,void 0,"pe79rc"));t=W.next().value;var hg=W.next().value,US=t;W=_.C(_.qg(0,void 0,"CTqisc"));var aI=W.next().value,v6=W.next().value;
W=_.C(_.qg(0,void 0,"S2Yf1b"));var Jg=W.next().value,c6=W.next().value;W=_.C(_.qg("50%",void 0,"kjP5ke"));var q8=W.next().value,n7=W.next().value,Ts=function(){var pQ,aq=(pQ=G.data())==null?void 0:pQ.responsiveContainerConfiguration,Zq,eN;return aq?H_(aq==null?void 0:aq.responsiveSize):(eN=(Zq=G.sizing)==null?void 0:Zq.call(G))!=null?eN:"STANDARD"},hT=function(){var pQ,aq=(pQ=G.data())==null?void 0:pQ.responsiveContainerConfiguration;
return aq?aq.enableContentSpecificAspectRatio===!1:!1};
W=_.mS(function(){return!y()&&m()>0},void 0,"jT8Bud");
t=_.mS(function(){return!y()&&m()<b()-P()},void 0,"mt4gsb");
var L7=function(){h.value!==null&&kD()},K7;
_.$f(function(){kD();window.ResizeObserver?(K7=new ResizeObserver(_.h5(L7,0)),K7.observe(h.value)):window.addEventListener("resize",L7)});
_.VI(function(){if(window.ResizeObserver){var pQ;(pQ=K7)==null||pQ.disconnect()}else window.removeEventListener("resize",L7)});
var kD=function(){var pQ=h.value.clientWidth,aq=G.includeMargin!==void 0?G.includeMargin():!1,Zq;var eN=G.hasPeek!==void 0?G.hasPeek():!((Zq=G.data())==null||!Zq.hasPeek);pQ=_.W_({containerWidth:pQ,hasPeek:eN,sizing:Ts(),marginSettings:aq?U()?4:1:0});hg(pQ.gutter);v6(pQ.margin);T(pQ.itemWidth);yo(pQ.maxContainerWidth<528||U());Z(pQ.maxContainerWidth);u()&&e((pQ.itemWidth+pQ.gutter)*u().length-pQ.gutter);if(u()){var Ps;if(((Ps=G.thumbnailAspectRatio)==null?void 0:Ps.call(G))!==void 0){var el;n7(A()/
F88((el=G.thumbnailAspectRatio)==null?void 0:el.call(G))/2+"px")}else n7("50%")}},Rz={},KQ={};
return _.l("horizontal-shelf-view-model",{class:_.tx("ytwHorizontalShelfViewModelHost",G.className),el:h},_.l(_.E,{cond:function(){var pQ;return G.data().header&&!((pQ=G.horizontalShelfExperiments)==null?0:pQ.call(G).hideHeader)},
then:function(){return _.l("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.xN({width:function(){return P()+"px"},
padding:function(){return"0 "+aI()+"px"}})},_.l(_.uR,{data:function(){return G.data().header}},{sectionHeaderViewModel:function(pQ){return _.l(_.BC,{data:pQ.data,
disableHorizontalPadding:!0,forceSmallLayout:RI,useResponsiveLayout:!0})}}))}}),_.l("div",{class:_.tx("ytwHorizontalShelfViewModelOuterContainer",(Rz.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return q()},Rz)),
style:_.xN({"margin-top":function(){var pQ,aq=G.data().header&&!((pQ=G.horizontalShelfExperiments)==null?0:pQ.call(G).hideHeader),Zq;return(((Zq=G.ensureMarginTop)==null?0:Zq.call(G))&&!aq?12:0)+"px"}})},_.l("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.xN({width:function(){return P()+"px"},
padding:function(){return"0 "+aI()+"px"},
overflow:function(){return y()?"auto":"hidden"}})},_.l("div",{class:_.tx("ytwHorizontalShelfViewModelItems",(KQ.ytwHorizontalShelfViewModelCenterAlignItems=function(){return q()},KQ)),
el:K,style:a},_.l(_.uR,{data:u},{macroMarkerListItemViewModel:function(pQ,aq){return _.l("div",{style:_.xN({width:function(){return A()+"px"},
"margin-right":function(){return(aq()===u().length-1?0:US())+"px"}})},_.l(mLD,{data:pQ.data,
palette:_.pW(G.palette),isLastItem:function(){return aq()===u().length-1}}))},
lockupViewModel:function(pQ,aq){var Zq=pQ.data;return _.l("div",{"on:focusin":_.gJ(function(){var eN=aq();eN!==Jg()&&(eN<Jg()?L(F(m()-D(1))):L(F(m()+D(1))),B(m()),c6(eN));return!0}),
style:_.xN({width:function(){return A()+"px"},
"margin-right":function(){return(aq()===u().length-1?0:US())+"px"}})},_.l(_.xm,{data:Zq,
containerType:4,sizing:Ts,protectBackground:G.protectBackground,thumbnailFixedWidth:function(){return pnl(Zq())+"px"},
thumbnailTargetWidth:function(){return pnl(Zq())},
force16By9ThumbnailAspectRatio:hT}))},
suspenseViewModel:function(pQ,aq){return _.l("div",{style:_.xN({width:function(){return A()+"px"},
"margin-right":function(){return(aq()===u().length-1?0:US())+"px"}})},_.l(acz,{data:pQ.data}))}}))),_.l(_.E,{cond:W,
then:function(){return _.l("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.xN({top:function(){return q8()}})},_.l(_.uR,{data:R},{buttonViewModel:function(pQ){return _.l(_.cd,{data:pQ.data,
onClick:function(){L(F(m()-D(void 0)));B(m())}})}}))}}),_.l(_.E,{cond:t,
then:function(){return _.l("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.xN({top:function(){return q8()}})},_.l(_.uR,{data:N},{buttonViewModel:function(pQ){return _.l(_.cd,{data:pQ.data,
onClick:function(){L(F(m()+D(void 0)));B(m())}})}}))}})))},"Je");
_.zC.idomCompat=!0;var X6B=_.Y(function(G){var B=function(){return G.data().targetId||""},F=function(){var W;
return((W=G.data())==null?void 0:W.expansionEntityKey)||""},D=_.iR(_.Wfg,F),u=!0,R=function(){var W;
return((W=D())==null?void 0:W.value)===B()},N=function(W){_.M7(_.wC("stringEntity",F(),{key:F(),
value:W?B():""}))};
_.eR(function(){u=!1;G.data().isExpanded&&N(!0)});
var y=function(){if(R()){var W=!0;G.onCollapse!==void 0&&(W=G.onCollapse());W&&N(!1)}else N(!0)},U=_.gJ(y),q=function(){var W;
return(((W=G.accordionStyle)==null?void 0:W.call(G))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},h=_.W5("div"),K=function(){var W,e;
return(e=(W=_.Q(G.data().rendererContext,_.yL))==null?void 0:W.label)!=null?e:""},a=function(){var W,e;
return{disabled:(W=G.hideIfNotExpanded)==null?void 0:W.call(G),ariaHidden:(e=G.hideIfNotExpanded)==null?void 0:e.call(G)}},m={},L={};
return _.l("yt-accordion-item-view-model",{class:_.tx("ytAccordionItemViewModelHost",G.className,(m.ytAccordionItemViewModelExpanded=function(){return R()},m.ytAccordionItemViewModelHidden=function(){var W;
return(W=G.hideIfNotExpanded)==null?void 0:W.call(G)},m.ytAccordionItemViewModelMini=q,m)),
"data-target-id":B},_.l("div",{class:"ytAccordionItemViewModelContainer"},_.l("div",{class:"ytAccordionItemViewModelLeftSection","on:click":U,title:K,"aria-hidden":function(){var W;return(W=G.hideIfNotExpanded)==null?void 0:W.call(G)}},_.l(_.Wd,{text:function(){return G.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:K})),_.l("div",{class:"ytAccordionItemViewModelRightSection"},_.l(_.uR,{data:function(){return R()?G.data().expandButton:G.data().collapseButton}},{buttonViewModel:function(W){return _.l(_.cd,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:y,buttonOverrides:a})}}))),_.l("div",{class:"ytAccordionItemViewModelContainer"},_.l("div",{class:_.tx("ytAccordionItemViewModelContent",(L.ytAccordionItemViewModelExpandedSubtitle=function(){return R()},L)),
el:h,style:_.xN({"max-height":function(){return u?"auto":R()?h.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!R()}},_.l(_.E,{cond:function(){return!q()},
then:function(){return _.l(_.Wd,{text:function(){return G.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.l(_.uR,{data:function(){return G.data().content}},{horizontalShelfViewModel:function(W){return _.l(_.zC,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Le");_.QIU=_.Y(function(G){var B=_.C((0,_.eP)(G.data)).next().value,F=function(){return G.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},D=function(){return F()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},u=_.C(_.qg(!0,void 0,"VFpYAb")),R=u.next().value,N=u.next().value,y=function(){return D()&&R()},U=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){N(!R())}}},q=_.gJ(function(){B().onTitleTap&&_.rJ(B().onTitleTap||{})});
u={};return _.l("yt-accordion-view-model",{class:_.tx("ytAccordionViewModelHost",(u.ytAccordionViewModelMinimized=function(){return y()},u)),
"data-target-id":function(){return G.data().targetId||""}},_.l(_.E,{cond:function(){return D()||!!B().title},
then:function(){return _.l("div",{class:"ytAccordionViewModelHeader"},_.l("div",{class:"ytAccordionViewModelTitleSection"},_.l("div",{class:"ytAccordionViewModelTitleWrapper"},_.l(_.E,{cond:function(){return!!G.data().headerIcon},
then:function(){return _.l(_.Pr,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var h;return(h=G.data().headerIcon)==null?void 0:h.iconType}})}}),_.l("div",{class:"ytAccordionViewModelTitle",
"on:click":q},_.l(_.Wd,{className:"ytAccordionViewModelTitleText",text:function(){return B().title}})))),_.l("div",{class:"ytAccordionViewModelButtonSection"},_.l(_.E,{cond:D,
then:function(){return _.l(_.Ji,{data:U,iconName:function(){return y()?"chevron_down":"chevron_collapse"}})}})))}}),_.l("div",{class:"ytAccordionViewModelContent"},_.l(_.uR,{data:function(){return B().contents}},{accordionItemViewModel:function(h){return _.l(X6B,{data:h.data,
className:"ytAccordionViewModelRow",accordionStyle:F,hideIfNotExpanded:y,onCollapse:function(){return D()?(N(!0),!1):!0}})}})),_.l("div",null,_.l(_.E,{cond:function(){return!D()&&(!!B().disclaimerFooter||!!B().footer)},
then:function(){return _.l("div",{class:"ytAccordionViewModelFooter"},_.l(_.Wd,{text:function(){return B().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.l(_.uR,{data:function(){return G.data().footer}},{flexibleActionsViewModel:function(h){return _.l(_.KL,{data:h.data,
layout:0})}}))}})))},"Me");_.YN(_.QIU,"yt-accordion-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=null,F=null,D,u=(D=_.te().resolve(_.fH(_.Rx)))==null?void 0:D(),R=_.C(_.qg(!1,void 0,"CmEVtc"));D=R.next().value;var N=R.next().value;R=_.C(_.qg(!0,void 0,"yo9dR"));var y=R.next().value,U=R.next().value,q=_.W5("textarea",function(e){_.Ed(264503,e,B,function(b){B=b})}),h=function(e){N(!0);
e={learningJourneyFormData:{query:e}};_.rJ(G.data().searchEndpoint||{},{form:{formData:e}});return!1},K=_.gJ(function(e){e.target.closest("button-view-model")&&N(!0)});
R=_.gJ(function(){U(q.value.value.length===0)});
var a=_.gJ(function(e){if(e.key==="Enter"&&!e.shiftKey&&!y()){var b=e.target;e.preventDefault();h(b.value)}}),m={},L={},W={};
return _.l("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.l("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.l(_.vr,{data:function(){return G.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.l("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.l("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.l("div",{class:_.tx("ytLearningJourneyZeroStateSearchBar",(m.ytLearningJourneyZeroStateSearchBarDark=u,m))},_.l("textarea",{class:_.tx("ytLearningJourneyZeroStateTextInput",(L.ytLearningJourneyZeroStateTextInputDark=u,L)),el:q,"on:keyup":R,"on:keydown":a,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.l("div",{class:_.tx("ytLearningJourneyZeroStateSearchButtonContainer",(W.ytLearningJourneyZeroStateSearchButtonContainerDark=u,W))},_.l(_.cd,{data:function(){return _.Q(G.data().searchButton,_.LV)},
className:"search-button",onClick:function(){return h(q.value.value)},
buttonOverrides:function(){return{disabled:y(),style:u?"mono-inverse":"mono",size:"XL"}}}))),_.l(_.E,{cond:function(){return!!G.data().errorBanner},
then:function(){return _.l("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.VX(function(e){_.Ed(264617,e,F,function(b){F=b})})},_.l(_.uR,{data:function(){return G.data().errorBanner}},{alertBannerViewModel:function(e){return _.l(_.cnv,{data:e.data,
"client-ve-type":264617})}}))}})),_.l(_.E,{cond:D,
then:function(){return _.l("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.l(_.uR,{data:function(){return G.data().loader}},{learningJourneyLoaderViewModel:function(e){return _.l(_.ULD,{data:e.data})}}))},
else:function(){return _.l("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.l(_.E,{cond:function(){return!!G.data().learningJourneyShelf},
then:function(){return _.l("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.l("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().learningJourneySectionTitle}),_.l(_.uR,{data:function(){return G.data().learningJourneyShelf}},{horizontalShelfViewModel:function(e){return _.l(_.zC,{data:e.data,
centerAlignItems:!0})}}))}}),_.l("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.l("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().suggestedJourneySectionTitle}),_.l("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":K},_.l(_.uR,{data:function(){return G.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(e){return _.l(_.KL,{data:e.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ne"),"yt-learning-journey-zero-state",{props:{data:_.Hd}});var jI$=_.Y(function(G){var B=G.data;return _.l("ytvl-live-leaderboard-item-action-content-view-model",{class:_.tx("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.l(_.Wd,{text:function(){var F;return(F=B())==null?void 0:F.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.l(_.uR,{data:function(){return B().actionButton}},{buttonViewModel:function(F){return _.l(_.cd,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:F.data})}}))},"Oe");var LgA=_.Y(function(G){var B=G.data;return _.l("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.tx("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.l(_.Wd,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var F;return(F=B())==null?void 0:F.displayName},
ellipsisTruncate:!0}),_.l(_.uR,{data:function(){return B().badge}},{buttonViewModel:function(F){return _.l(_.cd,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:F.data})}}))},"Pe");_.YN(_.Y(function(G){var B=G.data;return _.l("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.l("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.l(_.Wd,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var F;return(F=B())==null?void 0:F.rank}})),_.l("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8})),_.l("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.l(_.uR,{data:function(){return B().content}},{liveLeaderboardItemChannelContentViewModel:LgA,
liveLeaderboardItemActionContentViewModel:jI$})),_.l(_.Wd,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var F;return(F=B())==null?void 0:F.points}}))},"Qe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;return _.l("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.l(_.Wd,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var F,D;return(F=B())==null?void 0:(D=F.ranking)==null?void 0:D.rank}}),_.l("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8})),_.l(_.Wd,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var F,D;return(F=B())==null?void 0:(D=F.channelContent)==null?void 0:D.channelName}}),_.l(_.Wd,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var F;return(F=B())==null?void 0:F.points}}))},"Re"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Hd}});var rgQ=_.Y(function(G){G=_.AS(G,{wrapper:!1}).wrapper;return _.l(_.E,{cond:G,then:function(){return _.l("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.l("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.l("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Se");
rgQ.idomCompat=!0;var WgD=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],HQA=_.Y(function(G){var B=G.data;var F=_.VX(),D=_.mS(function(){return B().command},void 0,"fyYsT");
_.bC(function(){D()&&_.QX(D(),{form:{element:F.value}})},"B0nxdb");
return _.l("div",{el:F,class:"YtQrCodeRendererHostContainer"},_.l(_.E,{cond:function(){return B().qrCodeImage},
then:function(u){return _.l(_.vr,{data:u,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.l(_.E,{cond:function(){return B().spinner},
then:function(){return _.l(rgQ,null)}})}}),_.l(_.E,{cond:function(){return B().label},
then:function(u){return _.l(_.Wd,{text:u,className:"YtQrCodeRendererHostLabel"})}}),_.l(_.E,{cond:function(){return B().labels},
then:function(u){return _.l("div",{class:"YtQrCodeRendererHostLabels"},_.l(_.jR,{each:u},function(R){return _.l(_.Wd,{text:R})}))}}))},"Ve");_.YN(_.Y(function(G){var B=G.data;var F=_.mS(function(){return B().qrEntityKey},void 0,"LmZ2xf"),D=_.mS(function(){return B().deleteEntityOnDismiss},void 0,"my0Tzb"),u=_.mS(function(){return B().command},void 0,"hzECIb"),R=_.iR(d$g,F);
G=_.mS(function(){return B().qrCodeImage},void 0,"AnD9rc");
var N=_.mS(function(){return B().style&&WgD.includes(B().style)},void 0,"f5fZv"),y=_.tb({visibilityCallback:function(U){U&&u()&&_.QX(u())},
showOption:{calledOnce:!0,state:"visible"}});_.$f(function(){_.VI(function(){D()&&F()&&_.oy().dispatch(_.wC("qrCodeEntity",F()))})});
return _.l("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.VX(y)},_.l(_.E,{cond:N,then:function(){return _.l(_.E,{cond:R,then:function(U){return _.l(HQA,{data:U})}})}}),_.l(_.E,{cond:G,
then:function(U){return _.l(_.vr,{data:U,alt:""})}}))},"Te"),"yt-qr-code-renderer",{props:{data:_.Hd}});var OQz=_.Y(function(G){var B=function(){return _.Kp(1728053247&(G.barColor!==void 0?Fp(G.barColor()):4278190080))};
return _.l("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.l("div",{class:"ytVideoOverviewGhostCardDetails"},_.l(ksH,{animationDelay:0,percentWidth:100,barColor:function(){return B()}}),_.l(ksH,{animationDelay:600,
percentWidth:60,barColor:function(){return B()}})))},"We"),ksH=_.Y(function(G){return _.l("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+G.percentWidth()+"%"}},_.l("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var B=G.animationDelay(),F=G.barColor();return"animation-delay:"+B+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+F+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Xe");var eJD,$Lz;eJD=_.OY.inlinePreviewEnabledSelector;_.zJ$=_.Y(function(G){function B(b){N(b)}
var F=G.data;var D=_.H5("yt-video-overview-view-model"),u=_.VX();G=_.C(_.qg(-1,void 0,"kc60qe"));var R=G.next().value,N=G.next().value;G=_.C(_.qg(0,void 0,"YSTbVe"));var y=G.next().value,U=G.next().value,q={},h=_.iR(YN6,function(){return F().asyncDataEntityKey}),K=_.FT(eJD);
G=_.te().resolve(_.fH(Y3q));var a=function(){var b;if((b=h())==null?0:b.videoOverviewViewModel){var M;return _.Q((M=h())==null?void 0:M.videoOverviewViewModel,gYs)}return F()};
G&&D&&G({enabled:function(){return K()},
itemPlaybackModel:function(){var b;return(b=a())==null?void 0:b.itemPlayback},
thumbnailElRef:function(){return q.thumbnailElRef},
containerElRef:D,options:function(){return{thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays||[],thumbnailSize:q.thumbnailSize,mouseleaveCallback:function(){}}}});
_.$f(function(){var b,M=D==null?void 0:(b=D.value)==null?void 0:b.clientWidth;M&&U(Math.min((M-24)/4-8,72))});
var m=function(){var b;return((b=a())==null?void 0:b.headerSubtext)!==void 0?!0:!1},L=function(){var b,M=Fp((b=a())==null?void 0:b.titleColor);
return M?"color: "+_.Kp(M)+";":void 0},W=function(){var b,M=Fp((b=a())==null?void 0:b.subtextColor);
return M?"color: "+_.Kp(M)+";":void 0},e=function(){return _.l("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.l("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return L()}},_.l(_.Wd,{text:function(){var b;
return(b=a())==null?void 0:b.headerText}})),_.l(_.E,{cond:m,
then:function(){return _.l("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.l("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return W()}},_.l(_.Pr,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.l("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return W()}},_.l(_.Wd,{text:function(){var b;
return(b=a())==null?void 0:b.headerSubtext}})))}}))};
G={};return _.l("yt-video-overview-view-model",{class:_.tx("ytGenAiVideoOverviewViewModelHost",(G.ytGenAiVideoOverviewViewModelMweb=!1,G.ytGenAiVideoOverviewViewModelDesktop=!0,G)),el:D,style:function(){var b,M=Fp((b=a())==null?void 0:b.backgroundColor);return M?"background-color: "+_.Kp(M)+";":void 0}},_.l(_.E,{cond:function(){var b;
return(b=a())==null?void 0:b.isLoading},
then:function(){return _.l(OQz,{barColor:function(){var b;return(b=a())==null?void 0:b.titleColor}})},
else:function(){return _.l(_.GJ,null,null,_.l("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.l(_.uR,{data:function(){var b;return(b=a())==null?void 0:b.thumbnail}},{thumbnailViewModel:function(b){return _.l(A8,{data:b.data,
aspectRatio:0,playbackRef:Ars(q),width:9999})}})),_.l("div",{class:"ytGenAiVideoOverviewViewModelDetails"},e(),_.l(_.E,{cond:function(){var b,M,t,T;
return((b=a())==null?void 0:(M=b.listItems)==null?void 0:M.length)!==void 0&&((t=a())==null?void 0:(T=t.listItems)==null?void 0:T.length)>0?!0:!1},
then:function(){return _.l("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:u},_.l(_.jR,{each:function(){var b;return(b=a())==null?void 0:b.listItems}},function(b,M){return _.l($Lz,{image:b.image,
index:M,isSelected:function(){return M()===R()},
onClick:B,itemWidth:y})}))}}),_.l("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.l("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return L()}},_.l(_.Wd,{text:function(){var b,M,t,T,A,Z,P;
return(P=(b=a())==null?void 0:(M=b.listItems)==null?void 0:(t=M[R()])==null?void 0:t.headline)!=null?P:(T=a())==null?void 0:(A=T.listItems)==null?void 0:(Z=A[0])==null?void 0:Z.headline}})),_.l("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return W()}},_.l(_.Wd,{text:function(){var b,M,t,T,A,Z,P;
return(P=(b=a())==null?void 0:(M=b.listItems)==null?void 0:(t=M[R()])==null?void 0:t.subtext)!=null?P:(T=a())==null?void 0:(A=T.listItems)==null?void 0:(Z=A[0])==null?void 0:Z.subtext}})))))}}))},"Ye");
$Lz=_.Y(function(G){var B=G.image;var F=G.itemWidth;var D=G.index;var u=G.isSelected;var R=G.onClick;G=_.gJ(function(){D!==void 0&&R!==void 0&&R(D());return!1});
var N={};return _.l("div",{class:_.tx("ytGenAiVideoOverviewViewModelCarouselItem",(N.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return u==null?void 0:u()},N)),
style:function(){return"width: "+F()+"px;"},
"on:click":G},_.l(_.vr,{data:B,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.l(_.E,{cond:function(){return u==null?void 0:u()},
then:function(){return _.l("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.l("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ze");
_.zJ$.idomCompat=!0;_.YN(_.zJ$,"yt-video-overview-view-model",{props:{data:_.Hd}});_.bQH=_.Y(function(G){var B=G.data;var F=G.topbarOffset;var D,u=((D=_.te().resolve(_.fH(_.Rx)))==null?void 0:D())||!1;return _.l("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var R=B();var N,y,U=u?(N=R.config)==null?void 0:N.darkThemeBackgroundColor:(y=R.config)==null?void 0:y.lightThemeBackgroundColor;R=U?_.hV(U):void 0;R="background-color: "+R+";";F!==void 0&&(R+="top: -"+F()+"px;");return R},
"aria-hidden":!0},_.l(_.E,{cond:function(){var R,N,y;return!!((R=B().backgroundImageConfig)==null?0:(N=R.image)==null?0:(y=N.sources)==null?0:y.length)},
then:function(){return _.l(_.vr,{data:function(){var R;return(R=B().backgroundImageConfig)==null?void 0:R.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.l("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+AKU(u,B().gradientColorConfig)+";"}}))},"$e");
_.bQH.idomCompat=!0;var V8U=_.Y(function(G){var B=G.data;var F=G.isOverlay;return _.l("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.l("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.l(_.uR,{data:function(){return B().header}},{sectionHeaderViewModel:function(D){return _.l(_.BC,{data:D.data,
isOverlay:F})}})),_.l("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.l(_.uR,{data:function(){return B().channelInfoButtons}},{flexibleActionsViewModel:_.KL})),_.l("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.l(_.uR,{data:function(){return B().description}},{descriptionPreviewViewModel:function(D){return _.l(_.GC,{data:D.data,
isOverlay:F})}})))},"af");
V8U.idomCompat=!0;var vMU=_.Y(function(G){var B=G.data;var F={};return _.l("factoid-view-model",{class:_.tx("ytwFactoidViewModelHost",(F.ytwFactoidViewModelHostOverlay=G.isOverlay,F))},_.l(_.Wd,{text:function(){return B().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.l(_.Wd,{text:function(){return B().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bf");
vMU.idomCompat=!0;var oMD=_.Y(function(G){var B=G.data;var F=G.isOverlay;return _.l("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.l(_.uR,{data:function(){return B().factoids}},{factoidViewModel:function(D){return _.l(vMU,{data:D.data,
isOverlay:F})}}))},"cf");
oMD.idomCompat=!0;_.M8A=_.Y(function(G){var B=G.data;var F=G.isOverlay;return _.l("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.l(_.uR,{data:function(){return B().items}},{channelInfoViewModel:function(D){return _.l("div",{class:"ytwCourseMetadataViewModelHostItem"},_.l(V8U,{data:D.data,
isOverlay:F}))},
coursePerksViewModel:function(D){return _.l("div",{class:"ytwCourseMetadataViewModelHostItem"},_.l(NUQ,{data:D.data,isOverlay:F}))},
descriptionPreviewViewModel:function(D){return _.l("div",{class:"ytwCourseMetadataViewModelHostItem"},_.l(_.GC,{data:D.data,isOverlay:F}))},
factoidsRowViewModel:function(D){return _.l("div",{class:"ytwCourseMetadataViewModelHostItem"},_.l(oMD,{data:D.data,isOverlay:F}))},
progressViewModel:function(D){return _.l("div",{class:"ytwCourseMetadataViewModelHostItem"},_.l(ygA,{data:D.data,isOverlay:F}))}}))},"df");var p6B=_.Y(function(G){return _.l("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.l(_.uR,{data:function(){return G.data().content}},{courseMetadataViewModel:function(B){return _.l(_.M8A,{data:B.data,
isOverlay:G.isOverlay})},
progressViewModel:function(B){return _.l(ygA,{data:B.data})}}))},"ef");var YS$=_.Y(function(G){var B=G.data;G=G.className;var F=function(){var u;return _.ax((u=B())==null?void 0:u.rendererContext)},D={};
D=(D.dynamicTextViewModelHost=!0,D.dynamicTextViewModelHostTappable=function(){return F()},D);
return _.l("yt-dynamic-text-view-model",{el:_.VX(_.mR(function(){var u;return(u=B())==null?void 0:u.rendererContext})),
role:function(){return F()?"link":void 0},
tabindex:function(){return F()?0:void 0},
class:_.tx(G,D)},_.l("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var u,R,N;return(N=(R=_.Q((u=B())==null?void 0:u.rendererContext,_.yL))==null?void 0:R.label)!=null?N:""}},_.l(_.Wd,{text:function(){return B().text},
userInput:!0})))},"ff");
YS$.idomCompat=!0;_.bt=_.Y(function(G){var B=G.data;var F=G.isPositionRelative;var D=_.JKo("(max-width: 527.9px)"),u=function(){var R,N;return(N=(R=B())==null?void 0:R.style)!=null?N:"IMAGE_BANNER_STYLE_FULL_BLEED"};
G={};return _.l("yt-image-banner-view-model",{el:_.VX(_.mR(function(){var R;return(R=B())==null?void 0:R.rendererContext})),
class:_.tx((G.ytImageBannerViewModelHost=!0,G.ytImageBannerViewModelInset=function(){return cKJ(u())},G.ytImageBannerViewModelPositionAbsolute=function(){return _.Mg(!0)&&!(F==null?0:F())},G.ytImageBannerViewModelSmallInset=function(){return cKJ(u())&&D()},G.ytImageBannerViewModelTappable=function(){var R;
return _.ax((R=B())==null?void 0:R.rendererContext)},G))},_.l(_.E,{cond:function(){var R;
return(R=B())==null?void 0:R.image},
then:function(){return _.l(_.vr,{data:function(){return B().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.l(_.uR,{data:function(){var R;
return(R=B())==null?void 0:R.overlays}},{thumbnailHoverOverlayViewModel:Ev}))},"gf");
_.bt.idomCompat=!0;var Agz;Agz=_.Y(function(G){var B=G.condition;var F=G.content;return _.l(_.E,{cond:B,then:function(){return _.l("div",{class:"yt-page-header-view-model__scroll-container"},F())},
else:function(){return F()}})},"hf");
_.dL2=_.Y(function(G){var B=G.data;var F=G.noPadding;var D=G.enableBanner;var u=G.cinematicContainerTopbarOffset;var R=G.allowCinematicContainerOverflow;var N=G.displayAsSidebar;var y=G.displayAsPanel;var U=G.alwaysUseMediumTextDescription;var q=THc(),h=function(){return!!B().image||!!B().animatedImage},K=function(){return!!B().background},a=function(){return(N==null?0:N())||(y==null?0:y())?1:q()},m=function(){return a()===1},L=function(){return m()||a()===2},W=function(){return a()===4},e=function(){var aI=
B();
var v6=!!B().heroImage;var Jg=a(),c6=Iis(B()),q8=N==null?void 0:N(),n7=!aI.metadata,Ts;if(Ts=v6?_.Q(aI.heroImage,Mpq):_.Q(aI.animatedImage||aI.image,Mpq)){aI=Ts.style;var hT=Ts.layoutMode;if(hT!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Ts=UES(l_6(Ts)),v6)v6=dAz(Jg,aI,hT,Ts,q8);else b:if(n7)v6=Jg===1?{size:48}:{size:72};else switch(Jg){case 1:v6={size:72};break b;case 2:v6={size:120};break b;default:v6=c6<4?{size:120}:{size:160}}else v6=void 0}else v6={size:0};return v6};
G={};G=_.tx((G["yt-page-header-view-model"]=!0,G["yt-page-header-view-model--no-padding"]=function(){return!(F==null||!F())},G["yt-page-header-view-model--small-top-padding"]=function(){return m()&&!B().actions&&!(y==null?0:y())||a()===2&&!(h()||B().heroImage)},G["yt-page-header-view-model--small-bottom-padding"]=function(){return L()&&!B().actions&&!(y==null?0:y())},G["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(R==null?0:R())},G["yt-page-header-view-model--display-as-sidebar"]=
N,G));
var b={},M=_.tx((b["yt-page-header-view-model__page-header-headline"]=!0,b["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var aI;return(aI=e())==null?void 0:aI.allowFullWidth},b)),t=function(){var aI;
return L()&&!((aI=e())==null?0:aI.allowFullWidth)},T=function(){return m()&&(!!B().heroImage||h())&&Iis(B())>0},A=function(){return T()&&(y==null?void 0:y())};
b={};var Z=_.tx((b["yt-page-header-view-model__page-header-title"]=!0,b["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!T()},b["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return T()&&!A()},b["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=A,b["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=K,b));
b={};var P=_.tx((b["yt-page-header-view-model__page-header-headline-image"]=!0,b["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!B().heroImage&&L()},b));
b={};var RI=_.tx((b["yt-page-header-view-model__page-header-banner-container"]=D,b["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var aI;return(D==null?void 0:D())&&((aI=_.Q(B().banner,_.Y5s))==null?void 0:aI.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},b));
b={};var yo=_.tx((b["yt-page-header-view-model__page-header-content-metadata"]=!0,b["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=K,b));b={};var hg=_.tx((b["yt-page-header-view-model__page-header-flexible-actions"]=!0,b["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!B().metadata||L()},b["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!L()},b));
b={};var US=_.tx((b["yt-page-header-view-model__page-header-attribution"]=!0,b["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=K,b));return _.l("yt-page-header-view-model",{class:G},_.l(_.E,{cond:K,then:function(){return _.l("div",{class:"yt-page-header-view-model__page-header-background"},_.l(_.uR,{data:function(){return B().background}},{cinematicContainerViewModel:function(aI){return _.l(_.bQH,{data:aI.data,
topbarOffset:u})}}))}}),_.l(Agz,{condition:function(){return!(N==null||!N())},
content:function(){return _.l("div",{class:"yt-page-header-view-model__page-header-content"},_.l(_.E,{cond:function(){return(D==null?void 0:D())&&B().banner},
then:function(){return _.l("div",{class:RI},_.l(_.uR,{data:function(){return B().banner}},{imageBannerViewModel:_.bt}))}}),_.l("div",{class:M},_.l(_.E,{cond:h,
then:function(){return _.l(_.uR,{data:function(){var aI;if(!(aI=B().animatedImage)){aI=B();if(h()){var v6=aI=Object.assign({},aI),Jg=a(),c6=Iis(B()),q8=v6.image,n7=_.Q(q8,p9y),Ts=n7==null?void 0:n7.avatar,hT=_.Q(Ts,_.QH);if(q8&&Ts&&hT){switch(Jg){case 1:hT.avatarImageSize="AVATAR_SIZE_XL";break;case 2:hT.avatarImageSize="AVATAR_SIZE_XXL";break;default:c6<4?hT.avatarImageSize="AVATAR_SIZE_XXL":hT.avatarImageSize="AVATAR_SIZE_XXXL"}_.E_(Ts,_.QH,Object.assign({},hT));n7.avatar=Object.assign({},Ts);_.E_(q8,
p9y,Object.assign({},n7));v6.image=Object.assign({},q8)}}aI=aI.image}return aI}},{contentPreviewImageViewModel:function(aI){return _.l(_.I$,{data:aI.data,
className:P,imageSizeConfig:e})},
decoratedAvatarViewModel:function(aI){return _.l(_.KU,{data:aI.data,className:P})}})}}),_.l(_.E,{cond:function(){return!!B().heroImage&&!t()},
then:function(){return _.l(_.uR,{data:function(){return B().heroImage}},{contentPreviewImageViewModel:function(aI){return _.l(_.I$,{data:aI.data,
className:P,imageSizeConfig:e})}})}}),_.l("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.l(_.E,{cond:function(){return!!B().heroImage&&t()},
then:function(){return _.l("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.l(_.uR,{data:function(){return B().heroImage}},{contentPreviewImageViewModel:function(aI){return _.l(_.I$,{data:aI.data,
className:P,imageSizeConfig:e})}}))}}),_.l(_.uR,{data:function(){return B().title}},{dynamicTextViewModel:function(aI){return _.l(YS$,{data:aI.data,
className:Z})}}),_.l(_.uR,{data:function(){return B().metadata}},{contentMetadataViewModel:function(aI){return _.l(_.t8,{data:aI.data,
layout:function(){return m()?1:0},
className:yo,isOverlay:K,useMediumText:W})}}),_.l(_.E,{cond:function(){return B().description&&!m()},
then:function(){return _.l(_.uR,{data:function(){return B().description}},{descriptionPreviewViewModel:function(aI){return _.l(_.GC,{data:aI.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:K,maxLinesOverride:function(){return m()?void 0:1},
useMediumText:function(){return(U==null?void 0:U())||W()}})}})}}),_.l(_.E,{cond:function(){return B().attribution&&!L()},
then:function(){return _.l(_.uR,{data:function(){return B().attribution}},{attributionViewModel:function(aI){return _.l(fU,{data:aI.data,
className:US,useMediumText:W})}})}}),_.l(_.E,{cond:function(){return B().actions&&!L()},
then:function(){return _.l(_.uR,{data:function(){return B().actions}},{flexibleActionsViewModel:function(aI){return _.l(_.KL,{data:aI.data,
layout:function(){return fil(a())},
className:hg})}})}}))),_.l("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.l(_.E,{cond:function(){return B().description&&m()},
then:function(){return _.l(_.uR,{data:function(){return B().description}},{descriptionPreviewViewModel:function(aI){return _.l(_.GC,{data:aI.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:K,maxLinesOverride:function(){return m()?void 0:1},
useMediumText:function(){return(U==null?void 0:U())||W()}})}})}}),_.l(_.E,{cond:function(){return B().attribution&&L()},
then:function(){return _.l(_.uR,{data:function(){return B().attribution}},{attributionViewModel:function(aI){return _.l(fU,{data:aI.data,
className:US,useMediumText:W})}})}}),_.l(_.E,{cond:function(){return B().actions&&L()},
then:function(){return _.l(_.uR,{data:function(){return B().actions}},{flexibleActionsViewModel:function(aI){return _.l(_.KL,{data:aI.data,
layout:function(){return fil(a())},
className:hg})}})}})),_.l("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.l(_.uR,{data:function(){return B().bottomMetadataFlexibleContainer}},{flexibleContainer:function(aI){return _.l(p6B,{data:aI.data,
isOverlay:K})}})))}}))},"jf");
_.dL2.idomCompat=!0;_.YN(_.Y(function(G){var B=_.C(_.qg(!1,void 0,"qvRy4d")),F=B.next().value,D=B.next().value;return _.l("yt-official-card-view-model",{class:_.tx("ytOfficialCardViewModelHost",G.className),style:_.xN({"background-color":function(){var u,R=Fp((u=G.data())==null?void 0:u.backgroundColor);return R?_.Kp(R):void 0}})},_.l(_.uR,{data:function(){return G.data().header}},{pageHeaderViewModel:function(u){return _.l(_.dL2,{data:u.data,
noPadding:!0})}}),_.l(_.uR,{data:function(){return G.data().contents}},{horizontalShelfViewModel:function(u){return _.l(_.zC,{data:u.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.l(_.E,{cond:F,
then:function(){return _.l("div",{class:"ytOfficialCardViewModelExpandedContent"},_.l(_.uR,{data:function(){return G.data().expandedContents}},{horizontalShelfViewModel:function(u){return _.l(_.zC,{data:u.data,
sizing:"MINI"})}}),_.l("div",{class:"ytOfficialCardViewModelCollapseButton"},_.l(_.uR,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
onClick:function(){D(!F())}})}})))},
else:function(){return _.l("div",{class:"ytOfficialCardViewModelExpandButton"},_.l(_.uR,{data:function(){return G.data().expandButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
onClick:function(){D(!F())}})}}))}}))},"kf"),"yt-official-card-view-model",{props:{data:_.Hd,
className:_.Hd}});var JgA=_.Y(function(G){var B,F=(B=_.te().resolve(_.fH(_.Rx)))==null?void 0:B();return _.l("ytw-search-friction-view-model",{class:_.tx("ytwSearchFrictionViewModelHost",G.className)},_.l("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.l("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.l(_.E,{cond:function(){return F&&G.data().darkThemeImage?G.data().darkThemeImage:G.data().image},
then:function(D){return _.l(_.vr,{data:D,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.l(_.uR,{data:function(){return G.data().overflowMenuButton}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.l(_.Wd,{text:function(){return G.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.l(_.jR,{each:function(){return G.data().bodyText||[]}},function(D){return _.l(_.Wd,{text:D,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.l(_.uR,{data:function(){return G.data().actions}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.l(_.Wd,{text:function(){return G.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.l(_.Wd,{text:function(){return G.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"lf");
JgA.idomCompat=!0;_.YN(JgA,"ytw-search-friction-view-model",{props:{data:_.Hd,className:_.Hd}});_.Va=_.Y(function(G){var B=_.W5("markdown-div"),F,D=(F=_.te().resolve(_.fH(_.Rx)))==null?void 0:F();_.bC(function(){var u=B.value;var R=new LGq,N=new Map(R.JSC$9608_sanitizerTable.globalAttributePolicies);N.set("style",{policyAction:4});R.JSC$9608_sanitizerTable=new Kc(R.JSC$9608_sanitizerTable.allowedElements,R.JSC$9608_sanitizerTable.elementPolicies,R.JSC$9608_sanitizerTable.allowedGlobalAttributes,N,R.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes);var y=["data-time"];if(y===void 0)N=
new Set(R.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes),N.add("data-"),R.JSC$9608_sanitizerTable=new Kc(R.JSC$9608_sanitizerTable.allowedElements,R.JSC$9608_sanitizerTable.elementPolicies,R.JSC$9608_sanitizerTable.allowedGlobalAttributes,R.JSC$9608_sanitizerTable.globalAttributePolicies,N);else{N=new Set(R.JSC$9608_sanitizerTable.allowedGlobalAttributes);y=_.C(y);for(var U=y.next();!U.done;U=y.next()){U=U.value;if(U.indexOf("data-")!==0)throw Error("la`"+U);N.add(U)}R.JSC$9608_sanitizerTable=
new Kc(R.JSC$9608_sanitizerTable.allowedElements,R.JSC$9608_sanitizerTable.elementPolicies,N,R.JSC$9608_sanitizerTable.globalAttributePolicies,R.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes)}N=new Set(R.JSC$9608_sanitizerTable.allowedGlobalAttributes);N.add("class");R.JSC$9608_sanitizerTable=new Kc(R.JSC$9608_sanitizerTable.allowedElements,R.JSC$9608_sanitizerTable.elementPolicies,N,R.JSC$9608_sanitizerTable.globalAttributePolicies,R.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes);
_.qm(u,_.aRt(R.build(),Zmz(G.text())));ggc(B.value)},"CUInJc");
F={};return _.l("div",null,_.l("markdown-div",{class:_.tx("ytwMarkdownDivHost",G.className,(F.ytwMarkdownDivDark=D,F.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var u;return((u=G.isSmallText)==null?void 0:u.call(G))||!1},F.ytwMarkdownDivHostWrapCodeBlocks=function(){var u;
return((u=G.wrapCodeBlocks)==null?void 0:u.call(G))||!1},F.ytwMarkdownDivHostEnableDefaultStyling=function(){var u;
return!((u=G.disableDefaultStyling)==null?0:u.call(G))},F)),
el:B}))},"nf");
_.Va.idomCompat=!0;var cgD=_.Y(function(G){var B=G.imageData;var F=_.pW(G.isInList,!1),D=function(){return F()?{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 _.l("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.l(_.E,{cond:function(){return B().image},
then:function(u){return _.l(_.vr,{data:u,alt:function(){return D().alt},
contentMode:function(){return D().contentMode},
targetWidth:function(){return D().targetWidth},
targetHeight:function(){return D().targetHeight},
className:function(){return D().className}})}}),_.l("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.l("div",{class:_.tx("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.jR,{each:function(){var u;
return(u=B().description)!=null?u:[]}},function(u){return _.l("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.l(vC,{content:u}))})))},"of"),TUQ=_.Y(function(G){var B=G.list;
var F=function(){var D;return(D=B().items)!=null?D:[]};
return _.l("div",{class:"ytwGenAiRichTextViewModelListContent"},_.l(_.E,{cond:function(){return B().title},
then:function(D){return _.l("div",{class:_.tx("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.l(_.Wd,{text:D}))}}),_.l(_.E,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.l("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.l(_.jR,{each:F},function(D){return _.l("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.l(vC,{content:D,isInList:!0}))}))}}),_.l(_.E,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.l("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.l(_.jR,{each:F},function(D){return _.l("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.l(vC,{content:D,isInList:!0}))}))}}),_.l(_.E,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.l("div",{class:"ytwGenAiRichTextViewModelImageList"},_.l(_.jR,{each:F},function(D){return _.l("div",{class:"ytwGenAiRichTextViewModelListItem"},_.l(vC,{content:D,isInList:!0}))}))}}))},"pf"),Ic2=_.Y(function(G){var B=G.table;
return _.l("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.l("thead",null,_.l("tr",null,_.l(_.jR,{each:function(){var F,D;return(D=(F=B().header)==null?void 0:F.cells)!=null?D:[]}},function(F){return _.l("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.l(_.jR,{each:function(){return F.contents}},function(D){return _.l(vC,{content:D})}))}))),_.l("tbody",null,_.l(_.jR,{each:function(){var F;
return(F=B().rows)!=null?F:[]}},function(F){return _.l("tr",null,_.l(_.jR,{each:function(){return F.cells}},function(D){return _.l("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.l(_.jR,{each:function(){return D.contents}},function(u){return _.l(vC,{content:u})}))}))})))},"qf"),vC=_.Y(function(G){var B=G.content;
var F=_.pW(G.isInList,!1),D=function(){var u,R;return(R=(u=B().contentBlock)==null?void 0:u.contents)!=null?R:[]};
return _.l("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.l(_.E,{cond:function(){return B().text},
then:function(u){return _.l(_.Wd,{className:"ytwGenAiRichTextViewModelText",text:u})}}),_.l(_.E,{cond:function(){return B().image},
then:function(u){return _.l(cgD,{imageData:u,isInList:F})}}),_.l(_.E,{cond:function(){return B().list},
then:function(u){return _.l(TUQ,{list:u})}}),_.l(_.E,{cond:function(){return B().contentBlock},
then:function(){return _.l("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.l(_.jR,{each:D},function(u){return _.l(vC,{content:u,isInList:!1})}))}}),_.l(_.E,{cond:function(){return B().table},
then:function(u){return _.l(Ic2,{table:u})}}))},"rf"),fcN=_.Y(function(G){var B={};
B=_.UY("ytwGenAiRichTextViewModelHost",(B.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.xf("search_overview_link_style")),B));return _.l("gen-ai-rich-text-view-model",{class:B},_.l(vC,{content:function(){return G.data().content}}))},"sf");_.t8D=_.Y(function(G){var B=G.data;var F=function(){var W;return((W=B().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},D=function(){return B().isLoading&&(F()==="UNSPECIFIED"||F()==="GHOST_CARD")},u=function(){return!B().isLoading},R=function(){return!!B().content&&!B().contents},N=function(){return!!B().contents},y=function(){return!!B().nextQueryButtons},U=function(){return B().isLoading&&F()==="INVISIBLE"},q=function(){var W,e;
return(e=(W=B().headerIcon)==null?void 0:W.iconType)!=null?e:""},h=function(){var W;
return(W=B().content)!=null?W:""},K=function(){return!!B().sourcesSection},a,m=!((a=_.te().resolve(_.fH(_.Rx)))==null||!a()),L=_.mS(function(){var W=[],e=B().contents;
if(e)for(var b=0;b<e.length;b++){var M=_.Q(e&&e[b],Z9t);M&&W.push(M)}return W},void 0,"gcCsZb");
_.$f(function(){B().isLoading||_.KR("so_re",void 0,"search_overview_answer")});
return _.l("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=m&&!U(),W.ytdOverviewAnswerViewModelLightBackground=!m&&!U(),W);return _.UY(W)}},_.l(_.E,{cond:function(){return!U()},
then:function(){return _.l(_.GJ,null,_.l("h2",null,_.l("div",{class:"ytdOverviewAnswerViewModelHeader"},_.l(_.E,{cond:q,then:function(W){return _.l("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.l(_.Pr,{icon:W}))}}),_.l("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.l("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return B().headerText}),_.l("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.l(_.Wd,{text:function(){return B().headerSubtext}}))))),_.l(_.E,{cond:D,
then:function(){return _.l(SNl,null)}}),_.l(_.E,{cond:u,
then:function(){return _.l(_.GJ,null,_.l(_.E,{cond:R,then:function(){return _.l("div",{class:"ytdOverviewAnswerViewModelText"},_.l(_.Va,{text:h,isSmallText:!0}))}}),_.l(_.E,{cond:N,
then:function(){return _.l("div",{class:"ytdOverviewAnswerViewModelRichText"},_.l(_.jR,{each:L},function(W){return _.l(fcN,{data:W})}))}}),_.l(_.E,{cond:y,
then:function(){return _.l("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.l(_.uR,{data:function(){return B().nextQueryButtons}},{buttonViewModel:function(W){return _.l(_.cd,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.zC}))}}),_.l("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.l("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.l(_.E,{cond:function(){return!!_.Q(B().likeButtonViewModel,_.HP)&&!!_.Q(B().dislikeButtonViewModel,_.kw)},
then:function(){return _.l("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.l(_.mP,{data:function(){return _.Q(B().likeButtonViewModel,_.HP)},
disableIconAnimation:!0}),_.l(_.a8,{data:function(){return _.Q(B().dislikeButtonViewModel,_.kw)}}))}})),_.l(_.E,{cond:function(){var W;
return(W=B().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.l("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.l(_.Wd,{text:W}))}})),_.l(_.E,{cond:K,
then:function(){return _.l("div",{class:"ytdOverviewAnswerViewModelSources"},_.l(_.uR,{data:function(){var W;return(W=B().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.cd,
horizontalShelfViewModel:function(W){return _.l(_.zC,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.l(_.E,{cond:function(){return B().disclaimerText},
then:function(){return _.l("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.l(_.Wd,{text:function(){return B().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"tf");var ZQN=_.Y(function(G){var B=_.AS(G,{}).data;return _.l("yt-shopping-content-line-item-view-model",{class:_.tx("ytShoppingContentLineItemViewModelHost")},_.l(_.Wd,{text:function(){var F;return(F=B().text)==null?void 0:F.attributedString}}))},"uf");_.oj=_.Y(function(G){G=_.AS(G,{});var B=G.data,F={};return _.l("yt-shopping-content-line-view-model",{class:_.tx("ytShoppingContentLineViewModelHost",G.className,(F.ytShoppingContentLineViewModelTruncateText=function(){return!B().wrapContent},F)),
style:_.xN({"--shopping-content-line-gap":function(){return B().itemGap?B().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return B().lineHeight?B().lineHeight+"px":void 0}})},_.l(_.jR,{each:function(){return(B().items||[]).map(function(D){return _.Q(D,ByT)}).filter(function(D){return!!D})}},function(D){return _.l(ZQN,{data:D})}))},"vf");var gMG=_.Y(function(G){var B=G.data;var F=function(){var R;return((R=B().image)==null?void 0:R.height)||48},D=function(){var R;
return((R=B().image)==null?void 0:R.width)||48},u=function(){return"width: "+D()+"px; height: "+F()+"px;"};
return _.l("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var R,N,y,U=((R=_.te().resolve(_.fH(_.Rx)))==null?0:R())?(N=B())==null?void 0:N.darkThemeBackgroundColor:(y=B())==null?void 0:y.lightThemeBackgroundColor;return"background-color: "+(U?_.Kp(U):"")+";"},
el:_.VX(_.mR(function(){var R;return(R=B())==null?void 0:R.rendererContext})),
role:"link",tabindex:0},_.l(_.E,{cond:function(){var R,N;return(N=(R=B().image)==null?void 0:R.image)!=null?N:B().thumbnail},
then:function(R){return _.l("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var N;return"background-color: "+(((N=B().image)==null?0:N.backgroundColor)?_.Kp(B().image.backgroundColor):"")+";"+u()}},_.l(_.vr,{data:R,
height:F,width:D,style:u,alt:""}))}}),_.l("div",{class:"ytShoppingDescriptionItemViewModelText"},_.l(_.uR,{data:function(){return B().line1}},{shoppingContentLineViewModel:function(R){return _.l(_.oj,{data:R.data})}}),_.l(_.uR,{data:function(){return B().line2}},{shoppingContentLineViewModel:function(R){return _.l(_.oj,{data:R.data})}}),_.l(_.uR,{data:function(){return B().line3}},{shoppingContentLineViewModel:function(R){return _.l(_.oj,{data:R.data})}})))},"wf");var SSD=_.Y(function(G){var B=G.data;var F=G.active;var D=_.W5("transcript-segment-view-model");_.bC(function(){var u,R,N,y=((u=_.te().resolve(_.fH(_.Rx)))==null?0:u())?(R=B())==null?void 0:R.darkThemeColorPalette:(N=B())==null?void 0:N.lightThemeColorPalette;y&&(y.additiveBackground&&D.value.style.setProperty("--timestamp-active-background-color",_.Kp(y.additiveBackground)),y.textSecondary&&D.value.style.setProperty("--timestamp-active-color",_.hV(y.textSecondary)))},"TnVCnb");
G={};return _.l("transcript-segment-view-model",{class:_.tx("ytwTranscriptSegmentViewModelHost",(G.ytwTranscriptSegmentViewModelHostActive=F,G.ytwTranscriptSegmentViewModelHostModern=_.X("enable_timeline_view_modern_transcript")||_.X("enable_timeline_view_modern_transcript_fe"),G)),el:D},_.l(_.E,{cond:function(){var u;return(u=B())==null?void 0:u.timestamp},
then:function(u){var R={};return _.l(_.GJ,null,_.l("div",{class:_.tx("ytwTranscriptSegmentViewModelTimestamp",(R.ytwTranscriptSegmentViewModelTimestampActive=F,R)),"aria-hidden":!0},u),_.l("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var N=u().split(":").map(Number),y=_.C(N.reverse());N=y.next().value;var U=y.next().value;y=y.next().value;return _.OLQ({hours:y,minutes:U,seconds:N})}))}}),_.l(_.Wd,{text:function(){var u,R,N;
return(N=(u=B())==null?void 0:u.attributedText)!=null?N:{content:(R=B())==null?void 0:R.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yf");var sIB=_.Y(function(G){var B=G.data;return _.l("div",{class:"videoAttributesSectionViewModelHeader"},_.l("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.l("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return B().headerTitle}),_.l(_.E,{cond:function(){return B().headerInfoButton},
then:function(){return _.l(_.uR,{data:function(){return B().headerInfoButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.l(_.E,{cond:function(){return B().headerSubtitle},
then:function(){return _.l("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return B().headerSubtitle})}}))},"zf"),xLN=_.Y(function(G){function B(W){return Math.max(Math.min(W,0),q()-y())}
var F=G.data;var D;G=_.W5("div",function(W){var e=function(){h(W.clientWidth)};
e();window.ResizeObserver&&(D=new ResizeObserver(e),D.observe(W))});
var u=_.W5("div",function(W){U(W.scrollWidth)}),R=_.C(_.qg(0,void 0,"C3XQAe")),N=R.next().value;
R=R.next().value;var y=N,U=R;R=_.C(_.qg(0,void 0,"db7y3"));N=R.next().value;R=R.next().value;var q=N,h=R;N=_.C(_.qg(0,void 0,"RchC7"));var K=N.next().value,a=N.next().value;_.VI(function(){var W;(W=D)==null||W.disconnect()});
var m=function(){a(B(K()+q()))},L=function(){a(B(K()-q()))};
return _.l("yt-video-attributes-section-view-model",null,_.l("div",{class:"videoAttributesSectionViewModelHost"},_.l(_.E,{cond:function(){return F().headerTitle},
then:function(){return _.l(sIB,{data:F})}}),_.l("div",{class:_.tx("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:G},_.l("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.xN({transform:function(){var W=K();_.v5("HTML_DIR")==="rtl"&&(W*=-1);return"translateX("+W+"px)"}}),
el:u},_.l(_.uR,{data:function(){return F().videoAttributeViewModels}},{videoAttributeViewModel:VSa}))),_.l(_.uR,{data:function(){return F().footerButton}},{buttonViewModel:function(W){return _.l(_.cd,{data:W.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.l(_.E,{cond:function(){return K()<0&&F().previousButton},
then:function(){return _.l("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.l(_.uR,{data:function(){return F().previousButton}},{buttonViewModel:function(W){return _.l(_.cd,{data:W.data,
onClick:m})}}))}}),_.l(_.E,{cond:function(){return K()>q()-y()&&F().nextButton},
then:function(){return _.l("div",{class:"videoAttributesSectionViewModelRightArrow"},_.l(_.uR,{data:function(){return F().nextButton}},{buttonViewModel:function(W){return _.l(_.cd,{data:W.data,
onClick:L})}}))}})))},"Af");
xLN.idomCompat=!0;var Pl$=_.Y(function(G){var B=G.data;var F=G.active;var D={},u={};return _.l("timeline-item-view-model",{class:_.tx("ytwTimelineItemViewModelHost",(D.ytwTimelineItemViewModelHostChapterChild=G.chapterChild,D.ytwTimelineItemViewModelModern=_.X("enable_timeline_view_modern_transcript")||_.X("enable_timeline_view_modern_transcript_fe"),D))},_.l("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.l("div",{class:_.tx("ytwTimelineItemViewModelTimestamp",(u.ytwTimelineItemViewModelTimestampActive=
F,u))},function(){return B().timestamp})),_.l("div",{class:"ytwTimelineItemViewModelContentItems"},_.l(_.uR,{data:function(){return B().contentItems}},{transcriptSegmentViewModel:function(R){return _.l(SSD,{data:R.data,
active:F})},
videoAttributesSectionViewModel:xLN})))},"Bf");var GLN=_.Y(function(G){var B=G.data;G={};return _.l("timeline-chapter-view-model",{class:_.tx("ytwTimelineChapterViewModelHost")},_.l("div",{class:_.tx("ytwTimelineChapterViewModelTitle",(G.ytwTimelineChapterViewModelModern=_.X("enable_timeline_view_modern_transcript")||_.X("enable_timeline_view_modern_transcript_fe"),G))},function(){return B().title}),_.l(_.uR,{data:function(){return B().contents}},{timelineItemViewModel:function(F){return _.l(Pl$,{data:F.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(F){return _.l(xLN,{data:F.data})}}))},"Cf");var Bwz=_.Y(function(G){var B=G.data;var F=_.W5("macro-markers-panel-item-view-model"),D=_.iR(_.o4g,function(){var R;return(R=B().markersEngagementPanelSyncEntityKey)!=null?R:""}),u=function(){var R;
return((R=D())==null?void 0:R.activeItemIndex)===B().index};
G=_.gJ(function(R){var N,y,U,q,h;return _.n(function(K){if(K.nextAddress==1)return R.stopPropagation(),_.ht(_.EY(R),F.value,["A".toString(),"BUTTON".toString()])?K.return():(N=_.X1(B().onTap))?K.yield(_.So(),2):K.return();y=K.yieldResult;q=(U=_.Q(N,_.Ow))==null?void 0:U.startTimeSeconds;q===void 0||(h=y)!=null&&h.seekTo(q,!0);_.di(K)})});
return _.l("macro-markers-panel-item-view-model",{class:_.tx("ytwMacroMarkersPanelItemViewModelHost",{"is-active":u}),el:F,"on:click":G,tabindex:function(){return _.Q(B().item,i4N)?void 0:0},
role:function(){return _.Q(B().item,i4N)?void 0:"button"}},_.l(_.uR,{data:function(){var R;
return(R=B())==null?void 0:R.item}},{timelineChapterViewModel:function(R){return _.l(GLN,{data:R.data,
active:u})},
timelineItemViewModel:function(R){return _.l(Pl$,{data:R.data,active:u})},
videoAttributeViewModel:VSa,shoppingDescriptionItemViewModel:gMG}))},"Df");
Bwz.idomCompat=!0;_.YN(Bwz,"macro-markers-panel-item-view-model",{props:{data:_.Hd}});_.YN(xLN,"yt-video-attributes-section-view-model",{props:{data:_.Hd}});var i7z=_.Y(function(G){var B=function(){var F,D,u;return(u=(F=G.data().leadingLogoAccessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label)!=null?u:""};
return _.l("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.l(_.E,{cond:function(){return G.data().leadingLogo},
then:function(F){return _.l(_.vr,{className:"ytwFantasySectionHeaderViewModelLogo",data:F,alt:B})}}),_.l("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.l(_.Wd,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return G.data().title}}),_.l(_.Wd,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return G.data().subtitle}})),_.l(_.uR,{data:function(){return G.data().trailingButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ef");var FtD=_.Y(function(G){var B={};B=_.tx("ytwFantasyTeamViewModelHost",(B.ytwFantasyTeamViewModelCompact=function(){var u;return!((u=G.compact)==null||!u.call(G))},B.ytwFantasyTeamViewModelUser=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},B.ytwFantasyTeamViewModelOpponent=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},B));
var F=function(){var u,R,N;return(N=(u=G.data().teamLogoAccessibility)==null?void 0:(R=u.accessibilityData)==null?void 0:R.label)!=null?N:""},D=_.iR(p3J,function(){return G.data().teamEntityKey});
return _.l("ytw-fantasy-team-view-model",{class:B},_.l(_.E,{cond:function(){return G.data().teamLogo},
then:function(u){return _.l(_.vr,{className:"ytwFantasyTeamViewModelLogo",data:u,alt:F})}}),_.l("div",{class:"ytwFantasyTeamViewModelMetadata"},_.l("div",{class:"ytwFantasyTeamViewModelHeader"},_.l(_.Wd,{className:"ytwFantasyTeamViewModelScore",
text:function(){var u;return(u=D())==null?void 0:u.score}}),_.l(_.Pr,{icon:function(){var u;
return(u=D())==null?void 0:u.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.l(_.Wd,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var u;return(u=D())==null?void 0:u.projectedScore}})),_.l(_.Wd,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return G.data().primaryText}}),_.l(_.Wd,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return G.data().secondaryText}}),_.l(_.Wd,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return G.data().tertiaryText}})),_.l(_.Wd,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var u;return(u=D())==null?void 0:u.score}}))},"Ff");_.YN(_.Y(function(G){return _.l("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.l("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.l(_.uR,{data:function(){return G.data().summaryHeader}},{fantasySectionHeaderViewModel:i7z})),_.l(_.uR,{data:function(){return G.data().userTeam}},{fantasyTeamViewModel:FtD}),_.l(_.uR,{data:function(){return G.data().opponentTeam}},{fantasyTeamViewModel:FtD}))},"Gf"),"fantasy-league-summary-view-model",{props:{data:_.Hd}});var D8D=_.Y(function(G){var B=_.AS(G,{shape:{},useCustomTabRenderable:!1}),F=B.shape;B=B.useCustomTabRenderable;var D=G.customTabRenderable,u=function(){return F().disabled},R=function(){return F().selected},N=function(){return F().title},y=function(){return F().icon},U=_.W5("yt-tab-shape");
G=_.gJ(function(K){var a;if(!u()&&((a=F().aTagConfig)==null?0:a.onclick))F().aTagConfig.onclick(K);return!1});
var q=_.gJ(function(K){if(K.key==="Enter"||K.key==="ArrowUp"||K.key==="ArrowDown")K.preventDefault(),U.value.click();return!1}),h={};
return _.l("yt-tab-shape",{class:_.tx("yt-tab-shape",function(){return F().className},(h["yt-tab-shape__tab--last-tab"]=function(){return F().isLastTab},h["yt-tab-shape--host-disabled"]=u,h["yt-tab-shape--host-clickable"]=!D,h)),
role:D?void 0:"tab","aria-selected":R!=null?R:!1,"aria-disabled":u,tabindex:D?void 0:0,"on:click":G,"on:keydown":q,el:U,"tab-identifier":function(){return F().identifier},
"tab-title":N},_.l(_.E,{cond:B,then:function(){return D()},
else:function(){var K={},a={};return _.l(_.GJ,null,_.l("div",{class:_.tx("yt-tab-shape__tab",(K["yt-tab-shape__tab--tab-selected"]=R,K))},_.l(_.E,{cond:y,then:function(m){return _.l(_.Pr,{className:"yt-tab-shape__tab-icon",icon:function(){return m().iconType}})}}),N),_.l("div",{class:_.tx("yt-tab-shape__tab-bar",(a["yt-tab-shape__tab-bar--tab-bar-selected"]=R,a))}))}}))},"Hf");
D8D.idomCompat={callbacks:{customTabRenderable:!0}};_.RU2=_.Y(function(G){var B=G.shape;G=_.C(_.qg(48,void 0,"nDAx4"));var F=G.next().value,D=G.next().value;G=_.C(_.qg(0,void 0,"GCgjqb"));var u=G.next().value,R=G.next().value,N=function(){return B().tabs},y=_.W5("yt-tab-group-shape"),U=function(){var a,m;
return(m=(a=N())==null?void 0:a.findIndex(function(L){return L.selected}))!=null?m:-1};
G=_.C(_.qg(!1,void 0,"SU01tf"));var q=G.next().value,h=G.next().value,K=function(){q()||_.Lu.addJob(function(){h(!0)},0)};
_.bC(function(){var a=U(),m=_.Lu.addJob(function(){var L,W=((L=y.value)==null?void 0:L.querySelectorAll("yt-tab-shape"))||[],e;D(((e=a>-1?W[a]:void 0)==null?void 0:e.getBoundingClientRect().width)||0);for(e=L=0;e<a;e++)L+=W[e].offsetWidth+24;_.v5("HTML_DIR")==="rtl"&&(L=-L);R(L);K()},8,0);
_.VI(function(){_.Lu.cancelJob(m)})},"PMwgb");
G={};return _.l("yt-tab-group-shape",{class:_.tx("tabGroupShapeHost",(G.tabGroupShapeOverflowHidden=function(){return B().isOverflowHidden},G)),
el:y},_.l(_.E,{cond:N,then:function(a){return _.l(_.GJ,null,_.l("div",{class:"tabGroupShapeTabs",role:"tablist"},_.l(_.jR,{each:a},function(m,L){return _.l(D8D,{shape:function(){return Object.assign({},m,{isLastTab:L()===a().length-1})},
customTabRenderable:m.customTabRenderable,useCustomTabRenderable:!!m.customTabRenderable})})),_.l(uaQ,{width:F,
sliderOffset:u,enableTransition:q}))}}))},"Jf");
_.RU2.idomCompat=!0;var uaQ=_.Y(function(G){var B=_.pW(G.sliderOffset,0),F=G.width,D=G.enableTransition;G={};return _.l("div",{class:_.tx("tabGroupShapeSlider",(G.tabGroupShapeSliderTransition=function(){return D()},G)),
style:_.xN({width:function(){return F()+"px"},
transform:function(){return"translateX("+B()+"px)"}})})},"Kf");var ws2=_.Y(function(G){var B=function(){var R,N,y;return(y=(R=G.data().playerLogoAccessibility)==null?void 0:(N=R.accessibilityData)==null?void 0:N.label)!=null?y:""},F=_.iR(YMl,function(){return G.data().playerEntityKey}),D={};
D=_.tx("ytwFantasyPlayerViewModelHost",(D.ytwFantasyPlayerViewModelPlaying=function(){var R;return!((R=F())==null||!R.isPlayerPlaying)},D.ytwFantasyPlayerViewModelOnField=function(){var R;
return((R=F())==null?void 0:R.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},D.ytwFantasyPlayerViewModelRedZone=function(){var R;
return((R=F())==null?void 0:R.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},D));
var u=function(){var R,N,y,U=((R=_.te().resolve(_.fH(_.Rx)))==null?0:R())?(N=G.data().playerLogoBackgroundColor)==null?void 0:N.darkTheme:(y=G.data().playerLogoBackgroundColor)==null?void 0:y.lightTheme;return U===void 0?"":_.Kp(U)};
return _.l("ytw-fantasy-player-view-model",{class:D},_.l(_.E,{cond:function(){return G.data().playerLogo},
then:function(R){return _.l("div",{class:"ytwFantasyPlayerViewModelLogo"},_.l("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.l(_.vr,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.xN({"background-color":u}),data:R,alt:B})),_.l("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.l(_.Pr,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.l("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.l("div",{class:"ytwFantasyPlayerViewModelHeader"},_.l(_.Wd,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var R;return(R=G.data())==null?void 0:R.playerNameText}}),_.l(_.Wd,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var R;return(R=G.data())==null?void 0:R.playerDescriptionText}})),_.l("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.l(_.Wd,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var R;return(R=F())==null?void 0:R.gamePeriodText}}),_.l(_.Wd,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var R;return(R=G.data())==null?void 0:R.opponentTeamText}}),_.l(_.Wd,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var R;return(R=F())==null?void 0:R.gameStatusText}}),_.l(_.Wd,{className:_.tx("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var R;return(R=F())==null?void 0:R.playerStatusText}})),_.l("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.l(_.Wd,{text:function(){var R;
return(R=F())==null?void 0:R.playerStatsText}}))),_.l(_.Wd,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var R;return(R=F())==null?void 0:R.fantasyScore}}))},"Lf");var CyS=_.Y(function(G){return _.l("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.l(_.E,{cond:function(){return G.data().players},
then:function(B){return _.l(_.uR,{data:B},{fantasyPlayerViewModel:ws2})}}))},"Mf");var Nw$=_.Y(function(G){var B=_.C(_.d3(function(){var u;return(u=G.data().selectedTabIdentifierKey)!=null?u:""})),F=B.next().value,D=B.next().value;
_.eR(function(){var u;(u=G.setSelectedTabSignal)==null||u.call(G,F)});
return _.l("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.l("div",{class:"ytTabbedViewModelTabGroup"},_.l(_.RU2,{shape:function(){var u=G.data(),R=[],N={tabs:R};if(!u.tabs)return N;u=_.C(u.tabs);for(var y=u.next(),U={};!y.done;U={tabViewModel:void 0},y=u.next())if(U.tabViewModel=_.Q(y.value,R_U),U.tabViewModel){var q=y=void 0;R.push({aTagConfig:{onclick:function(h){return function(){var K;D((K=h.tabViewModel.tabIdentifier)!=null?K:"")}}(U)},
identifier:U.tabViewModel.tabIdentifier,selected:F()===U.tabViewModel.tabIdentifier,title:(q=(y=U.tabViewModel.title)==null?void 0:y.content)!=null?q:""})}return N}})),_.l(_.uR,{data:function(){var u,R=_.C((u=G.data().tabs)!=null?u:[]);
for(u=R.next();!u.done;u=R.next())if((u=_.Q(u.value,R_U))&&u.tabIdentifier===F())return u.content}},{fantasyRosterViewModel:CyS}))},"Of");_.YN(_.Y(function(G){var B=_.C(sZl()),F=B.next().value,D=B.next().value;return _.l("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.l(_.Wd,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return G.data().title}}),_.l(_.E,{cond:function(){return G.data().tabbedViewModel},
then:function(u){return _.l(_.uR,{data:u},{tabbedViewModel:function(R){return _.l(Nw$,{data:R.data,setSelectedTabSignal:D})}})}}),_.l(_.E,{cond:function(){var u,R=(u=_.Q(G.data().tabbedViewModel,wMt))==null?void 0:u.tabs;
u=_.Q(R==null?void 0:R[0],R_U);R=_.Q(R==null?void 0:R[1],R_U);var N=u==null?void 0:u.tabIdentifier;if(F()===N){var y,U;if(!((y=_.Q(u==null?void 0:u.content,KiP))==null?0:(U=y.players)==null?0:U.length))return G.data().noUserTeamPlayersText}else{var q,h;if(!((q=_.Q(R==null?void 0:R.content,KiP))==null?0:(h=q.players)==null?0:h.length))return G.data().noOpponentTeamPlayersText}},
then:function(u){return _.l(_.Wd,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:u})}}))},"Pf"),"ytw-fantasy-matchup-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){return _.l("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.l(_.Wd,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return G.data().title}}),_.l(_.E,{cond:function(){return G.data().matchupTeamPairs},
then:function(B){return _.l(_.jR,{each:B,keyBy:"INDEX"},function(F){return _.l("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.l(_.uR,{data:function(){return[F().firstTeam,F().secondTeam]}},{fantasyTeamViewModel:function(D){return _.l(FtD,{data:D.data,
compact:!0})}}))})}}))},"Qf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=function(){var u,R,N;return(N=(u=G.data().userLogoAccessibility)==null?void 0:(R=u.accessibilityData)==null?void 0:R.label)!=null?N:""},F=function(){var u,R,N;
return(N=(u=G.data().opponentLogoAccessibility)==null?void 0:(R=u.accessibilityData)==null?void 0:R.label)!=null?N:""},D=_.iR(Mnz,function(){return G.data().entityKey});
return _.l("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.l("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.l(_.E,{cond:function(){return G.data().userLogo},
then:function(u){return _.l(_.vr,{className:"ytwFantasyWinProbabilityViewModelLogo",data:u,alt:B})}}),_.l("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.l(_.Wd,{text:function(){return G.data().title}})),_.l(_.E,{cond:function(){return G.data().opponentLogo},
then:function(u){return _.l(_.vr,{className:"ytwFantasyWinProbabilityViewModelLogo",data:u,alt:F})}})),_.l("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.l("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.l(_.Wd,{text:function(){var u;
return(u=D())==null?void 0:u.userWinNumberLabel}})),_.l("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.l("div",{class:_.tx("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.xN({flex:function(){var u,R;return(R=(u=D())==null?void 0:u.userWinNumber)!=null?R:50}})}),_.l("div",{class:_.tx("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.xN({flex:function(){var u,R;return(R=(u=D())==null?void 0:u.opponentWinNumber)!=null?R:50}})})),_.l("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.l(_.Wd,{text:function(){var u;
return(u=D())==null?void 0:u.opponentWinNumberLabel}}))))},"Rf"),"fantasy-win-probability-view-model",{props:{data:_.Hd}});var yTD={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},nvD=_.Y(function(G){return _.l(_.uR,{data:G.button},{buttonViewModel:function(B){return _.l(_.cd,{data:B.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Sf"),lqN=_.Y(function(G){return _.l("ytd-backstage-locked-post-view-model",{class:_.tx("ytdBackstageLockedPostViewModelHost",G.className)},_.l("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.l("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.l(_.uR,
{data:function(){return G.data().authorAvatar}},{decoratedAvatarViewModel:_.KU})),_.l("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.l("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.l(_.Wd,{text:function(){return G.data().authorText}})),_.l("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.l(_.Wd,{text:function(){return G.data().publishedTimeText}}),_.l(_.uR,{data:function(){return G.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(B){return _.l(wuy,
{data:B.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.l("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.l(_.Wd,{text:function(){return G.data().contentText}})),_.l(_.LH,null,_.l(_.Xm,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.l("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.l(_.vr,{data:yTD,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.l(_.Wd,{text:function(){return G.data().lockedText}}))}),_.l(_.Xm,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.l("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.l("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.l(_.vr,{data:yTD,
alt:""})),_.l(_.Wd,{text:function(){return G.data().lockedText}}))})),_.l("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.l(nvD,{button:function(){return G.data().likeButton}}),_.l("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().voteCountA11y}},_.l(_.Wd,{text:function(){return G.data().voteCount}})),_.l(nvD,{button:function(){return G.data().dislikeButton}}),_.l(nvD,{button:function(){return G.data().commentButton}}),_.l("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().commentCountA11y}},_.l(_.Wd,{text:function(){return G.data().commentCount}}))))},"Tf");
lqN.idomCompat=!0;_.YN(lqN,"ytd-backstage-locked-post-view-model",{props:{data:_.Hd,className:_.Hd}});_.UR("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Mq=function(){var G=_.p.apply(this,arguments)||this;G.darkerPanels=_.X("web_watch_darker_panels");G.commentsHidePanelButton=!1;G.isWatchGrid=!1;G.continuationShowButton=!1;G.isSearch=!1;G.isConstrainedList=!1;G.isWatch=!1;G.eligibleToSwitchToGrid=!1;G.useBigThumbs=!1;G.epRestyle=!1;G.isCarouselInFeed=!0;G.topSpacingZero=!1;G.continuationIsInitialLoad=!0;G.enableSqueezebackPanels=_.X("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.X("desktop_shorts_v2_anchored_panel");G.notSticky=
!0;G.mastheadHeight=0;G.isStickyChipBarSetup=!1;G.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};G.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return G};
_.r(Mq,_.p);_.w=Mq.prototype;_.w.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var B;(B=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||B.forEach(function(F){F.containerType=G})}};
_.w.getItemsPath=function(){return"data.contents"};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.w.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.X("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.X("kevlar_low_priority_continuation")}}};
_.w.created=function(){};
_.w.updateStickySetup=function(){_.X("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.w.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(bls(!this.notSticky))};
_.w.setupStickyChipBar=function(){var G=this;if(!this.isStickyChipBarSetup&&_.X("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.x7(this,this.updateHeaderState));var B;this.mastheadHeight=((B=document.querySelector("ytd-masthead"))==null?void 0:B.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(F){G.handleIntersect(F)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateHeaderState();G.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.w.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.x7(this,this.updateHeaderState));var G;(G=this.intersectionObserver)==null||G.disconnect();var B;(B=this.resizeObserver)==null||B.disconnect()}};
_.w.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.w.handleIntersect=function(G){this.notSticky=G[0].intersectionRatio===1};
_.w.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.w.detached=function(){this.teardownStickyChipBar()};
_.w.updated=function(G){G.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.w.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var G=_.IF(this.hostElement).querySelector("ytd-comments-header-renderer");G&&(G.hidePanelButton=this.commentsHidePanelButton)}};
_.w.onRetrieveLocation=function(G,B){this.containsComments()&&(this.firstCommentsLoaded=B.hasComments=!0)};
_.w.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.w.onLoadReloadContinuation=function(G,B){var F=this;G.stopPropagation();this.isReloading=!0;_.cZ(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(D){var u=_.te().resolve(_.un);D=B(D);u.postData(D).then(function(R){F.onReloadContinuationData(R)})}})};
_.w.onReloadContinuationData=function(G){if(G=this.get("response.continuationContents.itemSectionContinuation",G)||this.get("response.contents.itemSectionRenderer",G)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",G)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",G))this.set("data.contents",G.contents||G.results),G.header&&this.set("data.header",G.header),this.set("data.continuations",
G.continuations||[]);this.isReloading=!1};
_.w.computeContentsClass=function(G){return G?"reloading":""};
_.w.computeSectionIdentifier=function(G){return G==null?void 0:G.sectionIdentifier};
_.w.computeFitContainer=function(G){return(G==null?void 0:G.sectionIdentifier)==="youchat-item-section"};
_.w.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.X("kevlar_disable_comments_auto_load")};
_.w.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.w.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.w.computeHasDestinationShelfRenderer=function(G){var B,F;return!!(G==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:F.destinationShelfRenderer)};
_.w.computeHasSectionGroupViewModel=function(G){var B,F;return!!(G==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:F.sectionGroupViewModel)};
_.w.computeHasQrCodeRenderer=function(G){var B,F;return!!(G==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:F.qrCodeRenderer)};
_.w.computeStaticCommentsHeader=function(G){return G&&this.containsComments()};
_.w.computeEpRestyle=function(G){return _.X("web_ep_restyling")&&G&&this.containsComments()};
_.w.computeIsContinuationCommentSection=function(G){return(G==null?void 0:G.targetId)==="shorts-engagement-panel-comments-section"||(G==null?void 0:G.targetId)==="comments-section"||(G==null?void 0:G.targetId)==="engagement-panel-comments-section"};
_.w.computeSuppressPaddingDisclaimer=function(){var G,B,F,D;return!!((G=this.data)==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:(D=F.productListHeaderRenderer)==null?0:D.suppressPaddingDisclaimer)};
_.w.computeHeaderStyle=function(G){switch(G==null?void 0:G.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.w.dataChanged=function(){this.firstCommentsLoaded=!1};
_.w.observeDataContentsLength=function(){var G,B;((G=this.data)==null?0:(B=G.contents)==null?0:B.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.w.onYtDismissibleItemDismissedChange=function(G){this._setItemDismissed(G.type==="yt-dismissible-item-dismissed")};
_.w.triggerContinuations=function(){for(var G=_.IF(this.hostElement).querySelector("#continuations").children,B=0;B<G.length;B++)G[B].trigger()};
_.w.triggerInitialContinuations=function(){for(var G=_.IF(this.hostElement).querySelector("#continuations").children,B=0;B<G.length;B++)G[B].triggerIfNotPreviouslyTriggered()};
_.w.handleYtItemSectionContinuation=function(G,B){var F;B&&((F=this.data)==null?void 0:F.sectionIdentifier)!==B||(this.set("data.continuations",[G]),this.triggerContinuations())};
_.w.handleYtItemSectionReplace=function(G,B){var F;B&&((F=this.data)==null?void 0:F.sectionIdentifier)!==B||(this.set("data.contents",G),this.set("data.continuations",[]))};
_.w.computeUseHeightHack=function(G){return G&&!_.X("kevlar_disable_height_hack")};
_.w.computeTopSpacingZero=function(G){return G};
_.w.continuationShowButtonChanged=function(){var G=_.IF(this.hostElement).querySelector("ytd-continuation-item-renderer");G&&(G.showButton=this.continuationShowButton)};
_.w.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("data-changed",this.data))};
_.ZN.Object.defineProperties(Mq.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.X("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:F.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D,u,R,N;return!!((G=this.data)==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:(D=F.shelfRenderer)==null?0:(u=D.content)==null?0:(R=u.gridRenderer)==null?0:(N=R.targetId)==null?0:N.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:F.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.contents)==null?0:(F=B[0])==null?0:F.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.xf("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.X("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.X("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.X("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!((G=this.data)==null?0:(B=G.header)==null?0:B.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.X("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.X("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Mq.prototype.dataChangedForBinding=Mq.prototype.dataChangedForBinding;Mq.prototype.continuationShowButtonChanged=Mq.prototype.continuationShowButtonChanged;Mq.prototype.onYtDismissibleItemDismissedChange=Mq.prototype.onYtDismissibleItemDismissedChange;Mq.prototype.observeDataContentsLength=Mq.prototype.observeDataContentsLength;Mq.prototype.dataChanged=Mq.prototype.dataChanged;Mq.prototype.onServiceRequestCompleted=Mq.prototype.onServiceRequestCompleted;Mq.prototype.onLoadReloadContinuation=Mq.prototype.onLoadReloadContinuation;
Mq.prototype.onRetrieveLocation=Mq.prototype.onRetrieveLocation;Mq.prototype.commentsHidePanelButtonChanged=Mq.prototype.commentsHidePanelButtonChanged;Mq.prototype.dispatchChipBarIsSticky=Mq.prototype.dispatchChipBarIsSticky;Mq.prototype.updateStickySetup=Mq.prototype.updateStickySetup;Mq.prototype.updateLockupContainerTypes=Mq.prototype.updateLockupContainerTypes;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Mq.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Mq.prototype,"ytLazyListBehavior",void 0);_.c([_.k(_.VB.YtNextContinuationBehavior),_.I("design:type",Object)],Mq.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.k(_.be),_.I("design:type",Object)],Mq.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Mq.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Mq.prototype,"darkerPanels",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Mq.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"commentsHidePanelButton",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"isWatchGrid",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"continuationShowButton",void 0);_.c([_.v({computed:"computeIsContinuationCommentSection(data)"}),_.I("design:type",Boolean)],Mq.prototype,"continuationIsCommentsSection",void 0);
_.c([_.v({value:!0}),_.I("design:type",Boolean)],Mq.prototype,"autoFill",void 0);_.c([_.v(),_.I("design:type",Boolean)],Mq.prototype,"continuationDisablePrescanVisibility",void 0);_.c([_.v(),_.I("design:type",Boolean)],Mq.prototype,"isReloading",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"isSearch",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"isConstrainedList",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"isWatch",void 0);
_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"eligibleToSwitchToGrid",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"useBigThumbs",void 0);_.c([_.v({selector:_.mA,reflectToAttribute:!0}),_.I("design:type",Object)],Mq.prototype,"isGridViewEnabled",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.I("design:type",Object)],Mq.prototype,"epRestyle",void 0);
_.c([_.O("isWatch"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"hideShortsShelfHeader",null);_.c([_.O("isSearch","isWatch"),_.I("design:type",String),_.I("design:paramtypes",[])],Mq.prototype,"thumbnailWidth",null);_.c([_.O("isSearch","containerWidth"),_.I("design:type",Object),_.I("design:paramtypes",[])],Mq.prototype,"thumbnailTargetWidth",null);
_.c([_.O("isSearch","isWatch","useBigThumbs"),_.I("design:type",String),_.I("design:paramtypes",[])],Mq.prototype,"sizing",null);_.c([_.O("isWatch","isGridViewEnabled","useBigThumbs","data"),_.v({reflectToAttribute:!0}),_.I("design:type",Number),_.I("design:paramtypes",[])],Mq.prototype,"lockupContainerType",null);_.c([_.Ga("lockupContainerType","data"),_.I("design:type",Function),_.I("design:paramtypes",[Number]),_.I("design:returntype")],Mq.prototype,"updateLockupContainerTypes",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Mq.prototype,"pageSubtype",void 0);_.c([_.v(),_.I("design:type",Number)],Mq.prototype,"containerWidth",void 0);_.c([_.v(),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"isPlaylist",null);_.c([_.v(),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"isClipList",null);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"isCarouselInFeed",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"isPlaylistVideoContainer",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"isSearchFrictionPage",null);_.c([_.v({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.I("design:type",Boolean)],Mq.prototype,"useHeightHack",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.I("design:type",Object)],Mq.prototype,"topSpacingZero",void 0);_.c([_.v({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.I("design:type",Boolean)],Mq.prototype,"showButton",void 0);_.c([_.v(),_.I("design:type",Boolean)],Mq.prototype,"firstCommentsLoaded",void 0);_.c([_.v(),_.I("design:type",Object)],Mq.prototype,"continuationIsInitialLoad",void 0);
_.c([_.v({reflectToAttribute:!0,readOnly:!0}),_.I("design:type",Boolean)],Mq.prototype,"itemDismissed",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.I("design:type",String)],Mq.prototype,"sectionIdentifier",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.I("design:type",String)],Mq.prototype,"fitContainer",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.I("design:type",Boolean)],Mq.prototype,"hasDestinationShelfRenderer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.I("design:type",Boolean)],Mq.prototype,"staticCommentsHeader",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Mq.prototype,"enableSqueezebackPanels",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Mq.prototype,"enableAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.I("design:type",Boolean)],Mq.prototype,"hasSectionGroupViewModel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.I("design:type",Boolean)],Mq.prototype,"hasQrCodeRenderer",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.I("design:type",Boolean)],Mq.prototype,"suppressDisclaimerSeparator",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.I("design:type",String)],Mq.prototype,"headerStyle",void 0);_.c([_.O("isSearch","isWatch","useBigThumbs"),_.I("design:type",Object),_.I("design:paramtypes",[])],Mq.prototype,"lockupExperiments",null);
_.c([_.O("isSearch"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"typographyBump",null);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],Mq.prototype,"header",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Mq.prototype,"notSticky",void 0);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Object),_.I("design:paramtypes",[])],Mq.prototype,"useChipBarViewModelHeader",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"expFixPlaylistHeader",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Mq.prototype,"expFixPlaylistHeaderV2",null);_.c([_.Ga("pageSubtype"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"updateStickySetup",null);
_.c([_.Ga("notSticky"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"dispatchChipBarIsSticky",null);_.c([_.Ga("commentsHidePanelButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"commentsHidePanelButtonChanged",null);_.c([_.Pm("yt-retrieve-location"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],Mq.prototype,"onRetrieveLocation",null);
_.c([_.Pm("yt-load-reload-continuation"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Function]),_.I("design:returntype")],Mq.prototype,"onLoadReloadContinuation",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"onServiceRequestCompleted",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"dataChanged",null);
_.c([_.Ry("data.contents.length"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"observeDataContentsLength",null);_.c([_.Pm("yt-dismissible-item-dismissed"),_.Pm("yt-dismissible-item-undismissed"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Mq.prototype,"onYtDismissibleItemDismissedChange",null);
_.c([_.Ga("continuationShowButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"continuationShowButtonChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Mq.prototype,"dataChangedForBinding",null);_.c([_.mC({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Mq);
_.d(Mq,"ytd-item-section-renderer",function(){if(KN7!==void 0)return KN7;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return KN7=G},{mode:1});var U8S;var Gbg=_.$9(_.G7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var qGQ={},POQ=(qGQ[0]={title:_.pR(_.G7("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pR(_.G7("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.og("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},qGQ[1]={title:_.pR(_.G7("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.og("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},qGQ);_.UR("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var pO=function(){var G=_.p.apply(this,arguments)||this;G.allVideosCount=0;G.allPlaylistCount=0;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;G.areAllSmartDownloadsDeleted=!1;G.smartDownloadsCompleted=!1;return G};
_.r(pO,_.p);pO.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
pO.prototype.attached=function(){this.downloadsToRenderChanged()};
pO.prototype.detached=function(){this.set("renderableData",{})};
pO.prototype.downloadsToRenderChanged=function(){var G=_.VU().getState().entities,B=_.nJ(G),F=_.X("kevlar_playlist_dl_page_killswitch")?jJ6(G):_.lo(G),D=_.EVs(G),u=_.mvo(G),R=_.uo(B);G=_.UX(G);this.set("renderableData",iY6(F,B,D,u,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,R,G))};
pO.prototype.downloadsToRenderChanged=pO.prototype.downloadsToRenderChanged;_.c([_.k(_.hf),_.I("design:type",Object)],pO.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],pO.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],pO.prototype,"renderableData",void 0);_.c([_.v({selector:_.oVM}),_.I("design:type",Object)],pO.prototype,"allVideosCount",void 0);_.c([_.v({selector:bb6}),_.I("design:type",Object)],pO.prototype,"allPlaylistCount",void 0);_.c([_.v({selector:_.a9}),_.I("design:type",Object)],pO.prototype,"isOnline",void 0);_.c([_.v({selector:_.cfI}),_.I("design:type",Object)],pO.prototype,"shouldRenderDownloadsBanner",void 0);
_.c([_.v({selector:_.tps}),_.I("design:type",Object)],pO.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.c([_.v({selector:_.TAc}),_.I("design:type",Object)],pO.prototype,"hasOptedIntoSmartDownloads",void 0);_.c([_.v({selector:_.IsU}),_.I("design:type",Object)],pO.prototype,"areAllSmartDownloadsDeleted",void 0);_.c([_.v({selector:fsS}),_.I("design:type",Object)],pO.prototype,"smartDownloadsCompleted",void 0);
_.c([_.Ry("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],pO.prototype,"downloadsToRenderChanged",null);_.c([_.mC({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],pO);
_.d(pO,"ytd-offline-item-section-renderer",function(){if(U8S!==void 0)return U8S;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return U8S=G},
{mode:1});var Evz;var hUH;var YB=function(){return _.p.apply(this,arguments)||this};
_.r(YB,_.p);
YB.prototype.onDataChanged=function(){if(this.JSC$17186_lastData){var G=this.getFilterClass(this.JSC$17186_lastData.status);G&&this.hostElement.classList.remove(G)}var B;(G=this.getFilterClass((B=this.data)==null?void 0:B.status))&&this.hostElement.classList.add(G);G==="selected"?_.IF(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.IF(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");G==="disabled"?_.IF(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.IF(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17186_lastData=this.data};
YB.prototype.getFilterClass=function(G){switch(G){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
YB.prototype.onDataChanged=YB.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],YB.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],YB.prototype,"onDataChanged",null);_.c([_.mC({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],YB);
_.d(YB,"ytd-search-filter-renderer",function(){if(hUH!==void 0)return hUH;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return hUH=G},{mode:2});var Av=function(){return _.p.apply(this,arguments)||this};
_.r(Av,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Av.prototype,"data",void 0);_.c([_.mC({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Av);
_.d(Av,"ytd-search-filter-group-renderer",function(){if(Evz!==void 0)return Evz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Evz=G},{mode:2});var KtG;var dv=function(){return _.p.apply(this,arguments)||this};
_.r(dv,_.p);dv.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Zz());this.isCollapsed=!this.isCollapsed};
dv.prototype.navigateToAboutTheseResultsPage=function(){var G=_.Z6("https://www.youtube.com/howyoutubeworks/product-features/search/");G?_.wi(window,G,"_blank"):_.Mn(Error("Vh"))};
dv.prototype.dataChanged=function(){this.isCollapsed=!0};
dv.prototype.computeShowBottomBorder=function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.button)==null?0:B.toggleButtonRenderer)||!((F=this.data)==null||!F.aboutTheseResultsButton)};
dv.prototype.dataChanged=dv.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.I("design:type",Boolean)],dv.prototype,"showBottomBorder",void 0);_.c([_.v(),_.I("design:type",Boolean)],dv.prototype,"renderCollapsibleMenu",void 0);
_.c([_.v(),_.I("design:type",Boolean)],dv.prototype,"isCollapsed",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dv.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],dv);
_.d(dv,"ytd-search-sub-menu-renderer",function(){if(KtG!==void 0)return KtG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return KtG=G},{mode:1});var aqD;var m8N=new _.oV("SECTION_LIST_RENDERER_TOKEN");var XsH;var Jv=function(){return _.p.apply(this,arguments)||this};
_.r(Jv,_.p);Jv.prototype.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Jv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],Jv.prototype,"headerStyle",void 0);_.c([_.mC({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Jv);
_.d(Jv,"ytd-text-header-renderer",function(){if(XsH!==void 0)return XsH;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return XsH=G},{mode:1});var QqB;var cC=function(){return _.p.apply(this,arguments)||this};
_.r(cC,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cC.prototype,"data",void 0);_.c([_.mC({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],cC);
_.d(cC,"ytd-minor-moment-header-renderer",function(){if(QqB!==void 0)return QqB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QqB=G},{mode:1});var jqS;var TC=function(){return _.p.apply(this,arguments)||this};
_.r(TC,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TC.prototype,"data",void 0);_.c([_.mC({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],TC);
_.d(TC,"ytd-minor-moment-setting-alert-renderer",function(){if(jqS!==void 0)return jqS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jqS=G},{mode:1});var LtA;var rT$;var Ij=function(){var G=_.p.apply(this,arguments)||this;G.booleanSettingById=!1;G.smartDownloadsEnabledVE=_.ge(128287);G.smartDownloadsDisabledVE=_.ge(128286);G.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return G};
_.r(Ij,_.p);_.w=Ij.prototype;_.w.attachSmartDownloadsSettingVes=function(){var G;this.activeVeForLogging||((G=this.data)==null?void 0:G.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Zx(_.Rh(),this.smartDownloadsEnabledVE),_.Zx(_.Rh(),this.smartDownloadsDisabledVE))};
_.w.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.cZ(this.hostElement,"yt-settings-switch-ready")};
_.w.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.w.onSwitchChange=function(G){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(G=_.oF(G).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.X("kevlar_settings_switch_resolve_command_killswitch")?_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(G)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.w.handleUpdateSettingsSwitch=function(G){(G=_.Q(G,pVU))&&this.data&&this.data.id===G.id&&this.set("data.enabled",!!G.enabled)};
_.w.onToggleSettingsSwitch=function(G,B){this.data&&this.data.id===G&&this.set("data.enabled",B!=null?B:!this.data.enabled)};
_.w.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.M_.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.w.maybeLogSmartDownloadsSettingVisibility=function(){var G=_.qW(),B;G&&((B=this.data)==null?void 0:B.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Oq(G,[this.smartDownloadsEnabledVE]),_.eD(G,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Oq(G,[this.smartDownloadsDisabledVE]),_.eD(G,[this.smartDownloadsEnabledVE])))};
_.w.maybeLogSmartDownloadsSettingClick=function(){var G;((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.S0(_.Rh(),this.activeVeForLogging)};
_.w.updateDataEnabledFromBinding=function(G){this.set("data.enabled",G.detail.value)};
_.ZN.Object.defineProperties(Ij.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!G&&(G=this.ytRendererBehavior.getSimpleString(this.data.title));return G}}});
Ij.prototype.dataChanged=Ij.prototype.dataChanged;_.c([_.k(_.hf),_.I("design:type",Object)],Ij.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ij.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ij.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Ij.prototype,"data",void 0);_.c([_.v({selector:function(G,B){if(Object.keys(G==null?void 0:G.entities).length)switch(B){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return L7g(G.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.I("design:type",Object)],Ij.prototype,"booleanSettingById",void 0);_.c([_.v(),_.I("design:type",_.l2)],Ij.prototype,"activeVeForLogging",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Ij.prototype,"toggleAriaLabel",null);_.c([_.Ry("data"),_.Ry("booleanSettingById"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ij.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Ij);
_.d(Ij,"ytd-settings-switch-renderer",function(){if(rT$!==void 0)return rT$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return rT$=G},{mode:1});var fO=function(){return _.p.apply(this,arguments)||this};
_.r(fO,_.p);fO.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}}}}};
_.ZN.Object.defineProperties(fO.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var G=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(G+=" remove-left-margin");this.data.extraBottomSpace&&(G+=" extra-bottom-space");return G}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],fO.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],fO.prototype,"contentsClassName",null);_.c([_.mC({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],fO);
_.d(fO,"ytd-minor-moment-setting-section-renderer",function(){if(LtA!==void 0)return LtA;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return LtA=G},{mode:1});var Wt$;var tv=function(){return _.p.apply(this,arguments)||this};
_.r(tv,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],tv.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tv.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],tv);
_.d(tv,"ytd-empty-product-details-renderer",function(){if(Wt$!==void 0)return Wt$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Wt$=G},{mode:1});var H7$;var kLz;var ZP=function(){var G=_.p.apply(this,arguments)||this;G.expanded=!0;return G};
_.r(ZP,_.p);ZP.prototype.getBadgeRowClass=function(G,B,F){for(var D=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),u=D.next();!u.done;u=D.next())u.value.onShow();G=G.selected;return F?G!==-1?G===B?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(G!==void 0?G:0)===B?"badge-line":"badge-hidden"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ZP.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ZP.prototype,"expanded",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],ZP);
_.d(ZP,"ytd-sponsorships-loyalty-badges-renderer",function(){if(kLz!==void 0)return kLz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return kLz=G},{mode:1});var O7Z;var gv=function(){var G=_.p.apply(this,arguments)||this;G.expanded=!0;return G};
_.r(gv,_.p);gv.prototype.getContainerClasses=function(G,B){G=G?"expanded":"collapsed";B&&(G+=" item");return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gv.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],gv.prototype,"expanded",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],gv);
_.d(gv,"ytd-sponsorships-perk-renderer",function(){if(O7Z!==void 0)return O7Z;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return O7Z=G},{mode:1});var eUQ;var Sc=function(){var G=_.p.apply(this,arguments)||this;G.expanded=!0;return G};
_.r(Sc,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Sc.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Sc.prototype,"expanded",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Sc);
_.d(Sc,"ytd-sponsorships-perks-renderer",function(){if(eUQ!==void 0)return eUQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return eUQ=G},{mode:1});var sP=function(){var G=_.p.apply(this,arguments)||this;G.isCollapsed=!1;return G};
_.r(sP,_.p);sP.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
sP.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
sP.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var G;this.expandCollapseButton=_.Q((G=this.data)==null?void 0:G.expandButton,_.Xq)}else{var B;this.expandCollapseButton=_.Q((B=this.data)==null?void 0:B.collapseButton,_.Xq)}};
sP.prototype.updateExpandCollapseButton=sP.prototype.updateExpandCollapseButton;sP.prototype.onDataChanged=sP.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sP.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],sP.prototype,"isCollapsed",void 0);_.c([_.v(),_.I("design:type",Object)],sP.prototype,"expandCollapseButton",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sP.prototype,"onDataChanged",null);_.c([_.Ry("data","isCollapsed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sP.prototype,"updateExpandCollapseButton",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],sP);
_.d(sP,"ytd-sponsorships-expandable-perks-renderer",function(){if(H7$!==void 0)return H7$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return H7$=G},{mode:1});var $8G;var xB=function(){return _.p.apply(this,arguments)||this};
_.r(xB,_.p);xB.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xB.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],xB);
_.d(xB,"ytd-sponsorships-actionable-message-renderer",function(){if($8G!==void 0)return $8G;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return $8G=G},{mode:1});var zUD;var PC=function(){return _.p.apply(this,arguments)||this};
_.r(PC,_.p);_.w=PC.prototype;_.w.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.w.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.w.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.w.computeMessageContainerStyle=function(G){var B=G.expandableItems?" style-clickable":"";return G.messageContainerStyle?G.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+B:"style-unspecified"+B};
_.w.isSinglePerk=function(G){return!!G.messageContainerStyle&&(G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.w.onExpandedChanged=function(){var G=this;if(this.expanded)for(var B=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),F=B.next();!F.done;F=B.next())F.value.onShow();_.ft(this,function(){_.cZ(G.hostElement,"yt-refit")})};
_.w.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
PC.prototype.onDataChanged=PC.prototype.onDataChanged;PC.prototype.onExpandedChanged=PC.prototype.onExpandedChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PC.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],PC.prototype,"expanded",void 0);
_.c([_.Ga("expanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],PC.prototype,"onExpandedChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],PC.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],PC);
_.d(PC,"ytd-sponsorships-expandable-message-renderer",function(){if(zUD!==void 0)return zUD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return zUD=G},{mode:2});var b7H;var Gz=function(){return _.p.apply(this,arguments)||this};
_.r(Gz,_.p);Gz.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"}}}}};
Gz.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Q(this.data.endButton,_.Xq).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Gz.prototype.onDataChanged=Gz.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Gz.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gz.prototype,"onDataChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Gz);
_.d(Gz,"ytd-sponsorships-heading-renderer",function(){if(b7H!==void 0)return b7H;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return b7H=G},{mode:1});var VNS;var BB=function(){return _.p.apply(this,arguments)||this};
_.r(BB,_.p);_.c([_.v(),_.I("design:type",Object)],BB.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],BB);
_.d(BB,"ytd-sponsorships-links-renderer",function(){if(VNS!==void 0)return VNS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return VNS=G},{mode:1});var vv2;var ig=function(){return _.p.apply(this,arguments)||this};
_.r(ig,_.p);_.w=ig.prototype;_.w.onDataChanged=function(){if(this.data&&this.data.expandableItems){var G;(G=_.IF(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.setAttribute("role","button")}else{var B;(B=_.IF(this.hostElement).querySelector("tp-yt-paper-button"))==null||B.removeAttribute("role")}};
_.w.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.w.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.w.getTileClasses=function(G){return G?"tile expandable-tile":"tile"};
_.w.getButtonDisabled=function(G){return G?void 0:""};
ig.prototype.onDataChanged=ig.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ig.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],ig.prototype,"expanded",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ig.prototype,"onDataChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ig);
_.d(ig,"ytd-sponsorships-list-tile-renderer",function(){if(vv2!==void 0)return vv2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vv2=G},{mode:1});var ovN;var MNH;var FF=function(){return _.p.apply(this,arguments)||this};
_.r(FF,_.p);FF.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],FF.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],FF);
_.d(FF,"ytd-sponsorships-promotion-renderer",function(){if(MNH!==void 0)return MNH;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return MNH=G},{mode:1});var ps$;var D5=function(){return _.p.apply(this,arguments)||this};
_.r(D5,_.p);D5.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],D5.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],D5);
_.d(D5,"ytd-sponsorships-purchase-option-renderer",function(){if(ps$!==void 0)return ps$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ps$=G},{mode:1});var YGD;var ATS;var d82=function(){return _.p.apply(this,arguments)||this};
_.r(d82,_.p);_.c([_.v(),_.I("design:type",Object)],d82.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],d82);
_.d(d82,"ytd-ypc-offer-promo-renderer",function(){if(ATS!==void 0)return ATS;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ATS=G},{mode:1});var ug=function(){return _.p.apply(this,arguments)||this};
_.r(ug,_.p);_.w=ug.prototype;
_.w.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"}}}}};
_.w.expansionCTA=function(G,B){return G&&(B?G.collapseCallToAction:G.expansionCallToAction)};
_.w.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.w.expansionCallToActionTap=function(){var G=this;this.expanded=!this.expanded;_.ft(this,function(){_.cZ(G.hostElement,"yt-refit")})};
_.w.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var G,B=(G=this.data)==null?void 0:G.onVisible;B&&this.ytComponentBehavior.resolveCommand(B)};
_.w.computeDisplayTitle=function(G){return!(!G||this.titledisplaystatus!=="show")};
_.w.computeDisplaySeparator=function(){return!1};
_.w.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
ug.prototype.onDataChanged=ug.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ug.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ug.prototype,"data",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],ug.prototype,"expanded",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],ug.prototype,"purchaseButtonClicked",void 0);_.c([_.v({reflectToAttribute:!0,value:"show"}),_.I("design:type",String)],ug.prototype,"titledisplaystatus",void 0);_.c([_.v({computed:"computeDisplayTitle(data.title)"}),_.I("design:type",Boolean)],ug.prototype,"displayTitle",void 0);
_.c([_.v({computed:"computeDisplaySeparator(data)"}),_.I("design:type",Boolean)],ug.prototype,"displaySeparator",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ug.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],ug);
_.d(ug,"ytd-sponsorships-tier-renderer",function(){if(YGD!==void 0)return YGD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return YGD=G},{mode:2});var R4=function(){return _.p.apply(this,arguments)||this};
_.r(R4,_.p);
R4.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],R4.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],R4);
_.d(R4,"ytd-sponsorships-management-renderer",function(){if(ovN!==void 0)return ovN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ovN=G},{mode:1});var JTG;var wQ=function(){return _.p.apply(this,arguments)||this};
_.r(wQ,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wQ.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],wQ);
_.d(wQ,"ytd-open-in-native-app-view-model",function(){if(JTG!==void 0)return JTG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JTG=G},{mode:2});var cTD;var TwH;var Iq$=_.vP(["top-"]),fqA=_.vP(["bottom-"]),tN$=_.vP(["left-"]),Z7Q=_.vP(["right-"]),gvA={},SGZ=function(G,B,F){G.removeAttribute("top-"+F);G.removeAttribute("bottom-"+F);G.removeAttribute("left-"+F);G.removeAttribute("right-"+F);B&&(B.top&&_.Ex([_.LS(Iq$)],G,"top-"+F,B.top),B.bottom&&_.Ex([_.LS(fqA)],G,"bottom-"+F,B.bottom),B.left&&_.Ex([_.LS(tN$)],G,"left-"+F,B.left),B.right&&_.Ex([_.LS(Z7Q)],G,"right-"+F,B.right))};
gvA.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(G){var B,F=_.IF((B=this.hostElement)!=null?B:this),D;B=this.cardItemBoxBehaviorMarginTargetId&&F?F.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(D=this.hostElement)!=null?D:this;SGZ(B,G,"margin")},
cardItemContainerPaddingChanged_:function(G){var B,F=_.IF((B=this.hostElement)!=null?B:this),D;B=this.cardItemBoxBehaviorPaddingTargetId&&F?F.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(D=this.hostElement)!=null?D:this;SGZ(B,G,"padding")}}];var C2={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 sqQ;var x8$;var Ni=function(){return _.p.apply(this,arguments)||this};
_.r(Ni,_.p);Ni.prototype.textColorChanged_=function(){this.hostElement.style.color=C2[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Ni.prototype.textColorChanged_=Ni.prototype.textColorChanged_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.c([_.k(gvA.YtCardItemBoxBehavior),_.I("design:type",Object)],Ni.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ni.prototype,"data",void 0);_.c([_.Ga("data.textColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ni.prototype,"textColorChanged_",null);
_.c([_.ay({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Ni);
_.d(Ni,"yt-card-item-text-renderer",function(){if(x8$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;sqQ===void 0&&(sqQ=document.createElement("template"));var D=sqQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);x8$=G}G=x8$;return G},{mode:2});var Pyz;var G$$;var yf=function(){return _.p.apply(this,arguments)||this};
_.r(yf,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yf.prototype,"data",void 0);_.c([_.ay({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],yf);
_.d(yf,"yt-card-item-badge-renderer",function(){if(G$$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Pyz===void 0&&(Pyz=document.createElement("template"));var D=Pyz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);G$$=G}G=G$$;return G},{mode:2});var B$G;var iNG;var n2=function(){return _.p.apply(this,arguments)||this};
_.r(n2,_.p);n2.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],n2.prototype,"data",void 0);_.c([_.ay({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],n2);
_.d(n2,"yt-card-item-text-collection-renderer",function(){if(iNG===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;B$G===void 0&&(B$G=document.createElement("template"));var D=B$G;F.call(B,D.content.cloneNode(!0),G.content.firstChild);iNG=G}G=iNG;return G},{mode:2});var FU$;var DHN;var lg=function(){return _.p.apply(this,arguments)||this};
_.r(lg,_.p);lg.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]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lg.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Number)],lg.prototype,"iconSize",void 0);_.c([_.ay({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],lg);
_.d(lg,"yt-card-item-text-with-button-renderer",function(){if(DHN===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;FU$===void 0&&(FU$=document.createElement("template"));var D=FU$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);DHN=G}G=DHN;return G},{mode:2});var UH=function(){return _.p.apply(this,arguments)||this};
_.r(UH,_.p);UH.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],UH.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UH.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],UH);
_.d(UH,"ytd-commerce-cart-summary-line-item-renderer",function(){if(TwH!==void 0)return TwH;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return TwH=G},{mode:1});_.UR("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var qi=function(){var G=_.p.apply(this,arguments)||this;G.hidden=!1;return G};
_.r(qi,_.p);_.w=qi.prototype;_.w.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"}}}}};
_.w.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.w.updateSummary=function(){var G=this.commerceCartCheckoutButtonEntity,B;if(((B=this.data)==null?0:B.cartButton)&&G.checkoutSummaryText){var F,D=Kz((F=this.data)==null?void 0:F.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",aG(G.checkoutSummaryText));if(G.checkoutDetailText){var u;F=Kz((u=this.data)==null?void 0:u.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",aG(G.checkoutDetailText))}if(G.checkoutAdditionalMetadataText){var R;
u=Kz((R=this.data)==null?void 0:R.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",aG(G.checkoutAdditionalMetadataText))}}else G.estimatedTotalPrice&&(R=Kz((D=this.data)==null?void 0:D.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",aG(G.estimatedTotalPrice)))};
_.w.updateIsHidden=function(){var G,B=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;B!==void 0&&(this.hidden=B)};
_.w.updateCheckoutButton=function(){var G,B=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isDisabled;B!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",B);var F;G=(F=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:F.innertubeCommand;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",G);var D;F=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.checkoutButtonText;F!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:F})};
qi.prototype.entityChanged=qi.prototype.entityChanged;_.c([_.k(_.hf),_.I("design:type",Object)],qi.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],qi.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],qi.prototype,"fullWidth",void 0);_.c([_.v(),_.I("design:type",Object)],qi.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],qi.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qi.prototype,"hidden",void 0);
_.c([_.v({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:O0g}),_.I("design:type",Object)],qi.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.Ga("commerceCartCheckoutButtonEntity","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qi.prototype,"entityChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],qi);
_.d(qi,"ytd-commerce-cart-checkout-button-renderer",function(){if(cTD!==void 0)return cTD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return cTD=G},{mode:2});var uDG;_.RB$={};
_.RB$.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",_.x7(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.x7(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(G){!this.tappableItemBehaviorTapEnabled||G.keyCode!==13&&G.keyCode!==32||G.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var G=this.data.onTap;G.ypcGetCartEndpoint?(_.fi(this.hostElement,[G]),this.tappableItemBehaviorTapEnabled=!1):G.ypcOffersEndpoint?_.fi(this.hostElement,[G]):_.tL(this.hostElement,[G],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(G){this.tappableItemBehaviorTapEnabled=!!G},
tappableItemBehaviorOnTapEnabledChanged_:function(){var G=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(G.setAttribute("tabIndex",0),G.setAttribute("role","button")):(G.removeAttribute("tabIndex"),G.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(G){G.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var wSQ;var CG$;var EH=function(){return _.p.apply(this,arguments)||this};
_.r(EH,_.p);EH.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.q6("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.q6("sharingToggleButtonAndDefaultButton")}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EH.prototype,"data",void 0);_.c([_.ay({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],EH);
_.d(EH,"yt-card-item-actions-renderer",function(){if(CG$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;wSQ===void 0&&(wSQ=document.createElement("template"));var D=wSQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);CG$=G}G=CG$;return G},{mode:2});var N$A;var y2$;var nD$;var lZ2;var UHB;var qAN;var hw=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return G};
_.r(hw,_.p);hw.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
hw.prototype.handleDarkModeToggledAction_=function(G){this.isDarkTheme_=G};
hw.prototype.computeThemeImage_=function(G,B){if(!G||!G.imageLight)return!1;this.isCircular_=G.isCircular;G.imageWidth&&(this.hostElement.style.width=G.imageWidth+"px");G.imageHeight&&(this.hostElement.style.height=G.imageHeight+"px");G.borderWidth&&(this.image.style.borderWidth=G.borderWidth+"px",this.image.style.borderStyle="solid");G.borderColor&&(this.image.style.borderColor=_.Kp(G.borderColor));return B&&G.imageDark?G.imageDark:G.imageLight};
hw.prototype.computeThemeIcon_=function(G){var B,F;if(!(G==null?0:(B=G.themedIcon)==null?0:(F=B.icon)==null?0:F.iconType))return!1;this.icon.style.color=C2[G.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(G.imageWidth||18)+"px";this.icon.style.height=(G.imageHeight||18)+"px";return _.xT(G.themedIcon.icon.iconType)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(gvA.YtCardItemBoxBehavior),_.I("design:type",Object)],hw.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],hw.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hw.prototype,"data",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],hw.prototype,"fit",void 0);_.c([_.v(),_.I("design:type",Boolean)],hw.prototype,"isDarkTheme_",void 0);_.c([_.v({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.I("design:type",Object)],hw.prototype,"themeImage_",void 0);_.c([_.v({computed:"computeThemeIcon_(data)"}),_.I("design:type",Object)],hw.prototype,"themeIcon_",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Object)],hw.prototype,"isCircular_",void 0);
_.c([_.iA("#image"),_.I("design:type",Object)],hw.prototype,"image",void 0);_.c([_.iA("#icon"),_.I("design:type",Object)],hw.prototype,"icon",void 0);_.c([_.ay({is:"yt-themed-image-renderer",disableElementRegistration:!0})],hw);
_.d(hw,"yt-themed-image-renderer",function(){if(qAN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;UHB===void 0&&(UHB=document.createElement("template"));var D=UHB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);qAN=G}G=qAN;return G},{mode:2});var K2=function(){return _.p.apply(this,arguments)||this};
_.r(K2,_.p);K2.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"}}}}};
K2.prototype.computeImagePlacement_=function(G){return G||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],K2.prototype,"data",void 0);_.c([_.v({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.I("design:type",String)],K2.prototype,"imagePlacement",void 0);
_.c([_.ay({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],K2);
_.d(K2,"yt-card-item-text-with-image-renderer",function(){if(lZ2===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;nD$===void 0&&(nD$=document.createElement("template"));var D=nD$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);lZ2=G}G=lZ2;return G},{mode:2});var a4=function(){return _.p.apply(this,arguments)||this};
_.r(a4,_.p);a4.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"}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],a4.prototype,"data",void 0);_.c([_.ay({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],a4);
_.d(a4,"yt-card-item-error-renderer",function(){if(y2$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;N$A===void 0&&(N$A=document.createElement("template"));var D=N$A;F.call(B,D.content.cloneNode(!0),G.content.firstChild);y2$=G}G=y2$;return G},{mode:2});var ED$;var hBU;_.UR("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var mu=function(){return _.p.apply(this,arguments)||this};
_.r(mu,_.p);_.w=mu.prototype;
_.w.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"}}}}};
_.w.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.w.backgroundColorChanged_=function(){var G,B=(G=this.data)==null?void 0:G.backgroundColor;G=C2[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.IF(this.hostElement).querySelector("#main-content").style.backgroundColor=G};
_.w.headerPromoBackgroundColorChanged_=function(){var G,B=(G=this.data)==null?void 0:G.headerPromoBackgroundColor;G=C2[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.IF(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=G};
_.w.errorRendererVisibilityChanged_=function(){var G=this.isExpanded_,B;this.isErrorRendererVisible_=!((B=this.data)==null||!B.errorRenderer)&&!G};
_.w.onYtToggleButton_=function(G,B){this.isExpanded_=B.toggled};
mu.prototype.onYtToggleButton_=mu.prototype.onYtToggleButton_;mu.prototype.errorRendererVisibilityChanged_=mu.prototype.errorRendererVisibilityChanged_;mu.prototype.headerPromoBackgroundColorChanged_=mu.prototype.headerPromoBackgroundColorChanged_;mu.prototype.backgroundColorChanged_=mu.prototype.backgroundColorChanged_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(gvA.YtCardItemBoxBehavior),_.I("design:type",Object)],mu.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.k(_.RB$.YtTappableItemBehavior),_.I("design:type",Object)],mu.prototype,"ytTappableItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],mu.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],mu.prototype,"isExpanded_",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],mu.prototype,"isErrorRendererVisible_",void 0);_.c([_.Ga("data.backgroundColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mu.prototype,"backgroundColorChanged_",null);_.c([_.Ga("data.headerPromoBackgroundColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mu.prototype,"headerPromoBackgroundColorChanged_",null);
_.c([_.Ga("data.errorRenderer","isExpanded_"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mu.prototype,"errorRendererVisibilityChanged_",null);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[Event,Object]),_.I("design:returntype")],mu.prototype,"onYtToggleButton_",null);_.c([_.ay({is:"yt-card-item-renderer",disableElementRegistration:!0})],mu);
_.d(mu,"yt-card-item-renderer",function(){if(hBU===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;ED$===void 0&&(ED$=document.createElement("template"));var D=ED$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);hBU=G}G=hBU;return G},{mode:2});_.UR("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var XF=function(){var G=_.p.apply(this,arguments)||this;G.hidden=!1;return G};
_.r(XF,_.p);_.w=XF.prototype;_.w.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.w.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.w.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,B=(G=this.commerceCartHeaderEntity)==null?void 0:G.isHidden;B!==void 0&&(this.hidden=B)}};
_.w.updateTitle=function(){var G=this.commerceCartHeaderEntity.isDisabled,B,F,D=(F=_.Q((B=this.data)==null?void 0:B.item,Mhq))==null?void 0:F.headingRenderer;D&&(B=Kz(D,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+B+".0.cardItemTextRenderer.textColor",G?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.w.updateSummaryText=function(){var G=this.commerceCartHeaderEntity;if(this.compact){var B,F,D=(F=_.Q((B=this.data)==null?void 0:B.item,Mhq))==null?void 0:F.headingRenderer;D&&(B=Kz(D,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+B+".1.cardItemTextRenderer.text",G.shortHeaderSummaryText?aG(G.shortHeaderSummaryText):G.headerSummaryText?aG(G.headerSummaryText):""))}else{var u;if(B=(u=_.Q((D=this.data)==null?void 0:D.item,Mhq))==null?void 0:u.additionalInfoRenderer)B=Kz(B,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".text",G.headerSummaryText?aG(G.headerSummaryText):"")}};
_.w.updateCheckoutButton=function(){var G=this.commerceCartHeaderEntity,B,F,D=(F=_.Q((B=this.data)==null?void 0:B.item,Mhq))==null?void 0:F.additionalInfoRenderer;B=Kz(D,"buttonRenderer");var u;F=(u=this.commerceCartHeaderEntity)==null?void 0:u.isButtonDisabled;var R;u=(R=this.commerceCartHeaderEntity)==null?void 0:R.isButtonHidden;F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".buttonRenderer.isDisabled",F);u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
u);var N;G=(N=G.checkoutButtonCommand)==null?void 0:N.innertubeCommand;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".buttonRenderer.command",G)};
XF.prototype.entityChanged=XF.prototype.entityChanged;_.c([_.k(_.hf),_.I("design:type",Object)],XF.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],XF.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],XF.prototype,"compact",void 0);_.c([_.v({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(G,B){return _.g5(G.entities,"commerceCartHeaderEntity",B)}}),
_.I("design:type",Object)],XF.prototype,"commerceCartHeaderEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],XF.prototype,"hidden",void 0);_.c([_.Ga("commerceCartHeaderEntity","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],XF.prototype,"entityChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],XF);
_.d(XF,"ytd-commerce-cart-header-renderer",function(){if(uDG!==void 0)return uDG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return uDG=G},{mode:1});var KUz;var aZG=_.h5(function(G,B){var F;return(F=G.onChangeCallback)==null?void 0:F.call(G,B)},1E3),mHZ=_.Y(function(G){var B=G.data;
var F=G.iconMinus;G=G.iconPlus;var D=function(){return!!B().disabled},u=_.C(_.qg(0,void 0,"mKh0af")),R=u.next().value,N=u.next().value;
u=_.gJ(function(){if(R()===1){var K,a;(a=(K=B()).onRemoveCommand)==null||a.call(K)}K=R()>B().maxValue?B().maxValue:R()-1;N(K);aZG(B(),K);return!1});
var y=_.gJ(function(){if(R()===B().maxValue)return!1;var K=R()+1;N(K);aZG(B(),K);return!1});
_.eR(function(){N(B().value)});
var U={},q={},h={};return _.l("quantity-incrementer-shape",null,_.l("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.l("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return R()===(B().onRemoveCommand?0:1)||D()},
"aria-label":function(){return R()!==1?B().minusLabel:B().minimumReachedLabel},
"on:click":u},_.l(_.YR,{model:{circular:!0}}),_.l("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.l("div",{class:_.tx("ytSpecQuantityIncrementerShapeIcon",(U.ytSpecQuantityIncrementerShapeIconDisabled=function(){return D()||R()===(B().onRemoveCommand?0:1)},U))},F()))),_.l("div",{class:_.tx("ytSpecQuantityIncrementerShapeText",(q.ytSpecQuantityIncrementerShapeTextInvalid=function(){return R()>B().maxValue},q.ytSpecQuantityIncrementerShapeTextDisabled=D,q))},R),_.l("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return R()>=B().maxValue||D()},
"aria-label":function(){return R()!==B().maxValue?B().plusLabel:B().maximumReachedLabel},
"on:click":y},_.l(_.YR,{model:{circular:!0}}),_.l("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.l("div",{class:_.tx("ytSpecQuantityIncrementerShapeIcon",(h.ytSpecQuantityIncrementerShapeIconDisabled=function(){return R()>=B().maxValue||D()},h))},G())))))},"Vf");_.YN(_.Y(function(G){function B(){F().onRemoveCommand&&_.rJ(F().onRemoveCommand)}
var F=G.data;var D=_.iR(caQ,function(){return F().quantityIncrementerEntityKey});
return _.l("yt-quantity-incrementer-view-model",null,_.l(mHZ,{data:function(){var u=F(),R;var N=D()?!((R=D())==null||!R.disabled):!1;var y;R=D()?(y=D())==null?void 0:y.quantity:F().quantity;return uGs(u,N,B,R)},
iconMinus:function(){return _.l(_.Pr,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.l(_.Pr,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Wf"),"yt-quantity-incrementer-view-model",{props:{data:_.Hd}});var Qf=function(){var G=_.p.apply(this,arguments)||this;G.compact=!1;G.hasQuantityIncrementer=!1;return G};
_.r(Qf,_.p);Qf.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"}}}};
Qf.prototype.computeHasQuantityIncrementer=function(){var G;return!!_.Q((G=this.data)==null?void 0:G.picker,d2a)};
Qf.prototype.onLabelClick=function(){var G;(G=this.dropdownEl)==null||G.open()};
_.c([_.iA("ytd-dropdown-renderer"),_.I("design:type",Object)],Qf.prototype,"dropdownEl",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Qf.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Qf.prototype,"quantityColor",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qf.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.I("design:type",Object)],Qf.prototype,"hasQuantityIncrementer",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Qf);
_.d(Qf,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(KUz!==void 0)return KUz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return KUz=G},{mode:1});var XSD;var QzZ;var jb=function(){return _.p.apply(this,arguments)||this};
_.r(jb,_.p);jb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jb.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
jb.prototype.updateTitle=function(){var G=this.disabledCartItemEntity;G.disableActionName&&this.set("data.title",aG(G.disableActionName))};
jb.prototype.updateButton=function(){var G,B=(G=this.disabledCartItemEntity.undoCommand)==null?void 0:G.innertubeCommand;B!==void 0&&(this.set("data.actionButton.buttonRenderer.command",B),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
jb.prototype.entityChanged=jb.prototype.entityChanged;_.c([_.k(_.hf),_.I("design:type",Object)],jb.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(G,B){return _.g5(G.entities,"disabledCartItemEntity",B)}}),
_.I("design:type",Object)],jb.prototype,"disabledCartItemEntity",void 0);_.c([_.v(),_.I("design:type",Object)],jb.prototype,"data",void 0);_.c([_.Ga("disabledCartItemEntity","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jb.prototype,"entityChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],jb);
_.d(jb,"ytd-disabled-cart-item-renderer",function(){if(QzZ!==void 0)return QzZ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return QzZ=G},{mode:1});_.UR("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var L2=function(){var G=_.p.apply(this,arguments)||this;G.compact=!1;G.hidden=!1;G.errorHidden=!1;G.noOnTap=!1;return G};
_.r(L2,_.p);_.w=L2.prototype;
_.w.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"}}}};
_.w.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.w.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var G=this.firstButtonElement;G.alignByText=!0;G.iconAlignByText=!0}};
_.w.computeNoOnTap=function(G){return!G};
_.w.updateQuantityColor=function(){if(this.pickerElement){var G,B=(G=this.commerceCartItemEntity)==null?void 0:G.quantityColor;this.pickerElement.quantityColor=B}};
_.w.updateTotalPriceColor=function(){var G,B=(G=this.commerceCartItemEntity)==null?void 0:G.totalPriceColor;if(B){var F;G=_.Q((F=this.data)==null?void 0:F.quantityPicker,YB8);if(F=_.Q(G==null?void 0:G.price,pMy))F.textColor=B}};
_.w.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,B=(G=this.commerceCartItemEntity)==null?void 0:G.isHidden;B!==void 0&&(this.hidden=B)}};
_.w.updateHideErrorMessage=function(){var G,B=(G=this.commerceCartItemEntity)==null?void 0:G.hideErrorMessage;B!==void 0&&(this.errorHidden=B)};
_.w.updateQuantity=function(){var G=this,B,F=(B=this.commerceCartItemEntity)==null?void 0:B.quantity,D;B=(D=this.commerceCartItemEntity)==null?void 0:D.totalPrice;if(F){this.updateTotalPriceColor();this.updateQuantityColor();var u;D=_.Q((u=this.data)==null?void 0:u.quantityPicker,YB8);if(u=_.Q(D==null?void 0:D.price,pMy))u.text=B?{simpleText:B.content}:void 0;if(B=_.Q(D==null?void 0:D.picker,d2a))B.quantity=F;var R;if(u=(R=_.Q(D==null?void 0:D.picker,YeT))==null?void 0:R.entries){R=!1;B=void 0;u=
_.C(u);for(D=u.next();!D.done;D=u.next())D=D.value,D.dropdownItemRenderer&&(B||(B=D.dropdownItemRenderer),D.dropdownItemRenderer.isSelected=!1,F===D.dropdownItemRenderer.int32Value&&(R=!0,D.dropdownItemRenderer.isSelected=!0));!R&&B&&(B.isSelected=!0)}_.ft(this,function(){var N;G.set("data.quantityPicker",_.UK.unsafeClone((N=G.data)==null?void 0:N.quantityPicker))})}};
L2.prototype.onYtRendererstamperFinished=L2.prototype.onYtRendererstamperFinished;L2.prototype.entityChanged=L2.prototype.entityChanged;_.c([_.v(),_.I("design:type",Object)],L2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],L2.prototype,"compact",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],L2.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(G,B){return _.g5(G.entities,"commerceCartItemEntity",B)}}),
_.I("design:type",Object)],L2.prototype,"commerceCartItemEntity",void 0);_.c([_.v(),_.I("design:type",Object)],L2.prototype,"quantityPicker",void 0);_.c([_.v(),_.I("design:type",Object)],L2.prototype,"compactQuantityPicker",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],L2.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],L2.prototype,"errorHidden",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.I("design:type",Object)],L2.prototype,"noOnTap",void 0);_.c([_.iA("ytd-commerce-cart-item-quantity-picker-renderer"),_.I("design:type",Object)],L2.prototype,"pickerElement",void 0);_.c([_.iA("yt-button-renderer"),_.I("design:type",Element)],L2.prototype,"firstButtonElement",void 0);
_.c([_.Ga("commerceCartItemEntity","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],L2.prototype,"entityChanged",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],L2.prototype,"onYtRendererstamperFinished",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],L2);
_.d(L2,"ytd-commerce-cart-item-renderer",function(){if(XSD!==void 0)return XSD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return XSD=G},{mode:2});var jzS;var LU$;var rQ=function(){return _.p.apply(this,arguments)||this};
_.r(rQ,_.p);rQ.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}}}}}};
rQ.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
rQ.prototype.updateCheckoutLineItems=function(){var G,B=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutLineItems;B&&(G=B.map(function(F){a:{var D=F.price,u=F.description;switch(F.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":F={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:aG(u),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:aG(D),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:F={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:aG(u),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:aG(D),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 F}),this.set("data.summaryLineItems",G))};
rQ.prototype.updateIsHidden=function(){var G,B=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;B!==void 0&&(this.hostElement.hidden=B)};
rQ.prototype.entityChanged=rQ.prototype.entityChanged;_.c([_.k(_.hf),_.I("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],rQ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],rQ.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:O0g}),_.I("design:type",Object)],rQ.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.Ga("commerceCartCheckoutButtonEntity","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rQ.prototype,"entityChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],rQ);
_.d(rQ,"ytd-commerce-cart-summary-renderer",function(){if(LU$!==void 0)return LU$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return LU$=G},{mode:1});var r2G={};r2G.InjectBehavior=[AYl.InjectBehavior];var WUS;var HNS;var WB=function(){return _.p.apply(this,arguments)||this};
_.r(WB,_.p);
WB.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:_.q6("menuRenderer")}}};
WB.prototype.onMenuTap=function(G){G.stopPropagation()};
_.ZN.Object.defineProperties(WB.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 G,B;return!(((G=this.data)==null||!G.sectionHeading)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var G,B;return!(((G=this.data)==null||!G.image)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var G,B;return!(((G=this.data)==null||!G.menu)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.RB$.YtTappableItemBehavior),_.I("design:type",Object)],WB.prototype,"ytTappableItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WB.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data.accessibilityData"),_.I("design:type",String),_.I("design:paramtypes",[])],WB.prototype,"ariaLabel",null);_.c([_.O("data.sectionHeading","data.layout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],WB.prototype,"sectionHeadingVisible",null);_.c([_.O("data.image","data.layout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],WB.prototype,"imageVisible",null);
_.c([_.O("data.menu","data.layout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],WB.prototype,"menuVisible",null);_.c([_.ay({is:"yt-activity-item-renderer",disableElementRegistration:!0})],WB);
_.d(WB,"yt-activity-item-renderer",function(){if(HNS===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;WUS===void 0&&(WUS=document.createElement("template"));var D=WUS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);HNS=G}G=HNS;return G},{mode:2});var k$$;var ONQ;var eBN;var $HN;var HB=function(){return _.p.apply(this,arguments)||this};
_.r(HB,_.p);
HB.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"}}}}};
HB.prototype.backgroundColorChanged_=function(){var G,B=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=C2[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
HB.prototype.backgroundColorChanged_=HB.prototype.backgroundColorChanged_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],HB.prototype,"data",void 0);
_.c([_.Ga("data.backgroundColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],HB.prototype,"backgroundColorChanged_",null);_.c([_.ay({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],HB);
_.d(HB,"yt-offer-item-upsell-renderer",function(){if($HN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;eBN===void 0&&(eBN=document.createElement("template"));var D=eBN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);$HN=G}G=$HN;return G},{mode:2});_.UR("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var ka=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};G.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return G};
_.r(ka,_.p);_.w=ka.prototype;
_.w.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:_.q6("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.w.computeContainerStyle_=function(G){return G};
_.w.computeContainerIsHidden_=function(G){return G&&!!G.isHidden};
_.w.computeShowSpinner_=function(G,B){return G&&B==="in-progress"};
_.w.computeShowMoreContentsButton_=function(G,B,F,D,u){return!(!(D&&D.length||u&&u.length&&F)||!G||B)};
_.w.onToggleButton_=function(G){var B=this;G.stopPropagation();this.isExpanded_=G.detail&&G.detail.toggled;var F,D;this.isExpanded_&&!this.data.continuationSection.length&&((F=this.data)==null?0:(D=F.continuation)==null?0:D.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.cZ(this.hostElement,"yt-load-next-continuation",function(u){return B.getContinuationUrl_(B.data.continuation.onClickContinuationData,u)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.fi(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.w.onShowMoreContentsButtonClicked_=function(G){var B=this;G.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.cZ(this.hostElement,"yt-load-next-continuation",function(F){return B.getContinuationUrl_(B.data.continuations[0].nextContinuationData,F)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.fi(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.w.getContinuationUrl_=function(G,B){var F=G.continuation;G=G.clickTrackingParams;var D=_.qW();G&&D&&_.$I(D,_.yX(G));return _.xi(B,{continuation:F})};
_.w.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var G=_.IF(this.hostElement).querySelector("#continuation-section");G&&(G=G.querySelectorAll("ytmusic-item-section-renderer"))&&G.forEach(function(B){return B.classList.add("memberships-and-purchases")})};
_.w.dataChanged_=function(){var G;this.isExpanded_=!((G=this.data)==null||!G.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.w.updateCardOnClickCommand_=function(G){G=_.Q(G,OL7);var B,F;this.data&&((B=this.data)==null?0:B.targetId)&&G&&G.targetId===((F=this.data)==null?void 0:F.targetId)&&G.onClickCommand&&(this.data.onClickCommand=G.onClickCommand,this.isOnClickCommand_=!0)};
_.w.backgroundColorChanged_=function(){var G,B=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=C2[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
ka.prototype.backgroundColorChanged_=ka.prototype.backgroundColorChanged_;ka.prototype.dataChanged_=ka.prototype.dataChanged_;ka.prototype.nextContinuationDataUpdated_=ka.prototype.nextContinuationDataUpdated_;ka.prototype.onToggleButton_=ka.prototype.onToggleButton_;_.c([_.k(_.be),_.I("design:type",Object)],ka.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ka.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.VB.YtNextContinuationBehavior),_.I("design:type",Object)],ka.prototype,"ytNextContinuationBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.c([_.k(r2G.InjectBehavior),_.I("design:type",Object)],ka.prototype,"injectBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ka.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],ka.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],ka.prototype,"isExpanded_",void 0);_.c([_.v({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.I("design:type",String)],ka.prototype,"containerStyle_",void 0);_.c([_.v({value:"not-started"}),_.I("design:type",String)],ka.prototype,"continuationStatus_",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.I("design:type",Boolean)],ka.prototype,"showSpinner_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],ka.prototype,"isOnClickCommand_",void 0);_.c([_.v({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.I("design:type",Boolean)],ka.prototype,"showMoreContentsButton_",void 0);
_.c([_.v({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(G,B){return!B||G.entities?null:_.g5(G.entities,"cardItemContainerEntity",B)}}),
_.I("design:type",Object)],ka.prototype,"cardItemContainerEntity_",void 0);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],ka.prototype,"onToggleButton_",null);_.c([_.Pm("yt-next-continuation-data-updated"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ka.prototype,"nextContinuationDataUpdated_",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ka.prototype,"dataChanged_",null);_.c([_.Ga("data.backgroundColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ka.prototype,"backgroundColorChanged_",null);_.c([_.ay({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],ka);
_.d(ka,"yt-card-item-container-renderer",function(){if(ONQ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;k$$===void 0&&(k$$=document.createElement("template"));var D=k$$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ONQ=G}G=ONQ;return G},{mode:2});var OH=function(){return _.p.apply(this,arguments)||this};
_.r(OH,_.p);OH.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"}}}};
OH.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
OH.prototype.computeLoadingHidden=function(){var G;return!((G=this.commerceCartPageStateEntity)==null?0:G.cartActionInProgress)};
OH.prototype.updateNotification=function(){var G,B=(G=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:G.summaryText;B&&this.set("data.cartNotification",aG(B))};
OH.prototype.notificationEntityChanged=OH.prototype.notificationEntityChanged;_.c([_.k(_.hf),_.I("design:type",Object)],OH.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],OH.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(G,B){return _.g5(G.entities,"commerceCartExpandableNotificationEntity",B)}}),
_.I("design:type",Object)],OH.prototype,"commerceCartExpandableNotificationEntity",void 0);_.c([_.v({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(G,B){return _.g5(G.entities,"commerceCartPageStateEntity",B)}}),
_.I("design:type",Object)],OH.prototype,"commerceCartPageStateEntity",void 0);_.c([_.iA("#spinner"),_.I("design:type",HTMLElement)],OH.prototype,"spinner",void 0);_.c([_.Ga("commerceCartExpandableNotificationEntity","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],OH.prototype,"notificationEntityChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],OH);
_.d(OH,"ytd-commerce-cart-renderer",function(){if(jzS!==void 0)return jzS;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return jzS=G},{mode:1});var zBN;var eb=function(){var G=_.p.apply(this,arguments)||this;G.bigImage=!1;return G};
_.r(eb,_.p);_.ZN.Object.defineProperties(eb.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.placeholderImageUrl}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],eb.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],eb.prototype,"bigImage",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],eb.prototype,"placeholderImageUrl",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],eb);
_.d(eb,"ytd-empty-product-shelf-renderer",function(){if(zBN!==void 0)return zBN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return zBN=G},{mode:1});var bNQ;var $a=function(){var G=_.p.apply(this,arguments)||this;G.itemStyle="link-item";G.watchMetadataRefresh=!1;G.skinnyMode=!1;G.metaPanel=!1;G.inStructuredDescription=!1;G.detailedDescriptionOverride=!1;G.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};G.updateOnResizeDebouncer=null;return G};
_.r($a,_.p);_.w=$a.prototype;_.w.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.w.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"}}}}};
_.w.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.w.attachVEs=function(G){G.trackingParams&&_.Rh().graftServerVe(G.trackingParams)};
_.w.handleUpdateMerchShelfAction=function(G){var B=this,F=_.Q(G.updateMerchandiseShelfAction.merchandiseShelf,_.GTt);F&&(F.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){B.attachVEs(F);B.data=F},Number(F.renderDelayMs))):(this.attachVEs(F),this.data=F))};
_.w.updateOnResize=function(){if(this.JSC$17354_scrollContainer!==void 0&&this.JSC$17354_scrollContainer.clientWidth!==0&&this.items!==void 0){var G=this.JSC$17354_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_();var B;switch((B=this.data)==null?void 0:B.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var F,
D;((F=this.data)==null?void 0:(D=F.items)==null?void 0:D.length)===1?this.itemStyle="cta-item":this.itemStyle=G>=740?"large-item":"small-item"}}};
_.w.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.cL(this.updateOnResizeDebouncer,_.$e.after(100),this.updateOnResize)};
$a.prototype.debouncedUpdateOnResize=$a.prototype.debouncedUpdateOnResize;$a.prototype.dataChanged=$a.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],$a.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$a.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],$a.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$a.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$a.prototype,"itemStyle",void 0);_.c([_.v({value:6}),_.I("design:type",Number)],$a.prototype,"initialCount",void 0);
_.c([_.v({value:"data.items"}),_.I("design:type",String)],$a.prototype,"itemsPath",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$a.prototype,"watchMetadataRefresh",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$a.prototype,"skinnyMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$a.prototype,"metaPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$a.prototype,"inStructuredDescription",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$a.prototype,"detailedDescriptionOverride",void 0);_.c([_.iA("#items"),_.I("design:type",HTMLDivElement)],$a.prototype,"items",void 0);_.c([_.iA("#scroll-container"),_.I("design:type",HTMLDivElement)],$a.prototype,"JSC$17354_scrollContainer",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$a.prototype,"dataChanged",null);
_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$a.prototype,"debouncedUpdateOnResize",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],$a);
_.d($a,"ytd-merch-shelf-renderer",function(){if(bNQ!==void 0)return bNQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return bNQ=G},{mode:2});var VQS;var zz=function(){var G=_.p.apply(this,arguments)||this;G.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 G};
_.r(zz,_.p);_.w=zz.prototype;
_.w.addBackstagePostAction=function(G){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(G=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",G))&&(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:G}):this.set("data.contents",[{backstagePostThreadRenderer:G}]))};
_.w.addBackstageCommentAction=function(G){var B=this.get("addBackstageCommentAction.parentId",G);G=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",G);if(B&&G){B=this.postIdToIndices(B);for(var F=0;F<B.length;F++){var D=B[F];if(D<0)break;D="data.contents."+D+".backstagePostThreadRenderer.comments";this.get(D)&&(this.get(D+".backstageCommentsRenderer.contents")&&this.push(D+".backstageCommentsRenderer.contents",{commentThreadRenderer:G}),this.get(D+".backstageCommentsRenderer.teaserContents")?
this.push(D+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:G}):this.set(D+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:G}]))}}};
_.w.addBackstageReplyAction=function(G){var B=this.get("addBackstageReplyAction.parentId",G);G=this.get("addBackstageReplyAction.renderer.commentRenderer",G);B&&G&&this.setCreatorReply(B,G)};
_.w.banAuthorAction=function(G){var B=this.get("banAuthorAction.commentId",G);B&&(G=this.get("banAuthorAction.parentCommentId",G)||this.getParentPostId(B),this.removeFromStream(B,G))};
_.w.hideReportedCommentAction=function(G){var B=this.get("hideReportedCommentAction.commentId",G);B&&((G=this.get("hideReportedCommentAction.parentCommentId",G))||(G=this.getParentPostId(B)),this.removeFromStream(B,G))};
_.w.replaceBackstageCommentAction=function(G){var B=this.get("replaceBackstageCommentAction.commentId",G),F=this.get("replaceBackstageCommentAction.parentId",G);G=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",G);if(B&&F&&G){F=this.postIdToIndices(F);for(var D=0;D<F.length;D++){var u=F[D];if(u<0)break;var R=this.commentIdToIndex(B,u,!1);if(R>=0){var N=this.get("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+R+".commentThreadRenderer.replies.commentRepliesRenderer");
N&&(G.replies={commentRepliesRenderer:N});this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",R,1,{commentThreadRenderer:G})}R=this.commentIdToIndex(B,u,!0);if(R>=0){if(N=this.get("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(R+".commentThreadRenderer.replies.commentRepliesRenderer")))G.replies={commentRepliesRenderer:N};this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
R,1,{commentThreadRenderer:G})}}}};
_.w.replaceBackstagePostAction=function(G){var B=this.get("replaceBackstagePostAction.itemId",G);if(B){B=this.postIdToIndices(B);for(var F=0;F<B.length;F++){var D=B[F];if(D<0)break;var u=this.getPostRendererType(D),R=this.get("replaceBackstagePostAction.renderer."+u,G);if(!R&&u!=="sharedPostRenderer")break;var N=!1;R||(N=!0,R=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",G));if(!R)break;var y={};N?(_.E_(y,q9q,R),this.set("data.contents."+D+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
y)):(_.E_(y,new _.vf(u),R),this.set("data.contents."+D+".backstagePostThreadRenderer.post",y))}}};
_.w.replaceBackstageReplyAction=function(G){var B=this.get("replaceBackstageReplyAction.replyId",G),F=this.get("replaceBackstageReplyAction.parentId",G);G=this.get("replaceBackstageReplyAction.renderer.commentRenderer",G);B&&G&&F&&this.setCreatorReply(F,G)};
_.w.removeCommentAction=function(G){var B=this.get("removeCommentAction.commentId",G);if(B){var F=this.get("removeCommentAction.parentCommentId",G);F&&this.get("removeCommentAction.isCreatorReply",G)?this.setCreatorReply(F,void 0):(F||(F=this.getParentPostId(B)),this.removeFromStream(B,F))}};
_.w.setCreatorReply=function(G,B){var F=this.getParentPostId(G);if(F){F=this.postIdToIndices(F);for(var D=0;D<F.length;D++){var u=F[D];if(u<0)break;var R=this.commentIdToIndex(G,u,!1);if(R>=0){var N="data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+R;R=N+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";N+=".commentThreadRenderer.replies";B==void 0?(this.set(N,{}),this.set(R,!1)):(this.set(N,{commentRepliesRenderer:{teaserContents:[{commentRenderer:B}]}}),
this.set(N+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(R,!0))}R=this.commentIdToIndex(G,u,!0);R>=0&&(R="data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+R,u=R+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",R+=".commentThreadRenderer.replies",B==void 0?(this.set(R,{}),this.set(u,!1)):(this.set(R,{commentRepliesRenderer:{teaserContents:[{commentRenderer:B}]}}),this.set(u,!0)))}}};
_.w.removeFromStream=function(G,B){if(B){B=this.postIdToIndices(B);for(var F=0;F<B.length;F++){var D=B[F];if(D<0)break;var u=this.commentIdToIndex(G,D,!1);u>=0&&this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",u,1);u=this.commentIdToIndex(G,D,!0);u>=0&&this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",u,1);D="data.contents."+D+".backstagePostThreadRenderer.post.backstagePostRenderer";
u=D+".backstageAttachment.pollRenderer.votedCommentId";this.get(u)===G&&(this.set(u,null),this.set(D+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(B=this.postIdToIndices(G).reverse(),F=0;F<B.length;F++){D=B[F];if(D<0)break;u=this.getPostRendererType(D);var R=this.get("backstagePostThreadRenderer.post."+u,this.data.contents[D]);R.postId===G?this.splice("data.contents",D,1):u==="sharedPostRenderer"&&this.set("data.contents."+D+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);R.scheduledPublishTimeSec&&_.T1(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.w.postIdToIndices=function(G){for(var B=[],F=0;F<this.data.contents.length;F++){var D=this.getPostRendererType(F);this.get("backstagePostThreadRenderer.post."+D+".postId",this.data.contents[F])===G&&B.push(F);if(D==="sharedPostRenderer"){var u=this.get("backstagePostThreadRenderer.post."+D+".originalPost.backstagePostRenderer.postId",this.data.contents[F]);D=this.get("backstagePostThreadRenderer.post."+D+".originalPost.postRenderer.postId",this.data.contents[F]);u!==G&&D!==G||B.push(F)}}return B};
_.w.commentIdToIndex=function(G,B,F){if(B<0)return-1;var D,u,R,N,y=_.Q((D=this.data)==null?void 0:(u=D.contents)==null?void 0:(R=u[B])==null?void 0:(N=R.backstagePostThreadRenderer)==null?void 0:N.comments,lzL);return(B=F?y==null?void 0:y.teaserContents:y==null?void 0:y.contents)&&B.length?B.findIndex(function(U){return _.Q(U,gea).comment.commentRenderer.commentId===G}):-1};
_.w.getParentPostId=function(G){G=G.split(".");if(G[1])return G[0]};
_.w.getPostRendererType=function(G){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[G])?"sharedPostRenderer":"backstagePostRenderer"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zz.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:_.X("enable_community_page_on_desktop")}),_.I("design:type",Boolean)],zz.prototype,"useSmallerPostContainer",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-backstage-items"})],zz);
_.d(zz,"ytd-backstage-items",function(){if(VQS!==void 0)return VQS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return VQS=
G},{mode:1});var vDZ;var oD$={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},bg=function(){var G=_.p.apply(this,arguments)||this;G.disablePrescanVisibility=!0;G.canScheduleJobs=!0;G.engagementPanel=!1;G.hidePanelButton=!1;G.isWatchGrid=
!1;G.hasShownSubscribersOnlyDisclaimer=!1;G.hasShownSuperfanOnlyDisclaimer=!1;G.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};G.TEST_ONLY=void 0;return G};
_.r(bg,_.p);_.w=bg.prototype;_.w.created=function(){this.initCommentsCsi_();_.X("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.X("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.w.contentsChanged_=function(){var G;(G=this.data)!=null&&G.contents&&this.tickForCommentsTimer_("cml")};
_.w.headerChanged_=function(){var G;(G=this.data)!=null&&G.header&&this.tickForCommentsTimer_("cmhl")};
_.w.initCommentsCsi_=function(){_.hJ("wn_comments");var G=_.qW();G&&_.qa({clientScreenNonce:G},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.w.createCommentAction_=function(G){G=_.UK.unsafeClone(G);var B,F;if(G=(B=_.Q(G,AsN))==null?void 0:(F=B.contents)==null?void 0:F.commentThreadRenderer){var D,u,R,N,y,U;!this.isBackstage&&((D=this.data)==null?0:(u=D.header)==null?0:(R=u.commentsHeaderRenderer)==null?0:(N=R.createRenderer)==null?0:(y=N.commentSimpleboxRenderer)==null?0:(U=y.zeroStep)==null?0:U.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var q,
h,K;this.isBackstage&&_.Q((q=this.data)==null?void 0:(h=q.header)==null?void 0:(K=h.commentsHeaderRenderer)==null?void 0:K.zeroStateMessage,EeT)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(G)}};
_.w.doReplyInsert_=function(G,B,F,D){D?this.splice(G,D,0,B):this.push(G,B)};
_.w.getRepliesPath_=function(G){return"data.contents."+G+".commentThreadRenderer.replies"};
_.w.getRepliesContentsPath_=function(G,B){G=this.getRepliesPath_(G);return B?G+".commentRepliesRenderer.teaserContents":G+".commentRepliesRenderer.contents"};
_.w.showSubscribersOnlyDisclaimer_=function(G){(G=G.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&(_.T1(this.hostElement,"yt-open-popup-action",[G,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.w.showSuperfanOnlyDisclaimer_=function(G){(G=G.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&(_.T1(this.hostElement,"yt-open-popup-action",[G,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.w.createCommentReplyAction_=function(G){G=_.UK.unsafeClone(G);var B=_.Q(G,dQs);if(G=B==null?void 0:B.contents){var F=this.commentIdToIndex_(B==null?void 0:B.parentCommentId);if(!(F<0)){var D=this.getRepliesPath_(F);if(this.get(D)){B=B.replyToCommentId;D=this.getRepliesContentsPath_(F,!1);if(this.get(D)){var u=this.get(D).length,R=D+"."+(u-1)+".continuationItemRenderer";this.get(R+".button")?(R=this.replyIdToIndex_(B,F,!1),this.doReplyInsert_(D,G,R,u-1)):this.get(R)||(u=this.replyIdToIndex_(B,F,
!1),this.doReplyInsert_(D,G,u,null))}D=this.getRepliesContentsPath_(F,!0);this.get(D)?(F=this.replyIdToIndex_(B,F,!0),(!B||F>=0)&&this.doReplyInsert_(D,G,F,null)):this.set(D,[G])}else this.set(D,{commentRepliesRenderer:{teaserContents:[G]}})}}};
_.w.hideReportedCommentAction_=function(G){var B=_.Q(G,wVs);if(G=B==null?void 0:B.commentId)(B=this.get("parentCommentId",B))||(B=this.getParentCommentId_(G)),this.remove_(G,B)};
_.w.getParentCommentId_=function(G){G=G.split(".");if(G[1])return G[0]};
_.w.removeCommentAction_=function(G){var B=_.Q(G,fzq);if(G=B==null?void 0:B.commentId)B=(B==null?void 0:B.parentCommentId)||this.getParentCommentId_(G),this.remove_(G,B)};
_.w.pinCommentAction_=function(G){G=_.UK.unsafeClone(G);var B=_.Q(G,IzL);B!=null&&B.commentId&&(G=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",G))&&(this.remove_(B.commentId),this.insert_(G,!0))};
_.w.unpinCommentAction_=function(G){G=_.UK.unsafeClone(G);G=_.Q(G,tHa);if(G!=null&&G.commentId){var B,F,D=(B=G.actionResult)==null?void 0:(F=B.update)==null?void 0:F.commentThreadRenderer;D&&(this.remove_(G.commentId),this.insert_(D))}};
_.w.banAuthorAction_=function(G){var B=_.Q(G,Y9t);B!=null&&B.commentId&&(G=B.commentId,B=B.parentCommentId||this.getParentCommentId_(G),this.remove_(G,B))};
_.w.handleScrollToCommentElement_=function(G){this.hostElement.contains(G)&&(this.nearestScrollParent||(this.nearestScrollParent=Rv6(G)),this.isCommentVisibleInScrollParent(G)||G.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.w.isCommentVisibleInScrollParent=function(G){if(!this.nearestScrollParent)return!1;G=G.getBoundingClientRect();var B=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return G.top>=B.top&&G.bottom<=B.bottom};
_.w.commentIdToIndex_=function(G){var B;return G&&(B=this.data)!=null&&B.contents?this.data.contents.findIndex(function(F){F=F.commentThreadRenderer;var D;return G===((F==null?void 0:F.commentViewModel)&&((D=_.Q(F.commentViewModel,BuP))==null?void 0:D.commentId))}):-1};
_.w.insert_=function(G,B){B=B===void 0?!1:B;var F,D;if((F=this.data)==null?0:(D=F.contents)==null?0:D.some(function(R){return!!R.commentThreadRenderer}))for(F=0,D=this.data.contents.length;F<D;F++){var u=this.data.contents[F].commentThreadRenderer;
if(oD$[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=oD$[u.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){B&&oD$[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===oD$[u.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",F,1,{commentThreadRenderer:G}):this.splice("data.contents",F,0,{commentThreadRenderer:G});break}}else this.set("data.contents",[{commentThreadRenderer:G}])};
_.w.doReplyRemove_=function(G,B,F){G=this.replyIdToIndex_(G,B,F);G<0||(B=this.getRepliesContentsPath_(B,F),this.splice(B,G,1))};
_.w.remove_=function(G,B){B=this.commentIdToIndex_(B);B<0?(B=this.commentIdToIndex_(G),B<0||this.splice("data.contents",B,1)):_.X("web_delhi_comment_threads")||(this.doReplyRemove_(G,B,!1),this.doReplyRemove_(G,B,!0))};
_.w.replyIdToIndex_=function(G,B,F){if(B<0)return-1;B=this.getRepliesContentsPath_(B,F);B=this.get(B);if(!B||!B.length)return-1;F=0;for(var D=B.length;F<D;F++){var u=void 0,R=void 0;if(((u=B[F])==null?void 0:(R=u.commentViewModel)==null?void 0:R.commentId)===G)return F}return-1};
_.w.tickForCommentsTimer_=function(G){_.ag(G,void 0,"wn_comments")};
_.w.reloadComments_=function(G){G=_.Q(G,Pwy);_.Q(G==null?void 0:G.command,_.QO)&&_.fi(this.hostElement,[G==null?void 0:G.command])};
_.ZN.Object.defineProperties(bg.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.data)==null?0:(B=G.header)==null?0:(F=B.commentsHeaderRenderer)==null?0:F.isBackstageContent)}}});
_.ZN.Object.defineProperties(bg,{template:{configurable:!0,enumerable:!0,get:function(){if(vDZ===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);vDZ=G}G=vDZ;return G}}});
bg.prototype.showSuperfanOnlyDisclaimer_=bg.prototype.showSuperfanOnlyDisclaimer_;bg.prototype.showSubscribersOnlyDisclaimer_=bg.prototype.showSubscribersOnlyDisclaimer_;bg.prototype.headerChanged_=bg.prototype.headerChanged_;bg.prototype.contentsChanged_=bg.prototype.contentsChanged_;_.c([_.k(_.vj),_.I("design:type",Object)],bg.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",Function)],bg.prototype,"ytPlayerListenerBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],bg.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bg.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.header.commentsHeaderRenderer.isBackstageContent"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],bg.prototype,"isBackstage",null);
_.c([_.v(),_.I("design:type",Object)],bg.prototype,"disablePrescanVisibility",void 0);_.c([_.v(),_.I("design:type",Object)],bg.prototype,"canScheduleJobs",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],bg.prototype,"engagementPanel",void 0);_.c([_.v(),_.I("design:type",Object)],bg.prototype,"hidePanelButton",void 0);_.c([_.v(),_.I("design:type",Object)],bg.prototype,"isWatchGrid",void 0);_.c([_.v(),_.I("design:type",Object)],bg.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.c([_.v(),_.I("design:type",Object)],bg.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.c([_.Ga("data.contents"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bg.prototype,"contentsChanged_",null);_.c([_.Ga("data.header"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bg.prototype,"headerChanged_",null);
_.c([_.Pm("yt-show-subscribers-only-disclaimer"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],bg.prototype,"showSubscribersOnlyDisclaimer_",null);_.c([_.Pm("yt-show-superfan-only-snackbar"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],bg.prototype,"showSuperfanOnlyDisclaimer_",null);_.c([_.mC({is:"ytd-comments"})],bg);var Vf=function(){return _.DO.apply(this,arguments)||this};
_.r(Vf,_.DO);_.w=Vf.prototype;_.w.bindIf=function(G,B,F){return G?B:F};
_.w.bindIfDefined=function(G,B){return G!==void 0?G:B};
_.w.booleanString=function(G){return(!!G).toString()};
_.w.equals=function(){for(var G=_.xS.apply(0,arguments),B=G[0],F=1;F<G.length;F++)if(B!=G[F])return!1;return!0};
_.w.isGreaterThan=function(G,B){return G>B};
_.w.isLessThan=function(G,B){return G<B};
_.w.logicalAND=function(){for(var G=_.xS.apply(0,arguments),B=!!G[0],F=1;F<G.length;F++)B=B&&!!G[F];return B};
_.w.logicalOR=function(){for(var G=_.xS.apply(0,arguments),B=!!G[0],F=1;F<G.length;F++)B=B||!!G[F];return B};
_.w.toBool=function(G){return!!G};
Vf.prototype.toBool=Vf.prototype.toBool;Vf.prototype.logicalOR=Vf.prototype.logicalOR;Vf.prototype.logicalAND=Vf.prototype.logicalAND;Vf.prototype.isLessThan=Vf.prototype.isLessThan;Vf.prototype.isGreaterThan=Vf.prototype.isGreaterThan;Vf.prototype.equals=Vf.prototype.equals;Vf.prototype.booleanString=Vf.prototype.booleanString;Vf.prototype.bindIfDefined=Vf.prototype.bindIfDefined;Vf.prototype.bindIf=Vf.prototype.bindIf;_.c([_.uA()],Vf);_.MQA=[Vf.prototype];var pSU;var YAZ;var vB=function(){return _.p.apply(this,arguments)||this};
_.r(vB,_.p);vB.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
vB.prototype.onBackIconTap_=function(){window.history.back()};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vB.prototype,"data",void 0);_.c([_.ay({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],vB);
_.d(vB,"yt-header-with-back-renderer",function(){if(YAZ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;pSU===void 0&&(pSU=document.createElement("template"));var D=pSU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);YAZ=G}G=YAZ;return G},{mode:2});var A2$;var dH$;var o4=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(o4,_.p);_.w=o4.prototype;_.w.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G,this.setUrl())};
_.w.dataChanged=function(){var G=this;if(this.data){var B=this.setUrl();B&&_.SU({destination:window,iframe:this.iframe,origin:_.SKI(B.toString()),channelName:"yt-iframe",onMessage:function(F){(F=G.getCommunicationCommand(F.data))&&G.ytComponentBehavior.resolveCommand(F)},
onEstablished:function(){}})}};
_.w.setUrl=function(){if(this.data&&this.data.iframeUrl){var G=_.rg(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(G)return _.u5(this.iframe,G),G}};
_.w.getCommunicationCommand=function(G){var B;if((B=this.data)!=null&&B.onCommunicationCommandsMap){B=this.data.onCommunicationCommandsMap.find(function(u){return u.key===G});
if(B==null?0:B.value)return B==null?void 0:B.value;try{var F=m28(_.P6(G)),D=this.data.onCommunicationCommandsMap.find(function(u){return u.key===(F==null?void 0:F.getMethodName())});
if(D==null?0:D.value)return D==null?void 0:D.value}catch(u){}}};
o4.prototype.dataChanged=o4.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],o4.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],o4.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],o4.prototype,"data",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],o4.prototype,"isDarkTheme",void 0);_.c([_.iA("#iframe"),_.I("design:type",HTMLIFrameElement)],o4.prototype,"iframe",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],o4.prototype,"dataChanged",null);_.c([_.ay({is:"yt-iframe-renderer",disableElementRegistration:!0})],o4);
_.d(o4,"yt-iframe-renderer",function(){if(dH$===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;A2$===void 0&&(A2$=document.createElement("template"));var D=A2$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);dH$=G}G=dH$;return G},{mode:2});_.Mi=function(G){_.uz.call(this);this.callback=G;this.bezier=new yhg(0,0,.4,0,.2,1,1,1);this.delay=new _.s2(this.next,window,this);this.JSC$17394_animating=!1;_.gq(this,this.delay)};
_.r(_.Mi,_.uz);_.Mi.prototype.isAnimating=function(){return this.JSC$17394_animating};
_.Mi.prototype.start=function(G,B,F){this.config={from:G,to:B,duration:F,startTime:(0,_.Zl)()};this.JSC$17394_animating=!0;this.next()};
_.Mi.prototype.stop=function(){this.delay.stop();this.JSC$17394_animating=!1;this.config=void 0};
_.Mi.prototype.next=function(){if(this.config){var G=this.config,B=G.from,F=G.to,D=G.duration;G=G.startTime;var u=(0,_.Zl)()-G;G=this.bezier;D=eaN(G,u/D);if(D==0)G=G.y0;else if(D==1)G=G.y3;else{u=Oh(G.y0,G.y1,D);var R=Oh(G.y1,G.y2,D);G=Oh(G.y2,G.y3,D);u=Oh(u,R,D);R=Oh(R,G,D);G=Oh(u,R,D)}G=_.ki(G,0,1);this.callback(B+(F-B)*G);G<1?this.delay.start():this.JSC$17394_animating=!1}};_.p2=new _.oV("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var J2A={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},T$$=function(G,B,F,D){_.uz.call(this);this.JSC$17405_miniAppId=G;this.localReleaseId=B;this.derivedDeviceInterface=F;this.isForeground=D;this.JSC$17405_playNonceResolver=new _.tc;this.playPingTimerId=NaN;this.playPingIntervalMs=_.sD("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.sD("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.X("enable_displaying_ppn");this.JSC$17405_miniAppClientDataProvider=_.te().resolve(_.p2);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;c2Q(this);var u=setTimeout(function(){_.em(new _.Uf("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17405_playNonceResolver.promise.then(function(){clearTimeout(u)})};
_.r(T$$,_.uz);var fZ$=function(G,B){G.JSC$17405_playNonceResolver.resolve(B!=null?B:ni(8));G.enableDisplayingPpn&&IZ$(G).then(function(F){G.JSC$17405_miniAppClientDataProvider.clientData.set("post_play_nonce",F)})},IZ$=function(G){return _.n(function(B){return B.nextAddress==1?B.yield(G.JSC$17405_playNonceResolver.promise,2):B.return(B.yieldResult)})},c2Q=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$17405_playNonceResolver.promise,2);B=D.yieldResult;F={miniAppInfo:{externalPostId:G.JSC$17405_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:B,derivedDeviceInterface:G.derivedDeviceInterface}};_.qa(F);_.di(D)})},ZNQ=function(G){G.state!==0?_.em(new _.Uf("[MiniAppPlayLogger] recordPlayStart failed with state "+J2A[G.state])):(G.state=1,Ya(G,"ma_cl"),Aw(G,"PLAY_EVENT_TYPE_PLAY_START"),tQ2(G))},gDG=function(G){G.isForeground=!1;
Aw(G,"PLAY_EVENT_TYPE_PLAY_PAUSE")},SAZ=function(G){G.state!==1&&G.state!==2?_.em(new _.Uf("[MiniAppPlayLogger] recordPlayEnd failed with state "+J2A[G.state])):(G.state=3,window.clearInterval(G.playPingTimerId),G.playPingTimerId=NaN,xyI(),Aw(G,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},szU=function(G,B){G.state===2&&G.gameReady&&(G.firstClickRecorded?Date.now()-G.clickRecordedMs<G.playClickIntervalMs||(G.clickRecordedMs=Date.now(),Aw(G,"PLAY_EVENT_TYPE_PLAY_CLICK")):B&&(Ya(G,"ma_fua"),Aw(G,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),G.firstClickRecorded=!0,G.clickRecordedMs=Date.now()))};
T$$.prototype.logError=function(G){var B=this,F;_.n(function(D){if(D.nextAddress==1)return G.metadata.externalPostId=B.JSC$17405_miniAppId,F=G.metadata,D.yield(Promise.race([B.JSC$17405_playNonceResolver.promise,new Promise(function(u){setTimeout(function(){u("")},3E4)})]),2);
F.postPlayNonce=D.yieldResult;G.metadata.localReleaseId=B.localReleaseId;G.loggingError.level="WARNING";_.k2(G.loggingError,G.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:G.metadata});_.di(D)})};
var xHB=function(G,B,F,D){var u,R,N,y,U,q;_.n(function(h){if(h.nextAddress==1)return h.yield(G.JSC$17405_playNonceResolver.promise,2);u=h.yieldResult;R={externalPostId:G.JSC$17405_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:u,sdkVersion:F,api:B};D!==void 0&&(R.networkRequestsMeasurement={networkRequests:_.AM(D,1),cachedRequests:_.AM(D,2),transferredBytes:_.AM(D,3)},(N=D)==null?0:_.RD(N,eA,6))&&(R.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((y=_.sf(D,
eA,6))==null?void 0:mv(y,1))||"0",cacheHits:((U=_.sf(D,eA,6))==null?void 0:mv(U,2))||"0",cachedBytes:((q=_.sf(D,eA,6))==null?void 0:mv(q,3))||"0"});_.W$("miniAppSdkUsage",R);_.di(h)})},GXQ=function(G,B,F){var D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M;
_.n(function(t){if(t.nextAddress==1)return t.yield(G.JSC$17405_playNonceResolver.promise,2);D=t.yieldResult;u={externalPostId:G.JSC$17405_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:D,sdkVersion:F,measurementWindow:{startTimestampMs:String(E8(B,1)),endTimestampMs:String(E8(B,2))},frameRate:{averageFrameTimeDeltaMs:hR(B,3),averageFrameIdleTimeMs:hR(B,4)}};_.RD(B,$A,5)&&(u.networkRequests={networkRequests:(R=pg(B))==null?void 0:_.AM(R,1),cachedRequests:(N=pg(B))==null?void 0:_.AM(N,2),transferredBytes:(y=
pg(B))==null?void 0:_.AM(y,3),sameOriginStatusCodeToCounts:PGG((U=pg(B))==null?void 0:_.fZs(U,4,void 0,G$o,G$o)),crossOriginStatusCodeToCounts:PGG((q=pg(B))==null?void 0:_.fZs(q,5,void 0,G$o,G$o))},(h=pg(B))==null?0:_.RD(h,eA,6))&&(u.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((K=pg(B))==null?void 0:(a=_.sf(K,eA,6))==null?void 0:mv(a,1))||"0",cacheHits:((m=pg(B))==null?void 0:(L=_.sf(m,eA,6))==null?void 0:mv(L,2))||"0",cachedBytes:((W=pg(B))==null?void 0:(e=_.sf(W,eA,6))==
null?void 0:mv(e,3))||"0"});_.RD(B,u8L,7)&&(u.gameCapture={averageFrameTimeDeltaMs:(b=_.sf(B,u8L,7))==null?void 0:hR(b,1),averageFrameIdleTimeMs:(M=_.sf(B,u8L,7))==null?void 0:hR(M,2)});_.W$("miniAppPerformanceMetrics",u);_.di(t)})},Bm$=function(G,B){var F,D;
return _.n(function(u){if(u.nextAddress==1)return u.yield(G.JSC$17405_playNonceResolver.promise,2);F=u.yieldResult;D={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:G.JSC$17405_miniAppId,postPlayNonce:F,miniAppReleaseId:G.localReleaseId},derivedDeviceInterface:G.derivedDeviceInterface,adTriggerType:B,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.W$("miniAppAdEvent",D);_.di(u)})};
T$$.prototype.disposeInternal=function(){_.uz.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Aw=function(G,B,F,D){F=F===void 0?{}:F;D=D===void 0?!1:D;var u,R,N,y;_.n(function(U){if(U.nextAddress==1)return u=G.isForeground,R=G.beforeReady,U.yield(G.JSC$17405_playNonceResolver.promise,2);N=U.yieldResult;y={externalPostId:G.JSC$17405_miniAppId,localReleaseId:G.localReleaseId,derivedDeviceInterface:G.derivedDeviceInterface,postPlayNonce:N,type:B};F.sequenceGroup=N;y.playState=R?"PLAY_STATE_NOT_READY":u?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.W$("miniAppPlayEvent",y,
F);D&&_.H$();_.di(U)})},Ya=function(G,B){var F;
_.n(function(D){if(D.nextAddress==1)return F=(0,_.Zl)(),D.yield(G.JSC$17405_playNonceResolver.promise,2);_.KR(B,F);_.di(D)})},tQ2=function(G){isNaN(G.playPingTimerId)&&(G.playPingTimerId=_.FB(function(){G.state!==1&&G.state!==2?_.em(new _.Uf("[MiniAppPlayLogger] reportPlayPing failed with state "+J2A[G.state])):Aw(G,"PLAY_EVENT_TYPE_PLAY_PING")},G.playPingIntervalMs))},PGG=function(G){return Array.from(G.entries()).map(function(B){var F=_.C(B);
B=F.next().value;F=F.next().value;return{key:B,value:F}})};var ieH=function(){},FLQ=function(G,B){G.showMiniAppAdCommand=B.showMiniAppAdCommand;
G.isEmbeddedInWebview=B.isEmbeddedInWebview;G.playLogger=B.playLogger},uAN=function(G){return _.n(function(B){return B.return(D3Z(G,1))})},RwH=function(G){return _.n(function(B){return B.return(D3Z(G,2))})},CaQ=function(G,B){return _.n(function(F){return B?F.return(D3Z(G,3,B)):F.return(wXB(G,3))})},D3Z=function(G,B,F){var D;
return _.n(function(u){if(u.nextAddress==1){if(!G.showMiniAppAdCommand||!G.isEmbeddedInWebview)return u.return(wXB(G,B));G.adResolver=new _.tc;var R=new N_;R=_.xK(R,3,B);D=_.wq(R,5,F);jg(G.showMiniAppAdCommand,fWU(D));return u.yield(G.adResolver.promise,2)}return u.return(u.yieldResult)})};
ieH.prototype.onAdFinished=function(G){G=ouv(G);var B;(B=this.adResolver)==null||B.resolve(G)};
var wXB=function(G,B){var F;return _.n(function(D){if(D.nextAddress==1)D=D.yield((F=G.playLogger)==null?void 0:Bm$(F,qoM(B)),2);else{var u=D.return;var R=new vuU;R=_.xK(R,1,2);D=u.call(D,R)}return D})};var NmN=new _.oV("INNERTUBE_MANAGER_TOKEN");var yj$=function(){this.callbacks={}};
yj$.prototype.initialize=function(G){var B=this;this.callbacks=G;window.youtubewebview?window.youtubewebview.onmessage=function(F){nS$(B,F)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(F){nS$(B,F)})};
var nS$=function(G,B){if(B.data)try{var F=m28(B.data);if(_.eQ(_.uc(F,1))!=null){var D=AQT(_.KX(F,2));switch(F.getMethodName()){case "yt-mini-app-load-audio-state":var u,R;(R=(u=G.callbacks).onAudioStateLoaded)==null||R.call(u,_.qV(D,nZ(D,CV,1)));break;case "yt-mute-mini-app":var N,y;(y=(N=G.callbacks).onMuteMiniApp)==null||y.call(N);break;case "yt-unmute-mini-app":var U,q;(q=(U=G.callbacks).onUnmuteMiniApp)==null||q.call(U);break;case "yt-playable-exit":var h,K;(K=(h=G.callbacks).onExit)==null||K.call(h);
break;case "yt-post-play-nonce":var a,m;(m=(a=G.callbacks).onPostPlayNonceReceived)==null||m.call(a,XS(D,2,CV));break;case "yt-confirm-exit-mini-app":var L,W;(W=(L=G.callbacks).confirmExitMiniApp)==null||W.call(L);break;case "yt-confirm-exit-mini-app-edu":var e,b;(b=(e=G.callbacks).confirmExitMiniAppEdu)==null||b.call(e);break;case "yt-benchmarking-response":var M,t;(t=(M=G.callbacks).onNativeBenchmarkingMessageReceived)==null||t.call(M,XS(D,2,CV));break;case "yt-mini-app-load-3p-consent-state":var T,
A;(A=(T=G.callbacks).multiplayer3pAckStateLoaded)==null||A.call(T,_.qV(D,nZ(D,CV,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var Z,P;(P=(Z=G.callbacks).exitMiniAppSeenStateLoaded)==null||P.call(Z,_.qV(D,nZ(D,CV,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var RI,yo;(yo=(RI=G.callbacks).onNavigateToNewMiniApp)==null||yo.call(RI);break;case "yt-game-data-available":var hg,US;(US=(hg=G.callbacks).onGameDataAvailable)==null||US.call(hg,XS(D,2,CV));break;case "yt-pause-mini-app":var aI,
v6;(v6=(aI=G.callbacks).onPauseMiniApp)==null||v6.call(aI);break;case "yt-resume-mini-app":var Jg,c6;(c6=(Jg=G.callbacks).onResumeMiniApp)==null||c6.call(Jg);break;case "yt-pause-playable-dialog":var q8,n7;(n7=(q8=G.callbacks).onPausePlayableDialog)==null||n7.call(q8);break;case "yt-resume-playable-dialog":var Ts,hT;(hT=(Ts=G.callbacks).onResumePlayableDialog)==null||hT.call(Ts);break;case "yt-playable-ad-finished":var L7,K7;(K7=(L7=G.callbacks).onAdFinished)==null||K7.call(L7,XS(D,2,CV))}}else _.em(Error("Wh"))}catch(kD){_.k2(Error("Xh"))}else _.em(Error("Yh"))};var hvU=function(G){this.rpcErrorCode=G};var dQ=function(G,B,F){this.intervalMs=G;this.apiFunc=B;this.type=F;this.schedulerReady=!0};
dQ.prototype.call=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1){if(B.type!==1&&G===B.cachedValue)return D.return();B.pendingApiRequestResolver||(B.pendingApiRequestResolver=new _.tc);F=B.pendingApiRequestResolver.promise;B.cachedValue=G;return D.yield(l6z(B),2)}return D.return(F)})};
dQ.prototype.flush=function(G){G=G===void 0?!1:G;var B=this;return _.n(function(F){return B.cachedValue===void 0?F.return():F.yield(B.apiFunc(B.cachedValue,G),0)})};
var l6z=function(G){var B,F,D;return _.n(function(u){switch(u.nextAddress){case 1:if(!G.schedulerReady||!G.pendingApiRequestResolver)return u.return();G.schedulerReady=!1;B=G.pendingApiRequestResolver;G.pendingApiRequestResolver=void 0;_.b5(u,2);if(G.cachedValue===void 0){u.jumpTo(4);break}return u.yield(G.apiFunc(G.cachedValue),5);case 5:F=u.yieldResult,B.resolve(F);case 4:_.oY(u,3);break;case 2:D=_.Al(u),B.reject(D);case 3:setTimeout(function(){return _.n(function(R){G.schedulerReady=!0;return R.yield(l6z(G),
0)})},G.intervalMs),_.di(u)}})};var mdS=window.location.origin+"/miniapp_cloudsaves",K18=[400,401],U3N=_.sD("cloud_save_game_data_rate_limit_ms",3E3),ES$=function(G){var B=this;this.JSC$17449_miniAppId=G;this.loadAttempts=0;this.cloudSaveIntervalMs=U3N;this.initialDownloadDataSucceeded=!1;this.JSC$17449_playNonceResolver=new _.tc;this.scottyUploadRateLimiter=new dQ(this.cloudSaveIntervalMs,function(F,D){return B.uploadData(F,D)},2);
this.downloadDataPromise=qy$(this);this.downloadDataPromise.then(function(){B.initialDownloadDataSucceeded=!0}).catch(function(){})},hwA=function(G,B){B.then(function(F){return G.JSC$17449_playNonceResolver.resolve(F)})},KLS=function(G){return _.n(function(B){return G.cachedData===void 0?B.return(G.downloadDataPromise):B.return(G.cachedData)})},a6A=function(G,B){return _.n(function(F){G.cachedData=B;
if(!G.initialDownloadDataSucceeded)throw Error("Zh");return F.yield(G.scottyUploadRateLimiter.call(B),0)})},m3A=function(){return new Promise(function(G){setTimeout(G,1E3,"")})},XXD=function(G,B){var F,D;
return _.n(function(u){if(u.nextAddress==1)return F=G.JSC$17449_miniAppId,u.yield(Promise.race([G.JSC$17449_playNonceResolver.promise,m3A()]),2);D={"X-YouTube-MiniAppId":F,"X-YouTube-PostPlayNonce":u.yieldResult};"DELEGATED_SESSION_ID"in _.b9&&cJ6(B,D);return u.return(D)})};
ES$.prototype.uploadData=function(G,B){B=B===void 0?!1:B;var F=this;return _.n(function(D){return Es6()?_.X("enable_cloud_save_error_popup_after_retry")?D.return(new Promise(function(u,R){var N,y,U,q,h;return _.n(function(K){switch(K.nextAddress){case 1:N=0,y=!0,q=U=null;case 2:if(!(y&&N++<2)){K.jumpTo(4);break}_.b5(K,5);return K.yield(QMQ(F,G,B),7);case 7:U=K.yieldResult;y=U.ok?!1:!K18.includes(U.status);_.oY(K,2);break;case 5:q=h=_.Al(K);y=aCo(q);K.jumpTo(2);break;case 4:U?U.ok?(Jw(F,U3N),u()):
(Jw(F,F.cloudSaveIntervalMs*2),R(Error("$h`"+String(U.status),{cause:{rpcErrorCode:U.status}}))):(Jw(F,F.cloudSaveIntervalMs*2),R(q||Error("ai"))),_.di(K)}})})):D.return(new Promise(function(u,R){var N,y;
return _.n(function(U){if(U.nextAddress==1){if(F.JSC$17449_miniAppId==="")return R(Error("bi")),U.return();_.b5(U,2);return U.yield(QMQ(F,G,B),4)}if(U.nextAddress!=2)return N=U.yieldResult,N.ok?(Jw(F,U3N),u()):(Jw(F,F.cloudSaveIntervalMs*2),R(Error("$h`"+String(N.status),{cause:{rpcErrorCode:N.status}}))),_.oY(U,0);y=_.Al(U);Jw(F,F.cloudSaveIntervalMs*2);R(y);_.di(U)})})):D.return()})};
var QMQ=function(G,B,F){F=F===void 0?!1:F;var D,u,R;return _.n(function(N){if(N.nextAddress==1)return D=_.xM((new TextEncoder).encode(B)),u=XJg(),N.yield(XXD(G,u),2);R=N.yieldResult;return N.return(fetch(u,{method:"POST",body:new Blob([D]),headers:R,keepalive:F}))})},qy$=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1){if(!Es6())return D.return("");if(G.JSC$17449_miniAppId==="")throw Error("bi");if(G.loadAttempts>2)return D.return(G.downloadDataPromise);_.b5(D,2);return D.yield(jMD(G),4)}if(D.nextAddress!=2)return B=D.yieldResult,D.return(B);F=_.Al(D);if(aCo(F)&&++G.loadAttempts<2)return D.return(qy$(G));throw F;})},jMD=function(G){var B,F,D,u,R;
return _.n(function(N){switch(N.nextAddress){case 1:return _.b5(N,2),B=XJg(),N.yield(XXD(G,B),4);case 4:return F=N.yieldResult,N.yield(fetch(B,{method:"GET",headers:F}),5);case 5:return D=N.yieldResult,D.ok?N.yield(D.text(),6):N.return(Promise.reject(Error("ci`"+String(D.status),{cause:new hvU(D.status)})));case 6:return u=N.yieldResult,N.return((new TextDecoder).decode(_.P6(u)));case 2:return R=_.Al(N),N.return(Promise.reject(R))}})},Jw=function(G,B){G.cloudSaveIntervalMs=B;
G.scottyUploadRateLimiter.intervalMs=G.cloudSaveIntervalMs};
ES$.prototype.flush=function(){var G=this;return _.n(function(B){return G.initialDownloadDataSucceeded?B.yield(G.scottyUploadRateLimiter.flush(!0),0):B.return()})};var LLD=oc(vH(1),bE(1)),cB=oc(vH(1),bE(3)),Tz=function(G){this.callbacks=G};
_.w=Tz.prototype;_.w.onAudioToggled=function(G,B){(B===void 0||B)&&_.yW("yt-mini-app-is-audio-enabled",G,2592E3)};
_.w.onPause=function(){this.onAudioToggled(!1,!1)};
_.w.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.w.returnNativeBenchmarkingMessage=function(){};
_.w.sendGameData=function(){};
_.w.sendStartGameFrameCapture=function(){};
var QES=function(G,B,F){this.callbacks=G;var D=this;this.sdkVersion=new _.tc;this.channel=new vdL(_.SU({destination:window,iframe:B,origin:(new URL(F.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var u=I4;var R=vH(5);var N=new Igq;N=_.jU(N,1,1E4);R=_.VC(R,4,P1y,N);u(D,R);D.onAudioToggled(D.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){D.sdkVersion.resolve("")},1E4)};
_.r(QES,Tz);_.w=QES.prototype;_.w.onAudioToggled=function(G,B){Tz.prototype.onAudioToggled.call(this,G,B===void 0?!0:B);B=I4;var F=vH(2),D=new chT;G=_.Ii(D,1,G);G=_.VC(F,3,P1y,G);B(this,G)};
_.w.onPause=function(){Tz.prototype.onPause.call(this);I4(this,vH(3))};
_.w.onResume=function(){Tz.prototype.onResume.call(this);I4(this,vH(4))};
_.w.returnNativeBenchmarkingMessage=function(G){var B=I4,F=vH(6);var D=bE(_.RD(G,YW,1)?1:2);G=_.RD(G,YW,1)?G:null;D=_.VC(D,5,VM,G);B(this,oc(F,D))};
_.w.sendGameData=function(G){var B=I4,F=vH(7);G=_.VC(F,5,P1y,G);B(this,G)};
_.w.sendStartGameFrameCapture=function(){I4(this,vH(9))};
var f2=function(G,B,F){var D,u,R;return _.n(function(N){if(N.nextAddress==1)return D=G.callbacks,u=D.onSdkCalled,R=B,N.yield(G.sdkVersion.promise,2);u.call(D,R,N.yieldResult,F);_.di(N)})};
QES.prototype.onMessage=function(){var G=this;return pYs(YA,function(B){var F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI,v6,Jg,c6,q8,n7,Ts,hT,L7,K7,kD,Rz,KQ,pQ,aq,Zq,eN,Ps,el,sG,qH,TL,Iz,N8,EA;return _.n(function(EG){switch(EG.nextAddress){case 1:if(!NPv(B.data))return _.em(Error("di")),EG.return();F=_.aD(B.data,1);_.X("enable_iframe_message_get_type_via_fields")&&(D=B.data,F=u=_.aD(D,1));switch(F){case 8:if(B.data.hasMetadata()){var f7=G.sdkVersion,M8=f7.resolve;var NH=B.data.getMetadata();
NH=_.KX(NH,1);M8.call(f7,NH);clearTimeout(G.sdkVersionTimeoutId)}break;case 6:return EG.jumpTo(2);case 16:if(!_.wI(B.data,iBt,14,AQ))return EG.return();R=_.Q1(B.data,iBt,14,AQ);(y=(N=G.callbacks).onGameFrameReceived)==null||y.call(N,R);return EG.return();case 17:if(!_.wI(B.data,BPt,15,AQ))return EG.return();(q=(U=G.callbacks).onGameAudioReceived)==null||q.call(U,_.Q1(B.data,BPt,15,AQ));return EG.return();case 1:if(f7=_.Q1(B.data,ZGs,2,AQ))switch(_.aD(f7,1)){case 1:G.callbacks.onFirstFrameReady();
if(_.X("enable_network_request_logging_on_game_events")&&_.RD(f7,$A,4)){f2(G,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.sf(f7,$A,4));break}f2(G,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(NH=(M8=G.callbacks).onGameReady)==null||NH.call(M8);if(_.X("enable_network_request_logging_on_game_events")&&_.RD(f7,$A,4)){f2(G,"MINI_APP_SDK_API_GAME_READY",_.sf(f7,$A,4));break}f2(G,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.wI(f7,zG,3,guq))G.callbacks.onResourceLoaded(_.Q1(f7,zG,3,guq))}return EG.return();
case 3:return EG.jumpTo(3);case 4:return EG.jumpTo(4);case 2:return EG.jumpTo(5);case 9:return EG.jumpTo(6);case 10:return G.callbacks.onClick(),EG.return();case 5:return EG.jumpTo(7);case 11:if(!_.wI(B.data,kA,9,AQ))return EG.return();h=_.Q1(B.data,kA,9,AQ);(a=(K=G.callbacks).onBenchmarkingMessageReceived)==null||a.call(K,h);f7=B.reply;M8=vH(1);NH=bE(1);var Jj=new kA;var JT=new Uint8Array(szt(h,nZ(h,ppt,6))|0);Jj=uZ(Jj,5,ppt,_.VP(JT,!1));NH=_.VC(NH,5,VM,Jj);f7.call(B,oc(M8,NH));return EG.return();
case 12:return EG.jumpTo(8);case 13:return EG.jumpTo(9);case 15:return EG.jumpTo(10);case 14:return EG.jumpTo(11);case 18:return EG.jumpTo(12);default:return EG.return()}EG.jumpTo(0);break;case 2:if(!_.wI(B.data,M9,5,AQ))return EG.return();M8=B.data;f7=nZ(M8,AQ,5);M8=M8.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;m=SAc(M8,M8[_.Rq]|0,M9,f7)||M9[sq8]||(M9[sq8]=x8o(M9));f7=_.pT(m,Og,1,_.Yk());L=_.C(f7);W=L.next();case 14:if(W.done){EG.jumpTo(16);break}e=W.value;b=new _.Uf;b.level=_.aD(e,2)===
1?"WARNING":"ERROR";M=L1s(e.getSource());return EG.yield(G.sdkVersion.promise,17);case 17:t={source:M,sdkVersion:EG.yieldResult};_.nN(_.uc(e,6))!=null?(b.message=e.getMessage(),b.stack=_.KX(e,5),t.sdkErrorType=ruL(_.aD(e,6)),_.nN(_.uc(e,7))!=null&&(t.sdkApi=W1g(_.aD(e,7)))):b.stack=void 0;A=T=void 0;(A=(T=G.callbacks).onError)==null||A.call(T,{loggingError:b,metadata:t});W=L.next();EG.jumpTo(14);break;case 16:return EG.return();case 3:return _.b5(EG,18),f7=EG.yield,M8=G.callbacks,NH=M8.onSave,Jj=
_.Q1(B.data,T2w,4,AQ),Jj=_.KX(Jj,1),f7.call(EG,NH.call(M8,Jj),20);case 20:B.reply(LLD);_.oY(EG,19);break;case 18:return Z=_.Al(EG),P=Lz,RI=Z,yo=G.callbacks,hg="MINI_APP_SDK_API_SAVE_DATA",EG.yield(G.sdkVersion.promise,21);case 21:P(RI,yo,hg,EG.yieldResult),B.reply(cB);case 19:return EG.yield(f2(G,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return EG.return();case 4:return _.b5(EG,23),EG.yield(G.callbacks.onLoad(),25);case 25:US=EG.yieldResult;f7=B.reply;M8=vH(1);NH=bE(1);Jj=new T2w;Jj=_.wq(Jj,1,US);
NH=_.VC(NH,3,VM,Jj);f7.call(B,oc(M8,NH));_.oY(EG,24);break;case 23:return aI=_.Al(EG),v6=Lz,Jg=aI,c6=G.callbacks,q8="MINI_APP_SDK_API_LOAD_DATA",EG.yield(G.sdkVersion.promise,26);case 26:v6(Jg,c6,q8,EG.yieldResult),B.reply(cB);case 24:return EG.yield(f2(G,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return EG.return();case 5:_.b5(EG,28);G.callbacks.onSendHighScore(Ln(_.Q1(B.data,wfv,3,AQ).getValue()));B.reply(oc(vH(1),bE(1)));_.oY(EG,29);break;case 28:return n7=_.Al(EG),Ts=Lz,hT=n7,L7=G.callbacks,K7=
"MINI_APP_SDK_API_SEND_SCORE",EG.yield(G.sdkVersion.promise,30);case 30:Ts(hT,L7,K7,EG.yieldResult),B.reply(cB);case 29:return EG.yield(f2(G,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return EG.return();case 6:if(!_.wI(B.data,CJT,8,AQ)){EG.jumpTo(32);break}f7=EG.yield;M8=_.Q1(B.data,CJT,8,AQ);M8=_.aD(M8,1);return f7.call(EG,f2(G,W1g(M8)),32);case 32:return EG.return();case 7:return f7=B.reply,M8=vH(1),NH=bE(1),Jj=G.callbacks.getLanguage(),NH=uZ(NH,4,VM,HS(Jj)),f7.call(B,oc(M8,NH)),EG.yield(f2(G,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return EG.return();case 8:if(!_.wI(B.data,RYG,10,AQ))return EG.return();kD=_.Q1(B.data,RYG,10,AQ);Rz=G.callbacks;KQ=Rz.onSdkPerformanceUpdate;return EG.yield(G.sdkVersion.promise,35);case 35:return KQ.call(Rz,kD,EG.yieldResult),EG.return();case 9:f7=B.data;M8=nZ(f7,AQ,11);if(_.eQ(_.uc(f7,M8))==null)return B.reply(oc(vH(1),bE(2))),EG.return();pQ=XS(B.data,11,AQ);G.callbacks.onShareInviteCode(pQ);B.reply(LLD);return EG.yield(f2(G,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return EG.return();
case 10:if(!_.X("enable_open_yt_content"))return B.reply(cB),EG.return();if(!_.wI(B.data,G8a,12,AQ))return B.reply(oc(vH(1),bE(2))),EG.return();f7=_.Q1(B.data,G8a,12,AQ);aq=_.KX(f7,1);G.callbacks.onOpenYTContent(aq);B.reply(LLD);return EG.yield(f2(G,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return EG.return();case 11:if(_.wI(B.data,Jhw,13,AQ)){EG.jumpTo(38);break}return EG.yield(G.callbacks.onShowMiniAppAd(2),39);case 39:return Zq=EG.yieldResult,B.reply(oc(vH(1),sty(Zq))),EG.yield(f2(G,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return EG.return();case 38:f7=_.Q1(B.data,Jhw,13,AQ);a:switch(_.aD(f7,1)){case 1:f7={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:f7={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:f7={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}eN=f7;Ps=eN.adType;el=eN.sdkApi;f7=EG.yield;M8=G.callbacks;NH=M8.onShowMiniAppAd;Jj=_.Q1(B.data,Jhw,13,AQ);Jj=_.KX(Jj,2);return f7.call(EG,NH.call(M8,Ps,Jj||void 0),41);case 41:return sG=EG.yieldResult,
B.reply(oc(vH(1),sty(sG))),EG.yield(f2(G,el),42);case 42:return EG.return();case 12:_.b5(EG,43);f7=G.callbacks;M8=f7.onMakeIapPurchase;NH=_.Q1(B.data,FwN,16,AQ);NH=_.KX(NH,1);M8.call(f7,NH);B.reply(oc(vH(1),bE(1)));_.oY(EG,44);break;case 43:return qH=_.Al(EG),TL=Lz,Iz=qH,N8=G.callbacks,EA="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",EG.yield(G.sdkVersion.promise,45);case 45:TL(Iz,N8,EA,EG.yieldResult),B.reply(cB);case 44:return EG.yield(f2(G,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return EG.return()}})})};
var I4=function(G,B){_.n(function(F){G.channel.send(B);_.di(F)})},Od=function(G,B,F){this.callbacks=G;
var D=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;G=Edg(B,(new URL(F.toString())).origin);this.gameSnacks=new soL(G);this.gameSnacks.page.onReady(function(){D.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){D.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var u,R;(R=(u=D.callbacks).onGameReady)==null||R.call(u)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(u,R){try{D.callbacks.onSendHighScore(R)}catch(N){Lz(N,D.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(u,R){var N;return _.n(function(y){if(y.nextAddress==1)return _.b5(y,2),y.yield(D.callbacks.onSave(D.decoder.decode(R)),4);if(y.nextAddress!=2)return _.oY(y,0);N=_.Al(y);Lz(N,D.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return y.return()})});
this.gameSnacks.storage.onLoad(function(){var u,R;return _.n(function(N){if(N.nextAddress==1)return _.b5(N,2),N.yield(D.callbacks.onLoad(),4);if(N.nextAddress!=2)return u=N.yieldResult,N.return(D.encoder.encode(u));R=_.Al(N);Lz(R,D.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return N.return(D.encoder.encode(""))})});
this.gameSnacks.init()};
_.r(Od,Tz);Od.prototype.onAudioToggled=function(G,B){Tz.prototype.onAudioToggled.call(this,G,B===void 0?!0:B);var F;(F=this.gameSnacks)==null||F.audio.update(G)};
Od.prototype.onPause=function(){Tz.prototype.onPause.call(this);var G;(G=this.gameSnacks)==null||G.game.pause()};
Od.prototype.onResume=function(){Tz.prototype.onResume.call(this);var G;(G=this.gameSnacks)==null||G.game.resume()};var rj$=HYl,WL$=_.Y(function(G){var B=G.data;var F=G.loadingProgress;var D=G.forPaused;G=_.C(_.qg("",void 0,"LYYTdd"));var u=G.next().value,R=G.next().value;G=_.C(_.qg(!1,void 0,"K0waae"));var N=G.next().value,y=G.next().value,U=[],q=function(){return"transform: scaleX("+(_.Mg(F)||0)+")"},h=null,K=function(){return B()&&h!==null&&h!==void 0?h:h=B().showAnniversaryAnimation?6:rj$()};
_.bC(function(){var W;if(B().timeOutMessages&&((W=B().timeOutMessages)==null?0:W.length)){h=null;W=_.C(U);for(var e=W.next();!e.done;e=W.next())clearTimeout(e.value);U.length=0;kbQ(B().timeOutMessages,U,R,y)}},"BNu9j");
var a=function(){return!!B().persistentErrorMessageTitle},m=function(){return F!==void 0},L=function(){return B().title};
return _.l("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.l("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.l("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.l("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var W,e=(W=B().backgroundImage)==null?void 0:W.sources,b;return(e==null?0:e.length)?"background-image: url("+((b=e[0])==null?void 0:b.url)+")":""}}),_.l("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.l(_.E,{cond:function(){return!a()&&!(D==null?0:D())},
then:function(){var W={};return _.l("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.l("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.l(_.gy,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+K()},
data:function(){var e="loading_animation_"+K();return{animationConfig:{name:e,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+e+".json",loop:!0,autoplay:!0}}}})),_.l("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.l(_.E,{cond:L,
then:function(){return _.l("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},L)}}),_.l("p",{class:_.tx("miniAppSplashScreenViewModelTimeoutMessage",(W.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return N()},W)),
"aria-live":"polite"},u),_.l(_.E,{cond:m,then:function(){return _.l("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.l("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:q}))}})))}}),_.l(_.E,{cond:a,
then:function(){return _.l("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.l("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return B().persistentErrorMessageTitle}),_.l(_.E,{cond:function(){return!!B().persistentErrorMessageDescription},
then:function(){return _.l("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return B().persistentErrorMessageDescription})}}))}}),_.l(_.E,{cond:D,
then:function(){return _.l("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.l("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.l("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},L))}})))},"Yf");var HeQ=new _.oV("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var kXS=gT;gT=function(G){function B(F){if(F){var D,u;(D=F.__spec)==null||(u=D.didUnmount)==null||u.call(D);for(D=0;D<F.childNodes.length;D++)B(F.childNodes[D])}}
kXS==null||kXS(G);qh(function(){for(var F=0;F<G.length;F++)B(G[F])})};var OeH=_.Y(function(G){var B=G.data;var F=G.score;var D=G.formattedScore;var u=G.onScoreChanged;var R=G.isEmbeddedInWebview;var N=_.H5("yt-mini-app-score-button-view-model"),y=function(){var m;return _.Q(B==null?void 0:(m=B())==null?void 0:m.buttonViewModel,_.LV)},U=function(){var m;
return(F==null?void 0:F())||Number(B==null?void 0:(m=B())==null?void 0:m.lastScore)||0},q=function(){var m;
return(D==null?void 0:D())||((m=y())==null?void 0:m.title)||""},h,K=1;
if(G=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))G=Number(G),K=isNaN(G)?1:G/100;_.bC(function(){u==null||u(U());var m;var L=_.X1((m=y())==null?void 0:m.onTap);if(L){m=_.Q(L,zoN);var W,e,b;m=_.Q(m==null?void 0:(W=m.panelLoadingStrategy)==null?void 0:(e=W.inlineContent)==null?void 0:(b=e.dialogViewModel)==null?void 0:b.customContent,tAq)}else m=void 0;if(W=m)W.score=q()},"Aekez");
G=_.gJ(function(){var m,L,W=B==null?void 0:(m=B())==null?void 0:(L=m.loggingDirectives)==null?void 0:L.trackingParams;W&&_.ss(_.te().resolve(_.ux),W);return!1});
_.$f(function(){if(N.value){var m=N.value.querySelector("button"),L=y();m&&L&&evQ(m,L);_.Iu("yt-share-playable-with-high-score",function(){var W=U().toString(),e=B==null?void 0:B().onShareHighScoreCommand,b=B==null?void 0:B().highScoreShareClientParamIdentifier,M=R==null?void 0:R();e&&(M?(b=new ass,W=_.wq(b,2,W),jg(e,W.JSC$12844_serializeBinary())):b&&(_.te().resolve(HeQ).clientParams.set(b,{miniAppClientParams:{highScore:W}}),NzU(e,!1)))})}});
var a=function(){var m=y();m&&(F==null?0:F())&&m.accessibilityText&&(m.accessibilityText=m.accessibilityText.replace(h,q()));h=q();return{numberValue:U(),numberText:q(),heightPx:36,fontSizeMultiplier:K,shouldAnimate:!(F==null||!F())&&!0}};
return _.l("yt-mini-app-score-button-view-model",{class:function(){var m={};return _.UY("miniAppScoreButtonViewModelHost",(m.miniAppScoreButtonViewModelIsVisible=U()!==0,m))},
el:N,"on:click":G},Hus(!1,function(){return _.l("span",{style:"display:none;"},U)}),_.l(_.uR,{data:function(){var m;
return B==null?void 0:(m=B())==null?void 0:m.buttonViewModel}},{buttonViewModel:function(m){return _.l(_.cd,{data:m.data,
animatedTextProps:a})}}))},"$f");var VzU=_.Y(function(G){var B,F=(B=_.np("yt-mini-app-is-theater-mode-enabled"))!=null?B:!1,D=_.X("enable_playable_container_save_button"),u=_.X("enable_play_next_destination_page_in_toolbar");B={};return _.l("ytm-mini-app-top-bar-view-model",null,_.l("div",{class:_.tx("yt-mini-app-top-bar-view-model",(B["yt-mini-app-top-bar-view-model--mobile"]=!1,B["yt-mini-app-top-bar-view-model--desktop"]=!0,B))},_.l("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.l(_.E,{cond:function(){var R;return!!G.data().backButtonEdu&&
!((R=G.isExitMiniAppSeen)==null?0:R.call(G))},
then:function(){return _.l(_.uR,{data:function(){return G.data().backButtonEdu}},{buttonViewModel:_.cd})},
else:function(){return _.l(_.uR,{data:function(){return G.data().backButton}},{buttonViewModel:_.cd})}}),_.l(_.E,{cond:function(){return G.data().viewAllButton&&!0},
then:function(){return _.l(_.uR,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.cd})}}),_.l(_.E,{cond:function(){return G.data().title&&!0},
then:function(){return _.l("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return G.data().title})}})),_.l("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.l(_.E,{cond:function(){var R;
return(R=G.isDesktopPlayPage)==null?void 0:R.call(G)},
then:function(){return _.l(_.GJ,null,_.l(ewN,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview}),_.l($3G,{enableSaveButton:function(){return _.Mg(D)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.l(zwB,{menuButton:function(){return G.data().menuButton}}))},
else:function(){return _.l(_.E,{cond:function(){return!1},
then:function(){return _.l(_.uR,{data:function(){return G.data().playPageButton}},{buttonViewModel:function(R){return _.l(_.cd,{data:R.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.l(ewN,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview})}})}})),_.l("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.l(_.uR,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(R){var N=R.data;
return _.l(_.wl,{data:function(){var y,U;return Object.assign({},N(),{isToggled:(U=(y=G.isAudioEnabled)==null?void 0:y.call(G))!=null?U:!0})},
onToggle:G.onAudioToggled,useOutlinedIcon:!0})}}),_.l(_.uR,{data:function(){return G.data().theatreModeButton}},{toggleButtonViewModel:function(R){var N=R.data;
return _.l("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.l(_.wl,{data:function(){return Object.assign({},N(),{isToggled:F})},
useOutlinedIcon:!0}))}}),_.l(be$,{fullscreenButton:function(){return G.data().fullscreenButton}}),_.l(_.E,{cond:function(){return _.Mg(u)&&G.data().viewAllButton&&!1},
then:function(){return _.l(_.uR,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.cd})}}),_.l(_.E,{cond:function(){var R;
return!((R=G.isDesktopPlayPage)==null?0:R.call(G))},
then:function(){return _.l(_.GJ,null,_.l($3G,{enableSaveButton:function(){return _.Mg(D)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.l(zwB,{menuButton:function(){return G.data().menuButton}}))}}))))},"ag");
VzU.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var zwB=_.Y(function(G){return _.l(_.uR,{data:G.menuButton},{buttonViewModel:_.cd})},"bg"),$3G=_.Y(function(G){var B=G.enableSaveButton;
var F=G.saveButton;var D=G.isSaved;var u=G.onSaveToggled;return _.l(_.E,{cond:function(){return B()&&!(F==null||!F())},
then:function(){return _.l(_.uR,{data:function(){var R=_.Q(F==null?void 0:F(),_.WR),N;return{toggleButtonViewModel:Object.assign({},R,{isToggled:(N=D==null?void 0:D())!=null?N:!(R==null||!R.isToggled)})}}},{toggleButtonViewModel:function(R){return _.l(_.wl,{data:R.data,
onToggle:u})}})}})},"cg"),ewN=_.Y(function(G){var B=G.highScoreButton;
var F=G.score;var D=G.formattedScore;var u=G.onScoreChanged;var R=G.isEmbeddedInWebview;return _.l(_.uR,{data:B},{miniAppScoreButtonViewModel:function(N){return _.l(OeH,{data:N.data,score:F,formattedScore:D,onScoreChanged:u,isEmbeddedInWebview:R})}})},"dg"),be$=_.Y(function(G){G=G.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.l(_.GJ,null):_.l(_.uR,{data:G},{buttonViewModel:_.cd})},"eg");_.vSN=_.Y(function(G){var B=G.data;var F=G.extractOverlay;G={};return _.l("player-disclosure-view-model",{class:_.tx("ytwPlayerDisclosureViewModelHost",(G.ytwPlayerDisclosureViewModelExtractOverlay=function(){return F==null?void 0:F()},G))},_.l(_.p4,{command:function(){return B().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.l(_.E,{cond:function(){return B().iconName},
then:function(D){return _.l(_.Pr,{icon:D})}}),_.l(_.E,{cond:function(){return B().iconName?void 0:B().image},
then:function(D){return _.l(_.vr,{data:D,alt:function(){return B().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.l(_.E,{cond:function(){return B().title||B().secondaryText},
then:function(){return _.l("div",null,_.l("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return B().title}),_.l("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return B().text}),_.l(_.E,{cond:function(){return B().secondaryText},
then:function(D){return _.l(_.GJ,null,_.l("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.l("div",{class:"ytwPlayerDisclosureViewModelText"},D))}}))},
else:function(){return _.l("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return B().text})}}),_.l(_.E,{cond:function(){return B().showEndChevron},
then:function(){return _.l(_.Pr,{icon:"CHEVRON_RIGHT"})}})))},"fg");_.oSD=new _.oV("DESKTOP_CURRENT_PAGE");var JjD=_.Y(function(G){var B=G.data;var F=_.X("force_active_time_logging_webview"),D=!1,u=new yj$,R=void 0,N=void 0,y=_.te().resolve(NmN),U=new ieH,q=void 0,h=void 0,K=[],a=void 0,m=void 0,L=!1,W=!1,e=!1,b=!1,M=new _.tc,t=_.te().resolve(HeQ),T=_.te().resolve(_.p2),A=_.te().resolve(_.fH(iI)),Z,P=(Z=_.te().resolve(_.fH(_.oSD)))==null?void 0:Z.getCurrentPage(),RI=!1,yo=0,hg=function(GL){GL.preventDefault();return GL.returnValue=""},US,aI=_.C(_.qg(!((US=_.np("yt-mini-app-is-audio-enabled"))!=null&&!US),
void 0,"y7Nkqd")),v6=aI.next().value,Jg=aI.next().value,c6,q8=_.C(_.qg(!((c6=_.np("exit-mini-app-seen-state"))==null||!c6),void 0,"ZP6Oxc")),n7=q8.next().value,Ts=q8.next().value,hT=_.C(_.qg(!1,void 0,"BCKP1c")),L7=hT.next().value,K7=hT.next().value,kD=_.C(_.qg(void 0,void 0,"bswUUd")),Rz=kD.next().value,KQ=kD.next().value,pQ=_.C(_.qg(void 0,void 0,"sXcJfc")),aq=pQ.next().value,Zq=pQ.next().value,eN=_.C(_.qg(!0,void 0,"DDj4gb")),Ps=eN.next().value,el=eN.next().value,sG=_.C(_.qg(!1,void 0,"qXUljf")),
qH=sG.next().value,TL=sG.next().value,Iz=_.C(_.qg(!1,void 0,"XqvjOc")),N8=Iz.next().value,EA=Iz.next().value,EG=_.C(_.qg(void 0,void 0,"S1uX2")),f7=EG.next().value,M8=EG.next().value,NH=_.C(_.qg(0,void 0,"CGS0ze")),Jj=NH.next().value,JT=NH.next().value,w$=_.W5("mini-app-container-view-model"),xD=_.C(_.qg(!1,void 0,"AVpgJ")),ia=xD.next().value,$0=xD.next().value,$d=function(){return B().isEmbeddedInWebview},DB=function(){return B().hasPlayNextShelf};
_.eR(function(){var GL,h2=(GL=_.Q(B().contentDisclosure,nYq))==null?void 0:GL.animationParams;if((h2==null?0:h2.shouldHide)&&(h2==null?0:h2.hideDelaySecs)){var z$=setTimeout(function(){$0(!0)},h2.hideDelaySecs*1E3);
_.VI(function(){clearTimeout(z$)})}});
_.Iu("yt-page-type-changed",function(GL){if(_.X("enable_is_mini_app_page_active_bugfix"))GL.detail.newPageSubtype==="mini_app"&&GL.detail.newPageType==="ytd-browse"||!Ps()||lZ();else if(GL=_.ox()==="mini_app",GL!==Ps())if(el(GL),GL){var h2;GL=(h2=B().playableId)==null?void 0:h2.toString();GL!==void 0&&window.location.href.includes(GL)&&!W&&(b=!0,Sy(),XJ.value&&$T(XJ.value))}else GL||lZ()});
_.Iu("yt-action",function(GL){GL.detail.actionName==="yt-engagement-panel-visible-changed"&&GL.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&GL.detail.args[2]==="PAmini_app_panel"&&lZ();_.X("enable_is_mini_app_page_active_bugfix")?GL.detail.actionName==="yt-history-load"&&!Ps()&&(P==null?0:P.active)?(el(!0),Sy(),XJ.value&&$T(XJ.value)):GL.detail.actionName==="yt-history-load"&&Ps()&&!B().isEmbeddedInWebview&&rw():Ps()&&GL.detail.actionName==="yt-history-load"&&(b?b=!1:B().isEmbeddedInWebview||
rw())});
_.VI(function(){HY()});
_.bC(function(){Sy()},"Jr1tnc");
var Sy=function(){var GL=B().playableId,h2=B().localReleaseId,z$=B().derivedDeviceInterface;if(W)_.em(new _.Uf("[MiniAppContainerViewModel] onEnter was called more than once"));else{W=!0;R=new T$$(GL,h2,z$,document.visibilityState==="visible");ZNQ(R);N=new ES$(GL);Mz2(y,GL);FLQ(U,{showMiniAppAdCommand:B().showMiniAppAdCommand,isEmbeddedInWebview:B().isEmbeddedInWebview,playLogger:R});kxz()&&(m=document.body.style.backgroundColor,_.ee(document.body,"background-color","black"));w2();eI();M=new _.tc;
if(B().isEmbeddedInWebview){if(GL=(new URLSearchParams(window.location.search)).get("postPlayNonce"))fZ$(R,GL),RI=!0;u.initialize({onAudioStateLoaded:function(ZZ){gU(ZZ)},
onMuteMiniApp:function(){gU(!1)},
onUnmuteMiniApp:function(){gU(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ZZ){RI||(fZ$(R,ZZ),RI=!0)},
confirmExitMiniApp:function(){var ZZ,pI,JC;return _.n(function(I_){if(I_.nextAddress==1)return B().confirmExitMiniAppCommand?I_.yield(Promise.race([M.promise,Promise.resolve(!1)]),2):I_.return();(ZZ=I_.yieldResult)?!B().confirmExitMiniAppCommandEdu||(JC=(pI=n7)==null?void 0:pI())!=null&&JC?x2(B().confirmExitMiniAppCommand):(x2(B().confirmExitMiniAppCommandEdu),_.yW("exit-mini-app-seen-state","true",2592E6)):x2(B().closeMiniAppCommand);_.di(I_)})},
onNativeBenchmarkingMessageReceived:function(ZZ){ZZ=AhP(_.TU8(ZZ));if(_.wI(ZZ,_.Xp,3,Mtq)){var pI=_.Q1(ZZ,_.Xp,3,Mtq),JC=yug();var I_=Ln(JC.getSeconds())-Ln(pI.getSeconds());pI=_.AM(JC,2)-_.AM(pI,2);I_<0&&pI>0?(I_+=1,pI-=1E9):I_>0&&pI<0&&(--I_,pI+=1E9);I_=(new YW).setSeconds(I_);I_=_.ua(I_,2,_.lG(pI),0);_.ba(ZZ,1,I_)}var T7;(T7=h)==null||T7.returnNativeBenchmarkingMessage(ZZ)},
multiplayer3pAckStateLoaded:function(ZZ){rw(ZZ)},
exitMiniAppSeenStateLoaded:function(ZZ){B().confirmExitMiniAppCommandEdu&&Ts(ZZ)},
onNavigateToNewMiniApp:function(){x2(B().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ZZ){ZZ=new URLSearchParams(ZZ);var pI=void 0;ZZ.has("invite_code")&&(pI=new ttG,ZZ=ZZ.get("invite_code"),pI=_.wq(pI,1,ZZ));if(ZZ=pI){var JC;(JC=h)==null||JC.sendGameData(ZZ)}},
onPauseMiniApp:function(){D=!0;OS()},
onResumeMiniApp:function(){D=!0;Ag()},
onPausePlayableDialog:function(){e=!0;OS()},
onResumePlayableDialog:function(){e=!1;Ag()},
onAdFinished:function(ZZ){U.onAdFinished(ZZ)}});
B().showMultiplayer3pConsentDialogCommand||M.resolve(!0);x2(B().onContainerReadyCommand)}else fZ$(R),M.resolve(!0),B().runAttestationCommand&&IZ$(R).then(function(ZZ){var pI=_.Q(wJl(B().runAttestationCommand),_.pfq);pI&&pI.ids&&(pI.ids.push({postPlayNonce:ZZ}),x2(B().runAttestationCommand))});
hwA(N,IZ$(R));IZ$(R).then(function(ZZ){ZZ={miniAppPlayData:{postPlayNonce:ZZ}};var pI,JC=(pI=B().loggingDirectives)==null?void 0:pI.trackingParams;JC&&_.Rh().stateChanged(JC,ZZ)});
GL=B().showSignInDialogCommand;!Es6()&&GL&&(_.yW("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),x2(GL));B().confirmExitMiniAppCommand&&A&&(GL=wJl(B().confirmExitMiniAppCommand))&&(A.customConfirmationCommand=GL)}},HY=function(){m&&_.ee(document.body,"background-color",m);
L=!1;a&&a.release();N.flush().catch(function(GL){_.em(GL)});
y.flush().catch(function(GL){_.em(GL)});
SAZ(R);XM();h=void 0;pX$(t)},lZ=function(){el(!1);
HY();K7(!1);M8(void 0);KQ(void 0);Zq(void 0);yo=0;JT(0);W=!1},OS=function(){var GL;
(GL=h)==null||GL.onPause();a&&a.release();N.flush().catch(function(h2){_.em(h2)});
y.flush().catch(function(h2){_.em(h2)});
gDG(R);TL(!0)},Ag=function(){var GL;
(GL=h)==null||GL.onResume();eI();GL=R;GL.isForeground=!0;Aw(GL,"PLAY_EVENT_TYPE_PLAY_RESUME");TL(!1)},gU=function(GL){var h2;
(h2=h)==null||h2.onAudioToggled(GL);Jg(GL)},rw=function(GL){B().showMultiplayer3pConsentDialogCommand&&(B().isEmbeddedInWebview&&GL!==void 0&&M.resolve(GL),!GL&&_.ox()==="mini_app"&&x2(B().showMultiplayer3pConsentDialogCommand))},LN=function(){var GL,h2,z$,ZZ;
return _.n(function(pI){if(pI.nextAddress==1){!B().isLivestream||B().disableVideoCapture||(GL=h)!=null&&GL.sendStartGameFrameCapture();h2=(new URL(window.location.href)).searchParams;if(h2.has("invite_code")){var JC=new ttG,I_=h2.get("invite_code");z$=_.wq(JC,1,I_);(ZZ=h)==null||ZZ.sendGameData(z$)}L7()||(K7(!0),JC=R,JC.state!==1?_.em(new _.Uf("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+J2A[JC.state])):(_.P5("mini_app_ids_without_game_ready").includes(JC.JSC$17405_miniAppId)&&(JC.gameReady=
!0),JC.state=2,JC.beforeReady=!1,Ya(JC,"ma_ffr"),Aw(JC,"PLAY_EVENT_TYPE_PLAY_READY")));return pI.yield(M.promise,2)}x2(B().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();B().isEmbeddedInWebview||rw();_.di(pI)})},kS=function(){var GL=R;
GL.gameReady=!0;Ya(GL,"ma_gr")},OA=function(GL){var h2;
return _.n(function(z$){if(z$.nextAddress==1)return _.b5(z$,2),z$.yield(a6A(N,GL),4);if(z$.nextAddress!=2)return _.oY(z$,0);h2=_.Al(z$);x2(B().showSavingErrorPopupCommand);throw h2;})},Hs=function(){var GL,h2;
return _.n(function(z$){if(z$.nextAddress==1)return _.b5(z$,2),z$.yield(KLS(N),4);if(z$.nextAddress!=2)return GL=z$.yieldResult,z$.return(GL);h2=_.Al(z$);x2(B().showLoadingErrorDialogCommand);throw h2;})},Ws=function(GL){R.logError(GL)},d$=function(GL,h2,z$){xHB(R,GL,h2,z$)},RM=function(GL,h2){GXQ(R,GL,h2)},mt=function(){!F&&B().isEmbeddedInWebview||_.to();
szU(R,!0);L||(window.addEventListener("beforeunload",hg,{capture:!0}),L=!0)},VQ=function(GL){var h2,z$,ZZ,pI,JC,I_,T7;
return _.n(function(W0){if(W0.nextAddress==1)return y&&(!q||q<GL)&&GL>0?W0.yield(YyH(y,GL),3):W0.jumpTo(0);h2=W0.yieldResult;z$=_.C(h2);ZZ=z$.next().value;pI=z$.next().value;JC=ZZ;I_=pI;((T7=JC)==null?0:T7.displayString)&&I_&&(KQ(I_),Zq(JC.displayString));_.di(W0)})},c1=function(GL){var h2=B().onBenchmarkingMessageReceivedCommand;
if(h2){var z$=yug();_.VC(GL,3,Mtq,z$);jg(h2,dXU(GL))}},cX=function(){var GL=B().iapPurchaseCommand;
GL&&jg(GL)},hM=function(GL){var h2=B().onGameFrameReceivedCommand;
if(h2){var z$=new N_;var ZZ=new JQq;var pI=E8(GL,1);ZZ=_.Ez(ZZ,1,pI);GL=_.KX(GL,2);GL=_.wq(ZZ,2,GL);z$=_.ba(z$,2,GL);jg(h2,fWU(z$))}},G0=function(GL){var h2=B().onGameAudioDataReceivedCommand;
if(h2){var z$=new N_;var ZZ=new TYT;GL=_.KX(GL,1);ZZ=_.wq(ZZ,1,GL);z$=_.ba(z$,4,ZZ);jg(h2,fWU(z$))}},Wo=function(){var GL=new URLSearchParams(window.location.search);
if(B().isEmbeddedInWebview&&GL&&GL.get("override_hl")==="true"&&GL.get("hl"))return GL.get("hl");GL=document.documentElement.lang;return GL!==""?GL:LJ},P7=function(GL){var h2=B().onShareInviteCodeCommand;
if(h2)if(B().isEmbeddedInWebview){var z$=new ass;GL=_.wq(z$,1,GL);jg(h2,X9N(GL))}else z$=B().inviteCodeShareClientParamIdentifier,t.clientParams.set(z$,{miniAppClientParams:{inviteCode:GL}}),x2(h2)},rs=function(GL){var h2,z$,ZZ;
return _.n(function(pI){if(pI.nextAddress==1)return h2=B().onMiniAppOpenYtContentRequested,y&&_.X("enable_open_yt_content")&&h2?pI.yield(AjB(y,GL),3):pI.jumpTo(0);z$=pI.yieldResult;if(z$==="OK")if(B().isEmbeddedInWebview){var JC=new pHw;ZZ=uZ(JC,2,CV,HS(GL));jg(h2,d97(ZZ))}else T.clientData.set("video_id",GL),x2(h2);_.di(pI)})},C4=function(GL){yo+=_.AM(GL,3);
GL=Math.min(Math.log(1+yo/15E6*9)/Math.log(10),.99);JT(GL);Uz(GL)},Uz=_.h5(function(GL){var h2=B().updateLoadingProgressCommand;
if(h2){var z$=new pHw;GL=uZ(z$,3,CV,_.iG(GL));jg(h2,d97(GL))}},100),m$=function(GL,h2){switch(GL){case 1:return uAN(U);
case 2:return RwH(U);case 3:return CaQ(U,h2);default:return Promise.reject(Error("ei"))}},eI=function(){var GL,h2;
((GL=_.f2o())==null?void 0:(h2=GL.wakeLock)==null?void 0:h2.request)!=null&&_.f2o().wakeLock.request("screen").then(function(z$){a=z$}).catch(function(){})},XJ=_.H5("iframe");
_.bC(function(){B().isSupportedCountry&&(Es6()||_.X("enable_sign_in_promo")||!B().showSignInDialogCommand?XJ.value&&$T(XJ.value):x2(B().onMiniAppReadyCommand))},"I8Fvz");
var Rt=function(){return _.l("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return L7()?0:-1},
title:function(){return B().title},
el:XJ})},$T=function(GL,h2){h2=h2===void 0?!1:h2;
var z$=za();if(z$&&(h2||z$.toString()!==GL.getAttribute("src"))){h=jEQ(B().source,{isAudioEnabled:v6,onFirstFrameReady:LN,onGameReady:kS,onSave:OA,onLoad:Hs,onError:Ws,onSdkCalled:d$,onSdkPerformanceUpdate:RM,onClick:mt,onSendHighScore:VQ,onBenchmarkingMessageReceived:c1,getLanguage:Wo,onShareInviteCode:P7,onResourceLoaded:C4,onOpenYTContent:rs,onShowMiniAppAd:m$,onGameFrameReceived:hM,onGameAudioReceived:G0,onMakeIapPurchase:cX},GL,z$);h7(GL,"load",function(){Ya(R,"ma_il");h7(GL,"load",function(){$T(GL,
!0)})});
var ZZ=_.sD("mini_app_container_iframe_src_update_delay_ms");B().isEmbeddedInWebview&&!h2&&ZZ>0?UdI(GL,z$,ZZ):_.u5(GL,z$)}},za=function(){var GL=B().url;
if(GL&&(GL=_.rg(GL),GL!==null)){if(B().source&&B().source==="MINI_APP_SOURCE_GAMESNACKS")GL=_.H7(GL,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.X("enable_origin_query_parameter_bugfix")){var h2=_.c7(_.ZT8(GL.toString()));h2=new URLSearchParams(h2||"");h2.set("origin",window.location.origin);h2=h2.toString();GL=_.YS(GL).toString();GL=_.pe(rMq.exec(GL)[0]+(h2.trim()?"#"+h2:""))}return GL}},we=function(){var GL={};
GL=_.tx("yt-mini-app-container-view-model__loading-screen",(GL["yt-mini-app-container-view-model__loading-screen--fade-out"]=L7,GL));var h2=function(){return L7()?1:Jj()};
return _.l("div",{class:GL},_.l(_.uR,{data:function(){return B().splashScreen}},{miniAppSplashScreenViewModel:function(z$){return _.l(WL$,{data:z$.data,
loadingProgress:h2})}}))},FS=function(){var GL={};
return _.l("div",{class:_.tx("yt-mini-app-container-view-model__pause-interstitial",(GL["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!qH()},GL["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=qH,GL))},_.l(_.uR,{data:function(){return B().splashScreen}},{miniAppSplashScreenViewModel:function(h2){return _.l(WL$,{data:h2.data,
forPaused:!0})}}))},w2=function(){K=[];
K.push(_.H1(window,"visibilitychange",function(){e||D&&$d()||(document.visibilityState==="visible"?Ag():OS())}));
K.push(_.H1(window,"pagehide",function(){HY()}));
K.push(_.H1(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&w$.value.dispatchEvent(new Event("tap"))},0)}));
K.push(_.H1(w$.value,"pointerdown",function(){szU(R,!1)},!0));
K.push(_.H1(w$.value,"pause",function(){e=!0;OS()}));
K.push(_.H1(w$.value,"play",function(){e=!1;Ag()}));
K.push(_.H1(w$.value,"exit",function(){HY()}));
var GL=navigator.keyboard,h2=GL&&GL.lock;K.push(_.H1(window,IeG,function(){EA(iGo());iGo()?(B().hasPlayNextShelf&&NR("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),DI("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),h2&&GL.lock(["Escape"])):(B().hasPlayNextShelf&&DI("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),NR("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),h2&&GL.unlock())}));
B().showMultiplayer3pConsentDialogCommand&&K.push(_.H1(window,"yt-playables-ack-3p-data-usage",function(){d3$(y)}));
B().confirmExitMiniAppCommandEdu&&K.push(_.H1(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.yW("exit-mini-app-seen-state","true",2592E6)}));
B().onGameAudioDataReceivedCommand&&K.push(_.H1(window,"message",function(z$){z$=z$.event_;var ZZ,pI=(ZZ=XJ.value)==null?void 0:ZZ.src;if(pI&&z$.origin===(new URL(pI)).origin&&z$.data&&z$.data.type==="GAME_AUDIO"&&z$.data.audio&&z$.data.audio.length>0)if(_.X("enable_sending_unwrapped_game_audio_as_serialized_metadata"))lC8(B().onGameAudioDataReceivedCommand,z$.data.audio);else{var JC=new FileReader;JC.onload=function(){var I_=new N_;var T7=new TYT;T7=_.wq(T7,1,JC.result);I_=_.ba(I_,4,T7);jg(B().onGameAudioDataReceivedCommand,
fWU(I_))};
JC.readAsDataURL(new Blob([z$.data.audio]))}}))},XM=function(){K.forEach(function(GL){Nh(GL)});
window.removeEventListener("beforeunload",hg,{capture:!0})},x2=function(GL){GL&&NzU(GL,B().isEmbeddedInWebview||!1)},DI=function(GL,h2){GL=_.C(w$.value.getElementsByClassName(GL));
for(var z$=GL.next();!z$.done;z$=GL.next())z$.value.classList.add(h2)},NR=function(GL,h2){GL=_.C(w$.value.getElementsByClassName(GL));
for(var z$=GL.next();!z$.done;z$=GL.next())z$.value.classList.remove(h2)};
return function(){var GL={};GL=_.tx("yt-mini-app-container-view-model",(GL["yt-mini-app-container-view-model--desktop"]=!0,GL["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return B().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},GL["yt-mini-app-container-view-model--ios-web-view"]=kxz(),GL["yt-mini-app-container-view-model--no-top-bar"]=function(){return!B().topBar},GL["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return B().hasPlayNextShelf},GL["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return B().hasPlayNextShelf},GL["yt-mini-app-container-view-model--show-peek-below"]=function(){return!N8()&&B().hasPlayNextShelf},GL));
var h2={};h2=_.tx("yt-mini-app-container-view-model__content",(h2["yt-mini-app-container-view-model__content--desktop-content"]=!0,h2["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return B().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},h2["yt-mini-app-container-view-model--desktop-play-page"]=function(){return B().hasPlayNextShelf},h2));
return _.l("mini-app-container-view-model",{el:w$},_.l("div",{class:GL},_.l(_.E,{cond:function(){return B().topBar&&!N8()},
then:function(){return _.l(_.uR,{data:function(){return B().topBar}},{miniAppTopBarViewModel:function(z$){return _.l(VzU,{data:z$.data,
isAudioEnabled:v6,onAudioToggled:function(ZZ){gU(ZZ)},
score:Rz,formattedScore:aq,onScoreChanged:function(ZZ){q=ZZ},
isEmbeddedInWebview:$d,isSaved:f7,onSaveToggled:function(ZZ){M8(ZZ)},
isExitMiniAppSeen:n7,isDesktopPlayPage:DB})}})}}),_.l("div",{class:h2},_.l(_.E,{cond:Ps,
then:function(){return Rt()}}),_.l(_.E,{cond:function(){return B().isLivestream},
then:function(){return FS()}}),_.l(_.E,{cond:function(){return!B().isEmbeddedInWebview},
then:function(){return we()}}),_.l(_.uR,{data:function(){return B().contentDisclosure}},{playerDisclosureViewModel:function(z$){z$=z$.data;
var ZZ={};return _.l("div",{class:_.tx("yt-mini-app-container-view-model__content-disclosure-overlay",(ZZ["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=ia,ZZ))},_.l(_.vSN,{data:z$}))}}))))}()},"jg");
JjD.idomCompat=!0;_.YN(JjD,"mini-app-container-view-model",{props:{data:_.Hd}});var cjG=_.Y(function(G){var B=G.data;return _.l("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.l("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.gJ(function(){var F=B().onTap;F&&_.rJ(F)})},_.l(_.E,{cond:function(){return B().icon},
then:function(F){return _.l(_.Pr,{icon:function(){return F().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.l("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return B().title})))},"kg");
cjG.idomCompat=!0;var Tm$=_.Y(function(G){var B=_.W5("div"),F=_.C(_.qg(void 0,void 0,"dg3xff")),D=F.next().value,u=F.next().value;F=_.C(_.qg(void 0,void 0,"AgHNfc"));var R=F.next().value,N=F.next().value;F=_.C(_.qg(void 0,void 0,"fuTKCc"));var y=F.next().value,U=F.next().value,q=function(){var b=D();return b!==void 0?Math.abs(b):void 0},h=function(){var b=q();
return b===void 0||b<=3},K=function(){var b=q();
var M=R(),t=y();b=b!==void 0&&M!==void 0&&t!==void 0?M-t-b:void 0;return b===void 0||b<=3},a=function(b){B.value&&B.value.scrollBy({top:0,
left:(_.v5("HTML_DIR")==="rtl"?-1:1)*b*B.value.clientWidth,behavior:"smooth"})},m=function(){var b;
u((b=B.value)==null?void 0:b.scrollLeft);var M;N((M=B.value)==null?void 0:M.scrollWidth);var t;U((t=B.value)==null?void 0:t.clientWidth)},L=function(){a(-.5)},W=function(){a(.5)};
F=_.gJ(function(){m()});
_.eR(function(){m();if(B.value&&window.ResizeObserver){var b=new ResizeObserver(m);b.observe(B.value);_.VI(function(){b.disconnect()})}});
var e={};return _.l("yt-sponsorships-scrollable-shelf",{class:_.tx("ytdSponsorshipsScrollableShelfHost",G.className)},_.l("div",{class:_.tx("ytdSponsorshipsScrollableShelfContent",(e.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return G.data().previousButton&&G.data().nextButton&&!h()&&!K()},e.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return G.data().previousButton&&!h()&&K()},e.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return G.data().nextButton&&
h()&&!K()},e)),
el:B,"on:scroll":F},G.children),_.l(_.E,{cond:function(){return!h()},
then:function(){return _.l(_.uR,{data:function(){return G.data().previousButton}},{buttonViewModel:function(b){return _.l(_.cd,{data:b.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:L})}})}}),_.l(_.E,{cond:function(){return!K()},
then:function(){return _.l(_.uR,{data:function(){return G.data().nextButton}},{buttonViewModel:function(b){return _.l(_.cd,{data:b.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"mg");
Tm$.idomCompat=!0;var f6D=_.Y(function(G){var B=G.data;G={};return _.l("yt-sponsorships-hub",{class:_.tx("ytdSponsorshipsHubHost",(G.ytdSponsorshipsHubHostIndented=function(){return B().indented},G))},_.l("div",{class:"ytdSponsorshipsHubHeader"},_.l("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.l("div",{class:"ytdSponsorshipsHubAvatar"},_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8})),_.l(_.E,{cond:function(){return B().badgeImage},
then:function(F){return _.l("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.l("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.l("div",{class:"ytdSponsorshipsHubBadge"},_.l(_.vr,{data:F,targetWidth:24,targetHeight:24,alt:""}))))}})),_.l("div",{class:"ytdSponsorshipsHubDetails"},_.l("div",{class:"ytdSponsorshipsHubTierName"},function(){return B().tierName}),_.l("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return B().membershipType}),_.l("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return B().membershipDurationOrExpiry})),_.l("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.l(_.uR,{data:function(){return B().manageButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.l(_.uR,{data:function(){return B().actionMenuButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.l("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return B().perksTitle}),_.l(Tm$,{data:function(){return{previousButton:B().previousPerkButton,
nextButton:B().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.l("div",{class:"ytdSponsorshipsHubPerkCards"},_.l(_.uR,{data:function(){return B().perkCards}},{sponsorshipsHubPerkCardViewModel:cjG}),_.l(_.E,{cond:function(){return B().viewAllPerksButton},
then:function(F){return _.l(I6S,{data:F})}}))))},"ng");
f6D.idomCompat=!0;var I6S=_.Y(function(G){var B=G.data;return _.l("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.l(_.uR,{data:function(){return B().button}},{buttonViewModel:_.cd}),_.l("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.l("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return B().title}),_.l("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return B().subtitle})))},"og");
I6S.idomCompat=!0;_.YN(f6D,"yt-sponsorships-hub",{props:{data:_.Hd}});_.tzN=_.Y(function(G){var B=G.data;return _.l("yt-dual-avatar-view-model",{class:_.tx("ytDualAvatarViewModelHost",G.className),style:_.xN({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var F;return((F=B().badgeCutoutRadius)!=null?F:14)+"px"}})},_.l("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.l(_.uR,{data:function(){return B().startAvatar}},{avatarViewModel:_.h8}),_.l(_.uR,{data:function(){return B().endAvatar}},{avatarViewModel:_.h8})),_.l(_.uR,{data:function(){return B().badge}},
{contentPreviewImageViewModel:function(F){return _.l("div",{class:"ytDualAvatarViewModelBadge"},_.l(_.I$,{data:F.data}))}}))},"pg");
_.tzN.idomCompat=!0;var gSA=_.Y(function(G){var B=G.data;var F,D=!((F=_.te().resolve(_.fH(_.Rx)))==null||!F());G=_.mS(function(){var h,K,a=D?(h=B().header)==null?void 0:h.backgroundColorDarkMode:(K=B().header)==null?void 0:K.backgroundColorLightMode;if(a!==void 0)return _.Kp(a)},void 0,"TDdh7d");
F=_.mS(function(){var h,K;return D?(h=B().header)==null?void 0:h.backgroundImagePart1Dark:(K=B().header)==null?void 0:K.backgroundImagePart1Light},void 0,"X0peMe");
var u=_.mS(function(){var h,K;return D?(h=B().header)==null?void 0:h.backgroundImagePart2Dark:(K=B().header)==null?void 0:K.backgroundImagePart2Light},void 0,"an0Hzd"),R=_.mS(function(){return _.v5("HTML_DIR")==="rtl"},void 0,"BltEgb"),N=_.W5("yt-sponsorships-perks-list"),y=!1,U=function(){var h=N.value;
if(h&&!y){var K,a=(K=h.parentElement)==null?void 0:K.parentElement;if(a)for(h=h.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),K=0;K<h.length;++K){var m=h[K];if(m instanceof HTMLElement){a.scrollTo({top:m.offsetTop+m.clientHeight/2-a.clientHeight/2,behavior:"smooth"});y=!0;break}}}};
_.$f(function(){var h=N.value;if(h&&window.ResizeObserver){var K=new ResizeObserver(U);K.observe(h);_.VI(function(){K.disconnect()})}});
var q={};return _.l("yt-sponsorships-perks-list",{el:N,class:_.tx("ytdSponsorshipsPerksListHost",(q.ytdSponsorshipsPerksListHorizontalPadding=function(){return B().horizontalPaddingEnabled},q))},_.l("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.l("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.xN({"background-color":G})},_.l("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.l(_.E,{cond:F,then:function(h){var K={};return _.l("div",{class:_.tx((K.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=D,K.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!D,K.ytdSponsorshipsPerksListFlipped=R,K))},_.l(_.vr,{data:h,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.l("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.l(_.E,{cond:u,
then:function(h){var K={};return _.l("div",{class:_.tx((K.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=D,K.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!D,K.ytdSponsorshipsPerksListFlipped=R,K))},_.l(_.vr,{data:h,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.l("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.l(_.uR,{data:function(){var h;
return(h=B().header)==null?void 0:h.dualAvatar}},{dualAvatarViewModel:_.tzN})))),_.l("div",{class:"ytdSponsorshipsPerksListBody"},_.l("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return B().title}),_.l(_.E,{cond:function(){return B().perks},
then:function(h){return _.l(_.jR,{each:h},function(K,a){var m={};return _.l("div",{class:_.tx("ytdSponsorshipsPerksListPerkContainer",(m.ytdSponsorshipsPerksListSelectedPerk=function(){var L=a(),W=B().selectedPerkIndex;return L===W},m))},_.l(_.E,{cond:function(){return a()>0},
then:function(){return _.l("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.l("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.l(_.E,{cond:function(){return K.icon},
then:function(L){return _.l(_.Pr,{icon:function(){return L().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.l("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.l("div",{class:"ytdSponsorshipsPerksListPerkTitle"},K.title),_.l("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.l(_.Wd,{text:K.description})),_.l(_.E,{cond:function(){return K.instructions},
then:function(){var L,W;return _.l("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.l("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(L=K.instructions)==null?void 0:L.title),_.l("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.l(_.Wd,{text:(W=K.instructions)==null?void 0:W.text})))}}))),_.l(_.E,{cond:function(){return K.emoji},
then:function(L){return _.l("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.l(_.jR,{each:function(){return L()}},function(W){return _.l(_.vr,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.l(ZeA,{data:K}))})}})))},"qg");
gSA.idomCompat=!0;var ZeA=_.Y(function(G){var B=G.data;var F=function(N,y){return N===y},D=function(){var N=B();
N=_.Q(N==null?void 0:N.badgesShelf,rfy);return N!==void 0&&N!==null?N:{previousButton:{},nextButton:{}}},u=_.H5("div"),R=function(){var N=u.value;
if(N){var y=N.parentElement;if(y){N=N.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var U=0;U<N.length;++U){var q=N[U];if(q instanceof HTMLElement){y.scrollTo({left:q.offsetLeft+q.clientWidth/2-y.clientWidth/2,behavior:"instant"});break}}}}};
_.$f(function(){var N=u.value;if(N){var y=new ResizeObserver(R);y.observe(N);_.VI(function(){y.disconnect()})}});
return _.l("div",null,_.l(_.E,{cond:function(){return B().badges},
then:function(N){return _.l(Tm$,{data:D},_.l("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:u},_.l(_.jR,{each:function(){return N()}},function(y,U){var q={},h={},K={};
return _.l("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.l(_.E,{cond:function(){return U()>0},
then:function(){return _.l("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.l("div",{class:_.tx("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(q.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return F(U(),B().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!F(U(),B().currentBadgeIndex)},q))},_.l("div",{class:_.tx("ytdSponsorshipsPerksListLoyaltyBadge",(h.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return F(U(),
B().currentBadgeIndex)},h.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!F(U(),B().currentBadgeIndex)},h))},_.l(_.E,{cond:function(){return y.image},
then:function(a){var m={};return _.l("div",{class:_.tx((m.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return F(U(),B().currentBadgeIndex)},m.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!F(U(),B().currentBadgeIndex)},m))},_.l(_.vr,{data:a,
alt:""}))}})),_.l("div",{class:_.tx("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(K.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return F(U(),B().currentBadgeIndex)},K))},y.title)))})))}}))},"rg");
ZeA.idomCompat=!0;_.YN(gSA,"yt-sponsorships-perks-list",{props:{data:_.Hd}});_.YN(_.Y(function(G){return _.l("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.l(_.E,{cond:function(){return G.data().image},
then:function(B){return _.l(_.vr,{className:"ytwFantasyEmptyStateViewModelImage",data:B,ariaHidden:!0,alt:""})}}),_.l(_.Wd,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return G.data().title}}),_.l(_.Wd,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return G.data().subtitle}}),_.l(_.uR,{data:function(){return G.data().primaryButton}},{buttonViewModel:function(B){return _.l(_.cd,{data:B.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"sg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Hd}});var Sy$;var sMD=_.Y(function(G){var B=G.data;var F=G.uniqueId;var D=G.overrides;G=_.mS(function(){var u,R=((u=B().timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:F(),timings:R,experimentEnabled:R.length>0,enabled:R.length>0}},void 0,"hiuXI");
return _.l("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.l(raN,{settings:G},_.l(_.uR,{data:function(){return B().buttonRenderer}},{buttonRenderer:function(u){return _.l(_.V3,{data:u.data,
buttonOverrides:D})}})))},"tg");
sMD.idomCompat=!0;_.YN(sMD,"timed-animation-button-renderer",{props:{data:_.Hd,uniqueId:_.Hd,overrides:_.Hd}});var tw=function(){var G=_.p.apply(this,arguments)||this;G.hideJoinButtonBeforeSubscribed=_.X("hide_join_button_before_subscribed");G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return G};
_.r(tw,_.p);_.w=tw.prototype;_.w.hasShowDialogCommand=function(G){return!!_.Q(G,zoN)};
_.w.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"}}}};
_.w.updateJoinButtonOverrides=function(){var G,B;(G=_.IF(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(B=G.polymerController)==null||B.set("overrides",this.joinButtonOverrides);if(G=_.IF(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))G.overrides=this.joinButtonOverrides};
_.w.handleButtonRefreshAction=function(G){if(G=_.Q(G,gEG))this.set("data.membershipButton",G.membershipButton),this.notifyPath("data.membershipButton")};
_.w.onYtServiceRequestError=function(G){_.zP(this.hostElement,G.detail.error.message)};
_.w.onKeydown=function(G){if(G.key==="Enter"){var B;(B=this.data)!=null&&B.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.w.handleUnsubscribeAction=function(){var G,B,F;((G=this.data)==null?void 0:(B=G.membershipButton)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.style)==="STYLE_PRIMARY"&&_.IF(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.ZN.Object.defineProperties(tw.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.subscriptionStateEntity)==null||!G.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var G,B=(G=this.data)==null?void 0:G.membershipButton,F;G=(B==null?void 0:B.buttonRenderer)||_.Q(B==null?void 0:(F=B.timedAnimationButtonRenderer)==null?void 0:F.buttonRenderer,_.Xq);return(G==null?void 0:G.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(G==null?void 0:G.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(G==null?void 0:G.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedTitle)}}});
tw.prototype.onYtServiceRequestError=tw.prototype.onYtServiceRequestError;tw.prototype.updateJoinButtonOverrides=tw.prototype.updateJoinButtonOverrides;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],tw.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],tw.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.N9),_.I("design:type",Object)],tw.prototype,"ironButtonState",void 0);_.c([_.v(),_.I("design:type",Object)],tw.prototype,"data",void 0);_.c([_.O("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.I("design:type",Object),_.I("design:paramtypes",[])],tw.prototype,"hideJoin",null);
_.c([_.v(),_.I("design:type",String)],tw.prototype,"subscribeKey",void 0);_.c([_.v({selectorArgs:["subscribeKey"],selector:jbM}),_.I("design:type",Object)],tw.prototype,"subscriptionStateEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tw.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.c([_.O("subscriptionStateEntity"),_.v({reflectToAttribute:!0}),_.I("design:type",Object),_.I("design:paramtypes",[])],tw.prototype,"subscribed",null);
_.c([_.O("subscribed","data.membershipButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],tw.prototype,"joinButtonOverrides",null);_.c([_.O("data.navigationEndpoint"),_.I("design:type",Object),_.I("design:paramtypes",[])],tw.prototype,"channelNameTabIndex",null);_.c([_.O("data.navigationEndpoint"),_.I("design:type",Object),_.I("design:paramtypes",[])],tw.prototype,"channelNameRole",null);
_.c([_.O("data.attributedTitle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],tw.prototype,"hasAttributedTitle",null);_.c([_.Ga("joinButtonOverrides"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tw.prototype,"updateJoinButtonOverrides",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],tw.prototype,"onYtServiceRequestError",null);
_.c([_.mC({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],tw);
var x3$=_.tS()(tw,"ytd-video-owner-renderer",function(){if(Sy$===void 0){var G=document.createElement("template");_.H(G,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);Sy$=G}G=Sy$;return G},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.YN(_.Y(function(G){var B=G.data;var F;G=_.C(_.qg(!((F=_.np("yt-mini-app-is-theater-mode-enabled"))==null||!F),void 0,"i2pjVd"));var D=G.next().value,u=G.next().value;F=_.C(_.qg(!1,void 0,"ga7V5c"));var R=F.next().value,N=F.next().value;_.$f(function(){var q=_.H1(window,IeG,function(){N(iGo())});
_.VI(function(){Nh(q)})});
var y;F=(y=_.te().resolve(_.fH(m8N)))!=null?y:function(){return _.l("div",null)};
_.da("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){u(!0);_.yW("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.da("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){u(!1);_.yW("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
y={};G={};var U={};return _.l("mini-app-play-page-renderer",{class:_.tx("miniAppPlayPageRendererHost",(y.miniAppPlayPageRendererHostDetailsView=function(){return!D()},y))},_.l("div",{class:_.tx("miniAppPlayPageRendererGameContainer",(G.miniAppPlayPageRendererGameContainerDetailsView=function(){return!D()},G))},_.l(_.uR,{data:function(){return B().containerViewModel}},{miniAppContainerViewModel:JjD}),_.l(_.E,{cond:function(){return B().channel&&B().subscribeButton},
then:function(){var q={};return _.l("div",{class:_.tx("miniAppPlayPageRendererChannelContainer",(q.miniAppPlayPageRendererHideVisibility=function(){return R()},q))},_.l(_.uR,{data:function(){return B().channel}},{videoOwnerRenderer:function(h){return _.l(x3$,{data:h.data})}}),_.l(_.uR,{data:function(){return B().subscribeButton}},{subscribeButtonViewModel:function(h){return _.l(_.EB,{data:h.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.l(_.E,{cond:function(){return!D()&&B().description},
then:function(){var q={};return _.l("div",{class:_.tx("miniAppPlayPageRendererMiniAppDescriptionWrapper",(q.miniAppPlayPageRendererHideVisibility=function(){return R()},q))},_.l("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return B().description}))}})),_.l("div",{class:_.tx("miniAppPlayPageRendererPlayNextContainer",(U.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!D()},U.miniAppPlayPageRendererHideVisibility=function(){return R()},U))},_.l(_.uR,{data:function(){return B().sectionList}},
{sectionListRenderer:F})))},"ug"),"mini-app-play-page-renderer",{props:{data:_.Hd}});var Z5=function(){var G=_.p.apply(this,arguments)||this;G.isSearch=!1;G.isConstrainedList=!1;G.hasChipsBar=!1;G.inReplyPanel=!1;G.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"}};G.monitorScroll=!0;G.SCROLL_ANIMATION_DURATION_MS=300;G.nextContinuation={continuationType:"sectionListContinuation"};return G};
_.r(Z5,_.p);_.w=Z5.prototype;
_.w.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},alertBannerViewModel:{component:"yt-alert-banner-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(G){switch(G.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.X("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.X("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.w.created=function(){var G=this;this.JSC$17548_scrollAnimation=new _.Mi(function(B){G.hostElement.scrollTop=B})};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.w.getItemsPath=function(){return"data.contents"};
_.w.replacePrimaryContent=function(G){this.set("data.contents",G)};
_.w.computeHasSortFilter=function(G){return!!G&&!!G.sortFilterSubMenuRenderer};
_.w.computeShouldScrollInPanel=function(G){var B;return!!(G==null?0:(B=G.scrollPaneStyle)==null?0:B.scrollable)};
_.w.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.tV(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.w.scrollToTop=function(){this.hostElement.scrollTop=0};
_.w.scrollToItemSection=function(G){if(G=this.getItemByIdentifier(G))G=this.getScrollPositionForItem(G),this.hostElement.scrollTop!==G&&this.JSC$17548_scrollAnimation.start(this.hostElement.scrollTop,G,this.SCROLL_ANIMATION_DURATION_MS)};
_.w.getItemByIdentifier=function(G){var B=this.contents.querySelectorAll("ytd-item-section-renderer");if(B&&B.length!==0){var F=Array.from(B).findIndex(function(D){return D.sectionIdentifier===G});
return B[F===-1?0:F]}};
_.w.getScrollPositionForItem=function(G){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===G)return 0;G=_.ai(G).y+this.hostElement.scrollTop-_.ai(this.hostElement).y;return Math.min(G,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.ZN.Object.defineProperties(Z5.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.targetId)==="browse-feedFEclips"}}});
Z5.prototype.onScroll=Z5.prototype.onScroll;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Z5.prototype,"ytLazyListBehavior",void 0);_.c([_.k(_.VB.YtNextContinuationBehavior),_.I("design:type",Object)],Z5.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.k(_.MQA),_.I("design:type",Object)],Z5.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],Z5.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Z5.prototype,"data",void 0);_.c([_.v({value:2}),_.I("design:type",Number)],Z5.prototype,"initialCount",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Z5.prototype,"autoFill",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.I("design:type",Boolean)],Z5.prototype,"hasSortFilter",void 0);_.c([_.v({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.I("design:type",Boolean)],Z5.prototype,"hideBottomSeparator",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.I("design:type",Boolean)],Z5.prototype,"shouldScrollInPanel",void 0);
_.c([_.v(),_.I("design:type",Object)],Z5.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Z5.prototype,"isConstrainedList",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Z5.prototype,"responsiveSizing",void 0);_.c([_.v(),_.I("design:type",Object)],Z5.prototype,"hasChipsBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Z5.prototype,"pageSubtype",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Z5.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Z5.prototype,"liveChatEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Z5.prototype,"inReplyPanel",void 0);_.c([_.iA("#action-button"),_.I("design:type",HTMLElement)],Z5.prototype,"actionButton",void 0);_.c([_.v(),_.I("design:type",Object)],Z5.prototype,"scrollUpButtonData",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Z5.prototype,"engagementPanelDropdown",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Z5.prototype,"engagementPanelDialog",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Z5.prototype,"isClipList",null);_.c([_.iA("#contents"),_.I("design:type",HTMLElement)],Z5.prototype,"monitorScrollElement",void 0);_.c([_.iA("#contents"),_.I("design:type",HTMLElement)],Z5.prototype,"contents",void 0);
_.c([_.Pm("scroll"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z5.prototype,"onScroll",null);_.c([_.mC({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Z5);
var PaG=_.tS()(Z5,"ytd-section-list-renderer",function(){if(aqD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);aqD=G}G=aqD;return G},{mode:1});var GoB;var Bi$;var iIN;var FnS;var gQ=function(){return _.p.apply(this,arguments)||this};
_.r(gQ,_.p);gQ.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
gQ.prototype.onLikeButtonClick=function(G){G.stopPropagation();G.preventDefault()};
_.ZN.Object.defineProperties(gQ.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.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)})}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],gQ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],gQ.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],gQ.prototype,"ytRendererStamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gQ.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.likeStatusEntityKey"],selector:_.XT}),_.I("design:type",Object)],gQ.prototype,"likeStatusEntity",void 0);_.c([_.O("data","likeStatusEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],gQ.prototype,"likeButtonRenderer",null);_.c([_.mC({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],gQ);
_.d(gQ,"ytd-slim-metadata-toggle-button-renderer",function(){if(FnS!==void 0)return FnS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return FnS=G},{mode:1});var Sb=function(){var G=_.p.apply(this,arguments)||this;G.showEqualizer=_.X("web_enable_playlist_video_lockup_equalizer");G.watchColorUpdate=_.X("kevlar_watch_color_update");G.actionMap={};return G};
_.r(Sb,_.p);_.w=Sb.prototype;_.w.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.w.computeEditableClass=function(G){return G&&G.menu?"editable":""};
_.w.computeSelected=function(G){return!(G==null||!G.selected)};
_.w.computeUseColorPalette=function(G){return!!((G==null?0:G.lightColorPalette)&&(G==null?0:G.darkColorPalette))};
_.w.computeLargerPlaylistThumbs=function(G,B){return _.X("web_enable_playlist_bigger_thumbnails")&&!B};
_.w.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.w.onYtServiceRequestSent=function(G,B){B.endpoint&&this.isHideEnclosingAction(B.endpoint)&&!this.selected&&CtP(_.$l(),this.data.videoId)};
_.w.isHideEnclosingAction=function(G){var B=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",G);G=this.get("likeEndpoint.status",G)==="INDIFFERENT";return B||G};
_.w.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.w.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.ZN.Object.defineProperties(Sb.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.X("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.withinMiniplayer&&((G=this.data)==null?0:G.actionButtons))}}});
Sb.prototype.onYtServiceRequestSent=Sb.prototype.onYtServiceRequestSent;Sb.prototype.canReorderChanged=Sb.prototype.canReorderChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Sb.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.W9),_.I("design:type",Object)],Sb.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Sb.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"withinMiniplayer",void 0);_.c([_.v({computed:"computeSelected(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"selected",void 0);
_.c([_.v({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"useColorPalette",void 0);_.c([_.v({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"largerPlaylistThumbs",void 0);_.c([_.v(),_.I("design:type",Object)],Sb.prototype,"showEqualizer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"canReorder",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"touchPersistentDragHandle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Sb.prototype,"handleIsHovered",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Sb.prototype,"watchColorUpdate",void 0);_.c([_.v(),_.I("design:type",String),_.I("design:paramtypes",[])],Sb.prototype,"reorderIcon",null);
_.c([_.v(),_.I("design:type",String),_.I("design:paramtypes",[])],Sb.prototype,"playIcon",null);_.c([_.v({reflectToAttribute:!0}),_.O("withinMiniplayer"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Sb.prototype,"minimizePipBreakages",null);_.c([_.O("largerPlaylistThumbs"),_.I("design:type",Number),_.I("design:paramtypes",[])],Sb.prototype,"thumbnailWidth",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Sb.prototype,"showActionButtons",null);_.c([_.Ry("canReorder"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Sb.prototype,"canReorderChanged",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Sb.prototype,"onYtServiceRequestSent",null);
_.c([_.mC({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Sb);
_.d(Sb,"ytd-playlist-panel-video-renderer",function(){if(iIN!==void 0)return iIN;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return iIN=G},{mode:2});var sH=function(){return _.p.apply(this,arguments)||this};
_.r(sH,_.p);sH.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sH.prototype,"data",void 0);_.c([_.mC({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],sH);
_.d(sH,"ytd-playlist-panel-supported-items",function(){if(Bi$!==void 0)return Bi$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Bi$=
G},{mode:1});f$w=!0;rRT("\\P{N}");var zvM;var Dmz=_.G7("END_OF_PLAYLIST",void 0,"End of playlist"),uJ$=_.G7("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),xa=function(){var G=_.p.apply(this,arguments)||this;G.minimizePipBreakages=_.X("web_pip_minimize_breakages");G.hideHeaderText=!1;G.useColorPalette=!1;G.collapsed=!1;G.collapsedPreServerOverride="not_tracked";G.isHovered=!1;G.expandLabel=_.G7("MINIPLAYER_EXPAND_LABEL");G.collapseLabel=_.G7("MINIPLAYER_COLLAPSE_LABEL");G.isFloating=!1;G.metaPanel=
!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};G.currentIndex=void 0;return G};
_.r(xa,_.p);_.w=xa.prototype;
_.w.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"}}}};
_.w.created=function(){var G=this;this.scrollThrottle=new _.s_(this.onThrottledScroll,1E3,this);this.JSC$17570_ytReorderableController=new _.MMw(56,function(B){G.handleDrop(B)})};
_.w.onMouseEnter=function(){this.isHovered=!0};
_.w.onMouseLeave=function(){this.isHovered=!1};
_.w.computeOverflowMenuData=function(G){return G&&G.menu?G.menu:null};
_.w.computeCollapsible=function(G){return!G};
_.w.computeHasPlaylistButtons=function(G){return!(!G||!G.playlistButtons)};
_.w.computeHasSeparateSaveButton=function(G){return!(!G||!G.saveButton)};
_.w.computeHasToolbarButton=function(G,B){return!(!G||!(B||G.saveButton||G.menu))};
_.w.computePlaylistType=function(G){if(G&&G.playlistId)return G.playlistId.substring(0,4)};
_.w.computeCanReorder=function(G){return G?G.playlistId&&G.playlistId.startsWith("TLPQ")?!0:!!G.isEditable&&!G.isInfinite:!1};
_.w.attached=function(){var G=this;try{_.te().resolve(_.Wv).setPlaylistComponent(this.hostElement)}catch(B){if(_.X("kevlar_park_on_playlist_token_killswitch"))throw B;_.kl().parkOrScheduleJob(function(){_.te().resolve(_.Wv).setPlaylistComponent(G.hostElement)},2,"ci")}_.MW(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.w.detached=function(){_.pi(this.hostElement);_.Gl(this.JSC$17570_ytReorderableController)};
_.w.computeTrailingIcon=function(G,B,F){return F?B?"yt-icons:collapse":"yt-icons:close":B?"yt-icons:expand":_.X("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.w.computeIndexMessage=function(G,B){return vso(G+1)+" / "+vso(B)};
_.w.onRenderStamperFinished=function(){if(this.scrollForStampDom){var G=!0;this.isHovered&&(G=!1);if(this.collapsed||this.hidden)G=!1;G&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.w.collapseChanged=function(){var G=this;this.collapsed||(_.uQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.w.hiddenChanged=function(){var G=this;this.hidden||_.uQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()})};
_.w.setupReordering=function(){var G=_.IF(this.hostElement).querySelector("#items");NQT?_.pka(this.JSC$17570_ytReorderableController,G,G,"playlist-drag-handle"):_.pka(this.JSC$17570_ytReorderableController,G,G)};
_.w.scrollToCurrentVideo=function(){var G=this;_.Lu.addJob(function(){var B=_.IF(G.hostElement).querySelector("#items");if(B){B.style.setProperty("padding-bottom","");var F=_.IF(G.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(F){B=F.parentElement||_.X3(document);var D=B||_.X3(document);var u=_.ai(F),R=_.ai(D),N=_.ln7(D);if(D==_.X3(document)){var y=u.x-D.scrollLeft;u=u.y-D.scrollTop}else y=u.x-R.x-N.left,u=u.y-R.y-N.top;F=Czs(F);R=D.clientHeight-
F.height;N=D.scrollLeft;var U=D.scrollTop;N+=y-(D.clientWidth-F.width)/2;D=new _.e5(N,U+(u-R/2));B.scrollLeft=D.x;B.scrollTop=D.y}}},8)};
_.w.dataChanged=function(){var G=this;_.Gl(this.JSC$17570_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.ft(this,function(){_.mX(G.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty();G.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.w.onFullBleedPlayerChanged=function(){_.X("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.w.onFullscreenChanged=function(){_.X("web_watch_imax_theater_mode")||_.X("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.w.updateNowPlayingOverlay=function(){_.X("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.w.onPlaylistLockupNowPlaying=function(G,B){B&&(this.activeNowPlayingRenderer=B);this.updateNowPlayingOverlay()};
_.w.onScroll=function(){this.scrollThrottle.fire()};
_.w.onThrottledScroll=function(){var G=this;_.mX(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty()})};
_.w.onToggleExpanded=function(G){!this.collapsible||G&&(_.oF(G).tagName==="A"||_.oQ(_.VW(G),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.w.setCollapsed=function(G){this.collapsible&&(this.collapsed=G,_.Ia(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.w.handleCollapsedFromData=function(G){if(G){var B=G.playlistPanelCollapseState;B==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||B==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),B=B==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==B&&this.setCollapsed(B)):this.currentPlaylistId!==G.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(B=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==B&&this.setCollapsed(B),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=G.playlistId}};
_.w.handleDrop=function(G){var B=G.currDragItem;G=B.data.playlistSetVideoId;var F=_.ML(B.parentNode.childNodes,B),D=void 0;F>0&&(D=B.parentNode.childNodes[F-1].data.playlistSetVideoId);B=_.$l();if(B.responsePlaylistData&&B.responsePlaylistData.contents){var u=IdM(G,B.responsePlaylistData);B.responsePlaylistData=(0,_.UK.unsafeClone)(B.responsePlaylistData);YSs(B.responsePlaylistData.contents,u,F);B.queueProxy?px8(B.queueProxy,u,F,G,D):B.playlistProxy&&px8(B.playlistProxy,u,F,G,D);_.zS(B,_.b_(B,B.response?
B.response.autoplayRenderer:void 0))}};
_.w.handleDarkModeChange=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.w.colorPaletteChanged=function(){var G,B=((G=this.data)==null?void 0:G.contents)||[],F;G=_.C(B);for(B=G.next();!B.done;B=G.next()){B=B.value;var D=void 0;if((D=B.playlistPanelVideoRenderer)==null?0:D.selected){G=B.playlistPanelVideoRenderer;D=B=void 0;(F=this.isDarkTheme?(B=G)==null?void 0:B.darkColorPalette:(D=G)==null?void 0:D.lightColorPalette)&&_.nA(this.hostElement,F);break}}this.useColorPalette=!!F};
_.ZN.Object.defineProperties(xa.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.moveThreeDotsMenuToMainHeader)&&_.X("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var G=_.te().resolve(_.fH(_.Wv)),B;if(((B=this.data)==null?0:B.contents)&&(G==null?0:G.hasAutoplayData())){var F;if(((F=this.playlistLoopStateEntity)==null?void 0:F.state)==="PLAYLIST_LOOP_STATE_ONE"){if(G=this.data.currentIndex,G!==void 0){var D,u;var R=(D=this.data.contents[G])==null?void 0:(u=D.playlistPanelVideoRenderer)==null?void 0:u.title}}else{var N,y=(N=_.Q(G.getAutoplayEndpoint(),_.Ow))==null?void 0:N.videoId,U,q;R=(U=this.data.contents.find(function(h){var K;
return((K=h.playlistPanelVideoRenderer)==null?void 0:K.videoId)===y}))==null?void 0:(q=U.playlistPanelVideoRenderer)==null?void 0:q.title}return R}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.nextVideoLabel?this.nextVideoTitle?_.zx(this.data.nextVideoLabel)+":":Dmz:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.X("web_mix_long_byline_from_data"))return _.$9(uJ$);var B;return(B=this.data)==null?void 0:B.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.playlistButtons)==null?void 0:(F=B.menuRenderer)==null?void 0:F.topLevelButtons;if(D)for(G=_.C(D),B=G.next();!B.done;B=G.next())if(B=B.value,B.playlistLoopButtonRenderer)return B.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.collapsed&&((G=this.data)==null?0:G.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.X("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
xa.prototype.colorPaletteChanged=xa.prototype.colorPaletteChanged;xa.prototype.onPlaylistLockupNowPlaying=xa.prototype.onPlaylistLockupNowPlaying;xa.prototype.updateNowPlayingOverlay=xa.prototype.updateNowPlayingOverlay;xa.prototype.onFullscreenChanged=xa.prototype.onFullscreenChanged;xa.prototype.onFullBleedPlayerChanged=xa.prototype.onFullBleedPlayerChanged;xa.prototype.dataChanged=xa.prototype.dataChanged;xa.prototype.hiddenChanged=xa.prototype.hiddenChanged;xa.prototype.collapseChanged=xa.prototype.collapseChanged;
xa.prototype.onRenderStamperFinished=xa.prototype.onRenderStamperFinished;xa.prototype.onMouseLeave=xa.prototype.onMouseLeave;xa.prototype.onMouseEnter=xa.prototype.onMouseEnter;_.c([_.k(_.Rc),_.I("design:type",Object)],xa.prototype,"ironResizableBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(NfT.YtPlaylistPanelBehavior),_.I("design:type",Object)],xa.prototype,"ytPlaylistPanelBehavior",void 0);_.c([_.k(_.zT.YtTaskEmitterBehavior),_.I("design:type",Object)],xa.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],xa.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],xa.prototype,"ytdReduxBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],xa.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xa.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],xa.prototype,"autoplayData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xa.prototype,"withinMiniplayer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xa.prototype,"minimizePipBreakages",void 0);
_.c([_.v({computed:"setMenuData_(data)"}),_.I("design:type",Object)],xa.prototype,"menuRendererData",void 0);_.c([_.v({computed:"computeOverflowMenuData(data)"}),_.I("design:type",Object)],xa.prototype,"overflowMenuDataTopRow",void 0);_.c([_.v({computed:"computeOverflowMenuData(data)"}),_.I("design:type",Object)],xa.prototype,"overflowMenuData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xa.prototype,"hideHeaderText",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xa.prototype,"useColorPalette",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.I("design:type",Boolean)],xa.prototype,"collapsible",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xa.prototype,"collapsed",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],xa.prototype,"hidden",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.I("design:type",Boolean)],xa.prototype,"hasPlaylistButtons",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.I("design:type",Boolean)],xa.prototype,"hasSeparateSaveButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.I("design:type",Boolean)],xa.prototype,"hasToolbar",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.I("design:type",String)],xa.prototype,"playlistType",void 0);_.c([_.v(),_.I("design:type",Object)],xa.prototype,"isHovered",void 0);_.c([_.v({selectorArgs:["playlistLoopStateEntityKey"],selector:_.R5.playlistLoopStateEntitySelector}),_.I("design:type",Object)],xa.prototype,"playlistLoopStateEntity",void 0);_.c([_.v({computed:"computeCanReorder(data)"}),_.I("design:type",Boolean)],xa.prototype,"canReorder",void 0);
_.c([_.v(),_.I("design:type",Object)],xa.prototype,"expandLabel",void 0);_.c([_.v(),_.I("design:type",Object)],xa.prototype,"collapseLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xa.prototype,"isFloating",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],xa.prototype,"metaPanel",void 0);_.c([_.v({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.I("design:type",String)],xa.prototype,"trailingIcon",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],xa.prototype,"isDarkTheme",void 0);_.c([_.v({selector:_.hc}),_.I("design:type",Boolean)],xa.prototype,"miniplayerIsActive",void 0);_.c([_.v({selector:function(G){return G.watch.playerState}}),
_.I("design:type",Number)],xa.prototype,"playerState",void 0);_.c([_.v({selector:_.aQ}),_.I("design:type",Boolean)],xa.prototype,"isFullscreen",void 0);_.c([_.v({selector:_.KA}),_.I("design:type",Boolean)],xa.prototype,"isTheaterMode",void 0);_.c([_.v(),_.I("design:type",Object)],xa.prototype,"activeNowPlayingRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],xa.prototype,"moveThreeDotMenuToTopRow",null);
_.c([_.O("data","autoplayData","playlistLoopStateEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],xa.prototype,"nextVideoTitle",null);_.c([_.O("data","nextVideoTitle"),_.I("design:type",String),_.I("design:paramtypes",[])],xa.prototype,"nextVideoLabel",null);_.c([_.O("collapsed"),_.I("design:type",String),_.I("design:paramtypes",[])],xa.prototype,"buttonAriaLabel",null);
_.c([_.O("data","playlistId","longBylineText"),_.I("design:type",Object),_.I("design:paramtypes",[])],xa.prototype,"mixLongByLine",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],xa.prototype,"playlistLoopStateEntityKey",null);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"onMouseEnter",null);
_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"onMouseLeave",null);_.c([_.v({reflectToAttribute:!0}),_.O("data","collapsed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],xa.prototype,"showNextVideoHeader",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"onRenderStamperFinished",null);
_.c([_.Ga("collapsed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"collapseChanged",null);_.c([_.Ga("hidden"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"hiddenChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"dataChanged",null);
_.c([_.O("isTheaterMode","isFullscreen"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],xa.prototype,"isFullBleedPlayer",null);_.c([_.Ga("isTheaterMode","isFullscreen"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"onFullBleedPlayerChanged",null);_.c([_.Ga("isFullscreen"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"onFullscreenChanged",null);
_.c([_.Ga("playerState","miniplayerIsActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"updateNowPlayingOverlay",null);_.c([_.Pm("yt-playlist-lockup-now-playing-active"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],xa.prototype,"onPlaylistLockupNowPlaying",null);
_.c([_.Ga("data","isDarkTheme"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xa.prototype,"colorPaletteChanged",null);_.c([_.mC({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],xa);
_.RsG=_.tS()(xa,"ytd-playlist-panel-renderer",function(){if(GoB===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);GoB=G}G=GoB;return G},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.wYS={};
_.wYS.YtConditionalRendererBehavior=[_.g.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(G,B){var F=this,D,u;return _.n(function(R){switch(R.nextAddress){case 1:if(!B)return F.hidden=!0,F.showSpinner=!1,R.return();if((D=G)==null?0:(u=D.visibilityCondition)==null?0:u.mode)switch(G.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return R.jumpTo(5);default:return R.jumpTo(6)}F.showSpinner=
!1;F.hidden=!0;return R.yield(F.shouldShow_(G),4);case 4:F.hidden=!R.yieldResult;R.jumpTo(0);break;case 5:return R.yield(F.shouldShow_(G),8);case 8:F.showSpinner=R.yieldResult;F.hidden=!1;R.jumpTo(0);break;case 6:return F.showSpinner=!1,R.yield(F.shouldShow_(G),9);case 9:F.hidden=!R.yieldResult,_.di(R)}})},
shouldShow_:function(G){return G&&G.supportedDatas&&G.supportedDatas.rendererVisibilityConditionData&&G.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(G.supportedDatas.rendererVisibilityConditionData.showIf):G&&G.visibilityCondition&&G.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(G.visibilityCondition.showIf):G&&G.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(G.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(G){switch(G){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(G){switch(G){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var G=_.T1(this.hostElement,"yt-get-mdx-status");return G.length==1&&G[0].connected},
isLocationPermissionGranted_:function(){var G;return _.n(function(B){return B.nextAddress==1?navigator.permissions?B.yield(navigator.permissions.query({name:"geolocation"}),3):B.jumpTo(2):B.nextAddress!=2?(G=B.yieldResult,B.return(Promise.resolve(G.state==="granted"))):B.return(Promise.resolve(!1))})}}];var C5$=$rJ("yt-icon",{callbackProps:["onKeydown"]}),NiU=_.X("kevlar_use_wil_icons")?_.Y(function(G){var B=G.icon;var F=G.active;var D=G.className;var u=G.style;var R=G.title;var N=G.size;var y=G.dataSelected;var U=G.dataDisabled;var q=G.role;var h=G.themeOverride;var K=G.animateIcon;var a=G.ariaHidden;var m=G.ariaExpanded;var L=G.ariaLabel;var W=G.tabindex;var e=G.id;var b=G.iconFilter;var M=G.gradientColor;var t=G.onKeydown;var T=function(){var P=B==null?void 0:B(),RI=null,yo=void 0;P&&(P=Y0N(P),
P=FZc(P),P.length&&(RI=P[1],yo=P[0]));return{iconName:RI,iconSetName:yo}},A=function(){return ABL(T().iconName,F==null?void 0:F(),void 0,N==null?void 0:N(),T().iconSetName,_.te().resolve(_.Pc))},Z=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:b==null?void 0:b(),iconColor:M==null?void 0:M()}};
return _.l(_.E,{cond:K,then:function(){return _.l(C5$,{icon:B,active:F,className:D,style:u,title:R,dataSelected:y,dataDisabled:U,role:q,themeOverride:h,ariaHidden:a,ariaExpanded:m,ariaLabel:L,tabindex:W,id:e,iconFilter:b,gradientColor:M,onKeydown:t})},
else:function(){return _.l(_.E,{cond:A,then:function(P){return _.l("span",{class:_.tx("ytIconWrapperHost",D),role:q,"aria-label":L,"aria-hidden":a,tabindex:function(){return isNaN(Number(W==null?void 0:W()))?void 0:Number(W==null?void 0:W())},
id:e,style:u,title:R,"on:keydown":_.gJ(function(RI){return void(t==null?void 0:t(RI))})},_.l(_.yO,{data:P,
options:Z}))}})}})},"vg"):C5$;var yl2=function(G){var B=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];gNU();_.IY("ytglobal.ytUtilActivityCallback_",function(){_.Ia(G,"yt-user-activity")});
new fu(function(){return B.JSC$17587_onMouseMove});
document.addEventListener("scroll",function(){return B.onScroll});
window.addEventListener("resize",function(){return B.onResize})},ndB=function(G,B,F){B in G.eventJobIds||(F=_.Kx().addLowPriorityJob(function(){_.to();
delete G.eventJobIds[B]},F),G.eventJobIds[B]=F)};
yl2.prototype.onScroll=function(G){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):G.target===document&&ndB(this,"scroll",200)};
yl2.prototype.onResize=function(){ndB(this,"resize",200)};
yl2.prototype.JSC$17587_onMouseMove=function(){ndB(this,"mousemove",100)};
_.v9=function(G){G.scrollEventsToIgnore+=1;G.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){G.scrollEventsToIgnore--},500))};var lK$=function(G){this.element=G;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
lK$.prototype.showFeedbackDialog=function(G,B,F,D){var u=UmG();if(!u)return!1;var R=fCS();R.productId=u;B&&(R.flow="submit",R.report={description:B});F&&(UmG()==="59"?R.callback=_.pH(function(){_.W$("userFeedbackEvent",{});F()}):R.callback=_.pH(F));
R.bucket=D||_.v5("GOOGLE_FEEDBACK_BUCKET","Other");qxD(R);G=Ed2(this,"GFEEDBACK",G);try{_.MO8(R,G)}catch(N){return _.Mn(N),!1}return!0};
lK$.prototype.showHelpDialog=function(G,B,F){var D=this,u=UmG();if(!u)return!1;var R={helpCenterPath:"/youtube",productData:Ed2(this,"GUIDED_HELP",F)};qxD(R);var N=fCS();N.context=G||R.productData.context||"default";N.defaultHelpArticleId=B;N.enableSendFeedback=!0;(_.Yf("gapi.load")||function(y,U){return U()})("client",function(){try{var y=kD8(u,R);
if(_.X("web_always_load_chat_support")&&!D.chatSupportLoaded)try{y.JSC$10285_loadChatSupport(N),D.chatSupportLoaded=!0}catch(U){}y.startHelp(N)}catch(U){_.Mn(U)}})};
var UmG=function(){var G=_.v5("GOOGLE_FEEDBACK_PRODUCT_ID");G||_.Mn(Error("ii"));return G},qxD=function(G){G&&(G.locale=_.X("kevlar_help_use_locale")?_.v5("INNERTUBE_CONTEXT_HL","en"):_.v5("HTML_LANG","en"))},Ed2=function(G,B,F){var D=G.productData;
delete D.origin;D.device=_.Qo();var u;a:{if(u=document.createElement("canvas")){var R=u.getContext("experimental-webgl",{stencil:!0});if(R){var N=R.getExtension("WEBGL_debug_renderer_info");if(N){u=R.getParameter(N.UNMASKED_RENDERER_WEBGL);break a}}if(R=u.getContext("webgl")){u=R.getParameter(R.RENDERER);break a}}u=null}D.gpu=u;D.isSDC=!!_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(u=_.v5("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.UK.extend(D,u);_.TzU(B,D);_.ICz(D);(G=_.Ia(G.element,"yt-get-autonav-pause-debug-state"))&&
G.length&&(D.autonav_pause_state=G[0]);G=_.DR();D.browser_resolution=G.width+"\u00d7"+G.height+"@"+(window.devicePixelRatio||1)+"x";F&&_.UK.extend(D,F);return D};
lK$.prototype.resetProductData=function(){this.productData={}};var hsA=function(G){this.feedbackManager=new lK$(G)};
hsA.prototype.showFeedbackDialog=function(G,B,F,D){return this.feedbackManager.showFeedbackDialog(G,B,F,D)};
hsA.prototype.showHelpDialog=function(G,B,F){return this.feedbackManager.showHelpDialog(G,B,F)};var KnN=function(){this.baseUrl="";this.aTag=document.createElement("a")},K8G=function(G,B,F){F=F===void 0?{}:F;
F.pbj||(F.pbj=1);F=_.zag(B,F);G.baseUrl&&F&&!_.dO(F)[1]&&!_.Tt(F)&&(B=G.baseUrl,CQ(B,"/")&&(B=B.slice(0,-1)),_.wU(F,"/")&&(F=F.slice(1)),F=B+"/"+F);Go(G.aTag,_.Z6(F||""));return G.aTag.href};
KnN.prototype.fetchData=function(G){return _.pJs(G)};
KnN.prototype.postData=function(G,B){var F={method:"POST"};if(B){for(var D=_.C(Object.keys(B)),u=D.next();!u.done;u=D.next()){u=u.value;var R=B[u];_.Zc(R)&&(B[u]=JSON.stringify(R))}F.postParams=B}return _.pJs(G,F)};
_.aDN=function(G,B,F,D,u){G=K8G(G,B,F);if(!G)throw D=Error("ji"),Object.assign(D,{params:B}),D;return _.pJs(G,u,D)};
KnN.prototype.requestDataForServiceEndpoint=function(G,B){if(_.Q(G,_.cOS))return this.fetchData("/getAccountSwitcherEndpoint");B=B||{};var F=_.Q(G,Pxt);F?B.se=F.base64EncodedServiceEndpoint:B.sej=JSON.stringify(G);(F=_.qW())&&_.X("enable_service_ajax_csn")&&(B.csn=F);B.theme=_.rK();_.Q(G,dwQ)&&_.v5("DELEGATION_CONTEXT")&&(B.delegation_context=JSON.stringify(_.v5("DELEGATION_CONTEXT")));F=null;for(var D in G)if(CQ(D,"Endpoint")||CQ(D,"Command")){F=D;break}if(!F){var u=Error("ki");Object.assign(u,{params:G});
_.OhU(u,"WARNING");return new _.DS(function(N,y){y(u)})}D={name:F};
var R;(F=(R=_.Q(G,_.sw))==null?void 0:R.signal)&&(D.signal=F);(R=_.c5(window.location.href))&&R.internalcountrycode&&(D.internalcountrycode=R.internalcountrycode);R="/service_ajax";_.X("debug_forward_web_query_parameters")&&(R=_.tDJ(R,window.location.search));R=_.xi(R,D);G.clickTrackingParams&&_.V9(R,{itct:G.clickTrackingParams});return this.postData(R,B)};_.aKQ=new _.oV("GFEEDBACK_TOKEN");var mmQ;var XYD;var QoB;var jo2;var PB=function(){var G=_.p.apply(this,arguments)||this;G.compact=!1;G.dismissButtonDisabled=!1;G.shouldRenderReasonAsFormattedString=!_.X("web_player_error_message_reason_as_formatted_string_killswitch");return G};
_.r(PB,_.p);PB.prototype.computeHasIcon_=function(G){return!!G};
PB.prototype.isSignInIcon_=function(G){return G=="yt-icons:prompted_sign_in"};
PB.prototype.onDismissButtonClick=function(){var G=this,B=this.data.disableOnClick,F,D=(F=this.data.dismissButton)==null?void 0:F.buttonRenderer;B&&!this.dismissButtonDisabled&&D&&setTimeout(function(){G.dismissButtonDisabled=!0},0)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wYS.YtConditionalRendererBehavior),_.I("design:type",Object)],PB.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PB.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",Object)],PB.prototype,"icon_",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.I("design:type",Boolean)],PB.prototype,"hasIcon_",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.I("design:type",Boolean)],PB.prototype,"signInIcon_",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],PB.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],PB.prototype,"dismissButtonDisabled",void 0);
_.c([_.v({type:Boolean}),_.I("design:type",Object)],PB.prototype,"shouldRenderReasonAsFormattedString",void 0);_.c([_.ay({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],PB);
_.d(PB,"yt-player-error-message-renderer",function(){if(jo2===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;QoB===void 0&&(QoB=document.createElement("template"));var D=QoB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);jo2=G}G=jo2;return G},{mode:2});var LnH;var rlD;var Gh=function(){return _.p.apply(this,arguments)||this};
_.r(Gh,_.p);Gh.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Gh.prototype.computeIcon_=function(G){return G?"yt-icons:"+G.iconType.toLowerCase():"error_outline"};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Gh.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",Object)],Gh.prototype,"icon_",void 0);_.c([_.ay({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Gh);
_.d(Gh,"yt-player-kav-renderer",function(){if(rlD===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;LnH===void 0&&(LnH=document.createElement("template"));var D=LnH;F.call(B,D.content.cloneNode(!0),G.content.firstChild);rlD=G}G=rlD;return G},{mode:2});var gsg=_.vP(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.YN(_.Y(function(G){var B=_.W5("div"),F=_.C(_.qg(0,void 0,"jxh75d")),D=F.next().value,u=F.next().value;F=_.C(_.qg(null,void 0,"F5Zm8"));var R=F.next().value,N=F.next().value;_.$f(function(){Sog(B.value,u,N);B.value.scrollIntoView()});
F=sE6.bind(null,G.data,D);_.Iu("resize",function(){var y=R();if(D()===1&&y!==null){var U;(U=window.grecaptcha)==null||U.reset(y)}});
return _.l("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.l("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.l("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var y,U;return(y=G.data().accessibility)==null?void 0:(U=y.accessibilityData)==null?void 0:U.label}),_.l(_.Wd,{text:F,
className:_.tx("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.l("div",{el:B,class:"ytwPlayerCaptchaViewModelGridItem"})))},"wg"),"yt-player-captcha-view-model",{props:{data:_.oh}});var xdz=!1;_.WnA=_.Y(function(G){var B=G.data;return _.l("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.l(_.E,{cond:function(){return B().icon},
then:function(F){return _.l("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.l(_.vr,{data:F,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.l(_.E,{cond:function(){return B().title},
then:function(F){return _.l("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.l(_.Wd,{text:F}))}}),_.l(_.E,{cond:function(){return B().description},
then:function(F){return _.l("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.l(_.Wd,{text:F}))}}),_.l(_.uR,{data:function(){return B().primaryButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"interstitialViewModelFlexItem"})}}),_.l(_.uR,{data:function(){return B().secondaryButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"interstitialViewModelFlexItem"})}}))},"xg");
_.WnA.idomCompat=!0;var HIU=_.Y(function(G){var B=G.data;_.bv();return _.l("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.l("div",{class:"playerInterstitialRendererScrim"},_.l(_.uR,{data:function(){return B().content}},{interstitialViewModel:_.WnA})))},"yg");
HIU.idomCompat=!0;_.YN(HIU,"yt-player-interstitial-renderer",{props:{data:_.Hd}});var Bi=function(){var G=_.p.apply(this,arguments)||this;G.noBackground=!1;G.compact=!1;G.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return G};
_.r(Bi,_.p);Bi.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"}}}};
Bi.prototype.onUpdatePlayerErrorMessageCommand_=function(G){if(_.Q(G,yWU)){var B;if(G=(B=_.Q(G,yWU))==null?void 0:B.newPlayerErrorMessageRenderer)this.data=G}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Bi.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Bi.prototype,"status",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Bi.prototype,"noBackground",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Bi.prototype,"compact",void 0);_.c([_.ay({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Bi);
var ko$=_.tS()(Bi,"yt-playability-error-supported-renderers",function(){if(XYD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;mmQ===void 0&&(mmQ=document.createElement("template"));var D=mmQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);XYD=G}G=XYD;return G},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var OI$=$rJ("ytd-button-renderer");var PUg=void 0,Bj8=void 0;var DCz=new l87;var gN=new _.oV("ENTITY_STATE_TOKEN"),ip=new _.oV("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var es$=function(G){this.store=G;this.c3r=new _.ErT},t8a=function(G,B,F){var D,u;
if(!(u=((D=B.playabilityStatus)==null?void 0:D.status)!=="OK")){G=G.store;var R;u=B.offlineState&&((R=B.videoDetails)==null?0:R.videoId)?_.X("enable_pl_r_c_cd")?AWz(G.getState().entities,B.videoDetails.videoId):!!UvM(G.getState().entities,B.videoDetails.videoId):!1}if(u)return!0;u=CF6(B);if(u===1){if(_.X("ab_v_vid_sig")){var N,y=(N=B.videoDetails)==null?void 0:N.videoId;if(!y||!F||y!==F){var U;B=new _.Uf("282054944_vid",{wyq:F,ihb:(U=B.videoDetails)==null?void 0:U.videoId});_.k2(B)}}return!0}HF6=
0;var q,h;U=(y=B.auxiliaryUi)==null?void 0:(q=y.messageRenderers)==null?void 0:(h=q.bkaEnforcementMessageViewModel)==null?void 0:h.displayType;if(u!==3&&(U==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||U==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;U={reason:_.pR(_.G7("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.X("ks_something_wrong_learn_more")?qbI("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.pR(_.G7("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:_.pR("282054944")};$mZ(B,{playerErrorMessageRenderer:U});return!1},ZQ7=function(G,B){if(T_I(B)){_.Sw(1,!0);
var F=(F=T_I(B))&&_.GII()?F:void 0;F?($mZ(B,{enforcementMessageViewModel:F}),G.c3r.increment("IN_PLAYER"),_.Sw(5)):(G.c3r.increment("SKIP_DISPLAY"),_.Sw(2))}},$mZ=function(G,B){G.playabilityStatus=Object.assign({},G.playabilityStatus,{status:"ERROR",
errorScreen:B});G.videoDetails=void 0};
es$.prototype.handleResponse=function(G,B){if(G.playabilityStatus){var F,D,u,R=(B==null?void 0:(F=B.innerTubeRequest)==null?void 0:F.videoId)||(B==null?void 0:(D=B.innerTubeRequest)==null?void 0:(u=D.playerRequest)==null?void 0:u.videoId);t8a(this,G,R)&&ZQ7(this,G)}};
es$[ZA]=[gN];var IcT=new _.oV("ADBLOCK_DETECTION_SERVICE_TOKEN");var pz=function(G){this.xj7=G};
pz.prototype.bindInnertubeChallengeFetcher=function(G){this.xj7.bicf(G)};
pz.prototype.registerChallengeFetchedCallback=function(G){this.xj7.bcr(G)};
pz.prototype.getLatestChallengeResponse=function(){return this.xj7.blc()};var zsZ;zsZ=_.vP(["https://static.doubleclick.net/instream/ad_status.js"]);_.bIQ=_.W7(zsZ);var MlD;_.Fx=function(G,B,F){var D=this;this.network=G;this.options=B;this.networkStatusManager=F;this.jD=null;if(B.useBotguardEverywhere){var u=new _.tc;this.jD=u.promise;_.Fz.ytAtRC&&_.yH(_.Lu,function(){var R,N;return _.n(function(y){if(y.nextAddress==1){if(!_.Fz.ytAtRC)return y.return();R=VlQ(null);return y.yield(D.omm(R),2)}N=y.yieldResult;_.Fz.ytAtRC&&_.Fz.ytAtRC(JSON.stringify(N));_.di(y)})});
qil().then(function(R){var N,y,U,q;return _.n(function(h){if(h.nextAddress==1)return R.bindInnertubeChallengeFetcher(function(K){return D.omm(VlQ(K))}),h.yield(Ldl(),2);
N=h.yieldResult;y=R.getLatestChallengeResponse();U=y.challenge;if(!U)throw Error("mi");q={challenge:U,kJ:oG(U),vm:N,bgChallenge:new VL};u.resolve(q);R.registerChallengeFetchedCallback(function(K){K=K.challenge;if(!K)throw Error("ni");K={challenge:K,kJ:oG(K),vm:N,bgChallenge:new VL};D.jD=Promise.resolve(K)});
_.di(h)})})}else B.preload&&vd$(this,new Promise(function(R){_.mX(_.Lu,function(){R(odS(D))},0)}))};
MlD=function(G){var B={preload:!0,useBotguardEverywhere:!0},F=!1;if(typeof B==="boolean")var D={preload:B};else typeof B==="undefined"?D={preload:!0}:(D=B,F=!!B.f2C);B=F?void 0:new _.pu;_.Fx.instance=new _.Fx(G,D,B);return _.Fx.instance};
_.Fx.prototype.qb4=function(){var G=this;return _.n(function(B){return B.nextAddress==1?B.yield(Promise.race([G.jD,null]),2):B.return(!!B.yieldResult)})};
_.Fx.prototype.lzJ=function(G,B,F){var D=this,u,R,N;return _.n(function(y){D.jD===null&&vd$(D,odS(D));u=!1;R={};N=function(){var U,q,h,K,a;return _.n(function(m){switch(m.nextAddress){case 1:if(!D.options.z1a||!D.options.useBotguardEverywhere){m.jumpTo(2);break}return m.yield(UCQ(),3);case 3:return U=m.yieldResult,m.yield((q=U)==null?void 0:q.checkForRefresh(),2);case 2:return m.yield(D.jD,5);case 5:h=m.yieldResult;R.challenge=h.challenge;if(!h.vm){"c1a"in h.kJ&&(R.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
m.jumpTo(6);break}K=Object.assign({},{c:h.challenge,e:G},B);_.b5(m,7);u=!0;return m.yield(h.vm.snapshot({lC:K}),9);case 9:(a=m.yieldResult)?R.webResponse=a:R.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.oY(m,6);break;case 7:_.Al(m),R.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(G==="ENGAGEMENT_TYPE_PLAYBACK"){var L=h.kJ,W={};if(L.c6a){var e=Number(_.v5("DCLKSTAT",0));W.reportingStatus=String(Number(L.c)^(isNaN(e)?0:e))}L.c6b&&(W.broadSpectrumDetectionResult=String(Number(L.c)^Number(_.v5("CATSTAT",
0))));R.adblockReporting=W}return m.return(R)}})};
return y.return(Promise.race([N(),pYS(F,function(){var U=Object.assign({},R);u&&(U.error="ATTESTATION_ERROR_VM_TIMEOUT");return U})]))})};
var VlQ=function(G){var B={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(B.interpreterHash=G);return B},odS=function(G,B){B=B===void 0?0:B;
var F,D,u,R,N,y,U,q,h,K,a,m;return _.n(function(L){switch(L.nextAddress){case 1:F=VlQ(qft().yBI);if(_.X("att_fet_ks"))return _.b5(L,7),L.yield(G.omm(F),9);_.b5(L,4);return L.yield(Yx$(G,F),6);case 6:N=L.yieldResult;u=N.kuA;R=N.uZ6;D=N;_.oY(L,3);break;case 4:return _.Al(L),_.em(Error("oi`"+B)),AlS(G,864E5),L.return({challenge:"",kJ:{},vm:void 0,bgChallenge:void 0});case 9:D=L.yieldResult;if(!D)throw Error("pi");if(!D.challenge)throw Error("qi");u=D.challenge;R=oG(u);if("c1a"in R&&(!D.bgChallenge||
!D.bgChallenge.program))throw Error("ri");_.oY(L,3);break;case 7:y=_.Al(L);_.em(y);B++;if(B>=5)return _.em(Error("oi`"+B)),AlS(G,864E5),L.return({challenge:"",kJ:{},vm:void 0,bgChallenge:void 0});U=1E3*Math.pow(2,B-1)+Math.random()*1E3;return L.return(new Promise(function(W){_.mX(_.Lu,function(){W(odS(G,B))},U)}));
case 3:q=lQz(R);AlS(G,q*1E3);h=void 0;if(!("c1a"in R&&D.bgChallenge)){L.jumpTo(10);break}K=nOJ(D.bgChallenge);_.b5(L,11);return L.yield(hVq(qft(),K),13);case 13:_.oY(L,12);break;case 11:return a=_.Al(L),_.em(a),L.return({challenge:u,kJ:R,vm:h,bgChallenge:K});case 12:return _.b5(L,14),h=new _.Hp({challenge:K,kUX:{aM:"aGIf"}}),L.yield(h.boD,16);case 16:_.oY(L,10);break;case 14:m=_.Al(L),_.em(m),h=void 0;case 10:return L.return({challenge:u,kJ:R,vm:h,bgChallenge:K})}})},dmD=function(G,B){var F;
return _.n(function(D){if(D.nextAddress==1)return Mk(2),_.b5(D,2),D.yield(G.network.omm(B),4);if(D.nextAddress!=2)return(F=D.yieldResult)?F.challenge&&!F.bgChallenge?Mk(1):Mk(4):Mk(3),D.return(F);_.Al(D);Mk(3);return D.return(void 0)})};
_.Fx.prototype.omm=function(G){var B=this,F;return _.n(function(D){F=B.networkStatusManager;if(!F||F.isNetworkAvailable())return D.return(dmD(B,G));_.mb("att_pna",void 0,"attestation_challenge_fetch");return D.return(new Promise(function(u){F.listenOnce("publicytnetworkstatus-online",function(){dmD(B,G).then(u)})}))})};
var Jlz=function(G){if(!G)throw Error("pi");if(!G.challenge)throw Error("qi");var B=G.challenge,F=oG(B);if("c1a"in F&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("ri");return Object.assign({},G,{kuA:B,uZ6:F})},Yx$=function(G,B){var F,D,u,R,N;
return _.n(function(y){switch(y.nextAddress){case 1:F=void 0,D=0,u={};case 2:if(!(D<5)){y.jumpTo(4);break}if(!(D>0)){y.jumpTo(5);break}u.sF6=1E3*Math.pow(2,D-1)+Math.random()*1E3;return y.yield(new Promise(function(U){return function(q){_.mX(_.Lu,function(){q(void 0)},U.sF6)}}(u)),5);
case 5:return _.b5(y,7),y.yield(G.omm(B),9);case 9:return R=y.yieldResult,y.return(Jlz(R));case 7:F=N=_.Al(y),N instanceof Error&&_.em(N);case 8:D++;u={sF6:void 0};y.jumpTo(2);break;case 4:throw F;}})},vd$=function(G,B){G.jD=B},cl$=function(G){var B,F,D;
return _.n(function(u){if(u.nextAddress==1)return u.yield(Promise.race([G.jD,null]),2);B=u.yieldResult;var R=odS(G);G.jD=R;(F=B)==null||(D=F.vm)==null||D.dispose();_.di(u)})},AlS=function(G,B){var F=Date.now()+B,D=function(){var u;
return _.n(function(R){u=F-Date.now();return u<1E3?R.yield(cl$(G),0):(_.mX(_.Lu,D,Math.min(u,6E4)),R.jumpTo(0))})};
D()},pYS=function(G,B){return new Promise(function(F){_.mX(_.Lu,function(){F(B())},G)})};var TiD=function(){};
TiD.prototype.processContext=function(G){var B=_.Fx.instance;if(!B)return _.$Z();var F=XqM(G);return F?new e0(B.lzJ(F,KIc(G),500).then(function(D){var u;(G==null?0:(u=G.innerTubeRequest)==null?0:u.context)||(G.innerTubeRequest.context={});u=G.innerTubeRequest.context;u.request||(u.request={});u.request.attestationResponseData=D})):_.$Z()};var IKD=function(G){this.innertubeTransportService=G};
IKD.prototype.omm=function(G){_.mb("att_fsr",void 0,"attestation_challenge_fetch");return _.rB(this.innertubeTransportService,G,_.v2(_.moq)).then(function(B){_.mb("att_frr",void 0,"attestation_challenge_fetch");return B})};_.fKH=function(G){this.innertubeTransportService=G};var tlZ=new _.oV("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var ZIS=function(){},SxH=function(G,B,F,D,u){var R=_.v5("YPC_MB_URL");
_.R16(R).then(function(){gdN(R,G,B,F,D,u)})},gdN=function(G,B,F,D,u,R){try{var N=_.Tf.payments.business.integration,y=_.Tf.payments.business.integration.Style.create().withMaterialDesignStyle(),U=N.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.X("enable_window_constrained_buy_flow_dialog")&&(U=U.usingPopupStyle("windowConstrained"));R&&(U=U.usingCloseCallback(R));var q=F?F:_.v5("YPC_GB_LANGUAGE"),h=_.v5("SESSION_INDEX");N.bootstrap.fromPaymentsUrl(G);N.bootstrap.asMashupMode(U).usingGaiaIndex(h).usingLocale(q).usingStyle(y).usingDefaultActivityStatusChangeHandler().inStandaloneContext(N.standaloneContextAuthId.forGaia()).purchaseManager(B,function(K){D&&D(K)}).load(void 0,u)}catch(K){throw u&&u(K),_.k2(K),K;
}};var so$=new _.oV("PURCHASE_MANAGER_TOKEN");var xmD=function(){var G=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return G.videos},
getContinuationsPresent:function(){return G.continuationsPresent},
setVideos:function(B){G.videos=B},
getRecommendedVideos:function(){return G.recommendedVideos},
setRecommendedVideos:function(B){G.recommendedVideos=B}}};
xmD.prototype.addVideos=function(G){G&&(this.videos=G.filter(function(B){return!!_.jWg(B)}).map(function(B){var F=_.jWg(B);
a:{var D;if(B.playlistVideoRenderer&&((D=B.playlistVideoRenderer)==null?0:D.voteSortTiebreaker))var u=B.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Q(B,Am)){var R;if(D=(u=_.Q(B,Am))==null?void 0:(R=u.playlistItemData)==null?void 0:R.voteSortTiebreaker){u=D;break a}}u=""}}return{itemId:F,videoId:_.WIJ(B),voteCount:_.Hy8(B),voteSortTiebreaker:u}}),this.continuationsPresent=!!_.Q(G[G.length-1],_.c0))};
var P5G=function(G,B){return G.videos.findIndex(function(F){return F.itemId===B})},GtH=function(G,B){return G.recommendedVideos.findIndex(function(F){return F.itemId===B})},BO$=function(G){G={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:G}}}}};_.te().resolve(_.Wr).resolveCommand(G)};var iS2=function(){xmD.apply(this,arguments)};
_.r(iS2,xmD);
var QOy=function(G,B,F,D){if(!G.parentElem)throw Error("wi");var u=P5G(G,B);u===-1&&(u=GtH(G,B),u=u!==-1?u+G.videos.length:-1);if(u===-1)throw Error("xi");var R=u>=G.videos.length?G.recommendedVideos[u-G.videos.length]:G.videos[u];R.voteCount=F;R.voteSortTiebreaker=Date.now().toString();u>=G.videos.length?G.recommendedVideos.splice(u-G.videos.length,1):G.videos.splice(u,1);var N=G.videos;for(var y=0,U=N.length-1;y<=U;){var q=Math.floor((y+U)/2);if(N[q].voteCount<R.voteCount)U=q-1;else if(N[q].voteCount>R.voteCount)y=
q+1;else{a:{var h=R.voteSortTiebreaker;var K=N[q].voteSortTiebreaker;if(h.length!==K.length)h=h.length>K.length;else{for(var a=0;a<h.length;a++){var m=h.charCodeAt(a),L=K.charCodeAt(a);if(m>L){h=!0;break a}if(m<L)break}h=!1}}h?U=q-1:y=q+1}}N=y;if(N===-1)throw Error("yi");G.videos.splice(N,0,R);u!==N&&F_Q(G,u,N,B,F,D)},F_Q=function(G,B,F,D,u,R){var N,y=(N=G.parentElem)==null?void 0:N.children,U=Math.min(B,F),q=Math.max(B,F);
if(y)for(N=U;N<=q;N++)y[N].style.viewTransitionName="item-"+String(N);document.startViewTransition(function(){if(G.parentElem){var h=G.parentElem.children;if(!(!h||B<0||B>=h.length||F<0||F>=h.length)){var K=h[B];if(K){K.remove();G.showRefreshPill=F>=G.videos.length-1&&G.continuationsPresent;if(!G.showRefreshPill){h=h[F]||null;var a;(a=G.parentElem)==null||a.insertBefore(K,h)}_.cZ(G.parentElem,"yt-update-video-data-voting-animation",{toIdx:F,itemId:D,newVoteCount:u,voteStatus:R,hideItem:G.showRefreshPill})}}}}).finished.then(function(){if(y)for(var h=
U;h<=q;h++)y[h].style.viewTransitionName="";
if(G.showRefreshPill)BO$(_.G7("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var K;if(K=h=(K=G.parentElem)==null?void 0:K.children[F])K=h.getBoundingClientRect(),h=K.bottom,K=!(K.top>=0&&h<=G.clientHeight);K&&(K=_.BT(B>F?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(B-F)),BO$(K))}})};var RD$=function(G,B){var F=this;G?this.innertubeTransportServicePromise=Promise.resolve(G):B&&(this.innertubeTransportServicePromise=B(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new dQ(3E3,function(D){return DPZ(F,D)},0);
this.validateMiniAppVideoIdRateLimiter=new dQ(3E3,function(D){return uR$(F,D)},1)},Mz2=function(G,B){G.JSC$17704_miniAppId=B;
G.reportMiniAppValueRateLimiter=new dQ(3E3,function(F){return DPZ(G,F)},0);
G.validateMiniAppVideoIdRateLimiter=new dQ(3E3,function(F){return uR$(G,F)},1)},YyH=function(G,B){var F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.reportMiniAppValueRateLimiter.call(B),2);F=D.yieldResult;return D.return([F,B])})},DPZ=function(G,B){var F,D,u,R,N,y,U;
return _.n(function(q){switch(q.nextAddress){case 1:return q.yield(G.innertubeTransportServicePromise,2);case 2:return F=q.yieldResult,D=_.v2(W4N),u=Date.now(),R={externalPostId:G.JSC$17704_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(u/1E3),nanos:Math.round(u%1E3*1E6)},intValue:""+B}},_.b5(q,3),q.yield(_.rB(F,R,D),5);case 5:N=q.yieldResult;_.oY(q,4);break;case 3:throw y=_.Al(q),y;case 4:if(N){if("error"in N&&N.error)throw N.error;if(N.errorMetadata)throw Error("zi`"+
N.errorMetadata.status);if(U=N.userStatResult)return q.return(U);throw Error("Ai");}throw Error("Bi");}})},d3$=function(G){var B,F,D,u,R;
_.n(function(N){switch(N.nextAddress){case 1:return N.yield(G.innertubeTransportServicePromise,2);case 2:return B=N.yieldResult,F=_.v2(W4N),D={externalPostId:G.JSC$17704_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.b5(N,3),N.yield(_.rB(B,D,F),5);case 5:u=N.yieldResult;_.oY(N,4);break;case 3:throw R=_.Al(N),R;case 4:if(u==null)throw Error("Bi");if("error"in u&&u.error)throw u.error;if(u.errorMetadata)throw Error("zi`"+u.errorMetadata.status);_.di(N)}})};
RD$.prototype.flush=function(){var G=this;return _.n(function(B){return B.nextAddress==1?B.yield(G.reportMiniAppValueRateLimiter.flush(),2):B.yield(G.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var AjB=function(G,B){return _.n(function(F){return F.nextAddress==1?F.yield(G.validateMiniAppVideoIdRateLimiter.call(B),2):F.return(F.yieldResult)})},uR$=function(G,B){var F,D,u,R,N,y;
return _.n(function(U){switch(U.nextAddress){case 1:return U.yield(G.innertubeTransportServicePromise,2);case 2:return F=U.yieldResult,D=_.v2(K4T),u={videoId:B},_.b5(U,3),U.yield(_.rB(F,u,D),5);case 5:R=U.yieldResult;_.oY(U,4);break;case 3:throw N=_.Al(U),N;case 4:if(R){if("error"in R&&R.error)throw R.error;if(R.errorMetadata)throw Error("zi`"+R.errorMetadata.status);if(y=R.playabilityStatus)return U.return(y.status);throw Error("Ci");}throw Error("Bi");}})};
RD$[ZA]=[_.fH(_.RF),_.fH(Pds)];var w7$=function(){this.clientData=new Map};
w7$.prototype.getData=function(G){return this.clientData.get(G)};var CMG=function(G){this.store=G};
CMG.prototype.handleResponse=function(G){(G=_.Q(G.frameworkUpdates,bN))&&_.Gx(G,this.store)};
CMG[ZA]=[_.Ep];var NOD=new _.oV("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var yCD,niN,lJD;_.Du=new _.oV("FLOW_STATE_MANAGER_TOKEN");yCD=function(){this.flowStates=new Map};
niN=function(G,B){G=_.C(G.flowStates.values());for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.flowRenderer.targetId===B)return F};
lJD=function(G,B){var F,D=((F=G.flowRenderer.steps)!=null?F:[]).filter(function(u){return!B.includes(_.Q(u,_.wr).stepId)});
G.flowRenderer.steps=D};var UPS=function(G){this.JSC$17728_flowStateManager=G};
_.r(UPS,kh);UPS.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y;return _.n(function(U){F=_.Q(G,Wis);u=(D=F)==null?void 0:D.stepIds;N=(R=F)==null?void 0:R.targetId;if(!u||!N)return U.return();y=niN(B.JSC$17728_flowStateManager,N);if(!y)return U.return();lJD(y,u);_.di(U)})};
var up=function(){UPS.apply(this,arguments)};
_.r(up,UPS);up[ZA]=[_.Du];var qhU=function(G,B){this.JSC$17734_reduxStore=G;this.JSC$17734_flowStateManager=B};
_.r(qhU,kh);
qhU.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L;return _.n(function(W){F=_.Q(G,_.Hgs);D=F.stepId;u=F.targetId;R=niN(B.JSC$17734_flowStateManager,u);y=(N=R)==null?void 0:N.flowRenderer;U=y.flowStateEntityKey;q=_.dN(B.JSC$17734_reduxStore.getState(),U);if(!q)return W.return();h=q.currentStepId;m=(a=(K=q)==null?void 0:K.stepIdStack)!=null?a:[];L=h===m[m.length-1]?D:h;B.JSC$17734_reduxStore.dispatch(_.mH("flowStateEntity",U,{currentStepId:D,stepIdStack:[L]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.di(W)})};
var Rd=function(){qhU.apply(this,arguments)};
_.r(Rd,qhU);Rd[ZA]=[_.Ep,_.Du];var EiS=function(G,B,F){this.JSC$17741_reduxStore=G;this.JSC$17741_flowStateManager=B;this.JSC$17741_commandHandler=F};
_.r(EiS,kh);
EiS.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W;return _.n(function(e){D=_.Q(G,_.kGa);u=D.targetId;R=niN(F.JSC$17741_flowStateManager,u);y=(N=R)==null?void 0:N.flowRenderer;U=y.flowStateEntityKey;q=_.dN(F.JSC$17741_reduxStore.getState(),U);a=[].concat(_.gi((K=(h=q)==null?void 0:h.stepIdStack)!=null?K:[]));m=a.pop();((L=q)==null?void 0:L.currentStepId)===m&&(m=a[a.length-1]);if(!m)return(W=D.onFirstStepCommand)&&F.JSC$17741_commandHandler.resolveCommand(W,B),e.return();
F.JSC$17741_reduxStore.dispatch(_.mH("flowStateEntity",U,{currentStepId:m,stepIdStack:a}));_.di(e)})};
var wX=function(){EiS.apply(this,arguments)};
_.r(wX,EiS);wX[ZA]=[_.Ep,_.Du,_.Wr];var hDZ=function(G,B){this.innertubeTransportService=G;this.JSC$17746_commandHandler=B};
_.r(hDZ,kh);hDZ.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1){D=_.Q(G,Ogv);if(!D)return U.return();_.b5(U,2);return U.yield(_.$F(F.innertubeTransportService,G),4)}if(U.nextAddress!=2){u=U.yieldResult;if(!u)return U.return();(R=u.updateFlowCommand)&&F.JSC$17746_commandHandler.resolveCommand(R,B);return _.oY(U,0)}_.Al(U);(y=(N=D)==null?void 0:N.onFailureCommand)&&F.JSC$17746_commandHandler.resolveCommand(y,B);_.di(U)})};
var C$=function(){hDZ.apply(this,arguments)};
_.r(C$,hDZ);C$[ZA]=[_.RF,_.Wr];var K_D=function(G,B){this.JSC$17752_flowStateManager=G;this.JSC$17752_commandHandler=B};
_.r(K_D,kh);
K_D.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N;return _.n(function(y){D=_.Q(G,_.$9P);u=D.targetId;R=niN(F.JSC$17752_flowStateManager,u);if(!R)return y.return(Promise.resolve());var U=R,q=(N=D.steps)!=null?N:[],h,K=(h=U.flowRenderer.steps)!=null?h:[];q=[].concat(_.gi(K),_.gi(q));U.flowRenderer.steps=q;D.flowContinuationCommand&&(R.flowRenderer.flowContinuationCommand=D.flowContinuationCommand);D.entityUpdateCommand&&F.JSC$17752_commandHandler.resolveCommand(D.entityUpdateCommand,B);
return y.return(Promise.resolve())})};
var Nr=function(){K_D.apply(this,arguments)};
_.r(Nr,K_D);Nr[ZA]=[_.Du,_.Wr];var aJA={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]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var mPD=new _.oV("ICON_SET_TOKEN"),X7U=new _.oV("ICON_URL_PROVIDER_TOKEN"),Qk$=new _.oV("PREFETCH_ICONS_TOKEN"),jkD=new _.oV("ICON_MAP_FN_TOKEN");var yk={},L_H=(yk.ACCESS_TIME="clock",yk.ACCOUNT_BOX=_.v5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",yk.ACCOUNT_BOX_CAIRO="person_account_cairo",yk.ACCOUNT_CIRCLE="person_circle",yk.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",yk.ACCOUNT_LINKED="account_link_success",yk.ACCOUNT_UNLINKED="account_link",yk.ADD_FRIEND="people",yk.ADD_MODERATOR="shield_add",yk.ADD_TO_LIBRARY="bookmark",yk.ADD_TO_PLAYLIST="add",yk.ADD_TO_QUEUE_TAIL="list_queue",yk.ADD_TO_REMOTE_QUEUE="list_music",
yk.ADD_TO_WATCH_LATER="clock",yk.ADD_VIDEO_LINK="film_strip_add",yk.ALERT_WARN_RED="alert_triangle",yk.ARROW_BACK="arrow_left",yk.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",yk.ARROW_DROP_DOWN="chevron_down",yk.ARROW_DROP_UP="chevron_up",yk.ARROW_FORWARD="arrow_right",yk.ARTIST="person_music",yk.AUDIOTRACK="audio",yk.AUTO_AWESOME="sparkle",yk.AVATAR_ANONYMOUS="person_circle",yk.AVATAR_LOGGED_OUT="person_circle",yk.BACK="arrow_left",yk.BAR_CHART="bar_graph",yk.BLOCK="slash_circle_left",
yk.BLOCK_USER="slash_circle_left",yk.BOOKMARK_BORDER="bookmark",yk.BREAKING_NEWS_ALT_1="article_alert",yk.BROADCAST_CAIRO="podcast_cairo",yk.BUG_REPORT="bug",yk.CAMERA_ALT="camera",yk.CAMPAIGN="megaphone",yk.CANCEL="x_circle",yk.CAPTIONS="closed_caption",yk.CAST_OUTLINE="chromecast",yk.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",yk.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",yk.CHAT="message_bubble_left",yk.CHAT_BUBBLE="message_bubble_empty",yk.CHAT_SPARK="spark_message_bubble_left",yk.CHECK_BOX_OUTLINE_BLANK=
"box_empty",yk.CHECK_CIRCLE_OUTLINE="check_circle",yk.CHECK_CIRCLE_THICK="check_circle",yk.CLARIFY="article_clarify",yk.CLOSED_CAPTION_SELECTED="closed_caption",yk.CLOSE="x_mark",yk.CLOUD_UPLOAD="cloud_arrow_up",yk.COLLAPSE="chevron_up",yk.COLLAPSE_CAIRO="chevron_up_cairo",yk.COLLECTION="layers",yk.COLOR_LENS="palette",yk.COMMENT="message_bubble_right",yk.CONSENT_SHIELD="person_shield",yk.CONTENT_CUT="scissors",yk.CONTENT_CUT_CAIRO="scissors_cairo",yk.COURSE=_.X("web_enable_course_icon_update")?"creator_academy":
"lightbulb",yk.COURSE_CAIRO=_.X("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",yk.CREATION_LIVE="radar_live",yk.CREATION_POST="box_pencil",yk.CREATION_UPLOAD="my_videos",yk.CREATION_UPLOAD_RED="upload",yk.CREATOR_METADATA_MONETIZATION="dollar_sign",yk.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",yk.CREATOR_STUDIO="youtube_studio",yk.DASHBOARD="grid_asymmetrical",yk.DELETE="trash_can",yk.DELETE_SWEEP="trash_can",yk.DESKTOP="laptop",yk.DISLIKE="thumb_down",yk.DISLIKE_SELECTED=
"thumb_down",yk.DISMISSAL="x_mark",yk.DISMISS_QUEUE="list_remove",yk.DONE_ALL="check_double",yk.DOWN_ARROW="arrow_down",yk.DO_NOT_DISTURB="slash_circle_left",yk.DRAFT="paper_corner_folded",yk.DRAG_HANDLE="bars_2",yk.EDIT="pencil",yk.EMOJI="face_very_happy",yk.EMOJI_FLAGS="flag",yk.EMOJI_OBJECTS="lightbulb",yk.EMOJI_PEOPLE="face_very_happy",yk.EMOJI_RECENT="clock",yk.EMPTY_HEART="heart",yk.EMPTY_LIKE="thumb_up",yk.ERROR_BLACK="alert_circle",yk.ERROR_OUTLINE="alert_circle",yk.EXIT_APP="arrow_in",yk.EXIT_TO_APP=
"arrow_in",yk.EXPAND="chevron_down",yk.EXPAND_ALL="chevron_expand",yk.EXPAND_CAIRO="chevron_down_cairo",yk.EXPAND_LESS="chevron_up",yk.EXPAND_MORE="chevron_down",yk.EXPLORE="compass",yk.EXPLORE_DESTINATION="compass",yk.EXTERNAL_LINK="open_new",yk.FAB_UPLOAD="upload",yk.FACE_HAPPY_OUTLINE="face_happy",yk.FACT_CHECK="article_check",yk.FASHION_LOGO="fashion",yk.FASHION_LOGO_CAIRO="fashion_cairo",yk.FAVORITE="heart",yk.FEEDBACK="message_bubble_alert",yk.FEEDBACK_CAIRO="message_bubble_alert_cairo",yk.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",yk.FILL_ARROW_SOLID_UP_16="arrow_solid_up",yk.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",yk.FILTER="menu_filter",yk.FIRST_PAGE="chevron_first",yk.FLAG="flag",yk.FULL_HEART="heart",yk.GAME_CONSOLE_DPAD="game_console_dpad",yk.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",yk.GAMING_LOGO="gaming",yk.GAMING_LOGO_CAIRO="gaming_cairo",yk.GO_TO_PAGE="arrow_right",yk.GROUPS="people_group",yk.HAPPY="face_happy",yk.HEALTH_AND_SAFETY="shield_plus",yk.HELP="question_circle",yk.HELP_CAIRO=
"question_circle_cairo",yk.HELP_OUTLINE="question_circle",yk.HIDE="slash_circle_left",yk.IMAGE="image",yk.INFINITY_ICON="infinity",yk.INFO="info_circle",yk.INFO_OUTLINE="info_circle",yk.INSERT_CHART="bar_graph_box_vertical",yk.INSERT_CHART_OUTLINED="bar_graph_box_vertical",yk.INSERT_PHOTO="image",yk.KEEP="pin",yk.KEEP_OFF="pin_off",yk.KEYBOARD="keyboard",yk.KEYBOARD_ARROW_DOWN="chevron_down",yk.KEYBOARD_ARROW_UP="chevron_up",yk.KIDS_BLOCK="slash_circle_left",yk.LANGUAGE="globe",yk.LAST_PAGE="chevron_last",
yk.LAUNCH="open_new",yk.LEARNING="lightbulb",yk.LEARNING_CAIRO="lightbulb_cairo",yk.LIBRARY_ADD=$Cg("library_add"),yk.LIBRARY_OUTLINE="library",yk.LIBRARY_REMOVE=$Cg(),yk.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",yk.LIKES_PLAYLIST="thumb_up",yk.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",yk.LIKE="thumb_up",yk.LIKE_SELECTED="thumb_up",yk.LIVE="radar_live",yk.LIVE_CAIRO="radar_live_cairo",yk.LIVE_UNLISTED="link",yk.LOCATION_ON="location_point",yk.LOCATION_PIN="location_point",yk.LOOP="arrow_repeat",yk.LOOP_ACTIVE=
"arrow_repeat",yk.LOOP_ONE="arrow_repeat_1",yk.LOOP_ONE_ACTIVE="arrow_repeat_1",yk.MEH="face_meh",yk.MEMBERS_ONLY_MODE_OFF="message_bubble_left",yk.MESSAGE="message_bubble_left",yk.MICROPHONE_ON="mic",yk.MIX="youtube_mix",yk.MONETIZATION_ON="dollar_sign_circle",yk.MONEY_FILL="dollar_sign_container",yk.MONEY_FILL_JPY="yen_sign_container",yk.MONEY_HEART="dollar_sign_heart",yk.MORE_HORIZ="overflow_horizontal",yk.MORE_VERT="overflow_vertical",yk.MUSIC="audio",yk.MUSIC_CAIRO="audio_cairo",yk.MUSIC_NOTE_SYMBOL=
"music",yk.MUSIC_SHUFFLE="arrow_shuffle",yk.MY_CHANNEL="person_circle",yk.MY_LOCATION="location_point",yk.NEWS_STORY="news",yk.NEXT="chevron_right",yk.NOTIFICATIONS="bell",yk.NOTIFICATIONS_ACTIVE="bell_on",yk.NOTIFICATIONS_CAIRO="bell_cairo",yk.NOTIFICATIONS_DONE_CHECKMARK="check",yk.NOTIFICATIONS_INBOX="bell",yk.NOTIFICATIONS_NONE="bell",yk.NOTIFICATIONS_OFF="bell_off",yk.NOT_INTERESTED="slash_circle_left",yk.OFFICIAL_ARTIST_BADGE="audio",yk.OFFLINE_CLOUD="cloud_off",yk.OFFLINE_DOWNLOAD="download",
yk.OFFLINE_DOWNLOAD_CAIRO="download_cairo",yk.OFFLINE_PAUSE="pause",yk.OPEN_IN_NEW="open_new",yk.OUTLINE_ADJUST="adjust",yk.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",yk.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",yk.OUTLINE_BAG="bag",yk.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",yk.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",yk.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",yk.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",yk.PAID="dollar_sign",yk.PAUSE_OUTLINED="pause",yk.PAYMENT=
"credit_card",yk.PERSON_RADAR_FILLED="person_radar",yk.PHONE_DOWNLOAD="mobile_download",yk.PLAYABLES_LOGO="tic_tac_toe",yk.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",yk.PLAYLISTS="list_play_arrow",yk.PLAYLISTS_CAIRO="list_play_arrow_cairo",yk.PLAYLIST_ADD=$Cg("list_add"),yk.PLAYLIST_ADD_CHECK=$Cg("list_check"),yk.PLAYLIST_PLAY="list_play_arrow",yk.PLAY_ALL="play_arrow",yk.PLAY_CIRCLE="play_arrow_circle",yk.PLAY_OUTLINED="play_arrow_circle",yk.PRIVACY_INFO="shield",yk.PRIVACY_PRIVATE="lock",yk.PRIVACY_PUBLIC=
"earth",yk.PRIVACY_UNLISTED="link",yk.PROMOTE="megaphone",yk.PURCHASES="price_tag",yk.PURCHASE_SUPER_CHAT="super_chat",yk.PURCHASE_SUPER_STICKER="super_sticker",yk.QUESTION_ANSWER="message_bubble_question",yk.QUEUE_PLAY_LAST="list_queue_last",yk.QUEUE_PLAY_NEXT="list_play_arrow",yk.REMIX_FILLED="youtube_shorts_remix",yk.REMOVE="bar_circle",yk.REMOVE_CIRCLE="bar_circle",yk.REMOVE_CIRCLE_OUTLINE="bar_circle",yk.REMOVE_DONE="check_double_off",yk.REMOVE_FROM_HISTORY="bar_circle",yk.REMOVE_FROM_PLAYLIST=
"bar_circle",yk.REMOVE_MODERATOR="shield_off",yk.REPLAY="arrow_circle",yk.REPLAY_10="skip_back_10",yk.REPORT_PROBLEM="alert_triangle",yk.SAD="face_sad",yk.SAVE_PLAYLIST="bookmark",yk.SCHEDULE="clock",yk.SCHOOL="creator_academy",yk.SCREEN_FULLSCREEN="screen_full",yk.SEARCH_HISTORY="arrow_time",yk.SELL="price_tag",yk.SETTINGS="gear",yk.SETTINGS_CAIRO="gear_cairo",yk.SETTINGS_LIGHT="gear",yk.SETTINGS_MATERIAL="gear",yk.SHARE_ARROW="share",yk.SHIELD_WITH_AVATAR="person_shield",yk.SHOPPING_BAG="bag",yk.SHOPPING_BAG_CAIRO=
"bag_cairo",yk.SHOPPING_CART="cart",yk.SHORTS_COMMENT="youtube_shorts_message_bubble_right",yk.SHORTS_DISLIKE="youtube_shorts_thumb_down",yk.SHORTS_LIKE="youtube_shorts_thumb_up",yk.SHORTS_SHARE="youtube_shorts_share",yk.SHUFFLE="arrow_shuffle",yk.SLOW_MODE_OFF="message_bubble_left",yk.SOCIAL="people",yk.SORT="menu_sort",yk.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",yk.SPEED_1X="1x",yk.SPEED_1_POINT_2X="1_point_2x",yk.SPEED_1_POINT_5X="1_point_5x",yk.SPEED_1_POINT_8X="1_point_8x",yk.SPEED_2X="2x",
yk.SPEED_POINT_2X="point_2x",yk.SPEED_POINT_8X="point_8x",yk.SPONSORSHIP_STAR="star_circle",yk.STAFF_PICK="spotlight",yk.START_DVR="add",yk.STAR_BORDER="star",yk.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",yk.STICKER_EMOTICON="face_happy",yk.STOP_DVR="stop",yk.SUBSCRIBE="youtube_logo_icon",yk.SUBSCRIBE_PLUS="add_cairo",yk.SUBSCRIPTION_MANAGER="gear",yk.SUPERVISOR_ACCOUNT="people",yk.SUPER_CHAT_FOR_GOOD="hands_heart",yk.SWAP_HORIZ="arrow_swap_horizontal",yk.SWITCH_ACCOUNTS="person_account",yk.TAB_ACCOUNT=
"person",yk.TAB_ACTIVITY="bell",yk.TAB_BOOKMARK="bookmark",yk.TAB_EXPLORE="compass",yk.TAB_HOME="home",yk.TAB_HOME_CAIRO="home_cairo",yk.TAB_INBOX="mail",yk.TAB_LIKED="thumb_up",yk.TAB_MUSIC_PREMIUM="youtube_music",yk.TAB_SHORTS="youtube_shorts",yk.TAB_SHORTS_CAIRO="youtube_shorts_cairo",yk.TAB_SUBSCRIPTIONS="subscriptions",yk.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",yk.TAB_TRENDING="fire",yk.TIMER="stopwatch",yk.TRAILER="youtube_originals",yk.TRENDING="fire",yk.TRENDING_CAIRO="fire_cairo",yk.TRENDING_DOWN=
"rating_down",yk.TRENDING_UP="rating_up",yk.TROPHY="trophy",yk.TROPHY_CELEBRATIONS="fireworks",yk.TUNE="adjust",yk.UNBLOCK_USER="bar_circle",yk.UNLIMITED="youtube_logo_icon",yk.UNPLUGGED_LIVE_GUIDE="radar_live",yk.UNPLUGGED_SPORTS="eye_off",yk.UPLOADS="library",yk.UP_ARROW="arrow_up",yk.VERTICAL_ALIGN_BOTTOM="download",yk.VERY_HAPPY="face_very_happy",yk.VERY_SAD="face_very_sad",yk.VIDEOGAME_ASSET="gaming",yk.VIDEOS="play_arrow_circle",yk.VIDEO_CALL="video_camera_add",yk.VIDEO_LIBRARY_WHITE="library",
yk.VIDEO_YOUTUBE="youtube_logo_icon",yk.VIEW_LIST="list_view",yk.VIEW_LIST_CAIRO="list_view_cairo",yk.VISIBILITY="eye",yk.VISIBILITY_OFF="eye_off",yk.VOLUME_MUTE="volume_off",yk.VOLUME_UP="volume_on",yk.WALLPAPER="image",yk.WARNING="alert_triangle",yk.WATCH_HISTORY="arrow_time",yk.WATCH_HISTORY_CAIRO="arrow_time_cairo",yk.WATCH_LATER="clock",yk.WATCH_LATER_CAIRO="clock_cairo",yk.WATCH_RELATED_MIX="youtube_mix",yk.WHAT_TO_WATCH="home",yk.YOUTUBE_MUSIC_MONOCHROME="youtube_music",yk.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",yk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",yk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",yk.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",yk.YT_OUTLINE_MUSIC_24="music",yk);var n$={},rCU=(n$.ACCESS_TIME="clock",n$.ACCOUNT_BOX="person_square",n$.ACCOUNT_BOX_CAIRO="person_square",n$.ACCOUNT_CIRCLE="person_circle",n$.ACCOUNT_CIRCLE_CAIRO="person_circle",n$.ACCOUNT_LINKED="account_link",n$.ACCOUNT_UNLINKED="account_link",n$.ADD_CIRCLE="add_circle",n$.ADD_CIRCLE_OUTLINE="add_circle",n$.ADD_FRIEND="person_child",n$.ADD_MODERATOR="shield_add",n$.ADD_TO_LIBRARY="bookmark",n$.ADD_TO_PLAYLIST="add",n$.ADD_TO_QUEUE_TAIL="queue",n$.ADD_TO_REMOTE_QUEUE="playlist_audio",n$.ADD_TO_WATCH_LATER=
"clock",n$.ADD_VIDEO_LINK="film_strip_add",n$.ADMIN_PANEL_SETTINGS="person_gear",n$.ALERT_WARN_RED="alert_triangle",n$.ALIGN_LEFT="text_align_left",n$.ARROWS_ALERT="arrow_split_alert",n$.ARROW_BACK="arrow_left",n$.ARROW_CIRCLE="arrow_counterclockwise",n$.ARROW_CIRCLE_PLAY="replay",n$.ARROW_CIRCLE_RIGHT="arrow_clockwise",n$.ARROW_DIAGONAL="arrow_up_left",n$.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",n$.ARROW_DROP_DOWN="triangle_down",n$.ARROW_DROP_UP="triangle_up",n$.ARROW_FORWARD="arrow_right",n$.ARROW_PAUSE=
"pause_history",n$.ARROW_UNDO="undo",n$.ARTICLE="text_page",n$.ARTICLE_ALERT="text_page_alert",n$.ARTICLE_CHECK="text_page_check",n$.ARTICLE_CLARIFY="text_page_info",n$.ARTIST="person_audio",n$.AUDIOTRACK="audio",n$.AUDIO_BADGE="audio_badge",n$.AUDIO_SURROUND="surround_sound",n$.AUTO_AWESOME="sparkles",n$.AVATAR_ANONYMOUS="person_circle",n$.AVATAR_LOGGED_OUT="person_circle",n$.BACK="arrow_left",n$.BAR_CHART="chart_bar",n$.BAR_CIRCLE="minus_circle",n$.BAR_HORIZONTAL="minus",n$.BLOCK="circle_slash",
n$.BLOCK_USER="circle_slash",n$.BOOKMARK_BORDER="bookmark",n$.BOX_OPEN_CHECK="quiz",n$.BOX_PENCIL="square_pencil",n$.BOX_STACK_3="square3_stack",n$.BREAKING_NEWS_ALT_1="text_page_alert",n$.BROADCAST="podcast",n$.BROADCAST_CAIRO="podcast",n$.BUG_REPORT="bug",n$.CAMERA_ALT="camera",n$.CAMPAIGN="megaphone",n$.CANCEL="x_circle",n$.CAPTIONS="closed_captions",n$.CAST_ICON="chromecast",n$.CAST_OUTLINE="chromecast",n$.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",n$.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
n$.CHAT="text_bubble",n$.CHAT_BUBBLE="bubble",n$.CHECK_BOX="check_square",n$.CHECK_BOX_OUTLINE_BLANK="square",n$.CHECK_CIRCLE_FILLED="check_circle",n$.CHECK_CIRCLE_OUTLINE="check_circle",n$.CHECK_CIRCLE_THICK="check_circle",n$.CHECK_DOUBLE="check_done",n$.CHECK_DOUBLE_OFF="check_done_slash",n$.CHEVRON_LEFT="chevron_left",n$.CHEVRON_RIGHT="chevron_right",n$.CHEVRON_RIGHT_CAIRO="chevron_right",n$.CIRCLES_OVERLAP="account_link",n$.CLAPPERBOARD_CAIRO="clapperboard",n$.CLARIFY="text_page_info",n$.CLOCK_ARROWS=
"clock_split",n$.CLOCK_ARROWS_ALERT="clock_split_alert",n$.CLOSED_CAPTION="closed_captions",n$.CLOSED_CAPTION_SELECTED="closed_captions",n$.CLOSE="x",n$.CLOUD_UPLOAD="cloud_arrow_up",n$.COLLAPSE="chevron_up",n$.COLLAPSE_CAIRO="chevron_up",n$.COLLECTION="square3d_stack",n$.COLOR_LENS="paint_palette",n$.COMMENT="text_bubble",n$.CONSENT_SHIELD="person_shield",n$.CONTENT_CUT="scissors",n$.CONTENT_CUT_CAIRO="scissors",n$.COURSE="graduation_cap",n$.COURSE_CAIRO="graduation_cap",n$.CREATION_LIVE="live",
n$.CREATION_POST="square_pencil",n$.CREATION_UPLOAD="video",n$.CREATION_UPLOAD_RED="upload",n$.CREATOR_ACADEMY="graduation_cap",n$.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",n$.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",n$.CREATOR_STUDIO="youtube_studio",n$.DARK_THEME="theme",n$.DELETE="trash_can",n$.DELETE_SWEEP="trash_can",n$.DESKTOP="laptop",n$.DISLIKE="thumb_down",n$.DISLIKE_SELECTED="thumb_down",n$.DISMISSAL="x",n$.DISMISS_QUEUE="playlist_x",n$.DOGFOOD="pawprint",n$.DOLLAR_SIGN=
"dollar_sign_circle",n$.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",n$.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",n$.DOWN_ARROW="arrow_down",n$.DO_NOT_DISTURB="circle_slash",n$.DRAFT="document",n$.DRAG_HANDLE="equal",n$.EARTH="globe",n$.EDIT="pencil",n$.EMOJI="face_very_happy",n$.EMOJI_FLAGS="flag",n$.EMOJI_OBJECTS="lightbulb",n$.EMOJI_PEOPLE="face_very_happy",n$.EMOJI_RECENT="clock",n$.EMPTY_HEART="heart",n$.EMPTY_LIKE="thumb_up",n$.ERROR_BLACK="alert_circle",n$.ERROR_OUTLINE="alert_circle",n$.ERROR_WHITE=
"alert_circle",n$.EXIT_APP="arrow_in",n$.EXIT_TO_APP="arrow_in",n$.EXPAND="chevron_down",n$.EXPAND_ALL="chevron_expand",n$.EXPAND_CAIRO="chevron_down",n$.EXPAND_LESS="chevron_up",n$.EXPAND_MORE="chevron_down",n$.EXPLORE="compass",n$.EXPLORE_DESTINATION="compass",n$.EXTERNAL_LINK="arrow_up_right",n$.EYE_OFF="eye_slash",n$.FAB_UPLOAD="upload",n$.FACE_HAPPY_OUTLINE="face_happy",n$.FACE_MEH="face_neutral",n$.FACT_CHECK="text_page_check",n$.FASHION_LOGO="fashion",n$.FASHION_LOGO_CAIRO="fashion",n$.FAVORITE=
"thumb_up",n$.FEEDBACK="alert_bubble",n$.FEEDBACK_CAIRO="alert_bubble",n$.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",n$.FILL_ARROW_SOLID_UP_16="arrow_solid_up",n$.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",n$.FIRST_PAGE="chevron_left_end",n$.FLAG_CAIRO="flag",n$.FLASH_OFF="flash_slash",n$.FLASH_ON="flash",n$.FULL_HEART="heart",n$.GAMING_LOGO="gaming",n$.GAMING_LOGO_CAIRO="gaming",n$.GO_TO_PAGE="arrow_right",n$.GRID_ASYMMETRICAL="dashboard",n$.GROUPS="person3",n$.HAND_SWIPE_LEFT="gesture_swipe_left",
n$.HAND_SWIPE_RIGHT="gesture_swipe_right",n$.HAPPY="face_happy",n$.HEALTH_AND_SAFETY="shield_health",n$.HEART_BOX="heart_cube",n$.HELP="help_circle",n$.HELP_CAIRO="help_circle",n$.HELP_OUTLINE="help_circle",n$.HIDE="circle_slash",n$.INCOGNITO_CAIRO="incognito",n$.INFINITY_ICON="infinity",n$.INFO="info_circle",n$.INFO_OUTLINE="info_circle",n$.INSERT_CHART="chart_bar_square",n$.INSERT_CHART_OUTLINED="chart_bar_square",n$.INSERT_PHOTO="image",n$.KEEP="pin",n$.KEEP_OFF="pin_slash",n$.KEYBOARD="keyboard",
n$.KEYBOARD_ARROW_DOWN="chevron_down",n$.KEYBOARD_ARROW_UP="chevron_up",n$.KIDS_BLOCK="circle_slash",n$.LANGUAGE="globe",n$.LAST_PAGE="chevron_right_end",n$.LAUNCH="arrow_up_right",n$.LEARNING="lightbulb",n$.LEARNING_CAIRO="lightbulb",n$.LIBRARY_ADD="bookmark",n$.LIBRARY_IMAGE="image_stack",n$.LIBRARY_MUSIC="audio_square_stack",n$.LIBRARY_OUTLINE="play_square_stack",n$.LIBRARY_REMOVE="bookmark",n$.LIBRARY_SAVED="check_square_stack",n$.LIKES_PLAYLIST="thumb_up",n$.LIKES_PLAYLIST_CAIRO="thumb_up",n$.LIKE=
"thumb_up",n$.LIKE_SELECTED="thumb_up",n$.LIST_QUEUE="queue",n$.LIVE_CAIRO="live",n$.LIVE_UNLISTED="link",n$.LOCATION_ON="location_pin",n$.LOCATION_PIN="location_pin",n$.LOCATION_POINT="location_pin",n$.LOOP="repeat",n$.LOOP_ACTIVE="repeat",n$.LOOP_ONE="repeat1",n$.LOOP_ONE_ACTIVE="repeat1",n$.MEET="google_meet",n$.MEH="face_neutral",n$.MEMBERSHIPS="memberships",n$.MEMBERS_ONLY_MODE_OFF="text_bubble",n$.MENU_FILTER="filter",n$.MESSAGE="text_bubble",n$.MESSAGE_BUBBLE_GEAR="bubble_gear",n$.MESSAGE_BUBBLE_LEFT=
"text_bubble",n$.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",n$.MESSAGE_BUBBLE_OVERLAP="bubble_stack",n$.MESSAGE_BUBBLE_QUESTION="help_bubble",n$.MICROPHONE_ON="mic",n$.MONETIZATION_ON="dollar_sign_circle",n$.MONEY_FILL="dollar_sign_rectangle",n$.MONEY_FILL_JPY="yen_sign_rectangle",n$.MONEY_HAND="dollar_sign_circle_hand",n$.MONEY_HEART="dollar_sign_heart",n$.MOON_Z="sleep_timer",n$.MORE_HORIZ="overflow_horizontal",n$.MORE_VERT="overflow_vertical",n$.MUSIC="audio",n$.MUSIC_CAIRO="audio",n$.MUSIC_EXPLICIT_BADGE=
"explicit",n$.MUSIC_NEW_RELEASE="audio_badge",n$.MUSIC_NOTE_SYMBOL="audio",n$.MUSIC_SCISSORS="audio_scissors",n$.MUSIC_SHUFFLE="shuffle",n$.MY_CHANNEL="person_circle",n$.MY_LOCATION="location_pin",n$.MY_VIDEOS="video",n$.MY_VIDEOS_CAIRO="video",n$.NEWS_CAIRO="news",n$.NEWS_STORY="news",n$.NEXT="chevron_right",n$.NOTE_ADD="bubble_pencil",n$.NOTIFICATIONS="bell",n$.NOTIFICATIONS_ACTIVE="bell_waves",n$.NOTIFICATIONS_CAIRO="bell",n$.NOTIFICATIONS_DONE_CHECKMARK="check",n$.NOTIFICATIONS_INBOX="bell",n$.NOTIFICATIONS_NONE=
"bell",n$.NOTIFICATIONS_OFF="bell_slash",n$.NOT_INTERESTED="circle_slash",n$.OFFICIAL_ARTIST_BADGE="audio",n$.OFFLINE_CLOUD="cloud_slash",n$.OFFLINE_DOWNLOAD="download",n$.OFFLINE_DOWNLOAD_CAIRO="download",n$.OFFLINE_PAUSE="pause",n$.OPEN_IN_NEW="arrow_up_right",n$.OUTLINE_ADJUST="adjust",n$.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",n$.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",n$.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",n$.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",n$.OUTLINE_BAG="bag",n$.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",n$.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",n$.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",n$.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",n$.PAID="dollar_sign_circle",n$.PAUSE_OUTLINED="pause",n$.PAYMENT="credit_card",n$.PEOPLE="person_child",n$.PEOPLE_2="person2_rectangle",n$.PEOPLE_GROUP="person3",n$.PEOPLE_NOTE="bubble_asterisk",n$.PERSON_2="person2",n$.PERSON_ACCOUNT="person_square_stack",n$.PERSON_MINUS="person_x",n$.PERSON_MUSIC="person_audio",n$.PERSON_RADAR="person_waves",
n$.PERSON_RADAR_FILLED="person_waves",n$.PERSON_SETTING="person_gear",n$.PHONE="phone",n$.PHONE_DOWNLOAD="mobile_arrow_down",n$.PICTURE_IN_PICTURE="picture_in_picture",n$.PLAYABLES_LOGO="playables",n$.PLAYABLES_LOGO_CAIRO="playables",n$.PLAYLISTS="playlist",n$.PLAYLISTS_CAIRO="playlist",n$.PLAYLIST_ADD_CHECK="bookmark",n$.PLAY_ALL="play",n$.PLAY_ARROW="play",n$.PLAY_ARROW_CIRCLE="play_circle",n$.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",n$.PLAY_CIRCLE="play_circle",n$.PLAY_OUTLINED="play_circle",
n$.PODCAST_ADD="podcast_add",n$.PODCAST_CHECK="podcast_check",n$.PRIVACY_INFO="shield_x",n$.PRIVACY_PRIVATE="lock",n$.PRIVACY_PUBLIC="globe",n$.PRIVACY_UNLISTED="link",n$.PROMOTE="megaphone",n$.PURCHASES="price_tag",n$.PURCHASE_SUPER_CHAT="super_chat",n$.PURCHASE_SUPER_STICKER="super_sticker",n$.QUESTION_ANSWER="help_bubble",n$.QUESTION_CIRCLE="help_circle",n$.QUEUE_PLAY_LAST="queue_last",n$.QUEUE_PLAY_NEXT="queue_next",n$.QUOTATION_MARK="quote",n$.RADAR_LIVE="live",n$.REMOVE="minus_circle",n$.REMOVE_CIRCLE=
"minus_circle",n$.REMOVE_CIRCLE_OUTLINE="minus_circle",n$.REMOVE_FROM_HISTORY="minus_circle",n$.REMOVE_FROM_PLAYLIST="minus_circle",n$.REMOVE_MODERATOR="shield_slash",n$.REPLAY="arrow_counterclockwise",n$.REPLAY_10="skip10_back",n$.REPLAY_ARROW="replay",n$.REPORT_PROBLEM="alert_triangle",n$.RSS_OFF="rss_slash",n$.SAD="face_sad",n$.SAVE_PLAYLIST="bookmark",n$.SCHEDULE="clock",n$.SCHOOL="graduation_cap",n$.SCREEN_DEFAULT="player_default",n$.SCREEN_FULLSCREEN="player_full_enter",n$.SCREEN_LIGHT="ambient_mode",
n$.SCREEN_ROTATION="rotate_portrait",n$.SCREEN_SWITCH="player_switch",n$.SCREEN_THEATRE="player_theater",n$.SEARCH_CAIRO="search",n$.SEARCH_HISTORY="history",n$.SELL="price_tag",n$.SETTINGS="gear",n$.SETTINGS_CAIRO="gear",n$.SETTINGS_LIGHT="gear",n$.SETTINGS_MATERIAL="gear",n$.SETTINGS_REMOTE="remote_waves",n$.SHARE="share",n$.SHARE_ARROW="share",n$.SHARE_CAIRO="share",n$.SHIELD="shield_x",n$.SHIELD_EMPTY="shield",n$.SHIELD_OFF="shield_slash",n$.SHIELD_WITH_AVATAR="person_shield",n$.SHOPPING_BAG=
"bag",n$.SHOPPING_BAG_CAIRO="bag",n$.SHOPPING_CART="cart",n$.SHORTS_COMMENT="text_bubble",n$.SHORTS_DISLIKE="thumb_down",n$.SHORTS_LIKE="thumb_up",n$.SHORTS_SHARE="share",n$.SKIP_FORWARD_30="skip30_forward",n$.SLASH_CIRCLE_LEFT="circle_slash",n$.SLASH_CIRCLE_RIGHT="circle_slash",n$.SLOW_MODE="bubble_slow",n$.SLOW_MODE_OFF="text_bubble",n$.SOCIAL="person_child",n$.SPARKLE="sparkles",n$.SPARK_IMAGE="image_spark",n$.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",n$.SPARK_PENCIL="pencil_spark",n$.SPARK_RADAR=
"spark_waves",n$.SPARK_VIDEO="video_spark",n$.SPEAKER_GROUP="speaker_stack",n$.SPEAKER_OFF="speaker_slash",n$.SPEED_1X="n1x",n$.SPEED_1_POINT_2X="n1point2x",n$.SPEED_1_POINT_5X="n1point5x",n$.SPEED_1_POINT_8X="n1point8x",n$.SPEED_2X="n2x",n$.SPONSORSHIP_STAR="star_circle",n$.SPORTS="basketball",n$.SPOTLIGHT="spotlight",n$.STAFF_PICK="spotlight",n$.START_DVR="add",n$.STAR_BORDER="star",n$.STAR_CIRCLE_RIBBON="memberships_gift",n$.STAR_HALF="star_full_half",n$.STAR_SHOOTING="hype",n$.STICKER="sticker",
n$.STICKER_EMOTICON="face_happy",n$.STOP_DVR="stop",n$.SUBSCRIBE="youtube",n$.SUBSCRIBE_PLUS="add",n$.SUBSCRIPTION_MANAGER="gear",n$.SUPERSTAR="super_star",n$.SUPERVISOR_ACCOUNT="person_child",n$.SUPER_CHAT_FOR_GOOD="hands_heart",n$.SWAP_HORIZ="arrow_swap_horizontal",n$.SWITCH_ACCOUNTS="person_square_stack",n$.TAB_ACCOUNT="person",n$.TAB_ACTIVITY="bell",n$.TAB_BOOKMARK="bookmark",n$.TAB_EXPLORE="compass",n$.TAB_HOME="home",n$.TAB_HOME_CAIRO="home",n$.TAB_INBOX="mail",n$.TAB_LIKED="thumb_up",n$.TAB_MUSIC_PREMIUM=
"youtube_music",n$.TAB_SHORTS="shorts",n$.TAB_SHORTS_CAIRO="shorts",n$.TAB_SUBSCRIPTIONS="subscriptions",n$.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",n$.TAB_TRENDING="trending",n$.TARGET="target",n$.TARGET_ADD="target_add",n$.TEMPLATE_ADD="template_add",n$.TEXT="font",n$.TICKET_STAR="star_ticket",n$.TIMER="stopwatch",n$.TRENDING_CAIRO="trending",n$.TRENDING_DOWN="arrow_trend_down",n$.TRENDING_UP="arrow_trend_up",n$.TROPHY_CAIRO="trophy",n$.TROPHY_CELEBRATIONS="fireworks",n$.TROPHY_STAR="star_trophy",
n$.TUNE="adjust",n$.TV_OFF="tv_slash",n$.UNBLOCK_USER="minus_circle",n$.UNFAVORITE="thumb_down",n$.UNLIMITED="youtube",n$.UNPLUGGED_LIVE_GUIDE="live",n$.UNPLUGGED_SPORTS="eye_slash",n$.UPLOADS="play_square_stack",n$.UP_ARROW="arrow_up",n$.VERTICAL_ALIGN_BOTTOM="chevron_down_end",n$.VERTICAL_ALIGN_TOP="chevron_up_end",n$.VERY_HAPPY="face_very_happy",n$.VERY_SAD="face_very_sad",n$.VIDEOS="play_circle",n$.VIDEO_CALL="video_camera_add",n$.VIDEO_LIBRARY_WHITE="play_square_stack",n$.VIDEO_QUALITY_4K="n4k",
n$.VIDEO_QUALITY_8K="n8k",n$.VIDEO_YOUTUBE="youtube",n$.VIEW_LIST_CAIRO="view_list",n$.VIEW_MODULE="view_column3_row2",n$.VISIBILITY="eye",n$.VISIBILITY_OFF="eye_slash",n$.VOLUME_DOWN="volume_min",n$.VOLUME_MUTE="volume_mute",n$.VOLUME_OFF="volume_mute",n$.VOLUME_STABLE="stable_volume",n$.VOLUME_UP="volume_max",n$.WALLPAPER="image",n$.WARNING="alert_triangle",n$.WATCH_HISTORY="history",n$.WATCH_HISTORY_CAIRO="history",n$.WATCH_LATER="clock",n$.WATCH_LATER_CAIRO="clock",n$.WATCH_RELATED_MIX="mix",
n$.WHAT_TO_WATCH="home",n$.YOUTUBE_LINKED_TV="tv_mobile",n$.YOUTUBE_MUSIC_MONOCHROME="youtube_music",n$.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",n$.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",n$.YOUTUBE_SHORTS_ARROW_UP="arrow_up",n$.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",n$.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",n$.YOUTUBE_SHORTS_OUTLINE_24="shorts",n$.YT_OUTLINE_MUSIC_24="audio",n$);var W_z={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var HSz={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,
24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,
1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,
2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],
mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,3,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,
1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],
[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,
24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,
1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],
skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var ktQ={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},lp=function(G){this.iconUrlProvider=G};
lp.prototype.resolveIcon=function(G,B){var F=ktQ[G.iconName.toUpperCase()];F&&(G.iconName=F);var D=G.iconName;D=D.replace(/-/g,"_");G=Object.assign({},G,{iconName:this.mapIconTypeToStandardName(D,!!F)||D.toLowerCase()});if(_.X("enable_web_delhi_icons")||F){var u;return Oy6(HSz,G,((u=this.iconUrlProvider)==null?void 0:u.getYtStandardUrl)||by6,B)}var R;return Oy6(W_z,G,((R=this.iconUrlProvider)==null?void 0:R.getYtStandardUrl)||zKs,B)};
lp.prototype.mapIconTypeToStandardName=function(G,B){return _.X("enable_web_delhi_icons")||B?rCU[G.toUpperCase()]:L_H[G.toUpperCase()]};
lp[ZA]=[_.fH(X7U)];var OSA=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),eD$=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),$P$=function(G){this.urlProvider=this.iconUrlProvider=G};
_.r($P$,lp);
$P$.prototype.resolveIcon=function(G,B){G.iconName==="youtube_logo"&&(G.iconName="yt-logo-updated");if(G.iconName==="youtube_premium_logo"||G.iconName==="youtube_red_logo")G.iconName="yt-logo-red-updated";var F=Object.assign({},G);G.iconName==="menu"&&(_.X("enable_web_delhi_icons")||(F.iconName="bars_3"),F.iconStyle="youtube_outline");G.iconSetName==="socialNetworksRound"&&(G.iconName==="mail"&&(F.iconName="email"),G.iconName==="embed"&&(F.iconSize=60));G.iconName==="more"&&(F.iconName="overflow_horizontal");
G.iconName==="fullscreen"&&(F.iconName="screen_full");G.iconName==="premium_standalone"&&(F.iconName="premium_standalone_cairo");_.X("enable_connect_icon_update_web")&&G.iconName==="account_linked"&&(F.iconName="circles_overlap_check",F.iconStyle="youtube_fill");_.X("enable_connect_icon_update_web")&&G.iconName==="account_unlinked"&&(F.iconName="circles_overlap",F.iconStyle="youtube_outline");OSA.has(G.iconName)&&(F.iconStyle="youtube_fill");if(_.X("enable_web_delhi_icons")){G.iconName==="playlist_add"&&
(F.iconName="bookmark");G.iconName==="offline_pin"&&(F.iconName="arrow_down_circle",F.iconStyle="youtube_fill");if(G.iconName==="circles_overlap_check"||F.iconName==="circles_overlap_check")F.iconName="account_link",F.iconStyle="youtube_fill";eD$.has(G.iconName)&&(F.iconName+="_updated")}G=Object.assign({},F,{iconName:(lp.prototype.mapIconTypeToStandardName.call(this,F.iconName)||F.iconName).toLowerCase()});var D;return(G=Oy6(aJA,G,((D=this.urlProvider)==null?void 0:D.getUrl)||V9g,B))?G:lp.prototype.resolveIcon.call(this,
F,B)};
$P$[ZA]=[_.fH(X7U)];_.zDS=1;var Uu=function(G,B){this.JSC$17774_commandHandler=G;this.innertubeTransportService=B};
_.r(Uu,kh);Uu.prototype.resolveCommand=function(G,B){var F=this,D,u,R;return _.n(function(N){return(D=_.Q(G,dUw))?N.return(bSU(F,D,(u=B)==null?void 0:(R=u.form)==null?void 0:R.element)):N.return()})};
var bSU=function(G,B,F){B={profileCardContext:B.profileCardContext,profileOwnerExternalChannelId:B.profileOwnerExternalChannelId};var D=_.v2(BEL);return _.rB(G.innertubeTransportService,B,D).then(function(u){if(!u)throw new _.Uf("GetProfileCard failed");if(u=u.popupCommand){G.JSC$17774_commandHandler.resolveCommand(u,{form:{element:F}});_.t9(_.Rh(),66557);u=u==null?void 0:u.clickTrackingParams;var R=_.Uw();u&&R&&_.Rh().graftServerVe(u,R)}})};
Uu[ZA]=[_.Wr,_.RF];var qr=function(){};
_.r(qr,kh);qr.prototype.resolveCommand=function(G){var B,F;return _.n(function(D){B=_.Q(G,S7P);if(!B)return D.return();F=Number(B.enableDelayedPacfLoggingTvMs);if(isNaN(F)){var u=Bh();EgL(u,B,0)}else EgL(Bh(),B,F);_.di(D)})};_.Eu=function(){};
_.r(_.Eu,kh);
_.Eu.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q;return _.n(function(h){D=_.Q(G,sVs);R=(u=B.form)==null?void 0:u.element;y=(N=R)==null?void 0:N.closest("ytd-enforcement-message-view-model");if(!D||!y)return h.return();F.allowAdsAction||(U=D.fundingChoiceInstructionPageUrl,F.allowAdsAction=new rb8(window,_.rg(U)));var K=F.allowAdsAction;K.wallElement=y;K.allowAdsPopup.style.setProperty("display","flex","important");var a=K.scrollManager;a.isScrollingEnabled&&(a.originalBodyOverflow=a.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow,
a.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow="hidden",a.isScrollingEnabled=!1);K.wallElement.style.setProperty("display","none","important");cos(K.accessibilityManager,K.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((q=F.allowAdsAction.allowAdsPopup)&&q instanceof HTMLElement)for(K=_.C(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),a=K.next();!a.done;a=K.next()){var m=_.C(a.value);a=m.next().value;m=m.next().value;
q.style.setProperty(a,m)}_.di(h)})};
_.Eu.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var h6=function(){};
_.r(h6,kh);h6.prototype.resolveCommand=function(G){var B;return _.n(function(F){B=_.Q(G,C3w);if(!B)return F.return();ufJ(G);_.di(F)})};_.K$=new _.oV("AI_CHAT_CONTROLLER_TOKEN");var ad=function(G,B,F,D){this.JSC$17789_commandHandler=G;this.store=B;this.getPlayerCb=F;this.aiChatController=D};
_.r(ad,kh);ad.prototype.pageContext=function(){var G=_.OY.currentPageSubTypeSelector(this.store.getState()),B;return(B=this.aiChatController)==null?void 0:_.V5D(B,G)};
ad.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N;return _.n(function(y){F=_.Q(G,CwN);u=(D=F)==null?void 0:D.command;if(!u)return y.return();switch((N=F)==null?void 0:N.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var U="youchat-"+Date.now(),q;var h=String(Math.floor(((q=B.getPlayerCb())==null?void 0:q.getCurrentTime())||0)*1E3);R={inputComposerFormData:{clientMessageId:U,playerOffsetMs:h,pageContext:B.pageContext()}}}if(!R)return y.return();B.JSC$17789_commandHandler.resolveCommand(u,
{form:{formData:R}});_.di(y)})};
ad[ZA]=[_.Wr,_.Ep,GWs,_.fH(_.K$)];var vi$=new _.oV("SESSION_STORAGE");var m2=function(G){this.sessionStorage=G("conversations")};
_.r(m2,kh);m2.prototype.resolveCommand=function(G){var B=this,F;return _.n(function(D){F=_.Q(G,NL7);if(!F)return D.return();F.conversationId?B.sessionStorage.set("conversation_id",F.conversationId):B.sessionStorage.remove("conversation_id");_.di(D)})};
m2[ZA]=[vi$];var Xx=function(G){this.JSC$17801_commandHandler=G};
_.r(Xx,kh);
Xx.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1){F=_.Q(G,vRG);if((D=F)==null||!D.text||!navigator.clipboard)return h.return();_.b5(h,2);return h.yield(navigator.clipboard.writeText(F.text),4)}if(h.nextAddress!=2){if(!F.successActions||F.successActions.length===0)return h.return();u=_.C(F.successActions);for(R=u.next();!R.done;R=u.next())N=R.value,B.JSC$17801_commandHandler.resolveCommand(N);return _.oY(h,0)}_.Al(h);if(!F.failureActions||F.failureActions.length===
0)return h.return();y=_.C(F.failureActions);for(U=y.next();!U.done;U=y.next())q=U.value,B.JSC$17801_commandHandler.resolveCommand(q);_.di(h)})};
Xx[ZA]=[_.Wr];var Qk=function(G){this.JSC$17805_commandHandler=G};
_.r(Qk,kh);
Qk.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a;return _.n(function(m){switch(m.nextAddress){case 1:D=_.Q(G,EVL);if(!D)return m.return();_.b5(m,2);if(!D.imageBytes&&!D.imageUrl)throw Error("Di");if(!D.imageUrl){if(D.imageBytes){R=D.imageBytes;N=R.replace(/-/g,"+").replace(/_/g,"/");var L=pqQ(N);u=_.sy(L)}m.jumpTo(4);break}return m.yield(fetch(D.imageUrl),5);case 5:return y=m.yieldResult,m.yield(y.blob(),6);case 6:U=m.yieldResult,u=_.sy(U);case 4:K=(q=B)==null?void 0:(h=q.form)==
null?void 0:h.element;a=document.createElement("a");Go(a,u);K.appendChild(a);a.download="";a.click();K.removeChild(a);URL.revokeObjectURL(_.fe(u));D.successCommand&&F.JSC$17805_commandHandler.resolveCommand(D.successCommand);_.oY(m,0);break;case 2:_.Al(m),D.errorCommand&&F.JSC$17805_commandHandler.resolveCommand(D.errorCommand),_.di(m)}})};
Qk[ZA]=[_.Wr];var jJ=function(G){this.store=G};
_.r(jJ,kh);jJ.prototype.resolveCommand=function(G){var B=this,F,D,u;return _.n(function(R){D=(F=_.Q(G,_.yQq))==null?void 0:F.entityBatchUpdate;if(!D)return R.jumpTo(0);u=Object.assign({},D,{mutations:[].concat(_.gi(D.mutations||[]))});return R.yield(_.Gx(u,B.store),0)})};
jJ[ZA]=[gN];var oiG=function(G){this.JSC$17812_commandHandler=G;this.feedbackDialogMap=new Map};
oiG.prototype.openDialog=function(G,B){(G=this.feedbackDialogMap.get(G))&&this.JSC$17812_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:G}},B)};
oiG[ZA]=[_.Wr];var M5H=new _.oV("FEEDBACK_CONTROLLER_TOKEN");var L$=function(G,B,F,D){this.dispatch=G;this.controller=B;this.JSC$17815_commandHandler=F;this.innertubeTransportService=D};
_.r(L$,kh);
L$.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US;return _.n(function(aI){switch(aI.nextAddress){case 1:D=_.Q(G,_.QG);if(R=(u=D)==null?void 0:u.contentId)for(y=_.C(((N=D)==null?void 0:N.actions)||[]),U=y.next();!U.done;U=y.next())q=U.value,p7D(F,q,R);a=(h=B)==null?void 0:(K=h.form)==null?void 0:K.element;return _.X("wug_feedback_endpoint_use_its")?(W=new _.WI,W.endpoint=G,b=_.$F(F.innertubeTransportService,G,(e=B)==null?void 0:e.form),W.ajaxPromise=
b,_.cZ(a,"yt-service-request-sent",W),aI.yield(b,5)):aI.yield(_.fi(a,[G,{impression:(L=B)==null?void 0:L.disableClickTracking}]).catch(function(){}),4);
case 4:m=aI.yieldResult;aI.jumpTo(3);break;case 5:m=aI.yieldResult,_.cZ(a,"yt-service-request-completed",{data:m});case 3:A=((M=m)==null?void 0:(t=M.data)==null?void 0:t.feedbackResponses)||((T=m)==null?void 0:T.feedbackResponses);if((Z=A)==null?0:Z.length)(RI=(P=A[0])==null?void 0:P.followUpDialog)&&R&&(yo=F.controller)!=null&&yo.feedbackDialogMap.set(R,RI),(US=(hg=A[0])==null?void 0:hg.isThumbnailReporting)&&F.JSC$17815_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.di(aI)}})};
var p7D=function(G,B,F){var D=_.Q(B,_.gs);if(D){D=_.C(D.commands||[]);for(var u=D.next();!u.done;u=D.next())p7D(G,u.value,F)}_.Q(B,_.GV)&&G.dispatch(_.wC("commandEntity",Kx8(F),{key:F,command:B}));_.Q(B,ZBP)&&G.dispatch(_.wC("commandEntity",Kx8(F),{key:F,command:B}))};
L$[ZA]=[b$q,M5H,_.Wr,_.RF];var rX=function(G){this.controller=G};
_.r(rX,kh);rX.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N;return _.n(function(y){D=_.Q(G,_.v$);R=(u=D)==null?void 0:u.targetId;if(((N=D)==null?void 0:N.signal)!=="TELL_US_WHY"||!R)return y.return();F.controller.openDialog(R,B);_.di(y)})};
rX[ZA]=[M5H];var Wi=new _.oV("APP_STORE_TOKEN");var Hi=function(G){this.store=G};
_.r(Hi,kh);Hi.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q;return _.n(function(h){D=_.Q(G,plL);R=(u=D)==null?void 0:u.contentId;U=(N=B)==null?void 0:(y=N.form)==null?void 0:y.element;q=_.fi(U,[G]);R&&F.undo(R);return h.yield(q,0)})};
Hi.prototype.undo=function(G){this.store.dispatch(_.wC("commandEntity",Kx8(G),{key:G,command:void 0}))};
Hi[ZA]=[Wi];var k5=function(G){this.JSC$17827_commandHandler=G};
_.r(k5,kh);k5.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q;return _.n(function(h){F=_.Q(G,eTa);D=F.flowStateKey;u=F.validationFailureCommand;R=F.submitValidFormCommand;N=cw6(_.dN,[D||""]);y=_.Q(N,bg8);((U=y)==null?0:U.isValid)&&R&&B.JSC$17827_commandHandler.resolveCommand(R);((q=y)==null?0:q.isValid)||!u||B.JSC$17827_commandHandler.resolveCommand(u);_.di(h)})};
k5[ZA]=[_.Wr];var Ou=function(G){this.innertubeTransportService=G};
_.r(Ou,kh);Ou.prototype.resolveCommand=function(G,B){var F=this,D;return _.n(function(u){return u.yield(_.$F(F.innertubeTransportService,G,(D=B)==null?void 0:D.form).then(function(R){var N,y;B==null||(N=B.commandController)==null||(y=N.onSuccess)==null||y.call(N,G,R)},function(R){var N,y;
B==null||(N=B.commandController)==null||(y=N.onServerError)==null||y.call(N,G,R)}),0)})};
Ou[ZA]=[_.RF];var eJ=function(){};
_.r(eJ,kh);eJ.prototype.resolveCommand=function(G){var B,F,D,u;return _.n(function(R){if(B=_.Q(G,_.klL)){if(F=B.gtmId)D=_.v5("GL",""),_.uY(F,D);(u=B.gtmData)&&_.RS(u)}_.di(R)})};var $5=function(G,B,F){this.innertubeTransportService=G;this.JSC$17838_actionRouter=B;this.JSC$17838_screenManager=F};
_.r($5,kh);$5.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){F=_.Q(G,j6y);if(!F)return u.return();D=F.command;if(!D)return u.return();B.JSC$17838_actionRouter.triggerAction("yt-insert-rich-section-action",F);return u.yield(_.$F(B.innertubeTransportService,D,{disableCache:!0}).then(function(R){G.clickTrackingParams&&(R==null?0:R.trackingParams)&&B.JSC$17838_screenManager.graftServerVe(R.trackingParams,_.yX(G.clickTrackingParams))}),0)})};
$5[ZA]=[_.RF,o1,_.ux];AHg.bind(null,Ot);var YhH=AHg.bind(null,$48);JHU.bind(null,Ot);var ACQ=JHU.bind(null,$48);TjI.bind(null,Ot);var dPG=TjI.bind(null,$48);var zh=function(){};
_.r(zh,kh);
zh.prototype.resolveCommand=function(G){var B,F,D,u,R,N,y,U,q,h;return _.n(function(K){B=_.Q(G,CPG);if(!B)return K.return();D=((F=B.operations)==null?void 0:F.operations)||[];u=_.C(D);for(R=u.next();!R.done;R=u.next())if(N=R.value,N.insertItemSectionContent){var a=N.insertItemSectionContent,m=a.contents||[];a.insertByPositionInSection?YhH(a.insertByPositionInSection.sectionTargetId,m,a.insertByPositionInSection.position):a.insertByRelativePositionInSection&&a.insertByRelativePositionInSection.sectionTargetId&&a.insertByRelativePositionInSection.itemTargetId&&
ACQ(a.insertByRelativePositionInSection.sectionTargetId,a.insertByRelativePositionInSection.itemTargetId,m,a.insertByRelativePositionInSection.relativePosition)}else N.replaceSection?(a=N.replaceSection,m={},a.replaceByTargetId?m=a.replaceByTargetId:a.replaceByGroupId&&(m={targetId:a.replaceByGroupId.groupId,newContent:a.replaceByGroupId.newContent,undoKey:""}),m.newContent&&VBP(m.targetId,{continuationItems:[m.newContent]})):N.removeItem?(a=N.removeItem,a.removeByTargetId&&a.sectionTargetId&&dPG(a.sectionTargetId,
a.removeByTargetId.targetIds||[])):N.removeSection&&(N.removeSection.removeByTargetId?(y=void 0,JCD(((y=N.removeSection)==null?void 0:y.removeByTargetId.targetIds)||[])):N.removeSection.removeByGroupId&&(U=void 0,JCD(((U=N.removeSection)==null?void 0:U.removeByGroupId.groupIds)||[])));h=((q=B.operations)==null?void 0:q.scrollConfig)||{};cCU(h);_.di(K)})};
var JCD=function(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next())VBP(B.value,{continuationItems:[]})},cCU=function(G){if(G.scrollToItem){var B=G.scrollToItem.item||{},F=B.itemTargetId;
B=B.sectionTargetId;if(F&&B){var D=document.querySelector("[data-target-id="+B+"]"),u=D==null?void 0:D.querySelector("[data-target-id="+F+"]");D&&u&&setTimeout(function(){var R=u.offsetTop-D.offsetTop,N;if(((N=G.scrollToItem)==null?void 0:N.scrollPosition)==="SCROLL_POSITION_CENTER")R-=D.offsetHeight/2,R+=u.offsetHeight/2;else{var y;((y=G.scrollToItem)==null?void 0:y.scrollPosition)==="SCROLL_POSITION_END"&&(R-=D.offsetHeight,R+=u.offsetHeight)}var U;D.scroll({top:R,behavior:(G==null?void 0:(U=G.animationConfig)==
null?void 0:U.enableAnimation)===!1?"instant":"smooth"})},100)}}};var bp=new _.oV("CLIENT_NAME_TOKEN");var TOA=new _.oV("DEFAULT_STORE_EXPIRATION_TOKEN");var fc7=new _.oV("CLIENT_LOCATION_SERVICE_TOKEN");var Vk=function(G,B,F){this.clientName=G||_.v5("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=B||_.k7.getInstance();this.JSC$17867_commandHandler=F||_.Gm.instance};
_.r(Vk,kh);Vk.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){D=(F=_.Q(G,Ixv))==null?void 0:F.onComplete;B.clientLocationService.clearLocationPlayabilityToken(B.clientName);D&&B.JSC$17867_commandHandler.resolveCommand(D);_.di(u)})};
Vk[ZA]=[bp,fc7,_.Wr];var vi=function(G){this.innertubeTransportService=G};
_.r(vi,kh);vi.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N;return _.n(function(y){R=(D=B)==null?void 0:(u=D.form)==null?void 0:u.element;return y.yield(_.$F(F.innertubeTransportService,G,(N=B)==null?void 0:N.form).then(function(U){pWJ(R,new CustomEvent("yt-service-request-completed"),{data:U},_.v5("openPopupConfig"))}),0)})};
vi[ZA]=[_.RF];var od=function(){};
_.r(od,kh);od.prototype.resolveCommand=function(G){var B,F;return _.n(function(D){B=_.Q(G,MAU);F=document.querySelector("mini-app-container-view-model");if(!B||!F)return D.return();B.isPlaying?F.dispatchEvent(new Event("play")):F.dispatchEvent(new Event("pause"));_.di(D)})};var Mr=function(){};
_.r(Mr,kh);Mr.prototype.resolveCommand=function(G){var B,F,D,u,R,N,y;return _.n(function(U){B=_.Q(G,Q8y);if((F=B)==null||!F.paramKeys)return U.return();D=B.paramKeys;u=_.pn(window.location.href);R=_.C(D);for(N=R.next();!N.done;N=R.next())y=N.value,u.JSC$10342_queryData_.remove(y);window.history.replaceState(window.history.state,document.title,u.toString());_.di(U)})};var IJQ=function(){this.dropdownMap=new Map};_.fJQ=new _.oV("DROPDOWN_CONTROLLER_TOKEN");var p$=function(G){this.controller=G};
_.r(p$,kh);p$.prototype.resolveCommand=function(G){var B=this,F,D,u,R;return _.n(function(N){F=_.Q(G,sJa);if(!F)return N.return();D=F;u=D.dropdownId;R=D.selectedOptionIndex;if(u===void 0||R===void 0)return N.return();var y=B.controller.dropdownMap.get(u);y&&y(R);_.di(N)})};
p$[ZA]=[_.fJQ];var Y5=function(G){this.controller=G};
_.r(Y5,kh);Y5.prototype.resolveCommand=function(G){var B=this,F;return _.n(function(D){return(F=_.Q(G,u57))?D.yield(B.controller.closeDialog(),0):D.return()})};
Y5[ZA]=[_.lI];var A6=function(G){this.controller=G};
_.r(A6,kh);A6.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){F=_.Q(G,JXt);if(!F)return u.return();var R,N=F.panelIdentifier||((R=F.identifier)==null?void 0:R.tag);if(!N)throw Error("Ei");return(D=N)?u.yield(B.controller.hidePanel({identifier:D}),0):u.jumpTo(0)})};
A6[ZA]=[_.yR];var dX=function(G){this.controller=G};
_.r(dX,kh);dX.prototype.resolveCommand=function(G){var B=this,F;return _.n(function(D){return(F=_.Q(G,eoq))?D.yield(B.controller.closeSheet(),0):D.return()})};
dX[ZA]=[_.nL];var J6=function(G,B){this.innertubeTransportService=G;this.controller=B};
_.r(J6,kh);J6.prototype.resolveCommand=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return F=_.Q(G,cXq),(D=F)!=null&&D.panelId?N.yield(B.controller.getReloadContinuation(F.panelId),2):N.return();if(N.nextAddress!=3)return(u=N.yieldResult)?N.yield(_.$F(B.innertubeTransportService,G,{continuation:u}),3):N.return();R=N.yieldResult;return N.yield(B.controller.updatePanel({identifier:F.panelId,panelContents:R.content,shouldFocus:!1}),0)})};
J6[ZA]=[_.RF,_.yR];var ci=function(G,B,F){this.innertubeTransportService=G;this.JSC$17908_screenManager=B;this.JSC$17908_commandHandler=F};
_.r(ci,kh);
ci.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1){F=_.Q(G,_.pdG);if(!F)return U.return();if(F.commands)for(D=_.C(F.commands),u=D.next();!u.done;u=D.next())R=u.value,B.JSC$17908_commandHandler.resolveCommand(R,{disableClickTracking:!0});N=_.yX(G.clickTrackingParams);_.t9(B.JSC$17908_screenManager,21760,N,{layer:7,parentLayer:0});return U.yield(_.$F(B.innertubeTransportService,G),2)}y=U.yieldResult;if(!y)return U.return();B.JSC$17908_screenManager.graftServerVe(y.trackingParams,N,
7);_.di(U)})};
ci[ZA]=[_.RF,_.ux,_.Wr];var Th=new _.oV("PANEL_LOADING_STRATEGY_TOKEN");var Id=function(G,B){this.controller=G;this.panelLoadingStrategy=B};
_.r(Id,kh);
Id.prototype.resolveCommand=function(G,B){var F=this,D,u,R;return _.n(function(N){D=_.Q(G,zoN);if((u=D)==null||!u.panelLoadingStrategy)return N.return();R=function(y){var U,q,h,K,a,m,L,W,e,b;return _.n(function(M){q=_.Q((U=y.dialogViewModel)==null?void 0:U.header,xvN);h={viewModel:y.dialogViewModel};K={};if(L=_.X("web_enable_dialog_header_label")?(a=q)==null?void 0:(m=a.headline)==null?void 0:m.content:void 0)K.ariaLabel=L;D.dismissOnBackgroundTap===!1&&(K.isModal=!0);return y.dialogViewModel?M.yield(F.controller.openDialog(h,
(b=(W=B)==null?void 0:(e=W.form)==null?void 0:e.element)!=null?b:document.body,K),0):M.return()})};
return N.yield(F.panelLoadingStrategy.execute({command:G,data:D.panelLoadingStrategy,renderFn:R,createScreenConfig:{layer:4}}),0)})};
Id[ZA]=[_.lI,Th];var f$=function(G,B,F){this.innertubeTransportService=G;this.controller=B;this.JSC$17928_screenManager=F};
_.r(f$,kh);
f$.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b;return _.n(function(M){switch(M.nextAddress){case 1:D=_.Q(G,_.Xi);if(!D)return M.return();var t,T=D.panelIdentifier||((t=D.identifier)==null?void 0:t.tag);if(!T)throw Error("Ei");u=T;return M.yield(F.controller.isVisible(u,!0),2);case 2:if((R=M.yieldResult)&&D.blockIfPanelOpen)return M.return();U=(y=(N=F.controller).getPanelContent)==null?void 0:y.call(N,u);if(!(t=U))if(D){var A;t=((A=D.globalConfiguration)==null?void 0:
A.initialState)||D.engagementPanel;if(A=!t)A=!!(D==null?0:(T=D.engagementPanelPresentationConfigs)==null?0:T.engagementPanelPopupPresentationConfig);A&&(t=_.IQc(D.panelIdentifier,D.identifier))}else t=void 0;q=t;h=D.engagementPanelPresentationConfigs;K=D.engagementPanelExtras;return M.yield(F.controller.showPanel({identifier:u,panelContents:q,config:h,extras:K,target:(a=B)==null?void 0:(m=a.form)==null?void 0:m.element}),3);case 3:if(!D.globalConfiguration){M.jumpTo(0);break}if(D.globalConfiguration.reuseModelAndState&&
_.X("enable_ai_companion")&&(e=(W=(L=F.controller).getPanelContent)==null?void 0:W.call(L,u)))return M.return();_.t9(F.JSC$17928_screenManager,32633);return M.yield(_.$F(F.innertubeTransportService,G),5);case 5:return b=M.yieldResult,F.JSC$17928_screenManager.graftServerVe(b.trackingParams),M.yield(F.controller.updatePanel({identifier:u,panelContents:b.content,shouldFocus:!0,extras:K,updatePanelContinuationData:b.updatePanelContinuationData}),0)}})};
f$[ZA]=[_.RF,_.yR,_.ux];var t6=function(G,B){this.controller=G;this.panelLoadingStrategy=B};
_.r(t6,kh);
t6.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L;return _.n(function(W){D=_.Q(G,_.Ch);if((u=D)==null||!u.panelLoadingStrategy)return W.return();y=t5H(F.controller,(R=B)==null?void 0:(N=R.form)==null?void 0:N.element);q=(U=D.contextualSheetPresentationConfig)==null?void 0:U.position;K=(h=D.contextualSheetPresentationConfig)==null?void 0:h.hoverConfig;m=(a=D.contextualSheetPresentationConfig)==null?void 0:a.expandToFullWidth;L=function(e){var b,M;return _.n(function(t){if(!e.sheetViewModel)return t.return();if(K){var T=
F.controller;T.shouldPreventClosingWhileHovered=!!K.preventCloseWhileHovered;var A;T.hideDelayMs=(A=K.hideDelayMs)!=null?A:0}return t.yield(F.controller.openSheet({viewModel:e.sheetViewModel,sheetPosition:q,expandToFullWidth:m},y,(b=B)==null?void 0:(M=b.form)==null?void 0:M.element),0)})};
return W.yield(F.panelLoadingStrategy.execute({command:G,data:D.panelLoadingStrategy,renderFn:L,createScreenConfig:{layer:0}}),0)})};
t6[ZA]=[_.nL,Th];var Zu=function(G,B){this.controller=G;this.JSC$17939_commandHandler=B};
_.r(Zu,kh);Zu.prototype.resolveCommand=function(G,B){var F=this,D,u,R;return _.n(function(N){if(N.nextAddress==1){D=_.Q(G,tjN);var y=_.Q(D.showCommand,_.Xi),U,q,h=(q=y==null?void 0:y.panelIdentifier)!=null?q:y==null?void 0:(U=y.identifier)==null?void 0:U.tag;if(!h)throw Error("Fi");u=h;return N.yield(F.controller.isVisible(u),2)}return(R=N.yieldResult)?N.yield(F.controller.hidePanel({identifier:u}),0):N.yield(F.JSC$17939_commandHandler.resolveCommand(D.showCommand,B),0)})};
Zu[ZA]=[_.yR,_.Wr];var gX=function(G,B,F){this.innertubeTransportService=G;this.controller=B;this.JSC$17942_screenManager=F};
_.r(gX,kh);
gX.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P;return _.n(function(RI){switch(RI.nextAddress){case 1:return D=F=_.Q(G,PYN),u=D.targetPanelIdentifier,R=D.contentSourcePanelIdentifier,N=D.globalConfiguration,((y=u)==null?0:y.tag)&&((U=R)==null?0:U.tag)?N?RI.yield(B.controller.showPanel({identifier:u.tag,panelContents:_.IQc(u.tag,u)}),5):RI.yield((a=(K=B.controller).getPanel)==null?void 0:a.call(K,R.tag),4):RI.return();case 4:m=RI.yieldResult;q=(L=m)==
null?void 0:(e=(W=L).getPanelContent)==null?void 0:e.call(W);RI.jumpTo(3);break;case 5:return RI.yield(_.$F(B.innertubeTransportService,G),6);case 6:b=RI.yieldResult,((M=b)==null?0:M.trackingParams)&&B.JSC$17942_screenManager.graftServerVe(b.trackingParams),q=(t=b)==null?void 0:t.content,h=(T=b)==null?void 0:T.updatePanelContinuationData;case 3:if(Z=(A=q)==null?void 0:A.engagementPanelSectionListRenderer)return RI.yield(B.controller.showPanel({identifier:u.tag,panelUpdatableFields:{content:Z.content,
secondaryHeaderContent:(P=Z.header)!=null?P:{},targetId:Z.targetId,loggingDirectives:Z.loggingDirectives},updatePanelContinuationData:h}),0);RI.jumpTo(0)}})};
gX[ZA]=[_.RF,_.yR,_.ux];var SJ=function(){};
_.r(SJ,kh);SJ.prototype.resolveCommand=function(G){var B,F,D;return _.n(function(u){if(u.nextAddress==1)return(B=_.Q(G,BB7))?u.yield(_.So(),2):u.return();F=u.yieldResult;if(!F)return u.return();var R=F,N=(D=B)==null?void 0:D.languageCode,y;(R==null?0:(y=R.isReady)==null?0:y.call(R))&&(N=fQz(R,N))&&R.setAudioTrack(N);_.di(u)})};var su=function(){};
_.r(su,a5);_.w=su.prototype;_.w.getApiPaths=function(){return gpG};
_.w.getExtension=function(G){return _.Q(G,_.Ow)};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14495_getStoreKey=function(G){if((G=this.getExtension(G))&&G.videoId){var B={videoId:G.videoId};G.playlistId&&(B.playlistId=G.playlistId);G.index&&(B.index=G.index);G.params&&(B.params=G.params);return _.ky("next",B)}};
_.w.JSC$14488_getClientScreen=function(G){var B;return((B=G.contentPlaybackContext)==null?void 0:B.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.w.JSC$14488_buildRequest=function(G,B,F){B.videoId&&(G.videoId=B.videoId);B.playlistId&&(G.playlistId=B.playlistId);B.params&&(G.params=B.params);B.index!==void 0&&(G.playlistIndex=B.index);G.racyCheckOk=!(!F.racyCheckOk&&!B.racyCheckOk);G.contentCheckOk=!!B.contentCheckOk;F.contentPlaybackContext&&(G.autonavState=F.contentPlaybackContext.autonavState,G.playbackContext={vis:F.contentPlaybackContext.vis,lactMilliseconds:F.contentPlaybackContext.lactMilliseconds});F.prefetchPlaybackContext&&(G.context.request||
(G.context.request={}),G.context.request.isPrefetch=!0);_.X("captions_hats_killswitch")||(B=_.D4().getFlag(65),B=B!=null?!B:!1,F=!!_.np("yt-player-sticky-caption"),G.captionsRequested=B&&F)};
_.w.getRequestConfig=function(G){G=this.JSC$14495_getStoreKey(G);var B;G&&(B={storeStrategy:{storeKey:G}});_.X("web_log_player_watch_next_ticks")&&(B=B||{},B.requestTick="wn_s",B.responseTick="wn_r");return B};
var x5=function(){};
_.r(x5,a5);x5.prototype.getApiPaths=function(){return gpG};
x5.prototype.getExtension=function(G){return _.Q(G,_.QO)};
x5.prototype.JSC$14488_buildRequest=function(G,B){B.token&&(G.continuation=B.token)};var Pi=function(){this.innerTubeTransport=_.te().resolve(_.RF);this.miniplayerService=_.te().resolve(_.WP)};
_.r(Pi,kh);var ZS$=function(G){var B;return _.n(function(F){B=_.v5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;G.JSC$17967_mainAppPlayer=new ep(B);document.addEventListener("yt-navigate-start",G.JSC$17967_pauseOnNavigation.bind(G));_.di(F)})},giN=function(G,B){var F,D,u,R;
return _.n(function(N){if(N.nextAddress==1){F=new su;D=F.JSC$14488_getRequest(B);if(!D)return N.return(void 0);u=D.innerTubeRequest;return N.yield(_.rB(G.innerTubeTransport,u,"/youtubei/v1/next"),2)}R=N.yieldResult;var y;var U,q,h=(y=R.contents)==null?void 0:(U=y.twoColumnWatchNextResults)==null?void 0:(q=U.playlist)==null?void 0:q.playlist,K;y=(h==null?0:(K=h.contents)==null?0:K.length)?h:void 0;return N.return(y)})},ShQ=function(G,B){var F,D,u,R,N;
return _.n(function(y){if(y.nextAddress==1)return F=G.JSC$17967_mainAppPlayer,y.yield(F.api,2);if(y.nextAddress!=3)return D=y.yieldResult,B.watchCommand?y.yield(giN(G,B.watchCommand),3):y.return();u=y.yieldResult;if((R=u)==null||!R.contents)return y.return();N=u.contents.map(function(U){var q;return(q=U.playlistPanelVideoRenderer)==null?void 0:q.videoId}).filter(function(U){return!!U}).map(function(U){return{encrypted_id:U}});
D.updatePlaylist({video:N});_.di(y)})},skA=function(G,B){var F,D,u;
return _.n(function(R){return R.nextAddress==1?(F=G.JSC$17967_mainAppPlayer,u=(D=B.playerParams)!=null?D:"",B.externalVideoId?R.yield(F.loadVideoWithPlayerVars({videoId:B.externalVideoId,audio_only:"1",player_params:u}),2):R.jumpTo(2)):B.watchCommand?R.yield(ShQ(G,B),0):R.jumpTo(0)})};
Pi.prototype.JSC$17967_pauseOnNavigation=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return B=G.JSC$17967_mainAppPlayer,D.yield(B.api,2);F=D.yieldResult;F.pauseVideo();_.di(D)})};
Pi.prototype.pauseVideo=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return B=G.JSC$17967_mainAppPlayer,D.yield(B.api,2);F=D.yieldResult;F.pauseVideo();_.di(D)})};
Pi.prototype.playVideo=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return B=G.JSC$17967_mainAppPlayer,D.yield(B.api,2);F=D.yieldResult;F.playVideo();_.di(D)})};
var xPD=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1)return B=G.JSC$17967_mainAppPlayer,D.yield(B.api,2);F=D.yieldResult;F.mute();_.di(D)})},PM$=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1)return B=G.JSC$17967_mainAppPlayer,D.yield(B.api,2);F=D.yieldResult;F.unMute();_.di(D)})};
Pi.prototype.stopVideo=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return B=G.JSC$17967_mainAppPlayer,D.yield(B.api,2);F=D.yieldResult;F.stopVideo();_.di(D)})};
var G2Z=function(G,B){return _.n(function(F){switch(F.nextAddress){case 1:switch(B){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return F.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return F.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return F.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return F.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return F.jumpTo(6)}F.jumpTo(0);break;case 2:return F.yield(G.playVideo(),8);case 8:F.jumpTo(0);break;case 3:return F.yield(G.pauseVideo(),
9);case 9:F.jumpTo(0);break;case 4:return F.yield(G.stopVideo(),10);case 10:F.jumpTo(0);break;case 5:return F.yield(xPD(G),11);case 11:F.jumpTo(0);break;case 6:return F.yield(PM$(G),12);case 12:F.jumpTo(0)}})};
Pi.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y;return _.n(function(U){return U.nextAddress==1?(F=_.Q(G,kkG),((D=F)==null?0:D.newPlaybackParams)||((u=F)==null?0:u.controlAction)?B.JSC$17967_mainAppPlayer?U.jumpTo(2):U.yield(ZS$(B),2):U.return()):((R=F)==null?0:R.newPlaybackParams)?(B.miniplayerService.isMiniplayerActive()&&((N=B.miniplayerService.getPlayerElement())==null||N.pause()),y=F.newPlaybackParams,y.externalVideoId||y.externalPlaylistId?U.yield(skA(B,y),0):U.return()):U.yield(G2Z(B,
F.controlAction),0)})};var GR=function(G){this.JSC$17973_commandHandler=G};
_.r(GR,kh);
GR.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return(F=_.Q(G,iMy))?U.yield(_.So(),2):U.return();D=U.yieldResult;if(!D)return U.return();var q=D,h=(u=F)==null?void 0:u.languageCode,K=(R=F)==null?void 0:R.isAutoTranslated;q.getVideoData&&_.Zyg(q).length&&((h=Siz(q,h,K))?q.setOption("captions","track",h):(q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{})));N=D.isSubtitlesOn()?_.G7("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.G7("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");y=_.MD(N,5E3);B.JSC$17973_commandHandler.resolveCommand(y);_.di(U)})};
GR[ZA]=[_.Wr];var B8=function(G,B){this.shortsPlayerPromise=G;this.JSC$17977_commandHandler=B};
_.r(B8,kh);
B8.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1)return(F=_.Q(G,Woa))?h.yield(B.shortsPlayerPromise,2):h.return();D=h.yieldResult;var K=sWs(D);K!=null&&K.length||(D.loadModule("captions"),K=sWs(D));u=K;if((R=u)==null||!R.length)return N=_.G7("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),y=_.MD(N),B.JSC$17977_commandHandler.resolveCommand(y),h.return();D.toggleSubtitles();U=D.isSubtitlesOn()?_.G7("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.G7("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");q=_.MD(U);B.JSC$17977_commandHandler.resolveCommand(q);_.di(h)})};
B8[ZA]=[_.Lkq,_.Wr];var im=function(G){this.JSC$17980_actionRouter=G;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(B,F){B.triggerAction("yt-dismiss-shopping-timely-shelf-action",F);(B=_.te().resolve(_.fH(_.ot7)))&&B.dismissFeaturedProductOverlay()}]])};
_.r(im,kh);im.prototype.resolveCommand=function(G){var B=this,F,D,u;return _.n(function(R){F=_.Q(G,RAt);if((D=F)==null||!D.overlayId)return R.return();u=B.dismissPlayerOverlayActions.get(F.overlayId);if(!u)throw Error("Gi`"+F.overlayId);u(B.JSC$17980_actionRouter,F);_.di(R)})};
im[ZA]=[o1];var F_=function(G){this.JSC$17984_playerPromise=G};
_.r(F_,kh);F_.prototype.resolveCommand=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return(F=_.Q(G,Iht))?N.yield(B.JSC$17984_playerPromise,2):N.return();D=N.yieldResult;u=D.getVideoData().video_id;F.videoId===u&&(R=Number(F.offsetFromVideoStartMilliseconds),R>=0&&D.seekTo(R/1E3));_.di(N)})};
F_[ZA]=[_.IQ];var Bq$=_.Z4("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),D3=function(G){this.store=G};
_.r(D3,kh);
var iTG=function(G){var B,F,D,u;return _.n(function(R){if(R.nextAddress==1)return B=_.v5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,F=_.v5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,D=B||F,G.JSC$17988_mainAppPlayer=new ep(D),R.yield(G.JSC$17988_mainAppPlayer.api,2);u=R.yieldResult;u.addEventListener("onStateChange",G.JSC$17988_playerStateChangeListener.bind(G));document.addEventListener("yt-page-data-updated",G.JSC$17988_pauseOnNavigation.bind(G));window.addEventListener("state-navigatestart",
G.JSC$17988_pauseOnNavigation.bind(G));_.di(R)})};
D3.prototype.JSC$17988_playerStateChangeListener=function(G){switch(G){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"}FGG(this)};
var FGG=function(G){G.store.dispatch(_.wC("sfvAudioItemCurrentlyPlayingEntity",Bq$,{key:Bq$,externalVideoId:G.externalVideoId,sfvAudioItemPlaybackState:G.playbackState,nowPlayingEntityValue:G.nowPlayingEntityValue}))};
D3.prototype.JSC$17988_pauseOnNavigation=function(){var G=this,B,F,D,u;return _.n(function(R){if(R.nextAddress==1){if(!G.JSC$17988_mainAppPlayer){var N=new _.Uf("Error: mainAppPlayer is unavailable",G.JSC$17988_mainAppPlayer);_.k2(N);return R.return()}return R.yield(G.JSC$17988_mainAppPlayer.api,2)}B=R.yieldResult;D=(F=B)==null?void 0:F.getPlayerState();D!==1||(u=B)!=null&&u.pauseVideo();_.di(R)})};
D3.prototype.playVideo=function(G,B,F){var D=this,u,R;return _.n(function(N){if(N.nextAddress==1)return N.yield((u=D.JSC$17988_mainAppPlayer)==null?void 0:u.api,2);R=N.yieldResult;if(!D.JSC$17988_mainAppPlayer||!R){var y=new _.Uf("Error: mainAppPlayer is unavailable",D.JSC$17988_mainAppPlayer);_.k2(y);return N.return()}return N.yield(D.JSC$17988_mainAppPlayer.loadVideoWithPlayerVars({videoId:D.externalVideoId,audio_only:"1",start:G/1E3,end:G/1E3+B,player_params:F}),0)})};
D3.prototype.pauseVideo=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1){if(!G.JSC$17988_mainAppPlayer){var u=new _.Uf("Error: mainAppPlayer is unavailable",G.JSC$17988_mainAppPlayer);_.k2(u);return D.return()}return D.yield(G.JSC$17988_mainAppPlayer.api,2)}B=D.yieldResult;(F=B)==null||F.pauseVideo();_.di(D)})};
D3.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T;return _.n(function(A){if(A.nextAddress==1)return F=_.Q(G,j58),u=(D=F)==null?void 0:D.nowPlayingEntityValue,N=(R=F)==null?void 0:R.externalVideoId,K=Number((h=(y=F)==null?void 0:(U=y.defaultStartPoints)==null?void 0:(q=U[0])==null?void 0:q.offsetMs)!=null?h:"0"),b=Number((e=(a=F)==null?void 0:(m=a.defaultStartPoints)==null?void 0:(L=m[0])==null?void 0:(W=L.duration)==null?void 0:W.seconds)!=null?e:"15"),T=(t=
(M=F)==null?void 0:M.playerParams)!=null?t:"",u&&N?B.JSC$17988_mainAppPlayer?A.jumpTo(2):A.yield(iTG(B),2):A.return();if(A.nextAddress!=6){if(B.nowPlayingEntityValue&&u===B.nowPlayingEntityValue)return B.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?A.yield(B.pauseVideo(),0):A.yield(B.playVideo(K,b,T),0);B.externalVideoId=N;B.nowPlayingEntityValue=u;B.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return A.yield(B.playVideo(K,b,T),6)}FGG(B);return A.jumpTo(0)})};
D3[ZA]=[gN];var um=function(G){this.JSC$18006_commandHandler=G};
_.r(um,kh);um.prototype.resolveCommand=function(G,B){var F=this,D,u,R;return _.n(function(N){if(N.nextAddress==1)return(D=_.Q(G,FJG))?N.yield(_.So(),2):N.return();u=N.yieldResult;if(!u)return N.return();(R=xCl(u))&&F.JSC$18006_commandHandler.resolveCommand(R,B);_.di(N)})};
um[ZA]=[_.Wr];var RT=function(G){this.JSC$18012_commandHandler=G};
_.r(RT,kh);RT.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return(D=_.Q(G,DyT))?U.yield(_.So(),2):U.return();u=U.yieldResult;if(!u)return U.return();(R=Fsz(u))?F.JSC$18012_commandHandler.resolveCommand(R,B):(N=_.G7("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),y=_.MD(N),F.JSC$18012_commandHandler.resolveCommand(y));_.di(U)})};
RT[ZA]=[_.Wr];var wc=function(G){this.JSC$18015_playerPromise=G};
_.r(wc,kh);wc.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1)return(F=_.Q(G,njq))?u.yield(B.JSC$18015_playerPromise,2):u.return();D=u.yieldResult;D.isFullscreen()&&D.wakeUpControls();_.di(u)})};
wc[ZA]=[_.IQ];var Ca=function(G){this.JSC$18018_playerPromise=G};
_.r(Ca,kh);Ca.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N;return _.n(function(y){if(y.nextAddress==1){F=_.Q(G,fhs);if(!F)return y.return();D=F.overlayRenderer;return D?(u=_.Q(D,h_y))?y.yield(B.JSC$18018_playerPromise,3):y.jumpTo(0):y.return()}R=y.yieldResult;R.renderChapterSeekingAnimation(1,_.zx(u.text),(N=u.icon)==null?void 0:N.iconType);_.di(y)})};
Ca[ZA]=[_.IQ];var NT=function(G){this.store=G};
_.r(NT,kh);
NT.prototype.resolveCommand=function(G){var B=this,F,D,u;return _.n(function(R){if(R.nextAddress==1){F=_.Q(G,Ooq);if(!F)return R.return();D="";(u=B.store.getState().collabInviteLink)&&F.id===u.playlistId?D=u.inviteLinkURL:F.shortUrl&&(D=F.shortUrl);return D?R.yield(navigator.clipboard.writeText(D),3):R.jumpTo(0)}var N={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.G7("COPY_LINK_SUCCESS_TOAST")}}}}};_.te().resolve(_.Wr).resolveCommand(N);_.di(R)})};
NT[ZA]=[Wi];var yu=function(G,B){this.innertubeTransportService=G;this.JSC$18028_commandHandler=B};
_.r(yu,kh);yu.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a;return _.n(function(m){if(m.nextAddress==1)return(D=_.Q(G,_.j0))?m.yield(_.$F(F.innertubeTransportService,G,(u=B)==null?void 0:u.form),2):m.return();(R=m.yieldResult)&&R.errorMetadata&&(N=R,y=_.MD(N.error.message),F.JSC$18028_commandHandler.resolveCommand(y));U=R;if((q=U)==null?0:q.actions)for(h=_.C(U.actions),K=h.next();!K.done;K=h.next())a=K.value,F.JSC$18028_commandHandler.resolveCommand(a);_.di(m)})};
yu[ZA]=[_.RF,_.Wr];var na=function(){};
_.r(na,kh);na.prototype.resolveCommand=function(G){var B;return _.n(function(F){B=_.Q(G,K$P);if(!B)return F.return();(new gBw(B)).show();_.di(F)})};_.lm=new _.oV("PLAYLIST_EDIT_CONTROLLER_TOKEN");var UI=function(G,B,F,D){this.store=G;this.innertubeTransportService=B;this.controller=F;this.JSC$18036_commandHandler=D};
_.r(UI,kh);
UI.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI;return _.n(function(v6){if(v6.nextAddress==1){D=_.Q(G,_.KV);if(!D)return v6.return();if(D.clientActions){u=_.C(D.clientActions);for(R=u.next();!R.done;R=u.next())N=R.value,F.JSC$18036_commandHandler.resolveCommand(N,B);var Jg,c6=B==null?void 0:(Jg=B.form)==null?void 0:Jg.element;c6&&_.cZ(c6,"yt-dismissible-item-action",D.clientActions)}return v6.yield(_.$F(F.innertubeTransportService,G,(y=
B)==null?void 0:y.form),2)}if(U=v6.yieldResult)U.errorMetadata?(q=U,h=_.MD(q.error.message),F.JSC$18036_commandHandler.resolveCommand(h),"error"in U&&((K=B)==null?0:(a=K.commandController)==null?0:a.onServerError)&&((m=B)==null||(L=m.commandController)==null||L.onServerError(G,U))):(W=B)==null||(e=W.commandController)==null||(M=(b=e).onSuccess)==null||M.call(b,G,U);t=U;((T=t)==null?0:T.collaborationInviteLink)&&D.playlistId&&(_.X("web_enable_invite_collaborators_link")||_.X("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
F.store.dispatch(_.d5({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:D.playlistId,inviteLinkUrl:t.collaborationInviteLink}}));((A=t)==null?0:A.redirectEndpoint)&&F.JSC$18036_commandHandler.resolveCommand(t.redirectEndpoint);((Z=t)==null?0:(P=Z.newHeader)==null?0:P.playlistHeaderRenderer)?DK$(F.controller,t.newHeader.playlistHeaderRenderer):((RI=t)==null?0:(yo=RI.newHeader)==null?0:yo.musicEditablePlaylistDetailHeaderRenderer)&&DK$(F.controller,t.newHeader.musicEditablePlaylistDetailHeaderRenderer);
F.controller.playlistVideoListElement&&((hg=t)==null?0:(US=hg.playlistEditResults)==null?0:(aI=US[0])==null?0:aI.playlistEditVideoAddedResultData)&&((c6=F.controller.playlistVideoListElement)==null||c6.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:t.playlistEditResults[0].playlistEditVideoAddedResultData})));_.di(v6)})};
UI[ZA]=[_.Ep,_.RF,_.lm,_.Wr];var qT=function(G,B){this.controller=G;this.JSC$18046_commandHandler=B};
_.r(qT,kh);qT.prototype.resolveCommand=function(G,B){var F=this,D,u,R;return _.n(function(N){D=_.Q(G,edt);F.controller.showRefreshPill&&((u=D)==null?0:u.command)&&(F.JSC$18046_commandHandler.resolveCommand((R=D)==null?void 0:R.command,B),F.controller.showRefreshPill=!1);_.di(N)})};
qT[ZA]=[_.SK,_.Wr];var EI=function(G,B){this.store=G;this.JSC$18050_commandHandler=B||_.Gm.instance};
_.r(EI,kh);EI.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a;return _.n(function(m){D=_.Q(G,Tuq);u=F.store.getState().radioButtonGroup;if((R=D)==null?0:R.command)F.JSC$18050_commandHandler.resolveCommand((N=D)==null?void 0:N.command,B);else if(u&&((y=D)==null?void 0:y.formId)===u.currentFormId)for(U=Object.values(u.commandsMap),q=_.C(U),h=q.next();!h.done;h=q.next())K=h.value,(a=_.X1(K))&&F.JSC$18050_commandHandler.resolveCommand(a,B);_.di(m)})};
EI[ZA]=[_.Ep];var hk=new _.oV("USER_PREFS");var Ka=function(G){this.JSC$18055_prefCookie=G};
_.r(Ka,kh);Ka.prototype.resolveCommand=function(G){var B=this,F;return _.n(function(D){(F=_.Q(G,Nuq))&&typeof F.useListView==="boolean"&&(_.uf(0,155,F.useListView),B.JSC$18055_prefCookie.save());_.di(D)})};
Ka[ZA]=[hk];var aT=function(G){this.JSC$18059_prefCookie=G};
_.r(aT,kh);aT.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N;return _.n(function(y){F=_.Q(G,XVq);if((D=F)==null||!D.gl)return y.return();u=F.gl;R={persist_gl:"1",gl:u};B.JSC$18059_prefCookie.set("gl",u);B.JSC$18059_prefCookie.save();N=ubg(R);_.js(N);_.di(y)})};
aT[ZA]=[hk];var mZ=function(G){this.JSC$18063_prefCookie=G};
_.r(mZ,kh);mZ.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){F=_.Q(G,zdN);if(!F)return u.return();D=!1;F.flagNum&&typeof F.value==="boolean"?(_.uf(0,F.flagNum,F.value),D=!0):F.key&&typeof F.stringValue==="string"&&(B.JSC$18063_prefCookie.set(F.key,F.stringValue),D=!0);D&&B.JSC$18063_prefCookie.save();_.di(u)})};
mZ[ZA]=[hk];var X_=new _.oV("PREF_STORAGE_PROMISE_TOKEN");var Qu=function(G){this.JSC$18067_prefStoragePromise=G};
_.r(Qu,kh);Qu.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1)return(F=_.Q(G,V7t))?u.yield(B.JSC$18067_prefStoragePromise,2):u.return();D=u.yieldResult;return D===void 0||F.key===void 0||F.value===void 0?u.return():u.yield(D.set(F.key,F.value),0)})};
Qu[ZA]=[X_];var jL=function(G){this.innertubeTransportService=G};
_.r(jL,kh);jL.prototype.resolveCommand=function(G,B){var F=this,D,u;return _.n(function(R){(D=_.Q(G,_.tCa))&&D&&D.isFirstRequest&&(_.hJ("search_overview_answer"),_.KR("so_rq",void 0,"search_overview_answer"));return R.yield(_.$F(F.innertubeTransportService,G,(u=B)==null?void 0:u.form),0)})};
jL[ZA]=[_.RF];var u2S=function(){};
_.r(u2S,kh);
u2S.prototype.resolveCommand=function(G){var B,F,D,u,R,N,y,U,q;return _.n(function(h){B=_.Q(G,TBy);if((F=B)==null?0:F.sectionIdentifier){if(B.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(u=(D=document.getElementsByTagName(B.sectionIdentifier))==null?void 0:D.item(0))u.scrollIntoView({behavior:"smooth"}),(R=Ax8(u))&&R.focus({preventScroll:!0});return h.return()}N=document.querySelector("[section-identifier="+B.sectionIdentifier+"]");y=document.querySelector("[section-identifier="+B.referenceSectionIdentifier+
"]");if(!N)return h.return();U=B.verticalScrollOffsetDp?B.verticalScrollOffsetDp:0;y&&(U-=y.offsetTop);window.scrollTo({top:N.offsetTop+U,behavior:"smooth"});(q=Ax8(N))&&q.focus({preventScroll:!0})}_.di(h)})};var La=function(G){this.JSC$18079_commandHandler=G};
_.r(La,kh);
La.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U;return _.n(function(q){if(q.nextAddress==1){F=_.Q(G,hoL);if(!F||!F.imageBytes||!navigator.clipboard)return q.return();if(F.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.k2(Error("Ii")),q.return();_.b5(q,2);u=(D=F)==null?void 0:D.imageBytes;R=u.replace(/-/g,"+").replace(/_/g,"/");N=pqQ(R);y={};U=[new ClipboardItem((y[N.type]=N,y))];return q.yield(navigator.clipboard.write(U),4)}if(q.nextAddress!=2)return F.successCommand&&
B.JSC$18079_commandHandler.resolveCommand(F.successCommand),_.oY(q,0);_.Al(q);F.errorCommand&&B.JSC$18079_commandHandler.resolveCommand(F.errorCommand);_.di(q)})};
La[ZA]=[_.Wr];var rc=function(G,B){this.innertubeTransportService=G;this.JSC$18083_commandHandler=B};
_.r(rc,kh);rc.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return(D=_.Q(G,K78))?U.yield(_.$F(F.innertubeTransportService,G,(u=B)==null?void 0:u.form),2):U.return();(R=U.yieldResult)&&R.errorMetadata&&D.onFailureCommand&&F.JSC$18083_commandHandler.resolveCommand(D.onFailureCommand);N=R;((y=N)==null?0:y.shareCommand)&&F.JSC$18083_commandHandler.resolveCommand(N.shareCommand,B);_.di(U)})};
rc[ZA]=[_.RF,_.Wr];var W8=function(){};
_.r(W8,kh);W8.prototype.resolveCommand=function(G){var B,F;return _.n(function(D){B=_.Q(G,Hot);if(!B||!navigator.share)return D.return();F={url:B.url};try{return D.return(navigator.share(F))}catch(u){}_.di(D)})};var H8=function(){};
_.r(H8,kh);H8.prototype.resolveCommand=function(){return _.n(function(G){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.di(G)})};var kJ=function(G){this.JSC$18093_navigationConfirmationService=G};
_.r(kJ,kh);kJ.prototype.resolveCommand=function(){var G=this;return _.n(function(B){G.JSC$18093_navigationConfirmationService.cancelPendingNavigation();_.di(B)})};
kJ[ZA]=[iI];var OI=function(G){this.JSC$18096_screenManager=G};
_.r(OI,kh);OI.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q;return _.n(function(h){u=(D=B.form)==null?void 0:D.event;N=(R=B.form)==null?void 0:R.element;if(!u)throw new _.Uf("Event not passed in when resolving command");y=_.C(u.composedPath());for(U=y.next();!U.done;U=y.next())if(q=U.value,q.tagName==="YT-COPY-LINK-RENDERER")return q.copyUrlToClipboard(),N&&_.kF(F.JSC$18096_screenManager,N),h.return();_.di(h)})};
OI[ZA]=[_.ux];var eL=function(){this.JSC$18100_miniAppClientDataProvider=_.te().resolve(_.p2)};
_.r(eL,kh);eL.prototype.resolveCommand=function(){var G=this,B,F;return _.n(function(D){if(G.JSC$18100_miniAppClientDataProvider.clientData.has("video_id")){var u=G.JSC$18100_miniAppClientDataProvider,R=u.clientData.get("video_id");R&&u.clientData.delete("video_id");B="https://youtube.com/watch?v="+R;F=_.Z6(B);if(F===void 0)throw Error("Ji`"+B);_.wi(window,F)}_.di(D)})};var $J=function(){};
_.r($J,kh);$J.prototype.resolveCommand=function(){return _.n(function(G){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.di(G)})};var zR=function(){};
_.r(zR,kh);zR.prototype.resolveCommand=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.s1U(window.document.documentElement),2);(G=document.querySelector("mini-app-container-view-model iframe"))&&G.focus();_.di(B)})};var bm=function(G){this.JSC$18107_navigationConfirmationService=G};
_.r(bm,kh);
bm.prototype.resolveCommand=function(){var G=this;return _.n(function(B){var F=G.JSC$18107_navigationConfirmationService,D=_.te().resolve(_.Sj),u;if(((u=F.navigateParams)==null?void 0:u.data)!==void 0){var R;_.R$q(D,F.navigateParams.endpoint,F.navigateParams.data,(R=F.navigateParams.navigationType)!=null?R:1,F.navigateParams.tempData,F.navigateParams.isMiniplayer,void 0,!0);F.navigateParams=void 0;F.customConfirmationCommand=void 0}else F.navigateParams&&(D.navigate(F.navigateParams.endpoint,F.navigateParams.reload,
F.navigateParams.params,F.navigateParams.tempData,F.navigateParams.requestType,F.navigateParams.createScreenConfig,!0),F.navigateParams=void 0,F.customConfirmationCommand=void 0);_.di(B)})};
bm[ZA]=[iI];var Vu=function(){};
_.r(Vu,kh);Vu.prototype.resolveCommand=function(){return _.n(function(G){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.di(G)})};var oT=function(G){this.JSC$18112_prefStorage=G};
_.r(oT,kh);oT.prototype.resolveCommand=function(){var G=this,B,F;return _.n(function(D){switch(D.nextAddress){case 1:return D.yield(G.JSC$18112_prefStorage,2);case 2:return(B=D.yieldResult)?D.yield(B.set("sfvle",!1),3):D.return();case 3:return D.yield(B.set("sfvles",!0),4);case 4:F=_.D4(),_.uf(0,203,!1),_.uf(0,204,!0),F.save(),_.di(D)}})};
oT[ZA]=[X_];var MT=function(G){this.JSC$18115_prefStorage=G};
_.r(MT,kh);MT.prototype.resolveCommand=function(){var G=this,B,F;return _.n(function(D){switch(D.nextAddress){case 1:return D.yield(G.JSC$18115_prefStorage,2);case 2:return(B=D.yieldResult)?D.yield(B.set("sfvle",!0),3):D.return();case 3:return D.yield(B.set("sfvles",!0),4);case 4:F=_.D4(),_.uf(0,203,!0),_.uf(0,204,!0),F.save(),_.di(D)}})};
MT[ZA]=[X_];_.RFB=new _.oV("SNACKBAR_CONTROLLER_TOKEN");_.weQ=new _.oV("SHOULD_SHOW_PIVOT_BAR_TOKEN");var pa=function(G){this.controller=G};
_.r(pa,kh);pa.prototype.resolveCommand=function(G){var B=this,F;return _.n(function(D){F=_.Q(G,$vq);if(!F)return D.return();var u=B.controller;u.closeSnackbarFn&&u.closeSnackbarFn();_.di(D)})};
pa[ZA]=[_.RFB];var YJ=function(G,B){this.controller=G;this.JSC$18122_sheetController=B};
_.r(YJ,kh);YJ.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U;return _.n(function(q){D=_.Q(G,b3U);if(!D)return q.return();N=t5H(F.JSC$18122_sheetController,(u=B)==null?void 0:(R=u.form)==null?void 0:R.element);y=_.Q(D.content,tpL);if(!y)return q.return();var h=F.controller,K=y,a=(U=D.animationStyle)!=null?U:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(h.showSnackbarFn)h.showSnackbarFn({snackbarViewModel:K,animationStyle:a,durationMs:D.durationSeconds*1E3,target:N});else throw Error("Dj");_.di(q)})};
YJ[ZA]=[_.RFB,_.nL];var Ak=function(){};
_.r(Ak,kh);Ak.prototype.resolveCommand=function(G){var B;return _.n(function(F){B=_.Q(G,boa);if(!B||typeof B.key!=="string"||typeof B.value!=="string")return F.return();window.localStorage.setItem(B.key,B.value);_.di(F)})};var dc=function(G){this.store=G};
_.r(dc,kh);dc.prototype.resolveCommand=function(G){var B=this,F;return _.n(function(D){F=_.Q(G,MfL);if(!F||!F.stepId||!F.token)return D.return();B.store.dispatch(Hlq({stepId:F.stepId,token:F.token,isSelected:!1}));_.di(D)})};
dc[ZA]=[Wi];var Jk=function(G,B,F){this.innertubeTransportService=G;this.store=B;this.JSC$18134_screenManager=F};
_.r(Jk,kh);
Jk.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI,v6;return _.n(function(Jg){F=_.Q(G,LEw);if(!F||(D=F.stepIds)==null||!D.length)return Jg.return();u=B.store.getState().talkToRecs;R=[];N=[];y=_.C(F.stepIds);for(U=y.next();!U.done;U=y.next())for(q=U.value,h=void 0,(K=(h=u.stepStates[q])==null?void 0:h.userQuery)&&N.push({userQuery:F.submitEmptyUserQuery?"":K.userQuery,userQueryToken:K.token}),m=a=void 0,L=(m=(a=u.stepStates[q])==null?void 0:
a.selectionStates)!=null?m:{},W=_.C(Object.entries(L)),e=W.next();!e.done;e=W.next())b=e.value,M=_.C(b),t=M.next().value,T=M.next().value,A=t,Z=T,Z.isSelected&&R.push(A);P={selectedChipTokens:R,userQueries:N,submittedStepIds:F.stepIds};RI={browseTalk2recsFormData:P};F.browseEndpoint?(yo=G,_.E_(yo,_.x9,F.browseEndpoint)):F.command&&(yo=F.command);if(!yo)return Jg.return();hg=_.Q(yo,_.QO);if((US=hg)==null?0:US.command)if(aI=_.Q(hg.command,Q3q))v6=_.Gm.instance,v6.resolveCommand(hg.command);return Jg.yield(_.$F(B.innertubeTransportService,
yo,{formData:RI,disableCache:!0}).then(function(c6){(c6==null?0:c6.trackingParams)&&B.JSC$18134_screenManager.graftServerVe(c6==null?void 0:c6.trackingParams)}),0)})};
Jk[ZA]=[_.RF,Wi,_.ux];var c8=function(G){this.store=G};
_.r(c8,kh);
c8.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q;return _.n(function(h){F=_.Q(G,oH6);if(!F||!F.stepId)return h.return();if(F.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")N=(R=(D=B.store.getState().talkToRecs.stepStates[F.stepId])==null?void 0:(u=D.userQuery)==null?void 0:u.userQuery)!=null?R:"",y=N.length>0?". ":"",U=N+y+F.selectedText,B.store.dispatch(kKy({stepId:F.stepId,userQueryToken:"",userQuery:U}));else if(F.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")B.store.dispatch(kKy({stepId:F.stepId,userQueryToken:"",
userQuery:(q=F.selectedText)!=null?q:""}));else{if(!F.token)return h.return();B.store.dispatch(Hlq({stepId:F.stepId,token:F.token,isSelected:!0}))}_.di(h)})};
c8[ZA]=[Wi];var TR=function(G){this.store=G};
_.r(TR,kh);TR.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U;return _.n(function(q){D=_.Q(G,rsG);if(!D||!D.stepId)return q.return();y=(N=(u=B)==null?void 0:(R=u.form)==null?void 0:R.userQuery)!=null?N:"";F.store.dispatch(kKy({stepId:D.stepId,userQuery:y,userQueryToken:(U=D.userQueryToken)!=null?U:""}));_.di(q)})};
TR[ZA]=[Wi];_.CBU=new _.oV("TIMELY_ACTIONS_CONTROLLER_TOKEN");var IT=function(G){this.controller=G};
_.r(IT,kh);IT.prototype.resolveCommand=function(G){var B=this,F,D,u,R;return _.n(function(N){F=_.Q(G,dy8);if(!F)return N.return();D=F;u=D.id;R=D.isVisible;if(u===void 0||R===void 0)return N.return();var y;(y=B.controller.timelyActionsMap.get(u))==null||y(u,R);_.di(N)})};
IT[ZA]=[_.CBU];var Nqz=function(){this.timelyActionsMap=new Map};var fa=function(G){this.JSC$18160_commandHandler=G};
_.r(fa,kh);fa.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N;return _.n(function(y){F=_.Q(G,_.tOs);if(!F)return y.return();R=(D=F.item)==null?void 0:(u=D.notificationTextRenderer)==null?void 0:u.successResponseText;if(!R)return y.return();N=_.o9(R);B.JSC$18160_commandHandler.resolveCommand(N);_.di(y)})};
fa[ZA]=[_.Wr];var tk=function(G,B){this.innertubeTransportService=G;this.JSC$18165_playerApiPromise=B};
_.r(tk,kh);
tk.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h;return _.n(function(K){if(K.nextAddress==1)return K.yield(B.JSC$18165_playerApiPromise,2);F=K.yieldResult;D=F.getOption("captions","track");u=Object.assign({},_.Q(G,_.BY8));(N=(R=F.getVideoData())==null?void 0:R.video_id)?u.externalVideoId=N:_.Ae(Error("Ki"));if((y=D)==null?0:y.languageCode)u.languageCode=D.languageCode;if((U=D)==null?0:U.kind)u.kind=D.kind;if((q=D)==null?0:q.name)u.name=D.name;h=Object.assign({},G,{getTranscriptEndpoint:u});return K.yield(_.$F(B.innertubeTransportService,
h),0)})};
tk[ZA]=[_.RF,_.IQ];var Z3=function(){};
_.r(Z3,kh);Z3.prototype.resolveCommand=function(G){var B,F,D,u,R,N,y,U;return _.n(function(q){B=_.Q(G,cDG);if((F=B)==null||!F.paramKeyValuePairs)return q.return();D=window.location.href;u=_.C(B.paramKeyValuePairs);for(R=u.next();!R.done;R=u.next())N=R.value,N.key&&N.value&&(y={},D=_.TJ(D,(y[N.key]=N.value,y)));U=_.te().resolve(_.xV);_.s5(U,D);_.di(q)})};_.SL=new _.oV("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var sI=function(G,B,F,D){this.controller=G;this.JSC$18172_playerApiPromise=B;this.innertubeTransportService=F;this.JSC$18172_commandHandler=D};
_.r(sI,kh);
sI.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t;return _.n(function(T){if(T.nextAddress==1){F=_.Q(G,lpv);if((D=F)==null||!D.watchEndpoint)return T.return();u=new su;R=u.JSC$14488_getRequest(F.watchEndpoint);if(!R)return T.return();N=F.watchEndpoint.clickTrackingParams;return T.yield(_.rB(B.innertubeTransportService,R.innerTubeRequest,R.input,N,R.config),2)}if(T.nextAddress!=3)return y=T.yieldResult,T.yield(B.JSC$18172_playerApiPromise,3);U=T.yieldResult;U.updateVideoData({raw_watch_next_response:y});
if(L=(q=y)==null?void 0:(h=q.contents)==null?void 0:(K=h.twoColumnWatchNextResults)==null?void 0:(a=K.results)==null?void 0:(m=a.results)==null?void 0:m.contents)e=(W=L.find(function(A){return A.videoPrimaryInfoRenderer}))==null?void 0:W.videoPrimaryInfoRenderer,((b=e)==null?0:b.subtitle)&&yMU(B.controller,e.subtitle);
(t=(M=y)==null?void 0:M.onUiReady)&&B.JSC$18172_commandHandler.resolveCommand(t);_.di(T)})};
sI[ZA]=[_.SL,_.IQ,_.RF,_.Wr];var nk$=function(){this.subtitleChangeCallbackMap=new Map},yMU=function(G,B){G=_.C(G.subtitleChangeCallbackMap.values());
for(var F=G.next();!F.done;F=G.next())F=F.value,F(B)};var xJ=function(G,B){this.JSC$18182_commandHandler=G;this.innertubeTransportService=B};
_.r(xJ,kh);
xJ.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t;return _.n(function(T){switch(T.nextAddress){case 1:return(R=(D=B)==null?void 0:(u=D.form)==null?void 0:u.element)&&_.$L(R),N=_.D4().get("hl"),y="",_.b5(T,2),T.yield(wDL(N),4);case 4:y=T.yieldResult;_.oY(T,3);break;case 2:return _.Al(T),R&&_.zf(R),_.k2(Error("Mi"),"ERROR"),T.return();case 3:U=_.Q(G,r3s);if(!U)return R&&_.zf(R),T.return();(K=(q=U.commerceActionConfig)==null?void 0:(h=q.commandLifeCycleConfig)==null?
void 0:h.onStartCommand)&&F.JSC$18182_commandHandler.resolveCommand(K);return T.yield(_.$F(F.innertubeTransportService,G,{client_data:{paymentsClientToken:{token:y}}}),5);case 5:(a=T.yieldResult)?(R&&_.zf(R),((e=a)==null?0:e.command)&&F.JSC$18182_commandHandler.resolveCommand(a.command),(t=(b=U.commerceActionConfig)==null?void 0:(M=b.commandLifeCycleConfig)==null?void 0:M.onSuccessCommand)&&F.JSC$18182_commandHandler.resolveCommand(t)):(R&&_.zf(R),_.k2(Error("Ni")),(W=(m=U.commerceActionConfig)==
null?void 0:(L=m.commandLifeCycleConfig)==null?void 0:L.onFailureCommand)&&F.JSC$18182_commandHandler.resolveCommand(W)),_.di(T)}})};
xJ[ZA]=[_.Wr,_.RF];var P8=function(G,B,F){this.store=G;this.JSC$18198_commandHandler=B;this.innertubeTransportService=F};
_.r(P8,kh);
P8.prototype.resolveCommand=function(G,B){var F=this,D,u,R,N,y,U,q,h,K;return _.n(function(a){D=_.Q(G,WPq);u=D.googlePaymentPayload;D.onStartCommand&&F.JSC$18198_commandHandler.resolveCommand(D.onStartCommand);R=u.encryptedPurchaseParams;N=u.ypcLogWalletAnalyticDataEndpoint;y=D.serializedTransactionFlowLoggingParams;U=u.serializedPaymentsClientParams;q=D.ypcCujContext;K=yyl(F.innertubeTransportService,(h=B)==null?void 0:h.form,R,N,y,U,q);return a.return(K.then(function(m){CbQ(B==null?void 0:B.form,
!1);var L=F.store,W=F.JSC$18198_commandHandler,e=m.integratorData;e==null||e===""||m.error!=null?(String(m.error)==="-1"&&D.onDismissCommand?W.resolveCommand(D.onDismissCommand):String(m.error)!=="-1"&&D.onFailureCommand&&W.resolveCommand(D.onFailureCommand),String(m.error)!=="-1"&&String(m.error)!=="132"&&_.k2(Error("Oi"),"ERROR")):(D.googlePaymentEntityKey&&L.dispatch(_.wC("commerceAcquisitionClientPayloadEntity",D.googlePaymentEntityKey,{key:D.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:e,
fundsGuaranteeCallbackClientData:m.integratorClientCallbackData}}})),D.onSuccessCommand&&W.resolveCommand(D.onSuccessCommand));_.ZL()},function(m){CbQ(B==null?void 0:B.form,!1);
_.k2(m,"ERROR");D.onFailureCommand&&F.JSC$18198_commandHandler.resolveCommand(D.onFailureCommand)}))})};
P8[ZA]=[gN,_.Wr,_.RF];var G4=function(G,B){this.JSC$18202_commandHandler=G;this.purchaseManager=B};
_.r(G4,kh);
G4.prototype.resolveCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h;return _.n(function(K){F=_.Q(G,HLG);((D=F)==null?0:(u=D.commandLifeCycleConfig)==null?0:u.onStartCommand)&&B.JSC$18202_commandHandler.resolveCommand(F.commandLifeCycleConfig.onStartCommand);if(!((R=F)==null?0:(N=R.googlePaymentPurchaseManagerPayload)==null?0:N.securePayloadBytes))return _.k2(Error("Pi"),"ERROR"),K.return();y=Hkq(_.P6(F.googlePaymentPurchaseManagerPayload.securePayloadBytes));U=_.D4().get("hl");q=_.zn();SxH(y.serialize(),
U,function(a){q.resolve(a)},function(a){q.reject(a)},q.resolve);
h=q.promise;return K.return(h.then(function(a){if(a)if(a==null?0:a.errorCode){_.k2(Error("Qi`"+a.errorCode),"ERROR");var m,L;((m=F)==null?0:(L=m.commandLifeCycleConfig)==null?0:L.onFailureCommand)&&B.JSC$18202_commandHandler.resolveCommand(F.commandLifeCycleConfig.onFailureCommand)}else if(a==null?0:a.isCancelled){var W,e;((W=F)==null?0:(e=W.commandLifeCycleConfig)==null?0:e.onCancelCommand)&&B.JSC$18202_commandHandler.resolveCommand(F.commandLifeCycleConfig.onCancelCommand)}else{var b,M;((b=F)==
null?0:(M=b.commandLifeCycleConfig)==null?0:M.onSuccessCommand)&&B.JSC$18202_commandHandler.resolveCommand(F.commandLifeCycleConfig.onSuccessCommand)}},function(a){_.k2(a,"ERROR");
var m,L;((m=F)==null?0:(L=m.commandLifeCycleConfig)==null?0:L.onFailureCommand)&&B.JSC$18202_commandHandler.resolveCommand(F.commandLifeCycleConfig.onFailureCommand)}))})};
G4[ZA]=[_.Wr,so$];var lRz=function(G,B){this.JSC$18210_commandHandler=G;this.commandAllowlistOverride=B;var F;this.commandAllowlist=(F=this.commandAllowlistOverride)!=null?F:ZCS};
lRz.prototype.handleResponse=function(G,B,F){var D,u=B==null?void 0:(D=B.config)==null?void 0:D.command;if(!u||this.commandAllowlist.some(function(R){return!!_.Q(u,R)})){B=void 0;
F!==void 0&&(B={form:{element:F}});G.onResponseReceivedCommand&&this.JSC$18210_commandHandler.resolveCommand(G.onResponseReceivedCommand,B);G.onResponseReceivedAction&&this.JSC$18210_commandHandler.resolveCommand(G.onResponseReceivedAction,B);G.onResponseReceivedEndpoint&&this.JSC$18210_commandHandler.resolveCommand(G.onResponseReceivedEndpoint,B);G.command&&this.JSC$18210_commandHandler.resolveCommand(G.command,B);if(G.onResponseReceivedCommands)for(F=_.C(G.onResponseReceivedCommands),D=F.next();!D.done;D=
F.next())this.JSC$18210_commandHandler.resolveCommand(D.value,B);if(G.onResponseReceivedActions)for(F=_.C(G.onResponseReceivedActions),D=F.next();!D.done;D=F.next())this.JSC$18210_commandHandler.resolveCommand(D.value,B);if(G.onResponseReceivedEndpoints)for(F=_.C(G.onResponseReceivedEndpoints),D=F.next();!D.done;D=F.next())this.JSC$18210_commandHandler.resolveCommand(D.value,B);if(G.actions)for(G=_.C(G.actions),F=G.next();!F.done;F=G.next())this.JSC$18210_commandHandler.resolveCommand(F.value,B)}};
lRz[ZA]=[_.Wr,_.fH(tX8)];var UKG=new _.oV("INNERTUBE_TOKEN_SERVICE");var qKA=new _.oV("SCHEDULER_TOKEN");var EkN=function(G){this.scheduler=G;G={};this.tokenMap=(G.app={},G.user={},G)};
EkN.prototype.handleResponse=function(G,B){if(!B)throw Error("Ri");var F;if(G=(F=G.responseContext)==null?void 0:F.innertubeTokenJar){if(G.appTokens){var D,u,R;F=(D=B.innerTubeRequest.context)==null?void 0:(u=D.request)==null?void 0:(R=u.innertubeTokenJar)==null?void 0:R.appTokens;hF$(this,G.appTokens,this.tokenMap.app,F)}if(G.userTokens){var N,y,U;B=(N=B.innerTubeRequest.context)==null?void 0:(y=N.request)==null?void 0:(U=y.innertubeTokenJar)==null?void 0:U.userTokens;hF$(this,G.userTokens,this.tokenMap.user,
B)}}};
EkN.prototype.processContext=function(G){G.request||(G.request={});var B=Object.keys(this.tokenMap.app).length,F=Object.keys(this.tokenMap.user).length;if(B||F)G.request.innertubeTokenJar={},B&&(G.request.innertubeTokenJar.appTokens=[].concat(_.gi(Object.values(this.tokenMap.app).flat()))),F&&(G.request.innertubeTokenJar.userTokens=[].concat(_.gi(Object.values(this.tokenMap.user).flat())))};
var hF$=function(G,B,F,D){B=_.C(B);for(var u=B.next(),R={};!u.done;R={token$jscomp$139:void 0},u=B.next()){R.token$jscomp$139=u.value;if(R.token$jscomp$139.type===void 0)throw new _.Uf("InnerTube token has no type",R.token$jscomp$139);if(R.token$jscomp$139.clearTokens)F[R.token$jscomp$139.type]=[];else if(R.token$jscomp$139.value!==void 0){F[R.token$jscomp$139.type]||(F[R.token$jscomp$139.type]=[]);if(D!==void 0&&D.length){u=_.C(D);for(var N=u.next(),y={};!N.done;y={requestToken:void 0},N=u.next())y.requestToken=
N.value,N=F[R.token$jscomp$139.type].findIndex(function(U){return function(q){return q===U.requestToken||(0,_.UK.equals)(q,U.requestToken)}}(y)),N>-1&&F[R.token$jscomp$139.type].splice(N,1)}F[R.token$jscomp$139.type].push(R.token$jscomp$139);
R.token$jscomp$139.maxAgeSeconds&&Number(R.token$jscomp$139.maxAgeSeconds)>0&&G.scheduler.addLowPriorityJob(function(U){return function(){var q=F[U.token$jscomp$139.type].indexOf(U.token$jscomp$139);q>-1&&F[U.token$jscomp$139.type].splice(q,1)}}(R),Number(R.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Uf("InnerTube token has no value",R.token$jscomp$139);
}};
EkN[ZA]=[qKA];var KGN=new _.oV("LOCAL_INNERTUBE_ROUTER_TOKEN"),aRU=new _.oV("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Bg=function(G){this.serviceMap=G};
Bg.prototype.shouldPreferLocalResponse=function(G,B){return(G=mKB(this,G))?G.shouldPreferLocalResponse(B):!1};
Bg.prototype.localInnertubeResponse=function(G,B){var F=this,D;return _.n(function(u){return(D=mKB(F,G))?u.return(D.localInnertubeResponse(B)):u.return(Promise.reject(Error("Si")))})};
Bg.prototype.canProvideFallbackResponse=function(G,B){return(G=mKB(this,G))?G.canProvideFallbackResponse(B):!1};
Bg.prototype.localFallbackInnertubeResponse=function(G,B){var F=this,D;return _.n(function(u){return(D=mKB(F,G))?u.return(D.localFallbackInnertubeResponse(B)):u.return(Promise.reject(Error("Si")))})};
var mKB=function(G,B){B=_.Ik(B);return B?(G=G.serviceMap[B])?G:null:null};
Bg[ZA]=[aRU];var U$=function(){};
U$.prototype.shouldPreferLocalResponse=function(){return!1};
U$.prototype.localInnertubeResponse=function(){return _.n(function(G){return G.return(Promise.reject(Error("Ti")))})};
U$.prototype.canProvideFallbackResponse=function(){return!0};
U$.prototype.localFallbackInnertubeResponse=function(){var G,B,F;return _.n(function(D){G=B0("CLOSE_POPUP");B={openPopupAction:l2o()};F={actions:[G,B]};return D.return(F)})};var Hfl=function(G,B){this.JSC$18259_upliftPromise=G;this.store=B};
_.w=Hfl.prototype;_.w.shouldPreferLocalResponse=function(G){var B=G.videoId,F;if(F=B)F=AWz(this.store.getState().entities,G.videoId);return F&&dRo(this.store.getState().entities,B)?qQo(this.store.getState().entities,G.playlistId):!1};
_.w.localInnertubeResponse=function(G){var B=this,F;return _.n(function(D){return(F=B.getPlayerResponse(G))?D.return(Promise.resolve(F)):D.return(Promise.reject(Error("Ui")))})};
_.w.canProvideFallbackResponse=function(G){return!!G.videoId};
_.w.localFallbackInnertubeResponse=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.JSC$18259_upliftPromise,2);F=B.getPlayerResponse(G);var u;F?u=D.return(Promise.resolve(F)):u=w8(B.store.getState().entities,G.videoId)?D.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.pR(_.G7("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:EcJ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
D.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.pR(_.G7("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:qbI()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return u})};
_.w.getPlayerResponse=function(G){return UvM(this.store.getState().entities,G.videoId)};var lQ=function(G,B){this.localPlayerService=G;this.localWatchNextService=B};
lQ.prototype.shouldPreferLocalResponse=function(G){var B=G.playerRequest;G=G.watchNextRequest;return!!(B&&this.localPlayerService.shouldPreferLocalResponse(B)&&G&&this.localWatchNextService.shouldPreferLocalResponse(G))};
lQ.prototype.localInnertubeResponse=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1){F=G.playerRequest;D=G.watchNextRequest;if(!F||!D)throw new _.Uf("Missing streaming request",G);return N.yield(B.localPlayerService.localInnertubeResponse(F),2)}if(N.nextAddress!=3)return u=N.yieldResult,N.yield(B.localWatchNextService.localInnertubeResponse(D),3);R=N.yieldResult;return N.return({playerResponse:u,watchNextResponse:R})})};
lQ.prototype.canProvideFallbackResponse=function(G){var B=G.playerRequest;G=G.watchNextRequest;return!!(B&&this.localPlayerService.canProvideFallbackResponse(B)&&G&&this.localWatchNextService.canProvideFallbackResponse(G))};
lQ.prototype.localFallbackInnertubeResponse=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return F=G.playerRequest,D=G.watchNextRequest,F&&D?N.yield(B.localPlayerService.localFallbackInnertubeResponse(F),2):N.return(Promise.reject(new _.Uf("Missing streaming request",G)));if(N.nextAddress!=3)return u=N.yieldResult,N.yield(B.localWatchNextService.localFallbackInnertubeResponse(D),3);R=N.yieldResult;return N.return({playerResponse:u,watchNextResponse:R})})};var Nt=function(G){this.JSC$18269_persistentStorePromiseAccessor=G};
Nt.prototype.shouldPreferLocalResponse=function(){return!1};
Nt.prototype.localInnertubeResponse=function(){return _.n(function(G){return G.return(Promise.reject(Error("Vi")))})};
Nt.prototype.canProvideFallbackResponse=function(){return!0};
Nt.prototype.localFallbackInnertubeResponse=function(){var G=this,B,F;return _.n(function(D){return D.nextAddress==1?D.yield(G.JSC$18269_persistentStorePromiseAccessor(),2):D.nextAddress!=3?(B=D.yieldResult)?D.yield(B.get("service:guide:fallback"),3):D.return(Promise.reject(Error("Wi"))):(F=D.yieldResult)&&_.tm(F)?D.return(EUg(_.tm(F))):D.return(Promise.reject(Error("Xi")))})};var qt=function(){};
qt.prototype.shouldPreferLocalResponse=function(){return!1};
qt.prototype.localInnertubeResponse=function(){return _.n(function(G){return G.return(Promise.reject(Error("Yi")))})};
qt.prototype.canProvideFallbackResponse=function(){return!0};
qt.prototype.localFallbackInnertubeResponse=function(){var G,B,F;return _.n(function(D){G=B0("CLOSE_POPUP");B={openPopupAction:l2o()};F={actions:[G,B]};return D.return(F)})};var Cx=function(){this.urlMap=Xe$;this.fallbackCommand=_.F5};
Cx.prototype.shouldPreferLocalResponse=function(G){return(G=G.url)?!!QiD(this,G):!1};
Cx.prototype.localInnertubeResponse=function(G){var B=this,F;return _.n(function(D){return(F=G.url)?D.return(jiQ(G,QiD(B,F))):D.return(Promise.reject(Error("Zi")))})};
Cx.prototype.canProvideFallbackResponse=function(){return!0};
Cx.prototype.localFallbackInnertubeResponse=function(G){var B=this,F,D,u,R,N,y,U;return _.n(function(q){F=G.url;if(!F)return q.return(jiQ(G,B.fallbackCommand));if(D=QiD(B,F))return q.return(jiQ(G,D));u=void 0;R=_.Ik(F);R==="/watch"&&(N=_.Be(F,"v"))&&(U=(y=_.Be(F,"list"))!=null?y:void 0,u=_.Ma(N,U));u||(u=B.fallbackCommand);return q.return(jiQ(G,u))})};
var QiD=function(G,B){if(B)return G.urlMap[_.fS(B)]},jiQ=function(G,B){B&&G.parentTrackingParams&&(B.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:G.parentTrackingParams}},B.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:B})};var yG=function(G,B,F){this.JSC$18280_upliftPromise=G;this.store=B;this.JSC$18280_persistentStorePromiseAccessor=F};
yG.prototype.shouldPreferLocalResponse=function(){return!1};
yG.prototype.localInnertubeResponse=function(){return _.n(function(G){return G.return(Promise.reject(Error("$i")))})};
yG.prototype.canProvideFallbackResponse=function(){return!0};
yG.prototype.localFallbackInnertubeResponse=function(){var G=this;return _.n(function(B){return B.return(LGZ(G))})};
var LGZ=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(fz(G.JSC$18280_upliftPromise,G.store),2);B=D.yieldResult;F={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[UJL(B)]}}}};return D.return(rMZ(G,F))})},rMZ=function(G,B){var F,D;
return _.n(function(u){if(u.nextAddress==1)return u.yield(G.JSC$18280_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return F=u.yieldResult,u.yield(Zb(F),3);D=u.yieldResult;return u.return({responseContext:{},contents:B,topbar:D})})};var RC=function(G,B,F){this.JSC$18287_upliftPromise=G;this.store=B;this.JSC$18287_persistentStorePromiseAccessor=F};
RC.prototype.shouldPreferLocalResponse=function(G){var B=G.videoId;return B&&AWz(this.store.getState().entities,B)&&dRo(this.store.getState().entities,B)?qQo(this.store.getState().entities,G.playlistId):!1};
RC.prototype.localInnertubeResponse=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1)return(F=G.videoId)?u.yield(B.JSC$18287_upliftPromise,2):u.return(Promise.reject(Error("aj")));if(u.nextAddress!=3)return u.yield(WG2(B,G,F),3);D=u.yieldResult;return u.return(HTS(B,D,F))})};
RC.prototype.canProvideFallbackResponse=function(G){return G.videoId?!0:!1};
RC.prototype.localFallbackInnertubeResponse=function(G){var B=this,F,D,u,R;return _.n(function(N){switch(N.nextAddress){case 1:return(F=G.videoId)?N.yield(B.JSC$18287_upliftPromise,2):N.return(Promise.reject(Error("aj")));case 2:return N.yield(WG2(B,G,F),3);case 3:D=N.yieldResult;if(w8(B.store.getState().entities,F)){N.jumpTo(4);break}return N.yield(fz(B.JSC$18287_upliftPromise,B.store),5);case 5:return u=N.yieldResult,N.return(k2A(D,u));case 4:return AWz(B.store.getState().entities,F)&&dRo(B.store.getState().entities,
F)?N.return(HTS(B,D,F)):(R={title:_.pR(_.G7("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:EcJ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},N.return(k2A(D,R)))}})};
var WG2=function(G,B,F){var D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return D=B.playlistId,u=_.Ma(F,D),U.yield(G.JSC$18287_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return R=U.yieldResult,U.yield(Zb(R),3);N=U.yieldResult;y={responseContext:{},currentVideoEndpoint:u,topbar:N};return U.return(y)})},HTS=function(G,B,F){if(G=w8(G.store.getState().entities,F)){var D;
F=G.videoEntity;var u,R={title:YI(F.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.AJ((D=F.localizedStrings)==null?void 0:D.viewCount),viewCount:_.AJ((u=F.localizedStrings)==null?void 0:u.viewCount)}}};F.publishedTimestampMillis&&(R.dateText=_.AJ(vjS(new Date(Number(F.publishedTimestampMillis)))));D={videoPrimaryInfoRenderer:R};u=G.videoEntity;G=G.channelEntity;G={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:YI(_.G7("SHOW_MORE",void 0,"Show more")),
showLessText:YI(_.G7("SHOW_LESS",void 0,"Show less")),description:u.formattedDescription,owner:{videoOwnerRenderer:{title:YI(G.title),thumbnail:G.avatar}}}};B.contents={twoColumnWatchNextResults:{results:{results:{contents:[D,G]}}}}}return B},k2A=function(G,B){G.contents={singleColumnWatchNextResults:{results:{results:{contents:[UJL(B)]}}}};
return G};var nx=function(G,B,F){this.JSC$18292_upliftPromise=G;this.store=B;this.JSC$18292_persistentStorePromiseAccessor=F};
nx.prototype.shouldPreferLocalResponse=function(){return!1};
nx.prototype.localInnertubeResponse=function(){return _.n(function(G){return G.return(Promise.reject(Error("bj")))})};
nx.prototype.canProvideFallbackResponse=function(){return!0};
nx.prototype.localFallbackInnertubeResponse=function(){var G=this,B,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return R.yield(G.JSC$18292_persistentStorePromiseAccessor(),2);case 2:return B=R.yieldResult,R.yield(Zb(B),3);case 3:return F=R.yieldResult,D={responseContext:{},topbar:F},R.yield(G.JSC$18292_upliftPromise,4);case 4:return R.yield(fz(G.JSC$18292_upliftPromise,G.store),5);case 5:return u=R.yieldResult,D.watchStatus={backgroundPromoRenderer:u},R.return(D)}})};var OT$=new _.oV("ENDPOINT_MAP"),eFQ=new _.oV("WATCH_ENDPOINT_MAP"),$KD=new _.oV("REEL_ENDPOINT_MAP");var QwL=/^[a-zA-Z0-9_\-]{11}$/;var jwo=_.El(function(){var G,B;return(B=(G=window).matchMedia)==null?void 0:B.call(G,"(prefers-reduced-motion: reduce)").matches});var zF2=_.El(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 G=_.Yf("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");G||(G=_.G_("VIDEO"),_.IY("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
G));return!!(G&&G.canPlayType&&G.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var bTA=XMLHttpRequest.prototype.fetch,VyQ=bTA&&bTA.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!cQ?!0:!1;var iH=function(G){this.JSC$18303_storeWithEntities=G};
_.r(iH,a5);_.w=iH.prototype;_.w.getApiPaths=function(){return K4T};
_.w.getExtension=function(G){return _.Q(G,_.Ow)||_.Q(G,_.Fu)||_.Q(G,Nla)};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14495_getStoreKey=function(G){if((_.X("kevlar_cache_on_ttl_player")||_.X("mweb_enable_shorts_innertube_player_prefetch")||_.X("mweb_use_new_history_manager")||_.X("web_shorts_prefetch_service_enabled"))&&(G=this.getExtension(G))&&G.videoId){var B={videoId:G.videoId};G.playlistId&&(B.playlistId=G.playlistId);G.playerParams&&(B.params=G.playerParams);return _.ky("player",B)}};
_.w.JSC$14488_getClientScreen=function(G){var B;return((B=G.contentPlaybackContext)==null?void 0:B.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.w.JSC$14488_buildRequest=function(G,B,F){if(_.X("enable_interstitial_entity_check")){var D=this.JSC$18303_storeWithEntities;if(B.videoId)for(var u=_.C(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),R=u.next();!R.done;R=u.next()){R=R.value;var N;var y=void 0,U=void 0,q=B.videoId,h=R;(N=D)?(q=_.Z4(q+h,"interstitialInteractionStateEntity"),N=(y=(U=_.g5(N.getState().entities,"interstitialInteractionStateEntity",q))==null?void 0:U.primaryButtonClicked)!=null?y:!1):N=!1;if(N)switch(R){case "CONTENT_CHECK_REQUIRED":B.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":B.racyCheckOk=!0}}}B.videoId&&(G.videoId=B.videoId);B.playlistId&&(G.playlistId=B.playlistId);B.index!==void 0&&(G.playlistIndex=B.index+1);B.playerParams&&(G.params=B.playerParams);"startTimeSeconds"in B&&B.startTimeSeconds&&(_.X("enable_player_request_builder_start_time_floor")?G.startTimeSecs=Math.floor(B.startTimeSeconds):G.startTimeSecs=B.startTimeSeconds);F.contentPlaybackContext&&(G.playbackContext={contentPlaybackContext:F.contentPlaybackContext});F.prefetchPlaybackContext&&
(G.playbackContext=Object.assign({},G.playbackContext,{prefetchPlaybackContext:F.prefetchPlaybackContext}),G.context.request||(G.context.request={}),G.context.request.isPrefetch=!0);G.playbackContext||(G.playbackContext={});D=zF2();G.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!D,supportXhr:VyQ};F.overrideMutedAtStart&&(G.overrideMutedAtStart=F.overrideMutedAtStart);G.racyCheckOk=!!B.racyCheckOk;G.contentCheckOk=!!B.contentCheckOk;!_.X("captions_prefs_killswitch")&&(F=(F=_.np("yt-player-caption-language-preferences"))?
F:[],F==null?0:F.length)&&(G.captionParams={viewerSelectedCaptionLangs:F})};
_.w.getRequestConfig=function(G){G=this.JSC$14495_getStoreKey(G);var B;G&&(B={storeStrategy:{storeKey:G}});_.X("web_log_player_watch_next_ticks")&&(B=B||{},B.requestTick="ps_s",B.responseTick="ps_r");return B};
iH[ZA]=[gN];var Ff=function(G,B){this.playerRequestBuilder=G;this.watchNextRequestBuilder=B};
_.r(Ff,a5);Ff.prototype.getApiPaths=function(){return RhU};
Ff.prototype.getExtension=function(G){return _.Q(G,_.Ow)};
Ff.prototype.isNavigationCommand=function(){return!0};
Ff.prototype.JSC$14488_buildRequest=function(G,B,F){G.playerRequest={};this.playerRequestBuilder.JSC$14488_buildRequest(G.playerRequest,B,F);if(_.X("web_streaming_watch")||_.X("mweb_streaming_watch"))G.watchNextRequest={},this.watchNextRequestBuilder.JSC$14488_buildRequest(G.watchNextRequest,B,F)};
Ff[ZA]=[iH,su];var vkA;_.DG=new _.oV("SHORTS_CONTROLLER_TOKEN");vkA=new _.oV("SHORTS_STATE_STORE_TOKEN");var uH=function(G,B){var F=_.xS.apply(2,arguments);G=G===void 0?0:G;_.Uf.call(this,B,F);this.errorType=G;Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(uH,_.Uf);var okD,MyG,peQ,OfQ,O$,JgG,dK$,AMG,fRD,TqS,cMZ;okD=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(G){return G+"="}).join("|"));
MyG=RegExp(".*\\?.*playnext=1.*");peQ=function(G,B,F,D,u,R){this.watchEndpointMap=G;this.reelWatchEndpointMap=B;this.innerTubeTransportService=F;this.fetchPbj=D;this.ephemeralStore=u;this.reloadOnPlayerFailure=R===void 0?!0:R};
_.YK$=function(G,B){var F=_.sD("web_pbj_log_warning_rate",0);F=F>0&&Math.random()<F;var D;if((D=_.Q(B.commandMetadata,_.xy))==null||!D.rootVe)return F&&_.em(Error("gj")),!1;var u;D=(u=_.Q(B.commandMetadata,_.xy))==null?void 0:u.url;if(!D)return F&&_.em(Error("hj")),!1;if(MyG.test(D))return!0;if(okD.test(D))return F&&_.em(Error("ij`"+D)),!1;if(_.Q(B,_.Ow)){if(!(G.watchEndpointMap.watchNext&&G.watchEndpointMap.player||_.X("kevlar_fetch_initial_data_op_watch_client")))return F&&_.em(Error("cj")),!1;
G=_.sD("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;_.Q(B,_.Ow)?mJs(B)?B=!0:(G&&_.em(Error("dj")),B=!1):(G&&_.em(Error("cj")),B=!1);return B}if(_.Q(B,_.Fu))return XDL(B);if(_.Q(B,_.a1))return!0;G=_.eo(G.innerTubeTransportService,B);!G&&F&&_.k2(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(B)});return G};
OfQ=function(G,B,F,D,u,R){B={url:B};if(F==null?0:F.itct)B.parentTrackingParams=F.itct;var N=_.v2(HDa);return _.rB(G.innerTubeTransportService,B,N).then(function(y){(y=y.endpoint)||(y=_.F5);(F==null?0:F.itct)&&y&&!y.trackingParams&&(y.trackingParams=F.itct);var U=GB(y);return O$(G,y,F,D,U,u,R)})};
O$=function(G,B,F,D,u,R,N,y){y=y===void 0?{}:y;if(G.fetchPbj&&!_.YK$(G,B)&&!_.X("force_one_platform")){var U=G.fetchPbj(B),q=_.ZL(U.then(function(Z){if(!Z)throw Error("kj");N(q)||R(B,Z);return Z}));
return q}var h,K,a={rootVe:(h=_.Q(B.commandMetadata,_.xy))==null?void 0:h.rootVe,url:(K=_.Q(B.commandMetadata,_.xy))==null?void 0:K.url,endpoint:B,page:u};if(_.Q(B,_.Ow)){var m,L={contentPlaybackContext:_.Sg(F,(m=_.Q(B.commandMetadata,_.xy))==null?void 0:m.url,D)},W=_.zn(),e,b=(e=G.watchEndpointMap.player)==null?void 0:e().JSC$14495_getStoreKey(B);e=b!==void 0&&((U=G.ephemeralStore)==null?void 0:U.has(b));(_.X("web_streaming_watch")||_.X("mweb_streaming_watch"))&&window.TextDecoderStream&&!e?(U=ivq(G.innerTubeTransportService,
B,L,function(Z){!a.response&&Z.content&&(a.response=Z.content);!a.playerResponse&&Z.player&&(a.playerResponse=Z.player);R(B,a)}),b=d_J(B),b.length&&(a.preconnect=b,R(B,a)),AMG(U,W,a).catch(function(Z){Z instanceof uH&&Z.errorType===2&&_.X("web_streaming_watch_fallback")&&dK$(G,B,L,a,R,N,W)})):dK$(G,B,L,a,R,N,W);
return W.promise}if(_.Q(B,_.Fu)){var M;if(((M=_.Q(B,_.Fu))==null?void 0:M.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var t=_.zn();_.JMD(_.te().resolve(_.DG),B).then(function(Z){cMZ(G,F,D,u,R,t,Z)});
return t.promise}U=_.ZL();e={contentPlaybackContext:_.Sg(F,(b=_.Q(B.commandMetadata,_.xy))==null?void 0:b.url,D)};(b=G.reelWatchEndpointMap.player)&&(b=b().JSC$14488_getRequest(B,e))&&(U=_.rB(G.innerTubeTransportService,b.innerTubeRequest,b.input,B.clickTrackingParams,b.config));b=_.ZL();(y=G.reelWatchEndpointMap.reelItemWatch)&&(y=y().JSC$14488_getRequest(B))&&(b=_.rB(G.innerTubeTransportService,y.innerTubeRequest,y.input,B.clickTrackingParams,y.config));y=_.ZL();(h=G.reelWatchEndpointMap.reelWatchSequence)&&
_.Q(B,_.Fu).sequenceParams&&(e=h().JSC$14488_getRequest(B,e))&&(y=_.rB(G.innerTubeTransportService,e.innerTubeRequest,e.input,B.clickTrackingParams,e.config));e=_.ZL(a);h=_.zn();TqS(B,e,U,b,y,R,N,h);return h.promise}var T;if(_.Q(B,PeJ)&&((T=_.Q(B.commandMetadata,_.xy))==null?0:T.url))return U=BpQ(_.pn(EK().location.href),_.pn(_.Q(B.commandMetadata,_.xy).url)).toString(),OfQ(G,U,F,D,R,function(){return!1});
if(_.Q(B,_.a1))return R(B,a),_.ZL(a);if(_.eo(G.innerTubeTransportService,B)){U=Object.assign({},{tempData:F,disableCache:F.disableCache},y);var A=_.$F(G.innerTubeTransportService,B,U).then(function(Z){a.response=Z;N(A)||R(B,a);return a});
return A}return _.ZL(a)};
_.IRZ=function(G,B,F,D){if(_.Q(B,_.Ow)||_.Q(B,_.Fu)&&(_.X("mweb_enable_shorts_innertube_player_prefetch")||_.X("kevlar_enable_shorts_prefetch_in_sequence"))||_.Q(B,Nla)&&_.X("web_enable_prefetching_videos_on_home")){var u,R={contentPlaybackContext:_.Sg(F,(u=_.Q(B.commandMetadata,_.xy))==null?void 0:u.url,D),prefetchPlaybackContext:ryI(F)},N,y,U;if(((N=_.Q(B,_.Ow))==null?void 0:(y=N.watchEndpointSupportedPrefetchConfig)==null?void 0:(U=y.prefetchHintConfig)==null?void 0:U.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(F=
G.watchEndpointMap.watchNext)if(R=F().JSC$14488_getRequest(B,R))return Promise.resolve(_.rB(G.innerTubeTransportService,R.innerTubeRequest,R.input,void 0,R.config).then(function(K){return K}))}else if(F=G.watchEndpointMap.player)if(R=F().JSC$14488_getRequest(B,R))return Promise.resolve(_.rB(G.innerTubeTransportService,R.innerTubeRequest,R.input,void 0,R.config).then(function(K){return K}))}else if(_.eo(G.innerTubeTransportService,B)){var q={tempData:F},h=SMt(G.innerTubeTransportService,B);
return h?new Promise(function(K,a){var m,L;return _.n(function(W){if(W.nextAddress==1)return W.yield(h,2);if(W.nextAddress!=4)return m=W.yieldResult,m.JSC$14495_getStoreKey(B,q)?W.yield(_.$F(G.innerTubeTransportService,B,q),4):(a(new _.Uf("Prefetching request builder with no store key.",B)),W.jumpTo(0));L=W.yieldResult;K(L);_.di(W)})}):Promise.reject(new _.Uf("Prefetching unregistered request builder.",B))}return Promise.reject(new _.Uf("No request builder available to prefetch endpoint.",B))};
JgG=function(G,B){var F,D,u;if(_.Q(B,_.Ow)){var R=G.watchEndpointMap.watchNext;R&&(F=R());(G=G.watchEndpointMap.player)&&(D=G())}else if(_.Q(B,_.Fu))(R=G.reelWatchEndpointMap.reelItemWatch)&&(F=R()),(R=G.reelWatchEndpointMap.player)&&(D=R()),(G=G.reelWatchEndpointMap.reelWatchSequence)&&(u=G());else{a:{G=eC8(B,G.innerTubeTransportService.endpointMap);if(G!==void 0)if(typeof G.then==="function")_.k2(new _.Uf("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",B));else break a;
G=void 0}G&&(F=G)}var N,y,U;return{content:(N=F)==null?void 0:N.JSC$14495_getStoreKey(B),player:(y=D)==null?void 0:y.JSC$14495_getStoreKey(B),reelSequence:(U=u)==null?void 0:U.JSC$14495_getStoreKey(B)}};
dK$=function(G,B,F,D,u,R,N){var y=_.ZL(),U=G.watchEndpointMap.player;_.X("web_streaming_player")&&(U=LA(Ff));U&&(U=U().JSC$14488_getRequest(B,F))&&(y=_.rB(G.innerTubeTransportService,U.innerTubeRequest,U.input,B.clickTrackingParams,U.config));U=_.ZL();var q=G.watchEndpointMap.watchNext;q&&(F=q().JSC$14488_getRequest(B,F))&&(U=_.rB(G.innerTubeTransportService,F.innerTubeRequest,F.input,B.clickTrackingParams,F.config));D=_.ZL(D);fRD(G,B,D,y,U,u,R,N)};
AMG=function(G,B,F){var D;return _.n(function(u){if(u.nextAddress==1)return u.yield(G,2);_.X("web_streaming_watch_delay_200")||_.X("web_streaming_watch_delay_400")?(D=_.X("web_streaming_watch_delay_200")?200:400,setTimeout(function(){B.resolve(F)},D)):B.resolve(F);
_.di(u)})};
fRD=function(G,B,F,D,u,R,N,y){var U,q,h,K,a;_.n(function(m){switch(m.nextAddress){case 1:return m.yield(F,2);case 2:U=m.yieldResult;if(N(y.promise))return y.resolve(U),m.return();R(B,U);q=d_J(B);if(!q.length){m.jumpTo(3);break}return m.yield(F,4);case 4:U.preconnect=q,R(B,U);case 3:return _.b5(m,5),m.yield(D,7);case 7:h=m.yieldResult;_.oY(m,6);break;case 5:return K=_.Al(m),y.reject(K),m.return();case 6:if(h===void 0&&G.reloadOnPlayerFailure)return U.reload=!0,R(B,U),y.resolve(U),m.return();if(N(y.promise))return y.resolve(U),
m.return();U.playerResponse=h;R(B,U);(_.X("web_watch_stop_scheduler_on_player_response")||_.X("mweb_watch_stop_scheduler_on_player_response"))&&yJt();_.b5(m,8);return m.yield(u,10);case 10:a=m.yieldResult;_.oY(m,9);break;case 8:_.Al(m);case 9:if(a===void 0)return U.response={responseContext:{}},y.resolve(U),m.return();if(N(y.promise))return y.resolve(U),m.return();U.response=a;R(B,U);y.resolve(U);_.di(m)}})};
TqS=function(G,B,F,D,u,R,N,y){var U,q,h,K,a,m;_.n(function(L){switch(L.nextAddress){case 1:return L.yield(B,2);case 2:U=L.yieldResult;if(N(y.promise))return y.resolve(U),L.return();R(G,U);q=d_J(G);if(!q.length){L.jumpTo(3);break}return L.yield(B,4);case 4:U.preconnect=q,R(G,U);case 3:return _.b5(L,5),L.yield(F,7);case 7:h=L.yieldResult;_.oY(L,6);break;case 5:return K=_.Al(L),y.reject(K),L.return();case 6:if(h===void 0)return U.reload=!0,R(G,U),y.resolve(U),L.return();if(N(y.promise))return y.resolve(U),
L.return();U.playerResponse=h;R(G,U);(_.X("web_shorts_stop_scheduler_on_player_response")||_.X("mweb_shorts_stop_scheduler_on_player_response"))&&yJt();_.b5(L,8);return L.yield(D,10);case 10:a=L.yieldResult;_.oY(L,9);break;case 8:_.Al(L);case 9:if(a===void 0)return U.response={responseContext:{}},y.resolve(U),L.return();if(N(y.promise))return y.resolve(U),L.return();U.response=a;R(G,U);_.b5(L,11);return L.yield(u,13);case 13:m=L.yieldResult;_.oY(L,12);break;case 11:_.Al(L);case 12:if(N(y.promise))return y.resolve(U),
L.return();m&&(U.reelWatchSequenceResponse=m);R(G,U);y.resolve(U);_.di(L)}})};
cMZ=function(G,B,F,D,u,R,N){var y,U,q,h,K,a;_.n(function(m){if((y=N)==null||!y.replacementEndpoint)return R.reject(),m.return();U=N.replacementEndpoint;(q=_.Q(U,_.Fu))?(N.sequenceContinuation&&(q.sequenceParams=N.sequenceContinuation),h=_.te().resolve(_.DG),K=q.sequenceParams,tyD(h,U)&&delete q.sequenceParams,a=O$(G,U,B,F,D,u,function(){return!1}),a.then(function(L){return _.n(function(W){if(W.nextAddress==1)return ZTQ(h,{reelWatchEndpoint:{sequenceParams:K}},L),W.yield(0,2);
R.resolve(L);_.di(W)})})):R.reject();
_.di(m)})};
peQ[ZA]=[eFQ,$KD,_.RF,_.fH(fPU),_.fH(_.tf)];var gkB=function(){var G=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return G.sequenceMap}}},F8N=function(G,B,F){var D,u=(D=B.config)==null?void 0:D.sequenceStrategy;
if(!u)return F();G.sequenceMap.has(u.sequenceKey)||G.sequenceMap.set(u.sequenceKey,[]);G=G.sequenceMap.get(u.sequenceKey);switch(u.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return SKz(G,B,F);case "REQUEST_SEQUENCE_TYPE_REPLACE":return si$(G,B,F);default:throw new _.Uf("Request could not be sequenced",B);}},SKz=function(G,B,F){var D,u,R;
return _.n(function(N){G.length>0?(u=G[G.length-1],D=u.responsePromise.then(function(){return F()})):D=F();
R={request:B,responsePromise:D};G.push(R);xKZ(G,R);return N.return(R.responsePromise)})},si$=function(G,B,F){F=F();
if(G.length>0)for(var D=_.C(G),u=D.next();!u.done;u=D.next())u.value.responsePromise=F;var R={request:B,responsePromise:F};G.push(R);xKZ(G,R);return Promise.resolve().then(function(){return G.indexOf(R)>0?R.responsePromise.then(function(N){return Object.assign({},N,{sequenceMetaData:{skipProcessing:!0}})}):R.responsePromise})},xKZ=function(G,B){B.responsePromise.then(function(){var F=G.indexOf(B);
F>-1&&G.splice(F,1)})};var PBU=new _.oV("REQUEST_SEQUENCING");var R2=function(){};
_.r(R2,a5);R2.prototype.getApiPaths=function(){return[]};
R2.prototype.getExtension=function(G){return _.Q(G,Y78)};
R2.prototype.JSC$14488_buildRequest=function(G,B){G.recaptchaToken=B.recaptchaToken};
R2.prototype.getApiUrl=function(){return"/das_captcha"};var wG=function(){};
_.r(wG,a5);wG.prototype.getApiPaths=function(){return HFs};
wG.prototype.getExtension=function(G){return _.Q(G,azq)};
wG.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.createBackstagePostParams&&(G.createBackstagePostParams=B.createBackstagePostParams);F.comment_text&&(G.commentText=F.comment_text);if(F.attached_video_id)G.videoAttachment={videoId:F.attached_video_id};else if(F.image_poll_options)G.pollAttachmentData={options:F.image_poll_options};else if(F.poll_options)G.pollAttachment={choices:F.poll_options};else if(F.quiz_options)G.quizAttachmentData={options:F.quiz_options};else if(F.image_blob_id)G.imageAttachment=
{encryptedBlobId:F.image_blob_id},F.source_video_id&&(G.imageAttachment.sourceExternalVideoId=F.source_video_id),F.image_preview_coordinates&&(G.imageAttachment.previewCoordinates=JSON.parse(F.image_preview_coordinates));else if(F.images_data)G.imagesAttachment={imagesData:F.images_data};else if(F.clip_external_video_id!==void 0||F.clip_offset_ms!==void 0||F.clip_duration_ms!==void 0){var D,u,R,N,y;G.clipAttachment={externalVideoId:(R=F.clip_external_video_id)!=null?R:"",offsetMs:(N=(D=F.clip_offset_ms)==
null?void 0:D.toString())!=null?N:"",durationMs:(y=(u=F.clip_duration_ms)==null?void 0:u.toString())!=null?y:""}}else F.shared_post_id&&(G.sharedPostAttachment={postId:F.shared_post_id});F.tagged_video_id&&(G.postCreationData={taggedVideoId:F.tagged_video_id});F.access_restrictions&&(typeof F.access_restrictions==="number"&&(B=F.access_restrictions,G.accessRestrictions={restriction:B!==1&&B===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof F.access_restrictions==="string"&&
(G.accessRestrictionsParams=F.access_restrictions));F.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=F.scheduled_publish_time_sec.toString())};var Cs=function(){};
_.r(Cs,a5);Cs.prototype.getApiPaths=function(){return VPN};
Cs.prototype.getExtension=function(G){return _.Q(G,Xjy)};
Cs.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.decorateMessageParams&&(G.params=B.decorateMessageParams);F.text&&(G.text=F.text)};var NG=function(){};
_.r(NG,a5);NG.prototype.getApiPaths=function(){return GQL};
NG.prototype.getExtension=function(G){return _.Q(G,mQt)};
NG.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;F.video_id&&(G.videoId=F.video_id)};var ym=function(){};
_.r(ym,a5);ym.prototype.getApiPaths=function(){return uNL};
ym.prototype.getExtension=function(G){return _.Q(G,_.sw)};
ym.prototype.JSC$14488_buildRequest=function(G,B,F){F.suggestions_query&&(G.input=F.suggestions_query)};var ns=function(){};
_.r(ns,a5);ns.prototype.getApiPaths=function(){return YLP};
ns.prototype.getExtension=function(G){return _.Q(G,XLt)};
ns.prototype.JSC$14488_buildRequest=function(G,B,F){F.comment_text!==void 0&&(G.commentText=F.comment_text);F.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=F.scheduled_publish_time_sec.toString());G.updateBackstagePostParams=B.updateBackstagePostParams};var lH=function(){};
_.r(lH,a5);lH.prototype.getApiPaths=function(){return YL};
lH.prototype.getExtension=function(G){return _.Q(G,_.QO)};
lH.prototype.JSC$14488_buildRequest=function(G,B,F){F.formData&&(G.formData=F.formData);B.token?G.continuation=B.token:B.continuationTokenKey&&(F=_.VU().getState(),B=_.g5(F.entities,"continuationTokenEntity",B.continuationTokenKey))&&(G.continuation=String(B.continuationToken))};
var G_$=function(){};
_.r(G_$,a5);_.w=G_$.prototype;_.w.getApiPaths=function(){return YL};
_.w.getExtension=function(G){return _.Q(G,_.x9)};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14495_getStoreKey=function(G){if((G=this.getExtension(G))&&G.browseId){var B={browseId:G.browseId};G.browseEndpointContextSupportedConfigs&&(B.browseEndpointContextSupportedConfigs=JSON.stringify(G.browseEndpointContextSupportedConfigs));G.params&&(B.params=G.params);G.query&&(B.query=G.query);return _.ky("browse",B)}};
_.w.JSC$14488_buildRequest=function(G,B,F){B.browseId&&(G.browseId=B.browseId);B.params&&(G.params=B.params);B.query&&(G.query=B.query);F.formData?G.formData=F.formData:B.formData&&(G.formData=B.formData);B.browseId==="FEsubscriptions"&&_.D4().getFlag(155)&&(G.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");B.browseId==="SPaccount_playback"&&(F=_.D4(),G.formData||(G.formData={}),G.formData.accountSettingsFormData={flagCaptionsDefaultOff:F.getFlag(65),flagAutoCaptionsDefaultOn:F.getFlag(66),
flagDisableInlinePreview:F.getFlag(186),flagAudioDescriptionDefaultOn:F.getFlag(198)});if(B.browseId==="FEwhat_to_watch"){F=_.D4();var D=F.getFlag(196);F.getFlag(197)&&(G.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:D}}})}B.browseId==="FEwhat_to_watch"&&(B=_.D4().getFlag(186),G.inlineSettingStatus=B?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.w.getRequestConfig=function(G,B){B=B===void 0?{}:B;var F={};if(G=this.JSC$14495_getStoreKey(G,B))F.storeStrategy={storeKey:G,disableCache:B.disableCache};_.X("web_log_browse_ticks_ks")||(F.requestTick="br_s",F.responseTick="br_r");return F};var U0=function(){};
_.r(U0,a5);U0.prototype.getApiPaths=function(){return Xat};
U0.prototype.getExtension=function(G){return _.Q(G,xpG)};
U0.prototype.JSC$14488_buildRequest=function(G,B,F){G.legacyYoutubeChannelUsername=F.legacyYouTubeChannelUsername||"";G.legacyYoutubeChannelPassword=F.legacyYouTubeChannelPassword||""};var qG=function(){};
_.r(qG,a5);qG.prototype.getApiPaths=function(){return kQG};
qG.prototype.getExtension=function(G){return _.Q(G,Odq)};
qG.prototype.JSC$14488_buildRequest=function(G,B,F){F.recaptcha_response_token&&(G.recaptchaResponseToken=F.recaptcha_response_token);F.channel_id&&(G.channelId=F.channel_id)};var E0=function(){};
_.r(E0,a5);E0.prototype.getApiPaths=function(){return ANq};
E0.prototype.getExtension=function(G){return _.Q(G,ve8)};
E0.prototype.JSC$14488_buildRequest=function(G,B,F){B.externalChannelId&&(G.externalChannelId=B.externalChannelId);F.handle&&(G.handleUpdate={handle:F.handle},B.handleEditSource&&(G.handleUpdate.handleEditSource=B.handleEditSource))};var hB=function(){};
_.r(hB,a5);hB.prototype.getApiPaths=function(){return TEv};
hB.prototype.getExtension=function(G){return _.Q(G,DpL)};
hB.prototype.JSC$14488_buildRequest=function(G,B,F){B.request&&(G.channelId=B.request.channelId);var D;if(F==null?0:(D=F.uploadDefaults)==null?0:D.emojiReactionSet)G.uploadDefaultsRequest||(G.uploadDefaultsRequest={}),G.uploadDefaultsRequest.emojiReactionSet=F.uploadDefaults.emojiReactionSet};var Ks=function(){};
_.r(Ks,a5);Ks.prototype.getApiPaths=function(){return t$L};
Ks.prototype.getExtension=function(G){return _.Q(G,eyP)};
Ks.prototype.JSC$14488_buildRequest=function(G,B,F){B.externalChannelId&&(G.externalChannelId=B.externalChannelId);B.channelHandleEntityKey&&(G.channelHandleEntityKey=B.channelHandleEntityKey);B.handleEditSource&&(G.handleEditSource=B.handleEditSource);F.handle?G.handle=F.handle:F.name&&(G.name=F.name)};var a2=function(){};
_.r(a2,a5);a2.prototype.getApiPaths=function(){return L3y};
a2.prototype.getExtension=function(G){return _.Q(G,i3s)};
a2.prototype.JSC$14488_buildRequest=function(G,B){B.actions?G.actions=B.actions:B.action&&(G.actions=[B.action])};var mT=function(){};
_.r(mT,a5);mT.prototype.getApiPaths=function(){return rF7};
mT.prototype.getExtension=function(G){return _.Q(G,_.QO)};
mT.prototype.JSC$14488_buildRequest=function(G,B){B.token&&(G.continuation=B.token)};var Xf=function(){};
_.r(Xf,a5);Xf.prototype.getApiPaths=function(){return xot};
Xf.prototype.getExtension=function(G){return _.Q(G,_.QO)};
Xf.prototype.JSC$14488_buildRequest=function(G,B){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";B.token&&(G.fetchCommentsParams={continuation:B.token})};var Qm=function(){};
_.r(Qm,a5);Qm.prototype.getApiPaths=function(){return ek7};
Qm.prototype.getExtension=function(G){return _.Q(G,BAN)};
Qm.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.createReplyParams&&(G.createReplyParams=B.createReplyParams);B.commentText&&(G.commentText=_.zx(B.commentText));F.comment_text&&(G.commentText=F.comment_text);F.image_blob_id&&(G.imageAttachment={encryptedBlobId:F.image_blob_id});F.botguard_response&&(G.botguardResponse=F.botguard_response)};
_.ZN.Object.defineProperties(Qm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jG=function(){};
_.r(jG,a5);jG.prototype.getApiPaths=function(){return $o7};
jG.prototype.getExtension=function(G){return _.Q(G,_.GiU)};
jG.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.createCommentParams&&(G.createCommentParams=B.createCommentParams);B.commentText&&(G.commentText=_.zx(B.commentText));B.videoPositionMention&&(G.videoPositionMention=B.videoPositionMention);B.sources&&(G.sources=B.sources);F.comment_text&&(G.commentText=F.comment_text);F.attached_video_id?G.videoAttachment={videoId:F.attached_video_id}:F.poll_options?G.pollAttachment={choices:F.poll_options}:F.image_blob_id?G.imageAttachment=
{encryptedBlobId:F.image_blob_id}:F.shared_post_id&&(G.sharedPostAttachment={postId:F.shared_post_id});F.access_restrictions&&typeof F.access_restrictions==="number"&&(B=F.access_restrictions,G.accessRestrictions={restriction:B!==1&&B===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});F.botguard_response&&(G.botguardResponse=F.botguard_response)};
_.ZN.Object.defineProperties(jG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ls=function(){};
_.r(Ls,a5);Ls.prototype.getApiPaths=function(){return d5G};
Ls.prototype.getExtension=function(G){return _.Q(G,DvT)};
Ls.prototype.JSC$14488_buildRequest=function(G,B,F){B.commentText&&(G.replyText=_.zx(B.commentText));F.comment_text&&(G.replyText=F.comment_text);G.updateReplyParams=B.updateReplyParams};
_.ZN.Object.defineProperties(Ls.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rG=function(){};
_.r(rG,a5);rG.prototype.getApiPaths=function(){return JNy};
rG.prototype.getExtension=function(G){return _.Q(G,F78)};
rG.prototype.JSC$14488_buildRequest=function(G,B,F){B.commentText&&(G.commentText=_.zx(B.commentText));F.comment_text&&(G.commentText=F.comment_text);G.updateCommentParams=B.updateCommentParams};
_.ZN.Object.defineProperties(rG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wg=function(){};
_.r(Wg,a5);Wg.prototype.getApiPaths=function(){return cNL};
Wg.prototype.getExtension=function(G){return _.Q(G,Gk8)};
Wg.prototype.JSC$14488_buildRequest=function(G,B){B.settings&&(G.settings=B.settings)};var Hg=function(){};
_.r(Hg,a5);Hg.prototype.getApiPaths=function(){return IrL};
Hg.prototype.getExtension=function(G){return _.Q(G,$Qy)};
Hg.prototype.JSC$14488_buildRequest=function(G,B){B.channelCreationToken&&(G.channelCreationToken=B.channelCreationToken);B.source&&(G.source=B.source)};var k8=function(){};
_.r(k8,a5);k8.prototype.getApiPaths=function(){return OFq};
k8.prototype.getExtension=function(G){return _.Q(G,VHy)};
k8.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;if(F.name&&(F.given_name||F.family_name))G=new _.Uf("channel creation cannot set both GAIA and YouTube names",B),_.k2(G);else{if(B.zeroStepChannelCreationParams){if(!F.comment_text){G=new _.Uf("zero_step_create_comment_params but no zero_step_texts",B);_.k2(G);return}G.zeroStepChannelCreationParams=B.zeroStepChannelCreationParams;G.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
F.comment_text,F.botguard_response&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=F.botguard_response))}G.channelCreationToken=B.channelCreationToken;F.given_name&&(G.givenName=F.given_name);F.family_name&&(G.familyName=F.family_name);B.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(G.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(F.name||F.handle||F.avatar_url||F.encryptedBlobId||F.isNameChanged!==void 0||F.isHandleChanged!==void 0||F.isDefaultProfilePhoto!==
void 0||F.obakeImageSource)G.overrideChannelCreationParams={},F.name&&(G.overrideChannelCreationParams.name=F.name),F.handle&&(G.overrideChannelCreationParams.handle=F.handle),F.avatar_url&&(G.overrideChannelCreationParams.avatarUrl=F.avatar_url),F.encryptedBlobId&&(G.overrideChannelCreationParams.blobEncryptionId=F.encryptedBlobId),F.enableIdentityForAllChannelCreationDialog&&(F.encryptedBlobId?G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
F.isDefaultProfilePhoto!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=F.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),F.isNameChanged!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationNameTag=F.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),F.isHandleChanged!==
void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=F.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),F.obakeImageSource&&(G.overrideChannelCreationParams.obakeImageSourceType=F.obakeImageSource))}};var O0=function(){};
_.r(O0,a5);O0.prototype.getApiPaths=function(G){return(G=this.getExtension(G))&&G.status==="DISLIKE"?paU:G&&G.status==="INDIFFERENT"?jHT:yNN};
O0.prototype.getExtension=function(G){return _.Q(G,_.yr)};
O0.prototype.JSC$14488_buildRequest=function(G,B){B.target&&(G.target=B.target);if(B=this.getParams(B))G.params=B};
O0.prototype.getParams=function(G){switch(G==null?void 0:G.status){case "DISLIKE":return G.dislikeParams;case "INDIFFERENT":return G.removeLikeParams;default:return G==null?void 0:G.likeParams}};var eG=function(){};
_.r(eG,a5);eG.prototype.getApiPaths=function(){return bDq};
eG.prototype.getExtension=function(G){return _.Q(G,yf7)};
eG.prototype.JSC$14488_buildRequest=function(G,B){B.settingItemId&&(G.settingItemId=B.settingItemId);B.stringValue!=null&&B.stringValue!==void 0?G.newValue={stringValue:B.stringValue}:B.intValue?G.newValue={intValue:B.intValue}:B.boolValue!==null&&B.boolValue!==void 0?G.newValue={boolValue:B.boolValue}:(G=new _.Uf("Unknown value type for SetSettingEndpoint.",B),_.k2(G))};var $8=function(){};
_.r($8,a5);$8.prototype.getApiPaths=function(){return opN};
$8.prototype.getExtension=function(G){return _.Q(G,kiG)||void 0};
$8.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.channelIds&&(G.channelIds=B.channelIds);B.siloName&&(G.siloName=B.siloName);B.params&&(G.params=B.params);F.botguardResponse&&(G.botguardResponse=F.botguardResponse);F.feature&&(G.clientFeature=F.feature)};
_.ZN.Object.defineProperties($8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var z4=function(){};
_.r(z4,a5);z4.prototype.getApiPaths=function(){return ph7};
z4.prototype.getExtension=function(G){return _.Q(G,nVw)||void 0};
z4.prototype.JSC$14488_buildRequest=function(G,B){B.channelIds&&(G.channelIds=B.channelIds);B.siloName&&(G.siloName=B.siloName);B.params&&(G.params=B.params)};
_.ZN.Object.defineProperties(z4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bH=function(G){this.shareClientParamsProvider=G};
_.r(bH,a5);bH.prototype.getApiPaths=function(){return aQg};
bH.prototype.getExtension=function(G){return _.Q(G,Mxt)||_.Q(G,_.pdG)||_.Q(G,oR7)};
bH.prototype.JSC$14488_buildRequest=function(G,B){B.serializedShareEntity&&(G.serializedSharedEntity=B.serializedShareEntity);if(B.clientParamIdentifier){var F;if((F=this.shareClientParamsProvider)==null?0:F.clientParams.has(B.clientParamIdentifier)){F=this.shareClientParamsProvider;B=B.clientParamIdentifier;var D=F.clientParams.get(B);D&&F.clientParams.delete(B);G.clientParams=D}}};
bH[ZA]=[HeQ];var Vm=function(){};
_.r(Vm,a5);Vm.prototype.getApiPaths=function(){return K3N};
Vm.prototype.getExtension=function(G){return _.Q(G,wHq)};
Vm.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var vg=function(){};
_.r(vg,a5);vg.prototype.getApiPaths=function(){return Ytw};
vg.prototype.getExtension=function(G){return _.Q(G,uPw)};
vg.prototype.JSC$14488_buildRequest=function(G,B){B.dismissal&&(G.items=[B.dismissal])};
_.ZN.Object.defineProperties(vg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var o2=function(){};
_.r(o2,a5);o2.prototype.getApiPaths=function(){return CDw};
o2.prototype.getExtension=function(G){return _.Q(G,_.QG)||void 0};
o2.prototype.JSC$14488_buildRequest=function(G,B,F){G.feedbackTokens=[];B.feedbackToken&&G.feedbackTokens.push(B.feedbackToken);if(B=B.cpn||F.cpn)G.feedbackContext={cpn:B};G.isFeedbackTokenUnencrypted=!!F.is_feedback_token_unencrypted;G.shouldMerge=!1;F.extra_feedback_tokens&&(G.shouldMerge=!0,G.feedbackTokens=G.feedbackTokens.concat(F.extra_feedback_tokens))};
_.ZN.Object.defineProperties(o2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MG=function(){};
_.r(MG,a5);MG.prototype.getApiPaths=function(){return CDw};
MG.prototype.getExtension=function(G){return _.Q(G,_.sw)};
MG.prototype.JSC$14488_buildRequest=function(G,B,F){F.feedback_tokens&&(G.feedbackTokens=F.feedback_tokens,G.shouldMerge=!0)};
_.ZN.Object.defineProperties(MG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ps=function(){};
_.r(ps,a5);ps.prototype.getApiPaths=function(){return CDw};
ps.prototype.getExtension=function(G){return _.Q(G,plL)};
ps.prototype.JSC$14488_buildRequest=function(G,B){B.undoToken&&(G.feedbackTokens=[B.undoToken]);B.isUndoTokenUnencrypted&&(G.isFeedbackTokenUnencrypted=B.isUndoTokenUnencrypted)};
_.ZN.Object.defineProperties(ps.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Y8=function(){};
_.r(Y8,a5);Y8.prototype.getApiPaths=function(){return ZDU};
Y8.prototype.getExtension=function(G){return _.Q(G,ig7)};
Y8.prototype.JSC$14488_buildRequest=function(G,B){B.nextEndpoint&&_.Q(B.nextEndpoint,_.MI)?G.nextEndpoint={urlEndpoint:_.Q(B.nextEndpoint,_.MI)}:B.nextEndpoint&&_.Q(B.nextEndpoint,_.Ow)&&(G.nextEndpoint={watchEndpoint:_.Q(B.nextEndpoint,_.Ow)});B.setRacy&&(G.setRacy=B.setRacy);B.setControvercy&&(G.setControvercy=B.setControvercy)};var AB=function(G){this.JSC$18505_storeWithEntities=G};
_.r(AB,a5);AB.prototype.getApiPaths=function(){return doL};
AB.prototype.getExtension=function(G){return _.Q(G,Ogv)};
AB.prototype.JSC$14488_buildRequest=function(G,B){B.flowId&&(G.flowId=B.flowId);B.targetId&&(G.targetId=B.targetId);B.continuation&&(G.continuation=B.continuation);var F=B.flowStateEntityKey;if(B.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&F&&this.JSC$18505_storeWithEntities){var D;if(B=(D=this.JSC$18505_storeWithEntities.getState())==null?void 0:D.entities)if(D=_.cT(F).entityType,D=_.g5(B,D,F))G.flowState=D,G.flowStateEntityKey=F}};
_.ZN.Object.defineProperties(AB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
AB[ZA]=[gN];var BdN=function(){};
_.r(BdN,a5);_.w=BdN.prototype;_.w.getApiPaths=function(){return whN};
_.w.JSC$14495_getStoreKey=function(){return _.ky("guide")};
_.w.getRequestConfig=function(){var G=this.JSC$14495_getStoreKey(),B;G&&(B={storeStrategy:{storeKey:G}});return B};
_.w.isNavigationCommand=function(){return!0};
_.w.getExtension=function(G){return _.Q(G,_.sw)};
_.w.JSC$14488_buildRequest=function(G){G.fetchLiveState=!0};var dG=function(){};
_.r(dG,a5);dG.prototype.getApiPaths=function(){return QAN};
dG.prototype.getExtension=function(G){return _.Q(G,s5N)};
dG.prototype.JSC$14488_buildRequest=function(){};var JB=function(){};
_.r(JB,a5);JB.prototype.getApiPaths=function(){return jAt};
JB.prototype.getExtension=function(G){return _.Q(G,xRt)};
JB.prototype.JSC$14488_buildRequest=function(){};var cg=function(){};
_.r(cg,a5);cg.prototype.getApiPaths=function(){return hkv};
cg.prototype.getExtension=function(G){return _.Q(G,_.QO)};
cg.prototype.JSC$14488_buildRequest=function(G,B){B.token&&(G.continuation=B.token);var F,D;G==null||(F=G.context)==null||(D=F.user)==null||delete D.onBehalfOfUser};
cg.prototype.getRequestConfig=function(G){var B={},F;if(((F=this.getExtension(G))==null?void 0:F.sessionIndex)!==void 0){var D;B={authStrategy:{sessionIndex:(D=this.getExtension(G))==null?void 0:D.sessionIndex}}}return B};var T4=function(){};
_.r(T4,a5);T4.prototype.JSC$14488_getRequest=function(G){var B=this.getExtension(G),F=G="";if(B==null?0:B.popup)G="true";if(B==null?0:B.disableSignout)F="true";B={};return{input:"/getAccountSwitcherEndpoint",requestShell:HZ("/getAccountSwitcherEndpoint","GET",(B["X-YouTube-Delegation-Context"]=_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),B["X-YouTube-Account-Switcher-Popup"]=G,B["X-YouTube-Account-Switcher-Disable-Signout"]=F,B)),innerTubeRequest:{}}};
T4.prototype.getApiPaths=function(){return[]};
T4.prototype.getExtension=function(G){return _.Q(G,_.cOS)};
T4.prototype.JSC$14488_buildRequest=function(){};var I2=function(){};
_.r(I2,a5);I2.prototype.JSC$14488_getRequest=function(G){var B="/cross_account_channel_transfer";(G=this.getExtension(G))&&(B=LbS(B,{target_session:G.targetSessionIndex,source_rapt:G.sourceRapt,rapt:G.targetRapt}));return{input:B,requestShell:HZ(B,"GET"),innerTubeRequest:{}}};
I2.prototype.getApiPaths=function(){return[]};
I2.prototype.getExtension=function(G){return _.Q(G,I9v)};
I2.prototype.JSC$14488_buildRequest=function(){};var tB=function(){};
_.r(tB,a5);tB.prototype.getApiPaths=function(){return JFs};
tB.prototype.isNavigationCommand=function(){return!0};
tB.prototype.getExtension=function(G){return _.Q(G,_.sw)};
tB.prototype.JSC$14488_buildRequest=function(G){var B=_.D4().get("gsml","");B&&(G.safetyModeLockerObfuscatedGaiaId=B);G.userInterfaceTheme=_.rK(!0);_.Wm()?G.deviceTheme="DEVICE_THEME_SELECTED":_.x5U()?G.deviceTheme="DEVICE_THEME_SUPPORTED":G.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var B3=function(){};
_.r(B3,a5);B3.prototype.getApiPaths=function(){return hkv};
B3.prototype.getExtension=function(G){return _.Q(G,f9T)};
B3.prototype.JSC$14488_buildRequest=function(G,B){if(B&&B.requestType&&(G.requestType=B.requestType,B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var F=B.nextUrl;F&&(_.WbJ(F)||In(F))&&(G.nextNavendpoint={urlEndpoint:{url:F}})}B&&B.channelSwitcherQuery&&(G.channelSwitcherQuery=B.channelSwitcherQuery);B&&B.triggerChannelCreation&&(G.triggerChannelCreation=B.triggerChannelCreation);var D;if(B==null?0:(D=B.contentOwnerConfig)==
null?0:D.externalContentOwnerId)G.contentOwnerConfig=B.contentOwnerConfig;G.callCircumstance=B&&B.requestType&&B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var u,R;B=G==null?void 0:(u=G.context)==null?void 0:(R=u.user)==null?void 0:R.onBehalfOfUser;if(B!==void 0){G.obfuscatedSelectedGaiaId=B;var N,y;G==null||(N=G.context)==null||(y=N.user)==null||delete y.onBehalfOfUser}var U,q;if(u=G==null?void 0:(U=G.context)==null?void 0:(q=U.user)==null?
void 0:q.serializedDelegationContext)G.selectedSerializedDelegationContext=u};var iT=function(){};
_.r(iT,a5);iT.prototype.getApiPaths=function(){return ary};
iT.prototype.getExtension=function(G){return _.Q(G,YpG)};
iT.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var Fg=function(){};
_.r(Fg,a5);Fg.prototype.getApiPaths=function(){return kFG};
Fg.prototype.getExtension=function(G){return _.Q(G,_.gla)};
Fg.prototype.JSC$14488_buildRequest=function(G,B){if(B=B.createBroadcastRequest)G.useMasks=B.useMasks,G.broadcastType=B.broadcastType,G.broadcastSource=B.broadcastSource,G.broadcastMetadata=B.broadcastMetadata,G.broadcastMetadataMask=B.broadcastMetadataMask,G.videoMetadata=B.videoMetadata,G.videoMetadataMask=B.videoMetadataMask,G.liveChatSettingsUpdate=B.liveChatSettingsUpdate,G.liveChatSettingsUpdateMask=B.liveChatSettingsUpdateMask,G.cloneVideoId=B.cloneVideoId,G.cloneWithOverrides=B.cloneWithOverrides,
G.targetEntity=B.targetEntity,G.scheduledRedirectMetadata=B.scheduledRedirectMetadata};var Dy=function(){};
_.r(Dy,a5);Dy.prototype.getApiPaths=function(){return zkN};
Dy.prototype.getExtension=function(G){return _.Q(G,A9t)};
Dy.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.params&&(G.params=B.params);F.questionText&&(G.questionText=F.questionText);F.optionText&&F.optionText.length>0&&(G.optionText=F.optionText)};var uT=function(){};
_.r(uT,a5);uT.prototype.getApiPaths=function(){return vhL};
uT.prototype.getExtension=function(G){return _.Q(G,pR7)};
uT.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var RL=function(){};
_.r(RL,a5);RL.prototype.getApiPaths=function(){return tPN};
RL.prototype.getExtension=function(G){return _.Q(G,V0N)};
RL.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var wb=function(){};
_.r(wb,a5);wb.prototype.getApiPaths=function(){return ghs};
wb.prototype.getExtension=function(G){return _.Q(G,vZU)};
wb.prototype.JSC$14488_buildRequest=function(G,B,F){B.params&&(G.params=B.params);B.continuation&&(G.continuation=B.continuation);F.currentPlayerState&&F.currentPlayerState.playerOffsetMs&&(G.currentPlayerState={playerOffsetMs:F.currentPlayerState.playerOffsetMs.toString()})};var Cw=function(){};
_.r(Cw,a5);Cw.prototype.getApiPaths=function(){return StU};
Cw.prototype.getExtension=function(G){return _.Q(G,bV8)};
Cw.prototype.JSC$14488_buildRequest=function(G,B,F){B.params&&(G.params=B.params);F.continuation&&(G.continuation=F.continuation);"hidden"in F&&(G.webClientInfo={isDocumentHidden:F.hidden});F.isInvalidationTimeoutRequest&&(G.isInvalidationTimeoutRequest=F.isInvalidationTimeoutRequest);F.invalidationPayload&&(B=zxt(_.P6(gO(F.invalidationPayload))),G.invalidationPayloadLastPublishAtUsec=mv(B,2));F.reloadActionPanel&&(G.reloadActionPanel=F.reloadActionPanel);F.fullReload&&(G.fullReload=F.fullReload);
F.currentPlayerState&&(G.currentPlayerState=F.currentPlayerState)};var N$=function(){};
_.r(N$,a5);N$.prototype.getApiPaths=function(){return npv};
N$.prototype.getExtension=function(G){return _.Q(G,YsU)};
N$.prototype.JSC$14488_buildRequest=function(G,B){G.params=B.params};var nw=function(){};
_.r(nw,a5);nw.prototype.getApiPaths=function(){return ZF7};
nw.prototype.getExtension=function(G){return _.Q(G,Blq)};
nw.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var lT=function(){};
_.r(lT,a5);lT.prototype.getApiPaths=function(){return sAq};
lT.prototype.getExtension=function(G){return _.Q(G,i9y)};
lT.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var UM=function(){};
_.r(UM,a5);UM.prototype.getApiPaths=function(){return lvG};
UM.prototype.getExtension=function(G){return _.Q(G,d_U)};
UM.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var q$=function(){};
_.r(q$,a5);q$.prototype.getApiPaths=function(){return qLG};
q$.prototype.getExtension=function(G){return _.Q(G,J9L)};
q$.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var EM=function(){};
_.r(EM,a5);EM.prototype.getApiPaths=function(){return L4s};
EM.prototype.getExtension=function(G){return _.Q(G,Jis)};
EM.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var hI=function(){};
_.r(hI,a5);hI.prototype.getApiPaths=function(){return $5w};
hI.prototype.getExtension=function(G){return _.Q(G,_.c9U)};
hI.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.params&&(G.params=B.params);F.client_message_id&&(G.clientMessageId=F.client_message_id);F.recaptcha_token&&(G.recaptchaToken=F.recaptcha_token);F.rich_message&&F.rich_message.text_segments?(B=F.rich_message.text_segments.map(function(D){var u={};D.text&&(u.text=D.text);D.emoji_id&&(u.emojiId=D.emoji_id);return u}),G.richMessage={textSegments:B}):F.message&&(G.message=F.message);
F.currentPlayerState&&(G.currentPlayerState=F.currentPlayerState)};var Kw=function(){};
_.r(Kw,a5);Kw.prototype.getApiPaths=function(){return zhT};
Kw.prototype.getExtension=function(G){return _.Q(G,TrG)};
Kw.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var aL=function(){};
_.r(aL,a5);aL.prototype.getApiPaths=function(){return M$s};
aL.prototype.getExtension=function(G){return _.Q(G,fxa)};
aL.prototype.JSC$14488_buildRequest=function(G,B,F){B.isUserInitiated&&(G.isUserInitiated=B.isUserInitiated);B.initiationSource&&(G.initiationSource=B.initiationSource);F.locationInfo&&(G.context.client.locationInfo=F.locationInfo)};var mq=function(){};
_.r(mq,a5);mq.prototype.getApiPaths=function(){return U5s};
mq.prototype.getExtension=function(G){return _.Q(G,Sc7)};
mq.prototype.JSC$14488_buildRequest=function(G,B,F){B.metadataUpdateRequest&&(B=B.metadataUpdateRequest,G.encryptedVideoId=B.encryptedVideoId,B.liveChat&&(B=B.liveChat,G.liveChat||(G.liveChat={}),B.performAsExternalChannelId&&(G.liveChat.performAsExternalChannelId=B.performAsExternalChannelId),B.source&&(G.liveChat.source=B.source)));var D;if(F==null?0:(D=F.liveChat)==null?0:D.liveChatSettings)G.liveChat||(G.liveChat={}),F=F.liveChat.liveChatSettings,G.liveChat.newLiveChatSettings=F,G.liveChat.newLiveChatSettingsMask||
(G.liveChat.newLiveChatSettingsMask={}),F.emojiReactionSet&&(G.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Xg=function(){};
_.r(Xg,a5);Xg.prototype.getApiPaths=function(){return fvT};
Xg.prototype.getExtension=function(G){return _.Q(G,_.ls7)};
Xg.prototype.JSC$14488_buildRequest=function(G,B,F){F.continuation?G.continuation=F.continuation:B.videoId&&(G.videoId=B.videoId);F.clientParams&&(G.clientParams=F.clientParams)};var Qt=function(){};
_.r(Qt,a5);Qt.prototype.getApiPaths=function(){return xot};
Qt.prototype.getExtension=function(G){return _.Q(G,_.h9)};
Qt.prototype.JSC$14488_buildRequest=function(G,B){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.fetchCommentsParams={};B.videoId&&(G.fetchCommentsParams.encryptedVideoId=B.videoId);B.postId&&(G.fetchCommentsParams.postId=B.postId);B.externalChannelId&&(G.fetchCommentsParams.externalChannelId=B.externalChannelId);B.linkedCommentId&&(G.fetchCommentsParams.linkedCommentId=B.linkedCommentId);(0,_.UK.isEmpty)(G.fetchCommentsParams)&&delete G.fetchCommentsParams};var jn=function(){};
_.r(jn,a5);jn.prototype.getApiPaths=function(){return YL};
jn.prototype.JSC$14488_buildRequest=function(G){G.browseId="FEnotifications_inbox"};
jn.prototype.getExtension=function(G){return _.Q(G,_.sw)};var Lw=function(){};
_.r(Lw,a5);Lw.prototype.getApiPaths=function(){return xot};
Lw.prototype.JSC$14488_buildRequest=function(G,B){B.signal==="GET_NOTIFICATIONS_MENU"&&(G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");B.ctoken&&(G.ctoken=B.ctoken)};
var inA=function(){};
_.r(inA,Lw);inA.prototype.getExtension=function(G){return _.Q(G,_.sw)};
var FWS=function(){};
_.r(FWS,Lw);FWS.prototype.getExtension=function(G){return _.Q(G,PPq)};var rb=function(){};
_.r(rb,a5);rb.prototype.getApiPaths=function(){return D5N};
rb.prototype.getExtension=function(G){return _.Q(G,_.sw)};
rb.prototype.JSC$14488_buildRequest=function(){};var W3=function(){};
_.r(W3,a5);W3.prototype.getApiPaths=function(){return EpU};
W3.prototype.getExtension=function(G){return _.Q(G,w9P)||void 0};
W3.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params);B.secondaryParams&&(G.secondaryParams=B.secondaryParams)};var H3=function(){};
_.r(H3,a5);H3.prototype.getApiPaths=function(){return hhL};
H3.prototype.getExtension=function(G){return _.Q(G,Aiw)};
H3.prototype.JSC$14488_buildRequest=function(G,B){B.undo&&(G.undo=B.undo);B.serializedOptOut&&(G.serializedOptOut=B.serializedOptOut);B.serializedRecordInteractionsRequest&&(G.serializedRecordInteractionsRequest=B.serializedRecordInteractionsRequest)};var k4=function(){};
_.r(k4,a5);k4.prototype.getApiPaths=function(){return m5P};
k4.prototype.getExtension=function(G){return _.Q(G,duy)};
k4.prototype.JSC$14488_buildRequest=function(G,B){B.serializedInteractionsRequest&&(G.serializedRecordNotificationInteractionsRequest=B.serializedInteractionsRequest)};var OM=function(){};
_.r(OM,a5);OM.prototype.getApiPaths=function(){return mCL};
OM.prototype.getExtension=function(G){return _.Q(G,_.vI)};
OM.prototype.JSC$14488_buildRequest=function(G,B,F){B=B===void 0?{}:B;F=F===void 0?{}:F;B.videoId?G.videoId=B.videoId:B.playlistId&&(G.playlistId=B.playlistId);var D;G.crossDeviceDownloadData={isCrossDeviceDownload:(D=B.isCrossDeviceDownload)!=null?D:!1};!F.downloadToMobileEduShown&&B.isCrossDeviceDownload&&(G.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var u;if(D=(u=B.offlineWebClientEligibility)!=null?u:F.offlineWebClientEligibility)G.offlineWebClientEligibility=D;var R;if(u=(R=B.preferredFormatType)!=
null?R:F.preferredFormatType)G.preferredFormatType=u;var N;if(R=(N=B.lastOfflineQualitySettingsSavedMs)!=null?N:F.lastOfflineQualitySettingsSavedMs)G.lastOfflineQualitySettingsSavedMs=R;B.params&&(G.params=B.params)};var en=function(){};
_.r(en,a5);en.prototype.getApiPaths=function(){return vR};
en.prototype.getExtension=function(G){return _.Q(G,_.QO)};
en.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.token&&(G.continuation=B.token);F.formData&&(G.formData=F.formData)};var $4=function(){};
_.r($4,a5);$4.prototype.getApiPaths=function(){return vR};
$4.prototype.getExtension=function(G){return _.Q(G,cXq)};
$4.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;G.continuation=F.continuation};var zZ=function(){};
_.r(zZ,a5);zZ.prototype.getApiPaths=function(){return vR};
zZ.prototype.getExtension=function(G){return _.Q(G,_.Xi)};
zZ.prototype.JSC$14488_buildRequest=function(G,B){var F,D=B.panelIdentifier||((F=B.identifier)==null?void 0:F.tag);D&&(G.panelId=D);var u;if((u=B.globalConfiguration)==null?0:u.params){var R;G.params=(R=B.globalConfiguration)==null?void 0:R.params}if(_.X("enable_ai_companion")){var N;B=B.engagementPanelExtras;if(B==null?0:(N=B.aiCompanionPanelExtras)==null?0:N.includeClientConversationId){var y,U;N=(U=(y=_.te().resolve(_.fH(vi$)))==null?void 0:y("conversations"))==null?void 0:U.get("conversation_id")}else N=
void 0;if(y=N)G.formData=Object.assign({},G.formData,{inputComposerFormData:{conversationId:y}})}};
_.ZN.Object.defineProperties(zZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bT=function(){};
_.r(bT,a5);bT.prototype.getApiPaths=function(){return vR};
bT.prototype.getExtension=function(G){return _.Q(G,zoN)};
bT.prototype.JSC$14488_buildRequest=function(G,B){B.panelLoadingStrategy&&Wsg(G,B.panelLoadingStrategy)};var Vt=function(){};
_.r(Vt,a5);Vt.prototype.getApiPaths=function(){return vR};
Vt.prototype.getExtension=function(G){return _.Q(G,xu8)};
Vt.prototype.JSC$14488_buildRequest=function(G,B){B.loadingStrategy&&Wsg(G,B.loadingStrategy)};var v3=function(){};
_.r(v3,a5);v3.prototype.getApiPaths=function(){return vR};
v3.prototype.getExtension=function(G){return _.Q(G,_.Ch)};
v3.prototype.JSC$14488_buildRequest=function(G,B){B.panelLoadingStrategy&&Wsg(G,B.panelLoadingStrategy)};var oL=function(){};
_.r(oL,a5);oL.prototype.getApiPaths=function(){return vR};
oL.prototype.getExtension=function(G){return _.Q(G,PYN)};
oL.prototype.JSC$14488_buildRequest=function(G,B){var F,D=(F=B.contentSourcePanelIdentifier)==null?void 0:F.tag;D&&(G.panelId=D);var u;if((u=B.globalConfiguration)==null?0:u.params){var R;G.params=(R=B.globalConfiguration)==null?void 0:R.params}};var M$=function(){};
_.r(M$,a5);M$.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
M$.prototype.getExtension=function(G){return _.Q(G,Gjq)};
M$.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var pw=function(){};
_.r(pw,a5);pw.prototype.getApiPaths=function(){return Iva};
pw.prototype.getExtension=function(G){return _.Q(G,FF8)};
pw.prototype.JSC$14488_buildRequest=function(G,B){B.externalChannelId&&(G.externalChannelId=B.externalChannelId);B.superChatAction&&(G.superChatAction=B.superChatAction);B.superStickersAction&&(G.superStickersAction=B.superStickersAction)};var Y4=function(){};
_.r(Y4,a5);Y4.prototype.getApiPaths=function(){return cFs};
Y4.prototype.getExtension=function(G){return _.Q(G,Seq)||_.Q(G,Pj8)};
Y4.prototype.JSC$14488_buildRequest=function(G,B){B.videoIds?G.videoIds=B.videoIds:B.videoId&&(G.videoIds=[B.videoId]);B.playlistId&&(G.playlistId=B.playlistId);B.params&&(G.params=B.params);G.excludeWatchLater=!1};var AI=function(){};
_.r(AI,a5);AI.prototype.getApiPaths=function(){return bFP};
AI.prototype.getExtension=function(G){return _.Q(G,_.j0)};
AI.prototype.JSC$14488_buildRequest=function(G,B,F){F.create_playlist_title?G.title=F.create_playlist_title:B.title&&(G.title=B.title);if(F.create_playlist_privacy_status&&typeof F.create_playlist_privacy_status==="number"){a:{var D=F.create_playlist_privacy_status;if(D!==0){if(D===1){D="PUBLIC";break a}if(D===2){D="UNLISTED";break a}}D="PRIVATE"}G.privacyStatus=D}else B.privacyStatus&&(G.privacyStatus=B.privacyStatus);F.create_playlist_description&&(G.description=F.create_playlist_description);B.videoIds&&
(G.videoIds=B.videoIds);B.params&&(G.params=B.params);B.sourcePlaylistId&&(G.sourcePlaylistId=B.sourcePlaylistId)};var db=function(){};
_.r(db,a5);db.prototype.getApiPaths=function(){return ohL};
db.prototype.getExtension=function(G){return _.Q(G,u6t)};
db.prototype.JSC$14488_buildRequest=function(G,B){G.playlistId=B.playlistId};var JI=function(){};
_.r(JI,a5);JI.prototype.getApiPaths=function(){return PeU};
JI.prototype.getExtension=function(G){return _.Q(G,VxL)};
JI.prototype.JSC$14488_buildRequest=function(G,B){B.playlistId&&(G.playlistId=B.playlistId);B.params&&(G.params=B.params)};var c3=function(){};
_.r(c3,a5);c3.prototype.getApiPaths=function(){return avs};
c3.prototype.getExtension=function(G){return _.Q(G,_.KV)||void 0};
c3.prototype.JSC$14488_buildRequest=function(G,B){B.actions&&(G.actions=B.actions);B.params&&(G.params=B.params);B.playlistId&&(G.playlistId=B.playlistId)};var TZ=function(){};
_.r(TZ,a5);_.w=TZ.prototype;_.w.getApiPaths=function(){return Xht};
_.w.getExtension=function(G){return _.Q(G,_.Fu)};
_.w.JSC$14488_buildRequest=function(G,B){B.videoId&&(G.playerRequest={videoId:B.videoId},B.playerParams&&(G.playerRequest.params=B.playerParams),B.racyCheckOk&&(G.playerRequest.racyCheckOk=!!B.racyCheckOk),B.contentCheckOk&&(G.playerRequest.contentCheckOk=!!B.contentCheckOk));B.params&&(G.params=B.params);B.inputType&&(G.inputType=B.inputType);G.disablePlayerResponse=!0};
_.w.getRequestConfig=function(G){var B;(G=this.JSC$14495_getStoreKey(G))&&(B={storeStrategy:{storeKey:G}});_.X("web_log_reels_ticks")&&(B=B||{},B.requestTick="r_wrs",B.responseTick="r_wrr");return B};
_.w.JSC$14495_getStoreKey=function(G){G=this.getExtension(G);if(G!=null&&G.videoId){var B={videoId:G.videoId};G.params&&(B.params=G.params);return _.ky("reel_item_watch",B)}};var IL=function(){};
_.r(IL,a5);_.w=IL.prototype;_.w.getApiPaths=function(){return QHa};
_.w.getExtension=function(G){return _.Q(G,_.Fu)};
_.w.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;G.sequenceParams=B.sequenceParams;var D;((D=F)==null?0:D.contentPlaybackContext)&&_.X("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:F.contentPlaybackContext})};
_.w.JSC$14495_getStoreKey=function(G){if(_.X("shorts_controller_retrieve_seedless_sequence_v2")&&(G=this.getExtension(G),G==null?0:G.sequenceParams))return _.ky("reel_watch_sequence",{sequenceParams:G.sequenceParams})};
_.w.getRequestConfig=function(G){G=this.JSC$14495_getStoreKey(G);var B;G&&(B={storeStrategy:{storeKey:G}});B=B||{};B.requestTick="r_wsrs";B.responseTick="r_wsrr";B.processorTick="r_wsrp";return B};
var fw=function(){};
_.r(fw,a5);fw.prototype.getApiPaths=function(){return QHa};
fw.prototype.getExtension=function(G){return _.Q(G,_.QO)};
fw.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.token&&(G.continuation=B.token);var D;((D=F)==null?0:D.contentPlaybackContext)&&_.X("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:F.contentPlaybackContext})};
fw.prototype.getRequestConfig=function(G){G=this.JSC$14495_getStoreKey(G);var B;G&&(B={storeStrategy:{storeKey:G}});B=B||{};B.requestTick="r_wsrs";B.responseTick="r_wsrr";B.processorTick="r_wsrp";return B};var tI=function(){};
_.r(tI,a5);tI.prototype.getApiPaths=function(){return AFs};
tI.prototype.getExtension=function(G){return _.Q(G,_.rQN)};
tI.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.flagAction&&(G.action=B.flagAction);B.flagRequestType&&(G.flagRequestType=B.flagRequestType);B.additionalDetailCheckboxChecked&&(G.additionalDetailCheckboxChecked=B.additionalDetailCheckboxChecked);B.legalCheckboxChecked&&(G.legalCheckboxChecked=B.legalCheckboxChecked);B={};F.flag_issue_type!==void 0&&(B.issue=F.flag_issue_type);F.flag_affiliation!==void 0&&(B.affiliation=F.flag_affiliation);F.flag_full_name&&(B.fullName=F.flag_full_name);
Object.keys(B).length&&(G.legalReportDetails=B);if(F.flag_description||F.text)G.userComments=F.flag_description||F.text;B={};F.minutes!==void 0&&F.seconds!==void 0&&(B.minutes=F.minutes,B.seconds=F.seconds);F.vss_id&&(B.vssId=F.vss_id);Object.keys(B).length&&(G.videoReportDetails=B);B={};F.video_ids&&(B.videoIds=F.video_ids);F.impersonated_channel_url&&(B.impersonatedChannelUrl=F.impersonated_channel_url);Object.keys(B).length&&(G.channelAbuseReportDetails=B)};
_.ZN.Object.defineProperties(tI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Zy=function(){};
_.r(Zy,a5);Zy.prototype.getApiPaths=function(){return frq};
Zy.prototype.getExtension=function(G){return _.Q(G,GV8)};
Zy.prototype.JSC$14488_buildRequest=function(G,B){B.blockedForKidsContent&&(G.blockedForKidsContent=B.blockedForKidsContent)};var gb=function(){};
_.r(gb,a5);gb.prototype.getApiPaths=function(){return rNy};
gb.prototype.getExtension=function(G){return _.Q(G,xwM)};
gb.prototype.JSC$14488_buildRequest=function(G,B,F){G.params=B.params;F.impersonated_channel_url&&(G.impersonatedChannelUrl=F.impersonated_channel_url)};var Sn=function(){};
_.r(Sn,a5);Sn.prototype.getApiPaths=function(){return NEw};
Sn.prototype.getExtension=function(G){return _.Q(G,_.Bra)};
Sn.prototype.JSC$14488_buildRequest=function(G,B){B.items&&(G.items=B.items);B.kidGaiaId&&(G.kidGaiaId=B.kidGaiaId)};var sM=function(){};
_.r(sM,a5);sM.prototype.getApiPaths=function(){return T_q};
sM.prototype.getExtension=function(G){return _.Q(G,_.tCa)};
sM.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params);B.targetId&&(G.targetId=B.targetId)};var x4=function(){};
_.r(x4,a5);x4.prototype.getApiPaths=function(){return ODy};
x4.prototype.getExtension=function(G){return _.Q(G,GGy)};
x4.prototype.JSC$14488_buildRequest=function(G,B){B.externalVideoId&&(G.externalVideoId=B.externalVideoId);B.query&&(G.query=B.query);B.sourceTimelines&&(G.sourceTimelines=B.sourceTimelines)};var P3=function(){};
_.r(P3,a5);P3.prototype.getApiPaths=function(){return eh8};
P3.prototype.getExtension=function(G){return _.Q(G,_.QO)||void 0};
P3.prototype.JSC$14488_buildRequest=function(G,B){B.token&&(G.continuation=B.token)};
_.DNZ=function(){};
_.r(_.DNZ,a5);_.w=_.DNZ.prototype;_.w.getApiPaths=function(){return eh8};
_.w.getExtension=function(G){return _.Q(G,_.P2)||void 0};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14495_getStoreKey=function(G,B){B=B===void 0?{}:B;if(!B.disableCache&&(G=this.getExtension(G))&&G.query)return B={query:G.query},G.params&&(B.params=G.params),_.ky("search",B)};
_.w.JSC$14488_buildRequest=function(G,B,F){B.query&&(G.query=B.query);B.params&&(G.params=B.params);_.X("enable_page_type_in_search_request")&&B.pageType&&(G.searchPageType=B.pageType);if(!_.X("web_forward_suggest_stats_killswitch")){var D=_.Q(B,H47);D&&(G.suggestStats=D)}var u;!_.X("kevlar_searchbox_stats_killswitch")&&((u=F.tempData)==null?0:u.gs_l)&&!_.Q(B,H47)&&(G.webSearchboxStatsUrl="/search?oq="+(F.tempData.oq||"")+"&gs_l="+F.tempData.gs_l);var R;if((R=F.tempData)==null?0:R.entityMid)B=G.suggestionSearchParams||
{},B.entityMid=F.tempData.entityMid,G.suggestionSearchParams=B;B=_.D4().getFlag(186);G.inlineSettingStatus=B?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";F.isFromShorts&&(G.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.w.getRequestConfig=function(G,B){B=B===void 0?{}:B;G=this.JSC$14495_getStoreKey(G,B);var F;G&&(F={storeStrategy:{storeKey:G}});_.X("web_log_search_ticks_ks")||(F=F||{},F.requestTick="sr_s",F.responseTick="sr_r");return F};var GU=function(){};
_.r(GU,a5);GU.prototype.getApiPaths=function(){return iDt};
GU.prototype.getExtension=function(G){return _.Q(G,K78)};
GU.prototype.JSC$14488_buildRequest=function(G,B){B.serializedGetSharingProviderDataParams&&(G.serializedGetSharingProviderDataParams=B.serializedGetSharingProviderDataParams)};var BW=function(){};
_.r(BW,a5);BW.prototype.getApiPaths=function(){return F4L};
BW.prototype.getExtension=function(G){return _.Q(G,m9y)};
BW.prototype.JSC$14488_buildRequest=function(G,B){B.endpoint&&(G.endpoint=B.endpoint);B.action&&(G.action=B.action)};var i$=function(){};
_.r(i$,a5);i$.prototype.getApiPaths=function(){return MPG};
i$.prototype.getExtension=function(G){return _.Q(G,Rot)};
i$.prototype.JSC$14488_buildRequest=function(G,B){G.videoId=B.videoId;B.scheduledRedirectMetadataSourceVideoId&&(G.scheduledRedirectMetadata={sourceVideoId:B.scheduledRedirectMetadataSourceVideoId})};var ub2=function(){};
_.r(ub2,a5);ub2.prototype.getApiPaths=function(){return V$P};
ub2.prototype.getExtension=function(G){return _.Q(G,_.D2s)};
ub2.prototype.JSC$14488_buildRequest=function(G,B){G.params=B.params;G.correctionText=B.correctionText};var RW$=function(){};
_.r(RW$,a5);RW$.prototype.getApiPaths=function(){return hKU};
RW$.prototype.getExtension=function(G){return _.Q(G,_.BY8)};
RW$.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params);G.searchQuery=B.searchQuery;G.languageCode=B.languageCode;G.kind=B.kind;G.name=B.name;G.externalVideoId=B.externalVideoId};var w1U=function(){};
_.r(w1U,a5);w1U.prototype.getApiPaths=function(){return SLP};
w1U.prototype.getExtension=function(G){return _.Q(G,XMT)};
w1U.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.params=B.params)};var FI=function(G){this.JSC$18781_storeWithEntities=G};
_.r(FI,a5);FI.prototype.getApiPaths=function(){return W3s};
FI.prototype.getExtension=function(G){return _.Q(G,j8v)||_.Q(G,r3s)};
FI.prototype.JSC$14488_buildRequest=function(G,B,F){F.client_data&&(G.clientData=F.client_data);if(B.commerceActionConfig){var D=B.commerceActionConfig;B=D.actionId;D=D.commerceActionParams;B&&(G.actionId=B);D&&(G.commerceActionParams=D)}else{var u=B.actionId,R=B.commerceActionParams;F=B.entityKeys;u&&(G.actionId=u);R&&(G.commerceActionParams=R);var N;B=(D=this.JSC$18781_storeWithEntities)==null?void 0:(N=D.getState())==null?void 0:N.entities;if(F&&B){D=[];N=_.C(F);for(F=N.next();!F.done;F=N.next())if(u=
F.value,F=_.cT(u).entityType,u=_.g5(B,F,u))R={},D.push((R[F]=u,R));G.entityMutationPayloads=D}}};
FI.prototype.getRequestConfig=function(G){var B,F=(B=_.Q(G,j8v))==null?void 0:B.requestSequenceType;if(F&&G.clickTrackingParams&&F!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:G.clickTrackingParams,sequenceType:F}}};
FI[ZA]=[gN];var DD=function(){};
_.r(DD,a5);DD.prototype.getApiPaths=function(){return sHa};
DD.prototype.getExtension=function(G){return _.Q(G,_.Idv)};
DD.prototype.JSC$14488_buildRequest=function(G,B){B.feedbackData&&(G.feedbackData=B.feedbackData);B.params&&(G.itemParams=B.params)};
_.ZN.Object.defineProperties(DD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CzS=function(){};
_.r(CzS,a5);CzS.prototype.getApiPaths=function(){return x5w};
CzS.prototype.getExtension=function(G){return _.Q(G,fdL)};
CzS.prototype.JSC$14488_buildRequest=function(G,B,F){F.payments_payload&&(G.paymentsPayload=F.payments_payload);F.offer_params&&(G.offerParams=F.offer_params);B.transactionParams&&(G.transactionParams=B.transactionParams)};var NdU=function(){};
_.r(NdU,a5);NdU.prototype.getApiPaths=function(){return PD8};
NdU.prototype.getExtension=function(G){return _.Q(G,_.tq7)};
NdU.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.buybucketParams&&(G.buybucketData={params:B.buybucketParams},B.stickerParams?G.buybucketData.stickerParams=B.stickerParams:(F.rich_chat_message?G.buybucketData.richChatMessage=F.rich_chat_message:F.chat_message_text&&(G.buybucketData.chatMessageText=F.chat_message_text),F.purchase_price_micros&&(G.buybucketData.purchasePriceMicros=F.purchase_price_micros.toString())));B.donationAmountMicros&&(G.tipAmountMicros=B.donationAmountMicros,
B.tipParams&&(G.tipParams=B.tipParams));B.offerParams&&(G.offerParams=B.offerParams);B.productData&&(G.productData=B.productData);B.transactionParams&&(G.transactionParams=B.transactionParams)};var u$=function(){};
_.r(u$,a5);u$.prototype.getApiPaths=function(){return GqU};
u$.prototype.getExtension=function(G){return _.Q(G,Svs)};
u$.prototype.JSC$14488_buildRequest=function(G,B){B.updateFopParams&&(G.updateFopParams=B.updateFopParams)};var y72=function(){};
_.r(y72,a5);y72.prototype.getApiPaths=function(){return Bp7};
y72.prototype.getExtension=function(G){return _.Q(G,_.v_)};
y72.prototype.JSC$14488_buildRequest=function(G,B){B.couponCode&&(G.couponCode=B.couponCode);B.params&&(G.itemParams=B.params)};var n3D=function(){};
_.r(n3D,a5);n3D.prototype.getApiPaths=function(){return iPt};
n3D.prototype.getExtension=function(G){return _.Q(G,_.LPs)};
n3D.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;B.params&&(G.params=B.params);F.ctk&&(G.clientToken=F.ctk)};var Rm=function(G){this.JSC$18816_storeWithEntities=G};
_.r(Rm,a5);Rm.prototype.getApiPaths=function(){return Fzw};
Rm.prototype.getExtension=function(G){return _.Q(G,_.HR)};
Rm.prototype.JSC$14488_buildRequest=function(G,B,F){F.purchase_price_micros&&(G.productData={pdgData:{purchasePriceMicros:F.purchase_price_micros.toString()}},F.rich_chat_message&&(G.productData.pdgData.richChatMessage=F.rich_chat_message),F.currency_code&&(G.productData.pdgData.currencyCode=F.currency_code));B.transactionParams&&(G.transactionParams=B.transactionParams);B.clientLocationContext&&(G.clientLocationContext=B.clientLocationContext);F.payments_payload&&(G.paymentsPayload=F.payments_payload);
F.funds_guarantee_callback_client_data&&(G.fundsGuaranteeCallbackClientData=F.funds_guarantee_callback_client_data);var D,u;F=(D=this.JSC$18816_storeWithEntities)==null?void 0:(u=D.getState())==null?void 0:u.entities;if(B.entityKeys&&F){D=[];B=_.C(B.entityKeys);for(u=B.next();!u.done;u=B.next()){var R=u.value;u=_.cT(R).entityType;if(R=_.g5(F,u,R)){var N={};D.push((N[u]=R,N))}}G.entityMutationPayloads=D}};
Rm[ZA]=[gN];var lnN=function(){};
_.r(lnN,a5);lnN.prototype.getApiPaths=function(){return DsP};
lnN.prototype.getExtension=function(G){return _.Q(G,ZUw)};
lnN.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;F.backend_analytics&&(G.serializedBackendAnalyticsEvent=F.backend_analytics);B.offerParams&&(G.offerParams=B.offerParams)};var UND=function(){};
_.r(UND,a5);UND.prototype.getApiPaths=function(){return Bp7};
UND.prototype.getExtension=function(G){return _.Q(G,Y3I)};
UND.prototype.JSC$14488_buildRequest=function(G,B){B.params&&(G.itemParams=B.params)};var qrA=function(){};
_.r(qrA,a5);qrA.prototype.getApiPaths=function(){return unN};
qrA.prototype.getExtension=function(G){return _.Q(G,_.e_G)};
qrA.prototype.JSC$14488_buildRequest=function(G,B,F){F.resume_time_ms&&(G.resumeTimeMs=F.resume_time_ms);B.pauseParams&&(G.pauseParams=B.pauseParams)};var E3N=function(){};
_.r(E3N,a5);E3N.prototype.getApiPaths=function(){return RHT};
E3N.prototype.getExtension=function(G){return _.Q(G,_.gmv)};
E3N.prototype.JSC$14488_buildRequest=function(G,B,F){F=F===void 0?{}:F;F.c&&(G.redeemCode=F.c);F.rd&&(G.riskData=F.rd);F.ctk&&(G.clientToken=F.ctk)};var hW$=function(){};
_.r(hW$,a5);hW$.prototype.getApiPaths=function(){return wOs};
hW$.prototype.getExtension=function(G){return _.Q(G,_.$2T)};
hW$.prototype.JSC$14488_buildRequest=function(G,B){B.resumeParams&&(G.resumeParams=B.resumeParams)};var wt=function(G,B){this.clientName=G;this.defaultExpirationDelayMs=B};
wt.prototype.put=function(G,B){var F=this,D;return _.n(function(u){D=Object.assign({},B.data);D.key=G;D.clientName=F.clientName;D.expireTimestampMs===void 0&&(D.expireTimestampMs=(Math.round((0,_.Zl)())+F.defaultExpirationDelayMs).toString());return u.return(F.putInternal(G,D))})};
wt[ZA]=[bp,TOA];var KWQ=function(){wt.apply(this,arguments);this.JSC$18846_responseStore=new Map};
_.r(KWQ,wt);_.w=KWQ.prototype;_.w.get=function(G){var B=this;return _.n(function(F){return F.return(gA(B,G))})};
_.w.putInternal=function(G,B){var F=this,D,u,R;return _.n(function(N){D=F.defaultExpirationDelayMs;B.expireTimestampMs&&(D=Number(B.expireTimestampMs)-Math.round((0,_.Zl)()),u=_.sD("mweb_override_response_store_expiration_ms"),u>0&&u<D&&(D=u));R=setTimeout(function(){F.remove(G)},D);
F.JSC$18846_responseStore.set(G,{entryData:B,timer:R});_.di(N)})};
_.w.remove=function(G){var B=this;return _.n(function(F){anH(B,G);_.di(F)})};
_.w.removeAll=function(){var G=this;return _.n(function(B){G.JSC$18846_responseStore.forEach(function(F){clearTimeout(F.timer)});
G.JSC$18846_responseStore.clear();_.di(B)})};
_.w.has=function(G){return!!this.JSC$18846_responseStore.get(G)};
_.w.getKeys=function(){return this.JSC$18846_responseStore.keys()};
var gA=function(G,B){if(G=G.JSC$18846_responseStore.get(B))return new _.Zs(G.entryData)},anH=function(G,B){var F=G.JSC$18846_responseStore.get(B);
F&&(clearTimeout(F.timer),G.JSC$18846_responseStore.delete(B))};
KWQ.prototype.markAsProcessed=function(G){var B=this,F;return _.n(function(D){F=B.JSC$18846_responseStore.get(G);if(!F)return D.jumpTo(0);F.entryData.isProcessed=!0;return D.yield(B.putInternal(G,F.entryData),0)})};var H_8;var O_U=function(G,B,F){wt.call(this,G,B);this.token=F};
_.r(O_U,wt);_.w=O_U.prototype;_.w.get=function(G){var B=this,F,D;return _.n(function(u){return u.nextAddress==1?u.yield(sd(B.token),2):u.nextAddress!=3?(F=u.yieldResult,u.yield(F.get("ResponseStore",[G,B.clientName]),3)):(D=u.yieldResult)?u.return(new _.Zs(D)):u.return(void 0)})};
_.w.putInternal=function(G,B){var F=this,D;return _.n(function(u){if(u.nextAddress==1)return u.yield(sd(F.token),2);D=u.yieldResult;return u.yield(D.put("ResponseStore",B),0)})};
_.w.remove=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(sd(B.token),2);F=D.yieldResult;return D.return(F.delete("ResponseStore",[G,B.clientName]))})};
_.w.removeAll=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return F.yield(sd(G.token),2);B=F.yieldResult;return F.yield(rJL(B,IDBKeyRange.only(G.clientName)),0)})};
_.w.has=function(){throw Error("lj");};
_.w.markAsProcessed=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1)return u.yield(sd(B.token),2);if(u.nextAddress!=3)return F=u.yieldResult,u.yield(F.get("ResponseStore",[G,B.clientName]),3);D=u.yieldResult;if(!D)return u.jumpTo(0);D.isProcessed=!0;return u.yield(F.put("ResponseStore",D),0)})};_.Cv=new _.oV("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var mN$=function(G){var B;this.stateTagsData=(B=G.responseContext)==null?void 0:B.stateTags},X1H=function(G){var B;
return((B=G.stateTagsData)==null?void 0:B.stateTagsModified)||[]};var Q_Z;Q_Z=function(G){this.JSC$18859_responseStore=G};
_.eT=function(G,B,F){if(!_.X("state_tags_killswitch")){var D=new mN$(B);if(X1H(D).length>0){var u=G.JSC$18859_responseStore.getKeys();u=_.C(u);for(var R=u.next();!R.done;R=u.next()){R=R.value;var N=gA(G.JSC$18859_responseStore,R);if(N){var y=_.tm(N);a:{var U=void 0;N=X1H(D);y=((U=(new mN$(y)).stateTagsData)==null?void 0:U.relevantStateTags)||[];U=_.C(y);for(y=U.next();!y.done;y=U.next())if(y=y.value,y.stateTag!=null&&N.includes(y.stateTag)&&y.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){N=
!0;break a}N=!1}N&&anH(G.JSC$18859_responseStore,R)}}}}var q;D=(q=B.responseContext)==null?void 0:q.maxAgeSeconds;F&&D&&Number(D)>0&&(B=tZ(B,D),G.JSC$18859_responseStore.put(F,new _.Zs(B)))};
Q_Z.prototype.handleResponse=function(G,B){if(!B)throw Error("mj");var F,D;B=(F=B.config)==null?void 0:(D=F.storeStrategy)==null?void 0:D.storeKey;_.eT(this,G,B)};
Q_Z[ZA]=[_.tf];_.dLT=new _.oV("STORE_RESPONSE_PROCESSOR_TOKEN");var j_Q=function(G){this.JSC$18862_responseStore=G};
j_Q.prototype.handleResponse=function(G,B){if(B.input.match(_.v2(QHa))){var F;if(G==null?0:(F=G.entries)==null?0:F.length)for(G=_.C(G.entries),B=G.next();!B.done;B=G.next()){F=B.value.command;var D=void 0;B=(D=_.Q(F,_.Fu))==null?void 0:D.unserializedPrefetchData;if(!F||!B)break;D=(new TZ).JSC$14495_getStoreKey(F);var u=_.Q(B,ejG),R=void 0,N=void 0,y=void 0,U=void 0,q=void 0,h=void 0,K=((R=u)==null?0:(N=R.responseContext)==null?0:N.maxAgeSeconds)&&Number((y=u)==null?void 0:(U=y.responseContext)==null?
void 0:U.maxAgeSeconds)>0?Number((q=u)==null?void 0:(h=q.responseContext)==null?void 0:h.maxAgeSeconds):600;D&&K>0&&(u=tZ(u,K),this.JSC$18862_responseStore.put(D,new _.Zs(u)));F=(new iH).JSC$14495_getStoreKey(F);B=_.Q(B,URs);U=y=N=R=u=D=void 0;q=((D=B)==null?0:(u=D.responseContext)==null?0:u.maxAgeSeconds)&&Number((R=B)==null?void 0:(N=R.responseContext)==null?void 0:N.maxAgeSeconds)>0?Number((y=B)==null?void 0:(U=y.responseContext)==null?void 0:U.maxAgeSeconds):600;F&&q>0&&(B=tZ(B,q),this.JSC$18862_responseStore.put(F,
new _.Zs(B)))}}};
j_Q[ZA]=[_.tf];var LWD=function(G,B){this.innertubeTransportService=G;this.JSC$18865_commandHandler=B};
LWD.prototype.submitForm=function(G,B,F,D,u){var R=this,N,y,U,q,h,K;return _.n(function(a){if(a.nextAddress==1)return N={submitId:G,formData:B,submitBehavior:F,params:D},y=_.v2(vpP),a.yield(_.rB(R.innertubeTransportService,N,y,u),2);U=a.yieldResult;if(!U)return a.return(Promise.reject(new _.Uf("Submit API returned an undefined response. Submit ID: "+G)));q=U;(K=(h=q)==null?void 0:h.onResponseReceived)&&R.JSC$18865_commandHandler.resolveCommand(K);return a.return(q)})};
LWD[ZA]=[_.RF,_.Wr];var r7D=function(){this.scheduler=_.Kx()},WW$;
r7D.prototype.pause=function(){throw Error("nj");};
r7D.prototype.resume=function(){throw Error("nj");};
r7D.prototype.queue=function(G){var B=this,F=_.zn(),D=_.mX(this.scheduler,function(){try{var u;if(_.Gm.instance)var R=_.Gm.instance;else{var N=new _.Uf("Error: Unexpected uninitialized CommandHandler.");_.k2(N);R=void 0}(u=R)==null||u.resolveCommand(G.command);F.resolve()}catch(y){F.reject(y)}});
F.promise.thenCatch(function(u){u instanceof _.eg&&B.scheduler.cancelJob(D)});
return F.promise};
r7D.prototype.queueAll=function(G){var B=new Map;G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,B.set(F.id,this.queue(F));return B};var k_2=function(G,B){var F=this;this.taskModel=G;this.onTaskCancelledCallback=B;this.resolver=_.zn();G=G.proto.prefetchConfig;if(!G)throw Error("oj");if(!G.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(D){D instanceof _.eg&&(Hn$(F,F.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),F.onTaskCancelledCallback(F.taskModel.id,F.jobId),F.tick("pcc"));
throw D;});
this.timerName=this.taskModel.id;_.hJ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
k_2.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var Hn$=function(G,B){_.qa({prefetchInfo:{cancellationReason:B}},G.timerName)};
k_2.prototype.tick=function(G){_.KR(G,void 0,this.timerName)};var yT=function(){var G=this;this.scheduler=_.Kx();this.maxInflightTasks=_.sD("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.sD("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new YYw;this.onTaskCancelled=function(B,F){F&&G.scheduler.cancelJob(F);OnN(G,B);Nb(G,3)}},eWA=function(){yT.instance||(yT.instance=new yT);
return yT.instance};
yT.prototype.pause=function(){this.prefetchCoordinatorState=0};
yT.prototype.resume=function(){Nb(this,0)};
yT.prototype.queue=function(G){G=$N$(this,G);Nb(this,1);return G};
yT.prototype.queueAll=function(G){var B=new Map;G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,B.set(F.id,$N$(this,F));Nb(this,1);return B};
var $N$=function(G,B){var F=G.allPrefetchTasks.get(B.id);if(F)return F.cancellablePromise;try{var D=new k_2(B,G.onTaskCancelled)}catch(R){return _.U_(R)}F=D;F.tick("pcq");var u={prefetchInfo:{taskId:F.taskModel.id,isPrefetch:!0,fetchAction:F.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:F.taskModel.command.clickTrackingParams}};F.taskModel.csn&&(u.clientScreenNonce=F.taskModel.csn);_.qa(u,F.timerName);G.allPrefetchTasks.set(B.id,D);G.drainingHeap.insert(-D.getPriority(),D);return D.cancellablePromise},
Nb=function(G,B){G.prefetchCoordinatorState===B&&(G.prefetchCoordinatorState=2,zWZ(G))},zWZ=function(G){for(var B={};G.prefetchCoordinatorState!==0;B={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(G.inflightPrefetchTasks.size>=G.maxInflightTasks){G.prefetchCoordinatorState=3;break}B.prefetchTask$jscomp$1=G.drainingHeap.remove();if(!B.prefetchTask$jscomp$1){G.prefetchCoordinatorState=1;break}B.taskId$jscomp$3=B.prefetchTask$jscomp$1.taskModel.id;if(G.allPrefetchTasks.has(B.taskId$jscomp$3)){var F=-1;G.coordinatorTimeoutMs>0&&(F=_.mX(G.scheduler,function(D){return function(){bnD(G,D.taskId$jscomp$3,Error("qj"))}}(B),G.coordinatorTimeoutMs));
G.inflightPrefetchTasks.set(B.taskId$jscomp$3,F);if(!G.JSC$18882_commandHandler){if(!_.Gm.instance){bnD(G,B.taskId$jscomp$3,Error("rj"));continue}G.JSC$18882_commandHandler=_.Gm.instance}a:switch(B.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":F=1;break a;default:F=0}B.prefetchTask$jscomp$1.jobId=G.scheduler.addJob(function(D){return function(){D.prefetchTask$jscomp$1.tick("pcr");try{G.JSC$18882_commandHandler.resolveCommand(D.prefetchTask$jscomp$1.taskModel.command)||
bnD(G,D.taskId$jscomp$3,Error("sj"))}catch(u){bnD(G,D.taskId$jscomp$3,u)}}}(B),F,0)}}},VVD=function(G,B){(B=OnN(G,B))!=null&&(B.resolver.resolve(),B.tick("pce"));
Nb(G,3)},bnD=function(G,B,F){(B=OnN(G,B,F))!=null&&(B.resolver.reject(F),B.tick("pcc"),Hn$(B,"CANCELLATION_REASON_ERROR"),Math.random()<=_.sD("prefetch_coordinator_error_logging_sampling_rate")&&(F=new _.Uf("Prefetch Command failed.",B.taskModel.id,F.message),_.k2(F)));
Nb(G,3)},OnN=function(G,B,F){var D=G.allPrefetchTasks.get(B);
D?((F=G.inflightPrefetchTasks.get(B))&&F!==-1&&G.scheduler.cancelJob(F),G.inflightPrefetchTasks.delete(B),G.allPrefetchTasks.delete(B)):_.em(new _.Uf("Unexpected missing prefetch task when deleting task.",B,F==null?void 0:F.message));return D};var v32=function(G,B,F,D,u){this.id=G;this.triggerOn=B;this.cancelOn=F;this.command=D;this.proto=u};
_.ZN.Object.defineProperties(v32.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var o3$=function(){this.JSC$18887_prefetchCoordinator=eWA();WW$||(WW$=new r7D);this.defaultCoordinator=WW$},MVD;
o3$.getInstance=function(){MVD||(MVD=new o3$);return MVD};
o3$.prototype.get=function(G){switch(G){case 0:return this.JSC$18887_prefetchCoordinator;default:return this.defaultCoordinator}};var nv=function(){this.coordinatorSupplier=o3$.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},A7G=function(G){var B=_.qW()||void 0,F=Object.keys(p1H)[0];
if(F){var D=G.taskIdByTriggerId.get(F);if(D!=null){G.taskIdByTriggerId.delete(F);F=[];D=_.C(D);for(var u=D.next();!u.done;u=D.next())if(u=G.tasks.get(u.value))B!=="UNDEFINED_CSN"&&(u.csn=B),F.push(u);F=z1Q(F);B=[];F=_.C(F);for(D=F.next();!D.done;D=F.next()){u=_.C(D.value);D=u.next().value;u=u.next().value;D=G.coordinatorSupplier.get(D).queueAll(u);D=_.C(D);var R=D.next();for(u={};!R.done;u={taskId$jscomp$9:void 0},R=D.next()){var N=_.C(R.value);R=N.next().value;N=N.next().value;u.taskId$jscomp$9=
R;R=N;B.push(u.taskId$jscomp$9);G.queuedPromisesByTask.set(u.taskId$jscomp$9,_.at(R,function(y){return function(){Yr$(G,y.taskId$jscomp$9)}}(u)))}}}}else _.em(new _.Uf("Unexpected malformed TriggerEvent."))};
nv.prototype.trigger=function(G,B){var F=this,D=this.tasks.get(G);if(!D||this.queuedPromisesByTask.has(G))return!1;dND(this,G,D.triggerOn);B!=="UNDEFINED_CSN"&&(D.csn=B);B=this.coordinatorSupplier.get(D.taskType).queue(D);this.queuedPromisesByTask.set(G,_.at(B,function(){Yr$(F,G)}));
return!0};
nv.prototype.cancel=function(G){var B=this.queuedPromisesByTask.get(G);if(B)B.cancel();else return Yr$(this,G)};
var Yr$=function(G,B){G.queuedPromisesByTask.delete(B);var F=G.tasks.get(B);if(!F)return!1;G.tasks.delete(B);dND(G,B,F.triggerOn);(F=$Jg(F.cancelOn))&&(G=G.taskIdByCancelId.get(F))&&G.delete(B);return!0},dND=function(G,B,F){(F=Object.keys(F)[0])&&(G=G.taskIdByTriggerId.get(F))&&G.delete(B)};var p1H={taskRegistered:{}},J7H=function(){nv.instance||(nv.instance=new nv);this.JSC$18896_taskManager=nv.instance};
_.r(J7H,kh);
J7H.prototype.resolveCommand=function(G){var B=this,F,D;return _.n(function(u){F=_.Q(G,O3U);if((D=F)==null||!D.tasks){var R=new _.Uf("RegisterTasksCommand is missing tasks.");_.k2(R);return u.return()}R=B.JSC$18896_taskManager;for(var N=_.C(F.tasks),y=N.next();!y.done;y=N.next())if(y=y.value,y=y.id&&y.triggerOn&&y.cancelOn&&y.command?new v32(y.id,y.triggerOn,y.cancelOn,y.command,y):void 0,y){var U=Object.keys(y.triggerOn)[0];if(U){var q=$Jg(y.cancelOn);q?(R.tasks.set(y.id,y),R.taskIdByTriggerId.has(U)||R.taskIdByTriggerId.set(U,
new Set),R.taskIdByTriggerId.get(U).add(y.id),R.taskIdByCancelId.has(q)||R.taskIdByCancelId.set(q,new Set),R.taskIdByCancelId.get(q).add(y.id)):_.em(new _.Uf("Unexpected malformed cancelOn field."))}else _.em(new _.Uf("Unexpected malformed triggerOn field."))}else _.em(new _.Uf("Unexpected malformed Task proto."));A7G(B.JSC$18896_taskManager);_.di(u)})};var c7$={},Td$=(c7$.rendered={priority:_.X("web_adaptive_early_init")?8:0,callback:function(){var G={};G.numCpu=navigator.hardwareConcurrency;var B={};B.ramGb=_.Fz.navigator.deviceMemory;var F={staticContext:{}};B.ramGb&&otQ(B.ramGb)&&(F.staticContext.memoryTotalKbytes=(B.ramGb*1048576).toString());G.numCpu&&otQ(G.numCpu)&&(F.staticContext.cpuCores=G.numCpu);if(_.X("web_enable_adaptive_appl_signal")){G={};B=HMQ();B=B.length>0?B[0]:void 0;var D,u=(D=_.Xw("rses_dpj"))!=null?D:B==null?void 0:B.tick.rses_dpj,
R;D=(R=_.Xw("rsef_dpj"))!=null?R:B==null?void 0:B.tick.rsef_dpj;u&&Number(u)>0&&D&&Number(D)>0&&(R=Math.ceil(Number(D)-Number(u)),R>0&&(G.loadLatency=R));G.loadLatency&&otQ(G.loadLatency)&&(F.appL=G.loadLatency.toString())}_.W$("applicationStarted",F);MkJ=F;_.X("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",pAQ)}},c7$);var Inz=new _.oV("WINDOW_ON_ERROR"),fn$=new _.oV("ERROR_WEIGHT_MAPS"),tVB=new _.oV("INIT_ERROR");var ZnH={},g3Q=(ZnH.initialized={priority:10,callback:function(G){G.injector.resolve(tVB)()}},ZnH);var SrU=function(){},s_D=function(){var G=_.Yf("meta_logger_impl");
G||(G=new SrU,_.IY("meta_logger_impl",G));return G},xNN=function(){s_D().csiSubscriptionKey=KCc("meta_logging_csi_event",function(G){var B=G.timerName;
if(G=G.timelineData){_.hJ(B,{startTime:G.startTime},B);G.infos&&_.qa(G.infos,B);for(var F=_.C(Object.keys(G.ticks)),D=F.next();!D.done;D=F.next())D=D.value,_.KR(D,G.ticks[D],B)}})};
SrU.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&XcJ(this.csiSubscriptionKey)};var PzU={},GMN=(PzU.initialized={priority:10,callback:function(){xNN()}},PzU);var BTN=function(G,B){this.innertubeClientName=G;this.JSC$18907_prefCookie=B};
BTN.prototype.record=function(){if(_.X("web_li_record_binary_eval_tick")){var G=_.Xw("rsef_dpj");var B=_.Xw("rses_dpj");G=G!==void 0&&B!==void 0?Math.round(G-B):void 0;if(G!==void 0&&G>0){B=_.np(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var F=this.poolSize;if(!(B.valuesSeen>=1E9)){if(B.valuesSample.length<F)B.valuesSample.push(G);else{var D=Math.floor(Math.random()*(B.valuesSeen+1));D<F&&(B.valuesSample[D]=G)}B.valuesSeen+=1}_.yW(this.storagePrefix+"-"+this.innertubeClientName,
B,2592E3);G=B.valuesSample;B=b_I(G);G=G.length<this.poolSize?void 0:B<400?1:B<1700?2:3;G!==void 0&&(this.JSC$18907_prefCookie.set(this.cookiePrefix+this.innertubeClientName,G),this.JSC$18907_prefCookie.save())}}else _.ln(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18907_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18907_prefCookie.save()};
BTN[ZA]=[bp,hk];var iEz=function(){BTN.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.r(iEz,BTN);var FSD=new _.oV("PAGE_LOAD_TIME_TOKEN");var Dgz=function(G){this.signal=G;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;G.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.mX(_.Lu,this.disableLoggingAndSendPayload,1E4)};
Dgz.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Lu.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),uez(this))};
var uez=function(G){var B=_.Uw();if(B){var F={webClientComponentsData:{components:Array.from(G.ids,function(D){return{id:D}})}};
G.ids.clear();_.Rh().visualElementStateChanged(B,F)}};var RX$=ER({a11y:U18});_.wND=hZ(RX$)(RX$.a11y,{ephemeralActionSelector:function(G){return G.ephemeralAction||null}});var CCB=ER({continuation:aFL});var NTN=hZ(CCB)(CCB.continuation,{continuationCommandSelector:function(G){return G.continuationCommand}});var y0D,lB$,n0G;y0D=function(){this.loadFns=new Map;this.xidToRendererName=new Map};
_.rv=function(G,B,F,D){G.loadFns.has(B)&&G.loadFns.get(B)!==D?_.k2(Error("tj`"+B)):(G.loadFns.set(B,D),G.xidToRendererName.set(F,B))};
lB$=function(G,B){if(typeof B==="string"){var F=n0G(G,B);return G.loadFns.get(F)}return function(){var D;return _.n(function(u){return u.nextAddress==1?(D={},u.yield(Promise.all(B.map(function(R){var N,y;return _.n(function(U){if(U.nextAddress==1){N=n0G(G,R);y=G.loadFns.get(N);if(!y)return D[N]=void 0,U.jumpTo(0);_.b5(U,3);return U.yield(y(),5)}if(U.nextAddress!=3)return D[N]=U.yieldResult,_.oY(U,0);_.Al(U);D[N]=void 0;_.di(U)})})),2)):u.return(D)})}};
n0G=function(G,B){var F;return(F=G.xidToRendererName.get(B))!=null?F:B};var UgD=new _.oV("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var l$=function(G,B){this.JSC$18939_storeWithEntities=G;this.JSC$18939_commandHandler=B;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
l$.prototype.start=function(){this.JSC$18939_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
l$.prototype.observeDownloadingEntities=function(){var G=_.vYo(this.JSC$18939_storeWithEntities.getState().entities).map(function(D){return oYJ(D)});
if(G.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var B={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:hn8()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.pR(_.G7("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18939_commandHandler.resolveCommand(B)}this.downloadingEntities=G}else if(this.downloadingEntities.length){var F=VCM(this.JSC$18939_storeWithEntities.getState().entities).map(function(D){return oYJ(D)});
this.downloadingEntities.filter(function(D){return F.includes(D)}).length&&(G={openPopupAction:nUS()},this.JSC$18939_commandHandler.resolveCommand(G));
this.downloadingEntities=[]}};
l$[ZA]=[gN,_.Wr];var q4$;_.Ua=function(G,B,F,D,u,R,N,y){this.JSC$18942_playerApiPromise=G;this.JSC$18942_commandHandler=B;this.JSC$18942_screenManager=F;this.offlineWebClientEligibility=D;this.JSC$18942_prefStorage=u;this.JSC$18942_actionRouter=R;this.entityTypeMap=N;this.JSC$18942_persistentStorePromiseAccessor=y;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
q4$=function(){var G=_.te().resolve(_.Ua),B;_.n(function(F){if(F.nextAddress==1)return G.downloadFailureListenerBound?F.return():F.yield(G.JSC$18942_playerApiPromise,2);B=F.yieldResult;B.addEventListener("onOfflineOperationFailure",function(D){if(D.failureReason&&D.entityKey&&D.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(D.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var u=_.cT(D.entityKey).entityId;u&&G.JSC$18942_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
u)}else if(_.X("kevlar_woffle")){u=G.JSC$18942_commandHandler;var R=u.resolveCommand;D=D.failureReason;var N=_.G7("TRANSFER_FAILED",void 0,"Download failed");D==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(N=_.G7("STORAGE_FULL",void 0,"Storage full"));R.call(u,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.pR(N),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
G.downloadFailureListenerBound=!0;_.di(F)})};
_.Ua.prototype.deleteVideo=function(G,B){var F=this,D,u,R;return _.n(function(N){if(N.nextAddress==1)return N.yield(F.JSC$18942_playerApiPromise,2);D=N.yieldResult;R={offlineLoggingData:{offlineDeleteReason:(u=B)!=null?u:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return N.yield(D.queueOfflineAction(G,F.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",R),0)})};
_.Ua.prototype.pauseVideoDownload=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.JSC$18942_playerApiPromise,2);F=D.yieldResult;F.pauseVideoDownload(G);_.di(D)})};
_.Ua.prototype.resumeVideoDownload=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.JSC$18942_playerApiPromise,2);F=D.yieldResult;return D.yield(F.resumeVideoDownload(G),0)})};
_.Ua[ZA]=[_.IQ,_.Wr,_.ux,UgD,X_,o1,yYq,ip];var E0D=new _.oV("DOWNLOAD_STATE_STORE_TOKEN");var hXA=function(G,B){this.JSC$18963_persistentStorePromiseAccessor=G;this.store=B;this.upliftCompletionResolver=new _.tc},mgD=function(){var G=_.te().resolve(KSZ),B;
_.n(function(F){switch(F.nextAddress){case 1:if(G.upliftImplPromise)return F.return(G.upliftImplPromise);_.b5(F,2);G.upliftImplPromise=aBU(G);return F.yield(G.upliftImplPromise,4);case 4:G.upliftCompletionResolver.resolve();_.oY(F,3);break;case 2:throw B=_.Al(F),G.upliftCompletionResolver.reject(B),B;case 3:return F.return(G.upliftImplPromise)}})},aBU=function(G){var B,F,D;
return _.n(function(u){switch(u.nextAddress){case 1:return _.on("LOGGED_IN")?u.yield(G.JSC$18963_persistentStorePromiseAccessor(),2):u.return();case 2:B=u.yieldResult;if(!B)return _.KR("vdeur"),u.return();_.KR("vdeus");_.b5(u,3);return u.yield(XN2(B),5);case 5:F=u.yieldResult;G.store.dispatch(mRU(F));B.observe(function(R){Xjl(G.store,R)});
_.oY(u,4);break;case 3:throw D=_.Al(u),_.KR("vdeur"),D;case 4:_.KR("vdeuc"),_.di(u)}})},XN2=function(G){var B;
return _.n(function(F){if(F.nextAddress==1)return F.yield(YQo(G),2);B=F.yieldResult;return F.return(B.reduce(function(D,u){if(!u.data||!u.key||!u.entityType)return D;D[u.entityType]||(D[u.entityType]={});D[u.entityType][u.key]=u.data;return D},{}))})};
hXA[ZA]=[ip,_.Ep];var KSZ;KSZ=new _.oV("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Q7D=new _.oV("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var j7$=function(G,B){this.JSC$18966_persistentStorePromiseAccessor=G;this.transportService=B};
j7$.prototype.refresh=function(){var G=this,B,F,D,u;return _.n(function(R){if(R.nextAddress==1)return _.on("LOGGED_IN")?R.yield(G.JSC$18966_persistentStorePromiseAccessor(),2):R.return();if(R.nextAddress!=3)return(B=R.yieldResult)?R.yield(Kss(B),3):R.return();if((F=R.yieldResult)&&!(Number(F.data.refreshTimestampMs||0)<(0,_.Zl)()))return R.return();D={browseId:"SPaccount_downloads"};u=_.v2(YL);_.rB(G.transportService,D,u).then(function(N){var y;if(B&&(N==null?void 0:(y=N.responseContext)==null?void 0:
y.maxAgeSeconds)!==0){var U;y=(N==null?void 0:(U=N.responseContext)==null?void 0:U.maxAgeSeconds)||604800;U=String(Math.floor((0,_.Zl)())+y*1E3);B.put("service:downloads_settings:fallback",new _.Zs({innertubeResponse:N,refreshTimestampMs:U}))}});
_.di(R)})};
j7$[ZA]=[_.Cv,_.RF];var qb=function(G,B){this.JSC$18970_playerPromise=G;this.store=B;this.started=!1};
qb.prototype.start=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return G.started?F.return():F.yield(G.JSC$18970_playerPromise,2);B=F.yieldResult;B.addEventListener("onOrchestrationBecameLeader",G.updateIsLeader.bind(G,!0));B.addEventListener("onOrchestrationLostLeader",G.updateIsLeader.bind(G,!1));if(B.isOrchestrationLeader)G.updateIsLeader(B.isOrchestrationLeader());else{var D=new _.Uf("Function isOrchestrationLeader is undefined",{"player.isReady":B.isReady(),"player.playVideo":B.playVideo?
"defined":"undefined"});_.k2(D);G.updateIsLeader(!1)}G.started=!0;_.di(F)})};
qb.prototype.updateIsLeader=function(G){this.store.dispatch(_.d5({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:G}}))};
qb[ZA]=[_.IQ,_.Ep];var LSZ=function(G,B){this.networkStatusManager=G;this.JSC$18973_prefStoragePromise=B;this.redirectsToPreload=["https://youtube.com"]},r0D=function(){var G=_.te().resolve(LSZ),B,F,D,u,R,N;
_.n(function(y){switch(y.nextAddress){case 1:return y.yield(G.JSC$18973_prefStoragePromise,2);case 2:B=y.yieldResult;if(!(F=B)){y.jumpTo(3);break}return y.yield(B.get("yt-redirect-prefetch-id"),4);case 4:F=y.yieldResult;case 3:if(F||!G.networkStatusManager.isNetworkAvailable())return y.return();D={cache:"reload",redirect:"manual"};u=_.C(G.redirectsToPreload);R=u.next();case 5:if(R.done){if(!B){y.jumpTo(0);break}return y.yield(B.set("yt-redirect-prefetch-id",!0,86400),0)}N=R.value;_.b5(y,8);return y.yield(_.Fz.fetch(N,
D),10);case 10:_.oY(y,6);break;case 8:_.Al(y);case 6:R=u.next(),y.jumpTo(5)}})};var WSz=function(G){this.JSC$18979_pageManager=G},HE$=function(G){var B=[];
cy6(["videoId","contentId"],G.JSC$18979_pageManager.data,new Set,B);return B},kMB=function(G){return HE$(G).filter(function(B){return B.contentType==="video"}).map(function(B){return B.contentId}).filter(function(B){return B!==void 0})};
WSz[ZA]=[_.pA];var OE$=new _.oV("PAGE_CONTENT_EXTRACTOR_TOKEN");var eXS=function(G){G?(this.container=G,this.containerWasInjected=!0):this.containerWasInjected=!1};
eXS.prototype.openDialog=function(G,B,F){var D=this,u;return _.n(function(R){(u=D.container)==null||u.openDialog(G,B,F);_.di(R)})};
eXS.prototype.closeDialog=function(){var G=this,B;return _.n(function(F){(B=G.container)==null||B.closeDialog();_.di(F)})};
eXS.prototype.isDialogOpen=function(){var G=this,B,F;return _.n(function(D){return D.return((F=(B=G.container)==null?void 0:B.isDialogOpen())!=null?F:!1)})};
eXS[ZA]=[_.fH(e$y)];_.$gz=new _.oV("POPUP_CONTROLLER_TOKEN");var zXD=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
zXD.prototype.registerPanel=function(G,B){if(G){this.panelMap.set(G,B);var F=this.pendingPanelResolvers.get(G);F&&(F.resolve(B),this.pendingPanelResolvers.delete(G))}};
zXD.prototype.getPanel=function(G){var B=this,F;return _.n(function(D){return(F=B.panelMap.get(G))?D.return(F):D.return(bEZ(B,G))})};
var bEZ=function(G,B){var F,D;return _.n(function(u){if(F=G.pendingPanelResolvers.get(B))return u.return(F.promise);D=new _.tc;G.pendingPanelResolvers.set(B,D);return u.return(D.promise)})},V2G=function(G,B){zXD.call(this);
var F=this;this.popupController=G;this.persistentPanelController=B;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return F.panelMap.size}}};
_.r(V2G,zXD);_.w=V2G.prototype;_.w.getReloadContinuation=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.getPanel(G),2);F=D.yieldResult;return D.return(F.getReloadContinuation())})};
_.w.showPanel=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m;return _.n(function(L){if(L.nextAddress==1){F=G;D=F.identifier;u=F.panelContents;R=F.config;N=F.extras;y=F.panelUpdatableFields;U=F.updatePanelContinuationData;q=G.target;U&&B.updatePanelContinuationDatas.set(D,U);if((h=R)==null?0:(K=h.engagementPanelPopupPresentationConfig)==null?0:K.popupType)if(a=R.engagementPanelPopupPresentationConfig.popupType,q===void 0&&(q=document.body),a==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!B.persistentPanelController)return _.em(new _.Uf("Persistent panel controller is not available.")),
L.return();var W=B.persistentPanelController;W.persistentPanelIdentifiers.has(D)||(W.persistentPanelWrapper.appendChild(W.engagementPanelElement({panelIdentifier:D},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),W.persistentPanelIdentifiers.add(D));a:switch(_.OY.currentPageSubTypeSelector(W.store.getState())){case "watch":var e="WATCH";break a;default:e="APP"}_.v0Z(W,e);W.store.dispatch(EGq(!0))}else{if(a==="PANEL_POPUP_TYPE_DIALOG"||a==="PANEL_POPUP_TYPE_DROPDOWN"){W=L.return;e=B.popupController;
var b=e.openPopup;a:switch(a){case "PANEL_POPUP_TYPE_DIALOG":var M="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":M="DROPDOWN";break a;default:throw Error("vj`"+a);}return W.call(L,b.call(e,D,u,M,q))}_.em(new _.Uf("Popup type "+a+" not supported in PanelController."))}return L.yield(B.getPanel(D),2)}m=L.yieldResult;(u||y)&&m.updatePanel(u,!1,N,y);m.showPanel(N);_.di(L)})};
_.w.hidePanel=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return F=G,D=F.identifier,N.yield(B.getPanel(D),2);u=N.yieldResult;u.hidePanel();B.popupController.closePopup(D);(R=B.persistentPanelController)!=null&&R.persistentPanelIdentifiers.has(D)&&R.store.dispatch(EGq(!1));_.di(N)})};
_.w.isVisible=function(G,B){var F=this,D;return _.n(function(u){if(u.nextAddress==1)return B&&!F.panelMap.has(G)?u.return(!1):u.yield(F.getPanel(G),2);D=u.yieldResult;return u.return(D.isVisible())})};
_.w.updatePanel=function(G){var B=this,F,D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1){F=G;D=F.identifier;u=F.panelContents;R=F.shouldFocus===void 0?!1:F.shouldFocus;N=F.extras;y=F.panelUpdatableFields;U=F.updatePanelContinuationData;if(!u&&!y)return h.return();U&&B.updatePanelContinuationDatas.set(D,U);_.X("enable_ai_companion")&&D==="PAai_companion"&&_.DM.remove("youchat_messages_section");return h.yield(B.getPanel(D),2)}q=h.yieldResult;q.updatePanel(u,R,N,y);u&&_.X("enable_ai_companion")&&
B.registerPanelContent(D,u);_.di(h)})};
_.w.registerPanelContent=function(G,B){G&&this.panelContentMap.set(G,B)};
_.w.unregisterPanelContent=function(G){this.panelContentMap.delete(G)};
_.w.getPanelContent=function(G){return this.panelContentMap.get(G)};
_.w.getUpdatePanelContinuationData=function(G){return this.updatePanelContinuationDatas.get(G)};
V2G[ZA]=[_.$gz,_.fH(_.UB)];var o02=function(G,B){this.innertubeTransportService=G;this.JSC$18998_screenManager=B},M2U=function(G){var B;
return!((B=G.panelLoadingStrategy)==null||!B.requestTemplate)};
o02.prototype.makeRequest=function(G){var B=this,F,D;return _.n(function(u){switch(u.nextAddress){case 1:if(!M2U(B)){u.jumpTo(2);break}_.b5(u,3);return u.yield(_.$F(B.innertubeTransportService,G),5);case 5:return F=u.yieldResult,F?u.return(F.content):(_.k2(Error("wj")),u.return(void 0));case 3:D=_.Al(u),_.k2(D);case 2:return u.return(void 0)}})};
o02.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
o02.prototype.execute=function(G){var B=this,F,D,u,R,N,y,U,q,h,K;return _.n(function(a){if(a.nextAddress==1){F=G;D=F.data;u=F.fallbackVe;R=F.parentVe;N=F.createScreenConfig;y=F.renderFn;U=F.command;B.panelLoadingStrategy=D;var m,L,W=((m=B.panelLoadingStrategy)==null?0:m.screenVe)?(L=B.panelLoadingStrategy)==null?void 0:L.screenVe:u;W&&_.t9(B.JSC$18998_screenManager,W,R,N);return(q=B.getContent())?a.yield(y(q),2):a.jumpTo(2)}return a.nextAddress!=4?M2U(B)?a.yield(B.makeRequest(U),4):a.return():(K=
h=a.yieldResult)?a.yield(y(K),0):a.return()})};
o02[ZA]=[_.RF,_.ux];var pNN;pNN=function(G,B){this.engagementPanelElement=G;this.store=B;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.v0Z=function(G,B){var F=G.persistentPanelContainerMap.get(B);F?F.contains(G.persistentPanelWrapper)||(G=G.persistentPanelWrapper,_.Mh=!0,_.pk.set(G,!0),F.insertBefore(G,null),_.pk.delete(G),_.Mh=!1):_.em(new _.Uf("Persistent panel container not found for surface "+B+"."))};
pNN[ZA]=[$cy,_.Ep];var Ea=function(){var G=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){G.isHovered=!0};
this.onTargetHoverLeft=function(){G.isHovered=!1};
this.onSheetHoverEntered=function(){G.isHovered=!0;var B;(B=G.hoverEnterCallback)==null||B.call(G)};
this.onSheetHoverLeft=function(){G.isHovered=!1;var B;(B=G.hoverLeaveCallback)==null||B.call(G)}};
Ea.prototype.getContainer=function(){return _.vZ()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ea.prototype.openSheet=function(G,B,F){F=F===void 0?B:F;var D=this,u,R,N,y,U,q,h;return _.n(function(K){switch(K.nextAddress){case 1:return u={stack:[],error:void 0,hasError:!1},_.b5(K,2,3),R=gd,K.yield(D.isSheetOpen(),5);case 5:N=K.yieldResult;ov7(u,buo(R));if(!N){K.jumpTo(6);break}if(!D.shouldPreventClosingWhileHovered){if(!_.X("delay_sheet_open_killswitch")){if(_.X("web_close_sheet_if_same_target_killswitch")&&B&&D.currentTarget===B)return(y=D.getContainer())==null||y.closeSheet(),K.return();D.pendingData=
{data:G,target:t5H(D,B)};return K.return()}K.jumpTo(6);break}if(D.currentTarget===B)return K.return();Y4z(D);A0$(D);return K.yield((U=D.getContainer())==null?void 0:U.closeSheet(),6);case 6:if(G.viewModel&&(G={viewModel:G.viewModel,sheetPosition:G.sheetPosition,expandToFullWidth:G.expandToFullWidth}),(q=D.getContainer())==null||q.openSheet(G,B,F),D.currentTarget=B,D.shouldPreventClosingWhileHovered){D.onTargetHoverEntered();var a;(a=D.currentTarget)==null||a.addEventListener("mouseenter",D.onTargetHoverEntered);
var m;(m=D.currentTarget)==null||m.addEventListener("mouseleave",D.onTargetHoverLeft);dgA(D)}else D.hasRegisteredHoverCallbacks&&dgA(D);case 3:_.vY(K);MN8(u);_.Yd(K,0);break;case 2:h=_.Al(K),u.error=h,u.hasError=!0,K.jumpTo(3)}})};
Ea.prototype.closeSheet=function(){var G=this;return _.n(function(B){return G.hideDelayMs?(setTimeout(function(){return _.n(function(F){return F.yield(J0z(G),0)})},G.hideDelayMs),B.return()):B.yield(J0z(G),0)})};
var J0z=function(G){var B;return _.n(function(F){if(F.nextAddress==1){if(G.shouldPreventClosingWhileHovered){if(G.isHovered)return F.return();Y4z(G);A0$(G)}else G.hasRegisteredHoverCallbacks&&(A0$(G),G.onSheetHoverLeft());return F.yield((B=G.getContainer())==null?void 0:B.closeSheet(),2)}if(F.nextAddress!=4)return G.resetState(),!G.pendingData||_.X("delay_sheet_open_killswitch")?F.jumpTo(0):F.yield(G.openSheet(G.pendingData.data,G.pendingData.target),4);G.pendingData=void 0;_.di(F)})};
Ea.prototype.isSheetOpen=function(){var G=this,B,F;return _.n(function(D){return D.return((F=(B=G.getContainer())==null?void 0:B.isSheetOpen())!=null?F:!1)})};
Ea.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var Y4z=function(G){var B;(B=G.currentTarget)==null||B.removeEventListener("mouseenter",G.onTargetHoverEntered);var F;(F=G.currentTarget)==null||F.removeEventListener("mouseleave",G.onTargetHoverLeft)},dgA=function(G){var B,F=(B=G.getContainer())==null?void 0:B.getSheetContainerElement();
F==null||F.addEventListener("mouseenter",G.onSheetHoverEntered);F==null||F.addEventListener("mouseleave",G.onSheetHoverLeft)},A0$=function(G){var B,F=(B=G.getContainer())==null?void 0:B.getSheetContainerElement();
F==null||F.removeEventListener("mouseenter",G.onSheetHoverEntered);F==null||F.removeEventListener("mouseleave",G.onSheetHoverLeft)},t5H=function(G,B){if(!_.X("web_parent_target_for_sheets"))return B;
var F,D;return(D=(F=G.getContainer())==null?void 0:F.getParentTarget(B))!=null?D:B};var xL=window.documentPictureInPicture;var Pb8=_.vP(["dark"]),GgJ=_.vP(["system-icons"]),BFQ=_.vP(["typography"]),iqQ=_.vP(["lang"]),FNl=_.vP(["style"]),gUU=_.vP(["dir"]),SQJ=_.vP(["rounded-container"]),swL=_.vP(["style"]),uyL=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],h_=function(G){this.JSC$19016_clientRoot=G;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
h_.prototype.openWindow=function(G){var B=this,F,D;return _.n(function(u){switch(u.nextAddress){case 1:if(!xL||!xL||!e8()||B.currentPipWindow)return u.return(!1);_.b5(u,2);return u.yield((D=xL?xL:null)==null?void 0:D.requestWindow(G),4);case 4:F=u.yieldResult;_.oY(u,3);break;case 2:return _.Al(u),u.return(!1);case 3:if(!F)return u.return(!1);F.addEventListener("pagehide",function(){c0$(B)});
F.addEventListener("resize",B.handlePipWindowResize);Des(F);wts(F);tFl(F);return u.yield(Z_I(F),5);case 5:if(!TxQ())return u.return(!1);B.currentPipWindow=F;B.JSC$19016_eventForwarder=R5o(F,B.JSC$19016_clientRoot);B.pipWindowResizeDelay=new _.s2(function(){B.currentPipWindow&&_.T1(B.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.$i(B.currentPipWindow.innerWidth,B.currentPipWindow.innerHeight)])},F);
B.pipWindowResizeDelay.start();return u.return(!0)}})};
h_.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var c0$=function(G){if(G.currentPipWindow){var B,F;(B=xL?xL:null)==null||(F=B.window)==null||F.close();G.currentPipWindow.removeEventListener("resize",G.handlePipWindowResize);var D;(D=G.pipWindowResizeDelay)==null||D.dispose();G.pipWindowResizeDelay=void 0;var u;(u=G.JSC$19016_eventForwarder)==null||u.stop();G.JSC$19016_eventForwarder=void 0;B=_.C(G.onCloseCallbacks);for(F=B.next();!F.done;F=B.next())F=F.value,F();G.onCloseCallbacks=[];G.currentPipWindow=null}};
h_.prototype.getWindow=function(){return this.currentPipWindow};
var TT$=function(G,B){var F;(F=G.onCloseCallbacks)==null||F.push(B)};
h_.prototype.pictureInPictureSupported=function(){return!(!xL||!xL)&&e8()};
_.ZN.Object.defineProperties(h_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
h_[ZA]=[tMa];var IBH=new _.oV("PICTURE_IN_PICTURE_CONTROLLER");var CSo=function(G,B){this.lengthY=this.lengthX=0;this.lengthX=B.x-G.x;this.lengthY=B.y-G.y};var fBQ=function(){},DK$=function(G,B){var F;
(F=G.headerElement)==null||F.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:B}))};var t2D=function(){};
t2D.prototype.openPopup=function(G,B,F,D){var u=this,R;return _.n(function(N){if(!u.container)return N.return();R={openPopupAction:{popup:B,popupType:F,uniqueId:G}};return N.return(u.container.handleOpenPopupAction(R,D))})};
t2D.prototype.closePopup=function(G){this.container&&this.container.closePopup(G)};var ZEZ=function(){this.openTunnels=new Map},Jp8=function(G,B,F){if(lEs(F)){var D=_.Be(F,"gclid");
F={handleEvent:function(y){B&&!B.closed&&typeof B.postMessage==="function"&&y&&y.origin&&y.source===B&&y.data&&y.data.action==="gcl_setup"&&B.postMessage(Object.assign({},{action:"gcl_transfer"},D&&{gclid:D},{gadSource:2}),y.origin)}};
for(var u=_.C(G.openTunnels),R=u.next();!R.done;R=u.next()){var N=_.C(R.value);R=N.next().value;N=N.next().value;if(R.closed)try{window.removeEventListener("message",N),G.openTunnels.delete(R)}catch(y){_.k2(y)}}B&&G.openTunnels.size<15&&(G.openTunnels.set(B,F),window.addEventListener("message",F))}};var g0D=function(){this.clientParams=new Map},pX$=function(G){for(var B=_.C(G.clientParams.keys()),F=B.next();!F.done;F=B.next())F=F.value,F.startsWith("yt-mini-app-share")&&G.clientParams.delete(F)};var S4z=function(G,B){_.uz.call(this);var F=this;this.shortsController=G;this.storeWithShorts=B;G=_.Dh(this.storeWithShorts,_.NM8,function(D){if(D){var u,R=(u=F.shortsController.getRoot())==null?void 0:u.getPlayer(),N;(u=(N=F.shortsController.alternativePlayerContainerElement)==null?void 0:N.getPlayerContainer())&&(R==null||R.appendTo(u))}else{var y;N=(y=F.shortsController.alternativePlayerContainerElement)==null?void 0:y.getPlayerContainer().querySelector("#player");u=F.shortsController.activeIndex;
(y=(R=F.shortsController.getRoot())==null?void 0:R.querySelector('ytd-reel-video-renderer[id="'+u+'"] #player-container'))&&(N==null||N.appendTo(y,void 0,!0))}});
this.addOnDisposeCallback(G)};
_.r(S4z,_.uz);var Kv=function(G,B,F,D){var u=this;this.storeWithShorts=G;this.ephemeralResponseStore=B;this.innertubeTransportService=F;this.innertubeTransportLoader=D;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.FT(_.Ix);this.isShortsPipActive=_.FT(_.fh);this.nextReelVe=_.ge(56921);this.prevReelVe=_.ge(56922);this.backButtonVe=_.ge(22156);this.TEST_ONLY={getActiveModules:function(){return u.activeModules}}},s7$=function(G){G.unsubscribeFromStore=
_.Dh(G.storeWithShorts,_.Crs,function(B){G.initOrDisposeActiveModules(B);
!B&&G.storeWithShorts.getState().shorts.isFullscreen&&(_.oa(document.documentElement),G.storeWithShorts.dispatch(_.m1N(!1)))});
G.initOrDisposeActiveModules(_.Crs(G.storeWithShorts.getState()))},tyD,ZTQ,xgS;
Kv.prototype.initOrDisposeActiveModules=function(G){G?this.activeModules.push(new S4z(this,this.storeWithShorts)):(_.oi(this.activeModules),this.activeModules.length=0)};
Kv.prototype.registerRootElement=function(G){this.rootElement=G;s7$(this)};
Kv.prototype.getRoot=function(){return this.rootElement};
Kv.prototype.setActiveIndex=function(G){this.activeIndex=G};
_.JMD=function(G,B){var F,D,u,R,N,y,U;return _.n(function(q){switch(q.nextAddress){case 1:return F=new TZ,(D=F.JSC$14495_getStoreKey(B))&&G.ephemeralResponseStore.has(D)?q.yield(G.ephemeralResponseStore.get(D),7):q.yield(xgS(G,B),4);case 4:u=q.yieldResult;if(!D){q.jumpTo(3);break}R=tZ(u,3600);return q.yield(G.ephemeralResponseStore.put(D,new _.Zs(R)),3);case 7:u=(N=q.yieldResult)==null?void 0:_.tm(N);case 3:return((y=u)==null?0:y.replacementEndpoint)&&(U=_.Q(u.replacementEndpoint,_.Fu))&&u.sequenceContinuation&&
(U.sequenceParams=u.sequenceContinuation),q.return(u)}})};
tyD=function(G,B){B=(new IL).JSC$14495_getStoreKey(B);return!!B&&G.ephemeralResponseStore.has(B)};
ZTQ=function(G,B,F){var D,u,R,N,y;_.n(function(U){if(U.nextAddress==1){D=new IL;u=D.JSC$14495_getStoreKey(B);if(!u)return U.return();if(F.reelWatchSequenceResponse)return R=tZ(F.reelWatchSequenceResponse,3600),G.ephemeralResponseStore.put(u,new _.Zs(R)),U.jumpTo(0);if(!G.ephemeralResponseStore.has(u))return U.jumpTo(0);y=F;return U.yield(G.ephemeralResponseStore.get(u),4)}y.reelWatchSequenceResponse=(N=U.yieldResult)==null?void 0:_.tm(N);_.di(U)})};
xgS=function(G,B){var F=F===void 0?{}:F;var D,u,R;return _.n(function(N){switch(N.nextAddress){case 1:if(G.innertubeTransportService){D=G.innertubeTransportService;N.jumpTo(2);break}if(!G.innertubeTransportLoader){_.Mn(Error("yj"));N.jumpTo(2);break}return N.yield(G.innertubeTransportLoader(),4);case 4:D=N.yieldResult;case 2:return N.yield((u=D)==null?void 0:_.$F(u,B,F),5);case 5:return R=N.yieldResult,N.return(R)}})};
_.ZN.Object.defineProperties(Kv.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Kv[ZA]=[vkA,_.tf,_.fH(_.RF),_.fH(Pds)];_.PCD=new _.oV("STORAGE_MANAGER_TOKEN");var oqc=["touchmove","scroll"];var GJH=!1;var aES=!1;var vqQ={onSpanEnd:function(G){G.parentId==null&&(GJH||(h5o(),setInterval(h5o,6E5),GJH=!0),Xt8(G,"web_tracing_action"))}};var WN8=URL.createObjectURL;var bq8,BnD={traceAllComponents:_.X("web_tracing_all_components"),exportToCsi:_.X("web_tracing_export_to_csi"),enabledSpansArray:_.P5("web_tracing_enabled_spans"),exportToDevTools:_.X("web_tracing_export_to_devtools"),maxBreadcrumbs:_.sD("tel_max_breadcrumbs",0)};bq8=new rdU(BnD);var V18=_.X("web_shorts_enable_tracing");var iH2=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},FdS;
iH2.prototype.enqueue=function(G,B){B===1?this.currentPersistentToast=G:this.queue.push(G);_.DnB(this)};
_.DnB=function(G){var B;(B=G.currentToast)!=null&&B.isOpened()||(G.queue.length?(G.currentToast=G.queue.shift(),G.currentToast.open()):G.currentPersistentToast&&G.currentPersistentToast.open())};_.am=new _.oV("TOAST_MANAGER_TOKEN");var umN=new _.oV("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var RpQ=new _.oV("VIEW_TRANSITION_COORDINATOR_TOKEN");var w5U=function(G){this.config=G;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;G=_.C(G.transitionConfigs);for(var B=G.next();!B.done;B=G.next())B=_.C(B.value).next().value,this.transitionTasksMap.set(B,[])};
w5U.prototype.registerElement=function(G,B,F){F=F===void 0?!1:F;for(var D=_.C(Object.keys(B)),u=D.next(),R={};!u.done;R={viewTransitionName:void 0},u=D.next()){u=u.value;R.viewTransitionName=B[u];var N=this.elementTasksMap.get(G),y=void 0;if((y=N)==null?0:y.has(u)){_.Oz(new _.Uf("Element already registered for transition",G.tagName,u));break}N=N||new Map;N.set(u,{beforeTransition:function(U){return function(){G.style.viewTransitionName=U.viewTransitionName}}(R),
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="")},
runOnce:F});this.elementTasksMap.set(G,N)}};
_.Lh=function(G,B){var F=G.elementTasksMap.get(B);F&&(F.clear(),F.size===0&&G.elementTasksMap.delete(B))};
w5U[ZA]=[umN];var Nn2=_.Y(function(G){var B=_.W5("yt-expandable-metadata-header-view-model"),F=_.gJ(function(D){_.kF(_.Rh(),{data:G.data()});if(!_.ht(_.EY(D),B.value,["A".toString(),"BUTTON".toString()])){var u;(u=G.expandedCallback)==null||u.call(G,!1)}});
return _.l("yt-expandable-metadata-header-view-model",{el:B,class:"ytExpandableMetadataHeaderViewModelHost"},_.l(_.E,{cond:function(){return G.expanded()},
then:function(){return _.l("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":F},_.l("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.l(_.E,{cond:function(){return G.data().expandedTitleImage},
then:function(D){return _.l("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.l(_.vr,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:D}))}}),_.l("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.l("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.l(_.Wd,{text:function(){return G.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.l(_.Wd,{text:function(){return G.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.l(_.Wd,{text:function(){return G.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.l("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.l(_.uR,{data:function(){return G.data().infoButton}},{buttonViewModel:_.cd}),_.l(_.uR,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
onClick:function(){var u;(u=G.expandedCallback)==null||u.call(G,!1)}})}})))},
else:function(){return _.l(C9G,Object.assign({},G))}}))},"Ag"),ye2=_.Y(function(G){return _.l("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.l(_.E,{cond:function(){return G.data().collapsedLabelImage},
then:function(B){return _.l("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.l(_.vr,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:B,alt:""}))}}),_.l(_.Wd,{text:function(){return G.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Bg"),C9G=_.Y(function(G){return _.l("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.gJ(function(){_.kF(_.Rh(),{data:G.data()});var B;(B=G.expandedCallback)==null||B.call(G,!0)})},_.l("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.l(_.E,{cond:function(){return G.data().collapsedImage},
then:function(B){return _.l("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.l(_.vr,{height:20,preserveHeight:!0,preserveWidth:!0,data:B,alt:""}))}}),_.l(_.E,{cond:function(){return G.data().showLeadingCollapsedLabel},
then:function(){return _.l(ye2,Object.assign({},G))}}),_.l("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.l(_.Wd,{text:function(){return G.data().collapsedTitle}}))),_.l("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.l(_.E,{cond:function(){return!G.data().showLeadingCollapsedLabel},
then:function(){return _.l(ye2,Object.assign({},G))}}),_.l(_.uR,{data:function(){return G.data().infoButton}},{buttonViewModel:_.cd}),_.l(_.uR,{data:function(){return G.data().expandButton}},{buttonViewModel:function(B){var F=B.data;
return _.l(_.cd,{data:F,onClick:function(){_.kF(_.Rh(),{data:F});var D;(D=G.expandedCallback)==null||D.call(G,!0)}})}})))},"Cg");_.nfG=_.Y(function(G){var B=_.C(_.d3(function(){return G.data().initiallyExpanded})),F=B.next().value,D=B.next().value,u,R=(u=_.te().resolve(_.fH(_.Rx)))==null?void 0:u(),N=function(){var y=G.data().colorData;
if(y)return R?y==null?void 0:y.darkColorPalette:y==null?void 0:y.lightColorPalette};
return _.l("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.xN({"background-color":function(){var y=N();return(y==null?0:y.section2Color)?_.Kp(y.section2Color):""}})},_.l(_.uR,{data:function(){return G.data().header}},{expandableMetadataHeaderViewModel:function(y){return _.l(Nn2,{data:y.data,
expanded:function(){return!!F()},
expandedCallback:function(U){D(U)}})}}),_.l(_.E,{cond:function(){return F()},
then:function(){return _.l("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.l(_.uR,{data:function(){return G.data().expandedContent}},{horizontalShelfViewModel:function(y){return _.l(_.zC,{data:y.data,
includeMargin:!0,forceNarrowLayout:!0,palette:N})},
videoSummaryContentViewModel:function(y){return _.l(vXP,{data:y.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(y){return _.l(_.xm,{data:y.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(y){return _.l(_.HC,{data:y.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.l(_.uR,{data:function(){return G.data().expandedBottomButtons}},{buttonViewModel:function(y){return _.l("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.l(_.cd,{data:y.data}))}}))}}))},"Dg");var lAN=_.Y(function(G){var B=G.text;var F=G.marqueeSpacing;var D=G.scrollDelay;var u=G.scrollDuration;var R=G.enableMarqueeScroll;G=G.large;var N=_.C(_.qg(!1,void 0,"WyNYFf")),y=N.next().value,U=N.next().value,q=_.C(_.qg(0,void 0,"OoTdhe"));N=q.next().value;var h=q.next().value,K=_.W5("marquee-scroll");q=_.W5("div");var a=_.W5("span"),m=_.te().resolve(_.e3);_.bC(function(){if(R()){var e=a.value.getBoundingClientRect().width,b=K.value.getBoundingClientRect().width;if(e>b){var M=(m==="ltr"?-1:1)*(e+
(F?F():16));Promise.resolve().then(function(){U(!0);h(M)})}}},"dv0Anf");
var L={},W={};return _.l("marquee-scroll",{class:_.tx("ytMarqueeScrollHost",(L.ytMarqueeScrollHostLarge=G,L)),el:K},_.l("div",{id:"marquee-scroll-inner-container",class:_.tx("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return y()},W)),
el:q,style:_.xN({gap:F?(0,_.jc)(F):"16px","animation-duration":u?pl8(u):"16s","animation-delay":D?pl8(D):"3s","--marquee-translate":(0,_.jc)(N)})},_.l("span",{el:a,dir:"auto"},_.l(_.Wd,{text:B,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.l(_.E,{cond:y,then:function(){return _.l("span",{"aria-hidden":"true",dir:"auto"},_.l(_.Wd,{text:B,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fg");_.UnD=_.Y(function(G){var B=G.data;var F=G.overlayDensity;G=_.gJ(function(){B().onTapCommand&&_.rJ(B().onTapCommand);return!1});
var D=_.qj(),u=function(){return(F==null?void 0:F())===1?22:16},R={};
return _.l("reel-sound-metadata-view-model",{class:_.tx("ytReelSoundMetadataViewModelHost",(R.ytReelSoundMetadataViewModelHostLarge=function(){return(F==null?void 0:F())===1},R)),
"on:click":G,tabindex:0,role:"button","on:keydown":D},_.l("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.l(_.E,{cond:function(){return B().musicIcon},
then:function(N){return _.l(_.vr,{data:N,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:u})}}),_.l("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.l(lAN,{text:function(){return B().soundMetadata},
enableMarqueeScroll:function(){return!!B().enableMarqueeScroll},
large:function(){return(F==null?void 0:F())===1}}))))},"Gg");var qDU,EfA,aAA,X5D,jn$,mnD,Wd2,reU;qDU=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];EfA=_.sD("wil_icon_max_concurrent_fetches",Infinity);
aAA=function(G,B,F){var D=this;this.iconSet=G;this.appDirection=B;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Fz.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.X("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.X("wil_icon_network_first");this.renderWhenIdle=_.X("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.X("wil_icon_load_immediately");this.isPurging=!1;G=function(){D.cacheStorageAvailable&&(D.cacheStorageAsync=_.Fz.caches.open("yt-icons").then(function(R){return D.cacheStorageSync=R}).catch(function(){D.cacheStorageAvailable=!1}))};
F=(F==null?void 0:F())||{};F=_.C(Object.entries(F));for(B=F.next();!B.done;B=F.next()){var u=_.C(B.value);B=u.next().value;u=u.next().value;u=qn(u);hpU(u);this.iconCache[B]=u.cloneNode(!0)}this.isPurging=KdD(this);this.isPurging instanceof Promise?this.isPurging.then(G):G()};
_.Dw8=function(G,B){var F=G.resolveIcon(B);return F?G.renderingMode===1?mnD(G,F,G.renderingMode):(B=G.iconCache[F.url])?(B=B.cloneNode(!0),X5D(G,B),mnD(G,F,G.renderingMode,B)):_.QnD(G,F).then(function(D){var u=D?0:1;X5D(G,D);return mnD(G,F,u,D)}):(_.Oz(new _.Uf("Icon not found",{iconShape:B})),function(){})};
X5D=function(G,B){if(B){G.counter+=1;G="_yt"+G.counter;B=[B].concat(_.gi(B.getElementsByTagName("*")));B=_.C(B);for(var F=B.next();!F.done;F=B.next())if(F=F.value,F.tagName==="style"&&F.textContent)F.textContent=jn$(F.textContent,G,!0);else for(var D=_.C(F.attributes),u=D.next();!u.done;u=D.next()){u=u.value;u.name==="id"&&(u.value+=G);["mask","fill","clip-path"].includes(u.name)&&(u.value=jn$(u.value,G));if(u.name==="style"){var R=F.style;try{R.cssText=jn$(R.cssText,G,!0)}catch(h){var N=void 0,y=
void 0,U=void 0,q=void 0;m8({error:((N=h)==null?void 0:(U=(y=N).toString)==null?void 0:U.call(y))||"",el:F.outerHTML,style:!!R,cssText:(q=R)==null?void 0:q.cssText})}}u.name==="xlink:href"&&(u.value=u.value.replace(/#(.*)/,"#$1"+G))}}};
jn$=function(G,B,F){var D=/url\(["']?#(.*?)["']?\)/;(F===void 0?0:F)&&(D=/url\(["']?#(.*?)["']?\)/g);return G.replace(D,"url(#$1"+B+")")};
mnD=function(G,B,F,D){return function(u,R){var N;var y=Object.assign({},{iconWidth:B.size+"px",iconHeight:B.size+"px",iconDisplay:"block"},R,{iconColor:(N=R==null?void 0:R.iconColor)!=null?N:"currentcolor"});N=_.G_("DIV");R=y.iconColor;var U=y.iconFilter;y="width: "+y.iconWidth+"; height: "+y.iconHeight+"; display: "+y.iconDisplay+";";U&&(y+=" filter: "+U+";");F===0&&(y+=" fill: "+R+";");F===1&&(U=B.url,y+=" -webkit-mask: url("+U+") no-repeat center / cover; mask: url("+(U+") no-repeat center / cover; background-color: ")+
R);B.allowMirroring&&G.appDirection==="rtl"&&(y+=" transform: scale(-1, 1); transform-origin: center center;");N.setAttribute("style",y);F===0&&D&&N.appendChild(D);u.appendChild(N)}};
_.QnD=function(G,B){var F,D,u;return _.n(function(R){F=function(N){return i5(N)};
D=B.url;if(!LdG(D))throw Error("Bj");u=reU(G,D);return R.return(u.then(function(N){return N.clone().text()}).then(function(N){var y=F(N);
N=B.size;var U=_.G_("DIV");_.qm(U,y);y=_.B1(U.firstElementChild!==void 0?U.firstElementChild:_.cMq(U.firstChild,!0));N=hpU(y,N);G.iconCache[D]=N.cloneNode(!0);delete G.responsePromises[D];return N}).catch(function(){}))})};
Wd2=function(G){var B,F=(B=G.requestAninmationFrameResolver)==null?void 0:B.promise;F||(G.requestAninmationFrameResolver=new _.tc,F=G.requestAninmationFrameResolver.promise,_.Fz.requestAnimationFrame(function(){var D;(D=G.requestAninmationFrameResolver)==null||D.resolve();G.requestAninmationFrameResolver=null}));
return F};
reU=function(G,B){var F,D;return _.n(function(u){if(u.nextAddress==1)return G.waitForAnimationFrame?u.yield(Wd2(G),2):u.jumpTo(2);F=G.responsePromises[B];F||(D=function(){var R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:if(!G.cacheStorageAvailable){R=void 0;U.jumpTo(2);break}if(N=G.cacheStorageSync){U.jumpTo(3);break}return U.yield(G.cacheStorageAsync,4);case 4:N=U.yieldResult;case 3:R=N;case 2:return y=R,G.isNetworkFirstStrategy?U.return(G.fetchAndUpdateCache(B,y).catch(G.getCacheStorageResponse.bind(G,
B,y))):U.return(G.getCacheStorageResponse(B,y).catch(G.fetchAndUpdateCache.bind(G,B,y)))}})},F=G.renderWhenIdle?new Promise(function(R,N){_.mX(_.Lu,function(){D().then(R).catch(N)},10)}):D(),G.responsePromises[B]=F);
return u.return(F.catch(function(R){delete G.responsePromises[B];m8({error:(R==null?0:R.toString)?R.toString():"",url:B});throw R;}))})};
aAA.prototype.fetchAndUpdateCache=function(G,B){var F=this;return _.n(function(D){return D.return(HH$(F,G).then(function(u){kJH(F,G,u,B);return u}))})};
var HH$=function(G,B){var F;return _.n(function(D){if(G.numFetches<EfA)return G.numFetches+=1,D.return(OHA(G,B).finally(function(){--G.numFetches;if(Object.keys(G.queuedResponseResolvers).length){var u=Object.keys(G.queuedResponseResolvers)[0],R=G.queuedResponseResolvers[u];delete G.queuedResponseResolvers[u];R.resolve(HH$(G,u))}}));
F=new _.tc;G.queuedResponseResolvers[B]=F;return D.return(F.promise)})},OHA=function(G,B,F){F=F===void 0?2:F;
var D;return _.n(function(u){D={credentials:"same-origin",priority:"low"};return u.return(_.Fz.fetch(B,D).then(function(R){return R.ok?R:Promise.reject(Error("Cj`"+R.status+"`"+R.statusText))}).catch(function(R){if(F>0)return OHA(G,B,F-1);
throw R;}))})},kJH=function(G,B,F,D){_.n(function(u){return D?u.return(new Promise(function(R){_.mX(_.Lu,function(){var N,y;
return _.n(function(U){switch(U.nextAddress){case 1:if(!G.isNetworkFirstStrategy){N=void 0;U.jumpTo(2);break}return U.yield(D.match(B).catch(function(){}),3);
case 3:N=U.yieldResult;case 2:if(y=N){U.jumpTo(4);break}return U.yield(D.put(B,F.clone()).catch(function(q){m8({error:(q==null?0:q.toString)?q.toString():"",url:B})}),4);
case 4:R(),_.di(U)}})},50)})):u.return()})};
aAA.prototype.getCacheStorageResponse=function(G,B){return _.n(function(F){return B?F.return(B.match(G).then(function(D){return D&&D.ok?D:Promise.reject()})):F.return(Promise.reject())})};
var hpU=function(G,B){B===void 0||G.getAttribute("viewBox")||G.setAttribute("viewBox","0 0 "+B+" "+B);G.setAttribute("focusable","false");G.setAttribute("aria-hidden","true");B=_.X("killswitch_remove_icon_fill_color");G.getAttribute("fill")!=="currentcolor"&&G.getAttribute("fill")!=="currentColor"||B||G.removeAttribute("fill");try{G.style.pointerEvents="none",G.style.display="inherit",G.style.width="100%",G.style.height="100%"}catch(u){var F;m8({error:((F=u)==null?0:F.toString)?u.toString():""});
try{G.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(R){var D;m8({error:((D=R)==null?0:D.toString)?R.toString():""})}}return G},LdG=function(G){for(var B=_.C(qDU),F=B.next();!F.done;F=B.next())if(G.startsWith(F.value)&&G.endsWith(".svg"))return!0;
return!1};
aAA.prototype.resolveIcon=function(G){return this.iconSet.resolveIcon(G)};
var m8=function(G){_.em(new _.Uf("Error in IconManager",G))},KdD=function(G){if(_.X("wil_icons_cache_purge_killswitch"))return!1;
try{var B=_.Fz.localStorage}catch(R){return!1}if(!B||!G.cacheStorageAvailable)return!1;var F=function(R){try{var N;(N=B)==null||N.setItem("yt-icons-last-purged",R.toString())}catch(U){var y;m8({error:((y=U)==null?0:y.toString)?U.toString():""})}},D=Number(B.getItem("yt-icons-last-purged"));
if(!D)return D=new Date,D=D.setDate(D.getDate()-Math.floor(Math.random()*90+1)),F(D),!1;if(function(R,N){R=new Date(R);N=new Date(N);return N.getMonth()-R.getMonth()+12*(N.getFullYear()-R.getFullYear())}(D,Date.now())<3)return!1;
try{return _.Fz.caches.delete("yt-icons").then(function(R){R&&F(Date.now());return R}).catch(function(){return!1}).finally(function(){G.isPurging=!1})}catch(R){var u;
m8({error:((u=R)==null?0:u.toString)?R.toString():""});return!1}};
aAA[ZA]=[mPD,_.e3,_.fH(jkD)];_.epS=function(G,B){this.iconManager=G;this.iconsToFetch=B};
_.epS[ZA]=[_.Pc,_.fH(Qk$)];var $n$=function(){};var zp2=function(G,B,F){this.requestKey=G;this.dqJ=B;this.yXw=F;this.p87=function(){return new XMLHttpRequest};
this.wke=void 0;this.dHS=[]};
zp2.prototype.getLatestChallengeResponse=function(){return this.yXw};
var $Sq=function(G,B,F){var D,u,R,N;return _.n(function(y){if(y.nextAddress==1){_.hJ("attestation_challenge_fetch");_.KR("att_fs",void 0,"attestation_challenge_fetch");if(!G.wke)throw new _.XW(9,"Missing fetcher");return y.yield(G.wke(B,F),2)}D=y.yieldResult;R=(u=D)==null?void 0:u.bgChallenge;if(!R)throw new _.XW(15,"Missing field");G.yXw=D;G.dHS.forEach(function(U){U(D)});
N=nOJ(R);_.KR("att_fc",void 0,"attestation_challenge_fetch");Eq("attestation_challenge_fetch");return y.return(N)})},GDL=function(G,B){var F,D,u,R,N;
return _.n(function(y){switch(y.nextAddress){case 1:F=new fT(100,3E5,.25,2),D=void 0;case 2:if(!(F.currBackoffCount_<10)){y.jumpTo(4);break}_.b5(y,5);if(!(F.currBackoffCount_>0)){y.jumpTo(7);break}return y.yield(ptM(F.getValue()),7);case 7:return y.yield(bH2(G,B),9);case 9:return u=y.yieldResult,y.return(u);case 5:R=_.Al(y);R instanceof _.XW?D=R:(N=R instanceof Error?R.message:"Unknown",D=new _.XW(9,N));c0L(F);y.jumpTo(2);break;case 4:if(D)throw D;throw new _.XW(9,"Unknown error");}})},bH2=function(G,
B){B=aly(mS8(new Kmq,B),G.requestKey);
var F=new _.tc,D=G.p87();D.open("POST",G.dqJ);D.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");D.setRequestHeader("Content-Type","application/json+protobuf");D.onload=function(){if(_.Yqo(D)){var u=eZ7(D.responseText);F.resolve(u)}else F.reject(new _.XW(_.fAQ(_.BQ(D)),D.statusText))};
D.onerror=function(){F.reject(new _.XW(_.fAQ(_.BQ(D)),D.statusText))};
D.send(B.serialize());return F.promise};var vfN=function(G){this.networkStatusManager=G;this.isDownloaded=a2M===void 0?function(){return!1}:a2M;
this.isReady=!1;this.ouV=VR$(this)},VR$=function(G){var B;
return _.n(function(F){if(F.nextAddress==1)return F.yield(Ldl(),2);if(F.nextAddress!=3)return B=F.yieldResult,F.yield(fnP(B),3);G.r3=F.yieldResult;Ad8(G.r3).then(function(){G.isReady=!0});
return F.return(G.r3)})},ofU=function(G,B,F){G.r3?(G=G.r3.ukD({lC:F,
jnS:!0,pNe:!0}),B.serviceIntegrityDimensions={poToken:G}):_.k2(Error("Ej"))};
vfN.prototype.processContext=function(G){var B=this;if(G.input.match(_.v2(K4T)))var F=G.innerTubeRequest;else if(G.input.match(_.v2(RhU)))F=G.innerTubeRequest.playerRequest;else return _.$Z();var D,u=(D=F)==null?void 0:D.videoId;return!u||this.isDownloaded(F)||this.networkStatusManager&&!this.r3&&!this.networkStatusManager.isNetworkAvailable()||_.X("webpo_exit_on_net_err")&&!this.r3&&(window.bgens===1||window.bgens===3)?_.$Z():this.r3?this.isReady?(ofU(this,F,u),_.$Z()):new e0(Ad8(this.r3).then(function(){ofU(B,
F,u)})):new e0(this.ouV.then(function(R){return _.n(function(N){if(N.nextAddress==1)return N.yield(Ad8(R),2);
ofU(B,F,u);_.di(N)})}))};var MRN=new _.oV("WEB_PO_CONTEXT_PROCESSOR");var p5A=function(G,B){var F=this;this.tr4=0;var D;this.r5Y=(D=B==null?void 0:B.r5Y)!=null?D:window;this.networkStatusManagerPromise=B==null?void 0:B.networkStatusManagerPromise;var u;this.requestKey=(u=B==null?void 0:B.requestKey)!=null?u:_.xf("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var R;this.pqJ=(R=B==null?void 0:B.pqJ)!=null?R:function(U){return new ku(U)};
var N;D=(N=B==null?void 0:B.wCi)!=null?N:function(U,q,h){return new zp2(U,q,h)};
this.bgChallenge=nOJ(G.bgChallenge);this.ttlSeconds=lQz(oG(G.challenge||""));this.dC=D(this.requestKey,_.X("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Fz.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",G);this.cM3=B==null?void 0:B.cM3;YZc(this.dC);var y;this.iBE=(y=B==null?void 0:B.iBE)!=null?y:function(U){_.H1(F.r5Y.document,"visibilitychange",
function(){F.r5Y.document.visibilityState==="visible"&&U()})}},AeN=function(G){if(!G.vm){var B={maxAttempts:5,
wjw:G.ttlSeconds*1E3};del(G.r5Y);G.vm=G.pqJ({dC:G.dC,kUX:{disable:_.X("html5_web_po_disable_remote_logging"),aM:"aGIf",xYU:VDJ("html5_web_po_experiment_ids"),iar:_.X("wpo_dis_lfdms")?0:1E3,lBa:function(D){var u=mqv.get(D);u||(u=new aPT(D),u=new sK(u),mqv.set(D,u));return u}},
gZa:B,rSk:G.bgChallenge,fAa:Jds});G.tr4=Date.now();H8w(G.vm,function(){G.tr4=Date.now()});
G.r5Y.bgevmc={p:function(){var D;(D=G.vm)==null||D.pause()},
r:function(){var D;(D=G.vm)==null||D.resume()},
cr:function(){var D,u;return(u=(D=G.vm)==null?void 0:D.checkForRefresh())!=null?u:Promise.resolve()}};
kJL(G.vm,function(){return _.n(function(D){return D.return(YDS(G))})});
var F=G.l3V.bind(G);G.networkStatusManagerPromise&&G.ttlSeconds>0&&G.networkStatusManagerPromise.then(function(D){D.listen("publicytnetworkstatus-online",F)});
G.iBE(F)}};
p5A.prototype.l3V=function(){if(Date.now()>this.tr4+this.ttlSeconds*1E3){var G;(G=this.vm)==null||Wmt(G)}};
var YDS=function(G){if(G.k0I)return G.k0I;if(!G.vm)throw Error("Fj");G.k0I=new b1({vm:G.vm,dC:G.dC,tw6:!0,onError:Jds,gZa:G.cM3});return G.k0I},TFU=function(G,B){G=new p5A(G,B);
AeN(G);(B==null?0:B.z3a)||YDS(G)};var dnU=_.wND.ephemeralActionSelector,JeZ=function(G,B){this.store=G;this.queue=[];B==null||B.addEventListener("yt-navigate-start",this.reset.bind(this))};
JeZ.prototype.enqueue=function(G){var B=G.command,F=G.durationMs,D=G.elementToFocus;var u=G.label;var R=G.elementToFocus;G.command?u=_.G7("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:u,shortcut:_.G7("SHIFT_PLUS_ENTER")}):R&&(G=u+". "+_.G7("SHIFT_PLUS_ENTER")+" for more information.",u=_.G7("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:u,shortcut:_.G7("SHIFT_PLUS_ENTER")},G));F={announcement:u,durationMs:F!=null?F:8E3};B?F.command=B:D&&(D.classList.add("ephemeral-action-focusable-element"),F.selector=D.tagName+
".ephemeral-action-focusable-element");this.queue.push(F);ce$(this)};
JeZ.prototype.activate=function(G){var B=dnU(this.store.getState());if(B){if(B==null?0:B.command)_.QX(B.command),this.store.dispatch(lFP(null));if(B==null?0:B.selector)B=document.querySelector(B.selector),_.vKs(B);G.preventDefault()}};
var ce$=function(G){if(!dnU(G.store.getState())&&G.queue.length){var B=G.queue.shift();B&&(G.previousAnnouncement===B.announcement&&(B.announcement+="\u00a0"),G.store.dispatch(lFP(B)),G.previousAnnouncement=B.announcement,G.JSC$19136_timeoutId=setTimeout(function(){if(B.selector){var F;(F=document.querySelector(B.selector))==null||F.classList.remove("ephemeral-action-focusable-element")}G.store.dispatch(lFP(null));ce$(G)},B.durationMs))}};
JeZ.prototype.reset=function(){this.JSC$19136_timeoutId&&clearTimeout(this.JSC$19136_timeoutId);this.store.dispatch(lFP(null));this.queue.length=0;this.JSC$19136_timeoutId=void 0};
JeZ[ZA]=[_.Ep,_.fH(_.Sj)];_.XI=new _.oV("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var TnH=new _.oV("AUTH_SERVICE_TOKEN");var t18=_.vP(["about:blank"]),fEg;var IAD=new _.oV("API_IFRAME_TOKEN");var buP;buP=new _.oV("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.fAN=new _.oV("MISC_UI_SHARED_FLAGS_TOKEN");var tR$=function(){};
tR$.prototype.getFlag=function(G){if(G.configType!==2)throw Error("Gj");return ZH$(G)};
var ZH$=function(G){switch(G.flagType){case "bool":return _.X(G.flagName);case "int":return _.Yv(_.sD(G.flagName));case "double":return _.sD(G.flagName);case "string":return _.xf(G.flagName);case "int32_list":return VDJ(G.flagName);case "int64_list":return VDJ(G.flagName).map(function(B){return _.Yv(B)});
case "string_list":return _.P5(G.flagName);default:throw Error("Hj");}};var QT=function(G,B,F){B=B===void 0?{}:B;qQ.call(this,F===void 0?"uninitialized":F);this.env=G;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];B.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=B.shouldWaitOnAsyncImmediate)};
_.r(QT,qQ);QT.prototype.init=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?D.yield(G(B.env),2):(G(B.env),D.jumpTo(2));if(D.nextAddress!=4)return B.jobSet?D.yield(B.jobSet.completedResolver.promise,4):D.jumpTo(4);F=_.kl();F.parkOrScheduleJob(function(){B.transition("rendering")},10,"ci");
_.di(D)})};
QT.prototype.initialRender=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?D.yield(G(B.env),2):(G(B.env),D.jumpTo(2));if(D.nextAddress!=4)return B.jobSet?D.yield(B.jobSet.completedResolver.promise,4):D.jumpTo(4);F=_.kl();F.parkOrScheduleJob(function(){B.transition("rendered")},10,"cr");
_.di(D)})};
QT.prototype.afterRenderImmediate=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?D.yield(G(B.env),2):(G(B.env),D.jumpTo(2));if(D.nextAddress!=4)return B.jobSet?D.yield(B.jobSet.completedResolver.promise,4):D.jumpTo(4);F=_.kl();F.parkOrScheduleJob(function(){B.transition("after-render-deferred")},10,"carml");
_.di(D)})};
QT.prototype.afterRenderDeferred=function(G){var B=this;return _.n(function(F){G(B.env);_.di(F)})};_.Vc("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var gfS={},SDU=(gfS.rendered={priority:0,callback:function(G){I4t(G.injector.resolve(X0))}},gfS);var M8G=new _.oV("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),snz=new _.oV("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var xn$=function(G){this.callbackFnMap=G;this.configMap={}};
xn$.prototype.handleResponse=function(G){var B;if(G=(B=G.responseContext)==null?void 0:B.serviceTrackingParams)for(B=_.C(G),G=B.next();!G.done;G=B.next()){G=G.value;var F=G.params,D=G.service;if(F&&D){this.configMap[D]||(this.configMap[D]=new cIP);G=this.configMap[D];var u=void 0,R=(u=this.callbackFnMap)==null?void 0:u[D];F=_.C(F);for(D=F.next();!D.done;D=F.next())u=D.value,D=u.key,u=u.value,D&&u&&(G.set(D,u),R&&R(D,u))}}};
xn$.prototype.getConfig=function(G){return this.configMap[G]||void 0};
xn$[ZA]=[_.fH(snz)];var P9Q=!1,BDo=0,sOJ=null,Gps=null;var G0$=new _.oV("NETWORK_SLI_TOKEN");var BoN=function(G){this.networkSli=G};
BoN.prototype.fetch=function(G,B,F){var D=this,u;return _.n(function(R){u=i8Q(D,G,B);return R.return(fetch(u).then(function(N){return D.handleResponse(N,F)}).catch(function(N){_.em(N);
if((F==null?0:F.expectJsonStrict)&&N instanceof uH&&N.errorType===1)return Promise.reject(N)}))})};
var Bt8=function(G,B,F,D){var u,R,N,y,U,q,h;return _.n(function(K){switch(K.nextAddress){case 1:return u=i8Q(G,B,F),_.b5(K,2),K.yield(fetch(u),4);case 4:R=K.yieldResult;_.oY(K,3);break;case 2:throw _.Al(K),new uH(2,"Failed to parse streaming response",u.url);case 3:if(!R.redirected&&!R.ok)throw(N=G.networkSli)==null||N.failure(),new _.Uf("Streaming fetch request not ok",u.url);if(!R.body)throw new _.Uf("No response body in streaming response",u.url);y={};if(_.X("web_streaming_fast"))return U=R.body.getReader(),
K.return(FmU(G,U,y,D));q=R.body.pipeThrough(new TextDecoderStream).getReader();h=new _.yz;return K.return(DSH(G,q,h,zCS,y,D))}})},i8Q=function(G,B,F){if(G.networkSli){var D=_.Ik(_.iB(B,"key"))||"/UNKNOWN_PATH";
G.networkSli.start(D)}G=F;_.X("wug_networking_gzip_request")&&(G=T3z(F));return new window.Request(B,G)},FmU=function(G,B,F,D){var u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo,hg,US,aI,v6,Jg,c6,q8,n7,Ts;
return _.n(function(hT){switch(hT.nextAddress){case 1:u=new TextDecoder("utf-8"),R=[],y=N=0,_.b5(hT,2,3);case 5:return hT.yield(B.read(),8);case 8:U=hT.yieldResult;q=U.value;if(h=U.done){K=0;if(R.length>N)for(K=R[N].length-y,a=N+1;a<R.length;a++)K+=R[a].length;K>0&&(m=ifI(R,K,N,y),L=m.indexOf(123),W=m.lastIndexOf(125),L!==-1&&W!==-1&&W>L&&(e=m.subarray(L,W+1),b=JSON.parse(u.decode(e)),zCS(F,b),M=void 0,(M=D)==null||M(F,b)));t=void 0;(t=G.networkSli)==null||t.success();return hT.return(F)}R.push(q);
T=N;for(A=y;T<R.length;)if(Z=R[T],P=Z.indexOf(10,A),P===-1){if(T===R.length-1)break;T++;A=0}else{RI=T;yo=P+1;hg=0;if(N===RI)hg=yo-y;else{hg=R[N].length-y;for(US=N+1;US<RI;US++)hg+=R[US].length;hg+=yo}aI=ifI(R,hg,N,y,RI,yo);v6=aI.indexOf(123);Jg=aI.lastIndexOf(125);if(v6!==-1&&Jg!==-1&&Jg>v6){c6=aI.subarray(v6,Jg+1);try{q8=JSON.parse(u.decode(c6)),zCS(F,q8),n7=void 0,(n7=D)==null||n7(F,q8)}catch(L7){throw new uH(1,"Failed to parse streaming response object",u.decode(c6));}}N=T;A=y=P+1;y===Z.length&&
(N++,y=0,T=N,A=0)}hT.jumpTo(5);break;case 3:_.vY(hT);B.releaseLock();_.Yd(hT,0);break;case 2:Ts=_.Al(hT);if(Ts instanceof uH)throw Ts;throw new uH(1,"Failed to process streaming response");}})},DSH=function(G,B,F,D,u,R){var N,y,U,q,h,K,a,m,L;
return _.n(function(W){if(W.nextAddress==1)return W.yield(B.read(),2);N=W.yieldResult;y=N.value;if(U=N.done)return(q=G.networkSli)==null||q.success(),W.return(u);try{h=F.parse(y)}catch(e){throw new uH(1,"Failed to parse streaming response",y);}if(h!=null)for(K=_.C(h),a=K.next();!a.done;a=K.next())m=a.value,D(u,m),L=void 0,(L=R)==null||L(u,m);return W.return(DSH(G,B,F,D,u,R))})};
BoN.prototype.handleResponse=function(G,B){var F=G.text().then(function(D){if((B==null?0:B.jspbResponseCtor)&&G.ok)return ndJ(B.jspbResponseCtor,D);D=D.replace(")]}'","");if((B==null?0:B.expectJsonStrict)&&D)try{var u=JSON.parse(D)}catch(N){throw new uH(1,"JSON parsing failed after fetch");}var R;return(R=u)!=null?R:JSON.parse(D)});
G.redirected||G.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),F=F.then(function(D){_.em(new _.Uf("Error: API fetch failed",G.status,G.url,D));return Object.assign({},D,{errorMetadata:{status:G.status}})}));
return F};
BoN[ZA]=[_.fH(G0$)];var uB2=new _.oV("NETWORK_MANAGER_TOKEN");var RVU=[1,2,4,8,16,30],CXD=function(G){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=G.maxTimeMs;this.maxFrameCount=G.maxFrameCount===void 0?Math.ceil(60*G.maxTimeMs/1E3):G.maxFrameCount;G=_.C(RVU);for(var B=G.next();!B.done;B=G.next())this.brokenFrameSummarizers.push(new wQ$(B.value/60*1E3))},Noz=function(G){var B=G.frameCountInternal>=G.maxFrameCount;
return G.elapsedTimeMs>=G.maxTimeMs||B};
CXD.prototype.summarize=function(){for(var G=[],B=_.C(this.brokenFrameSummarizers),F=B.next();!F.done;F=B.next())F=F.value,F=F.brokenFrameCount!==0?{severityMs:Math.round(F.targetFrameTimeMs),eventCount:F.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(F.averageDurationBetweenEventsMs)}:void 0,F&&G.push(F);return{summaries:G,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.ZN.Object.defineProperties(CXD.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 wQ$=function(G){this.targetFrameTimeMs=G;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.ZN.Object.defineProperties(wQ$.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var yP$=function(){};
yP$.prototype.start=function(G,B){var F=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var D=new CXD({maxTimeMs:G});this.monitor=D;this.lastSummaryInternal=void 0;this.metadataToLog=B;return new Promise(function(u){var R=function(N){if(N===void 0)F.stop(),u(void 0);else if(F.monitor!==D)N=Object.assign({},D.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),u(N);else{var y=F.monitor;if(!Noz(y)){y.frameCountInternal++;if(y.prevTime===
void 0)y.startTime=N;else for(var U=N-y.prevTime,q=_.C(y.brokenFrameSummarizers),h=q.next();!h.done;h=q.next()){h=h.value;var K=h.currTimeMs;h.currTimeMs+=U;U>h.targetFrameTimeMs+2&&(h.brokenFrameCount++,h.timeOfFirstBrokenFrameMs===void 0&&(h.timeOfFirstBrokenFrameMs=K),h.timeOfLastBrokenFrameMs=K)}y.prevTime=N}Noz(F.monitor)?u(F.stop()):_.Lu.addJob(R,5,0)}};
_.Lu.addJob(R,5,0)})};
yP$.prototype.stop=function(G){if(!this.monitor)return this.lastSummaryInternal;var B=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(B.monitoringDurationMs){G=G!=null?G:this.metadataToLog;var F={droppedFramesSummary:B,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};G&&(F[G.type]=G.data);_.W$("manualSmoothnessMeasurement",F)}this.monitor=void 0;this.lastSummaryInternal=B;this.metadataToLog=void 0;return B};_.nKH=new _.oV("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Fll=Promise.resolve();var ll$;ll$=function(G){this.JSC$19178_expiringStorage=new hP(G)};
_.USD=function(G){if(_.uo6()&&(G=_.Q9s(_.n8()+"::"+G)))return new ll$(G)};
ll$.prototype.set=function(G,B,F){F=F!==void 0?Date.now()+F:void 0;this.JSC$19178_expiringStorage.set(G,B,F)};
ll$.prototype.get=function(G){return this.JSC$19178_expiringStorage.get(G)};
ll$.prototype.remove=function(G){this.JSC$19178_expiringStorage.remove(G)};_.j4=function(){};
_.j4.getInstance=function(){var G=_.Yf("ytglobal.storage_");G||(G=new _.j4,_.IY("ytglobal.storage_",G));return G};
_.j4.prototype.estimate=function(){var G,B,F;return _.n(function(D){G=navigator;return((B=G.storage)==null?0:B.estimate)?D.return(G.storage.estimate()):((F=G.webkitTemporaryStorage)==null?0:F.queryUsageAndQuota)?D.return(REg()):D.return()})};
_.IY("ytglobal.storageClass_",_.j4);var UZI=0;var XlS=!1;var qfU=_.vP(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),EKz=_.vP(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Xe$={"/":_.F5,"/?feature=ytca":_.F5,"/feed/downloads":_.lUU};var hVz=NTN.continuationCommandSelector,w6=function(G,B,F){this.JSC$19193_upliftPromise=G;this.store=B;this.JSC$19193_persistentStorePromiseAccessor=F};
w6.prototype.shouldPreferLocalResponse=function(G){return G.browseId==="FEdownloads"||G.browseId==="FEsmart_downloads"&&_.X("kevlar_modern_downloads_page")?!0:!1};
w6.prototype.localInnertubeResponse=function(G){var B=this;return _.n(function(F){return G.browseId==="FEdownloads"?_.X("kevlar_modern_downloads_page")?F.return(KmZ(B)):F.return(alG(B)):G.browseId==="FEsmart_downloads"&&_.X("kevlar_modern_downloads_page")?F.return(mSH(B)):F.return(Promise.reject(Error("Jj")))})};
w6.prototype.canProvideFallbackResponse=function(){return!0};
w6.prototype.localFallbackInnertubeResponse=function(G){var B=this,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return R.yield(B.JSC$19193_persistentStorePromiseAccessor(),2);case 2:F=R.yieldResult;if(G.browseId!=="SPaccount_downloads"||!F){R.jumpTo(3);break}return R.yield(Kss(F),4);case 4:if(D=R.yieldResult)return R.return(_.tm(D));case 3:return G.browseId==="FEwhat_to_watch"?R.return(XQG(B)):(u=_.X("web_offline_continuation_automatic_retry")||_.X("web_offline_continuation_retry_button"))&&
G.continuation?R.return(QYB(B)):R.return(jYZ(B))}})};
var XQG=function(G){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$19193_upliftPromise,2);B=_.lsQ(G.store.getState().entities);return B.length?F.return(LmB(G,B)):F.return(jYZ(G))})},alG=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$19193_upliftPromise,2);if(D.nextAddress!=3)return B=rPD([{offlineItemSectionRenderer:{}}]),D.yield(WmU(G,B),3);F=D.yieldResult;F.onResponseReceivedActions=[B0("REFRESH_DOWNLOADS")];return D.return(F)})},KmZ=function(G){var B,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e;
return _.n(function(b){if(b.nextAddress==1)return b.yield(G.JSC$19193_upliftPromise,2);if(b.nextAddress!=3)return B=G.store.getState(),F=B.entities,D=_.nJ(F),u=_.lo(F),R=_.TAc(B),N=_.cfI(B),y=_.IsU(B),U=_.EVs(F),q=_.uo(D),h=_.UX(F),K=_.mvo(F),a=_.tps(B),m=_.a9(B),L={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.kel(D,u,U,K,R,N,q,h,y,a,m),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W="",_.X("kevlar_modern_downloads_skip_downloads_title")||
(W=_.G7("DOWNLOADS",void 0,"Downloads")),b.yield(H8$(G,L,W),3);e=b.yieldResult;e.onResponseReceivedActions=[B0("REFRESH_DOWNLOADS")];return b.return(e)})},mSH=function(G){var B,F,D,u,R,N,y,U,q;
return _.n(function(h){if(h.nextAddress==1)return h.yield(G.JSC$19193_upliftPromise,2);if(h.nextAddress!=3)return B=G.store.getState(),F=B.entities,D=_.nJ(F),u=_.uo(D),R=_.UX(F),N={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.eng(D),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},y=_.G7("SMART_DOWNLOADS",void 0,"Smart downloads"),U=WBo(u,R),h.yield(H8$(G,N,y,U),3);q=h.yieldResult;q.onResponseReceivedActions=
[B0("REFRESH_DOWNLOADS")];return h.return(q)})},jYZ=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(fz(G.JSC$19193_upliftPromise,G.store),2);B=D.yieldResult;F=rPD([UJL(B)]);return D.return(WmU(G,F))})},QYB=function(G){var B,F,D,u;
return _.n(function(R){if(R.nextAddress==1)return B={},F=hVz(G.store.getState()),_.E_(B,_.QO,F),R.yield(fz(G.JSC$19193_upliftPromise,G.store,B,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);D=R.yieldResult;u={};_.E_(u,_.uMs,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:D}}}],targetId:"browse-feedFEwhat_to_watch"});return R.return({responseContext:{},onResponseReceivedActions:[u]})})},rPD=function(G){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:G}}}}]}}},LmB=function(G,B){var F,D;
return _.n(function(u){var R={contents:iv(B)};F=R&&R.contents?R:{};_.X("kevlar_modern_downloads_page")&&(F=Object.assign({},_.$4L(B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));D={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:F}}}]}};return u.return(WmU(G,D))})},WmU=function(G,B){var F,D;
return _.n(function(u){if(u.nextAddress==1)return u.yield(G.JSC$19193_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return F=u.yieldResult,u.yield(Zb(F),3);D=u.yieldResult;return u.return({responseContext:{},contents:B,topbar:D})})},H8$=function(G,B,F,D){var u,R;
return _.n(function(N){if(N.nextAddress==1)return N.yield(G.JSC$19193_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return u=N.yieldResult,N.yield(Zb(u),3);R=N.yieldResult;var y=N.return;var U=F;var q=D;U=U===void 0?"":U;q=q===void 0?"":q;U={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:U}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.G7("SETTINGS",void 0,"Settings"),accessibilityText:_.G7("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:_.og("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:q}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:U};
return y.call(N,{responseContext:{},contents:B,topbar:R,header:{pageHeaderRenderer:U}})})};var k0$=function(G){this.chunkRegistry=G};
k0$.prototype.handleResponse=function(G){var B=this,F,D,u,R,N;return _.n(function(y){R=(u=(F=_.Q(G.responseContext,MHs))==null?void 0:(D=F.webResponseContextPreloadData)==null?void 0:D.preloadMessageNames)!=null?u:[];N=lB$(B.chunkRegistry,R);return y.yield(N(),0)})};
k0$[ZA]=[_.LO];var sIU=new _.oV("MSS_RESPONSE_PROCESSOR_TOKEN");var O8B={},eVQ=(O8B.rendered={priority:0,callback:function(G){a:{var B=void 0;try{var F;b:{if(_.V$o()){var D=_.mm(_.n8()+"::pom");if(D){var u=new Bd(D);break b}}u=void 0}var R=(F=u)==null?void 0:F.get("role_text");if(!R)break a;B={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:R}]}}}}}}catch(U){}B&&G.injector.resolve(_.Wr).resolveCommand(B)}try{var N=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(N){var y=JSON.parse(N);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
y&&G.injector.resolve(_.Wr).resolveCommand(y)}}catch(U){}}},O8B);var $Sz,zVH={},b8$=(zVH.initialized={priority:10,callback:function(){$Sz=h1()}},zVH.rendering={callback:function(G){var B;
return _.n(function(F){if(F.nextAddress==1)return F.yield($Sz,2);B=F.yieldResult;if(!B.endpoint)throw Error("Lj`"+_.Fz.location.href);mh(G,B);_.di(F)})}},zVH);var VED={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.gi(_.X("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(G){var B=G.stack;if(B.includes("chrome://")||B.includes("chrome-extension://")||G.message.includes("chrome-extension://")||B.includes("moz-extension://")||
B.includes("local.adguard.org")||B.includes("auctioneer3.50million.club")||B.includes("youtubedownloader")||B.includes("youtube_home_page")||B.includes("is_youtube_video_no_longer_available")||B.includes("switchScreenSizeHack")||B.includes("yt_main_big_banner.js")||B.includes("YouTubeCenter.js")||B.includes("/mytube.js")||B.includes("JSON.parseWrapper")||B.includes("/inj_js/common.js")||B.includes("firebug-lite")||B.includes(".repl.co/")||B.includes("linkfix")||B.includes("playAfterAd")||G.message.includes("Access is denied for this document")&&
B.includes("<anonymous>")||G.fileName==="user-script"||G.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&B.includes("<anonymous>"))return!0;if(B.includes("https://www.youtube.com"))return!1;G=B.split("\n");if(!G.length)return!1;if(G.length<=3&&B.includes("s.onloadeddata"))return!0;B=0;for(var F=_.C(G),D=F.next();!D.done;D=F.next())D=D.value,(D.includes("https://")||D.includes("http://"))&&B++;return B/G.length>.95},
weight:0},{callback:function(G){return G.message==="Unknown Error"&&G.name.indexOf("NS_")===0},
weight:100},{callback:function(G){if(!_.ST)return!1;var B=G.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||G.message.includes("available to complete this operation"),F=G.stack.includes("webcomponents")&&G.message==="Object doesn't support this action";G=G.message.includes("object that does not implement interface Element");return B||F||G},
weight:0},{callback:function(G){return G.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(G){return G.message==="Operation is not supported"&&(G.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(G){return G.stack.includes("eval code (eval (code:1:1)")||G.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(G){return G.message.includes("Permission denied")&&G.stack.includes("this.domHandler")?!0:G.name.includes("TypeError")&&G.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(G){if(!G.stack)return!1;var B=G.stack.trim().split("\n");B.length&&B[0].endsWith("Error: "+G.message)&&B.shift();B.length&&B[B.length-1].includes("at window.onerror (")&&B.pop();if(!B.length)return!0;if(G.message==="Script error.")return B[0].includes("www.youtube.com")||B.length>=2&&B[0].startsWith("at new")&&B[1].startsWith("at window.onerror");if(G.message==="Unexpected token")return!0;G=_.C(B);for(B=G.next();!B.done;B=G.next())if(B=B.value,!(B.includes("<anonymous>")||
B.startsWith("load@")||B.startsWith("global code@")||B.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(G){return G.message==="Cannot read property 'experiments'"&&G.stack.includes("/s/player/")},
weight:500},{callback:function(G){return G.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(G){return G.stack.includes("/embed.js")?(G.params&&G.params&&(G.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.X("use_error_suppression"))var G=_.v5("SUPPRESS_CLIENT_ERRORS",!1);else{if(G=_.PP)G=/Chrome\/(\d+)/.exec(_.Qo()),G=(G?parseFloat(G[1]):NaN)>=66;G=!(G||_.xw&&_.s$(65)||_.Of&&_.s$(12.1)||cQ&&_.s$(79))}return G},
weight:500}]};var vK$={},oKH=(vK$.initialized={priority:10,callback:function(G){G.injector.addProvider({provide:tMa,useValue:G.root});G.injector.addProvider({provide:Inz,useValue:EPI});G.injector.addProvider({provide:fn$,useValue:VED});var B={};G.injector.addProvider((B.provide=tVB,B.useFactory=function(F,D){return function(){oUo(F,D)}},B[ZA]=[Inz,
fn$],B));G.injector.addProvider({provide:P9,useClass:P9})}},vK$);var MEA={},pQ$=(MEA.initialized={priority:3,callback:function(){var G;if(G=qXg()){G=G.replace("/",".");var B=_.D4();B.set("tz",G);B.save();G=!0}else G=!1;G||(G=_.D4(),G.set("utco",-Math.floor((new Date).getTimezoneOffset())),G.save())}},MEA);var Yf2={},APD=(Yf2.initialized={priority:10,callback:function(G){G.injector.resolve(P9).start();G=_.es();var B=_.on("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.on("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.on("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.on("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.iQ(_.L9l(),{mainAppWeb:Object.assign({},G,{pageType:B})});_.iQ(W96(),{mainAppWeb:Object.assign({},G,{pageType:B})});
_.iQ(HVl(),{mainAppWeb:G});_.iQ(kVz(),{mainAppWeb:G});iRs(function(){_.Fi(HVl(),"FAILURE");_.Fi(kVz(),"FAILURE")});
Vfg();vHs();rNl()}},Yf2);var dSN={},JPB=(dSN.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.KR("dl"),_.kl().processSignal("pcl");else{var G=function(){_.KR("dl");_.kl().processSignal("pcl");window.removeEventListener("load",G)};
window.addEventListener("load",G)}}},dSN);var cP$={},To2=(cP$.rendering={priority:0,callback:function(){var G=_.kl();G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor",5E3)}},cP$);var Il$=function(){};
_.r(Il$,kh);
Il$.prototype.resolveCommand=function(G,B){var F,D,u,R,N,y,U,q;return _.n(function(h){u=(F=_.Q(G,_.ezG))==null?void 0:(D=F.dialog)==null?void 0:D.commentReplyDialogRenderer;if(!u)throw new _.Uf("No dialog in createCommentReplyDialogEndpoint");N=(R=B.form)==null?void 0:R.event;if(!N)throw new _.Uf("Event not passed in when resolving command");y=_.C(N.composedPath());for(U=y.next();!U.done;U=y.next())if(q=U.value,q.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||q.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return q.showReplyDialog(u),h.return();
_.di(h)})};var fl$=function(){};
_.r(fl$,kh);fl$.prototype.resolveCommand=function(){var G;return _.n(function(B){if(G=document.getElementById("creator-chatbots-panel"))G.style.display="none";_.di(B)})};var tEG=function(){};
_.r(tEG,kh);tEG.prototype.resolveCommand=function(G){var B,F,D,u,R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:return B=_.Q(G,ADq),((F=B)==null?void 0:F.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?U.yield((0,_.Gc)("NSzT5"),6):(D=B)!=null&&D.externalChannelId?U.yield((0,_.Gc)("NSzT5"),4):U.return();case 4:return u=_.Z8Z,N=(R=B.forceInstall)!=null?R:!1,U.yield(u(B.externalChannelId,N,B.surface),0);case 6:return y=_.Z8Z,U.yield(y("",!1,B.surface),7);case 7:return U.return()}})};var Lv=function(G){this.JSC$19222_pageRequestService=G;this.JSC$19222_prefetchCoordinator=eWA()};
_.r(Lv,kh);Lv.prototype.resolveCommand=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1){F=_.Q(G,Nla);if((D=F)==null||!D.taskId)throw Error("Mj");u=F.taskId;_.b5(N,2);return N.yield(_.IRZ(B.JSC$19222_pageRequestService,G,{},"").then(function(y){if(!y)throw Error("Nj");},function(y){throw Error("Oj`"+y);
}),4)}if(N.nextAddress!=2)return VVD(B.JSC$19222_prefetchCoordinator,u),_.oY(N,0);
R=_.Al(N);bnD(B.JSC$19222_prefetchCoordinator,u,R);_.di(N)})};
Lv[ZA]=[_.E$];var rt=function(G,B){this.innertubeTransportService=G;this.JSC$19226_commandHandler=B};
_.r(rt,kh);rt.prototype.resolveCommand=function(G){var B=this,F,D,u;return _.n(function(R){if(R.nextAddress==1){F=_.Q(G,yf7);if(F.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||F.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")D=F.boolValue?2:1,_.M_.getInstance().setState(D,!0,!0);return R.yield(_.$F(B.innertubeTransportService,G),2)}u=R.yieldResult;gKN(B,u);_.di(R)})};
var gKN=function(G,B){B.actions&&B.actions.forEach(function(F){G.JSC$19226_commandHandler.resolveCommand(F)})};
rt[ZA]=[_.RF,_.Wr];var WW={},HW=(WW.addToPlaylistEndpoint=vT(vi),WW.addToToastAction=vT(fa),WW.adsControlFlowOpportunityReceivedCommand=vT(qr),WW.audioTrackSelectActionCommand=vT(SJ),WW.backgroundAudioPlaybackCommand=vT(Pi),WW.captionLanguageSelectActionCommand=vT(GR),WW.captionPickerEndpoint=vT(B8),WW.changeMiniAppPlayStateCommand=vT(od),WW.changeTimelyActionVisibilityCommand=vT(IT),WW.channelCreationFormEndpoint=vT(Ou),WW.clearLocationCommand=vT(Vk),WW.clearUrlParamCommand=vT(Mr),WW.copyLinkCommand=vT(NT),WW.copyTextEndpoint=
vT(Xx),WW.createCommentReplyDialogEndpoint=kTs(Il$),WW.createPlaylistServiceEndpoint=vT(yu),WW.dismissDialogEndpoint=vT(Y5),WW.dismissPlayerOverlayCommand=vT(im),WW.entityUpdateCommand=vT(jJ),WW.feedbackEndpoint=vT(L$),WW.getAnswerCommand=vT(jL),WW.getPaymentsClientTokenCommand=vT(xJ),WW.getTranscriptEndpoint=vT(tk),WW.googlePaymentBillingCommand=vT(P8),WW.googlePaymentPurchaseManagerCommand=vT(G4),WW.hideCreatorChatbotEngagementPanelCommand=vT(fl$),WW.hideEngagementPanelEndpoint=vT(A6),WW.hideSheetCommand=
vT(dX),WW.hideSnackbarCommand=vT(pa),WW.insertRichSectionCommand=vT($5),WW.listMutationCommand=vT(zh),WW.logGtmCommand=vT(eJ),WW.notifyDropdownOptionSelectedCommand=vT(p$),WW.openAdAllowlistInstructionCommand=vT(_.Eu),WW.openOnePickAddVideoModalCommand=vT(na),WW.persistSubscriptionsDisplayPreferencesCommand=vT(Ka),WW.pingingEndpoint=vT(h6),WW.playlistEditEndpoint=vT(UI),WW.playlistVotingRefreshPopupCommand=vT(qT),WW.profileCardCommand=vT(Uu),WW.refreshPanelEndpoint=vT(J6),WW.saveImageToDeviceEndpoint=
vT(Qk),WW.scrollToSectionEndpoint=kTs(u2S),WW.seekToVideoTimestampCommand=vT(F_),WW.selectCountryCommand=vT(aT),WW.setCookieCommand=vT(mZ),WW.setLocalStorageCommand=vT(Ak),WW.setPrefStorageEntryCommand=vT(Qu),WW.setSettingEndpoint=vT(rt),WW.sfvAudioItemPlaybackCommand=vT(D3),WW.shareImageCommand=vT(La),WW.sharingProviderDataCommand=vT(rc),WW.showAudioTrackPickerActionCommand=vT(um),WW.showCaptionLanguageSelectActionCommand=vT(RT),WW.showCreatorChatbotEngagementPanelCommand=vT(tEG),WW.showDialogCommand=
vT(Id),WW.showEngagementPanelEndpoint=vT(f$),WW.showFullscreenPlayerControlsCommand=vT(wc),WW.showSheetCommand=vT(t6),WW.showSnackbarCommand=vT(YJ),WW.showTransientPlayerScrimOverlayCommand=vT(Ca),WW.submitFormWithValidationFlowCommand=vT(k5),WW.talkToRecsDeselectCommand=vT(dc),WW.talkToRecsNextCommand=vT(Jk),WW.talkToRecsSelectCommand=vT(c8),WW.talkToRecsUpdateTextCommand=vT(TR),WW.toggleEngagementPanelCommand=vT(Zu),WW.undoFeedbackEndpoint=vT(Hi),WW.updateEngagementPanelContentCommand=vT(gX),WW.updateUrlParamCommand=
vT(Z3),WW.updateVideoMetadataCommand=vT(sI),WW.verifyCommand=vT(Ou),WW.webNativeShareCommand=vT(W8),WW.webSubmitFormCommand=vT(EI),WW.ACK_PLAYABLES_3P_DATA_CONSENT=vT(H8),WW.CANCEL_NAVIGATION=vT(kJ),WW.COPY_SHARE_URL=vT(OI),WW.MINI_APP_EXIT_DIALOG_SEEN=vT($J),WW.MINI_APP_OPEN_URL=vT(eL),WW.REQUEST_MINI_APP_FULLSCREEN=vT(zR),WW.RESUME_NAVIGATION=vT(bm),WW.SHARE_PLAYABLE_WITH_HIGH_SCORE=vT(Vu),WW.TELL_US_WHY=vT(rX),WW);
_.X("web_enable_prefetching_videos_on_home")&&(HW.prefetchWatchCommand=vT(Lv),HW.registerTasksCommand=vT(J7H));_.X("enable_share_panel_navigation_logging_fix_on_web")&&(HW.shareEntityServiceEndpoint=vT(ci));_.X("web_use_flow_state_manager")&&(HW.deleteFlowStepsCommand=vT(up),HW.flowNextStepCommand=vT(Rd),HW.flowPrevStepCommand=vT(wX),HW.getFlowCommand=vT(C$),HW.updateFlowCommand=vT(Nr));_.X("enable_ai_companion")&&(HW.updateConversationIdCommand=vT(m2),HW.formDataDecoratorCommand=vT(ad));
var Lz8=Object.assign({},HW);var Sf$={},sYQ=(Sf$.initialized={priority:10,callback:Ano},Sf$);var xSQ={},PXA=(xSQ.initialized={callback:function(G){var B={},F={};jlQ().install((B.document_disposed={callback:function(){_.X("finalize_all_timelines")?xyI():Uq();xeU("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.YnJ();var D=G.injector.resolve(P9);D.intervalId!==void 0&&(D.intervalId&&_.Lu.cancelJob(D.intervalId),D.intervalId=void 0,--D.currentPartitionIndex,D=b1L(D),D>0&&Rks({mainAppWeb:_.es(),survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));xFy(kZ);Os!=null&&
Os.flush();Jc&&Jc.snapshotAndFlush();D=_.C(mqv.values());for(var u=D.next();!u.done;u=D.next())u.value.snapshotAndFlush()}},B),(F.flush_logs={callback:function(){_.H$()}},F))}},xSQ);var GD$={},Bg$=(GD$.rendered={priority:0,callback:function(){var G=new yo7;G.increment("STARTED");if(_.v5("LOGGED_IN")&&!_.v5("IS_DBSC",!1)&&_.v5("SERVER_VERSION")!=="test"&&_.v5("SERVER_VERSION")!=="dev"&&!BqU()&&!G2c()){G.increment("EXECUTING");var B=document.createElement("iframe");B.style.display="none";_.Ro(B,2,_.Sz("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.v5("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(B);G.increment("DONE")}}},
GD$);var iu$={},FON=(iu$.rendered={callback:function(){eWA().resume()}},iu$);var DzZ={acknowledgeChannelTouStrikeCommand:jo(Vm),addToPlaylistServiceEndpoint:jo(Y4),addToPlaylistEndpoint:jo(Y4),addUpcomingEventReminderEndpoint:jo(iT),browseEndpoint:jo(G_$),channelCreationFormEndpoint:jo(Hg),channelCreationServiceEndpoint:jo(k8),claimLegacyYoutubeChannelEndpoint:jo(U0),clearSearchHistoryEndpoint:jo(dG),clearWatchHistoryEndpoint:jo(JB),commerceActionCommand:LA(FI),createBackstagePostEndpoint:jo(wG),createBroadcastCommand:jo(Fg),createCommentEndpoint:jo(jG),createCommentReplyEndpoint:jo(Qm),
createLiveChatPollEndpoint:jo(Dy),createPlaylistServiceEndpoint:jo(AI),crossAccountChannelTransferEndpoint:jo(I2),deleteLiveChatMessageCommand:jo(uT),deletePlaylistEndpoint:jo(db),deleteVideoEndpoint:jo(i$),dismissalEndpoint:jo(vg),feedbackEndpoint:jo(o2),flagEndpoint:jo(tI),getAccountSwitcherEndpoint:jo(T4),verifyCommand:jo(R2),getAccountsListInnertubeEndpoint:jo(B3),getCommentsFromInboxCommand:jo(Qt),getDownloadActionCommand:jo(OM),getFlowCommand:LA(AB),getKidsBlocklistPickerCommand:jo(Zy),getNotificationMenuEndpoint:jo(FWS),
getPaymentInstrumentsParamsCommand:jo(n3D),getPaymentsClientTokenCommand:LA(FI),getPdgBuyFlowCommand:jo(M$),getReportFormEndpoint:jo(gb),getSearchInVideoCommand:jo(x4),getAnswerCommand:jo(sM),getSurveyCommand:jo(BW),getTranscriptEndpoint:jo(RW$),getPostVideoPreviewEndpoint:jo(NG),decorateMessageEndpoint:jo(Cs),likeEndpoint:jo(O0),liveChatActionEndpoint:jo(N$),liveChatEndpoint:jo(Cw),liveChatItemContextMenuEndpoint:jo(RL),liveChatPurchaseMessageEndpoint:jo(nw),liveChatReplayEndpoint:jo(wb),manageLiveChatUserEndpoint:jo(UM),
metadataUpdateCommand:jo(mq),moderateLiveChatEndpoint:jo(q$),modifyChannelNotificationPreferenceEndpoint:jo(W3),notificationOptOutEndpoint:jo(H3),openSuperStickerBuyFlowCommand:jo(lT),performCommentActionEndpoint:jo(a2),playlistEditEndpoint:jo(c3),playlistEditorEndpoint:jo(JI),recordNotificationInteractionsEndpoint:jo(k4),reelWatchEndpoint:jo(TZ),refreshPanelEndpoint:jo($4),removeUpcomingEventReminderEndpoint:jo(EM),resolveLocationCommand:jo(aL),revealBusinessEmailCommand:jo(qG),searchEndpoint:jo(_.DNZ),
sendLiveChatMessageEndpoint:jo(hI),sendLiveChatVoteEndpoint:jo(Kw),setSettingEndpoint:jo(eG),shareEntityServiceEndpoint:LA(bH),sharingProviderDataCommand:jo(GU),showEngagementPanelEndpoint:jo(zZ),showMoreDrawerCommand:jo(Vt),showSheetCommand:jo(v3),showDialogCommand:jo(bT),subscribeEndpoint:jo($8),transcriptSubmitCaptionCorrectionCommand:jo(ub2),undoFeedbackEndpoint:jo(ps),unsubscribeEndpoint:jo(z4),updateBackstagePostEndpoint:jo(ns),updateCommentEndpoint:jo(rG),updateCommentReplyEndpoint:jo(Ls),
updateCommentsSettingsEndpoint:jo(Wg),updateCreatorChannelInnertubeCommand:jo(hB),updateKidsBlacklistEndpoint:jo(Sn),updateEngagementPanelContentCommand:jo(oL),updatePdgFeatureEnablementCommand:jo(pw),updatedMetadataEndpoint:jo(Xg),validateChannelHandleCommand:jo(Ks),updateChannelPageSettingsEndpoint:jo(E0),verifyAgeEndpoint:jo(Y8),watchEndpoint:LA(iH),whitelistEditEndpoint:jo(w1U),ypcCancelRecurrenceEndpoint:jo(DD),ypcCompleteTransactionEndpoint:jo(CzS),ypcFixInstrumentEndpoint:jo(u$),ypcGetCartEndpoint:jo(NdU),
ypcGetOffersEndpoint:jo(y72),ypcHandleTransactionEndpoint:LA(Rm),ypcLogWalletAnalyticDataEndpoint:jo(lnN),ypcOffersEndpoint:jo(UND),ypcPauseSubscriptionCommand:jo(qrA),ypcRedeemCodeEndpoint:jo(E3N),ypcResumeSubscriptionCommand:jo(hW$),ypcUpdateFopEndpoint:jo(u$)},kn={},usU=(kn.GET_ACCOUNT_MENU=jo(tB),kn.GET_NOTIFICATIONS_MENU=jo(inA),kn.GET_NOTIFICATIONS_INBOX=jo(jn),kn.GET_UNSEEN_NOTIFICATION_COUNT=jo(rb),kn.GET_USER_MENTION_SUGGESTIONS=jo(ym),kn.LOAD_GUIDE=jo(BdN),kn.SUBMIT_FEEDBACK=jo(MG),kn),
Oa={},RZD=(Oa.CONTINUATION_REQUEST_TYPE_BROWSE=jo(lH),Oa.CONTINUATION_REQUEST_TYPE_SEARCH=jo(P3),Oa.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=jo(x5),Oa.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=jo(cg),Oa.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=jo(Xf),Oa.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=jo(mT),Oa.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=jo(fw),Oa.CONTINUATION_REQUEST_TYPE_GET_PANEL=jo(en),Oa),wo$={player:LA(iH),watchNext:jo(su)},Ci$={player:LA(iH),reelItemWatch:jo(TZ),reelWatchSequence:jo(IL)},
NgA={watchEndpoint:LA(Ff)},yoN={commandEndpointMap:DzZ,signalEndpointMap:usU,continuationEndpointMap:RZD,watchEndpointMap:wo$,reelWatchEndpointMap:Ci$,streamingEndpointMap:NgA};var nrz,l8N,UzG;_.qOH=((l8N=(nrz=window).matchMedia)==null?void 0:(UzG=l8N.call(nrz,"(prefers-reduced-motion: reduce)"))==null?void 0:UzG.matches)||!document.startViewTransition;var Er2={},hZ$={disableAllTransitions:_.qOH,ignoredErrors:(Er2.DOCUMENT_HIDDEN=!0,Er2.WINDOW_SIZE_CHANGED=!0,Er2.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,Er2),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var KOS=_.vP("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),mz$=function(G){var B=this;this.viewTransitionCoordinator=
G;this.disableTransitionsForUltraHigh=_.X("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=a8D();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.xf("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.X("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.X("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.X("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.xf("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.X("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Lu.addJob(function(){B.registerRootElement();if(B.isAnyTransitionEnabled){var F=
_.sD("web_page_transition_exit_ms"),D=_.sD("web_page_transition_wait_ms"),u=_.sD("web_page_transition_enter_fast_ms"),R=_.sD("web_page_transition_watch_exit_ms"),N=_.sD("web_page_transition_watch_wait_ms"),y=_.sD("web_page_transition_watch_enter_ms"),U=_.sD("web_page_transition_watch_next_exit_ms"),q=_.sD("web_page_transition_watch_next_wait_ms"),h=_.sD("web_page_transition_watch_next_enter_fast_ms"),K=_.sD("web_page_transition_enter_ms"),a=_.sD("web_page_transition_watch_next_enter_ms");B.enableFasterTransitions&&
B.isUltraHighBucketDevice&&(K=u,a=h);isNaN(F)&&isNaN(D)&&isNaN(K)&&isNaN(R)&&isNaN(N)&&isNaN(y)&&isNaN(U)&&isNaN(q)&&isNaN(a)||!(F=iTl(KOS,F,D,K,R,N,y,U,q,a))||(D=document.createElement("style"),D.textContent=Vl8(F),document.head.appendChild(D))}},8)},a8D=function(){var G=_.Fz.navigator.deviceMemory;
return G>=8||G===void 0?!0:!1};
mz$.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var G={};this.viewTransitionCoordinator.registerElement(document.documentElement,(G.slide="root-slide",G["lockup-to-watch"]="root-lockup-to-watch",G["learning-journey"]="root-learning-journey",G))}};
_.Qw8=function(G,B){G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&(G.registeredLockupThumbnail?G.lockupThumbnailRegisteredFromWatchEndpoint?_.em(new _.Uf("Lockup thumbnail registration order is incorrect.")):_.em(new _.Uf("Lockup thumbnail already registered.")):(G.registeredLockupThumbnail=B,_.Xo$(G,B)))};
_.Xo$=function(G,B){var F={};G.viewTransitionCoordinator.registerElement(B,(F["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",F),!0)};
mz$[ZA]=[RpQ];var dZc={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var cnM=["videoPrimaryInfoRenderer","title"],TDc=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var QB$;QB$=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.jB2=_.Y(function(G){G=_.AS(G,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var B=G.data,F=G.playlistData,D=G.expanded,u=G.onExpandClick,R=G.isReadyToResume,N=function(){var h;return!((h=F())==null||!h.contents)},y=function(){var h=F();
return h&&h.totalVideos&&h.currentIndex!==void 0?h.currentIndex+1+" / "+h.totalVideos:""};
G=_.gJ(function(){_.e4(_.te().resolve(_.WP));return!1});
var U=_.gJ(function(){N()&&u&&u()}),q={};
return _.l("ytd-miniplayer-info-bar",{class:_.tx("ytdMiniplayerInfoBarHost",(q.ytdMiniplayerInfoBarHasPlaylistData=N,q)),"on:click":U},_.l("div",{class:"ytdMiniplayerInfoBarContent"},_.l("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":G},_.l(_.Wd,{text:function(){var h=B();var K=F();if(K==null?0:K.contents){var a;h=(a=_.ZUU(K))==null?void 0:a.title}else h=h==null?void 0:h.miniplayerTitle;return ff8(h)},
noEndpoints:!0,ellipsisTruncate:!0})),_.l("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.l(_.E,{cond:R,then:function(){return _.l(g_a,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:QB$})}}),_.l("h1",null,_.l(_.Wd,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var h=B();var K=F();h=R()?{simpleText:_.G7("CONTINUE_WATCHING",void 0,"Continue watching")}:(K==null?0:K.contents)?K.titleText:h==null?void 0:h.miniplayerSubtitle;return ff8(h)},
noEndpoints:!0,ellipsisTruncate:!0})),_.l(_.E,{cond:function(){return!!y()&&!R()},
then:function(){return _.l("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.l("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.l("span",null,y))}}))),_.l(_.E,{cond:N,
then:function(){return _.l("div",{class:"ytdMiniplayerInfoBarExpand"},_.l(_.Ji,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(h){u&&(u(),h.stopPropagation())}}},
iconName:function(){return D()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ig");var LOQ;LOQ=_.Y(function(G){return _.l("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.l(_.Ji,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:G.onTap}},
iconName:"yt-icons:close"}))},"Jg");
_.ro$=_.Y(function(G){G=_.AS(G,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var B=G.size,F=G.playabilityStatus,D=G.isDisabled,u=G.isPictureInPicture,R=_.W5("div");G=_.C(_.qg(void 0,void 0,"w4RAU"));var N=G.next().value,y=G.next().value;G=_.FT(_.fh);var U=!1,q=function(){return B().height<=0};
_.bC(function(){var m=B(),L=q(),W=N();W&&!L&&W.setInternalSize(m.width,m.height)},"BHFc2b");
_.eR(function(){var m,L,W;return _.n(function(e){if(e.nextAddress==1){m=_.te().resolve(_.WP);L=m.getPlayerElement();if(!m.isMiniplayerActive()||!L||!R.value)return e.return();L.appendTo(R.value);return e.yield(L.getPlayerPromise(),2)}W=e.yieldResult;u()||W.setSizeStyle(!1,!0);y(W);_.di(e)})});
_.VI(function(){h()});
_.bC(function(){var m=N();if(m)if(D()){var L=m.getPlayerState();(U=L===-1||L===1||L===3)&&m.pauseVideo()}else h()},"Invykd");
var h=function(){if(U){U=!1;var m;(m=N())==null||m.playVideo()}},K=_.gJ(function(){_.e4(_.te().resolve(_.WP))}),a={};
return _.l("ytd-miniplayer-player-container",{class:_.tx("ytdMiniplayerPlayerContainerHost",(a.ytdMiniplayerPlayerContainerHidden=q,a.ytdMiniplayerPlayerContainerHostShortsPip=G,a)),style:_.xN({width:function(){return B().width+"px"},
height:function(){return B().height+"px"}})},_.l("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:R}),_.l(_.E,{cond:function(){return!!F()&&!_.nqJ(F())},
then:function(){return _.l(ko$,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var m;return((m=F())==null?void 0:m.errorScreen)||null},
status:function(){var m;return((m=F())==null?void 0:m.status)||null}})}}),_.l(_.E,{cond:D,
then:function(){return _.l("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":K},_.l(LOQ,{onTap:function(){_.te().resolve(_.WP).close()}}))}}))},"Ng");var iQv;var uzy=null;var Hu$=_.Y(function(G){var B=G.progressState;var F=G.multiMarkersPlayerBarRenderer;var D=G.progressBarWidth;var u=function(){return NUN(F())},R=function(){return lcw(B())},N=function(){return D()*(B().playedTime/B().videoDuration)};
return _.l("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.l(_.jR,{each:u},function(y,U){return _.l(WOB,{modifiedProps:R,chapters:u,index:U,playedProgressWidth:N,backgroundGradientPosition:function(){var q=R(),h=u(),K=U(),a=N();return(q.playedTime-Lx(_.Q(h[K],jT)))/q.playedTime*a}})}))},"Og"),WOB=_.Y(function(G){var B=G.modifiedProps;
var F=G.chapters;var D=G.index;var u=G.playedProgressWidth;var R=G.backgroundGradientPosition;G={};G=_.tx("ytChapteredProgressBarChapteredPlayerBarChapter",(G.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return N().isScrubbing},G.ytChapteredProgressBarHoveredMacroMarker=function(){return N().scrubberHovering},G.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return N().videoPosition==="seen"},G));
var N=function(){return ULv(B(),F(),D())},y=function(){var U=B();
var q=F(),h=D();if(ULv(U,q,h).videoPosition!=="active")U=0;else{var K=Lx(_.Q(q[h],jT));U=(U.playedTime-K)/((Lx(_.Q(q[h+1],jT))||U.videoDuration)-K)}return U};
return _.l("div",{class:G,style:_.xN({width:function(){var U=B(),q=F(),h=D(),K=_.Q(q[h],jT);q=_.Q(q[h+1],jT);return(q?Lx(q)-Lx(K):U.videoDuration-Lx(K))/U.videoDuration*100+"%"},
"background-color":function(){a:{var U=N();switch(U.videoPosition){case "pending":U=U.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":U=U.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:U=""}}return U},
"background-size":function(){return(qSG(N())?u():"")+"px"},
"background-position-x":function(){return(qSG(N())?R():"")+"px"}})},_.l("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var U=B(),q=F(),h=D();if(ULv(U,q,h).videoPosition==="seen")var K=0;else K=Lx(_.Q(q[h],jT)),q=Lx(_.Q(q[h+1],jT))||U.videoDuration,U=U.videoDuration*U.percentLoaded,K=q<=U?1:K>=U?0:(U-K)/(q-K);return"width: "+K*100+"%"}}),_.l("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.xN({width:function(){return y()*100+"%"},
"background-size":function(){return(qSG(N(),y())?u():"")+"px"},
"background-position-x":function(){return(qSG(N(),y())?R():"")+"px"}})}))},"Pg");var kDH=function(G,B){B=B===void 0?Fh8:B;var F,D=[],u,R=!1;return function(){var N=_.xS.apply(0,arguments);if(R&&F===this&&B(N,D))return u;u=G.apply(this,N);R=!0;F=this;D=N;return u}}(function(G){var B=G.heatMarkers,F=G.minHeightDp===void 0?0:G.minHeightDp,D=G.maxHeightDp===void 0?60:G.maxHeightDp;
var u=u===void 0?!1:u;var R=1E3/B.length;G=[];G.push({x:0,y:100});for(var N=0;N<B.length;N++){var y=void 0,U=((y=_.Q(B[N],Ejs))==null?void 0:y.heatMarkerIntensityScoreNormalized)||0;y=(N+.5)*R;U=100-_.ki(U*100,F/321*100,D/321*100);N!==0||u||G.push({x:0,y:U});G.push({x:y,y:U});N===B.length-1&&G.push({x:1E3,y:U})}G.push({x:1E3,y:100});B="";for(F=0;F<G.length;F++)u=G[F],F===0?u="M "+u.x.toFixed(1)+","+u.y.toFixed(1):(D=NF8(G[F-1],G[F-2],u),R=NF8(u,G[F-1],G[F+1],!0),u=" C "+(D.x.toFixed(1)+","+D.y.toFixed(1)+
" "+R.x.toFixed(1)+","+R.y.toFixed(1)+" "+u.x.toFixed(1)+","+u.y.toFixed(1))),B+=u;return B});var Ou$=_.Y(function(G){var B=G.progressBarProps;var F=G.config;var D={};G=_.tx("ytHeatSeekerHost",(D.ytHeatSeekerHighContrast=G.highContrast,D));var u=function(){return sPM(F().chapterData)};
return _.l("yt-progress-bar-heatseeker",{class:G,style:function(){var R;return"height: 320px; display: "+(B().isDragging&&((R=u())==null?0:R.heatMarkers)?"block":"none")}},_.l(_.E,{cond:u,
then:function(R){return _.l(_.E,{cond:function(){return R().heatMarkers},
then:function(){return _.l("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.l("path",{d:function(){return kDH(R())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Qg");var eZN=_.Y(function(G){var B=G.progressBarProps;var F=G.config;G={};G=_.tx("ytProgressBarLineProgressBarLine",(G.ytProgressBarLineProgressBarLineRounded=function(){return F().rounded},G.ytProgressBarLineProgressBarLineBottomInset=function(){return F().position===2},G));
return _.l("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.l("div",{class:G},_.l("div",{class:"ytProgressBarLineProgressBarBackground"}),_.l("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+B().percentLoaded*100+"%"}}),_.l("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var D=B();return"width: "+(D.videoDuration?_.ki(D.hoveredTime/D.videoDuration,0,1):0)*100+"%"}}),_.l("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+ZfS(B())*100+"%"}})))},"Rg");
eZN.idomCompat=!0;var $zD=_.Y(function(G){var B=G.progressBarProps;var F=G.playheadData;var D=G.interpolateDotPosition;var u=G.hidePlayhead;G={};var R=_.tx("ytProgressBarPlayheadProgressBarPlayheadDot",(G.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return B().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!B().isDragging&&u()},G));
return _.l("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.xN({"margin-left":function(){return gHQ(B())*100+"%"},
transform:function(){return"translateX(-"+(D()?gHQ(B())*12:6)+"px)"}})},_.l(_.E,{cond:function(){var N;
return(N=_.pW(F)())==null?void 0:N.playheadImage},
then:function(N){var y={};return _.l("div",{class:_.tx("ytProgressBarPlayheadProgressBarPlayheadCustom",(y.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return B().isDragging},y.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!B().isDragging&&u()},y)),
style:_.xN({"transform-origin":function(){return(D()?gHQ(B())*20:10)+"px center"}})},_.l(_.vr,{data:N,
alt:"","aria-hidden":"true"}))},
else:function(){return _.l("div",{class:R,style:_.xN({"transform-origin":function(){return(D()?gHQ(B())*12:6)+"px center"}})})}}))},"Sg");
$zD.idomCompat=!0;var $n=function(G,B,F,D,u,R){this.getProgressBarRect=G;this.updateProgressBarRect=B;this.getFilmstripYPosition=F;this.setFineScrubbingDraggedTime=D;this.updateFilmStripDraggedYDistance=u;this.resetFilmStripYOffset=R;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.s_(this.onThrottledSeek,100,this)},zZ$=function(G,B,F){return function(D){G.handleClick(D,B(),F())}},vrU=function(G,B){return function(F){bu$(G,
F,V6$(F),B())}},or$=function(G,B){return function(F){bu$(G,F,{x:F.clientX,
y:F.clientY},B())}},poH=function(G,B,F){return function(D){var u=B(),R=F();
M6Q(G,D,V6$(D),u,R,!0);if(R.onTouchMove)R.onTouchMove(u)}},AoN=function(G,B,F){return function(D){YOG(G,D,B(),F())}},dz2=function(G,B){return function(){G.handleMouseLeave(B())}},coS=function(G,B,F){return function(){var D=B(),u=F();
JoZ(G,D,u);if(u.onTouchEnd)u.onTouchEnd(D)}},Tg2=function(G,B,F){return function(){var D=B(),u=F();
JoZ(G,D,u);if(u.onTouchEnd)u.onTouchEnd(D)}},I8$=function(G,B,F){return function(){JoZ(G,B(),F())}},f8z=function(G){return function(B){if(B.keyCode===39||B.keyCode===38){var F,D;
(F=G())==null||(D=F.playerApi)==null||D.seekBy(5,void 0,void 0,72)}else if(B.keyCode===37||B.keyCode===40){var u,R;(u=G())==null||(R=u.playerApi)==null||R.seekBy(-5,void 0,void 0,71)}}},t6z=function(G,B,F){return function(D){!F().disableScrubbing&&G.startPosition&&YOG(G,D,B(),F())}},ZuN=function(G,B,F){return function(){if(!F().disableScrubbing)if(G.startPosition){var D=B(),u=F();
JoZ(G,B(),F());if(u.onTouchEnd)u.onTouchEnd(D)}else B().setState({isDragging:!1})}},V6$=function(G){G=G.touches[0];
return{x:G.clientX,y:G.clientY}},YOG=function(G,B,F,D){if(B.buttons!==1){if(B.movementX||B.movementY)B.preventDefault(),B.stopPropagation(),G=grz(G,F,B.clientX),F.setState({isHovering:!0,
hoveredTime:G*F.videoDuration})}else SOD(F),M6Q(G,B,{x:B.clientX,y:B.clientY},F,D,!1)};
$n.prototype.handleMouseLeave=function(G){SOD(G)};
var SOD=function(G){G.isHovering&&G.setState({isHovering:!1,hoveredTime:0})},bu$=function(G,B,F,D){G.startPosition||(G.startPosition=F,G.updateProgressBarRect(),G.controlsWereVisibleBeforeDragging=D.controlsVisible,B.stopPropagation(),_.X("medium_progress_bar_modification")||B.preventDefault())},M6Q=function(G,B,F,D,u,R){if(G.startPosition)if(R&&u.isInlinePlayback&&G.startPosition&&!G.hasDraggedTheMinimumDistance&&Math.abs(F.y-G.startPosition.y)>Math.abs(F.x-G.startPosition.x))JoZ(G,D,u);
else if(B.preventDefault(),B.stopPropagation(),D.videoDuration&&(G.startPosition&&!G.hasDraggedTheMinimumDistance&&(G.hasDraggedTheMinimumDistance=Math.abs(F.x-G.startPosition.x)>=1),u.enableFineScrubbing&&(G.startPosition&&(G.isDraggedForFineScrubbing=-(F.y-G.startPosition.y)>=60),!G.startPosition||F.y>=G.startPosition.y||(D.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:EMU(D.draggedTime,D,u.chapterData)}),G.setFineScrubbingDraggedTime(D.draggedTime),G.updateFilmStripDraggedYDistance(G.startPosition.y,
F.y,D))),G.hasDraggedTheMinimumDistance)){B=grz(G,D,F.x);if(G.isDraggedForFineScrubbing){var N;(N=D.playerApi)==null||N.pauseVideo();D.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:D.draggedTime,filmStripXDistance:EMU(B*D.videoDuration,D,u.chapterData)})}u.enableFineScrubbing&&(!u.enableFineScrubbing||G.getFilmstripYPosition(D)<68)||D.setState({draggedTime:B*D.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:G.controlsWereVisibleBeforeDragging});var y;(y=
u.cancelAutohideControlsFn)==null||y.call(u)}},JoZ=function(G,B,F){var D=F.enableFineScrubbing&&B.fineScrubbingActiveState!=="off";
if(B.isDragging||D){D={isDragging:!1,playedTime:B.draggedTime,controlsVisible:G.controlsWereVisibleBeforeDragging};F.enableFineScrubbing&&B.fineScrubbingActiveState!=="on"&&(G.resetFilmStripYOffset(),D.fineScrubbingActiveState="off");var u=u===void 0?uzy:u;var R=_.qW(0);if(R&&u){var N=Math.round(B.playedTime*1E3),y=Math.round(B.draggedTime*1E3);N>2147483647||y>2147483647||_.z7(R,u,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(N),endMediaTimeMs:String(y),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}B.setState(D);
G.seekThrottle.fire(B.draggedTime,B,7);_.X("mweb_new_progress_bar_play_on_seek")&&G.resumeVideo(B);F.unmuteOnSeek&&(F=B.playerApi,B.volumeMuted&&(F==null||F.unMute()))}else B.setState({controlsVisible:!B.controlsVisible}),(R=F.triggerAutohideControlsAfterDelayFn)==null||R.call(F);G.startPosition=null;G.hasDraggedTheMinimumDistance=!1;G.isDraggedForFineScrubbing=!1;G.controlsWereVisibleBeforeDragging=!1};
$n.prototype.handleClick=function(G,B,F){this.updateProgressBarRect();G.stopPropagation();G=grz(this,B,G.clientX)*B.videoDuration;B.setState({playedTime:G});if(B.playerState!==2){var D;(D=F.triggerAutohideControlsAfterDelayFn)==null||D.call(F)}this.seekThrottle.fire(G,B,7)};
var grz=function(G,B,F){G=G.getProgressBarRect(B);return _.ki(0,(F-G.left)/G.width,1)};
$n.prototype.resumeVideo=function(G){if(G.draggedTime<G.videoDuration){var B;(B=G.playerApi)==null||B.playVideo()}};
$n.prototype.onThrottledSeek=function(G,B,F){if(B=B.playerApi){var D;if((D=B.getVideoData())==null?0:D.isLive)D=this.getProgressState(B),G+=(D==null?void 0:D.seekableStart)||0;B.seekTo(G,void 0,void 0,void 0,F)}};
$n.prototype.getProgressState=function(G){var B=G==null?void 0:G.getPresentingPlayerType();return G==null?void 0:G.getProgressState(B)};var PiZ,xz$,GAU,iZG,sBG,FXD,DIZ,u0N,RIB;PiZ=_.Y(function(G){var B=G.progressBarProps;var F=G.config;var D=G.progressBarWidthPx;var u=G.chapterData;var R=X6U(B,function(){return F().isShortsPage}),N=function(){return!B().isHovering&&!F().isShortsPage};
G={};var y=_.tx("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(G.ytPlayerStoryboardHostMwebShorts=function(){return F().isShortsPage&&!1},G));
return _.l("yt-player-storyboard",null,_.l(_.E,{cond:function(){return B().isDragging||B().isHovering},
then:function(){return _.l(_.E,{cond:R,then:function(U){return _.l(_.E,{cond:N,then:function(){return _.l("div",{class:y,"aria-hidden":"true"},_.l(sBG,{props:B,config:F,isBigboard:!0,chapterData:u}))},
else:function(){return _.l(xz$,{props:B,frame:U,config:F,progressBarWidthPx:D,chapterData:u})}})}})}}))},"Tg");
_.BaH=_.Y(function(G){var B=G.progressBarProps;var F=X6U(B,G.isShortsPage);return _.l("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.l(_.E,{cond:function(){return B().isDragging||B().isHovering},
then:function(){return _.l(_.E,{cond:F,then:function(D){return _.l(GAU,{frame:D,props:B,isBigboard:!0})}})}}))},"Ug");
xz$=_.Y(function(G){var B=G.props;var F=G.frame;var D=G.config;var u=G.progressBarWidthPx;G=G.chapterData;var R={};R=_.tx("ytPlayerStoryboardHost",(R.ytPlayerStoryboardHostMwebShorts=function(){return D().isShortsPage&&!1},R.ytPlayerStoryboardHostInlinePlayer=function(){return D().isInlinePlayer},R.ytPlayerStoryboardHostFadeIn=function(){return D().useFadeInAnimation},R));
return _.l("div",{class:R,"aria-hidden":"true",style:function(){var N=B(),y=hJ7(F()),U=u();N=Kgy(N)/N.videoDuration;var q=U*N,h=y/2+6;y=U-(y/2+6);return"left: "+(q<=h?h/U*100:q>=y?y/U*100:N*100)+"%"}},_.l(_.E,{cond:function(){var N=B();
return!(D().isShortsPage&&N.videoDuration<15)},
then:function(){return _.l(GAU,{frame:F,props:B,isBigboard:!1})}}),_.l(sBG,{props:B,
config:D,isBigboard:!1,chapterData:G}))},"Vg");
GAU=_.Y(function(G){var B=G.frame;var F=G.props;var D=G.isBigboard;var u=function(){var y,U;return(U=(y=F().playerApi)==null?void 0:y.getVideoContentRect())!=null?U:{width:0,height:0}},R=function(){return hJ7(B())},N=function(){var y=B();
return y?y.height/y.rows:0};
G={};G=_.tx((G.ytPlayerStoryboardBigboardImageWrapper=D,G.ytPlayerStoryboardStoryboardImageWrapper=function(){return!D()},G));
return _.l("div",{class:G,style:function(){return"width: "+(D()?u().width:R())+"px; height: "+(D()?u().height:N())+"px;"}},_.l(iZG,{frame:B,
storyboardWidth:R,storyboardHeight:N,storyboardScale:function(){return(D()?u().width:R())/R()}}))},"Wg");
iZG=_.Y(function(G){var B=G.frame;var F=G.storyboardWidth;var D=G.storyboardHeight;var u=G.storyboardScale;var R=function(){var N=B().row,y=B().column,U=F(),q=D(),h=u();return{left:-y*U*h,top:-N*q*h}};
return _.l("img",{src:function(){return B().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+R().left+"px; top: "+R().top+"px; width: "+B().width*u()+"px; height: "+B().height*u()+"px;"}})},"Xg");
sBG=_.Y(function(G){var B=G.props;var F=G.config;var D=G.isBigboard;var u=G.chapterData;G={};G=_.tx("ytPlayerStoryboardMetadata",(G.ytPlayerStoryboardMetadataBigboard=D,G));return _.l("div",{class:G},_.l(_.E,{cond:D,then:function(){return _.l(_.GJ,null,_.l(FXD,{props:B,config:F}),_.l(_.E,{cond:function(){a:{var R=B();var N=F(),y=u(),U;if((N==null?0:N.activeChapter)&&((U=_.Q(N==null?void 0:N.activeChapter,jT))==null?0:U.title))R=!0;else{N=_.C(xZo(y));for(N=N.next();!N.done;N=N.next()){R=(N=_.Q(N.value,
KPG))&&acq(R,N);break a}R=!1}}return R},
then:function(){return _.l(DIZ,{props:B,config:F,isBigboard:!0,chapterData:u})}}))},
else:function(){return _.l(_.GJ,null,_.l(DIZ,{props:B,config:F,isBigboard:!0,chapterData:u}),_.l(FXD,{props:B,config:F}))}}))},"Yg");
FXD=_.Y(function(G){var B=G.props;var F=G.config;G={};G=_.tx("ytPlayerStoryboardTimestamp",(G.ytPlayerStoryboardTimestampShorts=function(){return F().isShortsPage},G.ytPlayerStoryboardTimestampIsHovering=function(){return B().isHovering||F().isShortsPage&&!0},G));
return _.l("div",{class:G},_.l(_.GJ,null,function(){return _.mLv(Kgy(B()))}))},"Zg");
DIZ=_.Y(function(G){var B=G.props;var F=G.config;var D=G.isBigboard;var u=G.chapterData;G={};D=_.tx("ytPlayerStoryboardTitle",(G.ytPlayerStoryboardTitleBigboard=D,G));return _.l("div",{class:D},_.l(_.E,{cond:function(){return!F().isShortsPage},
then:function(){return _.l(u0N,{props:B,activeChapter:function(){return F().activeChapter},
chapterData:u})}}))},"$g");
u0N=_.Y(function(G){var B=G.props;var F=G.activeChapter;var D=G.chapterData;return _.l(_.GJ,null,_.l(_.jR,{each:function(){return xZo(D())},
keyBy:"INDEX"},function(u){return _.l(_.GJ,null,_.l(_.E,{cond:function(){return _.Q(u(),KPG)&&acq(B(),_.Q(u(),KPG))},
then:function(){return _.l(RIB,{timedMarker:function(){return _.Q(u(),KPG)}})}}))}),_.l(_.E,{cond:function(){var u;
return F()&&((u=_.Q(F(),jT))==null?void 0:u.title)},
then:function(u){return _.l(_.Wd,{text:u,noPreWrap:!0})}}))},"ah");
RIB=_.Y(function(G){var B=G.timedMarker;return _.l(_.GJ,null,_.l("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.l(_.Pr,{icon:function(){return B().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.l(_.Wd,{text:function(){return B().label},
noPreWrap:!0}))},"bh");_.w$$=_.Y(function(G){var B=G.progressBarProps;var F=G.playheadData;var D=G.config;G=_.W5("yt-progress-bar");var u=_.W5("div"),R=_.W5("div"),N=_.C(_.qg({width:0,left:0},void 0,"XjZjde")),y=N.next().value,U=N.next().value,q=function(){R.value&&U(R.value.getBoundingClientRect())},h=function(){y().width<=0&&q();
return y()};
_.Iu("resize",q);var K=new $n(h,function(){},function(){return 0},function(){},function(){},function(){}),a=function(){return B()};
N=_.C(_.qg(!1,void 0,"uZlOJc"));var m=N.next().value,L=N.next().value;N=_.gJ(function(){L(!0);D().position===2?setTimeout(function(){q()},100):q()});
var W=_.gJ(function(){L(!1);dz2(K,a)()}),e=_.gJ(function(Jg){(D().doSeekOnClick||_.X("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&Jg instanceof PointerEvent&&Jg.pointerType==="mouse")&&zZ$(K,a,D)(Jg);
return!1}),b=_.gJ(function(Jg){vrU(K,a)(Jg);
return!1}),M=_.gJ(function(Jg){or$(K,a)(Jg);
return!1}),t=_.gJ(function(Jg){poH(K,a,D)(Jg);
return!1}),T=_.gJ(function(Jg){AoN(K,a,D)(Jg);
return!1}),A=_.gJ(function(){coS(K,a,D)();
return!1}),Z=_.gJ(function(){Tg2(K,a,D)();
return!1}),P=_.gJ(function(){I8$(K,a,D)();
return!1}),RI=_.gJ(function(Jg){f8z(a)(Jg);
return!1});
_.Iu("mousemove",t6z(K,a,D));_.Iu("mouseup",ZuN(K,a,D));_.$f(function(){RJq(u.value);L(!1);q();ZuN(K,a,D)()});
var yo={};yo=_.tx("ytPlayerProgressBarHost",function(){return D().className},(yo.ytPlayerProgressBarHostReadOnly=function(){return D().disableScrubbing},yo.ytPlayerProgressBarHostHidden=function(){return D().hideProgressBar&&!m()},yo.ytPlayerProgressBarHostLowerPlayer=function(){return D().position===0},yo.ytPlayerProgressBarHostBottomEdge=function(){return D().position===1},yo.ytPlayerProgressBarHostBottomInset=function(){return D().position===2},yo.ytPlayerProgressBarHostCustom=function(){return D().position===
3},yo));
var hg={},US=_.tx("ytPlayerProgressBarBackground",(hg.ytPlayerProgressBarBackgroundHide=function(){return D().position===2&&!m()&&!B().isDragging},hg));
hg={};hg=_.tx("ytPlayerProgressBarDragContainer",(hg.ytPlayerProgressBarDragContainerBottomEdge=function(){return D().position===1},hg));
var aI={};aI=_.tx("ytPlayerProgressBarProgressBar",(aI.ytPlayerProgressBarProgressBarInset=function(){return D().position===2},aI.ytPlayerProgressBarProgressBarInsetMinimized=function(){return D().position===2&&!m()&&!B().isDragging},aI));
var v6=function(){return Math.floor(ZfS(B())*100)};
return _.l("yt-progress-bar",{el:G,class:yo},_.l(_.E,{cond:function(){return D().position===2},
then:function(){return _.l("div",{class:US})}}),_.l("div",{el:u,
"on:click":e,"on:touchstart":b,"on:touchmove":t,"on:mouseenter":N,"on:mousedown":M,"on:mouseleave":W,"on:mousemove":T,"on:mouseup":Z,"on:touchend":A,"on:touchcancel":P,"on:keydown":RI,class:hg,role:"slider","aria-valuenow":v6,"aria-valuetext":function(){return v6()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return B().videoDuration},
draggable:_.X("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.G7("SEEK_SLIDER")},_.l("div",{el:R,class:aI},_.l(Ou$,{progressBarProps:B,config:D,highContrast:function(){return!!D().isInlinePlayback}}),_.l(_.E,{cond:function(){return D().chapterData&&P8S(D().chapterData)},
then:function(){return _.l(Hu$,{progressState:B,multiMarkersPlayerBarRenderer:function(){return D().chapterData},
progressBarWidth:function(){return y().width}})},
else:function(){return _.l(eZN,{progressBarProps:B,config:D})}}),_.l($zD,{progressBarProps:B,
playheadData:F,interpolateDotPosition:function(){return D().position!==2},
hidePlayhead:function(){return D().playheadDotBehavior===1&&!m()}}))),_.l(PiZ,{progressBarProps:B,
config:function(){return{activeChapter:nMG(B(),D().chapterData),getProgressBarWidthPx:function(){return h().width},
isShortsPage:!!D().isShortsPage,isInlinePlayer:!!D().isInlinePlayback,useFadeInAnimation:!!D().isInlinePlayback}},
progressBarWidthPx:function(){return y().width},
chapterData:function(){return D().chapterData}}))},"ch");
_.w$$.idomCompat=!0;Object.assign({},_.GsN(),{setState:function(){},
domMeasurements:{},appApi:_.tfL(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var CZD;
_.Na$=_.Y(function(){var G,B=(G=_.r6(QIt().playerApi))!=null?G:void 0;G=_.C(_.qg(!1,void 0,"Z9NQ1b"));var F=G.next().value,D=G.next().value;G=_.C(_.qg(!1,void 0,"HoVJXe"));var u=G.next().value,R=G.next().value;G=_.C(_.qg(!1,void 0,"DWCY3"));var N=G.next().value,y=G.next().value;G=_.C(_.qg(!1,void 0,"g4C2Zd"));var U=G.next().value,q=G.next().value;G=_.C(_.qg(0,void 0,"lmVfFb"));var h=G.next().value,K=G.next().value;G=_.C(_.qg(0,void 0,"mFLbzb"));var a=G.next().value,m=G.next().value;G=_.C(_.qg(!1,void 0,
"hQN4Wb"));var L=G.next().value,W=G.next().value;G=_.C(_.qg(0,void 0,"WWU0fb"));var e=G.next().value,b=G.next().value;G=_.C(_.qg(0,void 0,"MJ7LMd"));var M=G.next().value,t=G.next().value;G=_.C(_.qg("",void 0,"hnomOe"));var T=G.next().value,A=G.next().value;G=_.C(_.qg(-1,void 0,"ARe3pf"));var Z=G.next().value,P=G.next().value,RI=_.mS(function(){var yo={controlsVisible:F(),isOverlayHidden:u(),shouldWaitToHideControls:N(),isDragging:U(),isHovering:L(),videoDuration:e(),playedTime:M(),videoId:T(),draggedTime:a(),
hoveredTime:h(),playerState:Z()};return Object.assign({},_.GsN(),yo,{domMeasurements:{},setState:function(hg){hg.controlsVisible!==void 0&&D(hg.controlsVisible);hg.isOverlayHidden!==void 0&&R(hg.isOverlayHidden);hg.shouldWaitToHideControls!==void 0&&y(hg.shouldWaitToHideControls);hg.isDragging!==void 0&&q(hg.isDragging);hg.isHovering!==void 0&&W(hg.isHovering);hg.draggedTime!==void 0&&m(hg.draggedTime);hg.hoveredTime!==void 0&&K(hg.hoveredTime);hg.videoDuration!==void 0&&b(hg.videoDuration);hg.playedTime!==
void 0&&t(hg.playedTime);hg.videoId!==void 0&&A(hg.videoId);hg.playerState!==void 0&&P(hg.playerState)},
appApi:_.tfL(),playerApi:B})},void 0,"Au4PIf");
_.eR(function(){B==null||B.addEventListener("onVideoProgress",DLL(RI));B==null||B.addEventListener("onVideoDataChange",FgL(RI));B==null||B.addEventListener("onStateChange",BUw(RI))});
_.VI(function(){if(B==null?0:B.isReady())B==null||B.removeEventListener("onVideoProgress",DLL(RI)),B==null||B.removeEventListener("onVideoDataChange",FgL(RI)),B==null||B.removeEventListener("onStateChange",BUw(RI))});
return _.l("desktop-shorts-player-controls",null,_.l(CZD,{playerControlsProps:RI}))},"eh");
CZD=_.Y(function(G){var B=G.playerControlsProps;return _.l("div",{class:"desktopShortsPlayerControlsHost"},_.l(_.w$$,{progressBarProps:B,config:function(){return{isShortsPage:!0,hideProgressBar:B().videoDuration<30&&B().playerState!==2&&!B().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"fh");_.ybA=_.Y(function(G){function B(yo){yo!==0||K()?yo>50&&(K()||!m())?(a(!1),L(!0)):yo<=50&&(K()||m())&&(a(!1),L(!1)):a(!0)}
function F(yo,hg){var US;return _.n(function(aI){if(aI.nextAddress==1)return aI.yield(_.So(),2);US=aI.yieldResult;hg&&US?(US.unMute(!0),yo&&(LgG(yo,US.getVolume()),e(US.getVolume()))):US&&(US.mute(!0),yo&&LgG(yo,0));_.di(aI)})}
function D(yo){var hg,US;return _.n(function(aI){if(aI.nextAddress==1)return aI.yield(_.So(),2);hg=aI.yieldResult;US=50;hg&&(US=hg.getVolume(),hg.isMuted()?LgG(yo,0):LgG(yo,US));e(US);_.di(aI)})}
var u=G.orientation;G=_.W5("volume-controls");var R=_.W5("button"),N=_.H5("input"),y=_.C(_.qg(!1,void 0,"JO5fn")),U=y.next().value,q=y.next().value,h=_.C(_.qg(!1,void 0,"zcMjvb"));y=h.next().value;h=h.next().value;var K=y,a=h;h=_.C(_.qg(!0,void 0,"sF9zj"));y=h.next().value;h=h.next().value;var m=y,L=h;y=_.C(_.qg(50,void 0,"Da2bOd"));var W=y.next().value,e=y.next().value;y=_.mS(function(){var yo=K();return _.X("web_shorts_keyboard_enable_mute_shortcut")?yo?_.G7("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):
_.G7("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):yo?_.G7("UNMUTE_VOLUME",void 0,"Unmute"):_.G7("MUTE_VOLUME",void 0,"Mute")},void 0,"RUjxdf");
h=_.mS(function(){var yo=K(),hg=m();return{sources:[{clientResource:{imageName:yo?"VOLUME_OFF_FILLED":hg?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"EZ2qZd");
var b=_.mS(function(){var yo=W();return K()?yo+"% volume muted":yo+"% volume"},void 0,"ZJcDqc"),M=_.mS(function(){return u()==="vertical_down"},void 0,"OJU9Hf");
_.$f(function(){function yo(){q(!0)}
function hg(){q(!1)}
N&&N.value&&(N.value.addEventListener("focus",yo),N.value.addEventListener("focusout",hg),D(N.value).then(function(){B(Number(rgN(N.value)))}));
R&&R.value&&(R.value.addEventListener("focus",yo),R.value.addEventListener("focusout",hg));_.VI(function(){var US;N==null||(US=N.value)==null||US.removeEventListener("focus",yo);var aI;N==null||(aI=N.value)==null||aI.removeEventListener("focusout",hg);var v6;R==null||(v6=R.value)==null||v6.removeEventListener("focus",yo);var Jg;R==null||(Jg=R.value)==null||Jg.removeEventListener("focusout",hg)})});
var t=_.gJ(function(){if(N&&N.value){var yo=Number(rgN(N.value));jIP(yo);e(yo);N.value.style.setProperty("--gradient-percent",yo+"%");B(yo)}return!1}),T=_.gJ(function(){q(!0)}),A=_.gJ(function(){N&&N.value&&(F(N.value,K()),a(!K()));
return!1}),Z={},P={},RI={};
return _.l("volume-controls",{"on:pointerleave":_.gJ(function(){q(!1)}),
class:_.tx("ytdVolumeControlsHost",(Z.ytdVolumeControlsHostVertical=M,Z.ytdVolumeControlsHostExpanded=function(){return U()},Z)),
el:G},_.l(_.E,{cond:function(){return!M()},
then:function(){var yo={};return _.l("div",{class:_.tx("ytdVolumeControlsBackgroundScrim",(yo.ytdVolumeControlsBackgroundScrimExpanded=U,yo))})}}),_.l("div",{class:_.tx((P.ytdVolumeControlsMuteIconButtonContainer=M,P))},_.l("button",{"aria-label":y,
title:y,el:R,"on:click":A,"on:pointerenter":T,class:"ytdVolumeControlsMuteIconButton"},h?_.l(_.vr,{data:h,alt:y,className:"ytdVolumeControlsMuteIcon"}):null)),_.l("div",{class:_.tx("ytdVolumeControlsSliderContainer",(RI.ytdVolumeControlsSliderContainerExpanded=U,RI.ytdVolumeControlsSliderContainerVertical=M,RI.ytdVolumeControlsSliderContainerVerticalDown=M,RI.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return U()&&M()},RI))},_.l("input",{"aria-label":_.G7("VOLUME"),
title:_.G7("VOLUME"),el:N,"on:input":t,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":W,"aria-valuetext":b,"aria-valuemin":0,"aria-valuemax":100})))},"gh");var n2A=_.Y(function(G){var B=G.data;var F=G.overlayDensity;G={};return _.l("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.l(_.uR,{data:function(){return B().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(D){var u=D.data;
return _.l(_.KU,{data:function(){return(F==null?void 0:F())===1?Object.assign({},u(),{avatar:{avatarViewModel:Object.assign({},_.Q(u().avatar,_.QH),{avatarImageSize:"AVATAR_SIZE_M"})}}):u()}})}}),_.l(_.uR,{data:function(){return B().avatarStackViewModel}},{avatarStackViewModel:function(D){return _.l(_.a$,{data:D.data})}}),_.l(_.Wd,{className:_.tx("ytReelChannelBarViewModelChannelName",(G.ytReelChannelBarViewModelChannelNameLarge=function(){return(F==null?void 0:F())===1},G)),
text:function(){return B().channelName},
linkInheritColor:!0,userInput:!0}),_.l("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.l(_.uR,{data:function(){return B().subscribeButtonViewModel}},{subscribeButtonViewModel:function(D){var u=D.data;
return _.l(_.EB,{data:function(){return(F==null?void 0:F())===1?Object.assign({},u(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},u().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):u()},
isOverlay:!1})},
buttonViewModel:_.cd})),_.l("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.l(_.uR,{data:function(){var D,u;return(u=_.Q((D=B())==null?void 0:D.sponsorButtonViewModel,O9P))==null?void 0:u.sponsorButton}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"hh");var lS2=_.Y(function(G){var B=function(){var u;return((u=G.overlayDensity)==null?void 0:u.call(G))===1},F=function(){return B()?22:16},D={};
return _.l("yt-reel-multi-format-link-view-model",{class:_.tx("ytReelMultiFormatLinkViewModelHost",(D.ytReelMultiFormatLinkViewModelHostTall=!0,D.ytReelMultiFormatLinkViewModelHostLarge=function(){return B()},D))},_.l(_.p4,{ariaLabel:function(){return G.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return G.data().command}},_.l("h3",{class:function(){return B()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.l(_.E,{cond:function(){return G.data().icon},
then:function(u){return _.l(_.vr,{data:u,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:F})}}),_.l(_.Wd,{text:function(){return G.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ih");
lS2.idomCompat=!0;var UIS=_.Y(function(G){var B=G.data;var F=G.overlayDensity;var D=G.extractOverlay;var u=_.W5("yt-shorts-suggested-action-view-model");G=_.C(_.qg(!1,void 0,"cmyYgf"));var R=G.next().value,N=G.next().value;G=_.C(_.qg(!1,void 0,"qY6byb"));var y=G.next().value,U=G.next().value,q=function(){return B().isMultiLineSa},h=_.iR(AIJ,function(){var hg,US;
return(US=(hg=B().toggleableContent)==null?void 0:hg.entityKey)!=null?US:""}),K=function(){var hg,US,aI;
return(aI=B().toggleableContent)!=null&&aI.entityKey?(US=(hg=h())==null?void 0:hg.value)!=null?US:!1:!1},a=function(){var hg,US,aI,v6,Jg,c6,q8,n7,Ts,hT,L7;
return B().toggleableContent?K()?(hg=B().toggleableContent)==null?void 0:hg.toggledData:(US=B().toggleableContent)==null?void 0:US.untoggledData:{primaryText:(n7=(aI=B().defaultContent)==null?void 0:aI.primaryText)!=null?n7:B().text,secondaryText:(v6=B().defaultContent)==null?void 0:v6.secondaryText,onTapCommand:(Ts=(Jg=B().defaultContent)==null?void 0:Jg.onTapCommand)!=null?Ts:B().onTapCommand,icon:(hT=(c6=B().defaultContent)==null?void 0:c6.icon)!=null?hT:B().icon,image:(L7=(q8=B().defaultContent)==
null?void 0:q8.image)!=null?L7:B().image}},m=function(){return q()?B().trailingTapTarget:void 0},L=function(hg,US){return function(){return R()?US:hg}},W=function(hg){return function(){return _.X("enable_shorts_declutter_ui")?hg()+"Decluttered":""}},e=function(){return{leadingSection:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(F==null?void 0:F())===1?L("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):L("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:L("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:L("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
G={};G=_.tx((G.ytShortsSuggestedActionViewModelStaticHost=function(){return!q()},G.ytShortsSuggestedActionViewModelDynamicHost=q,G.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return q()&&y()},G.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return q()&&!y()},G.ytShortsSuggestedActionViewModelExtractOverlay=function(){return D==null?void 0:D()},G));
_.$f(function(){if(q()){var hg=0,US;if((US=B().animationParams)==null?0:US.shouldExpand){var aI,v6;hg=((v6=(aI=B().animationParams)==null?void 0:aI.expansionDelaySecs)!=null?v6:0)*1E3}var Jg,c6=((Jg=B().animationParams)==null?0:Jg.shouldExpand)?setTimeout(function(){N(!0)},hg):void 0,q8,n7;
hg=((q8=B().animationParams)==null?0:q8.visibilityDelaySecs)?((n7=B().animationParams)==null?NaN:n7.visibilityDelaySecs)*1E3:0;var Ts=setTimeout(function(){U(!0)},hg);
_.VI(function(){c6&&clearTimeout(c6);clearTimeout(Ts)})}});
var b=function(hg){_.rJ(hg,Object.assign({},{form:{element:u.value}}))},M=_.gJ(function(){var hg,US=(hg=a())==null?void 0:hg.onTapCommand;
US&&b(US)}),t=_.gJ(function(){var hg,US;
if(hg=(US=m())==null?void 0:US.onTapCommand)return b(hg),!1}),T=_.X("enable_shorts_declutter_ui")?_.xN({height:function(){return m()?"40px":R()?"44px":"32px"},
padding:"0px","padding-inline-end":function(){return m()?"8px":"16px"}}):_.xN({}),A=_.xN({"vertical-align":"bottom",
"border-radius":function(){var hg;return q()?((hg=B().defaultContent)==null?0:hg.isCircleImage)?"50%":"4px":"0px"},
width:function(){var hg,US,aI;return q()&&((hg=B().defaultContent)==null?0:hg.imageSize)&&!_.X("enable_shorts_declutter_ui")?((aI=(US=B().defaultContent)==null?void 0:US.imageSize)!=null?aI:24)+"px":null},
height:function(){var hg,US,aI;return q()&&((hg=B().defaultContent)==null?0:hg.imageSize)&&!_.X("enable_shorts_declutter_ui")?((aI=(US=B().defaultContent)==null?void 0:US.imageSize)!=null?aI:24)+"px":null}}),Z=function(){return q()?e().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},P=function(){return q()?e().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"},RI=function(){return q()?e().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
yo={};
return _.l("yt-shorts-suggested-action-view-model",{class:G,el:u},_.l("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.l("button",{class:_.tx(function(){return q()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var hg;
return(hg=B().useFullRoundedBorder)!=null&&hg?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!m()&&q()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":q()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var hg;
return(hg=B().disableFixedHeight)!=null&&hg?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(yo.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(F==null?void 0:F())===1},yo.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return D==null?void 0:D()},yo)),
"on:click":M,style:T},_.l(_.YR,{model:{color:4}}),_.l("div",{class:_.tx(function(){return P()+" "+W(P)()})},_.l(_.E,{cond:function(){var hg;
return(hg=a())==null?void 0:hg.image},
then:function(hg){return _.l(_.vr,{data:hg,alt:"",className:function(){return RI()+" "+W(RI)()},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:A})}}),_.l(_.E,{cond:function(){var hg,US;
return(hg=a())==null?void 0:(US=hg.icon)==null?void 0:US.iconType},
then:function(hg){return _.l(_.Pr,{icon:hg,active:K,className:function(){return Z()+" "+W(Z)()}})}})),_.l("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection "+W(function(){return"ytShortsSuggestedActionViewModelStaticHostTextSection"})()},_.l(_.E,{cond:function(){var hg;
return(hg=a())==null?void 0:hg.primaryText},
then:function(hg){var US={};return _.l("div",{class:_.tx("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(US.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(F==null?void 0:F())===1},US))},_.l(_.Wd,{text:hg}))}}),_.l(_.E,{cond:function(){var hg;
return(hg=a())==null?void 0:hg.secondaryText},
then:function(hg){return _.l("div",{class:function(){return e().secondaryText()}},_.l(_.Wd,{text:hg}))}}))),_.l(_.E,{cond:m,
then:function(hg){return _.l("div",{class:_.tx(function(){return e().trailingSection()+" "+W(e().trailingSection)()},function(){var US,aI;
return(D==null?void 0:D())&&((aI=(US=e()).trailingSectionExtractOverlay)==null?void 0:aI.call(US))||""}),
"aria-label":function(){var US;return(US=hg().a11yLabel)!=null?US:""},
"on:click":t,role:"button",tabindex:0},_.l(_.YR,{model:{color:4}}),_.l(_.Pr,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"jh");var qzD=_.Y(function(G){var B=G.data;var F=G.overlayDensity;var D=_.W5("yt-shorts-video-title-view-model");G=_.gJ(function(N){if(_.ht(_.EY(N),D.value,["A".toString()]))return!1;(N=B().truncatedTextOnTapCommand)&&_.rJ(N);return!1});
var u={},R={};return _.l("yt-shorts-video-title-view-model",{el:D,class:_.tx("ytShortsVideoTitleViewModelHost",(u.ytShortsVideoTitleViewModelHostClickable=function(){return!!B().truncatedTextOnTapCommand},u)),
"on:click":G},_.l("h2",{class:_.tx("ytShortsVideoTitleViewModelShortsVideoTitle",(R.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(F==null?void 0:F())===1},R.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.X("enable_shorts_declutter_ui")},R.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.X("enable_desktop_small_title_on_immersive_shorts")},R))},_.l(_.Wd,{text:function(){return B().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(F==null?void 0:F())===1}})))},"kh");_.E2Q=_.Y(function(G){var B=G.data;var F=G.overlayDensity;var D=G.extractOverlay;var u=function(){return(F==null?void 0:F())===1},R=function(){return _.X("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"},N=function(){return _.X("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelExpansiveDecluttered":"ytReelMetapanelViewModelExpansiveBlock"};
return _.l("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.l(_.uR,{data:function(){return B().metadataItems}},{badgeViewModel:function(y){y=y.data;
return _.l("div",{class:_.tx(function(){return u()?N():R()})},_.l(_.vK,{data:y}))},
playerDisclosureViewModel:function(y){y=y.data;return _.l("div",{class:_.tx(function(){return u()?N():R()})},_.l(_.vSN,{data:y,
extractOverlay:D}))},
shortsSuggestedActionViewModel:function(y){y=y.data;return _.l("div",{class:_.tx(function(){return u()?N():R()})},_.l(UIS,{data:y,
overlayDensity:F,extractOverlay:D}))},
reelChannelBarViewModel:function(y){y=y.data;var U={};return _.l("div",{class:_.tx(R(),(U.ytReelMetapanelViewModelExpansive=function(){return u()&&!_.X("enable_shorts_declutter_ui")},U.ytReelMetapanelViewModelExpansiveDecluttered=function(){return u()&&_.X("enable_shorts_declutter_ui")},U))},_.l(n2A,{data:y,
overlayDensity:F}))},
reelMultiFormatLinkViewModel:function(y){y=y.data;var U={};return _.l("div",{class:_.tx(R(),(U.ytReelMetapanelViewModelExpansive=function(){return u()&&!_.X("enable_shorts_declutter_ui")},U.ytReelMetapanelViewModelExpansiveDecluttered=function(){return u()&&_.X("enable_shorts_declutter_ui")},U))},_.l(lS2,{data:y,
overlayDensity:F}))},
shortsVideoTitleViewModel:function(y){y=y.data;var U={};return _.l("div",{class:_.tx(R(),(U.ytReelMetapanelViewModelExpansive=function(){return u()&&!_.X("enable_shorts_declutter_ui")},U.ytReelMetapanelViewModelExpansiveDecluttered=function(){return u()&&_.X("enable_shorts_declutter_ui")},U))},_.l(qzD,{data:y,
overlayDensity:F}))},
reelSoundMetadataViewModel:function(y){y=y.data;var U={};return _.l("div",{class:_.tx(R(),(U.ytReelMetapanelViewModelExpansive=function(){return u()&&!_.X("enable_shorts_declutter_ui")},U.ytReelMetapanelViewModelExpansiveDecluttered=function(){return u()&&_.X("enable_shorts_declutter_ui")},U))},_.l(_.UnD,{data:y,
overlayDensity:F}))},
toggleButtonViewModel:function(y){y=y.data;var U={};return _.l("div",{class:_.tx(R(),(U.ytReelMetapanelViewModelExpansive=function(){return u()&&!_.X("enable_shorts_declutter_ui")},U.ytReelMetapanelViewModelExpansiveDecluttered=function(){return u()&&_.X("enable_shorts_declutter_ui")},U))},_.l(_.wl,{data:y}))}}))},"lh");var hIG=_.Y(function(G){var B=_.AS(G,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),F=B.size,D=B.onTap,u=B.disabled,R=B.tooltipText;return _.l("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.l(_.Ji,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:F(),disabled:u(),tooltipText:R(),onTap:D}},
iconName:G.iconType}))},"mh"),KXS=_.Y(function(G){function B(h){h.stopPropagation();
h.code==="ArrowUp"?(h.preventDefault(),OQq(y.value)):h.code==="ArrowDown"?(h.preventDefault(),eJa(y.value)):h.code==="KeyM"?Wgv():(h.code==="KeyK"||h.code==="Space")&&HQG(U())}
var F=_.AS(G,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});G=F.previousButtonDisabled;var D=F.nextButtonDisabled,u=F.data,R=F.playabilityStatus,N=F.previewThumbnail,y=_.W5("ytd-shorts-miniplayer-overlay"),U=_.FT(_.zo8),q;_.eR(function(){(q=_.KT(y.value))&&q.addEventListener("keydown",B)});
_.VI(function(){var h;(h=q)==null||h.removeEventListener("keydown",B)});
F=function(){var h,K;var a=_.Q((h=u())==null?void 0:(K=h.reelPlayerOverlayRenderer)==null?void 0:K.buttonBar,rWt);if(a){var m;h=Object.assign({},a,{buttonViewModels:(m=a.buttonViewModels)==null?void 0:m.filter(ks8)})}else h=void 0;return h};
return _.l("ytd-shorts-miniplayer-overlay",{el:y,class:"ytdShortsMiniplayerOverlayHost"},_.l("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.xN({"background-image":function(){var h=N();return h?'url("'+_.dJ(h.thumbnails)+'")':""}})}),_.l("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.l("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.l(hIG,{iconType:function(){var h=U();
return h===2||h===-1||h===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){HQG(U())},
tooltipText:function(){var h=U();return h===1||h===3?_.G7("PLAYER_LABEL_PAUSE"):_.G7("PLAYER_LABEL_PLAY")}}),_.l(_.ybA,{orientation:"horizontal_right"})),_.l("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.l(hIG,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:G,onTap:function(){OQq(y.value)},
tooltipText:_.G7("PREVIOUS_VIDEO_LABEL")}),_.l(hIG,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:D,onTap:function(){eJa(y.value)},
tooltipText:_.G7("NEXT_VIDEO_LABEL")}),_.X("web_shorts_pip_like_button")?_.l(_.E,{cond:F,then:function(h){return _.l("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.l(_.WyP,{data:h,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.l("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.l(_.E,{cond:function(){var h,K;
return _.Q((h=u())==null?void 0:(K=h.reelPlayerOverlayRenderer)==null?void 0:K.metapanel,WFt)},
then:function(h){return _.l("div",{class:_.tx("ytdShortsMiniplayerOverlayInteractive")},_.l(_.E2Q,{data:h}))}})),_.l("div",{class:_.tx("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var h;return!((h=u())==null||!h.adsOverlay)||R()&&!yds(R())}},_.l("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.l(_.Na$,null)))),_.l(_.E,{cond:function(){var h=u(),K,a;
h=_.Q(h==null?void 0:(K=h.adsOverlay)==null?void 0:(a=K.fulfillmentContent)==null?void 0:a.fulfilledLayout,BLs);return _.Q(h==null?void 0:h.renderingContent,wLN)},
then:function(h){return _.l("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.l(z8v,{data:h}))}}))},"oh");var $Lq=_.Y(function(){var G=_.C(_.qg(new _.$i(NaN,NaN),void 0,"ejTaF")),B=G.next().value,F=G.next().value;G=_.C(_.qg(!1,void 0,"aTA69e"));var D=G.next().value,u=G.next().value,R=_.C(_.qg(!1,void 0,"OsC2Ib"));G=R.next().value;var N=R.next().value;R=_.te().resolve(_.WP).miniplayerPropSignalMap[0];var y=R.data,U=R.shortsData,q=R.nextButtonDisabled,h=R.shortsPreviewThumbnail,K=R.previousButtonDisabled,a=R.externalPlaylistData,m=R.playabilityStatus,L=R.isDisabled,W=R.playerVe,e=R.closeVe;R=_.FT(_.fh);
_.da("yt-pip-window-resized",function(T){F(T)});
_.da("yt-activate-pip-miniplayer",function(){return _.n(function(T){N(!0);_.di(T)})});
var b=function(){var T;return!((T=a())==null||!T.contents)&&D()},M=function(){var T=B(),A=!!y(),Z=b();
T=T.clone();A&&(T.height-=76);Z&&(T.height-=285);return T},t=function(){u(!D())};
_.bC(function(){var T=W(),A=_.qW(11),Z=_.Uw(11);A&&Z&&T&&(_.WT(A,Z,T),Z=e())&&(_.HT(A,T,[Z]),_.Oq(A,[Z]))},"h5qKie");
return _.l("ytd-pip-container",{class:"ytdPipContainerHost"},_.l(_.E,{cond:G,then:function(){return _.l(_.ro$,{isDisabled:L,playabilityStatus:m,size:M,isPictureInPicture:!0})}}),_.l(_.E,{cond:y,
then:function(){return _.l(_.jB2,{data:y,expanded:D,onExpandClick:t,playlistData:a})}}),_.l(_.E,{cond:b,
then:function(){return _.l("div",{class:"ytdPipContainerPlaylistPanel"},_.l(_.RsG,{data:a,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.l(_.E,{cond:R,
then:function(){return _.l(KXS,{data:U,nextButtonDisabled:q,previousButtonDisabled:K,playabilityStatus:m,previewThumbnail:h})}}))},"qh");var zU=function(G,B,F){var D=this;this.pipController=G;this.JSC$19359_clientRoot=B;this.JSC$19359_pageRequestService=F;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Jng();this.JSC$19359_watchPipEnabled=_.X("web_watch_pip");this.watchPipManualOnlyEnabled=_.X("web_watch_pip_manual");this.shortsPipEnabled=_.X("web_shorts_pip");this.JSC$19359_watchWhileEnabled=_.X("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;_.Dh(_.VU(),H3I,function(u){D.isSingleOptionSurveyActive=u});
this.JSC$19359_onPlayerPlayVideo=this.JSC$19359_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);_.Y2(_.pZ.getInstance(),this.miniplayerServiceActionMap,this.JSC$19359_clientRoot);G.pictureInPictureSupported()&&_.W$("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},xMN,kA$,LX$,OZ$,LNq,eIN,$IB,zIH,WXD;
zU.prototype.handleMediaSessionPipActivation=function(G){var B=this,F,D;return _.n(function(u){_.Bv().mediaSessionPipActivation=!0;F=_.te().resolve(_.pA);if(F.isOnWatch()&&B.JSC$19359_watchPipEnabled){if(B.watchPipManualOnlyEnabled&&((D=G)==null?void 0:D.enterPictureInPictureReason)!=="useraction")return i_(),u.return();_.Bv().watchPipActivation=!0;_.aSB(B,F.data);return u.jumpTo(0)}return F.isOnShorts()&&B.shortsPipEnabled?(_.Bv().shortsPipActivation=!0,_.mI$(B),u.jumpTo(0)):!B.isMiniplayerActive()||
!B.JSC$19359_watchPipEnabled||B.watchWhileMode||B.watchPipManualOnlyEnabled?u.jumpTo(0):u.yield(X$D(B),0)})};
var X$D=function(G){var B,F,D,u;return _.n(function(R){if(R.nextAddress==1)return B=!G.miniplayerToPipMode,F=G.playerElement,D=G.miniplayerData,u=G.watchResponse,R.yield(G.deactivate(),2);if(R.nextAddress!=3)return B?(_.Bv().mediaSessionPipActivation=!0,_.Bv().watchPipActivation=!0):_.Bv().miniplayerButtonActivation=!0,R.yield(G.activate(F,D,u),3);G.miniplayerToPipMode=B;_.di(R)})};
zU.prototype.onDownloadedVideoDeleted=function(G){var B,F=_.Q((B=this.miniplayerData)==null?void 0:B.watchEndpoint,_.Ow),D,u;F&&((D=this.watchResponse)==null?void 0:(u=D.playerResponse)==null?void 0:u.offlineState)!==void 0&&(B=F.videoId)&&G&&B===G&&this.close()};
zU.prototype.onShowMiniplayerCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a;return _.n(function(m){switch(m.nextAddress){case 1:return F=_.Q(G,C_q),u=(D=F)==null?void 0:D.miniplayerCommand,R=_.Q(u,_.Ow),u&&R&&!B.active?m.yield(_.nM.getInstance(),2):m.return();case 2:return N=m.yieldResult,m.yield((y=N)==null?void 0:y.get("yt-miniplayer-shown-video-id"),3);case 3:U=m.yieldResult;q=R.videoId;if(!q||U===q)return m.return();h=_.te().resolve(_.pA);if(h.isOnWatch())return _.em(Error("Xj")),m.return();
K={channelItem:{externalId:btoa(q)}};B.readyToResumeVe=_.ge(121253,void 0,void 0,K);_.Bv().showMiniplayerCommandActivation=!0;return m.yield(_.rdw(B,u,!0),4);case 4:return B.active&&(_.b$(B,{readyToResumeVe:B.readyToResumeVe,isReadyToResume:!0}),B.isReadyToResume=!0),m.yield((a=N)==null?void 0:a.set("yt-miniplayer-shown-video-id",R.videoId),5);case 5:B.readyToResumeVe=void 0,_.di(m)}})};
zU.prototype.init=function(G){this.miniplayerEl?_.em(new _.Uf("MiniplayerService already initialized.")):this.miniplayerEl=G};
zU.prototype.isInitialized=function(){var G=!!this.miniplayerEl;G||_.em(new _.Uf("MiniplayerService used before initialized."));return G};
_.aSB=function(G,B){if(G.isInitialized()){var F=_.If8(B.response,B.playerResponse),D=_.te().resolve(_.pA).getPlayerFromWatch();_.Bv().currentEndpoint=F.watchEndpoint||null;G.activate(D,F,B)}};
_.mI$=function(G){if(G.isInitialized()){var B=_.te().resolve(_.pA).getPlayerFromShorts();G.activate(B)}};
xMN=function(G,B){var F;(F=!G.isInitialized())||(F=_.te().resolve(_.pA).isOnWatch()&&G.watchPipMode,F=!(G.isMiniplayerActive()&&(_.Bv().userActivation||_.Bv().lockupActivation||F)));if(F)return!1;Qu$(G,B)?_.e4(G):LNq(G,B);return G.watchPipMode?!_.te().resolve(_.pA).isOnWatch():!0};
zU.prototype.isMiniplayerActive=function(){return this.active};
var Qu$=function(G,B){var F;B=(F=_.Q(B,_.Ow))==null?void 0:F.videoId;var D,u;G=(u=_.Q((D=G.miniplayerData)==null?void 0:D.watchEndpoint,_.Ow))==null?void 0:u.videoId;return B!=null&&B===G};
zU.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.cZ(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.T1(this.miniplayerEl,"yt-navigate-home-action"))};
_.rdw=function(G,B,F,D){F=F===void 0?!1:F;var u,R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:if(G.active){U.jumpTo(2);break}u=_.te().resolve(_.pA);if(N=(R=G.playerElement)!=null?R:u.getPlayerFromWatch()){U.jumpTo(3);break}return U.yield(_.te().resolve(_.IQ),4);case 4:N=u.getPlayerFromWatch();case 3:if(!N){_.em(Error("Zj"));U.jumpTo(2);break}return U.yield(G.activate(N,D),2);case 2:return G.active?U.yield(LNq(G,B,F),7):U.return();case 7:(y=G.getPlayerElement())==null||y.focusOnPlayer(),
_.di(U)}})};
zU.prototype.activate=function(G,B,F){var D=this,u,R,N,y,U,q,h,K,a;return _.n(function(m){switch(m.nextAddress){case 1:if(!D.isInitialized())return m.return();if(!G)return _.em(Error("Zj")),m.return();if(_.bPt()||D.isMiniplayerActive())var L=!0;else L=_.Bv().watchPipActivation||_.Bv().watchWhileActivation,_.te().resolve(_.pA).isOnWatch()&&!L?(_.em(new _.Uf("miniplayer activated on watch page")),L=!0):L=_.Bv().watchWhileActivation?D.userDeactivatedWatchWhile||!!document.pictureInPictureElement||TxQ():
!1;if(L)return i_(),m.return();u=_.Bv().mediaSessionPipActivation;R=_.Bv().shortsPipActivation;N=_.Bv().watchPipActivation;U=(y=_.Bv().watchWhileActivation)||N;q=N||R;if(!D.pictureInPictureEnabled()||!q){m.jumpTo(2);break}return m.yield(juU(D,u),3);case 3:if(!m.yieldResult)return _.em(Error("Yj")),i_(),m.return();case 2:return D.setActive(!0),D.watchResponse=F,D.playerElement=G,D.updateMiniplayerData(B),m.yield(LX$(D,G),4);case 4:if(!D.active)return _.em(new _.Uf("miniplayer deactivated during activation")),
D.removePlayerListeners(),m.return();L=_.te().resolve(_.Wv);L.addEventListener("yt-navigate",_.x7(D,D.onPlaylistNavigate));L.addEventListener("yt-playlist-data-updated",_.x7(D,D.JSC$19359_onPlaylistDataUpdated));D.JSC$19359_onPlaylistDataUpdated();i_();D.JSC$19359_watchWhileEnabled&&_.rbH(D,y);D.pictureInPictureEnabled()&&D.shortsPipEnabled&&(D.shortsPipMode=R,_.VU().dispatch(Xx7(D.shortsPipMode)));D.pictureInPictureEnabled()&&D.JSC$19359_watchPipEnabled&&(D.watchPipMode=N,!D.JSC$19359_watchPipEnabled||
D.watchPipManualOnlyEnabled&&!(_.I26()&&_.LgS("Chromium")>=142)||D.watchPipManualOnlyEnabled||_.tig(D.handleMediaSessionPipActivation));D.player&&(h=D.player.getPlayerState(),K=h===1,_.VU().dispatch($1q(h)),_.Ia(D.miniplayerEl,"yt-miniplayer-play-state-changed",[K]),_.Bv().isVideoPlaying=K);_.Ia(D.miniplayerEl,"yt-miniplayer-endpoint-changed");WXD(D);_.HZD(D);if(D.shortsPipMode||D.watchPipMode)m=m.yield(_.T1(D.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{L=m.yield;var W=_.T1(D.miniplayerEl,
"yt-activate-miniplayer",[U])[0];m=L.call(m,W,6)}return m;case 6:if(D.watchResponse){L=D.getScreenLayer();W=_.qW(0);var e=Nrz(0);W&&e&&(_.hL(W,e,L),L===0&&wRJ(void 0,0))}kA$(D);OZ$(D,!0);(a=D.getPlayerElement())==null||a.focusOnPlayer();_.di(m)}})};
zU.prototype.updateMiniplayerData=function(G){this.miniplayerData=G;_.b$(this,{data:G})};
_.HZD=function(G){var B,F,D=((B=G.miniplayerData)==null?void 0:(F=B.miniplayerRenderer)==null?void 0:F.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";B=G.watchWhileMode||G.watchPipMode?D&&!_.te().resolve(_.pA).isOnWatch():D;_.b$(G,{isDisabled:B});var u,R;F=_.Q((u=G.miniplayerData)==null?void 0:(R=u.miniplayerRenderer)==null?void 0:R.minimizedEndpoint,_.Dx);B&&F&&_.te().resolve(_.nL).openSheet({openPopupActionCommand:{openPopupAction:F}},G.miniplayerEl)};
kA$=function(G){if(G.watchResponse&&(!G.watchWhileMode||!_.X("kevlar_watch_while_counterfactual"))){var B,F=(B=G.watchResponse.playerResponse)==null?void 0:B.trackingParams;F&&(_.b$(G,{expandVe:_.ge(35989),closeVe:_.ge(34699),readyToResumeCloseVe:_.ge(131070),repositionVe:_.ge(226204),resizeVe:_.ge(226205)}),_.b$(G,{playerVe:_.yX(F)}))}};
LX$=function(G,B){return _.n(function(F){if(F.nextAddress==1)return B.preparePlayer(),F.yield(B.getPlayerPromise(),2);G.player=F.yieldResult;G.player&&(G.player.addEventListener("onPlayVideo",G.JSC$19359_onPlayerPlayVideo),G.player.addEventListener("onCloseMiniplayer",G.onPlayerCloseMiniplayer),G.player.addEventListener("onExpandMiniplayer",G.onPlayerExpandMiniplayer),G.player.addEventListener("onStateChange",G.onPlayerStateChange));_.di(F)})};
_.w=zU.prototype;_.w.JSC$19359_onPlayerPlayVideo=function(G){var B=G.sessionData&&"autonav"in G.sessionData,F;G.sessionData&&G.sessionData.itct&&(F=G.sessionData.itct);var D=G.watchEndpoint;B=D&&B?_.Rbl(D,F):_.Ma(G.videoId,G.listId||void 0,F);G.sessionData&&_.V9(_.Q(B.commandMetadata,_.xy).url,G.sessionData);LNq(this,B)};
_.w.onPlayerExpandMiniplayer=function(){_.e4(this)};
_.w.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.w.onPlayerStateChange=function(){if(this.player){var G=this.player.getPlayerState(),B=G===1;_.VU().dispatch($1q(G));_.VU().dispatch(_.ae(G));_.Ia(this.miniplayerEl,"yt-miniplayer-play-state-changed",[B]);_.Bv().isVideoPlaying=B;if(G===0){B=!_.M_.getInstance().isAutoplaySetExplicitly();var F,D,u,R,N,y,U=(F=this.watchResponse.response)==null?void 0:(D=F.contents)==null?void 0:(u=D.twoColumnWatchNextResults)==null?void 0:(R=u.autoplay)==null?void 0:(N=R.autoplay)==null?void 0:(y=N.autoplayExplicitChoiceDialogRenderer)==
null?void 0:y.confirmDialogRenderer;B&&U&&this.player.setAutonavState(1)}G===0&&this.watchWhileMode&&this.deactivate()}};
_.w.onPlaylistNavigate=function(G,B){var F=this,D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1){if(!_.Q(B.endpoint,_.Ow))return h.return();_.Bv().currentEndpoint=B.endpoint;_.Ia(F.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.te().resolve(_.pA).isOnWatch()&&(F.watchWhileMode||F.watchPipMode))return h.return();G.stopPropagation();(R=(u=_.Q((D=B.endpoint)==null?void 0:D.commandMetadata,_.xy))==null?void 0:u.url)&&B.tempData&&!_.UK.isEmpty(B.tempData)&&_.V9(R,B.tempData);N={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};y=new bOq(function(){return F.getPlayerElement()},N,{layer:F.getScreenLayer()});
U=function(K){y.processChunk({endpoint:B.endpoint,data:K})};
eIN(F);F.miniplayerFetchRequest=$IB(F,B.endpoint,U);_.b5(h,2);return h.yield(F.miniplayerFetchRequest,4)}if(h.nextAddress!=2)return q=h.yieldResult,zIH(F,q),_.oY(h,0);_.Al(h);_.di(h)})};
_.w.JSC$19359_onPlaylistDataUpdated=function(){var G=_.te().resolve(_.Wv).getPlaylistData();this.hasPlaylistData=!!G;_.b$(this,{externalPlaylistData:G||{}})};
_.w.close=function(G){if(this.isInitialized())if(G){if(!((this.watchWhileMode||this.watchPipMode)&&_.te().resolve(_.pA).isOnWatch()||this.shortsPipMode)){var B;(B=this.getPlayerElement())==null||B.stop()}this.deactivate()}else _.$l().closeMiniplayer(this.miniplayerEl)};
_.w.deactivate=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1){if(!B.isInitialized()||!B.active)return N.return();B.setActive(!1);eIN(B);(F=!!G&&Qu$(B,G))&&B.isSingleOptionSurveyActive&&_.T1(B.miniplayerEl,"yt-show-watch-page-survey",[B.isSingleOptionSurveyActive]);return N.yield(bZA(B),2)}if(N.nextAddress!=3){OZ$(B,!1);B.isReadyToResume=!1;B.watchResponse=void 0;B.updateMiniplayerData(void 0);B.shortsPipMode&&(B.shortsPipMode=!1,_.VU().dispatch(Xx7(B.shortsPipMode)),c0$(B.pipController),
(D=B.player)==null||D.setInternalSize(NaN,NaN));B.watchPipMode&&(B.watchPipMode=!1,c0$(B.pipController));(u=B.watchWhileMode)&&_.rbH(B,!1);B.removePlayerListeners();var y=_.te().resolve(_.Wv);y.removeEventListener("yt-navigate",_.x7(B,B.onPlaylistNavigate));y.removeEventListener("yt-playlist-data-updated",_.x7(B,B.JSC$19359_onPlaylistDataUpdated));_.Bv().currentEndpoint=null;_.Ia(B.miniplayerEl,"yt-miniplayer-endpoint-changed");B.playerElement=null;i_();if(B.shortsPipMode||B.watchPipMode)N=N.jumpTo(3);
else{y=N.yield;var U=_.T1(B.miniplayerEl,"yt-deactivate-miniplayer",[F,u])[0];N=y.call(N,U,3)}return N}(R=B.player)==null||R.setInternalSize(NaN,NaN);B.player=null;_.di(N)})};
var bZA=function(G){var B;return _.n(function(F){B=_.te().resolve(_.pA);return G.shortsPipMode?F.yield(B.movePlayerToShorts(G.playerElement),0):F.yield(B.movePlayerToWatch(G.playerElement),0)})};
zU.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19359_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
zU.prototype.setActive=function(G){this.active=G;this.isSingleOptionSurveyActive?_.T1(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.T1(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.VU().dispatch(_.d5({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.rbH=function(G,B){G.watchWhileMode=B;_.b$(G,{watchWhile:B})};
OZ$=function(G,B){if(G.shortsPipMode||G.watchPipMode){var F;(F=G.player)==null||F.setDocumentPictureInPicture(B)}else{var D;(D=G.player)==null||D.setMinimized(B)}};
_.e4=function(G){var B;return _.n(function(F){switch(F.nextAddress){case 1:if(!G.isInitialized())return F.return();_.b5(F,2);return F.yield(G.miniplayerFetchRequest,4);case 4:_.oY(F,3);break;case 2:_.Al(F);case 3:G.watchResponse&&G.miniplayerData&&G.miniplayerData.watchEndpoint?(B={url:G.watchResponse.url,endpoint:G.miniplayerData.watchEndpoint,data:G.watchResponse,miniplayer:!0},_.cZ(G.miniplayerEl,"yt-navigate-cache",B)):G.miniplayerData&&G.miniplayerData.watchEndpoint&&_.cZ(G.miniplayerEl,"yt-navigate",
{endpoint:G.miniplayerData.watchEndpoint}),_.di(F)}})};
LNq=function(G,B,F){var D,u,R,N;return _.n(function(y){if(y.nextAddress==1){if(Qu$(G,B))return y.return();_.Bv().currentEndpoint=B;_.Ia(G.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Ia(G.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Bv().isVideoPlaying=!1;D={clientParams:{miniplayer:!0,autoSaveToQueue:!F}};u=new bOq(function(){return G.getPlayerElement()},D,{layer:G.getScreenLayer(),
parentLayer:0},void 0,G.readyToResumeVe);R=function(U){var q,h,K=Object.assign({},(q=U.playerResponse)==null?void 0:(h=q.playerConfig)==null?void 0:h.playbackStartConfig,{startPaused:!0}),a;F&&((a=U.playerResponse)==null?0:a.playerConfig)&&(U.playerResponse.playerConfig.playbackStartConfig=K);u.processChunk({endpoint:B,data:U})};
eIN(G);G.miniplayerFetchRequest=$IB(G,B,R);_.b5(y,2);return y.yield(G.miniplayerFetchRequest,4)}if(y.nextAddress!=2)return N=y.yieldResult,zIH(G,N),_.oY(y,0);_.Al(y);_.di(y)})};
zU.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
eIN=function(G){G.miniplayerFetchRequest&&(G.miniplayerFetchRequest.cancel&&G.miniplayerFetchRequest.cancel("Active request obsolete"),G.miniplayerFetchRequest=null)};
$IB=function(G,B,F){var D,u=(D=_.Q(B.commandMetadata,_.xy))==null?void 0:D.url,R;D=!u||_.Nk("disable_miniplayer_tempdata")?{}:(R=gZU(u))!=null?R:{};return O$(G.JSC$19359_pageRequestService,B,D,window.location.href,"watch",function(N,y){F(y)},function(N){return N!==G.miniplayerFetchRequest})};
zIH=function(G,B){var F;_.n(function(D){if(!B)return D.return();G.watchResponse=B;kA$(G);WXD(G);F=_.If8(B.response,B.playerResponse);if(G.isMiniplayerActive()){B.response&&(G.playerElement.watchNextData=B.response);var u=_.UK.getValueByKeys.apply(_.UK,[B].concat(_.gi(cY8)));_.UK.getValueByKeys.apply(_.UK,[B].concat(_.gi(ZlT)))&&u&&_.te().resolve(_.Wv).setAutoplayRenderer(u);if(u)if(_.X("kevlar_is_pupi_enabled")){var R,N,y,U,q,h=((R=B.response)==null?0:(N=R.playerOverlays)==null?0:(y=N.playerOverlayRenderer)==
null?0:(U=y.autonavToggle)==null?0:(q=U.autoplaySwitchButtonRenderer)==null?0:q.enabled)?2:1;_.M_.getInstance().setState(h,!1,!1)}else R=KJl()?2:1,(h=G.player)==null||h.setAutonavState(R);G.updateMiniplayerData(F);_.HZD(G)}_.di(D)})};
WXD=function(G){var B,F,D=(B=G.watchResponse)==null?void 0:(F=B.playerResponse)==null?void 0:F.playabilityStatus,u;B=D==null?void 0:(u=D.miniplayer)==null?void 0:u.miniplayerRenderer;(B==null?void 0:B.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&B.minimizedEndpoint&&_.fi(G.miniplayerEl,[B.minimizedEndpoint]);_.b$(G,{playabilityStatus:D})};
_.b$=function(G,B){(0,G.miniplayerPropSignalMap[1])(B)};
zU.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var G;return this.playerElement?this.playerElement:(G=_.IF(this.miniplayerEl).querySelector("#player-container"))==null?void 0:G.firstElementChild};
zU.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var juU=function(G,B){B=B===void 0?!1:B;var F,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1){if(!G.pictureInPictureSupported()||!bQ8()&&!B)return U.return(!1);F=VmN(G);D=F.width;u=F.height;return U.yield(G.pipController.openWindow({width:D,height:u}),2)}R=U.yieldResult;N=G.pipController.getWindow();if(!N||!R)return U.return(!1);N.document.body.style.overflow="hidden";y=zJL(N);TT$(G.pipController,function(){v2z(G);y()});
return U.return(!0)})},VmN=function(G){var B=_.Bv().shortsPipActivation,F,D;
G=B?.5625:(D=(F=G.player)==null?void 0:F.getVideoAspectRatio())!=null?D:16/9;F=Math.min(window.innerWidth,window.innerHeight)/2;B=B?0:76;return G>1?new _.$i(F,B+F/G):new _.$i(F*G,B+F)},v2z=function(G){var B;
_.n(function(F){B=_.te().resolve(_.pA);return B.isOnWatch()&&G.watchPipMode||B.isOnShorts()&&G.shortsPipMode?F.yield(G.deactivate(),0):G.miniplayerToPipMode?F.yield(X$D(G),0):G.watchPipMode?F.yield(_.e4(G),0):F.jumpTo(0)})};
zU.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19359_watchPipEnabled||this.shortsPipEnabled)};
_.ZN.Object.defineProperties(zU.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
zU[ZA]=[IBH,tMa,_.E$];var o2$="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(" "),
Mmz="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),p$Q="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
YzH="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var AbU=function(G,B,F){_.uz.call(this);this.store=G;this.panelController=B;this.pageContentExtractor=F;this.isInitialized=!1};
_.r(AbU,_.uz);
AbU.prototype.init=function(G){var B=this;this.isInitialized||(this.isInitialized=!0,this.environment=G!=null?G:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.OY.currentPageSubTypeSelector(this.store.getState()),G=_.Dh(this.store,_.OY.currentPageSubTypeSelector,function(F){a:if(_.dIG(B))switch(F){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var D=!0;break a;default:D=!1}else D=!1;D&&B.panelController.hidePanel({identifier:"PAai_companion"});
B.pageSubtype!==F&&(B.pageSubtype=F)}),this.addOnDisposeCallback(G))};
_.V5D=function(G,B){if(_.dIG(G))switch(B){case "watch":var F,D;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(F=_.sR())==null?void 0:(D=F.getVideoData())==null?void 0:D.video_id};case "search":var u,R,N;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(R=(u=G.pageContentExtractor)==null?void 0:kMB(u))!=null?R:[],entityId:(N=(new URLSearchParams(window.location.search)).get("search_query"))!=null?N:void 0};case "companion-canvas":var y,U;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(U=(y=
G.pageContentExtractor)==null?void 0:kMB(y))!=null?U:[]};default:var q,h;G={videoIds:(h=(q=G.pageContentExtractor)==null?void 0:kMB(q))!=null?h:[]};return _.X("enable_ai_companion_default_page_context")?G:void 0}};
_.dIG=function(G){return G.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
AbU[ZA]=[_.Ep,_.yR,_.fH(OE$)];var JbG=_.Y(function(G){return _.l("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.l(_.Va,{className:G.className,text:function(){return G.data().text||""},
wrapCodeBlocks:G.shouldWrapCodeBlock}))},"sh");_.cbS=_.Y(function(G){return _.l("yt-ai-companion-attachment-view-model",{el:_.VX(_.mR(function(){return G.data().rendererContext})),
class:_.tx("ytAiCompanionAttachmentViewModelHost",G.className)},_.l("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.l(_.E,{cond:function(){return G.data().title},
then:function(B){return _.l("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return B().content}},_.l(_.Wd,{text:B}))}}),_.l(_.E,{cond:function(){return _.kP(G.data().trailingTitleIcon)},
then:function(B){return _.l("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.l(_.vr,{data:B,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.l(_.E,{cond:function(){return G.data().description},
then:function(B){return _.l("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.l(_.Wd,{text:B}))}}),_.l(_.E,{cond:function(){return G.data().bottomItem},
then:function(B){return _.l("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.l(_.uR,{data:B},{tableViewModel:UxP}))}}))},"th");_.TaG=_.Y(function(G){return _.l("yt-channel-attribution-view-model",{class:_.tx("ytChannelAttributionViewModelHost",G.className)},_.l("div",{class:"ytChannelAttributionViewModelUpper"},_.l(_.uR,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:_.KU}),_.l("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.l(_.Wd,{text:function(){return G.data().title}}))),_.l("div",{class:"ytChannelAttributionViewModelBottom"},_.l(_.Wd,{text:function(){return G.data().subtitle}})))},"uh");var ISD=_.Y(function(G){var B=_.C(_.qg(!1,void 0,"MFRKRb")),F=B.next().value,D=B.next().value,u=function(){return G.data().activeRenderer},R=function(){return G.data().inactiveRenderer};
return _.l("yt-channel-disclosure-view-model",{"on:mouseleave":_.gJ(function(){D(!1)}),
"on:mouseover":_.gJ(function(){D(!0)}),
class:_.tx("ytChannelDisclosureViewModelHost",G.className)},_.l(_.E,{cond:function(){return F()},
then:function(){return _.l(_.uR,{data:u},{channelAttributionViewModel:_.TaG})},
else:function(){return _.l(_.uR,{data:R},{decoratedAvatarViewModel:_.KU})}}))},"vh");var fSZ=null;var tmB={},ZZ$=(tmB.initialized={priority:10,callback:function(G){var B=_.te();B.addProvider({provide:buP,useClass:tR$});B.addProvider({provide:_.fAN,useFactory:function(){return new V6w}});
B.addProvider({provide:bp,useValue:_.v5("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});B.addProvider({provide:TOA,useValue:5184E6});B.addProvider({provide:qKA,useValue:_.Kx()});B.addProvider({provide:FSD,useClass:tLy});B.addProvider({provide:$h,useClass:$h});B.addProvider({provide:_.IQ,useFactory:function(){return Qra.promise}});
B.addProvider({provide:_.Lkq,useFactory:function(){return _.jrv.promise}});
B.addProvider({provide:GWs,useValue:function(){var U;return((U=_.AZ())==null?void 0:U.getPlayer())||null}});
var F={};B.addProvider((F.provide=_.Cv,F.useFactory=function(U,q){return function(){return e1I(U,q)}},F[ZA]=[bp,
TOA],F));F={};B.addProvider((F.provide=_.tf,F.useClass=KWQ,F[ZA]=[bp,TOA],F));F={};B.addProvider((F.provide=_.dLT,F.useClass=Q_Z,F[ZA]=[_.tf],F));B.addProvider({provide:Wi,useFactory:_.VU});B.addProvider({provide:gN,useFactory:_.VU});B.addProvider({provide:E0D,useFactory:_.VU});B.addProvider({provide:_.ot7,useFactory:function(){var U;return((U=_.AZ())==null?void 0:U.getPlayer())||null}});
B.addProvider({provide:vkA,useFactory:_.VU});B.addProvider({provide:_.Ep,useFactory:_.VU});F={};B.addProvider((F.provide=b$q,F.useFactory=function(U){return U.dispatch.bind(U)},F[ZA]=[_.Ep],F));
B.addProvider({provide:ip,useValue:_.xI});B.addProvider({provide:TnH,useClass:rVS});B.addProvider({provide:NOD,useClass:CMG});B.addProvider({provide:FI,useClass:FI});B.addProvider({provide:iH,useClass:iH});B.addProvider({provide:su,useClass:su});B.addProvider({provide:Ff,useClass:Ff});B.addProvider({provide:Rm,useClass:Rm});B.addProvider({provide:AB,useClass:AB});B.addProvider({provide:bH,useClass:bH});B.addProvider({provide:OT$,useValue:yoN});F={};B.addProvider((F.provide=eFQ,F.useFactory=function(U){return U.watchEndpointMap||
{}},F[ZA]=[OT$],F));
F={};B.addProvider((F.provide=$KD,F.useFactory=function(U){return U.reelWatchEndpointMap||{}},F[ZA]=[OT$],F));
B.addProvider({provide:_.ux,useFactory:_.Rh});B.addProvider({provide:hk,useFactory:_.D4});F={};B.addProvider((F.provide=$ZJ,F.useFactory=function(U){return function(q){var h={automatedLogEventSource:5};h=h===void 0?{}:h;var K,a,m=(a=_.Q((K=q.endpoint)==null?void 0:K.commandMetadata,_.xy))==null?void 0:a.rootVe;if(m){var L,W;if(K=q.previousCsn||((W=_.Q((L=q.endpoint)==null?void 0:L.commandMetadata,I7v))==null?void 0:W.parentCsn)){var e=e===void 0?{}:e;if(K!==_.qW(e.layer)||m!==Nrz(e.layer))qs8(K,e.cttAuthInfo,
e.layer||0),wRJ(K,e.layer||0),L=e.layer||0,_.Vc(C68(L===void 0?0:L),m);h.parentCsn=K}q.endpoint&&K?hHt(U,q.endpoint,h):_.t9(U,m,void 0,h);var b;((b=q.response)==null?0:b.trackingParams)&&U.graftServerVe(q.response.trackingParams);var M;((M=q.playerResponse)==null?0:M.trackingParams)&&U.graftServerVe(q.playerResponse.trackingParams);var t;((t=q.reelWatchSequenceResponse)==null?0:t.trackingParams)&&U.graftServerVe(q.reelWatchSequenceResponse.trackingParams)}}},F[ZA]=[_.ux],F));
F={};B.addProvider((F.provide=KSZ,F.useClass=hXA,F[ZA]=[ip,_.Ep],F));F={};B.addProvider((F.provide=qb,F.useClass=qb,F[ZA]=[_.IQ,_.Ep],F));F={};B.addProvider((F.provide=l$,F.useClass=l$,F[ZA]=[gN,_.Wr],F));B.addProvider({provide:_.$gz,useClass:t2D});F={};B.addProvider((F.provide=_.yR,F.useClass=V2G,F[ZA]=[_.$gz,_.fH(_.UB)],F));B.addProvider({provide:_.SL,useClass:nk$});F={};B.addProvider((F.provide=sI,F.useClass=sI,F[ZA]=[_.SL,_.IQ,_.RF,_.Wr],F));B.addProvider({provide:_.nL,useClass:Ea});B.addProvider({provide:_.RFB,
useClass:$n$});B.addProvider({provide:_.lI,useClass:eXS});_.X("enable_ai_companion")&&(B.addProvider({provide:_.UB,useClass:pNN}),B.addProvider({provide:_.I1T,useClass:U4y}),B.addProvider({provide:OE$,useClass:WSz}),B.addProvider({provide:m2,useClass:m2}),B.addProvider({provide:ad,useClass:ad}),B.addProvider({provide:I_G,useValue:ISD}),B.addProvider({provide:_.f_y,useValue:_.cbS}),B.addProvider({provide:tuq,useValue:JbG}));_.X("enable_ai_chat_controller")&&B.addProvider({provide:_.K$,useClass:AbU});
F={};B.addProvider((F.provide=_.lm,F.useClass=fBQ,F[ZA]=[_.lm],F));B.addProvider({provide:_.SK,useClass:iS2});B.addProvider({provide:Ou,useClass:Ou});B.addProvider({provide:Pi,useClass:Pi});B.addProvider({provide:vi,useClass:vi});F={};B.addProvider((F.provide=Uu,F.useClass=Uu,F[ZA]=[_.Wr,_.RF],F));B.addProvider({provide:Th,useClass:o02});F={};B.addProvider((F.provide=t6,F.useClass=t6,F[ZA]=[_.nL,Th],F));F={};B.addProvider((F.provide=dX,F.useClass=dX,F[ZA]=[_.nL],F));B.addProvider({provide:L$,useClass:L$});
B.addProvider({provide:M5H,useClass:oiG});_.X("web_enable_feedback_endpoint_resolver_batch_2")&&(F={},B.addProvider((F.provide=Hi,F.useClass=Hi,F[ZA]=[Wi],F)),F={},B.addProvider((F.provide=rX,F.useClass=rX,F[ZA]=[M5H],F)));F={};B.addProvider((F.provide=Id,F.useClass=Id,F[ZA]=[_.lI,Th],F));F={};B.addProvider((F.provide=Y5,F.useClass=Y5,F[ZA]=[_.lI],F));F={};B.addProvider((F.provide=f$,F.useClass=f$,F[ZA]=[_.RF,_.yR],F));F={};B.addProvider((F.provide=ci,F.useClass=ci,F[ZA]=[_.RF,_.ux],F));B.addProvider({provide:La,
useClass:La});F={};B.addProvider((F.provide=EI,F.useClass=EI,F[ZA]=[Wi],F));B.addProvider({provide:YJ,useClass:YJ});B.addProvider({provide:pa,useClass:pa});F={};B.addProvider((F.provide=dc,F.useClass=dc,F[ZA]=[Wi],F));F={};B.addProvider((F.provide=Jk,F.useClass=Jk,F[ZA]=[_.RF,Wi],F));F={};B.addProvider((F.provide=c8,F.useClass=c8,F[ZA]=[Wi],F));F={};B.addProvider((F.provide=TR,F.useClass=TR,F[ZA]=[Wi],F));F={};B.addProvider((F.provide=A6,F.useClass=A6,F[ZA]=[_.yR],F));F={};B.addProvider((F.provide=
OI,F.useClass=OI,F[ZA]=[_.ux],F));F={};B.addProvider((F.provide=oT,F.useClass=oT,F[ZA]=[X_],F));F={};B.addProvider((F.provide=MT,F.useClass=MT,F[ZA]=[X_],F));B.addProvider({provide:zR,useClass:zR});B.addProvider({provide:bm,useClass:bm});B.addProvider({provide:kJ,useClass:kJ});F={};B.addProvider((F.provide=Zu,F.useClass=Zu,F[ZA]=[_.yR,_.Wr],F));B.addProvider({provide:zh,useClass:zh});F={};B.addProvider((F.provide=J6,F.useClass=J6,F[ZA]=[_.RF,_.yR],F));B.addProvider({provide:od,useClass:od});F={};
B.addProvider((F.provide=UI,F.useClass=UI,F[ZA]=[Wi,_.RF,_.lm],F));F={};B.addProvider((F.provide=yu,F.useClass=yu,F[ZA]=[_.RF,_.Wr],F));B.addProvider({provide:Y3q,useValue:M9s});B.addProvider({provide:Z6P,useValue:hML});B.addProvider({provide:na,useClass:na});F={};B.addProvider((F.provide=NT,F.useClass=NT,F[ZA]=[Wi],F));F={};B.addProvider((F.provide=qT,F.useClass=qT,F[ZA]=[_.SK,_.Wr],F));F={};B.addProvider((F.provide=k5,F.useClass=k5,F[ZA]=[_.Wr],F));F={};B.addProvider((F.provide=jJ,F.useClass=jJ,
F[ZA]=[gN],F));B.addProvider({provide:fc7,useFactory:_.k7.getInstance});F={};B.addProvider((F.provide=Vk,F.useClass=Vk,F[ZA]=[bp,fc7,_.Wr],F));B.addProvider({provide:eJ,useClass:eJ});B.addProvider({provide:qr,useClass:qr});B.addProvider({provide:h6,useClass:h6});B.addProvider({provide:_.Eu,useClass:_.Eu});B.addProvider({provide:tk,useClass:tk});F={};B.addProvider((F.provide=D3,F.useClass=D3,F[ZA]=[gN],F));F={};B.addProvider((F.provide=SJ,F.useClass=SJ,F[ZA]=[_.Wr],F));F={};B.addProvider((F.provide=
um,F.useClass=um,F[ZA]=[_.Wr],F));F={};B.addProvider((F.provide=RT,F.useClass=RT,F[ZA]=[_.Wr],F));_.X("web_enable_prefetching_videos_on_home")&&(B.addProvider({provide:J7H,useClass:J7H}),B.addProvider({provide:Lv,useClass:Lv}));F={};B.addProvider((F.provide=fa,F.useClass=fa,F[ZA]=[_.Wr],F));B.addProvider({provide:Xx,useClass:Xx});F={};B.addProvider((F.provide=rc,F.useClass=rc,F[ZA]=[_.RF,_.Wr],F));F={};B.addProvider((F.provide=Qk,F.useClass=Qk,F[ZA]=[_.Wr],F));F={};B.addProvider((F.provide=rt,F.useClass=
rt,F[ZA]=[_.RF,_.Wr],F));B.addProvider({provide:tEG,useClass:tEG});B.addProvider({provide:fl$,useClass:fl$});B.addProvider({provide:B8,useClass:B8});F={};B.addProvider((F.provide=GR,F.useClass=GR,F[ZA]=[gN,_.Wr],F));B.addProvider({provide:im,useClass:im});F={};B.addProvider((F.provide=P8,F.useClass=P8,F[ZA]=[gN,_.Wr,_.RF],F));F={};B.addProvider((F.provide=G4,F.useClass=G4,F[ZA]=[_.Wr],F));F={};B.addProvider((F.provide=xJ,F.useClass=xJ,F[ZA]=[_.Wr,_.RF],F));F={};B.addProvider((F.provide=jL,F.useClass=
jL,F[ZA]=[_.Wr,_.RF],F));F={};B.addProvider((F.provide=Ca,F.useClass=Ca,F[ZA]=[_.IQ],F));F={};B.addProvider((F.provide=wc,F.useClass=wc,F[ZA]=[_.IQ],F));F={};B.addProvider((F.provide=F_,F.useClass=F_,F[ZA]=[_.IQ],F));B.addProvider({provide:mZ,useClass:mZ});B.addProvider({provide:Qu,useClass:Qu});B.addProvider({provide:Ak,useClass:Ak});B.addProvider({provide:W8,useClass:W8});B.addProvider({provide:aT,useClass:aT});B.addProvider({provide:Mr,useClass:Mr});B.addProvider({provide:Ka,useClass:Ka});B.addProvider({provide:_.DG,
useClass:Kv});B.addProvider({provide:o1,useFactory:function(){return _.pZ.getInstance()}});
B.addProvider({provide:UgD,useFactory:JyL});B.addProvider({provide:X_,useFactory:function(){return _.nM.getInstance()}});
B.addProvider({provide:yYq,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});F={};B.addProvider((F.provide=_.Ua,F.useClass=_.Ua,F[ZA]=[_.IQ,_.Wr,_.ux,UgD,X_,o1,yYq,ip],F));B.addProvider({provide:_.xV,useClass:O1T});B.addProvider({provide:_.fJQ,useClass:IJQ});F={};B.addProvider((F.provide=p$,F.useClass=p$,F[ZA]=[_.fJQ],F));F={};B.addProvider((F.provide=_.Q7D,F.useFactory=function(U){return U.upliftCompletionResolver.promise},F[ZA]=[KSZ],F));
F=_.on("IS_SHELL_LOAD")?"aa":"eocs";var D=_.on("IS_SHELL_LOAD")?3:2;_.kl().parkOrScheduleJob(function(){mgD()},D,F);
_.kl().parkOrScheduleJob(function(){_.te().resolve(qb).start()},2,"eocs");
_.kl().parkOrScheduleJob(function(){q4$()},2,"eocs");
_.kl().parkOrScheduleJob(function(){_.te().resolve(l$).start()},2,"eocs");
_.X("kevlar_debug_data_app_registration_ks")||OKQ();B.addProvider({provide:_.uN,useValue:new yl2(G.root)});B.addProvider({provide:ou,useValue:new djU});B.addProvider({provide:_.aKQ,useValue:new hsA(G.root)});B.addProvider({provide:_.un,useValue:new KnN});B.addProvider({provide:_.Sj,useClass:Fk});B.addProvider({provide:IBH,useClass:h_});_.X("kevlar_network_sli_killswitch")||B.addProvider({provide:G0$,useValue:egq});B.addProvider({provide:IAD,useFactory:Zqg});F={};B.addProvider((F.provide=aRU,F.useFactory=
kpL,F[ZA]=[_.Q7D,Wi,_.Cv],F));F={};B.addProvider((F.provide=KGN,F.useClass=Bg,F[ZA]=[aRU],F));B.addProvider({provide:PBU,useClass:gkB});B.addProvider({provide:UKG,useClass:EkN});F=[].concat(_.gi(ZCS));F.push(_.QO);F.push(j8v);_.X("enable_share_panel_navigation_logging_fix_on_web")&&F.push(_.pdG);B.addProvider({provide:tX8,useValue:F});B.addProvider({provide:gMy,useClass:lRz});B.addProvider({provide:uB2,useClass:BoN});F={};B.addProvider((F.provide=IcT,F.useClass=es$,F[ZA]=[gN],F));_.Lu.addLowPriorityJob(function(){FIc()});
F={};B.addProvider((F.provide=fPU,F.useFactory=function(U){return function(q){var h,K=(h=_.Q(q.commandMetadata,_.xy))==null?void 0:h.url;if(!K)throw new _.Uf("No URL for PBJ Command",q);K=LbS(K,{pbj:"1"});h=cJ6(K,{})||{};h=Object.assign({},h,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.v5("STS").toString()});q=_.sh({command:JSON.stringify(q),session_token:_.v5("XSRF_TOKEN")});return U.fetch(K,{method:"POST",headers:h,body:q})}},F[ZA]=[uB2],F));
B.addProvider({provide:snz,useFactory:function(){var U={};return U.CSI=SZS(),U.ECATCHER=gq6(),U}});
B.addProvider({provide:M8G,useClass:xn$});F=[];F.push(B.resolve(UKG));D={};D=(D.client_location=_.k7.getInstance(),D.consistency=_.iPg(),D.entities=B.resolve(NOD),D.response_received_commands=B.resolve(gMy),D.store=B.resolve(_.dLT),D.tokens=B.resolve(UKG),D.service_params=B.resolve(M8G),D);if(_.X("web_shorts_prefetch_service_enabled")){var u=new j_Q(B.resolve(_.tf));D.shorts_prefetch=u}D.adblock_detection=B.resolve(IcT);_.X("web_enable_chunk_prediction")&&(B.addProvider({provide:_.LO,useClass:y0D}),
B.addProvider({provide:sIU,useClass:k0$}),D.mss=B.resolve(sIU),_.H1(window,"yt-navigate-start",function(U){var q;U=(q=U.detail)==null?void 0:q.endpoint;var h;if(q=(h=_.Q(U==null?void 0:U.commandMetadata,_.xy))==null?void 0:h.rootVe){h=_.v5("VE_TYPE_TO_XIDS",{});var K,a;U=(a=(K=h["0"])==null?void 0:K.xids)!=null?a:[];var m,L;K=(L=(m=h[q])==null?void 0:m.xids)!=null?L:[];m=U.concat(K);if(q in h&&m.length>0){var W;(W=lB$(_.te().resolve(_.LO),m))==null||W()}}}));
B.addProvider({provide:_.pu,useClass:_.pu});u=B.resolve(OT$);var R=[];_.X("PremiumClientSharedConfig__enable_att_context_processor")&&(B.addProvider({provide:tlZ,useClass:TiD}),R.push(B.resolve(tlZ)));if(_.X("owl_pl_await")){var N={};B.addProvider((N.provide=MRN,N.useFactory=function(U){return new vfN(U)},N[ZA]=[_.pu],N));
R.push(B.resolve(MRN))}g4P(u,B.resolve(uB2),B.resolve(TnH),D,B.resolve(_.tf),F,R,B.resolve(KGN),B.resolve(PBU));B.addProvider({provide:_.RF,useValue:_.OR.instance});_.X("start_client_gcf")&&B.addProvider({provide:X0,useValue:JJq()});B.addProvider({provide:LSZ,useFactory:function(){return new LSZ(_.te().resolve(_.pu),_.nM.getInstance())}});
_.kl().parkOrScheduleJob(function(){r0D()},1,"eocs");
F={};B.addProvider((F.provide=j7$,F.useClass=j7$,F[ZA]=[_.Cv,_.RF],F));B.addProvider({provide:_.PCD,useFactory:_.j4.getInstance});_.kl().parkOrScheduleJob(function(){_.te().resolve(j7$).refresh()},0,"eocs");
B.addProvider({provide:_.E$,useClass:peQ});_.X("kevlar_signal_collection_killswitch")||(F={},B.addProvider((F.provide=iEz,F.useClass=iEz,F[ZA]=[bp,hk],F)),_.kl().parkOrScheduleJob(function(){_.te().resolve(iEz).record()},1,"eocs"));
_.X("web_debug_handler_registration_killswitch")||_.kl().parkOrScheduleJob(function(){HKg("DOWNLOAD_PES",dJ8);_.X("offline_client_state_export_ks")||HKg("OFFLINE_CLIENT_STATE",pDo)},0,"eocs");
_.X("kevlar_prevent_polymer_dynamic_font_load")&&_.kl().parkOrScheduleJob(function(){var U=[_.W7(qfU),_.W7(EKz)];U=_.C(U);for(var q=U.next();!q.done;q=U.next()){q=q.value;var h=document.createElement("link");_.hl(h,q,"stylesheet");document.head.appendChild(h)}},1,"eocs");
F=G.injector.resolve(_.RF);_.fKH.instance=new _.fKH(F);EOz(MlD(new IKD(F)));F={};G.injector.addProvider((F.provide=fZ,F.useFactory=function(U){(U=U==null?void 0:U.getCurrentPage())?U=U.visibilityObserver:(fSZ||(fSZ=wh8()),U=fSZ);return U},F[ZA]=[_.fH(_.pA)],F.skipCache=!0,F));
B.addProvider({provide:_.WP,useClass:zU});B.addProvider({provide:iI,useClass:Y6v});G.injector.addProvider({provide:bat,useValue:NiU});B.addProvider({provide:Q0t,useValue:OI$});B.addProvider({provide:$cy,useValue:$dM});B.addProvider({provide:_.Rx,useValue:cul});G=B.addProvider;FdS||(FdS=new iH2);G.call(B,{provide:_.am,useValue:FdS});B.addProvider({provide:_.e3,useValue:_.v5("HTML_DIR")==="rtl"?"rtl":"ltr"});B.addProvider({provide:mPD,useClass:$P$});B.addProvider({provide:_.Pc,useClass:aAA});_.te().addProvider({provide:Qk$,
useValue:_.X("enable_web_delhi_icons")?Mmz.concat(YzH):o2$.concat(p$Q)});B.addProvider({provide:_.epS,useClass:_.epS});B.addProvider({provide:_.nKH,useValue:new yP$});B.addProvider({provide:NmN,useClass:RD$});B.addProvider({provide:H8,useClass:H8});B.addProvider({provide:eL,useClass:eL});G={};B.addProvider((G.provide=gX,G.useClass=gX,G[ZA]=[_.RF,_.yR],G));B.addProvider({provide:Z3,useClass:Z3});B.addProvider({provide:HeQ,useClass:g0D});B.addProvider({provide:Vu,useClass:Vu});B.addProvider({provide:pDP,
useValue:jwP});B.addProvider({provide:_.p2,useClass:w7$});_.X("enable_payments_purchase_manager")&&B.addProvider({provide:so$,useClass:ZIS});B.addProvider({provide:vi$,useFactory:function(){return function(U){return _.USD(U)}}});
B.addProvider({provide:_.CBU,useClass:Nqz});G={};B.addProvider((G.provide=IT,G.useClass=IT,G[ZA]=[_.CBU],G));B.addProvider({provide:$J,useClass:$J});B.addProvider({provide:m8N,useValue:PaG});B.addProvider({provide:Fey,useValue:_.nfG});B.addProvider({provide:cpQ,useClass:ZEZ});B.addProvider({provide:umN,useValue:hZ$});G={};B.addProvider((G.provide=RpQ,G.useClass=w5U,G[ZA]=[umN],G));G={};B.addProvider((G.provide=_.w1,G.useClass=mz$,G[ZA]=[RpQ],G));G={};B.addProvider((G.provide=_.XI,G.useClass=JeZ,G[ZA]=
[_.Ep,_.Sj],G));if(_.X("web_explore_hub_on_hover")||_.X("web_client_explore_hub_on_hover"))G={},B.addProvider((G.provide=$5,G.useClass=$5,G[ZA]=[_.RF,o1],G));if(_.X("web_enable_renderer_logger")){var y=new KHg;NBz(function(){y.abort()});
B.addProvider({provide:BWo,useValue:new Dgz(y.signal)})}B.addProvider({provide:v8s,useValue:SaJ});B.addProvider({provide:VMl,useClass:LWD});_.X("web_use_flow_state_manager")&&(B.addProvider({provide:_.Du,useClass:yCD}),G={},B.addProvider((G.provide=up,G.useClass=up,G[ZA]=[_.Du],G)),G={},B.addProvider((G.provide=Rd,G.useClass=Rd,G[ZA]=[_.Ep,_.Du],G)),G={},B.addProvider((G.provide=wX,G.useClass=wX,G[ZA]=[_.Ep,_.Du,_.Wr],G)),G={},B.addProvider((G.provide=C$,G.useClass=C$,G[ZA]=[_.RF,_.Wr],G)),G={},B.addProvider((G.provide=
Nr,G.useClass=Nr,G[ZA]=[_.Du,_.Wr],G)))}},tmB);var g2$={},SzB=(g2$.initialized={priority:10,callback:function(){if(!P9Q){gNU();xeU("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.FB(_.Fw(xeU,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.X("log_heartbeat_with_lifecycles")){var G={};b3.instance||(b3.instance=new b3);b3.instance.install((G.document_visible={callback:PSM,priority:10},G.document_hidden={callback:PSM,priority:10},G))}else _.IB(document,"visibilitychange",PSM);P9Q=!0}(G=_.qW())&&G!=="UNDEFINED_CSN"&&uqQ(G)}},g2$);var suz={},xIS=(suz.initialized={callback:function(G){var B=_.ge(232091),F=G.injector.resolve(_.ux);_.Zx(F,B);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?V8t()&&_.S0(F,B):(G=G.injector.resolve(vi$)("refresh_detector"))&&(G.get("first_tab_load")?_.S0(F,B):G.set("first_tab_load","1"))}},suz);var PZD={},Gcz=(PZD.initialized={priority:0,callback:function(){var G=new NgG,B="other";_.PP?B="chrome":_.xw?B="firefox":_.Of?B="safari":cQ&&(B="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(F){G.increment(_.y5(),F,B)}).catch(function(){G.increment(_.y5(),!1,B)}):G.increment(_.y5(),!1,B)}},PZD);var BSZ={},itG=(BSZ.rendering={priority:8,callback:vMt},BSZ);var Fj$={},D0$=(Fj$.rendering={priority:10,callback:xL7},Fj$.rendered={callback:SSa},Fj$),uLD={},Rfz=(uLD.rendering={callback:xL7},uLD.rendered={callback:SSa},uLD);var wwU=!1,Csz={},NSB=(Csz.initialized={priority:10,callback:function(){wwU||(EyM({didPatch:function(G){G.el&&lfM(G.el,G.props)},
didUnmount:function(G){ynU(G.el)}}),wwU=!0)}},Csz);var yAZ=/^\/shorts\/?$/;_.Vc("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:{}}}}}}});_.X("kevlar_use_common_module_manager_ks")?(_.pQo(new PlL),bzQ()):GL7();
(function(){var G=document.querySelector("ytd-app");if(!G)throw Error("ak");DZI();G=new QT({root:G,injector:_.te()});G.install(SzB);var B={};G.install((B.initialized={priority:10,callback:ZDJ},B));_.X("wp_lat_b")&&(B={},G.install((B.initialized={priority:10,callback:function(){IEJ()}},B)));
B={};G.install((B.rendered={priority:0,callback:Ivz},B));B={};G.install((B.rendered={priority:0,callback:function(){_.Lu.addLowPriorityJob(function(){_.zDS>1&&(phQ(),cNs())},4E4)}},B));
G.install(JPB);G.install(xIS);G.install(NSB);jPI();G.install(PXA);G.install(oKH);G.install(APD);G.install(g3Q);G.install(GMN);G.install(sYQ);G.install(ZZ$);G.install(pQ$);G.install(Gcz);if(!_.on("IS_SHELL_LOAD")||_.X("kevlar_fetch_initial_data_promise_client")||_.X("sw_nav_preload_pbj")){var F=_.Ik(window.location.href);B=F&&F==="/watch";F=F&&F.match(yAZ);B?G.install(Rfz):F?G.install(itG):G.install(D0$)}else G.install(b8$);G.install(To2);_.X("web_enable_prefetching_videos_on_home")&&G.install(FON);
_.X("start_client_gcf")&&G.install(SDU);G.install(Td$);(new yo7).increment("INSTALLED");G.install(Bg$);G.install(eVQ);G.transition("initialized");M1s();Hqz()})();
_.fJ=[[["c2VvM3c3a2luZCNxMDM2M3Y=","NzNiN3ZhbHVlI2tkOWZuN29z"],"djF4M0FEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzJkYjd2cnBs"]];_.I9=["ZGVxb3ptZ3l3ZmZoZ2xvYmFsQ2FsbGJhY2tzIw==","OG5yYXlmMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMxbXM5","QWRTa2lwIzNzeGVzbXU3czJ5dG9u","dXZsYzFkdmpyYXdfcGxheWVyX3Jlc3BvbnNlI2JtcTM=","YWRTbG90cyM0MWdqc3gzcnAzdG4="];_.Vq="ZGVxb3ptZ3l3ZmZoZ2xvYmFsQ2FsbGJhY2tzIw== OG5yYXlmMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMxbXM5 QWRTa2lwIzNzeGVzbXU3czJ5dG9u dXZsYzFkdmpyYXdfcGxheWVyX3Jlc3BvbnNlI2JtcTM= aXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2xiYmtxdHk3M3k1OHdlYl9wbGF5bA== X3NhX2VmIzg5b3lwdXhpeDJzMmFi YWRTbG90cyM0MWdqc3gzcnAzdG4=".split(" ");

_._ModuleManager_initialize=function(G,B){if(!_.a_){if(!_.mW)return;_.pQo(_.mW())}_.a_.setAllModuleInfoString(G,B)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy5/sy2:2/sy3:2/sy4/sy6/sy7:1,2,6/hU04te/kevlar_main_module:3,4,7,8/dpUCFd/U9vrqd/n0DHg/HwlOhd/JoU6vf/dIvQ6c/m9Vw4/mcjWUc/QiZf0e:7/f8YPh:3/b3MoKf:4/NSzT5:5',['sy5','sy6','sy1','sy4','sy3','sy2','sy7','hU04te','NSzT5','b3MoKf','f8YPh','QiZf0e','mcjWUc','m9Vw4','dIvQ6c','JoU6vf','HwlOhd','n0DHg','U9vrqd','dpUCFd','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.ef2=function(G,B){if(_.X("web_enable_chat_autoscroll_to_user_turn")&&G&&B)return G-4+"px"};
}catch(e){_._DumpException(e)}
try{
var aNS,XwQ;_.VT=function(G){var B=G.clientMessageId;var F=G.playerOffsetMs;var D=G.pageContext;G=G.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:B},!!F&&{playerOffsetMs:F},!!D&&{pageContext:D},!!G&&{userInputText:G})}};
_.KjH=function(G,B,F){B=B===void 0?5:B;if(B!==0){var D=typeof G==="function"?G():document.querySelector(G);D?(F==null?0:F.enableSmartFocus)?_.vKs(D):D.focus():setTimeout(function(){_.KjH(G,B-1,F)},500)}};
aNS=function(G,B){return _.g5(G.entities,"inlineExpansionEntity",B)};
_.m0B=function(G){return{continuationCommand:{token:G,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
XwQ=function(G,B){if(B)return"ytCardViewModelCardSelected";switch(G){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
_.QpQ=function(G,B){return _.g5(G.entities,"youchatPendingResponseEntity",B)};
_.jp2=function(G){return function(B){_.M7(_.wC("youchatPendingResponseEntity",G,{entityKey:G,isPendingResponse:B}))}};_.LjQ=_.Y(function(G){var B=G.data;var F=function(){var D;return _.ax((D=B())==null?void 0:D.rendererContext)};
G={};return _.l("content-list-item-view-model",{el:_.VX(_.mR(function(){return B().rendererContext})),
class:_.tx("ytContentListItemViewModelHost",(G.ytContentListItemViewModelTappable=F,G)),role:function(){return F()?"listitem":void 0},
tabindex:function(){return F()?0:void 0},
"on:keydown":_.qj()},_.l("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.l("div",{class:"ytContentListItemViewModelImageContainer"},_.l(_.E,{cond:function(){return B().image},
then:function(D){return _.l(_.vr,{data:D,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.l(_.uR,{data:function(){var D;
return(D=B())==null?void 0:D.avatar}},{avatarViewModel:_.h8})),_.l("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.l("div",{class:_.tx("ytContentListItemViewModelTitle",function(){a:{switch(B().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var D="ytContentListItemViewModelProminentTitle";
break a}D=void 0}return D})},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytContentListItemViewModelMetadata"},_.l(_.uR,{data:function(){return B().metadata}},{contentMetadataViewModel:function(D){return _.l(_.t8,{data:D.data,
layout:1})}})))),_.l("div",{class:"ytContentListItemViewModelActionButton"},_.l(_.uR,{data:function(){var D;
return(D=B())==null?void 0:D.actionButton}},{buttonViewModel:_.cd,
toggleButtonViewModel:_.wl})))},"wh");var rA$=_.Y(function(G){var B=G.data,F=function(){var u;return(u=B())==null?void 0:u.description},D=function(){var u;
return(u=B())==null?void 0:u.title};
return _.l("ytfc-youth-basic-section-header-view-model",{class:_.tx("ytfcYouthBasicSectionHeaderViewModelHost",G.className)},_.l("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.l(_.uR,{data:function(){var u;return(u=B())==null?void 0:u.avatar}},{avatarViewModel:_.h8}),_.l(_.E,{cond:function(){var u;
return _.kP((u=B())==null?void 0:u.themedImage)},
then:function(u){return _.l(_.vr,{data:u,alt:function(){var R,N;return(N=(R=D())==null?void 0:R.content)!=null?N:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.l("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.l(_.E,{cond:D,
then:function(){return _.l(_.Wd,{text:D,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.l("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.l(_.uR,{data:function(){var u;
return(u=B())==null?void 0:u.bottomBadge}},{badgeViewModel:function(u){return _.l("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.l(_.vK,{data:u.data}))}}),_.l(_.E,{cond:F,
then:function(){return _.l(_.Wd,{text:F,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"xh");var WjS=_.Y(function(G){var B=G.data;return _.l("ytfc-youth-section-body-view-model",{class:_.tx("ytfcYouthSectionBodyViewModelHost",G.className)},_.l(_.uR,{data:function(){var F;return(F=B())==null?void 0:F.topContent}},{avatarStackViewModel:function(F){return _.l(_.a$,{data:F.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.l(_.Wd,{text:function(){var F;
return(F=B())==null?void 0:F.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"yh");var HtQ=_.Y(function(G){var B=_.C(_.qg(!1,void 0,"SrK51e")),F=B.next().value,D=B.next().value,u=function(){return G.data().inlineExpansionEntityKey},R=_.iR(aNS,u),N=function(){if(G.isSelected!==void 0)return G.isSelected();
if(u()){var U;return(U=R())==null?void 0:U.expanded}return F()};
B={};var y={};return _.l("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.gJ(function(){G.isSelected!==void 0||u()||D(!F())})},_.l("div",{class:"ytInlineExpanderViewModelHeader"},_.l(_.uR,{data:function(){return G.data().headerContent}},{youthBasicSectionHeaderViewModel:rA$}),_.l("div",{class:_.tx("ytInlineExpanderViewModelButton",(B.ytInlineExpanderViewModelButtonExpanded=N,B))},_.l(_.Ji,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:N(),accessibilityLabel:N()?_.G7("SHOW_LESS",void 0,"Show Less"):_.G7("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.l("div",{class:_.tx("ytInlineExpanderViewModelBody",(y.ytInlineExpanderViewModelBodyExpanded=N,y)),"aria-hidden":function(){return!N()}},_.l("div",{class:"ytInlineExpanderViewModelBodyContent"},_.l(_.uR,{data:function(){return G.data().bodyContent}},{youthSectionBodyViewModel:WjS}))))},"zh");var kcD=new _.oV("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.OtH=_.Y(function(G){var B=function(){return G.data().background},F=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},D=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},u=_.te().resolve(_.fH(kcD)),R={};
return _.l("yt-card-view-model",{el:_.VX(_.mR(function(){return G.data().rendererContext})),
class:_.tx("ytCardViewModelHost",G.className,(R.ytCardViewModelClickable=function(){return _.Kh(G.data().rendererContext)},R))},_.l(_.Zd,{contentId:function(){return G.data().contentId}},function(){var N={};
return _.l("div",{class:_.tx("ytCardViewModelCardViewModelInner",function(){var y;return XwQ(G.data().cardStyle,(y=G.isSelected)==null?void 0:y.call(G))},function(){if(G.isSelected===void 0){var y;
a:{switch((y=G.data().cardState)==null?void 0:y.selectionState){case "CARD_SELECTION_STATE_SELECTED":y="ytCardViewModelSelected";break a}y=void 0}return y}})},_.l(_.uR,{data:B},{cinematicContainerViewModel:function(y){return _.l(_.bQH,{data:y.data})}}),_.l("div",{class:"ytCardViewModelContentWrapper"},_.l(_.E,{cond:function(){return!F()},
then:function(){var y={},U={};return _.l("div",{class:"ytCardViewModelTopContentContainer"},_.l("div",{class:_.tx("ytCardViewModelTopContent",(y.ytCardViewModelInnerPadding=function(){return!G.data().disableTopContentPadding&&G.data().topContent},y))},_.l(_.uR,{data:function(){return G.data().topContent}},{contentListItemViewModel:function(q){return _.l(_.LjQ,{data:q.data})},
basicContentViewModel:_.HC,linearLayoutViewModel:_.ec})),_.l("div",{class:_.tx("ytCardViewModelInlineTrailingAction",(U.ytCardViewModelInlineCenterTrailingAction=D,U.ytCardViewModelInlineTrailingActionMargin=function(){return G.data().trailingAction},U))},_.l(_.uR,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(q){return _.l(_.cd,{data:q.data})}})))}}),_.l("div",{class:_.tx((N.ytCardViewModelInnerPadding=function(){return!G.data().disableBodyContentPadding&&G.data().bodyContent},
N))},_.l(_.uR,{data:function(){return G.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.TaG,
contentListItemViewModel:_.LjQ,descriptionPreviewViewModel:_.GC,inlineExpanderViewModel:function(y){return _.l(HtQ,{data:y.data,isSelected:G.isSelected})},
linearLayoutViewModel:_.ec,listItemViewModel:_.OP},u&&{contentSectionViewModel:u})))),_.l(_.E,{cond:function(){return F()},
then:function(){return _.l("div",{class:"ytCardViewModelOverlayTrailingAction"},_.l(_.uR,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data})}}))}}))}))},"Ah");
}catch(e){_._DumpException(e)}
try{
var obG;_.vW=function(G){var B=document.createElement("link");_.hl(B,G,"stylesheet");document.head.appendChild(B)};
_.om=function(G,B){var F,D;return _.n(function(u){F=document.createElement("div");F.id=G.id;G.className&&(F.className=G.className);D=G.element;if(!D)throw Error("bk");if(G.location==="prepend")D.prepend(F);else if(G.location==="appendChild")D.appendChild(F);else if(G.location==="after")D.after(F);else throw Error("ck");return u.return(_.kf(F,B,"Fh"))})};
_.Mb=function(G){var B;return _.n(function(F){(B=document.getElementById(G))&&B.remove();_.di(F)})};
_.pv=function(G,B){var F=document.querySelector(G);F?B(F):setTimeout(function(){_.pv(G,B)},1E3)};
_.MWA=function(G,B,F){var D;_.n(function(u){if(u.nextAddress==1)return(D=document.getElementById(G))?u.jumpTo(2):u.yield(obG(G,B,F),2);if(D=document.getElementById(G))D.style.display="block";_.di(u)})};
obG=function(G,B,F){return _.n(function(D){return D.return(new Promise(function(u){_.pv("div #panels",function(R){_.om({element:R,location:"appendChild",id:G,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+F},B);u()})}))})};_.Yn=_.Y(function(G){var B=G.text;var F=G.onClick;var D=G.color;var u=G.backgroundColor;var R=G.buttonSize;var N=G.disabled;var y=G.iconName;var U=G.iconSize;var q=G.className;var h=G.iconClassName;G=G.ariaLabel;var K=_.gJ(function(m){F(m)}),a={};
return _.l("button",{class:_.tx("ytpStandardButtonsHost",(a.ytpStandardButtonsLarge=function(){return(R==null?void 0:R())==="large"},a),q),
"on:click":K,style:_.xN({color:D,"background-color":u}),disabled:N,"aria-label":G},_.l(_.E,{cond:y,then:function(){return _.l(_.Pr,{className:_.tx("ytpStandardButtonsIconContainer",h),icon:y,size:U})}}),B)},"Eh");_.pwz=_.Y(function(G){var B,F,D={};return _.l("div",{class:_.tx("ytprototypesEngagementPanelComponentHost",(D.ytprototypesEngagementPanelComponentHostMweb=G.isMweb,D),G.className),id:G.id},_.l("div",{class:_.tx("ytprototypesEngagementPanelComponentEngagementPanelHeader",G.headerClassName)},_.l("div",null,G.header()),_.l("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.l("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(B=G.HeaderButton)==null?void 0:B.call(G)),
_.l(_.Yn,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var u;(u=G.onHide)==null||u.call(G);var R;if((R=G.preventDefault)==null||!R.call(G))if(u=G.id(),u=document.getElementById(u))u.style.display="none"}}))),_.l("div",{class:_.tx("ytprototypesEngagementPanelComponentEngagementPanelContent",G.contentClassName),
style:function(){var u,R;return"height: "+(((u=G.height)==null?0:u.call(G))||((R=G.isMweb)==null?0:R.call(G))?"100%":"800px")+";"}},G.content()),_.l("div",null,(F=G.Footer)==null?void 0:F.call(G)))},"Gh");
}catch(e){_._DumpException(e)}
try{
var VWG=function(G){if(G.backgroundStyle)switch(G.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return G.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};_.vb2=_.Y(function(G){var B=function(){return G.data().choiceSelectedText};
return _.l("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.xN({"min-height":function(){var F,D;return _.ef2((F=G.containerHeight)==null?void 0:F.call(G),(D=G.isLastItem)==null?void 0:D.call(G))}}),
"data-target-id":function(){var F;return(F=G.data().itemTargetId)!=null?F:""}},_.l(_.E,{cond:B,
then:function(){return _.l("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.l(_.Wd,{text:B}))}}),_.l("div",{class:_.tx("ytChatUserTurnViewModelUserMessage",function(){return VWG(G.data())})},function(){return G.data().text}))},"Dh");
}catch(e){_._DumpException(e)}
try{
var zf2=function(G){G=_.Q(G,$0$);if(G==null?0:G.trustedAnimationUrl){var B;return(B=_.rg(G.trustedAnimationUrl))==null?void 0:B.toString()}return G==null?void 0:G.animationUrl},$0$=new _.vf("lottieAnimationViewModel");_.btU=_.Y(function(G){var B=function(){var R;return((R=_.te().resolve(_.fH(_.Rx)))==null?0:R())&&G.data().darkThemeAnimation?zf2(G.data().darkThemeAnimation):G.data().animation?zf2(G.data().animation):G.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},F=_.xF(),D=_.te().resolve(_.e3);
_.eR(function(){requestAnimationFrame(function(){var R;(R=F.lottieEl)==null||R.addEventListener("DOMLoaded",function(){var N;(N=G.onLottieLoaded)==null||N.call(G)})})});
var u={};return _.l("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return G.data().targetId||""},
"aria-label":function(){return G.data().loadingAnimationA11yLabel||""},
role:function(){return G.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.xN({"min-height":function(){var R,N;return _.ef2((R=G.containerHeight)==null?void 0:R.call(G),(N=G.isLastItem)==null?void 0:N.call(G))}})},_.l(_.gy,{"aria-hidden":"true",
className:_.tx((u.ytChatLoadingViewModelRtl=D==="rtl",u)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:B()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||B()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:B()}}},
animationRef:F}))},"Ch");
}catch(e){_._DumpException(e)}
try{
var Y2U,d0$,JAA,TSA,INU;Y2U=function(G){return String.raw.apply(String,[{raw:G}].concat(_.gi(_.xS.apply(1,arguments).map(function(B){return B instanceof Array?B.join(""):B}))))};
d0$=function(G){var B=_.xS.apply(1,arguments),F=B.length;if(!Array.isArray(G)||!Array.isArray(G.raw)||G.length!==G.raw.length||!_.ni7&&G===G.raw||!(_.ni7&&!_.lJv||_.Aj(G))||F+1!==G.length)throw new TypeError("aa");return new AAU(Object.freeze({strings:Object.freeze(G),args:Object.freeze(B)}))};
JAA=function(){return _.xS.apply(0,arguments).flat().filter(function(G){return G}).join(";")};
TSA=function(){return d0$(cAQ,JAA.apply(null,_.gi(_.xS.apply(0,arguments))))};
INU=function(G){G==null||G.addEventListener("DOMLoaded",function(){G.goToAndPlay(G.totalFrames-48,!0)})};
_.s4=function(G){this.__isSoyCss=!0;this.css=Y2U.apply(null,[G.strings].concat(_.gi(G.args)))};
_.s4.prototype.toString=function(){return this.css};
var AAU=function(){_.s4.apply(this,arguments)};
_.r(AAU,_.s4);var cAQ=_.vP(["",""]);var fND=_.Y(function(G){var B=void 0,F=function(){return G.data()},D=function(){return!!_.qk(_.lv(F())).optionColor},u=_.C(_.qg(-1,void 0,"m6Iyqc")),R=u.next().value,N=u.next().value,y=function(a){return R()===a},U=function(a){return F().correctAnswerIndex===a},q=function(){return R()!==-1};
u=_.C(_.qg("",void 0,"jvMkLd"));var h=u.next().value,K=u.next().value;return _.l("yoututor-quiz-view-model",{class:_.tx("learningQuizComponentHost","learningYoututorQuizHost",G.className),style:_.xN({background:function(){return _.qk(_.lv(F())).backgroundColor}})},_.l("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},h),_.l("div",{class:"learningQuizComponentQuizContainer"},_.l("div",{class:"learningQuizComponentQuiz"},_.l("div",{class:"learningQuizComponentQuizContent"},_.l(_.E,{cond:function(){return!!F().aiGeneratedQuizLabel},
then:function(){return _.l("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.l(_.Wd,{text:function(){return F().aiGeneratedQuizLabel}}))}}),_.l("div",{class:"learningQuizComponentQuizHeader"},_.l("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.l("div",{class:"learningYoututorQuizText",
style:_.xN({color:function(){return _.qk(_.lv(F())).primaryTextColor}})},_.l(_.Wd,{text:function(){return F().questionHeaderText}}))))),_.l("div",{role:"group",
class:_.tx("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.l(_.jR,{each:function(){return F().optionsData||[]}},function(a,m){var L={};
return _.l("button",{class:_.tx("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(L.learningQuizComponentQuizHover=function(){return!q()},L.learningQuizComponentQuizOptionWithCustomColor=D,L.learningYoututorQuizOptionSelectedCorrectOutline=function(){return q()&&U(m())},L.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return R()!==F().correctAnswerIndex&&y(m())},L.learningQuizComponentQuizIncorrectShake=function(){return R()!==
F().correctAnswerIndex&&y(m())},L)),
"on:click":_.gJ(function(){_.kF(_.Rh(),{data:a});if(q())return!1;N(m());K(U(m())?F().correctAnswerAriaLabel||"":F().incorrectAnswerAriaLabel||"");return!1}),
style:_.xN({background:"transparent"}),"aria-description":function(){return q()?U(m())?F().correctAnswerAriaLabel:F().incorrectAnswerAriaLabel:""},
"aria-disabled":q,el:_.VX(function(W){_.Ed(271905,W,B,function(e){B=e})}),
"client-ve-type":271905},_.l("div",{class:"learningQuizComponentQuizOptionContainer"},_.l(_.Wd,{text:a.optionText}),_.l(_.E,{cond:function(){var W=m();return q()&&(y(W)||U(W))},
then:function(){var W={};return _.l(_.Pr,{className:_.tx("learningYoututorQuizOptionIcon",(W.learningQuizComponentQuizPulse=function(){return R()===F().correctAnswerIndex&&U(m())},W)),
size:24,icon:function(){return U(m())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.l(_.E,{cond:q,
then:function(){return _.l("div",{class:"learningYoututorQuizExplanationContainer"},_.l("div",{class:"learningYoututorQuizExplanationText"},_.l(_.Wd,{text:function(){return F().explanationHeaderText}})),_.l(_.Wd,{text:function(){return F().optionsData[R()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Hh");
fND.idomCompat=!0;var tWA=_.Y(function(G){var B=G.thumbsUp,F=G.thumbsDown,D=G.rightAlignThumbs;G=_.C(_.qg(!1,void 0,"OxPsH"));var u=G.next().value,R=G.next().value;G=_.C(_.qg(!1,void 0,"V5vWne"));var N=G.next().value,y=G.next().value;G={};return _.l("div",{class:_.tx("ytwThumbsUpDownThumbs",(G.ytwThumbsUpDownRightAlign=function(){return D==null?void 0:D()},G))},_.l(_.wl,{data:B,
onToggle:function(U){R(U);N()&&y(!1)},
buttonShapeOverrides:function(){return{toggled:u()}}}),_.l(_.wl,{data:F,
onToggle:function(U){y(U);u()&&R(!1)},
buttonShapeOverrides:function(){return{toggled:N()}}}))},"Ih");
tWA.idomCompat=!0;var gbQ=_.Y(function(G){var B=function(){return G.data().pendingStateEntityKey||""},F=_.iR(_.QpQ,B),D=function(){var y;
if(!(y=G.disabled())){var U;y=!((U=F())==null||!U.isPendingResponse)}return y},u=_.C(_.qg(TSA(""),void 0,"Q6q6y")),R=u.next().value,N=u.next().value;
_.eR(function(){requestAnimationFrame(function(){var y=G.data().onShowAnimationMs||0;y=y>0?TSA("--chip-animation-duration: "+y+"ms;"):TSA("");N(y)})});
return _.l("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:R},_.l(_.jR,{each:function(){return G.data().chipData||[]},
keyBy:"REFERENCE"},function(y){return _.l(ZtS,{data:y,disabled:D,pendingStateKey:B,onError:G.onError})}))},"Kh"),ZtS=_.Y(function(G){var B=_.H5("button"),F=_.C(_.qg(!0,void 0,"baSFEf")),D=F.next().value,u=F.next().value,R=function(){return G.data().text.content},N=function(){return G.data().transparentWhenLoading},y=_.FT(_.OY.currentPageSubTypeSelector),U=function(){var h;
return(h=_.te().resolve(_.fH(_.K$)))==null?void 0:_.V5D(h,y())},q=_.gJ(function(h){var K,a,m,L,W,e,b,M;
return _.n(function(t){switch(t.nextAddress){case 1:h.stopPropagation();if(G.disabled())return t.return();a=String(Math.floor(((K=_.sR())==null?void 0:K.getCurrentTime())||0)*1E3);m="youchat-"+Date.now();L=function(){_.QX(G.data().onClick||{});var T=_.m0B(G.data().continuation),A=_.VT({clientMessageId:m,playerOffsetMs:a,pageContext:U()});return new Promise(function(Z,P){_.QX(T,{form:{formData:A},commandController:{onSuccess:function(RI,yo){Z(yo)},
onServerError:function(RI,yo){P(yo.error)}}})})};
W=_.jp2(G.pendingStateKey());W(!0);_.KjH("#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");u(!1);_.b5(t,2);return t.yield(L(),4);case 4:_.oY(t,3);break;case 2:e=_.Al(t),(M=(b=G).onError)==null||M.call(b,e);case 3:W(!1),_.di(t)}})});
return _.l(_.E,{cond:D,then:function(){return _.l("div",{class:"ytwYouChatChipsDataChipWrapper"},_.l("button",{el:B,class:"ytwYouChatChipsDataChip","data-disabled":G.disabled,"data-transparent-loading":N,"on:click":q,tabindex:0},R))}})},"Lh");var S2$=_.Y(function(G){var B=G.data;var F=G.initiallyExpanded;var D=function(){var q;return(q=B().conversationResourceData)==null?void 0:q.learningGuideData};
G=_.C(_.d3(function(){var q;return(q=F==null?void 0:F())!=null?q:!1}));
var u=G.next().value,R=G.next().value,N=function(){var q,h=_.Q((q=D())==null?void 0:q.expandButton,_.LV);h&&_.kF(_.Rh(),{data:h});R(!0)},y=_.mS(function(){var q,h;
return(h=(q=D())==null?void 0:q.sections)!=null?h:[]},void 0,"V7sYqc"),U=_.mS(function(){return y().length>4},void 0,"GFFPnd");
G=_.mS(function(){var q;return!u()&&U()&&(q=D())!=null&&q.expandButton?y().slice(0,4):y()},void 0,"Rbi7Ke");
return _.l("yt-conversation-resource-view-model",{class:_.tx("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.l(_.uR,{data:G},{expandableMetadataViewModel:_.nfG}),_.l(_.E,{cond:function(){return U()&&!u()},
then:function(){return _.l("div",{id:"showMoreButton"},_.l(_.uR,{data:function(){var q;return(q=D())==null?void 0:q.expandButton}},{buttonViewModel:function(q){return _.l(_.cd,{data:q.data,
onClick:N})}}))}}))},"Mh");_.spQ=_.Y(function(G){var B=_.X("web_enable_youchat_ux_changes"),F=function(){var A,Z;return((A=G.data().text)==null?void 0:A.content)||((Z=G.data().textContent)==null?void 0:Z.content)||""},D=function(){var A,Z;
return(A=G.data().webData)==null?void 0:(Z=A.textResult)==null?void 0:Z.content},u=_.te().resolve(_.e3),R=_.xF(),N=function(){return G.data().chatResponseStyle},y=function(){return!G.data().transparentBackground},U=function(){return G.data().rightAlignThumbs},q=function(){return G.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||G.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!G.data().icon},
h=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:q()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:G.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},K=function(){var A,Z;
return G.data().webData||((A=G.data().text)==null?void 0:A.content)||G.data().videoResultsData||G.data().conversationResourceViewModel||G.data().quiz||G.data().yoututorQuiz||G.data().richContent||G.data().content||((Z=G.data().textContent)==null?void 0:Z.content)},a=function(){return!!G.data().sectionHeader||K()},m=function(){return G.data().hideIcon||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:a()},L=function(){var A;
return(A=G.data().videoResultsData)==null?void 0:A.videoShelf},W=function(){var A;
return(A=G.data().webData)==null?void 0:A.sourcesShelf},e=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:G.data().thumbsDownViewModel&&G.data().thumbsUpViewModel},b=function(){return _.Q(G.data().thumbsUpViewModel,_.WR)},M=function(){return _.Q(G.data().thumbsDownViewModel,_.WR)},t=function(){return q()};
_.eR(function(){requestAnimationFrame(function(){var A;(A=G.shouldAnimateIcon)!=null&&A.call(G)&&INU(R.lottieEl)})});
var T={};return _.l("you-chat-item-view-model",{class:_.tx("ytwYouChatItemViewModelYouChatItemViewModel",(T.ytwYouChatItemViewModelColumnLayout=t,T.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=B,T)),style:_.xN({"min-height":function(){var A,Z;return _.ef2((A=G.containerHeight)==null?void 0:A.call(G),(Z=G.isLastItem)==null?void 0:Z.call(G))}}),
"data-target-id":function(){return G.data().id||""}},_.l(_.E,{cond:function(){return G.data().removeIcon||q()&&!m()?!1:a()},
then:function(){return _.l("div",{"aria-hidden":"true"},_.l(_.E,{cond:function(){return G.data().icon},
then:function(A){var Z={};return _.l(_.vr,{data:A,className:_.tx("ytwYouChatItemViewModelIcon",(Z.ytwYouChatItemViewModelIconVertical=t,Z)),alt:""})},
else:function(){var A={};return _.l(_.gy,{className:_.tx("ytwYouChatItemViewModelIcon",(A.ytwYouChatItemViewModelRtl=u==="rtl",A.ytwYouChatItemViewModelHidden=function(){return!m()},A)),
animationName:"YOUCHAT_ICON",data:h,animationRef:R})}}))}}),_.l(_.E,{cond:a,
then:function(){var A={};return _.l("div",{class:_.tx("ytwYouChatItemViewModelHost",(A.ytwYouChatItemViewModelHostNoPadding=function(){return!!G.data().sectionHeader&&!K()},A.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
A.ytwYouChatItemViewModelGradientBackground=y,A.ytwYouChatItemViewModelHostAlignStart=function(){return!q()},A.ytwYouChatItemViewModelHostDefaultFlex=function(){return!q()},A)),
role:"alert"},_.l(_.E,{cond:F,then:function(Z){return _.l(_.Va,{text:Z,wrapCodeBlocks:!0})}}),_.l(_.uR,{data:function(){return G.data().sectionHeader}},{sectionHeaderViewModel:function(Z){var P={};
return _.l(_.BC,{data:Z.data,className:_.tx("ytwYouChatItemViewModelSectionHeader",(P.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!G.data().sectionHeader&&!K()},P)),
forceSmallLayout:!0})}}),_.l(_.E,{cond:D,
then:function(Z){return _.l(_.Va,{text:Z,wrapCodeBlocks:!0})}}),_.l(_.E,{cond:L,
then:function(){return _.l("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.l(_.uR,{data:function(){var Z;return(Z=G.data().videoResultsData)==null?void 0:Z.videoShelf}},{horizontalShelfViewModel:function(Z){return _.l(_.zC,{data:Z.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.l(_.E,{cond:W,
then:function(){return _.l("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.l(_.uR,{data:function(){var Z;return(Z=G.data().webData)==null?void 0:Z.sourcesShelf}},{horizontalShelfViewModel:function(Z){return _.l(_.zC,{data:Z.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.l(_.uR,{data:function(){return G.data().conversationResourceViewModel}},{conversationResourceViewModel:S2$}),_.l(_.uR,{data:function(){return G.data().quiz}},{learningJourneyQuizViewModel:_.KgG}),_.l(_.uR,{data:function(){return G.data().yoututorQuiz}},{yoututorQuizViewModel:fND}),_.l(_.uR,{data:function(){return G.data().richContent}},{cardViewModel:_.OtH,
linearLayoutViewModel:_.ec}),_.l(_.uR,{data:function(){return G.data().content}},{cardViewModel:_.OtH,
yoututorQuizViewModel:fND,linearLayoutViewModel:_.ec,learningJourneyQuizViewModel:_.KgG,conversationResourceViewModel:S2$}),_.l(_.E,{cond:e,then:function(){return _.l(tWA,{thumbsUp:b,thumbsDown:M,rightAlignThumbs:U})}}))}}),_.l(_.E,{cond:function(){return G.data().chipsData},
then:function(A){return _.l(gbQ,{data:A,disabled:G.pending,onError:G.onError})}}))},"Oh");
_.spQ.idomCompat={callbacks:{onError:!0,onSend:!0}};
}catch(e){_._DumpException(e)}
try{
_.QA("hU04te");
_.x0z=_.Y(function(G){return _.l("yt-feedback-prompt-view-model",{class:_.tx("ytFeedbackPromptViewModelHost",G.className)},_.l(_.E,{cond:function(){return G.data().text},
then:function(B){return _.l(_.Wd,{text:B,className:"ytFeedbackPromptViewModelPrompt"})}}),_.l(_.uR,{data:function(){return G.data().likeButton}},{likeButtonViewModel:function(B){return _.l(_.mP,{data:B.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.l(_.uR,{data:function(){return G.data().dislikeButton}},{dislikeButtonViewModel:_.a8}))},"Ph");
_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("NSzT5");
var I$y=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.te().resolve(_.IQ),2);(G=B.yieldResult)&&G.pauseVideo();_.di(B)})};var f$m=_.vP(["https://portraits.google.com"]),toX=_.vP(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),ZAA=_.vP(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),gF6=_.W7(f$m),SRe=_.Y(function(G){function B(K){var a;if(K=(a=K.detail)==null?void 0:a.endpoint){a=_.Q(K,_.x9);var m;a&&((m=a.browseId)==null?0:m.startsWith("UC"))&&a.browseId!==u()&&(_.Mb("creator-chatbots-panel-persistent"),q.removeEventListener("yt-navigate-start",B))}}
var F=G.usePlayerHeight;var D=G.isPersistentPanel;var u=G.creatorChannelId;var R=_.FT(_.jNo),N=_.VX(function(K){var a=u();a=_.W7(toX,a);_.Ro(K,1,a)}),y=function(){var K,a,m;
return _.n(function(L){return L.nextAddress==1?L.yield(_.te().resolve(_.IQ),2):(K=L.yieldResult)?L.return({video_id:(m=(a=K.getVideoData())==null?void 0:a.video_id)!=null?m:"",timestamp_sec:K.getCurrentTime().toString()}):L.return({})})};
_.Iu("message",function(K){var a,m,L,W,e,b,M,t,T,A;return _.n(function(Z){if(Z.nextAddress==1){if(K.origin!==gF6.toString())return console.warn("Received message from untrusted origin:",K.origin),Z.return();a=K.data;if(typeof a!=="object"||a===null||!a.action)return Z.return();if(a.action==="pause")return Z.yield(I$y(),0);if(a.action!=="getYouTubeContext")return Z.jumpTo(0);L=((m=D)==null?0:m())?"creator-chatbots-panel-persistent":"creator-chatbots-panel";W=document.getElementById(L);if(((e=D)==null?
0:e())&&W&&W.style.display!=="none"&&K.source)return(b=K.source)==null||b.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:K.origin}),Z.jumpTo(0);if(!K.source)return Z.jumpTo(0);M=K.source;t=M.postMessage;T=JSON;A=T.stringify;return Z.yield(y(),8)}t.call(M,A.call(T,{youTubeContext:Z.yieldResult}),{targetOrigin:K.origin});return Z.jumpTo(0)})});
var U=function(){var K,a;(K=N.value)==null||(a=K.contentWindow)==null||a.postMessage("ep_closed",gF6.toString())};
_.Iu("yt-page-type-changed",function(){if(D==null?0:D()){var K;((K=_.te().resolve(_.pA).getCurrentPage())==null?void 0:K.pageSubtype)!=="channels"&&(K=document.getElementById("creator-chatbots-panel-persistent"))&&(K.style.display="none")}else _.te().resolve(_.pA).isOnWatch()||document.getElementById("creator-chatbots-panel")&&_.Mb("creator-chatbots-panel")});
var q=_.te().resolve(_.Sj),h;(h=q)==null||h.addEventListener("yt-navigate-start",B);_.eR(function(){var K=(D==null?0:D())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",a=document.getElementById(K);if(a){var m=new MutationObserver(function(L){L.forEach(function(W){W.type==="attributes"&&W.attributeName==="style"&&a.style.display==="none"&&U()})});
m.observe(a,{attributes:!0});_.VI(function(){m.disconnect()})}});
_.VI(function(){var K;(K=q)==null||K.removeEventListener("yt-navigate-start",B)});
G={};return _.l("div",{class:_.tx("ytprotoCreatorChatbotsAppHost",(G.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return R()},G)),
style:_.xN({height:function(){return(F==null?0:F())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(D==null?0:D())?"800px":void 0}})},_.l(_.pwz,{id:function(){return(D==null?0:D())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(D==null?0:D())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){D!=null&&D()||(U(),_.Mb("creator-chatbots-panel"))},
header:function(){return _.l("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.l("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.l(_.QR,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.l(_.Yn,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var K=_.Z6("https://portraits.google.com/gallery?ytChannelId="+u());K&&_.wi(window,K,"_blank");U()}})},
content:function(){return _.l("iframe",{el:N,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+gF6.toString()})}}))},"Zo"),sQw=_.Y(function(G){var B=G.creatorChannelId;
var F=_.FT(_.jNo),D=_.VX(function(R){var N=B();N=_.W7(ZAA,N);_.Ro(R,1,N)}),u=_.u4(_.Rh(),{veType:281629});
G={};return _.l("div",{class:_.tx("ytprotoCreatorChatbotsAppHost",(G.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return F()},G)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.l(_.pwz,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.l("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.l("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.l(_.QR,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.l("iframe",{el:D,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.l("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.l(_.Yn,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var R=_.Z6("https://portraits.google.com/gallery?ytChannelId="+B());R&&_.wi(window,R,"_blank");I$y();u&&_.kF(_.Rh(),{visualElement:u})},
"client-ve-type":281629}),_.l("div",null,"This will take you to Google Portraits"))}}))},"$o");var x6y,PNz;x6y=_.vP(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);PNz=_.W7(x6y);_.BHD=function(G){G=G===void 0?"":G;_.Mb("creator-chatbots-panel");_.vW(PNz);_.pv("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.MWA("creator-chatbots-panel",function(){return _.l(SRe,{usePlayerHeight:!0,creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.im$=function(G){G=G===void 0?"":G;_.Mb("creator-chatbots-panel");_.pv("ytd-watch-metadata #top-level-buttons-computed",function(){_.MWA("creator-chatbots-panel",function(){return _.l(sQw,{creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.Z8Z=function(G,B,F){G=G===void 0?"":G;B=B===void 0?!1:B;F=F===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":F;var D,u;return _.n(function(R){if(F==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(D=document.getElementById("creator-chatbots-panel"))D.style.display="block";return R.jumpTo(0)}u=document.getElementById("creator-chatbots-panel-persistent");return!B||u?(!B&&u&&u.style.display==="none"&&(u.style.display="block"),R.jumpTo(0)):R.yield(new Promise(function(N){_.pv("ytd-app",
function(y){_.om({element:y,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.l(SRe,{isPersistentPanel:!0,creatorChannelId:G})});
N()})}),0)})};
_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("b3MoKf");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("f8YPh");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("QiZf0e");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("mcjWUc");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("m9Vw4");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("dIvQ6c");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("JoU6vf");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("HwlOhd");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("n0DHg");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("U9vrqd");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("dpUCFd");

_.jV();
}catch(e){_._DumpException(e)}
try{
_.QA("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 PsB,A_,GND,B0$,irQ,F52,DY$,uhD,R2A,wz$,ChZ,N0U,dt,yU$,nQA,lHD,UYD,q1Q,EQB,h2U,K5Q,aHQ,mYA,XzD,QsU,jsS,L5U,W5Z,Hr$,OrG,e2G,$Y$,brB,V_D,vQz,oQD,J_,pzD,Y1Q,AUD,cW,dYB,IH2,fH$,t_D,ZrU,S1B,ssz,BsN,FVQ,G1U,rUG,DW$,uK2,R7Q,TU,Im,wZz,C2Z,yLZ,nyA,UWD,qwN,EyD,h7D,KV$,aLU,mW$,XZG,fv,QaG,LVD,rLA,WV$,HiA,k12,e7$,$WZ,z7Q,biQ,oyD,MaA,ALz,dWB,cLH,TsN,fLB,t_,taz,gyZ,SwD,sa2,P2N,B5U,iRS,Fb$,Da$,uwB,RR$,wTG,CfZ,N5z,yJU,nIQ,l4$,UaD,qqS,EIA,hR$,KbA,XTD,QgH,jgD,LbA,rJ$,WbB,HR$,k7$,eRS,$a$,zRD,bRA,VDB,vI$,oIG,MD$,pTD,
S4,Yq$,AJ2,daN,JJZ,cJS,T5$,sa,I4U,f4D,tDB,ZRG,gID,SqB,sgA,xa2,PfD,GxN,B8H,iJz,xn,FD$,DDS,u9Q,RSz,w2D,Co2,N8S,ycD,n9A,lVA,UDD,qXU,E9$,hSZ,KDZ,aVB,mDD,X2$,j9z,WDz,HJS,kxD,OJD,eS$,$DZ,zSD,bJ$,VwB,v9D,o9$,MwD,p2$,Gy,By,AcS,dD$,Jc$,ccS,T8D,IVA,fVB,twB,ZJH,g92,PoD,CnH,lkD,UO2,ak$,XmN,KaD,E7z,kBD,$OS,Msz,qjD,bpB,OpH,mON,YjS,JVA,IkD,cV$,TKA,fkA,SjQ,ZpN,sFB,xO2,g7G,tsB,PnZ,uj,RN,uQD,w9,R6G,wcz,CC,CA$,N3z,ySD,h6G,KCZ,m7z,XcB,QyQ,jy$,Nw,LCA,rSD,WCZ,y6,nC,ka2,OWN,lj,$7H,z6A,UJ,VI$,qw,EJ,hO,KC,MIG,oT$,pc$,YFQ,
aN,ASG,mf,d7G,Xl,Q6,gTz,jX,SFZ,sy$,x7N,LC,DhG,Gm$,FrB,u1$,BJN,wrU,ikS,yxD,C4A,NJ2,nND,Uh$,leU,Kr$,QhA,ko,OJ,mhA,LrZ,Xrz,jhB,$o,bj,V6,vy,fe$,oNH,gN$,S_S,shS,xh$,GnA,$hD,ztG,pC,VFU,oN,Mw,vNN,P4B,tFG,bk2,AO,l$Q,qR$,EF$,U6z,CNG,KAH,XIS,RiQ,D6G,uT2,LAS,wIZ,cy,m6A,NeD,a$H,nFU,FAA,yZD,WA$,vFB,oFS,MoB,pID,YRA,AZS,JZ$,g9,Te$,I$A,toS,ZAD,gFZ,SRN,sQB,x6A,PNQ,GPB,BCZ,SX,ihz,FRH,DjD,ujG,lMQ,sJ,nPQ,w_B,ytD,NCN,CR2,RaU,UjA,qYU,EPz,haA,xo,KRz,aMQ,jxU,Gv,X_U,iq,Py,BA,QxB,mjN,LRD,rtQ,WRG,HhA,kP$,Oh$,$jS,za2,bhZ,V3$,
vP$,oP$,M3G,p_$,YY$,AtB,Jt$,ctS,IMD,ZhN,gPG,SYA,xj$,GfQ,izU,FHA,DkS,upD,w0$,CvG,NNA,ymH,nL2,lbU,Uk$,ELD,h9D,mkD,QGS,LH$,X0N,KHU,abU,kfA,Hz2,rmB,Oz2,WHU,e9N,vLU,VgH,z9D,bzN,FU,oLz,p0$,YdA,AmN,IbN,fbA,tgD,ZzH,gLS,Sd$,sG2,xkN,PvB,GdS,B6D,ix$,FhH,Dtz,ui$,ROZ,wPZ,CQz,N6A,y1D,nw$,lwS,UtB,q$D,hON,KhD,awU,mtG,XP2,QCH,jCD,LhN,r1$,WhS,Ox$,$tB,bxU,VTz,vwB,ow$,Hx$,kdQ,Y$z,A1Z,dtZ,J1S,c1z,T6Z,IwG,fw$,tTA,Zx$,gwQ,S$D,xtB,sCD,G9A,BI$,FvG,DVH,RP2,wUB,wR,nz$,lI$,q8z,Ez2,KvG,hP$,XUU,aIS,mVU,QDU,jDD,LvB,rR2,Wv$,HXD,
k92,OXD,ePH,$VB,zPQ,bXN,vzG,VUU,ozB,Y8D,ARB,dVU,CK,JRZ,cR$,TID,II$,fIN,tUD,ZXD,gzB,S8H,sD2,xV2,G6D,BZD,ic$,FYz,Rr2,CLH,NZ2,nWD,y5N,lX$,UB$,qlD,EWS,KYG,aXz,mB$,XbD,QKG,jKZ,LYD,r5G,WYD,HcN,k6A,zrD,bcU,erZ,$B2,Oc$,VeA,MeQ,vWZ,oWD,A5G,pbB,YlA,dBD,J5$,c5S,TZ$,fXD,teS,Zc$,SlB,sK2,PL$,B2$,FKz,uW$,wpZ,N2U,nuZ,UXS,hGA,agD,mX$,XpD,jtH,Qt$,rhB,WKA,HGN,kE2,yd,OGG,eGG,$XZ,ch2,IgZ,fgS,SCQ,Un,stG,xXz,P1G,BPU,G8D,iBU,FwQ,DU2,u8$,RYA,SXA,wfD,CJ2,NPD,DXD,yED,nEA,ZiG,l9H,UU$,q7$,EES,hYS,KwA;
PsB=function(){switch(_.pr8()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
A_=function(G){if(!G)return"browse";var B=G.page,F=G.url,D,u,R,N=(D=G.response)==null?void 0:(u=D.responseContext)==null?void 0:(R=u.webResponseContextExtensionData)==null?void 0:R.pageTheme;if(N)B=N.toLowerCase().replace(/_/g,"-");else if(B!=="watch"&&B!=="learning_journey_watch"){var y,U;if((B==="browse"||B==="settings")&&((y=G.response)==null?0:(U=y.sidebar)==null?0:U.settingsSidebarRenderer))B="WEB_PAGE_TYPE_SETTINGS";else{var q,h;B==="browse"&&((q=G.response)==null?0:(h=q.metadata)==null?0:h.channelMetadataRenderer)?
B="channel":F&&(B=_.sAc(F)||B)}}return B};
GND=function(){return new Promise(function(G){var B=window;B.attmp!==void 0?G(B.attmp):(B.attmq===void 0&&(B.attmq=[]),B.attmq.push(function(F){G(F)}))})};
B0$=function(){var G=_.Yf("yt.aba.att");return G?G:_.Fx.instance!==void 0?_.Fx.instance.lzJ.bind(_.Fx.instance):null};
irQ=function(G,B){var F,D,u;return _.n(function(R){if(R.nextAddress==1){if(!_.X("attmusi")||!_.X("attmusi_ue"))return R.jumpTo(2);F=window;return F.attmp!==void 0?R.return(F.attmp.s(G,B,6E4)):R.yield(GND(),3)}return R.nextAddress!=2?(D=R.yieldResult,R.return(D.s(G,B,6E4))):(u=B0$())?R.return(u(G,B,6E4)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
F52=function(G,B,F,D,u){B=B===void 0?[]:B;u=u?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:u}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.pR(G),dialogMessages:B.map(function(R){return _.pR(R)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pR(F),serviceEndpoint:u}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pR(D)}}}}}};
DY$=function(G,B,F,D){F||(G?D&&(D.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||D.WINDOW_SIZE_CHANGED&&(B.width!==window.innerWidth||B.height!==window.innerHeight)||D.SAFARI_ABORTED_BY_NEW_TRANSITION&&G instanceof DOMException&&G.name==="AbortError"&&G.message.includes("Old view transition aborted by new view transition"))||_.k2(G):_.k2(Error("Aj")))};
uhD=function(G,B){B=B===void 0?{}:B;var F,D,u,R,N,y,U,q,h,K,a,m,L;return _.n(function(W){switch(W.nextAddress){case 1:F=B;D=F.shouldWrap===void 0?!0:F.shouldWrap;u=F.skipTransitionTimeoutMs===void 0?300:F.skipTransitionTimeoutMs;R=F.beforeTransition;N=F.afterTransition;if(!D||!document.startViewTransition||document.visibilityState==="hidden")return W.return(G());y={width:window.innerWidth,height:window.innerHeight};U=!1;(q=R)==null||q();_.b5(W,2);h=document.startViewTransition(G);K=setTimeout(function(){h.skipTransition();
U=!0},u);
return W.yield(h.ready,4);case 4:return clearTimeout(K),W.yield(h.finished,5);case 5:clearTimeout(K);(a=N)==null||a();_.oY(W,0);break;case 2:m=_.Al(W),(L=N)==null||L(),DY$(m,y,U,B.ignoredErrors),_.di(W)}})};
R2A=function(G,B,F){F=F===void 0?!1:F;var D=_.Bv(),u=!!_.$l().queueProxy,R,N,y;G=G==null?void 0:(R=G.response)==null?void 0:(N=R.currentVideoEndpoint)==null?void 0:(y=N.watchEndpoint)==null?void 0:y.playlistId;if((u||G)&&!_.X("web_watch_disable_playlist_auto_miniplayer"))return F&&(D.playlistWatchPageActivation=!0),!0;switch(A_(B)){case "yts-products":return F&&(D.productDetailsPageActivation=!0),!0;case "mini_app":return F&&(D.miniAppPageActivation=!0),!0;case "playables":return F&&(D.playablesDestPageActivation=
!0),!0;case "companion-canvas":return F&&(D.companionCanvasActivation=!0),!0;default:return!1}};
wz$=function(G){G=_.w6Q(G);G.length>0&&G[0].focus()};
ChZ=function(G,B,F){for(var D=typeof G==="string"?G.split(""):G,u=G.length-1;u>=0;--u)u in D&&B.call(F,D[u],u,G)};
N0U=function(G,B,F){for(var D=G.length,u=typeof G==="string"?G.split(""):G,R=0;R<D;R++)if(R in u&&B.call(F,u[R],R,G))return R;return-1};
dt=function(G,B,F){B=N0U(G,B,F);return B<0?null:typeof G==="string"?G.charAt(B):G[B]};
yU$=function(G,B){B=N0U(G,B);B>=0&&_.zJs(G,B)};
nQA=function(G){return Array.prototype.concat.apply([],arguments)};
lHD=function(G){var B=0;B=B===void 0?0:B;if(!_.CN(G))throw _.iy("uint64");var F=typeof G;switch(B){case 512:switch(F){case "string":return _.JTl(G);case "bigint":return String((0,_.r$)(64,G));default:return _.AT6(G)}case 1024:switch(F){case "string":return _.cTM(G);case "bigint":return _.Yv((0,_.r$)(64,G));default:return _.d8g(G)}case 0:switch(F){case "string":return _.JTl(G);case "bigint":return _.Yv((0,_.r$)(64,G));default:return _.YGM(G)}default:return _.BS(B,"Unknown format requested type for int64")}};
UYD=function(G,B,F){if(B)return _.WS(G);var D;return(D=_.eQ(G))!=null?D:F?"":void 0};
q1Q=function(G){G!=null&&(G=G.JSC$9130_value_||"",G=typeof G==="string"?G:new Uint8Array(G));return G};
EQB=function(G,B){var F=_.HIg(B);F!=="javascript:"&&F!=="data:"&&G.setAttribute("href",B)};
h2U=function(G,B,F){return Math.abs(G-B)<=(F||1E-6)};
K5Q=function(G,B){var F=[];for(B=B||0;B<G.length;B+=2)_.BdQ(G[B],G[B+1],F);return F.join("&")};
aHQ=function(G,B){var F=arguments.length==2?K5Q(arguments[1],0):K5Q(arguments,1);return _.G_U(G,F)};
mYA=function(G,B){if(/-[a-z]/.test(B))return null;if(_.Q_q&&G.dataset){if(_.X6J()&&!(B in G.dataset))return null;G=G.dataset[B];return G===void 0?null:G}return G.getAttribute("data-"+_.s1(B))};
XzD=function(){var G=_.Of&&_.mg(_.rUy,10)>=0,B;if(B=_.XSa)B=_.mg(_.L5t,10)>=0;var F=_.PP&&_.mg(_.rUy,85)>=0;return _.ih||G||B||F};
QsU=function(G){var B=_.y7T(G);return B&&XzD()?-G.scrollLeft:B&&_.v1(G,"overflowX")!="visible"?G.scrollWidth-G.clientWidth-G.scrollLeft:G.scrollLeft};
jsS=function(G,B){B=Math.max(B,0);_.y7T(G)?XzD()?G.scrollLeft=-B:G.scrollLeft=G.scrollWidth-B-G.clientWidth:G.scrollLeft=B};
L5U=function(){var G=window.location.hash;G.charAt(0)==="#"&&(G=G.charAt(1)==="!"?G.substring(2):G.substring(1));return _.Je(G)};
W5Z=function(){var G=rUG;_.Yf("yt.ads.biscotti.getId_")||_.IY("yt.ads.biscotti.getId_",G)};
Hr$=function(G){_.IY("yt.ads.biscotti.lastId_",G)};
OrG=function(){var G={};for(_.XB=new kN$(G.handleError===void 0?_.Oz:G.handleError,G.logEvent===void 0?_.W$:G.logEvent);_.Q5.length>0;)switch(G=_.Q5.shift(),G.type){case "ERROR":_.XB.logError(G.payload);break;case "EVENT":_.XB.logEvent(G.eventType,G.payload)}};
e2G=function(G,B,F){return _.dDs(function(D){return F?D.userIdentifier!==void 0&&!G.includes(D.userIdentifier)&&F.includes(D.publicName):D.userIdentifier!==void 0&&!G.includes(D.userIdentifier)},B)};
$Y$=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1)return B=_.n8("YtIdbMeta hasAnyMeta other"),D.yield(_.dDs(function(u){return u.userIdentifier!==void 0&&u.userIdentifier!==B},G),2);
F=D.yieldResult;return D.return(F.length>0)})};
brB=function(G,B){z2B||(z2B=_.Lu.addLowPriorityJob(function(){var F,D,u,R,N;return _.n(function(y){switch(y.nextAddress){case 1:return y.yield(_.f8(),2);case 2:F=y.yieldResult;if(!F)return y.return();D=!0;_.b5(y,3);return y.yield(e2G(G,F,B),5);case 5:u=y.yieldResult;if(!u.length){D=!1;y.jumpTo(6);break}R=u[0];return y.yield(_.MS(R.actualName),7);case 7:return y.yield(_.AP(R.actualName,F),6);case 6:_.oY(y,4);break;case 3:N=_.Al(y),_.jE(N),D=!1;case 4:_.Lu.cancelJob(z2B),z2B=0,D&&brB(G,B),_.di(y)}})}))};
V_D=function(){var G;return _.n(function(B){return B.nextAddress==1?B.yield(_.f8(),2):(G=B.yieldResult)?B.return($Y$(G)):B.return(!1)})};
vQz=function(G){var B=100;B=B===void 0?500:B;var F,D,u,R,N,y;return _.n(function(U){return U.nextAddress==1?(F=_.v5("INNERTUBE_CONTEXT_CLIENT_NAME",0),D=[F,(0,_.Zl)()-2592E6],u=[F,(0,_.Zl)()],R=IDBKeyRange.bound(D,u),U.yield(_.leg(G),2)):U.nextAddress!=3?(N=U.yieldResult,y=[],U.yield(_.YK(N,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(q){y.length=0;return _.go(q.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:R,direction:"prev"},function(h){if(h.getValue()&&y.length<
B)return y.push(h.getValue()),h.delete().then(function(){return h.continue()})})}),3)):U.return(y)})};
oQD=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.f8(),2);G=B.yieldResult;if(!G||!_.lX()&&!_.X("nwl_init_require_datasync_id_killswitch")||!_.ztl())return B.jumpTo(0);_.VFg=!0;_.bkg.isNwlInitialized=_.VFg;return B.yield(_.E9L().awaitInitialization(),0)})};
J_=function(G,B){_.sh6[G]=!0;var F=_.gg();F&&F.publish.apply(F,arguments);_.sh6[G]=!1};
pzD=function(){if(_.OWQ()&&!M_A){var G=function(F){F=F.data;if(F.op==="serializedGelBatch"){var D=_.sQJ.get(F.key);D&&(_.PN8(F.serializedBatch,D.client,D.resolve,D.networklessOptions,D.isIsolated,D.useVSSEndpoint,D.dangerousLogToVisitorSession,D.requestsOutstanding),_.sQJ.delete(F.key))}},B=_.kag();
B&&(B.addEventListener("message",G),B.onerror=function(){_.sQJ.clear()});
M_A=!0}};
Y1Q=function(){this.relativeTimeStart_=_.Td()};
AUD=function(G,B){G!=null&&this.append.apply(this,arguments)};
cW=function(){for(var G=Array(36),B=0,F,D=0;D<36;D++)D==8||D==13||D==18||D==23?G[D]="-":D==14?G[D]="4":(B<=2&&(B=33554432+Math.random()*16777216|0),F=B&15,B>>=4,G[D]=_.chg[D==19?F&3|8:F]);return G.join("")};
dYB=function(){return _.mV("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
IH2=function(){var G=_.UK.clone(JUB),B;return(new _.DS(function(F,D){G.onSuccess=function(u){_.Yqo(u)?F(new cU$(u)):D(new T0Q("Request failed, status="+_.BQ(u),"net.badstatus",u))};
G.onError=function(u){D(new T0Q("Unknown request error","net.unknown",u))};
G.onTimeout=function(u){D(new T0Q("Request timed out","net.timeout",u))};
B=_.uX("//googleads.g.doubleclick.net/pagead/id",G)})).thenCatch(function(F){if(F instanceof _.eg){var D;
(D=B)==null||D.abort()}return _.U_(F)})};
fH$=function(G,B,F){F=F===void 0?!1:F;var D,u,R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:_.NS("SOCS",G,34128E3,"youtube.com",!0);if(_.xw)return u=fetch(B,{method:"POST",mode:_.WZ(B),credentials:_.Li(B),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),R=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.WZ("/upgrade_visitor_cookie?eom=1"),credentials:_.Li("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),U.yield(Promise.all([u,R]).then(function(q){return q[1]}),5);
fetch(B,{method:"POST",mode:_.WZ(B),credentials:_.Li(B),cache:"no-store",headers:{"Content-Type":"text/plain"}});return U.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.WZ("/upgrade_visitor_cookie?eom=1"),credentials:_.Li("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:D=U.yieldResult;U.jumpTo(3);break;case 5:D=N=U.yieldResult;case 3:if(!D.ok)throw Error("vf");return U.yield(D.text(),7);case 7:y=U.yieldResult,
!y.includes('"state_switch":true')&&!F||y.includes("skip_reload_for_test")||window.location.reload(),_.di(U)}})};
t_D=function(G){return _.n(function(B){return B.nextAddress==1?B.yield(fH$(G.socsCookie,G.savePreferenceUrl,!0),2):B.return()})};
ZrU=function(G){return _.n(function(B){return B.nextAddress==1?B.yield(fH$(G.socsCookie,G.savePreferenceUrl),2):B.return()})};
S1B=function(G){a:{var B="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(B="EMBEDDED_PLAYER_MODE_PFL");var F=G.raw_embedded_player_response;if(!F&&(G=G.embedded_player_response))try{F=JSON.parse(G)}catch(u){break a}if(F)b:{G=gQA;for(var D in G)if(G[D]==F.embeddedPlayerMode){B=G[D];break b}}}return B==="EMBEDDED_PLAYER_MODE_PFL"};
ssz=function(){if(_.X("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.TrS())return Error("xf");var G=_.v5("PLAYER_VARS",{});if(_.UK.get(G,"privembed",!1)=="1")return Error("yf");if(S1B(G))return Error("zf")};
BsN=function(G){G=G.xhr.responseText;if(!_.wU(G,")]}'"))throw new xY$;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new xY$;G=G.id;Hr$(G);Ph$=_.$Z(G);G1U(18E5,2);return G};
FVQ=function(G,B){B=new iiG(B);Hr$("");Ph$=_.yFs(B);G>0&&G1U(12E4,G-1);throw B;};
G1U=function(G,B){_.iX(function(){IH2().then(BsN,function(F){return FVQ(B,F)}).thenCatch(_.qB)},G)};
rUG=function(){var G=ssz();if(G!==void 0)return _.U_(G);Ph$||(Ph$=IH2().then(BsN).thenCatch(function(B){return FVQ(2,B)}));
return Ph$};
DW$=function(){var G=document;return dt(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(B){return"on"+B.toLowerCase()in G})};
uK2=function(G){G.addEventListener("click",function(B){var F=B.target;F&&F.getAttribute("href")&&(F=F.getAttribute("href"),_.wi(window,F,"_blank"),B.preventDefault(),B.stopImmediatePropagation())})};
R7Q=function(){var G=_.Rg();G.info||(G.info={});return G.info};
TU=function(){return(_.X("csi_use_time_origin")||_.X("csi_use_time_origin_tvhtml5"))&&_.nR.timeOrigin?Math.floor(_.nR.timeOrigin):_.nR.timing.navigationStart};
Im=function(G){return Math.round(TU()+G)};
wZz=function(){var G;if(_.X("csi_use_performance_navigation_timing")){var B,F,D,u=_.nR==null?void 0:(G=_.nR.getEntriesByType)==null?void 0:(B=G.call(_.nR,"navigation"))==null?void 0:(F=B[0])==null?void 0:(D=F.toJSON)==null?void 0:D.call(F);u?(u.requestStart=Im(u.requestStart),u.responseEnd=Im(u.responseEnd),u.redirectStart=Im(u.redirectStart),u.redirectEnd=Im(u.redirectEnd),u.domainLookupEnd=Im(u.domainLookupEnd),u.connectStart=Im(u.connectStart),u.connectEnd=Im(u.connectEnd),u.responseStart=Im(u.responseStart),
u.secureConnectionStart=Im(u.secureConnectionStart),u.domainLookupStart=Im(u.domainLookupStart),u.isPerformanceNavigationTiming=!0,G=u):G=_.nR.timing}else G=_.X("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.nR.timing)):_.nR.timing;return G};
C2Z=function(){if(_.nR.getEntriesByType){var G=_.nR.getEntriesByType("paint");if(G=dt(G,function(F){return F.name==="first-paint"}))return Im(G.startTime)}var B;
_.X("csi_use_performance_navigation_timing")?B=_.nR.getEntriesByType("first-paint")[0].startTime:B=_.nR.timing.msFirstPaint;return B?Math.max(0,B):0};
yLZ=function(){var G=window.location.protocol,B=_.nR.getEntriesByType("resource");B=_.Zw(B,function(F){return F.name.indexOf(G+"//fonts.gstatic.com/s/")===0});
(B=Ns$(B,function(F,D){return D.duration>F.duration?D:F}))&&B.startTime>0&&B.responseEnd>0&&(_.Na("wffs",Im(B.startTime)),_.Na("wffe",Im(B.responseEnd)))};
nyA=function(G,B){G=document.querySelector(G);if(!G)return!1;var F="",D=G.nodeName;D==="SCRIPT"?(F=G.src,F||(F=G.getAttribute("data-timing-href"))&&(F=window.location.protocol+F)):D==="LINK"&&(F=G.href);_.CI(document)&&G.setAttribute("nonce",_.CI(document));return F?(G=_.nR.getEntriesByName(F))&&G[0]&&(G=G[0],F=TU(),_.Na("rsf_"+B,F+Math.round(G.fetchStart)),_.Na("rse_"+B,F+Math.round(G.responseEnd)),G.transferSize!==void 0&&G.transferSize===0)?!0:!1:!1};
UWD=function(G,B){_.pH(function(){_.CR("").info.actionType=G;B&&_.Vc("TIMING_AFT_KEYS",B);_.Vc("TIMING_ACTION",G);var F=_.cXI(_.v5("TIMING_INFO",{}));Object.keys(F).length>0&&_.yY(F);F={isNavigation:!0,actionType:_.$yg(_.v5("TIMING_ACTION"))};var D=_.v5("PREVIOUS_ACTION");D&&(F.previousAction=_.$yg(D));if(D=_.v5("CLIENT_PROTOCOL"))F.httpProtocol=D;if(D=_.v5("CLIENT_TRANSPORT"))F.transportProtocol=D;(D=_.qW())&&D!=="UNDEFINED_CSN"&&(F.clientScreenNonce=D);D=PsB();if(D===1||D===-1)F.isVisible=!0;D=
_.jel().loadType==="cold";var u=R7Q();D||(D=u.yt_lt==="cold");if(D){F.loadType="cold";D=R7Q();u=wZz();var R=TU(),N=_.v5("CSI_START_TIMESTAMP_MILLIS",0);N>0&&!_.X("embeds_web_enable_csi_start_override_killswitch")&&(R=N);R&&(_.Na("srt",u.responseStart),D.prerender!==1&&_.olS(R));D=C2Z();D>0&&_.Na("fpt",D);D=wZz();D.isPerformanceNavigationTiming&&_.yY({performanceNavigationTiming:!0},void 0);_.Na("nreqs",D.requestStart,void 0);_.Na("nress",D.responseStart,void 0);_.Na("nrese",D.responseEnd,void 0);
D.redirectEnd-D.redirectStart>0&&(_.Na("nrs",D.redirectStart,void 0),_.Na("nre",D.redirectEnd,void 0));D.domainLookupEnd-D.domainLookupStart>0&&(_.Na("ndnss",D.domainLookupStart,void 0),_.Na("ndnse",D.domainLookupEnd,void 0));D.connectEnd-D.connectStart>0&&(_.Na("ntcps",D.connectStart,void 0),_.Na("ntcpe",D.connectEnd,void 0));D.secureConnectionStart>=TU()&&D.connectEnd-D.secureConnectionStart>0&&(_.Na("nstcps",D.secureConnectionStart,void 0),_.Na("ntcpe",D.connectEnd,void 0));_.nR&&"getEntriesByType"in
_.nR&&yLZ();D=[];if(document.querySelector&&_.nR&&_.nR.getEntriesByName)for(var y in lLD)lLD.hasOwnProperty(y)&&(u=lLD[y],nyA(y,u)&&D.push(u));if(D.length>0)for(F.resourceInfo=[],y=_.C(D),D=y.next();!D.done;D=y.next())F.resourceInfo.push({resourceCache:D.value})}_.yY(F);F=_.w5();F.preLoggedGelInfos||(F.preLoggedGelInfos=[]);y=F.preLoggedGelInfos;F=_.rXI();D=void 0;for(u=0;u<y.length;u++)if(R=y[u],R.loadType){D=R.loadType;break}if(_.jel().loadType==="cold"&&(F.loadType==="cold"||D==="cold")){D=_.LJJ();
u=_.w5();u=u.gelTicks?u.gelTicks:u.gelTicks={};for(var U in D)U in u||typeof D[U]==="number"&&_.Na(U,_.lf(U));U={};D=!1;y=_.C(y);for(u=y.next();!u.done;u=y.next())D=u.value,_.aa(F,D),_.aa(U,D),D=!0;D&&_.yY(U)}_.Ihg(!0);U=_.v5("TIMING_ACTION");_.Yf("ytglobal.timingready_")&&U&&_.GTg()&&_.TBl()&&_.dyL()})()};
qwN=function(G){var B,F,D,u=(D=(F=((B=G.mainDownloadsListEntity)!=null?B:{})[_.hos])==null?void 0:F.refresh)!=null?D:"",R;G=(R=G.refresh)==null?void 0:R[u];u=G!=null?G:{};return(u==null?0:u.refreshTime)?Number(u==null?void 0:u.refreshTime):0};
EyD=function(G,B){var F=_.ND(G);return B.every(function(D){var u;D=D==null?void 0:(u=D.playbackDataEntity)==null?void 0:u.key;if(!D)return!1;u=_.Z4(_.cT(D).entityId,"mainVideoEntity");return!!F[u]})};
h7D=function(G){return G.ui.guideIsVisibleButNotPersistent};
KV$=function(G){return G.ui.scrollAtTop};
aLU=function(G){return G.ui.tabGesturesIsActive};
mW$=function(G){G=_.R9(G.entities);return _.$Rg(G).length};
XZG=function(G,B){if(B){var F;G=(F=_.g5(G.entities,"downloadQualityPickerEntity",B))!=null?F:void 0}else G=void 0;return G};
fv=function(G,B,F){var D;return _.n(function(u){if(u.nextAddress==1)return u.yield(B(),2);D=u.yieldResult;F(D,G);_.di(u)})};
QaG=function(){return _.n(function(G){return G.nextAddress==1?G.yield((ssz()!==void 0?_.U_(Error("Af")):IH2()).then(function(){return 1},function(B){if(B.message==="Biscotti id is disabled")return 3;
_.em("Failed fetching bid");return 0}),2):G.return(G.yieldResult)})};
LVD=function(){var G=_.pJ("dTZxdGVseXQtaGF2ZW4tZW1iZWQtcGxheWVyI2xucjRrMA=="),B=_.pJ("dHNpZnJhbWUjZjdjdjVxdnpmbA==");return document.querySelector(B+jaZ+G)?0:1};
rLA=function(G){var B=document.getElementsByTagName("ytd-enforcement-message-view-model");B.length===0||getComputedStyle(B[0]).display==="none"?G(0,"p.h_"):G(1,"p.h_")};
WV$=function(){return _.ekQ(_.Vq)};
HiA=function(){return _.$oQ()===0?0:_.zk8()};
k12=function(){return _.MPS(_.s$M([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
e7$=function(){return _.QA8(OiG)};
$WZ=function(G){_.n(function(B){switch(B.nextAddress){case 1:return B.yield(fv("b.f_",QaG,G),2);case 2:return B.yield(fv("j.s_",_.moI,G),3);case 3:return B.yield(fv("r.s_",_.hkM,G),4);case 4:return B.yield(fv("e.h_",e7$,G),5);case 5:if(!_.X("ab_det_sc_inj")){B.jumpTo(6);break}return B.yield(fv("s.i_",_.kFS,G),6);case 6:if(_.X("ab_deg_unex_thr")){B.jumpTo(8);break}return B.yield(fv("a.o_",_.W36,G),8);case 8:if(_.X("ks_get_o_pp")){B.jumpTo(10);break}return B.yield(fv("g.o_",_.rFQ,G),10);case 10:if(_.X("ks_det_gpbl")){B.jumpTo(12);
break}return B.yield(fv("p.i_",_.L3l,G),12);case 12:return B.yield(fv("f.i_",_.uro,G),14);case 14:return B.yield(fv("a.b_",_.qts,G),15);case 15:return B.yield(fv("p.m_",_.Ce8,G),16);case 16:if(!_.X("ab_det_el_h_v2")){B.jumpTo(17);break}return B.yield(fv("n.h_",k12,G),17);case 17:return B.yield(fv("o.p_",WV$,G),19);case 19:return B.yield(fv("e.i_",LVD,G),20);case 20:if(_.X("ab_det_apm"))return B.yield(fv("o.a_",HiA,G),0);B.jumpTo(0)}})};
z7Q=function(G){switch(G){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:_.BS(G,"unknown result type")}};
biQ=function(G,B,F){B=_.Irs[B];F={detected:G===0,source:B.roS,detectionResult:z7Q(G),contentCpn:F};_.W$("biscottiBasedDetection",F);_.rva.increment(B.roS,G);B.x87!==void 0&&_.Vc("CATSTAT",_.cF6(G,B))};
oyD=function(){VaG=0;var G=[_.Bm(!0)];vyB&&_.Ia(vyB,"yt-window-resized",G)};
MaA=function(){VaG||(VaG=_.Lu.addLowPriorityJob(oyD,200))};
ALz=function(){pZA=0;YwH=_.okv(document);var G=[YwH];vyB&&_.Ia(vyB,"yt-window-scrolled",G)};
dWB=function(){pZA||(pZA=_.Lu.addLowPriorityJob(ALz,200))};
cLH=function(G){G=G===void 0?null:G;JLA.push(_.IB(window,"resize",MaA));JLA.push(_.IB(window,"scroll",dWB));G&&(vyB=G)};
TsN=function(G){G=G.target.result;G.objectStoreNames.contains("swpushnotificationsstore")&&G.deleteObjectStore("swpushnotificationsstore");G.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
fLB=function(){return ILH?Promise.resolve(ILH):new Promise(function(G,B){var F=self.indexedDB.open("swpushnotificationsdb");F.onerror=B;F.onsuccess=function(){var D=F.result;if(D.objectStoreNames.contains("swpushnotificationsstore"))ILH=D,G(ILH);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),fLB()};
F.onupgradeneeded=TsN})};
t_=function(G){var B=new _.Uf("Error accessing DB");return fLB().then(function(F){return new Promise(function(D,u){try{var R=F.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(G);R.onsuccess=function(){var N=R.result;D(N?N.value:null)};
R.onerror=function(){B.params={key:G,source:"onerror"};u(B)}}catch(N){B.params={key:G,
thrownError:String(N)},u(B)}})},function(){return null})};
taz=function(G,B){var F={};F.key=G;F.value=B;return fLB().then(function(D){return new Promise(function(u,R){try{var N=D.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(F);N.onsuccess=function(){u()};
N.onerror=function(){R()}}catch(y){R(y)}})})};
gyZ=function(){var G=_.NO.getLocalStorage();G&&ZiG(G,G.mechanism.__iterator__(!0))};
SwD=function(G){_.n(function(B){if(B.nextAddress==1)return B.yield(G.delete("yt-appshell-assets"),2);_.di(B)})};
sa2=function(G){return _.p8((0,_.l5N)(),G)};
P2N=function(){var G;_.n(function(B){return B.nextAddress==1?B.yield(ZD.getInstance(),2):(G=B.yieldResult)?B.yield(xWH(G),0):B.jumpTo(0)})};
B5U=function(){var G;_.n(function(B){return B.nextAddress==1?B.yield(gt.getInstance(),2):(G=B.yieldResult)?B.yield(G7Q(G),0):B.jumpTo(0)})};
iRS=function(G){SwD(G);P2N();B5U()};
Fb$=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(_.hhs(G),2);if(B=D.yieldResult){var u;a:{if(B.headers&&(u=B.headers.get("date"))&&(u=Date.parse(u),!isNaN(u))){u=Math.round((0,_.Zl)()-u);break a}u=-1}F=u;if(F>-1)return D.return(F)}return D.return(-1)})};
Da$=function(){var G=_.Fz.caches,B=_.on("IS_SHELL_LOAD"),F,D;_.n(function(u){if(u.nextAddress==1)return F=-1,B?u.yield(Fb$(G),3):(D=TU(),F=Math.round((0,_.Zl)()-D),u.jumpTo(2));u.nextAddress!=2&&(F=u.yieldResult);F>=0&&F<2147483648&&_.qa({appInstallDataAgeMs:F});_.di(u)})};
uwB=function(G){var B=_.pn(_.Fz.location.href),F={};"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(D){var u=B.JSC$10342_queryData_.getValues(D);if(u==null?0:u.length)F[D]=u});
return _.H7(G,new Map(Object.entries(F)))};
RR$=function(G){return _.bDI(_.zhg(G&16777215))<.5};
wTG=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
CfZ=function(G){if(_.V$o()){var B=Object.keys(window.localStorage);B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=wTG(F);D===void 0||G.includes(D)||self.localStorage.removeItem(F)}}};
N5z=function(){if(!_.V$o())return!1;var G=_.n8(),B=Object.keys(window.localStorage);B=_.C(B);for(var F=B.next();!F.done;F=B.next())if(F=wTG(F.value),F!==void 0&&F!==G)return!0;return!1};
yJU=function(G){return taz("NotificationsDisabled",G)};
nIQ=function(){var G=_.xf("service_worker_scope");try{return navigator.serviceWorker.getRegistration(G)}catch(B){return Promise.reject(B)}};
l4$=function(){return Notification.permission!="granted"?Promise.resolve():nIQ().then(function(G){return G?G.pushManager.getSubscription().then(function(B){if(B)return Promise.resolve();B={userVisibleOnly:!0,applicationServerKey:_.P6("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return G.pushManager.subscribe(B).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
UaD=function(G){return nIQ().then(function(B){if(!B||!B.active)return Promise.reject(new _.Uf("serviceworker.postMessage",G,B));try{return B.active.postMessage(G),Promise.resolve()}catch(F){return Promise.reject(F)}})};
qqS=function(){UaD({type:"notifications_register",data:_.v5("ID_TOKEN")})};
EIA=function(G){return!(!G||!G.pushManager)};
hR$=function(){return nIQ().then(EIA).catch(function(){return!1})};
KbA=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?hR$():Promise.resolve(!1)};
XTD=function(){var G={isWide:_.C8.get("wide","0")==="1"},B=_.D4();if(B=B.getFlag(165)||B.getFlag(174))G.theme=_.rK(!0);if(_.x5U()){var F=_.Lp()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G.systemTheme=F}!B&&_.X("parent_tools_enable_app_settings")&&_.c5(window.location.href).theme!==void 0&&(G.theme=_.rK());if((B=a4$)?!_.UK.equals(B,G):G)B={currentValue:G},maQ&&(B.timeSinceLastSnapshotSecs=Math.round(((0,_.Zl)()-maQ)/1E3)),a4$&&(B.previousValue=a4$),_.W$("appSettingsCaptured",B),a4$=
G,maQ=(0,_.Zl)()};
QgH=function(){if(!_.on("LOGGED_IN"))return Promise.resolve(!1);var G=_.xf("service_worker_push_force_notification_prompt_tag");return G?t_("PromptTags").then(function(B){if(!B)return!0;var F=[];try{F=JSON.parse(B)}catch(D){return!1}return F&&F.indexOf(G)==-1}):Promise.resolve(!1)};
jgD=function(){var G=_.sD("service_worker_push_prompt_delay_microseconds");return G?t_("PromptTime").then(function(B){return Promise.resolve(Date.now()-G>(B||0))}):Promise.resolve(!0)};
LbA=function(){var G=_.sD("service_worker_push_logged_out_prompt_watches");return G==-1?Promise.resolve(!1):t_("WatchCount").then(function(B){return B>=G})};
rJ$=function(){var G=_.JZ(document,"yt-push-prompt-modal-bg");G&&_.B1(G)};
WbB=function(){return _.sD("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):t_("PromptCount").then(function(G){G||(G=0);return Promise.resolve(G<_.sD("service_worker_push_prompt_cap"))})};
HR$=function(G){return _.on("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.on("LOGGED_IN")&&(G===void 0?0:G)?QgH().then(function(B){if(B)return!0;B=[WbB(),jgD()];_.on("LOGGED_IN")||B.push(LbA());return Promise.all(B).then(function(F){return F.every(function(D){return D})})}):Promise.resolve(!1)};
k7$=function(){t_("PromptCount").then(function(G){return taz("PromptCount",G+1)}).then(function(){return taz("PromptTime",Date.now())}).then(function(){var G=_.xf("service_worker_push_force_notification_prompt_tag");
if(G)return t_("PromptTags").then(function(B){var F=[];if(B)try{F=JSON.parse(B)}catch(D){return!1}F||(F=[]);F.push(G);return taz("PromptTags",JSON.stringify(F))})})};
eRS=function(){ORQ||rJ$()};
$a$=function(G){G.style.zIndex=2147483648;G.style.pointerEvents="auto";G.style.backgroundColor="rgba(0, 0, 0, 0.6)";G.style.width="100%";G.style.height="100vh";G.style.position="absolute";G.style.top="0";G.style.left="0";G.style.border="none"};
zRD=function(){var G=_.JZ(document,"yt-push-prompt-modal-bg");ORQ=_.X("service_worker_push_prompt_modal_ignore_click");G?$a$(G):(G=_.Qy("div",{id:"yt-push-prompt-modal-bg"}),$a$(G),document.body.appendChild(G),_.fes(document,"click",eRS))};
bRA=function(){var G=arguments;_.X("service_worker_push_prompt_modal_enable")&&zRD();return Notification.requestPermission().then(function(B){rJ$();var F=document.getElementById("ticker");F&&(F.className=F.classList.remove("show"));if(B=="granted")return l4$().then(function(){yJU(!1);qqS();return Promise.resolve(!0)});
B=="denied"&&qqS();return Promise.resolve(!1)}).catch(function(){rJ$();
return Promise.reject.apply(Promise,_.gi(G))})};
VDB=function(G){G=G===void 0?!1:G;var B=_.Oj().client;if(B&&B.browserVersion){var F=B.browserVersion,D=B.browserName=="CHROME"&&_.mg(F,"50.0.0")<0;B=B.browserName=="OPERA"&&_.mg(F,"42.0.0")<0;if(D||B)return Promise.resolve()}return KbA().then(function(u){if(!u)return Promise.resolve();u=l4$().then(function(){return UaD({type:"notifications_check_registration",data:_.v5("ID_TOKEN")})});
return Notification.permission!="default"?u.catch(function(){}):u.then(function(){return HR$(G)}).then(function(R){if(R)return k7$(),bRA().then(function(){})}).catch(function(){})})};
vI$=function(G){return EIA(G)?VDB():Promise.resolve()};
oIG=function(G){var B=G.installing||G.waiting;return G.active||!B?Promise.resolve(G):new Promise(function(F){var D=function(u){u=u.target;if(u.state==="activated"||u.state==="redundant")B.removeEventListener("statechange",D),F(G)};
B.addEventListener("statechange",D)})};
MD$=function(){var G=new _.j1g("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.iQ(G,{mainAppWeb:_.es()});var B=_.b2T;_.X("service_worker_forward_exp_params")&&(B=uwB(B));try{var F=_.un8(B).catch(function(){_.Fi(G,"FAILURE");return new Promise(function(){})});
_.X("service_worker_push_enabled")&&F.then(function(D){_.Fi(G,"SUCCESS");return D}).then(oIG).then(vI$)}catch(D){if(_.Fi(G,"FAILURE"),D.name!=="SecurityError")throw D;
}};
pTD=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&MD$()};
S4=function(G,B,F,D,u){var R={};B&&(R[B]=F);D?R.errorType=D:u&&(R.errorReason=u);_.W$(G,R);_.H$()};
Yq$=function(G,B){var F={};B&&(F.serializedYpcFamilyCreateLoggingParams=B);_.W$(G,F);_.H$()};
AJ2=function(G,B){var F={};F.serializedYpcRefundFlowLoggingParams=B;G&&(F.eventType=G);_.W$("ypcRefundFlowEvent",F);_.H$()};
daN=function(G){G&&_.wO6("transactionFlowSucceeded",G)};
JJZ=function(){S4("ypcRedeemFlowStarted")};
cJS=function(G){S4("ypcRedeemFlowFailed",void 0,void 0,void 0,G)};
T5$=function(G){G&&S4("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
sa=function(G){return function(B,F){var D=G||F.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(B,F,{get:function(){var u;return this.$?this.$[D]:(u=_.Bc(this))==null?void 0:u.querySelector("#"+D)},
enumerable:!0,configurable:!0})}};
I4U=function(G){if(G=_.LTs(G)){var B;(B=G.sources)!=null&&B[0]?(B=_.WTz(G),B=B<1?"VERTICAL":B>1?"HORIZONTAL":"SQUARE"):B=void 0;return B}};
f4D=function(G){return(G=_.LTs(G))?_.WTz(G):0};
tDB=function(G){var B,F,D,u,R,N,y;_.n(function(U){if(U.nextAddress==1)return U.yield(_.X3g(),2);if(U.nextAddress!=3){if(!U.yieldResult)return U.return(!1);B=[];return U.yield(_.Ih.keys(),3)}F=U.yieldResult;D=_.C(F);for(u=D.next();!u.done;u=D.next())R=u.value,N=_.ay6(R),y=N.datasyncId,!y||G.includes(y)||B.push(_.Ih.delete(R));return U.return(Promise.all(B).then(function(q){return q.some(function(h){return h})}))})};
ZRG=function(){var G,B,F,D,u,R,N;return _.n(function(y){if(y.nextAddress==1)return y.yield(_.X3g(),2);if(y.nextAddress!=3){if(!y.yieldResult)return y.return(!1);G=_.n8("cache contains other");return y.yield(_.Ih.keys(),3)}B=y.yieldResult;F=_.C(B);for(D=F.next();!D.done;D=F.next())if(u=D.value,R=_.ay6(u),(N=R.datasyncId)&&N!==G)return y.return(!0);return y.return(!1)})};
gID=function(G,B){return _.g5(G.entities,"timedMarkersListSyncEntity",B)};
SqB=function(G,B){return _.g5(G.entities,"liveReactionsDataEntity",B)};
sgA=function(G,B){G=_.g5(G.entities,"booleanEntity",B);return!(!G||!G.value)};
xa2=function(G,B){var F=_.qW();F&&G&&_.WT(F,_.yX(G),B)};
PfD=function(G){return G.watch.isWatchActive};
GxN=function(G){return G.watch.isLearningJourneyActive};
B8H=function(G){return G.watch.watchWindowSize};
iJz=function(G){return!_.jNo(G)};
xn=function(G){return G.watch.watchScrollTop};
FD$=function(G){return G.watch.isLiveChatCollapsed};
DDS=function(G,B){return _.g5(G.entities,"flowStateEntity",B)};
u9Q=function(){var G=_.te().resolve(_.fH(_.ot7));return G?G.getCurrentTime():0};
RSz=function(G,B){G={videoId:G};B&&(G.playlistId=B);return G};
w2D=function(){var G,B,F,D,u,R,N,y,U,q,h,K,a,m;return _.n(function(L){switch(L.nextAddress){case 1:G={},B=_.rpQ(),F=_.C(Object.entries(B)),D=F.next();case 4:if(D.done){L.jumpTo(3);break}u=D.value;R=_.C(u);N=R.next().value;y=R.next().value;U=N;q=y;if(!q){L.jumpTo(5);break}return L.yield(q(),8);case 8:G[U]=L.yieldResult;case 5:D=F.next();L.jumpTo(4);break;case 2:h=_.C(),K=h.next();case 9:if(K.done){L.jumpTo(3);break}a=K.value;m=B[a];if(!m){L.jumpTo(10);break}return L.yield(m(),13);case 13:G[a]=L.yieldResult;
case 10:K=h.next();L.jumpTo(9);break;case 3:return L.return(G)}})};
Co2=function(){var G;_.n(function(B){if(B.nextAddress==1)return B.yield(w2D(),2);G=B.yieldResult;return B.yield(navigator.clipboard.writeText(JSON.stringify(G,null,2)),0)})};
N8S=function(G,B){if(G&&B){var F=_.Fj();F().set(G,B);_.b1s(F())}};
ycD=function(G,B){if(G&&B){var F=_.Fj();F().set(G,B);_.b1s(F())}};
n9A=function(G,B){return _.g5(G.entities,"superThanksSelectedTierEntity",B)};
lVA=function(G,B){return _.g5(G.entities,"contextNoteUserRatingEntityPayload",B)};
UDD=function(){_.X("web_watch_log_theater_mode")&&_.Z0S("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
qXU=function(G,B,F){if(!G.includes("START_TIME_PLACEHOLDER")||!G.includes("END_TIME_PLACEHOLDER"))return G;var D=new Date(0),u=new Date(0);D.setUTCMilliseconds(B);u.setUTCMilliseconds(F);return G.replace("START_TIME_PLACEHOLDER",_.k9(D,7)).replace("END_TIME_PLACEHOLDER",_.k9(u,7))};
E9$=function(G,B,F){var D=F.minimumRowsOfVideosBetweenSections===void 0?1:F.minimumRowsOfVideosBetweenSections;return G<(F.minimumRowsOfVideosAtStart===void 0?2:F.minimumRowsOfVideosAtStart)||B!==null&&G-B<=D?!1:!0};
hSZ=function(G,B){var F=0,D=0;G=_.C(G);for(var u=G.next();!u.done;u=G.next()){var R=u.value;if(R.richItemRenderer)R.richItemRenderer.rowIndex=D,R.richItemRenderer.colIndex=F++,F===B&&(F=0,D++);else if(R.richGroupRenderer&&R.richGroupRenderer.numColumns!==void 0)R.richGroupRenderer.rowIndex=D,R.richGroupRenderer.colIndex=F,F+=R.richGroupRenderer.numColumns,F===B&&(F=0,D++);else if(R.richSectionRenderer){var N=u=void 0;if(R=_.Q((u=R)==null?void 0:(N=u.richSectionRenderer)==null?void 0:N.content,_.Zoa))R.rowIndex=
D++}}};
KDZ=function(G,B){var F=B.contentElement;B=B.rendererToTagNameMap;if(F&&B&&B.size!==0){for(var D=new Map,u=_.C(F.children),R=u.next();!R.done;R=u.next()){R=R.value;var N=R.tagName.toLowerCase(),y=D.get(N);y||(y=[],D.set(N,y));y.push(R)}if(D.size!==0)for(u=Math.min(G.length,F.children.length),R=new Map,N=0;N<u;N++){y=Object.keys(G[N])[0];y=B.get(y);if(!y)break;var U=R.get(y);U===void 0&&(U=0,R.set(y,U));var q=D.get(y);if(!q||U>=q.length)break;R.set(y,U+1);y=q[U];U=F.children[N];U!==y&&(_.Mh=!0,_.pk.set(y,
!0),F.insertBefore(y,U),_.pk.delete(y),_.Mh=!1)}}};
aVB=function(G,B,F,D,u,R,N){D=D===void 0?{}:D;if(!G||!G.length)return{orderedContent:[]};G=G.slice();var y=[],U=[];u=null;for(var q=0,h=function(t){U.sort(function(Z,P){return P.skippedOnRow-Z.skippedOnRow});
for(var T,A=(T=U.shift())==null?void 0:T.content;A;)!A.richSectionRenderer&&t||y.push(A),T=void 0,A=(T=U.shift())==null?void 0:T.content},K=void 0,a=void 0,m=new Set;G.length>0||U.length>0;){for(var L=[],W=B;W>0;){var e=void 0,b=void 0,M=(b=U[0]&&U[0].skippedOnRow<q?(e=U.shift())==null?void 0:e.content:void 0)!=null?b:G.shift();
if(!M)break;if(M.richItemRenderer)e=M.richItemRenderer.targetId,b=void 0,e&&((b=N)==null?0:b.has(e))&&(b=N.get(e),!K||b&&b.timestamp>K.timestamp)&&(K=b,a&&m.add(a),a=e),L.push(M),W--;else if(M.richGroupRenderer&&M.richGroupRenderer.numColumns!==void 0)M.richGroupRenderer.numColumns<=W?(L.push(M),W-=M.richGroupRenderer.numColumns):W===B&&M.richGroupRenderer.numColumns>B?(L.push({richGroupRenderer:Object.assign({},M.richGroupRenderer,{numColumns:B})}),W=0):U.push({content:M,skippedOnRow:q});else if(M.richSectionRenderer)if(E9$(q,
u,D)&&W===B){y.push(M);u=q;q++;continue}else U.push({content:M,skippedOnRow:q});else if(M.continuationItemRenderer){h(!0);y.push(M);W=0;break}if(W===0)y.push.apply(y,_.gi(L));else if(!F&&G.length===0){h(!1);y.push.apply(y,_.gi(L));W=0;break}}q++;K&&(y.push(K.content),q++);a=K=void 0}hSZ(y,B);R&&KDZ(y,R);return{orderedContent:y,pinnedContentNotShownTargetIds:m}};
mDD=function(G){return G.shorts.isSmallScreenSqueezeback};
X2$=function(G){return G.shorts.isPlaybackStarted};
j9z=function(){if(_.X("kevlar_home_skeleton")&&!Q9$){var G=document.querySelector("#home-page-skeleton");G&&(_.KR("hgcr"),_.B1(G),Q9$=!0)}};
WDz=function(){if(_.TrS()){var G=_.v5("PLAYER_VARS",{});if(_.UK.get(G,"privembed",!1)!="1"&&!S1B(G)){var B=function(){LDS=!0;"google_ad_status"in window?_.Vc("DCLKSTAT",1):_.Vc("DCLKSTAT",2)};
try{_.Q9(_.bIQ,B)}catch(F){}rcD.push(_.Lu.addLowPriorityJob(function(){if(!(LDS||"google_ad_status"in window)){try{_.oZz(_.bIQ.toString(),B)}catch(F){}LDS=!0;_.Vc("DCLKSTAT",3)}},5E3))}}};
HJS=function(G){return!!G.getOptions("captions")};
kxD=function(G){return(G=G.getOption("captions","track"))?!!G.displayName:!1};
OJD=function(G){return dt(G,function(B){return B.languageCode==="en"})};
eS$=function(G){var B=PW;if(kxD(G))G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{});else{var F=dt(_.Zyg(G),function(D){return D.displayName===B});
G.setOption("captions","track",F)}};
$DZ=function(G,B){return{popup:{searchSuggestionReportDialog:{searchQuery:G,title:_.G7("SBOX_INAPPROPRIATE_TITLE"),suggestions:B,categoryLabel:_.G7("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.G7("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.G7("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.G7("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.G7("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.G7("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.G7("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.G7("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.G7("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.G7("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
zSD=function(G){var B=_.D4();if(B.getFlag(202))B=B.getFlag(201);else{var F;B=(G==null?void 0:(F=G.config)==null?void 0:F.settingOnByDefault)!==void 0?G.config.settingOnByDefault:!_.Nk("web_shorts_cinematics_disabled_by_default")}return B};
bJ$=function(G){var B=_.D4();_.uf(0,201,G);_.uf(0,202,!0);B.save()};
VwB=function(G){var B,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t;return _.n(function(T){switch(T.nextAddress){case 1:return T.yield(_.xI(),2);case 2:return(B=T.yieldResult)?T.yield(_.MiL(B),3):T.return();case 3:F=T.yieldResult;if(!F)return T.return();u=((D=F.offlineVideos)==null?void 0:D.length)||0;N=((R=F.offlinePlaylists)==null?void 0:R.length)||0;if(u===0&&N===0)return T.return();y=0;if(F.offlineVideos)for(U=_.C(F.offlineVideos),q=U.next();!q.done;q=U.next())h=q.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
h.videoState&&(y+=1);G.offline_videos_count=u.toString();_.X("kevlar_log_offline_current_network_type_ks")||(G.offline_current_network_type=(K=_.hSc())!=null?K:"CONN_INVALID");_.X("kevlar_log_updated_time_for_smart_downloads")&&(a=_.VU().getState().entities,m=_.UX(a),L=qwN(a),G.offline_smart_downloads_last_sync_time_ms=m.toString(),G.offline_smart_downloads_next_sync_time_ms=L.toString());G.offline_videos_playable=y.toString();G.offline_playlists_count=N.toString();F.offlineVideos&&(W=F.offlineVideos.reduce(function(A,
Z){Z.downloadedBytes&&(A+=Number(Z.downloadedBytes));return A},0).toString())&&(G.offline_used_disk_space_bytes=W);
if(!((e=navigator)==null?0:(b=e.storage)==null?0:b.estimate)){T.jumpTo(4);break}return T.yield(navigator.storage.estimate(),5);case 5:M=T.yieldResult,G.offline_free_disk_space_bytes=(((t=M)==null?void 0:t.quota)||0).toString();case 4:G.offline_client_state=JSON.stringify(F),_.di(T)}})};
v9D=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
o9$=function(G){if(_.uo6()){var B=Object.keys(window.sessionStorage);B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=v9D(F);D===void 0||G.includes(D)||self.sessionStorage.removeItem(F)}}};
MwD=function(){if(!_.uo6())return!1;var G=_.n8(),B=Object.keys(window.sessionStorage);B=_.C(B);for(var F=B.next();!F.done;F=B.next())if(F=v9D(F.value),F!==void 0&&F!==G)return!0;return!1};
p2$=function(G){if(!G)return 0;var B=G.getPresentingPlayerType(),F=G.getVideoData();return F&&F.isLive?(G=G.getProgressState(B),G.seekableEnd-G.seekableStart):G.getDuration(B)};
Gy=function(G,B){_.Ed(B,G,function(){return YXB[B]},function(F){YXB[B]=F;
if(!_.X("mweb_player_ve_show_ks")){var D=_.qW(0);D&&F&&_.kI(D,F)}})};
By=function(G){(G=YXB[G])&&_.S0(_.Rh(),G)};
AcS=function(G,B){for(var F=_.C(Object.keys(G)),D=F.next();!D.done;D=F.next())if(D=D.value,G[D]!==B[D])return!1;return!0};
dD$=function(){return document.getElementById("player-control-overlay")};
Jc$=function(G){G!==-1&&!_.X("player_controls_log_creation_killswitch")&&dD$()&&(_.KR("pcu_cs",G),_.KR("pcu_ce"))};
ccS=function(G){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:G}}]}}}};
T8D=function(G,B,F,D){var u=_.X("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;B=Object.assign({},{text:B,hasGradientBackground:F},D&&{backgroundStyle:D},u&&{itemTargetId:u});u=_.X("web_enable_chat_autoscroll_to_user_turn")&&u?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:u,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:B}],
insertByPositionInSection:{sectionTargetId:G,position:"INSERTION_POSITION_LAST"}}}]},u?{scrollConfig:u}:{})}}};
IVA=function(G,B){return _.g5(G.entities,"booleanEntity",B)};
fVB=function(){return function(G){_.M7(_.wC("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:G}))}};
twB=function(G,B){B.stack&&(G.stack+="\n"+B.stack);return G};
ZJH=function(){this.isInputValid_=!0;this.JSC$19605_streamPos_=0;this.leftoverInput_=""};
g92=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19608_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
PoD=function(G){var B=SXA(G,"Content-Type");if(!B)return null;B=B.toLowerCase();if(B.startsWith("application/json"))return B.startsWith("application/json+protobuf")?new s9z:new _.yz;if(B.startsWith("application/x-protobuf")){G=SXA(G,"Content-Transfer-Encoding");if(!G)return new g92;if(G.toLowerCase()=="base64")return new xDS}return null};
CnH=function(G,B,F,D){var u=new GB$(function(y,U){return BKz.has(U)?y.sentinel==="gal"&&y.event!==void 0:!1},function(y){y.event?(y=ip$(y.event),y=!y||FaB(D,y)?!0:_.wI(G.lastEvent,ij,2,Fl)?!_.wI(y,Dj,1,Fl)&&!_.wI(y,ij,2,Fl):!_.wI(y,Dj,1,Fl)&&!_.wI(y,ij,3,Fl)):y=!0;
return y});
F=_.H7(G.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",DOH(F)]]));if(G.nestedOrigins!==void 0)for(var R=_.C(G.nestedOrigins),N=R.next();!N.done;N=R.next())F=_.H7(F,new Map([["origin",N.value]]));return uu$(u,F,B).then(function(y){y=Rc2(y.event);if(_.wI(y,Dj,1,Fl)){var U,q=(U=_.Q1(y,Dj,1,Fl))==null?void 0:_.aD(U,2);q&&D.JSC$19660_logErrorEvent(wm$(q));U=_.Q1(y,Dj,1,Fl);_.aD(U,2)===4?(y=_.Q1(y,Dj,1,Fl),y={statusCode:11,statusMessage:_.KX(y,
3)}):(y=_.Q1(y,Dj,1,Fl),y={statusCode:12,statusMessage:_.KX(y,3)});return y}_.wI(y,ij,3,Fl)?(y=_.Q1(y,ij,3,Fl),y={statusCode:1,consentLanguageKeys:_.KX(y,2)}):y={statusCode:1};return y}).catch(function(y){return y.errorCode!==void 0?{statusCode:y.errorCode,
statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
lkD=function(G){var B={};if(G===void 0||G===null)return B;G.getToken()!==void 0&&NKG(G.getToken())&&NKG(G.getToken()).length>0&&(B.scopes=new Set(NKG(G.getToken())));G.getToken()!==void 0&&yVN(G.getToken())&&yVN(G.getToken()).length>0&&(B.capabilities=new Set(yVN(G.getToken())));_.KX(G,3)!==void 0&&(B.consistencyKey=_.KX(G,3));G.getName()!==void 0&&G.getName()!==""&&(B.linkName=G.getName());_.RD(G,n7U,4)&&(G=_.sf(G,n7U,4),G=Object.assign({},_.KX(G,1)&&{userId:_.KX(G,1)},_.KX(G,2)&&{displayName:_.KX(G,
2)},_.KX(G,3)&&{email:_.KX(G,3)},_.KX(G,5)&&{username:_.KX(G,5)},_.KX(G,4)&&{profilePicture:_.KX(G,4)}),B.profile=G);return B};
UO2=function(G,B){var F=G.flowParams,D;return{serviceId:F.serviceId,sessionId:F.sessionId,currentFlow:G.currentFlow,googleScopesString:B,linkingSessionSerialized:G.session.serialize(),consentLanguageKeys:F.consentLanguageKeys,callerState:G.callerState,dynamicUrlParameters:F.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(D=F.partnerConfigMinReadTimestamp)==null?void 0:D.serialize()}};
ak$=function(G){var B=G.googleScopes!==void 0?Array.from(G.googleScopes).join(","):"";qjD(UO2(G,B),G.config.localStorage);B=E7z(G);return B===null?Promise.resolve(hc$):B.start().then(function(F){var D,u=(D=F.link)==null?void 0:D.consistencyKey;return F.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&u!==void 0?(D=G.flowParams,KaD(D.serviceId,D.sessionId,G.googleScopes,u,D.galService,G.config,F)):F})};
XmN=function(G){var B=E7z(G);return B===null?Promise.resolve(mON({statusCode:7,statusMessage:"Failed to create flow object"},G.callerState)):B.complete().then(function(F){var D,u=(D=F.link)==null?void 0:D.consistencyKey;return F.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&u!==void 0?(D=G.flowParams,KaD(D.serviceId,D.sessionId,G.googleScopes,u,D.galService,G.config,F)):mON(F,G.callerState)},function(F){return mON({statusCode:12,
statusMessage:"Failed to complete the flow: "+F.message},G.callerState)})};
KaD=function(G,B,F,D,u,R,N){return QFA(u,{serviceId:G,sessionId:B,googleScopes:F,consistencyKey:D}).then(function(){return N},function(y){return u.deleteLink({serviceId:G,
sessionId:B,accountLinkingEntryPoint:R.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+y.message}},function(U){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+U.message}})})};
E7z=function(G){switch(G.currentFlow){case 1:var B=G.flowParams;G=_.sf(G.session,jFB,1);return LaG.createOAuthFlow(B,G);case 2:case 3:return B=G.flowParams,G=_.sf(G.session,rVA,6),WaA.createStreamlinedFlow(B,G);default:return null}};
kBD=function(G,B){G===2&&(G=3);var F=0;Hp2.indexOf(G)!==-1&&(F=Hp2.indexOf(G)+1);for(G=F;G<Hp2.length;G++)if(B.has(Hp2[G]))return Hp2[G]};
$OS=function(G){var B=G.serviceId;var F=G.sessionId;var D=G.config;var u=G.galService;var R=G.capabilities;var N=G.scopes;var y=G.loginHint;var U=G.callerState;var q=G.consentLanguageKeys;var h=G.linkName;var K=G.dynamicUrlParameters;var a=G.partnerConfigMinReadTimestamp;G=D.dataUsageNoticeConfig?D.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return u.startLinkingSession({serviceId:B,sessionId:F,capabilities:R,scopes:N,loginHint:y,callerState:U,supportedFlows:OpH(D.supportedFlows),completionUrl:D.completionUrl,
accountLinkingEntryPoint:D.accountLinkingEntryPoint,consentLanguageKeys:q,dataUsageNoticeConfig:G,linkName:h,dynamicUrlParameters:K,partnerConfigMinReadTimestamp:a}).then(function(m){return new ec$(B,F,D,u,m,void 0,U,q,K,a)})};
Msz=function(G,B,F){var D=(new zcB(B.localStorage)).getSession(G);if(D===null)return Promise.resolve({statusCode:2});bpB(G,B.localStorage);var u=Vsz(D.linkingSessionSerialized),R=D.googleScopesString!==""&&D.googleScopesString!==void 0?new Set(D.googleScopesString.split(",")):void 0,N=D.partnerConfigMinReadTimestampSerialized?v7Q(D.partnerConfigMinReadTimestampSerialized):void 0;return o7D(new ec$(G,D.sessionId,B,F,u,R,D.callerState,D.consentLanguageKeys,D.dynamicUrlParameters,N),D.currentFlow,D.consentLanguageKeys)};
qjD=function(G,B){B=new zcB(B);B.storage!==null&&B.storage.set("SAVED_SESSION",G)};
bpB=function(G,B){B=new zcB(B);if(B.storage!==null){var F=B.storage.get("SAVED_SESSION");F!==void 0&&F.serviceId===G&&B.storage.remove("SAVED_SESSION")}};
OpH=function(G){var B=new Set;G=_.C(G);for(var F=G.next();!F.done;F=G.next())F=F.value,F!==1&&pmD.has(F)&&B.add(pmD.get(F));return B};
mON=function(G,B){B!==void 0&&(G.callerState=B);return G};
YjS=function(G){switch(G){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
JVA=function(G){return new AV$(G,new dO$(G))};
IkD=function(G,B){B=B===void 0?!1:B;var F=document.createElement("div");G&&(F.style.transform="scaleX(-1)");F.style.backgroundColor=B?"rgba(138,180,248,.24)":"#e8f0fe";F.style.height="4px";F.style.overflow="hidden";F.style.position="absolute";F.style.top="0";F.style.width="100%";F.style.zIndex="1500";F.setAttribute("aria-label","Loading");F.setAttribute("aria-live","polite");G=document.createElement("style");G.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  }";
F.appendChild(G);G=cV$();G.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";G.style.left="-145.166611%";var D=TKA(B);D.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";G.appendChild(D);F.appendChild(G);G=cV$();G.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";G.style.left="-54.888891%";B=TKA(B);B.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
G.appendChild(B);F.appendChild(G);return F};
cV$=function(){var G=document.createElement("div");G.style.height="100%";G.style.position="absolute";G.style.transformOrigin="top left";G.style.width="100%";return G};
TKA=function(G){var B=document.createElement("span");B.style.borderTop=G?"4px solid #669df6":"4px solid #4285f4";B.style.display="inline-block";B.style.position="absolute";B.style.width="100%";return B};
fkA=function(G){return G==null?void 0:_.eWG(G).valueOf()};
SjQ=function(G){var B=document.body,F=!1,D=function(){F||(F=!0,tsB(u,R),setTimeout(function(){B.removeChild(R);B.removeChild(u)},150))},u=ZpN(G,getComputedStyle(B).direction==="rtl",D),R=g7G(D);
tsB(u,R);B.appendChild(R);B.appendChild(u);window.requestAnimationFrame(function(){R.style.opacity="1";u.style.opacity="1";u.style.transform="translate(-50%, -50%) scale(1)";u.children[0].focus()})};
ZpN=function(G,B,F){var D=document.createElement("div");D.style.position="fixed";D.style.alignItems="center";D.style.backgroundColor=G?"rgb(32, 33, 36)":"white";D.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";D.style.display="flex";D.style.flexDirection="column";D.style.justifyContent="center";D.style.left="50%";D.style.top="50%";D.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";D.style.zIndex="2002";document.body.clientWidth>=
660?(D.style.borderRadius="8px",D.style.minHeight="220px",D.style.maxHeight="90%",D.style.maxWidth="90%",D.style.minWidth="540px"):(D.style.height="100%",D.style.width="100%");D.setAttribute("aria-label","Error");D.setAttribute("aria-modal","true");D.setAttribute("role","alertdialog");D.addEventListener("keydown",function(R){R.key==="Escape"&&F()});
B=sFB(G,B,F);D.appendChild(xO2(B));D.appendChild(B);var u=document.createElement("img");u.src=G?"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";u.style.height="72px";u.style.width="72px";u.style.color="#9aa0a6";u.setAttribute("alt","");D.appendChild(u);u=document.createElement("h1");u.textContent="Something went wrong.  Try again.";
u.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";u.style.lineHeight="24px";u.style.fontSize="16px";u.style.textAlign="center";u.style.letterSpacing="0.1px";u.style.color=G?"rgb(232,234,237)":"#3c4043";D.appendChild(u);D.appendChild(xO2(B));return D};
sFB=function(G,B,F){var D=document.createElement("button");D.style.backgroundColor="transparent";D.style.border="none";D.style.borderRadius="50%";D.style.cursor="pointer";D.style.outline="none";D.style.padding="12px";D.setAttribute("aria-label","Close dialog");D.style.position="absolute";D.style.top="0";B?D.style.right="0":D.style.left="0";D.addEventListener("focus",function(){D.style.backgroundColor=G?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
D.addEventListener("blur",function(){D.style.backgroundColor="transparent"});
D.addEventListener("mouseenter",function(){D.style.backgroundColor=G?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
D.addEventListener("mouseleave",function(){D.style.backgroundColor="transparent"});
D.addEventListener("click",F);D.addEventListener("keydown",function(u){u.key!=="Enter"&&u.key!=="Space"||F()});
B=document.createElement("img");B.src=G?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";B.style.display="block";B.style.height="24px";B.style.width="24px";B.setAttribute("alt","");D.appendChild(B);return D};
xO2=function(G){var B=document.createElement("div");B.setAttribute("tabindex","0");B.setAttribute("aria-hidden","true");B.addEventListener("focus",function(){return void G.focus()});
return B};
g7G=function(G){var B=document.createElement("div");B.style.backgroundColor="rgba(32,33,36,0.6)";B.style.bottom="0";B.style.left="0";B.style.position="fixed";B.style.right="0";B.style.top="0";B.style.transition=" opacity 150 ms linear";B.style.zIndex="2001";B.addEventListener("click",G);return B};
tsB=function(G,B){B.style.opacity="0";G.style.opacity="0";G.style.transform="translate(-50%, -50%) scale(0.8)"};
PnZ=function(G,B){G.sandbox&&G.sandbox.add&&(G.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),G.sandbox.add("allow-downloads"));G.src=B};
uj=function(G){this.JSC$19848_value_=void 0;this.childNodes_={};if(G){var B=_.n2G(G);G=_.Ah(G);for(var F=0;F<B.length;F++)this.set(B[F],G[F])}};
RN=function(G){GaQ.call(this,G)};
uQD=function(G,B){B=B===void 0?!1:B;this.parsedImageUrl_=null;G instanceof B3G||(iWU==void 0&&(iWU=new FCH),G=iWU.parse(G.toString(),B));G=this.parsedImageUrl_=G;G.JSC$19873_parsedOptions_==void 0&&((B=G.getOptions())||(B=""),G.JSC$19873_parsedOptions_=(new D7H).parse(B));GaQ.call(this,G.JSC$19873_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;G=this.parsedImageUrl_;B=G.uri_.JSC$10342_port_;this.JSC$19875_domain_=G.uri_.JSC$10342_domain_+(B?":"+B:"");this.JSC$19875_query_=
this.parsedImageUrl_.uri_.JSC$10342_queryData_.toString()};
w9=function(G){_.NU.call(this,"upload");this.opts.query=G};
R6G=function(G){this.mode=4;this.data=G;this.parsedData=[];G=0;for(var B=this.data.length;G<B;G++){var F=[],D=this.data.charCodeAt(G);D>65536?(F[0]=240|(D&1835008)>>>18,F[1]=128|(D&258048)>>>12,F[2]=128|(D&4032)>>>6,F[3]=128|D&63):D>2048?(F[0]=224|(D&61440)>>>12,F[1]=128|(D&4032)>>>6,F[2]=128|D&63):D>128?(F[0]=192|(D&1984)>>>6,F[1]=128|D&63):F[0]=D;this.parsedData.push(F)}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))};
wcz=function(G){this.typeNumber=0;this.errorCorrectLevel=G===void 0?2:G;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
CC=function(G,B){if(G.length==void 0)throw Error("Lk`"+G.length+"`"+B);for(var F=0;F<G.length&&G[F]==0;)F++;this.num=Array(G.length-F+B);for(B=0;B<G.length-F;B++)this.num[B]=G[B+F]};
CA$=function(G,B){this.totalCount=G;this.dataCount=B};
N3z=function(){this.buffer=[];this.length=0};
ySD=function(){var G=!1;if(_.rg8()){G=_.Qo();var B="";_.ksL()?(B=/Windows (?:NT|Phone) ([0-9.]+)/,B=(G=B.exec(G))?G[1]:"0.0"):_.zs()?(B=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,B=(G=B.exec(G))&&G[1].replace(/_/g,".")):_.HQS()?(B=/Mac OS X ([0-9_.]+)/,B=(G=B.exec(G))?G[1].replace(/_/g,"."):"10"):_.qL(_.Qo(),"KaiOS")?(B=/(?:KaiOS)\/(\S+)/i,B=(G=B.exec(G))&&G[1]):_.rg8()?(B=/Android\s+([^\);]+)(\)|;)/,B=(G=B.exec(G))&&G[1]):_.OQI()&&(B=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,B=(G=B.exec(G))&&G[1]);G=
B||""}return G};
h6G=function(G,B){this.JSC$19904__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(B)for(var F in B)this.JSC$19904__htOption[F]=B[F];this.JSC$19904__htOption.useSVG&&(nTA=lOB);this.JSC$19904__android=ySD();this.JSC$19904__el=G;this._oQRCode=null;this._oDrawing=new nTA(this.JSC$19904__el,this.JSC$19904__htOption);this.JSC$19904__htOption.text&&(G=this.JSC$19904__htOption.text,this._oQRCode=new wcz(this.JSC$19904__htOption.correctLevel),U7U(this._oQRCode,
G),B=this._oQRCode,qFH(B,!1,ET$(B)),this.JSC$19904__el.title=G,this._oDrawing.draw(this._oQRCode),this.makeImage())};
KCZ=function(G,B,F,D,u){G.save();var R=new Path2D;R.roundRect(B,F,D*7,D*7,D*2);R.roundRect(B+D,F+D,D*5,D*5,D*1.3);R.roundRect(B+2*D,F+2*D,D*3,D*3,D);G.clip(R,"evenodd");G.fillStyle=u;G.fillRect(0,0,G.canvas.width,G.canvas.height);G.restore()};
m7z=function(){return aOZ=aOZ||new _.W1};
XcB=function(G){_.T_.call(this,"serverreachability",G)};
QyQ=function(G){var B=m7z();B.dispatchEvent(new XcB(B,G))};
jy$=function(G,B){_.T_.call(this,"statevent",G);this.stat=B};
Nw=function(G){var B=m7z();B.dispatchEvent(new jy$(B,G))};
LCA=function(G,B,F,D){_.T_.call(this,"timingevent",G);this.size=B;this.rtt=F;this.retries=D};
rSD=function(G,B,F){var D=m7z();D.dispatchEvent(new LCA(D,G,B,F))};
WCZ=function(G,B){if(typeof G!=="function")throw Error("Ok");return _.Fz.setTimeout(function(){G()},B)};
y6=function(){this.redactEnabled_=!0};
nC=function(G,B,F,D,u){this.JSC$19926_channel_=G;this.JSC$19926_channelDebug_=B;this.sid_=F;this.JSC$19926_rid_=D;this.JSC$19926_retryId_=u||1;this.JSC$19926_eventHandler_=new _.Cn(this);this.timeout_=45E3;this.JSC$19926_extraHeaders_=null;this.JSC$19926_successful_=!1;this.JSC$19926_postData_=this.JSC$19926_requestUri_=this.JSC$19926_baseUri_=this.JSC$19926_type_=this.JSC$19926_requestStartTime_=this.JSC$19926_watchDogTimeoutTime_=this.JSC$19926_watchDogTimerId_=null;this.JSC$19926_pendingMessages_=
[];this.JSC$19926_xmlHttp_=null;this.JSC$19926_xmlHttpChunkStart_=0;this.JSC$19926_lastError_=this.JSC$19926_verb_=null;this.JSC$19926_lastStatusCode_=-1;this.JSC$19926_cancelled_=!1;this.JSC$19926_readyStateChangeThrottleMs_=0;this.JSC$19926_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new HWN};
ka2=function(G,B){var F=new y6;F.debug("TestLoadImage: loading "+G);if(_.Fz.Image){var D=new Image;D.onload=_.Fw(lj,F,"TestLoadImage: loaded",!0,B,D);D.onerror=_.Fw(lj,F,"TestLoadImage: error",!1,B,D);D.onabort=_.Fw(lj,F,"TestLoadImage: abort",!1,B,D);D.ontimeout=_.Fw(lj,F,"TestLoadImage: timeout",!1,B,D);_.Fz.setTimeout(function(){if(D.ontimeout)D.ontimeout()},1E4);
D.src=G}else B(!1)};
OWN=function(G,B){var F=new y6,D=new AbortController,u=setTimeout(function(){D.abort();lj(F,"TestPingServer: timeout",!1,B)},1E4);
fetch(G,{signal:D.signal}).then(function(R){clearTimeout(u);R.ok?lj(F,"TestPingServer: ok",!0,B):lj(F,"TestPingServer: server error",!1,B)}).catch(function(){clearTimeout(u);
lj(F,"TestPingServer: error",!1,B)})};
lj=function(G,B,F,D,u){try{G.debug(B),u&&(u.onload=null,u.onerror=null,u.onabort=null,u.ontimeout=null),D(F)}catch(R){}};
$7H=function(){this.JSC$19940_parser_=new e6H};
z6A=function(G,B,F){return F&&F.internalChannelParams?F.internalChannelParams[G]||B:B};
UJ=function(G){this.serverVersion_=0;this.JSC$19945_outgoingMaps_=[];this.JSC$19945_channelDebug_=new y6;this.JSC$19945_hostPrefix_=this.JSC$19945_backChannelUri_=this.JSC$19945_forwardChannelUri_=this.JSC$19945_path_=this.JSC$19945_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19945_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19945_extraHeaders_=null;this.JSC$19945_nextMapId_=this.JSC$19945_nextRid_=0;this.JSC$19945_failFast_=z6A("failFast",
!1,G);this.enableStreaming_=this.JSC$19945_deadBackChannelTimerId_=this.JSC$19945_backChannelTimerId_=this.JSC$19945_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19945_lastPostResponseArrayId_=this.JSC$19945_lastArrayId_=-1;this.JSC$19945_backChannelAttemptId_=this.JSC$19945_backChannelRetryCount_=this.JSC$19945_forwardChannelRetryCount_=0;this.JSC$19945_baseRetryDelayMs_=z6A("baseRetryDelayMs",5E3,G);this.JSC$19945_retryDelaySeedMs_=
z6A("retryDelaySeedMs",1E4,G);this.JSC$19945_forwardChannelMaxRetries_=z6A("forwardChannelMaxRetries",2,G);this.JSC$19945_forwardChannelRequestTimeoutMs_=z6A("forwardChannelRequestTimeoutMs",2E4,G);this.JSC$19945_xmlHttpFactory_=G&&G.xmlHttpFactory||void 0;this.networkTestUrl_=G&&G.networkTestUrl||void 0;this.usesFetchStreams_=G&&G.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19945_supportsCrossDomainXhrs_=G&&G.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new bWS(G&&G.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(G&&G.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new $7H;this.fastHandshake_=G&&G.fastHandshake||!1;this.encodeInitMessageHeaders_=G&&G.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19945_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=G&&G.blockingHandshake||!1;G&&G.disableRedact&&
this.JSC$19945_channelDebug_.disableRedact();G&&G.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&G&&G.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;G&&G.longPollingTimeout&&G.longPollingTimeout>0&&(this.longPollingTimeout_=G.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
VI$=function(){};
qw=function(G,B){if(G instanceof qw)this.array_=G.array_;else{var F;if(F=_.fQ(G))a:{for(var D=F=0;D<G.length;D++){if(!_.fQ(G[D])||F>0&&G[D].length!=F){F=!1;break a}for(var u=0;u<G[D].length;u++)if(typeof G[D][u]!=="number"){F=!1;break a}F==0&&(F=G[D].length)}F=F!=0}if(F)this.array_=_.II(G);else if(G instanceof _.$i)this.array_=vTS(G.height,G.width);else if(typeof G==="number"&&typeof B==="number"&&G>0&&B>0)this.array_=vTS(G,B);else throw Error("Sk");}this.size_=new _.$i(this.array_[0].length,this.array_.length)};
EJ=function(G,B){if(typeof G!=="function")throw Error("Ok");return _.Fz.setTimeout(function(){G()},B)};
hO=function(G,B,F,D,u){this.JSC$19972_channel_=G;this.JSC$19972_channelDebug_=B;this.sid_=F;this.JSC$19972_rid_=D;this.JSC$19972_retryId_=u||1;this.timeout_=45E3;this.JSC$19972_eventHandler_=new _.Cn(this);this.pollingTimer_=new _.nn;this.pollingTimer_.setInterval(250)};
KC=function(){};
MIG=function(G,B,F,D,u){(new KC).debug("TestLoadImageWithRetries: "+u);if(D==0)F(!1);else{var R=u||0;D--;oT$(G,B,function(N){N?F(!0):_.Fz.setTimeout(function(){MIG(G,B,F,D,R)},R)})}};
oT$=function(G,B,F){var D=new KC;D.debug("TestLoadImage: loading "+G);var u=new Image;u.onload=function(){try{D.debug("TestLoadImage: loaded"),pc$(u),F(!0)}catch(R){}};
u.onerror=function(){try{D.debug("TestLoadImage: error"),pc$(u),F(!1)}catch(R){}};
u.onabort=function(){try{D.debug("TestLoadImage: abort"),pc$(u),F(!1)}catch(R){}};
u.ontimeout=function(){try{D.debug("TestLoadImage: timeout"),pc$(u),F(!1)}catch(R){}};
_.Fz.setTimeout(function(){if(u.ontimeout)u.ontimeout()},B);
u.src=G};
pc$=function(G){G.onload=null;G.onerror=null;G.onabort=null;G.ontimeout=null};
YFQ=function(G,B){this.JSC$19979_channel_=G;this.JSC$19979_channelDebug_=B;this.JSC$19979_parser_=new e6H};
aN=function(G,B,F){this.state_=1;this.JSC$19982_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19982_channelDebug_=new KC;this.JSC$19982_parser_=new e6H;this.firstTestResults_=G||null;this.secondTestResults_=B!=null?B:null;this.asyncTest_=F||!1};
ASG=function(){this.front_=[];this.back_=[]};
mf=function(G){this.JSC$19997_map_=new _.U1;this.size=0;G&&this.addAll(G)};
d7G=function(G,B){this.action=G;this.params=B||{}};
Xl=function(G,B){_.uz.call(this);this.delay_=new _.wd(this.JSC$20071_onTick_,0,this);_.gq(this,this.delay_);this.JSC$20069_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof G==="function")B&&(G=(0,_.R_)(G,B));else if(G&&typeof G.handleEvent==="function")G=(0,_.R_)(G.handleEvent,G);else throw Error("za");this.JSC$20071_listener_=G};
Q6=function(G,B,F,D,u,R,N,y,U,q,h,K,a,m,L,W){var e=this;F=F===void 0?!1:F;D=D===void 0?function(){return""}:D;
u=u===void 0?!1:u;R=R===void 0?!1:R;N=N===void 0?!1:N;y=y===void 0?function(){return _.ZL({})}:y;
U=U===void 0?!1:U;h=h===void 0?!1:h;K=K===void 0?!1:K;a=a===void 0?!1:a;m=m===void 0?!1:m;this.JSC$20072_pathPrefix_=G;this.defaultQueryParams_=B;this.pubsub_=new _.RY;this.retryLogger_=W;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!L)?L(function(){e.safeReconnect_()}):new Xl(this.safeReconnect_,this);
this.JSC$20072_channel_=null;this.JSC$20072_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20072_pendingMessages_=[];this.enableAsyncTest_=F;this.JSC$20072_getXsrfToken_=D;this.useAsyncBrowserChannelHandler_=R;this.getAuthorizationHeader_=y;this.getAuthorizationHeaderSync_=q;this.enableCachedUpdateAuthorizationHeader_=N;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.ZL();this.enableLoungeTokenRefresh_=u;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
U;this.disableMdxAuthForNonPlaybackMessages_=h;this.disableMdxAuthForAdMessages_=K;this.enableMdxAuthForConnectionOnly_=a;this.disableMdxAuthForShortsMessages_=m;this.JSC$20072_channelOpenedCounter=new JS$;this.JSC$20072_channelClosedCounter=new cSD;this.channelMessageSentCounter=new T3D;this.JSC$20072_channelMessageReceivedCounter=new IOA;this.JSC$20072_channelErrorCounter=new fOD;this.pendingMapsOnClosedCounter=new tIN;this.undeliveredMapsOnClosedCounter=new ZWU};
gTz=function(G){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;G=G||document.location.href;var B=Number(_.dO(G)[4]||null)||"";B&&(this.port=":"+B);this.domain=_.Tt(G)||"";G=_.Qo();G.search("MSIE")>=0&&_.mg(G.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
jX=function(G){G=G||{};this.name=G.name||"";this.id=G.id||G.screenId||"";this.token=G.token||G.loungeToken||"";this.uuid=G.uuid||G.dialId||"";this.idType=G.screenIdType||"normal";this.secret=G.screenIdSecret||""};
SFZ=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(G){var B=Math.random()*16|0;return(G=="x"?B:B&3|8).toString(16)})};
sy$=function(G){return _.qK(G,function(B){return{key:B.id,name:B.name}})};
x7N=function(G,B){return dt(G,function(F){return F||B?!F!=!B?!1:F.id==B.id:!0})};
LC=function(G,B){return dt(G,function(F){return PAB(F,B)})};
DhG=function(){var G=Gm$(),B=BJN();if(ikS()){var F=G,D=_.M8S(F,B);D<0&&_.V8g(F,-(D+1),0,B)}G=FrB(G);if(G.length==0)try{_.lVS("remote_sid")}catch(u){}else try{_.NS("remote_sid",G.join(","),-1)}catch(u){}};
Gm$=function(){var G=_.np("yt-remote-connected-devices")||[];G.sort(_.oMz);return G};
FrB=function(G){if(G.length==0)return[];var B=G[0].indexOf("#"),F=B==-1?G[0]:G[0].substring(0,B);return _.qK(G,function(D,u){return u==0?D:D.substring(F.length)})};
u1$=function(G){_.yW("yt-remote-connected-devices",G,86400)};
BJN=function(){if(RtD)return RtD;var G=_.np("yt-remote-device-id");G||(G=SFZ(),_.yW("yt-remote-device-id",G,31536E3));for(var B=Gm$(),F=1,D=G;_.YM(B,D);)F++,D=G+"#"+F;return RtD=D};
wrU=function(){return _.np("yt-remote-session-browser-channel")};
ikS=function(){return _.np("yt-remote-session-screen-id")};
yxD=function(G){G.length>5&&(G=G.slice(G.length-5));var B=_.qK(C4A(),function(D){return D.loungeToken}),F=_.qK(G,function(D){return D.loungeToken});
_.$5U(F,function(D){return!_.YM(B,D)})&&NJ2();
_.yW("yt-remote-local-screens",G,31536E3)};
C4A=function(){return _.np("yt-remote-local-screens")||[]};
NJ2=function(){_.yW("yt-remote-lounge-token-expiration",!0,86400)};
nND=function(G){G||(_.ln("yt-remote-session-screen-id"),_.ln("yt-remote-session-video-id"));DhG();G=Gm$();_.dU(G,BJN());u1$(G)};
Uh$=function(){leU();return r9?!!r9.get("yt-remote-use-staging-server"):!1};
leU=function(){if(!r9){var G=_.mm();G&&(r9=new _.qS(G))}};
Kr$=function(G,B,F,D,u){F=F===void 0?function(){return""}:F;
var R=function(){return new Q6(Wy(G,"/bc"),B,!1,F,D)};
return _.X("enable_mdx_web_channel_desktop")?new q_D(function(){return new ENG(Wy(G,"/wc"),B,F)}):new ht2(R,u)};
QhA=function(){var G=aeD;mhA();Hy.push(G);Xrz()};
ko=function(G,B){mhA();var F=jhB(G,String(B));Hy.length==0?LrZ(F):(Xrz(),_.dn(Hy,function(D){D(F)}))};
OJ=function(G){ko("CP",G)};
mhA=function(){Hy||(Hy=_.Yf("yt.mdx.remote.debug.handlers_")||[],_.IY("yt.mdx.remote.debug.handlers_",Hy))};
LrZ=function(G){var B=(rxD+1)%50;rxD=B;WrD[B]=G;Hkz||(Hkz=B==49)};
Xrz=function(){var G=Hy;if(WrD[0]){var B=Hkz?rxD:-1,F={};do F={record$jscomp$15:void 0},B=(B+1)%50,F.record$jscomp$15=WrD[B],_.dn(G,function(D){return function(u){u(D.record$jscomp$15)}}(F));
while(B!=rxD);WrD=Array(50);rxD=-1;Hkz=!1}};
jhB=function(G,B){var F=(Date.now()-km$)/1E3;F.toFixed&&(F=F.toFixed(3));var D=[];D.push("[",F+"s","] ");D.push("[","yt.mdx.remote","] ");D.push(G+": "+B,"\n");return D.join("")};
$o=function(G){eX.call(this);this.JSC$20101_logName_=G;this.screens=[]};
bj=function(G){$o.call(this,"LocalScreenService");this.JSC$20108_http_=G;this.loungeTokenRefreshTimer_=NaN;zy(this);this.info("Initializing with "+OkQ(this.screens))};
V6=function(G,B){B=B===void 0?!1:B;$o.call(this,"ScreenService");this.JSC$20114_http_=G;this.disableAutomaticScreenCache_=B;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};etD(this)};
vy=function(G,B,F){eX.call(this);this.JSC$20118_logName_=F;this.JSC$20118_screenService_=G;this.receiver_=B;this.screen_=null};
fe$=function(G,B,F){F.disableCastApi?oN("Cannot initialize because disabled by Mdx config."):$hD()?ztG(G,F)&&(bk2(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?VFU(B):(window.__onGCastApiAvailable=function(D,u){D?VFU(B):(Mw("Failed to load cast API: "+u),vNN(!1),bk2(!1),_.ln("yt-remote-cast-available"),_.ln("yt-remote-cast-receiver"),oNH(),B(!1))},F.loadCastApiSetupScript?_.Q9(MFG):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
prQ()>=60&&Y_$():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?AxQ():prQ()>=89?dhS():(Jx$(),cxB(TJ$.map(IeA))))):oN("Cannot initialize because not running Chrome")};
oNH=function(){oN("dispose");var G=pC();G&&G.dispose();_.IY("yt.mdx.remote.cloudview.instance_",null);tFG(!1);_.xhs(Zk$);Zk$.length=0};
gN$=function(){return!!_.np("yt-remote-cast-installed")};
S_S=function(){var G=_.np("yt-remote-cast-receiver");return G?G.friendlyName:null};
shS=function(){oN("clearCurrentReceiver");_.ln("yt-remote-cast-receiver")};
xh$=function(){return gN$()?pC()?pC().getCastSession():(Mw("getCastSelector: Cast is not initialized."),null):(Mw("getCastSelector: Cast API is not installed!"),null)};
GnA=function(G,B){P4B()?pC().setConnectedScreenStatus(G,B):Mw("setConnectedScreenStatus called before ready.")};
$hD=function(){var G=_.Qo().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.PP||G};
ztG=function(G,B){var F=!1;pC()||(G=new Yo(G,B),G.subscribe("yt-remote-cast2-availability-change",function(D){_.yW("yt-remote-cast-available",D);J_("yt-remote-cast2-availability-change",D)}),G.subscribe("yt-remote-cast2-receiver-selected",function(D){oN("onReceiverSelected: "+D.friendlyName);
_.yW("yt-remote-cast-receiver",D);J_("yt-remote-cast2-receiver-selected",D)}),G.subscribe("yt-remote-cast2-receiver-resumed",function(D){oN("onReceiverResumed: "+D.friendlyName);
_.yW("yt-remote-cast-receiver",D);J_("yt-remote-cast2-receiver-resumed",D)}),G.subscribe("yt-remote-cast2-session-change",function(D){oN("onSessionChange: "+BeU(D));
D||_.ln("yt-remote-cast-receiver");J_("yt-remote-cast2-session-change",D)}),_.IY("yt.mdx.remote.cloudview.instance_",G),F=!0);
oN("cloudview.createSingleton_: "+F);return F};
pC=function(){return _.Yf("yt.mdx.remote.cloudview.instance_")};
VFU=function(G){vNN(!0);bk2(!1);pC().init(!1,function(B){B?(tFG(!0),_.P4J("yt-remote-cast2-api-ready")):(Mw("Failed to initialize cast API."),vNN(!1),_.ln("yt-remote-cast-available"),_.ln("yt-remote-cast-receiver"),oNH());G(B)})};
oN=function(G){ko("cloudview",G)};
Mw=function(G){ko("cloudview",G)};
vNN=function(G){oN("setCastInstalled_ "+G);_.yW("yt-remote-cast-installed",G)};
P4B=function(){return!!_.Yf("yt.mdx.remote.cloudview.apiReady_")};
tFG=function(G){oN("setApiReady_ "+G);_.IY("yt.mdx.remote.cloudview.apiReady_",G)};
bk2=function(G){_.IY("yt.mdx.remote.cloudview.initializing_",G)};
AO=function(G){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(G)};
l$Q=function(G){leU();if(!r9||!r9.get("yt-remote-disable-remote-module-for-dev")){G=_.v5("MDX_CONFIG")||G;gyZ();DhG();iAA||(iAA=new gTz(G?G.loungeApiHost:void 0),Uh$()&&(iAA.basePath="/api/loungedev"));d9||(d9=_.Yf("yt.mdx.remote.deferredProxies_")||[],_.IY("yt.mdx.remote.deferredProxies_",d9));FAA();var B=D6G();if(!B){var F=new V6(iAA,G?G.disableAutomaticScreenCache||!1:!1);_.IY("yt.mdx.remote.screenService_",F);B=D6G();var D={};G&&(D={appId:G.appId,disableDial:G.disableDial,theme:G.theme,loadCastApiSetupScript:G.loadCastApiSetupScript,
disableCastApi:G.disableCastApi,enableDialLoungeToken:G.enableDialLoungeToken,enableCastLoungeToken:G.enableCastLoungeToken,forceMirroring:G.forceMirroring});_.IY("yt.mdx.remote.enableConnectWithInitialState_",G?G.enableConnectWithInitialState||!1:!1);fe$(F,function(R){R?uT2()&&GnA(uT2(),"YouTube TV"):F.subscribe("onlineScreenChange",function(){J_("yt-remote-receiver-availability-change")})},D)}if(G&&!_.Yf("yt.mdx.remote.initialized_")){_.IY("yt.mdx.remote.initialized_",!0);
RiQ("Initializing: "+_.Q_(G));JO.push(_.xr("yt-remote-cast2-api-ready",function(){J_("yt-remote-api-ready")}));
JO.push(_.xr("yt-remote-cast2-availability-change",function(){J_("yt-remote-receiver-availability-change")}));
JO.push(_.xr("yt-remote-cast2-receiver-selected",function(){wIZ();J_("yt-remote-auto-connect","cast-selector-receiver")}));
JO.push(_.xr("yt-remote-cast2-receiver-resumed",function(){J_("yt-remote-receiver-resumed","cast-selector-receiver")}));
JO.push(_.xr("yt-remote-cast2-session-change",CNG));JO.push(_.xr("yt-remote-connection-change",function(R){R?GnA(uT2(),"YouTube TV"):NeD()||(GnA(null,null),shS())}));
JO.push(_.xr("yt-remote-cast2-session-failed",function(){J_("yt-remote-connection-failed")}));
D=yZD();G.isAuto&&(D.id+="#dial");var u=G.capabilities||[];u.length>0&&(D.capabilities=u);D.name=G.device;D.app=G.app;(G=G.theme)&&(D.theme=G);RiQ(" -- with channel params: "+_.Q_(D));D?(_.yW("yt-remote-session-app",D.app),_.yW("yt-remote-session-name",D.name)):(_.ln("yt-remote-session-app"),_.ln("yt-remote-session-name"));_.IY("yt.mdx.remote.channelParams_",D);B.start();uT2()||nFU()}}};
qR$=function(){var G=D6G().instance_.$_gos();var B=U6z();B&&cy()&&(x7N(G,B)||G.push(B));return sy$(G)};
EF$=function(){var G=qR$(),B=U6z();B||(B=NeD());return dt(G,function(F){return B&&PAB(B,F.key)?!0:!1})};
U6z=function(){var G=uT2();if(!G)return null;var B=D6G().getScreens();return LC(B,G)};
CNG=function(G){RiQ("remote.onCastSessionChange_: "+BeU(G));if(G){var B=U6z();if(B&&B.id==G.id){if(GnA(B.id,"YouTube TV"),G.idType=="shortLived"&&(G=G.token))hi$&&(hi$.token=G),(B=cy())&&B.setLoungeToken(G)}else B&&KAH(),a$H(G,1)}else cy()&&KAH()};
KAH=function(){P4B()?pC().stopSession():Mw("stopSession called before API ready.");var G=cy();G&&(G.disconnect(1),m6A(null))};
XIS=function(){var G=cy();return G&&G.getProxyState()!=3?new Ty(cy(),void 0):null};
RiQ=function(G){ko("remote",G)};
D6G=function(){if(!QQ2){var G=_.Yf("yt.mdx.remote.screenService_");QQ2=G?new jQ$(G):null}return QQ2};
uT2=function(){return _.Yf("yt.mdx.remote.currentScreenId_")};
LAS=function(G){_.IY("yt.mdx.remote.currentScreenId_",G)};
wIZ=function(){_.IY("yt.mdx.remote.connectData_",null)};
cy=function(){return _.Yf("yt.mdx.remote.connection_")};
m6A=function(G){var B=cy();wIZ();G||LAS("");_.IY("yt.mdx.remote.connection_",G);d9&&(_.dn(d9,function(F){F(G)}),d9.length=0);
B&&!G?J_("yt-remote-connection-change",!1):!B&&G&&J_("yt-remote-connection-change",!0)};
NeD=function(){var G=ikS();if(!G)return null;var B=D6G();if(!B)return null;B=B.getScreens();return LC(B,G)};
a$H=function(G,B){rZD?hi$=G:(LAS(G.id),G=new IN(iAA,G,yZD(),_.Yf("yt.mdx.remote.enableConnectWithInitialState_")||!1),G.connect(B,_.Yf("yt.mdx.remote.connectData_")),G.subscribe("beforeDisconnect",function(F){J_("yt-remote-before-disconnect",F)}),G.subscribe("beforeDispose",function(){cy()&&m6A(null)}),G.subscribe("browserChannelAuthError",function(){var F=U6z();
F&&F.idType=="shortLived"&&(P4B()?pC().handleBrowserChannelAuthError():Mw("refreshLoungeToken called before API ready."))}),m6A(G))};
nFU=function(){var G=NeD();G?(RiQ("Resume connection to: "+BeU(G)),a$H(G,0)):(nND(),shS(),RiQ("Skipping connecting because no session screen found."))};
FAA=function(){var G=yZD();if(_.UK.isEmpty(G)){G=BJN();var B=_.np("yt-remote-session-name")||"",F=_.np("yt-remote-session-app")||"";G={device:"REMOTE_CONTROL",id:G,name:B,app:F,mdxVersion:3};G.authuser=String(_.v5("SESSION_INDEX","0"));(B=_.v5("DELEGATED_SESSION_ID"))&&(G.pageId=String(B));_.IY("yt.mdx.remote.channelParams_",G)}};
yZD=function(){return _.Yf("yt.mdx.remote.channelParams_")||{}};
WA$=function(){var G,B;return _.n(function(F){if(F.nextAddress==1)return(_.vNQ()||_.X("use_new_nwl"))&&_.$hz().isNetworkAvailable()?F.yield(_.f8(),2):F.return();if(F.nextAddress!=3)return(G=F.yieldResult)?F.yield(vQz(G),3):F.return();B=F.yieldResult;if(!B.length)return F.return();B.forEach(function(D){var u={timestamp:D.timestamp};D=D.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:D.appShellAssetLoadReport,options:u}:D.clientError?{payloadName:"clientError",payload:D.clientError,
options:u}:void 0;D&&_.W$(D.payloadName,D.payload,D.options)});
B.length===100&&_.Lu.addLowPriorityJob(WA$);_.di(F)})};
vFB=function(G,B,F){F=F===void 0?!1:F;var D=Math.max(G.width,HAN);if(_.X("kevlar_watch_feed_big_thumbs")&&G.width>=1550-fC()&&G.height>=800)D-=kn$;else if(G.width>=tO){var u=OA$+eiN+Zj;_.X("kevlar_watch_feed_big_thumbs")&&(u=$6D);D-=u}else D-=OA$;D=Math.min(D,ziz);u=240;F&&(u=380);B<.5624||(!_.X("kevlar_watch_flexy_disable_small_window_sizing")&&(G.height<630&&G.width>=657||G.height>=630&&G.width>=tO&&G.width<1327)?u=360:!_.X("kevlar_watch_flexy_disable_large_window_sizing")&&G.height>=630&&G.width>=
1327&&(u=480));var R=Math.min(D*B,G.height-(56+bAz+VoU));R=Math.max(R,u);B<1?D=R/B:G.width>=tO&&(D=vFB(G,.5625,F).width);return new _.$i(Math.round(D),Math.round(R))};
oFS=function(G){if(G.playerResponse){if(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(B){return!(!B||!B.mealbarPromoRenderer)}))&&G.mealbarPromoRenderer)return G.mealbarPromoRenderer}else if(G.response&&(G=G.response)&&G.overlay&&G.overlay.mealbarPromoRenderer)return G.overlay.mealbarPromoRenderer};
MoB=function(G){if(G.response){var B=G.response;if(B&&B.overlay&&B.overlay.tooltipRenderer)return B.overlay.tooltipRenderer}if(G.playerResponse&&(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(F){return!(!F||!F.tooltipRenderer)}))&&G.tooltipRenderer))return G.tooltipRenderer};
pID=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
YRA=function(){var G,B,F;return _.n(function(D){switch(D.nextAddress){case 1:return D.yield(_.nM.getInstance(),2);case 2:G=D.yieldResult;if(!G){B=void 0;D.jumpTo(3);break}return D.yield(G.get("lmqf"),4);case 4:B=D.yieldResult;case 3:switch((F=B)||(F="SD"),F){case "HD":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return D.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
AZS=function(G){var B,F,D;return _.n(function(u){if(u.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.X("disable_av1_setting")){var R=window.localStorage["yt-player-av1-pref"];R=R==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":R==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else R="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(B=G===R)return u.jumpTo(2);D=F=G;return u.yield(YRA(),3)}u.nextAddress!=2&&(B=D===u.yieldResult);return u.return(B)})};
JZ$=function(){var G=_.sD("user_engagement_experiments_rate_limit_ms"),B=d6$.get("last-user-engagement-exp-trigger-timestamp");return!B||(0,_.Zl)()>=B+G?(d6$.set("last-user-engagement-exp-trigger-timestamp",(0,_.Zl)()),!0):!1};
g9=function(G,B,F,D,u){B=B===void 0?null:B;F=F===void 0?null:F;D=D===void 0?null:D;u=u===void 0?null:u;G={youThereEventType:G};F&&(G.lactThresholdMs=F.lactThresholdMs,G.mediaPosSec=F.promptDelaySec,G.lactServerRequestMs=F.lactServerRequestMs,G.triggerReason=F.triggerReason);u!=null&&(G.renderingMediaPosSec=Math.round(u));B||(B=_.qW());B&&(G.clientScreenNonce=B);D&&(G.clientPlaybackNonce=D);_.W$("youThere",G)};
Te$=function(G){if(!cZU&&(G=G||_.v5("ZWIEBACK_PING_URLS"))&&G.length){cZU=!0;for(var B=0;B<G.length;B++)_.oB(G[B])}};
I$A=function(G){var B=0;G.indexOf("h")!=-1&&(G=G.split("h"),B=G[0]*60*60,G=G[1]);G.indexOf("m")!=-1&&(G=G.split("m"),B=G[0]*60+B,G=G[1]);G.indexOf("s")!=-1?(G=G.split("s"),B=G[0]*1+B):B=G*1+B;return B};
toS=function(G){if(_.UK.get(_.v5("PLAYER_VARS",{}),"privembed",!1)!="1"){G&&W5Z();try{f$$().then(function(){},function(){}),_.iX(toS,18E5)}catch(B){_.Mn(B)}}};
ZAD=function(){var G=_.D4(),B=G.getFlag(119),F=window.devicePixelRatio>1;document.body&&_.ot(document.body,"exp-invert-logo")&&(F&&!_.ot(document.body,"inverted-hdpi")?_.b4(document.body,"inverted-hdpi"):!F&&_.ot(document.body,"inverted-hdpi")&&_.zm(document.body,"inverted-hdpi"));B!=F&&(_.uf(0,119,F),G.save())};
gFZ=function(){_.sD("service_worker_push_logged_out_prompt_watches")!=-1&&t_("WatchCount").then(function(G){G>=100||taz("WatchCount",G+1)})};
SRN=function(G){return G.filter(function(B){return"ypcGetCartEndpoint"in B||"ypcFixInstrumentEndpoint"in B})};
sQB=function(G){return G.filter(function(B){return!_.Q(B,_.tq7)})};
x6A=function(G){switch(G){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}};
PNQ=function(G,B,F){var D=_.X1(F);G&&B&&D&&G.getPlayerPromise().then(function(u){_.Sno(D)&&_.H$();(new _.qo(u)).executeCommand(D,B);_.X("continue_playback_on_desktop_companion_click")||u.pauseVideo()})};
GPB=function(G){var B=_.AZ(),F;if(F=_.Yf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;F=(D=F())==null?void 0:D.layoutId}else F=null;PNQ(B,F,G)};
BCZ=function(G){var B=_.AZ(),F;if(F=_.Yf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;F=(D=F())==null?void 0:D.layoutId}else F=null;PNQ(B,F,G)};
SX=function(G,B){var F=G<0?"-":"";G=Math.abs(G);var D=Math.floor(G/3600),u=Math.floor(G)%3600,R=Math.floor(u/60);u=Math.floor(u)%60;var N="";(B===void 0?0:B)&&(N="."+Math.round((G-Math.floor(G))*10));return D>0?F+D+":"+(R<10?"0"+R:""+R)+":"+(u<10?"0"+u:""+u)+N:F+R+":"+(u<10?"0"+u:""+u)+N};
ihz=function(G){var B=G.match(/[^0-9:\.]/g);if(B&&B.length>0)return null;G=G.split(":");if(G.length===0||G.length>3)return null;B=1;for(var F=0;G.length>0;){var D=G.pop();if(D===void 0)break;var u=Number(D);if(D===""||isNaN(u))return null;F+=u*B;B*=60}return F};
FRH=function(G,B,F,D){G=Math.max(F,G);B=Math.min(B,D-F);G+B>D?(F=D,G=F-B):F=G+B;return{start:G,end:F}};
DjD=function(G,B,F,D,u,R){G<F?G=F:G+u>D&&(G=D-u);B>D&&(B=D);B=Math.min(G+R,Math.max(G+u,B));return{start:G,end:B}};
ujG=function(G,B,F,D,u,R){B>D?B=D:B-u<F&&(B=F+u);G<F&&(G=F);G=Math.min(B-u,Math.max(B-R,G));return{start:G,end:B}};
lMQ=function(G,B){var F=_.pW(G,{}),D=RaU("top",B),u=RaU("bottom",B),R=RaU("left",B),N=RaU("right",B);return _.xN({top:function(){return sJ(F().position,D)},
bottom:function(){return sJ(F().position,u)},
left:function(){return sJ(F().position,R)},
right:function(){return sJ(F().position,N)},
position:function(){return sJ(F().positionType,w_B)},
height:function(){return sJ(F().height,xo)},
width:function(){return sJ(F().width,xo)},
"min-width":function(){return sJ(F().minWidth,xo)},
"min-height":function(){return sJ(F().minHeight,xo)},
"max-width":function(){return sJ(F().maxWidth,xo)},
"max-height":function(){return sJ(F().maxHeight,xo)},
"aspect-ratio":function(){return sJ(F().aspectRatio,String)},
"margin-top":function(){return sJ(F().margin,D)},
"margin-bottom":function(){return sJ(F().margin,u)},
"margin-left":function(){return sJ(F().margin,R)},
"margin-right":function(){return sJ(F().margin,N)},
"padding-top":function(){return sJ(F().padding,D)},
"padding-bottom":function(){return sJ(F().padding,u)},
"padding-left":function(){return sJ(F().padding,R)},
"padding-right":function(){return sJ(F().padding,N)},
"flex-direction":function(){return sJ(F().flexDirection,CR2)},
"justify-content":function(){return sJ(F().justifyContent,NCN)},
"align-items":function(){return sJ(F().alignItems,ytD)},
"flex-grow":function(){return sJ(F().flexGrow,String)},
"flex-shrink":function(){return sJ(F().flexShrink,String)},
"flex-basis":function(){return sJ(F().flexBasis,xo)},
"align-self":function(){return sJ(F().alignSelf,ytD)},
"flex-wrap":function(){return sJ(F().flexWrap,nPQ)},
"align-content":function(){return sJ(F().alignContent,ytD)}})};
sJ=function(G,B){return G!==void 0?B(G):void 0};
nPQ=function(G){switch(G){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
w_B=function(G){switch(G){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
ytD=function(G){switch(G){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"}};
NCN=function(G){switch(G){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"}};
CR2=function(G){switch(G){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"}};
RaU=function(G,B){var F=B==="rtl";switch(G){case "top":var D=UjA;break;case "bottom":D=qYU;break;case "left":D=EPz;break;default:D=haA}return function(u){return sJ(D(u,F),xo)}};
UjA=function(G){var B=G.top;var F=G.vertical;G=G.all;var D;return(D=B!=null?B:F)!=null?D:G};
qYU=function(G){var B=G.bottom;var F=G.vertical;G=G.all;var D;return(D=B!=null?B:F)!=null?D:G};
EPz=function(G,B){var F=G.left;var D=G.end;var u=G.start;var R=G.horizontal;G=G.all;var N,y;return(y=(N=F!=null?F:B?D:u)!=null?N:R)!=null?y:G};
haA=function(G,B){var F=G.right;var D=G.end;var u=G.start;var R=G.horizontal;G=G.all;var N,y;return(y=(N=F!=null?F:B?u:D)!=null?N:R)!=null?y:G};
xo=function(G){var B=G.value;switch(G.unit){case "YPC_DIMENSION_UNIT_POINT":return B+"px";case "YPC_DIMENSION_UNIT_FRACTION":return B+"%";default:return""+B}};
KRz=function(G){switch(G){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"}};
aMQ=function(G){var B=G!=null?G:{};G=B.fontRole;var F=B.fontSize;B=B.fontWeight;if(G!==null&&F!==null)switch(G){case "YPC_FONT_ROLE_DISPLAY":switch(F){case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(F){case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return B===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(F){case "YPC_FONT_SIZE_XL":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
jxU=function(G,B,F){function D(K){return Object.values(K).map(function(a){var m=a.productId;a=a.pricingOptionIndex;return Py(u(m).pricingOptions,a).pricingOptionId})}
function u(K){return U().get(K)}
function R(K){K=D(K);F(K)}
function N(K,a){return Array.from(Gv(K.pricingOptions)).filter(function(m){m=_.C(m);m.next();m=m.next().value;return BA(m.pricingGroupAttributes,a)}).map(function(m){return _.C(m).next().value})}
var y=mjN([G,B],function(K,a){var m=K==null?void 0:K.selectedPricingOptions;K={};var L=!0;if(m&&a.length)for(var W=_.C(a),e=W.next();!e.done;e=W.next()){e=e.value;var b=X_U(e.pricingOptions,function(T){a:{T=T.pricingOptionId;for(var A=_.C(m),Z=A.next();!Z.done;Z=A.next())if(Z.value===T){T=!0;break a}T=!1}return T});
if(b>=0){L=!1;var M=Py(e.pricingOptions,b),t=void 0;K[e.groupId]={productId:e.productId,pricingOptionIndex:b,pricingGroupAttributes:(t=M)==null?void 0:t.pricingGroupAttributes}}}L&&a.length&&(L=Py(a[0].pricingOptions,0),K[a[0].groupId]={productId:a[0].productId,pricingOptionIndex:0,pricingGroupAttributes:L==null?void 0:L.pricingGroupAttributes});return K}),U=mjN([B],function(K){return new Map(K.map(function(a){return[a.productId,
a]}))}),q=mjN([B],function(K){var a=new Map;
K=_.C(K);for(var m=K.next();!m.done;m=K.next()){var L=m.value;m=L.groupId;var W=L.productId;L=_.C(Gv(L.pricingOptions));for(var e=L.next();!e.done;e=L.next()){var b=_.C(e.value);e=b.next().value;b=b.next().value;a.set(b.pricingOptionId,{groupId:m,productId:W,index:e,pricingOption:b,pricingGroupAttributes:b.pricingGroupAttributes})}}return a}),h=mjN([B],function(K){var a=new Map;
K=_.C(K);for(var m=K.next();!m.done;m=K.next()){var L=m.value;m=L.groupId;var W=L.productId,e=void 0;L=_.C(Gv((e=L.pricingGroups)!=null?e:[]));for(e=L.next();!e.done;e=L.next()){var b=_.C(e.value);e=b.next().value;b=b.next().value;a.set(b.pricingGroupId,{groupId:m,productId:W,index:e,pricingGroup:b,pricingGroupAttributes:b.pricingGroupAttributes})}}return a});
return{getProductById:u,isProductSelected:function(K){var a=u(K);if(!a)return!1;var m;return((m=y()[a.groupId])==null?void 0:m.productId)===K},
getSelectedPricingOptions:function(){return Object.values(y()).map(function(K){var a=K.productId;K=K.pricingOptionIndex;return Py(u(a).pricingOptions,K)})},
getSelectedPricingGroupAttributesByGroupId:function(K){var a;return(K=(a=y()[K])==null?void 0:a.pricingGroupAttributes)?Array.from(K):void 0},
getSelectedProductByGroupId:function(K){var a;return(K=(a=y()[K])==null?void 0:a.productId)?u(K):void 0},
onProductSelected:function(K){var a=u(K);if(a){var m=y(),L;if(((L=m[a.groupId])==null?void 0:L.productId)!==K){var W=(L=(W=m[a.groupId])==null?void 0:W.productId)?u(L):void 0;var e;L=(e=m[a.groupId])==null?void 0:e.pricingGroupAttributes;var b;e=(b=m[a.groupId])==null?void 0:b.pricingOptionIndex;if(W&&e!==void 0)if(L){b=N(W,L).indexOf(e);if(b===-1)throw Error("Cl`"+e+"`"+W.productId);e=N(a,L);b=b<e.length?e[b]:e.length>0?e[0]:0}else b=e<iq(a.pricingOptions)?e:0;else b=0;iq(a.pricingOptions)<=b&&(b=
0);e=Py(a.pricingOptions,b);var M;W={};R(Object.assign({},m,(W[a.groupId]={productId:K,pricingOptionIndex:b,pricingGroupAttributes:(M=e==null?void 0:e.pricingGroupAttributes)!=null?M:[]},W)))}}},
onPricingOptionSelected:function(K){var a=q().get(K);if(a){K=a.groupId;var m=a.productId;a=a.index;var L=y(),W,e;if(((W=L[K])==null?void 0:W.productId)!==m||((e=L[K])==null?void 0:e.pricingOptionIndex)!==a){var b,M;W={};R(Object.assign({},L,(W[K]={productId:m,pricingOptionIndex:a,pricingGroupAttributes:(M=(b=L[K])==null?void 0:b.pricingGroupAttributes)!=null?M:[]},W)))}}},
onPricingGroupSelected:function(K){var a=h().get(K);if(a){K=a.groupId;var m=a.productId,L=a.pricingGroup.pricingGroupAttributes,W=u(m);if(W){a=y();var e=a[K].pricingGroupAttributes,b;if(((b=a[K])==null?void 0:b.productId)!==m||!BA(QxB(e,iq(L)),L)){b=Array.from(L);for(L=iq(L);L<iq(e);L++){var M="",t=!1,T=Array.from(b);T.push(Py(e,L));for(var A=_.C(W.pricingGroups),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,BA(Z.pricingGroupAttributes,T)){b.push(Py(e,L));t=!0;break}else M===""&&iq(Z.pricingGroupAttributes)===
T.length&&BA(QxB(Z.pricingGroupAttributes,b.length),b)&&(M=Py(Z.pricingGroupAttributes,L));t||b.push(M)}M=a[K].pricingOptionIndex;L=[];t=new Map;T=0;W=_.C(Gv(W.pricingOptions));for(A=W.next();!A.done;A=W.next())Z=_.C(A.value),A=Z.next().value,Z=Z.next().value,BA(Z.pricingGroupAttributes,b)&&L.push(A),BA(Z.pricingGroupAttributes,e)&&t.set(A,T++);L.length===0?e=0:(e=t.get(M),e=e!==void 0&&e<L.length?L[e]:L[0]);W={};R(Object.assign({},a,(W[K]={productId:m,pricingOptionIndex:e,pricingGroupAttributes:b},
W)))}}}},
onClearGroupSelected:function(K){var a=y();a[K]&&(a=Object.fromEntries(Object.entries(a).filter(function(m){return _.C(m).next().value!==K})),R(a))}}};
Gv=function(G){return function F(){var D,u,R,N,y;return _.Gd(F,function(U){switch(U.nextAddress){case 1:_.oo(U,2),D=0,u=_.C(G),R=u.next();case 4:if(R.done){U.jumpTo(2);break}N=R.value;y=_.BP;return U.yield([D++,N],7);case 7:y(U.yieldResult);R=u.next();U.jumpTo(4);break;case 2:_.vY(U),_.Yd(U,0)}})}()};
X_U=function(G,B){G=_.C(Gv(G));for(var F=G.next();!F.done;F=G.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;if(B(D))return F}return-1};
iq=function(G){var B=0;for(G=G[Symbol.iterator]();!G.next().done;)++B;return B};
Py=function(G,B){G=_.C(Gv(G));for(var F=G.next();!F.done;F=G.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;if(F===B)return D}};
BA=function(G,B){if(!G&&!B)return!0;if(!G||!B)return!1;G=Array.from(G);B=Array.from(B);if(G.length!==B.length)return!1;for(var F=0;F<G.length;F++)if(G[F]!==B[F])return!1;return!0};
QxB=function(G,B){B=B===void 0?Infinity:B;var F=[];G=_.C(Gv(G));for(var D=G.next();!D.done;D=G.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;if(D>=B)break;D>=0&&F.push(u)}return F};
mjN=function(G,B){var F,D;return function(){for(var u=G.map(function(N){return N()}),R=0;R<u.length;R++)if(!F||u[R]!==F[R]){F=u;
D=B.apply(null,_.gi(u));break}return D}};
LRD=function(G,B,F){var D=[];G=_.C(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var R=void 0;((R=B)==null?0:R.length)&&!BA(u.pricingGroupAttributes,B)||D.push({pricingOption:u,isSelected:F.includes(u.pricingOptionId)})}return D};
rtQ=function(G,B){return _.g5(G.entities,"pdpStateEntity",B)};
WRG=function(G){var B,F;return!!(G.productId&&G.groupId&&((B=G.pricingOptions)==null?0:B.length)&&G.pricingOptions.every(function(D){return D.pricingOptionId})&&((F=G.pricingGroups)==null||!F.length||Array.isArray(G.pricingGroups)&&G.pricingGroups.every(function(D){return D.pricingGroupId&&D.pricingGroupAttributes&&D.pricingGroupAttributes.length>0})))};
HhA=function(G,B,F){return jxU(G,mjN([B],function(D){return D.filter(WRG)}),F)};
kP$=function(G,B){return B.length===0?[G]:[G.slice(0,B[0]),G.slice(B[0])].filter(function(F){return F.length>0})};
Oh$=function(G){switch(G){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""}};
$jS=function(G,B,F,D){D=Object.assign({},D);_.E_(D,eaQ,{selectedOptionId:G,primaryButtonOverride:F});_.oy().dispatch(_.wC("flowStateEntity",B,D))};
za2=function(G,B,F){!_.Q(F,eaQ)&&G.noPreselect&&B!==""&&G.defaultButtonOverride&&$jS("default",B,G.defaultButtonOverride,F)};
bhZ=function(G){switch(G){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
V3$=function(G){switch(G){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
vP$=function(G,B){B.includes(G)?B=B.filter(function(F){return F!==G}):B.push(G);
return[].concat(_.gi(B))};
oP$=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("n0DHg"),2);G=_.cnv;return B.return(G)})};
M3G=function(G,B){return _.g5(G.entities,"contextNoteFeedEntityPayload",B)};
p_$=function(G,B){switch(G){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return B==null?void 0:B.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return B==null?void 0:B.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return B==null?void 0:B.ratingNotHelpfulText}};
YY$=function(G,B,F){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:F||G.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:G.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:G.deleteDialogTitle}]},dialogMessages:[{runs:[{text:G.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.deleteActionText}]},command:{performCommentActionEndpoint:{action:B}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
AtB=function(G,B,F){var D;if(G&&((D=B())==null?0:D.includes(G))){var u;F((u=B())==null?void 0:u.filter(function(R){return R!==G}))}else F([].concat(_.gi(B()||[]),[G]))};
Jt$=function(G,B){if(G){var F=[];B=_.C((B==null?void 0:B.checkboxes)||[]);for(var D=B.next();!D.done;D=B.next()){D=_.Q(D.value,dj$);var u=void 0;((u=D)==null?0:u.value)&&G.includes(D.key||"")&&F.push(D.value)}return F}};
ctS=function(G,B){return G===B?!0:(G==null?void 0:G.formId)===(B==null?void 0:B.formId)&&(G==null?void 0:G.fieldId)===(B==null?void 0:B.fieldId)};
IMD=function(G){var B=TC$.get(G);if(B)return B;B=G.replace(/_([a-zA-Z0-9])/g,function(F,D){return D.toUpperCase()});
TC$.set(G,B);return B};
ZhN=function(G){var B=_.mS(function(){var D;return(D=_.Mg(G))!=null?D:{}},{equals:ctS},"rjkP8c"),F=_.mS(function(){var D=B(),u=D.formId;
D=D.fieldId;var R;if(R=u&&D){if(D==="formId")throw Error("Jl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(u&&(fMZ?fMZ():(R=_.C(_.qg(0,void 0,"VxY0fb")),fMZ=R.next().value,R.next(),R.next(),fMZ()),R=t3z.get(u))){R=R.form;break b}R=void 0}if(R){var N=IMD(D);R=R[N]}else R=void 0}if(R)throw Error("Jl`"+("Field "+D+" in form "+u+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return F()}};
gPG=function(G){G.style.height="auto";G.style.height=G.scrollHeight+"px"};
SYA=function(G){return[G.syncStep,G.asyncStep].filter(function(B){return B!==void 0})};
xj$=function(G){var B,F,D;if(G=(B=G.structuredContextNoteFormSchema)==null?void 0:(F=B.fieldSchemas)==null?void 0:(D=F.noteBody)==null?void 0:D.validationSchema)for(B=_.C(SYA(G)),F=B.next();!F.done;F=B.next()){F=F.value.rules;if(!F)break;F=_.C(F);for(F=F.next();!F.done;F=F.next())return _.Q(F.value,sx$)}};
GfQ=function(G){if(G){G=_.C(SYA(G));for(var B=G.next();!B.done;B=G.next()){B=B.value.rules;if(!B)break;B=_.C(B);for(B=B.next();!B.done;B=B.next())return _.Q(B.value,PR$)}}};
izU=function(G){if(G){G=_.C(SYA(G));for(var B=G.next();!B.done;B=G.next()){B=B.value.rules;if(!B)break;B=_.C(B);for(B=B.next();!B.done;B=B.next())return _.Q(B.value,BN$)}}};
FHA=function(G){G=/^https?:\/\//.test(G)?G:"http://"+G;try{var B=_.pn(G)}catch(F){return!1}if(B.toString()!==G)return!1;G=B.JSC$10342_domain_.split(".");return G.length>1&&G.every(function(F){return!!F})};
DkS=function(G,B,F,D){var u;D=(u=D.structuredContextNoteData)==null?void 0:u.createCommentEndpoint;if(u=_.Q(D,_.GiU))return u.commentText=_.$9(G),u.videoPositionMention=B,u.sources=F,D};
upD=function(G){return G==null?void 0:G.stringValue};
w0$=function(G,B,F){G=G.map(function(D,u){return{listItemViewModel:{title:D.title,subtitle:D.subtitle,leadingImage:D.leadingImage,trailingImage:u===B?R9N:void 0,rendererContext:{commandContext:{onTap:D.onTap}}}}});
return Object.assign({},F&&{header:{panelHeaderViewModel:{title:F}}},{content:{listViewModel:{listItems:G}}})};
CvG=function(G,B){if(G&&B)switch(B){case "SELECTION_TYPE_BOOL":return G.boolValue;case "SELECTION_TYPE_INT":return G.intValue;case "SELECTION_TYPE_STRING":return G.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return G.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return G.timePickerFormatValue}};
NNA=function(G){var B;G=(B=G.options)==null?void 0:B.findIndex(function(F){return F.isSelected});
return G===void 0?-1:G};
ymH=function(G,B,F){var D=function(){return G().label},u={},R=_.tx("ytDropdownViewModelLabel",(u.ytDropdownViewModelLabelError=B,u));
return _.l(_.E,{cond:function(){return G().label&&!(F()===-1&&G().label&&!G().placeholderText)},
then:function(){return _.l("div",{class:R},_.l(_.Wd,{text:D}))}})};
nL2=function(G,B){var F={};F=_.tx("ytDropdownViewModelTitle",(F.ytDropdownViewModelTitlePlaceholder=function(){return B()===-1},F));
return _.l("div",{class:F},_.l(_.Wd,{text:function(){var D=G();var u=B();if(u===-1)D=D.placeholderText?D.placeholderText:D.label;else{var R,N;D=(R=D.options)==null?void 0:(N=R[u])==null?void 0:N.title}return D}}))};
lbU=function(G,B){var F=function(){return G().hint};
return _.l(_.GJ,null,_.l(_.E,{cond:function(){return F()&&!B()},
then:function(){return _.l("div",{class:_.tx("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.l(_.Wd,{text:F,className:"ytDropdownViewModelSupportText"}))}}),_.l(_.E,{cond:B,
then:function(){return _.l("div",{id:"dropdown-view-model-error",role:"alert",class:_.tx("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.l(_.Pr,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.l(_.Wd,{text:B,className:"ytDropdownViewModelSupportText"}))}}))};
Uk$=function(G,B){var F=_.te().resolve(_.fJQ);_.$f(function(){var D=G().id;D&&F!=null&&F.dropdownMap.set(D,B)})};
ELD=function(G){G=_.Q(G.scheduleButton,qdz);G=_.Q(G==null?void 0:G.primaryButton,_.LV);G=_.Q(G==null?void 0:G.onTap,_.mr);var B,F,D=((F=_.Q(G,_.gs))==null?void 0:F.commands)||[G];F=_.C(D);for(G=F.next();!G.done&&!(B=_.Q(G.value,_.gla));G=F.next());var u;B=(u=B)==null?void 0:u.createBroadcastRequest;if(!B)throw Error("Pl");return B};
h9D=function(G){var B,F;return((F=_.Q((B=G.steps)==null?void 0:B[0],_.wr))==null?void 0:F.stepId)||""};
mkD=function(G,B){if(B){var F=_.VU().getState().entities.flowStateEntity,D=KHU(G),u=[B];D&&D!==B&&u.push(D);var R=!0,N;if(F&&G.flowStateEntityKey&&((N=F[G.flowStateEntityKey])==null?void 0:N.primaryButtonDisabled)!==void 0){var y;R=!((y=F[G.flowStateEntityKey])==null||!y.primaryButtonDisabled)}abU(G,D!=null?D:B,u,R)}};
QGS=function(G){return _.Dh(_.VU(),function(B){return B.entities.flowStateEntity},function(B,F){if(G.flowStateEntityKey){var D,u=B==null?void 0:(D=B[G.flowStateEntityKey])==null?void 0:D.currentStepId,R;
F=F==null?void 0:(R=F[G.flowStateEntityKey])==null?void 0:R.currentStepId;R=_.VU().getState().talkToRecs;if(u&&u!==F){var N;B=(B==null?void 0:(N=B[G.flowStateEntityKey])==null?void 0:N.stepIdStack)||Object.keys(R.stepStates);N=!X0N(R==null?void 0:R.stepStates[u]);abU(G,u,B,N)}}})};
LH$=function(G){return _.Dh(_.VU(),jGS,function(B){var F=KHU(G);if(F){var D=Object.keys(B.stepStates);B=!X0N(B==null?void 0:B.stepStates[F]);abU(G,F,D,B)}})};
X0N=function(G){var B=Object.keys((G==null?void 0:G.selectionStates)||{}).reduce(function(R,N){return R||(G==null?void 0:G.selectionStates[N].isSelected)},!1),F,D,u=!!(G==null?0:(F=G.userQuery)==null?0:(D=F.userQuery)==null?0:D.trim());
return B||u};
KHU=function(G){if(G.flowStateEntityKey){var B,F,D=(B=_.VU().getState().entities.flowStateEntity)==null?void 0:(F=B[G.flowStateEntityKey])==null?void 0:F.currentStepId;if(D)return D}};
abU=function(G,B,F,D){_.VU().dispatch(_.wC("flowStateEntity",G.flowStateEntityKey,{currentStepId:B,stepIdStack:F,key:G.flowStateEntityKey,primaryButtonDisabled:D}))};
kfA=function(G,B,F){F=F===void 0?{}:F;var D,u;return _.n(function(R){if(D=rmB(B))return R.return(D);(u=WHU(G,B,F))&&Hz2(B,u);return R.return(u)})};
Hz2=function(G,B){var F=Oz2(G);F&&B.then(function(D){_.te().resolve(_.tf).put(F,new _.Zs({innertubeResponse:D}))})};
rmB=function(G){if(G=Oz2(G)){var B=_.te().resolve(_.tf);if(B.has(G))return B.get(G).then(function(F){return F==null?void 0:_.tm(F)})}return null};
Oz2=function(G){var B=_.Q(G.endpoint,_.Ow);if(B!=null&&B.videoId)return B={videoId:B.videoId},_.X("web_imp_player_mute_params")&&(B.mutedAtStart=G.startPlaybackInMutedState),_.ky("inline_playback",B)};
WHU=function(G,B,F){G=_.$F(G,B.endpoint,e9N(B,F)).then(function(D){return D});
return Promise.resolve(G)};
e9N=function(G,B){B=_.X("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!G.startPlaybackInMutedState},B):Object.assign({},{vis:5,autonav:"1"},B);var F;B={contentPlaybackContext:_.Sg(B,(F=_.Q(G.endpoint.commandMetadata,_.xy))==null?void 0:F.url,window.location.href)};_.X("web_imp_player_mute_params")&&(B.overrideMutedAtStart=!G.startPlaybackInMutedState);return B};
vLU=function(G,B){var F=window.MutationObserver;F&&($k$=new F(function(D,u){D=_.C(D);for(var R=D.next();!R.done;R=D.next()){R=R.value;var N;if(N=R.type==="childList"&&R.target)a:{N=G;R=z9D(R.target);N=z9D(N);for(var y=null,U=0;U<R.length;U++)if(N.includes(R[U])){if(U===0){N=!1;break a}y=R[U];break}y?(R=bzN(R,y),N=bzN(N,y),N=R<N):N=!1}if(N){B();u.disconnect();break}}}),(F=VgH())&&$k$.observe(F,{childList:!0,
subtree:!0}))};
VgH=function(){var G=document.getElementsByTagName("ytd-rich-grid-renderer");if(G.length>0)return G[0];G=document.getElementsByTagName("ytd-section-list-renderer");return G.length>0?G[0]:null};
z9D=function(G){for(var B=[];G;)B.push(G),G=G.parentElement;return B};
bzN=function(G,B){var F=Array.from(B.children);B=G.indexOf(B);return B>0?F.indexOf(G[B-1]):-1};
FU=function(G,B,F){F=F===void 0?{}:F;return _.G7(G,F,B)};
oLz=function(G){switch(G){case "MUSIC":return!0;default:return!1}};
p0$=function(G){if(G=G==null?void 0:G.find(function(D){var u,R;return((u=_.Q(D,MgB))==null?void 0:(R=u.inlinePlaybackBadgeData)==null?void 0:R.replicateAsTimestamp)===!0}))if(G=_.Q(G,MgB),G==null?0:G.icon){var B,F;
if((G=(B=_.Hsz(G.icon))==null?void 0:(F=B.clientResource)==null?void 0:F.imageName)&&oLz(G))return G}};
YdA=function(G){return G==null?void 0:G.filter(function(B){return B.premiereTrailerBadgeRenderer})};
AmN=function(G){var B,F=G==null?void 0:(B=G.find(function(U){return U.thumbnailOverlayTimeStatusRenderer}))==null?void 0:B.thumbnailOverlayTimeStatusRenderer,D,u;
if((F==null?0:(D=F.icon)==null?0:D.iconType)&&oLz(F==null?void 0:(u=F.icon)==null?void 0:u.iconType)){var R;return{icon:F==null?void 0:(R=F.icon)==null?void 0:R.iconType}}var N;if(B=G==null?void 0:(N=G.find(function(U){return U.thumbnailOverlayBadgeViewModel}))==null?void 0:N.thumbnailOverlayBadgeViewModel)if(N=p0$(B.thumbnailBadges))return{icon:N};
var y;if(G=G==null?void 0:(y=G.find(function(U){return U.thumbnailBottomOverlayViewModel}))==null?void 0:y.thumbnailBottomOverlayViewModel)if(y=p0$(G.badges))return{icon:y};
return{}};
IbN=function(G,B){var F=new dkN(function(R){u(R)},B);
B=_.C(_.qg(JmG(F),void 0,"D2uee"));var D=B.next().value,u=B.next().value;_.bC(function(){Promise.resolve().then(function(){var R,N=(R=G())!=null?R:{};F.playerControlsData=N;F.lastSeenPlayerApi=_.r6(N.playerApi);cm$(F)});
_.VI(function(){TNz(F)})},"xfRk8b");
return D};
fbA=function(G){return function(B){var F=G(),D={playerState:B};if(B===1){var u;(u=F.playerApi)==null||u.loadModule("captions")}if(B===0){var R;(R=F.playerApi)==null||R.unloadModule("captions")}B!==-1&&F.setState(D)}};
tgD=function(G){return function(B){G().setState({playbackRate:B})}};
ZzH=function(G){return function(B){var F=G(),D=F.playerApi,u=D==null?void 0:D.getVideoData(),R=(u==null?void 0:u.isLive)||!1;u=u==null?void 0:u.video_id;R={videoDuration:p2$(D||void 0),isLive:R,videoId:u};R.videoId!==F.videoId&&(R=Object.assign({},_.GsN(D),R));if(B==null?0:B.playertype)R.playerType=B.playertype;if(D){R.captionsAvailable=HJS(D);B=R;var N;u=(N=D.getStoryboardLevel(D.getNumberOfStoryboardLevels()-1))==null?void 0:N.intervalMs;B.storyboardInterval=u?u/1E3:void 0;R.captionsAvailable&&
(R.captionsEnabled=kxD(D))}R.volumeMuted=!(D==null||!D.isMuted());F.setState(R)}};
gLS=function(G){return function(B){var F=G(),D=F.playerApi;if(D){var u=D.getPresentingPlayerType();B={playedTime:B||0,percentLoaded:D.getVideoLoadedFraction(),playerType:u};F.playerState===0&&(B.playedTime=F.videoDuration);F.isLive&&(u=D.getProgressState(u),B.playedTime-=u.seekableStart,B.videoDuration=p2$(D));if(F.playerType===1)D=!1;else{var R;if((R=F.uxConfig)==null?0:R.showCuedOverlay){var N;D=!((N=F.playerApi)==null?0:N.getPlayerStateObject(F.playerType).isDomPaused)}else D=!0}D&&delete B.playedTime;
F.setState(B)}}};
Sd$=function(G){return function(){var B=G(),F,D,u,R={volume:(u=(F=B.playerApi)==null?void 0:F.getVolume())!=null?u:0,volumeMuted:!((D=B.playerApi)==null||!D.isMuted())};B.setState(R)}};
sG2=function(G){return function(){var B=G(),F=B.playerApi;if(F){var D={captionsAvailable:HJS(F)};D.captionsAvailable&&(D.captionsEnabled=kxD(F));B.setState(D)}}};
xkN=function(G){return{appApi:Object.assign({},_.tfL(),{showCaptionsToggleToast:function(B){var F,D;(D=(F=G()).showCaptionsToggleToast)==null||D.call(F,B)},
openInMiniplayer:function(){var B,F;(F=(B=G()).openInMiniplayer)==null||F.call(B)}})}};
PvB=function(G,B){var F,D,u;return!!(G==null?0:(F=G.playerResponse)==null?0:(D=F.playerConfig)==null?0:(u=D.inlinePlaybackConfig)==null?0:u.showScrubbingControls)&&!(B==null?0:B.hideScrubbingControls)};
GdS=function(G){var B=!G.miniplayerIsActive;return[5,2,0].includes(G.miniplayerPlaybackState)||B};
B6D=function(G){return _.X("web_transcript_cue_id_killswitch")?String(G):"ytd-transcript-renderer_"+G};
ix$=function(G){return _.X("web_transcript_cue_id_killswitch")?!0:G.startsWith("ytd-transcript-renderer")};
FhH=function(G){var B=_.AZ(),F;if(F=_.Yf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;F=(D=F())==null?void 0:D.layoutId}else F=null;PNQ(B,F,G)};
Dtz=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("HwlOhd"),2);G=_.vHL;return B.return(G)})};
ui$=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("JoU6vf"),2);G=_.WC;return B.return(G)})};
ROZ=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("hU04te"),2);G=_.x0z;return B.return(G)})};
wPZ=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("dIvQ6c"),2);G=_.ULD;return B.return(G)})};
CQz=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("m9Vw4"),2);G=_.QIU;return B.return(G)})};
N6A=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("mcjWUc"),2);G=_.zJ$;return B.return(G)})};
y1D=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("QiZf0e"),2);G=_.spQ;return B.return(G)})};
nw$=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("f8YPh"),2);G=_.btU;return B.return(G)})};
lwS=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield((0,_.Gc)("b3MoKf"),2);G=_.vb2;return B.return(G)})};
UtB=function(G){G.style.height="auto";G.style.height=Math.min(G.scrollHeight||20,80)+"px"};
q$D=function(){var G;return String(Math.floor(((G=_.sR())==null?void 0:G.getCurrentTime())||0)*1E3)};
hON=function(G){if(G.onWelcomeCommand)return _.X1(G.onWelcomeCommand);G=_.Q(G.inputComposerViewModel,Ew$);if(G==null?0:G.welcomeFeatureContinuation)return _.m0B(G.welcomeFeatureContinuation)};
KhD=function(G){var B=_.AZ(),F;F=(F=_.Yf("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.layoutId:null;PNQ(B,F,G)};
awU=function(G){var B=_.AZ(),F;F=(F=_.Yf("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.layoutId:null;PNQ(B,F,G)};
mtG=function(G){return G.filter(function(B){return!_.Q(B,_.kw)})};
XP2=function(G){var B,F,D,u;if(G=G==null?void 0:(B=G.contents)==null?void 0:(F=B.twoColumnWatchNextResults)==null?void 0:(D=F.results)==null?void 0:(u=D.results)==null?void 0:u.contents){var R,N;return(N=(R=G.find(function(y){return!!y.videoPrimaryInfoRenderer}))==null?void 0:R.videoPrimaryInfoRenderer)==null?void 0:N.updatedMetadataEndpoint}};
QCH=function(G,B){var F;return(F=G.sourceConfigs)==null?void 0:F.find(function(D){return D.videoId===B})};
jCD=function(G){return G==="End of video"||G==="End of playlist"};
LhN=function(G){var B,F,D,u;return(B=G.getWatchNextResponse())==null?void 0:(F=B.contents)==null?void 0:(D=F.twoColumnWatchNextResults)==null?void 0:(u=D.playlist)==null?void 0:u.playlist};
r1$=function(G){var B,F,D,u,R,N;return(B=LhN(G))==null?void 0:(F=B.playlistButtons)==null?void 0:(D=F.menuRenderer)==null?void 0:(u=D.topLevelButtons)==null?void 0:(R=u[0])==null?void 0:(N=R.playlistLoopButtonRenderer)==null?void 0:N.playlistLoopStateEntityKey};
WhS=function(G){var B=_.te().resolve(_.Wv),F;return(B=(F=_.Q(B.getAutoplayEndpoint(),_.Ow))==null?void 0:F.playlistId)&&B===G};
Ox$=function(G,B,F,D,u){function R(){_.Lu.cancelJob(Dm);var N=Hx$(B,F/G.getPlaybackRate()),y=N.hours,U=N.minutes;N=(N.seconds*1E3||6E4)/G.getPlaybackRate();G.setVideoTimeLeft(kdQ(y,U));D&&G.getPlayerState()!==0&&G.setSleepTimerTimeLeft(kdQ(y,U,!0));(y>0||U>0)&&!u&&(Dm=_.yH(_.Lu,R,N))}
_.Lu.cancelJob(Dm);Dm=_.yH(_.Lu,R)};
$tB=function(G,B,F){function D(){_.Lu.cancelJob(eO$);var u=Hx$(B,F),R=u.hours;u=u.minutes;var N=6E4/G.getPlaybackRate();if(R>0||u>0)G.setSleepTimerTimeLeft(kdQ(R,u,!0)),eO$=_.yH(_.Lu,D,N)}
_.Lu.cancelJob(eO$);eO$=_.yH(_.Lu,D)};
bxU=function(G,B){var F=G.getVolume()/(B/500),D=function(u){_.Lu.cancelJob(zOA);var R=Math.floor(u-F);G.setVolume(R,!1);R>0&&(zOA=_.yH(_.Lu,function(){D(R)},500))};
_.Lu.cancelJob(zOA);zOA=_.yH(_.Lu,function(){D(G.getVolume())})};
VTz=function(G,B){_.Lu.cancelJob(zOA);B&&G.syncVolume()};
vwB=function(){var G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.G7("SLEEP_TIMER_DISRUPTED")}}}}};_.te().resolve(_.Wr).resolveCommand(G)};
ow$=function(G){return(G.getDuration()-G.getProgressState().current)*1E3};
Hx$=function(G,B){G=G+B-(0,_.Zl)();if(G<=0)return{hours:0,minutes:0,seconds:0};var F=new MTG(0,0,0,0,0,0,G);G=F.getHours();B=F.getMinutes();F=F.getSeconds();F!==0&&B++;B!==0&&B%60===0&&(G++,B=0);return{hours:G,minutes:B,seconds:F}};
kdQ=function(G,B,F){return G>0&&B>0?F?_.G7("TIME_LEFT_HOURS_MINUTES",{hours:G.toString(),minutes:B.toString()}):_.G7("TIME_HOURS_MINUTES",{hours:G.toString(),minutes:B.toString()}):G>0?F?_.BT("TIME_LEFT_HOURS",G):_.BT("TIME_HOURS",G):F?_.G7("TIME_LEFT_MINUTES",{minutes:B.toString()}):_.G7("TIME_MINUTES",{minutes:B.toString()})};
Y$z=function(G,B){if(G.timelyActions)return G.timelyActions.find(function(F){var D;return((D=_.Q(F,pP$))==null?void 0:D.cueRangeId)===B})};
A1Z=function(G){return _.X("kevlar_watch_cinematics_invisible")||G.fullscreen&&_.X("kevlar_watch_cinematics_invisible_in_fullscreen")||G.theater&&!G.fullscreen&&_.X("kevlar_watch_cinematics_invisible_in_theater")};
dtZ=function(){var G=document.createElement("canvas"),B=G.getContext("2d");if(!B)throw Error("Tl");_.ee(G,{position:"absolute",width:"100%",height:"100%"});return{element:G,context:B}};
J1S=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.X("kevlar_watch_cinematics_css_blur")};
c1z=function(G){var B=G.externalVideoId||"";return B?G.isShortsEligible?"https://www.youtube.com/shorts/"+B:"https://www.youtube.com/watch?v="+B:""};
T6Z=function(G){var B=[];G.viewCount&&B.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:G.viewCount});G.likeCount&&B.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:G.likeCount});return B};
IwG=function(G){var B,F,D={"@context":"https://schema.org","@type":"VideoObject",description:_.zx(G.description),duration:"PT"+(G.lengthSeconds||"0")+"S",embedUrl:G.embed?G.embed.iframeUrl:"",name:_.zx(G.title),thumbnailUrl:((B=G.thumbnail)==null?void 0:(F=B.thumbnails)==null?void 0:F.map(function(h){return h&&h.url||""}))||[],
uploadDate:G.publishDate};_.X("mweb_video_schema_id_killswitch")||(D["@id"]=c1z(G));B=T6Z(G);B.length&&(D.interactionStatistic=B);G.category&&(D.genre=G.category);G.ownerChannelName&&(D.author=G.ownerChannelName);G.liveBroadcastDetails&&(D.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:G.liveBroadcastDetails.startTimestamp,endDate:G.liveBroadcastDetails.endTimestamp}]);if(G.learningResource){G=G.learningResource;D["@type"]=["VideoObject","LearningResource"];var u;if((u=G.learningResourceType)==
null?0:u.length)D.learningResourceType=G.learningResourceType[0];var R;if((R=G.educationalAlignment)==null?0:R.length)D.educationalAlignment={"@type":"AlignmentObject",targetName:G.educationalAlignment[0]};var N;if((N=G.educationalLevel)==null?0:N.length){u=G.educationalLevel[0];var y;if((y=G.educationalLevelCountry)==null?0:y.length)u+=" ("+G.educationalLevelCountry+")";D.educationalLevel=u}var U,q;if(((U=G.learningResourceType)==null?0:U.length)&&G.learningResourceType[0]==="Problem walkthrough"&&
((q=G.problemDescriptions)==null?0:q.length))for(D.hasPart=[],y=_.C(G.problemDescriptions),U=y.next();!U.done;U=y.next())u=U.value,U=u.problemDescriptionText,q=u.startOffset,u=u.url,U&&q!==void 0&&u&&D.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:U,text:U,startOffset:q,url:u})}return D};
fw$=function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1};
tTA=function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.contents.twoColumnWatchNextResults.results.results.contents};
Zx$=function(G){if((G==null?void 0:G.value)===void 0||G==null||!G.unit)return"initial";a:{switch(G.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var B="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":B="%";break a}B=void 0}return B?""+G.value+B:"initial"};
gwQ=function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1};
S$D=function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.contents.twoColumnWatchNextResults.results.results.contents};
xtB=function(G,B){var F,D,u,R,N,y,U;_.n(function(q){switch(q.nextAddress){case 1:F=_.k7.getInstance();D=_.Gm.instance;u=_.OR.instance;if(!u)return sCD(G,D,B),q.return();_.b5(q,2);G.onLoadingCommand&&D.resolveCommand(G.onLoadingCommand);return q.yield(F.getCurrentPositionFromGeolocation(),4);case 4:R=q.yieldResult;if(!G.resolveLocationCommand){q.jumpTo(5);break}N=F.createLocationInfo(R);return q.yield(_.$F(u,G.resolveLocationCommand,{locationInfo:N}),6);case 6:y=q.yieldResult;if(!y||"error"in y&&y.error||
y.errorMetadata)return sCD(G,D,B),q.return();var h;if(y==null?0:(h=y.onResponseReceivedActions)==null?0:h.length){h=_.C(y.onResponseReceivedActions);for(var K=h.next();!K.done;K=h.next())D.resolveCommand(K.value)}(_.Q(G.onSuccessCommand,_.Ow)||_.Q(G.onSuccessCommand,_.x9))&&_.cZ(B.hostElement,"yt-navigate",{endpoint:G.onSuccessCommand,reload:!0});case 5:_.oY(q,0);break;case 2:U=_.Al(q);if(U instanceof GeolocationPositionError&&U.code===GeolocationPositionError.PERMISSION_DENIED)return G.onDeniedCommand&&
D.resolveCommand(G.onDeniedCommand),q.return();sCD(G,D,B);_.di(q)}})};
sCD=function(G,B,F){G.onFailureCommand&&(B.resolveCommand(G.onFailureCommand),_.T1(F.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
G9A=function(G,B){var F=_.Q(G,_.lTP);if(F&&B){G=F.videoIds||[F.videoId];var D;B=(D=_.cZ(B,"yt-lockup-requested",{videoIds:G}).detail)==null?void 0:D.returnValue;var u;F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?u=B?B:G.map(function(R){return{videoId:R,navigationEndpoint:F.videoCommand}}):B&&(u=B);
u&&(D=u.map(function(R){var N=Object,y=N.assign;var U=R.navigationEndpoint;if(!_.Q(U,_.Fu)){var q=_.Q(U,_.Ow);if(q){if(delete q.index,delete q.playlistId,q=_.Q(U==null?void 0:U.commandMetadata,_.xy),q==null?0:q.url){var h=q.url;h=_.iB(h,"list");h=_.iB(h,"index");q.url=h}}else U=void 0}return y.call(N,{},R,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:U})}),PQ$(D,F))}};
BI$=function(G){var B=_.$l();if(G=_.Q(G,_.Ups))G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&B.clearQueue(),G.closeMiniplayer&&_.te().resolve(_.WP).close(!0)};
FvG=function(G){iXU(_.$l(),G)};
DVH=function(G){var B;(G=(B=_.Q(G,_.yD7))==null?void 0:B.setVideoIds)&&G.forEach(function(F){_.Nvq(_.$l(),F)})};
RP2=function(G){uSN(_.$l(),G)};
wUB=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(G){return!1}};
wR=function(G,B,F){(_.X("desktop_keyboard_shortcut_usage_log")||F&&_.X("web_shorts_keyboard_shortcut_usage_log"))&&(B?uq.get(G):Rl.get(G))&&(G=B?CcD.get(G):NI$.get(G))&&_.$I(_.qW(),G)};
nz$=function(G){return G.findIndex(function(B){return yRZ.indexOf(B.tagName)>-1})>-1};
lI$=function(G,B){return G.findIndex(function(F){return F.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(B.keyCode):!1};
q8z=function(G,B){return _.l(UVz,{data:G,onYtNavigate:B})};
Ez2=function(G,B){return _.g5(G.entities,"pageHeaderEntity",B)};
KvG=function(G,B){return G.map(function(F){if(F.tabRenderer)return hP$(F.tabRenderer);if(F.expandableTabRenderer&&B){var D=F.expandableTabRenderer;return{customTabRenderable:function(){return B(D)}}}return{}})};
hP$=function(G){return{identifier:G.tabIdentifier,aTagConfig:_.jF({innertubeCommand:G.endpoint,forceNewState:!0}),title:G.title,selected:G.selected,disabled:G.unselectable,icon:G.icon}};
XUU=function(G,B,F,D){if(G)return D=D||G.likeStatus,B?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:D==="LIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:F},defaultText:D==="LIKE"?G.likeCountWithUnlikeText:G.likeCountText,toggledText:D==="LIKE"?G.likeCountText:G.likeCountWithLikeText,defaultNavigationEndpoint:aIS(G,"LIKE"),defaultServiceEndpoint:mVU(G,"LIKE"),toggledServiceEndpoint:mVU(G,"INDIFFERENT"),defaultTooltip:_.zx(G.likeCountTooltipText),toggledTooltip:_.zx(G.likeCountTooltipText),
targetId:G.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:D==="DISLIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:F},defaultText:D==="DISLIKE"?G.dislikeCountWithUndislikeText:G.dislikeCountText,toggledText:D==="DISLIKE"?G.dislikeCountText:G.dislikeCountWithDislikeText,defaultNavigationEndpoint:aIS(G,"DISLIKE"),defaultServiceEndpoint:mVU(G,"DISLIKE"),toggledServiceEndpoint:mVU(G,"INDIFFERENT"),defaultTooltip:_.zx(G.dislikeCountTooltipText),
toggledTooltip:_.zx(G.dislikeCountTooltipText)}};
aIS=function(G,B){if(B==="LIKE")return G.likeCommand;if(B==="DISLIKE")return G.dislikeNavigationEndpoint};
mVU=function(G,B){var F;return(F=G.serviceEndpoints)==null?void 0:F.find(function(D){var u;return((u=_.Q(D,_.yr))==null?void 0:u.status)===B})};
QDU=function(G,B,F,D){G=B-G;F=D-F;return Math.sqrt(G*G+F*F)};
jDD=function(G){var B=G>>8&255,F=G&255;return"#"+(G>>16&255).toString(16).padStart(2,"0")+B.toString(16).padStart(2,"0")+F.toString(16).padStart(2,"0")};
LvB=function(G,B){G&&_.te().resolve(_.Wr).resolveCommand(G,{forceClickLogging:!0,form:{element:B}})};
rR2=function(G){if(G.simpleText)return[{text:G.simpleText}];var B;return(B=G.runs)!=null?B:[]};
Wv$=function(G){var B=G.startEndTimeTemplate,F=G.startTimeUtcMillis;G=G.endTimeUtcMillis;if(B&&F&&G)return _.$9(qXU(_.zx(B),Number(F),Number(G)))};
HXD=function(G,B){var F,D,u=G==null?void 0:(F=G.viewCount)==null?void 0:(D=F.videoViewCountRenderer)==null?void 0:D.shortViewCount;if(!B&&u)return u;var R,N;return G==null?void 0:(R=G.viewCount)==null?void 0:(N=R.videoViewCountRenderer)==null?void 0:N.viewCount};
k92=function(G,B){var F=G==null?void 0:G.relativeDateText;return!B&&F?[F,!0]:[G==null?void 0:G.dateText,!1]};
OXD=function(G,B,F,D,u){D=D===void 0?"":D;u=u===void 0?!1:u;var R=HXD(G,B),N=_.C(k92(G,B)),y=N.next().value;N=N.next().value;B=B?G==null?void 0:G.sponsorsOnlyFirstTimeLongText:G==null?void 0:G.sponsorsOnlyFirstTimeShortText;var U=[];F&&R&&U.push(R);!F&&N||!y||U.push(y);G=[u?G==null?void 0:G.subtitle:void 0].concat(_.gi(U),[B,G==null?void 0:G.stationName,G==null?void 0:G.rating,G?Wv$(G):void 0,G==null?void 0:G.upNextProgramText,G==null?void 0:G.superTitleLink]).filter(function(q){return!!q});
F={runs:[]};for(u=0;u<G.length;u++)F.runs.push.apply(F.runs,_.gi(rR2(G[u]))),u<G.length-1&&F.runs.push({text:" "+D+" "});return F};
ePH=function(G,B){var F=_.zYT(B,{},G,!0);return new Promise(function(D,u){F.listenOnce("n",function(){u(Error("fm`"+F.JSC$30540_getErrorDescription()))});
F.listenOnce("l",function(){var R=F.getResponseCode();if(R!==200)u(Error("gm`"+B+"`"+G.type+"`"+G.size+"`"+R));else try{D(JSON.parse(F.getResponseText()).encryptedBlobId)}catch(N){u(N)}});
F.run()})};
$VB=function(G){return G.substring(G.indexOf(":")+1,G.indexOf(";"))};
zPQ=function(G){return new Promise(function(B,F){var D=new FileReader;D.onloadend=function(){try{var u=new Uint8Array(D.result);u.length<8&&F(void 0);var R=u.subarray(0,8);u="";for(var N=0;N<R.length;N++)u+=("0"+R[N].toString(16)).substr(-2);u.startsWith("ffd8ff")?B("image/jpeg"):u.startsWith("47494638")?B("image/gif"):u.startsWith("89504e470d0a1a0a")?B("image/png"):u.startsWith("424d")?B("image/bmp"):B(void 0)}catch(y){F(y)}};
D.onerror=F;D.readAsArrayBuffer(G)})};
bXN=function(G){return new Promise(function(B,F){var D=new Image;D.crossOrigin="anonymous";D.onload=function(){var u=document.createElement("canvas");u.width=D.naturalWidth;u.height=D.naturalHeight;var R=u.getContext("2d");if(!R)throw Error("hm");R.drawImage(D,0,0);R=$VB(G);u.toBlob(function(N){N?B(N):F()},R)};
D.src=G})};
vzG=function(G,B){var F;if(((F=_.Q(G,_.Fu))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var D;_.cZ((D=B.hostElement)!=null?D:B,"yt-shorts-reset");_.JMD(_.te().resolve(_.DG),G).then(function(R){VUU(R,B,G)})}else{var u;
_.fi((u=B.hostElement)!=null?u:B,[G]).then(function(R){R&&VUU(R.data,B,G)})}};
VUU=function(G,B,F){if(G){var D=_.Q(G.replacementEndpoint,_.Fu);if(D){G.sequenceContinuation&&(D.sequenceParams=G.sequenceContinuation);var u;_.cZ((u=B.hostElement)!=null?u:B,"yt-navigate",{endpoint:G.replacementEndpoint})}else if((G==null?void 0:G.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(G==null?0:G.watchStatus)&&_.Q(G.watchStatus,_.PE7)){var R;_.cZ((R=B.hostElement)!=null?R:B,"yt-navigate",{endpoint:F})}}};
ozB=function(G){var B=_.te().resolve(_.Ep),F=_.OY.currentPageTypeSelector(B.getState())||"";B=_.OY.currentPageSubTypeSelector(B.getState())||"";F=F==="ytd-browse"&&B==="home";return _.X("web_guide_entry_enable_cache_for_non_home_pages")?(G=(G==null?void 0:G.navigationEndpoint)&&_.sX(G.navigationEndpoint)==="home",{disableCache:F&&G}):{disableCache:F}};
Y8D=function(G,B,F,D){if(G&&G.length){var u={};if(B){var R=void 0;F&&(R={commandContext:{onTap:{innertubeCommand:F||{}}}});u.header={panelHeaderViewModel:{title:_.hx(B),rendererContext:R}}}B=[];G=_.C(G);for(F=G.next();!F.done;F=G.next()){R=F.value;F=_.Q(R,MUH);R=_.Q(R,pU$);var N=void 0,y=void 0;if((N=R)==null?0:(y=N.expandableItems)==null?0:y.length)for(R=_.C(R.expandableItems),N=R.next();!N.done;N=R.next()){N=N.value.guideEntryRenderer;var U=y=void 0;if(((y=N)==null?void 0:(U=y.icon)==null?void 0:
U.iconType)==="VIEW_LIST_CAIRO"){F=N;break}}y=N=void 0;R=((N=F)==null?0:N.formattedTitle)?_.hx((y=F)==null?void 0:y.formattedTitle):void 0;N=void 0;y=(N=F)==null?void 0:N.isPrimary;if(F&&R&&!y){R={title:R};F.navigationEndpoint&&(R.rendererContext={commandContext:{onTap:{innertubeCommand:F.navigationEndpoint}}});N=[];U=y=void 0;if(((y=F)==null?0:(U=y.thumbnail)==null?0:U.thumbnails)&&F.thumbnail.thumbnails.length>0){y=_.C(F.thumbnail.thumbnails);for(U=y.next();!U.done;U=y.next())N.push({url:U.value.url});
R.leadingAccessory={avatarViewModel:{image:{sources:N},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(y=void 0,(y=F.icon)==null?0:y.iconType)N.push({clientResource:{imageName:F.icon.iconType||""}}),R.leadingImage={sources:N};y=N=void 0;((N=F)==null?0:(y=N.badges)==null?0:y.liveBroadcasting)?(R.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",R.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},R.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
F.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?R.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":F.count&&(R.trailingLabel={content:F.count.toString()});B.push({listItemViewModel:R})}}B.length!==0?(u.content={listViewModel:{listItems:B}},D===0&&(u.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):u=void 0;if(u)return B=void 0,D===0&&(B={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:u}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:B}}}}};
ARB=function(G,B,F,D){if(B!=null&&B.isPrimary){switch(D){case 1:if(B.serviceEndpoint)break;F=Y8D(F,B.formattedTitle,B.navigationEndpoint,D);if(!F)break;B.serviceEndpoint=F;B.navigationEndpoint=void 0;break;case 0:!B.mouseEnterEndpoint&&(F=Y8D(F,B.formattedTitle,void 0,D))&&(B.mouseEnterEndpoint=F,B.mouseLeaveEndpoint={hideSheetCommand:{}})}G.push({guideEntryRenderer:B})}};
dVU=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENT-INPUT")return!0}catch(B){return!1}return dVU(G.parentNode)};
CK=function(G){return G?G.tagName==="A"&&G.href&&G.classList.contains("yt-simple-endpoint"):!1};
JRZ=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
cR$=function(G,B,F){if(!G)return null;var D=CK(G);if(D&&F)return B=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+B);if(D&&!F)return document.createTextNode("");if(JRZ(G))return F=G.alt,G=G.dataset.emojiId,!G&&B&&(B=_.ZM(B,F))&&B.isCustomEmoji&&(G=B.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(F);D=G.cloneNode(!1);for(var u=0;u<G.childNodes.length;++u){var R=cR$(G.childNodes[u],B,F);R&&D.appendChild(R)}return D};
TID=function(G){return G?CK(G)?G:TID(G.lastChild):null};
II$=function(G){return G?CK(G)?G:II$(G.firstChild):null};
fIN=function(G){if(!G)return null;for(var B=G.previousSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.previousSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.previousSibling;else break;(B=TID(B))?G=B:G=(G=G.parentNode)?TID(G.previousElementSibling):null;return G};
tUD=function(G){if(!G)return null;for(var B=G.nextSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.nextSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.nextSibling;else break;return(B=II$(B))?B:tUD(G.parentNode)};
ZXD=function(G){var B=_.Fh(),F=B.JSC$11664_getStartNode();if(!dVU(F.parentNode))return null;B=B.JSC$11664_getStartOffset();if(F.nodeType===Node.TEXT_NODE){var D=_.mG(F,CK);if(D){if(G&&B===0||!G&&B===F.length)return D}else{if(G&&B===F.length)return!F||F.nodeName==="BR"||F.nextElementSibling&&_.S3(F.nextElementSibling,"display")==="block"?null:II$(F.nextElementSibling);if(!G&&B===0)return F?TID(F.previousElementSibling):null}}if(F.nodeType===Node.ELEMENT_NODE)if(G){if(0<=B&&B<F.childNodes.length)return II$(F.childNodes[B])}else if(0<
B&&B<=F.childNodes.length)return TID(F.childNodes[B-1]);return null};
gzB=function(G,B,F){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(F){var D=fIN(G);if(D&&!/^\s+\S/.test(G.wholeText.substr(0,B)))return D}else if((D=tUD(G))&&!/\S\s+/.test(G.wholeText.substr(B,G.wholeText.length)))return D;return G.nodeType===Node.ELEMENT_NODE?F?fIN(G.childNodes[B]):tUD(G.childNodes[B]):gzB(G.parentNode,B,F)};
S8H=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var B="";for(G=G.firstChild;G;G=G.nextSibling)B+=S8H(G);return B;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
sD2=function(G){switch(G){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"}};
xV2=function(G){return G.map(function(B){return{settingsRadioOptionRenderer:{title:_.AJ(B.name),asideText:_.AJ(B.approximateSize),id:sD2(B.format)}}})};
G6D=function(G){if(G&&G.length!==0)return G.filter(Pc$()).map(function(B){return{settingsRadioOptionRenderer:{title:B.name,asideText:B.approximateSize,id:sD2(B.formatType)}}})};
BZD=function(G){if(G)return G.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
ic$=function(G,B){G=new Set(G!=null?G:[]);if(G.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(G.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(G.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(G.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(G.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(B)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
FYz=function(G){var B=G.indexOf("(");return B!==-1?G.substring(B+1,G.length-1):G};
_.u3G=function(G,B,F,D,u){F||(F=DBH);var R;(R=_.Q(F.commandMetadata,_.xy))!=null&&R.url||(F=Error("mm`"+JSON.stringify(F)),_.k2(F),F=DBH);F=_.UK.unsafeClone(F);R=_.F2(_.Q(F.commandMetadata,_.xy).url,"search_query",G);_.Be(location.href,"sv")==="1"&&(_.Q(F,_.P2).params="EgOAAgE%3D",R=_.F2(R,"sv","1"));_.Q(F,_.P2)&&(_.Q(F,_.P2).query=G);R=R.replace(/%20/g,"+");_.Q(F.commandMetadata,_.xy).url=R;u=_.X("desktop_enable_entity_suggest")?{entityMid:u}:{};_.te().resolve(_.Wr).resolveCommand(F,{form:{tempData:Object.assign({},
{gs_l:B,oq:D!=null?D:G},u),isFromShorts:_.ox()==="shorts"}})};
Rr2=function(G){switch(G){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
CLH=function(G,B,F,D,u,R){var N=_.UK.clone(wbU);N.locale=_.v5("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;N.report={description:u||"<empty>"};u=_.v5("SBOX_SETTINGS",{});B=B.join(",");var y=Date.now();G={choice_cc:D,choice_id_cc:F,choices_sc:B,gl:u.REQUEST_DOMAIN,hl:u.REQUEST_LANGUAGE,query:G,time:y};R&&(G.choice_additional_comment_cc=R);_.MO8(N,G)};
NZ2=function(G){var B=new Map;B.set("authuser",_.v5("SESSION_INDEX","0"));return _.H7(G,B)};
nWD=function(G){var B;return _.n(function(F){switch(F.nextAddress){case 1:if(!G||!y5N(G))return F.return(null);B=null;switch(_.v5("INNERTUBE_CLIENT_NAME")){case "WEB":return F.jumpTo(2);case "WEB_REMIX":B=G.getPlayer()}F.jumpTo(3);break;case 2:return F.yield(G.getPlayerPromise(),4);case 4:B=F.yieldResult;F.jumpTo(3);break;case 3:return F.return(B)}})};
y5N=function(G){return["ytd-player","ytmusic-player"].includes(String(G.tagName||"").toLowerCase())};
lX$=function(G){G=Math.round(G);return G%2?G-1:G};
UB$=function(G){G=Math.round(G);return G%2===0?G-1:G};
qlD=function(G){var B=["h","m","s"],F=_.II(B);F.reverse();var D={};G=(G.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(N){var y=(N.match(/[hms]/)||[""])[0];return y?(D[y]=parseInt(N.match(/\d+/)[0],10),!1):!0});
for(G.reverse();G.length&&F.length;){var u=F.shift();u in D||(D[u]=parseInt(G.shift(),10))}if(G.length||D.s>59||D.m>59||D.h>9)return null;var R="";B.forEach(function(N){D[N]&&(R+=""+D[N]+N)});
return R||null};
EWS=function(G){var B,F,D;if(G=(B=G.createPlaylistDialogFormSchema)==null?void 0:(F=B.fieldSchemas)==null?void 0:(D=F.title)==null?void 0:D.validationSchema)for(B=[G.syncStep,G.asyncStep].filter(function(u){return u!==void 0}),B=_.C(B),F=B.next();!F.done;F=B.next()){F=F.value.rules;
if(!F)break;F=_.C(F);for(F=F.next();!F.done;F=F.next())return _.Q(F.value,sx$)}};
KYG=function(G){var B,F,D;if(G=(B=G.createPlaylistDialogFormSchema)==null?void 0:(F=B.fieldSchemas)==null?void 0:(D=F.visibility)==null?void 0:D.validationSchema)for(B=[G.syncStep,G.asyncStep].filter(function(u){return u!==void 0}),B=_.C(B),F=B.next();!F.done;F=B.next()){F=F.value.rules;
if(!F)break;F=_.C(F);for(D=F.next();!D.done;D=F.next())if(D=_.Q(D.value,hrD))return B=void 0,(B=D.translations)==null?void 0:B.visibilityNotValidErrorMessage}};
aXz=function(){var G,B;return(B=(G=_.te().resolve(_.fH(_.Rx)))==null?void 0:G())!=null?B:!1};
mB$=function(G){var B=21;if(!G)return B;B+=G.headerTitle?27:0;B+=G.headerTitle&&G.hasHeaderActionHeader?4:0;return B+=G.headerTitle&&G.headerSubtitle?16:0};
XbD=function(G){var B=0;if(!G)return B;B+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton?48:0;B+=G.footerTrailingLabel||G.footerLeadingLabel?30:0;return B+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton||!G.footerTrailingLabel&&!G.footerLeadingLabel?0:12};
QKG=function(G){var B=new _.RY,F=G;return{subscribe:function(D){B.subscribe("changed",D)},
dispatch:function(D,u){var R=F;if(D==="Touch Start")F=Object.assign({},R,{isAnimating:!1,initialY:u.event.touches[0].clientY});else if(D==="Touch Move"){D=u.contentScrollable?-1*(R.initialY-24):0;var N,y=(N=u.headerDivHeight)!=null?N:mB$(u.header),U;N=(U=u.footerDivHeight)!=null?U:XbD(u.footer);U=Math.min(u.fullContentWrapperHeight,u.heightMap[u.contentWrapperId]+y-N);F=Object.assign({},R,{currentY:Math.max(D,u.event.touches[0].clientY-R.initialY),maxHeightForContentWrapper:Math.min(U,Math.max(0,
(R.isFullScreen?U:u.contentWrapperHeight)-R.currentY))})}else F=D==="Snap To Full Screen"?Object.assign({},R,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:u.maxHeight}):D==="Snap To Neutral Position"?Object.assign({},R,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:u.maxHeight}):D==="Close Sheet"?Object.assign({},R,{isAnimating:!0,currentY:u.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:u.maxHeight}):R;B.publish("changed",F)}}};
jKZ=function(){_.te().resolve(_.nL).closeSheet()};
LYD=function(G){var B,F,D,u,R,N,y,U,q,h,K;return{headerTitle:(B=G.headerTitle)==null?void 0:B.call(G),headerSubtitle:(F=G.headerSubtitle)==null?void 0:F.call(G),headerActionHeader:G.headerActionHeader,footerPrimaryButton:G.footerPrimaryButton,footerSecondaryButton:G.footerSecondaryButton,footerButtonType:(D=G.footerButtonType)==null?void 0:D.call(G),footerLeadingLabel:(u=G.footerLeadingLabel)==null?void 0:u.call(G),footerTrailingLabel:(R=G.footerTrailingLabel)==null?void 0:R.call(G),shouldShowIcons:(N=
G.shouldShowIcons)==null?void 0:N.call(G),skipContentClick:(y=G.skipContentClick)==null?void 0:y.call(G),additionalClassName:(U=G.additionalClassName)==null?void 0:U.call(G),onClosedCallback:G.onClosedCallback,focusOnClose:(q=G.focusOnClose)==null?void 0:q.call(G),isDisabled:(h=G.isDisabled)==null?void 0:h.call(G),disabledCommand:(K=G.disabledCommand)==null?void 0:K.call(G),headerFn:G.headerFn,contentFn:G.contentFn,footerFn:G.footerFn,hasHeaderFn:G.hasHeaderFn(),hasContentFn:G.hasContentFn(),hasFooterFn:G.hasFooterFn(),
hasFooterPrimaryButton:G.hasFooterPrimaryButton(),hasFooterSecondaryButton:G.hasFooterSecondaryButton(),hasHeaderActionHeader:G.hasHeaderActionHeader()}};
r5G=function(G){switch(G){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""}};
WYD=function(G){switch(G){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""}};
HcN=function(G){switch(G){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""}};
k6A=function(G,B,F){B.forEach(function(D){_.ss(_.te().resolve(_.ux),D)});
_.T1(G,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",F])};
zrD=function(G,B,F,D){var u=_.Q(F,_.HR).commandLifeCycleConfig;u&&u.onStartCommand&&_.tL(G,[u.onStartCommand],B);_.$L(B);var R=_.OR.instance;R&&_.eo(R,F)?_.$F(R,F,D).then(function(N){if(!N||(N==null?0:N.error))return N=_.Q(F,_.HR).serializedTransactionFlowLoggingParams,_.zf(B),_.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",N));_.zf(B);return{data:N}}).then(function(N){_.zf(B);
Oc$(N.data);var y=N.data.command;y&&_.tL(G,[y],B);y=erZ(F,N.data);if(!y){var U=N.data;N=!1;if(U&&U.command&&_.Q(U.command,_.gs)){var q;U=((q=_.Q(U.command,_.gs))==null?void 0:q.commands)||[];for(q=0;q<U.length;q++)if(_.Q(U[q],_.klL)){N=!0;break}}N||_.RS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!y&&u&&u.onSuccessCommand?_.tL(G,[u.onSuccessCommand],B):y&&u&&u.onFailureCommand&&_.tL(G,[u.onFailureCommand],B)},function(){_.zf(B);
u&&u.onFailureCommand&&_.tL(G,[u.onFailureCommand],B);$B2(F)}):_.k2(Error("ym"),"ERROR")};
bcU=function(G,B,F){var D=[B];F&&D.push(F);return _.fi(G,D).then(function(u){var R=_.Q(B,_.HR).serializedTransactionFlowLoggingParams,N=u.data,y=erZ(B,N);y?u=_.U_(new Nl(y,R)):Oc$(N);return u},function(){var u=_.Q(B,_.HR).serializedTransactionFlowLoggingParams;
$B2(B);return _.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",u))})};
erZ=function(G,B){G=_.Q(G,_.HR).serializedTransactionFlowLoggingParams;var F=null;switch(B.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":F="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":F="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":F="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}F?_.zB(F,G):daN(G);return F};
$B2=function(G){_.zB("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Q(G,_.HR).serializedTransactionFlowLoggingParams)};
Oc$=function(G){if(G.trackingParams){var B=_.qW(),F=_.Uw();B&&F&&_.WT(B,F,_.yX(G.trackingParams))}};
VeA=function(G,B,F){var D=_.OR.instance,u=_.R16(_.v5("YPC_MB_URL")),R=(new _.DJS).init(),N=_.uHJ(),y=_.Q(F,_.LPs).languageCode;y===void 0?_.k2(Error("Li"),"ERROR"):_.KG([R,u]).then(function(){var U={ctk:_.Tf.payments.business.integration.ClientTokenFactory.createClientToken(y,N)};D&&_.eo(D,F)?_.$F(D,F,U).then(function(q){return{data:q}}).then(function(q){_.cZ(B,"yt-service-request-completed",q);
q.code!=="ERROR"&&(q=q.data.command)&&_.tL(G,[q],B)}):_.k2(Error("ym"),"ERROR")})};
MeQ=function(G,B,F,D){var u=_.OR.instance;u&&_.eo(u,F)?_.$F(u,F,D).then(function(R){return{data:R}}).then(function(R){vWZ(G,B,F,R)},function(){oWD(F)}):(u=_.te().resolve(_.fH(_.un)))&&u.requestDataForServiceEndpoint(F,D).then(function(R){vWZ(G,B,F,R)},function(){oWD(F)})};
vWZ=function(G,B,F,D){_.cZ(B,"yt-service-request-completed",D);if(D.code&&D.code=="ERROR")oWD(F);else{(D=D.data.commands)&&_.tL(G,D,B);var u;(G=(u=_.Q(F,_.e_G))==null?void 0:u.serializedYpcPauseFlowLoggingParams)&&G&&S4("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",G)}};
oWD=function(G){var B;(G=(B=_.Q(G,_.e_G))==null?void 0:B.serializedYpcPauseFlowLoggingParams)&&G&&S4("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
A5G=function(G,B,F){var D=_.OR.instance;D&&_.eo(D,F)?_.$F(D,F).then(function(u){return{data:u}}).then(function(u){pbB(G,B,F,u)},function(){YlA(F)}):(D=_.te().resolve(_.fH(_.un)))&&D.requestDataForServiceEndpoint(F).then(function(u){pbB(G,B,F,u)},function(){YlA(F)})};
pbB=function(G,B,F,D){_.cZ(B,"yt-service-request-completed",D);D.code&&D.code=="ERROR"?YlA(F):((D=D.data.commands)&&_.tL(G,D,B),(G=_.Q(F,_.$2T).serializedYpcResumeFlowLoggingParams)&&G&&S4("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",G))};
YlA=function(G){(G=_.Q(G,_.$2T).serializedYpcResumeFlowLoggingParams)&&G&&S4("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
dBD=function(G){G=G===void 0?{}:G;_.te().resolve(_.aKQ).showFeedbackDialog(G.customProductData,G.feedbackContent,G.onFeedbackSubmitted,G.bucket)};
J5$=function(G){G=G===void 0?{}:G;_.te().resolve(_.aKQ).showHelpDialog(G.helpContext,G.articleId,G.productData)};
c5S=function(){J5$()};
TZ$=function(){dBD()};
fXD=function(G,B,F){var D,u,R,N,y,U,q;return _.n(function(h){switch(h.nextAddress){case 1:D=_.Q(G,IXZ);if((u=D)==null?0:u.productId){U={productId:D.productId,bucket:D.bucket,enableAnonymousFeedback:(y=D.enableAnonymousFeedback)!=null?y:!0,allowNonLoggedInFeedback:!0};q={feedbackChoice:F.feedbackChoice};if(!_.X("web_collect_offline_state")){h.jumpTo(8);break}_.b5(h,9);return h.yield(VwB(q),11)}N={bucket:(R=D)==null?void 0:R.bucket};if(!_.X("web_collect_offline_state")){h.jumpTo(4);break}N.customProductData=
{};_.b5(h,5);return h.yield(VwB(N.customProductData),7);case 7:_.oY(h,4);break;case 5:_.Al(h);case 4:dBD(N);h.jumpTo(0);break;case 11:_.oY(h,8);break;case 9:_.Al(h);case 8:_.ICz(q),_.TzU("GFEEDBACK",q),D.productId==="5295751"&&(q.client_attestation=Number(_.v5("CATSTAT",0))),D.productId==="5295751"&&(q.client_time=Date.now()/1E3/3600),D.productId==="5295751"&&(q.original_playback_id=_.XCt||""),_.MO8(U,q),_.di(h)}})};
teS=function(G){if(G=_.Q(G,_.Ttg)){var B={bucket:G.bucketIdentifier};G.additionalDatas&&(B.customProductData={},G.additionalDatas.forEach(function(F){if(F=F.userFeedbackEndpointProductSpecificValueData)B.customProductData[F.key]=F.value}));
dBD(B)}};
Zc$=function(G){var B=_.pZ.getInstance();var F=_.G7("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var D=_.G7("DELETE",void 0,"Delete"),u=_.G7("CANCEL",void 0,"Cancel");F=F52(F,void 0,D,u,{signal:"DELETE_ALL_DOWNLOADS"});_.hs(B,[{openPopupAction:F}],G)};
SlB=function(){return _.n(function(G){return G.nextAddress==1?G.yield(_.te().resolve(_.Q7D),2):G.yield(gWN(),0)})};
sK2=function(G){var B,F;return _.n(function(D){return D.nextAddress==1?(F=(B=_.Q(G,_.v$))==null?void 0:B.targetId)?D.yield(_.te().resolve(_.Q7D),3):D.jumpTo(0):D.yield(_.te().resolve(_.Ua).deleteVideo(F),0)})};
PL$=function(G){var B,F;return _.n(function(D){return D.nextAddress==1?(F=(B=_.Q(G,_.v$))==null?void 0:B.targetId)?D.yield(_.te().resolve(_.Q7D),3):D.jumpTo(0):D.yield(xBD(_.te().resolve(_.Ua),F),0)})};
B2$=function(G){var B,F;return _.n(function(D){return(F=(B=_.Q(G,_.v$))==null?void 0:B.targetId)?D.yield(GED(F),0):D.jumpTo(0)})};
FKz=function(){_.X("kevlar_woffle_refresh_dl_load_killswitch")||iG$()};
uW$=function(){_.X("kevlar_woffle")&&_.Hm.instance&&DXD()};
wpZ=function(G){var B;if((B=_.Q(G,_.GP))==null||!B.videoId)return!1;RGQ(_.te().resolve(_.Ua),_.Q(G,_.GP),G.clickTrackingParams);return!0};
N2U=function(G){var B;if((B=_.Q(G,_.B_))==null||!B.playlistId)return!1;C1S(_.te().resolve(_.Ua),_.Q(G,_.B_),G.clickTrackingParams);return!0};
nuZ=function(G){var B=_.Q(G,_.q5q);(B==null?void 0:B.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(B==null?void 0:B.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||yh2(_.te().resolve(_.Ua),_.Q(G,_.q5q))};
UXS=function(G){G=_.Q(G,_.ciN);var B;(G==null?0:(B=G.actions)==null?0:B.length)&&lg$(G)};
hGA=function(G){var B,F;return _.n(function(D){B=_.Q(G,qC$);return(F=B)!=null&&F.localWatchHistoryCommandType?D.yield(EuN(B),0):D.return()})};
agD=function(){return _.n(function(G){return G.yield(KKN(),0)})};
mX$=function(G){setTimeout(function(){requestAnimationFrame(G)},80)};
XpD=function(G){return Object.entries(G).map(function(B){return B.join(":")}).join(";")};
jtH=function(G){var B,F,D;_.n(function(u){if(u.nextAddress==1)return u.yield(Qt$(),2);B=u.yieldResult;F=_.Gm.instance;switch(B){case "granted":D=G.getLocationCommand;break;case "denied":D=G.openDeniedDialogAction;break;case "prompt":D=G.openCollectionDialogAction;break;default:D=G.openCollectionDialogAction}D&&F.resolveCommand(D);_.di(u)})};
Qt$=function(){var G,B;return _.n(function(F){if(F.nextAddress==1)return G="prompt",navigator.permissions?F.yield(navigator.permissions.query({name:"geolocation"}),3):F.jumpTo(2);F.nextAddress!=2&&(B=F.yieldResult,G=B.state);return F.return(G)})};
rhB=function(){_.n(function(G){return G.yield(_.LKQ(),0)})};
WKA=function(){var G,B,F;return _.n(function(D){if(D.nextAddress==1)return G=_.te().resolve(_.RF),G?D.yield(_.$F(G,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.em(Error("Bm")),D.return(void 0));if(B=D.yieldResult){if(B.errorMetadata)return _.em(Error("Cm`"+B.errorMetadata.status+"`"+B.error)),D.return(void 0);F=B.datasyncIds;_.zDS=F.length;return D.return(F)}_.em(Error("Dm"));return D.return(void 0)})};
HGN=function(){WKA().then(function(G){G&&(brB(G),tDB(G),CfZ(G),o9$(G))})};
kE2=function(G){_.Lu.addLowPriorityJob(function(){var B,F,D,u,R;return _.n(function(N){switch(N.nextAddress){case 1:if(_.X("ytidb_clear_optimizations_killswitch")){N.jumpTo(2);break}B=_.n8("clear");if(B.startsWith("V")&&B.endsWith("||")){var y=[B];brB(y);tDB(y);CfZ(y);o9$(y);return N.return()}F=N5z();D=MwD();return N.yield(ZRG(),3);case 3:return u=N.yieldResult,N.yield(V_D(),4);case 4:if(R=N.yieldResult,!(F||D||u||R))return N.return();case 2:G.isNetworkAvailable()?HGN():G.listenOnce("publicytnetworkstatus-online",
HGN),_.di(N)}})})};
yd=function(G){G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.$9(G)}}}};_.Gm.instance&&_.Gm.instance.resolveCommand(G)};
OGG=function(G){if(G){var B=_.Rh();_.t9(B,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var F=238708;break;case 2:F=238715;break;case 3:F=238710;break;case 6:F=238709}F&&(G=_.u4(B,{veType:F}))&&_.S0(B,G)}};
eGG=function(G){if(G){var B=_.Rh();_.t9(B,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var F=238714;break;case 2:F=238711;break;case 8:F=238709;break;case 7:F=238713;break;case 3:case 4:case 5:F=238712}F&&(G=_.u4(B,{veType:F}))&&_.S0(B,G)}};
$XZ=function(G){switch(G.latencyType){case 0:_.hJ("consent_primitive_flow");_.KR("cpit",G.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.KR("cpist",G.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.KR("cprtif",G.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.KR("cprtli",G.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.KR("cprt",G.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.KR("cpdt",G.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.KR("cpjct",G.timestampEpochMillis,"consent_primitive_flow")}};
ch2=function(G,B){var F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A;return _.n(function(Z){switch(Z.nextAddress){case 1:_.b5(Z,2);(D=(F=_.Q(G,zGS))==null?void 0:F.serializedConsentRequest)||(D=(u=_.Q(G,bGz))==null?void 0:u.serializedConsentRequest);D&&(R=VtH(_.P6(D)));if(R===void 0)return Z.return();N=vuB(R);N.latencyCallback=$XZ;B&&ouD(N,function(){B.then(function(P){P.pauseVideo();(new MtZ).increment()})});
return((y=_.Q(G,zGS))==null?void 0:y.consentAction)==="CONSENT_ACTION_PREWARM"||((U=_.Q(G,bGz))==null?void 0:U.consentAction)==="CONSENT_ACTION_PREWARM"?Z.yield(ppU(N),5):Z.yield(YCA(N),6);case 6:q=Z.yieldResult;h=_.NV(q,nK);if(h===1){if(((K=_.Q1(q,Ah$,1,nK))==null?void 0:_.aD(K,1))===1||((a=_.Q1(q,Ah$,1,nK))==null?void 0:_.aD(a,1))===2||((m=_.Q1(q,Ah$,1,nK))==null?void 0:_.aD(m,1))===3)_.Q(G,bGz)?yd(_.G7("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
yd(_.G7("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));OGG((L=_.Q1(q,Ah$,1,nK))==null?void 0:_.aD(L,1),_.pT(q,dXB,3,_.Yk()))}else h===2?(((W=Jh$(q))==null?void 0:_.aD(W,1))===5?_.Q(G,bGz)?yd(_.G7("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):yd(_.G7("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((e=Jh$(q))==null?void 0:_.aD(e,1))===1||((b=Jh$(q))==null?void 0:_.aD(b,1))===4?
yd(_.G7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((M=Jh$(q))==null?void 0:_.aD(M,1))===7&&((t=R)==null?void 0:(T=_.sf(t,lq,4))==null?void 0:_.aD(T,4))!==1&&yd(_.G7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),eGG((A=Jh$(q))==null?void 0:_.aD(A,1))):yd(_.G7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));Z.jumpTo(5);break;case 5:_.oY(Z,0);break;case 2:_.Al(Z),yd(_.G7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.di(Z)}})};
IgZ=function(){if(!T2$.has("Worker")){T2$.set("Worker",!0);var G={api:"BROWSER_API_WEB_WORKER"};G.available="Worker"in window?!0:!1;_.W$("apiTest",G)}};
fgS=function(G){return typeof G==="undefined"?"-1":String(Math.ceil(G/1048576))};
SCQ=function(G,B){ttA(new ZGS(_.Q(B,guz).addToken,_.Q(B,guz).commonToken)).then(function(){_.cZ(G,"yt-invoke-instrument-manager-action-completed")},function(F){_.cZ(G,"yt-invoke-instrument-manager-action-error",F)})};
Un=function(){return _.v5("HTML_DIR")==="rtl"};
stG=function(){var G,B;return(B=(G=window).matchMedia)==null?void 0:B.call(G,"(prefers-reduced-motion: reduce)").matches};
xXz=function(G){var B=_.te().resolve(_.fH(_.w1));if(B&&B.isAnyTransitionEnabled){var F={};B.viewTransitionCoordinator.registerElement(G,(F.slide="miniplayer-page-transition",F["lockup-to-watch"]="miniplayer-page-transition",F["learning-journey"]="miniplayer-page-transition",F))}};
P1G=function(G,B,F){return{horizontalAlignment:G.x+F.width/2<B.width/2?"west":"east",verticalAlignment:G.y+F.height/2<B.height/2?"north":"south"}};
BPU=function(G,B,F,D,u){u=u===void 0?new _.e5(0,0):u;G=G8D(G,B,F,D,!1);return new _.e5(G.x+u.x,G.y+u.y)};
G8D=function(G,B,F,D,u){u=(u===void 0?0:u)?400:0;return new _.e5(G==="west"?16+(Un()?u:0):F.width-D.width-16-(Un()?0:u),B==="north"?16:F.height-D.height-16)};
iBU=function(G,B){var F=0;G&&(F+=76);B&&(F+=285);return F};
FwQ=function(G){return _.HU(G)};
DU2=function(G){var B=1;G=G.split(":");for(var F=[];B>0&&G.length;)F.push(G.shift()),B--;G.length&&F.push(G.join(":"));return F};
u8$=function(G){var B=new _.i1;return _.jU(B,11,G)};
RYA=function(G){var B={};G=G.getAllResponseHeaders().split("\r\n");for(var F=0;F<G.length;F++)if(!_.NL(G[F])){var D=DU2(G[F]),u=D[0];D=D[1];if(typeof D==="string"){D=D.trim();var R=B[u]||[];B[u]=R;R.push(D)}}return _.UK.map(B,function(N){return N.join(", ")})};
SXA=function(G,B){return G.JSC$10106_xhr_?G.JSC$10106_xhr_.getResponseHeader(B):null};
wfD=function(G,B){if(G.isDisposed())throw Error("Fa");G.yk.lS("n");var F=_.Wp(G.yk,function(){return G.kqu([B.lC,B.nFO,B.sUE,B.uQr])},"n");
G.yk.aFJ(F.length);G.yk.fc();return F};
CJ2=function(G,B,F){Array.isArray(F)||(F=[String(F)]);_.X$v(G.JSC$10342_queryData_,B,F);return G};
NPD=function(G){var B=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.sC(G);G.keyMap_.forEach(function(F,D){_.YM(B,D)||this.remove(D)},G)};
DXD=function(){var G=_.Hm.instance;_.n(function(B){return G.deferredInstallPrompt?B.yield(G.deferredInstallPrompt.prompt(),0):B.jumpTo(0)})};
yED=function(G,B,F){if(_.fQ(G))_.dn(G,B,F);else for(G=_.qqs(G);;){var D=G.next();if(D.done)break;B.call(F,D.value,void 0,G)}};
nEA=function(G,B){var F=[];yED(B,function(D){try{var u=_.nr.prototype.getWrapper.call(this,D,!0)}catch(R){if(R=="Storage: Invalid value was encountered")return;throw R;}u===void 0?F.push(D):_.Uaa(u)&&F.push(D)},G);
return F};
ZiG=function(G,B){nEA(G,B).forEach(function(F){_.nr.prototype.remove.call(this,F)},G)};
l9H=function(G){var B=_.QM;B._minimumZ=Math.max(B._minimumZ,G)};
UU$=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];q7$=function(G,B){_.ve(G.vm);G.vm=B};
EES=function(G,B,F,D){G.setState(5);var u=!!G.eq5&&UU$.includes(_.Tt(G.eq5)||"");try{var R=new _.Hp({program:B,globalName:F,kUX:{disable:!_.X("att_web_record_metrics")||!_.X("att_skip_metrics_for_cookieless_domains_ks")&&u,aM:"aGIf"}});R.boD.then(function(){G.setState(6);D&&D(B)});
q7$(G,R)}catch(N){G.setState(7),N instanceof Error&&_.em(N)}};
hYS=function(G,B,F,D,u,R){var N=N===void 0?"trayride":N;F?(G.setState(2),_.Q9(_.qN(F),function(){if(window[N])EES(G,D,N,u);else{G.setState(3);var y=_.M0c(F),U=document.getElementById(y);U&&(_.Beg(y),U.parentNode.removeChild(U));_.em(new _.Uf("BL:ULB",F))}},R)):B?(R=_.G_("SCRIPT"),B instanceof _.Nm?_.l5(R,B):R.textContent=B,R.nonce=_.CI(document),document.head.appendChild(R),document.head.removeChild(R),window[N]?EES(G,D,N,u):(G.setState(4),_.em(new _.Uf("BL:ULBJ")))):_.em(new _.Uf("BL:ULV"))};
KwA=function(){this.state=1;this.vm=null;this.eq5=void 0};
_.w=KwA.prototype;_.w.initialize=function(G,B,F,D){this.eq5=D;if(G.program){var u;D=(u=G.interpreterUrl)!=null?u:null;if(G.interpreterSafeScript)u=_.LCS(G.interpreterSafeScript);else{var R;u=(R=G.interpreterScript)!=null?R:null}G.interpreterSafeUrl&&(D=_.rg(G.interpreterSafeUrl).toString());hYS(this,u,D,G.program,B,F)}else _.em(Error("tf"))};
_.w.isInitialized=function(){return!!this.vm};
_.w.getState=function(){return this.state};
_.w.isLoading=function(){return this.state===2};
_.w.invoke=function(G){G=G===void 0?{}:G;var B;this.vm?B=wfD(this.vm,{lC:G}):B=null;return B};
_.w.dispose=function(){q7$(this,null);this.setState(8)};
_.w.setState=function(G){this.state=G};
var a9$=function(G,B){return G.vm.snapshot(B)},mUA=function(G,B){var F=_.sD("botguard_async_snapshot_timeout_ms",3E3);
B=B===void 0?{}:B;F=F===void 0?3E3:F;return G.vm?new Promise(function(D,u){var R=!1,N=_.Lu.addJob(function(){R=!0;u(Error("uf"))},1,F);
G.vm?a9$(G,{lC:B}).then(function(y){_.Lu.cancelJob(N);R||D(y)}).catch(function(y){_.Lu.cancelJob(N);
R||u(y)}):(_.Lu.cancelJob(N),D(null))}):Promise.resolve(null)},XfU=["att/log"],DBH;
DBH={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var QVD={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},jVZ=function(G,B){return _.B2(G,{mode:"readwrite",enableRetries:!0},function(F){return _.EYc(F,B,"settingEntity")})},LwS=function(G,B,F){return _.B2(G,{mode:"readonly",
enableRetries:!0},function(D){return _.ilT(D,B,F)})},rEU=function(G){if(!G.storage)return!1;
a:{if(G.storage){try{var B=G.storage.get("TLPQtimestamp")}catch(F){}G=Number(B);if(!isNaN(G))break a}G=void 0}return G?Date.now()-G<864E5:!1},WwZ=function(G){if(G.storage){try{var B=G.storage.get("TLPQindex")}catch(F){}G=Number(B);
if(!isNaN(G))return G}},ql=function(G){var B=_.kl();
return _.Bv7(B,G,1)},HBA=function(G,B){G.queueProxy&&B.forEach(function(F){if(F.videoId&&F.trackingParams&&G.queueProxy instanceof _.jj){var D=_.qW();
G.queueProxy.attributionData.set(F.videoId,{enqueueingVe:_.yX(F.trackingParams).getAsJson(),enqueueingCsn:D?D:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Zl)()).toString()})}})},k8H=function(G){var B=_.YPU(G);
B!=G.currentSnapState_&&(G.currentSnapState_=B,G.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},En=function(G){this.JSC$13541_networkManager_=G;
this.partCallbacks_=[]};
En.prototype.getCacheKeyForEndpoint=function(G){return _.iDg(G,!1)};
En.prototype.onPartsCallback_=function(G){this.partCallbacks_.forEach(function(B){G&&B(G)})};
var hp=function(G,B,F){En.call(this,G);this.player_=B;this.autoplayData_=F};
_.r(hp,En);hp.prototype.getCacheKeyForEndpoint=function(G){return _.iDg(G,!!this.autoplayData_)};
hp.prototype.getTempData=function(G,B){B=B.timeBeforeNextVideo;G={itct:G.clickTrackingParams,lact:_.Z8(),pbis:B,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(G.autonav=1);return G};
hp.prototype.getXhrParams=function(G){return Object.assign({pbj:"prefetch"},G)};
hp.prototype.getParams=function(G){G={frags:G.fragmentsRequested.join(",")};_.X("kevlar_droppable_prefetchable_requests")&&(G.prefetch=1);return G};
var OBB=function(G){G.playerEvents_.forEach(function(B){G.player.removeEventListener(B.eventName,B.callback)});
G.playerEvents_.length=0},eYH=function(G,B,F){this.player=G;
this.JSC$13551_taskManager=B;this.prefetchDelay=F;this.completionResolver_=null;this.playerEvents_=[]};
eYH.prototype.start=function(){var G=this;this.completionResolver_=_.zn();_.at(this.completionResolver_.promise,function(){OBB(G);G.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var $UB=function(G,B,F){G.player.addEventListener(B,F);G.playerEvents_.push({eventName:B,callback:F})},zY2={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},bBG={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},VO$=function(G,B,F){eYH.call(this,G,B,F);this.cueId_="playbackTrigger-"+Math.random()};
_.r(VO$,eYH);
VO$.prototype.prepareTrigger=function(G){var B=this,F=this.player.getDuration(),D=this.player.getVideoData(),u=D.isLive&&D.hasProgressBarBoundaries;if(u&&D.progressBarEndPositionUtcTimeMillis){var R=D.progressBarEndPositionUtcTimeMillis/1E3;isNaN(R)||(F=R)}var N=0;this.prefetchDelay>=0?u?D.progressBarStartPositionUtcTimeMillis&&(D=D.progressBarStartPositionUtcTimeMillis/1E3,isNaN(D)||(N=D+this.prefetchDelay)):N=this.prefetchDelay:N=F+this.prefetchDelay;u?this.player.addUtcCueRange(this.cueId_,N,F):
this.player.addCueRange(this.cueId_,N,F);_.at(G.promise,function(){B.player.removeCueRange(B.cueId_)});
$UB(this,"onCueRangeEnter",function(y){y==B.cueId_&&G.resolve(F-N)})};
var vED=function(G,B){G.fragmentConfiguration_[B].requiredKeys.every(function(F){return!!G.prefetchedData_[F]})&&(G.validatedFragments_.push(B),B=G.missingFragments_.indexOf(B),B!==-1&&G.missingFragments_.splice(B,1))},oE2=function(G){G.prefetchedFragments_.forEach(function(B){vED(G,B)})},MOH=function(G,B,F){this.pageFragments_=G;
this.prefetchedFragments_=B;this.fragmentConfiguration_=bBG;this.prefetchedData_=F;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;oE2(this)},pfz=function(){},Y7H=function(G){this.JSC$13565_playlistManager_=G};
_.r(Y7H,pfz);Y7H.prototype.getPrefetchEndpoint=function(){return this.JSC$13565_playlistManager_.getAutoplayEndpoint()};
var AEH=function(G){this.autonavEndpoints_=G};
_.r(AEH,pfz);AEH.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var dU$=function(G,B,F,D,u){this.autonavEndpoints=G;this.foregroundTrigger=B;this.backgroundTrigger=F;this.pageType=D;this.isInPlaylist=u},JE$=function(G,B){if(G.webPrefetchData&&G.webPrefetchData.navigationEndpoints&&G.webPrefetchData.navigationEndpoints.length){G=G.webPrefetchData.navigationEndpoints;
var F=_.Q(G[0],_.Ow);if(F.watchEndpointSupportedPrefetchConfig&&F.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var D=F.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;F=D.playbackRelativeSecondsPrefetchCondition;F=typeof F==="number"&&Math.abs(F)<B.videoDuration?F:void 0;D=D.countdownUiRelativeSecondsPrefetchCondition;D=typeof D!=="number"||_.X("prefetch_job_config_cleanup_ks")&&B.inPlaylist?void 0:D;if(typeof D==="number")return new dU$(G,B.makeUpNextTrigger(D),B.makePlaybackTrigger(D),
"watch",B.inPlaylist);if(typeof F==="number")return new dU$(G,B.makePlaybackTrigger(F),null,"watch",B.inPlaylist)}}},cE$=function(G){return G.prefetchJobConfig_.backgroundTrigger?_.pH(PsB)()==0?G.prefetchJobConfig_.backgroundTrigger:G.prefetchJobConfig_.foregroundTrigger:G.prefetchJobConfig_.foregroundTrigger},TPQ=function(G){_.qX(document,"visibilitychange",G.onVisibilityChange_,!1,G)},KK=function(G){En.call(this,G)};
_.r(KK,En);KK.prototype.getCacheKeyForEndpoint=function(G){return En.prototype.getCacheKeyForEndpoint.call(this,G)};
KK.prototype.getTempData=function(){return{}};
KK.prototype.getXhrParams=function(G){return G};
KK.prototype.getParams=function(){return{}};
var I9D=function(G,B,F){var D=G.prefetchDelay*1E3;if(Math.abs(D)>B)F.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var u=D,R=B-D;D<0&&(u=B+D,R=Math.abs(D));var N=G.JSC$13551_taskManager.addJob(function(){F.resolve(R/1E3)},10,u);
F.promise.thenCatch(function(){G.JSC$13551_taskManager.cancelJob(N)})}},f92=function(G,B,F){eYH.call(this,G,B,F)};
_.r(f92,eYH);f92.prototype.prepareTrigger=function(G){var B=this;$UB(this,"onAutonavCoundownStarted",function(F){I9D(B,F,G)})};
var tOS=function(G){G.pendingPrefetchJob_&&(G.pendingPrefetchJob_.cancel(),G.pendingPrefetchJob_=null)},ZB$=function(G,B,F){if(!G.triggeredTargets.has(B)){var D=_.FuU(G,B);
D.action=F;_.i2a(G,B,D)}},gEA=function(G){_.gJq();
_.P_g("cpt")&&_.em(Error("mh"));_.Fz.requestAnimationFrame(function(){_.Fz.setTimeout(function(){_.KR("cpt");var B=_.Xw("vpl"),F=_.Xw("cpt");B&&F&&_.KR("ol",Math.max(B,F))})});
try{_.KR("fr_s"),G()}catch(B){_.k2(B)}_.Fz.requestAnimationFrame(function(){_.KR("bcp")})},S7$={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},sVS=function(G,B){G.serviceEndpointHandlers.push(B)},xU$=function(G,B){B=G.pendingPages_.indexOf(B);
B>-1&&G.pendingPages_.splice(B,1)},PJB=function(G,B){var F=_.jl7.indexOf(B);
F>-1&&_.jl7.splice(F,1);G.targetPage_==B?(G.abort(),_.rp7(G)):xU$(G,B)},GuS=function(G,B){G.reloadContinuationItemsCommandMatcher=B},BLS=function(G,B,F){B&&F&&(G.videos.forEach(function(D){D.videoId===B&&(D.itemId=F)}),G.recommendedVideos.forEach(function(D){D.videoId===B&&(D.itemId=F)}))},idN=function(G){this.onStepChangeCallback=function(){};
this.flowRenderer=G};
idN.prototype.getCurrentStep=function(){var G=this,B;return((B=this.flowRenderer.steps)!=null?B:[]).map(function(F){return _.Q(F,_.wr)}).find(function(F){return F&&F.stepId===G.currentStepId})};
var FES=function(G,B){var F=B.flowStateEntityKey,D=G.flowStates.get(F);if(D)return D;B=new idN(B);G.flowStates.set(F,B);return B},DQB=function(G,B){for(var F=_.C(G.flowStates.entries()),D=F.next();!D.done;D=F.next()){var u=_.C(D.value);
D=u.next().value;u=u.next().value;if(u.flowRenderer.targetId===B){G.flowStates.delete(D);break}}},u7N=function(G,B){G.onStepChangeCallback=B;
G.onStepChangeCallback(G.getCurrentStep())},Ry2=function(G,B){var F=G.getCurrentStep();
if(F&&F.stepId===B)return!0;var D;return((D=G.flowRenderer.steps)!=null?D:[]).map(function(u){return _.Q(u,_.wr)}).find(function(u){return u&&u.stepId===B})?(G.currentStepId=B,G.onStepChangeCallback(G.getCurrentStep()),!0):!1},wLQ=function(G,B,F,D){B={challenge:B};
F&&(B.webResponse=F);return _.rB(G.innertubeTransportService,B,_.v2(XfU),D)},CwQ=function(G,B,F){if(!B.challenge)throw Error("ti");
if(B.botguardData&&B.botguardData.program){var D=new KwA;D.initialize(B.botguardData,function(){mUA(D,{atr_challenge:B.challenge}).then(function(u){if(!u)throw Error("ui");return wLQ(G,B.challenge,u,F)}).catch(function(u){_.em(u);
return wLQ(G,B.challenge,void 0,F)})},void 0)}else wLQ(G,B.challenge,void 0,F)},NLN=function(G,B,F){var D={};
B.ids&&(D.ids=[].concat(_.gi(B.ids)));B.engagementType&&(D.engagementType=B.engagementType);return _.rB(G.innertubeTransportService,D,_.v2(_.moq),F).then(function(u){if(!u)throw new _.Uf("GetAttestationChallenge returned falsy");CwQ(G,u,F)}).thenCatch(function(u){_.k2(u)})},ysG=function(G,B,F){return new _.DS(function(D,u){var R;
return _.n(function(N){if(N.nextAddress==1){var y=N.yield,U=B.engagementType,q=B.ids,h={};q=_.C(q!=null?q:[]);for(var K=q.next();!K.done;K=q.next())K=K.value,K.encryptedVideoId?h.encryptedVideoId=K.encryptedVideoId:K.externalChannelId?h.externalChannelId=K.externalChannelId:K.commentId?h.commentId=K.commentId:K.externalOwnerId?h.externalOwnerId=K.externalOwnerId:K.artistId?h.artistId=K.artistId:K.playlistId?h.playlistId=K.playlistId:K.externalPostId?h.externalPostId=K.externalPostId:K.shareId?h.shareId=
K.shareId:K.postPlayNonce&&(h.postPlayNonce=K.postPlayNonce);return y.call(N,irQ(U,h),2)}R=N.yieldResult;if(!R.challenge)return _.em(Error("vi")),NLN(G,B,F).then(D,u),N.return();y=R;U={challenge:y.challenge};U.webResponse=y.webResponse;U.engagementType=B.engagementType;U.ids=B.ids;_.rB(G.innertubeTransportService,U,_.v2(XfU),F).then(D,u);_.di(N)})})},uSN=function(G,B){var F,D,u,R;
_.n(function(N){if(N.nextAddress==1){F=_.Q(B,_.ECy);if(!(F&&F.listId&&G.response&&G.response.playingVideoId)||G.listId!==F.listId)return N.return();G.index===void 0&&(G.index=0);return N.yield(_.d1v(G.JSC$13404_playlistNetworkManager,F.listId,G.index,G.response.playingVideoId),2)}D=N.yieldResult;if(!D)return N.return();u=D.playlistId;R=D.playlistPanelRenderer;G.setPlaylistData(u,R,D.autoplayRenderer);_.di(N)})},neU=function(G,B,F){var D=G.getParams(F),u=_.zag(B,D),R=G.getTempData(B,F);
R.endpoint=JSON.stringify(B);_.X("enable_unknown_lact_fix_on_html5")&&(_.te().resolve(_.uN),R.lact=_.Z8());var N={headers:{"X-YouTube-STS":_.v5("STS"),"x-youtube-csoc":1}};_.V9(u,R);return new _.DS(function(y,U){var q=G.getXhrParams(D),h;_.X("kevlar_cache_on_ttl_player")&&(h=_.te().resolve(_.E$));h&&_.YK$(h,B)?_.IRZ(h,B,R,window.location.href).then(function(K){K?y(K):U()},U):_.aDN(G.JSC$13541_networkManager_,B,q,G.onPartsCallback_.bind(G),N).then(function(K){K?y(K):U()},U)})},lz$=function(G,B){G.triggerPromise_=
B.start();
G.triggerPromise_.then(function(F){var D=G.prefetchEndpointProvider_.getPrefetchEndpoint();if(D){var u=zY2[G.prefetchJobConfig_.pageType].prefetchedFragments;G.prefetchRequestPromise_=neU(G.JSC$13577_networkPrefetchRequest_,D,{fragmentsRequested:u,timeBeforeNextVideo:F});G.prefetchResponseCacheKey_=G.JSC$13577_networkPrefetchRequest_.getCacheKeyForEndpoint(D);TPQ(G);G.prefetchRequestPromise_.then(function(R){G.storePrefetchedDataCallback_(G.prefetchResponseCacheKey_,R);if(_.X("web_prefetch_preload_video")&&
u.length===1&&u[0]==="pl"&&R&&!R.playerAds&&!R.adPlacements){var N=_.Q(D,_.Fu),y=N!=null,U={raw_player_response:R,watch_endpoint:N};(R=_.te().resolve(y?_.Lkq:_.IQ))&&D&&R.then(function(q){y&&_.X("web_queue_preload_video")?(U.prefer_gapless=!0,q.queueNextVideo(U)):q.preloadVideoByPlayerVars(U)})}})}})},al=function(G,B,F,D){this.prefetchEndpointProvider_=G;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=B;this.prefetchJobConfig_=F;this.JSC$13577_networkPrefetchRequest_=D;this.prefetchResponseCacheKey_=null};
al.prototype.enqueue=function(){this.triggerPromise_||(lz$(this,cE$(this)),_.H1(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
al.prototype.resolve=function(){this.cancel()};
al.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.");TPQ(this)};
al.prototype.onVisibilityChange_=function(){var G=this;_.pH(PsB)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){G.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||lz$(this,cE$(this))};
var UQH=function(G,B,F,D,u){B&&(B==null?0:B.videoId)&&F&&F.entries&&_.X("kevlar_enable_shorts_prefetch_in_sequence")&&(tOS(G),B=F.entries.map(function(R){var N;return(N=_.Q(R.command,_.Fu))==null?void 0:N.videoId}).indexOf(B.videoId),F=F.entries[B+1],F!=null&&F.command&&!_.Q(F==null?void 0:F.command,_.a1)&&(D=new dU$([F.command],new VO$(D,_.Lu,1),null,"shorts",!1),G.pendingPrefetchJob_=new al(new AEH(D.autonavEndpoints),function(){return!1},D,new KK(u)),G.pendingPrefetchJob_.enqueue()))},q9Z=function(G,
B,F,D,u,R){var N=_.M_.getInstance();
if(!_.X("block_all_player_prefetch_requests")){tOS(G);var y=!!F.getPlaylistId(),U=F.getVideoData().isLive&&F.getVideoData().hasProgressBarBoundaries;if((N.getState()==2||y||U)&&(!F.getVideoData().isLive||U)){N={inPlaylist:y,videoDuration:F.getDuration(),makeUpNextTrigger:function(h){return new f92(F,_.Lu,h)},
makePlaybackTrigger:function(h){return new VO$(F,_.Lu,h)}};
var q=JE$(B,N);q&&(G.pendingPrefetchJob_=new al(q.isInPlaylist?new Y7H(u):new AEH(q.autonavEndpoints),function(h,K){K=new MOH(zY2[q.pageType].pageFragments,zY2[q.pageType].prefetchedFragments,K);return _.tcT(K)?(G.prefetchCache_.set(h,K),!0):!1},q,new hp(D,F,R,u)),G.pendingPrefetchJob_.enqueue())}}},Ee2=function(){var G=_.$l();
G.signals.parkOrScheduleJob(function(){var B=G.storage;if(B.storage)if(rEU(B)){var F=B.getPlaylistId();B=WwZ(B);F=!!F&&B!==void 0}else B.clear(),F=!1;else F=!1;if(F){F=G.JSC$13404_pageManager.isOnWatch();a:{var D=G.storage;if(D.storage&&rEU(D)&&(B=D.getPlaylistId(),D=WwZ(D),B&&D!==void 0)){F={recoverPlaylistCommand:{listId:B,index:D,openMiniplayer:!F,openListPanel:F,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}F=void 0}F&&_.hs(G.JSC$13404_actionRouter,[F],null)}},0,"ma")},hy2=function(G,B,F,
D,u,R){var N=_.ge(7111);
_.Zx(G.JSC$18942_screenManager,N,R?_.yX(R):void 0);_.S0(G.JSC$18942_screenManager,N,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:D,offlineId:B,offlineabilityFormatType:F,isDefaultFormatType:u==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:u}})},KED=function(G,B,F,D,u){var R,N,y,U,q;
return _.n(function(h){if(h.nextAddress==1)return h.yield(G.JSC$18942_playerApiPromise,2);R=h.yieldResult;hy2(G,B,F,"OFFLINE_OBJECT_TYPE_PLAYLIST",D,u);if(y=_.N1L[G.entityTypeMap.listEntityType])q={},N=(q[y]={maximumDownloadQuality:(U=F)!=null?U:void 0},q);return h.yield(R.queueOfflineAction(B,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",N),0)})},azz=function(G,B){var F,D,u,R;
return _.n(function(N){if(N.nextAddress==1)return N.yield(G.JSC$18942_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3){F=N.yieldResult;if(!F)return _.em(new _.Uf("PES is undefined")),N.return();D=_.Z4(B,"downloadStatusEntity");return N.yield(LwS(F,D,"downloadStatusEntity"),3)}u=N.yieldResult;return N.return((R=u)==null?void 0:R.downloadState)})},mQU=function(G,B,F,D,u){var R,N,y,U,q,h;
return _.n(function(K){switch(K.nextAddress){case 1:return K.yield(G.JSC$18942_playerApiPromise,2);case 2:R=K.yieldResult;hy2(G,B,F,"OFFLINE_OBJECT_TYPE_VIDEO",D,u);if(y=_.N1L[G.entityTypeMap.singleEntityType])q={},N=(q[y]={maximumDownloadQuality:(U=F)!=null?U:void 0},q);return K.yield(azz(G,B),3);case 3:h=K.yieldResult;if(h!=="DOWNLOAD_STATE_USER_DELETED"){K.jumpTo(4);break}return K.yield(G.deleteVideo(B),4);case 4:return K.yield(R.queueOfflineAction(B,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
N),0)}})},XLU=function(G,B,F,D,u){return _.n(function(R){return R.nextAddress==1?R.yield(G.deleteVideo(B,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):R.yield(mQU(G,B,F,D,u),0)})},Q6U=function(G,B,F){var D,u;
return _.n(function(R){if(R.nextAddress==1)return R.yield(G.JSC$18942_playerApiPromise,2);D=R.yieldResult;u=_.Z4(B,"mainVideoDownloadStateEntity");return R.yield(D.updateDownloadState(u,F),0)})},GED=function(G){var B=_.te().resolve(_.Ua);
return _.n(function(F){if(F.nextAddress==1)return B.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&B.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?F.jumpTo(2):F.yield(B.resumeVideoDownload(G),2);if(F.nextAddress!=4)return F.yield(Q6U(B,G,B.previousDownloadStateForVideo[G]),4);delete B.previousDownloadStateForVideo[G];_.di(F)})},xBD=function(G,B){var F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18942_playerApiPromise,2);F=D.yieldResult;return D.yield(F.queueOfflineAction(B,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},gWN=function(){var G=_.te().resolve(_.Ua),B,F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18942_playerApiPromise,2);if(D.nextAddress!=3)return B=D.yieldResult,F={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},D.yield(B.queueOfflineAction("!*$_ALL_ENTITIES_!*$",G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",F),3);var u=G.JSC$18942_commandHandler,R=u.resolveCommand,N=_.G7("DELETING_ALL",void 0,"Downloads are being deleted");R.call(u,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.pR(N)}},
popupType:"TOAST"}});_.di(D)})},j6G=function(G,B){var F,D,u,R,N,y;
return _.n(function(U){if(U.nextAddress==1)return U.yield(G.JSC$18942_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return F=U.yieldResult,F?U.yield(LwS(F,_.yU,"downloadsPageViewConfigurationEntity"),3):(_.em(new _.Uf("PES is undefined")),U.return());u=(D=U.yieldResult)!=null?D:{};y=(N=(R=u)==null?void 0:R.downloadsUpsellBannerVisibility)!=null?N:{};return y.visibleWithConnection?U.yield(B.refreshAllStaleEntities(0),0):U.jumpTo(0)})},LE$=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18942_prefStorage,2);B=D.yieldResult;return D.return((F=B)==null?void 0:F.get("sdois"))})},rsA=function(G){var B,F,D,u,R,N;
return _.n(function(y){if(y.nextAddress==1)return y.yield(G.JSC$18942_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){B=y.yieldResult;if(!B)return _.em(new _.Uf("PES is undefined")),y.return();F=_.Z4("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return y.yield(LwS(B,F,"settingEntity"),3)}D=y.yieldResult;return y.return((N=(u=D)==null?void 0:(R=u.settingOptionValue)==null?void 0:R.boolValue)!=null?N:!1)})},WEH=function(G,B){var F,D,u,R;
return _.n(function(N){switch(N.nextAddress){case 1:return((F=B)==null?void 0:F.formatType)===void 0?N.return():N.yield(G.JSC$18942_prefStorage,2);case 2:D=N.yieldResult;if(D===void 0)return N.return();if(((u=B)==null?void 0:u.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return N.yield(D.set("lmqf",B.formatType),8);if(((R=B)==null?void 0:R.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){N.jumpTo(0);break}return N.yield(D.set("lmqf",B.formatType),6);case 6:return N.yield(D.set("lmqflst",
Math.floor((0,_.Zl)())),0);case 8:return N.yield(D.remove("lmqflst"),0)}})},HdG=function(G){var B,F;
return _.n(function(D){switch(D.nextAddress){case 1:return D.yield(G.JSC$18942_prefStorage,2);case 2:B=D.yieldResult;if(!B){D.jumpTo(3);break}return D.yield(B.get("lmqflst"),4);case 4:if(F=D.yieldResult,F!==void 0)return D.return(F);case 3:return D.return(0)}})},kuG=function(G){var B,F,D;
return _.n(function(u){return u.nextAddress==1?u.yield(G.JSC$18942_prefStorage,2):u.nextAddress!=3?(B=u.yieldResult,u.yield((F=B)==null?void 0:F.get("ldtmes"),3)):u.return((D=u.yieldResult)!=null?D:!1)})},KKN=function(){var G=_.te().resolve(_.Ua),B;
return _.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$18942_prefStorage,2);B=F.yieldResult;return B===void 0?F.return():F.yield(B.set("ldtmes",!0),0)})},OdZ=function(G){var B,F;
return _.n(function(D){switch(D.nextAddress){case 1:return D.yield(G.JSC$18942_prefStorage,2);case 2:B=D.yieldResult;if(B===void 0){D.jumpTo(3);break}return D.yield(B.get("lmqf"),4);case 4:if(F=D.yieldResult,F!==void 0)return D.return(F);case 3:return D.return("SD")}})},C1S=function(G,B,F){var D,u,R,N,y,U,q,h;
_.n(function(K){switch(K.nextAddress){case 1:return K.yield(WEH(G,(D=B)==null?void 0:D.actionParams),2);case 2:u=B.playlistId;if(!u)return K.return();if(B.action==="ACTION_ADD")return((N=B.actionParams)==null?0:N.formatType)?K.yield(KED(G,u,B.actionParams.formatType,(h=B.actionParams)==null?void 0:h.settingsAction,F),0):K.yield(G.offlineWebClientEligibility,14);if(B.action==="ACTION_REMOVE_WITH_PROMPT"){var a=G.JSC$18942_commandHandler,m=a.resolveCommand,L=_.v5("INNERTUBE_CLIENT_NAME");var W=L===
"WEB_REMIX"?_.G7("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.G7("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var e=L==="WEB_REMIX"?[_.G7("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];L=L==="WEB_REMIX"?_.G7("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.G7("DELETE",void 0,"Delete");var b=_.G7("CANCEL",void 0,"Cancel");W=F52(W,e,L,b,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:u});m.call(a,{openPopupAction:W});return K.return()}if(B.action===
"ACTION_REMOVE")return K.yield(xBD(G,u),0);if(B.action!=="ACTION_SYNC"){K.jumpTo(0);break}return K.yield(G.JSC$18942_playerApiPromise,9);case 9:return R=K.yieldResult,K.yield(R.queueOfflineAction(u,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return y=K.yieldResult,K.yield(OdZ(G),15);case 15:return U=K.yieldResult,K.yield(HdG(G),16);case 16:q=K.yieldResult,B.onAddCommand&&G.JSC$18942_commandHandler.resolveCommand(B.onAddCommand,{form:{preferredFormatType:U,
offlineWebClientEligibility:y,lastOfflineQualitySettingsSavedMs:q.toString()}}),K.jumpTo(0)}})},RGQ=function(G,B,F){var D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P;
_.n(function(RI){switch(RI.nextAddress){case 1:return RI.yield(WEH(G,(D=B)==null?void 0:D.actionParams),2);case 2:u=B.videoId;if(!u)return RI.return();if(B.action==="ACTION_REMOVE_WITH_PROMPT"){var yo=G.JSC$18942_commandHandler,hg=yo.resolveCommand,US=_.v5("INNERTUBE_CLIENT_NAME");var aI=US==="WEB_REMIX"?_.G7("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.G7("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var v6=US==="WEB_REMIX"?[_.G7("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];US=US==="WEB_REMIX"?_.G7("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.G7("DELETE",void 0,"Delete");var Jg=_.G7("CANCEL",void 0,"Cancel");aI=F52(aI,v6,US,Jg,{signal:"DELETE_DOWNLOAD",targetId:u});hg.call(yo,{openPopupAction:aI});return RI.return()}if(B.action==="ACTION_ADD")return((t=B.actionParams)==null?0:t.formatType)?RI.yield(mQU(G,u,B.actionParams.formatType,(P=B.actionParams)==null?void 0:P.settingsAction,F),0):RI.yield(G.offlineWebClientEligibility,
29);if(B.action==="ACTION_RETRY")return RI.yield(OdZ(G),25);if(B.action==="ACTION_PAUSE")return RI.yield(G.pauseVideoDownload(u),0);if(B.action==="ACTION_RESUME")return RI.yield(G.resumeVideoDownload(u),0);if(B.action==="ACTION_REMOVE")return RI.yield(azz(G,u),19);if(!B.onAddCommand||!_.Q(B.onAddCommand,_.vI)){RI.jumpTo(0);break}R=_.Q(B.onAddCommand,_.vI);y=(N=R)==null?void 0:N.isCrossDeviceDownload;if(!y){RI.jumpTo(0);break}U="HD";return RI.yield(HdG(G),16);case 16:return q=RI.yieldResult,RI.yield(kuG(G),
17);case 17:return h=RI.yieldResult,RI.yield(G.offlineWebClientEligibility,18);case 18:K=RI.yieldResult;G.JSC$18942_commandHandler.resolveCommand(B.onAddCommand,{form:{preferredFormatType:U,lastOfflineQualitySettingsSavedMs:q.toString(),downloadToMobileEduShown:h,offlineWebClientEligibility:K}});RI.jumpTo(0);break;case 19:return a=RI.yieldResult,G.previousDownloadStateForVideo[u]=(m=a)!=null?m:"DOWNLOAD_STATE_UNKNOWN",RI.yield(Q6U(G,u,"DOWNLOAD_STATE_USER_DELETED"),20);case 20:if(G.previousDownloadStateForVideo[u]!==
"DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[u]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){RI.jumpTo(21);break}return RI.yield(G.pauseVideoDownload(u),21);case 21:yo=_.G7("DELETED_VIDEO",void 0,"Video deleted from downloads.");hg=_.G7("UNDO_ACTION",void 0,"Undo");aI=_.G7("CLOSE",void 0,"Close");L={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.pR(yo),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.pR(hg),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:u}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:yo+" "+hg}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:u}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:aI}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},
popupType:"TOAST"}};G.JSC$18942_commandHandler.resolveCommand(L);RI.jumpTo(0);break;case 25:W=RI.yieldResult;W==="UNKNOWN_FORMAT_TYPE"&&(W="SD");e="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((b=B.actionParams)==null?0:b.formatType)W=B.actionParams.formatType,e=(M=B.actionParams)==null?void 0:M.settingsAction;return RI.yield(XLU(G,u,W,e,F),26);case 26:return RI.return();case 29:return T=RI.yieldResult,RI.yield(OdZ(G),30);case 30:return A=RI.yieldResult,RI.yield(HdG(G),31);case 31:Z=RI.yieldResult,
B.onAddCommand&&G.JSC$18942_commandHandler.resolveCommand(B.onAddCommand,{form:{preferredFormatType:A,offlineWebClientEligibility:T,lastOfflineQualitySettingsSavedMs:Z.toString()}}),RI.jumpTo(0)}})},ey$=function(G,B){var F,D,u,R,N,y,U;
return _.n(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18942_persistentStorePromiseAccessor(),2);F=q.yieldResult;if(!F)return _.em(new _.Uf("PES is undefined")),q.return();if((D=B)==null||!D.settingItemId)return q.return();u=B;R=u.settingItemId;N=u.boolValue;y=_.Z4(R,"settingEntity");U={key:y,settingOptionValue:{boolValue:N}};return q.yield(jVZ(F,U),0)})},$QG=function(G,B){var F,D,u,R,N,y,U;
return _.n(function(q){switch(q.nextAddress){case 1:return q.yield(G.JSC$18942_prefStorage,2);case 2:return F=q.yieldResult,D=_.D4(),q.yield(G.JSC$18942_persistentStorePromiseAccessor(),3);case 3:return u=q.yieldResult,F?u?q.yield(F.get("sdois"),4):(_.em(new _.Uf("PES is undefined")),q.return()):(_.em(new _.Uf("prefStorage is undefined")),q.return());case 4:R=q.yieldResult;y=(N=B)==null?void 0:N.boolValue;y===void 0||_.X("kevlar_set_sd_enabled_flag_killswitch")||_.uf(0,197,!0);R===void 0&&y===void 0&&
(y=!1);if(y===void 0){q.jumpTo(0);break}return q.yield(F.set("sdois",y),6);case 6:return _.X("kevlar_set_sd_enabled_flag_killswitch")||(_.uf(0,196,y),D.save()),U={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:y},q.yield(ey$(G,U),0)}})},zyZ=function(G,B,F){var D,u,R,N,y;
return _.n(function(U){switch(U.nextAddress){case 1:return U.yield(LE$(G),2);case 2:return D=U.yieldResult,U.yield($QG(G,F),3);case 3:return U.yield(LE$(G),4);case 4:return u=U.yieldResult,R=u!==D,U.yield(rsA(G),5);case 5:N=U.yieldResult&&!_.X("kevlar_modern_downloads_page");if((y=!u&&!N)||R)return U.yield(B.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);U.jumpTo(0)}})},iG$=function(){var G=_.te().resolve(_.Ua),
B;
_.n(function(F){switch(F.nextAddress){case 1:return F.yield(G.JSC$18942_playerApiPromise,2);case 2:B=F.yieldResult;if(!_.X("kevlar_force_refresh_smart_downloads")){F.jumpTo(3);break}return F.yield(B.refreshAllStaleEntities(0),4);case 4:return F.return();case 3:return F.yield(B.refreshAllStaleEntities(),5);case 5:return F.yield(zyZ(G,B),6);case 6:if(_.X("enable_download_pep_for_premium_countries_web"))return F.yield(j6G(G,B),0);F.jumpTo(0)}})},yh2=function(G,B){var F,D;
_.n(function(u){switch(u.nextAddress){case 1:return u.yield(G.JSC$18942_playerApiPromise,2);case 2:F=u.yieldResult;switch((D=B)==null?void 0:D.settingItemId){case "SMART_DOWNLOADS_ENABLED":return u.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return u.jumpTo(4)}u.jumpTo(0);break;case 3:return u.yield(zyZ(G,F,B),6);case 6:u.jumpTo(0);break;case 4:return u.yield(ey$(G,B),7);case 7:u.jumpTo(0)}})},bd$=function(G,B){var F,D,u;
return _.n(function(R){if(R.nextAddress==1)return R.yield(G.JSC$18942_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3){F=R.yieldResult;if(!F)return _.em(new _.Uf("PES is undefined")),R.return(!1);if(!B)return R.return(!1);D=_.Z4(B,"mainVideoEntity");return R.yield(LwS(F,D,"mainVideoEntity"),3)}u=R.yieldResult;return R.return(u!==void 0)})},lg$=function(G){var B=_.te().resolve(_.Ua),F,D,u,R,N,y,U,q,h,K,a;
_.n(function(m){switch(m.nextAddress){case 1:return m.yield(B.JSC$18942_playerApiPromise,2);case 2:F=m.yieldResult;u=(D=G)==null?void 0:D.actions;if(!u)return m.return();R=_.C(u);N=R.next();case 3:if(N.done){m.jumpTo(0);break}y=N.value;q=U=void 0;if(!(((U=y)==null?0:U.entityKey)&&((q=y)==null?0:q.actionType))){m.jumpTo(4);break}h=_.cT(y.entityKey);K=h.entityId;a=h.entityType;return m.yield(F.queueOfflineAction(K,a,y.actionType),4);case 4:N=R.next(),m.jumpTo(3)}})},VHG=function(G,B){var F,D,u,R,N;
return _.n(function(y){if(y.nextAddress==1)return y.yield(G.JSC$18942_prefStorage,2);if(y.nextAddress!=3)return(F=y.yieldResult)?y.yield(F.get("psi"),3):y.return();D=y.yieldResult;N={isPaused:B,lastSyncTimestamp:(R=(u=D)==null?void 0:u.lastSyncTimestamp)!=null?R:"0"};return y.yield(F.set("psi",N),0)})},EuN=function(G){var B=_.te().resolve(_.Ua),F,D,u,R,N,y,U,q;
return _.n(function(h){switch(h.nextAddress){case 1:return h.yield(B.JSC$18942_playerApiPromise,2);case 2:F=h.yieldResult;u=((D=G)==null?void 0:D.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((y=G)==null?void 0:y.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":R="!*$_ALL_ENTITIES_!*$";N="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return h.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return h.jumpTo(4)}h.jumpTo(5);break;case 3:return h.yield(VHG(B,u),6);case 6:h.jumpTo(5);break;case 4:return h.yield(bd$(B,(U=G)==null?void 0:U.videoId),7);case 7:h.yieldResult&&(R=(q=G)==null?void 0:q.videoId,N="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");h.jumpTo(5);break;case 5:if(R&&N)return h.yield(F.queueOfflineAction(R,"videoPlaybackPositionEntity",N),0);h.jumpTo(0)}})},veH=function(G,B){_.te().resolve(_.UB).persistentPanelContainerMap.set(B,G)},
oeN=function(G,B,F){G.hasRegisteredHoverCallbacks=!0;
G.hoverEnterCallback=B!=null?B:void 0;G.hoverLeaveCallback=F!=null?F:void 0},MHS=function(){return _.te().resolve(_.DG).dismissedIndices},pL$=function(){var G=_.te().resolve(_.DG);
_.Y_U(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(G.isFullscreenEnabled()?_.oa(document.documentElement):_.s1U(document.documentElement))},Y9U=function(G,B){var F;
B!==1||((F=G.currentPersistentToast)==null?0:F.isOpened())?_.DnB(G):G.currentPersistentToast=void 0},AsQ=function(G,B){var F;
return(F=G.transitionTasksMap.get(B))!=null?F:[]},dQS=function(G,B){var F=[];
G.elementTasksMap.forEach(function(D){(D=D.get(B))&&F.push(D)});
return F},Js$=function(G,B,F,D,u){u=u===void 0?{}:u;
var R=B.defaultViewTransitionOptions;return Object.assign({},R,u,{beforeTransition:function(){D.forEach(function(q){q.beforeTransition()});
var N;(N=R.beforeTransition)==null||N.call(R);var y,U;(U=(y=u).beforeTransition)==null||U.call(y);F.forEach(function(q){q.beforeTransition()})},
afterTransition:function(){D.forEach(function(q){q.afterTransition()});
var N;(N=R.afterTransition)==null||N.call(R);var y,U;(U=(y=u).afterTransition)==null||U.call(y);F.forEach(function(q){q.afterTransition()})},
ignoredErrors:G.config.ignoredErrors})},cs$=function(G,B,F){G.transitionTasksMap.has(B)?G.transitionTasksMap.get(B).push(F):(G=new _.Uf("Transition task registered for unknown transition type",B),_.k2(G))},TLA=function(G,B,F){if(G.transitionTasksMap.has(B)){var D=G.transitionTasksMap.get(B).filter(function(u){return u!==F});
G.transitionTasksMap.set(B,D)}},Iz$=function(G,B){var F=AsQ(G,B);
F=_.C(F);for(var D=F.next();!D.done;D=F.next())D=D.value,D.runOnce&&TLA(G,B,D);G.elementTasksMap.forEach(function(u,R){u.forEach(function(N,y){N.runOnce&&B===y&&(u.delete(y),u.size===0&&G.elementTasksMap.delete(R))})})},fzz=function(G,B,F){var D,u,R,N,y,U,q,h,K;
_.n(function(a){if(a.nextAddress==1){if(G.config.disableAllTransitions)return a.return(B());if((D=F)==null||!D.transitionType)return a.return(uhD(B,Object.assign({},(u=F)==null?void 0:u.viewTransitionOptions,{ignoredErrors:G.config.ignoredErrors})));R=F;N=R.transitionType;y=R.viewTransitionOptions;U=G.config.transitionConfigs.get(N);if(!U)return a.return(B());q=AsQ(G,N);h=dQS(G,N);K=uhD(B,Js$(G,U,q,h,y));return a.yield(K,2)}Iz$(G,N);_.di(a)})},tHD=function(G,B){var F,D,u,R,N;
_.n(function(y){if(!B.length)return y.return([]);F=[];D=_.C(B);for(u=D.next();!u.done;u=D.next())R=u.value,(N=G.resolveIcon(R))&&!G.iconCache[N.url]&&F.push(_.QnD(G,N).then(function(){}).catch(function(){}));
return y.return(Promise.all(F))})},Zd$=function(G,B){var F=[];
B=(new Set(B)).values();B=_.C(B);for(var D=B.next();!D.done;D=B.next()){D=D.value;for(var u=_.C(Object.values(S7$)),R=u.next();!R.done;R=u.next())F.push({iconName:D,iconStyle:R.value})}tHD(G.iconManager,F)},geD=function(G,B,F){var D=F!=null?F:G.iconsToFetch;
D!=null&&D.length?B!==void 0&&B>=0?_.mX(_.Lu,function(){Zd$(G,D)},B):Zd$(G,D):Promise.resolve()},S9$=function(){var G,B,F,D;
return _.n(function(u){if(u.nextAddress==1)return G=navigator,(B=G.storage)!=null&&B.persisted?u.yield((F=G.storage)==null?void 0:F.persisted(),2):u.return("PERSISTED_STATE_NOT_SUPPORTED");D=u.yieldResult;return u.return(D?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},s6D=function(){var G,B,F,D;
return _.n(function(u){if(u.nextAddress==1)return G=navigator,(B=G.storage)!=null&&B.persist?u.yield((F=G.storage)==null?void 0:F.persist(),2):u.return("PERSISTED_STATE_NOT_SUPPORTED");D=u.yieldResult;return u.return(D?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},xQA=function(){var G,B;
return _.n(function(F){switch(F.nextAddress){case 1:return G="PERSISTED_STATE_NOT_SUPPORTED",_.b5(F,2),F.yield(S9$(),4);case 4:G=F.yieldResult;if(G!=="PERSISTED_STATE_NOT_GRANTED"){F.jumpTo(5);break}return F.yield(s6D(),6);case 6:G=F.yieldResult;case 5:_.oY(F,3);break;case 2:B=_.Al(F),B instanceof Error&&_.k2(B);case 3:return _.W$("persistentStorageStateChecked",{persistedState:G}),F.return(G)}})},PwG=function(G,B,F){if(G.isAnyTransitionEnabled){var D={beforeTransition:function(){F(!0);
B.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){B.style.viewTransitionName&&(B.style.viewTransitionName="",F(!1))}};
cs$(G.viewTransitionCoordinator,"slide",D);cs$(G.viewTransitionCoordinator,"lockup-to-watch",D);cs$(G.viewTransitionCoordinator,"watch-next-appears",D);cs$(G.viewTransitionCoordinator,"learning-journey",D)}},GkH=function(G,B,F,D){if(G.isLockupToWatchTransitionEnabled){if(B){var u={};
u=(u["watch-next-appears"]="player-watch-next-loaded",u);u["lockup-to-watch"]=G.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";G.viewTransitionCoordinator.registerElement(B,u)}F&&(B={},G.viewTransitionCoordinator.registerElement(F,(B["lockup-to-watch"]="below-lockup-to-watch",B["watch-next-appears"]="below-watch-next-loaded",B)));D&&(F={},G.viewTransitionCoordinator.registerElement(D,(F["watch-next-appears"]="secondary-watch-next-loaded",
F)))}},Bu$=function(G,B){G.isBrowseTransitionEnabled?fzz(G.viewTransitionCoordinator,B,{transitionType:"slide"}):(B(),Promise.resolve())},ioB=function(G,B){G.isLockupToWatchTransitionEnabled?fzz(G.viewTransitionCoordinator,B,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){G.registeredLockupThumbnail=void 0;G.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(B(),Promise.resolve())},F$G=function(G,B){G.isLockupToWatchTransitionEnabled?fzz(G.viewTransitionCoordinator,B,{transitionType:"watch-next-appears"}):(B(),Promise.resolve())},Dp$=function(G,B){G.isLearningJourneyTransitionEnabled?fzz(G.viewTransitionCoordinator,B,{transitionType:"learning-journey"}):(B(),Promise.resolve())},uMS=function(G,B,F){if(G.isInitialized()){var D=
A_(F),u=D==="watch";
D=D==="shorts";var R=A_(B)==="watch";if(u)R||(G.backgroundPageData=B),G.watchPipMode&&R||G.deactivate(F.endpoint);else if(D){if(A_(B)!=="shorts"){var N;(N=G.getPlayerElement())==null||N.pause()}}else R&&!G.watchPipMode&&(R2A(B,F,!0)?(G.watchWhileMode&&_.rbH(G,!1),_.aSB(G,B)):G.isMiniplayerActive()&&G.watchWhileMode&&G.deactivate());R&&_.HZD(G);G.shortsPipMode&&!D&&(window.focus(),G.deactivate());if(G.pictureInPictureEnabled())if(D&&G.shortsPipEnabled||u&&G.JSC$19359_watchPipEnabled&&(!G.watchPipManualOnlyEnabled||
_.I26()&&_.LgS("Chromium")>=142))_.tig(G.handleMediaSessionPipActivation);else if((!G.isMiniplayerActive()||G.watchPipManualOnlyEnabled)&&(G.shortsPipEnabled||G.JSC$19359_watchPipEnabled)&&_.I26()){G=_.f2o().mediaSession;try{G.setActionHandler("enterpictureinpicture",null)}catch(y){}}}},Rd$=function(G,B){var F,D;
_.n(function(u){if(u.nextAddress==1){if(!G||!G.navigationEndpoint)return u.return();_.Bv().lockupActivation=!0;var R;B?R=_.$9(_.G7("QUEUE",void 0,"Queue")):R=G.longBylineText;D=(F=R)&&G.title?{miniplayerTitle:G.title,miniplayerSubtitle:F,playlistData:null}:void 0;return u.yield(_.rdw(_.te().resolve(_.WP),G.navigationEndpoint,!0,D),2)}_.Bv().userActivation=!0;_.di(u)})},iXU=function(G,B){var F,D,u,R,N,y;
_.n(function(U){if(U.nextAddress==1){F=_.Q(B,_.qVs);if(!F||!F.listId)return U.return();G.index=F.index||G.index||0;D=G.response&&G.response.playingVideoId||void 0;return U.yield(_.d1v(G.JSC$13404_playlistNetworkManager,F.listId,G.index,D),2)}u=U.yieldResult;if(!u)return U.return();R=u.playlistId;N=u.playlistPanelRenderer;!G.queueProxy&&R&&N&&R.startsWith("TLPQ")&&(G.queueProxy=new _.jj(G.JSC$13404_playlistNetworkManager,R,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.tqQ(N),G.storage));if(F.openMiniplayer&&
(y=_.ZUU(N))&&!G.JSC$13404_pageManager.isOnWatch()){var q=y,h=F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";G.isMiniplayerActive()||Rd$(q,h)}G.setPlaylistData(R,N,u.autoplayRenderer);_.di(U)})},PQ$=function(G,B){var F=_.$l();
F.index===void 0&&(F.index=0);F.temporaryItems.push.apply(F.temporaryItems,_.gi(G));if((B.videoId||B.videoIds)&&F.index!==void 0&&B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!F.queueProxy){var D=[];if(F.response){var u=_.te().resolve(_.WP).isMiniplayerActive();if(F.response.playlistPanelRenderer&&F.response.playlistId&&!F.response.playlistId.startsWith("TLPQ")){if(F.JSC$13404_pageManager.isOnWatch()||u)D=_.tqQ(F.response.playlistPanelRenderer)}else F.response.playingVideoId&&!B.openMiniplayer?
D.push(F.response.playingVideoId):u&&F.response.playingVideoId&&B.openMiniplayer&&D.push(F.response.playingVideoId)}F.queueProxy=new _.jj(F.JSC$13404_playlistNetworkManager,"",F.setPlaylistData.bind(F),F.clearQueue.bind(F),D,F.storage);F.queueProxy.JSC$13350_setCurrentIndex(F.index)}F.queueProxy.addVideos(B.videoIds||[B.videoId],B)}HBA(F,G);F.response&&_.zS(F,_.b_(F,F.response.autoplayRenderer));F.JSC$13404_pageManager.isOnWatch()||(G=G[0],B=B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",F.isMiniplayerActive()||
Rd$(G,B))},wVS=function(G,B){var F;
return _.n(function(D){return D.nextAddress==1?B&&G.lastWelcomeContinuationSent!==B?_.dIG(G)?D.yield(G.panelController.isVisible("PAai_companion"),3):D.jumpTo(2):D.return(!1):D.nextAddress==2||(F=D.yieldResult,F)?D.return(!0):D.return(!1)})},CPA=function(G){var B,F,D,u,R;
return _.n(function(N){if(N.nextAddress==1){if(!G.welcomeOptions)return N.return();B=G.welcomeOptions;F=B.command;D=B.setPending;if(F){var y;var U=(y=_.Q(F,_.QO))==null?void 0:y.token}else U=void 0;u=U;return N.yield(wVS(G,u),2)}if(!N.yieldResult)return N.return();G.lastWelcomeContinuationSent=u;(R=D)==null||R(!0);U="youchat-"+Date.now();y=(y=_.sR())?String(Math.floor(y.getCurrentTime())*1E3):void 0;_.QX(F,{form:{formData:_.VT({clientMessageId:U,playerOffsetMs:y,pageContext:_.V5D(G,G.pageSubtype)})}});
_.di(N)})},Nuz=function(G,B){_.n(function(F){G.welcomeOptions=B;
return F.yield(CPA(G),0)})},yDN=function(G){var B=_.DZ(G);
if(B=="object"||B=="array"){if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);B=B=="array"?[]:{};for(var F in G)B[F]=yDN(G[F]);return B}return G},Ns$=function(G,B){return Array.prototype.reduce.call(G,B,{duration:0})},m0=function(G,B){return _.O7c(_.uc(G,B,void 0,_.ic))},XU=function(G,B){return _.UA(_.uc(G,B,void 0,_.ic))},Qd=function(G,B){return _.uc(G,B,void 0,_.ic,_.FD)},
nCA=_.hj(function(G,B,F,D){if(_.t1)return _.DmI(G,B,F,D);
if(G.nextWireType_!==0)return!1;_.WX(B,F,D,_.rm(G.decoder_,_.gw));return!0},_.QC,_.$z),lT$=_.hj(function(G,B,F){if(_.t1)return _.wY6(G,B,F);
if(G.nextWireType_!==1)return!1;var D=G.decoder_;G=_.kz(D);D=_.kz(D);G=_.Iq(G,D);_.Ke(B,F,G);return!0},_.gSS,_.Oe8),UpS=_.hj(function(G,B,F){if(G.nextWireType_!==5)return!1;
_.Ke(B,F,_.kz(G.decoder_));return!0},function(G,B,F){B=_.zUz(B);
B!=null&&(_.aM(G,F,5),_.mL(G.encoder_,B))},_.WLw),qVS=_.hj(function(G,B,F){if(G.nextWireType_!==2)return!1;
G=_.l6q(G);_.Ke(B,F,G===_.by()?void 0:G);return!0},_.GoJ,_.zwU),ECG=_.AjJ(function(G,B,F){if(G.nextWireType_!==0&&G.nextWireType_!==2)return!1;
B=_.wm(B,B[_.Rq]|0,F);G.nextWireType_==2?_.U37(G,FwQ,B):B.push(_.HU(G.decoder_));return!0},function(G,B,F){B=_.YyL(_.UA,B,!0);
if(B!=null&&B.length){F=_.m3G(G,F);for(var D=0;D<B.length;D++)_.f6z(G.encoder_,B[D]);_.XXa(G,F)}},_.bew),hdZ=_.hj(function(G,B,F,D){if(G.nextWireType_!==0)return!1;
_.WX(B,F,D,_.HU(G.decoder_));return!0},_.iIQ,_.bew),K$$=function(G,B){return G==B?!0:G&&B?G.width==B.width&&G.height==B.height:!1},jk=function(G,B){G.insertBefore(B,G.childNodes[0]||null)},aTD=function(G){return G.previousElementSibling!==void 0?G.previousElementSibling:_.cMq(G.previousSibling,!1)},v7Q=_.$S(_.Xp),mp$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(mp$,_.q3);mp$.prototype.getTypeName=function(){return _.KX(this,1).split("/").pop()};
mp$.prototype.getValue=function(){var G=_.uc(this,2);if(Array.isArray(G)||G instanceof _.q3)throw Error("X");return _.CX(this,2)};
var XVZ=[0,2,_.Yz],JS$=function(){var G=_.c2();this.JSC$10227_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ce("channel_type"))};
JS$.prototype.increment=function(G){this.JSC$10227_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",G)};
var cSD=function(){var G=_.c2();this.JSC$10230_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ce("channel_type"))};
cSD.prototype.increment=function(G){this.JSC$10230_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",G)};
var IOA=function(){var G=_.c2();this.JSC$10233_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ce("channel_type"))};
IOA.prototype.increment=function(G){this.JSC$10233_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",G)};
var T3D=function(){var G=_.c2();this.JSC$10236_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
T3D.prototype.increment=function(){this.JSC$10236_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var fOD=function(){var G=_.c2();this.JSC$10239_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ce("channel_type"),_.ce("error_type"))};
fOD.prototype.increment=function(G,B){this.JSC$10239_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",G,B)};
var tIN=function(){var G=_.c2();this.JSC$10242_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
tIN.prototype.increment=function(){this.JSC$10242_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var ZWU=function(){var G=_.c2();this.JSC$10245_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
ZWU.prototype.increment=function(){this.JSC$10245_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var MtZ=function(){var G=_.c2();this.JSC$10251_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
MtZ.prototype.increment=function(){this.JSC$10251_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Q3Z=function(G){return G.getCount&&typeof G.getCount=="function"?G.getCount():_.fQ(G)||typeof G==="string"?G.length:_.UK.getCount(G)},j3$=function(G,B){if(typeof G.every=="function")return G.every(B,void 0);
if(_.fQ(G)||typeof G==="string")return Array.prototype.every.call(G,B,void 0);for(var F=_.n2G(G),D=_.Ah(G),u=D.length,R=0;R<u;R++)if(!B.call(void 0,D[R],F&&F[R],G))return!1;return!0},L$D=function(G,B,F,D){var u=new _.ea(null);
G&&_.d2(u,G);B&&_.Jh(u,B);F&&_.cp(u,F);D&&_.TE(u,D);return u},rDS=function(G){if(G>=48&&G<=57||G>=96&&G<=106||G>=65&&G<=90||_.Bz&&G==0)return!0;
switch(G){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 _.ih;default:return!1}},W$$=function(G){if(G.altKey&&!G.ctrlKey||G.metaKey||G.keyCode>=112&&G.keyCode<=123)return!1;
if(rDS(G.keyCode))return!0;switch(G.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!_.ih;default:return G.keyCode<166||G.keyCode>183}},HoU=[0,
_.bc,UpS,-1],kkA={IMMEDIATE:10,AFTER_RENDER:8,MEASURE:5,INPUT:4,HIGH:3,MEDIUM:2,LOW:1,IDLE:0,10:"IMMEDIATE",8:"AFTER_RENDER",5:"MEASURE",4:"INPUT",3:"HIGH",2:"MEDIUM",1:"LOW",0:"IDLE"},z2B=0,M_A=!1,MTG=function(G,B,F,D,u,R,N){this.date=typeof G==="number"?new Date(G,B||0,F||1,D||0,u||0,R||0,N||0):new Date(G&&G.getTime?G.getTime():_.Td())};
_.IC(MTG,_.uP);_.w=MTG.prototype;_.w.getHours=function(){return this.date.getHours()};
_.w.getMinutes=function(){return this.date.getMinutes()};
_.w.getSeconds=function(){return this.date.getSeconds()};
_.w.getMilliseconds=function(){return this.date.getMilliseconds()};
_.w.getUTCDay=function(){return this.date.getUTCDay()};
_.w.getUTCHours=function(){return this.date.getUTCHours()};
_.w.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.w.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.w.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.w.setHours=function(G){this.date.setHours(G)};
_.w.setMinutes=function(G){this.date.setMinutes(G)};
_.w.setSeconds=function(G){this.date.setSeconds(G)};
_.w.setMilliseconds=function(G){this.date.setMilliseconds(G)};
_.w.setUTCHours=function(G){this.date.setUTCHours(G)};
_.w.setUTCMinutes=function(G){this.date.setUTCMinutes(G)};
_.w.setUTCSeconds=function(G){this.date.setUTCSeconds(G)};
_.w.setUTCMilliseconds=function(G){this.date.setUTCMilliseconds(G)};
_.w.add=function(G){_.uP.prototype.add.call(this,G);G.hours&&this.setUTCHours(this.date.getUTCHours()+G.hours);G.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+G.minutes);G.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+G.seconds)};
_.w.JSC$11647_toIsoString=function(G){var B=_.uP.prototype.JSC$11647_toIsoString.call(this,G);return G?B+"T"+_.PU(this.getHours(),2)+":"+_.PU(this.getMinutes(),2)+":"+_.PU(this.getSeconds(),2):B+"T"+_.PU(this.getHours(),2)+_.PU(this.getMinutes(),2)+_.PU(this.getSeconds(),2)};
_.w.equals=function(G){return this.getTime()==G.getTime()};
_.w.toString=function(){return this.JSC$11647_toIsoString()};
_.w.clone=function(){var G=new MTG(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
Y1Q.prototype.set=function(G){this.relativeTimeStart_=G};
Y1Q.prototype.reset=function(){this.set(_.Td())};
Y1Q.prototype.get=function(){return this.relativeTimeStart_};
var Ooz=null,edU=function(){Ooz||(Ooz=new Y1Q)},$pG=function(){Ooz||(Ooz=new Y1Q)};
_.IC($pG,edU);_.w=AUD.prototype;_.w.JSC$11673_buffer_="";_.w.set=function(G){this.JSC$11673_buffer_=""+G};
_.w.append=function(G,B,F){this.JSC$11673_buffer_+=String(G);if(B!=null)for(var D=1;D<arguments.length;D++)this.JSC$11673_buffer_+=arguments[D];return this};
_.w.clear=function(){this.JSC$11673_buffer_=""};
_.w.getLength=function(){return this.JSC$11673_buffer_.length};
_.w.toString=function(){return this.JSC$11673_buffer_};
var gQA={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"},cU$=function(G){this.xhr=G},T0Q=function(G,B,F){_.Gs.call(this,G+", errorCode="+B);
this.errorCode=B;this.xhr=F;this.name="PromiseAjaxError"};
_.r(T0Q,_.Gs);var zdQ=!1,iiG=function(G){_.Gs.call(this,G.message||G.description||G.name);this.isMissing=G instanceof xY$;this.isTimeout=G instanceof T0Q&&G.errorCode=="net.timeout";this.isCanceled=G instanceof _.eg};
_.r(iiG,_.Gs);iiG.prototype.name="BiscottiError";var xY$=function(){_.Gs.call(this,"Biscotti ID is missing from server")};
_.r(xY$,_.Gs);xY$.prototype.name="BiscottiMissingError";var JUB={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ph$=null,f$$=function(){try{var G=_.Yf("yt.ads.biscotti.getId_");return G?G():rUG()}catch(B){return _.U_(B)}},lLD={'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"},boD=function(G,B){return _.d5({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:G,command:B}})},V7U=function(G){return _.d5({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:G}})},vCU=function(G){return _.d5({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:G}})},oCD=function(G){return _.d5({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:G}})},M7N=function(G){return _.d5({type:"SET_GUIDE_IS_EXPANDED",
payload:G})},pVB=function(G){return _.d5({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:G})},YVU=function(G){return _.d5({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:G})},ADz=function(G){return _.d5({type:"SET_ONLINE_STATUS",
payload:G})},dp$=function(G){return _.d5({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:G}})},JDQ=function(G){return _.d5({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:G}})},cDA=function(G){return _.d5({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:G}})},TuZ=function(G,B){return _.d5({type:"SET_TRANSCRIPTION_STATE",
payload:{high:G,low:B}})},ITN=function(G){return _.d5({type:"SET_OVERLAY_STATE",
payload:G})},OiG=[[["cHJpbWFyeSNvdWlwY3l2eHBnNjk=",
null,null],[null,["dW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2YybjM1YjZ1NG1mY3l0ZC10d28tY29s","b3BlIzN2YmFhOGZtNDd6YnN0eWxlLXNj"],null],["LWFkIzNrbWN4MGFocnptbm1hc3RoZWFk",["N2N0eHB5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3V4YzkzdTU="],null],[null,["bTd4cDB5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2UyaDZ2YzY=","b3BlI2VwZDU4NTJqejV1eHN0eWxlLXNj"],null],[null,["ZHB5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzMwcXR4NGdrZDI=","b3BlIzd4OXd3ZDRncHpybnN0eWxlLXNj"],null],[null,["aHE3b2hjZXl0ZC1hZC1zbG90LXJlbmRlcmVyI2VxZWZo"],null]],[["LWFkcyN3N2V0dXdyNTI0cnhwbGF5ZXI=",
null,null]],[[null,null,"Z3F5eXRsci1iYW5uZXItY3RhLXJlbmRlcmVyI2l3MHRpeGgzMw=="]]],jaZ="#",fTN=0,t7U=function(G,B,F){var D=this;this.priority=B;this.delay=F;this.jobId=0;this.completionCallback=_.qB;this.wrappedJob=function(){G();D.completionCallback()};
this.id=++fTN};
t7U.prototype.enqueue=function(G){this.completionCallback=G;this.jobId=_.Lu.addJob(this.wrappedJob,this.priority,this.delay)};
var LK=function(){_.YE.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.r(LK,_.YE);LK.prototype.addJob=function(G,B,F){G=new t7U(G,B,F);this.taskIdToTask.set(G.id,G);this.isActive?ZoD(this,G):this.suspendedTasks.add(G);return G.id};
var ZoD=function(G,B){G.scheduledTasks.add(B);B.enqueue(function(){G.scheduledTasks.delete(B)})};
LK.prototype.cancelJob=function(G){(G=this.taskIdToTask.get(G))&&(this.scheduledTasks.delete(G)?_.Lu.cancelJob(G.jobId):this.suspendedTasks.delete(G))};
LK.prototype.pause=function(){var G=this;this.isActive=!1;this.scheduledTasks.forEach(function(B){_.Lu.cancelJob(B.jobId);G.suspendedTasks.add(B)});
this.scheduledTasks.clear()};
LK.prototype.start=function(){var G=this;this.isActive=!0;this.suspendedTasks.forEach(function(B){ZoD(G,B)});
this.suspendedTasks.clear()};
LK.prototype.reset=function(){this.scheduledTasks.forEach(function(G){_.Lu.cancelJob(G.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var gC2=function(G,B){this.JSC$13530_networkService_=G;this.pageRequestPromise=B};
gC2.prototype.fetchData=function(G){SVZ(this,this.JSC$13530_networkService_.fetchData(G))};
gC2.prototype.postData=function(G,B){SVZ(this,this.JSC$13530_networkService_.postData(G,B))};
gC2.prototype.requestDataForServiceEndpoint=function(G,B){SVZ(this,this.JSC$13530_networkService_.requestDataForServiceEndpoint(G,B))};
var SVZ=function(G,B){B.then(G.pageRequestPromise.onSuccess,G.pageRequestPromise.onFailure,G.pageRequestPromise)};
gC2.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var s3N=function(G){this.buildNetworkRequest_=G;this.pendingRequests_=new Set};
s3N.prototype.reset=function(){this.pendingRequests_.forEach(function(G){G.cancel()});
this.pendingRequests_.clear()};
s3N.prototype.fetchData=function(G){var B=xpA(this);B.fetchData(G);return B.pageRequestPromise};
s3N.prototype.postData=function(G,B){var F=xpA(this);F.postData(G,B);return F.pageRequestPromise};
s3N.prototype.requestDataForServiceEndpoint=function(G,B){var F=xpA(this);F.requestDataForServiceEndpoint(G,B);return F.pageRequestPromise};
var xpA=function(G){var B=G.buildNetworkRequest_();G.pendingRequests_.add(B);var F=function(){G.pendingRequests_.delete(B)};
B.pageRequestPromise.then(F,F);return B},PPZ=function(G){var B=new LK;
this.JSC$13537_networkService_=G;this.JSC$13537_taskManager_=B;this.JSC$13537_networkManager_=new s3N(this.networkRequestFactory_.bind(this))};
_.w=PPZ.prototype;_.w.networkRequestFactory_=function(){return new gC2(this.JSC$13537_networkService_,new _.Zh(this.JSC$13537_taskManager_))};
_.w.reset=function(){this.JSC$13537_taskManager_.reset();this.JSC$13537_networkManager_.reset()};
_.w.start=function(){this.JSC$13537_taskManager_.start()};
_.w.pause=function(){this.JSC$13537_taskManager_.pause()};
_.w.getTaskManager=function(){return this.JSC$13537_taskManager_};
_.w.getNetworkManager=function(){return this.JSC$13537_networkManager_};
var YwH=null,JLA=[],VaG=0,pZA=0,vyB=null,ILH=null,gt=function(G){this.token=G};
gt.getInstance=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.f8(),2);G=B.yieldResult;if(!G)return B.return();gt.instance||(gt.instance=new gt(G));return B.return(gt.instance)})};
var G7Q=function(G){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(sa2(G.token),2);B=F.yieldResult;return F.return(B.clear("resource-manifest-assets"))})},ZD=function(G){this.token=G};
ZD.getInstance=function(){var G;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.f8(),2);G=B.yieldResult;if(!G)return B.return();ZD.instance||(ZD.instance=new ZD(G));return B.return(ZD.instance)})};
var xWH=function(G){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(sa2(G.token),2);B=F.yieldResult;return F.yield(B.clear("auth"),0)})},GGG=!1,a4$=null,maQ=void 0,ORQ=!1,BYH=function(G){if(!_.JZ(document,"gtm-noscript")){var B=document.createElement("noscript");
B.id="gtm-noscript";B.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+G+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(B)}},igN=function(G){_.Gs.call(this,G)};
_.r(igN,_.aUU);
var Q9$=!1,rcD=[],LDS=!1,YXB={},dkN=function(G,B){var F=Fi$,D=this;this.renderFn=G;this.listeners=F;this.context=B;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var u;this.lastSeenPlayerApi=_.r6((u=this.playerControlsData)==null?void 0:u.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.GsN(),void 0);_.X("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){JmG(D).setState({playerState:-1});D.resetRecentlyNavigatedJobId&&
_.Lu.cancelJob(D.resetRecentlyNavigatedJobId);D.recentlyNavigated=!0;D.resetRecentlyNavigatedJobId=_.Lu.addJob(function(){D.recentlyNavigated=!1},8,1E4)})};
dkN.prototype.setState=function(G){if(!_.X("mweb_player_skip_no_op_state_changes")||!AcS(G,this.state))if(this.state=Object.assign({},this.state,G),!_.X("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)G=-1,_.X("player_controls_log_creation_killswitch")||dD$()||(G=(0,_.Zl)()),_.KR("pcu_s"),_.KR("pcu_se"),_.KR("pcu_rs"),this.renderFn(JmG(this)),_.KR("pcu_re"),Jc$(G),_.Lu.addJob(function(){_.KR("pcu_ap")},8)};
var JmG=function(G){if(G.getPlayerApi)var B=_.r6(G.getPlayerApi());else{var F;B=_.r6((F=G.playerControlsData)==null?void 0:F.playerApi)}return Object.assign({},G.state,{setState:G.boundSetState,domMeasurements:{progressBarLineRect:G.progressBarLineRect},playerApi:B,appApi:G.context.appApi,playerContainer:G.context.playerContainer,playerControlContainer:G.context.playerControlContainer,uxConfig:G.context.uxConfig})},cm$=function(G){G.listeners.forEach(function(B){G.eventListenerCleanupFunctions.push(B.register(function(){return JmG(G)},
function(){return G.getData()}))})},TNz=function(G){G.eventListenerCleanupFunctions.forEach(function(B){B()});
G.eventListenerCleanupFunctions.length=0};
dkN.prototype.getData=function(){return this.playerControlsData};var prQ=function(){var G=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return G?parseInt(G[1],10):0},D9A=function(G){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+G)!=-1||document.currentScript.src.indexOf("&"+G)!=-1)},uP$=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},cxB=function(G){G.length?RTD(G.shift(),function(){cxB(G)}):AxQ()},IeA=function(G){return"chrome-extension://"+G+"/cast_sender.js"},RTD=function(G,
B,F){var D=document.createElement("script");
D.onerror=B;F&&(D.onload=F);_.Ux(D,_.qN(G));(document.head||document.documentElement).appendChild(D)},wHz=function(){var G=prQ(),B=[];
if(G>1){var F=G-1;B.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js");B.push("//www.gstatic.com/eureka/clank/"+F+"/cast_sender.js")}return B},AxQ=function(){var G=uP$();
G&&G(!1,"No cast extension found")},Jx$=function(){if(CEB){var G=2,B=uP$(),F=function(){G--;
G==0&&B&&B(!0)};
window.__onGCastApiAvailable=F;RTD("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",AxQ,F)}},Y_$=function(){Jx$();
var G=wHz();G.push("//www.gstatic.com/eureka/clank/cast_sender.js");cxB(G)},dhS=function(){Jx$();
var G=wHz();G.push.apply(G,_.gi(TJ$.map(IeA)));G.push("//www.gstatic.com/eureka/clank/cast_sender.js");cxB(G)},CEB=D9A("loadCastFramework")||D9A("loadCastApplicationFramework"),TJ$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var NYD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(NYD,_.q3);var yQZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(yQZ,_.q3);var nAG=function(){var G=new yQZ;return _.LX(G,1,3)};var rR=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(rR,_.q3);var n7U=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(n7U,_.q3);var lWN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(lWN,_.q3);lWN.prototype.getToken=function(){return _.KX(this,1)};
lWN.prototype.setToken=function(G){return _.v0(this,1,G)};
var NKG=function(G){return _.GX(G,3,_.eQ,_.Yk())},yVN=function(G){return _.GX(G,6,_.eQ,_.Yk())};var WA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(WA,_.q3);WA.prototype.getToken=function(){return _.sf(this,lWN,2)};
WA.prototype.setToken=function(G){return _.ba(this,2,G)};
WA.prototype.getName=function(){return _.KX(this,6)};
var U9U=_.$S(WA);var qgA=function(G,B,F){this.requestMessage=G;this.methodDescriptor=B;this.metadata=F};
qgA.prototype.getMetadata=function(){return this.metadata};var EAz=function(G,B){B=B===void 0?{}:B;this.responseMessage=G;this.metadata=B;this.status=null};
EAz.prototype.getMetadata=function(){return this.metadata};
EAz.prototype.getStatus=function(){return this.status};var HA=function(G,B,F,D,u){this.name=G;this.methodType="unary";this.requestType=B;this.responseType=F;this.requestSerializeFn=D;this.responseDeserializeFn=u},hTU=function(G,B,F){F=F===void 0?{}:F;
return new qgA(B,G,F)};
HA.prototype.getName=function(){return this.name};var kt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(kt,_.q3);kt.prototype.getHeader=function(){return _.sf(this,rR,1)};
kt.prototype.setHeader=function(G){return _.ba(this,1,G)};
kt.prototype.hasHeader=function(){return _.RD(this,rR,1)};var Ki$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Ki$,_.q3);var aW$=new HA("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",kt,Ki$,function(G){return G.serialize()},_.$S(Ki$));var On=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(On,_.q3);On.prototype.getHeader=function(){return _.sf(this,rR,1)};
On.prototype.setHeader=function(G){return _.ba(this,1,G)};
On.prototype.hasHeader=function(){return _.RD(this,rR,1)};var m9G=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(m9G,_.q3);var XHA=new HA("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",On,m9G,function(G){return G.serialize()},_.$S(m9G));var ek=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ek,_.q3);ek.prototype.getHeader=function(){return _.sf(this,rR,1)};
ek.prototype.setHeader=function(G){return _.ba(this,1,G)};
ek.prototype.hasHeader=function(){return _.RD(this,rR,1)};var Qc$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Qc$,_.q3);Qc$.prototype.getValues=function(G){return _.PGy(this,1,G)};var jc2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(jc2,_.q3);jc2.prototype.getLink=function(){return _.sf(this,WA,1)};var LiQ=new HA("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",ek,jc2,function(G){return G.serialize()},_.$S(jc2));var $t=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r($t,_.q3);$t.prototype.getHeader=function(){return _.sf(this,rR,1)};
$t.prototype.setHeader=function(G){return _.ba(this,1,G)};
$t.prototype.hasHeader=function(){return _.RD(this,rR,1)};var rQQ=new HA("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",$t,WA,function(G){return G.serialize()},U9U);var WiS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(WiS,_.q3);var HgS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(HgS,_.q3);HgS.prototype.getUrl=function(){return _.KX(this,2)};
HgS.prototype.setUrl=function(G){return _.v0(this,2,G)};var kGD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(kGD,_.q3);var OgD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(OgD,_.q3);var eTD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(eTD,_.q3);var rVA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(rVA,_.q3);var jFB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(jFB,_.q3);var $9$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r($9$,_.q3);var Vsz=_.$S($9$);var zT$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(zT$,_.q3);var bgH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(bgH,_.q3);_.w=bgH.prototype;_.w.getHeader=function(){return _.sf(this,rR,1)};
_.w.setHeader=function(G){return _.ba(this,1,G)};
_.w.hasHeader=function(){return _.RD(this,rR,1)};
_.w.getCompletionUrl=function(){return _.KX(this,6)};
_.w.getDeviceId=function(){return _.KX(this,11)};var VAU=new HA("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",bgH,$9$,function(G){return G.serialize()},Vsz);var vA$=new Set(["SAPISIDHASH","APISIDHASH"]);var oAN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(oAN,_.q3);oAN.prototype.getMessage=function(){return _.KX(this,2)};
var MAB=_.$S(oAN);var Yg$=function(G,B){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=G.nodeReadableStream;this.grpcResponseDeserializeFn=B;this.xhr=G.xhr;this.xhrNodeReadableStream&&pH$(this)},fWB=function(G,B){var F=new AQ2;
_.H1(G.xhr,"complete",function(){if(G.xhr.isSuccess()){var D=G.xhr.getResponseText();var u;if(u=B)u=G.xhr,u.JSC$10106_xhr_&&u.isComplete()?(u=u.JSC$10106_xhr_.getResponseHeader("Content-Type"),u=u===null?void 0:u):u=void 0,u=u==="text/plain";if(u){if(!atob)throw Error("dk");D=atob(D)}try{var R=G.grpcResponseDeserializeFn(D)}catch(y){d9N(G,twB(new _.XW(13,"Error when deserializing response data; error: "+y+(", response: "+D)),F));return}D=_.fAQ(G.xhr.getStatus());JQZ(G,cQD(G));D===0?TY2(G,R):d9N(G,
twB(new _.XW(D,"Xhr succeeded but the status code is not 200"),F))}else{D=G.xhr.getResponseText();R=cQD(G);if(D){var N=IWZ(G,D);D=N.code;u=N.details;N=N.metadata}else D=2,u="Rpc failed due to xhr error. uri: "+String(G.xhr.JSC$10106_lastUri_)+", error code: "+(G.xhr.JSC$10106_lastErrorCode_+", error: ")+G.xhr.getLastError(),N=R;JQZ(G,R);d9N(G,twB(new _.XW(D,u,N),F))}})},pH$=function(G){G.xhrNodeReadableStream.on("data",function(B){if("1"in B){var F=B["1"];
try{var D=G.grpcResponseDeserializeFn(F)}catch(u){d9N(G,new _.XW(13,"Error when deserializing response data; error: "+u+(", response: "+F)))}D&&TY2(G,D)}if("2"in B)for(B=IWZ(G,B["2"]),F=0;F<G.onStatusCallbacks.length;F++)G.onStatusCallbacks[F](B)});
G.xhrNodeReadableStream.on("end",function(){JQZ(G,cQD(G));for(var B=0;B<G.onEndCallbacks.length;B++)G.onEndCallbacks[B]()});
G.xhrNodeReadableStream.on("error",function(){if(G.onErrorCallbacks.length!==0){var B=G.xhr.JSC$10106_lastErrorCode_;B!==0||G.xhr.isSuccess()||(B=6);var F=-1;switch(B){case 0:var D=2;break;case 7:D=10;break;case 8:D=4;break;case 6:F=G.xhr.getStatus();D=_.fAQ(F);break;default:D=14}JQZ(G,cQD(G));B=_.tRL(B)+", error: "+G.xhr.getLastError();F!==-1&&(B+=", http status code: "+F);d9N(G,new _.XW(D,B))}})},cQD=function(G){var B={},F=RYA(G.xhr);
Object.keys(F).forEach(function(D){B[D]=F[D]});
return B},IWZ=function(G,B){var F=2,D={};
try{var u=MAB(B);F=_.AM(u,1);var R=u.getMessage();_.pT(u,mp$,3,_.Yk()).length&&(D["grpc-web-status-details-bin"]=B)}catch(N){G.xhr&&G.xhr.getStatus()===404?(F=5,R="Not Found: "+String(G.xhr.JSC$10106_lastUri_)):(F=14,R="Unable to parse RpcStatus: "+N)}return{code:F,details:R,metadata:D}};
Yg$.prototype.on=function(G,B){G==="data"?this.onDataCallbacks.push(B):G==="metadata"?this.onMetadataCallbacks.push(B):G==="status"?this.onStatusCallbacks.push(B):G==="end"?this.onEndCallbacks.push(B):G==="error"&&this.onErrorCallbacks.push(B);return this};
var tAz=function(G,B){B=G.indexOf(B);B>-1&&G.splice(B,1)};
Yg$.prototype.removeListener=function(G,B){G==="data"?tAz(this.onDataCallbacks,B):G==="metadata"?tAz(this.onMetadataCallbacks,B):G==="status"?tAz(this.onStatusCallbacks,B):G==="end"?tAz(this.onEndCallbacks,B):G==="error"&&tAz(this.onErrorCallbacks,B);return this};
Yg$.prototype.cancel=function(){this.xhr.abort()};
var TY2=function(G,B){for(var F=0;F<G.onDataCallbacks.length;F++)G.onDataCallbacks[F](B)},JQZ=function(G,B){for(var F=0;F<G.onMetadataCallbacks.length;F++)G.onMetadataCallbacks[F](B)},d9N=function(G,B){for(var F=0;F<G.onErrorCallbacks.length;F++)G.onErrorCallbacks[F](B)},AQ2=function(){var G=Error.call(this);
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(AQ2,Error);var ZgB=function(G){this.JSC$19595_worker_=G.worker||null;this.JSC$19595_streamBinaryChunks_=G.streamBinaryChunks||!1;this.JSC$19595_credentialsMode_=void 0};
_.IC(ZgB,_.ZHs);ZgB.prototype.createInstance=function(){var G=new zv(this.JSC$19595_worker_,this.JSC$19595_streamBinaryChunks_);this.JSC$19595_credentialsMode_&&G.setCredentialsMode(this.JSC$19595_credentialsMode_);return G};
ZgB.prototype.setCredentialsMode=function(G){this.JSC$19595_credentialsMode_=G};
var zv=function(G,B){_.W1.call(this);this.JSC$19599_worker_=G;this.JSC$19599_streamBinaryChunks_=B;this.JSC$19599_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19599_responseHeaders_=null;this.JSC$19599_method_="GET";this.JSC$19599_url_="";this.inProgress_=!1;this.JSC$19599_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.IC(zv,_.W1);zv.prototype.open=function(G,B){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19599_method_=G;this.JSC$19599_url_=B;this.readyState=1;gAH(this)};
zv.prototype.send=function(G){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var B={headers:this.requestHeaders_,method:this.JSC$19599_method_,credentials:this.JSC$19599_credentialsMode_,cache:void 0,signal:this.abortController_.signal};G&&(B.body=G);(this.JSC$19599_worker_||_.Fz).fetch(new Request(this.JSC$19599_url_,B)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
zv.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,SgD(this));this.readyState=0};
zv.prototype.handleResponse_=function(G){if(this.inProgress_&&(this.fetchResponse_=G,this.JSC$19599_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19599_responseHeaders_=G.headers,this.readyState=2,gAH(this)),this.inProgress_&&(this.readyState=3,gAH(this),this.inProgress_)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Fz.ReadableStream!==
"undefined"&&"body"in G){this.currentReader_=G.body.getReader();if(this.JSC$19599_streamBinaryChunks_){if(this.responseType)throw Error("hk");this.response=[]}else this.response=this.responseText="",this.JSC$19599_textDecoder_=new TextDecoder;sc$(this)}else G.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var sc$=function(G){G.currentReader_.read().then(G.handleDataFromStream_.bind(G)).catch(G.handleSendFailure_.bind(G))};
zv.prototype.handleDataFromStream_=function(G){if(this.inProgress_){if(this.JSC$19599_streamBinaryChunks_&&G.value)this.response.push(G.value);else if(!this.JSC$19599_streamBinaryChunks_){var B=G.value?G.value:new Uint8Array(0);if(B=this.JSC$19599_textDecoder_.decode(B,{stream:!G.done}))this.response=this.responseText+=B}G.done?SgD(this):gAH(this);this.readyState==3&&sc$(this)}};
zv.prototype.handleResponseText_=function(G){this.inProgress_&&(this.response=this.responseText=G,SgD(this))};
zv.prototype.handleResponseArrayBuffer_=function(G){this.inProgress_&&(this.response=G,SgD(this))};
zv.prototype.handleSendFailure_=function(){this.inProgress_&&SgD(this)};
var SgD=function(G){G.readyState=4;G.fetchResponse_=null;G.currentReader_=null;G.JSC$19599_textDecoder_=null;gAH(G)};
zv.prototype.setRequestHeader=function(G,B){this.requestHeaders_.append(G,B)};
zv.prototype.getResponseHeader=function(G){return this.JSC$19599_responseHeaders_?this.JSC$19599_responseHeaders_.get(G.toLowerCase())||"":""};
zv.prototype.getAllResponseHeaders=function(){if(!this.JSC$19599_responseHeaders_)return"";for(var G=[],B=this.JSC$19599_responseHeaders_.entries(),F=B.next();!F.done;)F=F.value,G.push(F[0]+": "+F[1]),F=B.next();return G.join("\r\n")};
zv.prototype.setCredentialsMode=function(G){this.JSC$19599_credentialsMode_=G};
var gAH=function(G){G.onreadystatechange&&G.onreadystatechange.call(G)};
Object.defineProperty(zv.prototype,"withCredentials",{get:function(){return this.JSC$19599_credentialsMode_==="include"},
set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});var x9$=function(G){var B="";_.UK.forEach(G,function(F,D){B+=D;B+=":";B+=F;B+="\r\n"});
return B},PEN=function(G,B,F){if(_.UK.isEmpty(F))return G;
F=x9$(F);if(typeof G==="string")return _.G2(G,_.S5(B),F);_.A7(G,B,F);return G};ZJH.prototype.isInputValid=function(){return this.isInputValid_};
ZJH.prototype.decode=function(G){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19605_streamPos_+"`stream already broken`"+G);this.leftoverInput_+=G;G=Math.floor(this.leftoverInput_.length/4);if(G==0)return null;try{var B=_.TU8(this.leftoverInput_.slice(0,G*4))}catch(F){throw B=this.leftoverInput_,G=F.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19605_streamPos_+"`"+G+"`"+B);}this.JSC$19605_streamPos_+=G*4;this.leftoverInput_=this.leftoverInput_.slice(G*4);return B};g92.prototype.isInputValid=function(){return this.state_!=3};
var GVH=function(G,B,F,D){G.state_=3;G.errorMessage_="The stream is broken @"+G.JSC$19608_streamPos_+"/"+F+". Error: "+D+". With input:\n"+B;throw Error(G.errorMessage_);};
g92.prototype.acceptsBinaryInput=function(){return!0};
g92.prototype.parse=function(G){function B(U){U&128&&GVH(R,N,y,"invalid tag");(U&7)!=2&&GVH(R,N,y,"invalid wire type");R.tag_=U>>>3;R.tag_!=1&&R.tag_!=2&&R.tag_!=15&&GVH(R,N,y,"unexpected tag");R.state_=1;R.length_=0;R.countLengthBytes_=0}
function F(U){R.countLengthBytes_++;R.countLengthBytes_==5&&U&240&&GVH(R,N,y,"message length too long");R.length_|=(U&127)<<(R.countLengthBytes_-1)*7;U&128||(R.state_=2,R.countMessageBytes_=0,typeof Uint8Array!=="undefined"?R.messageBuffer_=new Uint8Array(R.length_):R.messageBuffer_=Array(R.length_),R.length_==0&&u())}
function D(U){R.messageBuffer_[R.countMessageBytes_++]=U;R.countMessageBytes_==R.length_&&u()}
function u(){if(R.tag_<15){var U={};U[R.tag_]=R.messageBuffer_;R.result_.push(U)}R.state_=0}
for(var R=this,N=G instanceof Array?G:new Uint8Array(G),y=0;y<N.length;){switch(R.state_){case 3:GVH(R,N,y,"stream already broken");break;case 0:B(N[y]);break;case 1:F(N[y]);break;case 2:D(N[y]);break;default:throw Error("jk`"+R.state_);}R.JSC$19608_streamPos_++;y++}G=R.result_;R.result_=[];return G.length>0?G:null};var xDS=function(){this.errorMessage_=null;this.JSC$19611_streamPos_=0;this.base64Decoder_=new ZJH;this.pbParser_=new g92};
xDS.prototype.isInputValid=function(){return this.errorMessage_===null};
var BrD=function(G,B,F){G.errorMessage_="The stream is broken @"+G.JSC$19611_streamPos_+". Error: "+F+". With input:\n"+B;throw Error(G.errorMessage_);};
xDS.prototype.acceptsBinaryInput=function(){return!1};
xDS.prototype.parse=function(G){this.errorMessage_!==null&&BrD(this,G,"stream already broken");var B=null;try{var F=this.base64Decoder_.decode(G);B=F===null?null:this.pbParser_.parse(F)}catch(D){BrD(this,G,D.message)}this.JSC$19611_streamPos_+=G.length;return B};var s9z=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19614_streamPos_=0;this.result_=[];this.statusParsed_=!1};
s9z.prototype.isInputValid=function(){return this.errorMessage_===null};
s9z.prototype.acceptsBinaryInput=function(){return!1};
s9z.prototype.parse=function(G){function B(U){R.state_=6;R.errorMessage_="The stream is broken @"+R.JSC$19614_streamPos_+"/"+N+". Error: "+U+". With input:\n";throw Error(R.errorMessage_);}
function F(){R.jsonStreamParser_=new _.yz({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function D(U){if(U)for(var q=0;q<U.length;q++){var h={};h[1]=U[q];R.result_.push(h)}}
function u(U){if(U){(R.statusParsed_||U.length>1)&&B("extra status: "+U);R.statusParsed_=!0;var q={};q[2]=U[0];R.result_.push(q)}}
for(var R=this,N=0;N<G.length;){var y;if(y=R.state_!==2){a:{for(;N<G.length;){if(!_.Mp(G[N])){y=!0;break a}N++;R.JSC$19614_streamPos_++}y=!1}y=!y}if(y)return null;switch(R.state_){case 6:B("stream already broken");break;case 0:G[N]==="["?(R.state_=1,N++,R.JSC$19614_streamPos_++):B("unexpected input token");break;case 1:G[N]==="["?(R.state_=2,F()):G[N]===","||G.slice(N,N+5)=="null,"?R.state_=3:G[N]==="]"?(R.state_=5,N++,R.JSC$19614_streamPos_++):B("unexpected input token");break;case 2:y=R.jsonStreamParser_.parse(G.substring(N));
D(y);R.jsonStreamParser_.done()?(R.state_=3,y=R.jsonStreamParser_.JSC$11797_buffer_,R.JSC$19614_streamPos_+=G.length-N-y.length,G=y,N=0):(R.JSC$19614_streamPos_+=G.length-N,N=G.length);break;case 3:G[N]===","||G.slice(N,N+5)=="null,"?(R.state_=4,F(),R.jsonStreamParser_.parse("["),N+=G[N]===","?1:5,R.JSC$19614_streamPos_++):G[N]==="]"&&(R.state_=5,N++,R.JSC$19614_streamPos_++);break;case 4:y=R.jsonStreamParser_.parse(G.substring(N));u(y);R.jsonStreamParser_.done()?(R.state_=5,y=R.jsonStreamParser_.JSC$11797_buffer_,
R.JSC$19614_streamPos_+=G.length-N-y.length,G=y,N=0):(R.JSC$19614_streamPos_+=G.length-N,N=G.length);break;case 5:B("extra input after stream end")}}return R.result_.length>0?(G=R.result_,R.result_=[],G):null};var iVD=function(G){this.JSC$19617_xhr_=G;this.JSC$19617_parser_=null;this.status_=this.JSC$19617_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19617_textDecoder_=null;this.JSC$19617_eventHandler_=new _.Cn(this);this.JSC$19617_eventHandler_.listen(this.JSC$19617_xhr_,"readystatechange",this.JSC$19619_readyStateChangeHandler_)},bq=function(G,B){G.status_!=B&&(G.status_=B,G.statusHandler_&&G.statusHandler_())},F9Q=function(G){G.JSC$19617_eventHandler_.removeAll();
if(G.JSC$19617_xhr_){var B=G.JSC$19617_xhr_;G.JSC$19617_xhr_=null;B.abort();B.dispose()}};
iVD.prototype.getStatus=function(){return this.status_};
iVD.prototype.JSC$19619_readyStateChangeHandler_=function(G){G=G.target;try{if(G==this.JSC$19617_xhr_)a:{var B=_.LG(this.JSC$19617_xhr_),F=this.JSC$19617_xhr_.JSC$10106_lastErrorCode_,D=this.JSC$19617_xhr_.getStatus(),u=this.JSC$19617_xhr_.getResponseText();G=[];if(this.JSC$19617_xhr_.getResponse()instanceof Array){var R=this.JSC$19617_xhr_.getResponse();R.length>0&&R[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,G=R)}if(!(B<3||B==3&&!u&&G.length==0))if(D=D==200||D==206,B==4&&(F==8?
bq(this,7):F==7?bq(this,8):D||bq(this,3)),this.JSC$19617_parser_||(this.JSC$19617_parser_=PoD(this.JSC$19617_xhr_),this.JSC$19617_parser_==null&&bq(this,5)),this.status_>2)F9Q(this);else{if(G.length>this.JSC$19617_pos_){var N=G.length;F=[];try{if(this.JSC$19617_parser_.acceptsBinaryInput())for(var y=0;y<N;y++){var U=this.JSC$19617_parser_.parse(Array.from(G[y]));U&&(F=F.concat(U))}else{U="";if(!this.JSC$19617_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19617_textDecoder_=
new TextDecoder}for(y=0;y<N;y++)U+=this.JSC$19617_textDecoder_.decode(G[y],{stream:B==4&&y==N-1});F=this.JSC$19617_parser_.parse(U)}G.splice(0,N);F&&this.dataHandler_(F)}catch(h){bq(this,5);F9Q(this);break a}}else if(u.length>this.JSC$19617_pos_){y=u.slice(this.JSC$19617_pos_);this.JSC$19617_pos_=u.length;try{var q=this.JSC$19617_parser_.parse(y);q!=null&&this.dataHandler_&&this.dataHandler_(q)}catch(h){bq(this,5);F9Q(this);break a}}B==4?(u.length!=0||this.hasStreamingResponseData_?bq(this,2):bq(this,
4),F9Q(this)):bq(this,1)}}}catch(h){bq(this,6),F9Q(this)}};var D_A=function(G){G=this.xhrReader_=G;var B=(0,_.R_)(this.onData_,this);G.dataHandler_=B;G=this.xhrReader_;B=(0,_.R_)(this.onStatusChange_,this);G.statusHandler_=B;this.JSC$19621_callbackMap_={};this.callbackOnceMap_={}};
_.w=D_A.prototype;_.w.on=function(G,B){var F=this.JSC$19621_callbackMap_[G];F||(F=[],this.JSC$19621_callbackMap_[G]=F);F.push(B);return this};
_.w.addListener=function(G,B){this.on(G,B);return this};
_.w.removeListener=function(G,B){var F=this.JSC$19621_callbackMap_[G];F&&_.dU(F,B);(G=this.callbackOnceMap_[G])&&_.dU(G,B);return this};
_.w.once=function(G,B){var F=this.callbackOnceMap_[G];F||(F=[],this.callbackOnceMap_[G]=F);F.push(B);return this};
_.w.onData_=function(G){var B=this.JSC$19621_callbackMap_.data;B&&uqN(G,B);(B=this.callbackOnceMap_.data)&&uqN(G,B);this.callbackOnceMap_.data=[]};
var uqN=function(G,B){for(var F={},D=0;D<G.length;F={message$jscomp$1008:void 0},D++)F.message$jscomp$1008=G[D],B.forEach(function(u){return function(R){try{R(u.message$jscomp$1008)}catch(N){}}}(F))};
D_A.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Rx$(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Rx$(this,"error");break;case 8:Rx$(this,"close");break;case 2:Rx$(this,"end")}};
var Rx$=function(G,B){var F=G.JSC$19621_callbackMap_[B];F&&F.forEach(function(D){try{D()}catch(u){}});
(F=G.callbackOnceMap_[B])&&F.forEach(function(D){D()});
G.callbackOnceMap_[B]=[]};var wRB=function(){var G={format:"jspb"};G=G===void 0?{}:G;this.suppressCorsPreflight=G.suppressCorsPreflight||_.Yf("suppressCorsPreflight",G)||!1;this.withCredentials=G.withCredentials||_.Yf("withCredentials",G)||!1;this.streamInterceptors=G.streamInterceptors||[];this.unaryInterceptors=G.unaryInterceptors||[];this.workerScope=G.workerScope;this.chunkedServerStreaming=G.useFetchDownloadStreams||!1},y9N=function(G,B,F,D,u,R){R=R===void 0?{}:R;
var N=B.substring(0,B.length-u.name.length),y,U=(y=R)==null?void 0:y.signal;return C6Q(function(q){return new Promise(function(h,K){if(U==null?0:U.aborted){var a=new _.XW(1,"Aborted");a.cause=U.reason;K(a)}else{var m={},L=NrD(G,q,N);L.on("error",function(W){return void K(W)});
L.on("metadata",function(W){m=W});
L.on("data",function(W){var e=m;e=e===void 0?{}:e;h(new EAz(W,e))});
U&&U.addEventListener("abort",function(){L.cancel();var W=new _.XW(1,"Aborted");W.cause=U.reason;K(W)})}})},G.unaryInterceptors).call(G,hTU(u,F,D)).then(function(q){return q.responseMessage})},nZD=function(G,B,F,D,u,R){R=R===void 0?{}:R;
return y9N(G,B,F,D,u,R)};
wRB.prototype.serverStreaming=function(G,B,F,D){var u=this,R=G.substring(0,G.length-D.name.length);return lx$(function(N){var y=N.methodDescriptor,U=N.getMetadata(),q=U_G(u,!1);U=qsQ(u,U,q,R+y.getName());var h=EZ$(q,y.responseDeserializeFn,!0);N=y.requestSerializeFn(N.requestMessage);q.send(U,"POST",N);return h},this.streamInterceptors).call(this,hTU(D,B,F))};
var NrD=function(G,B,F){var D=B.methodDescriptor,u=B.getMetadata(),R=U_G(G,!0);G=qsQ(G,u,R,F+D.getName());F=EZ$(R,D.responseDeserializeFn,!1);fWB(F,u["X-Goog-Encode-Response-If-Executable"]==="base64");B=D.requestSerializeFn(B.requestMessage);R.send(G,"POST",B);return F},U_G=function(G,B){B=G.chunkedServerStreaming&&!B;
return G.workerScope||B?new _.jt(new ZgB({worker:G.workerScope,streamBinaryChunks:B})):new _.jt},qsQ=function(G,B,F,D){B["Content-Type"]="application/json+protobuf";
B["X-User-Agent"]="grpc-web-javascript/0.1";var u=B.Authorization;if(u&&vA$.has(u.split(" ")[0])||G.withCredentials)F.JSC$10106_withCredentials_=!0;if(G.suppressCorsPreflight)D=PEN(D,"$httpHeaders",B);else for(G=_.C(Object.keys(B)),u=G.next();!u.done;u=G.next())u=u.value,F.headers.set(u,B[u]);return D},EZ$=function(G,B,F){if(F){F=new iVD(G);
var D=new D_A(F)}return new Yg$({xhr:G,nodeReadableStream:D},B)},lx$=function(G,B){return B.reduce(function(F,D){return function(u){return D.intercept(u,F)}},G)},C6Q=function(G,B){return B.reduce(function(F,D){return function(u){return D.intercept(u,F)}},G)};var hxA=function(G){this.client_=new wRB;this.hostname_=G==void 0?G:G.replace(/\/+$/,"")};
_.w=hxA.prototype;_.w.JSC$19639_depositGoogleCredential=function(G,B,F){return nZD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",G,B||{},XHA,F)};
_.w.deleteLink=function(G,B,F){return nZD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",G,B||{},aW$,F)};
_.w.JSC$19639_finishOAuth=function(G,B,F){return nZD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",G,B||{},LiQ,F)};
_.w.getLink=function(G,B,F){return nZD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",G,B||{},rQQ,F)};
_.w.startLinkingSession=function(G,B,F){return nZD(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",G,B||{},VAU,F)};var K9$=[0,_.pX,1,ECG,[0,_.JR,[0,_.AR,-1]],[0,qVS],[0,_.tR,-1],[0,qVS]];var ax$=function(){this.storage=new Map},XRU=function(G,B,F,D,u){if(!G.storage.has(B))return null;
G=_.C(G.storage.get(B));for(B=G.next();!B.done;B=G.next())if(B=B.value,!u||B.linkName===u)if(F&&B.scopes&&m_2(B.scopes,F)||D&&B.capabilities&&m_2(B.capabilities,D))return B;return null},Q1A=function(G,B,F){if(!F)G.storage.delete(B);
else if(G.storage.has(B)){var D=G.storage.get(B).filter(function(u){return u.linkName!==F});
D.length>0?G.storage.set(B,D):G.storage.delete(B)}},m_2=function(G,B){B=_.C(B);
for(var F=B.next();!F.done;F=B.next())if(!G.has(F.value))return!1;return!0};var j12=function(){var G=_.v5("LINK_GAL_DOMAIN");this.alsDomain1p=_.v5("LINK_GAL_DOMAIN");this.alsDomain3p=G;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},L9G=function(G,B){G.apiKey=B;
return G};
j12.prototype.build=function(){var G={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");G.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");G.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(G.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)G.apiKey=
this.apiKey,G.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");G.oauthToken=this.oauthToken;G.alsDomain=this.alsDomain3p}G.clientXd3=this.clientXd3;G.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(G.authUser=this.authUser);this.bucket!==void 0&&(G.bucket=this.bucket);this.completionUrl!==void 0&&(G.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(G.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(G.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(G.locale=this.locale);this.localStorage!==void 0&&(G.localStorage=this.localStorage);G.loggerType=this.loggerType;G.clientEnvironment=this.clientEnvironment;G.colorScheme=this.colorScheme;G.showCloseOption=this.showCloseOption;return G};var ij=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ij,_.q3);var r9U=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(r9U,_.q3);var W9S=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(W9S,_.q3);var Dj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Dj,_.q3);var HVG=function(G){return _.aD(G,1)};var kVD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(kVD,_.q3);var Rc2=_.$S(kVD),Fl=[1,2,3,4,5];var ip$=function(G){try{return Rc2(G)}catch(B){return null}},OVG=function(){},FaB=function(G,B){switch(_.NV(B,Fl)){case 4:return(B=_.Q1(B,W9S,4,Fl))&&G.logStateTransition(_.aD(B,1)),!0;
case 5:return(B=_.Q1(B,r9U,5,Fl))&&G.logInternalEvent(_.aD(B,1)),!0}return!1},wm$=function(G){switch(G){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.BS(G)}};var GB$=function(G,B){var F=this;this.validator=G;this.messageListener=B;this.dismissCallback=function(){exG(F,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19668_receiveMessage=function(D){D.type==="message"&&(D=D.event_,D!==null&&(new URL(F.iframe.src)).origin===D.origin&&F.validator(D.data,D.origin)&&!F.messageListener(D.data)&&(F.JSC$19668_resolveCb!==void 0&&F.JSC$19668_resolveCb(D.data),$_B(F)))}},uu$=function(G,B,F){G.uiHandler!==void 0&&exG(G,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(D,u){G.JSC$19668_resolveCb=D;G.JSC$19668_rejectCb=u;G.iframe=document.createElement("iframe");_.u5(G.iframe,B);G.uiHandler=F.displayContent(G.iframe,G.dismissCallback);_.H1(window,"message",G.JSC$19668_receiveMessage,!1,G)})},exG=function(G,B){G.JSC$19668_rejectCb!==void 0&&G.JSC$19668_rejectCb(B);
$_B(G)},$_B=function(G){G.uiHandler!==void 0&&G.uiHandler.hideContent();
_.qX(window,"message",G.JSC$19668_receiveMessage,!1,G);G.JSC$19668_resolveCb=void 0;G.JSC$19668_rejectCb=void 0;G.uiHandler=void 0;G.iframe=void 0};var zxU=function(G){if(G===2){var B;G=((B=window)==null?0:B.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return G},DOH=function(G){G=zxU(G);
switch(G){case 0:return"light";case 1:return"dark";default:_.BS(G)}};var BKz=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),bVH=function(G,B){this.JSC$19680_linkingSession=G;this.noticeConfig=B;this.displayInfoMap=new Map;var F=new Map;if(_.RD(this.JSC$19680_linkingSession,kGD,7))for(G=_.sf(this.JSC$19680_linkingSession,kGD,7),G=_.pT(G,HgS,1,_.Yk()),G=_.C(G),B=G.next();!B.done;B=G.next())B=B.value,F.set(_.aD(B,1),_.CXz(_.sf(B,_.yHU,3)));if(F.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){B=this.noticeConfig.enabledDataUsageNoticeUis;G=B.has(0)?F.get(1):void 0;B=B.has(1)?F.get(2):void 0;F=G!==void 0&&B!==void 0?F.get(3):void 0;var D=this.noticeConfig.nestedOrigins;var u=new kVD;var R=new ij;u=_.VC(u,2,Fl,R);R=new kVD;var N=new ij;R=_.VC(R,3,Fl,N);N=[];G!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:G,lastEvent:u,nestedOrigins:D}]),N.push({trustedUrl:G,lastEvent:u,nestedOrigins:D}));B!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:B,lastEvent:R,nestedOrigins:D}]),N.push({trustedUrl:B,lastEvent:R,nestedOrigins:D}));F!==void 0?this.displayInfoMap.set(3,[{trustedUrl:F,lastEvent:R,nestedOrigins:D}]):this.displayInfoMap.set(3,N)}};var V0Q=function(G){var B=new ax$;this.galService=G;this.galCache=B};
V0Q.prototype.getLink=function(G){var B=G.serviceId;var F=G.scopes;var D=G.capabilities;var u=G.linkName;var R=this,N;return _.n(function(y){if(D!==void 0&&F!==void 0)throw Error("pk");N=XRU(R.galCache,B,F,D,u);return N!==null?y.return(N):y.return(R.galService.getLink({serviceId:B,sessionId:Math.floor(Math.random()*2147483648),scopes:F,capabilities:D,linkName:u}).then(function(U){U=lkD(U);var q=R.galCache;q.storage.has(B)?q.storage.get(B).push(U):q.storage.set(B,[U]);return U}))})};
V0Q.prototype.deleteLink=function(G,B,F){var D=this;return _.n(function(u){Q1A(D.galCache,G,F);return u.return(D.galService.deleteLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:B,linkName:F}).then(function(){return!0}))})};var oZD=function(G,B){var F=this;this.validator=G;this.msgHandler=B;this.closedPopupTimeout=this.JSC$19702_rejectCb=this.JSC$19702_resolveCb=this.popup=null;this.JSC$19702_receiveMessage=function(D){if(D!==null&&(D=D.event_,D.source===F.popup)){var u=D.data;if(F.validator(u,D.origin)){var R;(R=F.msgHandler)!=null&&R.call(F,u)||(F.JSC$19702_resolveCb!==null&&F.JSC$19702_resolveCb(u),vZB(F))}}}};
oZD.prototype.open=function(G,B){var F=this;this.popup!==null&&M0Z(this);return new Promise(function(D,u){F.JSC$19702_resolveCb=D;F.JSC$19702_rejectCb=u;F.popup=_.wi(window,G,"",B);_.H1(window,"message",F.JSC$19702_receiveMessage,!1,F);pRN(F)})};
var M0Z=function(G,B){G.JSC$19702_rejectCb!==null&&G.JSC$19702_rejectCb(B);vZB(G)},vZB=function(G){G.closedPopupTimeout&&(G.closedPopupTimeout.cancel(),G.closedPopupTimeout=null);
G.popup&&G.popup.close();_.qX(window,"message",G.JSC$19702_receiveMessage,!1,G);G.popup=null;G.JSC$19702_resolveCb=null;G.JSC$19702_rejectCb=null},pRN=function(G){G.closedPopupTimeout=_.Jeq(100).then(function(){G.popup?G.popup.closed?YsB(G):pRN(G):M0Z(G,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},YsB=function(G){G.closedPopupTimeout=_.Jeq(100).then(function(){M0Z(G,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var A9U=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),d_B=function(G,B,F,D,u,R,N,y,U,q){var h=this;this.serviceId=G;this.sessionId=B;this.galService=F;this.oauthDetails=D;this.galLogger=u;this.interactionMode=R;this.redirectServiceUrl=N;this.consentLanguageKeys=y;this.dynamicUrlParameters=U;this.partnerConfigMinReadTimestamp=q;this.started=!1;this.JSC$19708_dataValidator=function(K,
a){var m=A9U.has(a);m||h.redirectServiceUrl===void 0||(m=h.redirectServiceUrl===a);return m?K.sentinel==="gdi":!1}};
d_B.prototype.complete=function(){var G=this,B;return _.n(function(F){if(G.interactionMode!==1)return F.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));B=LaG.getRedirectStateFromUri();return B===null?F.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):F.return(J9$(G,B))})};
d_B.prototype.start=function(){var G=this,B;return _.n(function(F){if(G.started)return F.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.KX(G.oauthDetails,1))return F.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(G.interactionMode===1)return LaG.setLocation(_.KX(G.oauthDetails,1)),F.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));G.started=!0;G.galLogger.logStateTransition(5);
B=LaG.getPostMessagePopup(G.JSC$19708_dataValidator);return F.return(B.open(_.KX(G.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(D){G.started=!1;var u=G.galLogger;if((D==null?void 0:D.error)!==void 0)throw u.logInternalEvent(59),Error("qk");if((D==null?void 0:D.redirect_state)===void 0)throw u.logInternalEvent(131),Error("rk");return J9$(G,D.redirect_state)}).catch(function(D){G.started=
!1;
return D.errorCode!==void 0?{statusCode:D.errorCode,statusMessage:D.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var J9$=function(G,B){return _.n(function(F){return F.return(c9B(G.galService,{serviceId:G.serviceId,sessionId:G.sessionId,dynamicUrlParameters:G.dynamicUrlParameters,redirectState:B,consentLanguageKeys:G.consentLanguageKeys,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp}).then(function(D){var u={statusCode:1,link:lkD(D.getLink())};q1Q(_.CX(D,3))!==void 0&&(u.callerState=q1Q(_.CX(D,3)));_.fZs(D,4,Qc$,UYD).size>0&&(u.redirectUriParams=new Map(Array.from(_.fZs(D,4,Qc$,UYD).entries()).map(function(R){var N=
_.C(R);R=N.next().value;var y=N.next().value;N=[];var U=N.concat;y=_.GX(y,1,_.eQ,_.Yk());return[R,U.call(N,_.gi(y))]})));
G.galLogger.logInternalEvent(134);return u}))})},LaG={getPostMessagePopup:function(G){return new oZD(G)},
getRedirectStateFromUri:function(){var G=_.pn(LaG.getLocation()).fragment_;return(new _.Zg(G)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(G){_.vds(window.location,_.Sz(G))},
createOAuthFlow:function(G,B){return new d_B(G.serviceId,G.sessionId,G.galService,B,G.galLogger,G.interactionMode,G.redirectServiceUrl,G.consentLanguageKeys,G.dynamicUrlParameters,G.partnerConfigMinReadTimestamp)}};var TrA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(TrA,_.q3);var IxD=_.$S(TrA);var fxD=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),t0U=function(G,B,F,D,u,R,N,y,U){var q=this;this.serviceId=G;this.sessionId=B;this.galService=F;this.gsiWebFlowDetails=D;this.colorScheme=u;this.showCloseOption=R;this.galLogger=N;this.interactionMode=y;this.redirectServiceUrl=U;this.started=!1;this.JSC$19721_dataValidator=function(h,K){var a=fxD.has(K);a||q.redirectServiceUrl===
void 0||(a=q.redirectServiceUrl===K);return a?h.sentinel==="gal":!1};
this.logEventProcessor=function(h){return h.result?(h=ip$(h.result))?FaB(q.galLogger,h):!1:!1}};
t0U.prototype.complete=function(){var G=this,B,F;return _.n(function(D){if(G.interactionMode!==1)return D.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));B=WaA.getRedirectStateFromUri();if(B===void 0)return G.galLogger.JSC$19660_logErrorEvent(131),D.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return F=ZV2(G,B),D.return(gZ$(G,F))}catch(u){return D.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
t0U.prototype.start=function(){var G=this,B;return _.n(function(F){if(G.started)return F.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.KX(G.gsiWebFlowDetails,1))return F.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(G.interactionMode===1)return WaA.setLocation(SsS(G,_.KX(G.gsiWebFlowDetails,1))),F.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
G.started=!0;B=WaA.getPostMessagePopup(G.JSC$19721_dataValidator,G.logEventProcessor);return F.return(B.open(SsS(G,_.KX(G.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(D){G.started=!1;if((D==null?void 0:D.result)===void 0)throw G.galLogger.JSC$19660_logErrorEvent(131),Error("rk");D=ZV2(G,D.result);return gZ$(G,D)}).catch(function(D){G.started=!1;
return D.errorCode!==void 0?{statusCode:D.errorCode,statusMessage:D.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var SsS=function(G,B){G=["result_channel",G.interactionMode===1?"2":"1","color_scheme",DOH(G.colorScheme),"show_close_option",G.showCloseOption];return aHQ(B,G)},gZ$=function(G,B){if(B!==null&&_.RD(B,Dj,2)){var F,D=B==null?void 0:(F=_.sf(B,Dj,2))==null?void 0:_.aD(F,2);
D&&G.galLogger.JSC$19660_logErrorEvent(wm$(D));return HVG(_.sf(B,Dj,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 G.galService.getLink({serviceId:G.serviceId,sessionId:G.sessionId,consistencyKey:_.KX(B,1)}).then(function(u){u=lkD(u);G.galLogger.logInternalEvent(134);return{statusCode:1,link:u}})},ZV2=function(G,B){B=IxD(B);
if(!_.RD(B,Dj,2)&&_.KX(B,1)==="")throw G.galLogger.JSC$19660_logErrorEvent(5),Error("sk");return B},WaA={getPostMessagePopup:function(G,B){return new oZD(G,B)},
getRedirectStateFromUri:function(){return _.Y3(_.pn(WaA.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(G){_.vds(window.location,_.Sz(G))},
createStreamlinedFlow:function(G,B){return new t0U(G.serviceId,G.sessionId,G.galService,B,G.colorScheme,G.showCloseOption,G.galLogger,G.interactionMode,G.redirectServiceUrl)}};var zcB=function(G){this.storage=(G=G?_.mm("GAL"):_.Q9s("GAL"))?new _.qS(G):null};
zcB.prototype.getSession=function(G){if(this.storage!==null)try{var B=this.storage.get("SAVED_SESSION");if(B===void 0)return null;if(B.serviceId===G)return B}catch(F){}return null};var s1$=function(){};
_.r(s1$,OVG);s1$.prototype.logStateTransition=function(){};
s1$.prototype.logInternalEvent=function(){};
s1$.prototype.JSC$19660_logErrorEvent=function(){};var x_z=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(x_z,_.q3);x_z.prototype.getCompletionUrl=function(){return _.KX(this,15)};var Vd=function(G,B,F,D,u,R){this.serviceId=G;this.environment=B;this.sessionId=F;this.colorSchemeSelected=D;this.colorThemeDisplayed=u;this.JSC$19734_transport=R;this.currentState=1};
_.r(Vd,OVG);Vd.prototype.logStateTransition=function(G){var B=P6U(this);B=_.xK(B,3,this.currentState);B=_.xK(B,1,G);this.currentState=G;G=u8$(1);this.dispatch(B,G)};
Vd.prototype.logInternalEvent=function(G){G=u8$(G);this.dispatch(P6U(this),G)};
Vd.prototype.JSC$19660_logErrorEvent=function(G){var B=P6U(this);B=_.xK(B,1,10);G=u8$(G);this.dispatch(B,G)};
var P6U=function(G){var B=new x_z;B=_.xK(B,1,G.currentState);B=_.wq(B,7,G.serviceId);var F,D;var u=((F=window)==null?0:(D=F.location)==null?0:D.href)?_.pn(window.location.href).JSC$10342_domain_:"NO_PACKAGE_NAME";F=_.wq(B,8,u);F=_.xK(F,6,G.environment);F=_.wq(F,5,"100");F=_.xK(F,11,G.colorSchemeSelected);return _.xK(F,12,G.colorThemeDisplayed)};
Vd.prototype.dispatch=function(G,B){B===void 0&&(B=new _.i1);var F=B;G=G.serialize();F=_.wq(F,8,G);_.Ez(F,12,this.sessionId);this.JSC$19734_transport.dispatch(B)};var GSA=function(G,B){this.loggerType=G;this.sessionIndex=B!=null?B:0},BBN;
GSA.prototype.create=function(G,B,F,D,u){switch(this.loggerType){case 0:return new s1$;case 1:return BBN||(BBN=(new _.ZR(555,this.sessionIndex.toString())).build()),new Vd(G,B,F,D,u,BBN);default:_.BS(this.loggerType,"unknown logger type")}};var Hp2=[6,2,3,1],pmD=new Map([[4,1],[1,6],[2,2],[3,3]]),hc$={statusCode:7,statusMessage:"Failed to create flow object"},ec$=function(G,B,F,D,u,R,N,y,U,q){this.serviceId=G;this.sessionId=B;this.config=F;this.galService=D;this.JSC$19741_linkingSession=u;this.googleScopes=R;this.callerState=N;this.consentLanguageKeys=y;this.dynamicUrlParameters=U;this.partnerConfigMinReadTimestamp=q;this.currentFlow=0;D=this.JSC$19741_linkingSession;u=new Set;_.RD(D,jFB,1)&&u.add(1);_.RD(D,eTD,2)&&_.RD(D,rVA,6)&&u.add(2);
_.RD(D,OgD,3)&&_.RD(D,rVA,6)&&u.add(3);_.RD(D,WiS,4)&&u.add(6);this.supportedFlows=u;D=F.loggerType;u=F.clientEnvironment;a:{R=F.colorScheme;switch(R){case 0:R=1;break a;case 1:R=2;break a;case 2:R=3;break a;default:_.BS(R)}R=void 0}a:{N=F.colorScheme;N=zxU(N);switch(N){case 0:N=1;break a;case 1:N=2;break a;default:_.BS(N)}N=void 0}this.galLogger=(new GSA(D,F.authUser)).create(G,u,B,R,N)},Dy2=function(G){return new Promise(function(B){var F,D,u,R,N,y,U,q,h,K;
return _.n(function(a){switch(a.nextAddress){case 1:F=kBD(G.currentFlow,G.supportedFlows),D=!1,u=new bVH(G.JSC$19741_linkingSession,G.config.dataUsageNoticeConfig);case 2:if(F===void 0){a.jumpTo(4);break}_.b5(a,5);var m=u,L=F,W=void 0;D?L===1&&(W=m.displayInfoMap.get(2)):L===2||L===3?W=m.displayInfoMap.get(1):L===1&&(W=m.displayInfoMap.get(3));R=W?W:[];N=G.consentLanguageKeys;y=_.C(R);U=y.next();case 7:if(U.done)return G.currentFlow=F,a.yield(ak$(iMG(G,N)),11);q=U.value;return a.yield(CnH(q,G.config.dataUsageNoticeConfig.uiAdapter,
G.config.colorScheme,G.galLogger),10);case 10:h=a.yieldResult;if(h.statusCode!==1)return FJA(G),B(mON({statusCode:h.statusCode,statusMessage:h.statusMessage},G.callerState)),a.return();h.consentLanguageKeys!==void 0&&(N=h.consentLanguageKeys);U=y.next();a.jumpTo(7);break;case 11:K=a.yieldResult;if(K.statusCode!==10)return K.statusCode!==6&&FJA(G),K.statusCode!==1&&G.callerState!==void 0&&(K.callerState=G.callerState),B(K),a.return();_.oY(a,6);break;case 5:_.Al(a);case 6:F=kBD(G.currentFlow,G.supportedFlows);
D=!0;a.jumpTo(2);break;case 4:FJA(G),B(mON({statusCode:12,statusMessage:"Linking failed"},G.callerState)),_.di(a)}})})},FJA=function(G){bpB(G.serviceId,G.config.localStorage);
G.currentFlow=0},o7D=function(G,B,F){G.currentFlow=B;
return XmN(iMG(G,F)).then(function(D){return D.statusCode===10&&G.config.interactionMode===1&&kBD(G.currentFlow,G.supportedFlows)!==void 0?Dy2(G):D})},iMG=function(G,B){return{flowParams:{serviceId:G.serviceId,
sessionId:G.sessionId,galService:G.galService,galLogger:G.galLogger,interactionMode:G.config.interactionMode,redirectServiceUrl:G.config.redirectServiceUrl,colorScheme:G.config.colorScheme,consentLanguageKeys:B,dynamicUrlParameters:G.dynamicUrlParameters,showCloseOption:G.config.showCloseOption,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp},currentFlow:G.currentFlow,config:G.config,session:G.JSC$19741_linkingSession,googleScopes:G.googleScopes,callerState:G.callerState}};var AV$=function(G,B){this.config=G;this.galService=B.getService();this.JSC$19754_galRepository=B.JSC$19772_galRepository};
AV$.prototype.getLink=function(G,B){return u5N(this,G,B)};
var u5N=function(G,B,F){return G.JSC$19754_galRepository.getLink({serviceId:B,scopes:void 0,capabilities:void 0,linkName:F}).then(function(D){return{statusCode:1,link:D}}).catch(function(D){return{statusCode:YjS(D.code),
statusMessage:D.message}})};
AV$.prototype.deleteLink=function(G,B){return this.JSC$19754_galRepository.deleteLink(G,this.config.accountLinkingEntryPoint,B).then(function(){return{statusCode:1}}).catch(function(F){return{statusCode:YjS(F.code),
statusMessage:F.message}})};
AV$.prototype.startLinkingSession=function(G){var B=G.serviceId;var F=G.sessionId;return $OS({serviceId:B,sessionId:F!==void 0?F:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:G.loginHint,callerState:G.callerState,consentLanguageKeys:G.consentLanguageKeys,linkName:G.linkName,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp})};var vA=function(G,B,F,D,u,R,N){this.apiKey=B;this.authUser=F;this.oauthToken=D;this.bucket=u;this.locale=R;this.galSdkEventHandler=N;if(D===void 0){if(B===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new hxA(G)};
vA.prototype.deleteLink=function(G){var B=G.serviceId;var F=G.sessionId;var D=G.accountLinkingEntryPoint;var u=G.linkName;var R=this,N;return _.n(function(y){var U=(new kt).setHeader(R.getHeader(F));var q=RAU({serviceId:B,linkName:u});U=_.ba(U,2,q);N=_.LX(U,3,D);return y.return(R.makeRequest(R.galServiceClient.deleteLink,N,[1,3],[2,4]))})};
var c9B=function(G,B){var F=B.serviceId;var D=B.sessionId;var u=B.dynamicUrlParameters;var R=B.redirectState;var N=B.consentLanguageKeys;var y=B.partnerConfigMinReadTimestamp;var U;return _.n(function(q){var h=(new ek).setHeader(G.getHeader(D,u));h=_.v0(h,2,F);U=_.v0(h,4,R);N!==void 0&&_.v0(U,5,N);y!==void 0&&_.ba(U,6,y);return q.return(G.makeRequest(G.galServiceClient.JSC$19639_finishOAuth,U,[1,3],[2,4]))})};
vA.prototype.getLink=function(G){var B=G.serviceId;var F=G.sessionId;var D=G.scopes;var u=G.capabilities;var R=G.consistencyKey;var N=G.linkName;var y=this,U;return _.n(function(q){var h=(new $t).setHeader(y.getHeader(F)),K=RAU({serviceId:B,scopes:D,capabilities:u,linkName:N});U=_.ba(h,2,K);R!==void 0&&(h=nAG(),h=_.v0(h,2,R),_.ba(U,3,h));return q.return(y.makeRequest(y.galServiceClient.getLink,U,[1,3],[2,4]))})};
var QFA=function(G,B){var F=B.serviceId;var D=B.sessionId;var u=B.googleScopes;var R=B.consistencyKey;var N;return _.n(function(y){var U=(new On).setHeader(G.getHeader(D));U=_.v0(U,2,F);var q=Array.from(u.values());U=_.D6(U,3,q,_.WS);q=nAG();q=_.v0(q,2,R);N=_.ba(U,4,q);return y.return(G.makeRequest(G.galServiceClient.JSC$19639_depositGoogleCredential,N,[1,3],[2,4]))})};
vA.prototype.startLinkingSession=function(G){var B=G.serviceId;var F=G.sessionId;var D=G.scopes;var u=G.capabilities;var R=G.loginHint;var N=G.supportedFlows;var y=G.completionUrl;var U=G.usePingPong;var q=G.twoWayLinking;var h=G.accountLinkingEntryPoint;var K=G.callerState;var a=G.consentLanguageKeys;var m=G.googleScopes;var L=G.dataUsageNoticeConfig;var W=G.linkName;var e=G.dynamicUrlParameters;var b=G.partnerConfigMinReadTimestamp;var M=this,t,T;return _.n(function(A){if(u!==void 0&&D!==void 0)throw Error("pk");
var Z=(new bgH).setHeader(M.getHeader(F,e));t=_.v0(Z,2,B);W!==void 0&&_.v0(t,14,W);if(u!==void 0){Z=t;var P=Array.from(u.values());_.D6(Z,5,P,_.WS)}else D!==void 0&&(Z=t,P=Array.from(D.values()),_.D6(Z,3,P,_.WS));y!==void 0&&_.v0(t,6,y);U!==void 0&&_.y9(t,15,U);N!==void 0&&(Z=t,P=Array.from(N.values()),_.D6(Z,4,P,_.y$));if(q!==void 0){if(q&&(!m||m.size===0))throw Error("uk");_.y9(t,8,q)}h!==void 0&&_.LX(t,9,h);R!==void 0&&_.v0(t,13,R);K!==void 0&&(Z=t,P=(new TextEncoder).encode(K),_.ua(Z,12,_.VP(P,
!1),_.by()));a!==void 0&&_.v0(t,16,a);b!==void 0&&_.ba(t,18,b);if(L!==void 0&&L.size>0||m!==void 0&&m.size>0)T=new zT$,m!==void 0&&m.size>0&&(Z=T,P=Array.from(m.values()),_.D6(Z,1,P,_.WS)),L!==void 0&&(L.has(0)&&_.PGl(T,2,_.y$,1,_.nN),L.has(1)&&_.PGl(T,2,_.y$,2,_.nN)),_.ba(t,17,T);return A.return(M.makeRequest(M.galServiceClient.startLinkingSession,t,[1],[2]))})};
vA.prototype.getMetadata=function(){var G=this,B,F;return _.n(function(D){B={};G.useFpa?(B["X-Goog-Api-Key"]=G.apiKey,B["X-Goog-AuthUser"]=G.authUser!==void 0?G.authUser.toString():"0",(F=_.fOM([]))&&(B.Authorization=F)):B.Authorization="Bearer "+G.oauthToken;G.locale&&(B["accept-language"]=G.locale);return D.return(B)})};
vA.prototype.makeRequest=function(G,B,F,D){var u=this,R;return _.n(function(N){if(N.nextAddress==1)return N.yield(u.getMetadata(),2);R=N.yieldResult;wvD(u,F);return N.return(G.bind(u.galServiceClient)(B,R).finally(function(){wvD(u,D)}))})};
var wvD=function(G,B){G.galSdkEventHandler!==void 0&&B.forEach(function(F){G.galSdkEventHandler.onEvent(F)})};
vA.prototype.getHeader=function(G,B){var F=new rR;G=_.ua(F,2,_.lG(G),0);G=_.LX(G,5,3);B=_.D6(G,8,B,_.WS);this.bucket!==void 0&&_.v0(B,1,this.bucket);return B};
var RAU=function(G){var B=G.serviceId;var F=G.scopes;var D=G.capabilities;G=G.linkName;if(D!==void 0&&F!==void 0)throw Error("pk");var u=new NYD;B=_.v0(u,1,B);D!==void 0?(F=Array.from(D.values()),_.D6(B,5,F,_.WS)):F!==void 0&&(F=Array.from(F.values()),_.D6(B,3,F,_.WS));G!==void 0&&_.v0(B,6,G);return B};var dO$=function(G){this.galService=new vA(G.alsDomain,G.apiKey,G.authUser,G.oauthToken,G.bucket,G.locale,G.galSdkEventHandler);this.JSC$19772_galRepository=new V0Q(this.galService)};
dO$.prototype.getService=function(){return this.galService};var C_Z=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(C_Z,_.q3);var NBD=function(G){var B=new C_Z;return _.xK(B,1,G)};
C_Z.prototype.setErrorMessage=function(G){return _.wq(this,2,G)};var yXB=[0,_.fX,_.Yz,_.fX];var ol=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(ol,_.q3);var nlZ=[0,[1,2,3],_.cU,[0,_.AjU,UpS,-1],_.cU,[0,lT$,-1],_.dI];var lh$=[0,_.oD,1,_.fX,_.Yz,-1,1,_.T9,_.bc,_.fX,-1,nlZ];var Uy$=[0,_.fX,[0,_.T9,_.bc,[0,_.Yz]],_.MV,[0,_.fX,-1]];var lq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(lq,_.q3);var qcQ=[0,_.Yz,_.fX,-2,_.oD,_.fX,_.oD,_.fX,-2,1,_.MV];var El2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(El2,_.q3);var hAH=[0,_.oD];var KJG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(KJG,_.q3);var ahD=[0,_.fX,Uy$,hAH,qcQ,lh$];var VtH=_.HX(KJG,ahD);var myB=[0,K9$];var dXB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(dXB,_.q3);var XvB=[0,[1,3],hdZ,_.fX,hdZ];var Ah$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(Ah$,_.q3);var QeH=[0,_.fX];var jeG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(jeG,_.q3);var Jh$=function(G){return _.Q1(G,C_Z,2,nK)},LJB=function(G){var B=new jeG;
return _.VC(B,2,nK,G)},nK=[1,
2];var rXz=[0,nK,_.cU,QeH,_.cU,yXB,_.JR,XvB,1,_.fX,myB];var WJU=[0,1,[0,[1,2,3],_.cU,[0],_.cU,[0,XVZ],_.cU,[0,K9$]]];var HMN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(HMN,_.q3);var OM$=function(G){var B=new HMN;return _.VC(B,3,kS$,G)},kS$=[2,
3];var eAS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(eAS,_.q3);var $yU=function(G,B){return _.ba(G,2,B)},zAD=function(G,B){return _.ba(G,8,B)},bM$=function(G,B){return _.ba(G,3,B)};var VjN=[0,_.fX,rXz,ahD,_.t5,[0,[5,6,7],[0,_.fX,-2],[0,_.oD,_.fX,_.Yz],[0,nlZ],[0,_.Yz,_.fX,-1,_.fc,_.fX],_.cU,[0,[0,_.oD],_.fX,-1],_.cU,[0,[3,4],_.fX,-1,_.cU,[0,[0,_.fX,_.MV]],_.cU,[0,[0,[0,[1,2,3],_.cU,[0],_.cU,[0],_.cU,[0]]]]],_.cU,[0,_.fX]],_.t5,-1,[0,kS$,_.fX,_.cU,QeH,_.cU,yXB,_.JR,XvB,[0,K9$],WJU]];var vl$=_.HX(eAS,VjN),olA=_.Oy(VjN);var MjS=function(){_.uz.call(this)};
_.r(MjS,_.uz);MjS.prototype.init=function(){};
new MjS;_.Td();var pvH=_.vP(["data-"]),YcZ=_.vP(["aria-"]),AXG=_.vP(["aria-"]),Ml=function(G,B){this.isLatencyMeasurementExperiment=G===void 0?!1:G;this.enableDialogA11yFix=B===void 0?!1:B;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.SKI(_.Fz.location.href)},ouD=function(G,B){G.onConsentPrimitiveShownCallback=B},dyH=function(G,B){return G.overriddenIframeLoadTimeout?G.overriddenIframeLoadTimeout:B!==void 0?B:5E3},ppU=function(G){if(G.prewarmPromise!==void 0)return G.prewarmPromise;
G.prewarmPromise=new Promise(function(B,F){pK(G,1);JXU(G,cXz(G,!0),TBG(G));G.iframe?G.prewarmChannel||IhU(G,G.iframe,B):F(Error("vk"))});
G.prewarmPromise.finally(function(){G.prewarmPromise=void 0});
return G.prewarmPromise};
Ml.prototype.showPrimitive=function(){var G=this;if(this.consentPromise!==void 0)return this.consentPromise;var B=Date.now();fhS(this,B);this.consentPromise=new Promise(function(F,D){pK(G,0,B);var u=G.isDarkTheme();G.isLatencyMeasurementExperiment||G.initialLoadingStrategy===1||G.initialLoadingStrategy===2||(G.loadingBar||(G.loadingBar=IkD(getComputedStyle(document.body).direction==="rtl",u),G.loadingBar.style.position="fixed",G.loadingBar.style.zIndex="15000"),document.body.appendChild(G.loadingBar));
JXU(G,cXz(G),TBG(G));G.iframe?G.channel||tjQ(G,G.iframe,F,D):(ZM$(G),D(Error("vk")))});
this.consentPromise.finally(function(){G.consentPromise=void 0});
return this.consentPromise};
var tjQ=function(G,B,F,D){var u,R;_.n(function(N){switch(N.nextAddress){case 1:pK(G,3);u=!1;setTimeout(function(){if(!u){ZM$(G);glD(G);ScN(G);var y=NBD(7).setErrorMessage("Timeout connecting to iframe");F(zAD($yU(new eAS,LJB(y)),OM$(y)))}},dyH(G,seZ(G)));
if(!G.prewarmPromise){N.jumpTo(2);break}_.b5(N,3);return N.yield(G.prewarmPromise,5);case 5:_.oY(N,2);break;case 3:_.Al(N),R=NBD(4).setErrorMessage("Error while prewarming."),F(zAD($yU(new eAS,LJB(R)),OM$(R)));case 2:G.prewarmChannel&&G.prewarmChannel.send(olA(bM$(new eAS,G.consentPrimitiveRequest))),G.channel=_.SU({destination:G.win,iframe:B,origin:xyz(G),channelName:"cpw",onEstablished:function(){u=!0;ZM$(G);G.isLatencyMeasurementExperiment||(G.JSC$19801_previousBodyOverflow=document.body.style.overflow,
G.JSC$19801_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,G.JSC$19801_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",G.enableDialogA11yFix&&window.addEventListener("blur",G.focusChangeListener));var y=G.iframe;y.style.bottom="0";y.style.position="fixed";y.style.right="0";y.style.border="none";y.style.left="0";y.style.top=
"0";y.style.zIndex="5000";y.style.pointerEvents="";y.style.visibility="";G.initialLoadingStrategy===2||G.initialLoadingStrategy===3?pK(G,4):pK(G,6);var U;(U=G.onConsentPrimitiveShownCallback)==null||U.call(G)},
onMessage:function(y){y=vl$(y.data);switch(_.aD(y,1)){case 1:glD(G);var U=fkA(_.sf(y,_.Xp,7));U&&(G.initialLoadingStrategy!==2&&G.initialLoadingStrategy!==3||pK(G,6,U),pK(G,5,U));if(U=fkA(_.sf(y,_.Xp,6)))pK(G,7,U),pK(G,8);var q,h;((q=_.sf(y,jeG,2))==null?void 0:_.NV(q,nK))!==0&&((h=_.sf(y,HMN,8))==null?void 0:_.NV(h,kS$))!==0||D(Error("wk"));F(y);break;case 2:ScN(G)}}}),_.di(N)}})},IhU=function(G,B,F){G.prewarmChannel=_.SU({destination:G.win,
iframe:B,origin:xyz(G),channelName:"pwcp",onEstablished:function(){pK(G,2);F()}})},xyz=function(G){var B=_.YS(G.src).toString();
return B&&B.indexOf("://")<0&&B.indexOf("//")!==0?G.origin:_.SKI(B)},cXz=function(G,B){B=B===void 0?!1:B;
var F,D=new Map([["origin",G.origin],["hl",(F=P_2(G))!=null?F:null]]);B&&D.set("pw","1");B=_.C([["cpr",G.consentPrimitiveRequest.serialize()]]);for(F=B.next();!F.done;F=B.next()){var u=_.C(F.value);F=u.next().value;u=u.next().value;D.set(F,u)}G.isDarkTheme()&&D.set("color_scheme","dark");return _.H7(G.src,D)},ZM$=function(G){G.isLatencyMeasurementExperiment||G.loadingBar&&document.body.removeChild(G.loadingBar)};
Ml.prototype.getSrc=function(){var G=_.Tt(this.origin),B;var F=(B=_.sf(this.consentPrimitiveRequest,El2,3))==null?void 0:_.AM(B,1);B="consent.google.com";F=F?"/u/"+encodeURIComponent(F.toString()):"";(G==null?0:G.endsWith("youtube.com"))?B="consent.youtube.com":(G=G==null?void 0:G.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(B="consent.google."+((G[1]?"co.":"")+encodeURIComponent(G[2])));return _.pe("https://"+B+"/signedin"+F+"/landing")};
var JXU=function(G,B,F){G.iframe||(G.iframe=document.createElement("iframe"),G.iframe.style.width="100%",G.iframe.style.height="100%",F!==112496729&&(G.iframe.style.colorScheme="auto"),G.isLatencyMeasurementExperiment&&(G.iframe.style.display="none"),_.u5(G.iframe,B),G.iframe.setAttribute("jsname","C5o1O"),GTU(G.iframe),document.body.appendChild(G.iframe))},GTU=function(G){G.style.bottom="-200vh";
G.style.position="fixed";G.style.right="-200vw";G.style.border="";G.style.left="";G.style.top="";G.style.zIndex="";G.style.pointerEvents="none";G.style.visibility="hidden"},glD=function(G){G.iframe&&(G.isLatencyMeasurementExperiment||(G.JSC$19801_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=G.JSC$19801_previousHtmlOverscroll),G.JSC$19801_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=G.JSC$19801_previousBodyOverscroll),G.JSC$19801_previousBodyOverflow!==
void 0&&(document.body.style.overflow=G.JSC$19801_previousBodyOverflow),G.enableDialogA11yFix&&By2(G,!1)),GTU(G.iframe))};
Ml.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(By2(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var By2=function(G,B){var F,D,u=(F=G.iframe)==null?void 0:(D=F.parentElement)==null?void 0:D.children;if(u)for(F=0;F<u.length;F++)D=u[F],D!==G.iframe&&(B?(D.hasAttribute("aria-hidden")&&_.Ex([_.LS(pvH)],D,"data-old-aria-hidden",D.getAttribute("aria-hidden")),_.Ex([_.LS(YcZ)],D,"aria-hidden","true")):(D.removeAttribute("aria-hidden"),D.hasAttribute("data-old-aria-hidden")&&(_.Ex([_.LS(AXG)],D,"aria-hidden",D.getAttribute("data-old-aria-hidden")),D.removeAttribute("data-old-aria-hidden"))))},pK=function(G,
B,F){var D;
(D=G.latencyCallback)==null||D.call(G,{latencyType:B,timestampEpochMillis:F!=null?F:Date.now()})};var i4Q=function(G,B,F){Ml.call(this,B,F===void 0?!1:F);this.consentPrimitiveRequest=G;G=P_2(this);_.Cy6(G);this.src=this.getSrc();var D;this.initialLoadingStrategy=(D=_.sf(this.consentPrimitiveRequest,lq,4))==null?void 0:_.aD(D,4)},FoG;
_.r(i4Q,Ml);var vuB=function(G){G={request:G,enableDialogA11yFix:!0};FoG||(FoG=new i4Q(G.request,G.isLatencyMeasurementExperiment||_.aD(G.request,1)===2,G.enableDialogA11yFix));return FoG},P_2=function(G){var B;
return(B=_.sf(G.consentPrimitiveRequest,lq,4))==null?void 0:_.KX(B,1)},fhS=function(G,B){if(!_.RD(G.consentPrimitiveRequest,ol,5)){var F=G.consentPrimitiveRequest,D=new ol;
_.ba(F,5,D)}var u;if((u=_.sf(G.consentPrimitiveRequest,ol,5))==null||_.SAq(u,8)==null){var R;(R=_.sf(G.consentPrimitiveRequest,ol,5))!=null&&_.Ez(R,8,B)}},TBG=function(G){var B;
return(B=_.sf(G.consentPrimitiveRequest,ol,5))==null?void 0:_.AM(B,1)};
i4Q.prototype.isDarkTheme=function(){var G;return((G=_.sf(this.consentPrimitiveRequest,lq,4))==null?void 0:_.aD(G,2))===2};
var seZ=function(G){var B;return((B=_.sf(G.consentPrimitiveRequest,lq,4))==null?void 0:_.AM(B,5))||void 0},ScN=function(G){G.channel=void 0;
G.prewarmChannel=void 0;G.iframe&&(document.body.contains(G.iframe)&&document.body.removeChild(G.iframe),G.iframe=void 0);FoG=void 0},YCA=function(G){return Ml.prototype.showPrimitive.call(G).then(function(B){return _.sf(B,jeG,2)})};for(var Yt={},DuD=(Yt[64]="ma",Yt[73]="ogb",Yt[89]="cr",Yt[21]="test",Yt[0]="unkn",Yt[137]="con",Yt[155]="hl",Yt[78]="yt",Yt[171]="lp",Yt[172]="ap",Yt[177]="amo",Yt[178]="pqe",Yt[74]="gg",Yt[1]="gm",Yt[140]="am",Yt[193]="sc",Yt),uZ$=_.C(Object.keys(DuD)),RzA=uZ$.next();!RzA.done;RzA=uZ$.next());var wdZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(wdZ,_.q3);var CY2=[0,[2,3,4],_.fX,nCA,hdZ,_.dI];var NyZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(NyZ,_.q3);var yiN=_.HX(NyZ,[0,_.tR,_.Yz,_.fX,_.Yz,_.fX,CY2]);var nRN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(nRN,_.q3);nRN.prototype.getCommand=function(){return _.aD(this,1)};
var laU=function(){var G=new nRN;return _.LX(G,1,0)};var UuD=_.Oy([0,_.tR,_.Yz,[0,_.fX,_.Yz,-1]]);var qpz=new _.y_("s"),ERU=new _.y_("t"),hz$=new _.y_("u"),KoQ=new _.y_("v"),aaG=function(G,B,F){_.T_.call(this,qpz);this.mediaKey=G;this.photoUrl=B;this.photoSource=F};
_.r(aaG,_.T_);var muz=function(){_.T_.call(this,ERU)};
_.r(muz,_.T_);var XdD=function(G){G=G===void 0?!1:G;_.T_.call(this,hz$);this.isError=G};
_.r(XdD,_.T_);var QSG=function(){_.T_.call(this,KoQ)};
_.r(QSG,_.T_);var jSS=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,H4N=function(G){if(typeof G=="string"){if(G.charAt(0)==".")return LoU(G.substr(1));if(G.charAt(0)=="["){var B=jSS.exec(G);G=G.indexOf("=")==-1?void 0:B[3];return ri$(B[1],G)}return WoD(G)}return G},LoU=function(G){return function(B){return B.getAttribute&&_.ot(B,G)}},ri$=function(G,B){return function(F){return B!==void 0?F.getAttribute&&F.getAttribute(G)==B:F.hasAttribute&&F.hasAttribute(G)}},WoD=function(G){G=G.toUpperCase();
return function(B){return(B=B.tagName)&&B.toUpperCase()==G}},kT$=function(){return!0};var Ap=function(G,B){this.JSC$19829_key_=G;this.JSC$19829_value_=B},O4z=function(G){throw Error("xk`"+G.JSC$19829_key_);
},ezA=function(G,B){return new TypeError("yk`"+B+"`"+G.JSC$19829_key_+"`"+G.JSC$19829_value_+"`"+typeof G.JSC$19829_value_)};
Ap.prototype.string=function(G){return arguments.length==0?$uD(this):zz2(this,G)};
var zz2=function(G,B){var F;return(F=b4N(G))!=null?F:B},$uD=function(G){var B=b4N(G);
B===null&&O4z(G);return B},b4N=function(G){var B=G.JSC$19829_value_;
if(B==null)return null;if(typeof B==="string")return B;throw ezA(G,"string");};
Ap.prototype.bool=function(G){if(arguments.length==0){var B=this.optionalBool();B===null&&O4z(this)}else{var F;B=(F=this.optionalBool())!=null?F:G}return B};
Ap.prototype.optionalBool=function(){var G=this.JSC$19829_value_;if(G==null)return null;if(typeof G==="boolean")return G;if(typeof G==="string"){G=G.toLowerCase();if(G==="true"||G==="1")return!0;if(G==="false"||G==="0")return!1}throw ezA(this,"boolean");};
Ap.prototype.number=function(G){if(arguments.length==0){var B=Vx$(this);B===null&&O4z(this)}else B=vRA(this,G);return B};
var vRA=function(G,B){var F;return(F=Vx$(G))!=null?F:B},Vx$=function(G){var B=G.JSC$19829_value_;
if(B==null)return null;if(typeof B==="number")return B;if(typeof B==="string"){var F=Number(B);if(!isNaN(F)&&(F!==0||B.trim().length!==0))return F}throw ezA(G,"number");};
Ap.prototype.toString=function(){return $uD(this)};
Ap.prototype.enum=function(G,B){var F=!0,D=void 0,u;for(u in G){var R=G[u];F&&(F=!1,D=typeof R==="number"?vRA(this,B):zz2(this,B));if(R==D)return D}JSON.stringify(G);return D};
Ap.prototype.array=function(G){if(arguments.length==0){var B=oRN(this);B===null&&O4z(this);return B}B=oRN(this);return B==null?G:B};
var oRN=function(G){var B=G.JSC$19829_value_;if(B==null)return null;Array.isArray(B)||(typeof B!=="string"?B=[B]:(B=B.trim(),B=B==""?[]:B.split(",").map(function(F){return F.trim()})));
return MxU(G,B)},MxU=function(G,B){var F=G.JSC$19829_key_+"[";
return Array.from(B,function(D,u){return new Ap(F+u+"]",D)})};
Ap.prototype.object=function(G){var B=this.JSC$19829_value_;if(B==null)return G===void 0&&O4z(this),G;if(typeof B==="object"&&B.constructor===Object){G={};var F=this.JSC$19829_key_+".",D;for(D in B)G[D]=new Ap(F+D,B[D]);return G}throw ezA(this,"object");};var dR=function(G){this.list_=pdA(G)},pdA=function(G){if(G instanceof dR)G=G.list_;
else if(G[0]instanceof dR){for(var B=new Set,F=0;F<G.length;F++)for(var D=_.C(G[F].list_),u=D.next();!u.done;u=D.next())B.add(u.value);G=B}return[].concat(_.gi(G))};
_.w=dR.prototype;_.w.each=function(G,B,F){((F===void 0?0:F)?ChZ:_.dn)(this.list_,G,B);return this};
_.w.size=function(){return this.list_.length};
_.w.isEmpty=function(){return this.list_.length===0};
_.w.get=function(G){return this.list_[G]||null};
_.w.el=function(){return this.list_[0]||null};
_.w.map=function(G,B){return _.qK(this.list_,G,B)};
_.w.equals=function(G){return this===G||_.sS(this.list_,G.list_)};
_.w.first=function(){return this.list_.length==0?null:new Jp(this.list_[0])};
_.w.last=function(){return this.list_.length==0?null:new Jp(this.list_[this.list_.length-1])};
_.w.find=function(G){var B=[];this.each(function(F){F=F.querySelectorAll(String(G));for(var D=0;D<F.length;D++)B.push(F[D])});
return new dR(B)};
_.w.parent=function(){var G=[];this.each(function(B){(B=B.parentElement||null)&&!_.YM(G,B)&&G.push(B)});
return new dR(G)};
_.w.children=function(){var G=[];this.each(function(B){B=_.kW(B);for(var F=0;F<B.length;F++)G.push(B[F])});
return new dR(G)};
_.w.filter=function(G){G=_.Zw(this.list_,H4N(G));return new dR(G)};
_.w.closest=function(G){var B=[],F=H4N(G),D=function(u){return _.Zn(u)&&F(u)};
this.each(function(u){(u=_.mG(u,D,!0))&&!_.YM(B,u)&&B.push(u)});
return new dR(B)};
_.w.next=function(G){return YpA(this,_.Tqs,G)};
_.w.prev=function(G){return YpA(this,aTD,G)};
var YpA=function(G,B,F){var D=[];var u=F?H4N(F):kT$;G.each(function(R){(R=B(R))&&u(R)&&D.push(R)});
return new dR(D)};
dR.prototype.setClass=function(G){return this.each(function(B){_.vp(B,G)})};
var Ai$=function(G,B){return G.each(function(F){_.b4(F,B)})},duG=function(G,B){return G.each(function(F){_.zm(F,B)})};
dR.prototype.toggleClass=function(G,B){return B===!0?Ai$(this,G):B===!1?duG(this,G):this.each(function(F){_.ot(F,G)?_.zm(F,G):_.b4(F,G)})};
dR.prototype.setText=function(G){return this.each(function(B){_.Ol(B,G)})};
var JiS=function(G){G.each(function(B){B.removeAttribute("aria-hidden")})};
dR.prototype.getStyle=function(G){if(this.list_.length>0){var B=this.list_[0],F=B.style[_.xQ(G)];return typeof F!=="undefined"?F:B.style[_.inG(B,G)]||""}};
dR.prototype.getData=function(G){if(this.list_.length===0)return new Ap(G,null);var B=mYA(this.list_[0],G);return new Ap(G,B)};
dR.prototype.focus=function(G){try{G?this.el().focus(G):this.el().focus()}catch(B){}return this};
dR.prototype.click=function(){var G=_.KT(this.el());if(G.createEvent){var B=G.createEvent("MouseEvents");B.initMouseEvent("click",!0,!0,G.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(B)}else G=G.createEventObject(),G.clientX=0,G.clientY=0,G.screenX=0,G.screenY=0,G.altKey=!1,G.ctrlKey=!1,G.shiftKey=!1,G.button=0,this.el().fireEvent("onclick",G)};
var cA=function(G,B,F,D){function u(y,U,q){var h=U;U&&U.parentNode&&(h=U.cloneNode(!0));y(h,q)}
D=D===void 0?!1:D;if(G.list_.length==1){var R=G.list_[0],N=function(y){return B(y,R)};
F instanceof dR?F.each(N,void 0,D):Array.isArray(F)?(D?ChZ:_.dn)(F,N):N(F);return G}return G.each(function(y){F instanceof dR?F.each(function(U){u(B,U,y)}):Array.isArray(F)?_.dn(F,function(U){u(B,U,y)}):u(B,F,y)})};
_.w=dR.prototype;_.w.append=function(G){return cA(this,function(B,F){B&&F.appendChild(B)},G)};
_.w.appendTo=function(G){(new dR([G])).append(this);return this};
_.w.remove=function(){return cA(this,function(G,B){_.B1(B)},null)};
_.w.empty=function(){return cA(this,function(G,B){_.rZ(B)},null)};
_.w.after=function(G,B){return cA(this,function(F,D){F&&_.Hb(F,D)},G,!(B===void 0||B))};
_.w.before=function(G){return cA(this,function(B,F){B&&_.Wb(B,F)},G)};
_.w.replaceWith=function(G){return cA(this,function(B,F){B&&_.dKL(B,F)},G)};
_.w.toggle=function(G){return this.each(function(B){_.dd(B,G)})};
_.w.show=function(){return this.toggle(!0)};
_.w.hide=function(){return this.toggle(!1)};
_.w.trigger=function(G,B,F,D){return ciQ(this,G,B,F,D)};
var ciQ=function(G,B,F,D,u){return G.each(function(R){_.OuU(_.KT(R)).triggerWizEventInternal(R,B,F,D,u)})},Jp=function(G,B){G instanceof dR&&(B=G.list_,G=null);
this.list_=pdA(G!=null?[G]:B)};
_.IC(Jp,dR);_.w=Jp.prototype;_.w.children=function(){return new dR(Array.prototype.slice.call(_.kW(this.list_[0])))};
_.w.each=function(G,B){G.call(B,this.list_[0],0);return this};
_.w.size=function(){return 1};
_.w.el=function(){return this.list_[0]};
_.w.first=function(){return this};var Tv=function(G,B){B=B===void 0?window:B;this.hostId=G;this.win=B;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19840_previousHtmlOverscroll=this.JSC$19840_previousBodyOverscroll=this.JSC$19840_previousBodyOverflow="";this.eventTarget=new _.W1;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},fa2=function(G){var B=
TyA(TyA(TyA(new IaD(78),"po"),"hppp"),"hhc");
B.authUser=Number(_.v5("SESSION_INDEX","0"));B.colorScheme=G;return B};
Tv.prototype.getOrigin=function(){return this.origin?this.origin:_.cp(_.Jh(_.d2(new _.ea,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
Tv.prototype.getTargetOrigin=function(){return _.cp(_.Jh(_.d2(new _.ea,this.scheme),this.domain),this.port)};
Tv.prototype.preloadIframe=function(G){var B=this;if(this.iframeLoadPromise===void 0){var F=document.createElement("iframe");this.iframe=F;PnZ(F,G);this.iframeLoadPromise=new Promise(function(D,u){var R=!1,N=function(y){y.stopPropagation();F.removeEventListener("error",N);F.removeEventListener("securitypolicyviolation",N);u(Error("zk",{cause:y}))};
F.addEventListener("error",N);F.addEventListener("securitypolicyviolation",N);setTimeout(function(){R||u(Error("Ak"))},3E4);
tx$(B,F,function(){R=!0;F.removeEventListener("error",N);F.removeEventListener("securitypolicyviolation",N);D()})});
Z4G(this);G=this.getTargetOrigin().toString();F.setAttribute("allow","camera "+G+"; display-capture "+G);this.parentElement.appendChild(F)}return this.iframeLoadPromise};
var sSA=function(G,B){var F,D;return _.n(function(u){if(u.nextAddress==1)return F=IkD(getComputedStyle(G.parentElement).direction==="rtl"),G.parentElement.appendChild(F),document.activeElement instanceof HTMLElement&&(G.elementToFocusAfterClose=document.activeElement),_.b5(u,2),u.yield(G.preloadIframe(B),4);if(u.nextAddress!=2){G.parentElement.removeChild(F);G.JSC$19840_previousBodyOverflow=G.parentElement.style.overflow;G.JSC$19840_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
G.JSC$19840_previousBodyOverscroll=G.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";G.parentElement.style.overscrollBehavior="contain";G.parentElement.style.overflow="hidden";var R=G.iframe;R.style.bottom="0";R.style.border="none";R.style.height="100%";R.style.left="0";R.style.position=G.iframePosition;R.style.right="0";R.style.top="0";R.style.width="100%";R.style.zIndex="2202";R.setAttribute("aria-hidden","false");R.setAttribute("aria-modal","true");
G.opened=!0;gR$(G);return _.oY(u,0)}D=_.Al(u);G.parentElement.removeChild(F);SjQ(G.isDarkTheme());Sp$(G,!1);throw Error("Bk",{cause:D});})},Sp$=function(G,B){B=B===void 0?!0:B;
G.iframe!==void 0&&(xuH(G),document.documentElement.style.overscrollBehavior=G.JSC$19840_previousHtmlOverscroll,G.parentElement.style.overscrollBehavior=G.JSC$19840_previousBodyOverscroll,G.parentElement.style.overflow=G.JSC$19840_previousBodyOverflow,G.elementToFocusAfterClose!==void 0&&(G.elementToFocusAfterClose.focus(),G.elementToFocusAfterClose=void 0),B?Z4G(G):(G.parentElement.removeChild(G.iframe),G.iframe=void 0,G.iframeLoadPromise=void 0,G.mainChannel=void 0),G.opened=!1)},xuH=function(G){G.backgroundElementsAriaHiddenIsNull&&
(JiS(G.backgroundElementsAriaHiddenIsNull),G.backgroundElementsAriaHiddenIsNull=void 0);
G.backgroundElementsAriaHiddenIsFalse&&(G.backgroundElementsAriaHiddenIsFalse.each(function(B){B.setAttribute("aria-hidden","false")}),G.backgroundElementsAriaHiddenIsFalse=void 0);
G.backgroundElementsWithoutInert&&(G.backgroundElementsWithoutInert.each(function(B){B.removeAttribute("inert")}),G.backgroundElementsWithoutInert=void 0)},gR$=function(G){G.backgroundElementsAriaHiddenIsNull=(new Jp(G.iframe.parentElement)).children().filter(function(B){return B.getAttribute("aria-hidden")===null&&B!==G.iframe});
G.backgroundElementsAriaHiddenIsNull.each(function(B){B.setAttribute("aria-hidden","true")});
G.backgroundElementsAriaHiddenIsFalse=(new Jp(G.iframe.parentElement)).children().filter(function(B){return B.getAttribute("aria-hidden")==="false"&&B!==G.iframe});
G.backgroundElementsAriaHiddenIsFalse.each(function(B){B.setAttribute("aria-hidden","true")});
G.backgroundElementsWithoutInert=(new Jp(G.iframe.parentElement)).children().filter(function(B){return!B.hasAttribute("inert")&&B!==G.iframe});
G.backgroundElementsWithoutInert.each(function(B){B.setAttribute("inert","true")})},Z4G=function(G){G=G.iframe;
G.style.bottom="-1000px";G.style.position="fixed";G.style.right="-1000px";G.style.border="";G.style.height="";G.style.left="";G.style.top="";G.style.width="";G.style.zIndex="";G.setAttribute("aria-hidden","true");G.setAttribute("aria-modal","false")};
Tv.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var IaD=function(G,B){Tv.call(this,DuD[G],B);this.options=[];this.style=""};
_.r(IaD,Tv);var PYQ=function(G){G.style="youtube";return G},GjZ=function(G,B){G.eventTarget.listen(hz$,B);
return G},BlZ=function(G,B){G.eventTarget.listen(qpz,B);
return G},TyA=function(G,B){G.options.push(B);
return G},i9G=function(G){var B=[G.getOrigin()];
G.ancestorOrigins&&B.push.apply(B,_.gi(G.ancestorOrigins));var F=new _.ea(G.win.location.href),D=G.startUrl?G.startUrl:G.options.includes("po")?"profile-picture/art":"profile-picture";B=CJ2(_.TE(G.getTargetOrigin(),D),"origin",B);G.startUrl&&_.A7(B,"startPath",G.startUrl);G.authUser>0&&_.A7(B,"authuser",G.authUser);G.pageId!==void 0&&_.A7(B,"pageId",G.pageId);_.A7(B,"hostId",G.hostId);G.jsMode!==void 0&&_.A7(B,"jsmode",G.jsMode);G.rectangleRatio!==void 0&&_.A7(B,"rectangleRatio",G.rectangleRatio);
G.options.length>0&&_.A7(B,"opts",G.options.join(","));try{for(var u=_.C(["utm_source","utm_medium","utm_campaign","utm_content"]),R=u.next();!R.done;R=u.next()){var N=R.value;_.Y3(F,N)&&_.A7(B,N,_.Y3(F,N))}var y,U=(y=G.hl)!=null?y:_.Y3(F,"hl");U!==void 0&&_.A7(B,"hl",U)}catch(q){if(!(q instanceof URIError))throw q;}G.colorScheme&&_.A7(B,"theme",G.colorScheme);G.style&&_.A7(B,"style",G.style);return B},FFH=function(G,B){G.mainChannel=_.SU({destination:G.win,
iframe:B,origin:G.getTargetOrigin().toString(),channelName:"ow",onMessage:function(F){F=yiN(F.data);if(B===G.iframe)switch(_.aD(F,1)){case 1:G.eventTarget.dispatchEvent(new XdD);Sp$(G);break;case 2:G.eventTarget.dispatchEvent(new aaG(_.KX(F,4),_.KX(F,2),_.aD(F,5),_.sf(F,wdZ,6)));break;case 0:var D;G.eventTarget.dispatchEvent(new muz(_.KX(F,2),(D=_.aD(F,3))!=null?D:0));break;case 3:G.eventTarget.dispatchEvent(new XdD(!0));Sp$(G,!1);break;case 4:G.eventTarget.dispatchEvent(new QSG)}}})},tx$=function(G,
B,F){_.SU({destination:G.win,
iframe:B,origin:_.cp(_.Jh(_.d2(new _.ea,G.scheme),G.domain),G.port).toString(),channelName:"owi",onMessage:function(D){B===G.iframe&&(F!==void 0&&F(),FFH(G,B),G.opened&&G.mainChannel.send(UuD(laU())),D.reply(),tx$(G,B))}})};
IaD.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Tv.prototype.preloadIframe.call(this,i9G(this).toString()):this.iframeLoadPromise};
IaD.prototype.openPicker=function(G){var B=this;return _.n(function(F){if(F.nextAddress==1)return B.startUrl=G?G:B.options.includes("po")?"profile-picture/art":"profile-picture",F.yield(sSA(B,i9G(B).toString()),2);if(B.mainChannel){var D=B.mainChannel,u=D.send;var R=laU();R=_.wq(R,2,B.startUrl);u.call(D,UuD(R))}_.di(F)})};var DRS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(DRS,_.q3);_.w=DRS.prototype;_.w.getSize=function(){return XU(this,1)};
_.w.setSize=function(G){return _.jU(this,1,G)};
_.w.getWidth=function(){return XU(this,12)};
_.w.getHeight=function(){return XU(this,13)};
_.w.setCenterCrop=function(G){return _.Ii(this,20,G)};
_.w.getHtml=function(){return _.qV(this,4)};
_.w.getToken=function(){return _.Pe(this,24)};
_.w.setToken=function(G){return _.wq(this,24,G)};
_.w.getBackgroundColor=function(){return XU(this,87)};
_.w.hasBackgroundColor=function(){return _.UA(_.uc(this,87))!=null};
_.w.getStoryboardLevel=function(){return XU(this,109)};uj.prototype.set=function(G,B){uEA(this,G,B,!1)};
uj.prototype.add=function(G,B){uEA(this,G,B,!0)};
var uEA=function(G,B,F,D){for(var u=0;u<B.length;u++){var R=B.charAt(u);G.childNodes_[R]||(G.childNodes_[R]=new uj);G=G.childNodes_[R]}if(D&&G.JSC$19848_value_!==void 0)throw Error("Ck`"+B);G.JSC$19848_value_=F},RjQ=function(G,B){for(var F=0;F<B.length;F++)if(G=G.childNodes_[B.charAt(F)],!G)return;
return G};
uj.prototype.get=function(G){return(G=RjQ(this,G))?G.JSC$19848_value_:void 0};
uj.prototype.getValues=function(){var G=[];wjB(this,G);return G};
var wjB=function(G,B){G.JSC$19848_value_!==void 0&&B.push(G.JSC$19848_value_);for(var F in G.childNodes_)wjB(G.childNodes_[F],B)};
uj.prototype.getKeys=function(G){var B=[];if(G){for(var F=this,D=0;D<G.length;D++){var u=G.charAt(D);if(!F.childNodes_[u])return[];F=F.childNodes_[u]}CxB(F,G,B)}else CxB(this,"",B);return B};
var CxB=function(G,B,F){G.JSC$19848_value_!==void 0&&F.push(B);for(var D in G.childNodes_)CxB(G.childNodes_[D],B+D,F)};
_.w=uj.prototype;_.w.containsKey=function(G){return this.get(G)!==void 0};
_.w.containsValue=function(G){if(this.JSC$19848_value_===G)return!0;for(var B in this.childNodes_)if(this.childNodes_[B].containsValue(G))return!0;return!1};
_.w.clear=function(){this.childNodes_={};this.JSC$19848_value_=void 0};
_.w.remove=function(G){for(var B=this,F=[],D=0;D<G.length;D++){var u=G.charAt(D);if(!B.childNodes_[u])throw Error("Dk`"+G);F.push([B,u]);B=B.childNodes_[u]}G=B.JSC$19848_value_;for(delete B.JSC$19848_value_;F.length>0;)if(D=F.pop(),B=D[0],D=D[1],B.childNodes_[D].isEmpty())delete B.childNodes_[D];else break;return G};
_.w.clone=function(){return new uj(this)};
_.w.getCount=function(){return Q3Z(this.getValues())};
_.w.isEmpty=function(){return this.JSC$19848_value_===void 0&&_.UK.isEmpty(this.childNodes_)};var D7H=function(){if(!NlD){var G=NlD=new uj,B;for(B in yWB)G.add(B,yWB[B])}},NlD,Il=function(G,B){this.types=G;
this.setters=B},yWB={a:new Il([3,
0],[function(G,B){_.Ii(G,21,B)},
function(G,B){_.jU(G,56,B)}]),
al:new Il([3],[function(G,B){_.Ii(G,74,B)}]),
b:new Il([3,0],[function(G,B){_.Ii(G,23,B)},
function(G,B){_.jU(G,38,B)}]),
ba:new Il([0],[function(G,B){_.jU(G,85,B)}]),
bc:new Il([0],[function(G,B){_.jU(G,87,B)}]),
br:new Il([0],[function(G,B){_.jU(G,86,B)}]),
c:new Il([3,0],[function(G,B){_.Ii(G,2,B)},
function(G,B){_.jU(G,39,B)}]),
cc:new Il([3],[function(G,B){_.Ii(G,51,B)}]),
ci:new Il([3],[function(G,B){_.Ii(G,32,B)}]),
ckm:new Il([3],[function(G,B){_.Ii(G,104,B)}]),
cp:new Il([0],[function(G,B){_.jU(G,92,B)}]),
cr:new Il([3],[function(G,B){_.Ii(G,108,B)}]),
cv:new Il([0],[function(G,B){_.jU(G,94,B)}]),
d:new Il([3],[function(G,B){_.Ii(G,3,B)}]),
dc:new Il([5],[function(G,B){_.wq(G,99,B)}]),
df:new Il([3],[function(G,B){_.Ii(G,80,B)}]),
dv:new Il([3],[function(G,B){_.Ii(G,90,B)}]),
e:new Il([0],[function(G,B){_.jU(G,15,B)}]),
em:new Il([0],[function(G,B){_.jU(G,107,B)}]),
f:new Il([4],[function(G,B){_.wq(G,16,B)}]),
fg:new Il([3],[function(G,B){_.Ii(G,34,B)}]),
fh:new Il([3],[function(G,B){_.Ii(G,30,B)}]),
fm:new Il([3],[function(G,B){_.Ii(G,84,B)}]),
fo:new Il([2],[function(G,B){_.PQ(G,79,_.iG(B))}]),
ft:new Il([3],[function(G,B){_.Ii(G,50,B)}]),
fv:new Il([3],[function(G,B){_.Ii(G,31,B)}]),
g:new Il([3],[function(G,B){_.Ii(G,14,B)}]),
gce:new Il([4],[function(G,B){_.wq(G,112,B)}]),
gd:new Il([3],[function(G,B){_.Ii(G,83,B)}]),
gm:new Il([3],[function(G,B){_.Ii(G,105,B)}]),
h:new Il([3,0],[function(G,B){_.Ii(G,4,B)},
function(G,B){_.jU(G,13,B)}]),
i:new Il([3],[function(G,B){_.Ii(G,22,B)}]),
ic:new Il([0],[function(G,B){_.jU(G,71,B)}]),
id:new Il([3],[function(G,B){_.Ii(G,70,B)}]),
il:new Il([3],[function(G,B){_.Ii(G,96,B)}]),
ip:new Il([3],[function(G,B){_.Ii(G,54,B)}]),
iv:new Il([0],[function(G,B){_.Ez(G,75,B)}]),
j:new Il([1],[function(G,B){B=B==null?B:lHD(B);_.PQ(G,29,B)}]),
k:new Il([3,0],[function(G,B){_.Ii(G,17,B)},
function(G,B){_.jU(G,42,B)}]),
l:new Il([0],[function(G,B){_.jU(G,44,B)}]),
lf:new Il([3],[function(G,B){_.Ii(G,65,B)}]),
lo:new Il([3],[function(G,B){_.Ii(G,97,B)}]),
m:new Il([0],[function(G,B){_.jU(G,63,B)}]),
md:new Il([3],[function(G,B){_.Ii(G,91,B)}]),
mm:new Il([4],[function(G,B){_.wq(G,81,B)}]),
mo:new Il([3],[function(G,B){_.Ii(G,73,B)}]),
mp:new Il([0],[function(G,B){_.jU(G,115,B)}]),
mv:new Il([3],[function(G,B){_.Ii(G,66,B)}]),
n:new Il([3],[function(G,B){G.setCenterCrop(B)}]),
nc:new Il([3],[function(G,B){_.Ii(G,55,B)}]),
nd:new Il([3],[function(G,B){_.Ii(G,53,B)}]),
ng:new Il([3],[function(G,B){_.Ii(G,95,B)}]),
ngm:new Il([3],[function(G,B){_.Ii(G,106,B)}]),
no:new Il([3],[function(G,B){_.Ii(G,37,B)}]),
ns:new Il([3],[function(G,B){_.Ii(G,40,B)}]),
nt0:new Il([4],[function(G,B){_.wq(G,36,B)}]),
ntm:new Il([3],[function(G,B){_.Ii(G,114,B)}]),
nu:new Il([3],[function(G,B){_.Ii(G,46,B)}]),
nw:new Il([3],[function(G,B){_.Ii(G,48,B)}]),
o:new Il([1,3],[function(G,B){B=B==null?B:lHD(B);_.PQ(G,7,B)},
function(G,B){_.Ii(G,27,B)}]),
p:new Il([3,0],[function(G,B){_.Ii(G,19,B)},
function(G,B){_.jU(G,43,B)}]),
pa:new Il([3],[function(G,B){_.Ii(G,61,B)}]),
pc:new Il([0],[function(G,B){_.jU(G,88,B)}]),
pd:new Il([3],[function(G,B){_.Ii(G,60,B)}]),
pf:new Il([3],[function(G,B){_.Ii(G,67,B)}]),
pg:new Il([3],[function(G,B){_.Ii(G,72,B)}]),
pi:new Il([2],[function(G,B){_.PQ(G,76,_.iG(B))}]),
pp:new Il([3],[function(G,B){_.Ii(G,52,B)}]),
pt:new Il([4],[function(G,B){_.wq(G,111,B)}]),
q:new Il([4],[function(G,B){_.wq(G,28,B)}]),
r:new Il([3,0],[function(G,B){_.Ii(G,6,B)},
function(G,B){_.jU(G,26,B)}]),
ra:new Il([3],[function(G,B){_.Ii(G,103,B)}]),
rf:new Il([3],[function(G,B){_.Ii(G,100,B)}]),
rg:new Il([3],[function(G,B){_.Ii(G,59,B)}]),
rh:new Il([3],[function(G,B){_.Ii(G,49,B)}]),
rj:new Il([3],[function(G,B){_.Ii(G,57,B)}]),
ro:new Il([2],[function(G,B){_.PQ(G,78,_.iG(B))}]),
rp:new Il([3],[function(G,B){_.Ii(G,58,B)}]),
rw:new Il([3],[function(G,B){_.Ii(G,35,B)}]),
rwa:new Il([3],[function(G,B){_.Ii(G,64,B)}]),
rwu:new Il([3],[function(G,B){_.Ii(G,41,B)}]),
s:new Il([3,0],[function(G,B){_.Ii(G,33,B)},
function(G,B){G.setSize(B)}]),
sb:new Il([0],[function(G,B){_.jU(G,110,B)}]),
sc:new Il([0],[function(G,B){_.jU(G,89,B)}]),
sg:new Il([3],[function(G,B){_.Ii(G,82,B)}]),
sl:new Il([0],[function(G,B){_.jU(G,109,B)}]),
sm:new Il([3],[function(G,B){_.Ii(G,93,B)}]),
t:new Il([4],[function(G,B){G.setToken(B)}]),
tm:new Il([3],[function(G,B){_.Ii(G,113,B)}]),
u:new Il([3],[function(G,B){_.Ii(G,18,B)}]),
ut:new Il([3],[function(G,B){_.Ii(G,45,B)}]),
v:new Il([0],[function(G,B){_.jU(G,62,B)}]),
vb:new Il([0],[function(G,B){_.Ez(G,68,B)}]),
vf:new Il([4],[function(G,B){_.wq(G,102,B)}]),
vl:new Il([0],[function(G,B){_.Ez(G,69,B)}]),
vm:new Il([3],[function(G,B){_.Ii(G,98,B)}]),
w:new Il([0],[function(G,B){_.jU(G,12,B)}]),
x:new Il([0],[function(G,B){_.jU(G,9,B)}]),
y:new Il([0],[function(G,B){_.jU(G,10,B)}]),
ya:new Il([2],[function(G,B){_.PQ(G,77,_.iG(B))}]),
z:new Il([0],[function(G,B){_.jU(G,11,B)}])};
D7H.prototype.parse=function(G){var B=new DRS,F=new DRS;if(G=="")G=!0;else{G=G.split("-");for(var D=!0,u=0;u<G.length;u++){var R=G[u];if(R.length==0)D=!1;else{var N=R,y=!1;var U=N;var q=N.charAt(0);q!=q.toLowerCase()&&(y=!0,U=N.charAt(0).toLowerCase()+N.substring(1));var h=NlD;for(q=1;q<=U.length;++q){var K=h,a=U.substring(0,q);if(a.length==0?K.isEmpty():!RjQ(K,a))break}U=q==1?null:(U=h.get(U.substring(0,q-1)))?{option:N.substring(0,q-1),value:N.substring(q-1),signed:y,attributes:U}:null;if(U){N=
[];y=[];q=!1;for(h=0;h<U.attributes.types.length;h++){K=U.attributes.types[h];var m=U.value;a=u;if(U.signed&&K==1)for(var L=m.length;L<12&&a<G.length-1;)m+="-"+G[a+1],L=m.length,++a;else if(K==2)for(;a<G.length-1&&G[a+1].match(/^[\d\.]/);)m+="-"+G[a+1],++a;L=U.attributes.setters[h];m=nYz(this,K)(U.option,m,B,F,L);if(m===null){q=!0;u=a;break}else N.push(K),y.push(m)}if(!q)for(U=0;U<y.length;U++)h=N[U],m=y[U],l7$(this,h)(R,m);D=D&&q}else D=!1}}G=D}return new URS(B,F,G)};
var qeH=function(G,B,F,D,u,R){u(F,B);G=G.charAt(0);R=R(G==G.toUpperCase());u(D,R)};
_.w=D7H.prototype;_.w.parseAndSetIntOption_=function(G,B,F,D,u){if(B=="")return 0;isFinite(B)&&(B=String(B));B=typeof B==="string"?/^\s*-?0x/i.test(B)?parseInt(B,16):parseInt(B,10):NaN;if(isNaN(B))return 1;qeH(G,B,F,D,u,Number);return null};
_.w.logIntParseError_=function(){};
_.w.parseAndSetFloatOption_=function(G,B,F,D,u){if(B=="")return 0;var R=Number(B);B=R==0&&_.NL(B)?NaN:R;if(isNaN(B))return 1;qeH(G,B,F,D,u,Number);return null};
_.w.logFloatParseError_=function(){};
_.w.parseAndSetBoolOption_=function(G,B,F,D,u){if(B!="")return 2;qeH(G,!0,F,D,u,Boolean);return null};
_.w.logBoolParseError_=function(){};
_.w.parseAndSetStringOption_=function(G,B,F,D,u){if(B=="")return 0;qeH(G,B,F,D,u,function(R){return R?"1":""});
return null};
_.w.logStringParseError_=function(){};
_.w.parseAndSetUint64Base64Option_=function(G,B,F,D,u){if(B=="")return 0;qeH(G,B,F,D,u,function(R){return R?1:0});
return null};
var nYz=function(G,B){switch(B){case 0:return(0,_.R_)(G.parseAndSetIntOption_,G);case 2:return(0,_.R_)(G.parseAndSetFloatOption_,G);case 3:return(0,_.R_)(G.parseAndSetBoolOption_,G);case 4:return(0,_.R_)(G.parseAndSetStringOption_,G);case 1:return(0,_.R_)(G.parseAndSetUint64Base64Option_,G);default:return function(){}}},l7$=function(G,B){switch(B){case 0:return(0,_.R_)(G.logIntParseError_,G);
case 2:return(0,_.R_)(G.logFloatParseError_,G);case 3:return(0,_.R_)(G.logBoolParseError_,G);case 4:case 1:return(0,_.R_)(G.logStringParseError_,G);default:return function(){}}},URS=function(G,B,F){this.valueProto_=G;
this.signatureFlagProto_=B;this.JSC$19860_valid_=F};
URS.prototype.isValid=function(){return this.JSC$19860_valid_};var GaQ=function(G){this.JSC$19861_parser_=null;this.JSC$19861_components_=[];this.JSC$19861_parsedOptions_=null;EYZ(this,G)},hjN=function(G){G.JSC$19861_parser_==null&&(G.JSC$19861_parser_=new D7H);
return G.JSC$19861_parser_},EYZ=function(G,B){G.JSC$19861_parsedOptions_=B?typeof B==="string"?hjN(G).parse(B):B:hjN(G).parse("")},fK=function(G,B){return G==B?!1:!0};
_.w=GaQ.prototype;_.w.JSC$19863_setCrop=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,_.qV(F,2),_.qV(B.signatureFlagProto_,2))&&_.Ii(F,2,G);return this};
_.w.JSC$19863_setCircleCrop=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,m0(F,51),m0(B.signatureFlagProto_,51))&&_.Ii(F,51,G);return this};
_.w.JSC$19863_setImageCrop=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,m0(F,32),m0(B.signatureFlagProto_,32))&&_.Ii(F,32,G);return this};
_.w.JSC$19863_setHeight=function(G){var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,F.getHeight(),B.signatureFlagProto_.getHeight())&&_.jU(F,13,G);return this};
_.w.setCenterCrop=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,_.qV(F,20),_.qV(B.signatureFlagProto_,20))&&F.setCenterCrop(G);return this};
_.w.JSC$19863_setSmartCrop=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,_.qV(F,19),_.qV(B.signatureFlagProto_,19))&&_.Ii(F,19,G);return this};
_.w.JSC$19863_setPad=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,m0(F,60),m0(B.signatureFlagProto_,60))&&_.Ii(F,60,G);return this};
_.w.JSC$19863_setSmartCropUseFace=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,_.qV(F,67),_.qV(B.signatureFlagProto_,67))&&_.Ii(F,67,G);return this};
_.w.JSC$19863_setSmartCropNoClip=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,_.qV(F,52),_.qV(B.signatureFlagProto_,52))&&_.Ii(F,52,G);return this};
_.w.setSize=function(G){var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,F.getSize(),B.signatureFlagProto_.getSize())&&F.setSize(G);return this};
_.w.setToken=function(G){G=G||void 0;var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,F.getToken(),B.signatureFlagProto_.getToken())&&F.setToken(G);return this};
_.w.JSC$19863_setWidth=function(G){var B=this.JSC$19861_parsedOptions_,F=B.valueProto_;fK(G,F.getWidth(),B.signatureFlagProto_.getWidth())&&_.jU(F,12,G);return this};
_.w.clearOptions=function(){EYZ(this,"");return this};
_.w.build=function(){this.JSC$19861_components_.length=0;var G=this.JSC$19861_parsedOptions_,B=G.valueProto_;G=G.signatureFlagProto_;tp(this,"s",B.getSize(),G.getSize());tp(this,"w",B.getWidth(),G.getWidth());Zm(this,"c",_.qV(B,2),_.qV(G,2));Zm(this,"d",_.qV(B,3),_.qV(G,3));tp(this,"h",B.getHeight(),G.getHeight());Zm(this,"s",m0(B,33),m0(G,33));Zm(this,"h",B.getHtml(),G.getHtml());Zm(this,"p",_.qV(B,19),_.qV(G,19));Zm(this,"pp",_.qV(B,52),_.qV(G,52));Zm(this,"pf",_.qV(B,67),_.qV(G,67));Zm(this,"n",
_.qV(B,20),_.qV(G,20));tp(this,"r",XU(B,26),XU(G,26));Zm(this,"r",_.qV(B,6),_.qV(G,6));Zm(this,"o",m0(B,27),m0(G,27));var F=_.U8(B,7,_.ic);gR(this,"o",F,_.U8(G,7,_.ic));F=_.U8(B,29,_.ic);gR(this,"j",F,_.U8(G,29,_.ic));tp(this,"x",XU(B,9),XU(G,9));tp(this,"y",XU(B,10),XU(G,10));tp(this,"z",XU(B,11),XU(G,11));Zm(this,"g",_.qV(B,14),_.qV(G,14));tp(this,"e",XU(B,15),XU(G,15));gR(this,"f",_.Pe(B,16),_.Pe(G,16));Zm(this,"k",m0(B,17),m0(G,17));Zm(this,"u",m0(B,18),!0);Zm(this,"ut",m0(B,45),!0);Zm(this,"i",
m0(B,22),!0);Zm(this,"a",m0(B,21),m0(G,21));Zm(this,"b",_.qV(B,23),_.qV(G,23));tp(this,"b",XU(B,38),XU(G,38));tp(this,"c",XU(B,39),XU(G,39),16,8);gR(this,"q",_.Pe(B,28),_.Pe(G,28));Zm(this,"fh",m0(B,30),m0(G,30));Zm(this,"fv",m0(B,31),m0(G,31));Zm(this,"fg",_.qV(B,34),_.qV(G,34));Zm(this,"ci",m0(B,32),m0(G,32));gR(this,"t",B.getToken(),G.getToken());gR(this,"nt0",_.Pe(B,36),_.Pe(G,36));Zm(this,"rw",_.qV(B,35),_.qV(G,35));Zm(this,"rwu",_.qV(B,41),_.qV(G,41));Zm(this,"rwa",_.qV(B,64),_.qV(G,64));Zm(this,
"nw",_.qV(B,48),_.qV(G,48));Zm(this,"rh",_.qV(B,49),_.qV(G,49));Zm(this,"no",_.qV(B,37),_.qV(G,37));Zm(this,"ns",m0(B,40),m0(G,40));tp(this,"k",XU(B,42),XU(G,42));tp(this,"p",XU(B,43),XU(G,43));tp(this,"l",XU(B,44),XU(G,44));tp(this,"v",XU(B,62),XU(G,62));Zm(this,"nu",m0(B,46),m0(G,46));Zm(this,"ft",m0(B,50),m0(G,50));Zm(this,"cc",m0(B,51),m0(G,51));Zm(this,"nd",m0(B,53),m0(G,53));Zm(this,"ip",m0(B,54),m0(G,54));Zm(this,"nc",m0(B,55),m0(G,55));tp(this,"a",XU(B,56),XU(G,56));Zm(this,"rj",m0(B,57),
m0(G,57));Zm(this,"rp",m0(B,58),m0(G,58));Zm(this,"rg",m0(B,59),m0(G,59));Zm(this,"pd",m0(B,60),m0(G,60));Zm(this,"pa",m0(B,61),m0(G,61));tp(this,"m",XU(B,63),XU(G,63));tp(this,"vb",_.lc(B,68,_.ic),_.lc(G,68,_.ic));tp(this,"vl",_.lc(B,69,_.ic),_.lc(G,69,_.ic));Zm(this,"lf",m0(B,65),m0(G,65));Zm(this,"mv",m0(B,66),m0(G,66));Zm(this,"id",m0(B,70),m0(G,70));tp(this,"ic",XU(B,71),!0);Zm(this,"pg",_.qV(B,72),_.qV(G,72));Zm(this,"mo",m0(B,73),m0(G,73));Zm(this,"al",m0(B,74),m0(G,74));tp(this,"iv",_.lc(B,
75,_.ic),_.lc(G,75,_.ic));tp(this,"pi",Qd(B,76),Qd(G,76));tp(this,"ya",Qd(B,77),Qd(G,77));tp(this,"ro",Qd(B,78),Qd(G,78));tp(this,"fo",Qd(B,79),Qd(G,79));Zm(this,"df",m0(B,80),m0(G,80));gR(this,"mm",_.Pe(B,81),_.Pe(G,81));Zm(this,"sg",m0(B,82),m0(G,82));Zm(this,"gd",m0(B,83),m0(G,83));Zm(this,"fm",m0(B,84),m0(G,84));tp(this,"ba",XU(B,85),XU(G,85));tp(this,"br",XU(B,86),XU(G,86));tp(this,"bc",B.getBackgroundColor(),G.getBackgroundColor(),16,8);tp(this,"pc",XU(B,88),XU(G,88),16,8);tp(this,"sc",XU(B,
89),XU(G,89),16,8);Zm(this,"dv",m0(B,90),m0(G,90));Zm(this,"md",m0(B,91),m0(G,91));tp(this,"cp",XU(B,92),XU(G,92));Zm(this,"sm",m0(B,93),m0(G,93));tp(this,"cv",XU(B,94),XU(G,94));Zm(this,"ng",m0(B,95),m0(G,95));Zm(this,"il",m0(B,96),m0(G,96));Zm(this,"lo",m0(B,97),m0(G,97));Zm(this,"vm",m0(B,98),m0(G,98));gR(this,"dc",_.Pe(B,99),_.Pe(G,99));Zm(this,"rf",m0(B,100),m0(G,100));gR(this,"vf",_.Pe(B,102),_.Pe(G,102));Zm(this,"ra",_.qV(B,103),_.qV(G,103));Zm(this,"ckm",m0(B,104),m0(G,104));Zm(this,"gm",
m0(B,105),m0(G,105));Zm(this,"ngm",m0(B,106),m0(G,106));tp(this,"em",XU(B,107),XU(G,107));Zm(this,"cr",m0(B,108),m0(G,108));tp(this,"sl",B.getStoryboardLevel(),G.getStoryboardLevel());tp(this,"sb",XU(B,110),XU(G,110));gR(this,"pt",_.Pe(B,111),_.Pe(G,111));gR(this,"gce",_.Pe(B,112),_.Pe(G,112));Zm(this,"tm",m0(B,113),m0(G,113));Zm(this,"ntm",m0(B,114),m0(G,114));tp(this,"mp",XU(B,115),XU(G,115));return this.JSC$19861_components_.join("-")};
var tp=function(G,B,F,D,u,R){if(F!=null){var N=u==void 0||u!=10&&u!=16?10:u;F=Number(F).toString(N);u=new AUD;u.append(N==16?"0x":"");N=u.append;R==void 0?R="":(R-=F.length,R=R<=0?"":(0,_.$Pw)("0",R));N.call(u,R);u.append(F);KF$(G,B,u.toString(),!!Number(D))}},Zm=function(G,B,F,D){F&&KF$(G,B,"",!!D)},gR=function(G,B,F,D){F&&KF$(G,B,String(F),!!Number(D))},KF$=function(G,B,F,D){D&&(B=B.charAt(0).toUpperCase()+B.substring(1));
G.JSC$19861_components_.push(B+F)};_.IC(RN,GaQ);_.w=RN.prototype;_.w.JSC$19863_setCrop=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setCrop.call(this,G)};
_.w.JSC$19863_setHeight=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return RN.superClass_.JSC$19863_setHeight.call(this,G)};
_.w.JSC$19863_setImageCrop=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setImageCrop.call(this,G)};
_.w.JSC$19863_setCircleCrop=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setCircleCrop.call(this,G)};
_.w.setSize=function(G){_.Zc(G)&&(G=Math.max(G.width,G.height));G=G==null||G<0?void 0:G;G!=null&&(this.JSC$19863_setWidth(),this.JSC$19863_setHeight());return RN.superClass_.setSize.call(this,G)};
_.w.JSC$19863_setSmartCrop=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setSmartCrop.call(this,G)};
_.w.JSC$19863_setSmartCropNoClip=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setSmartCropNoClip.call(this,G)};
_.w.JSC$19863_setSmartCropUseFace=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setSmartCropUseFace.call(this,G)};
_.w.setCenterCrop=function(G){G&&Sk(this);return RN.superClass_.setCenterCrop.call(this,G)};
_.w.JSC$19863_setPad=function(G){G&&Sk(this);return RN.superClass_.JSC$19863_setPad.call(this,G)};
_.w.JSC$19863_setWidth=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return RN.superClass_.JSC$19863_setWidth.call(this,G)};
var a7N=function(G){G.clearOptions();var B=G.JSC$19861_parsedOptions_,F=B.valueProto_;fK(!0,_.qV(F,3),_.qV(B.signatureFlagProto_,3))&&_.Ii(F,3,!0);return G},Sk=function(G){G.setCenterCrop();
G.JSC$19863_setCircleCrop();G.JSC$19863_setCrop();G.JSC$19863_setImageCrop();G.JSC$19863_setPad();G.JSC$19863_setSmartCrop();G.JSC$19863_setSmartCropNoClip();G.JSC$19863_setSmartCropUseFace()};
RN.prototype.build=function(){var G=this.JSC$19861_parsedOptions_.valueProto_;m0(G,18)||m0(G,45)?G.getSize()||this.setSize(0):(G=this.JSC$19861_parsedOptions_.valueProto_,G.getSize()||G.getWidth()||G.getHeight()||(this.setSize(),this.JSC$19863_setHeight(),this.JSC$19863_setWidth(),Sk(this)));return RN.superClass_.build.call(this)};var mR$=/^[^\/]*\/\//,XjG=function(G,B){B=B===void 0?!1:B;this.original_=G;this.originalPrefix_="";(G=this.original_.match(mR$))&&G[0]?(this.originalPrefix_=G[0],G=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):G="http://"+this.original_;this.uri_=_.pn(G,!0);this.isFreeformUrl_=B;this.JSC$19867_valid_=!0;this.obfuscated_=!1},Q5$=function(G,B){G.JSC$19869_pathPrefix_=G.JSC$19869_pathPrefix_?G.JSC$19869_pathPrefix_+("/"+B):B},sn=function(G){if(G.JSC$19869_components_==
void 0){var B=G.uri_.getPath().substring(1);
G.JSC$19869_pathPrefix_=null;if(G.isFreeformUrl_){G.JSC$19869_components_=[];if((B.match(/=/g)||[]).length>1)return G.JSC$19867_valid_=!1,G.JSC$19869_components_;var F=B.indexOf("=");F!=-1?(G.JSC$19869_components_.push(B.substr(0,F)),G.JSC$19869_components_.push(B.substr(F+1))):G.JSC$19869_components_.push(B);return G.JSC$19869_components_}G.JSC$19869_components_=B.split("/");B=G.JSC$19869_components_.length;B>2&&G.JSC$19869_components_[0]=="u"&&(Q5$(G,G.JSC$19869_components_[0]+"/"+G.JSC$19869_components_[1]),
G.JSC$19869_components_.shift(),G.JSC$19869_components_.shift(),B-=2);if(B==0||B==4||B>7)return G.JSC$19867_valid_=!1,G.JSC$19869_components_;if(B==2)Q5$(G,G.JSC$19869_components_[0]);else if(G.JSC$19869_components_[0]=="image")Q5$(G,G.JSC$19869_components_[0]);else if(B==7||B==3)return G.JSC$19867_valid_=!1,G.JSC$19869_components_;if(B<=3){G.obfuscated_=!0;B==3&&(Q5$(G,G.JSC$19869_components_[1]),G.JSC$19869_components_.shift(),--B);--B;F=G.JSC$19869_components_[B];var D=F.indexOf("=");D!=-1&&(G.JSC$19869_components_[B]=
F.substr(0,D),G.JSC$19869_components_.push(F.substr(D+1)))}}return G.JSC$19869_components_};
XjG.prototype.isValid=function(){sn(this);return this.JSC$19867_valid_};
XjG.prototype.isObfuscated=function(){sn(this);return this.obfuscated_};
var j5H=function(G){sn(G);return G.isFreeformUrl_},xt=function(G){sn(G);
G.JSC$19869_pathPrefix_==void 0&&(G.JSC$19869_pathPrefix_=null);return G.JSC$19869_pathPrefix_},LFH=function(G){switch(sn(G).length){case 7:return!0;
case 6:return xt(G)==null;case 5:return!1;case 3:return!0;case 2:return xt(G)==null;case 1:return!1;default:return!1}},PA=function(G,B){if(j5H(G))a:{switch(B){case 7:B=0;
break;case 4:if(!LFH(G)){G=null;break a}B=1;break;default:G=null;break a}G=sn(G)[B]}else if(G.isObfuscated())a:{var F=xt(G)!=null?1:0;switch(B){case 6:B=F;break;case 4:if(!LFH(G)){G=null;break a}B=1+F;break;default:G=null;break a}G=sn(G)[B]}else a:{F=xt(G)!=null?1:0;switch(B){case 0:B=F;break;case 1:B=1+F;break;case 2:B=2+F;break;case 3:B=3+F;break;case 4:if(!LFH(G)){G=null;break a}B=4+F;break;case 5:B=LFH(G)?1:0;B=4+F+B;break;default:G=null;break a}G=sn(G)[B]}return G};
XjG.prototype.getOptions=function(){this.options_==void 0&&(this.options_=PA(this,4));return this.options_};var FCH=function(){};
FCH.prototype.parse=function(G,B){return new B3G(G,B===void 0?!1:B)};
var B3G=function(G,B){XjG.call(this,G,B===void 0?!1:B)};
_.r(B3G,XjG);_.IC(uQD,RN);var iWU;uQD.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
uQD.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var G=uQD.superClass_.build.call(this),B=[];xt(this.parsedImageUrl_)!=null&&B.push(xt(this.parsedImageUrl_));var F=j5H(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var D=this.parsedImageUrl_;D.obfuscatedData_==void 0&&(D.obfuscatedData_=PA(D,6));B.push(D.obfuscatedData_+(G?"="+G:""))}else if(F){D=B.push;var u=this.parsedImageUrl_;u.freeformUrlPath_===void 0&&(u.freeformUrlPath_=
PA(u,7));D.call(B,u.freeformUrlPath_);G&&B.push(G)}else D=B.push,u=this.parsedImageUrl_,u.obfuscatedGaiaId_==void 0&&(u.obfuscatedGaiaId_=PA(u,0)),D.call(B,u.obfuscatedGaiaId_),D=B.push,u=this.parsedImageUrl_,u.photoId_==void 0&&(u.photoId_=PA(u,1)),D.call(B,u.photoId_),D=B.push,u=this.parsedImageUrl_,u.imageVersion_==void 0&&(u.imageVersion_=PA(u,2)),D.call(B,u.imageVersion_),D=B.push,u=this.parsedImageUrl_,u.signature_==void 0&&(u.signature_=PA(u,3)),D.call(B,u.signature_),G&&B.push(G),G=B.push,
D=this.parsedImageUrl_,D.filename_==void 0&&(D.filename_=PA(D,5)),G.call(B,D.filename_);B=F?B.join("="):B.join("/");B=_.pn(this.protocolPrefix_+this.JSC$19875_domain_+"/"+B+(this.JSC$19875_query_?"?"+this.JSC$19875_query_:"")).toString();B.startsWith("%3a//")&&(B=B.replace("%3a//","://"));return B};_.IC(w9,_.NU);w9.prototype.JSC$10384_setLabel=function(G){w9.superClass_.JSC$10384_setLabel.call(this,G);return this};
w9.prototype.addUploadMetadata=function(G,B){w9.superClass_.addUploadMetadata.call(this,G,B);return this};var rWU=function(G){if(G!=="youtubebanner"&&G!=="youtube-channel-banner")throw Error("Ek");w9.call(this,G)};
_.r(rWU,w9);rWU.prototype.JSC$10384_setLabel=function(G){w9.prototype.JSC$10384_setLabel.call(this,G);return this};
rWU.prototype.addUploadMetadata=function(G,B){w9.prototype.addUploadMetadata.call(this,G,B);return this};var WFU=[0,_.fX,_.oD,_.fX,-1,_.oD,[0,_.MV,_.Yz,-1],_.fX,-1];var H9z=[0,[1,2,3],_.dI,-2];var kjB=[0,_.fX];var O9$=_.vP(["viewBox"]),ejA=_.vP(["width"]),$R2=_.vP(["height"]),zjZ=_.vP(["fill"]),b9D=_.vP(["id"]),VCD=_.vP(["x"]),vY$=_.vP(["y"]);R6G.prototype.getLength=function(){return this.parsedData.length};
R6G.prototype.write=function(G){for(var B=0,F=this.parsedData.length;B<F;B++)G.put(this.parsedData[B],8)};
var U7U=function(G,B){var F=new R6G(B);G.dataList.push(F);F=G.errorCorrectLevel;var D=1,u=encodeURI(B).toString().replace(/%[0-9a-fA-F]{2}/g,"a");B=u.length+(u.length!=B?3:0);u=0;for(var R=GW.length;u<=R;u++){var N=0;switch(F){case 1:N=GW[u][0];break;case 0:N=GW[u][1];break;case 3:N=GW[u][2];break;case 2:N=GW[u][3]}if(B<=N)break;else D++}if(D>GW.length)throw Error("Nk");G.typeNumber=D;G.dataCache=null};
wcz.prototype.isDark=function(G,B){if(G<0||this.moduleCount<=G||B<0||this.moduleCount<=B)throw Error("Fk`"+G+"`"+B);return this.modules[G][B]};
for(var qFH=function(G,B,F){G.moduleCount=G.typeNumber*4+17;G.modules=Array(G.moduleCount);for(var D=0;D<G.moduleCount;D++){G.modules[D]=Array(G.moduleCount);for(var u=0;u<G.moduleCount;u++)G.modules[D][u]=null}oYB(G,0,0);oYB(G,G.moduleCount-7,0);oYB(G,0,G.moduleCount-7);D=MC$[G.typeNumber-1];for(u=0;u<D.length;u++)for(var R=0;R<D.length;R++){var N=D[u],y=D[R];if(G.modules[N][y]==null)for(var U=-2;U<=2;U++)for(var q=-2;q<=2;q++)G.modules[N+U][y+q]=U==-2||U==2||q==-2||q==2||U==0&&q==0?!0:!1}for(D=
8;D<G.moduleCount-8;D++)G.modules[D][6]==null&&(G.modules[D][6]=D%2==0);for(D=8;D<G.moduleCount-8;D++)G.modules[6][D]==null&&(G.modules[6][D]=D%2==0);D=G.errorCorrectLevel<<3|F;for(u=D<<10;Bk(u)-Bk(1335)>=0;)u^=1335<<Bk(u)-Bk(1335);D=(D<<10|u)^21522;for(u=0;u<15;u++)R=!B&&(D>>u&1)==1,u<6?G.modules[u][8]=R:u<8?G.modules[u+1][8]=R:G.modules[G.moduleCount-15+u][8]=R;for(u=0;u<15;u++)R=!B&&(D>>u&1)==1,u<8?G.modules[8][G.moduleCount-u-1]=R:u<9?G.modules[8][15-u-1+1]=R:G.modules[8][15-u-1]=R;G.modules[G.moduleCount-
8][8]=!B;if(G.typeNumber>=7){D=G.typeNumber;for(u=D<<12;Bk(u)-Bk(7973)>=0;)u^=7973<<Bk(u)-Bk(7973);D=D<<12|u;for(u=0;u<18;u++)R=!B&&(D>>u&1)==1,G.modules[Math.floor(u/3)][u%3+G.moduleCount-8-3]=R;for(u=0;u<18;u++)R=!B&&(D>>u&1)==1,G.modules[u%3+G.moduleCount-8-3][Math.floor(u/3)]=R}if(G.dataCache==null){u=G.typeNumber;R=G.dataList;B=G.errorCorrectLevel;D=pjS(u,B);if(D==void 0)throw Error("Mk`"+u+"`"+B);N=D.length/3;B=[];for(y=0;y<N;y++){U=D[y*3];q=D[y*3+1];for(var h=D[y*3+2],K=0;K<U;K++)B.push(new CA$(q,
h))}D=new N3z;for(N=0;N<R.length;N++)y=R[N],D.put(y.mode,4),D.put(y.getLength(),Ye2(y.mode,u)),y.write(D);for(N=u=0;N<B.length;N++)u+=B[N].dataCount;if(D.length>u*8)throw Error("Gk`"+D.length+"`"+u*8);for(D.length+4<=u*8&&D.put(0,4);D.length%8!=0;)AWD(D,!1);for(;!(D.length>=u*8);){D.put(236,8);if(D.length>=u*8)break;D.put(17,8)}R=u=q=0;N=Array(B.length);y=Array(B.length);for(U=0;U<B.length;U++){K=B[U].dataCount;var a=B[U].totalCount-K;u=Math.max(u,K);R=Math.max(R,a);N[U]=Array(K);for(h=0;h<N[U].length;h++)N[U][h]=
255&D.buffer[h+q];q+=K;h=a;K=new CC([1],0);for(a=0;a<h;a++)K=K.multiply(new CC([1,dR$(a)],0));h=K;K=(new CC(N[U],h.getLength()-1)).mod(h);y[U]=Array(h.getLength()-1);for(h=0;h<y[U].length;h++)a=h+K.getLength()-y[U].length,y[U][h]=a>=0?K.get(a):0}for(h=D=0;h<B.length;h++)D+=B[h].totalCount;D=Array(D);for(h=q=0;h<u;h++)for(U=0;U<B.length;U++)h<N[U].length&&(D[q++]=N[U][h]);for(h=0;h<R;h++)for(U=0;U<B.length;U++)h<y[U].length&&(D[q++]=y[U][h]);G.dataCache=D}B=G.dataCache;D=-1;u=G.moduleCount-1;R=7;N=
0;for(y=G.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(U=0;U<2;U++)G.modules[u][y-U]==null&&(q=!1,N<B.length&&(q=(B[N]>>>R&1)==1),JWH(F,u,y-U)&&(q=!q),G.modules[u][y-U]=q,R--,R==-1&&(N++,R=7));u+=D;if(u<0||G.moduleCount<=u){u-=D;D=-D;break}}},oYB=function(G,B,F){for(var D=-1;D<=7;D++)if(!(B+D<=-1||G.moduleCount<=B+D))for(var u=-1;u<=7;u++)F+u<=-1||G.moduleCount<=F+u||(G.modules[B+D][F+u]=0<=D&&D<=6&&(u==0||u==6)||0<=u&&u<=6&&(D==0||D==6)||2<=D&&D<=4&&2<=u&&u<=4?!0:!1)},ET$=function(G){for(var B=0,
F=0,D=0;D<8;D++){qFH(G,!0,D);
var u=G;for(var R=u.moduleCount,N=0,y=0;y<R;y++)for(var U=0;U<R;U++){for(var q=0,h=u.isDark(y,U),K=-1;K<=1;K++)if(!(y+K<0||R<=y+K))for(var a=-1;a<=1;a++)U+a<0||R<=U+a||(K!=0||a!=0)&&h==u.isDark(y+K,U+a)&&q++;q>5&&(N+=3+q-5)}for(y=0;y<R-1;y++)for(U=0;U<R-1;U++)if(q=0,u.isDark(y,U)&&q++,u.isDark(y+1,U)&&q++,u.isDark(y,U+1)&&q++,u.isDark(y+1,U+1)&&q++,q==0||q==4)N+=3;for(y=0;y<R;y++)for(U=0;U<R-6;U++)u.isDark(y,U)&&!u.isDark(y,U+1)&&u.isDark(y,U+2)&&u.isDark(y,U+3)&&u.isDark(y,U+4)&&!u.isDark(y,U+5)&&
u.isDark(y,U+6)&&(N+=40);for(U=0;U<R;U++)for(y=0;y<R-6;y++)u.isDark(y,U)&&!u.isDark(y+1,U)&&u.isDark(y+2,U)&&u.isDark(y+3,U)&&u.isDark(y+4,U)&&!u.isDark(y+5,U)&&u.isDark(y+6,U)&&(N+=40);for(U=q=0;U<R;U++)for(y=0;y<R;y++)u.isDark(y,U)&&q++;u=N+=Math.abs(100*q/R/R-50)/5*10;if(D==0||B>u)B=u,F=D}return F},MC$=[[],
[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]],Bk=function(G){for(var B=0;G!=0;)B++,G>>>=1;return B},JWH=function(G,B,F){switch(G){case 0:return(B+F)%2==0;
case 1:return B%2==0;case 2:return F%3==0;case 3:return(B+F)%3==0;case 4:return(Math.floor(B/2)+Math.floor(F/3))%2==0;case 5:return B*F%2+B*F%3==0;case 6:return(B*F%2+B*F%3)%2==0;case 7:return(B*F%3+(B+F)%2)%2==0;default:throw Error("Hk`"+G);}},Ye2=function(G,B){if(1<=B&&B<10)switch(G){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+G);}else if(B<27)switch(G){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+G);}else if(B<41)switch(G){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+G);}else throw Error("Jk`"+B);},Tl2=function(G){if(G<1)throw Error("Kk`"+G);
return cW$[G]},dR$=function(G){for(;G<0;)G+=255;
for(;G>=256;)G-=255;return iV[G]},iV=Array(256),cW$=Array(256),I7D=0;I7D<8;I7D++)iV[I7D]=1<<I7D;
for(var FY=8;FY<256;FY++)iV[FY]=iV[FY-4]^iV[FY-5]^iV[FY-6]^iV[FY-8];for(var f7G=0;f7G<255;f7G++)cW$[iV[f7G]]=f7G;CC.prototype.get=function(G){return this.num[G]};
CC.prototype.getLength=function(){return this.num.length};
CC.prototype.multiply=function(G){for(var B=Array(this.getLength()+G.getLength()-1),F=0;F<this.getLength();F++)for(var D=0;D<G.getLength();D++)B[F+D]^=dR$(Tl2(this.get(F))+Tl2(G.get(D)));return new CC(B,0)};
CC.prototype.mod=function(G){if(this.getLength()-G.getLength()<0)return this;for(var B=Tl2(this.get(0))-Tl2(G.get(0)),F=Array(this.getLength()),D=0;D<this.getLength();D++)F[D]=this.get(D);for(D=0;D<G.getLength();D++)F[D]^=dR$(Tl2(G.get(D))+B);return(new CC(F,0)).mod(G)};
var tCD=[[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]],pjS=function(G,B){switch(B){case 1:return tCD[(G-1)*4];case 0:return tCD[(G-1)*4+1];case 3:return tCD[(G-1)*4+2];case 2:return tCD[(G-1)*4+3]}};
N3z.prototype.get=function(G){return(this.buffer[Math.floor(G/8)]>>>7-G%8&1)==1};
N3z.prototype.put=function(G,B){for(var F=0;F<B;F++)AWD(this,(G>>>B-F-1&1)==1)};
var AWD=function(G,B){var F=Math.floor(G.length/8);G.buffer.length<=F&&G.buffer.push(0);B&&(G.buffer[F]|=128>>>G.length%8);G.length++},GW=[[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]],lOB=function(){var G=function(B,F){this.JSC$19901__el=B;this.JSC$19901__htOption=F};
G.prototype.draw=function(B){function F(h,K){h=document.createElementNS("http://www.w3.org/2000/svg",h);for(var a in K)K.hasOwnProperty(a)&&(a==="href"?EQB(h,K[a]):_.Ex([_.LS(O9$),_.LS(ejA),_.LS($R2),_.LS(zjZ),_.LS(b9D),_.LS(VCD),_.LS(vY$)],h,a,K[a]));return h}
var D=this.JSC$19901__htOption,u=this.JSC$19901__el,R=B.moduleCount;this.clear();var N=F("svg",{viewBox:"0 0 "+String(R)+" "+String(R),width:"100%",height:"100%",fill:D.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});u.appendChild(N);N.appendChild(F("rect",{fill:D.colorLight,width:"100%",height:"100%"}));N.appendChild(F("rect",{fill:D.colorDark,width:"1",height:"1",id:"template"}));for(var y=0;y<R;y++)for(var U=0;U<R;U++)if(B.isDark(y,U)){var q=F("use",{x:String(y),y:String(U),href:"#template"});
N.appendChild(q)}};
G.prototype.clear=function(){for(;this.JSC$19901__el.hasChildNodes();)this.JSC$19901__el.removeChild(this.JSC$19901__el.lastChild)};
return G}(),nTA=document.documentElement.tagName.toLowerCase()==="svg"?lOB:typeof CanvasRenderingContext2D!="undefined"?function(){var G=function(B,F){this._bIsPainted=!1;
ySD();this.JSC$19901__htOption=F;this._elCanvas=document.createElement("canvas");this._elCanvas.width=F.width;this._elCanvas.height=F.height;B.appendChild(this._elCanvas);this.JSC$19901__el=B;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19901__el.appendChild(this._elImage);this._bSupportDataURI=null};
G.prototype._onMakeImage=function(){var B=this._elCanvas.toDataURL("image/png");this._elImage.src=B;this._elImage.style.display="block";this._elCanvas.style.display="none"};
G.prototype._safeSetDataURI=function(B,F){var D=this;D._fFail=F;D._fSuccess=B;D._bSupportDataURI===null?(B=_.G_("IMG"),F=function(){D._bSupportDataURI=!1;D._fFail&&D._fFail.call(D)},B.onabort=F,B.onerror=F,B.onload=function(){D._bSupportDataURI=!0;
D._fSuccess&&D._fSuccess.call(D)},B.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):D._bSupportDataURI===!0&&D._fSuccess?D._fSuccess.call(D):D._bSupportDataURI===!1&&D._fFail&&D._fFail.call(D)};
G.prototype.draw=function(B){var F=this._oContext,D=this.JSC$19901__htOption,u=B.moduleCount,R=D.width/u,N=D.height/u,y=Math.round(R),U=Math.round(N);this._elImage.style.display="none";this.clear();for(var q=0;q<u;q++)for(var h=0;h<u;h++){var K=B.isDark(q,h),a=h*R,m=q*N;F.strokeStyle=K?D.colorDark:D.colorLight;F.lineWidth=1;F.fillStyle=K?D.colorDark:D.colorLight;F.fillRect(a,m,R,N);F.strokeRect(Math.floor(a)+.5,Math.floor(m)+.5,y,U);F.strokeRect(Math.ceil(a)-.5,Math.ceil(m)-.5,y,U)}this._bIsPainted=
!0};
G.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
G.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
G.prototype.round=function(B){return B?Math.floor(B*1E3)/1E3:B};
return G}():function(){var G=function(B,F){this.JSC$19901__el=B;
this.JSC$19901__htOption=F};
G.prototype.draw=function(B){for(var F=this.JSC$19901__htOption,D=this.JSC$19901__el,u=B.moduleCount,R=Math.floor(F.width/u),N=Math.floor(F.height/u),y=['<table style="border:0;border-collapse:collapse;">'],U=0;U<u;U++){y.push("<tr>");for(var q=0;q<u;q++)y.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+R+"px;height:"+N+"px;background-color:"+(B.isDark(U,q)?F.colorDark:F.colorLight)+';"></td>');y.push("</tr>")}y.push("</table>");B=y.join("");B=_.aRt(_.XeP,B);_.qm(D,B);
B=D.childNodes[0];u=(F.width-B.offsetWidth)/2;R=(F.height-B.offsetHeight)/2;u>0&&R>0&&(B.style.margin=R+"px "+u+"px")};
G.prototype.clear=function(){this.JSC$19901__el.textContent=""};
return G}();
h6G.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19904__android||this.JSC$19904__android>=3)&&this._oDrawing.makeImage()};
h6G.prototype.clear=function(){this._oDrawing.clear()};
_.Fz.QRCode=h6G;var Z9U={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var e6H=function(){};
e6H.prototype.stringify=function(G){return _.Fz.JSON.stringify(G,void 0)};
e6H.prototype.parse=function(G){return _.Fz.JSON.parse(G,void 0)};var gYS=function(){_.T_.call(this,"z")};
_.IC(gYS,_.T_);var SeZ=function(){_.T_.call(this,"y")};
_.IC(SeZ,_.T_);var aOZ=null;_.IC(XcB,_.T_);_.IC(jy$,_.T_);_.IC(LCA,_.T_);y6.prototype.disableRedact=function(){this.redactEnabled_=!1};
var s5Q=function(G,B,F,D,u,R){G.info(function(){if(G.redactEnabled_)if(R){var N="";for(var y=R.split("&"),U=0;U<y.length;U++){var q=y[U].split("=");if(q.length>1){var h=q[0];q=q[1];var K=h.split("_");N=K.length>=2&&K[1]=="type"?N+(h+"="+q+"&"):N+(h+"=redacted&")}}}else N=null;else N=R;return"XMLHTTP REQ ("+D+") [attempt "+u+"]: "+B+"\n"+F+"\n"+N})},xRU=function(G,B,F,D,u,R,N){G.info(function(){return"XMLHTTP RESP ("+D+") [ attempt "+u+"]: "+B+"\n"+F+"\n"+R+" "+N})},D1=function(G,B,F,D){G.info(function(){return"XMLHTTP TEXT ("+
B+"): "+PxU(G,F)+(D?" "+D:"")})},GiB=function(G,B){G.info(function(){return"TIMEOUT: "+B})};
y6.prototype.debug=function(){};
y6.prototype.info=function(){};
y6.prototype.warning=function(){};
var PxU=function(G,B){if(!G.redactEnabled_)return B;if(!B)return null;try{var F=JSON.parse(B);if(F)for(var D=0;D<F.length;D++)if(Array.isArray(F[D])){var u=F[D];if(!(u.length<2)){var R=u[1];if(Array.isArray(R)&&!(R.length<1)){var N=R[0];if(N!="noop"&&N!="stop"&&N!="close")for(var y=1;y<R.length;y++)R[y]=""}}}return _.Q_(F)}catch(U){return G.debug("Exception parsing expected JS array - probably was not JS"),B}};var HWN=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},BAQ=function(G,B){switch(G){case 0:return"Non-200 return code ("+B+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},i3S={},F7H={};
nC.prototype.setTimeout=function(G){this.timeout_=G};
var u6U=function(G,B,F){G.JSC$19926_type_=1;G.JSC$19926_baseUri_=_.St(B.clone());G.JSC$19926_postData_=F;G.decodeChunks_=!0;Dv2(G,null)},Dv2=function(G,B){G.JSC$19926_requestStartTime_=Date.now();
RoU(G);G.JSC$19926_requestUri_=G.JSC$19926_baseUri_.clone();CJ2(G.JSC$19926_requestUri_,"t",G.JSC$19926_retryId_);G.JSC$19926_xmlHttpChunkStart_=0;var F=G.JSC$19926_channel_.JSC$19945_supportsCrossDomainXhrs_;G.fetchResponseState_=new HWN;G.JSC$19926_xmlHttp_=w9$(G.JSC$19926_channel_,F?B:null,!G.JSC$19926_postData_);G.JSC$19926_readyStateChangeThrottleMs_>0&&(G.JSC$19926_readyStateChangeThrottle_=new _.s_((0,_.R_)(G.JSC$19930_xmlHttpHandler_,G,G.JSC$19926_xmlHttp_),G.JSC$19926_readyStateChangeThrottleMs_));
G.JSC$19926_eventHandler_.listen(G.JSC$19926_xmlHttp_,"readystatechange",G.JSC$19930_readyStateChangeHandler_);B=G.JSC$19926_extraHeaders_?_.UK.clone(G.JSC$19926_extraHeaders_):{};G.JSC$19926_postData_?(G.JSC$19926_verb_||(G.JSC$19926_verb_="POST"),B["Content-Type"]="application/x-www-form-urlencoded",G.JSC$19926_xmlHttp_.send(G.JSC$19926_requestUri_,G.JSC$19926_verb_,G.JSC$19926_postData_,B)):(G.JSC$19926_verb_="GET",G.JSC$19926_xmlHttp_.send(G.JSC$19926_requestUri_,G.JSC$19926_verb_,null,B));QyQ(1);
s5Q(G.JSC$19926_channelDebug_,G.JSC$19926_verb_,G.JSC$19926_requestUri_,G.JSC$19926_rid_,G.JSC$19926_retryId_,G.JSC$19926_postData_)};
nC.prototype.JSC$19930_readyStateChangeHandler_=function(G){G=G.target;var B=this.JSC$19926_readyStateChangeThrottle_;B&&_.LG(G)==3?(this.JSC$19926_channelDebug_.debug("Throttling readystatechange."),B.fire()):this.JSC$19930_xmlHttpHandler_(G)};
nC.prototype.JSC$19930_xmlHttpHandler_=function(G){try{G==this.JSC$19926_xmlHttp_?C3$(this):this.JSC$19926_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(B){this.JSC$19926_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),NAD(this)}finally{}};
var C3$=function(G){var B=_.LG(G.JSC$19926_xmlHttp_),F=G.JSC$19926_xmlHttp_.JSC$10106_lastErrorCode_,D=G.JSC$19926_xmlHttp_.getStatus();if(!(B<3||B==3&&!NAD(G))){G.JSC$19926_cancelled_||B!=4||F==7||(F==8||D<=0?QyQ(3):QyQ(2));yfN(G);var u=G.JSC$19926_xmlHttp_.getStatus();G.JSC$19926_lastStatusCode_=u;F=nV$(G);NAD(G)||G.JSC$19926_channelDebug_.debug(function(){return"No response text for uri "+G.JSC$19926_requestUri_+" status "+u});
G.JSC$19926_successful_=u==200;xRU(G.JSC$19926_channelDebug_,G.JSC$19926_verb_,G.JSC$19926_requestUri_,G.JSC$19926_rid_,G.JSC$19926_retryId_,B,u);if(G.JSC$19926_successful_){if(G.decodeInitialResponse_&&!G.initialResponseDecoded_)if(D=lsN(G))D1(G.JSC$19926_channelDebug_,G.JSC$19926_rid_,D,"Initial handshake response via X-HTTP-Initial-Response"),G.initialResponseDecoded_=!0,UvD(G,D);else{G.JSC$19926_successful_=!1;G.JSC$19926_lastError_=3;Nw(12);G.JSC$19926_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
G.JSC$19926_rid_+")");uV(G);q5Z(G);return}G.decodeChunks_?EV$(G,B,F):(D1(G.JSC$19926_channelDebug_,G.JSC$19926_rid_,F,null),UvD(G,F));B==4&&uV(G);G.JSC$19926_successful_&&!G.JSC$19926_cancelled_&&(B==4?ho$(G.JSC$19926_channel_,G):(G.JSC$19926_successful_=!1,RoU(G)))}else RYA(G.JSC$19926_xmlHttp_),u==400&&F.indexOf("Unknown SID")>0?(G.JSC$19926_lastError_=3,Nw(12),G.JSC$19926_channelDebug_.warning("XMLHTTP Unknown SID ("+G.JSC$19926_rid_+")")):(G.JSC$19926_lastError_=0,Nw(13),G.JSC$19926_channelDebug_.warning("XMLHTTP Bad status "+
u+" ("+G.JSC$19926_rid_+")")),uV(G),q5Z(G)}},lsN=function(G){return G.JSC$19926_xmlHttp_&&(G=SXA(G.JSC$19926_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.NL(G)?G:null},nV$=function(G){if(!K7H(G))return G.JSC$19926_xmlHttp_.getResponseText();
var B=G.JSC$19926_xmlHttp_.getResponse();if(B==="")return"";var F="",D=B.length,u=_.LG(G.JSC$19926_xmlHttp_)==4;if(!G.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return uV(G),q5Z(G),"";G.fetchResponseState_.textDecoder=new _.Fz.TextDecoder}for(var R=0;R<D;R++)G.fetchResponseState_.responseArrivedForFetch=!0,F+=G.fetchResponseState_.textDecoder.decode(B[R],{stream:!(u&&R==D-1)});B.length=0;G.fetchResponseState_.responseBuffer+=F;G.JSC$19926_xmlHttpChunkStart_=0;return G.fetchResponseState_.responseBuffer},
NAD=function(G){return G.JSC$19926_xmlHttp_?G.fetchResponseState_.responseArrivedForFetch?!0:!(!G.JSC$19926_xmlHttp_.getResponseText()&&!G.JSC$19926_xmlHttp_.getResponse()):!1},K7H=function(G){return G.JSC$19926_xmlHttp_?G.JSC$19926_verb_=="GET"&&G.JSC$19926_type_!=2&&G.JSC$19926_channel_.usesFetchStreams_:!1},EV$=function(G,B,F){for(var D=!0,u;!G.JSC$19926_cancelled_&&G.JSC$19926_xmlHttpChunkStart_<F.length;)if(u=asS(G,F),u==F7H){B==4&&(G.JSC$19926_lastError_=4,Nw(14),D=!1);
D1(G.JSC$19926_channelDebug_,G.JSC$19926_rid_,null,"[Incomplete Response]");break}else if(u==i3S){G.JSC$19926_lastError_=4;Nw(15);D1(G.JSC$19926_channelDebug_,G.JSC$19926_rid_,F,"[Invalid Chunk]");D=!1;break}else D1(G.JSC$19926_channelDebug_,G.JSC$19926_rid_,u,null),UvD(G,u);K7H(G)&&G.JSC$19926_xmlHttpChunkStart_!=0&&(G.fetchResponseState_.responseBuffer=G.fetchResponseState_.responseBuffer.slice(G.JSC$19926_xmlHttpChunkStart_),G.JSC$19926_xmlHttpChunkStart_=0);B!=4||F.length!=0||G.fetchResponseState_.responseArrivedForFetch||
(G.JSC$19926_lastError_=1,Nw(16),D=!1);G.JSC$19926_successful_=G.JSC$19926_successful_&&D;D?F.length>0&&!G.firstByteReceived_&&(G.firstByteReceived_=!0,B=G.JSC$19926_channel_,B.JSC$19945_backChannelRequest_==G&&B.detectBufferingProxy_&&!B.bpDetectionDone_&&(B.JSC$19945_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+F.length),mv$(B),B.bpDetectionDone_=!0,Nw(11))):(D1(G.JSC$19926_channelDebug_,G.JSC$19926_rid_,F,"[Invalid Chunked Response]"),uV(G),q5Z(G))},asS=function(G,
B){var F=G.JSC$19926_xmlHttpChunkStart_,D=B.indexOf("\n",F);
if(D==-1)return F7H;F=Number(B.substring(F,D));if(isNaN(F))return i3S;D+=1;if(D+F>B.length)return F7H;B=B.slice(D,D+F);G.JSC$19926_xmlHttpChunkStart_=D+F;return B};
nC.prototype.cancel=function(){this.JSC$19926_cancelled_=!0;uV(this)};
var RoU=function(G){G.JSC$19926_watchDogTimeoutTime_=Date.now()+G.timeout_;X9Q(G,G.timeout_)},X9Q=function(G,B){if(G.JSC$19926_watchDogTimerId_!=null)throw Error("Pk");
G.JSC$19926_watchDogTimerId_=WCZ((0,_.R_)(G.JSC$19930_onWatchDogTimeout_,G),B)},yfN=function(G){G.JSC$19926_watchDogTimerId_&&(_.Fz.clearTimeout(G.JSC$19926_watchDogTimerId_),G.JSC$19926_watchDogTimerId_=null)};
nC.prototype.JSC$19930_onWatchDogTimeout_=function(){this.JSC$19926_watchDogTimerId_=null;var G=Date.now();G-this.JSC$19926_watchDogTimeoutTime_>=0?(GiB(this.JSC$19926_channelDebug_,this.JSC$19926_requestUri_),this.JSC$19926_type_!=2&&(QyQ(3),Nw(17)),uV(this),this.JSC$19926_lastError_=2,q5Z(this)):(this.JSC$19926_channelDebug_.warning("WatchDog timer called too early"),X9Q(this,this.JSC$19926_watchDogTimeoutTime_-G))};
var q5Z=function(G){G.JSC$19926_channel_.state_==0||G.JSC$19926_cancelled_||ho$(G.JSC$19926_channel_,G)},uV=function(G){yfN(G);
_.ve(G.JSC$19926_readyStateChangeThrottle_);G.JSC$19926_readyStateChangeThrottle_=null;G.JSC$19926_eventHandler_.removeAll();if(G.JSC$19926_xmlHttp_){var B=G.JSC$19926_xmlHttp_;G.JSC$19926_xmlHttp_=null;B.abort();B.dispose()}};
nC.prototype.getLastError=function(){return this.JSC$19926_lastError_};
var UvD=function(G,B){try{var F=G.JSC$19926_channel_;if(F.state_!=0&&(F.JSC$19945_backChannelRequest_==G||QJA(F.forwardChannelRequestPool_,G)))if(!G.initialResponseDecoded_&&QJA(F.forwardChannelRequestPool_,G)&&F.state_==3){try{var D=F.wireCodec_.JSC$19940_parser_.parse(B)}catch(y){D=null}if(Array.isArray(D)&&D.length==3){B=D;if(B[0]==0)a:if(F.JSC$19945_channelDebug_.debug("Server claims our backchannel is missing."),F.JSC$19945_backChannelTimerId_)F.JSC$19945_channelDebug_.debug("But we are currently starting the request.");
else{if(F.JSC$19945_backChannelRequest_)if(F.JSC$19945_backChannelRequest_.JSC$19926_requestStartTime_+3E3<G.JSC$19926_requestStartTime_)jJS(F),L72(F);else break a;else F.JSC$19945_channelDebug_.warning("We do not have a BackChannel established");rfG(F);Nw(18)}else{F.JSC$19945_lastPostResponseArrayId_=B[1];var u=F.JSC$19945_lastPostResponseArrayId_-F.JSC$19945_lastArrayId_;if(0<u){var R=B[2];F.JSC$19945_channelDebug_.debug(R+" bytes (in "+u+" arrays) are outstanding on the BackChannel");R<37500&&
F.enableStreaming_&&F.JSC$19945_backChannelRetryCount_==0&&!F.JSC$19945_deadBackChannelTimerId_&&(F.JSC$19945_deadBackChannelTimerId_=WCZ((0,_.R_)(F.JSC$19947_onBackChannelDead_,F),6E3))}}if(W7Q(F.forwardChannelRequestPool_)<=1&&F.forwardChannelFlushedCallback_){try{F.forwardChannelFlushedCallback_()}catch(y){}F.forwardChannelFlushedCallback_=void 0}}else F.JSC$19945_channelDebug_.debug("Bad POST response data returned"),Rf(F,11)}else if((G.initialResponseDecoded_||F.JSC$19945_backChannelRequest_==
G)&&jJS(F),!_.NL(B)){var N=F.wireCodec_.JSC$19940_parser_.parse(B);F.onInput_(N,G)}QyQ(4)}catch(y){}};var H3z=function(G,B){this.JSC$19933_mapId=G;this.map=B;this.context=null};var bWS=function(G){this.maxPoolSizeConfigured_=G||10;_.Fz.PerformanceNavigationTiming?(G=_.Fz.performance.getEntriesByType("navigation"),G=G.length>0&&(G[0].nextHopProtocol=="hq"||G[0].nextHopProtocol=="h2")):G=!!(_.Fz.chrome&&_.Fz.chrome.loadTimes&&_.Fz.chrome.loadTimes()&&_.Fz.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19936_maxSize_=G?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19936_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19936_request_=null;this.JSC$19936_pendingMessages_=
[]},kiA=function(G){return G.JSC$19936_request_?!0:G.requestPool_?G.requestPool_.size>=G.JSC$19936_maxSize_:!1},W7Q=function(G){return G.JSC$19936_request_?1:G.requestPool_?G.requestPool_.size:0},QJA=function(G,B){return G.JSC$19936_request_?G.JSC$19936_request_==B:G.requestPool_?G.requestPool_.has(B):!1},O3B=function(G,B){G.requestPool_?G.requestPool_.add(B):G.JSC$19936_request_=B},eoZ=function(G,B){G.JSC$19936_request_&&G.JSC$19936_request_==B?G.JSC$19936_request_=null:G.requestPool_&&G.requestPool_.has(B)&&
G.requestPool_.delete(B)};
bWS.prototype.cancel=function(){this.JSC$19936_pendingMessages_=$vZ(this);if(this.JSC$19936_request_)this.JSC$19936_request_.cancel(),this.JSC$19936_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var G=_.C(this.requestPool_.values()),B=G.next();!B.done;B=G.next())B.value.cancel();this.requestPool_.clear()}};
var $vZ=function(G){if(G.JSC$19936_request_!=null)return G.JSC$19936_pendingMessages_.concat(G.JSC$19936_request_.JSC$19926_pendingMessages_);if(G.requestPool_!=null&&G.requestPool_.size!==0){var B=G.JSC$19936_pendingMessages_;G=_.C(G.requestPool_.values());for(var F=G.next();!F.done;F=G.next())B=B.concat(F.value.JSC$19926_pendingMessages_);return B}return _.II(G.JSC$19936_pendingMessages_)},zoQ=function(G,B){G.JSC$19936_pendingMessages_=G.JSC$19936_pendingMessages_.concat(B)};UJ.prototype.JSC$19947_channelVersion_=8;UJ.prototype.state_=1;
UJ.prototype.connect=function(G,B,F,D){this.JSC$19945_channelDebug_.debug("connect()");Nw(0);this.JSC$19945_path_=G;this.JSC$19945_extraParams_=B||{};F&&D!==void 0&&(this.JSC$19945_extraParams_.OSID=F,this.JSC$19945_extraParams_.OAID=D);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19945_channelDebug_.debug("connectChannel_()");G=b3B(this,null,this.JSC$19945_path_);this.JSC$19945_channelDebug_.debug("GetForwardChannelUri: "+G);this.JSC$19945_forwardChannelUri_=G;Vpz(this)};
UJ.prototype.disconnect=function(){this.JSC$19945_channelDebug_.debug("disconnect()");vVD(this);if(this.state_==3){var G=this.JSC$19945_nextRid_++,B=this.JSC$19945_forwardChannelUri_.clone();_.A7(B,"SID",this.sid_);_.A7(B,"RID",G);_.A7(B,"TYPE","terminate");oVD(this,B);G=new nC(this,this.JSC$19945_channelDebug_,this.sid_,G);G.JSC$19926_type_=2;G.JSC$19926_baseUri_=_.St(B.clone());B=!1;if(_.Fz.navigator&&_.Fz.navigator.sendBeacon)try{B=_.Fz.navigator.sendBeacon(G.JSC$19926_baseUri_.toString(),"")}catch(F){}!B&&
_.Fz.Image&&((new Image).src=G.JSC$19926_baseUri_,B=!0);B||(G.JSC$19926_xmlHttp_=w9$(G.JSC$19926_channel_,null),G.JSC$19926_xmlHttp_.send(G.JSC$19926_baseUri_));G.JSC$19926_requestStartTime_=Date.now();RoU(G)}Mpz(this)};
var L72=function(G){G.JSC$19945_backChannelRequest_&&(mv$(G),G.JSC$19945_backChannelRequest_.cancel(),G.JSC$19945_backChannelRequest_=null)},vVD=function(G){L72(G);
G.JSC$19945_backChannelTimerId_&&(_.Fz.clearTimeout(G.JSC$19945_backChannelTimerId_),G.JSC$19945_backChannelTimerId_=null);jJS(G);G.forwardChannelRequestPool_.cancel();G.JSC$19945_forwardChannelTimerId_&&(typeof G.JSC$19945_forwardChannelTimerId_==="number"&&_.Fz.clearTimeout(G.JSC$19945_forwardChannelTimerId_),G.JSC$19945_forwardChannelTimerId_=null)};
UJ.prototype.getState=function(){return this.state_};
var Vpz=function(G){kiA(G.forwardChannelRequestPool_)||G.JSC$19945_forwardChannelTimerId_||(G.JSC$19945_forwardChannelTimerId_=!0,_.hh(G.JSC$19947_onStartForwardChannelTimer_,G),G.JSC$19945_forwardChannelRetryCount_=0)},Y5S=function(G,B){if(W7Q(G.forwardChannelRequestPool_)>=G.forwardChannelRequestPool_.JSC$19936_maxSize_-(G.JSC$19945_forwardChannelTimerId_?1:0))return!1;
if(G.JSC$19945_forwardChannelTimerId_)return G.JSC$19945_channelDebug_.debug("Use the retry request that is already scheduled."),G.JSC$19945_outgoingMaps_=B.JSC$19926_pendingMessages_.concat(G.JSC$19945_outgoingMaps_),!0;if(G.state_==1||G.state_==2||G.JSC$19945_forwardChannelRetryCount_>=(G.JSC$19945_failFast_?0:G.JSC$19945_forwardChannelMaxRetries_))return!1;G.JSC$19945_channelDebug_.debug("Going to retry POST");G.JSC$19945_forwardChannelTimerId_=WCZ((0,_.R_)(G.JSC$19947_onStartForwardChannelTimer_,
G,B),p9G(G,G.JSC$19945_forwardChannelRetryCount_));G.JSC$19945_forwardChannelRetryCount_++;return!0};
UJ.prototype.JSC$19947_onStartForwardChannelTimer_=function(G){if(this.JSC$19945_forwardChannelTimerId_)if(this.JSC$19945_forwardChannelTimerId_=null,this.JSC$19945_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!G){this.JSC$19945_channelDebug_.debug("open_()");this.JSC$19945_nextRid_=Math.floor(Math.random()*1E5);G=this.JSC$19945_nextRid_++;var B=new nC(this,this.JSC$19945_channelDebug_,"",G),F=this.JSC$19945_extraHeaders_;this.initHeaders_&&(F?(F=_.UK.clone(F),_.UK.extend(F,this.initHeaders_)):
F=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(B.JSC$19926_extraHeaders_=F,F=null);var D;if(this.fastHandshake_)a:{for(var u=D=0;u<this.JSC$19945_outgoingMaps_.length;u++){b:{var R=this.JSC$19945_outgoingMaps_[u];if("__data__"in R.map&&(R=R.map.__data__,typeof R==="string")){R=R.length;break b}R=void 0}if(R===void 0)break;D+=R;if(D>4096){D=u;break a}if(D===4096||u===this.JSC$19945_outgoingMaps_.length-1){D=u+1;break a}}D=this.maxMapsPerRequest_}else D=
this.maxMapsPerRequest_;D=AfU(this,B,D);u=this.JSC$19945_forwardChannelUri_.clone();_.A7(u,"RID",G);_.A7(u,"CVER",22);this.httpSessionIdParam_&&_.A7(u,"X-HTTP-Session-Id",this.httpSessionIdParam_);oVD(this,u);F&&(this.encodeInitMessageHeaders_?D="headers="+_.S5(x9$(F))+"&"+D:this.httpHeadersOverwriteParam_&&PEN(u,this.httpHeadersOverwriteParam_,F));O3B(this.forwardChannelRequestPool_,B);this.blockingHandshake_&&_.A7(u,"TYPE","init");this.fastHandshake_?(_.A7(u,"$req",D),_.A7(u,"SID","null"),B.decodeInitialResponse_=
!0,u6U(B,u,null)):u6U(B,u,D);this.state_=2}}else this.state_==3&&(G?dvH(this,G):this.JSC$19945_outgoingMaps_.length==0?this.JSC$19945_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):kiA(this.forwardChannelRequestPool_)||(dvH(this),this.JSC$19945_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var dvH=function(G,B){var F;B?F=B.JSC$19926_rid_:F=G.JSC$19945_nextRid_++;var D=G.JSC$19945_forwardChannelUri_.clone();_.A7(D,"SID",G.sid_);_.A7(D,"RID",F);_.A7(D,"AID",G.JSC$19945_lastArrayId_);oVD(G,D);G.httpHeadersOverwriteParam_&&G.JSC$19945_extraHeaders_&&PEN(D,G.httpHeadersOverwriteParam_,G.JSC$19945_extraHeaders_);F=new nC(G,G.JSC$19945_channelDebug_,G.sid_,F,G.JSC$19945_forwardChannelRetryCount_+1);G.httpHeadersOverwriteParam_===null&&(F.JSC$19926_extraHeaders_=G.JSC$19945_extraHeaders_);
B&&(G.JSC$19945_outgoingMaps_=B.JSC$19926_pendingMessages_.concat(G.JSC$19945_outgoingMaps_));B=AfU(G,F,G.maxMapsPerRequest_);F.setTimeout(Math.round(G.JSC$19945_forwardChannelRequestTimeoutMs_*.5)+Math.round(G.JSC$19945_forwardChannelRequestTimeoutMs_*.5*Math.random()));O3B(G.forwardChannelRequestPool_,F);u6U(F,D,B)},oVD=function(G,B){G.JSC$19945_extraParams_&&_.UK.forEach(G.JSC$19945_extraParams_,function(F,D){_.A7(B,D,F)});
G.handler_&&_.UK.forEach({},function(F,D){_.A7(B,D,F)})},AfU=function(G,B,F){F=Math.min(G.JSC$19945_outgoingMaps_.length,F);
var D=G.handler_?(0,_.R_)(G.handler_.JSC$19951_badMapError,G.handler_,G):null;a:{for(var u=G.JSC$19945_outgoingMaps_,R=-1;;){var N=["count="+F];R==-1?F>0?(R=u[0].JSC$19933_mapId,N.push("ofs="+R)):R=0:N.push("ofs="+R);for(var y=!0,U=0;U<F;U++){var q=u[U].JSC$19933_mapId,h=u[U].map;q-=R;if(q<0)R=Math.max(0,u[U].JSC$19933_mapId-100),y=!1;else try{q="req"+q+"_"||"";try{var K=h instanceof Map?h:Object.entries(h);for(var a=_.C(K),m=a.next();!m.done;m=a.next()){var L=_.C(m.value),W=L.next().value,e=L.next().value,
b=e;_.Zc(e)&&(b=_.Q_(e));N.push(q+W+"="+encodeURIComponent(b))}}catch(M){throw N.push(q+"type="+encodeURIComponent("_badmap")),M;}}catch(M){D&&D(h)}}if(y){K=N.join("&");break a}}K=void 0}G=G.JSC$19945_outgoingMaps_.splice(0,F);B.JSC$19926_pendingMessages_=G;return K},Jf$=function(G){G.JSC$19945_backChannelRequest_||G.JSC$19945_backChannelTimerId_||(G.JSC$19945_backChannelAttemptId_=1,_.hh(G.JSC$19947_onStartBackChannelTimer_,G),G.JSC$19945_backChannelRetryCount_=0)},rfG=function(G){if(G.JSC$19945_backChannelRequest_||
G.JSC$19945_backChannelTimerId_||G.JSC$19945_backChannelRetryCount_>=3)return!1;
G.JSC$19945_channelDebug_.debug("Going to retry GET");G.JSC$19945_backChannelAttemptId_++;G.JSC$19945_backChannelTimerId_=WCZ((0,_.R_)(G.JSC$19947_onStartBackChannelTimer_,G),p9G(G,G.JSC$19945_backChannelRetryCount_));G.JSC$19945_backChannelRetryCount_++;return!0};
UJ.prototype.JSC$19947_onStartBackChannelTimer_=function(){this.JSC$19945_backChannelTimerId_=null;cfz(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19945_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19945_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19945_backChannelRequest_+" "+this.handshakeRttMs_);else{var G=4*this.handshakeRttMs_;this.JSC$19945_channelDebug_.info("BP detection timer enabled: "+G);this.bpDetectionTimerId_=WCZ((0,_.R_)(this.onBpDetectionTimer_,
this),G)}};
UJ.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19945_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19945_backChannelRequest_.JSC$19926_xmlHttp_!=null){var G=this.JSC$19945_backChannelRequest_.JSC$19926_xmlHttp_.getResponseText();G&&this.JSC$19945_channelDebug_.warning("Timer should have been cancelled : "+G)}this.JSC$19945_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Nw(10);L72(this);cfz(this)}else this.JSC$19945_channelDebug_.warning("Invalid operation.")};
var mv$=function(G){G.bpDetectionTimerId_!=null&&(G.JSC$19945_channelDebug_.debug("Cancel the BP detection timer."),_.Fz.clearTimeout(G.bpDetectionTimerId_),G.bpDetectionTimerId_=null)},cfz=function(G){G.JSC$19945_channelDebug_.debug("Creating new HttpRequest");
G.JSC$19945_backChannelRequest_=new nC(G,G.JSC$19945_channelDebug_,G.sid_,"rpc",G.JSC$19945_backChannelAttemptId_);G.httpHeadersOverwriteParam_===null&&(G.JSC$19945_backChannelRequest_.JSC$19926_extraHeaders_=G.JSC$19945_extraHeaders_);G.JSC$19945_backChannelRequest_.JSC$19926_readyStateChangeThrottleMs_=0;var B=G.JSC$19945_backChannelUri_.clone();_.A7(B,"RID","rpc");_.A7(B,"SID",G.sid_);_.A7(B,"AID",G.JSC$19945_lastArrayId_);_.A7(B,"CI",G.enableStreaming_?"0":"1");!G.enableStreaming_&&G.longPollingTimeout_&&
_.A7(B,"TO",G.longPollingTimeout_);_.A7(B,"TYPE","xmlhttp");oVD(G,B);G.httpHeadersOverwriteParam_&&G.JSC$19945_extraHeaders_&&PEN(B,G.httpHeadersOverwriteParam_,G.JSC$19945_extraHeaders_);G.backChannelRequestTimeoutMs_&&G.JSC$19945_backChannelRequest_.setTimeout(G.backChannelRequestTimeoutMs_);var F=G.JSC$19945_backChannelRequest_,D=G.JSC$19945_hostPrefix_;F.JSC$19926_type_=1;F.JSC$19926_baseUri_=_.St(B.clone());F.JSC$19926_postData_=null;F.decodeChunks_=!0;Dv2(F,D);G.JSC$19945_channelDebug_.debug("New Request created")};
UJ.prototype.JSC$19947_onBackChannelDead_=function(){this.JSC$19945_deadBackChannelTimerId_!=null&&(this.JSC$19945_deadBackChannelTimerId_=null,L72(this),rfG(this),Nw(19))};
var jJS=function(G){G.JSC$19945_deadBackChannelTimerId_!=null&&(_.Fz.clearTimeout(G.JSC$19945_deadBackChannelTimerId_),G.JSC$19945_deadBackChannelTimerId_=null)},ho$=function(G,B){G.JSC$19945_channelDebug_.debug("Request complete");
var F=null;if(G.JSC$19945_backChannelRequest_==B){jJS(G);mv$(G);G.JSC$19945_backChannelRequest_=null;var D=2}else if(QJA(G.forwardChannelRequestPool_,B))F=B.JSC$19926_pendingMessages_,eoZ(G.forwardChannelRequestPool_,B),D=1;else return;if(G.state_!=0)if(B.JSC$19926_successful_)D==1?(rSD(B.JSC$19926_postData_?B.JSC$19926_postData_.length:0,Date.now()-B.JSC$19926_requestStartTime_,G.JSC$19945_forwardChannelRetryCount_),Vpz(G)):Jf$(G);else{var u=B.JSC$19926_lastStatusCode_,R=B.getLastError();if(R==3||
R==0&&u>0)G.JSC$19945_channelDebug_.debug("Not retrying due to error type"),u>200&&(G.errorResponseStatusCode_=B.JSC$19926_lastStatusCode_);else{G.JSC$19945_channelDebug_.debug(function(){return"Maybe retrying, last error: "+BAQ(R,G.errorResponseStatusCode_)});
if(D==1&&Y5S(G,B)||D==2&&rfG(G))return;G.JSC$19945_channelDebug_.debug("Exceeded max number of retries")}F&&F.length>0&&zoQ(G.forwardChannelRequestPool_,F);G.JSC$19945_channelDebug_.debug("Error: HTTP request failed");switch(R){case 1:Rf(G,5);break;case 4:Rf(G,10);break;case 3:Rf(G,6);break;default:Rf(G,2)}}},p9G=function(G,B){var F=G.JSC$19945_baseRetryDelayMs_+Math.floor(Math.random()*G.JSC$19945_retryDelaySeedMs_);
G.isActive()||(G.JSC$19945_channelDebug_.debug("Inactive channel"),F*=2);return F*B};
UJ.prototype.onInput_=function(G,B){for(var F=0;F<G.length;F++){var D=G[F],u=D[0];if(u<=this.JSC$19945_lastArrayId_)this.JSC$19945_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+u+", lastArrayId: "+this.JSC$19945_lastArrayId_);else if(u>this.JSC$19945_lastArrayId_+1&&this.JSC$19945_lastArrayId_>-1&&this.JSC$19945_channelDebug_.warning("Received non-consecutive message with arrayId: "+u+", lastArrayId: "+this.JSC$19945_lastArrayId_),this.JSC$19945_lastArrayId_=u,
D=D[1],this.state_==2)if(D[0]=="c"){this.sid_=D[1];this.JSC$19945_hostPrefix_=D[2];u=D[3];u!=null&&(this.JSC$19947_channelVersion_=u,this.JSC$19945_channelDebug_.info("VER="+this.JSC$19947_channelVersion_));u=D[4];u!=null&&(this.serverVersion_=u,this.JSC$19945_channelDebug_.info("SVER="+this.serverVersion_));D=D[5];D!=null&&typeof D==="number"&&D>0&&(this.backChannelRequestTimeoutMs_=D*=1.5,this.JSC$19945_channelDebug_.info("backChannelRequestTimeoutMs_="+D));if(D=B.JSC$19926_xmlHttp_){var R=SXA(D,
"X-Client-Wire-Protocol");R&&(u=this.forwardChannelRequestPool_,!u.requestPool_&&(_.ll(R,"spdy")||_.ll(R,"quic")||_.ll(R,"h2"))&&(u.JSC$19936_maxSize_=u.maxPoolSizeConfigured_,u.requestPool_=new Set,u.JSC$19936_request_&&(O3B(u,u.JSC$19936_request_),u.JSC$19936_request_=null)));this.httpSessionIdParam_&&((D=SXA(D,"X-HTTP-Session-Id"))?(this.httpSessionId_=D,_.A7(this.JSC$19945_forwardChannelUri_,this.httpSessionIdParam_,D)):this.JSC$19945_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19951_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-B.JSC$19926_requestStartTime_,this.JSC$19945_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));D=B;u=b3B(this,this.JSC$19945_supportsCrossDomainXhrs_?this.JSC$19945_hostPrefix_:null,this.JSC$19945_path_);this.JSC$19945_channelDebug_.debug("GetBackChannelUri: "+u);this.JSC$19945_backChannelUri_=u;D.initialResponseDecoded_?(this.JSC$19945_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
eoZ(this.forwardChannelRequestPool_,D),u=D,(R=this.backChannelRequestTimeoutMs_)&&u.setTimeout(R),u.JSC$19926_watchDogTimerId_&&(yfN(u),RoU(u)),this.JSC$19945_backChannelRequest_=D):Jf$(this);this.JSC$19945_outgoingMaps_.length>0&&Vpz(this)}else D[0]!="stop"&&D[0]!="close"||Rf(this,7);else this.state_==3&&(D[0]=="stop"||D[0]=="close"?D[0]=="stop"?Rf(this,7):this.disconnect():D[0]!="noop"&&this.handler_&&this.handler_.JSC$19951_channelHandleArray(D),this.JSC$19945_backChannelRetryCount_=0)}};
var Rf=function(G,B){G.JSC$19945_channelDebug_.info("Error code "+B);if(B==2){var F=(0,_.R_)(G.testNetworkCallback_,G),D=G.networkTestUrl_,u=!D;D=new _.ea(D||"//www.google.com/images/cleardot.gif");_.Fz.location&&_.Fz.location.protocol=="http"||_.d2(D,"https");_.St(D);u?ka2(D.toString(),F):OWN(D.toString(),F)}else Nw(2);G.onError_(B)};
UJ.prototype.testNetworkCallback_=function(G){G?(this.JSC$19945_channelDebug_.info("Successfully pinged google.com"),Nw(2)):(this.JSC$19945_channelDebug_.info("Failed to ping google.com"),Nw(1))};
UJ.prototype.onError_=function(G){this.JSC$19945_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$19951_channelError(G);Mpz(this);vVD(this)};
var Mpz=function(G){G.state_=0;G.nonAckedMapsAtChannelClose_=[];if(G.handler_){var B=$vZ(G.forwardChannelRequestPool_);if(B.length!=0||G.JSC$19945_outgoingMaps_.length!=0)G.JSC$19945_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+B.length+", outgoing: "+G.JSC$19945_outgoingMaps_.length}),_.tg(G.nonAckedMapsAtChannelClose_,B),_.tg(G.nonAckedMapsAtChannelClose_,G.JSC$19945_outgoingMaps_),G.forwardChannelRequestPool_.JSC$19936_pendingMessages_.length=0,_.II(G.JSC$19945_outgoingMaps_),
G.JSC$19945_outgoingMaps_.length=0;
G.handler_.JSC$19951_channelClosed()}},TAZ=function(G){if(G.state_==0)return G.nonAckedMapsAtChannelClose_;
var B=[];_.tg(B,$vZ(G.forwardChannelRequestPool_));_.tg(B,G.JSC$19945_outgoingMaps_);return B},b3B=function(G,B,F){var D=_.pn(F);
D.JSC$10342_domain_!=""?(B&&_.Jh(D,B+"."+D.JSC$10342_domain_),_.cp(D,D.JSC$10342_port_)):(D=_.Fz.location,D=L$D(D.protocol,B?B+"."+D.hostname:D.hostname,+D.port,F));B=G.httpSessionIdParam_;F=G.httpSessionId_;B&&F&&_.A7(D,B,F);_.A7(D,"VER",G.JSC$19947_channelVersion_);oVD(G,D);return D},w9$=function(G,B,F){if(B&&!G.JSC$19945_supportsCrossDomainXhrs_)throw Error("Qk");
B=G.usesFetchStreams_&&!G.JSC$19945_xmlHttpFactory_?new _.jt(new ZgB({streamBinaryChunks:F})):new _.jt(G.JSC$19945_xmlHttpFactory_);B.JSC$10106_withCredentials_=G.JSC$19945_supportsCrossDomainXhrs_;return B};
UJ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Is$=function(){};
_.w=Is$.prototype;_.w.JSC$19951_channelOpened=function(){};
_.w.JSC$19951_channelHandleArray=function(){};
_.w.JSC$19951_channelError=function(){};
_.w.JSC$19951_channelClosed=function(){};
_.w.isActive=function(){return!0};
_.w.JSC$19951_badMapError=function(){};var C1=function(G,B){_.W1.call(this);this.JSC$19954_channel_=new UJ(B);this.JSC$19954_url_=G;this.messageUrlParams_=B&&B.messageUrlParams||null;G=B&&B.messageHeaders||null;B&&B.clientProtocolHeaderRequired&&(G?_.UK.set(G,"X-Client-Protocol","webchannel"):G=_.UK.create("X-Client-Protocol","webchannel"));this.JSC$19954_channel_.JSC$19945_extraHeaders_=G;G=B&&B.initMessageHeaders||null;B&&B.messageContentType&&(G?_.UK.set(G,"X-WebChannel-Content-Type",B.messageContentType):G=_.UK.create("X-WebChannel-Content-Type",
B.messageContentType));B&&B.clientProfile&&(G?_.UK.set(G,"X-WebChannel-Client-Profile",B.clientProfile):G=_.UK.create("X-WebChannel-Client-Profile",B.clientProfile));this.JSC$19954_channel_.initHeaders_=G;(G=B&&B.httpHeadersOverwriteParam)&&!_.NL(G)&&(this.JSC$19954_channel_.httpHeadersOverwriteParam_=G);this.supportsCrossDomainXhr_=B&&B.supportsCrossDomainXhr||!1;this.sendRawJson_=B&&B.sendRawJson||!1;(B=B&&B.httpSessionIdParam)&&!_.NL(B)&&(this.JSC$19954_channel_.httpSessionIdParam_=B,_.UK.containsKey(this.messageUrlParams_,
B)&&_.UK.remove(this.messageUrlParams_,B));this.channelHandler_=new wf(this)};
_.IC(C1,_.W1);C1.prototype.open=function(){this.JSC$19954_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19954_channel_.JSC$19945_supportsCrossDomainXhrs_=!0);this.JSC$19954_channel_.connect(this.JSC$19954_url_,this.messageUrlParams_||void 0)};
C1.prototype.close=function(){this.JSC$19954_channel_.disconnect()};
C1.prototype.send=function(G){var B=this.JSC$19954_channel_;if(typeof G==="string"){var F={};F.__data__=G;G=F}else this.sendRawJson_&&(F={},F.__data__=_.Q_(G),G=F);B.JSC$19945_outgoingMaps_.push(new H3z(B.JSC$19945_nextMapId_++,G));B.state_==3&&Vpz(B)};
C1.prototype.disposeInternal=function(){this.JSC$19954_channel_.handler_=null;delete this.channelHandler_;this.JSC$19954_channel_.disconnect();delete this.JSC$19954_channel_;C1.superClass_.disposeInternal.call(this)};
var fsA=function(G){gYS.call(this);G.__headers__&&(this.headers=G.__headers__,this.statusCode=G.__status__,delete G.__headers__,delete G.__status__);var B=G.__sm__;B?this.data=(this.metadataKey=_.UK.getAnyKey(B))?_.UK.get(B,this.metadataKey):B:this.data=G};
_.IC(fsA,gYS);var tp$=function(G){SeZ.call(this);this.status=1;this.errorCode=G};
_.IC(tp$,SeZ);var wf=function(G){this.JSC$19961_channel_=G};
_.IC(wf,Is$);wf.prototype.JSC$19951_channelOpened=function(){this.JSC$19961_channel_.dispatchEvent("w")};
wf.prototype.JSC$19951_channelHandleArray=function(G){this.JSC$19961_channel_.dispatchEvent(new fsA(G))};
wf.prototype.JSC$19951_channelError=function(G){this.JSC$19961_channel_.dispatchEvent(new tp$(G))};
wf.prototype.JSC$19951_channelClosed=function(){this.JSC$19961_channel_.dispatchEvent("x")};
var Z32=function(G,B){this.transportChannel_=G;this.JSC$19964_channel_=B},gVD=function(G){return TAZ(G.JSC$19964_channel_).map(function(B){var F=G.transportChannel_;
B=B.map;"__data__"in B?(B=B.__data__,F=F.sendRawJson_?_.fA7(B):B):F=B;return F})};
Z32.prototype.commit=function(G){this.JSC$19964_channel_.forwardChannelFlushedCallback_=G};var S5D=function(G,B,F){for(var D=0;D<G.getSize().height;D++)for(var u=0;u<G.getSize().width;u++)B.call(F,G.array_[D][u],D,u,G)},sJD=function(G,B){var F=new qw(G.getSize());
S5D(G,function(D,u,R){F.array_[u][R]=B.call(void 0,D,u,R,G)});
return F},vTS=function(G,B){for(var F=[],D=0;D<G;D++){F[D]=[];
for(var u=0;u<B;u++)F[D][u]=0}return F};
qw.prototype.add=function(G){if(!K$$(this.size_,G.getSize()))throw Error("Tk");return sJD(this,function(B,F,D){return B+G.array_[F][D]})};
qw.prototype.equals=function(G,B){if(this.size_.width!=G.size_.width||this.size_.height!=G.size_.height)return!1;B=B||0;for(var F=0;F<this.size_.height;F++)for(var D=0;D<this.size_.width;D++)if(!h2U(this.array_[F][D],G.array_[F][D],B))return!1;return!0};
qw.prototype.getSize=function(){return this.size_};
var NM=function(G,B,F){return B>=0&&B<G.size_.height&&F>=0&&F<G.size_.width?G.array_[B][F]:null};
qw.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var xvQ=function(G,B,F,D){if(!(B>=0&&B<G.size_.height&&F>=0&&F<G.size_.width))throw Error("Uk`"+B+"`"+F+"`"+G.size_.height+"`"+G.size_.width);G.array_[B][F]=D};
qw.prototype.multiply=function(G){if(G instanceof qw){if(this.size_.width!=G.getSize().height)throw Error("Vk");return P3Z(this,G)}if(typeof G==="number")return GlN(this,G);throw Error("Wk");};
var P3Z=function(G,B){var F=new qw(G.size_.height,B.getSize().width);S5D(F,function(D,u,R){for(var N=D=0;N<this.size_.width;N++)D+=NM(this,u,N)*NM(B,N,R);xvQ(F,u,R,D)},G);
return F},GlN=function(G,B){return sJD(G,function(F){return F*B})};var yn=function(G){B4Q.dispatchEvent(new iLG(B4Q,G))},B4Q=new _.W1,iLG=function(G,B){_.T_.call(this,"statevent",G);
this.stat=B};
_.r(iLG,_.T_);_.w=hO.prototype;_.w.JSC$19974_extraHeaders_=null;_.w.JSC$19974_successful_=!1;_.w.JSC$19974_watchDogTimerId_=null;_.w.JSC$19974_watchDogTimeoutTime_=null;_.w.JSC$19974_requestStartTime_=null;_.w.JSC$19974_type_=null;_.w.JSC$19974_baseUri_=null;_.w.JSC$19974_requestUri_=null;_.w.JSC$19974_postData_=null;_.w.JSC$19974_xmlHttp_=null;_.w.JSC$19974_xmlHttpChunkStart_=0;_.w.trident_=null;_.w.JSC$19974_verb_=null;_.w.JSC$19974_lastError_=null;_.w.JSC$19974_lastStatusCode_=-1;_.w.sendClose_=!0;
_.w.JSC$19974_cancelled_=!1;_.w.JSC$19974_readyStateChangeThrottleMs_=0;_.w.JSC$19974_readyStateChangeThrottle_=null;var FPS=function(G,B){switch(G){case 0:return"Non-200 return code ("+B+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},D2S={},ukD={};
hO.prototype.setTimeout=function(G){this.timeout_=G};
var wMU=function(G,B,F){G.JSC$19974_type_=1;G.JSC$19974_baseUri_=_.St(B.clone());G.JSC$19974_postData_=F;G.decodeChunks_=!0;R_B(G,null)},CIS=function(G,B,F,D,u){G.JSC$19974_type_=1;
G.JSC$19974_baseUri_=_.St(B.clone());G.JSC$19974_postData_=null;G.decodeChunks_=F;u&&(G.sendClose_=!1);R_B(G,D)},R_B=function(G,B){G.JSC$19974_requestStartTime_=Date.now();
N4D(G);G.JSC$19974_requestUri_=G.JSC$19974_baseUri_.clone();CJ2(G.JSC$19974_requestUri_,"t",G.JSC$19972_retryId_);G.JSC$19974_xmlHttpChunkStart_=0;G.JSC$19974_xmlHttp_=G.JSC$19972_channel_.JSC$19981_createXhrIo(G.JSC$19972_channel_.JSC$19981_shouldUseSecondaryDomains()?B:null);G.JSC$19974_readyStateChangeThrottleMs_>0&&(G.JSC$19974_readyStateChangeThrottle_=new _.s_((0,_.R_)(G.JSC$19974_xmlHttpHandler_,G,G.JSC$19974_xmlHttp_),G.JSC$19974_readyStateChangeThrottleMs_));G.JSC$19972_eventHandler_.listen(G.JSC$19974_xmlHttp_,
"readystatechange",G.JSC$19974_readyStateChangeHandler_);B=G.JSC$19974_extraHeaders_?_.UK.clone(G.JSC$19974_extraHeaders_):{};G.JSC$19974_postData_?(G.JSC$19974_verb_="POST",B["Content-Type"]="application/x-www-form-urlencoded",G.JSC$19974_xmlHttp_.send(G.JSC$19974_requestUri_,G.JSC$19974_verb_,G.JSC$19974_postData_,B)):(G.JSC$19974_verb_="GET",G.sendClose_&&!_.Bz&&(B.Connection="close"),G.JSC$19974_xmlHttp_.send(G.JSC$19974_requestUri_,G.JSC$19974_verb_,null,B));G.JSC$19972_channel_.notifyServerReachabilityEvent(1);
B=G.JSC$19972_channelDebug_;var F=G.JSC$19974_postData_;if(F){var D="";F=F.split("&");for(var u=0;u<F.length;u++){var R=F[u].split("=");if(R.length>1){var N=R[0];R=R[1];var y=N.split("_");D=y.length>=2&&y[1]=="type"?D+(N+"="+R+"&"):D+(N+"=redacted&")}}}else D=null;B.info("XMLHTTP REQ ("+G.JSC$19972_rid_+") [attempt "+G.JSC$19972_retryId_+"]: "+G.JSC$19974_verb_+"\n"+G.JSC$19974_requestUri_+"\n"+D)};
hO.prototype.JSC$19974_readyStateChangeHandler_=function(G){G=G.target;var B=this.JSC$19974_readyStateChangeThrottle_;B&&_.LG(G)==3?(this.JSC$19972_channelDebug_.debug("Throttling readystatechange."),B.fire()):this.JSC$19974_xmlHttpHandler_(G)};
hO.prototype.JSC$19974_xmlHttpHandler_=function(G){try{if(G==this.JSC$19974_xmlHttp_)a:{var B=_.LG(this.JSC$19974_xmlHttp_),F=this.JSC$19974_xmlHttp_.JSC$10106_lastErrorCode_,D=this.JSC$19974_xmlHttp_.getStatus();if(_.Bz&&!_.s$("420+")){if(B<4)break a}else if(B<3||B==3&&!this.JSC$19974_xmlHttp_.getResponseText())break a;this.JSC$19974_cancelled_||B!=4||F==7||(F==8||D<=0?this.JSC$19972_channel_.notifyServerReachabilityEvent(3):this.JSC$19972_channel_.notifyServerReachabilityEvent(2));y3$(this);var u=
this.JSC$19974_xmlHttp_.getStatus();this.JSC$19974_lastStatusCode_=u;var R=this.JSC$19974_xmlHttp_.getResponseText();R||this.JSC$19972_channelDebug_.debug("No response text for uri "+this.JSC$19974_requestUri_+" status "+u);this.JSC$19974_successful_=u==200;this.JSC$19972_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19972_rid_+") [ attempt "+this.JSC$19972_retryId_+"]: "+this.JSC$19974_verb_+"\n"+this.JSC$19974_requestUri_+"\n"+B+" "+u);if(this.JSC$19974_successful_){B==4&&njZ(this);if(this.decodeChunks_){for(G=
!0;!this.JSC$19974_cancelled_&&this.JSC$19974_xmlHttpChunkStart_<R.length;){var N=lpD(this,R);if(N==ukD){B==4&&(this.JSC$19974_lastError_=4,yn(15),G=!1);U2H(this.JSC$19972_channelDebug_,this.JSC$19972_rid_,null,"[Incomplete Response]");break}else if(N==D2S){this.JSC$19974_lastError_=4;yn(16);U2H(this.JSC$19972_channelDebug_,this.JSC$19972_rid_,R,"[Invalid Chunk]");G=!1;break}else U2H(this.JSC$19972_channelDebug_,this.JSC$19972_rid_,N,null),qB2(this,N)}B==4&&R.length==0&&(this.JSC$19974_lastError_=
1,yn(17),G=!1);this.JSC$19974_successful_=this.JSC$19974_successful_&&G;G||(U2H(this.JSC$19972_channelDebug_,this.JSC$19972_rid_,R,"[Invalid Chunked Response]"),njZ(this),EjS(this))}else U2H(this.JSC$19972_channelDebug_,this.JSC$19972_rid_,R,null),qB2(this,R);this.JSC$19974_successful_&&!this.JSC$19974_cancelled_&&(B==4?this.JSC$19972_channel_.JSC$19981_onRequestComplete(this):(this.JSC$19974_successful_=!1,N4D(this)))}else u==400&&R.indexOf("Unknown SID")>0?(this.JSC$19974_lastError_=3,yn(13),this.JSC$19972_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19972_rid_+")")):(this.JSC$19974_lastError_=0,yn(14),this.JSC$19972_channelDebug_.warning("XMLHTTP Bad status "+u+" ("+this.JSC$19972_rid_+")")),njZ(this),EjS(this)}else this.JSC$19972_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(y){this.JSC$19972_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var lpD=function(G,B){var F=G.JSC$19974_xmlHttpChunkStart_,D=B.indexOf("\n",F);if(D==-1)return ukD;F=Number(B.substring(F,D));if(isNaN(F))return D2S;D+=1;if(D+F>B.length)return ukD;B=B.slice(D,D+F);G.JSC$19974_xmlHttpChunkStart_=D+F;return B};
hO.prototype.cancel=function(){this.JSC$19974_cancelled_=!0;njZ(this)};
var N4D=function(G){G.JSC$19974_watchDogTimeoutTime_=Date.now()+G.timeout_;h_G(G,G.timeout_)},h_G=function(G,B){if(G.JSC$19974_watchDogTimerId_!=null)throw Error("Pk");
G.JSC$19974_watchDogTimerId_=EJ((0,_.R_)(G.JSC$19974_onWatchDogTimeout_,G),B)},y3$=function(G){G.JSC$19974_watchDogTimerId_&&(_.Fz.clearTimeout(G.JSC$19974_watchDogTimerId_),G.JSC$19974_watchDogTimerId_=null)};
hO.prototype.JSC$19974_onWatchDogTimeout_=function(){this.JSC$19974_watchDogTimerId_=null;var G=Date.now();G-this.JSC$19974_watchDogTimeoutTime_>=0?(this.JSC$19972_channelDebug_.info("TIMEOUT: "+this.JSC$19974_requestUri_),this.JSC$19974_type_!=2&&this.JSC$19972_channel_.notifyServerReachabilityEvent(3),njZ(this),this.JSC$19974_lastError_=2,yn(18),EjS(this)):(this.JSC$19972_channelDebug_.warning("WatchDog timer called too early"),h_G(this,this.JSC$19974_watchDogTimeoutTime_-G))};
var EjS=function(G){G.JSC$19972_channel_.JSC$19981_isClosed()||G.JSC$19974_cancelled_||G.JSC$19972_channel_.JSC$19981_onRequestComplete(G)},njZ=function(G){y3$(G);
_.ve(G.JSC$19974_readyStateChangeThrottle_);G.JSC$19974_readyStateChangeThrottle_=null;G.pollingTimer_.stop();G.JSC$19972_eventHandler_.removeAll();if(G.JSC$19974_xmlHttp_){var B=G.JSC$19974_xmlHttp_;G.JSC$19974_xmlHttp_=null;B.abort();B.dispose()}G.trident_&&(G.trident_=null)};
hO.prototype.getLastError=function(){return this.JSC$19974_lastError_};
var qB2=function(G,B){try{G.JSC$19972_channel_.JSC$19981_onRequestData(G,B),G.JSC$19972_channel_.notifyServerReachabilityEvent(4)}catch(F){}};var U2H=function(G,B,F,D){var u=G.info;a:if(F&&F!="y2f%"){try{var R=JSON.parse(F);if(R)for(var N=0;N<R.length;N++)if(Array.isArray(R[N])){var y=R[N];if(!(y.length<2)){var U=y[1];if(Array.isArray(U)&&!(U.length<1)){var q=U[0];if(q!="noop"&&q!="stop")for(var h=1;h<U.length;h++)U[h]=""}}}var K=_.Q_(R);break a}catch(a){G.debug("Exception parsing expected JS array - probably was not JS");K=F;break a}K=void 0}else K=F;u.call(G,"XMLHTTP TEXT ("+B+"): "+K+(D?" "+D:""))};
KC.prototype.debug=function(G){this.info(G)};
KC.prototype.info=function(){};
KC.prototype.warning=function(){};_.w=YFQ.prototype;_.w.JSC$19981_extraHeaders_=null;_.w.JSC$19981_request_=null;_.w.receivedIntermediateResult_=!1;_.w.JSC$19981_path_=null;_.w.state_=null;_.w.JSC$19981_lastStatusCode_=-1;_.w.JSC$19981_hostPrefix_=null;_.w.blockedPrefix_=null;
_.w.connect=function(G){this.JSC$19981_path_=G;G=KPA(this.JSC$19979_channel_,this.JSC$19981_path_);yn(3);Date.now();var B=this.JSC$19979_channel_.firstTestResults_;B!=null?(this.JSC$19981_hostPrefix_=B[0],(this.blockedPrefix_=B[1])?(this.state_=1,apG(this)):(this.state_=2,m2H(this))):(CJ2(G,"MODE","init"),this.JSC$19981_request_=new hO(this,this.JSC$19979_channelDebug_),this.JSC$19981_request_.JSC$19974_extraHeaders_=this.JSC$19981_extraHeaders_,CIS(this.JSC$19981_request_,G,!1,null,!0),this.state_=
0)};
var apG=function(G){var B=XM2(G.JSC$19979_channel_,G.blockedPrefix_,"/mail/images/cleardot.gif");_.St(B);MIG(B.toString(),5E3,(0,_.R_)(G.checkBlockedCallback_,G),3,2E3);G.notifyServerReachabilityEvent(1)};
YFQ.prototype.checkBlockedCallback_=function(G){if(G)this.state_=2,m2H(this);else{yn(4);var B=this.JSC$19979_channel_;B.JSC$19982_channelDebug_.debug("Test Connection Blocked");B.JSC$19986_lastStatusCode_=B.connectionTest_.JSC$19981_lastStatusCode_;n1(B,9)}G&&this.notifyServerReachabilityEvent(2)};
var m2H=function(G){G.JSC$19979_channelDebug_.debug("TestConnection: starting stage 2");var B=G.JSC$19979_channel_.secondTestResults_;B!=null?(G.JSC$19979_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+B?"Buffered":"Unbuffered"),yn(5),B?(yn(11),Q8G(G.JSC$19979_channel_,G,!1)):(yn(12),Q8G(G.JSC$19979_channel_,G,!0))):(G.JSC$19981_request_=new hO(G,G.JSC$19979_channelDebug_),G.JSC$19981_request_.JSC$19974_extraHeaders_=G.JSC$19981_extraHeaders_,B=j8D(G.JSC$19979_channel_,
G.JSC$19981_hostPrefix_,G.JSC$19981_path_),yn(5),CJ2(B,"TYPE","xmlhttp"),CIS(G.JSC$19981_request_,B,!1,G.JSC$19981_hostPrefix_,!1))};
_.w=YFQ.prototype;_.w.JSC$19981_createXhrIo=function(G){return this.JSC$19979_channel_.JSC$19981_createXhrIo(G)};
_.w.abort=function(){this.JSC$19981_request_&&(this.JSC$19981_request_.cancel(),this.JSC$19981_request_=null);this.JSC$19981_lastStatusCode_=-1};
_.w.JSC$19981_isClosed=function(){return!1};
_.w.JSC$19981_onRequestData=function(G,B){this.JSC$19981_lastStatusCode_=G.JSC$19974_lastStatusCode_;if(this.state_==0)if(this.JSC$19979_channelDebug_.debug("TestConnection: Got data for stage 1"),B){try{var F=this.JSC$19979_parser_.parse(B)}catch(D){LPS(this.JSC$19979_channel_,this);return}this.JSC$19981_hostPrefix_=F[0];this.blockedPrefix_=F[1]}else this.JSC$19979_channelDebug_.debug("TestConnection: Null responseText"),LPS(this.JSC$19979_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(yn(7),Date.now()):B=="11111"?(yn(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19981_lastStatusCode_=200,this.JSC$19981_request_.cancel(),this.JSC$19979_channelDebug_.debug("Test connection succeeded; using streaming connection"),yn(12),Q8G(this.JSC$19979_channel_,this,!0)):(yn(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.w.JSC$19981_onRequestComplete=function(){this.JSC$19981_lastStatusCode_=this.JSC$19981_request_.JSC$19974_lastStatusCode_;this.JSC$19981_request_.JSC$19974_successful_?this.state_==0?(this.JSC$19979_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,apG(this)):(this.state_=2,m2H(this))):this.state_==2&&(this.JSC$19979_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19979_channelDebug_.debug("Test connection succeeded; using streaming connection"),
yn(12),Q8G(this.JSC$19979_channel_,this,!0)):(this.JSC$19979_channelDebug_.debug("Test connection failed; not using streaming"),yn(11),Q8G(this.JSC$19979_channel_,this,!1))):(this.JSC$19979_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?yn(9):this.state_==2&&yn(10),LPS(this.JSC$19979_channel_,this,this.JSC$19981_request_.getLastError()))};
_.w.JSC$19981_shouldUseSecondaryDomains=function(){return this.JSC$19979_channel_.JSC$19981_shouldUseSecondaryDomains()};
_.w.isActive=function(){return this.JSC$19979_channel_.isActive()};
_.w.notifyServerReachabilityEvent=function(G){this.JSC$19979_channel_.notifyServerReachabilityEvent(G)};var r3S=function(G,B){this.JSC$19984_mapId=G;this.map=B;this.context=null};
_.w=aN.prototype;_.w.JSC$19986_extraHeaders_=null;_.w.JSC$19986_extraParams_=null;_.w.forwardChannelRequest_=null;_.w.JSC$19986_backChannelRequest_=null;_.w.JSC$19986_path_=null;_.w.JSC$19986_forwardChannelUri_=null;_.w.JSC$19986_backChannelUri_=null;_.w.JSC$19986_hostPrefix_=null;_.w.JSC$19986_nextRid_=0;_.w.JSC$19986_nextMapId_=0;_.w.handler_=null;_.w.JSC$19986_forwardChannelTimerId_=null;_.w.JSC$19986_backChannelTimerId_=null;_.w.JSC$19986_deadBackChannelTimerId_=null;_.w.connectionTest_=null;
_.w.useChunked_=null;_.w.JSC$19986_lastArrayId_=-1;_.w.JSC$19986_lastPostResponseArrayId_=-1;_.w.JSC$19986_lastStatusCode_=-1;_.w.JSC$19986_forwardChannelRetryCount_=0;_.w.JSC$19986_backChannelRetryCount_=0;_.w.JSC$19986_channelVersion_=8;var WPz={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},HLA=function(G,B,F,D){_.T_.call(this,"timingevent",G);this.size=B;this.rtt=F;this.retries=D};
_.IC(HLA,_.T_);var kl$=function(G){_.T_.call(this,"serverreachability",G)};
_.IC(kl$,_.T_);aN.prototype.connect=function(G,B,F,D,u){this.JSC$19982_channelDebug_.debug("connect()");yn(0);this.JSC$19986_path_=B;this.JSC$19986_extraParams_=F||{};D&&u!==void 0&&(this.JSC$19986_extraParams_.OSID=D,this.JSC$19986_extraParams_.OAID=u);this.asyncTest_?(EJ((0,_.R_)(this.connectTest_,this,G),100),OLN(this)):this.connectTest_(G)};
aN.prototype.disconnect=function(){this.JSC$19982_channelDebug_.debug("disconnect()");e_A(this);if(this.state_==3){var G=this.JSC$19986_nextRid_++,B=this.JSC$19986_forwardChannelUri_.clone();_.A7(B,"SID",this.sid_);_.A7(B,"RID",G);_.A7(B,"TYPE","terminate");$22(this,B);G=new hO(this,this.JSC$19982_channelDebug_,this.sid_,G);G.JSC$19974_type_=2;G.JSC$19974_baseUri_=_.St(B.clone());(new Image).src=G.JSC$19974_baseUri_.toString();G.JSC$19974_requestStartTime_=Date.now();N4D(G)}z_N(this)};
aN.prototype.connectTest_=function(G){this.JSC$19982_channelDebug_.debug("connectTest_()");this.connectionTest_=new YFQ(this,this.JSC$19982_channelDebug_);this.connectionTest_.JSC$19981_extraHeaders_=this.JSC$19986_extraHeaders_;this.connectionTest_.JSC$19979_parser_=this.JSC$19982_parser_;this.connectionTest_.connect(G)};
var OLN=function(G){G.JSC$19982_channelDebug_.debug("connectChannel_()");G.JSC$19986_ensureInState_(1,0);G.JSC$19986_forwardChannelUri_=KPA(G,G.JSC$19986_path_);bLU(G)},e_A=function(G){G.connectionTest_&&(G.connectionTest_.abort(),G.connectionTest_=null);
G.JSC$19986_backChannelRequest_&&(G.JSC$19986_backChannelRequest_.cancel(),G.JSC$19986_backChannelRequest_=null);G.JSC$19986_backChannelTimerId_&&(_.Fz.clearTimeout(G.JSC$19986_backChannelTimerId_),G.JSC$19986_backChannelTimerId_=null);VhQ(G);G.forwardChannelRequest_&&(G.forwardChannelRequest_.cancel(),G.forwardChannelRequest_=null);G.JSC$19986_forwardChannelTimerId_&&(_.Fz.clearTimeout(G.JSC$19986_forwardChannelTimerId_),G.JSC$19986_forwardChannelTimerId_=null)},vjA=function(G,B){if(G.state_==0)throw Error("Xk");
G.JSC$19982_outgoingMaps_.length==1E3&&G.JSC$19982_parser_.stringify(B);G.JSC$19982_outgoingMaps_.push(new r3S(G.JSC$19986_nextMapId_++,B));G.state_!=2&&G.state_!=3||bLU(G)};
aN.prototype.JSC$19981_isClosed=function(){return this.state_==0};
aN.prototype.getState=function(){return this.state_};
var bLU=function(G){G.forwardChannelRequest_||G.JSC$19986_forwardChannelTimerId_||(G.JSC$19986_forwardChannelTimerId_=EJ((0,_.R_)(G.JSC$19986_onStartForwardChannelTimer_,G),0),G.JSC$19986_forwardChannelRetryCount_=0)};
aN.prototype.JSC$19986_onStartForwardChannelTimer_=function(G){this.JSC$19986_forwardChannelTimerId_=null;ojA(this,G)};
var ojA=function(G,B){G.JSC$19982_channelDebug_.debug("startForwardChannel_");if(G.state_==1){if(!B){G.JSC$19982_channelDebug_.debug("open_()");G.JSC$19986_nextRid_=Math.floor(Math.random()*1E5);B=G.JSC$19986_nextRid_++;var F=new hO(G,G.JSC$19982_channelDebug_,"",B);F.JSC$19974_extraHeaders_=G.JSC$19986_extraHeaders_;var D=Mhz(G),u=G.JSC$19986_forwardChannelUri_.clone();_.A7(u,"RID",B);_.A7(u,"CVER","1");$22(G,u);wMU(F,u,D);G.forwardChannelRequest_=F;G.state_=2}}else G.state_==3&&(B?pMG(G,B):G.JSC$19982_outgoingMaps_.length==
0?G.JSC$19982_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):G.forwardChannelRequest_||(pMG(G),G.JSC$19982_channelDebug_.debug("startForwardChannel_ finished, sent request")))},pMG=function(G,B){if(B)if(G.JSC$19986_channelVersion_>6){G.JSC$19982_outgoingMaps_=G.pendingMaps_.concat(G.JSC$19982_outgoingMaps_);
G.pendingMaps_.length=0;var F=G.JSC$19986_nextRid_-1;B=Mhz(G)}else F=B.JSC$19972_rid_,B=B.JSC$19974_postData_;else F=G.JSC$19986_nextRid_++,B=Mhz(G);var D=G.JSC$19986_forwardChannelUri_.clone();_.A7(D,"SID",G.sid_);_.A7(D,"RID",F);_.A7(D,"AID",G.JSC$19986_lastArrayId_);$22(G,D);F=new hO(G,G.JSC$19982_channelDebug_,G.sid_,F,G.JSC$19986_forwardChannelRetryCount_+1);F.JSC$19974_extraHeaders_=G.JSC$19986_extraHeaders_;F.setTimeout(1E4+Math.round(1E4*Math.random()));G.forwardChannelRequest_=F;wMU(F,D,
B)},$22=function(G,B){G.handler_&&(G=G.handler_.JSC$19993_getAdditionalParams())&&_.UK.forEach(G,function(F,D){_.A7(B,D,F)})},Mhz=function(G){var B=Math.min(G.JSC$19982_outgoingMaps_.length,1E3),F=["count="+B];
if(G.JSC$19986_channelVersion_>6&&B>0){var D=G.JSC$19982_outgoingMaps_[0].JSC$19984_mapId;F.push("ofs="+D)}else D=0;for(var u={},R=0;R<B;u={mapId$jscomp$3:void 0},R++){u.mapId$jscomp$3=G.JSC$19982_outgoingMaps_[R].JSC$19984_mapId;var N=G.JSC$19982_outgoingMaps_[R].map;u.mapId$jscomp$3=G.JSC$19986_channelVersion_<=6?R:u.mapId$jscomp$3-D;try{_.UK.forEach(N,function(y){return function(U,q){F.push("req"+y.mapId$jscomp$3+"_"+q+"="+encodeURIComponent(U))}}(u))}catch(y){F.push("req"+u.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}G.pendingMaps_=G.pendingMaps_.concat(G.JSC$19982_outgoingMaps_.splice(0,B));
return F.join("&")},YBH=function(G){G.JSC$19986_backChannelRequest_||G.JSC$19986_backChannelTimerId_||(G.JSC$19986_backChannelAttemptId_=1,G.JSC$19986_backChannelTimerId_=EJ((0,_.R_)(G.JSC$19986_onStartBackChannelTimer_,G),0),G.JSC$19986_backChannelRetryCount_=0)},d2D=function(G){if(G.JSC$19986_backChannelRequest_||G.JSC$19986_backChannelTimerId_||G.JSC$19986_backChannelRetryCount_>=3)return!1;
G.JSC$19982_channelDebug_.debug("Going to retry GET");G.JSC$19986_backChannelAttemptId_++;G.JSC$19986_backChannelTimerId_=EJ((0,_.R_)(G.JSC$19986_onStartBackChannelTimer_,G),A3$(G,G.JSC$19986_backChannelRetryCount_));G.JSC$19986_backChannelRetryCount_++;return!0};
aN.prototype.JSC$19986_onStartBackChannelTimer_=function(){this.JSC$19986_backChannelTimerId_=null;this.JSC$19982_channelDebug_.debug("Creating new HttpRequest");this.JSC$19986_backChannelRequest_=new hO(this,this.JSC$19982_channelDebug_,this.sid_,"rpc",this.JSC$19986_backChannelAttemptId_);this.JSC$19986_backChannelRequest_.JSC$19974_extraHeaders_=this.JSC$19986_extraHeaders_;this.JSC$19986_backChannelRequest_.JSC$19974_readyStateChangeThrottleMs_=0;var G=this.JSC$19986_backChannelUri_.clone();_.A7(G,
"RID","rpc");_.A7(G,"SID",this.sid_);_.A7(G,"CI",this.useChunked_?"0":"1");_.A7(G,"AID",this.JSC$19986_lastArrayId_);$22(this,G);_.A7(G,"TYPE","xmlhttp");CIS(this.JSC$19986_backChannelRequest_,G,!0,this.JSC$19986_hostPrefix_,!1);this.JSC$19982_channelDebug_.debug("New Request created")};
var Q8G=function(G,B,F){G.JSC$19982_channelDebug_.debug("Test Connection Finished");G.useChunked_=G.secondTestResults_==null?F:!G.secondTestResults_;G.JSC$19986_lastStatusCode_=B.JSC$19981_lastStatusCode_;G.asyncTest_||OLN(G)},LPS=function(G,B){G.JSC$19982_channelDebug_.debug("Test Connection Failed");
G.JSC$19986_lastStatusCode_=B.JSC$19981_lastStatusCode_;n1(G,2)};
aN.prototype.JSC$19981_onRequestData=function(G,B){if(this.state_!=0&&(this.JSC$19986_backChannelRequest_==G||this.forwardChannelRequest_==G))if(this.JSC$19986_lastStatusCode_=G.JSC$19974_lastStatusCode_,this.forwardChannelRequest_==G&&this.state_==3)if(this.JSC$19986_channelVersion_>7){try{var F=this.JSC$19982_parser_.parse(B)}catch(D){F=null}if(Array.isArray(F)&&F.length==3)if(B=F,B[0]==0)a:if(this.JSC$19982_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19986_backChannelTimerId_)this.JSC$19982_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19986_backChannelRequest_)if(this.JSC$19986_backChannelRequest_.JSC$19974_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19974_requestStartTime_)VhQ(this),this.JSC$19986_backChannelRequest_.cancel(),this.JSC$19986_backChannelRequest_=null;else break a;else this.JSC$19982_channelDebug_.warning("We do not have a BackChannel established");d2D(this);yn(19)}else this.JSC$19986_lastPostResponseArrayId_=B[1],G=this.JSC$19986_lastPostResponseArrayId_-this.JSC$19986_lastArrayId_,0<
G&&(B=B[2],this.JSC$19982_channelDebug_.debug(B+" bytes (in "+G+" arrays) are outstanding on the BackChannel"),B<37500&&this.useChunked_&&this.JSC$19986_backChannelRetryCount_==0&&!this.JSC$19986_deadBackChannelTimerId_&&(this.JSC$19986_deadBackChannelTimerId_=EJ((0,_.R_)(this.JSC$19986_onBackChannelDead_,this),6E3)));else this.JSC$19982_channelDebug_.debug("Bad POST response data returned"),n1(this,11)}else B!="y2f%"&&(this.JSC$19982_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
n1(this,11));else this.JSC$19986_backChannelRequest_==G&&VhQ(this),_.NL(B)||(G=this.JSC$19982_parser_.parse(B),this.onInput_(G))};
aN.prototype.JSC$19986_onBackChannelDead_=function(){this.JSC$19986_deadBackChannelTimerId_!=null&&(this.JSC$19986_deadBackChannelTimerId_=null,this.JSC$19986_backChannelRequest_.cancel(),this.JSC$19986_backChannelRequest_=null,d2D(this),yn(20))};
var VhQ=function(G){G.JSC$19986_deadBackChannelTimerId_!=null&&(_.Fz.clearTimeout(G.JSC$19986_deadBackChannelTimerId_),G.JSC$19986_deadBackChannelTimerId_=null)};
aN.prototype.JSC$19981_onRequestComplete=function(G){this.JSC$19982_channelDebug_.debug("Request complete");if(this.JSC$19986_backChannelRequest_==G){VhQ(this);this.JSC$19986_backChannelRequest_=null;var B=2}else if(this.forwardChannelRequest_==G)this.forwardChannelRequest_=null,B=1;else return;this.JSC$19986_lastStatusCode_=G.JSC$19974_lastStatusCode_;if(this.state_!=0)if(G.JSC$19974_successful_)if(B==1){B=G.JSC$19974_postData_?G.JSC$19974_postData_.length:0;G=Date.now()-G.JSC$19974_requestStartTime_;
var F=B4Q;F.dispatchEvent(new HLA(F,B,G,this.JSC$19986_forwardChannelRetryCount_));bLU(this);this.handler_&&this.handler_.JSC$19993_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else YBH(this);else{F=G.getLastError();if(F==3||F==7||F==0&&this.JSC$19986_lastStatusCode_>0)this.JSC$19982_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19982_channelDebug_.debug("Maybe retrying, last error: "+FPS(F,this.JSC$19986_lastStatusCode_));var D;if(D=B==1)this.forwardChannelRequest_||
this.JSC$19986_forwardChannelTimerId_||this.state_==1||this.JSC$19986_forwardChannelRetryCount_>=2?D=!1:(this.JSC$19982_channelDebug_.debug("Going to retry POST"),this.JSC$19986_forwardChannelTimerId_=EJ((0,_.R_)(this.JSC$19986_onStartForwardChannelTimer_,this,G),A3$(this,this.JSC$19986_forwardChannelRetryCount_)),this.JSC$19986_forwardChannelRetryCount_++,D=!0);if(D||B==2&&d2D(this))return;this.JSC$19982_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19982_channelDebug_.debug("Error: HTTP request failed");
switch(F){case 1:n1(this,5);break;case 4:n1(this,10);break;case 3:n1(this,6);break;case 7:n1(this,12);break;default:n1(this,2)}}};
var A3$=function(G,B){var F=5E3+Math.floor(Math.random()*1E4);G.isActive()||(G.JSC$19982_channelDebug_.debug("Inactive channel"),F*=2);return F*B};
aN.prototype.onInput_=function(G){for(var B=0;B<G.length;B++){var F=G[B];this.JSC$19986_lastArrayId_=F[0];F=F[1];this.state_==2?F[0]=="c"?(this.sid_=F[1],this.JSC$19986_hostPrefix_=F[2],F=F[3],F!=null?this.JSC$19986_channelVersion_=F:this.JSC$19986_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19993_channelOpened(),this.JSC$19986_backChannelUri_=j8D(this,this.JSC$19986_hostPrefix_,this.JSC$19986_path_),YBH(this)):F[0]=="stop"&&n1(this,7):this.state_==3&&(F[0]=="stop"?n1(this,7):
F[0]!="noop"&&this.handler_&&this.handler_.JSC$19993_channelHandleArray(F),this.JSC$19986_backChannelRetryCount_=0)}};
aN.prototype.JSC$19986_ensureInState_=function(G){if(!_.YM(arguments,this.state_))throw Error("Yk`"+this.state_);};
var n1=function(G,B){G.JSC$19982_channelDebug_.info("Error code "+B);if(B==2||B==9){var F=null;G.handler_&&(F=null);var D=(0,_.R_)(G.testGoogleComCallback_,G);F||(F=new _.ea("//www.google.com/images/cleardot.gif"),_.St(F));oT$(F.toString(),1E4,D)}else yn(2);G.onError_(B)};
aN.prototype.testGoogleComCallback_=function(G){G?(this.JSC$19982_channelDebug_.info("Successfully pinged google.com"),yn(2)):(this.JSC$19982_channelDebug_.info("Failed to ping google.com"),yn(1),this.onError_(8))};
aN.prototype.onError_=function(G){this.JSC$19982_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$19993_channelError(G);z_N(this);e_A(this)};
var z_N=function(G){G.state_=0;G.JSC$19986_lastStatusCode_=-1;if(G.handler_)if(G.pendingMaps_.length==0&&G.JSC$19982_outgoingMaps_.length==0)G.handler_.JSC$19993_channelClosed();else{G.JSC$19982_channelDebug_.debug("Number of undelivered maps, pending: "+G.pendingMaps_.length+", outgoing: "+G.JSC$19982_outgoingMaps_.length);var B=_.II(G.pendingMaps_),F=_.II(G.JSC$19982_outgoingMaps_);G.pendingMaps_.length=0;G.JSC$19982_outgoingMaps_.length=0;G.handler_.JSC$19993_channelClosed(B,F)}},KPA=function(G,
B){B=XM2(G,null,B);
G.JSC$19982_channelDebug_.debug("GetForwardChannelUri: "+B);return B},j8D=function(G,B,F){B=XM2(G,G.JSC$19981_shouldUseSecondaryDomains()?B:null,F);
G.JSC$19982_channelDebug_.debug("GetBackChannelUri: "+B);return B},XM2=function(G,B,F){var D=_.pn(F);
if(D.JSC$10342_domain_!="")B&&_.Jh(D,B+"."+D.JSC$10342_domain_),_.cp(D,D.JSC$10342_port_);else{var u=window.location;D=L$D(u.protocol,B?B+"."+u.hostname:u.hostname,+u.port,F)}G.JSC$19986_extraParams_&&_.UK.forEach(G.JSC$19986_extraParams_,function(R,N){_.A7(D,N,R)});
_.A7(D,"VER",G.JSC$19986_channelVersion_);$22(G,D);return D};
aN.prototype.JSC$19981_createXhrIo=function(G){if(G)throw Error("Qk");G=new _.jt;G.JSC$10106_withCredentials_=!1;return G};
aN.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
aN.prototype.notifyServerReachabilityEvent=function(G){var B=B4Q;B.dispatchEvent(new kl$(B,G))};
aN.prototype.JSC$19981_shouldUseSecondaryDomains=function(){return!1};
new $pG;var J32=function(){};
_.w=J32.prototype;_.w.JSC$19993_channelOpened=function(){};
_.w.JSC$19993_channelHandleArray=function(){};
_.w.JSC$19993_channelSuccess=function(){};
_.w.JSC$19993_channelError=function(){};
_.w.JSC$19993_channelClosed=function(){};
_.w.JSC$19993_getAdditionalParams=function(){return{}};
_.w.isActive=function(){return!0};var c3D=function(G){G.front_.length===0&&(G.front_=G.back_,G.front_.reverse(),G.back_=[])};
_.w=ASG.prototype;_.w.enqueue=function(G){this.back_.push(G)};
_.w.peek=function(){c3D(this);return _.bl(this.front_)};
_.w.getCount=function(){return this.front_.length+this.back_.length};
_.w.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.w.clear=function(){this.front_=[];this.back_=[]};
_.w.contains=function(G){return _.YM(this.front_,G)||_.YM(this.back_,G)};
_.w.remove=function(G){var B=this.front_;var F=Array.prototype.lastIndexOf.call(B,G,B.length-1);F>=0?(_.zJs(B,F),B=!0):B=!1;return B||_.dU(this.back_,G)};
_.w.getValues=function(){for(var G=[],B=this.front_.length-1;B>=0;--B)G.push(this.front_[B]);B=this.back_.length;for(var F=0;F<B;++F)G.push(this.back_[F]);return G};var T4D=function(G){var B=typeof G;return B=="object"&&G||B=="function"?"o"+_.S8(G):B.charAt(0)+G};
_.w=mf.prototype;_.w.getCount=function(){return this.JSC$19997_map_.size};
_.w.add=function(G){this.JSC$19997_map_.set(T4D(G),G);this.size=this.JSC$19997_map_.size};
_.w.addAll=function(G){G=_.Ah(G);for(var B=G.length,F=0;F<B;F++)this.add(G[F]);this.size=this.JSC$19997_map_.size};
_.w.removeAll=function(G){G=_.Ah(G);for(var B=G.length,F=0;F<B;F++)this.remove(G[F]);this.size=this.JSC$19997_map_.size};
_.w.delete=function(G){G=this.JSC$19997_map_.remove(T4D(G));this.size=this.JSC$19997_map_.size;return G};
_.w.remove=function(G){return this.delete(G)};
_.w.clear=function(){this.JSC$19997_map_.clear();this.size=0};
_.w.isEmpty=function(){return this.JSC$19997_map_.size===0};
_.w.has=function(G){return this.JSC$19997_map_.containsKey(T4D(G))};
_.w.contains=function(G){return this.JSC$19997_map_.containsKey(T4D(G))};
_.w.getValues=function(){return this.JSC$19997_map_.getValues()};
_.w.values=function(){return this.JSC$19997_map_.values()};
_.w.clone=function(){return new mf(this)};
_.w.equals=function(G){return this.getCount()==Q3Z(G)&&Ipz(this,G)};
var Ipz=function(G,B){var F=Q3Z(B);if(G.getCount()>F)return!1;!(B instanceof mf)&&F>5&&(B=new mf(B));return j3$(G,function(D){var u=B;return u.contains&&typeof u.contains=="function"?u.contains(D):u.containsValue&&typeof u.containsValue=="function"?u.containsValue(D):_.fQ(u)||typeof u==="string"?_.YM(u,D):_.UK.containsValue(u,D)})};
mf.prototype.__iterator__=function(){return this.JSC$19997_map_.__iterator__(!1)};
mf.prototype[Symbol.iterator]=function(){return this.values()};_.UF({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 G=this.query;G&&(this.full||G[0]==="("||(G="("+G+")"),this._mq=window.matchMedia(G),this._add(),this.queryHandler(this._mq))},
queryHandler:function(G){this._setQueryMatches(G.matches)}});var fp2={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(G){return(this._clampValue(G)-this.min)/(this.max-this.min)},
_clampValue:function(G){return Math.min(this.max,Math.max(this.min,this._calcStep(G)))},
_calcStep:function(G){G=parseFloat(G);if(!this.step)return G;G=Math.round((G-this.min)/this.step);return this.step<1?G/(1/this.step)+this.min:G*this.step+this.min},
_validateValue:function(){var G=this._clampValue(this.value);this.value=this.oldValue=isNaN(G)?this.oldValue:G;return this.value!==G},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var thB=[_.Rc,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(G){_.u2(G).path[0]!==this&&(this.resetLayout(),G.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var G=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.cL(this._layoutDebouncer,_.l4,G);_.Tu(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var G=this;requestAnimationFrame(function(){G.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(G){this.resizerShouldNotify(G)&&this._notifyDescendant(G)},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 ZL$=[_.mty,{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(G,B){var F=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[G];if(!F)throw new ReferenceError(this._getUndefinedMsg(G));G=this._boundEffect(F,B||{});G.setUp();return G},
_effectsChanged:function(G,B,F){this._tearDownEffects();G&&F&&(G.split(" ").forEach(function(D){var u;D!==""&&((u=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[D])?this._effects.push(this._boundEffect(u,B[D])):console.warn(this._getUndefinedMsg(D)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(G,B){B=B||{};var F=parseFloat(B.startsAt||0),D=parseFloat(B.endsAt||1),u=D-F,R=function(){};
D=F===0&&D===1?G.run:function(N,y){G.run.call(this,Math.max(0,(N-F)/u),y)};
return{setUp:G.setUp?G.setUp.bind(this,B):R,run:G.run?D.bind(this):R,tearDown:G.tearDown?G.tearDown.bind(this):R}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(G){G.setUp()!==!1&&this._effectsRunFn.push(G.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(G){G.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(G,B){this._effectsRunFn&&this._effectsRunFn.forEach(function(F){F(G,B)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var G=this._clampedScrollTop;this._updateScrollState(G);this.threshold>0&&this._setThresholdTriggered(G>=this.threshold)}},
_getDOMRef:function(G){console.warn("_getDOMRef","`"+G+"` is undefined")},
_getUndefinedMsg:function(G){return"Scroll effect `"+G+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+G+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Zk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(G){var B={};G=parseFloat(G.scalar);B.background=this._getDOMRef("background");B.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");B.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");B.deltaBg=B.backgroundFrontLayer.offsetHeight-B.background.offsetHeight;B.deltaBg===0?(isNaN(G)&&(G=.8),B.deltaBg=(this._dHeight||0)*G):(isNaN(G)&&(G=
1),B.deltaBg*=G);this._fxParallaxBackground=B},
run:function(G){var B=this._fxParallaxBackground;this.transform("translate3d(0px, "+B.deltaBg*Math.min(1,G)+"px, 0px)",B.backgroundFrontLayer);B.backgroundRearLayer&&this.transform("translate3d(0px, "+B.deltaBg*Math.min(1,G)+"px, 0px)",B.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var gjZ;var SBD;_.UF({_template:function(){if(SBD!==void 0)return SBD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;gjZ===void 0&&(gjZ=document.createElement("template"));var D=gjZ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return SBD=G},
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(){_.ft(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(G){G.keyCode===27&&(G.preventDefault(),this.close())},
_track:function(G){if(!this.persistent&&!this.disableSwipe)switch(G.preventDefault(),G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackMove(G);break;case "end":this._trackEnd(G)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var G=this.$.contentContainer.getBoundingClientRect();this._savedWidth=G.width;this._translateOffset=this.position==="left"?G.left:G.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(G){this._trackDetails&&(this._translateDrawer(G.detail.dx+this._translateOffset),this._trackDetails.push({dx:G.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(G){if(this._trackDetails){var B=G.detail.dx+this._translateOffset,F=this.getWidth();B=this.position==="left"?B>=0||B<=-F:B<=0||B>=F;if(!B){var D=this._trackDetails;this._trackDetails=null;this._flingDrawer(G,D);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}F/=2;G.detail.dx<-F?this.opened=this.position==="right":G.detail.dx>F&&(this.opened=this.position==="left");B?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(G,B){for(var F=Date.now(),D=F-100,u,R=0,N=B.length-1;R<=N;){var y=R+N>>1,U=B[y];U.timeStamp>=D?(u=U,N=y-1):R=y+1}return u?(G.detail.dx-u.dx)/(F-u.timeStamp||1):0},
_flingDrawer:function(G,B){B=this._calculateVelocity(G,B);if(!(Math.abs(B)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;G=G.detail.dx+this._translateOffset;var F=this.getWidth(),D=this.position==="left",u=B>0;u?(B=Math.max(B,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(B=Math.min(B,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");B=this._FLING_INITIAL_SLOPE*(!u&&D?-(G+F):u&&!D?F-G:-G)/B;this._styleTransitionDuration(B);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,B)}},
_styleTransitionDuration:function(G){this.style.transitionDuration=G+"ms";this.$.contentContainer.style.transitionDuration=G+"ms";this.$.scrim.style.transitionDuration=G+"ms"},
_styleTransitionTimingFunction:function(G){this.$.contentContainer.style.transitionTimingFunction=G;this.$.scrim.style.transitionTimingFunction=G},
_translateDrawer:function(G){var B=this.getWidth();this.position==="left"?(G=Math.max(-B,Math.min(G,0)),this.$.scrim.style.opacity=1+G/B):(G=Math.max(0,Math.min(G,B)),this.$.scrim.style.opacity=1-G/B);this.translate3d(G+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var G=this._drawerState;G===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;G!==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=""),G!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var G=_.u2(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"])');G.length>0?(this._firstTabStop=G[0],this._lastTabStop=G[G.length-1]):
this._lastTabStop=this._firstTabStop=null;(G=this.getAttribute("tabindex"))&&parseInt(G,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(G){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||G.keyCode!==9||(G.shiftKey?this._firstTabStop&&_.u2(G).localTarget===this._firstTabStop&&(G.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.u2(G).localTarget===this._lastTabStop&&(G.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(G,B){this.toggleClass("visible",G&&!B,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var s8$;var x2A;var PIz=function(){};
_.w=PIz.prototype;_.w._scrollTargetChanged=function(){};
_.w.scroll=function(){};
_.w._isValidScrollTarget=function(){};
_.w._toggleScrollListener=function(){};
_.w.toggleScrollListener=function(){};
_.w.createEffect=function(){};
_.w._effectsChanged=function(){};
_.w._layoutIfDirty=function(){};
_.w._boundEffect=function(){};
_.w._setUpEffect=function(){};
_.w._tearDownEffects=function(){};
_.w._runEffects=function(){};
_.w._scrollHandler=function(){};
_.w._scrollStateChanged=function(){};
_.w._getUndefinedMsg=function(){};
_.w.notifyResize=function(){};
_.w.assignParentResizable=function(){};
_.w.stopResizeNotificationsFor=function(){};
_.w._subscribeIronResize=function(){};
_.w._unsubscribeIronResize=function(){};
_.w.resizerShouldNotify=function(){};
_.w._onDescendantIronResize=function(){};
_.w._fireResize=function(){};
_.w._onIronRequestResizeNotifications=function(){};
_.w._parentResizableChanged=function(){};
_.w._notifyDescendant=function(){};
_.w._requestResizeNotifications=function(){};
_.w._findParent=function(){};
_.w._appResetLayoutHandler=function(){};
_.w.resetLayout=function(){};
_.w._notifyLayoutChanged=function(){};
_.w._notifyDescendantResize=function(){};
_.w._setThresholdTriggered=function(){};
PIz=_.UF({_template:function(){if(x2A!==void 0)return x2A;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;s8$===void 0&&(s8$=document.createElement("template"));var D=s8$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return x2A=G},
is:"tp-yt-app-header",behaviors:[ZL$,thB],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 G=_.u2(this.$.slot).getDistributedNodes(),B=0,F;F=G[B];B++)if(F.nodeType===Node.ELEMENT_NODE)if(F.hasAttribute("sticky")){this._stickyElRef=F;break}else this._stickyElRef||(this._stickyElRef=F);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var G=this._clampedScrollTop,B=this._height===0||G===0,F=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;B||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();B?this._updateScrollState(G,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=F}},
_updateScrollState:function(G,B){if(this._height!==0){var F=0,D=this._top;var u=this._maxHeaderTop;var R=G-this._lastScrollTop,N=Math.abs(R),y=G>this._lastScrollTop,U=performance.now();this._mayMove()&&(F=this._clamp(this.reveals?D+R:G,0,u));G>=this._dHeight&&(F=this.condenses&&!this.fixed?Math.max(this._dHeight,F):F,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&N<100){if(U-this._initTimestamp>300||this._wasScrollingDown!==y)this._initScrollTop=G,this._initTimestamp=U;G>=u&&
(Math.abs(this._initScrollTop-G)>30||N>10?(y&&G>=u?F=u:!y&&G>=this._dHeight&&(F=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((F-D)/(R/(U-this._lastTimestamp)),0,300)+"ms"):F=this._top)}u=this._dHeight===0?G>0?1:0:F/this._dHeight;B||(this._lastScrollTop=G,this._top=F,this._wasScrollingDown=y,this._lastTimestamp=U);if(B||u!==this._progress||D!==F||G===0)this._progress=u,this._runEffects(u,F),this._transformHeader(F)}},
_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(G){this.translate3d(0,-G+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&G>=this._stickyElTop?Math.min(G,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(G,B,F){return Math.min(F,Math.max(B,G))},
_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),_.u2(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(G){switch(G){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.u2(this).querySelector("[main-title]");case "condensedTitle":return _.u2(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var GO$;var BkA;_.UF({_template:function(){if(BkA!==void 0)return BkA;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;GO$===void 0&&(GO$=document.createElement("template"));var D=GO$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return BkA=G},
is:"tp-yt-app-header-layout",behaviors:[thB],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.u2(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var G=this.header;if(this.isAttached&&G){this.$.wrapper.classList.remove("initializing");G.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)G.style.left="",G.style.right="";else{var B=this.getBoundingClientRect(),F=document.documentElement.clientWidth-B.right;G.style.left=B.left+"px";G.style.right=F+"px"}B=this.$.contentContainer.style;F=G.offsetHeight;G.fixed&&!G.condenses&&this.hasScrollingRegion?
(B.marginTop=F+"px",B.paddingTop=""):(B.paddingTop=F+"px",B.marginTop="")}}});/*

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 iUN=_.vP(['<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>']),
FMA=_.LCG(iUN);FMA.setAttribute("style","display: none;");document.head.appendChild(FMA.content);var DFG;var uOD;/*

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
*/
_.UF({_template:function(){if(uOD!==void 0)return uOD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;DFG===void 0&&(DFG=document.createElement("template"));var D=DFG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return uOD=G},
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(G,B){var F=this._resolveSrc(G);F!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",G===""||B?this._setLoading(!1):(this._resolvedSrc=F,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 G=this.$.sizedImgDiv.style,B=this.$.placeholder.style;G.backgroundSize=B.backgroundSize=this.sizing;G.backgroundPosition=B.backgroundPosition=this.sizing?this.position:"";G.backgroundRepeat=B.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(G){G=_.is(G,this.$.baseURIAnchor.href);G.length>=2&&G[0]==="/"&&G[1]!=="/"&&(G=(location.origin||location.protocol+"//"+location.host)+G);return G}});var Rm$;var wK$;_.UF({_template:function(){if(wK$!==void 0)return wK$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=
G.content,F=B.insertBefore;Rm$===void 0&&(Rm$=document.createElement("template"));var D=Rm$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return wK$=G},
is:"tp-yt-iron-pages",behaviors:[_.Rc,_.bA],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var CuA;var NkU;_.UF({_template:function(){if(NkU!==void 0)return NkU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;CuA===void 0&&(CuA=document.createElement("template"));var D=CuA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return NkU=G},
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(G){return G?"false":"true"},
_headingChanged:function(G){var B=this.getAttribute("heading"),F=this.getAttribute("aria-label");typeof F==="string"&&F!==B||this.setAttribute("aria-label",G)},
_computeHeadingClass:function(G){return G?" over-image":""},
_computeAnimated:function(G){return G}});var y8A;var nmD;_.UF({_template:function(){if(nmD!==void 0)return nmD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;y8A===void 0&&(y8A=document.createElement("template"));var D=y8A;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return nmD=G},
is:"tp-yt-paper-checkbox",behaviors:[_.r5y],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.ft(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var G=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),B="px",F=G.match(/[A-Za-z]+$/);F!==null&&(B=F[0]);G=parseFloat(G);F=8/3*G;B==="px"&&(F=Math.floor(F),F%2!==G%2&&F++);this.updateStyles({"--paper-checkbox-ink-size":F+
B})}})},
_computeCheckboxClass:function(G,B){var F="";G&&(F+="checked ");B&&(F+="invalid");return F},
_computeCheckmarkClass:function(G){return G?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.jKq._createRipple.call(this)}});var ld$;var UFD;var qvz=_.GG.IronButtonState,EmG=(0,_.FM)(HTMLElement);
_.UF({_template:function(){if(UFD!==void 0)return UFD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ld$===void 0&&(ld$=document.createElement("template"));var D=ld$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return UFD=G},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[qvz,_.xC,_.BH,_.DW],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(G){var B=(0,_.hA)(this);B.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:G});B.shadowRoot.appendChild(G);return EmG.prototype._attachDom.call(this,G)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.u2(this.$.content).getDistributedNodes(),B=0,F=G.length;B<F;B++)if(G[B].nodeType===Node.ELEMENT_NODE)return G[B]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var B="";G?B=G.label||G.getAttribute("label")||G.textContent.trim():B="";this.value=B;this._setSelectedItemLabel(B)},
_computeMenuVerticalOffset:function(G,B){return B?B:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",B=this.contentElement;B&&B.setAttribute("aria-expanded",G)}});var hmU;var KMA;_.UF({_template:function(){if(KMA!==void 0)return KMA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
var B=G.content,F=B.insertBefore;hmU===void 0&&(hmU=document.createElement("template"));var D=hmU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return KMA=G},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var adZ;var mF$;_.UF({_template:function(){if(mF$!==void 0)return mF$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;adZ===void 0&&(adZ=document.createElement("template"));var D=adZ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return mF$=G},
is:"tp-yt-paper-progress",behaviors:[fp2],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(G){this.toggleClass("indeterminate",G,this.$.primaryProgress)},
_transformProgress:function(G,B){G.style.transform=G.style.webkitTransform="scaleX("+B/100+")"},
_mainRatioChanged:function(G){this._transformProgress(this.$.primaryProgress,G)},
_progressChanged:function(G,B,F,D,u){G=this._clampValue(G);B=this._clampValue(B);var R=this._calcRatio(G)*100,N=this._calcRatio(B)*100;this._setSecondaryRatio(R);this._transformProgress(this.$.secondaryProgress,R);this._transformProgress(this.$.primaryProgress,N);this.secondaryProgress=G;u?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",B);this.setAttribute("aria-valuemin",F);this.setAttribute("aria-valuemax",D)},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false")},
_hideSecondaryProgress:function(G){return G===0}});var XKD;var Q$D;var j$G=function(){};
_.w=j$G.prototype;_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._noinkChanged=function(){};
_.w._focusedChanged=function(){};
_.w._createRipple=function(){};
_.w.registered=function(){};
_.w._invalidChanged=function(){};
_.w.hasValidator=function(){};
_.w.validate=function(){};
_.w._getValidity=function(){};
_.w._requiredChanged=function(){};
_.w._valueChanged=function(){};
_.w._checkedChanged=function(){};
_.w._buttonStateChanged=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
j$G=_.UF({is:"tp-yt-paper-radio-button",_template:function(){if(Q$D!==void 0)return Q$D;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;XKD===void 0&&(XKD=document.createElement("template"));var D=XKD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return Q$D=G},
behaviors:[_.r5y],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(){_.ft(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var G=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),B=Math.floor(3*G);B%2!==G%2&&B++;this.updateStyles({"--paper-radio-button-ink-size":B+"px"})}})}});var LMA;var r8N;_.UF({_template:function(){if(r8N!==void 0)return r8N;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;LMA===void 0&&(LMA=document.createElement("template"));var D=LMA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return r8N=G},
is:"tp-yt-paper-radio-group",behaviors:[_.Khv],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(G){var B=this._valueToItem(G);if(!B||!B.hasAttribute("disabled")){if(this.selected){B=this._valueToItem(this.selected);if(this.selected==G)if(this.allowEmptySelection)G="";else{B&&(B.checked=!0);return}B&&
(B.checked=!1)}_.bA.select.apply(this,[G]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(G){this._focusPrevious();G.preventDefault();this._activateFocusedItem()},
_onDownKey:function(G){this._focusNext();G.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(G){_.hO7._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(G){_.hO7._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.bA._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.uE._resetTabindices.apply(this,arguments);this.items.forEach(function(G){G.removeAttribute("aria-selected")},this)}});var WMS;var HU2;var kOH=function(){};
_.w=kOH.prototype;_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._buttonStateChanged=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._noinkChanged=function(){};
_.w._calcRatio=function(){};
_.w._clampValue=function(){};
_.w._calcStep=function(){};
_.w._validateValue=function(){};
_.w._update=function(){};
_.w._setImmediateValue=function(){};
_.w._setExpand=function(){};
_.w._setDragging=function(){};
_.w._setTransiting=function(){};
_.w._setMarkers=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
_.w._setRatio=function(){};
kOH=_.UF({_template:function(){if(HU2!==void 0)return HU2;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;WMS===void 0&&(WMS=document.createElement("template"));var D=WMS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return HU2=G},
is:"tp-yt-paper-slider",behaviors:[_.sV,_.BH,_.LYv,fp2],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&&_.$b(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(G,B,F){this.setAttribute("aria-valuemin",B);this.setAttribute("aria-valuemax",F);this.setAttribute("aria-valuenow",G);this._positionKnob(this._calcRatio(G)*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(G){this._setImmediateValue(this._calcStep(this._calcKnobPosition(G)));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(G){return(this.max-this.min)*G/100+this.min},
_onTrack:function(G){G.stopPropagation();switch(G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackX(G);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(G){this.dragging||this._trackStart(G);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,G.detail.dx*(this._isRTL?-1:1)));G=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(G);G=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(G+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var G=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;G.transform=G.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(G){this._expandKnob();G.preventDefault();this.focus()},
_bartrack:function(G){this._allowBarEvent(G)&&this._onTrack(G)},
_barclick:function(G){this._w=this.$.sliderBar.offsetWidth;var B=this.$.sliderBar.getBoundingClientRect();B=(G.detail.x-B.left)/this._w*100;this._isRTL&&(B=100-B);var F=this.ratio;this._setTransiting(!0);this._positionKnob(B);F===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
G.preventDefault();this.focus()},
_bardown:function(G){this._allowBarEvent(G)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(G))},
_knobTransitionEnd:function(G){G.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(G,B,F,D){D||this._setMarkers([]);B=Math.round((F-B)/this.step);B>G&&(B=G);if(B<0||!isFinite(B))B=0;this._setMarkers(Array(B))},
_mergeClasses:function(G){return Object.keys(G).filter(function(B){return G[B]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(G){return!this.ignoreBarTouch||G.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(G){this._isRTL?this._incrementKey(G):this._decrementKey(G)},
_rightKey:function(G){this._isRTL?this._decrementKey(G):this._incrementKey(G)},
_incrementKey:function(G){this.disabled||(G.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),G.preventDefault())},
_decrementKey:function(G){this.disabled||(G.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),G.preventDefault())},
_changeValue:function(G){this.value=G.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(G){G.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.jKq._createRipple.call(this)},
_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=G?"":"none",this._ripple.holdDown=G)}});var OUD;var emU;var lV=null,$FD=function(){};
_.w=$FD.prototype;_.w.fit=function(){};
_.w._discoverInfo=function(){};
_.w.resetFit=function(){};
_.w.refit=function(){};
_.w.position=function(){};
_.w.constrain=function(){};
_.w._sizeDimension=function(){};
_.w.__sizeDimension=function(){};
_.w.center=function(){};
_.w.__getNormalizedRect=function(){};
_.w.__getOffscreenArea=function(){};
_.w.__getPosition=function(){};
_.w.notifyResize=function(){};
_.w.assignParentResizable=function(){};
_.w.stopResizeNotificationsFor=function(){};
_.w._subscribeIronResize=function(){};
_.w._unsubscribeIronResize=function(){};
_.w.resizerShouldNotify=function(){};
_.w._onDescendantIronResize=function(){};
_.w._fireResize=function(){};
_.w._onIronRequestResizeNotifications=function(){};
_.w._parentResizableChanged=function(){};
_.w._notifyDescendant=function(){};
_.w._requestResizeNotifications=function(){};
_.w._findParent=function(){};
_.w.toggle=function(){};
_.w.open=function(){};
_.w.close=function(){};
_.w.cancel=function(){};
_.w.invalidateTabbables=function(){};
_.w._ensureSetup=function(){};
_.w._canceledChanged=function(){};
_.w._withBackdropChanged=function(){};
_.w._prepareRenderOpened=function(){};
_.w._finishRenderOpened=function(){};
_.w._finishRenderClosed=function(){};
_.w._preparePositioning=function(){};
_.w._finishPositioning=function(){};
_.w._applyFocus=function(){};
_.w._onCaptureClick=function(){};
_.w._onCaptureFocus=function(){};
_.w._onCaptureEsc=function(){};
_.w._onCaptureTab=function(){};
_.w._onIronResize=function(){};
_.w._onNodesChange=function(){};
_.w.__ensureFirstLastFocusables=function(){};
_.w.__openedChanged=function(){};
_.w.__deraf=function(){};
_.w.__updateScrollObservers=function(){};
_.w.__addScrollListeners=function(){};
_.w.__removeScrollListeners=function(){};
_.w.__isValidScrollAction=function(){};
_.w.__onCaptureScroll=function(){};
_.w.__saveScrollPosition=function(){};
_.w.__restoreScrollPosition=function(){};
_.w._setCanceled=function(){};
$FD=_.UF({_template:function(){if(emU!==void 0)return emU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;OUD===void 0&&(OUD=document.createElement("template"));var D=OUD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return emU=G},
is:"tp-yt-paper-toast",behaviors:[_.Lg],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(){_.DT._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ac.requestAvailability()},
show:function(G){typeof G=="string"&&(G={text:G});for(var B in G)B.indexOf("_")===0?_.DT._warn('The property "'+B+'" is private and was not set.'):B in this?this[B]=G[B]:_.DT._warn('The property "'+B+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(G){G&&G.target===this&&G.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(lV&&lV!==this&&lV.close(),lV=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):lV===this&&(lV=null);_.jA._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(G){this.positionTarget=G},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var zm$=new _.vf("disablePersonalizationAction");var zGS=new _.vf("showDmaConsentFlowCommand");var bGz=new _.vf("showMmgNoticeCommand");var bUQ=new _.vf("saveConsentAction");var VqB=new _.vf("navigateAction");var vm2=new _.vf("replaceFeedContentAction");var omB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(omB,_.q3);var MqB=_.ylg(omB);var pK$=new _.vf("imageTileRenderer");var YvN=new _.vf("promotedSparklesWebRenderer");var A8Q=new _.vf("adGridCardCollectionViewModel");var dF$=new _.vf("addRendererToItemSectionAction");var J8$=new _.vf("updateTopbarAvatarAction");var c8U=new _.vf("channelHandleValidationResultRenderer");var TkA=new _.vf("generateHandleFromNameResultRenderer");var IdD=new _.vf("channelHandleInputRenderer");var fd$=new _.vf("copyLinkRenderer");var tqN=new _.vf("carouselTitleViewModel");var ZU$=new _.vf("ctaCarouselItemViewModel");var gmD=new _.vf("timedCommand");var SvS=new _.vf("textFieldViewModel");var s$D=new _.vf("crowdsourcedContextUserRatingFormFlowState");var xFG=new _.vf("noteViewModel");var Puz=new _.vf("alertCommand");var GFz=new _.vf("clearCookieAction");var B_z=new _.vf("engagementPanelHeaderShowNavigationButtonCommand");var iFQ=new _.vf("getMultiPageMenuAction");var F3$=new _.vf("addToGuideSectionAction"),DoD=new _.vf("removeFromGuideSectionAction");var ur$=new _.vf("hideEngagementPanelScrimAction");var RkS=new _.vf("updateNotificationsUnseenCountAction");var waU=new _.vf("resetChannelUnreadCountCommand");var CeQ=new _.vf("resetSubscriptionsUnreadDotCommand");var N_D=new _.vf("selectLanguageCommand");var IXZ=new _.vf("sendFeedbackAction");var yFS=new _.vf("setActivePanelItemAction");var nhQ=new _.vf("showEngagementPanelScrimAction");var lrD=new _.vf("updateEngagementPanelAction");var UoH=new _.vf("updateSearchInVideoResultsAction");var qt$=new _.vf("uploadImageToScottyCommand");var EhB=new _.vf("webWatchNextResponseExtensionData");var hkD=new _.vf("manageLabsStateCommand");var K3Q=new _.vf("registerPromoCommand");var arG=new _.vf("setPushNotificationsEnabledCommand");var moz=new _.vf("updateSentimentBarStateCommand");var XaU=new _.vf("desktopTopbarRenderer");var QAQ=new _.vf("surveyFollowUpRenderer");var jAU=new _.vf("formRenderer");var L3G=new _.vf("inlineFormRenderer");var rFN=new _.vf("handlesClaimingRadioOptionRenderer");var W3S=new _.vf("hotkeyDialogRenderer");var HFS=new _.vf("playlistSidebarPrimaryInfoRenderer");var kFA=new _.vf("transcriptCueGroupRenderer");var OFz=new _.vf("transcriptCueRenderer");var ekN=new _.vf("transcriptFooterRenderer");var $oN=new _.vf("engagementPanelAdSubtitleRenderer");var zkQ=new _.vf("videoDescriptionFantasySectionViewModel");var bF$=new _.vf("inlineSurveyRenderer");var VPQ=new _.vf("radioButtonSurveyOptionRenderer"),vh$=new _.vf("checkboxSurveyOptionRenderer");var oh$=new _.vf("showSurveyCommand");var U6=new _.vf("abuseReportFlowState");var MPA=new _.vf("modifyReportFormCommand");var paB=new _.vf("feedbackFormFlowState");var Kk2=new _.vf("inputBoxViewModel");var aF$=new _.vf("flowRootRenderer");var sx$=new _.vf("lengthValidationRule");var PR$=new _.vf("regexValidationRule");var BN$=new _.vf("selectedValidationRule");var m1Q=new _.vf("accountLinkCommand");var XxN=new _.vf("accountUnlinkCommand");var QrD=new _.vf("deleteClipEngagementPanelCommand");var jrD=new _.vf("logAccountLinkingEventCommand");var Lkz=new _.vf("loopCommand");var pU$=new _.vf("guideCollapsibleEntryRenderer");var rY$=new _.vf("guideDownloadsEntryRenderer");var MUH=new _.vf("guideEntryRenderer");var WkN=[0,_.Yz,_.fX,_.t5];var Hlz=[0,_.oD,-2,HoU];var kKG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.J2(G)};
_.r(kKG,_.q3);kKG.prototype.getFeature=function(){return _.KX(this,6)};
kKG.prototype.hasFeature=function(){return _.eQ(_.uc(this,6))!=null};var OlB=[0,_.Yz];var eLD=_.HX(kKG,[0,_.oD,-2,HoU,_.oD,_.Yz,-1,_.vU,-1,_.Yz,-3,_.f6a,_.MV,Hlz,_.Yz,-1,WFU,_.vU,_.Yz,WkN,[0,[0,_.Yz,-2,2,_.Yz,-1,[0,_.Yz],[0,_.fX,_.Yz],[0,_.fX],[0,_.Yz],2,[0,_.fX,2,[0,[2,3],_.fX,hdZ,_.cU,[0,[1,2,3],hdZ,-2]],[0,_.JR,H9z],1,[0,kjB],1,[0,_.Yz],1,[0,[2],_.Yz,_.cU,[0,_.oD]]],[0,_.MV],[0,[1,2],_.cU,[0,_.Yz],_.cU,[0,_.Yz,_.ID,-1]],[0,_.fX],[0,_.Yz,[0,[1,2,3,4],_.cU,[0,[0,_.Yz],OlB],_.cU,[0,[0,_.Yz],OlB],_.cU,[0,OlB],_.cU,[0,[0,_.Yz],OlB]]],[0,_.Yz],1,[0,_.Yz,_.fX],1,[0,_.Yz],[0,_.MV],[0,_.Yz,
_.fX,-1,[0,_.Yz,-4]],[0,_.Yz],[0,_.Yz,-2],1,[0,_.Yz],[0,_.MV],[0,_.MV,_.Yz],1,[0,_.MV],[0],[0]],_.Yz,_.fX,_.bc,1,_.T9,_.Yz,_.fX],_.oD,_.T9,_.fX,-1,_.oD]);var $1z=new _.vf("interstitialViewModel");var zLS=new _.vf("changeCreatorEndscreenVisibilityCommand");var blS=new _.vf("liveChatCallForQuestionsRenderer");var VK$=new _.vf("getLocationCommand");var vGQ=new _.vf("locationCollectionCommand");var oGA=new _.vf("chipsShelfViewModel");var qM=new _.vf("cinematicContainerRenderer");var E6=new _.vf("changeMarkersVisibilityCommand");var MK$=new _.vf("updateTimedMarkersSyncObserverCommand");var pxH=new _.vf("storiesItemViewModel");var YWz=new _.vf("talkToRecsViewModel");var pP$=new _.vf("timelyActionViewModel");var AYG=new _.vf("timelyActionsOverlayViewModel");var d1D=new _.vf("addToRemoteQueueAction");var JY$=new _.vf("insertInRemoteQueueAction");var cYH=new _.vf("removeFromRemoteQueueAction");var T1S=new _.vf("productDetailsThumbnailRenderer"),IFA=new _.vf("productDetailsVariantRenderer"),fFH=new _.vf("productDetailsVariantOptionRenderer"),tKB=new _.vf("productDetailsOffersContainerRenderer"),Zl2=new _.vf("productDetailsOfferRenderer");var gG$=new _.vf("shoppingFlaggingRenderer");var SWD=new _.vf("notificationActionRenderer");var srD=new _.vf("notificationRenderer");var qC$=new _.vf("localWatchHistoryCommand");var x1Q=new _.vf("pdgBuyFlowHeaderRenderer");var PdS=new _.vf("pdgColorSliderRenderer");var GCD=new _.vf("pdgCommentOptionRenderer");var BvN=new _.vf("pdgCommentPreviewRenderer");var iOZ=new _.vf("superVodSelectableItemButtonRenderer");var FpD=new _.vf("creatorGoalSetUpFlowDropdownItemViewModel");var Dqz=new _.vf("creatorGoalSetUpFlowDropdownViewModel");var u4$=new _.vf("repeatChapterCommand");var ReD=new _.vf("watchPlayerOverflowMenuCommand");var wC2=new _.vf("compositeVideoOverlayRenderer");var Ct$=new _.vf("playlistBylineRenderer");var NvZ=new _.vf("reelNavigateCommand");var yvU=new _.vf("reelNonVideoContentDismissalCommand");var nBz=new _.vf("showReelsCommentsOverlayCommand");var lPz=new _.vf("switchButtonRenderer");var Uq2=new _.vf("responsiveContainerConfiguration");var qPH=new _.vf("sortFilterSubMenuRenderer");var EBz=new _.vf("upsellDialogRenderer");var hez=new _.vf("insertChannelTabCommand");var Kp2=new _.vf("feedbackQuestionRenderer"),aP2=new _.vf("feedbackOptionRenderer");var mqD=new _.vf("sponsorshipsTierRenderer"),XCU=new _.vf("sponsorshipsPromotionChannelRenderer");var QjS=new _.vf("simpleSurveyMessageRenderer");var MgB=new _.vf("thumbnailBadgeViewModel");var jjG=new _.vf("checkboxGroupViewModel");var dj$=new _.vf("checkboxItemViewModel");var Lp$=new _.vf("radioButtonGroupViewModel");var rvD=new _.vf("radioButtonItemViewModel");var WpG=new _.vf("switchListItemViewModel");var Ew$=new _.vf("inputComposerViewModel");var qdz=new _.vf("panelFooterViewModel");var HO$=new _.vf("transcriptEditSegmentCommand");var kCG=new _.vf("transcriptUpdateSegmentTextCommand");var OON=new _.vf("transcriptSearchBoxRenderer");var eez=new _.vf("transcriptSegmentListRenderer");var $qQ=new _.vf("transcriptSegmentRenderer");var zeG=new _.vf("videoInteractionPopUpRenderer");var bOz=new _.vf("updateDateTextAction");var VcZ=new _.vf("updateTitleAction");var vBD=new _.vf("updateViewershipAction");var oB$=new _.vf("relatedChipCommand");var Mcz=new _.vf("carouselLockupRenderer");var pC$=new _.vf("engagementPanelSectionListRenderer");var h4=new _.vf("expandableVideoDescriptionBodyRenderer");var YPB=new _.vf("videoDescriptionHeaderRenderer");var Av$=new _.vf("videoDescriptionYouchatSectionViewModel");var guz=new _.vf("invokeInstrumentManagerAction");var dqN=new _.vf("logYpcFlowDismissCommand");var JvS=new _.vf("logYpcFlowStartCommand");var cvD=new _.vf("ypcCancelRecurrenceCommand");var TvG=new _.vf("cancellationFlowState");var eaQ=new _.vf("premiumPurchaseFlowState");var IPD=new _.vf("unlimitedCreateFamilyEndpoint");var fPB=new _.vf("surveyAnswerCardRenderer");var tc2=new _.vf("iconBadgeRenderer");var ZOZ=new _.vf("showMoreButtonRenderer");var gB$=new _.vf("pollChoiceData");var hrD=new _.vf("collaborativePlaylistVisibilityValidationRule");var SPB=function(G){_.T_.call(this,"channelMessage");this.message=G};
_.r(SPB,_.T_);var sjU=function(G){_.T_.call(this,"channelError");this.error=G};
_.r(sjU,_.T_);var xq2={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},PtU={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},GzD={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},BQA={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},i2D={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var K1=function(G){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 _.U1;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;G&&(this.id=G.id||G.name,this.name=G.name,this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=G.app,this.type=G.type||"REMOTE_CONTROL",this.username=G.user||"",this.avatar=G.userAvatarUri||"",this.obfuscatedGaiaId=G.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=G.ownerObfuscatedGaiaId||"",this.castUserId=G.castUserId||"",this.theme=G.theme||"u",FuB(this,G.capabilities||""),DiG(this,
G.compatibleSenderThemes||""),uFD(this,G.experiments||""),this.remoteControllerUrl=G.remoteControllerUrl||"",this.localChannelEncryptionKey=G.localChannelEncryptionKey||"",this.deviceContext=G.deviceContext,this.brand=G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=G.pairingType||"unknown",G=G.deviceInfo)&&(G=JSON.parse(G),this.brand=
G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
K1.prototype.copy=function(){var G={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&&(G.brand=this.brand);
this.model&&(G.model=this.model);this.year&&(G.year=this.year);this.os&&(G.os=this.os);this.osVersion&&(G.osVersion=this.osVersion);this.chipset&&(G.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(G.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(G.mdxDialServerType=this.mdxDialServerType);G=new K1(G);G.connected=this.connected;G.remoteControllerUrl=this.remoteControllerUrl;G.localChannelEncryptionKey=this.localChannelEncryptionKey;G.deviceContext=
this.deviceContext;G.castUserId=this.castUserId;return G};
K1.prototype.equals=function(G){return G?this.id==G.id:!1};
var FuB=function(G,B){G.capabilities.clear();_.Zw(B.split(","),_.Fw(_.UK.contains,xq2)).forEach(function(F){G.capabilities.add(F)})},DiG=function(G,B){G.compatibleSenderThemes.clear();
_.Zw(B.split(","),_.Fw(_.UK.contains,PtU)).forEach(function(F){G.compatibleSenderThemes.add(F)})},uFD=function(G,B){G.experiments.clear();
B.split(",").forEach(function(F){G.experiments.add(F)})};_.IC(Xl,_.uz);_.w=Xl.prototype;_.w.JSC$20071_onTick_=function(){this.retryCount++;this.JSC$20069_interval_=Math.min(3E5,this.JSC$20069_interval_*2);this.JSC$20071_listener_();this.nextTickTime_&&this.start()};
_.w.getRetryCount=function(){return this.retryCount};
_.w.start=function(){var G=this.JSC$20069_interval_+15E3*Math.random(),B=this.delay_;B.isActive()||B.start(G);this.nextTickTime_=Date.now()+G};
_.w.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.w.isActive=function(){return this.delay_.isActive()};
_.w.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20069_interval_=5E3};_.IC(Q6,J32);_.w=Q6.prototype;_.w.subscribe=function(G,B,F){return this.pubsub_.subscribe(G,B,F)};
_.w.unsubscribe=function(G,B,F){return this.pubsub_.unsubscribe(G,B,F)};
_.w.unsubscribeByKey=function(G){return this.pubsub_.unsubscribeByKey(G)};
_.w.publish=function(G,B){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.w.dispose=function(){this.JSC$20072_disposed_||(this.JSC$20072_disposed_=!0,_.ve(this.pubsub_),this.disconnect(),_.ve(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20072_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.ZL({})})};
_.w.isDisposed=function(){return this.JSC$20072_disposed_};
_.w.connect=function(G,B,F){var D=this,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return _.oo(U,2),D.useAsyncBrowserChannelHandler_?U.yield(D.connectPromise_,2):U.jumpTo(2);_.vY(U);if(D.JSC$20072_disposed_||D.JSC$20072_channel_&&D.JSC$20072_channel_.getState()==2&&!D.isInitialReconnectTimer_)return U.return();D.sCookie_="";D.isInitialReconnectTimer_||D.reconnectTimer_.stop();D.connectionParams_=G||null;D.connectUi_=B||0;u=D.JSC$20072_pathPrefix_+"/test";R=D.JSC$20072_pathPrefix_+"/bind";N=
new aN(F?F.firstTestResults:null,F?F.secondTestResults:null,D.enableAsyncTest_);if(y=D.JSC$20072_channel_)y.handler_=null;N.handler_=D;D.JSC$20072_channel_=N;if(D.useAsyncBrowserChannelHandler_)return D.connectPromise_=RgQ(D).then(function(){return wBG(D,u,R,y,F)}),U.return(D.connectPromise_.then(function(){D.connectPromise_=_.ZL()}));
wBG(D,u,R,y,F);return _.Yd(U,0)})};
var wBG=function(G,B,F,D,u){CgN(G);if(G.JSC$20072_channel_){var R=_.v5("ID_TOKEN"),N=G.JSC$20072_channel_.JSC$19986_extraHeaders_||{};R?N["x-youtube-identity-token"]=R:delete N["x-youtube-identity-token"];G.JSC$20072_channel_.JSC$19986_extraHeaders_=N}NQ2(G);D?(D.getState(),G.JSC$20072_channel_.connect(B,F,G.defaultQueryParams_,D.sid_,D.JSC$19986_lastArrayId_)):u?G.JSC$20072_channel_.connect(B,F,G.defaultQueryParams_,u.sessionId,u.arrayId):G.JSC$20072_channel_.connect(B,F,G.defaultQueryParams_);G.isInitialReconnectTimer_&&
!G.reconnectTimer_.isActive()&&G.reconnectTimer_.start();G.retryLogger_&&G.retryLogger_.startLogTimeout()};
Q6.prototype.disconnect=function(G){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.ZL())}finally{this.disconnectUi_=G||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),CgN(this),this.JSC$20072_channel_&&(this.JSC$20072_channel_.getState()==3&&ojA(this.JSC$20072_channel_),this.JSC$20072_channel_.disconnect()),this.disconnectUi_=0}};
Q6.prototype.sendMessage=function(G,B){var F=this,D;return _.n(function(u){switch(u.nextAddress){case 1:_.oo(u,2);if(!F.useAsyncBrowserChannelHandler_){u.jumpTo(2);break}return u.yield(F.connectPromise_,2);case 2:_.vY(u);if(F.JSC$20072_disposed_)return u.return();D={_sc:G};B&&_.UK.extend(D,B);if(F.reconnectTimer_.isActive()||(F.JSC$20072_channel_?F.JSC$20072_channel_.getState():0)==2){F.JSC$20072_pendingMessages_.push(D);u.jumpTo(6);break}if(!F.isChannelOpened()){u.jumpTo(6);break}_.oo(u,8);if(!F.useAsyncBrowserChannelHandler_||
ywU(F,G)){u.jumpTo(8);break}return u.yield(RgQ(F),8);case 8:_.vY(u,0,0,1);F.isChannelOpened()&&(ywU(F,G)||NQ2(F),CgN(F),vjA(F.JSC$20072_channel_,D));_.Yd(u,6,1);break;case 6:_.Yd(u,0)}})};
var ywU=function(G,B){return G.enableMdxAuthForConnectionOnly_?!0:G.disableMdxAuthForAdMessages_?Object.values(GzD).includes(B):G.disableMdxAuthForNonPlaybackMessages_?!Object.values(BQA).includes(B):G.disableMdxAuthForShortsMessages_?Object.values(i2D).includes(B):!1};
Q6.prototype.JSC$19993_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&(this.retryLogger_.logRetry(this.reconnectTimer_.getRetryCount(),this.isInitialReconnectTimer_,!0),this.retryLogger_.logSuccess());this.retryLogger_&&this.retryLogger_.cancelLogTimeout();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.ve(this.reconnectTimer_),this.reconnectTimer_=new Xl(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();
this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20072_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)na$(this);else{var G=this.JSC$20072_pendingMessages_;this.JSC$20072_pendingMessages_=[];var B=G.length;NQ2(this);l5Q(this,G,B);UiA(this)}else UiA(this)};
var na$=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return _.oo(D,2),D.yield(RgQ(G),2);_.vY(D);B=G.JSC$20072_pendingMessages_;G.JSC$20072_pendingMessages_=[];F=B.length;l5Q(G,B,F);UiA(G);return _.Yd(D,0)})},l5Q=function(G,B,F){for(var D=0;D<F;++D)vjA(G.JSC$20072_channel_,B[D]);
UiA(G)},UiA=function(G){G.publish("handlerOpened");
G.JSC$20072_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.w=Q6.prototype;_.w.JSC$19993_channelError=function(G){var B=G==2&&this.JSC$20072_channel_.JSC$19986_lastStatusCode_==401;G==4||B||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.ve(this.reconnectTimer_),this.reconnectTimer_=new Xl(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",G,B);B=Object.keys(WPz).find(function(F){return WPz[F]===G});
this.JSC$20072_channelErrorCounter.increment("BROWSER_CHANNEL",B!=null?B:"UNKNOWN")};
_.w.JSC$19993_channelClosed=function(G,B){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(B)for(var F=B.length,D=0;D<F;++D){var u=B[D].map;u&&this.JSC$20072_pendingMessages_.push(u)}this.JSC$20072_channelClosedCounter.increment("BROWSER_CHANNEL");G&&this.pendingMapsOnClosedCounter.JSC$10242_streamzService.JSC$10097_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",G.length);B&&this.undeliveredMapsOnClosedCounter.JSC$10245_streamzService.JSC$10097_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
B.length)};
_.w.JSC$19993_channelSuccess=function(G,B){B!=null&&G!=null&&this.channelMessageSentCounter.increment()};
_.w.JSC$19993_getAdditionalParams=function(){var G={v:2};this.sCookie_&&(G.gsessionid=this.sCookie_);this.connectUi_!=0&&(G.ui=""+this.connectUi_);this.disconnectUi_!=0&&(G.ui=""+this.disconnectUi_);this.connectionParams_&&_.UK.extend(G,this.connectionParams_);return G};
_.w.JSC$19993_channelHandleArray=function(G){G[0]=="S"?this.sCookie_=G[1]:G[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20072_channel_.disconnect()):this.publish("handlerMessage",new d7G(G[0],G[1]));this.JSC$20072_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.w.isChannelOpened=function(){return!!this.JSC$20072_channel_&&this.JSC$20072_channel_.getState()==3};
var CgN=function(G){if(G.JSC$20072_channel_){var B=G.JSC$20072_getXsrfToken_(),F=G.JSC$20072_channel_.JSC$19986_extraHeaders_||{};B?F["x-youtube-lounge-xsrf-token"]=B:delete F["x-youtube-lounge-xsrf-token"];G.JSC$20072_channel_.JSC$19986_extraHeaders_=F}},RgQ=function(G){if(G.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.ZL();
if(!G.enableCachedUpdateAuthorizationHeader_)return qHZ(G);G.updateAuthorizationHeaderPromise_===null&&(G.updateAuthorizationHeaderPromise_=qHZ(G));return G.updateAuthorizationHeaderPromise_},qHZ=function(G){return _.at(G.getAuthorizationHeader_().then(function(B){EaN(G,B)}).thenCatch(function(){}),function(){G.updateAuthorizationHeaderPromise_=null})},EaN=function(G,B){if(G.JSC$20072_channel_){var F=G.JSC$20072_channel_.JSC$19986_extraHeaders_||{};
B&&Object.keys(B).length>0?F=Object.assign({},F,B):delete F.Authorization;G.JSC$20072_channel_.JSC$19986_extraHeaders_=F}},NQ2=function(G){G.getAuthorizationHeaderSync_&&!G.useAsyncBrowserChannelHandler_&&EaN(G,G.getAuthorizationHeaderSync_())};
_.w=Q6.prototype;_.w.setLoungeToken=function(G){(this.defaultQueryParams_.loungeIdToken=G)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20072_channel_){var B=this.JSC$20072_channel_.JSC$19986_extraHeaders_||{};G?B["X-YouTube-LoungeId-Token"]=G:delete B["X-YouTube-LoungeId-Token"];this.JSC$20072_channel_.JSC$19986_extraHeaders_=B}};
_.w.getDeviceId=function(){return this.defaultQueryParams_.id};
_.w.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.w.reconnect=function(){var G=this.reconnectTimer_;G.delay_.fire();G.start()};
_.w.safeReconnect_=function(){var G=this.JSC$20072_channel_,B=0;G.JSC$19986_backChannelRequest_&&B++;G.forwardChannelRequest_&&B++;B==0&&this.connect(this.connectionParams_,this.connectUi_)};var Wy=function(G,B){var F=G.basePath;G.supportCors&&(F=G.scheme+"://"+G.domain+G.port+G.basePath);return _.xi(F+B,{})};
gTz.prototype.sendRequest=function(G,B,F,D,u,R,N){G={format:R?"RAW":"JSON",method:G,context:this,timeout:5E3,withCredentials:!!N,onSuccess:_.Fw(this.JSC$20079_onSuccess_,D,!R),onError:_.Fw(this.onError_,u),onTimeout:_.Fw(this.JSC$20079_onTimeout_,u)};F&&(G.postParams=F,G.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.uX(B,G)};
gTz.prototype.JSC$20079_onSuccess_=function(G,B,F,D){B?G(D):G({text:F.responseText})};
gTz.prototype.onError_=function(G,B){G(Error("$k`"+B.status))};
gTz.prototype.JSC$20079_onTimeout_=function(G){G(Error("al"))};var PAB=function(G,B){return!!B&&(G.id==B||G.uuid==B)},hgU=function(G){return{name:G.name,
screenId:G.id,loungeToken:G.token,dialId:G.uuid,screenIdType:G.idType,screenIdSecret:G.secret}},Ku$=function(G){return new jX(G)},a5$=function(G){return Array.isArray(G)?_.qK(G,Ku$):[]},BeU=function(G){if(!G)return"null";
var B=G.token?".."+G.token.slice(-6):"-",F=G.uuid?".."+G.uuid.slice(-6):"-",D=G.secret?".."+G.secret.slice(-6):"-";return'{name:"'+G.name+'",id:'+G.id.substr(0,6)+"..,token:"+(B+",uuid:"+F+",idType:"+G.idType+",secret:")+(D+"}")},OkQ=function(G){return Array.isArray(G)?"["+_.qK(G,BeU).join(",")+"]":"null"};var RtD="",r9=null;var ht2=function(G,B){_.W1.call(this);var F=this;this.handler=G();this.handler.subscribe("handlerOpened",this.JSC$20086_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(D,u){F.onError(u)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=B};
_.r(ht2,_.W1);_.w=ht2.prototype;_.w.connect=function(G,B,F){this.handler.connect(G,B,F)};
_.w.disconnect=function(G){this.handler.disconnect(G)};
_.w.reconnect=function(){this.handler.reconnect()};
_.w.getDeviceId=function(){return this.handler.getDeviceId()};
_.w.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.w.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.w.JSC$20086_onOpened=function(){this.dispatchEvent("channelOpened");var G=this.handler,B=this.currentScreenId;_.yW("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!G.JSC$20072_channel_.useChunked_,sessionId:G.JSC$20072_channel_.sid_,arrayId:G.JSC$20072_channel_.JSC$19986_lastArrayId_});_.yW("yt-remote-session-screen-id",B);G=Gm$();B=BJN();_.YM(G,B)||G.push(B);u1$(G);DhG()};
_.w.onClosed=function(){this.dispatchEvent("channelClosed")};
_.w.onMessage=function(G){this.dispatchEvent(new SPB(G))};
_.w.onError=function(G){this.dispatchEvent(new sjU(G?1:0))};
_.w.sendMessage=function(G,B){this.handler.sendMessage(G,B)};
_.w.setLoungeToken=function(G){this.handler.setLoungeToken(G)};
_.w.dispose=function(){this.handler.dispose()};var ENG=function(G,B,F){var D=this;F=F===void 0?function(){return""}:F;
var u=u===void 0?new VI$:u;var R=R===void 0?new _.RY:R;this.pathPrefix=G;this.defaultQueryParams=B;this.getXsrfToken=F;this.JSC$20089_pubsub=R;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Xl(function(){var N;((N=D.channel)==null?void 0:W7Q((new Z32(N,N.JSC$19954_channel_)).JSC$19964_channel_.forwardChannelRequestPool_))===0&&D.connect(D.connectionParams,D.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20089_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20089_channelOpenedCounter=new JS$;this.JSC$20089_channelClosedCounter=new cSD;this.JSC$20089_channelMessageReceivedCounter=new IOA;this.JSC$20089_channelErrorCounter=new fOD};
ENG.prototype.connect=function(G,B){G=G===void 0?{}:G;B=B===void 0?0:B;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=G,this.connectUi=B,miZ(this),(G=_.v5("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=G: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 C1(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,XBA(this))};
var XBA=function(G){_.H1(G.channel,"w",function(){G.channelState=3;G.reconnectTimer.reset();G.connectionParams=null;G.connectUi=0;for(var B=_.C(G.nonAckedMessagesOnChannelClosed),F=B.next();!F.done;F=B.next())F=F.value,G.channel&&G.channel.send(F);G.nonAckedMessagesOnChannelClosed=[];G.publish("webChannelOpened");G.JSC$20089_channelOpenedCounter.increment("WEB_CHANNEL")});
_.H1(G.channel,"x",function(){G.channelState=0;G.reconnectTimer.isActive()||G.publish("webChannelClosed");var B,F=(B=G.channel)==null?void 0:gVD(new Z32(B,B.JSC$19954_channel_));F&&(G.nonAckedMessagesOnChannelClosed=[].concat(_.gi(F)));G.JSC$20089_channelClosedCounter.increment("WEB_CHANNEL")});
_.H1(G.channel,"z",function(B){var F=B.data;F[0]==="gracefulReconnect"?(G.reconnectTimer.start(),G.channel&&G.channel.close()):G.publish("webChannelMessage",new d7G(F[0],F[1]));G.lastStatusCode=B.statusCode;G.JSC$20089_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.H1(G.channel,"y",function(){G.lastStatusCode===401||G.reconnectTimer.start();G.publish("webChannelError");G.JSC$20089_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.w=ENG.prototype;_.w.disconnect=function(G){this.disconnectUi=G===void 0?0:G;this.reconnectTimer.stop();miZ(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.w.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.w.reconnect=function(){var G=this.reconnectTimer;G.delay_.fire();G.start()};
_.w.sendMessage=function(G,B){this.channel&&(miZ(this),G=Object.assign({},{_sc:G},B),this.channel.send(G))};
_.w.setLoungeToken=function(G){G||this.reconnectTimer.stop();G?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=G:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var miZ=function(G){var B=G.getXsrfToken();B?G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=B:delete G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.w=ENG.prototype;_.w.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.w.publish=function(G){return this.JSC$20089_pubsub.publish.apply(this.JSC$20089_pubsub,[G].concat(_.gi(_.xS.apply(1,arguments))))};
_.w.subscribe=function(G,B,F){return this.JSC$20089_pubsub.subscribe(G,B,F)};
_.w.unsubscribe=function(G,B,F){return this.JSC$20089_pubsub.unsubscribe(G,B,F)};
_.w.unsubscribeByKey=function(G){return this.JSC$20089_pubsub.unsubscribeByKey(G)};
_.w.dispose=function(){this.JSC$20089_disposed||(this.JSC$20089_disposed=!0,_.ve(this.JSC$20089_pubsub),this.disconnect(),_.ve(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.w.isDisposed=function(){return this.JSC$20089_disposed};var q_D=function(G){_.W1.call(this);this.webChannelService=G();this.webChannelService.subscribe("webChannelOpened",this.JSC$20097_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.r(q_D,_.W1);_.w=q_D.prototype;_.w.connect=function(G,B){this.webChannelService.connect(G,B)};
_.w.disconnect=function(G){this.webChannelService.disconnect(G)};
_.w.reconnect=function(){this.webChannelService.reconnect()};
_.w.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.w.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.w.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.w.JSC$20097_onOpened=function(){this.dispatchEvent("channelOpened")};
_.w.onClosed=function(){this.dispatchEvent("channelClosed")};
_.w.onMessage=function(G){this.dispatchEvent(new SPB(G))};
_.w.onError=function(){this.dispatchEvent(new sjU(this.webChannelService.lastStatusCode===401?1:0))};
_.w.sendMessage=function(G,B){this.webChannelService.sendMessage(G,B)};
_.w.setLoungeToken=function(G){this.webChannelService.setLoungeToken(G)};
_.w.dispose=function(){this.webChannelService.dispose()};var km$=Date.now(),Hy=null,WrD=Array(50),rxD=-1,Hkz=!1;var eX=function(G){G=G===void 0?!1:G;_.uz.call(this);this.pubSub_=new _.RY(G);_.gq(this,this.pubSub_)};
_.IC(eX,_.uz);eX.prototype.subscribe=function(G,B,F){return this.isDisposed()?0:this.pubSub_.subscribe(G,B,F)};
eX.prototype.unsubscribe=function(G,B,F){return this.isDisposed()?!1:this.pubSub_.unsubscribe(G,B,F)};
eX.prototype.unsubscribeByKey=function(G){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(G)};
eX.prototype.publish=function(G,B){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.IC($o,eX);$o.prototype.getScreens=function(){return this.screens};
$o.prototype.contains=function(G){return!!x7N(this.screens,G)};
$o.prototype.get=function(G){return G?LC(this.screens,G):null};
var Q4$=function(G,B){var F=G.get(B.uuid)||G.get(B.id);if(F)return G=F.name,F.id=B.id||F.id,F.name=B.name,F.token=B.token,F.uuid=B.uuid||F.uuid,F.name!=G;G.screens.push(B);return!0},j4S=function(G,B){var F=G.screens.length!=B.length;
G.screens=_.Zw(G.screens,function(R){return!!x7N(B,R)});
for(var D=B.length,u=0;u<D;u++)F=Q4$(G,B[u])||F;return F},LuZ=function(G,B){var F=G.screens.length;
G.screens=_.Zw(G.screens,function(D){return!(D||B?!D!=!B?0:D.id==B.id:1)});
return G.screens.length<F};
$o.prototype.info=function(G){ko(this.JSC$20101_logName_,G)};var rwz=function(G,B,F,D,u){eX.call(this);this.JSC$20104_http_=G;this.pairingCode_=B;this.deviceId_=F;this.friendlyName_=D;this.enableShortLivedLoungeToken_=u;this.pollIndex_=0;this.JSC$20104_xhr_=null;this.JSC$20104_timer_=NaN};
_.r(rwz,eX);_.w=rwz.prototype;_.w.start=function(){!this.JSC$20104_xhr_&&isNaN(this.JSC$20104_timer_)&&this.poll_()};
_.w.stop=function(){this.JSC$20104_xhr_&&(this.JSC$20104_xhr_.abort(),this.JSC$20104_xhr_=null);isNaN(this.JSC$20104_timer_)||(_.Dl(this.JSC$20104_timer_),this.JSC$20104_timer_=NaN)};
_.w.disposeInternal=function(){this.stop();eX.prototype.disposeInternal.call(this)};
_.w.poll_=function(){this.JSC$20104_timer_=NaN;this.JSC$20104_xhr_=_.uX(Wy(this.JSC$20104_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.R_)(this.JSC$20106_onSuccess_,this),onError:(0,_.R_)(this.onError_,this),onTimeout:(0,_.R_)(this.JSC$20106_onTimeout_,this)})};
_.w.JSC$20106_onSuccess_=function(G,B){this.JSC$20104_xhr_=null;G=B.screen||{};G.dialId=this.deviceId_;G.name=this.friendlyName_;B=-1;this.enableShortLivedLoungeToken_&&G.shortLivedLoungeToken&&G.shortLivedLoungeToken.value&&G.shortLivedLoungeToken.refreshIntervalMs&&(G.screenIdType="shortLived",G.loungeToken=G.shortLivedLoungeToken.value,B=G.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new jX(G),B)};
_.w.onError_=function(G){this.JSC$20104_xhr_=null;G.status&&G.status==404?this.pollIndex_>=WuS.length?this.publish("pairingFailed",Error("bl")):(G=WuS[this.pollIndex_],this.JSC$20104_timer_=_.iX((0,_.R_)(this.poll_,this),G),this.pollIndex_++):this.publish("pairingFailed",Error("cl`"+G.status))};
_.w.JSC$20106_onTimeout_=function(){this.JSC$20104_xhr_=null;this.publish("pairingFailed",Error("dl"))};
var WuS=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.IC(bj,$o);_.w=bj.prototype;_.w.start=function(){zy(this)&&this.publish("screenChange");!_.np("yt-remote-lounge-token-expiration")&&H2$(this);_.Dl(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.iX((0,_.R_)(this.start,this),1E4)};
_.w.add=function(G,B){zy(this);Q4$(this,G);kz2(this,!1);this.publish("screenChange");B(G);G.token||H2$(this)};
_.w.remove=function(G,B){var F=zy(this);LuZ(this,G)&&(kz2(this,!1),F=!0);B(G);F&&this.publish("screenChange")};
_.w.updateName=function(G,B,F,D){var u=zy(this),R=this.get(G.id);R?(R.name!=B&&(R.name=B,kz2(this,!1),u=!0),F(G)):D(Error("el"));u&&this.publish("screenChange")};
_.w.disposeInternal=function(){_.Dl(this.loungeTokenRefreshTimer_);bj.superClass_.disposeInternal.call(this)};
var H2$=function(G){if(G.screens.length){var B=_.qK(G.screens,function(D){return D.id}),F=Wy(G.JSC$20108_http_,"/pairing/get_lounge_token_batch");
G.JSC$20108_http_.sendRequest("POST",F,{screen_ids:B.join(",")},(0,_.R_)(G.handleLoungeTokens_,G),(0,_.R_)(G.handleLoungeTokenError_,G))}};
bj.prototype.handleLoungeTokens_=function(G){zy(this);var B=this.screens.length;G=G&&G.screens||[];for(var F=G.length,D=0;D<F;++D){var u=G[D],R=this.get(u.screenId);R&&(R.token=u.loungeToken,--B)}kz2(this,!B);B&&ko(this.JSC$20101_logName_,"Missed "+B+" lounge tokens.")};
bj.prototype.handleLoungeTokenError_=function(G){ko(this.JSC$20101_logName_,"Requesting lounge tokens failed: "+G)};
var zy=function(G){if(_.X("deprecate_pair_servlet_enabled"))return j4S(G,[]);var B=a5$(C4A());B=_.Zw(B,function(F){return!F.uuid});
return j4S(G,B)},kz2=function(G,B){yxD(_.qK(G.screens,hgU));
B&&NJ2()};var af=function(G,B){eX.call(this);this.getScreensToCheck_=B;B=(B=_.np("yt-remote-online-screen-ids")||"")?B.split(","):[];for(var F={},D=this.getScreensToCheck_(),u=D.length,R=0;R<u;++R){var N=D[R].id;F[N]=_.YM(B,N)}this.screenIdSet_=F;this.JSC$20111_http_=G;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;O2N("Initialized with "+_.Q_(this.screenIdSet_))};
_.r(af,eX);af.prototype.isOnline=function(G){return!!this.screenIdSet_[G]};
af.prototype.start=function(){var G=parseInt(_.np("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Td()-144E5<G?0:G)?egZ(this):(this.fastCheckEndTime_=_.Td()+3E5,_.yW("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
af.prototype.isEmpty=function(){return _.UK.isEmpty(this.screenIdSet_)};
af.prototype.update=function(){O2N("Updating availability on schedule.");var G=this.getScreensToCheck_(),B=_.UK.filter(this.screenIdSet_,function(F,D){return F&&!!LC(G,D)},this);
$iG(this,B)};
var zgD=function(G,B,F){var D=Wy(G.JSC$20111_http_,"/pairing/get_screen_availability");G.JSC$20111_http_.sendRequest("POST",D,{lounge_token:B.token},(0,_.R_)(function(u){u=u.screens||[];for(var R=u.length,N=0;N<R;++N)if(u[N].loungeToken==B.token){F(u[N].status=="online");return}F(!1)},G),(0,_.R_)(function(){F(!1)},G))};
af.prototype.disposeInternal=function(){_.Dl(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);eX.prototype.disposeInternal.call(this)};
var $iG=function(G,B){a:if(_.UK.getCount(B)!=_.UK.getCount(G.screenIdSet_))var F=!1;else{F=_.UK.getKeys(B);for(var D=F.length,u=0;u<D;++u)if(!G.screenIdSet_[F[u]]){F=!1;break a}F=!0}F||(O2N("Updated online screens: "+_.Q_(G.screenIdSet_)),G.screenIdSet_=B,G.publish("screenChange"));b22(G)},egZ=function(G){isNaN(G.refreshTimer_)||_.Dl(G.refreshTimer_);
G.refreshTimer_=_.iX((0,_.R_)(G.requestScreenAvailability_,G),G.fastCheckEndTime_>0&&G.fastCheckEndTime_<_.Td()?2E4:1E4)};
af.prototype.requestScreenAvailability_=function(){_.Dl(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var G=VbD(this);if(_.UK.getCount(G)){var B=Wy(this.JSC$20111_http_,"/pairing/get_screen_availability"),F={lounge_token:_.UK.getKeys(G).join(",")};this.currentRequest_=this.JSC$20111_http_.sendRequest("POST",B,F,(0,_.R_)(this.onScreenAvailability_,this,G),(0,_.R_)(this.onScreenAvailabilityError_,this))}else $iG(this,{}),egZ(this)};
af.prototype.onScreenAvailability_=function(G,B){this.currentRequest_=null;var F=_.UK.getKeys(VbD(this));if(_.sS(F,_.UK.getKeys(G))){B=B.screens||[];F={};for(var D=B.length,u=0;u<D;++u)F[G[B[u].loungeToken]]=B[u].status=="online";$iG(this,F);egZ(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
af.prototype.onScreenAvailabilityError_=function(G){this.warn_("Screen availability failed: "+G);this.currentRequest_=null;egZ(this)};
var O2N=function(G){ko("OnlineScreenService",G)};
af.prototype.warn_=function(G){ko("OnlineScreenService",G)};
var VbD=function(G){var B={};_.dn(G.getScreensToCheck_(),function(F){F.token?B[F.token]=F.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return B},b22=function(G){G=_.UK.getKeys(_.UK.filter(G.screenIdSet_,function(B){return B}));
G.sort(_.oMz);G.length?_.yW("yt-remote-online-screen-ids",G.join(","),60):_.ln("yt-remote-online-screen-ids")};_.IC(V6,$o);_.w=V6.prototype;_.w.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.w.add=function(G,B,F){this.localScreenService_.add(G,B,F)};
_.w.remove=function(G,B,F){this.localScreenService_.remove(G,B,F);this.onlineScreenService_.update()};
_.w.updateName=function(G,B,F,D){this.localScreenService_.contains(G)?this.localScreenService_.updateName(G,B,F,D):(G="Updating name of unknown screen: "+G.name,ko(this.JSC$20101_logName_,G),D(Error(G)))};
_.w.getScreens=function(G){return G?this.screens:nQA(this.screens,_.Zw(this.automaticScreens_,function(B){return!this.contains(B)},this))};
_.w.JSC$20116_getOnlineScreens=function(){return _.Zw(this.getScreens(!0),function(G){return this.onlineScreenService_.isOnline(G.id)},this)};
var oaN=function(G,B,F,D,u,R){G.info("getAutomaticScreenByIds "+F+" / "+B);F||(F=G.deviceToScreenId_[B]);var N=G.getScreens(),y=F?LC(N,F):null;F&&(G.disableAutomaticScreenCache_||y)||(y=LC(N,B));if(y){y.uuid=B;var U=m6(G,y);zgD(G.onlineScreenService_,U,function(q){u(q?U:null)})}else F?vaD(G,F,(0,_.R_)(function(q){var h=m6(this,new jX({name:D,
screenId:F,loungeToken:q,dialId:B||""}));zgD(this.onlineScreenService_,h,function(K){u(K?h:null)})},G),R):u(null)};
V6.prototype.JSC$20116_getScreenByPollingPairingCode=function(G,B,F,D,u,R){var N=this;this.info("getDialScreenByPairingCode "+G+" / "+B);var y=new rwz(this.JSC$20114_http_,G,B,F,D);y.subscribe("pairingComplete",function(U,q){_.ve(y);u(m6(N,U),q)});
y.subscribe("pairingFailed",function(U){_.ve(y);R(U)});
y.start();return(0,_.R_)(y.stop,y)};
var MbQ=function(G,B){for(var F=G.screens.length,D=0;D<F;++D)if(G.screens[D].name==B)return G.screens[D];return null};
V6.prototype.JSC$20116_getScreenByPairingCode=function(G,B,F,D){_.uX(Wy(this.JSC$20114_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:G},timeout:5E3,onSuccess:(0,_.R_)(function(u,R){u=new jX(R.screen||{});if(!u.name||MbQ(this,u.name)){a:{R=u.name;for(var N=2,y=B(R,N);MbQ(this,y);){N++;if(N>20)break a;y=B(R,N)}R=y}u.name=R}F(m6(this,u))},this),
onError:(0,_.R_)(function(u){D(Error("fl`"+u.status))},this),
onTimeout:(0,_.R_)(function(){D(Error("gl"))},this)})};
var pBG=function(G,B,F){zgD(G.onlineScreenService_,B,F)};
V6.prototype.disposeInternal=function(){_.ve(this.localScreenService_);_.ve(this.onlineScreenService_);V6.superClass_.disposeInternal.call(this)};
var vaD=function(G,B,F,D){G.info("requestLoungeToken_ for "+B);var u={postParams:{screen_ids:B},method:"POST",context:G,onSuccess:function(R,N){R=N&&N.screens||[];R[0]&&R[0].screenId==B?F(R[0].loungeToken):D(Error("hl"))},
onError:function(){D(Error("il"))}};
_.uX(Wy(G.JSC$20114_http_,"/pairing/get_lounge_token_batch"),u)},YHH=function(G){G.screens=G.localScreenService_.getScreens();
for(var B=_.UK.transpose(G.deviceToScreenId_),F=G.screens.length,D=0;D<F;++D){var u=G.screens[D];u.uuid=B[u.id]||""}G.info("Updated manual screens: "+OkQ(G.screens))};
V6.prototype.handleScreenChange_=function(){YHH(this);this.publish("screenChange");this.onlineScreenService_.update()};
var etD=function(G){AwQ(G);G.localScreenService_=new bj(G.JSC$20114_http_);G.localScreenService_.subscribe("screenChange",(0,_.R_)(G.handleScreenChange_,G));YHH(G);G.disableAutomaticScreenCache_||(G.automaticScreens_=a5$(_.np("yt-remote-automatic-screen-cache")||[]));AwQ(G);G.info("Initializing automatic screens: "+OkQ(G.automaticScreens_));G.onlineScreenService_=new af(G.JSC$20114_http_,(0,_.R_)(G.getScreens,G,!0));G.onlineScreenService_.subscribe("screenChange",(0,_.R_)(function(){this.publish("onlineScreenChange")},
G))},m6=function(G,B){var F=G.get(B.id);
F?(F.uuid=B.uuid,B=F):((F=LC(G.automaticScreens_,B.uuid))?(F.id=B.id,F.token=B.token,B=F):G.automaticScreens_.push(B),G.disableAutomaticScreenCache_||diQ(G));AwQ(G);G.deviceToScreenId_[B.uuid]=B.id;_.yW("yt-remote-device-id-map",G.deviceToScreenId_,31536E3);return B},diQ=function(G){G=_.Zw(G.automaticScreens_,function(B){return B.idType!="shortLived"});
_.yW("yt-remote-automatic-screen-cache",_.qK(G,hgU))},AwQ=function(G){G.deviceToScreenId_=_.np("yt-remote-device-id-map")||{}};
V6.prototype.dispose=V6.prototype.dispose;_.IC(vy,eX);var XY=function(G,B){G.screen_=B;G.publish("sessionScreen",G.screen_)},JwH=function(G,B){G.screen_&&(G.screen_.token=B,m6(G.JSC$20118_screenService_,G.screen_));
G.publish("sessionScreen",G.screen_)};
vy.prototype.onSessionStopped=function(G){this.isDisposed()||(G&&(Qn(this,""+G),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
vy.prototype.info=function(G){ko(this.JSC$20118_logName_,G)};
var Qn=function(G,B){ko(G.JSC$20118_logName_,B)};
vy.prototype.JSC$20120_getCastSession=function(){return null};
vy.prototype.setDisplayStatus=function(G){var B=this.receiver_;G?(B.displayStatus=new chrome.cast.ReceiverDisplayStatus(G,[]),B.displayStatus.showStop=!0):B.displayStatus=null;chrome.cast.setReceiverDisplayStatus(B,(0,_.R_)(function(){this.info("Updated receiver status for "+B.friendlyName+": "+G)},this),(0,_.R_)(function(){Qn(this,"Failed to update receiver status for: "+B.friendlyName)},this))};
vy.prototype.disposeInternal=function(){this.setDisplayStatus("");vy.superClass_.disposeInternal.call(this)};var jM=function(G,B,F){vy.call(this,G,B,"CastSession");var D=this;this.config_=F;this.JSC$20123_session_=null;this.JSC$20123_boundSessionUpdate_=(0,_.R_)(this.JSC$20125_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.R_)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.iX(function(){cwS(D,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20123_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20123_isInitLoungeToken_=!1;this.JSC$20123_lastLoungeTokenRefreshError_="unknown"};
_.r(jM,vy);_.w=jM.prototype;
_.w.setCastSession=function(G){if(this.JSC$20123_session_){if(this.JSC$20123_session_==G)return;Qn(this,"Overriding cast session with new session object");TQB(this);this.JSC$20123_isInitLoungeToken_=!1;this.JSC$20123_lastLoungeTokenRefreshError_="unknown";this.JSC$20123_session_.removeUpdateListener(this.JSC$20123_boundSessionUpdate_);this.JSC$20123_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20123_session_=G;this.JSC$20123_session_.addUpdateListener(this.JSC$20123_boundSessionUpdate_);this.JSC$20123_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);I5D(this,"getMdxSessionStatus")};
_.w.launchWithParams=function(G){this.info("launchWithParams no-op for Cast: "+_.Q_(G))};
_.w.stop=function(){if(this.JSC$20123_session_)this.JSC$20123_session_.stop((0,_.R_)(function(){this.onSessionStopped()},this),(0,_.R_)(function(){this.onSessionStopped(Error("jl"))},this));
else this.onSessionStopped(Error("kl"))};
_.w.setDisplayStatus=function(){};
_.w.disposeInternal=function(){this.info("disposeInternal");TQB(this);this.JSC$20123_session_&&(this.JSC$20123_session_.removeUpdateListener(this.JSC$20123_boundSessionUpdate_),this.JSC$20123_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20123_session_=null;vy.prototype.disposeInternal.call(this)};
var tbS=function(G,B){_.Dl(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0;B==0?f5G(G):G.getLoungeTokenTimeoutKey_=_.iX(function(){f5G(G)},B)},f5G=function(G){I5D(G,"getLoungeToken");
_.Dl(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=_.iX(function(){Z2A(G,null)},3E4)},I5D=function(G,B){G.info("sendYoutubeMessage_: "+B+" "+_.Q_(void 0));
var F={};F.type=B;G.JSC$20123_session_?G.JSC$20123_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",F,function(){},(0,_.R_)(function(){Qn(this,"Failed to send message: "+B+".")},G)):Qn(G,"Sending yt message without session: "+_.Q_(F))};
jM.prototype.onYoutubeMessage_=function(G,B){if(!this.isDisposed())if(B)if(B=_.NW(B),_.Zc(B))switch(G=""+B.type,B=B.data||{},this.info("onYoutubeMessage_: "+G+" "+_.Q_(B)),G){case "mdxSessionStatus":cwS(this,B);break;case "loungeToken":Z2A(this,B);break;default:Qn(this,"Unknown youtube message: "+G)}else Qn(this,"Unable to parse message.");else Qn(this,"No data in message.")};
var gaD=function(G,B){if(B)G.info("onConnectedScreenId_: Received screenId: "+B),G.screen_&&G.screen_.id==B||G.getScreen_(B,function(F){XY(G,F)},function(){return G.onSessionStopped()},5);
else G.onSessionStopped(Error("ll"))},s4N=function(G,B,F){G.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(B));
var D=new jX(B);SHH(G,D,function(u){u?(G.JSC$20123_isInitLoungeToken_=!0,m6(G.JSC$20118_screenService_,D),XY(G,D),G.JSC$20123_lastLoungeTokenRefreshError_="unknown",tbS(G,F)):(_.Mn(Error("ml`"+JSON.stringify(B))),G.onSessionStopped())},5)},cwS=function(G,B){_.Dl(G.sessionStatusTimeoutKey_);
G.sessionStatusTimeoutKey_=0;if(B)G.config_.enableCastLoungeToken&&B.loungeToken?B.deviceId?G.screen_&&G.screen_.uuid==B.deviceId||(B.loungeTokenRefreshIntervalMs?s4N(G,{name:G.receiver_.friendlyName,screenId:B.screenId,loungeToken:B.loungeToken,dialId:B.deviceId,screenIdType:"shortLived"},B.loungeTokenRefreshIntervalMs):(_.Mn(Error("ol`"+JSON.stringify(B))),gaD(G,B.screenId))):(_.Mn(Error("nl`"+JSON.stringify(B))),gaD(G,B.screenId)):gaD(G,B.screenId);else G.onSessionStopped(Error("ll"))},Z2A=function(G,
B){_.Dl(G.onLoungeTokenTimeoutKey_);
G.onLoungeTokenTimeoutKey_=0;var F=null;if(B)if(B.loungeToken){var D;((D=G.screen_)==null?void 0:D.token)==B.loungeToken&&(F="staleLoungeToken")}else F="missingLoungeToken";else F="noLoungeTokenResponse";F?(G.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(B)+", error: "+F)),G.JSC$20123_lastLoungeTokenRefreshError_=F,tbS(G,3E4)):(JwH(G,B.loungeToken),G.JSC$20123_isInitLoungeToken_=!1,G.JSC$20123_lastLoungeTokenRefreshError_="unknown",tbS(G,B.loungeTokenRefreshIntervalMs))};
jM.prototype.getScreen_=function(G,B,F,D){_.Dl(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;oaN(this.JSC$20118_screenService_,this.receiver_.label,G,this.receiver_.friendlyName,(0,_.R_)(function(u){u?B(u):D>=0?(Qn(this,"Screen "+G+" appears to be offline. "+D+" retries left."),this.getScreenTimeoutKey_=_.iX((0,_.R_)(this.getScreen_,this,G,B,F,D-1),300)):F(Error("pl"))},this),F)};
var SHH=function(G,B,F,D){_.Dl(G.JSC$20123_checkScreenAvailabilityTimeoutKey_);G.JSC$20123_checkScreenAvailabilityTimeoutKey_=0;pBG(G.JSC$20118_screenService_,B,function(u){u||D<0?F(u):G.JSC$20123_checkScreenAvailabilityTimeoutKey_=_.iX(function(){SHH(G,B,F,D-1)},300)})};
jM.prototype.JSC$20120_getCastSession=function(){return this.JSC$20123_session_};
jM.prototype.JSC$20125_onSessionUpdate_=function(G){this.isDisposed()||G||(Qn(this,"Cast session died."),this.onSessionStopped())};
var TQB=function(G){_.Dl(G.getScreenTimeoutKey_);G.getScreenTimeoutKey_=0;_.Dl(G.JSC$20123_checkScreenAvailabilityTimeoutKey_);G.JSC$20123_checkScreenAvailabilityTimeoutKey_=0;_.Dl(G.sessionStatusTimeoutKey_);G.sessionStatusTimeoutKey_=0;_.Dl(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=0;_.Dl(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0};var L1=function(G,B,F,D){vy.call(this,G,B,"DialSession");this.config_=D;this.JSC$20127_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20127_theme_=F;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20127_deferredLaunchDeadlineTimer_=NaN;this.JSC$20127_boundSessionUpdate_=(0,_.R_)(this.JSC$20129_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20127_isInitLoungeToken_=!1;this.JSC$20127_lastLoungeTokenRefreshError_="unknown"};
_.r(L1,vy);L1.prototype.setCastSession=function(G){this.JSC$20127_session_=G;this.JSC$20127_session_.addUpdateListener(this.JSC$20127_boundSessionUpdate_)};
L1.prototype.launchWithParams=function(G){this.connectData_=G;this.deferredLaunch_()};
L1.prototype.stop=function(){xiB(this);if(this.JSC$20127_session_)this.JSC$20127_session_.stop((0,_.R_)(this.onSessionStopped,this,null),(0,_.R_)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
L1.prototype.disposeInternal=function(){xiB(this);this.JSC$20127_session_&&this.JSC$20127_session_.removeUpdateListener(this.JSC$20127_boundSessionUpdate_);this.JSC$20127_session_=null;vy.prototype.disposeInternal.call(this)};
var PgG=function(G){var B;return!!(G.config_.enableDialLoungeToken&&((B=G.JSC$20127_session_)==null?0:B.getDialAppInfo))},BXN=function(G){G.cancelPolling_=G.JSC$20118_screenService_.JSC$20116_getScreenByPollingPairingCode(G.reversePairingCode_,G.receiver_.label,G.receiver_.friendlyName,PgG(G),function(B,F){G.cancelPolling_=function(){};
G.JSC$20127_isInitLoungeToken_=!0;XY(G,B);B.idType=="shortLived"&&F>0&&GhH(G,F)},function(B){G.cancelPolling_=function(){};
G.onSessionStopped(B)})};
L1.prototype.JSC$20129_onSessionUpdate_=function(G){this.isDisposed()||G||(Qn(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var i$U=function(G){var B={};B.pairingCode=G.reversePairingCode_;B.theme=G.JSC$20127_theme_;Uh$()&&(B.env_useStageMdx=1);return _.sh(B)},F2S=function(G){return new Promise(function(B){G.reversePairingCode_=SFZ();
if(G.connectData_){var F=new chrome.cast.DialLaunchResponse(!0,i$U(G));B(F);BXN(G)}else G.deferredLaunch_=function(){_.Dl(G.JSC$20127_deferredLaunchDeadlineTimer_);G.deferredLaunch_=function(){};
G.JSC$20127_deferredLaunchDeadlineTimer_=NaN;var D=new chrome.cast.DialLaunchResponse(!0,i$U(G));B(D);BXN(G)},G.JSC$20127_deferredLaunchDeadlineTimer_=_.iX(function(){G.deferredLaunch_()},100)})},uxz=function(G,B,F){G.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(B));
var D=new jX(B);return(new Promise(function(u){DrS(G,D,function(R){R?(G.JSC$20127_isInitLoungeToken_=!0,m6(G.JSC$20118_screenService_,D),XY(G,D),GhH(G,F)):_.Mn(Error("rl`"+JSON.stringify(B)));u(R)},5)})).then(function(u){return u?new chrome.cast.DialLaunchResponse(!1):F2S(G)})},R4H=function(G,B){var F=G.launchData_.receiver.label,D=G.receiver_.friendlyName;
return(new Promise(function(u){oaN(G.JSC$20118_screenService_,F,B,D,function(R){R&&R.token&&XY(G,R);u(R)},function(R){Qn(G,"Failed to get DIAL screen: "+R);
u(null)})})).then(function(u){return u&&u.token?new chrome.cast.DialLaunchResponse(!1):F2S(G)})},DrS=function(G,B,F,D){_.Dl(G.JSC$20127_checkScreenAvailabilityTimeoutKey_);
G.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;pBG(G.JSC$20118_screenService_,B,function(u){u||D<0?F(u):G.JSC$20127_checkScreenAvailabilityTimeoutKey_=_.iX(function(){DrS(G,B,F,D-1)},300)})},GhH=function(G,B){G.info("getDialAppInfoWithTimeout_ "+B);
PgG(G)&&(_.Dl(G.getDialAppInfoTimeoutKey_),G.getDialAppInfoTimeoutKey_=0,B==0?wiD(G):G.getDialAppInfoTimeoutKey_=_.iX(function(){wiD(G)},B))},wiD=function(G){PgG(G)&&G.JSC$20127_session_.getDialAppInfo(function(B){G.info("getDialAppInfo dialLaunchData: "+JSON.stringify(B));
B=B.extraData||{};var F=null;if(B.loungeToken){var D;((D=G.screen_)==null?void 0:D.token)==B.loungeToken&&(F="staleLoungeToken")}else F="missingLoungeToken";F?(G.JSC$20127_lastLoungeTokenRefreshError_=F,GhH(G,3E4)):(G.JSC$20127_isInitLoungeToken_=!1,G.JSC$20127_lastLoungeTokenRefreshError_="unknown",JwH(G,B.loungeToken),GhH(G,B.loungeTokenRefreshIntervalMs))},function(B){G.info("getDialAppInfo error: "+B);
G.JSC$20127_lastLoungeTokenRefreshError_="noLoungeTokenResponse";GhH(G,3E4)})},xiB=function(G){_.Dl(G.JSC$20127_checkScreenAvailabilityTimeoutKey_);
G.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;_.Dl(G.getDialAppInfoTimeoutKey_);G.getDialAppInfoTimeoutKey_=0;G.cancelPolling_();G.cancelPolling_=function(){};
_.Dl(G.JSC$20127_deferredLaunchDeadlineTimer_)};var rf=function(G,B){vy.call(this,G,B,"ManualSession");this.JSC$20131_deferredLaunchDeadlineTimer_=_.iX((0,_.R_)(this.launchWithParams,this,null),150)};
_.r(rf,vy);rf.prototype.stop=function(){this.onSessionStopped()};
rf.prototype.setCastSession=function(){};
rf.prototype.launchWithParams=function(){_.Dl(this.JSC$20131_deferredLaunchDeadlineTimer_);this.JSC$20131_deferredLaunchDeadlineTimer_=NaN;var G=LC(this.JSC$20118_screenService_.getScreens(),this.receiver_.label);if(G)XY(this,G);else this.onSessionStopped(Error("sl"))};
rf.prototype.disposeInternal=function(){_.Dl(this.JSC$20131_deferredLaunchDeadlineTimer_);this.JSC$20131_deferredLaunchDeadlineTimer_=NaN;vy.prototype.disposeInternal.call(this)};var Yo=function(G,B){eX.call(this);this.config_=B;this.JSC$20134_screenService_=G;this.JSC$20134_appId_=B.appId||"233637DE";this.JSC$20134_theme_=B.theme||"cl";this.disableDial_=B.disableCastApi||!1;this.forceMirroring_=B.forceMirroring||!1;this.JSC$20134_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.R_)(this.onReceiverAction_,this)};
_.r(Yo,eX);
Yo.prototype.init=function(G,B){chrome.cast.timeout.requestSession=3E4;var F=new chrome.cast.SessionRequest(this.JSC$20134_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.X("desktop_enable_cast_connect")&&(F.androidReceiverCompatible=!0);this.disableDial_||(F.dialRequest=new chrome.cast.DialRequest("YouTube"));var D=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;G=G||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var u=(0,_.R_)(this.onReceiverUpdated_,this);
F=new chrome.cast.ApiConfig(F,(0,_.R_)(this.onSessionEstablished_,this),u,D,G);F.customDialLaunchCallback=(0,_.R_)(this.onDialLaunchRequested_,this);chrome.cast.initialize(F,(0,_.R_)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),QhA(),this.JSC$20134_screenService_.subscribe("onlineScreenChange",(0,_.R_)(this.JSC$20136_onScreenChange_,this)),this.customReceivers_=CpB(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.R_)(function(R){this.warn_("Failed to set initial custom receivers: "+
_.Q_(R))},this)),this.publish("yt-remote-cast2-availability-change",NXD(this)),B(!0))},this),(0,_.R_)(function(R){this.warn_("Failed to initialize API: "+_.Q_(R));
B(!1)},this))};
Yo.prototype.setConnectedScreenStatus=function(G,B){Wk("Setting connected screen ID: "+G+" -> "+B);if(this.JSC$20134_session_){var F=this.JSC$20134_session_.screen_;if(!G||F&&F.id!=G)Wk("Unsetting old screen status: "+this.JSC$20134_session_.receiver_.friendlyName),Hk(this,null)}if(G&&B){if(!this.JSC$20134_session_){G=LC(this.JSC$20134_screenService_.getScreens(),G);if(!G){Wk("setConnectedScreenStatus: Unknown screen.");return}if(G.idType=="shortLived"){Wk("setConnectedScreenStatus: Screen with id type to be short lived.");
return}F=y6S(this,G);F||(Wk("setConnectedScreenStatus: Connected receiver not custom..."),F=new chrome.cast.Receiver(G.uuid?G.uuid:G.id,G.name),F.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(F),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.R_)(function(D){this.warn_("Failed to set initial custom receivers: "+_.Q_(D))},this)));
Wk("setConnectedScreenStatus: new active receiver: "+F.friendlyName);Hk(this,new rf(this.JSC$20134_screenService_,F),!0)}this.JSC$20134_session_.setDisplayStatus(B)}else Wk("setConnectedScreenStatus: no screen.")};
var y6S=function(G,B){return B?dt(G.customReceivers_,function(F){return PAB(B,F.label)},G):null};
Yo.prototype.setLaunchParams=function(G){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20134_session_?this.JSC$20134_session_.launchWithParams(G):this.warn_("Setting connection data without a session")};
Yo.prototype.JSC$20136_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20134_session_?(this.JSC$20134_session_.stop(),Hk(this,null)):Wk("Stopping non-existing session")};
Yo.prototype.requestSession=function(){chrome.cast.requestSession((0,_.R_)(this.onSessionEstablished_,this),(0,_.R_)(this.onSessionRequestFailed_,this))};
Yo.prototype.disposeInternal=function(){this.JSC$20134_screenService_.unsubscribe("onlineScreenChange",(0,_.R_)(this.JSC$20136_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.dU(_.Yf("yt.mdx.remote.debug.handlers_")||[],aeD);_.ve(this.JSC$20134_session_);eX.prototype.disposeInternal.call(this)};
var Wk=function(G){ko("Controller",G)};
Yo.prototype.warn_=function(G){ko("Controller",G)};
var aeD=function(G){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(G)},NXD=function(G){return G.hasCastReceiver_||!!G.customReceivers_.length||!!G.JSC$20134_session_},Hk=function(G,B,F){B!=G.JSC$20134_session_&&(_.ve(G.JSC$20134_session_),(G.JSC$20134_session_=B)?(F?G.publish("yt-remote-cast2-receiver-resumed",B.receiver_):G.publish("yt-remote-cast2-receiver-selected",B.receiver_),B.subscribe("sessionScreen",(0,_.R_)(G.onSessionScreen_,G,B)),B.subscribe("sessionFailed",
function(){return n5$(G,B)}),B.screen_?G.publish("yt-remote-cast2-session-change",B.screen_):F&&G.JSC$20134_session_.launchWithParams(null)):G.publish("yt-remote-cast2-session-change",null))},n5$=function(G,B){G.JSC$20134_session_==B&&G.publish("yt-remote-cast2-session-failed")};
_.w=Yo.prototype;_.w.onSessionScreen_=function(G,B){this.JSC$20134_session_==G&&(B||Hk(this,null),this.publish("yt-remote-cast2-session-change",B))};
_.w.onReceiverAction_=function(G,B){if(!this.isDisposed())if(G)switch(G.friendlyName=chrome.cast.unescape(G.friendlyName),Wk("onReceiverAction_ "+G.label+" / "+G.friendlyName+"-- "+B),B){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20134_session_)if(this.JSC$20134_session_.receiver_.label!=G.label)Wk("onReceiverAction_: Stopping active receiver: "+this.JSC$20134_session_.receiver_.friendlyName),this.JSC$20134_session_.stop();else{Wk("onReceiverAction_: Casting to active receiver.");this.JSC$20134_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20134_session_.screen_);break}switch(G.receiverType){case chrome.cast.ReceiverType.CUSTOM:Hk(this,new rf(this.JSC$20134_screenService_,G));break;case chrome.cast.ReceiverType.DIAL:Hk(this,new L1(this.JSC$20134_screenService_,G,this.JSC$20134_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Hk(this,new jM(this.JSC$20134_screenService_,G,this.config_));break;default:this.warn_("Unknown receiver type: "+G.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20134_session_&&
this.JSC$20134_session_.receiver_.label==G.label?this.JSC$20134_session_.stop():this.warn_("Stopping receiver w/o session: "+G.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.w.onDialLaunchRequested_=function(G){if(this.isDisposed())return Promise.reject(Error("tl"));var B=G.receiver;B.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+B.friendlyName),B.receiverType=chrome.cast.ReceiverType.DIAL);var F=this.JSC$20134_session_?this.JSC$20134_session_.receiver_:null;if(!F||F.label!=B.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+B.friendlyName),Promise.reject(Error("ul"));if(F&&F.label==B.label&&F.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20134_session_.screen_)return Wk("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20134_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+F.receiverType+'" to "dial" for '+B.friendlyName);Hk(this,new L1(this.JSC$20134_screenService_,B,this.JSC$20134_theme_,this.config_))}B=this.JSC$20134_session_;B.launchData_=G;B.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(G=B.launchData_.extraData||{},F=G.screenId||null,PgG(B)&&G.loungeToken?G.loungeTokenRefreshIntervalMs?G=uxz(B,{name:B.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:B.launchData_.receiver.label,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.Mn(Error("ql`"+JSON.stringify(G))),G=R4H(B,F)):G=R4H(B,F)):G=F2S(B);return G};
_.w.onSessionEstablished_=function(G){var B=this;if(!this.isDisposed()&&!this.forceMirroring_){Wk("New cast session ID: "+G.sessionId);var F=G.receiver;if(F.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20134_session_)if(F.receiverType==chrome.cast.ReceiverType.CAST)Wk("Got resumed cast session before resumed mdx connection."),F.friendlyName=chrome.cast.unescape(F.friendlyName),Hk(this,new jM(this.JSC$20134_screenService_,F,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var D=this.JSC$20134_session_.receiver_,u=LC(this.JSC$20134_screenService_.getScreens(),D.label);u&&PAB(u,F.label)&&D.receiverType!=chrome.cast.ReceiverType.CAST&&F.receiverType==chrome.cast.ReceiverType.CAST&&(Wk("onSessionEstablished_: manual to cast session change "+F.friendlyName),_.ve(this.JSC$20134_session_),this.JSC$20134_session_=new jM(this.JSC$20134_screenService_,F,this.config_),this.JSC$20134_session_.subscribe("sessionScreen",(0,_.R_)(this.onSessionScreen_,this,this.JSC$20134_session_)),
this.JSC$20134_session_.subscribe("sessionFailed",function(){return n5$(B,B.JSC$20134_session_)}),this.JSC$20134_session_.launchWithParams(null));
this.JSC$20134_session_.setCastSession(G)}}};
_.w.JSC$20136_getCastSession=function(){return this.JSC$20134_session_?this.JSC$20134_session_.JSC$20120_getCastSession():null};
_.w.onSessionRequestFailed_=function(G){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.Q_(G)),G.code!=chrome.cast.ErrorCode.CANCEL&&Hk(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.w.onReceiverUpdated_=function(G){Wk("Receiver availability updated: "+G);if(!this.isDisposed()){var B=NXD(this);this.hasCastReceiver_=G==chrome.cast.ReceiverAvailability.AVAILABLE;NXD(this)!=B&&this.publish("yt-remote-cast2-availability-change",NXD(this))}};
var CpB=function(G){var B=G.JSC$20134_screenService_.JSC$20116_getOnlineScreens(),F=G.JSC$20134_session_&&G.JSC$20134_session_.receiver_;G=_.qK(B,function(D){F&&PAB(D,F.label)&&(F=null);var u=D.uuid?D.uuid:D.id,R=y6S(this,D);R?(R.label=u,R.friendlyName=D.name):(R=new chrome.cast.Receiver(u,D.name),R.receiverType=chrome.cast.ReceiverType.CUSTOM);return R},G);
F&&(F.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(F=new chrome.cast.Receiver(F.label,F.friendlyName),F.receiverType=chrome.cast.ReceiverType.CUSTOM),G.push(F));return G};
Yo.prototype.JSC$20136_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=CpB(this),Wk("Updating custom receivers: "+_.Q_(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.R_)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",NXD(this)))};
Yo.prototype.setLaunchParams=Yo.prototype.setLaunchParams;Yo.prototype.setConnectedScreenStatus=Yo.prototype.setConnectedScreenStatus;Yo.prototype.stopSession=Yo.prototype.JSC$20136_stopSession;Yo.prototype.getCastSession=Yo.prototype.JSC$20136_getCastSession;Yo.prototype.requestSession=Yo.prototype.requestSession;Yo.prototype.init=Yo.prototype.init;Yo.prototype.dispose=Yo.prototype.dispose;var luZ=_.vP(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Zk$=[],MFG=_.W7(luZ);var UrA=function(G){G.audioTrackId=null;G.trackData=null;G.playerState=-1;G.hasPrevious=!1;G.hasNext=!1;G.playerTime_=0;G.playerTimeAt_=_.Td();G.seekableStart_=0;G.seekableEnd_=0;G.duration_=0;G.loadedTime=0;G.liveIngestionTime_=NaN;G.isLive_=!1};
_.w=AO.prototype;
_.w.reset=function(G){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;G&&(this.index=G.index,this.listId=G.listId,this.videoId=G.videoId,this.playerState=G.playerState,this.volume=G.volume,this.muted=G.muted,this.audioTrackId=G.audioTrackId,this.trackData=G.trackData,this.hasPrevious=G.hasPrevious,this.hasNext=G.hasNext,this.playerTime_=G.playerTime,this.playerTimeAt_=G.playerTimeAt,this.seekableStart_=G.seekableStart,this.seekableEnd_=G.seekableEnd,this.duration_=G.duration,this.loadedTime=
G.loadedTime,this.liveIngestionTime_=G.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.w.stopPlayer=function(){this.index=-1;this.videoId="";UrA(this)};
_.w.isPlaying=function(){return this.playerState==1};
_.w.isBuffering=function(){return this.playerState==3};
_.w.isAdPlaying=function(){return this.playerState==1081};
var k1=function(G,B){G.playerTime_=B;G.playerTimeAt_=_.Td()},qu$=function(G){switch(G.playerState){case 1:case 1081:return(_.Td()-G.playerTimeAt_)/1E3+G.playerTime_;
case -1E3:return 0}return G.playerTime_};
AO.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Td()-this.playerTimeAt_)/1E3:0):this.duration_};
var E5Q=function(G,B,F){var D=G.videoId;G.videoId=B;G.index=F;B!=D&&UrA(G)},h4$=function(G){var B={};
B.index=G.index;B.listId=G.listId;B.videoId=G.videoId;B.playerState=G.playerState;B.volume=G.volume;B.muted=G.muted;B.audioTrackId=G.audioTrackId;B.trackData=_.UK.unsafeClone(G.trackData);B.hasPrevious=G.hasPrevious;B.hasNext=G.hasNext;B.playerTime=G.playerTime_;B.playerTimeAt=G.playerTimeAt_;B.seekableStart=G.seekableStart_;B.seekableEnd=G.seekableEnd_;B.duration=G.duration_;B.loadedTime=G.loadedTime;B.liveIngestionTime=G.liveIngestionTime_;return B};
AO.prototype.clone=function(){return new AO(h4$(this))};var Ty=function(G,B){eX.call(this);var F=this;this.state_=0;this.connection_=G;this.contextSubscriptions_=[];this.actionQueue_=new ASG;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.R_)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.R_)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.R_)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.R_)(this.onCloudviewAvailabilityChange_,this);var D=0;G?(D=G.getProxyState(),
D!=3&&(G.subscribe("proxyStateChange",this.setState_,this),K2Q(this))):D=3;D!=0&&(B?this.setState_(D):_.iX(function(){F.setState_(D)},0));
(G=xh$())&&auQ(this,G);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.r(Ty,eX);Ty.prototype.getState=function(){return this.state_};
Ty.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Ty.prototype.reconnect=function(){this.connection_.reconnect()};
var O6=function(G){return new AO(G.connection_.getPlayerContextData())};
_.w=Ty.prototype;_.w.play=function(){eM(this)?(this.castMedia_?this.castMedia_.play(null,_.qB,mr$(this,"play")):$1(this,"play"),Xi2(this,1,qu$(O6(this))),this.publish("remotePlayerChange")):zW(this,this.play)};
_.w.pause=function(){eM(this)?(this.castMedia_?this.castMedia_.pause(null,_.qB,mr$(this,"pause")):$1(this,"pause"),Xi2(this,2,qu$(O6(this))),this.publish("remotePlayerChange")):zW(this,this.pause)};
_.w.seekTo=function(G){if(eM(this)){if(this.castMedia_){var B=O6(this),F=new chrome.cast.media.SeekRequest;F.currentTime=G;B.isPlaying()||B.isBuffering()?F.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:F.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(F,_.qB,mr$(this,"seekTo",{newTime:G}))}else $1(this,"seekTo",{newTime:G});Xi2(this,3,G);this.publish("remotePlayerChange")}else zW(this,_.Fw(this.seekTo,G))};
_.w.stop=function(){if(eM(this)){this.castMedia_?this.castMedia_.stop(null,_.qB,mr$(this,"stopVideo")):$1(this,"stopVideo");var G=O6(this);G.stopPlayer();bV(this,G);this.publish("remotePlayerChange")}else zW(this,this.stop)};
_.w.setVolume=function(G,B){if(eM(this)){var F=O6(this);if(this.castSession_){if(F.volume!=G){var D=Math.round(G)/100;this.castSession_.setReceiverVolumeLevel(D,(0,_.R_)(function(){OJ("set receiver volume: "+D)},this),(0,_.R_)(function(){this.warn_("failed to set receiver volume.")},this))}F.muted!=B&&this.castSession_.setReceiverMuted(B,(0,_.R_)(function(){OJ("set receiver muted: "+B)},this),(0,_.R_)(function(){this.warn_("failed to set receiver muted.")},this))}else{var u={volume:G,
muted:B};F.volume!=-1&&(u.delta=G-F.volume);$1(this,"setVolume",u)}F.muted=B;F.volume=G;bV(this,F)}else zW(this,_.Fw(this.setVolume,G,B))};
_.w.setAudioTrack=function(G,B){eM(this)?(B=B.getLanguageInfo().getId(),$1(this,"setAudioTrack",{videoId:G,audioTrackId:B}),G=O6(this),G.audioTrackId=B,bV(this,G)):zW(this,_.Fw(this.setAudioTrack,G,B))};
_.w.addVideo=function(G){eM(this)?$1(this,"addVideo",{videoId:G}):zW(this,_.Fw(this.addVideo,G))};
_.w.addPlaylist=function(G){eM(this)?$1(this,"addVideos",{listId:G}):zW(this,_.Fw(this.addPlaylist,G))};
_.w.addVideos=function(G){G.length==0?this.warn_("Ignore add videos request due to empty list"):eM(this)?$1(this,"addVideos",{videoIds:G.join(",")}):zW(this,_.Fw(this.addVideos,G))};
_.w.JSC$20146_removeVideo=function(G){eM(this)?$1(this,"removeVideo",{videoId:G}):zW(this,_.Fw(this.JSC$20146_removeVideo,G))};
_.w.JSC$20146_insertVideo=function(G){eM(this)?$1(this,"insertVideo",{videoId:G}):zW(this,_.Fw(this.JSC$20146_insertVideo,G))};
_.w.playVideo=function(G,B,F,D,u,R,N){D=D===void 0?null:D;u=u===void 0?null:u;R=R===void 0?null:R;N=N===void 0?null:N;var y=O6(this),U={videoId:G};F!==void 0&&(U.currentIndex=F);E5Q(y,G,F||0);B!==void 0&&(k1(y,B),U.currentTime=B);D&&(U.listId=D);u&&(U.playerParams=u);R&&(U.clickTrackingParams=R);N&&(U.locationInfo=_.Q_(N));$1(this,"setPlaylist",U);D||bV(this,y)};
_.w.nextVideo=function(G,B){if(eM(this)){if(G&&B){var F=O6(this);E5Q(F,G,B);bV(this,F)}$1(this,"next")}else zW(this,_.Fw(this.nextVideo,G,B))};
_.w.clearPlaylist=function(){if(eM(this)){$1(this,"clearPlaylist");var G=O6(this);G.reset();bV(this,G);this.publish("remotePlayerChange")}else zW(this,this.clearPlaylist)};
_.w.dispose=function(){if(this.state_!=3){var G=this.state_;this.state_=3;this.publish("proxyStateChange",G,this.state_)}eX.prototype.dispose.call(this)};
_.w.disposeInternal=function(){QdU(this);this.connection_=null;this.actionQueue_.clear();auQ(this,null);eX.prototype.disposeInternal.call(this)};
var K2Q=function(G){_.dn("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(B){this.contextSubscriptions_.push(this.connection_.subscribe(B,_.Fw(this.onProxyEvent_,B),this))},G)},QdU=function(G){_.dn(G.contextSubscriptions_,function(B){this.connection_.unsubscribeByKey(B)},G);
G.contextSubscriptions_.length=0},eM=function(G){return G.getState()==1},zW=function(G,B){G.actionQueue_.getCount()<50&&G.actionQueue_.enqueue(B)},Xi2=function(G,B,F){var D=O6(G);
k1(D,F);D.playerState!=-1E3&&(D.playerState=B);bV(G,D)},$1=function(G,B,F){G.connection_.sendMessage(B,F)},bV=function(G,B){QdU(G);
G.connection_.setPlayerContextData(h4$(B));K2Q(G)};
Ty.prototype.setState_=function(G){if((G!=this.state_||G==2)&&this.state_!=3&&G!=0){var B=this.state_;this.state_=G;this.publish("proxyStateChange",B,G);if(G==1)for(;!this.actionQueue_.isEmpty();)G=this.actionQueue_,c3D(G),G.front_.pop().apply(this);else G==3&&this.dispose()}};
Ty.prototype.onProxyEvent_=function(G,B){this.publish(G,B)};
var auQ=function(G,B){G.castSession_&&(G.castSession_.removeUpdateListener(G.boundCastStatusListener_),G.castSession_.removeMediaListener(G.boundCastMediaListener_),G.onCastMediaChange_(null));G.castSession_=B;if(G.castSession_&&(OJ("Setting cast session: "+G.castSession_.sessionId),G.castSession_.addUpdateListener(G.boundCastStatusListener_),G.castSession_.addMediaListener(G.boundCastMediaListener_),G.castSession_.media.length))G.onCastMediaChange_(G.castSession_.media[0])};
Ty.prototype.onCastStatusUpdate_=function(G){if(!G)this.onCastMediaChange_(null),auQ(this,null);else if(this.castSession_.receiver.volume){G=this.castSession_.receiver.volume;var B=O6(this),F=Math.round(100*G.level||0);if(B.volume!=F||B.muted!=G.muted)OJ("Cast volume update: "+G.level+(G.muted?" muted":"")),B.volume=F,B.muted=!!G.muted,bV(this,B)}};
Ty.prototype.onCastMediaChange_=function(G){OJ("Cast media: "+!!G);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=G)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),jdG(this),this.publish("remotePlayerChange")};
var jdG=function(G){var B=G.castMedia_.media,F=G.castMedia_.customData;if(B&&F){var D=O6(G);B.contentId!=D.videoId&&OJ("Cast changing video to: "+B.contentId);D.videoId=B.contentId;D.playerState=F.playerState;k1(D,G.castMedia_.getEstimatedTime());bV(G,D)}else OJ("No cast media video. Ignoring state update.")};
Ty.prototype.onCastMediaUpdate_=function(G){if(G)jdG(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Ty.prototype.onCloudviewAvailabilityChange_=function(){var G=xh$();G&&auQ(this,G)};
Ty.prototype.warn_=function(G){ko("CP",G)};
var mr$=function(G,B,F){return(0,_.R_)(function(D){this.warn_("Failed to "+B+" with cast v2 channel. Error code: "+D.code);D.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+B+" using MDx browser channel."),$1(this,B,F))},G)};var IN=function(G,B,F,D){D=D===void 0?!1:D;eX.call(this);var u=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$20151_http_=G;this.enableConnectWithInitialState_=D;this.listeners_.push(_.IB(window,"beforeunload",function(){u.JSC$20154_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new AO;this.currentScreenId_=B.id;this.currentScreenIdType_=B.idType;this.channelService=Kr$(this.JSC$20151_http_,F,this.JSC$20154_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){L2B(u)});
this.channelService.listen("channelClosed",function(){Vn("Channel closed");isNaN(u.connectTimerId_)?nND(!0):nND();u.dispose()});
this.channelService.listen("channelError",function(R){nND();isNaN(u.getReconnectTimeout_())?(R==1&&u.currentScreenIdType_=="shortLived"&&u.publish("browserChannelAuthError",R),Vn("Channel error: "+R+" without reconnection"),u.dispose()):(u.reconnecting_=!0,Vn("Channel error: "+R+" with reconnection in "+u.getReconnectTimeout_()+" ms"),r6A(u,2))});
this.channelService.listen("channelMessage",function(R){W2A(u,R)});
this.channelService.setLoungeToken(B.token);this.subscribe("remoteQueueChange",function(){var R=u.playerContext_.videoId;ikS()&&_.yW("yt-remote-session-video-id",R)})};
_.r(IN,eX);
IN.prototype.connect=function(G,B){if(B){var F=B.listId,D=B.videoId,u=B.videoIds,R=B.playerParams,N=B.clickTrackingParams,y=B.index,U={videoId:D},q=B.currentTime,h=B.locationInfo;B=B.loopMode;q!==void 0&&(U.currentTime=q<=5?0:q);R&&(U.playerParams=R);h&&(U.locationInfo=h);N&&(U.clickTrackingParams=N);F&&(U.listId=F);u&&u.length>0&&(U.videoIds=u.join(","));y!==void 0&&(U.currentIndex=y);this.enableConnectWithInitialState_&&(U.loopMode=B||"LOOP_MODE_OFF");F&&(this.playerContext_.listId=F);this.playerContext_.videoId=
D;this.playerContext_.index=y||0;this.playerContext_.state=3;k1(this.playerContext_,q);this.autoplayMode_="UNSUPPORTED";F=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Vn("Connecting with "+F+" and params: "+_.Q_(U));this.channelService.connect({method:F,params:_.Q_(U)},G,wrU())}else Vn("Connecting without params"),this.channelService.connect({},G,wrU());H$D(this)};
IN.prototype.setLoungeToken=function(G){this.channelService.setLoungeToken(G)};
IN.prototype.dispose=function(){this.isDisposed()||(_.IY("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),r6A(this,3));eX.prototype.dispose.call(this)};
IN.prototype.disposeInternal=function(){khU(this);O$H(this);e4A(this);_.Dl(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Dl(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.IeS(this.listeners_);this.listeners_.length=0;this.channelService.dispose();eX.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var $rB=function(G){return dt(G.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"})},Vn=function(G){ko("conn",G)},r6A=function(G,B){G.publish("proxyStateChange",B)},H$D=function(G){G.connectTimerId_=_.iX(function(){Vn("Connecting timeout");
G.JSC$20154_disconnect_(1)},2E4)},khU=function(G){_.Dl(G.connectTimerId_);
G.connectTimerId_=NaN},e4A=function(G){_.Dl(G.reconnectedCheckScreenTimeout_);
G.reconnectedCheckScreenTimeout_=NaN},b$z=function(G){O$H(G);
G.playingSyncTimerId_=_.iX(function(){z4A(G,"getNowPlaying")},2E4)},O$H=function(G){_.Dl(G.playingSyncTimerId_);
G.playingSyncTimerId_=NaN},L2B=function(G){Vn("Channel opened");
G.reconnecting_&&(G.reconnecting_=!1,e4A(G),G.reconnectedCheckScreenTimeout_=_.iX(function(){Vn("Timing out waiting for a screen.");G.JSC$20154_disconnect_(1)},15E3))},v5H=function(G,B){var F=null;
if(B){var D=$rB(G);D&&(F={clientName:D.clientName,deviceMake:D.brand,deviceModel:D.model,osVersion:D.osVersion})}_.IY("yt.mdx.remote.remoteClient_",F);B&&(khU(G),e4A(G));F=G.channelService.isChannelOpened()&&isNaN(G.connectTimerId_);B==F?B&&(r6A(G,1),z4A(G,"getSubtitlesTrack")):B?(G.getOtherConnectedRemoteId_()&&G.playerContext_.reset(),r6A(G,1),z4A(G,"getNowPlaying"),VJH(G)):G.JSC$20154_disconnect_(1)},o5A=function(G,B){var F=B.params.videoId;
delete B.params.videoId;F==G.playerContext_.videoId&&(_.UK.isEmpty(B.params)?G.playerContext_.trackData=null:G.playerContext_.trackData=B.params,G.publish("remotePlayerChange"))},MJH=function(G,B,F){var D=B.params.videoId||B.params.video_id,u=parseInt(B.params.currentIndex,10);
G.playerContext_.listId=B.params.listId||G.playerContext_.listId;E5Q(G.playerContext_,D,u);G.publish("remoteQueueChange",F)},piS=function(G,B){B.params=B.params||{};
MJH(G,B,"NOW_PLAYING_MAY_CHANGE");G.onStateChange_(B);G.publish("autoplayDismissed")};
IN.prototype.onStateChange_=function(G){var B=parseInt(G.params.currentTime||G.params.current_time,10);k1(this.playerContext_,isNaN(B)?0:B);B=parseInt(G.params.state,10);B=isNaN(B)?-1:B;B==-1&&this.playerContext_.playerState==-1E3&&(B=-1E3);this.playerContext_.playerState=B;B=Number(G.params.loadedTime);this.playerContext_.loadedTime=isNaN(B)?0:B;B=Number(G.params.duration);this.playerContext_.duration_=isNaN(B)?0:B;B=this.playerContext_;var F=Number(G.params.liveIngestionTime);B.liveIngestionTime_=
F;B.isLive_=isNaN(F)?!1:!0;B=this.playerContext_;F=Number(G.params.seekableStartTime);G=Number(G.params.seekableEndTime);B.seekableStart_=isNaN(F)?0:F;B.seekableEnd_=isNaN(G)?0:G;this.playerContext_.playerState==1?b$z(this):O$H(this);this.publish("remotePlayerChange")};
IN.prototype.onAdStateChange_=function(G){if(this.playerContext_.playerState!=-1E3){var B=1085;switch(parseInt(G.params.adState,10)){case 1:B=1081;break;case 2:B=1084;break;case 0:B=1083}this.playerContext_.playerState=B;G=parseInt(G.params.currentTime,10);k1(this.playerContext_,isNaN(G)?0:G);this.publish("remotePlayerChange")}};
var YuD=function(G,B){var F=B.params.muted=="true";G.playerContext_.volume=parseInt(B.params.volume,10);G.playerContext_.muted=F;G.publish("remotePlayerChange")},A6$=function(G,B){G.autoplayVideoId_=B.params.videoId;
G.publish("nowAutoplaying",parseInt(B.params.timeout,10))},drB=function(G,B){G.autoplayVideoId_=B.params.videoId||null;
G.publish("autoplayUpNext",G.autoplayVideoId_)},J6$=function(G,B){G.autoplayMode_=B.params.autoplayMode;
G.publish("autoplayModeChange",G.autoplayMode_);G.autoplayMode_=="DISABLED"&&G.publish("autoplayDismissed")},c6S=function(G,B){var F=B.params.hasNext=="true";
G.playerContext_.hasPrevious=B.params.hasPrevious=="true";G.playerContext_.hasNext=F;G.publish("previousNextChange")};
IN.prototype.isCapabilitySupportedOnConnectedDevices_=function(G){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var B=_.C(this.connectedDevices_),F=B.next();!F.done;F=B.next())if(!F.value.capabilities.has(G))return!1;return!0};
var W2A=function(G,B){B=B.message;B.params?Vn("Received: action="+B.action+", params="+_.Q_(B.params)):Vn("Received: action="+B.action+" {}");switch(B.action){case "loungeStatus":B=_.NW(B.params.devices);G.connectedDevices_=_.qK(B,function(D){return new K1(D)});
B=!!dt(G.connectedDevices_,function(D){return D.type=="LOUNGE_SCREEN"});
v5H(G,B);B=G.isCapabilitySupportedOnConnectedDevices_("mlm");G.publish("multiStateLoopEnabled",B);break;case "loungeScreenDisconnected":yU$(G.connectedDevices_,function(D){return D.type=="LOUNGE_SCREEN"});
v5H(G,!1);break;case "remoteConnected":var F=new K1(_.NW(B.params.device));dt(G.connectedDevices_,function(D){return D.equals(F)})||_.$LI(G.connectedDevices_,F);
break;case "remoteDisconnected":F=new K1(_.NW(B.params.device));yU$(G.connectedDevices_,function(D){return D.equals(F)});
break;case "gracefulDisconnect":break;case "playlistModified":MJH(G,B,"QUEUE_MODIFIED");break;case "nowPlaying":piS(G,B);break;case "onStateChange":G.onStateChange_(B);break;case "onAdStateChange":G.onAdStateChange_(B);break;case "onVolumeChanged":YuD(G,B);break;case "onSubtitlesTrackChanged":o5A(G,B);break;case "nowAutoplaying":A6$(G,B);break;case "autoplayDismissed":G.publish("autoplayDismissed");break;case "autoplayUpNext":drB(G,B);break;case "onAutoplayModeChanged":J6$(G,B);break;case "onHasPreviousNextChanged":c6S(G,
B);break;case "requestAssistedSignIn":G.publish("assistedSignInRequested",B.params.authCode);break;case "onLoopModeChanged":G.publish("loopModeChange",B.params.loopMode);break;default:Vn("Unrecognized action: "+B.action)}};
_.w=IN.prototype;_.w.getProxyState_=function(){var G=3;this.isDisposed()||(G=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(G=1):G=2);return G};
_.w.JSC$20154_disconnect_=function(G){Vn("Disconnecting with "+G);_.IY("yt.mdx.remote.remoteClient_",null);khU(this);this.publish("beforeDisconnect",G);G==1&&nND();this.channelService.disconnect(G);this.dispose()};
_.w.getPlayerContextData_=function(){var G=this.playerContext_;this.clientVideoId_&&(G=this.playerContext_.clone(),E5Q(G,this.clientVideoId_,G.index));return h4$(G)};
_.w.setPlayerContextData_=function(G){var B=this,F=new AO(G);F.videoId&&F.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=F.videoId,_.Dl(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.iX(function(){if(B.clientVideoId_){var u=B.clientVideoId_;B.clientVideoId_=null;B.playerContext_.videoId!=u&&z4A(B,"getNowPlaying")}},5E3));
var D=[];this.playerContext_.listId==F.listId&&this.playerContext_.videoId==F.videoId&&this.playerContext_.index==F.index||D.push("remoteQueueChange");this.playerContext_.playerState==F.playerState&&this.playerContext_.volume==F.volume&&this.playerContext_.muted==F.muted&&qu$(this.playerContext_)==qu$(F)&&_.Q_(this.playerContext_.trackData)==_.Q_(F.trackData)||D.push("remotePlayerChange");this.playerContext_.reset(G);_.dn(D,function(u){this.publish(u)},this)};
_.w.getOtherConnectedRemoteId_=function(){var G=this.channelService.getDeviceId(),B=dt(this.connectedDevices_,function(F){return F.type=="REMOTE_CONTROL"&&F.id!=G});
return B?B.id:""};
_.w.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.w.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.w.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.w.JSC$20154_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var VJH=function(G){_.Dl(G.idleDisconnectTimerId_);G.idleDisconnectTimerId_=_.iX(function(){G.JSC$20154_disconnect_(1)},864E5)},z4A=function(G,B,F){F?Vn("Sending: action="+B+", params="+_.Q_(F)):Vn("Sending: action="+B);
G.channelService.sendMessage(B,F)};
IN.prototype.sendMessageWithUserAction_=function(G,B){z4A(this,G,B);VJH(this)};
IN.prototype.JSC$20154_getXsrfToken_=function(){var G=_.C8.get("SAPISID","")||_.C8.get("__Secure-1PAPISID",void 0)||"",B=_.C8.get("__Secure-3PAPISID","")||"";if(!G&&!B)return"";G=_.xM(_.ul(G),2);B=_.xM(_.ul(B),2);return _.xM(_.ul(","+G+","+B),2)};
IN.prototype.subscribe=IN.prototype.subscribe;IN.prototype.unsubscribeByKey=IN.prototype.unsubscribeByKey;IN.prototype.getProxyState=IN.prototype.getProxyState_;IN.prototype.disconnect=IN.prototype.JSC$20154_disconnect_;IN.prototype.getPlayerContextData=IN.prototype.getPlayerContextData_;IN.prototype.setPlayerContextData=IN.prototype.setPlayerContextData_;IN.prototype.getOtherConnectedRemoteId=IN.prototype.getOtherConnectedRemoteId_;IN.prototype.getReconnectTimeout=IN.prototype.getReconnectTimeout_;
IN.prototype.getAutoplayMode=IN.prototype.getAutoplayMode_;IN.prototype.getAutoplayVideoId=IN.prototype.getAutoplayVideoId_;IN.prototype.reconnect=IN.prototype.JSC$20154_reconnect_;IN.prototype.sendMessage=IN.prototype.sendMessageWithUserAction_;IN.prototype.getXsrfToken=IN.prototype.JSC$20154_getXsrfToken_;IN.prototype.isCapabilitySupportedOnConnectedDevices=IN.prototype.isCapabilitySupportedOnConnectedDevices_;var jQ$=function(G){$o.call(this,"ScreenServiceProxy");this.instance_=G;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.R_)(this.JSC$20157_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.R_)(this.onOnlineScreenChange_,this)))};
_.r(jQ$,$o);_.w=jQ$.prototype;_.w.getScreens=function(G){return this.instance_.$_gs(G)};
_.w.contains=function(G){return!!this.instance_.$_c(G)};
_.w.get=function(G){return this.instance_.$_g(G)};
_.w.start=function(){this.instance_.$_st()};
_.w.add=function(G,B,F){this.instance_.$_a(G,B,F)};
_.w.remove=function(G,B,F){this.instance_.$_r(G,B,F)};
_.w.updateName=function(G,B,F,D){this.instance_.$_un(G,B,F,D)};
_.w.disposeInternal=function(){for(var G=this.subscriptionKeys_.length,B=0;B<G;++B)this.instance_.$_ubk(this.subscriptionKeys_[B]);this.subscriptionKeys_.length=0;this.instance_=null;$o.prototype.disposeInternal.call(this)};
_.w.JSC$20157_onScreenChange_=function(){this.publish("screenChange")};
_.w.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
V6.prototype.$_st=V6.prototype.start;V6.prototype.$_gspc=V6.prototype.JSC$20116_getScreenByPairingCode;V6.prototype.$_gsppc=V6.prototype.JSC$20116_getScreenByPollingPairingCode;V6.prototype.$_c=V6.prototype.contains;V6.prototype.$_g=V6.prototype.get;V6.prototype.$_a=V6.prototype.add;V6.prototype.$_un=V6.prototype.updateName;V6.prototype.$_r=V6.prototype.remove;V6.prototype.$_gs=V6.prototype.getScreens;V6.prototype.$_gos=V6.prototype.JSC$20116_getOnlineScreens;V6.prototype.$_s=V6.prototype.subscribe;
V6.prototype.$_ubk=V6.prototype.unsubscribeByKey;var hi$=null,rZD=!1,iAA=null,d9=null,QQ2=null,JO=[];var TXB=new _.e6("yt-menu"),Iuz=function(){},tJU=function(G,B,F){G=B=="right-click"?F.rightClickMenuPopupHint:F.menuPopupHint;
if(!(fuD(B)>10))return B=B||"default",TXB.set(B+"-impression",fuD(B)+1),G},fuD=function(G){return parseInt(TXB.get((G||"default")+"-impression")||0,10)};
_.cP(Iuz);var Z$2=function(){this.contexts_=new WeakMap;this.JSC$20163_networkService_=this.activeContext_=null},g5D=function(G,B,F){var D=G.contexts_.get(B);
D||(D=new PPZ(G.JSC$20163_networkService_),G.contexts_.set(B,D));G.activeContext_=D;F&&G.activeContext_.reset();G.activeContext_.start();return G.activeContext_};var fC=_.QBU(function(G){var B=_.G_("DIV");G&&(B.className=G);B.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";G=_.G_("DIV");_.ubT(G,"200px","200px");B.appendChild(G);document.body.appendChild(B);G=B.offsetWidth-B.clientWidth;_.B1(B);return G});var Zj=_.sD("kevlar_watch_page_horizontal_margin",24),bAz=_.sD("kevlar_watch_page_columns_top_padding",24),HAN=426+Zj*2,tO=_.sD("kevlar_watch_two_column_width_threshold",1E3),OA$=Zj*2,eiN=_.sD("kevlar_watch_secondary_width",402),ziz=_.sD("kevlar_watch_max_player_width",1280),VoU=_.sD("kevlar_watch_flexy_metadata_height",136),$6D=OA$+310+Zj,kn$=OA$+360+Zj;var vk=function(){};
vk.prototype.enqueue=function(){var G=this,B;return _.n(function(F){if(G.isCounterfactual())return(B=G.getCounterfactualData())&&G.shouldLogCounterfactualImpression()&&G.sendImpressionEndpoints(B),F.return();G.doEnqueue();_.di(F)})};
vk.prototype.sendImpressionEndpoints=function(G){_.pZ.getInstance().triggerOptionalAction("yt-service-request",{},G[0])};var of=function(G,B){this.renderer=G;this.page=B};
_.r(of,vk);of.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
of.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
of.prototype.shouldLogCounterfactualImpression=function(){return!0};
of.prototype.doEnqueue=function(){var G=_.YF(this.page);G&&G.pause();this.renderer.impressionCommand&&_.pZ.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.hs(_.pZ.getInstance(),[this.renderer.promoCommand],this.page)};var SuG=function(G,B){this.renderer=G;this.resolver=_.zn();this.JSC$20175_enforcementCounter=new _.ErT;B?this.JSC$20175_playerManager=_.YF(B):this.JSC$20175_playerManager=null;_.Sw(1,!0)};
_.r(SuG,vk);_.w=SuG.prototype;_.w.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var G=[];this.renderer.impressionEndpoints.forEach(function(B){(B=_.X1(B))&&G.push(B)});
return G}};
_.w.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.w.shouldLogCounterfactualImpression=function(){var G=_.GII();G?(this.JSC$20175_enforcementCounter.increment("POPUP"),_.Sw(3)):_.Sw(2);return G};
_.w.cancel=function(){this.resolver.promise.cancel()};
_.w.doEnqueue=function(){var G=this;_.GII()?(this.JSC$20175_enforcementCounter.increment("POPUP"),_.Sw(3),sd2(this)):this.JSC$20175_playerManager?(this.resolver.promise.then(function(){sd2(G)}),xrN(this.resolver,this.JSC$20175_playerManager)):_.Sw(2)};
var xrN=function(G,B){var F=_.zn();B.getPlayerPromise().then(function(D){F.resolve(D)});
F.promise.then(function(D){D.addEventListener("onAbnormalityDetected",G.resolve);_.at(G.promise,function(){D.removeEventListener("onAbnormalityDetected",G.resolve)})});
G.promise.thenCatch(function(){F.promise.cancel()})},sd2=function(G){_.Sw(3);
var B={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:G.renderer}};B=_.pZ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{});Promise.all(B).then(function(){PpZ();G.JSC$20175_playerManager&&G.JSC$20175_playerManager.pause()})},PpZ=function(){rLA(function(G,B){biQ(G,B);
G===0?_.Sw(7):_.Sw(4)})};var GRz=function(G,B){this.renderer=G;this.page=B;this.resolver=_.zn()};
_.r(GRz,vk);_.w=GRz.prototype;_.w.cancel=function(){this.resolver.promise.cancel()};
_.w.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.w.isCounterfactual=function(){return!this.renderer.isVisible};
_.w.shouldLogCounterfactualImpression=function(){return!0};
_.w.doEnqueue=function(){var G=this;this.resolver.promise.then(function(){var F={popup:{mealbarPromoRenderer:G.renderer},popupType:"MEALBAR"};_.pZ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:F},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var B=_.YF(this.page);B&&BcZ(this.resolver,B)}break;default:this.resolver.resolve()}};
var BcZ=function(G,B){var F=_.zn();B.getPlayerPromise().then(function(D){F.resolve(D)});
F.promise.then(function(D){D.addEventListener("onAdEnd",G.resolve);_.at(G.promise,function(){D.removeEventListener("onAdEnd",G.resolve)})});
G.promise.thenCatch(function(){F.promise.cancel()})};var ia$=function(G,B){this.renderer=G;this.page=B};
_.r(ia$,vk);_.w=ia$.prototype;_.w.cancel=function(){this.JSC$20183_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20183_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20183_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.w.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.w.isCounterfactual=function(){return!this.renderer.isVisible};
_.w.shouldLogCounterfactualImpression=function(){return!0};
_.w.doEnqueue=function(){var G=this,B,F;((B=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(F=B.playbackUpsellDialogTriggerConditionData)==null?void 0:F.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20183_downloadedVideosCountSelectorUnsubscriber=_.Dh(_.VU(),mW$,function(D,u){D>u&&(FZZ(G),G.cancel())}):FZZ(this)};
var FZZ=function(G){var B={popup:{upsellDialogRenderer:G.renderer},popupType:"MODAL"};_.pZ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{});(G=_.YF(G.page))&&G.pause()};var MM={},DTD=(MM.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",MM.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",MM.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",MM.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",MM.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",MM.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",MM.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",MM),u_N=function(G,B){this.renderer=G;this.targetManager=
B};
_.r(u_N,vk);_.w=u_N.prototype;_.w.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20190_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20190_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20190_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.w.getCounterfactualData=function(){if(this.isCounterfactual()){var G;return(G=this.renderer.promoConfig)==null?void 0:G.impressionEndpoints}};
_.w.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.w.shouldLogCounterfactualImpression=function(){return!0};
_.w.doEnqueue=function(){var G=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20190_downloadedVideosCountSelectorUnsubscriber=_.Dh(_.VU(),mW$,function(B,F){G.renderer.targetId&&B>F&&(ZB$(G.targetManager,G.renderer.targetId,RqD(G)),G.cancel())});
break;default:ZB$(this.targetManager,this.renderer.targetId,RqD(this))}};
var RqD=function(G){var B;if((B=G.renderer.suggestedPosition)==null?0:B.type)var F=DTD[G.renderer.suggestedPosition.type];F||(F="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:G.renderer},popupType:"HINT",position:F}}};var w8z=function(){this.previousPage=null},CmH;
w8z.prototype.registerPromoCommand=function(G,B){NcB(this,void 0,void 0,_.Q(G.roadblock,EBz),void 0,void 0,B)};
var NcB=function(G,B,F,D,u,R,N){G.previousPage!==N&&G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel();G.previousPage=N;u?(G.pendingEnforcementPromo&&G.pendingEnforcementPromo.cancel(),G.pendingEnforcementPromo=new SuG(u,N),G.pendingEnforcementPromo.enqueue()):R?(G.pendingCommandWrapperPromo=new of(R,N),G.pendingCommandWrapperPromo.enqueue()):D?(G.pendingRoadblockPromo&&G.pendingRoadblockPromo.cancel(),G.pendingRoadblockPromo=new ia$(D,N),G.pendingRoadblockPromo.enqueue()):B?(G.pendingMealbarPromo&&
G.pendingMealbarPromo.cancel(),G.pendingMealbarPromo=new GRz(B,N),G.pendingMealbarPromo.enqueue()):F&&(G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel(),G.pendingTooltipPromo=new u_N(F,_.Pv()),G.pendingTooltipPromo.enqueue())},yk$=function(){CmH||(CmH=new w8z);
return CmH};var nJ2=function(){this.horizontal=!1},l3D=function(G,B){G.horizontal=B};
nJ2.prototype.position=function(G,B,F,D){D=D===void 0?1:D;G=this.delta(G)*D+B;D=Math.max(B,F);return G>=Math.min(B,F)&&G<=D?G:F};
nJ2.prototype.axis=function(G){G=this.direction(G);return G==="up"||G==="down"?"Y":"X"};var p1=function(G,B,F){B=B===void 0?_.GT():B;this.target=G;this.manager=B;this.touchAction=F;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
p1.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(_.gi(this.events)));for(var G=_.C(this.events),B=G.next();!B.done;B=G.next())this.listen(B.value)}};
p1.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.gi(this.events)));for(var G=_.C(this.events),B=G.next();!B.done;B=G.next())this.unlisten(B.value)}};
p1.prototype.listen=function(G){this.eventMap[G]&&this.target.addEventListener(G,this.eventMap[G])};
p1.prototype.unlisten=function(G){this.eventMap[G]&&this.target.removeEventListener(G,this.eventMap[G])};var Y1=function(){nJ2.apply(this,arguments)};
_.r(Y1,nJ2);Y1.prototype.direction=function(G){var B=G.detail;G=B.deltaY;B=B.deltaX;return G&&!this.horizontal?G>0?"down":"up":B&&this.horizontal?B>0?"right":"left":"none"};
Y1.prototype.distance=function(G){return Math.abs(this.delta(G))};
Y1.prototype.delta=function(G){var B=this.direction(G),F=G.detail;G=F.deltaX;F=F.deltaY;return B==="up"||B==="down"?F||0:G||0};
Y1.prototype.velocity=function(G){var B=this.direction(G),F=G.detail;G=F.velocityX;F=F.velocityY;return Math.abs(B==="up"||B==="down"?F||0:G||0)};var A4=function(G,B,F,D,u,R){u=u===void 0?new Y1:u;R=R===void 0?_.GT():R;p1.call(this,B,R,D);var N=this;this.element=G;this.target=B;this.config=F;this.input=u;this.manager=R;this.events=["panstart","panmove","panend"];this.onPanStart=function(){N.config.draggingClass&&N.element.classList.add(N.config.draggingClass);N.config.startAction&&N.config.startAction()};
this.onPanMove=function(y){var U=UTA(N,y);if(U){N.move(y,U);U.fade&&N.fade(y,U);var q=N.input.direction(y);U.moveAction&&U.moveAction(qIA(N,y,U),q)}};
this.onPanEnd=function(y){var U,q,h,K,a,m;return _.n(function(L){if(L.nextAddress==1){N.animationRequestId&&cancelAnimationFrame(N.animationRequestId);N.animationRequestId=void 0;U=UTA(N,y);if(!U)return L.return();q=U;h=q.triggerAction;K=q.fade;a=q.disableFinish;m=q.translateBack;var W=N.input.velocity(y),e=N.input.distance(y),b=N.threshold(U);return W>.3&&e>10||e>b?a?L.jumpTo(6):K?L.yield(EJB(N,y),6):L.yield(hqD(N,y,U),6):m?L.yield(N.translateBack(y),3):L.jumpTo(3)}L.nextAddress!=3&&h&&h();N.config.draggingClass&&
N.element.classList.remove(N.config.draggingClass);N.reset();_.di(L)})};
G=Object.keys(F.triggers);this.directions=new Set(G);l3D(this.input,this.directions.has("right")||this.directions.has("left"))};
_.r(A4,p1);A4.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var UTA=function(G,B){B=G.input.direction(B);return G.config.triggers[B]};
A4.prototype.move=function(G,B){var F=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var D=F.input.axis(G),u=F.input.position(G,F.config.startPosition,B.endPosition,B.moveRatio||1);F.element.style.transform="translate"+D+"("+u+"px)";F.animationRequestId=void 0}))};
var qIA=function(G,B,F){var D=F.moveRatio||1;F=Math.abs(G.config.startPosition-F.endPosition);return Math.min(G.input.distance(B)*D,F)/F};
A4.prototype.fade=function(G,B){var F=B.endOpacity;G=qIA(this,G,B);G>0&&(this.element.style.opacity=""+(((F||0)-1)*G+1))};
A4.prototype.threshold=function(G){return G.threshold?G.threshold:Math.abs(G.endPosition-this.config.startPosition)/3};
var hqD=function(G,B,F){var D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1)return D=G.input.delta(B)+G.config.startPosition,u=G.input.axis(B),R=F,N=R.endPosition,y=R.transitionEndPosition,q=(U=y)!=null?U:N,h.yield(G.element.animate([{transform:"translate"+u+"("+D+"px)"},{transform:"translate"+u+"("+q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+u+"("+q+"px)";_.di(h)})};
A4.prototype.translateBack=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1){if(!B.element.style.transform)return u.return();F=B.input.axis(G);D=B.config.startPosition;return u.yield(B.element.animate([{transform:B.element.style.transform},{transform:"translate"+F+"("+D+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}B.element.style.transform="translate"+F+"("+D+"px)";_.di(u)})};
var EJB=function(G,B){var F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return F=G.input.delta(B)+G.config.startPosition,D=G.input.axis(B),u=F+70,R=G.element.style.opacity===""?1:G.element.style.opacity,N.yield(G.element.animate([{transform:"translate"+D+"("+F+"px)",opacity:R},{transform:"translate"+D+"("+u+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+D+"("+u+"px)";G.element.style.opacity="0";_.di(N)})};var d6$=new _.e6("ratelimit");var KZA=function(G,B){this.playerProvider_=G;this.actionSenderElement_=B;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
KZA.prototype.reset=function(){a3A(this);this.isUserPredictedAbsent_=!1};
var a3A=function(G,B){!G.youThereData_||G.showWarningJob_||B!==void 0&&B||(g9("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.qW(),G.youThereData_,G.clientPlaybackNonce_),_.H$());_.Lu.cancelJob(G.showWarningJob_);G.showWarningJob_=0;_.Lu.cancelJob(G.showBlockingWarningJob_);G.showBlockingWarningJob_=0;_.Lu.cancelJob(G.pausePlaybackJob_);G.pausePlaybackJob_=0;G.youThereData_=null;G.clientPlaybackNonce_=void 0;G.inYouThereFlow_=!1},X8D=function(G,B){var F,D,u;
_.n(function(R){if(R.nextAddress==1)return G.reset(),R.yield(G.playerProvider_().getPlayerPromise(),2);F=R.yieldResult;G.clientPlaybackNonce_=F.getVideoData().cpn;G.youThereData_=B.configData.youThereData;if(!G.youThereData_)return R.return();if(G.youThereData_.triggerReason&&G.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!JZ$())return g9("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.qW(),G.youThereData_,G.clientPlaybackNonce_),R.return();D=G.youThereData_.promptDelaySec;u=F.getCurrentTime();
G.showWarningJob_=_.Lu.addLowPriorityJob(function(){return _.n(function(N){G.showWarningJob_=0;return N.yield(mTz(G),0)})},Math.max(D-u,0)*1E3);
_.di(R)})},mTz=function(G){var B,F,D,u,R,N;
return _.n(function(y){if(y.nextAddress==1)return y.yield(G.playerProvider_().getPlayerPromise(),2);if(y.nextAddress!=3)return B=y.yieldResult,F=B.getCurrentTime(),y.yield(QTD(G),3);D=y.yieldResult;if(!D||!G.youThereData_)return y.return();if(_.X("check_user_lact_at_prompt_shown_time_on_web")&&(u=parseInt(G.youThereData_.lactThresholdMs,10),_.Z8()<u))return g9("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.qW(),G.youThereData_,G.clientPlaybackNonce_),y.return();if(G.youThereData_.playbackPauseDelayMs<=
0)return jTU(G),y.return();!_.X("external_fullscreen")&&(R=_.vZ())&&(G.ignoreFullscreenExitUserActivity_=!0,_.Lu.addLowPriorityJob(function(){G.ignoreFullscreenExitUserActivity_=!1},2E3),_.oa(R));
G.youThereData_.showToastWarningPrompt&&(df(G,G.youThereData_.showWarningActions),G.inYouThereFlow_=!0,g9("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.qW(),G.youThereData_,G.clientPlaybackNonce_,F),g9("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.qW(),G.youThereData_,G.clientPlaybackNonce_,F));N=0;G.youThereData_.blockingPromptDelayMs&&(N=G.youThereData_.blockingPromptDelayMs);G.showBlockingWarningJob_=_.Lu.addLowPriorityJob(function(){return _.n(function(U){G.showBlockingWarningJob_=0;return U.yield(LZ$(G),
0)})},N);
_.di(y)})},LZ$=function(G){var B,F,D;
return _.n(function(u){if(u.nextAddress==1)return u.yield(QTD(G),2);B=u.yieldResult;if(!G.youThereData_)return u.return();B&&(G.youThereData_.showBlockingWarningAction&&(g9("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.qW(),G.youThereData_,G.clientPlaybackNonce_),(F=_.Q(G.youThereData_.showBlockingWarningAction,_.gs))?df(G,F.commands):df(G,[G.youThereData_.showBlockingWarningAction]),G.inYouThereFlow_=!0),D=G.youThereData_.playbackPauseDelayMs,G.pausePlaybackJob_=_.Lu.addLowPriorityJob(function(){return _.n(function(R){G.pausePlaybackJob_=
0;return R.yield(jTU(G),0)})},D));
_.di(u)})},jTU=function(G){var B;
return _.n(function(F){if(F.nextAddress==1)return F.yield(QTD(G),2);B=F.yieldResult;if(!G.youThereData_)return F.return();B&&(g9("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.qW(),G.youThereData_,G.clientPlaybackNonce_),df(G,G.youThereData_.showPausedActions),G.inYouThereFlow_=!0);_.di(F)})};
KZA.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var G=_.Q(this.youThereData_.userActiveDuringFlowAction,_.gs);G?df(this,G.commands):df(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(g9("YOU_THERE_EVENT_TYPE_LACT_RESET",_.qW(),this.youThereData_,this.clientPlaybackNonce_),_.H$());a3A(this,!0)}rk$(this,!1)};
var WZB=function(G){g9("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.qW(),G.youThereData_,G.clientPlaybackNonce_)},QTD=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.playerProvider_().getPlayerPromise(),2);B=D.yieldResult;F=B.getPlayerState();return D.return(F==-1||F==1||F==3)})},rk$=function(G,B){var F;
_.n(function(D){if(D.nextAddress==1){if(G.isUserPredictedAbsent_==B)return D.jumpTo(0);G.isUserPredictedAbsent_=B;return D.yield(G.playerProvider_().getPlayerPromise(),3)}F=D.yieldResult;F.setUserEngagement(B);B&&g9("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.qW(),G.youThereData_,G.clientPlaybackNonce_);_.di(D)})},df=function(G,B){if(_.X("handle_service_request_actions")||_.X("kevlar_youthere_service_endpoint_actions_killswitch"))_.tL(G.actionSenderElement_,B,G.actionSenderElement_);
else{B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.sendPost?_.fi(G.actionSenderElement_,[F]):_.tL(G.actionSenderElement_,[F],G.actionSenderElement_)}};var cZU=!1;var HaG={PAUSE_CHAT:18};var ZGS=function(G,B){var F=_.v5("SESSION_INDEX");this.actionToken_=G;this.commonToken_=B;this.sessionIndex_=F},ttA=function(G){var B=_.zn(),F=_.Yf("payments.business.integration.bootstrap"),D=_.Yf("payments.business.integration"),u=D.Style.create().withMaterialDesignStyle(),R=D.mashupMode.popup("instrument-manager");
F.asMashupMode(R).usingUserIndex(G.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(u).inStandaloneContext(D.standaloneContextAuthId.forUserId()).instrumentManager(G.actionToken_,G.commonToken_.length>0?G.commonToken_:void 0,function(N){var y=N.instrumentId;y?B.resolve(y):(y=_.Yf("payments.business.integration.scenario.InstrumentManager"),B.reject(N.errorCode&&N.errorCode===y.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(N){_.Mn(N);
B.reject("instrumentManagerLoadError")});
return B.promise};var Nl=function(G,B,F){this.payloadName="transactionFlowFailed";this.payload={errorType:G,serializedTransactionFlowLoggingParams:B,isUserDismiss:F===void 0?!1:F}};
_.IY("yt.ypc.shared.YpcTransactionFlowError",Nl);var J4=function(){return _.DO.apply(this,arguments)||this};
_.r(J4,_.DO);J4.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
J4.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
J4.prototype.onErrorMessageDismiss=J4.prototype.onErrorMessageDismiss;_.c([_.v({readOnly:!0,observer:"errorRendererChanged"}),_.I("design:type",Object)],J4.prototype,"errorRenderer",void 0);_.c([_.Pm("yt-live-chat-error-message-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],J4.prototype,"onErrorMessageDismiss",null);_.c([_.uA()],J4);var kRU=[J4.prototype];var OaN;var eqZ,$T$=function(){if(eqZ!==void 0)return eqZ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;OaN===void 0&&(OaN=document.createElement("template"));var D=OaN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return eqZ=G};var ck=function(){var G=_.p.apply(this,arguments)||this;G.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";G.goalDescription="";G.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";G.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";G.startButtonId="start-button";G.exampleButtonId="example-button";return G};
_.r(ck,_.p);_.w=ck.prototype;_.w.getGoalDropdownItems=function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.purchaseTargetDropdown,Dqz))==null?void 0:B.dropdownItems};
_.w.getTimerDropdownItems=function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.timerDropdown,Dqz))==null?void 0:B.dropdownItems};
_.w.getColorDropdownItems=function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.colorDropdown,Dqz))==null?void 0:B.dropdownItems};
_.w.getDropdownItemText=function(G){var B;return(B=_.Q(G,FpD))==null?void 0:B.itemLabel};
_.w.getDropdownItemValue=function(G){G=_.Q(G,FpD);return(G==null?void 0:G.timeLimit)||(G==null?void 0:G.purchaseTarget)||(G==null?void 0:G.eligiblePurchaseType)};
_.w.updateFlowState=function(G){_.T1(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:G}])};
_.w.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.w.updateGoalValue=function(G){this.goal=G.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.w.onTextValueChanged=function(G){this.goalDescription=G.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.w.updateTimerValue=function(G){this.timer=G.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.w.updateTierValue=function(G){this.tier=G.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.w.getButtonViewModel=function(G){G=(G==null?void 0:G.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var B,F=_.Q((B=this.data)==null?void 0:B.startGoalButton,_.LV);return Object.assign({},F,{state:G})};
_.ZN.Object.defineProperties(ck,{template:{configurable:!0,enumerable:!0,get:function(){return $T$()}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ck.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ck.prototype,"goal",void 0);_.c([_.v(),_.I("design:type",Object)],ck.prototype,"goalDescription",void 0);_.c([_.v(),_.I("design:type",Object)],ck.prototype,"timer",void 0);_.c([_.v(),_.I("design:type",Object)],ck.prototype,"tier",void 0);
_.c([_.v(),_.I("design:type",Object)],ck.prototype,"startButtonId",void 0);_.c([_.v(),_.I("design:type",Object)],ck.prototype,"exampleButtonId",void 0);_.c([_.ay({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ck);_.d(ck,"yt-creator-goal-set-up-flow-view-model",function(){return $T$()},{mode:0});var zqA;var baU;var TW=function(){return _.p.apply(this,arguments)||this};
_.r(TW,_.p);TW.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
TW.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var G=_.Q(this.data.button,_.LV);G&&(G.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.ZN.Object.defineProperties(TW,{template:{configurable:!0,enumerable:!0,get:function(){if(baU===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;zqA===void 0&&(zqA=document.createElement("template"));var D=zqA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);baU=G}G=baU;return G}}});
_.c([_.k(_.hi),_.I("design:type",Object)],TW.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({selectorArgs:["data.enabledEntityKey"],selector:sgA,observer:"onEnabledChange"}),_.I("design:type",Boolean)],TW.prototype,"enabled",void 0);_.c([_.v(),_.I("design:type",Object)],TW.prototype,"data",void 0);_.c([_.ay({is:"yt-disableable-button-view-model",noInjection:!0})],TW);var VLB;var vJz;var oJQ=["transVert01","transVert02","transVert03"],ML$="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),If=function(){var G=_.p.apply(this,arguments)||this;G.emojiManager=_.rl;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};G.reactionBuckets=[];G.noEmojiIdentifier="NO_EMOJI";return G};
_.r(If,_.p);_.w=If.prototype;_.w.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.w.desktopFountainEmojiSizePxChanged=function(){_.Ss(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.w.createUserReactionAnimation=function(G){this.createEmojiAnimation(G,!0)};
_.w.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var G;((G=this.data)==null?0:G.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.wC("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.gi(this.emojiContainer.children)).forEach(function(B){B.remove()})};
_.w.detached=function(){this.cleanupFountain()};
_.w.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var G;this.reactionBuckets=_.UK.unsafeClone((G=this.emojiFountainData)==null?void 0:G.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.w.processEmojiBucket=function(G){var B=this;if(this.reactionBuckets&&!(G>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var F=this.reactionBuckets[G];this.generateEmojiAnimations(F);if(G<this.reactionBuckets.length-1){var D;if(F==null?0:(D=F.duration)==null?0:D.seconds)this.emojiBucketTimerId=setTimeout(function(){B.processEmojiBucket(G+1)},Number(F.duration.seconds)*1E3)}}};
_.w.generateEmojiAnimations=function(G){var B=this,F=this.getRandomEmojiIdFromBucketWithOverride(G);if(F&&F!==this.noEmojiIdentifier){var D=0;G.targetEps?(D=this.linearInterpolateBounded(1,20,100,12,G.emojiSizeIndex||0),this.createEmojiAnimation(F,!1,G.emojiAnimationMs,D),D=this.getEmojiDelayMsFromTargetEps(G.targetEps)):(this.createEmojiAnimation(F),D=this.getEmojiDelayMsFromDistribution(G.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){B.generateEmojiAnimations(G)},D)}};
_.w.getRandomEmojiIdFromBucketWithOverride=function(G){if(!(G&&G.reactionsData&&G.reactionsData.length&&G.totalReactions))return this.noEmojiIdentifier;for(var B=G.totalReactions,F=1,D=_.C(G.reactionsData),u=D.next();!u.done;u=D.next())u=u.value,(u.reactionWeightOverride||u.reactionWeightOverride===0)&&u.reactionCount&&(B-=u.reactionCount,F-=u.reactionWeightOverride);D=!0;F<0&&(D=!1,B=G.totalReactions,F=1);if(D&&F>0&&B===0)if(F===1){u=0;for(var R=_.C(G.reactionsData),N=R.next();!N.done;N=R.next())N=
N.value,N.reactionCount&&N.reactionCount>0&&u++;u=1/u;R=_.C(G.reactionsData);for(N=R.next();!N.done;N=R.next())N.value.reactionWeightOverride=u}else for(u=1/(1-F),R=_.C(G.reactionsData),N=R.next();!N.done;N=R.next())N=N.value,N.reactionWeightOverride&&(N.reactionWeightOverride*=u);u=Math.random();R=0;N=_.C(G.reactionsData);for(var y=N.next();!y.done;y=N.next())if(y=y.value,y.reactionCount&&(R=(y.reactionWeightOverride||y.reactionWeightOverride===0)&&D?R+y.reactionWeightOverride:R+F*y.reactionCount/
B,R>u&&(y.reactionCount--,G.totalReactions--,y=this.reactionItemToEmojiString(y),y!==this.noEmojiIdentifier)))return y;return this.noEmojiIdentifier};
_.w.reactionItemToEmojiString=function(G){if(G.unicodeEmojiId)return G.unicodeEmojiId;if(G.emoteId)return G.emoteId;if(G.videoReactionType)switch(G.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.w.createEmojiAnimation=function(G,B,F,D){B=B===void 0?!1:B;this.lastEmojiRequestedForTesting=G;var u=G.startsWith("yt-icons:"),R=_.jC(this.emojiManager,G);if(R||u){var N=document.createElement("emoji");N.classList.add("yt-emoji-fountain-view-model");N.classList.add(oJQ[Math.floor(Math.random()*oJQ.length)]);var y=document.createElement("div");y.classList.add("yt-emoji-fountain-view-model");y.classList.add("horizontal-container");y.classList.add(ML$[Math.floor(Math.random()*ML$.length)]);B?(F=document.createElement("div"),
F.classList.add("user-reaction-bubble"),F.classList.add("yt-emoji-fountain-view-model"),y.appendChild(F)):(F&&(N.style.animationDuration=F+"ms",y.style.animationDuration=F+"ms"),D&&(N.style.width=D+"px",N.style.height=D+"px"));u?(u=document.createElement("yt-icon"),u.polymerController.icon=G,D&&(u.style.width=D+"px",u.style.height=D+"px"),G=u):G=this.emojiManager.createEmoji(R,!1);G.classList.add("yt-emoji-fountain-view-model");y.appendChild(G);N.appendChild(y);this.emojiContainer.appendChild(N);
N.addEventListener("animationend",function(){N.remove()});
var U,q;if((U=this.data)==null?0:(q=U.loggingDirectives)==null?0:q.trackingParams)B=B?_.ge(183501):_.ge(183500),xa2(this.data.loggingDirectives.trackingParams,B),_.V4L(B);setTimeout(function(){N&&N.remove()},2E3)}};
_.w.getEmojiDelayMsFromDistribution=function(G){return Math.random()*(G||1)*1E3};
_.w.getEmojiDelayMsFromTargetEps=function(G){return Math.random()*2*(1/G)*1E3};
_.w.linearInterpolateBounded=function(G,B,F,D,u){u=Math.min(Math.max(u,G),F);return(B*(F-u)+D*(u-G))/(F-G)};
If.prototype.onEmojiFountainDataEntityUpdate=If.prototype.onEmojiFountainDataEntityUpdate;If.prototype.desktopFountainEmojiSizePxChanged=If.prototype.desktopFountainEmojiSizePxChanged;If.prototype.isActiveChanged=If.prototype.isActiveChanged;_.c([_.v(),_.I("design:type",_.Q0)],If.prototype,"emojiManager",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],If.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],If.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],If.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(G,B){return _.g5(G.entities,"emojiFountainDataEntity",B)}}),
_.I("design:type",Object)],If.prototype,"emojiFountainData",void 0);_.c([_.v(),_.I("design:type",Boolean)],If.prototype,"isActive",void 0);_.c([_.Ga("isActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],If.prototype,"isActiveChanged",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],If.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",String)],If.prototype,"lastEmojiRequestedForTesting",void 0);
_.c([_.v({value:function(){return _.sD("desktop_fountain_emoji_size_px",20)}}),
_.I("design:type",Number)],If.prototype,"desktopFountainEmojiSizePx",void 0);_.c([_.Ga("desktopFountainEmojiSizePx"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],If.prototype,"desktopFountainEmojiSizePxChanged",null);_.c([_.iA("#emoji-container"),_.I("design:type",HTMLElement)],If.prototype,"emojiContainer",void 0);
_.c([_.Ga("emojiFountainData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],If.prototype,"onEmojiFountainDataEntityUpdate",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],If);
_.d(If,"yt-emoji-fountain-view-model",function(){if(vJz===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;VLB===void 0&&(VLB=document.createElement("template"));var D=VLB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);vJz=G}G=vJz;return G},{mode:0});var p8A;var YIZ;var f1=function(){return _.p.apply(this,arguments)||this};
_.r(f1,_.p);f1.prototype.onChoiceChanged=function(){this.data&&_.Ss(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
f1.prototype.onChoiceChanged=f1.prototype.onChoiceChanged;_.c([_.v(),_.I("design:type",Object)],f1.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f1.prototype,"onChoiceChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],f1);
_.d(f1,"yt-live-chat-banner-poll-choice",function(){if(YIZ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;p8A===void 0&&(p8A=document.createElement("template"));var D=p8A;F.call(B,D.content.cloneNode(!0),G.content.firstChild);YIZ=G}G=YIZ;return G},{mode:0});var AkB;var dTG;var t4=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_button_rework_with_live");G.small=!1;return G};
_.r(t4,_.p);t4.prototype.computeIsSmall=function(){var G;return((G=this.buttonOverrides)==null?void 0:G.size)==="S"};
t4.prototype.computeId=function(){return this.data&&this.data.targetId};
_.c([_.k(_.K4.YtLiveChatTooltipTargetingBehavior),_.I("design:type",Object)],t4.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.I("design:type",String)],t4.prototype,"id",void 0);_.c([_.v(),_.I("design:type",Object)],t4.prototype,"buttonOverrides",void 0);_.c([_.v(),_.I("design:type",Object)],t4.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],t4.prototype,"modern",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.I("design:type",Object)],t4.prototype,"small",void 0);_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-button"})],t4);
_.d(t4,"yt-live-chat-button",function(){if(dTG===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;AkB===void 0&&(AkB=document.createElement("template"));var D=AkB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);dTG=G}G=dTG;return G},{mode:0});var Jkz;var ck$;var Z1=function(){var G=_.p.apply(this,arguments)||this;G.inCollapsedBanner=!1;G.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};G.questionButtonOverrides={style:"mono",type:"filled"};return G};
_.r(Z1,_.p);_.w=Z1.prototype;_.w.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]]"}}}}}};
_.w.onContextMenuButtonClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
_.w.onYtRendererstamperFinished=function(){this.menuButton=_.IF(this.hostElement).querySelector("#menu-button")};
_.w.dataChanged=function(){var G,B;if((B=_.Q((G=this.data)==null?void 0:G.overflowMenuButton,_.Xq))==null?0:B.command)this.data.contextMenuEndpoint=_.Q(this.data.overflowMenuButton,_.Xq).command};
_.w.onButtonClick=function(){var G,B=_.Q((G=this.data)==null?void 0:G.askQuestionButton,_.Xq);if(B){if(B.trackingParams&&(G=_.yX(B.trackingParams))){var F=_.qW();F&&_.$I(F,G)}_.cZ(this.hostElement,"innertube-command",B.command)}};
Z1.prototype.onYtRendererstamperFinished=Z1.prototype.onYtRendererstamperFinished;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],Z1.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],Z1.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v({observer:"dataChanged"}),_.I("design:type",Object)],Z1.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Z1.prototype,"inCollapsedBanner",void 0);_.c([_.v(),_.I("design:type",Object)],Z1.prototype,"buttonOverrides",void 0);_.c([_.v(),_.I("design:type",Object)],Z1.prototype,"questionButtonOverrides",void 0);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z1.prototype,"onYtRendererstamperFinished",null);
_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Z1);
_.d(Z1,"yt-live-chat-call-for-questions-renderer",function(){if(ck$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Jkz===void 0&&(Jkz=document.createElement("template"));var D=Jkz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ck$=G}G=ck$;return G},{mode:0});var Tc2={};Tc2.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 G=this;window.requestAnimationFrame(function(){G.restoreFocusNode_||(G.restoreFocusNode_=document.activeElement);var B=_.FYq(G.hostElement);B.length&&B[B.length-1].focus()})},
isAttachedChanged_:function(G,B){G?this.focusChild_():B&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(G){this.hidden||_.VW(G).indexOf(this.hostElement)!==-1||(G.stopPropagation(),this.focusChild_())}};var I3$;var f3A;var gf=function(){return _.p.apply(this,arguments)||this};
_.r(gf,_.p);gf.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gf.prototype.onClick=function(G){G.target!==this.confirmButton&&G.target!==this.cancelButton&&(this.hidden=!0)};
_.c([_.iA("#confirm_button"),_.I("design:type",Object)],gf.prototype,"confirmButton",void 0);_.c([_.iA("#cancel_button"),_.I("design:type",Object)],gf.prototype,"cancelButton",void 0);_.c([_.v(),_.I("design:type",tLG)],gf.prototype,"data",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.I("design:type",Boolean)],gf.prototype,"hidden",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(Tc2.YtLiveChatDialogBehavior),_.I("design:type",Object)],gf.prototype,"ytLiveChatDialogBehavior",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],gf);
var tLG=_.d(gf,"yt-live-chat-dialog-renderer",function(){if(f3A===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;I3$===void 0&&(I3$=document.createElement("template"));var D=I3$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);f3A=G}G=f3A;return G},{mode:0});var Za$;var gJZ,SIS=function(){if(gJZ!==void 0)return gJZ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Za$===void 0&&(Za$=document.createElement("template"));var D=Za$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);return gJZ=G};var sT$;var xT$;var SM=function(){var G=_.p.apply(this,arguments)||this;G.icon=null;return G};
_.r(SM,_.p);SM.prototype.dismiss=function(){_.cZ(this.hostElement,"yt-live-chat-error-message-dismiss")};
SM.prototype.computeIcon=function(G){return G&&G.iconType?"yt-icons:"+G.iconType.toLowerCase():"yt-icons:close"};
_.c([_.v(),_.I("design:type",Object)],SM.prototype,"data",void 0);_.c([_.v({computed:"computeIcon(data.icon)"}),_.I("design:type",Object)],SM.prototype,"icon",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],SM);
_.d(SM,"yt-live-chat-error-message-renderer",function(){if(xT$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;sT$===void 0&&(sT$=document.createElement("template"));var D=sT$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);xT$=G}G=xT$;return G},{mode:0});var PmQ;var G4U;var s6=function(){var G=_.p.apply(this,arguments)||this;G.tooltip=null;G.data=null;G.id="";G.active=!1;G.icon="";G.disabled=!1;G.showTooltip=!1;G.useToggledActiveState=!0;G.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return G};
_.r(s6,_.p);_.w=s6.prototype;
_.w.dataChanged=function(){var G;((G=this.data)==null?0:G.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,_.gK)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var B;if((B=this.data)==null?0:B.disabled)this.disabled=!0};
_.w.computeId=function(G){return G};
_.w.computeIcon=function(G,B){if(!G)return"";if(this.useToggledActiveState)return"yt-icons:"+G.toLowerCase();var F,D;return B&&((F=this.data)==null?0:(D=F.toggledIcon)==null?0:D.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+G.toLowerCase()};
_.w.logPDGEntryPoint=function(){_.tP8(_.ZV("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")};
_.w.immediatelyShowTooltip=function(){var G=_.IF(this.hostElement).querySelector("#tooltip");G.animationDelay=0;G.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};G.show()};
_.w.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.w.onClick=function(G){var B;((B=this.data)==null?0:B.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),G.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.cZ(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.w.computeShowTooltip=function(G,B){return!!(G&&G.tooltip&&B)};
_.w.maybeUpdateTooltipText=function(){var G=this,B;if((B=this.data)==null?0:B.tooltip){var F=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.gK)(G.tooltip).textContent=F},250)}};
_.w.handleLiveChatActions=function(G){var B=this;G.length&&(this.id!=="creator"&&this.id!=="product-picker"||G.forEach(function(F){(F=B.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",F))&&F.durationSec===F.fullDurationSec&&B.startBubble(B.colorFromDecimal(F.startBackgroundColor))}))};
_.w.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.w.startBubble=function(G){_.Ss(this.hostElement,{"--yt-live-chat-monetization-button-glow":G});this.hostElement.setAttribute("bubble","")};
_.w.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.w.colorFromDecimal=function(G){typeof G==="string"&&(G=Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
s6.prototype.onAnimationEnd=s6.prototype.onAnimationEnd;s6.prototype.disabledChanged=s6.prototype.disabledChanged;s6.prototype.dataChanged=s6.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.K4.YtLiveChatTooltipTargetingBehavior),_.I("design:type",Object)],s6.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],s6.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.I("design:type",Object)],s6.prototype,"id",void 0);_.c([_.v({notify:!0,reflectToAttribute:!0}),_.I("design:type",Object)],s6.prototype,"active",void 0);
_.c([_.v({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.I("design:type",Object)],s6.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],s6.prototype,"disabled",void 0);_.c([_.v({computed:"computeShowTooltip(data, disabled)"}),_.I("design:type",Object)],s6.prototype,"showTooltip",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],s6.prototype,"useToggledActiveState",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],s6.prototype,"dataChanged",null);_.c([_.Ga("disabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],s6.prototype,"disabledChanged",null);_.c([_.Pm("animationend"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],s6.prototype,"onAnimationEnd",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],s6);
_.d(s6,"yt-live-chat-icon-toggle-button-renderer",function(){if(G4U===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;PmQ===void 0&&(PmQ=document.createElement("template"));var D=PmQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);G4U=G}G=G4U;return G},{mode:0});var BGB;var isS;var x1=function(){return _.p.apply(this,arguments)||this};
_.r(x1,_.p);x1.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.v(),_.I("design:type",Object)],x1.prototype,"data",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],x1);
_.d(x1,"yt-live-chat-message-input-prompt-header-renderer",function(){if(isS===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;BGB===void 0&&(BGB=document.createElement("template"));var D=BGB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);isS=G}G=isS;return G},{mode:0});var FTN;var DGU;var ufB;var R3$;var wgB;var CHD;var NGA=function(){return _.p.apply(this,arguments)||this};
_.r(NGA,_.p);_.c([_.v(),_.I("design:type",Object)],NGA.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],NGA);
_.d(NGA,"yt-live-chat-message-subtext-renderer",function(){if(CHD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;wgB===void 0&&(wgB=document.createElement("template"));var D=wgB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);CHD=G}G=CHD;return G},{mode:0});var Pk=function(){var G=_.p.apply(this,arguments)||this;G.subtextOnBottom=!1;G.buttonOverrides={style:"mono",type:"tonal"};return G};
_.r(Pk,_.p);Pk.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Pk.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Pk.prototype,"subtextOnBottom",void 0);_.c([_.v(),_.I("design:type",Object)],Pk.prototype,"buttonOverrides",void 0);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Pk);
_.d(Pk,"yt-live-chat-message-renderer",function(){if(R3$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ufB===void 0&&(ufB=document.createElement("template"));var D=ufB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);R3$=G}G=R3$;return G},{mode:0});var yB$;var n8D;var G3=function(){var G=_.p.apply(this,arguments)||this;G.isRemovable=!1;G.hasPrefilledText=!1;G.isInputDirty=!1;G.overCharacterLimit=!1;G.underCharacterLimit=!1;G.showErrorMessage=!1;return G};
_.r(G3,_.p);_.w=G3.prototype;_.w.computeId=function(){return this.data.id};
_.w.computeInputData=function(){return this.data.inputData};
_.w.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.w.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.w.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.w.getLiveChatRichMessageInput=function(){return _.IF(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.w.clearInput=function(){_.IF(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.w.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.w.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.w.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.w.handleTextInputCharCountChanged=function(G){G=G.detail&&G.detail.characterCount;G!==void 0&&(this.characterCount=G,G!==0&&(this.isInputDirty=!0))};
_.w.onInputFocusOut=function(){this.isInputDirty=!0};
_.w.onClickCloseButton=function(){_.cZ(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
G3.prototype.handleTextInputCharCountChanged=G3.prototype.handleTextInputCharCountChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],G3.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.id)"}),_.I("design:type",String)],G3.prototype,"id",void 0);_.c([_.v({computed:"computeInputData(data.inputData)"}),_.I("design:type",Object)],G3.prototype,"inputData",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.I("design:type",Object)],G3.prototype,"isRemovable",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.I("design:type",Object)],G3.prototype,"hasPrefilledText",void 0);_.c([_.v({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.I("design:type",Number)],G3.prototype,"charactersRemaining",void 0);
_.c([_.v(),_.I("design:type",Number)],G3.prototype,"characterCount",void 0);_.c([_.v(),_.I("design:type",Object)],G3.prototype,"isInputDirty",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.I("design:type",Object)],G3.prototype,"overCharacterLimit",void 0);_.c([_.v({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.I("design:type",Object)],G3.prototype,"underCharacterLimit",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.I("design:type",Object)],G3.prototype,"showErrorMessage",void 0);_.c([_.Pm("yt-live-chat-text-input-field-renderer-character-count-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],G3.prototype,"handleTextInputCharCountChanged",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],G3);
_.d(G3,"yt-live-chat-poll-editor-input",function(){if(n8D===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;yB$===void 0&&(yB$=document.createElement("template"));var D=yB$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);n8D=G}G=n8D;return G},{mode:0});var lGA;var UGz;var q0$={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},BE=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_button_rework_with_live");G.closeButtonOverrides={iconPosition:"icon-only"};G.startButtonOverrides={style:"mono",type:"filled"};G.addOptionButtonOverrides={style:"mono",type:"text"};return G};
_.r(BE,_.p);_.w=BE.prototype;
_.w.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"}}}}};
_.w.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var G;_.Q((G=this.data)==null?void 0:G.startButton,_.Xq)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.w.computeId=function(){return this.data&&this.data.id||""};
_.w.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.w.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.w.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.w.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.w.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var G=0;G<this.pollEditorInfoWithDefaults.minPollOptions;G++)this.addPollOptionData()};
_.w.getIsValidPoll=function(){var G=this;if(!this.pollEditorInfoWithDefaults)return!1;var B=this.pollEditorInfoWithDefaults,F=B.minPollOptionChars,D=B.maxPollOptionChars,u=B.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>B.maxPollQuestionChars)return!1;B=_.IF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(B).every(function(R,N){R=R.characterCount;!R&&u[N]&&(R=G.ytRendererBehavior.getSimpleString(u[N]).length);return R!==void 0&&R>=F&&R<=D})};
_.w.isValidPollChanged=function(){var G;_.Q((G=this.data)==null?void 0:G.startButton,_.Xq)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.w.addPollOptionData=function(){var G=this.pollEditorInfoWithDefaults,B=G.maxPollOptionChars,F=G.optionPlaceholderText,D=G.customOptionPlaceholderText,u=G.pollOptionData;this.currentNumPollOptions>=G.maxPollOptions||(G={liveChatPollOptionInput:{inputData:{placeholder:D[this.currentNumPollOptions]||F,maxCharacterLimit:B},maxCharacterLimit:B,minCharacterLimit:G.minPollOptionChars,hasPrefilledText:!!D[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=G.minPollOptions}},u.charCountErrorText&&
(G.liveChatPollOptionInput.charCountErrorText=u.charCountErrorText),u.charsRemainingAltLabel&&(G.liveChatPollOptionInput.charsRemainingAltLabel=u.charsRemainingAltLabel),u.removeOptionAltText&&(G.liveChatPollOptionInput.removeOptionAltText=u.removeOptionAltText),this.push("pollOptionsData",G),u=Array.from(_.IF(_.IF(this.hostElement).querySelector("#poll-options")).children),u.forEach(function(R,N){R.polymerController.set("data.id",N)}),_.IF(u[u.length-1]).querySelector("#input").focus())};
_.w.getPollOptionInputValues=function(){var G=this,B=[],F=_.IF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),D=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(F).forEach(function(u,R){var N=null;u=u.getLiveChatRichMessageInput();var y;(u==null?0:(y=u.textSegments)==null?0:y.length)?N=_.re(u):D[R]&&(N=G.formattedStringToLiveChatRichMessageInput(D[R]));B.push(N)});
return B};
_.w.requestCreateAndStartPoll=function(G){var B=this.getPollOptionInputValues();if(!B.some(function(D){return!D})){B={optionText:B};
var F=_.IF(_.IF(this.hostElement).querySelector("#poll-question")).firstChild;F&&F.liveChatRichMessageInput&&(B.questionText=_.re(F.liveChatRichMessageInput));_.fi(this.hostElement,[G,B])}};
_.w.selectedChanged=function(){if(this.selected){var G=_.IF(_.IF(this.hostElement).querySelector("#start-button")).firstElementChild;if(G){var B;(B=_.IF(G).querySelector("#button")||_.fp(G).querySelector("button"))==null||B.focus()}}};
_.w.handleTextInputChanged=function(G){var B;((B=G.target)==null?void 0:B.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=G.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.w.handleStartButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),(G=G.detail.args[1])&&this.requestCreateAndStartPoll(G))};
_.w.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.w.handleServiceRequestCompleted=function(G){this.createPollRequestInFlight=!1;(G=G.detail&&G.detail.data)&&G.success&&(_.cZ(this.hostElement,"picker-cancelled"),_.T1(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.w.onCloseClick=function(){_.cZ(this.hostElement,"picker-cancelled");_.T1(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.w.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.w.handlePollEditorInputClosed=function(G){var B=this.pollOptionsData.findIndex(function(F){return F.liveChatPollOptionInput.id===G.detail.id});
this.splice("pollOptionsData",B,1);this.isValidPoll=this.getIsValidPoll()};
_.w.onPickerCancelled=function(){this.reset()};
_.w.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var G=_.IF(_.IF(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.setLiveChatRichMessageInput(null);if(G=_.IF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){G=_.C(Array.from(G));for(var B=G.next();!B.done;B=G.next())B.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.w.formattedStringToLiveChatRichMessageInput=function(G){return G.simpleText?{text_segments:[G.simpleText]}:{text_segments:G.runs}};
_.ZN.Object.defineProperties(BE.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(q0$,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
BE.prototype.onPickerCancelled=BE.prototype.onPickerCancelled;BE.prototype.handlePollEditorInputClosed=BE.prototype.handlePollEditorInputClosed;BE.prototype.handleServiceRequestCompleted=BE.prototype.handleServiceRequestCompleted;BE.prototype.handleServiceRequestSent=BE.prototype.handleServiceRequestSent;BE.prototype.handleTextInputChanged=BE.prototype.handleTextInputChanged;BE.prototype.selectedChanged=BE.prototype.selectedChanged;BE.prototype.isValidPollChanged=BE.prototype.isValidPollChanged;
BE.prototype.shouldInitializePollChanged=BE.prototype.shouldInitializePollChanged;BE.prototype.dataChanged=BE.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],BE.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],BE.prototype,"modern",void 0);
_.c([_.v(),_.I("design:type",Object)],BE.prototype,"closeButtonOverrides",void 0);_.c([_.v(),_.I("design:type",Object)],BE.prototype,"startButtonOverrides",void 0);_.c([_.v(),_.I("design:type",Object)],BE.prototype,"addOptionButtonOverrides",void 0);_.c([_.v({computed:"computeId(data.id)",reflectToAttribute:!0}),_.I("design:type",String)],BE.prototype,"id",void 0);_.c([_.v({value:function(){return[]}}),
_.I("design:type",Array)],BE.prototype,"pollOptionsData",void 0);_.c([_.O("pollEditorInfoWithDefaults"),_.I("design:type",Object),_.I("design:paramtypes",[])],BE.prototype,"pollQuestionData",null);_.c([_.v({value:0}),_.I("design:type",Number)],BE.prototype,"pollQuestionCharacterCount",void 0);_.c([_.O("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.I("design:type",Object),_.I("design:paramtypes",[])],BE.prototype,"pollQuestionCharactersRemaining",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.I("design:type",Boolean)],BE.prototype,"overQuestionCharacterLimit",void 0);_.c([_.O("data.pollEditorInfo"),_.I("design:type",Object),_.I("design:paramtypes",[])],BE.prototype,"pollEditorInfoWithDefaults",null);_.c([_.v({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.I("design:type",Number)],BE.prototype,"currentNumPollOptions",void 0);
_.c([_.v({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.I("design:type",Boolean)],BE.prototype,"hasMaxNumPollOptions",void 0);_.c([_.O("pollEditorInfoWithDefaults","pollOptionsData"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],BE.prototype,"shouldInitializePoll",null);_.c([_.v(),_.I("design:type",Object)],BE.prototype,"isValidPoll",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],BE.prototype,"createPollRequestInFlight",void 0);_.c([_.v(),_.I("design:type",Object)],BE.prototype,"selected",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.I("design:type",Boolean)],BE.prototype,"showQuestionErrorMessage",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BE.prototype,"dataChanged",null);_.c([_.Ga("shouldInitializePoll"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BE.prototype,"shouldInitializePollChanged",null);_.c([_.Ga("isValidPoll"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BE.prototype,"isValidPollChanged",null);
_.c([_.Ga("selected"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BE.prototype,"selectedChanged",null);_.c([_.Pm("yt-live-chat-text-input-field-renderer-character-count-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BE.prototype,"handleTextInputChanged",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BE.prototype,"handleServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BE.prototype,"handleServiceRequestCompleted",null);
_.c([_.Pm("yt-live-chat-poll-editor-input-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],BE.prototype,"handlePollEditorInputClosed",null);_.c([_.Pm("picker-cancelled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BE.prototype,"onPickerCancelled",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],BE);
_.d(BE,"yt-live-chat-poll-editor-panel-renderer",function(){if(UGz===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;lGA===void 0&&(lGA=document.createElement("template"));var D=lGA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);UGz=G}G=UGz;return G},{mode:0});var E8$;var h3$;var i0=function(){return _.p.apply(this,arguments)||this};
_.r(i0,_.p);i0.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
i0.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ZN.Object.defineProperties(i0.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var G,B;return(G=this.data)==null?void 0:(B=G.title)==null?void 0:B.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.X1((G=this.data)==null?void 0:G.onTapCommand)}}});
_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],i0.prototype,"ytEndpointBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],i0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],i0.prototype,"itemId",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],i0.prototype,"hasPromotion",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],i0.prototype,"innertubeCommand",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],i0);
_.d(i0,"yt-live-chat-product-picker-panel-item-view-model",function(){if(h3$===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;E8$===void 0&&(E8$=document.createElement("template"));var D=E8$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);h3$=G}G=h3$;return G},{mode:0});var KTH;var aGZ;var FX=function(){var G=_.p.apply(this,arguments)||this;G.id="product-picker";G.selected=!1;G.closeButtonId="close-button";G.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return G};
_.r(FX,_.p);_.w=FX.prototype;_.w.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.w.observeSelected=function(){this.selected&&this.hostElement.focus();var G=_.IF(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");G.length&&G[0].focus()};
_.w.onCloseBuyFlow=function(){_.cZ(this.hostElement,"picker-cancelled")};
_.w.onCloseClick=function(){_.cZ(this.hostElement,"picker-cancelled");var G;((G=this.data)==null?0:G.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Q(this.data.closeButton,_.LV))};
_.w.onCloseEngageWithAudienceEditorPanels=function(){_.cZ(this.hostElement,"picker-cancelled")};
FX.prototype.observeSelected=FX.prototype.observeSelected;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],FX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],FX.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],FX.prototype,"id",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],FX.prototype,"selected",void 0);_.c([_.v(),_.I("design:type",Object)],FX.prototype,"closeButtonId",void 0);_.c([_.Ga("selected"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FX.prototype,"observeSelected",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],FX);
_.d(FX,"yt-live-chat-product-picker-panel-view-model",function(){if(aGZ===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;KTH===void 0&&(KTH=document.createElement("template"));var D=KTH;F.call(B,D.content.cloneNode(!0),G.content.firstChild);aGZ=G}G=aGZ;return G},{mode:0});var mGS;var XgD;var Dt=function(){var G=_.p.apply(this,arguments)||this;G.iconId="";G.icon="";G.disabled=!1;G.systemIcons=_.X("kevlar_system_icons");return G};
_.r(Dt,_.p);_.w=Dt.prototype;_.w.computeIconId=function(G){return G&&G.icon&&G.icon.iconType?G.icon.iconType.toLowerCase():""};
_.w.computeIcon=function(G){return G&&G.icon&&G.icon.iconType?(G=G.icon.iconType.toLowerCase(),(G.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+G):""};
_.w.computeDisabled=function(G){return!!G};
_.w.computeCommand=function(G,B){return B?void 0:G};
_.w.computeTooltip=function(G,B){return B&&G?G:""};
_.w.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ZN.Object.defineProperties(Dt.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G="",B,F,D;if((B=this.data)==null?0:(F=B.text)==null?0:(D=F.runs)==null?0:D.length)G=this.data.text.runs[0].text||"";else{var u,R;if((u=this.data)==null?0:(R=u.text)==null?0:R.simpleText)G=this.data.text.simpleText}var N,y,U;if((N=this.data)==null?0:(y=N.subtext)==null?0:(U=y.runs)==null?0:U.length)G&&(G+=". "),G+=this.data.subtext.runs[0].text||"";else{var q,h;if((q=this.data)==null?0:(h=q.subtext)==
null?0:h.simpleText)G&&(G+=". "),G+=this.data.subtext.simpleText}return G}}});
_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],Dt.prototype,"ytEndpointBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Dt.prototype,"data",void 0);_.c([_.v({computed:"computeIconId(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Dt.prototype,"iconId",void 0);
_.c([_.v({computed:"computeIcon(data)",reflectToAttribute:!0}),_.I("design:type",Object)],Dt.prototype,"icon",void 0);_.c([_.v({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.I("design:type",Object)],Dt.prototype,"disabled",void 0);_.c([_.v({computed:"computeCommand(data.command, disabled)"}),_.I("design:type",Object)],Dt.prototype,"command",void 0);_.c([_.v({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.I("design:type",String)],Dt.prototype,"tooltip",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Dt.prototype,"systemIcons",void 0);_.c([_.O("data.text","data.subtext"),_.v(),_.I("design:type",String),_.I("design:paramtypes",[])],Dt.prototype,"ariaLabel",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Dt);
_.d(Dt,"yt-live-chat-product-button-renderer",function(){if(XgD===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;mGS===void 0&&(mGS=document.createElement("template"));var D=mGS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);XgD=G}G=XgD;return G},{mode:0});var Q22;var j2S;var u0=function(){var G=_.p.apply(this,arguments)||this;G.selected=!1;G.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return G};
_.r(u0,_.p);_.w=u0.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.computeId=function(G){return G.id||""};
_.w.onCloseClick=function(){_.cZ(this.hostElement,"picker-cancelled")};
_.w.observeSelected=function(){this.selected&&this.hostElement.focus();var G=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");G.length&&G[0].focus()};
_.w.onCloseBuyFlow=function(){_.cZ(this.hostElement,"picker-cancelled")};
_.w.onCloseEngageWithAudienceEditorPanels=function(){_.cZ(this.hostElement,"picker-cancelled")};
u0.prototype.observeSelected=u0.prototype.observeSelected;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],u0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],u0.prototype,"data",void 0);
_.c([_.v({computed:"computeId(data)",reflectToAttribute:!0}),_.I("design:type",String)],u0.prototype,"id",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],u0.prototype,"selected",void 0);_.c([_.Ga("selected"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],u0.prototype,"observeSelected",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],u0);
_.d(u0,"yt-live-chat-product-picker-renderer",function(){if(j2S===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Q22===void 0&&(Q22=document.createElement("template"));var D=Q22;F.call(B,D.content.cloneNode(!0),G.content.firstChild);j2S=G}G=j2S;return G},{mode:0});var LT$;var rB$;var WTD;var HsD;var Rb=function(){return _.p.apply(this,arguments)||this};
_.r(Rb,_.p);Rb.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()};
Rb.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Rb.prototype.created=function(){this.ids={background:cW(),maskOne:cW(),maskTwo:cW(),gradient:cW(),largeBackground:cW(),largeGradientOne:cW(),largeGradientTwo:cW(),largeGradientPath:cW()}};
Rb.prototype.maybeLoadAnimationBackground=Rb.prototype.maybeLoadAnimationBackground;_.c([_.v({value:!1}),_.I("design:type",Boolean)],Rb.prototype,"useLargeBackground",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Rb.prototype,"useAnimationBackground",void 0);_.c([_.v({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.I("design:type",Boolean)],Rb.prototype,"useRegularBackground",void 0);
_.c([_.v(),_.I("design:type",Object)],Rb.prototype,"ids",void 0);_.c([_.v(),_.I("design:type",Object)],Rb.prototype,"lottieAnimation",void 0);_.c([_.iA("#animation-background"),_.I("design:type",HTMLDivElement)],Rb.prototype,"animationBackground",void 0);_.c([_.Ga("useAnimationBackground"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Rb.prototype,"maybeLoadAnimationBackground",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Rb);
_.d(Rb,"yt-live-interactivity-component-background",function(){if(HsD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;WTD===void 0&&(WTD=document.createElement("template"));var D=WTD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);HsD=G}G=HsD;return G},{mode:0});var wW=function(){var G=_.p.apply(this,arguments)||this;G.characterCount=0;G.showInputErrorMessage=!1;G.startQnaRequestInFlight=!1;G.modern=_.X("web_button_rework_with_live");G.buttonOverrides={style:"mono",type:"filled"};G.closeButtonOverrides={iconPosition:"icon-only"};G.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return G};
_.r(wW,_.p);_.w=wW.prototype;
_.w.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]]"}}}}}};
_.w.onCharacterCountChanged=function(G){var B,F,D,u,R=(F=_.Q(this==null?void 0:(B=this.data)==null?void 0:B.creatorCallForQuestions,blS))==null?void 0:(D=F.inputField)==null?void 0:(u=D.liveChatTextInputFieldRenderer)==null?void 0:u.maxCharacterLimit,N,y;R!=null&&(G==null?void 0:(N=G.detail)==null?void 0:N.characterCount)!=null&&_.Q(this==null?void 0:(y=this.data)==null?void 0:y.startButton,_.Xq)&&(B=G.detail.characterCount>R,this.set("data.startButton.buttonRenderer.isDisabled",G.detail.characterCount===
0||B),this.showInputErrorMessage=B)};
_.w.onCloseClick=function(){_.cZ(this.hostElement,"picker-cancelled");_.T1(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.w.onPickerCancelled=function(){var G=_.IF(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.setLiveChatRichMessageInput(null)};
_.w.handleOpenQnaStartPanel=function(){var G=_.IF(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.focus()};
_.w.handleStartButtonAction=function(G){var B=this;if(G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),G=G.detail.args[1])){var F=_.IF(this.hostElement).querySelector("#qna-creator-text-input-field"),D;(F==null?0:(D=F.liveChatRichMessageInput)==null?0:D.textSegments)&&F.liveChatRichMessageInput.textSegments.length!==0&&(D={rich_message:_.re(F.liveChatRichMessageInput)},_.fi(this.hostElement,[G,D]).then(function(){_.cZ(B.hostElement,"picker-cancelled")}))}};
_.w.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.w.handleServiceRequestCompleted=function(G){var B;G=G==null?void 0:(B=G.detail)==null?void 0:B.data;(G==null?0:G.actions)&&G.actions.length>0?this.startQnaRequestInFlight=!1:_.T1(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.w.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
wW.prototype.handleServiceRequestError=wW.prototype.handleServiceRequestError;wW.prototype.handleServiceRequestCompleted=wW.prototype.handleServiceRequestCompleted;wW.prototype.handleServiceRequestSent=wW.prototype.handleServiceRequestSent;wW.prototype.onPickerCancelled=wW.prototype.onPickerCancelled;wW.prototype.onCharacterCountChanged=wW.prototype.onCharacterCountChanged;_.c([_.v(),_.I("design:type",Object)],wW.prototype,"characterCount",void 0);
_.c([_.v(),_.I("design:type",Object)],wW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],wW.prototype,"showInputErrorMessage",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],wW.prototype,"startQnaRequestInFlight",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],wW.prototype,"modern",void 0);_.c([_.v(),_.I("design:type",Object)],wW.prototype,"buttonOverrides",void 0);
_.c([_.v(),_.I("design:type",Object)],wW.prototype,"closeButtonOverrides",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],wW.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.k(_.Wj.YtLiveChatItemBehavior),_.I("design:type",_.Hj)],wW.prototype,"ytLiveChatItemBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],wW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Pm("yt-live-chat-text-input-field-renderer-character-count-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],wW.prototype,"onCharacterCountChanged",null);_.c([_.Pm("picker-cancelled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wW.prototype,"onPickerCancelled",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wW.prototype,"handleServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],wW.prototype,"handleServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],wW.prototype,"handleServiceRequestError",null);_.c([_.mC({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],wW);
_.d(wW,"yt-live-chat-qna-start-panel-renderer",function(){if(rB$===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;LT$===void 0&&(LT$=document.createElement("template"));var D=LT$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);rB$=G}G=rB$;return G},{mode:0});var k4D;var Os2;var C0=function(){return _.p.apply(this,arguments)||this};
_.r(C0,_.p);C0.prototype.dismiss=function(){_.cZ(this.hostElement,"yt-live-chat-error-message-dismiss")};
C0.prototype.edit=function(){_.cZ(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.c([_.v(),_.I("design:type",Object)],C0.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],C0);
_.d(C0,"yt-live-chat-text-actions-error-message-renderer",function(){if(Os2===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;k4D===void 0&&(k4D=document.createElement("template"));var D=k4D;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Os2=G}G=Os2;return G},{mode:0});var e3$;var $GZ;var z3N;var bsN;var Nc=function(){var G=_.p.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.r(Nc,_.p);Nc.prototype.sendReaction=function(){var G,B,F=((G=this.data)==null?void 0:G.emojiId)||((B=this.data)==null?void 0:B.emoteId),D;F&&((D=this.data)==null?0:D.shouldTriggerAnimation)&&_.T1(this.hostElement,"yt-create-user-reaction-animation",[F]);var u;(G=_.X1((u=this.data)==null?void 0:u.onTap))&&_.Br(G,this.hostElement);this.showNewnessDot&&_.T1(this.hostElement,"yt-hide-newness-dot")};
Nc.prototype.onClick=function(G){(!G||G.clientX||G.clientY)&&this.sendReaction()};
Nc.prototype.onKeyDown=function(G){G.key!=="Enter"&&G.key!==" "||G.repeat||this.sendReaction()};
_.ZN.Object.defineProperties(Nc.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!(((G=this.data)==null?0:G.emojiId)||((B=this.data)==null?0:B.emoteId))}}});
_.c([_.v(),_.I("design:type",Object)],Nc.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Nc.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",Object)],Nc.prototype,"newnessDotEligible",void 0);_.c([_.O("data.maybeShowNewnessDot"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Nc.prototype,"showNewnessDot",null);_.c([_.O("data.emojiId","data.emoteId"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Nc.prototype,"useYtImage",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Nc);
_.d(Nc,"yt-reaction-control-panel-button-view-model",function(){if(bsN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;z3N===void 0&&(z3N=document.createElement("template"));var D=z3N;F.call(B,D.content.cloneNode(!0),G.content.firstChild);bsN=G}G=bsN;return G},{mode:0});var VGD;var v8S;var yE=function(){var G=_.p.apply(this,arguments)||this;G.reactionControlPanelExpanded=!1;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.r(yE,_.p);_.w=yE.prototype;_.w.expandedButtonsChanged=function(){var G,B;_.Ss(this.hostElement,{"--expanded-buttons-height":((B=(G=this.expandedButtonsData)==null?void 0:G.length)!=null?B:0)*36+"px"})};
_.w.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}}};
_.w.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.w.onMouseLeave=function(){var G=this;this.collapseTimer=setTimeout(function(){G.reactionControlPanelExpanded=!1},500)};
_.w.onFocusIn=function(){this.onMouseEnter()};
_.w.onFocusOut=function(){this.onMouseLeave()};
_.w.onCollapsedButtonFocusIn=function(){var G=this;setTimeout(function(){var B;(B=G.expandedButtons.querySelector("button"))==null||B.focus()},100)};
_.w.onCollapsedButtonFocusOut=function(G){G.stopPropagation()};
_.ZN.Object.defineProperties(yE.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var G,B;return _.UK.unsafeClone((G=this.liveReactionsData)==null?void 0:G.emojiButtonData)||((B=this.data)==null?void 0:B.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((G=this.data)==null||!G.maybeShowNewnessDot)}}});
yE.prototype.expandedButtonsChanged=yE.prototype.expandedButtonsChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],yE.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yE.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],yE.prototype,"reactionControlPanelExpanded",void 0);_.c([_.v({selectorArgs:["data.liveReactionsDataEntityKey"],selector:SqB}),_.I("design:type",Object)],yE.prototype,"liveReactionsData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],yE.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",Object)],yE.prototype,"newnessDotEligible",void 0);
_.c([_.O("liveReactionsData","data.expandedButtons"),_.I("design:type",Object),_.I("design:paramtypes",[])],yE.prototype,"expandedButtonsData",null);_.c([_.O("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.v({reflectToAttribute:!0}),_.I("design:type",Object),_.I("design:paramtypes",[])],yE.prototype,"showNewnessDot",null);_.c([_.iA("#expanded-buttons"),_.I("design:type",HTMLElement)],yE.prototype,"expandedButtons",void 0);
_.c([_.Ga("expandedButtonsData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yE.prototype,"expandedButtonsChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],yE);
_.d(yE,"yt-reaction-control-panel-view-model",function(){if(v8S===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;VGD===void 0&&(VGD=document.createElement("template"));var D=VGD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);v8S=G}G=v8S;return G},{mode:0});var n0=new _.e6("yt-live-chat"),o8G=Date.parse("2024-7-24"),l0=function(){var G=_.p.apply(this,arguments)||this;G.emojiManager=_.rl;G.newnessDotEligible=!1;G.newnessDotImpressionCounted=!1;G.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return G};
_.r(l0,_.p);_.w=l0.prototype;_.w.emojiCustomizationEnabledChanged=function(){var G;((G=this.data)==null?0:G.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((G=n0.getCreationTime("emoji-customization-count"))&&G<o8G&&n0.set("emoji-customization-count","0"),G=Number(n0.get("emoji-customization-count"))||0,G<3&&(this.newnessDotEligible=!0,n0.set("emoji-customization-count",(G+1).toString())),this.newnessDotImpressionCounted=!0)};
_.w.hideNewnessDot=function(){this.newnessDotEligible=!1;n0.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.w.handleReactionsMute=function(G){var B=_.qW(),F=_.ge(206221),D={checkboxData:{state:G?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};B&&_.$I(B,F,D);this.reactionsMuted=G};
_.w.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.w.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}}};
_.ZN.Object.defineProperties(l0.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return(!((G=this.liveReactionsData)==null||!G.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
l0.prototype.liveReactionsSettingChanged=l0.prototype.liveReactionsSettingChanged;l0.prototype.emojiCustomizationEnabledChanged=l0.prototype.emojiCustomizationEnabledChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hi),_.I("design:type",Object)],l0.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],l0.prototype,"data",void 0);_.c([_.v(),_.I("design:type",_.Q0)],l0.prototype,"emojiManager",void 0);_.c([_.v(),_.I("design:type",Object)],l0.prototype,"newnessDotEligible",void 0);_.c([_.v(),_.I("design:type",Object)],l0.prototype,"newnessDotImpressionCounted",void 0);
_.c([_.v({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:sgA}),_.I("design:type",Boolean)],l0.prototype,"liveReactionsSetting",void 0);_.c([_.v({selectorArgs:["data.liveReactionsDataEntityKey"],selector:SqB}),_.I("design:type",Object)],l0.prototype,"liveReactionsData",void 0);_.c([_.v({value:function(){var G=_.X("enable_lwe_web_mute"),B=n0.get("allow-reactions");return B===void 0?!1:!B&&G}}),
_.I("design:type",Boolean)],l0.prototype,"reactionsMuted",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],l0.prototype,"liveReactionsEnabled",null);_.c([_.Ga("data.emojiCustomizationEnabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],l0.prototype,"emojiCustomizationEnabledChanged",null);
_.c([_.Ga("liveReactionsEnabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],l0.prototype,"liveReactionsSettingChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],l0);
_.d(l0,"yt-reaction-control-panel-overlay-view-model",function(){if($GZ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;e3$===void 0&&(e3$=document.createElement("template"));var D=e3$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);$GZ=G}G=$GZ;return G},{mode:0});var MGU={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(G){var B=this.$.pickers.selected;if(B){_.IF(this.hostElement).removeAttribute(B+"-open");var F="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(F="#picker-buttons",B==="emoji"&&_.IF(this.hostElement).querySelector("#emoji-picker-button")&&(F="#emoji-picker-button"));if(F=_.IF(this.hostElement).querySelector(F).querySelector("#"+B))F.active=!1}F=G;B==G&&(F=null);B!=
G&&_.IF(this.hostElement).setAttribute(G+"-open","");this.$.pickers.selected=F;_.T1(this.hostElement,"yt-live-chat-picker-changed",[F])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var UU=function(){var G=_.p.apply(this,arguments)||this;G.numSentMessages=0;G.timeoutDurationMs=0;G.timeoutMs=0;G.lastTimeoutTimeMs=0;G.pendingMessageId="";G.hasFiredInitialFocusActions=!1;G.isBeforeFocusEnabled=!0;G.id="";G.characterCount=0;G.maxCharacterLimit=0;G.remainingCharacterCount=0;G.inputExpanded=!1;G.buttonOverrides={iconPosition:"icon-only"};G.inReplyPanel=!1;G.countdownRatio=0;G.isTooltipVisible=!1;G.tooltipTimeout=1E4;G.systemIcons=_.X("kevlar_system_icons");G.tallerEmojiPicker=_.X("live_chat_taller_emoji_picker");
G.sendReplyMessageInFlight=!1;G.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"};G.onResize=function(){G.maybeToggleCharacterCount()};
return G};
_.r(UU,_.p);_.w=UU.prototype;
_.w.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"}}}};
_.w.attached=function(){window.addEventListener("resize",this.onResize)};
_.w.detached=function(){window.removeEventListener("resize",this.onResize)};
_.w.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.w.sendMessage=function(){var G=this,B,F,D,u;return _.n(function(R){if(G.sendDisabled)return R.return();G.isTooltipVisible&&_.T1(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(G.data.sendButton&&G.data.sendButton.buttonRenderer){G.input.completeEmojis();B=G.data.sendButton.buttonRenderer.serviceEndpoint;if(!B)return R.return();D=((F=_.Q(B,_.c9U))==null?void 0:F.clientIdPrefix)||"";u={client_message_id:D+String(G.numSentMessages++),rich_message:_.re(G.input.liveChatRichMessageInput)};
G.pendingMessageId=u.client_message_id;G.inReplyPanel&&(G.sendReplyMessageInFlight=!0);_.fi(G.hostElement,[B,u]);G.input.setLiveChatRichMessageInput(null)}_.di(R)})};
_.w.handleSendButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),this.sendMessage())};
_.w.onSendCompleted=function(G,B){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(G=this.get("timeoutDurationUsec",B.data))&&this.handleTimeout(Number(G)/1E3);this.errorMessage=this.get("errorMessage",B.data);this.pendingMessageId=""};
_.w.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.T1(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.w.handlePickerButtonToggle=function(G){G=G.detail.targetId;this.ytPickerBehavior.togglePicker_(G);if(G==="emoji")this.input.focus();else if(G==="qna-start-panel"){var B,F;(B=_.IF(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(F=B.querySelector("#qna-creator-text-input-field"))==null||F.focus()}};
_.w.onComponentReplaced=function(G){var B,F;G.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((B=G.replacement.liveChatMessageInputRenderer)==null?0:(F=B.headerRenderer)==null?0:F.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.w.onEmojiSelect=function(G){this.input.focus();this.input.insertEmoji(G.detail)};
_.w.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.w.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.T1(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.T1(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.w.onOpenPopupAction=function(G,B){var F=this;B===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.T1(F.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.w.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.w.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.w.focusChanged=function(){this.maybeToggleCharacterCount()};
_.w.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var G=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",G>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.w.computeId=function(){return this.data&&this.data.targetId||""};
_.w.computeSendDisabled=function(G,B,F,D){G=!!(!G||B&&G>B||D);(B=_.IF(this.hostElement).querySelector("#send-button"))&&B.children.length&&(B.children[0].disabled=G);return G};
_.w.handleTimeout=function(G){this.timeoutDurationMs=this.timeoutMs=G;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.w.updateTimeout=function(G){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(G-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=G,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.w.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.w.onErrorMessageEdit=function(G){this.input.setLiveChatRichMessageInput(G.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.w.errorMessageChanged=function(){var G=this;_.Hc(function(){_.T1(G.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.w.computeAuthorNameColor=function(G){var B;if(_.X("live_chat_author_name_color_usernames")&&(G==null?0:(B=G.authorName)==null?0:B.simpleText))return _.Bcc(_.iaU(G.authorName.simpleText));if(_.X("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.Bcc(_.SI(G.authorSeedColorArgb));if(_.X("live_chat_colored_usernames"))return"#cc0000";var F;return _.X("live_chat_simple_color_usernames")&&(G==null?0:(F=G.authorName)==null?0:F.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.SI(G.authorUsernameColorDark):_.SI(G.authorUsernameColorLight):""};
_.w.onIsTooltipVisibleChanged=function(){var G=_.IF(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){G.hidden=!1;G.setAttribute("role","alert")},0):(G.hidden=!0,G.removeAttribute("role"))};
_.w.onFocusedChanged=function(G){this.inputFocused=G.detail.value};
_.ZN.Object.defineProperties(UU.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 G;return!((G=this.data)==null||!G.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.pickers)==null?void 0:B.find(function(F){return F.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return G?this.ytRendererBehavior.getSimpleString(G):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
UU.prototype.onIsTooltipVisibleChanged=UU.prototype.onIsTooltipVisibleChanged;UU.prototype.errorMessageChanged=UU.prototype.errorMessageChanged;UU.prototype.onErrorMessageEdit=UU.prototype.onErrorMessageEdit;UU.prototype.onErrorMessageDismiss=UU.prototype.onErrorMessageDismiss;UU.prototype.focusChanged=UU.prototype.focusChanged;UU.prototype.characterCountChanged=UU.prototype.characterCountChanged;UU.prototype.onEmojiSelect=UU.prototype.onEmojiSelect;UU.prototype.handlePickerButtonToggle=UU.prototype.handlePickerButtonToggle;
UU.prototype.onSendError=UU.prototype.onSendError;UU.prototype.onSendCompleted=UU.prototype.onSendCompleted;UU.prototype.sendMessage=UU.prototype.sendMessage;UU.prototype.dataChanged=UU.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],UU.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(MGU.YtPickerBehavior),_.I("design:type",Object)],UU.prototype,"ytPickerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.K4.YtLiveChatTooltipTargetingBehavior),_.I("design:type",Object)],UU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"hasFiredInitialFocusActions",void 0);
_.c([_.v(),_.I("design:type",Object)],UU.prototype,"isBeforeFocusEnabled",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.I("design:type",Object)],UU.prototype,"id",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"characterCount",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"maxCharacterLimit",void 0);
_.c([_.v(),_.I("design:type",Object)],UU.prototype,"remainingCharacterCount",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],UU.prototype,"inputExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],UU.prototype,"inputFocused",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],UU.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.c([_.v(),_.I("design:type",_.eC)],UU.prototype,"participantsManager",void 0);
_.c([_.v(),_.I("design:type",Object)],UU.prototype,"buttonOverrides",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],UU.prototype,"inReplyPanel",void 0);_.c([_.O("characterCount, maxCharacterLimit, countdownActive"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UU.prototype,"sendDisabled",null);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"countdownRatio",void 0);
_.c([_.O("countdownRatio"),_.I("design:type",Number),_.I("design:paramtypes",[])],UU.prototype,"countdownStrokeDashOffset",null);_.c([_.O("countdownRatio"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UU.prototype,"countdownActive",null);_.c([_.O("data.interactionMessage"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UU.prototype,"hasInteractionMessage",null);
_.c([_.O("data.emojiPickerButton"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UU.prototype,"hasEmojiPickerButton",null);_.c([_.O("data, characterCount"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UU.prototype,"showAvatar",null);_.c([_.O("data.pickers"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],UU.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.v(),_.I("design:type",Object)],UU.prototype,"errorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"genericErrorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"isTooltipVisible",void 0);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"tooltipTimeout",void 0);_.c([_.O("data.onInitialFocusCommand"),_.I("design:type",String),_.I("design:paramtypes",[])],UU.prototype,"tooltipMessage",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],UU.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],UU.prototype,"tallerEmojiPicker",void 0);_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],UU.prototype,"authorNameColor",null);_.c([_.v(),_.I("design:type",Object)],UU.prototype,"sendReplyMessageInFlight",void 0);_.c([_.iA("#input"),_.I("design:type",_.kUT)],UU.prototype,"input",void 0);
_.c([_.iA("#count"),_.I("design:type",HTMLElement)],UU.prototype,"count",void 0);_.c([_.iA("#input-container"),_.I("design:type",HTMLElement)],UU.prototype,"inputContainer",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"dataChanged",null);_.c([_.Pm("yt-live-chat-send-message"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],UU.prototype,"sendMessage",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[Event,_.VO]),_.I("design:returntype")],UU.prototype,"onSendCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"onSendError",null);
_.c([_.Pm("yt-live-chat-icon-toggle-button-renderer-toggle"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],UU.prototype,"handlePickerButtonToggle",null);_.c([_.Pm("yt-emoji-select"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],UU.prototype,"onEmojiSelect",null);
_.c([_.Ga("characterCount"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"characterCountChanged",null);_.c([_.Ga("inputFocused"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"focusChanged",null);_.c([_.Pm("yt-live-chat-error-message-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"onErrorMessageDismiss",null);
_.c([_.Pm("yt-live-chat-error-message-edit"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],UU.prototype,"onErrorMessageEdit",null);_.c([_.Ga("errorMessage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"errorMessageChanged",null);_.c([_.Ga("isTooltipVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UU.prototype,"onIsTooltipVisibleChanged",null);
_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],UU);
_.d(UU,"yt-live-chat-message-input-renderer",function(){if(DGU===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;FTN===void 0&&(FTN=document.createElement("template"));var D=FTN;F.call(B,D.content.cloneNode(!0),G.content.firstChild);DGU=G}G=DGU;return G},{mode:0});var pgz;var Y0Q;var qc=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");G.firedOnClickCommand=!1;G.inReplyPanel=!1;return G};
_.r(qc,_.p);
qc.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"}}}};
qc.prototype.onButtonToggle=function(G){G.target.disabled||this.ytPickerBehavior.togglePicker_(G.detail.targetId)};
qc.prototype.onClick=function(){var G=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.T1(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return G.firedOnClickCommand=!1},5E3))};
_.ZN.Object.defineProperties(qc.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.panels)==null?void 0:B.find(function(F){return F.liveChatProductPickerPanelViewModel}))!==void 0}}});
qc.prototype.onButtonToggle=qc.prototype.onButtonToggle;_.c([_.k(MGU.YtPickerBehavior),_.I("design:type",Object)],qc.prototype,"ytPickerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qc.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qc.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Object)],qc.prototype,"firedOnClickCommand",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],qc.prototype,"inReplyPanel",void 0);_.c([_.O("data.pickers"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],qc.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.Pm("yt-live-chat-icon-toggle-button-renderer-toggle"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],qc.prototype,"onButtonToggle",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],qc);
_.d(qc,"yt-live-chat-restricted-participation-renderer",function(){if(Y0Q===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;pgz===void 0&&(pgz=document.createElement("template"));var D=pgz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Y0Q=G}G=Y0Q;return G},{mode:0});var EU=function(){var G=_.p.apply(this,arguments)||this;G.genericErrorMessage=_.$9("Error, try again.");G.inReplyPanel=!1;G.hideBorder=!1;return G};
_.r(EU,_.p);EU.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}}}}}};
_.ZN.Object.defineProperties(EU,{template:{configurable:!0,enumerable:!0,get:function(){return SIS()}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EU.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],EU.prototype,"genericErrorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],EU.prototype,"inReplyPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],EU.prototype,"hideBorder",void 0);
_.c([_.ay({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],EU);_.d(EU,"yt-live-chat-engagement-panel-input-renderer",function(){return SIS()},{mode:0});var AB$;var dGN;var JBN=new _.e6("yt-live-chat"),cBH=new Map;cBH.set("timestamp_toggle","show-timestamps");cBH.set("reactions_toggle","allow-reactions");var ha=function(){return _.p.apply(this,arguments)||this};
_.r(ha,_.p);_.w=ha.prototype;_.w.menuItemIdentifierChanged=function(){var G;(G=this.data)!=null&&G.menuItemIdentifier&&(G=cBH.get(this.data.menuItemIdentifier))&&(_.X("enable_lwe_web_mute")?(G=JBN.get(G),this.isToggled=!(G===void 0?!this.data.isToggled:!G)):this.isToggled=JBN.get(G))};
_.w.onFocus=function(){this.toggleButton.focus()};
_.w.onTap=function(){var G=this.data.command;G&&this.componentBehavior.resolveCommand(G)};
_.w.computeText=function(G,B,F){return this.componentBehavior.getSimpleString(G?F:B)};
_.w.computeIcon=function(G,B,F){return(G=G?F:B)&&G.iconType?_.xT(G.iconType):""};
ha.prototype.onTap=ha.prototype.onTap;ha.prototype.onFocus=ha.prototype.onFocus;ha.prototype.menuItemIdentifierChanged=ha.prototype.menuItemIdentifierChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ha.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ha.prototype,"data",void 0);
_.c([_.v({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.I("design:type",String)],ha.prototype,"icon",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],ha.prototype,"isToggled",void 0);_.c([_.iA("tp-yt-paper-toggle-button"),_.I("design:type",Object)],ha.prototype,"toggleButton",void 0);_.c([_.Ga("data.menuItemIdentifier"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ha.prototype,"menuItemIdentifierChanged",null);
_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ha.prototype,"onFocus",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ha.prototype,"onTap",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],ha);
_.d(ha,"yt-live-chat-toggle-renderer",function(){if(dGN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;AB$===void 0&&(AB$=document.createElement("template"));var D=AB$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);dGN=G}G=dGN;return G},{mode:0});var TGD=new _.oV("NAVIGATION_PROGRESS_TOKEN");var IGA={},fGU={},tGN=(fGU[vGQ.name]=!0,fGU),K0=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;G.tabGesturesIsActive=!1;G.actionRouterIsRoot=!0;G.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"};G.pageTitle="";G.titleSuffix="YouTube";G.unseenNotificationCount=
0;G.hasNavigated=!1;G.hasSetScrollTopForNavigation=!1;G.pagePreparer=null;G.zwiebackInitJobId=0;G.dataUpdatePromise=null;G.loadDepsPromise=_.ZL();G.hasPendingNavigation=!1;G.pendingPlayerOnResponseReceivedActions=[];return G};
_.r(K0,_.DO);K0.prototype.attached=function(){Zs$(this);document.addEventListener("yt-navigate-cache",_.x7(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var G=ab();G.init();G.dispatchElement=this.hostElement};
var Zs$=function(G,B){B=B===void 0?0:B;var F=_.te().resolve(_.fH(_.Sj));if(F)g8Q(G,F);else{if(B>=5)throw Error("vl");setTimeout(function(){Zs$(G,B+1)},0)}},g8Q=function(G,B){B.addEventListener("yt-navigate-start",_.x7(G,G.onYtNavigateStart));
B.addEventListener("yt-navigate-finish",_.x7(G,G.onYtNavigateFinish));B.addEventListener("yt-navigate-error",_.x7(G,G.onYtNavigateError));B.addEventListener("yt-page-data-fetched",_.x7(G,G.onYtPageDataFetched))};
_.w=K0.prototype;_.w.detached=function(){var G=_.te().resolve(_.Sj);G.removeEventListener("yt-navigate-start",_.x7(this,this.onYtNavigateStart));G.removeEventListener("yt-navigate-finish",_.x7(this,this.onYtNavigateFinish));G.removeEventListener("yt-navigate-error",_.x7(this,this.onYtNavigateError));G.removeEventListener("yt-page-data-fetched",_.x7(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.x7(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.w.setPageOffset=function(G,B){G?_.T1(this.hostElement,"yt-set-page-offset",[G,B]):_.k2(Error("wl"))};
_.w.setPageOffsetForNavigation=function(G,B){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(G,B))};
_.w.onYtNavigateSetPageOffset=function(G,B){this.setPageOffsetForNavigation(B.page,B.offset)};
_.w.getPageOffset=function(){var G=_.IF(this.hostElement).querySelector("#page-manager").getCurrentPage(),B=0;G&&(B=_.T1(this.hostElement,"yt-get-page-offset",[G])[0]);return B};
_.w.onYtHistoryPop=function(G,B){if(_.on("DISABLE_WARM_LOADS"))G.preventDefault(),window.location.reload();else{var F=_.te().resolve(_.Sj);F.hasPendingNavigation()&&G.preventDefault();F.cancelPendingNavigation();_.Ia(this.hostElement,"yt-pending-navigation-cancelled");B.errorMsg&&(G=B.errorMsg.split(" - "),B=Error(G[0]),G.length==2&&G[1]&&(_.$2(B,G[1]),_.em(B)),window.location.reload())}};
_.w.onYtHistoryLoad=function(G,B){var F=this;if(_.on("DISABLE_WARM_LOADS"))window.location.reload();else{(G=B.endpoint)&&Object.keys(G).length||(G=null);var D=B.historyEntry,u=_.te().resolve(_.Sj),R=_.te().resolve(_.pA),N=null;D&&D.rootData&&(N=D.rootData);var y=N&&S0A(N);!N||y||N.filler?G?(u.navigate(G,!0),s2A(this,G)):(B.legacyBorder||y||(B.JSC$31238_savedComponentState==null&&N==null?_.em(new _.Uf("Incomplete history entry",B.forward)):_.Oz(new _.Uf("Malformed history entry",B.JSC$31238_savedComponentState,
B.forward,N))),window.location.reload()):(_.sec({isHot:!0}),_.qa({webInfo:{navigationReason:"h"}}),_.YnJ(),_.KR("srt"),_.KR("pdc"),this.cancelPendingTasks(),xG$(this,B.forward,N),N.player&&(N.player.loaded=!1),s2A(this,G),_.R$q(u,G||{},N,2,{},!1,B).then(function(){F.setPageOffset(R.getCurrentPage(),D.scrollTop||0)}))}};
_.w.initHistoryManager=function(G){if(!this.hasNavigated){this.hasNavigated=!0;var B=_.IF(this.hostElement).querySelector("#page-manager").getCurrentData();G=isNaN(G)?this.getPageOffset():G;var F=_.te().resolve(_.Sj).currentEndpoint;this.replaceState(F,B,G)}};
_.w.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.w.onYtNavigateStart=function(G,B){this.navigationSpan&&(this.navigationSpan.addAttributes({cancelled:!0}),this.navigationSpan.end());var F;this.navigationSpan=_.ds("navigate",{fromPath:window.location.pathname,toPath:B.url?(F=_.Ik(B.url))!=null?F:void 0:void 0});this.cancelPendingTasks();B.noProgressBar||(G=_.te().resolve(_.fH(TGD)))&&G.start();G=this.hasPendingNavigation?null:this.data;F=_.te().resolve(_.pA);var D,u,R;_.X("kevlar_use_vimio_behavior")&&!((D=B.endpoint)==null?0:(u=D.commandMetadata)==
null?0:(R=u.webCommandMetadata)==null?0:R.ignoreNavigation)&&(D=F.getCurrentPage())&&D.disconnectVisibilityRoot();F.prepareForNavigation(B.pageType,B.endpoint);_.X("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.V8(1,"pcl"),_.vd(this.pagePreparer,F.preparePage.bind(F,B.pageType,B.endpoint)));D=this.getPageOffset();this.initHistoryManager(D);B.reload||this.hasPendingNavigation?(B.pageType==="shorts"&&B.reload&&_.cZ(this.hostElement,"yt-shorts-reset"),this.replaceState(B.endpoint,G,D)):
(G==null?void 0:G.page)==="watch"&&B.pageType==="watch"&&_.X("kevlar_replace_watch_to_watch_history_state")?this.replaceState(B.endpoint,G,D):(G==null?void 0:G.page)!=="shorts"||B.pageType!=="shorts"||B.endpoint.reelWatchEndpoint.sequenceParams||_.X("short_to_short_back_nav_killswitch")?B.type!="navigate-back"&&B.type!="navigate-forward"&&(B.pageType==="shorts"&&_.cZ(this.hostElement,"yt-shorts-reset"),this.saveAndPush(B.url,B.endpoint,G,D)):this.replaceState(B.endpoint,G,0);this.hasPendingNavigation=
!0};
var PH$=function(G){G.hasPendingNavigation=!1;(G=_.te().resolve(_.fH(TGD)))&&G.finish()};
K0.prototype.onYtNavigateError=function(G,B){this.navigationSpan&&(this.navigationSpan.end("SPAN_STATUS_ERROR"),this.navigationSpan=void 0);PH$(this);G=this.get("endpoint.commandMetadata.webCommandMetadata.url",B);var F=_.c5(window.location.href);G&&!F.pbjreload&&(B=B.navigationErrorReason||"10",_.X("kevlar_parent_on_pbjreload")&&(F={csn:_.qW()},this.get("data.endpoint.clickTrackingParams")&&(F.itct=this.data.endpoint.clickTrackingParams),_.V9(G,F)),_.js(_.TJ(G,{pbjreload:B})))};
K0.prototype.onYtNavigateCache=function(G,B){var F=this,D=B.url,u=B.endpoint,R=B.data;G=!!B.miniplayer;B=!!B.skipHistory;if(D&&u&&R){var N=this.getPageOffset(),y=this.data||null;B||this.saveAndPush(D,u,y,N);D=_.R$q(_.te().resolve(_.Sj),u,R,G?4:3,{},G);G&&D.then(function(){F.dataUpdatePromise&&F.dataUpdatePromise.then(function(){var U=_.te().resolve(_.pA);F.setPageOffset(U.getCurrentPage(),0)})})}};
K0.prototype.onYtNavigateFinish=function(G,B){var F=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){GZG(F,B.fromHistory)})};
var GZG=function(G,B){G.navigationSpan&&(G.navigationSpan.end(),G.navigationSpan=void 0);PH$(G);if(G.pendingPlayerOnResponseReceivedActions){for(var F=_.C(G.pendingPlayerOnResponseReceivedActions),D=F.next();!D.done;D=F.next())_.Br(D.value,G.hostElement);G.pendingPlayerOnResponseReceivedActions=[]}F=_.te().resolve(_.pA);B||!G.hasNavigated||_.X("web_disable_scroll_on_navigate_finish")||((B=F.getCurrentPage())?B.is==="ytd-shorts"||G.tabGesturesIsActive||G.setPageOffsetForNavigation(B,0):_.em(Error("xl")));
_.Hc(function(){_.Hc(function(){_.KR("pda")})})};
K0.prototype.onYtNavigate=function(G){if(!G.detail.endpoint){var B=new _.Uf("Error: Missing yt-navigate endpoint from target:",G.target,G.target.nodeName);_.k2(B)}if(B=_.X("cold_missing_history"))B=ab(),B.init(!1),B=!(B.browserHistory.boundHistoryReplaceState&&B.browserHistory.boundHistoryPushState);if(B){_.Vc("DISABLE_WARM_LOADS",!0);B=new _.Uf("Failed to initialize history manager",this.getDebugString());var F=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
F?_.em(B):_.k2(B)}B=G.detail.endpoint;var D,u;_.X("debug_forward_web_query_parameters")&&((D=B.commandMetadata)==null?0:(u=D.webCommandMetadata)==null?0:u.url)&&(B=JSON.parse(JSON.stringify(B)),B.commandMetadata.webCommandMetadata.url=_.tDJ(B.commandMetadata.webCommandMetadata.url,window.location.search));G={type:0,command:B,form:{params:G.detail.params,tempData:G.detail.tempData||{},requestType:G.detail.type,createScreenConfig:G.detail.createScreenConfig,reload:G.detail.reload?G.detail.reload:!1,
requestForm:G.detail}};_.X("kevlar_yt_navigate_command_handler")?(D=_.te().resolve(_.Wr),G.form.skipDefaultElement=!0,D.resolveCommand(B,{form:G.form})):this.handleNavigate(G)};
K0.prototype.handleNavigate=function(G){this.hasSetScrollTopForNavigation=!1;var B=_.te().resolve(_.Sj),F=G.form||{};B.navigate(G.command,F.reload,F.params,F.tempData,F.requestType,F.createScreenConfig,F.ignoreConfirmation,F.requestForm)&&s2A(this,G.command,F.tempData)};
K0.prototype.onYtPageDataFetched=function(G,B){try{_.gJq().reset();this.data=B.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.te().resolve(_.pA).updatePageData(this.data);var F=this.get("playerResponse.onResponseReceivedActions",this.data);F&&(F=BbD(this,F));F&&_.tL(this.hostElement,F,this.hostElement);var D=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),u=this.get("response.responseContext.consistencyTokenJar",this.data);if(D||u){var R=_.iPg(),N=(0,_.UK.getValues)(R.tokenJars);D&&R.replace(N,D);u&&R.replace(N,u)}}catch(y){_.k2(y)}};
var s2A=function(G,B,F){try{G.onYtEndpointChangeHandler(B,F)}catch(D){_.k2(D)}};
_.w=K0.prototype;_.w.onYtEndpointChangeHandler=function(){};
_.w.setPageTitle=function(G){G=(this.pageTitle=G)?G+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+G};
_.w.onYtUpdateTitle=function(G,B){this.setPageTitle(B)};
_.w.setUnseenNotificationCount=function(G){this.unseenNotificationCount=G;this.setPageTitle(this.pageTitle)};
_.w.handleUpdateNotificationsUnseenCountAction=function(G){_.Q(G,RkS)&&((G=_.Q(G,RkS).unseenCount)?this.setUnseenNotificationCount(G):this.setUnseenNotificationCount(0))};
_.w.handleClearCookieAction=function(G){var B;(G=(B=_.Q(G,GFz))==null?void 0:B.cookieName)&&_.lVS(G)};
_.w.onYtUpdateUnseenNotificationCount=function(G,B){this.setUnseenNotificationCount(B)};
_.w.loadData=function(G){var B=this;this.loadDepsPromise.then(function(){var F=_.te().resolve(_.fH(_.Sj));F||_.k2(Error("yl"));if(G&&G.response){if(!G.endpoint){var D=_.fS(window.document.location.href)||"/",u="";if(D==="/"||D.startsWith("/?"))u="WEB_PAGE_TYPE_BROWSE";G.endpoint={commandMetadata:{webCommandMetadata:{url:D,webPageType:u,rootVe:3854}}}}_.R$q(F,G.endpoint,G,5,{})}else G.endpoint?F.navigate(G.endpoint):F.navigate(_.F5);_.Lu.cancelJob(B.zwiebackInitJobId);B.zwiebackInitJobId=_.Lu.addLowPriorityJob(Te$)})};
var ab=function(){return _.te().resolve(_.xV)};
K0.prototype.getDebugString=function(){return ab().getDebugString()};
K0.prototype.getThirdPartyManipulationSuspected=function(){return ab().getThirdPartyManipulationSuspected()};
K0.prototype.replaceState=function(G,B,F){ab().saveAndReplace(G,B,F)};
K0.prototype.saveAndPush=function(G,B,F,D){ab().saveAndPush(G,B,F,D)};
var S0A=function(G){return _.Q(G.endpoint,_.Ow)||_.Q(G.endpoint,_.Fu)?!0:!G||isNaN(G.expirationTime)?!1:(0,_.Zl)()>G.expirationTime},xG$=function(G,B,F){var D=G.get("response.trackingParams",F),u=_.Uw(),R=_.qW();
if(D&&u&&R&&(D=G.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",F),!D&&F.rootVe&&(D=F.rootVe),u=B?"forwardButton":"backButton",B=G.get("playerResponse.topbar.desktopTopbarRenderer."+u+".buttonRenderer.command.clickTrackingParams",G.data),G=G.get("response.topbar.desktopTopbarRenderer."+u+".buttonRenderer.command.clickTrackingParams",G.data),B=(G=B||G)?_.yX(G):void 0,G=_.Rh(),u=[_.ZL(F)],_.t9(G,D,B,{dataPromises:u,csnToClone:F.csn}),F.graftedVes))for(F=
_.C(F.graftedVes),D=F.next();!D.done;D=F.next())_.Zx(G,D.value)};
K0.prototype.onStoreGraftedVeAction=function(G){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(G)):_.em(Error("zl"))};
var BbD=function(G,B){return B.filter(function(F){for(var D in F)if(tGN[D])return G.pendingPlayerOnResponseReceivedActions.push(F),!0;return!1})};
_.ZN.Object.defineProperties(K0.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
K0.prototype.onStoreGraftedVeAction=K0.prototype.onStoreGraftedVeAction;K0.prototype.loadData=K0.prototype.loadData;K0.prototype.onYtUpdateUnseenNotificationCount=K0.prototype.onYtUpdateUnseenNotificationCount;K0.prototype.handleClearCookieAction=K0.prototype.handleClearCookieAction;K0.prototype.handleUpdateNotificationsUnseenCountAction=K0.prototype.handleUpdateNotificationsUnseenCountAction;K0.prototype.setUnseenNotificationCount=K0.prototype.setUnseenNotificationCount;
K0.prototype.onYtUpdateTitle=K0.prototype.onYtUpdateTitle;K0.prototype.setPageTitle=K0.prototype.setPageTitle;K0.prototype.onYtEndpointChangeHandler=K0.prototype.onYtEndpointChangeHandler;K0.prototype.onYtPageDataFetched=K0.prototype.onYtPageDataFetched;K0.prototype.handleNavigate=K0.prototype.handleNavigate;K0.prototype.onYtNavigate=K0.prototype.onYtNavigate;K0.prototype.onYtNavigateFinish=K0.prototype.onYtNavigateFinish;K0.prototype.onYtNavigateCache=K0.prototype.onYtNavigateCache;
K0.prototype.onYtNavigateError=K0.prototype.onYtNavigateError;K0.prototype.onYtNavigateStart=K0.prototype.onYtNavigateStart;K0.prototype.cancelPendingTasks=K0.prototype.cancelPendingTasks;K0.prototype.initHistoryManager=K0.prototype.initHistoryManager;K0.prototype.onYtHistoryLoad=K0.prototype.onYtHistoryLoad;K0.prototype.onYtHistoryPop=K0.prototype.onYtHistoryPop;K0.prototype.onYtNavigateSetPageOffset=K0.prototype.onYtNavigateSetPageOffset;K0.prototype.setPageOffset=K0.prototype.setPageOffset;
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],K0.prototype,"data",void 0);_.c([_.Pm("yt-navigate-set-page-offset"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],K0.prototype,"onYtNavigateSetPageOffset",null);
_.c([_.Pm("yt-history-pop"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],K0.prototype,"onYtHistoryPop",null);_.c([_.Pm("yt-history-load"),_.I("design:type",Function),_.I("design:paramtypes",[Event,_.jfG]),_.I("design:returntype")],K0.prototype,"onYtHistoryLoad",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],K0.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-update-title"),_.I("design:type",Function),_.I("design:paramtypes",[Event,String]),_.I("design:returntype")],K0.prototype,"onYtUpdateTitle",null);_.c([_.Pm("yt-update-unseen-notification-count"),_.I("design:type",Function),_.I("design:paramtypes",[Event,Number]),_.I("design:returntype")],K0.prototype,"onYtUpdateUnseenNotificationCount",null);_.c([_.uA()],K0);IGA.YtdAppBehavior=[_.Za.YtActionHandlerBehavior,K0.prototype];var mc=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;G.scrollRate=3;G.autoScrollAnimationStart=0;G.autoScrollPaused=!1;G.autoScrollRafId=0;return G};
_.r(mc,_.DO);_.w=mc.prototype;_.w.created=function(){var G=this;this.boundAutoScrollHandler=function(B){G.autoScroll(B)}};
_.w.detached=function(){this.hostElement.removeEventListener("mouseout",_.x7(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.x7(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.x7(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.w.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.x7(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.x7(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.x7(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.x7(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.x7(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.x7(this,this.endAutoScroll)),this.endAutoScroll())};
_.w.autoScroll=function(G){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=G);var B;if(B=!this.autoScrollPaused&&this.scrollTarget)B=this.scrollTarget,B=B.scrollHeight-B.scrollTop!==B.clientHeight;B&&(B=1E3/this.scrollRate,G-=this.autoScrollAnimationStart,G>B&&(this.scrollTarget.scrollTop+=Math.ceil(G/B),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.w.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.w.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
mc.prototype.autoScrollEnabledChanged=mc.prototype.autoScrollEnabledChanged;_.c([_.v(),_.I("design:type",Object)],mc.prototype,"scrollRate",void 0);_.c([_.v(),_.I("design:type",Object)],mc.prototype,"scrollTarget",void 0);_.c([_.v(),_.I("design:type",Boolean)],mc.prototype,"autoScrollEnabled",void 0);_.c([_.Ga("autoScrollEnabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mc.prototype,"autoScrollEnabledChanged",null);_.c([_.uA()],mc);var iwU=[mc.prototype];var XX=function(){var G=_.DO.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.r(XX,_.DO);XX.prototype.ready=function(){var G=this;_.IF(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){G.onChange_()})};
XX.prototype.dataChanged_=function(){_.IF(this.hostElement).querySelector("#checkbox").checked=!1};
XX.prototype.onChange_=function(){var G=_.IF(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.cZ(this.hostElement,"yt-dismissal-reason-"+G,this.data.feedbackToken)};
XX.prototype.dataChanged_=XX.prototype.dataChanged_;_.c([_.v(),_.I("design:type",Object)],XX.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],XX.prototype,"dataChanged_",null);_.c([_.uA()],XX);var FqB=[XX.prototype];var QE=function(){var G=_.DO.apply(this,arguments)||this;G.showInput=!1;return G};
_.r(QE,_.DO);_.w=QE.prototype;_.w.detached=function(){this.showInput&&window.removeEventListener("click",_.x7(this,this.closeOnOutsideClick_))};
_.w.stopPropagation_=function(G){this.showInput&&G.stopPropagation()};
_.w.closeOnOutsideClick_=function(G){this.closeOnOutsideClickCondition(G)&&(this.showInput=!1,window.removeEventListener("click",_.x7(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.w.closeOnOutsideClickCondition=function(){return!0};
_.w.closeOnOutsideClickHandler=function(){};
_.w.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.x7(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.w.openOnClickHandler=function(){};
_.w.showInputChanged=function(){};
_.w.setShowInput=function(G){this.showInput=G};
QE.prototype.setShowInput=QE.prototype.setShowInput;QE.prototype.showInputChanged=QE.prototype.showInputChanged;QE.prototype.openOnClickHandler=QE.prototype.openOnClickHandler;QE.prototype.openOnClick_=QE.prototype.openOnClick_;QE.prototype.closeOnOutsideClickHandler=QE.prototype.closeOnOutsideClickHandler;QE.prototype.closeOnOutsideClickCondition=QE.prototype.closeOnOutsideClickCondition;QE.prototype.closeOnOutsideClick_=QE.prototype.closeOnOutsideClick_;QE.prototype.stopPropagation_=QE.prototype.stopPropagation_;
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],QE.prototype,"showInput",void 0);_.c([_.Pm("click"),_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],QE.prototype,"stopPropagation_",null);_.c([_.Ga("showInput"),_.I("design:type",Function),_.I("design:paramtypes",[Boolean]),_.I("design:returntype")],QE.prototype,"showInputChanged",null);_.c([_.uA()],QE);var D$$=[QE.prototype];var jd=function(){var G=_.DO.apply(this,arguments)||this;G.timeoutJobId=0;G.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return G};
_.r(jd,_.DO);jd.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
jd.prototype.startTimeout=function(){var G=this,B=this.data&&this.data.displayDurationSeconds;B&&!this.timeoutJobId&&(this.timeoutJobId=_.mX(_.Lu,function(){_.T1(G.hostElement,"yt-close-popup-action",[G.is]);G.timeoutJobId=0},B*1E3))};
jd.prototype.cancelTimeout=function(){_.Lu.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
jd.prototype.ytdHatsSurveyBehaviorDataChanged=jd.prototype.ytdHatsSurveyBehaviorDataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],jd.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jd.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.c([_.uA()],jd);var ugB=[_.Za.YtActionHandlerBehavior,jd.prototype];var RM$=_.ge(115994),w3H=_.ge(115993),CTA=function(G,B,F){var D=this;var u=F.dragDownAction;this.layer=0;this.JSC$20421_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.JSC$20421_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.fullscreen=!1;var R=_.Rh();_.gr(R,RM$,this.layer);_.gr(R,w3H,this.layer);this.dragDownAction=function(){u();_.kF(R,{visualElement:D.fullscreen?RM$:w3H})};
this.gesture=new A4(G,B,this.getConfig(!1),"pandown");this.attach()};
CTA.prototype.attach=function(){this.gesture.attach()};
CTA.prototype.detach=function(){this.gesture.detach()};
CTA.prototype.update=function(G){this.fullscreen=G;var B=this.gesture;G=this.getConfig(G);B.config=G};
CTA.prototype.getConfig=function(G){return G?this.JSC$20421_watchFullScreenConfig:this.JSC$20421_watchConfig};var Nb$;var yI$;var L0=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");G.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return G};
_.r(L0,_.p);L0.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var G=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(G=this.data.percentIfLiked||0,this.activated=!0):(G=this.data.percentIfIndifferent||0,this.activated=!1);_.IF(this.hostElement).querySelector("#like-bar").style.width=G+"%"}};
L0.prototype.handleUpdateSentimentBarStateCommand=function(G){this.data&&this.set("data.likeStatus",_.Q(G,moz).likeStatus)};
L0.prototype.observeLikeStatus=L0.prototype.observeLikeStatus;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],L0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],L0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],L0.prototype,"activated",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],L0.prototype,"systemIcons",void 0);_.c([_.Ga("data.likeStatus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],L0.prototype,"observeLikeStatus",null);_.c([_.mC({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],L0);
_.d(L0,"ytd-sentiment-bar-renderer",function(){if(yI$!==void 0)return yI$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return yI$=G},{mode:1});var n4N;var rW=function(){var G=_.p.apply(this,arguments)||this;G.small=!0;return G};
_.r(rW,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],rW.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rW.prototype,"small",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],rW);
_.d(rW,"ytd-video-view-count-renderer",function(){if(n4N!==void 0)return n4N;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return n4N=G},{mode:2});var WE=function(){var G=_.p.apply(this,arguments)||this;G.infoFormattedStrings=[];G.wrapVideoActions=_.X("kevar_watch_wrap_video_actions");G.hideSentimentBar=_.X("kevlar_watch_hide_sentiment_bar");G.actionMap={};return G};
_.r(WE,_.p);_.w=WE.prototype;_.w.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.X("web_modern_buttons"),forceIconButton:!_.X("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.w.dataChanged=function(){_.X("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.w.computeInfoFormattedStrings=function(G){if(!G)return[];var B=[];G.dateText&&B.push(G.dateText);G.stationName&&B.push(G.stationName);G.rating&&B.push(G.rating);G.startEndTimeTemplate&&G.startTimeUtcMillis&&G.endTimeUtcMillis&&B.push(_.$9(qXU(_.zx(G.startEndTimeTemplate),Number(G.startTimeUtcMillis),Number(G.endTimeUtcMillis))));G.upNextProgramText&&B.push(G.upNextProgramText);return B};
_.w.scheduleInitialUpdatedMetadataRequest=function(){var G,B=(G=this.data)==null?void 0:G.updatedMetadataEndpoint;if(B){var F;G=Number((F=_.Q(B,_.ls7))==null?void 0:F.initialDelayMs);F=isNaN(G)?250:G;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),F)}};
_.w.setSentimentBarWidth=function(){var G=this;_.ft(this,function(){var B=_.IF(G.hostElement).querySelector("ytd-menu-renderer");if(B){B=B.topLevelButtons;for(var F=0,D=0;D<B.length;D++){var u=B[D],R=G.get("toggleButtonSupportedData.toggleButtonIdData.id",u.data);if(R==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||R==="TOGGLE_BUTTON_ID_TYPE_LIKE")F+=u.clientWidth+8;else break}F&&(G.sentiment.style.width=F-8+" px")}})};
_.w.fetchUpdatedMetadata=function(G){var B;G&&(B={continuation:G});var F;(G=(F=this.data)==null?void 0:F.updatedMetadataEndpoint)&&_.te().resolve(_.Wr).resolveCommand(G,{form:Object.assign({},B,{element:this.hostElement})})};
_.w.onYtServiceRequestSent=function(G,B){B.endpoint&&_.Q(B.endpoint,_.yr)&&(this.hasUpdateSentimentBarStateCommands()&&!_.X("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Q(B.endpoint,_.yr).status),this.setSentimentBarWidth())};
_.w.hasUpdateSentimentBarStateCommands=function(){var G,B,F,D,u=(D=(G=this.data)==null?void 0:(B=G.videoActions)==null?void 0:(F=B.menuRenderer)==null?void 0:F.topLevelButtons)!=null?D:[];G=_.C(u);for(B=G.next();!B.done;B=G.next()){B=B.value;u=D=F=void 0;var R=(F=B.toggleButtonRenderer)==null?void 0:(D=F.toggleButtonSupportedData)==null?void 0:(u=D.toggleButtonIdData)==null?void 0:u.id;if(R==="TOGGLE_BUTTON_ID_TYPE_LIKE"||R==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){D=F=void 0;B=(D=_.Q((F=B.toggleButtonRenderer)==
null?void 0:F.defaultServiceEndpoint,_.gs))==null?void 0:D.commands;if(!B)break;B=_.C(B);for(F=B.next();!F.done;F=B.next())if(_.Q(F.value,moz))return!0}}return!1};
_.w.onYtServiceRequestCompleted=function(G,B){var F;(G=(F=B.data)==null?void 0:F.loggingDirectives)&&_.afQ(_.Rh(),G);this.get("continuation.timedContinuationData",B.data)&&this.data&&this.data.updatedMetadataEndpoint&&(B=B.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,B.continuation),B.timeoutMs))};
_.w.computeHasDateText=function(G){return!!G&&!!G.dateText};
_.ZN.Object.defineProperties(WE.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;return!((D=(G=this.data)==null?void 0:(B=G.videoActions)==null?void 0:(F=B.menuRenderer)==null?void 0:F.flexibleItems)==null||!D.length)}}});
WE.prototype.onYtServiceRequestCompleted=WE.prototype.onYtServiceRequestCompleted;WE.prototype.onYtServiceRequestSent=WE.prototype.onYtServiceRequestSent;WE.prototype.dataChanged=WE.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],WE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.zT.YtTaskEmitterBehavior),_.I("design:type",Object)],WE.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WE.prototype,"data",void 0);_.c([_.v({computed:"computeInfoFormattedStrings(data)"}),_.I("design:type",Array)],WE.prototype,"infoFormattedStrings",void 0);
_.c([_.v({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],WE.prototype,"hasDateText",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],WE.prototype,"wrapVideoActions",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],WE.prototype,"hideSentimentBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],WE.prototype,"flexMenuEnabled",null);
_.c([_.iA("#sentiment"),_.I("design:type",Object)],WE.prototype,"sentiment",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WE.prototype,"dataChanged",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],WE.prototype,"onYtServiceRequestSent",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],WE.prototype,"onYtServiceRequestCompleted",null);
_.d(WE,"ytd-video-primary-info-renderer",function(){if(Nb$===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);Nb$=G}G=Nb$;return G},{mode:1});var lyD;var U$Q;var HE=function(){return _.p.apply(this,arguments)||this};
_.r(HE,_.p);HE.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
HE.prototype.onTap=function(G){var B=this.data&&this.data.endpoint;B&&!_.oQ(_.VW(G),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.cZ(this.hostElement,"yt-navigate",{endpoint:B})};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],HE.prototype,"data",void 0);_.c([_.mC({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],HE);
_.d(HE,"ytd-autotagging-metadata-renderer",function(){if(U$Q!==void 0)return U$Q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return U$Q=G},{mode:1});var qMB;var k_=function(){return _.p.apply(this,arguments)||this};
_.r(k_,_.p);k_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],k_.prototype,"data",void 0);_.c([_.mC({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],k_);
_.d(k_,"ytd-autotagging-metadata-row-renderer",function(){if(qMB!==void 0)return qMB;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return qMB=G},{mode:1});var E4$;var hMH;var OU=function(){var G=_.p.apply(this,arguments)||this;G.engagementPanelContent=!1;return G};
_.r(OU,_.p);OU.prototype.computeHasDividerLine=function(G,B){return G&&!B};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],OU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.I("design:type",Boolean)],OU.prototype,"hasDividerLine",void 0);_.c([_.v(),_.I("design:type",Object)],OU.prototype,"engagementPanelContent",void 0);
_.c([_.mC({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],OU);
_.d(OU,"ytd-metadata-row-header-renderer",function(){if(hMH!==void 0)return hMH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return hMH=G},{mode:1});var Kq$;var ed=function(){return _.p.apply(this,arguments)||this};
_.r(ed,_.p);ed.prototype.computeHasDividerLine=function(G){return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ed.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.I("design:type",Boolean)],ed.prototype,"hasDividerLine",void 0);_.c([_.mC({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],ed);
_.d(ed,"ytd-metadata-row-renderer",function(){if(Kq$!==void 0)return Kq$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Kq$=G},{mode:1});var ayS;var m$U=function(){return _.p.apply(this,arguments)||this};
_.r(m$U,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],m$U.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],m$U.prototype,"data",void 0);_.c([_.mC({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],m$U);
_.d(m$U,"ytd-metadata-with-image-row-renderer",function(){if(ayS!==void 0)return ayS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ayS=G},{mode:1});var X3U;var $_=function(){var G=_.p.apply(this,arguments)||this;G.rounded=!0;G.fixie=!1;G.fullWidth=!1;return G};
_.r($_,_.p);_.w=$_.prototype;_.w.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.onDataChanged=function(){var G=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(B){G.onEndpointLinkKeyPress(B)}))};
_.w.onEndpointLinkKeyPress=function(G){G.target===this.endpointLink&&G.keyCode===13&&_.cZ(this.hostElement,"click")};
_.w.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var G;if((G=this.data)==null?0:G.endpoint)_.tL(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.w.onYtNavigate=function(G){this.endpointHref||(G.stopPropagation(),G.preventDefault())};
_.w.onInformationButtonContainerClick=function(G){G.target.id!=="information-button-container"&&(G.stopPropagation(),G.preventDefault())};
_.w.computeStyle=function(G){return G};
_.w.computeIsThumbnailStyle=function(G){return G==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.w.computeThumbnailWidth=function(G){switch(G){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}};
_.w.computeThumbnailObjectFit=function(G){switch(G){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.ZN.Object.defineProperties($_.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
$_.prototype.onYtNavigate=$_.prototype.onYtNavigate;$_.prototype.onClick=$_.prototype.onClick;$_.prototype.onDataChanged=$_.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$_.prototype,"componentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],$_.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],$_.prototype,"componentStyle",void 0);_.c([_.v({computed:"computeIsThumbnailStyle(data.style)"}),_.I("design:type",Boolean)],$_.prototype,"isThumbnailStyle",void 0);_.c([_.v({computed:"computeThumbnailObjectFit(data.style)"}),_.I("design:type",String)],$_.prototype,"thumbnailObjectFit",void 0);
_.c([_.v({computed:"computeThumbnailWidth(data.style)"}),_.I("design:type",Number)],$_.prototype,"thumbnailWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$_.prototype,"rounded",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$_.prototype,"fixie",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$_.prototype,"fullWidth",void 0);_.c([_.iA("#endpoint-link"),_.I("design:type",HTMLAnchorElement)],$_.prototype,"endpointLink",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$_.prototype,"onDataChanged",null);_.c([_.O("data.endpoint"),_.I("design:type",Object),_.I("design:paramtypes",[])],$_.prototype,"endpointHref",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],$_.prototype,"onClick",null);
_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],$_.prototype,"onYtNavigate",null);_.c([_.mC({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],$_);
_.d($_,"ytd-rich-metadata-renderer",function(){if(X3U!==void 0)return X3U;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return X3U=G},{mode:2});var QL2;var z3=function(){var G=_.p.apply(this,arguments)||this;G.fixie=!1;G.fullWidth=!1;return G};
_.r(z3,_.p);z3.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
z3.prototype.computeHasDividerLine=function(G){return G};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],z3.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.I("design:type",Boolean)],z3.prototype,"hasDividerLine",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],z3.prototype,"fixie",void 0);_.c([_.v(),_.I("design:type",Object)],z3.prototype,"fullWidth",void 0);
_.c([_.mC({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],z3);
_.d(z3,"ytd-rich-metadata-row-renderer",function(){if(QL2!==void 0)return QL2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return QL2=G},{mode:1});var b0=function(){var G=_.p.apply(this,arguments)||this;G.engagementPanelContent=!1;G.fixie=!1;G.fullWidth=!1;return G};
_.r(b0,_.p);
b0.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"}}}};
b0.prototype.computeCollapsibleItems=function(G,B,F){return G===void 0||B===void 0||F===void 0||F?[]:G.slice(B)};
b0.prototype.computeAlwaysShownItems=function(G,B){return G&&G.length?G.slice(0,B):[]};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],b0.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],b0.prototype,"collapsed",void 0);
_.c([_.v({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.I("design:type",Array)],b0.prototype,"alwaysShownItems",void 0);_.c([_.v({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.I("design:type",Array)],b0.prototype,"collapsibleItems",void 0);_.c([_.v(),_.I("design:type",Object)],b0.prototype,"engagementPanelContent",void 0);_.c([_.v(),_.I("design:type",Object)],b0.prototype,"fixie",void 0);
_.c([_.v(),_.I("design:type",Object)],b0.prototype,"fullWidth",void 0);_.c([_.mC({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],b0);
_.d(b0,"ytd-metadata-row-container-renderer",function(){if(E4$!==void 0)return E4$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return E4$=G},{mode:1});var jL$;var VE=function(){return _.p.apply(this,arguments)||this};
_.r(VE,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],VE.prototype,"data",void 0);_.c([_.mC({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],VE);
_.d(VE,"ytd-error-corrections-section-item-renderer",function(){if(jL$!==void 0)return jL$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return jL$=G},{mode:1});var Lqz;var vE=function(){return _.p.apply(this,arguments)||this};
_.r(vE,_.p);vE.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],vE.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vE.prototype,"data",void 0);_.c([_.mC({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],vE);
_.d(vE,"ytd-error-corrections-section-renderer",function(){if(Lqz!==void 0)return Lqz;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Lqz=G},{mode:1});var rIZ;var ob=function(){return _.p.apply(this,arguments)||this};
_.r(ob,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ob.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ob.prototype,"data",void 0);_.c([_.mC({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],ob);
_.d(ob,"ytd-topic-link-renderer",function(){if(rIZ!==void 0)return rIZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return rIZ=G},{mode:1});var WqG;var Mc=function(){var G=_.p.apply(this,arguments)||this;G.modernLockupV2=_.X("modernize_structured_description_playlist_lockups_v2");return G};
_.r(Mc,_.p);Mc.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Mc.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Mc.prototype,"modernLockupV2",void 0);_.c([_.mC({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Mc);
_.d(Mc,"ytd-video-description-course-section-renderer",function(){if(WqG!==void 0)return WqG;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return WqG=G},{mode:1});var Hw$;var p0=function(){return _.p.apply(this,arguments)||this};
_.r(p0,_.p);p0.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],p0.prototype,"data",void 0);_.c([_.mC({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],p0);
_.d(p0,"ytd-video-description-files-section-renderer",function(){if(Hw$!==void 0)return Hw$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Hw$=G},{mode:1});var kZ$;var Y_=function(){return _.p.apply(this,arguments)||this};
_.r(Y_,_.p);Y_.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Y_.prototype,"data",void 0);_.c([_.mC({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Y_);
_.d(Y_,"ytd-video-description-gaming-section-renderer",function(){if(kZ$!==void 0)return kZ$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return kZ$=G},{mode:1});var Ow$;var Aa=function(){var G=_.p.apply(this,arguments)||this;G.isExpanded=!1;return G};
_.r(Aa,_.p);Aa.prototype.computeHasDefaultMetadataEndpoint=function(G){var B;G=G==null?void 0:(B=G.defaultMetadata)==null?void 0:B.runs;return!(!G||G.length!==1||!G[0].navigationEndpoint)};
Aa.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.ZN.Object.defineProperties(Aa.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Aa.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Aa.prototype,"isExpanded",void 0);_.c([_.v({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Aa.prototype,"hasDefaultMetadataEndpoint",void 0);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Aa.prototype,"isExpandable",null);_.c([_.O("data","isExpandable","isExpanded"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Aa.prototype,"showExpandedMetadata",null);_.c([_.mC({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Aa);
_.d(Aa,"ytd-info-row-renderer",function(){if(Ow$!==void 0)return Ow$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Ow$=G},{mode:1});var eM$;var dW=function(){var G=_.p.apply(this,arguments)||this;G.currentIndex=0;G.supportComponentResize=!0;G.JSC$20478_lastScrollContainerWidth=NaN;return G};
_.r(dW,_.p);_.w=dW.prototype;
_.w.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"}}}};
_.w.getItemsPath=function(){return"videoLockups"};
_.w.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.w.onIronResize=function(){this.updateVideoLockupStyles()};
_.w.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.w.updateVideoLockupStyles=function(){var G;this.JSC$20478_scrollContainer!==void 0&&(G=this.videoLockups)!=null&&G.length&&(G=this.JSC$20478_scrollContainer.clientWidth,G!==this.JSC$20478_lastScrollContainerWidth&&(this.JSC$20478_lastScrollContainerWidth=G,_.Ss(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(G*.8,415)+"px"}),_.cZ(this.hostElement,"iron-resize")))};
_.ZN.Object.defineProperties(dW.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var G=[],B;if((B=this.data)==null||!B.carouselLockups)return G;B=_.C(this.data.carouselLockups);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0;((D=_.Q(F,Mcz))==null?0:D.videoLockup)&&G.push(_.Q(F,Mcz).videoLockup)}return G}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoLockups)==null||!G.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var G=[],B;if((B=this.data)==null||!B.carouselLockups)return G;var F;return(F=_.Q(this.data.carouselLockups[this.scrollCount],Mcz))==null?void 0:F.infoRows}}});
dW.prototype.dataChanged=dW.prototype.dataChanged;dW.prototype.onIronResize=dW.prototype.onIronResize;dW.prototype.hiddenChanged=dW.prototype.hiddenChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],dW.prototype,"componentBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],dW.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],dW.prototype,"inlineStructuredDescription",void 0);_.c([_.v({value:2}),_.I("design:type",Number)],dW.prototype,"initialCount",void 0);_.c([_.v(),_.I("design:type",Object)],dW.prototype,"currentIndex",void 0);
_.c([_.v(),_.I("design:type",Number)],dW.prototype,"scrollCount",void 0);_.c([_.v(),_.I("design:type",Object)],dW.prototype,"supportComponentResize",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],dW.prototype,"contentHidden",void 0);_.c([_.iA("#scroll-container"),_.I("design:type",HTMLDivElement)],dW.prototype,"JSC$20478_scrollContainer",void 0);
_.c([_.Ga("contentHidden"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dW.prototype,"hiddenChanged",null);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],dW.prototype,"videoLockups",null);_.c([_.O("videoLockups"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dW.prototype,"hasVideoLockups",null);
_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dW.prototype,"onIronResize",null);_.c([_.O("data","scrollCount"),_.I("design:type",Object),_.I("design:paramtypes",[])],dW.prototype,"infoRows",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dW.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],dW);
_.d(dW,"ytd-video-description-music-section-renderer",function(){if(eM$!==void 0)return eM$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return eM$=G},{mode:2});var $$D;var Ja=function(){return _.p.apply(this,arguments)||this};
_.r(Ja,_.p);Ja.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.c([_.v({}),_.I("design:type",Object)],Ja.prototype,"data",void 0);_.c([_.mC({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Ja);
_.d(Ja,"ytd-video-description-transcript-section-renderer",function(){if($$D!==void 0)return $$D;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return $$D=G},{mode:1});var zMD;_.YN(_.Y(function(G){var B=_.iR(_.AaM,function(){return G.data().firstProviderLinkStatusEntityKey}),F=_.iR(_.AaM,function(){return G.data().secondProviderLinkStatusEntityKey}),D=function(){var u,R;
return((u=B())==null?void 0:u.linked)||((R=F())==null?void 0:R.linked)};
return _.l("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.l(_.Wd,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return G.data().sectionTitle}}),_.l(_.Wd,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return D()?G.data().connectedMessage:G.data().notConnectedMessage}}),_.l(_.E,{cond:D,
then:function(){return _.l(_.uR,{data:function(){return G.data().connectedButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.l(_.E,{cond:function(){return!D()},
then:function(){return _.l(_.uR,{data:function(){return G.data().notConnectedButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;return _.l("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.l("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.l(_.Wd,{text:function(){return B().sectionTitle}})),_.l("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.l(_.Wd,{text:function(){return B().bodyHeader}})),_.l("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.l(_.Wd,{text:function(){return B().bodyText}})),_.l(_.E,{cond:function(){return B().attributionText},
then:function(){return _.l("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.l(_.Wd,{text:function(){return B().attributionText}}))}}))},"Rh"),"how-this-was-made-section-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){return _.l("yt-video-description-youchat-section-view-model",{class:_.tx("ytVideoDescriptionYouchatSectionViewModelHost")},_.l("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.l(_.Wd,{text:function(){return G.data().sectionTitle}})),_.l("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.l(_.Wd,{text:function(){return G.data().subHeaderText}})),_.l("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.l(_.cd,{data:function(){return _.Q(G.data().primaryButton,
_.LV)}})))},"Sh"),"yt-video-description-youchat-section-view-model",{props:{data:_.Hd}});var cE=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return G};
_.r(cE,_.p);_.w=cE.prototype;
_.w.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}}}}}};
_.w.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.w.dataChanged=function(){var G,B;this.hasDescriptionOnly=!(((G=this.data)==null?void 0:(B=G.items)==null?void 0:B.length)!==1||!_.Q(this.data.items[0],h4))};
_.w.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.w.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.w.autoFocusDescription=function(){var G;((G=_.te().resolve(_.fH(_.Mu)))==null?0:G.isKeyBoardInUse())&&this.description&&_.Jo(this.description)};
_.w.resize=function(){if(_.X("kevlar_disable_sd_resize"))this.JSC$20485_cardList&&_.cZ(this.JSC$20485_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.cZ(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.cZ(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.w.scrollToSection=function(G){if(G=this.getSectionElement(G))_.T1(this.hostElement,"yt-scroll-to-watch-element",[G]),G.focus()};
_.w.getSectionElement=function(G){switch(G){case "infocards-item-section":var B;return(B=this.infocardsSection)!=null?B:null;case "transcript-item-section":var F;return(F=this.transcriptSection)!=null?F:null;case "how-this-was-made-section-item-section":var D;return(D=this.howThisWasMadeSection)!=null?D:null;case "files-item-section":var u;return(u=this.filesSection)!=null?u:null;default:return null}};
_.w.handleSetActiveItemAction=function(G){var B=_.Q(G,yFS),F=B&&(B==null?void 0:B.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20485_cardList;if(B&&F){G=this.currentActiveChapter;var D=this.currentActiveProblem;B=F==null?void 0:F.getItemByIndex(B.itemIndex);var u=F=!0;B&&(B.active=!0,B.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(F=G!==B,u=!1,this.currentActiveChapter=B):(B==null?void 0:B.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(F=!1,u=D!==B,this.currentActiveProblem=B));G&&F&&(G.active=!1);D&&u&&(D.active=!1)}};
_.ZN.Object.defineProperties(cE.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Nk("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
cE.prototype.onYtExpanderMoreTapped=cE.prototype.onYtExpanderMoreTapped;cE.prototype.onHiddenChanged=cE.prototype.onHiddenChanged;cE.prototype.dataChanged=cE.prototype.dataChanged;cE.prototype.panelContentVisibleChanged=cE.prototype.panelContentVisibleChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],cE.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],cE.prototype,"ironResizableBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cE.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],cE.prototype,"panelContentVisible",void 0);_.c([_.v(),_.I("design:type",Boolean)],cE.prototype,"hasDescriptionOnly",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],cE.prototype,"inlineStructuredDescription",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],cE.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],cE.prototype,"shortsPanel",void 0);_.c([_.v(),_.I("design:type",Object)],cE.prototype,"videoSummary",void 0);_.c([_.v(),_.I("design:type",Object)],cE.prototype,"merchShelf",void 0);
_.c([_.O("videoSummary"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cE.prototype,"showVideoSummary",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],cE.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],cE.prototype,"watchWhileSdp",void 0);_.c([_.iA("ytd-expandable-video-description-body-renderer"),_.I("design:type",Object)],cE.prototype,"description",void 0);
_.c([_.iA("ytd-horizontal-card-list-renderer"),_.I("design:type",Object)],cE.prototype,"JSC$20485_cardList",void 0);_.c([_.iA("ytd-horizontal-card-list-renderer[center-items]"),_.I("design:type",Object)],cE.prototype,"problemWalkthroughCardList",void 0);_.c([_.iA("ytd-shelf-renderer"),_.I("design:type",Object)],cE.prototype,"shelfSection",void 0);_.c([_.iA("ytd-video-description-music-section-renderer"),_.I("design:type",Object)],cE.prototype,"musicMetadataSection",void 0);
_.c([_.iA("ytd-video-description-infocards-section-renderer"),_.I("design:type",Object)],cE.prototype,"infocardsSection",void 0);_.c([_.iA("ytd-video-description-transcript-section-renderer"),_.I("design:type",Object)],cE.prototype,"transcriptSection",void 0);_.c([_.iA("how-this-was-made-section-view-model"),_.I("design:type",Object)],cE.prototype,"howThisWasMadeSection",void 0);_.c([_.iA("ytd-video-description-files-section-renderer"),_.I("design:type",Object)],cE.prototype,"filesSection",void 0);
_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cE.prototype,"panelContentVisibleChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cE.prototype,"dataChanged",null);_.c([_.Ga("hidden"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cE.prototype,"onHiddenChanged",null);
_.c([_.Pm("yt-expander-more-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cE.prototype,"onYtExpanderMoreTapped",null);_.c([_.mC({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],cE);
_.d(cE,"ytd-structured-description-content-renderer",function(){if(zMD!==void 0)return zMD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return zMD=G},{mode:2});var T3=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.r(T3,_.p);_.w=T3.prototype;_.w.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"}}}};
_.w.dataChanged=function(){var G;this.descriptionToggled=!((G=this.data)==null||!G.defaultExpanded);var B;this.collapsed=this.descriptionAlwaysCollapsed||!((B=this.data)==null?0:B.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.ge(110509);this.showLessClientVe=_.ge(110510);G=_.qW();B=_.Uw();G&&B&&_.HT(G,B,[this.showMoreClientVe,this.showLessClientVe])};
_.w.onYtExpanderMoreTapped=function(){var G,B=(G=this.data)==null?void 0:G.showMoreCommand;B&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(B);(G=_.qW())&&this.showMoreClientVe&&_.$I(G,this.showMoreClientVe)};
_.w.onYtExpanderLessTapped=function(){var G=_.qW();G&&this.showLessClientVe&&_.$I(G,this.showLessClientVe);var B;(G=(B=this.data)==null?void 0:B.showLessCommand)&&this.componentBehavior.resolveCommand(G)};
_.w.handleUpdateDateTextAction=function(G){this.data&&this.data.dateText&&this.set("data.dateText",_.Q(G,bOz).dateText)};
_.w.handleUpdateDescriptionAction=function(G){if(G=_.Q(G,_.N4a))G.isEmpty||!G.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.hx(G.description)):this.set("data.description",G.description)};
_.w.onYtChangeEngagementPanelVisibilityAction=function(G){if(_.X("web_structured_description_show_more")||_.X("web_engagement_panel_open_description")){var B,F=(B=_.Q(G,_.RdL))==null?void 0:B.targetId,D;G=((D=_.Q(G,_.RdL))==null?void 0:D.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";F==="engagement-panel-structured-description"&&G&&(this.descriptionToggled=!0)}};
_.w.updateCollapsedFromBinding=function(G){this.collapsed=G.detail.value};
_.w.updateDescriptionToggledFromBinding=function(G){this.descriptionToggled=G.detail.value};
_.w.updateCanCollapseFromBinding=function(G){this.canCollapse=G.detail.value};
_.ZN.Object.defineProperties(T3.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer;return!!F&&!!F.rows&&F.rows.length>F.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.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}}});
T3.prototype.onYtExpanderLessTapped=T3.prototype.onYtExpanderLessTapped;T3.prototype.onYtExpanderMoreTapped=T3.prototype.onYtExpanderMoreTapped;T3.prototype.dataChanged=T3.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],T3.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],T3.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],T3.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],T3.prototype,"collapsed",void 0);_.c([_.v(),_.I("design:type",Boolean)],T3.prototype,"descriptionToggled",void 0);
_.c([_.v(),_.I("design:type",Boolean)],T3.prototype,"canCollapse",void 0);_.c([_.v(),_.I("design:type",Object)],T3.prototype,"subscribeButtonData",void 0);_.c([_.v(),_.I("design:type",Number)],T3.prototype,"descriptionCollapsedHeight",void 0);_.c([_.v(),_.I("design:type",Object)],T3.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.v({value:function(){return _.X("web_watch_description_always_collapsed")}}),
_.I("design:type",Boolean)],T3.prototype,"descriptionAlwaysCollapsed",void 0);_.c([_.iA("#description"),_.I("design:type",HTMLDivElement)],T3.prototype,"description",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],T3.prototype,"dataChanged",null);_.c([_.Pm("yt-expander-more-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],T3.prototype,"onYtExpanderMoreTapped",null);
_.c([_.Pm("yt-expander-less-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],T3.prototype,"onYtExpanderLessTapped",null);_.c([_.O("data.metadataRowContainer"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],T3.prototype,"metadataCollapsible",null);_.c([_.O("data","structuredDescriptionContentRenderer"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],T3.prototype,"hasInlineStructuredDescription",null);
_.c([_.O("data.attributedDescription"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],T3.prototype,"hasAttributedDescription",null);_.c([_.O("hasInlineStructuredDescription","collapsed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],T3.prototype,"loadStructuredDescription",null);_.c([_.O("data","structuredDescriptionContentRenderer","collapsed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],T3.prototype,"showInlineStructuredDescription",null);
_.c([_.O("data","hasInlineStructuredDescription","metadataCollapsible"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],T3.prototype,"descriptionAlwaysCollapsible",null);
_.d(T3,"ytd-video-secondary-info-renderer",function(){if(lyD===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);lyD=G}G=lyD;return G},{mode:2});var bwz;var Ib=function(){return _.p.apply(this,arguments)||this};
_.r(Ib,_.p);Ib.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ib.prototype,"rendererBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Ib.prototype,"dismissibleItemBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ib.prototype,"rendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ib.prototype,"data",void 0);_.c([_.mC({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Ib);
_.d(Ib,"ytd-comment-history-entry-renderer",function(){if(bwz!==void 0)return bwz;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return bwz=G},{mode:1});var VnH;var f0=function(){var G=_.p.apply(this,arguments)||this;G.isCollapsed=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return G};
_.r(f0,_.p);_.w=f0.prototype;_.w.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.onDonateTap=function(){var G=this.get("data.donateButton.buttonRenderer.command");if(G){var B=_.qW(),F=this.get("data.donateButton.buttonRenderer.trackingParams");B&&F&&_.$I(B,_.yX(F));this.ytOpenPopupBehavior.openPopup(G)}};
_.w.onShowMore=function(){this.isCollapsed=!1;var G=_.qW(),B=this.get("data.expandButton.buttonRenderer.trackingParams");G&&B&&_.$I(G,_.yX(B))};
_.w.onShowLess=function(){this.isCollapsed=!0};
_.w.dataChanged=function(){_.Ss(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.handleUpdate=function(G){if(G=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",G))this.set("data.startLabel",G.startLabel),this.set("data.endLabel",G.endLabel),this.set("data.progress",G.progress),this.set("data.amountRaisedLabel",G.amountRaisedLabel),this.dataChanged()};
_.w.handleOpenPopupAction=function(G){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",G)&&_.T1(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.w.computeHeaderBackgroundUrl=function(G,B){if(G)return B?G.headerBackgroundDarkUrl:G.headerBackgroundUrl};
_.w.isProgressBarVisible=function(G){return!(!G||G.progress===void 0)};
_.w.headerBackgroundClass=function(){return _.v5("HTML_DIR")==="rtl"?"flip":""};
f0.prototype.dataChanged=f0.prototype.dataChanged;_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],f0.prototype,"ytOpenPopupBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],f0.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],f0.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],f0.prototype,"isCollapsed",void 0);_.c([_.v({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.I("design:type",String)],f0.prototype,"headerBackgroundUrl",void 0);_.c([_.v(),_.I("design:type",Boolean)],f0.prototype,"isDarkTheme",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f0.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],f0);
_.d(f0,"ytd-donation-shelf-renderer",function(){if(VnH!==void 0)return VnH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return VnH=G},{mode:1});var v4G;var o4U=function(){return _.p.apply(this,arguments)||this};
_.r(o4U,_.p);_.c([_.v(),_.I("design:type",Object)],o4U.prototype,"data",void 0);_.c([_.mC({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],o4U);
_.d(o4U,"ytd-donation-unavailable-renderer",function(){if(v4G!==void 0)return v4G;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return v4G=G},{mode:1});var MnD;var ta=function(){var G=_.p.apply(this,arguments)||this;G.playerListenerConfig=null;G.actionMap={"yt-show-watch-page-survey":"openSurvey"};return G};
_.r(ta,_.p);_.w=ta.prototype;_.w.dataChanged=function(){var G=this,B=_.AZ();B&&B.getPlayerPromise().then(function(D){G.maybeRemovePlayerListeners(D)});
var F=this.data&&this.data.survey;F&&((F=(F=F.singleOptionSurveyRenderer||F.checkboxSurveyRenderer||F.multiStageSurveyRenderer)&&F.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(B,F):this.openSurvey())};
_.w.triggerWatchPageSurvey=function(G,B){var F=this,D,u,R,N,y,U,q,h,K;return _.n(function(a){if(a.nextAddress==1)return G?a.yield(G.getPlayerPromise(),2):a.return();F.player=a.yieldResult;if(!F.player)return a.return();D={};u=_.C(B);for(R=u.next();!R.done;R=u.next())N=R.value,y=_.C(F.createEventListenerPair(N)),U=y.next().value,q=y.next().value,h=U,K=q,h&&K&&(D[h]=K,F.ytPlayerListenerBehavior.listenToPlayerEvent(F.player,h,K));F.playerListenerConfig=D;_.di(a)})};
_.w.createEventListenerPair=function(G){var B=G.playbackEventTrigger;return B?this.handlePlaybackTrigger(B):(G=G.watchTimeTrigger)?this.handleWatchTimeTrigger(G):[void 0,void 0]};
_.w.handleWatchTimeTrigger=function(G){var B=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var F=G.videoWatchFraction,D=G.watchTimeSec;return D&&F?["onVideoProgress",function(){B.player&&B.isWatchTimeConditionMet(B.player,F,D)&&B.showSurvey()}]:[void 0,
void 0]};
_.w.isWatchTimeConditionMet=function(G,B,F){var D=G.getProgressState(),u=D.current-this.lastKnownPlaybackPosition;u<5&&(this.accumulatedMediaTime+=u);this.lastKnownPlaybackPosition=D.current;D=Math.round(this.accumulatedMediaTime/D.duration*1E3)/1E3;return G.getPresentingPlayerType&&G.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>F||D>B)};
_.w.handlePlaybackTrigger=function(G){var B=this;G=G.playbackEvent;if(G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var F="onStateChange";var D=function(u){u===0&&B.showSurvey()}}else G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(F="onVideoProgress",D=function(u){B.player&&B.player.getPresentingPlayerType&&B.player.getPresentingPlayerType()===1&&u&&B.showSurvey()}):G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(F="onAdEnd",D=this.showSurvey);
return[F,D]};
_.w.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.w.openSurvey=function(){var G=this,B=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(pVB(!!B));_.Lu.addJob(function(){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:B}})},0,0)};
_.w.maybeRemovePlayerListeners=function(G){if(this.playerListenerConfig){for(var B=_.C(Object.keys(this.playerListenerConfig)),F=B.next();!F.done;F=B.next())F=F.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(G,F,this.playerListenerConfig[F]);this.playerListenerConfig=null}};
ta.prototype.dataChanged=ta.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],ta.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],ta.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ta.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],ta.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ta.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ta.prototype,"playerListenerConfig",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],ta.prototype,"lastKnownPlaybackPosition",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],ta.prototype,"accumulatedMediaTime",void 0);_.c([_.v(),_.I("design:type",Object)],ta.prototype,"player",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ta.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ta);
_.d(ta,"ytd-survey-trigger-renderer",function(){if(MnD!==void 0)return MnD;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return MnD=G},{mode:1});var p3B;_.UR("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Zt=function(){var G=_.p.apply(this,arguments)||this;G.role="link";G.tabindex="0";G.actionMap=_.X("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 G};
_.r(Zt,_.p);_.w=Zt.prototype;_.w.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.rK()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.w.getCurrentTheme=function(){return _.Wm()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.rK()};
_.w.onThemeSelected=function(G,B){var F=G||B?G:_.Lp(),D=(F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.PDL(_.Ik(window.location.href));_.uf(0,165,G);_.uf(0,174,B);this.prefs.save();D&&_.T1(this.hostElement,"yt-dark-mode-toggled-action",[F]);_.T1(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.w.onTap=function(){this.data.serviceEndpoint&&_.fi(this.hostElement,[this.data.serviceEndpoint])};
_.w.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.w.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.w.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Zt.prototype.onTap=Zt.prototype.onTap;Zt.prototype.dataChanged=Zt.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Zt.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.HH),_.I("design:type",Object)],Zt.prototype,"paperItemBehaviors",void 0);_.c([_.v(),_.I("design:type",Object)],Zt.prototype,"data",void 0);_.c([_.v({value:function(){return _.D4()}}),
_.I("design:type",_.pB)],Zt.prototype,"prefs",void 0);_.c([_.v(),_.I("design:type",Object)],Zt.prototype,"label",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Zt.prototype,"role",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Zt.prototype,"tabindex",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Zt.prototype,"dataChanged",null);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Zt.prototype,"onTap",null);_.c([_.mC({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Zt);
_.tS()(Zt,"ytd-toggle-theme-compact-link-renderer",function(){if(p3B===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);p3B=G}G=p3B;return G},{allowedProps:["data"],
mode:1});var YMG;_.UR("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.UR("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var gW=function(){return _.p.apply(this,arguments)||this};
_.r(gW,_.p);_.w=gW.prototype;_.w.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.w.onTap=function(){this.data.recordClickEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var G=this.data.navigationEndpoint;G&&_.Q(G,_.h9)&&_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})};
_.w.readChanged=function(){var G;_.tV(this.hostElement,"unread",!((G=this.data)==null?0:G.read))};
_.w.dataChanged=function(){this.data&&_.tV(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.w.computeThumbnailSize=function(){var G;return((G=this.data)==null?0:G.highPriorityNotification)?32:48};
_.w.getEndpointURL=function(G){return G&&!_.Q(G,_.h9)?this.componentBehavior.computeHref_(G):null};
_.w.getEndpointData=function(G){return G&&!_.Q(G,_.h9)?G:null};
gW.prototype.computeThumbnailSize=gW.prototype.computeThumbnailSize;gW.prototype.dataChanged=gW.prototype.dataChanged;gW.prototype.readChanged=gW.prototype.readChanged;gW.prototype.onKeyUp=gW.prototype.onKeyUp;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],gW.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gW.prototype,"data",void 0);_.c([_.v({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.I("design:type",Number)],gW.prototype,"thumbnailSize",void 0);_.c([_.Pm("keyup"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],gW.prototype,"onKeyUp",null);
_.c([_.Ga("data.read"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gW.prototype,"readChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gW.prototype,"dataChanged",null);_.c([_.Ga("data.highPriorityNotification"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gW.prototype,"computeThumbnailSize",null);
_.c([_.mC({is:"ytd-notification-renderer",disableElementRegistration:!0})],gW);
_.d(gW,"ytd-notification-renderer",function(){if(YMG!==void 0)return YMG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return YMG=G},{mode:1});var AIB;var Sd=function(){return _.p.apply(this,arguments)||this};
_.r(Sd,_.p);Sd.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"}}}};
Sd.prototype.computeActionButtonClass=function(G){return!G.actionButtons||G.actionButtons.length<=1?"single-button":G.description?"vertical-buttons":"horizontal-buttons"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Sd.prototype,"data",void 0);_.c([_.mC({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Sd);
_.d(Sd,"ytd-playlist-show-metadata-renderer",function(){if(AIB!==void 0)return AIB;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return AIB=G},{mode:1});var d$U;_.UR("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var sU=function(){return _.p.apply(this,arguments)||this};
_.r(sU,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sU.prototype,"data",void 0);_.c([_.mC({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],sU);
_.d(sU,"ytd-purchase-item-renderer",function(){if(d$U!==void 0)return d$U;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return d$U=G},{mode:1});var JI$;var cI$={};cI$.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(G){if(G)return G.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(G){if(G==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.UR("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var x_=function(){return _.p.apply(this,arguments)||this};
_.r(x_,_.p);x_.prototype.onYtNavigate=function(G){var B=this.openPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);B&&(G.stopPropagation(),this.openPopupBehavior.openPopup(B))};
x_.prototype.onYtNavigate=x_.prototype.onYtNavigate;_.c([_.k(cI$.YtSimpleTextSectionBehavior),_.I("design:type",Object)],x_.prototype,"ytSimpleTextSectionBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],x_.prototype,"openPopupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],x_.prototype,"data",void 0);
_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],x_.prototype,"onYtNavigate",null);_.c([_.mC({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],x_);
_.d(x_,"ytd-simple-text-section-renderer",function(){if(JI$!==void 0)return JI$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JI$=G},{mode:1});var TbH;_.UR("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var IyA=function(){return _.p.apply(this,arguments)||this};
_.r(IyA,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],IyA.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IyA.prototype,"data",void 0);_.c([_.mC({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],IyA);
_.d(IyA,"ytd-unlimited-page-feature-info-renderer",function(){if(TbH!==void 0)return TbH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return TbH=G},{mode:1});var fyQ;var tn$;var PE=function(){return _.p.apply(this,arguments)||this};
_.r(PE,_.p);PE.prototype.dataChanged=function(){if(this.data){var G=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);G&&(G=_.Ax(G,screen.width),this.hostElement.style.backgroundImage="url("+G+")")}};
PE.prototype.dataChanged=PE.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PE.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],PE.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],PE);
_.d(PE,"ytd-post-redemption-section-renderer",function(){if(tn$!==void 0)return tn$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return tn$=G},{mode:1});var Zw$;var GY=function(){return _.p.apply(this,arguments)||this};
_.r(GY,_.p);GY.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],GY.prototype,"data",void 0);_.c([_.mC({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],GY);
_.d(GY,"ytd-ypc-post-redemption-renderer",function(){if(Zw$!==void 0)return Zw$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Zw$=G},{mode:1});_.UR("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Bu=function(){var G=_.p.apply(this,arguments)||this;G.MIN_CODE_LENGTH=12;G.MAX_CODE_LENGTH=24;return G};
_.r(Bu,_.p);_.w=Bu.prototype;_.w.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.w.created=function(){this.riskService=new _.DJS;this.loadPaymentThenable=_.R16(_.v5("YPC_MB_URL"))};
_.w.ready=function(){var G=this;this.code.addEventListener("keypress",function(B){G.onCodeInputKeypress(B)})};
_.w.dataChanged=function(){var G=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(B){B=_.C(B);for(var F=B.next();!F.done;F=B.next())F=F.value,F.type==="attributes"&&F.attributeName==="dark"&&G.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.w.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var G=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+G+")")}};
_.w.computeRedeemButton=function(G){(G=this.get("redeemButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.w.onRedeemButtonTap=function(G){G.stopPropagation();JJZ();this.redeemCode()};
_.w.redeemCode=function(){var G=this;this.isLoading=!0;var B=this.riskService.init();_.KG([B,this.loadPaymentThenable]).then(function(){var F=G.data.redeemButton.buttonRenderer.serviceEndpoint,D=_.uHJ(),u=_.Tf.payments.business.integration.ClientTokenFactory.createClientToken(_.Q(F,_.gmv).countryCode,D);D={c:G.code.value.trim(),rd:window.btoa(D),ctk:u};F&&_.te().resolve(_.Wr).resolveCommand(F,{form:Object.assign({},D,{element:G.hostElement})})},function(){G.showGenericError();
cJS("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Mn(Error("Al"))})};
_.w.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isLoading=!1;var B,F;this.errorMessage=(B=G.detail)==null?void 0:(F=B.data)==null?void 0:F.errorMessage;var D,u;this.postRedemptionRenderer=(D=G.detail)==null?void 0:(u=D.data)==null?void 0:u.renderer;var R,N;if(G=(R=G.detail)==null?void 0:(N=R.data)==null?void 0:N.redirectEndpoint)this.isLoading=!0,_.cZ(this.hostElement,"yt-navigate",{endpoint:G});this.errorMessage?cJS("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
G)&&S4("ypcRedeemFlowSucceeded")};
_.w.onYtServiceRequestError=function(G){G.stopPropagation();this.isLoading=!1;if(G=this.get("detail.error.message",G))this.errorMessage=_.$9(G);cJS("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.w.onInvokeInstrumentManagerActionCompleted=function(G){G.stopPropagation();this.redeemCode()};
_.w.onInvokeInstrumentManagerActionError=function(G){G.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",G)){case "instrumentManagerLoadError":this.showGenericError();cJS("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();cJS("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":S4("ypcRedeemFlowCancelled")}};
_.w.onInput=function(){var G=this;_.kT(this,"onInput",function(){var B=G.code.value.trim();G.redeemButtonDisabled=B.length<G.MIN_CODE_LENGTH||B.length>G.MAX_CODE_LENGTH},200)};
_.w.onCodeInputKeypress=function(G){G.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(JJZ(),this.redeemCode())};
_.w.computeImageUrl=function(G){return G?_.Ax(G.thumbnails,600):null};
_.w.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Bu.prototype.onInvokeInstrumentManagerActionError=Bu.prototype.onInvokeInstrumentManagerActionError;Bu.prototype.onInvokeInstrumentManagerActionCompleted=Bu.prototype.onInvokeInstrumentManagerActionCompleted;Bu.prototype.onYtServiceRequestError=Bu.prototype.onYtServiceRequestError;Bu.prototype.onYtServiceRequestCompleted=Bu.prototype.onYtServiceRequestCompleted;Bu.prototype.dataChanged=Bu.prototype.dataChanged;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Bu.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Bu.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Boolean)],Bu.prototype,"redeemButtonDisabled",void 0);
_.c([_.v(),_.I("design:type",Object)],Bu.prototype,"errorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],Bu.prototype,"postRedemptionRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],Bu.prototype,"observer",void 0);_.c([_.iA("#code"),_.I("design:type",HTMLInputElement)],Bu.prototype,"code",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bu.prototype,"dataChanged",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Bu.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Bu.prototype,"onYtServiceRequestError",null);
_.c([_.Pm("yt-invoke-instrument-manager-action-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Bu.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.c([_.Pm("yt-invoke-instrument-manager-action-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Bu.prototype,"onInvokeInstrumentManagerActionError",null);_.c([_.mC({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Bu);
_.d(Bu,"ytd-redeem-code-renderer",function(){if(fyQ!==void 0)return fyQ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return fyQ=G},{mode:1});var g4$;_.UR("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var i7=function(){var G=_.p.apply(this,arguments)||this;G.businessEmailDisplayState="HIDE_SECTION";return G};
_.r(i7,_.p);_.w=i7.prototype;_.w.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}}}}}};
_.w.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"};
_.w.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.w.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Q9(_.f2P),this.businessEmailDisplayState="CAPTCHA"))};
_.w.onYtServiceRequestCompleted=function(G){var B;if((B=G.detail.data)==null?0:B.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var F;if((F=G.detail.data)==null?0:F.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.w.computeEmailHref=function(G){return"mailto:"+G};
_.w.computeSafeUrl=function(G){if(G)return _.Sz(G)};
_.w.onBusinessEmailCaptchaSubmit=function(){var G;(G=this.data)!=null&&G.onBusinessEmailRevealClickCommand&&(G=this.JSC$20545_captchaTextarea.value)&&(G={recaptcha_response_token:G,channel_id:this.data.channelId},_.te().resolve(_.Wr).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},G,{element:this.hostElement})}))};
_.w.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ZN.Object.defineProperties(i7.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 G,B;return!((G=this.data)==null||!G.primaryLinks)&&!((B=this.data)==null?0:B.links)&&this.data.primaryLinks.every(function(F){return F.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.primaryLinks)&&!((B=this.data)==null?0:B.links)&&!this.shouldShowNewLinks}}});
i7.prototype.onYtServiceRequestCompleted=i7.prototype.onYtServiceRequestCompleted;i7.prototype.dataChanged=i7.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],i7.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.iA("#g-recaptcha-response"),_.I("design:type",HTMLTextAreaElement)],i7.prototype,"JSC$20545_captchaTextarea",void 0);_.c([_.v(),_.I("design:type",Object)],i7.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],i7.prototype,"businessEmailDisplayState",void 0);_.c([_.v(),_.I("design:type",String)],i7.prototype,"businessEmail",void 0);_.c([_.v(),_.I("design:type",String)],i7.prototype,"businessEmailErrorMessage",void 0);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],i7.prototype,"hideDetailsSection",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],i7.prototype,"dataChanged",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],i7.prototype,"shouldShowNewLinks",null);_.c([_.O("data","shouldShowLinks"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],i7.prototype,"shouldShowLegacyLinks",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],i7.prototype,"onYtServiceRequestCompleted",null);_.c([_.mC({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],i7);
_.d(i7,"ytd-channel-about-metadata-renderer",function(){if(g4$!==void 0)return g4$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return g4$=G},{mode:1});var SMU;_.UR("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Fv=function(){return _.p.apply(this,arguments)||this};
_.r(Fv,_.p);Fv.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Fv.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],Fv.prototype,"lockupContainerType",void 0);_.c([_.v(),_.I("design:type",String)],Fv.prototype,"thumbnailFixedWidth",void 0);
_.c([_.mC({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Fv);
_.d(Fv,"ytd-channel-featured-content-renderer",function(){if(SMU!==void 0)return SMU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return SMU=G},{mode:1});var sL$;_.UR("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Do=function(){var G=_.p.apply(this,arguments)||this;G.roundContainer=!0;G.amsterdamEnabled=_.X("enable_desktop_amsterdam_info_panels");return G};
_.r(Do,_.p);_.w=Do.prototype;_.w.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.w.dataChanged=function(){this.imageWidth=this.imageHeight=24;var G=this.data;G.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!G.style&&G.image&&G.image.thumbnails.length&&(G=G.image.thumbnails[0],this.imageWidth=G.width||0,this.imageHeight=G.height||0)};
_.w.computeSource=function(G){return G.secondarySource?_.zx(G.secondarySource):_.zx(G.source)};
_.w.computeClarifyStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.w.isLargeStyle=function(G){return G==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.w.computeBackgroundStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.w.computeHasActionButton=function(G){return!!G.actionButton};
_.w.computeHasBottomSection=function(G){return!!G.ctaHasBottomSection};
_.w.computeIsSourceMissing=function(G){return G.ctaHasBottomSection===!1?!0:G&&this.computeSource(G)?!1:!0};
_.w.computeSecondaryEndpoint=function(G){return G.secondaryEndpoint||G.endpoint};
Do.prototype.dataChanged=Do.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Do.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],Do.prototype,"imageWidth",void 0);_.c([_.v(),_.I("design:type",Number)],Do.prototype,"imageHeight",void 0);
_.c([_.v({computed:"computeSecondaryEndpoint(data)"}),_.I("design:type",Object)],Do.prototype,"secondaryEndpoint",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.I("design:type",Boolean)],Do.prototype,"hasActionButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.I("design:type",Boolean)],Do.prototype,"hasBottomSection",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.I("design:type",Boolean)],Do.prototype,"missingSource",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",String)],Do.prototype,"icon",void 0);_.c([_.v({computed:"computeIcon_(data.secondaryIcon)"}),_.I("design:type",String)],Do.prototype,"secondaryIcon",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.I("design:type",String)],Do.prototype,"clarifyStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.I("design:type",String)],Do.prototype,"backgroundStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Do.prototype,"roundContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Do.prototype,"amsterdamEnabled",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Do.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Do);
_.d(Do,"ytd-clarification-renderer",function(){if(sL$!==void 0)return sL$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return sL$=G},{mode:1});var x$S;_.UR("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var u7=function(){return _.p.apply(this,arguments)||this};
_.r(u7,_.p);_.w=u7.prototype;_.w.computeHasPrimaryIcon=function(G){return!(!G.icon&&!G.thumbnail)};
_.w.computeHasSecondary=function(G){return!(!G.secondaryIcon&&!G.secondaryNotificationText)};
_.w.computeHideSecondaryString=function(G){return!_.X("disable_hide_empty_secondary_string")&&!G.secondaryNotificationText};
_.w.computeCompactLinkStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeHasFitHeight=function(G){return G==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.w.isActiveEndpoint=function(G){return(G=this.get("commandMetadata.webCommandMetadata.url",G))?_.Ik(window.location.href)!=="/account_transfer_channel"&&_.Ik(window.location.href)!=="/gaia_link"&&_.Ik(window.location.href)!=="/channel_switcher"||G!=="/account"?_.Ik(window.location.href)===G:!0:!1};
_.w.onTap=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.fi(this.hostElement,[this.data.serviceEndpoint])};
u7.prototype.onTap=u7.prototype.onTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],u7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.I("design:type",Boolean)],u7.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.I("design:type",String)],u7.prototype,"compactLinkStyle",void 0);
_.c([_.v({computed:"computeIcon_(data.icon)"}),_.I("design:type",Object)],u7.prototype,"icon",void 0);_.c([_.v({computed:"computeIcon_(data.secondaryIcon)"}),_.I("design:type",Object)],u7.prototype,"secondaryIcon",void 0);_.c([_.v({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],u7.prototype,"hasSecondary",void 0);_.c([_.v({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],u7.prototype,"hideSecondaryString",void 0);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],u7.prototype,"onTap",null);_.c([_.mC({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],u7);
_.d(u7,"ytd-compact-link-renderer",function(){if(x$S!==void 0)return x$S;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return x$S=G},{mode:1});var PTG;var GUZ;var RU=function(){var G=_.p.apply(this,arguments)||this;G.amsterdamEnabled=_.X("enable_desktop_amsterdam_info_panels");return G};
_.r(RU,_.p);_.w=RU.prototype;_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.w.computeIcon=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.w.computeUseContacts=function(G){return!!G.contacts&&G.contacts.length>0};
_.w.computePhoneContact=function(G){var B,F;return(B=G.contacts)==null?void 0:(F=B.find(function(D){var u;return(D==null?void 0:(u=D.icon)==null?void 0:u.iconType)==="PHONE"}))==null?void 0:F.actionText};
_.w.computeSmsContact=function(G){var B,F;return(B=G.contacts)==null?void 0:(F=B.find(function(D){var u;return(D==null?void 0:(u=D.icon)==null?void 0:u.iconType)==="SMS"}))==null?void 0:F.actionText};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],RU.prototype,"amsterdamEnabled",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.I("design:type",Boolean)],RU.prototype,"useContacts",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.I("design:type",String)],RU.prototype,"phoneContact",void 0);_.c([_.mC({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],RU);
_.d(RU,"ytd-single-action-emergency-support-renderer",function(){if(GUZ!==void 0)return GUZ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return GUZ=G},{mode:1});_.UR("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var w7=function(){var G=_.p.apply(this,arguments)||this;G.roundedContainer=!0;G.amsterdamEnabled=_.X("enable_desktop_amsterdam_info_panels");return G};
_.r(w7,_.p);w7.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],w7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],w7.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],w7.prototype,"amsterdamEnabled",void 0);
_.c([_.mC({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],w7);
_.d(w7,"ytd-emergency-onebox-renderer",function(){if(PTG!==void 0)return PTG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return PTG=G},{mode:1});var BtH;_.UR("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Cj=function(){return _.p.apply(this,arguments)||this};
_.r(Cj,_.p);Cj.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Cj.prototype,"data",void 0);_.c([_.mC({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Cj);
_.d(Cj,"ytd-exploratory-results-renderer",function(){if(BtH!==void 0)return BtH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return BtH=G},{mode:1});var ivZ;_.UR("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Nf=function(){var G=_.p.apply(this,arguments)||this;G.messageData=null;return G};
_.r(Nf,_.p);_.w=Nf.prototype;_.w.onServiceRequestCompleted=function(G,B){G=B.actions||[];B=0;for(var F=G.length;B<F;B++){var D=G[B],u=void 0,R=void 0;if((u=_.Q(D,_.GV))==null?0:(R=u.item)==null?0:R.messageRenderer)this.messageData=_.Q(D,_.GV).item.messageRenderer}};
_.w.dataChanged=function(){var G=this.data;this.hostElement.hidden=!1;_.tV(this.hostElement,"is-channel",G&&!G.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.w.computeThumbnailWidth=function(G){return G?126:56};
_.w.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.w.onSubmitTap=function(){var G=this.data,B=this.selectedResponseIndex;G!==void 0&&B!==void 0&&(G=G.responses[B],G.responseData&&_.te().resolve(_.Wr).resolveCommand(G.responseData,{form:{element:this.hostElement}}))};
_.w.onDismissTap=function(){this.hostElement.hidden=!0;var G=this.data;G!==void 0&&G.dismissalEndpoint&&_.te().resolve(_.Wr).resolveCommand(G.dismissalEndpoint,{form:{element:this.hostElement}})};
_.w.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
Nf.prototype.onSelectedResponseIndexChange=Nf.prototype.onSelectedResponseIndexChange;Nf.prototype.dataChanged=Nf.prototype.dataChanged;Nf.prototype.onServiceRequestCompleted=Nf.prototype.onServiceRequestCompleted;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Nf.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Nf.prototype,"messageData",void 0);
_.c([_.v(),_.I("design:type",Number)],Nf.prototype,"selectedResponseIndex",void 0);_.c([_.iA("#submit-button"),_.I("design:type",HTMLButtonElement)],Nf.prototype,"submitButton",void 0);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],Nf.prototype,"onServiceRequestCompleted",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Nf.prototype,"dataChanged",null);
_.c([_.Ga("selectedResponseIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Nf.prototype,"onSelectedResponseIndexChange",null);_.c([_.mC({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Nf);
_.d(Nf,"ytd-feedback-elicitation-single-question-renderer",function(){if(ivZ!==void 0)return ivZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ivZ=G},{mode:1});var F8Q;var yh=function(){return _.p.apply(this,arguments)||this};
_.r(yh,_.p);yh.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yh.prototype,"data",void 0);_.c([_.mC({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],yh);
_.d(yh,"ytd-limited-state-message-renderer",function(){if(F8Q!==void 0)return F8Q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return F8Q=G},{mode:1});var Db$;var nj=function(){return _.p.apply(this,arguments)||this};
_.r(nj,_.p);nj.prototype.computeThumbnailWidth=function(G){return G?602:428};
nj.prototype.updateWideFromBinding=function(G){this.wide=G.detail.value};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nj.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],nj.prototype,"wide",void 0);_.c([_.mC({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],nj);
_.d(nj,"ytd-newspaper-hero-video-renderer",function(){if(Db$!==void 0)return Db$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Db$=G},{mode:1});var uID;var RN$=function(){return _.p.apply(this,arguments)||this};
_.r(RN$,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RN$.prototype,"rendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RN$.prototype,"data",void 0);_.c([_.mC({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],RN$);
_.d(RN$,"ytd-newspaper-mini-video-renderer",function(){if(uID!==void 0)return uID;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return uID=G},{mode:1});var wW$;_.UR("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var l7=function(){return _.p.apply(this,arguments)||this};
_.r(l7,_.p);l7.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"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],l7.prototype,"data",void 0);_.c([_.mC({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],l7);
_.d(l7,"ytd-newspaper-renderer",function(){if(wW$!==void 0)return wW$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return wW$=G},{mode:1});var C$A;_.UR("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Um=function(){var G=_.p.apply(this,arguments)||this;G.isSegment=!1;G.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};G.nextContinuation={continuationType:"playlistVideoListContinuation"};return G};
_.r(Um,_.p);_.w=Um.prototype;_.w.created=function(){var G=this;this.JSC$20584_ytReorderableController=new _.MMw(101,function(B){G.handleDrop(B)})};
_.w.attached=function(){_.te();var G;(G=_.te().resolve(_.fH(_.lm)))!=null&&(G.playlistVideoListElement=this.hostElement)};
_.w.detached=function(){var G;(G=_.te().resolve(_.fH(_.lm)))!=null&&(G.playlistVideoListElement=void 0);G=_.te().resolve(_.fH(_.SK));_.X("web_enable_voting_animation")&&G&&(G.parentElem=void 0,G.videos=[],G.continuationsPresent=!1,G.showRefreshPill=!1);_.Gl(this.JSC$20584_ytReorderableController)};
_.w.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"}}}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.w.dataChanged=function(){var G=_.te().resolve(_.fH(_.SK));if(_.X("web_enable_voting_animation")&&this.data&&G){var B=_.IF(this.hostElement).querySelector("#contents");B&&(G.parentElem=B);G.addVideos(this.data.contents)}_.Gl(this.JSC$20584_ytReorderableController)};
_.w.onRendererstamperFinished=function(){this.canReorder&&_.pka(this.JSC$20584_ytReorderableController,_.IF(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.w.onPlaylistReloading=function(){this.isReloading=!0};
_.w.onUpdateSetVideoId=function(G){if(G.detail&&this.data&&this.data.contents){var B=G.detail;G=this.data.contents.findIndex(function(u){var R;return((R=u.playlistVideoRenderer)==null?void 0:R.videoId)===B.videoId});
if(!(G<0)&&B.setVideoId&&(this.set("data.contents."+G+".playlistVideoRenderer.setVideoId",B.setVideoId),_.X("web_enable_voting_animation"))){var F;if(G=_.Q((F=this.data.contents[G].playlistVideoRenderer)==null?void 0:F.engagementBar,_.LII)){var D;(D=G.actions)==null||D.forEach(function(u){if(u=_.Q(u,_.rHg))u.itemId=B.setVideoId})}(F=_.te().resolve(_.fH(_.SK)))&&BLS(F,B.videoId,B.setVideoId)}}};
_.w.computeContentsClass=function(G){return G?"reloading":""};
_.w.computeIsSortable=function(G,B){return G&&B>0&&!this.isSegment&&!_.X("shorts_in_playlists_web")};
_.w.computeIsEditable=function(G){return G};
_.w.computeCanReorder=function(G){return G};
_.w.handlePlaylistRemoveVideosAction=function(G){if(this.get("playlistRemoveVideosAction.setVideoIds",G)&&this.data&&this.data.contents){G=_.Q(G,_.yD7).setVideoIds;for(var B=this.data.contents.length-1;B>=0;){var F=this.data.contents[B].playlistVideoRenderer;F&&F.setVideoId&&G.includes(F.setVideoId)&&this.splice("data.contents",B,1);B--}_.T1(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.w.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".playlistVideoRenderer.index",_.$9(String(G+1)))};
_.w.handleDrop=function(G){G=G.currDragItem;var B=_.ML(G.parentNode.childNodes,G),F=this.data.contents.splice(Number(_.zx(G.data.index))-1,1)[0];this.data.contents.splice(B,0,F);B=B?this.get("contents."+(B-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();G=this.buildReorderServiceEndpoint(G.data.setVideoId,B);this.ytComponentBehavior.resolveCommand(G)};
_.w.buildReorderServiceEndpoint=function(G,B){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",G),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",B),this.data.onReorderEndpoint):null};
_.w.handleUpdatePlaylistAction=function(G){var B;(G=_.Q((B=_.Q(G,_.nCG))==null?void 0:B.updatedRenderer,_.EYq))&&this.canReorder!==G.canReorder&&this.set("data.canReorder",G.canReorder);G&&G.contents&&(this.set("data.contents",G.contents),this.isReloading=!1);G&&G.continuations&&this.set("data.continuations",G.continuations)};
_.w.handleAddRendererToItemSectionAction=function(G){var B,F=(B=_.Q(G,dF$))==null?void 0:B.renderer,D;F&&((D=_.Q(G,dF$))==null?void 0:D.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,F),G=_.te().resolve(_.fH(_.SK)),_.X("web_enable_voting_animation")&&G&&(F&&(B=_.jWg(F))&&G.recommendedVideos.push({itemId:B,videoId:_.WIJ(F),voteCount:_.Hy8(F),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.w.isVotingEnabledOnPlaylist=function(G){if(!G)return!1;G=_.C(G);for(G=G.next();!G.done;G=G.next()){var B=void 0;return!!_.Q((B=G.value.playlistVideoRenderer)==null?void 0:B.engagementBar,_.LII)}return!1};
_.w.onAppendContinuationItemsActionFinished=function(){var G;this.isVotingEnabledOnPlaylist((G=this.data)==null?void 0:G.contents)&&(this.updateIndices(),G=_.te().resolve(_.fH(_.SK)),_.X("web_enable_voting_animation")&&G&&this.data&&G.addVideos(this.data.contents))};
_.w.updateVideoData=function(G){if(G.detail&&this.data&&this.data.contents){var B=G.detail;G=B.toIdx;var F=B.itemId,D=B.newVoteCount,u=B.voteStatus;B=B.hideItem;var R,N,y=(R=this.data)==null?void 0:(N=R.contents)==null?void 0:N.findIndex(function(K){return _.jWg(K)===F});
if(!(y<0)){R=this.data.contents[y];var U;if((U=R.playlistVideoRenderer)==null?0:U.voteCount)R.playlistVideoRenderer.voteCount=D;var q;if(U=_.Q((q=R.playlistVideoRenderer)==null?void 0:q.engagementBar,_.LII)){var h;(h=U.actions)==null||h.forEach(function(K){(K=_.Q(K,_.rHg))&&K.initialState&&(K.initialState.votes=D,K.initialState.status=u)})}this.data.contents.splice(y,1);
B||this.data.contents.splice(G,0,R);this.updateIndices()}}};
Um.prototype.updateVideoData=Um.prototype.updateVideoData;Um.prototype.onAppendContinuationItemsActionFinished=Um.prototype.onAppendContinuationItemsActionFinished;Um.prototype.onUpdateSetVideoId=Um.prototype.onUpdateSetVideoId;Um.prototype.onPlaylistReloading=Um.prototype.onPlaylistReloading;Um.prototype.onRendererstamperFinished=Um.prototype.onRendererstamperFinished;Um.prototype.dataChanged=Um.prototype.dataChanged;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.VB.YtNextContinuationBehavior),_.I("design:type",Object)],Um.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.k(_.be),_.I("design:type",Object)],Um.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Um.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Um.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],Um.prototype,"isReloading",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Um.prototype,"isSegment",void 0);
_.c([_.v({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.I("design:type",Boolean)],Um.prototype,"isSortable",void 0);_.c([_.v({computed:"computeIsEditable(data.isEditable)"}),_.I("design:type",Boolean)],Um.prototype,"isEditable",void 0);_.c([_.v({computed:"computeCanReorder(data.canReorder)"}),_.I("design:type",Boolean)],Um.prototype,"canReorder",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Um.prototype,"dataChanged",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Um.prototype,"onRendererstamperFinished",null);_.c([_.Pm("yt-playlist-reloading"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Um.prototype,"onPlaylistReloading",null);
_.c([_.Pm("yt-update-set-video-id"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Um.prototype,"onUpdateSetVideoId",null);_.c([_.Pm("yt-append-continuation-items-action-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Um.prototype,"onAppendContinuationItemsActionFinished",null);
_.c([_.Pm("yt-update-video-data-voting-animation"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Um.prototype,"updateVideoData",null);_.c([_.mC({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Um);
_.d(Um,"ytd-playlist-video-list-renderer",function(){if(C$A!==void 0)return C$A;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return C$A=G},{mode:2});var NtB;var qf=function(){return _.p.apply(this,arguments)||this};
_.r(qf,_.p);qf.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"}}}}};
qf.prototype.onTextWrapperTap=function(G){var B=this.data&&this.data.navigationEndpoint;B&&!_.oQ(_.VW(G),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.cZ(this.hostElement,"yt-navigate",{endpoint:B})};
qf.prototype.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");G&&G.commandMetadata&&_.Q(G.commandMetadata,_.u6)&&_.Q(G.commandMetadata,_.u6).fireAutomatically&&_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})};
qf.prototype.dataChanged=qf.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.W9),_.I("design:type",Object)],qf.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qf.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],qf.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],qf.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],qf.prototype,"leftAligned",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qf.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-movie-renderer"})],qf);
_.d(qf,"ytd-movie-renderer",function(){if(NtB!==void 0)return NtB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return NtB=G},{mode:1});var y_$={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(G){if(G&&G.length==1&&Array.isArray(G[0].loggingUrls)){G=_.UK.unsafeClone(G[0]);var B=this.macros||{},F=this.getAdModuleClient_();if(!F)return _.ZL();G.loggingUrls.forEach(function(D){if(D.baseUrl){var u=D.baseUrl;var R=B;R=R===void 0?{}:R;u=F.getOptions().includes("replaceUrlMacros")?_.xxP(F,"replaceUrlMacros",{url:u,additionalMapping:R}):u;D.baseUrl=u}},this);
G=[G]}return _.fi(this.hostElement,G)},
getAdModuleClient_:function(){var G=_.AZ(this);return G?(G=G.getPlayer())?new _.qo(G):null:null}}]};var nnZ;var Em=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};return G};
_.r(Em,_.p);Em.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=_.hV(this.data.backgroundColor)))};
Em.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var G=this.getFormattedStringLoggingDirectives(this.data.headline);G&&this.rendererBehavior.logExplicitClick(G)}};
Em.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var G=this.getFormattedStringLoggingDirectives(this.data.description);G&&this.rendererBehavior.logExplicitClick(G)}};
Em.prototype.getFormattedStringLoggingDirectives=function(G){return G&&G.runs&&G.runs.length>0&&G.runs[0]&&G.runs[0].loggingDirectives?G.runs[0].loggingDirectives:null};
Em.prototype.dataChanged=Em.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Em.prototype,"rendererBehavior",void 0);_.c([_.k(y_$.YtMacroReplacementBehavior),_.I("design:type",Object)],Em.prototype,"macroReplacementBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Em.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Em.prototype,"navigationEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Em.prototype,"enableColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Em.prototype,"modern",void 0);_.c([_.v(),_.I("design:type",Object)],Em.prototype,"buttonOverrides",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Em.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Em);
_.d(Em,"ytd-action-basic-immersive-content-renderer",function(){if(nnZ!==void 0)return nnZ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return nnZ=G},{mode:1});var lDG;var UbU;var hr=function(){return _.p.apply(this,arguments)||this};
_.r(hr,_.p);hr.prototype.dataChanged=function(){var G;((G=this.data)==null?void 0:G.backgroundColor)!==void 0&&_.Ss(this.hostElement,{"--bgu-color":_.hV(this.data.backgroundColor)})};
hr.prototype.onImageTileClick=function(){var G;((G=this.data)==null?0:G.navigationEndpoint)&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var B;((B=this.data)==null?0:B.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.ZN.Object.defineProperties(hr.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?void 0:G.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 G;return((G=this.data)==null?void 0:G.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var G,B,F;if(((G=this.data)==null?void 0:(B=G.detailsLine)==null?void 0:B.texts)!=null&&((F=this.data)==null?void 0:F.detailsLine.texts.length)>0){var D;return(D=this.data)==null?void 0:D.detailsLine.texts.map(function(u){return u.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var G,B,F;if(((G=this.data)==null?void 0:(B=G.optionalDetailsLine)==null?void 0:B.texts)!=null&&((F=this.data)==null?void 0:F.optionalDetailsLine.texts.length)>0){var D;return(D=this.data)==null?void 0:D.optionalDetailsLine.texts.map(function(u){return u.text}).join("")}return null}}});
hr.prototype.dataChanged=hr.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hr.prototype,"rendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],hr.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hr.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.backgroundColor"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hr.prototype,"hasBackgroundColor",null);
_.c([_.O("data.objectFit"),_.I("design:type",Object),_.I("design:paramtypes",[])],hr.prototype,"getObjectFit",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.tileRenderingStyle"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hr.prototype,"hasTileMetadata",null);_.c([_.O("data.detailsLine"),_.I("design:type",Object),_.I("design:paramtypes",[])],hr.prototype,"getSecondaryDetails",null);
_.c([_.O("data.optionalDetailsLine"),_.I("design:type",Object),_.I("design:paramtypes",[])],hr.prototype,"getOptionalDetails",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hr.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],hr);
_.d(hr,"ytd-image-tile-renderer",function(){if(UbU!==void 0)return UbU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return UbU=G},{mode:1});var qaQ;var Kj=function(){return _.p.apply(this,arguments)||this};
_.r(Kj,_.p);Kj.prototype.getOpenLinkIcon=function(){return _.X("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Kj.prototype.onSitelinkTap=function(){_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.X("kevlar_command_handler_migration_killswitch"))_.tL(this.hostElement,this.data.clickCommands,this.hostElement);else for(var G=_.C(this.data.clickCommands),B=G.next();!B.done;B=G.next())this.ytComponentBehavior.resolveCommand(B.value)};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Kj.prototype,"rendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Kj.prototype,"data",void 0);_.c([_.mC({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Kj);
_.d(Kj,"ytd-sitelink-renderer",function(){if(qaQ!==void 0)return qaQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qaQ=G},{mode:1});var aU=function(){var G=_.p.apply(this,arguments)||this;G.paddingFix=_.X("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.r(aU,_.p);aU.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"}}}};
aU.prototype.dataChanged=function(){var G=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(B){B.clickTrackingParams&&delete B.clickTrackingParams;G.ytMacroReplacementBehavior.sendServiceRequestAction([B])})};
aU.prototype.shouldHideFooter=function(G){return!(G&&_.X("use_ads_engagement_panel_desktop_footer_cta"))};
_.ZN.Object.defineProperties(aU.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((B=this.data)==null?void 0:B.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(F){var D;return(D=_.Q(F,pK$))==null?void 0:D.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((B=this.data)==null?void 0:B.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(F){var D;return((D=_.Q(F,pK$))==null?void 0:D.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
aU.prototype.dataChanged=aU.prototype.dataChanged;_.c([_.k(y_$.YtMacroReplacementBehavior),_.I("design:type",Object)],aU.prototype,"ytMacroReplacementBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aU.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],aU.prototype,"paddingFix",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.imageTileRenderers"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],aU.prototype,"removeBorderFromImageTiles",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.imageTileRenderers"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],aU.prototype,"useFooteredMetadataRenderingStyle",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aU.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],aU);
_.d(aU,"ytd-action-engagement-panel-content-renderer",function(){if(lDG!==void 0)return lDG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return lDG=G},{mode:1});var EnD;var hNN=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;return _.l("ad-grid-card-image-full-metadata-view-model",{class:function(){var D;return((D=B().interaction)==null?0:D.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk}),_.rC(function(){return B().interaction},F)),
"aria-label":function(){var D,u;return(D=B().interaction)==null?void 0:(u=D.accessibility)==null?void 0:u.label}},_.l("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(D){return _.l(_.cK,{data:D.data,
customCommandResolver:F})}})),_.l("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.l(_.E,{cond:function(){return B().headline},
then:function(D){return _.l(_.Wd,{text:D,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.l(_.E,{cond:function(){return B().detailsLine},
then:function(D){return _.l("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.l(_.uR,{data:D},{adDetailsLineViewModel:function(u){return _.l(_.Sq,{data:u.data,customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.l(_.E,{cond:function(){return B().secondaryDetailsLine},
then:function(D){return _.l("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.l(_.uR,{data:D},{adDetailsLineViewModel:function(u){return _.l(_.Sq,{data:u.data,customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Th");var K8A=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;return _.l("ad-grid-card-image-view-model",{class:function(){var D;return((D=B().interaction)==null?0:D.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk}),_.rC(function(){return B().interaction},F)),
"aria-label":function(){var D,u;return(D=B().interaction)==null?void 0:(u=D.accessibility)==null?void 0:u.label}},_.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(D){return _.l(_.cK,{data:D.data,
customCommandResolver:F})}}),_.l("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.l(_.uR,{data:function(){return B().adCardBadge}},{adCardBadgeViewModel:_.Dxt})))},"Uh");var aDQ=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;return _.l("ad-grid-card-text-view-model",{class:function(){var D;return((D=B().interaction)==null?0:D.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk}),_.rC(function(){return B().interaction},F)),
"aria-label":function(){var D,u;return(D=B().interaction)==null?void 0:(u=D.accessibility)==null?void 0:u.label}},_.l("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.l(_.E,{cond:function(){return B().title},
then:function(D){return _.l(_.Wd,{text:D,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.l("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.l(_.jR,{each:function(){var D;
return((D=B())==null?void 0:D.descriptions)||[]},
keyBy:"INDEX"},function(D){return _.l(_.Wd,{text:D,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.l("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.l(_.uR,{data:function(){return B().moreInfoButton}},{adButtonViewModel:function(D){return _.l(_.TO,{data:D.data,
customCommandResolver:F})}})))},"Vh");var mbB=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;var D=G.adGridCardCollectionStyle;return _.l("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(u){var R,N=(R=B().interaction)==null?void 0:R.onFirstVisible;u&&N&&_.rJ(N)},
showOption:_.dk})),style:function(){return"grid-template-columns: repeat("+x6A(D?D():B().style)+", minmax(0, 1fr));"}},_.l(_.uR,{data:function(){var u;
return(u=B())==null?void 0:u.gridCards}},{adGridCardImageViewModel:function(u){return _.l(K8A,{data:u.data,
customCommandResolver:F})},
adGridCardImageFullMetadataViewModel:function(u){return _.l(hNN,{data:u.data,customCommandResolver:F})},
adGridCardTextViewModel:function(u){return _.l(aDQ,{data:u.data,customCommandResolver:F})}}))},"Wh");_.YN(_.Y(function(G){var B=G.data;return _.l("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.VX(_.tb({visibilityCallback:function(F){var D,u=(D=B().interaction)==null?void 0:D.onFirstVisible;F&&u&&_.rJ(u)},
showOption:_.dk}),_.rC(function(){return B().interaction},GPB))},_.l("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.l(_.E,{cond:_.JKo("(min-width: "+(fC()+tO)+"px)"),
then:function(){return _.l(_.uR,{data:function(){return B().adGridCardCollection}},{adGridCardCollectionViewModel:function(F){return _.l(mbB,{data:F.data,
customCommandResolver:GPB})}})},
else:function(){return _.l(_.uR,{data:function(){return B().adGridCardCollection}},{adGridCardCollectionViewModel:function(F){return _.l(mbB,{data:F.data,
customCommandResolver:GPB,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.l("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.l(_.uR,{data:function(){return B().adButton}},{adButtonViewModel:function(F){return _.l(_.TO,{data:F.data,
customCommandResolver:GPB})}})))},"Xh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;return _.l("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.VX(_.tb({visibilityCallback:function(F){var D,u=(D=B().interaction)==null?void 0:D.onFirstVisible;F&&u&&_.rJ(u)},
showOption:_.dk}),_.rC(function(){return B().interaction},BCZ))},_.l("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.l(_.uR,{data:function(){if(_.JKo("(min-width: "+(fC()+tO)+"px)")())var F=B().adGridCardCollection;
else{F=Object.assign({},_.Q(B().adGridCardCollection,A8Q));var D;F.gridCards!==void 0&&((D=F.gridCards)==null?void 0:D.length)>1?F.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":F.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";F={adGridCardCollectionViewModel:F}}return F}},{adGridCardCollectionViewModel:function(F){return _.l(mbB,{data:F.data,
customCommandResolver:BCZ})}})),_.l("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.l(_.uR,{data:function(){return B().adButton}},{adButtonViewModel:function(F){return _.l(_.TO,{data:F.data,
customCommandResolver:BCZ})}})))},"Yh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Hd}});var mQ=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return G};
_.r(mQ,_.p);_.w=mQ.prototype;_.w.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"}}}};
_.w.attached=function(){this.getDataFromPlayerAndRender()};
_.w.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.w.getDataFromPlayerAndRender=function(){var G=this,B=_.AZ(this.hostElement);B&&B.getPlayerPromise().then(function(F){G.getCachedDataAndListen(F)})};
_.w.getCachedDataAndListen=function(G){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=G)};
_.w.resolveCachedActions=function(){var G=_.Yf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(G=G&&G())&&!_.UK.isEmpty(G)&&this.sendUpdateEngagementPanelAction(G);(G=(G=_.Yf("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&G())&&!_.UK.isEmpty(G)&&this.sendChangeEngagementPanelVisibilityAction(G);(G=(G=_.Yf("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&G())&&!_.UK.isEmpty(G)&&this.sendScrollToEngagementPanelCommand(G)};
_.w.sendUpdateEngagementPanelAction=function(G){var B;_.T1(this.hostElement,"yt-update-engagement-panel-action",[(B=_.UK.get(G,"action"))!=null?B:G])};
_.w.sendChangeEngagementPanelVisibilityAction=function(G){_.T1(this.hostElement,"yt-change-engagement-panel-visibility-action",[G])};
_.w.sendScrollToEngagementPanelCommand=function(G){_.T1(this.hostElement,"yt-scroll-to-engagement-panel-command",[G])};
_.w.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.X("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.em(Error("Bl"))};
mQ.prototype.dataChanged=mQ.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],mQ.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],mQ.prototype,"componentBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],mQ.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],mQ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],mQ.prototype,"player",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mQ.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],mQ);
_.d(mQ,"ytd-ads-engagement-panel-content-renderer",function(){if(EnD!==void 0)return EnD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return EnD=G},{mode:1});var XW$;var Xv=function(){var G=_.p.apply(this,arguments)||this;G.player=null;G.JSC$20622_playerEvents=new Map;G.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return G};
_.r(Xv,_.p);_.w=Xv.prototype;_.w.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]]"}}}}}};
_.w.created=function(){this.player=null;this.JSC$20622_playerEvents=new Map;this.JSC$20622_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20622_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20622_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20622_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.w.attached=function(){var G=this,B=_.AZ();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));B&&B.getPlayerPromise().then(function(F){G.setPlayer(F);G.set("isPageLoad",!1)})};
_.w.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20622_playerEvents);this.set("player",G);G&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$20622_playerEvents),G.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.w.onLoopRangeChange=function(G){var B=_.te().resolve(_.fH(_.pA));if((!B||B.isOnWatch())&&this.hostElement.clientHeight){var F;!G&&((F=this.data)==null?0:F.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.w.onVideoProgress=function(G){var B,F,D=((B=this.player)==null?void 0:(F=B.getPresentingPlayerType)==null?void 0:F.call(B))===2;this.isAdPlaying!==D&&this.set("isAdPlaying",D);var u;if(!D&&(u=this.player)!=null&&u.getLoopRange()){F=this.player.getLoopRange();B=F.startTimeMs;F=F.endTimeMs;D=this.player.getProgressState(1).seekableStart;var R;B<D*1E3&&((R=this.data)==null?0:R.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
G=F<G*1E3;var N;((N=this.player)==null?0:N.getLoopRange())&&G&&this.player.seekTo(B/1E3)}};
_.w.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.w.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.w.onYtDeleteClipEngagementPanelCommand=function(G){_.Q(G,QrD).command&&this.ytComponentBehavior.resolveCommand(_.Q(G,QrD).command)};
_.ZN.Object.defineProperties(Xv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.$9("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Xv.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Xv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],Xv.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Xv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Xv.prototype,"isAdPlaying",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],Xv.prototype,"isPageLoad",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],Xv.prototype,"isDarkTheme",void 0);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xv.prototype,"voteCount",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xv.prototype,"channelEndpoint",null);_.c([_.O("channelEndpoint"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xv.prototype,"channelHref",null);_.c([_.mC({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Xv);
_.d(Xv,"ytd-clip-attribution-renderer",function(){if(XW$!==void 0)return XW$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return XW$=G},{mode:1});var QmB;var Qh=function(){var G=_.p.apply(this,arguments)||this;G.player=null;G.JSC$20627_playerEvents=new Map;return G};
_.r(Qh,_.p);_.w=Qh.prototype;_.w.created=function(){this.player=null;this.JSC$20627_playerEvents=new Map;this.JSC$20627_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20627_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20627_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.w.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.w.attached=function(){var G=this,B=_.AZ();B&&B.getPlayerPromise().then(function(F){G.setPlayer(F);G.set("isPageLoad",!1)})};
_.w.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20627_playerEvents);this.set("player",G);if(G){this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$20627_playerEvents);var B;(G==null?void 0:(B=G.getPresentingPlayerType)==null?void 0:B.call(G))===2&&this.playerAdStartHandler()}};
_.w.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.w.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.w.onVideoProgress=function(){var G,B,F=((G=this.player)==null?void 0:(B=G.getPresentingPlayerType)==null?void 0:B.call(G))===2;this.isAdPlaying!==F&&this.set("isAdPlaying",F)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],Qh.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Qh.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Qh.prototype,"isAdPlaying",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],Qh.prototype,"isPageLoad",void 0);_.c([_.mC({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Qh);
_.d(Qh,"ytd-clip-section-footer-renderer",function(){if(QmB!==void 0)return QmB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return QmB=G},{mode:1});var jmD;var L8D;var r_$=function(){return _.p.apply(this,arguments)||this};
_.r(r_$,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],r_$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],r_$.prototype,"data",void 0);_.c([_.mC({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],r_$);
_.d(r_$,"ytd-clip-ad-state-renderer",function(){if(L8D!==void 0)return L8D;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return L8D=G},{mode:1});var W8$;var jr=function(){var G=_.p.apply(this,arguments)||this;G.value="";G.valid=!1;G.userChangedValue=!1;G.disabled=!1;G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return G};
_.r(jr,_.p);_.w=jr.prototype;_.w.detached=function(){this.userChangedValue=!1};
_.w.handleKeyDown=function(G){if(_.ih)var B=13;else _.qA7&&_.Bz?B=13:B=13;G.keyCode===B&&G.preventDefault()};
_.w.handleInput=function(){var G=_.IF(this.hostElement).querySelector("#title");if(G){var B=(G.value||"").replace(/\r|\n/g," ");this.set("value",B);G.value=B;this.valid=G.validate();this.userChangedValue=!0}};
_.w.handleBlur=function(){this.valid=_.IF(this.hostElement).querySelector("#title").validate()};
_.w.onValueChanged=function(){_.cZ(this.hostElement,"title-changed",{title:this.value})};
_.w.onValidChanged=function(){_.cZ(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.w.setInput=function(G,B){var F=_.IF(this.hostElement).querySelector("#title");F&&(F.value=G,this.handleInput(),B&&(F.invalid=!1,this.valid=!0))};
_.w.onClipCreationDisable=function(){this.set("disabled",!0)};
_.w.onClipCreationEnable=function(){this.set("disabled",!1)};
_.w.onClipCreationVisibilityChange=function(G){var B=this;G.visible?requestAnimationFrame(function(){var F;((F=_.IF(B.hostElement).querySelector("#title"))==null?void 0:F.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
jr.prototype.onValidChanged=jr.prototype.onValidChanged;jr.prototype.onValueChanged=jr.prototype.onValueChanged;jr.prototype.handleBlur=jr.prototype.handleBlur;jr.prototype.handleInput=jr.prototype.handleInput;jr.prototype.handleKeyDown=jr.prototype.handleKeyDown;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],jr.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],jr.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],jr.prototype,"value",void 0);_.c([_.v(),_.I("design:type",Object)],jr.prototype,"valid",void 0);_.c([_.v(),_.I("design:type",Object)],jr.prototype,"userChangedValue",void 0);_.c([_.v(),_.I("design:type",Object)],jr.prototype,"disabled",void 0);_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],jr.prototype,"handleKeyDown",null);
_.c([_.Pm("input"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jr.prototype,"handleInput",null);_.c([_.Pm("blur"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jr.prototype,"handleBlur",null);_.c([_.Ga("value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jr.prototype,"onValueChanged",null);
_.c([_.Ga("valid"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jr.prototype,"onValidChanged",null);_.c([_.mC({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],jr);
_.d(jr,"ytd-clip-creation-text-input-renderer",function(){if(W8$!==void 0)return W8$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return W8$=G},{mode:1});var HvZ;var kU2;var Ov$;var eNN;var $bS;var Lj=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};G.pendingStoryboardImages_={};G.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];G.tickLabelInterval=30;G.mediumTickInterval=5;G.largeTickInterval=15;G.aboveRulerHeight=32;G.rulerHeight=50;G.smallTickHeight=4;G.mediumTickHeight=8;G.largeTickHeight=16;G.mediaListeners_=
{};return G};
_.r(Lj,_.p);_.w=Lj.prototype;_.w.attached=function(){var G=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(B){B=_.C(["screen and (min-resolution: "+B+")","screen and (max-resolution: "+B+")"]);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=window.matchMedia(F);D&&(G.mediaListeners_[F]=G.updatePixelRatio_.bind(G),D.addEventListener?D.addEventListener("change",G.mediaListeners_[F]):D.addListener?D.addListener(G.mediaListeners_[F]):delete G.mediaListeners_[F])}})};
_.w.detached=function(){this.setPlayer(null);for(var G=_.C(Object.keys(this.mediaListeners_)),B=G.next();!B.done;B=G.next()){var F=B.value;B=this.mediaListeners_[F];(F=window.matchMedia(F))&&(F.removeEventListener?F.removeEventListener("change",B):F.removeListener&&F.removeListener(B))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.w.onVisibilityChangedAction_=function(G){var B=this;G.visible&&!this.player_&&(G=_.AZ())&&G.getPlayerPromise().then(function(F){B.setPlayer(F)})};
_.w.setPlayer=function(G){G&&this.set("player_",G)};
_.w.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.w.setUpCanvas_=function(){var G=this.rulerWidth,B=this.devicePixelRatio_,F=this.visible;this.set("canvasReady_",!1);if(F&&B!==0){F=this.aboveRulerHeight+this.rulerHeight;var D=_.IF(this.hostElement).querySelector("#ticks");D.width=G*B;D.height=F*B;D.style.width=G+"px";D.style.height=F+"px";D.getContext("2d").scale(B,B);this.set("canvasReady_",!0)}};
_.w.drawRuler_=function(G,B,F,D,u,R,N,y,U,q,h,K){G&&F&&B&&(G=_.IF(this.hostElement).querySelector("#ticks"),B=G.getContext("2d"),B.clearRect(0,0,G.width,G.height),B.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),B.lineWidth=2,B.beginPath(),B.moveTo(0,this.aboveRulerHeight),B.lineTo(G.width,this.aboveRulerHeight),B.moveTo(0,G.height),B.lineTo(G.width,G.height),B.stroke(),this.drawRulerTicks_(G,R,u,D),this.drawStoryboardImages_(G,F,R,u,D),B.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
B.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(N-R,D,!1),this.rulerHeight),F=this.timeToPixels_(y-R,D,!1),B.fillRect(F,this.aboveRulerHeight,G.width-F,this.rulerHeight),this.drawSpeedLines_(G,R,K))};
_.w.drawRulerTicks_=function(G,B,F,D){var u=G.getContext("2d");u.save();u.lineWidth=1;for(var R=Math.floor(Math.max(0,B-this.tickLabelInterval));R<B+F;R++){u.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var N=(R-B)*D;u.beginPath();u.moveTo(N,G.height);var y=this.smallTickHeight;R%this.largeTickInterval===0?y=this.largeTickHeight:R%this.mediumTickInterval===0&&(y=this.mediumTickHeight);u.lineTo(N,G.height-y);u.stroke();R%this.tickLabelInterval===0&&(u.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),u.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),u.fillText(SX(R),N+4,12),u.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),u.moveTo(N,0),u.lineTo(N,this.aboveRulerHeight),u.stroke())}u.restore()};
_.w.percentToHex_=function(G){G=Math.round(G*255).toString(16);G.length<2&&(G="0"+G);return G};
_.w.drawSpeedLines_=function(G,B,F){var D=G.getContext("2d");D.save();var u=Math.min(25,Math.abs(F)-15)/25,R=G.width*.3*u,N=G.width*-.3,y=G.width*1.3,U=this.aboveRulerHeight;G=G.height;var q=Math.round(4*u),h=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");h.length<7&&(h="#"+h.substring(1,4).repeat(2));var K=this.percentToHex_(.5+u/2);K=h+K;h+="00";if(u>0)for(u=0;u<q;u++){var a=N+Math.random()*(y-N),m=U+Math.random()*(G-U),L=R+B%R,W=D.createLinearGradient(a,m,a+L,m);
F<0?(W.addColorStop(0,K),W.addColorStop(.4,K),W.addColorStop(.9,h)):(W.addColorStop(.1,h),W.addColorStop(.6,K),W.addColorStop(1,K));D.strokeStyle=W;D.lineWidth=1;D.beginPath();D.moveTo(a,m);D.lineTo(a+L,m);D.stroke()}D.restore()};
_.w.getStoryboardForTime_=function(G,B,F){F===void 0&&(F=B.getNumberOfStoryboardLevels()-1);G=B.getStoryboardFrameIndex(G,F);return B.getStoryboardFrame(G,F)};
_.w.drawStoryboardImages_=function(G,B,F,D,u){if(!this.disabled){G=G.getContext("2d");var R=this.getStoryboardForTime_(0,B);if(R){var N=R.width/R.columns;R=R.height/R.rows;var y=N/R,U=this.rulerHeight*y;U=this.tickLabelInterval*(y<this.tickLabelInterval*u/this.rulerHeight?1/Math.floor(this.tickLabelInterval*u/U):Math.round(U/(this.tickLabelInterval*u)));var q=U*u,h=this.rulerHeight,K=q/this.rulerHeight,a=Math.floor(Math.max(0,F-U));for(a-=a%U;a<F+D;a+=U){var m=this.getStoryboardForTime_(a,B),L=this.getPreloadedStoryboard_(m.url);
if(L){var W=(a-F)*u,e=this.aboveRulerHeight,b=m.column*N,M=m.row*R;if(y<K){var t=h/(q/y);m=N;t*=R;M+=(R-t)/2}else m=q/(h*y)*N,t=R,b+=(N-m)/2;G.drawImage(L,b,M,m,t,W,e,q,h)}else this.fetchStoryboardImage_(m)}}}};
_.w.getPreloadedStoryboard_=function(G){return this.storyboardImages_.find(function(B){if(B.src==G)return!0;var F=B.src.indexOf(G);return F!=-1&&F==B.src.length-G.length})};
_.w.fetchStoryboardImage_=function(G){var B=this,F=this.getPreloadedStoryboard_(G.url),D=this.pendingStoryboardImages_[G.url];F||D!==void 0||(F=new Promise(function(u){var R=new Image(G.width,G.height);R.src=G.url;R.onload=function(){u(R)};
R.onerror=function(){u(null)}}),this.pendingStoryboardImages_[G.url]=F,F.then(function(u){u&&B.push("storyboardImages_",u);
return u}).finally(function(){delete B.pendingStoryboardImages_[G.url]}))};
_.w.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.w.timeToPixels_=function(G,B,F){G*=B;return F===void 0||F?G+"px":G};
_.w.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Lj.prototype.drawRuler_=Lj.prototype.drawRuler_;Lj.prototype.setUpCanvas_=Lj.prototype.setUpCanvas_;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Lj.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Lj.prototype,"start",void 0);_.c([_.v({value:30}),_.I("design:type",Number)],Lj.prototype,"end",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],Lj.prototype,"visible",void 0);_.c([_.v(),_.I("design:type",Object)],Lj.prototype,"player_",void 0);_.c([_.v(),_.I("design:type",Number)],Lj.prototype,"tickSpacing",void 0);_.c([_.v(),_.I("design:type",Number)],Lj.prototype,"windowSizeSec",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Lj.prototype,"rulerWidth",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Lj.prototype,"rulerShift",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],Lj.prototype,"canvasReady_",void 0);_.c([_.v({value:function(){return[]}}),
_.I("design:type",Array)],Lj.prototype,"storyboardImages_",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Lj.prototype,"disabled",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Lj.prototype,"forceRender_",void 0);_.c([_.v({value:1}),_.I("design:type",Number)],Lj.prototype,"devicePixelRatio_",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Lj.prototype,"windowSpeed",void 0);
_.c([_.Ga("visible","devicePixelRatio_","rulerWidth"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Lj.prototype,"setUpCanvas_",null);
_.c([_.Ga("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.I("design:type",Function),_.I("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.I("design:returntype")],Lj.prototype,"drawRuler_",null);_.c([_.ay({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Lj);
_.d(Lj,"yt-clip-creation-scrubber-canvas",function(){if($bS===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);$bS=G}G=$bS;return G},
{mode:2});var zN$;var bv$;var r7=function(){var G=_.p.apply(this,arguments)||this;G.start=0;G.end=30;G.visible=!1;G.draggingLeft_=!1;G.draggingRight_=!1;G.draggingRuler_=!1;G.draggingWindow_=!1;G.seekableStart=0;G.seekableEnd=0;G.rulerWidth_=0;G.rulerShift_=0;G.windowSlideSpeed=0;G.disabled=!1;G.initialized=!1;G.durationAccessibilityLabel="";G.activeLoopRange_=!1;G.rulerDragMouseStart_=0;G.rulerDragRulerStart_=0;G.rulerDragStartTime_=0;G.rulerDragEndTime_=0;G.dragMouseLastX_=0;G.scrollInterval_=null;G.scrubberVe_=null;G.boundHandlers_=
{};G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.r(r7,_.p);_.w=r7.prototype;
_.w.created=function(){var G=this;this.JSC$20641_playerEvents=new Map;this.JSC$20641_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20641_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20641_playerEvents.set("onStateChange",this.onStateChange_);var B={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(B).forEach(function(F){G.boundHandlers_[F]=B[F].bind(G)})};
_.w.attached=function(){this.activeLoopRange_=!1;_.IF(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.IF(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.ge(156731)};
_.w.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.IF(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.IF(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.w.onVisibilityChangedAction_=function(G){var B=this;G.visible&&!this.player_&&(G=_.AZ())&&G.getPlayerPromise().then(function(F){B.setPlayer(F)})};
_.w.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20641_playerEvents);G&&(this.set("player_",G),this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$20641_playerEvents))};
_.w.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.w.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.w.beginHandleDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=G.clientX,G.target===_.IF(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():G.target===_.IF(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.w.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.w.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.w.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.w.beginRulerDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=G.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.w.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.w.beginWindowScroll_=function(){var G=this;this.scrollInterval_=setInterval(function(){var B=G.windowSlideSpeed;if(B=h2U(G.start,G.boundedRulerStartLimit_())?B-.1:h2U(G.end,G.boundedRulerEndLimit_())?B+.1:0){var F=G.capRulerOffset_(G.rulerShift_+B);F==G.rulerShift_?B=0:(G.set("rulerShift_",F),_.cZ(G.hostElement,"set-fixed-length-range",{start:G.start+B,duration:G.end-G.start}))}G.set("windowSlideSpeed",B)},33)};
_.w.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.w.endDrag_=function(){this.logClick();var G=void 0;this.draggingRight_?G=this.end-1:this.draggingLeft_&&(G=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,G);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))};
_.w.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.w.updateRulerSize_=function(){this.set("rulerWidth_",_.IF(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.w.handleMouseDrag_=function(G){G.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(G):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(G):this.draggingWindow_&&this.handleWindowDrag_(G))};
_.w.handleRulerDrag_=function(G){G=this.pixelsToTime_(G.clientX-this.rulerDragMouseStart_);G=this.capRulerOffset_(this.rulerDragRulerStart_-G);this.set("rulerShift_",G);var B=this.rulerDragStartTime_-(this.rulerDragRulerStart_-G);_.cZ(this.hostElement,"set-fixed-length-range",{start:B,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-G)-B})};
_.w.handleWindowDrag_=function(G){var B=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(B);_.cZ(this.hostElement,"set-fixed-length-range",{start:this.start+G,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.w.capRulerOffset_=function(G){var B=this.seekableStart-this.pixelsToTime_(16),F=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(B,G),F)};
_.w.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.w.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.w.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.w.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.w.handleWindowHandleDrag_=function(G){var B=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(B);if(this.draggingLeft_){var F=this.start+G;var D=this.end}else this.draggingRight_&&(F=this.start,D=this.end+G);_.cZ(this.hostElement,"set-range",{start:F,end:D,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.w.onVideoProgress_=function(G){this.disabled||(G=this.timeToPixels_(G-this.rulerShift_,this.tickSpacing_),_.IF(this.hostElement).querySelector("#playhead").style.transform="translateX("+G+")")};
_.w.onClipCreationDisable_=function(){this.endDrag_()};
_.w.timeToPixels_=function(G,B,F){G*=B;return F===void 0||F?G+"px":G};
_.w.pixelsToTime_=function(G){return G/this.tickSpacing_};
_.w.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.w.centerRuler_=function(G,B,F){this.set("rulerShift_",this.capRulerOffset_(G+(B-G)/2-F/2))};
_.w.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.w.updateLoopRange_=function(G,B,F,D,u,R,N){G&&(B&&D&&!F?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(G.pauseVideo(),G.seekTo(u,!1,void 0,void 0,50)):this.draggingRight_?(G.pauseVideo(),G.seekTo(R-.1,!1,void 0,void 0,50)):(N!==void 0?G.seekTo(N,!0,void 0,void 0,50):(B=G.getCurrentTime(),B<u||B>R?G.seekTo(u,!0,void 0,void 0,50):G.seekTo(B,!0,void 0,void 0,50)),G.playVideo()),G.setLoopRange({startTimeMs:u*1E3,endTimeMs:R*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(G.getCurrentTime())):
this.activeLoopRange_&&(G.setLoopRange(null),this.activeLoopRange_=!1))};
_.w.updateHandles_=function(){_.IF(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.IF(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.w.updateRuler_=function(){var G=this.end,B=this.start,F=this.draggableStartLimit_(),D=this.draggableEndLimit_();(B<F-.001||G>D+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.w.computeDurationLabel_=function(G,B){return G?G.replace("$clip_length",parseFloat(B).toFixed(1)):""};
_.w.computeDuration_=function(G,B){return this.isValidTime_(G)&&this.isValidTime_(B)&&G<B?B-G:0};
_.w.isValidTime_=function(G){return isNaN(parseFloat(G))||G<0?!1:this.player_?G>=this.seekableStart&&G<=this.seekableEnd:!0};
_.w.computeWindowSizeSec_=function(G,B,F){return Math.min((G||12E4)/1E3,F-B)};
_.w.computeTickSpacing_=function(G,B){return B?B/G:1};
_.w.onDragStateChanged_=function(){_.cZ(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.w.centerRangeOnTime_=function(G){var B=this.duration;G=FRH(G-B/2,B,this.seekableStart,this.seekableEnd);_.cZ(this.hostElement,"set-fixed-length-range",{start:G.start,duration:G.end-G.start})};
_.w.nearlyLessThan_=function(G,B,F){return G+(F===void 0?1E-6:F)<B};
_.w.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var G=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(G,this.start)||this.nearlyLessThan_(this.end,G))&&this.centerRangeOnTime_(G)}};
_.w.onStateChange_=function(G){this.visible&&!this.disabled&&G==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.w.computeDragState_=function(G,B,F,D){return G?"left":B?"right":F?"ruler":D?"window":"none"};
_.w.logClick=function(){var G=_.qW(),B=_.Uw();G&&B&&this.scrubberVe_&&(_.X("combine_ve_grafts")?_.Zx(_.Rh(),this.scrubberVe_,B):_.WT(G,B,this.scrubberVe_),_.$I(G,this.scrubberVe_))};
r7.prototype.onDragStateChanged_=r7.prototype.onDragStateChanged_;r7.prototype.updateRuler_=r7.prototype.updateRuler_;r7.prototype.updateHandles_=r7.prototype.updateHandles_;r7.prototype.onUpdateLoopRange=r7.prototype.onUpdateLoopRange;r7.prototype.onInitializedChanged_=r7.prototype.onInitializedChanged_;r7.prototype.onVisibleChanged_=r7.prototype.onVisibleChanged_;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],r7.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",Object)],r7.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"start",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"end",void 0);_.c([_.v({computed:"computeDuration_(start, end)"}),_.I("design:type",Number)],r7.prototype,"duration",void 0);
_.c([_.v(),_.I("design:type",String)],r7.prototype,"lengthTemplate",void 0);_.c([_.v({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.I("design:type",String)],r7.prototype,"durationLabel",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"visible",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"player_",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"draggingLeft_",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"draggingRight_",void 0);
_.c([_.v(),_.I("design:type",Object)],r7.prototype,"draggingRuler_",void 0);_.c([_.v({value:!1}),_.I("design:type",Object)],r7.prototype,"draggingWindow_",void 0);_.c([_.v({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.I("design:type",Number)],r7.prototype,"tickSpacing_",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"seekableStart",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"seekableEnd",void 0);
_.c([_.v(),_.I("design:type",Number)],r7.prototype,"windowSizeMs",void 0);_.c([_.v({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.I("design:type",Number)],r7.prototype,"windowSizeSec_",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"rulerWidth_",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"rulerShift_",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"windowSlideSpeed",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],r7.prototype,"disabled",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"initialized",void 0);_.c([_.v(),_.I("design:type",Object)],r7.prototype,"durationAccessibilityLabel",void 0);_.c([_.v({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.I("design:type",String)],r7.prototype,"dragState",void 0);
_.c([_.Ga("visible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r7.prototype,"onVisibleChanged_",null);_.c([_.Ga("initialized"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r7.prototype,"onInitializedChanged_",null);_.c([_.Ga("player_","visible","disabled","initialized","start","end"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r7.prototype,"onUpdateLoopRange",null);
_.c([_.Ga("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r7.prototype,"updateHandles_",null);_.c([_.Ga("start","end"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r7.prototype,"updateRuler_",null);
_.c([_.Ga("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],r7.prototype,"onDragStateChanged_",null);_.c([_.ay({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],r7);
_.d(r7,"yt-clip-creation-scrubber-view",function(){if(bv$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;zN$===void 0&&(zN$=document.createElement("template"));var D=zN$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);bv$=G}G=bv$;return G},{mode:2});var Wu=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};G.startHighlightTimeout=0;G.endHighlightTimeout=0;return G};
_.r(Wu,_.p);_.w=Wu.prototype;_.w.attached=function(){var G=this;this.startInput.addEventListener("input",function(B){return G.handleStartInput_(B)});
this.endInput.addEventListener("input",function(B){return G.handleEndInput_(B)});
this.startInput.addEventListener("focusout",function(B){return G.handleStartBlur_(B)});
this.endInput.addEventListener("focusout",function(B){return G.handleEndBlur_(B)})};
_.w.setPlayer=function(G){this.set("player_",G)};
_.w.onSetFixedLengthRange_=function(G){var B=G.detail;G=B.start;var F=B.duration,D=B.startLimit;B=B.endLimit;D||(D=this.seekableStart_);B||(B=this.seekableEnd_);G=FRH(G,F,D,B);this.start=G.start;this.end=G.end};
_.w.onSetRange_=function(G){var B=G.detail;G=B.start;var F=B.end,D=B.startLimit;B=B.endLimit;D||(D=this.seekableStart_);B||(B=this.seekableEnd_);if(G=DjD(G,F,D,B,this.minLengthSec,this.maxLengthSec))this.start=G.start,this.end=G.end};
_.w.updateInputs_=function(){var G=this.end,B=this.start;this.startInput.focused||(this.startInput.value=SX(B,!0));this.endInput.focused||(this.endInput.value=SX(G,!0))};
_.w.handleStartInput_=function(G){G=ihz(G.target.value);if(G===null)this.set("startValid",!1);else{var B=this.end,F=DjD(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);F?(this.set("endWillUpdate",F.end!==B),this.set("startValid",F.start===G)):this.set("startValid",!1)}};
_.w.handleEndInput_=function(G){G=ihz(G.target.value);if(G===null)this.set("endValid",!1);else{var B=this.start,F=ujG(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);F?(this.set("startWillUpdate",F.start!==B),this.set("endValid",F.end===G)):this.set("endValid",!1)}};
_.w.handleStartBlur_=function(G){G=ihz(G.target.value);G===null?this.startInput.value=SX(this.start,!0):this.forceUpdateInputs_(DjD(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.w.handleEndBlur_=function(G){G=ihz(G.target.value);G===null?this.endInput.value=SX(this.end,!0):this.forceUpdateInputs_(ujG(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.w.forceUpdateInputs_=function(G){G&&(this.start=G.start,this.end=G.end);this.startInput.value=SX(this.start,!0);this.endInput.value=SX(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.w.initializeClipRange_=function(){var G=this.seekableEnd_,B=this.seekableStart_,F=this.visible_,D=this.player_;if(!D||!F||B===null||!G)this.set("initialized",!1);else if(!this.initialized){var u=D.getCurrentTime(),R=this.getDefaultLengthSec_();F=D.getVideoData();var N=D.getPlayerState()==1,y=F.isLive;R=Math.min(R,G-B);u=Math.max(0,u);G=y?ujG(u-R,u,B,G,this.minLengthSec,this.maxLengthSec):N?FRH(u-R/2,R,B,G):FRH(u,R,B,G);this.start=G.start;this.end=G.end;this.set("initialized",!0);F.isLive&&D.seekTo(G.start);
this.startInput.value=SX(this.start,!0);this.endInput.value=SX(this.end,!0)}};
_.w.onStartChanged_=function(){var G=this;_.cZ(this.hostElement,"start-changed",{start:this.start});var B;isNaN((B=this.oldStart)!=null?B:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){G.set("highlightStart",!1);G.startHighlightTimeout=0;G.oldStart=G.start},3E3))};
_.w.onEndChanged_=function(){var G=this;_.cZ(this.hostElement,"end-changed",{end:this.end});var B;isNaN((B=this.oldEnd)!=null?B:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){G.set("highlightEnd",!1);G.endHighlightTimeout=0;G.oldEnd=G.end},3E3))};
_.w.onVisibilityChangedAction_=function(G){var B=this;this.set("visible_",G.visible);this.visible_&&!this.player_&&(G=_.AZ())&&G.getPlayerPromise().then(function(F){B.setPlayer(F)})};
_.w.computeMinLengthSec_=function(G){return G/1E3||5};
_.w.computeMaxLengthSec_=function(G){return G/1E3||60};
_.w.computeDefaultLengthSec_=function(G){return G/1E3};
_.w.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.w.computeSeekableStart_=function(G,B){return G&&B?G.getProgressState(1).seekableStart:0};
_.w.computeSeekableEnd_=function(G,B){return G&&B?G.getProgressState(1).seekableEnd:0};
_.w.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.w.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.w.onDragState_=function(G){this.set("highlightStart",G.detail.startChanging);this.set("highlightEnd",G.detail.endChanging)};
Wu.prototype.onDragState_=Wu.prototype.onDragState_;Wu.prototype.onEndChanged_=Wu.prototype.onEndChanged_;Wu.prototype.onStartChanged_=Wu.prototype.onStartChanged_;Wu.prototype.initializeClipRange_=Wu.prototype.initializeClipRange_;Wu.prototype.updateInputs_=Wu.prototype.updateInputs_;Wu.prototype.onSetRange_=Wu.prototype.onSetRange_;Wu.prototype.onSetFixedLengthRange_=Wu.prototype.onSetFixedLengthRange_;
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Wu.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Wu.prototype,"data",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Wu.prototype,"start",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Wu.prototype,"startValid",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Wu.prototype,"startWillUpdate",void 0);_.c([_.v({value:30}),_.I("design:type",Number)],Wu.prototype,"end",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Wu.prototype,"endValid",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Wu.prototype,"endWillUpdate",void 0);_.c([_.v({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.I("design:type",Number)],Wu.prototype,"minLengthSec",void 0);
_.c([_.v({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.I("design:type",Number)],Wu.prototype,"maxLengthSec",void 0);_.c([_.v({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.I("design:type",Number)],Wu.prototype,"defaultLengthSec",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Wu.prototype,"visible_",void 0);_.c([_.v(),_.I("design:type",Object)],Wu.prototype,"player_",void 0);
_.c([_.v({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.I("design:type",Number)],Wu.prototype,"seekableStart_",void 0);_.c([_.v({computed:"computeSeekableEnd_(player_, visible_)"}),_.I("design:type",Number)],Wu.prototype,"seekableEnd_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Wu.prototype,"initialized",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Wu.prototype,"disabled",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Wu.prototype,"highlightStart",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Wu.prototype,"highlightEnd",void 0);_.c([_.iA("#start"),_.I("design:type",HTMLInputElement)],Wu.prototype,"startInput",void 0);_.c([_.iA("#end"),_.I("design:type",HTMLInputElement)],Wu.prototype,"endInput",void 0);
_.c([_.Pm("set-fixed-length-range"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Wu.prototype,"onSetFixedLengthRange_",null);_.c([_.Pm("set-range"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Wu.prototype,"onSetRange_",null);_.c([_.Ga("start","end"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wu.prototype,"updateInputs_",null);
_.c([_.Ga("player_","visible_","seekableStart_","seekableEnd_"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wu.prototype,"initializeClipRange_",null);_.c([_.Ga("start"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wu.prototype,"onStartChanged_",null);_.c([_.Ga("end"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wu.prototype,"onEndChanged_",null);
_.c([_.Pm("clips-drag-state"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Wu.prototype,"onDragState_",null);_.c([_.ay({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Wu);
_.d(Wu,"yt-clip-creation-scrubber-renderer",function(){if(eNN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Ov$===void 0&&(Ov$=document.createElement("template"));var D=Ov$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);eNN=G}G=eNN;return G},{mode:2});var Hu=function(){var G=_.p.apply(this,arguments)||this;G.player_=null;G.JSC$20655_playerEvents=new Map;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.r(Hu,_.p);_.w=Hu.prototype;_.w.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"}}}};
_.w.created=function(){this.JSC$20655_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20655_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20655_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20655_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.w.detached=function(){this.setPlayer(null)};
_.w.onVisibilityChangedAction_=function(G){var B=this,F;if((F=this.data)==null?0:F.externalVideoId){var D;this.videoId=(D=this.data)==null?void 0:D.externalVideoId}this.getPlayer().then(function(u){if(G.visible)B.returnTime=u.getCurrentTime(),B.isAtLiveHead=u.getProgressState().isAtLiveHead;else{var R=B.returnTime;B.isAtLiveHead&&(R=Number.POSITIVE_INFINITY);u.seekTo(R,void 0,void 0,void 0,51)}})};
_.w.getPlayer=function(){var G=this;if(!this.player_){var B=_.AZ();if(B)return B.getPlayerPromise().then(function(F){G.setPlayer(F);return F})}return Promise.resolve(this.player_)};
_.w.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20655_playerEvents);if(G){this.player_=G;var B;((B=this.data)==null?0:B.externalVideoId)||this.set("videoId",G.getVideoData().video_id||"");var F;(G==null?void 0:(F=G.getPresentingPlayerType)==null?void 0:F.call(G))===2&&(this.set("isAdPlaying",!0),_.T1(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$20655_playerEvents)}};
_.w.ready=function(){_.IF(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.w.onTitleChanged_=function(G){this.set("titleValue",G.detail.title)};
_.w.onStartChanged_=function(G){this.set("start",G.detail.start)};
_.w.onEndChanged_=function(G){this.set("end",G.detail.end)};
_.w.onTitleValidChanged_=function(G){this.set("titleValid",G.detail.valid)};
_.w.onStartValidChanged_=function(G){this.set("startValid",G.detail.valid)};
_.w.onEndValidChanged_=function(G){this.set("endValid",G.detail.valid)};
_.w.onVideoDataChange_=function(){var G;if((G=this.data)==null||!G.externalVideoId){var B;this.set("videoId",((B=this.player_)==null?void 0:B.getVideoData().video_id)||"")}};
_.w.computeFormValid_=function(G,B,F,D){return!!(G&&B&&F&&D)};
_.w.computeCancelButton_=function(G,B,F){return G&&_.Q(G,_.Xq)?{buttonRenderer:Object.assign({},_.Q(G,_.Xq),{isDisabled:B||F})}:null};
_.w.computeSubmitButton_=function(G,B,F){return G&&_.Q(G,_.Xq)?{buttonRenderer:Object.assign({},_.Q(G,_.Xq),{command:void 0,isDisabled:!this.formValid||B||F})}:null};
_.w.computeSubmitCommand_=function(G){return G||null};
_.w.onSubmit_=function(G){var B=this;G.stopPropagation();G.preventDefault();this.submitCommand_&&(G={},G.comment_text=this.titleValue,G.clip_external_video_id=this.videoId,G.clip_offset_ms=parseInt(this.start*1E3,10),G.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.fi(this.hostElement,[this.submitCommand_,G]).then(function(){B.set("isLoading_",!1)},function(){B.set("isLoading_",!1)}))};
_.w.playerAdStartHandler_=function(){_.T1(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.w.playerAdEndHandler_=function(){_.T1(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.w.onVideoProgress_=function(){var G=this;this.getPlayer().then(function(B){var F,D=(B==null?void 0:(F=B.getPresentingPlayerType)==null?void 0:F.call(B))===2;G.isAdPlaying!==D&&(D?G.playerAdStartHandler_():G.playerAdEndHandler_())})};
Hu.prototype.onEndValidChanged_=Hu.prototype.onEndValidChanged_;Hu.prototype.onStartValidChanged_=Hu.prototype.onStartValidChanged_;Hu.prototype.onTitleValidChanged_=Hu.prototype.onTitleValidChanged_;Hu.prototype.onEndChanged_=Hu.prototype.onEndChanged_;Hu.prototype.onStartChanged_=Hu.prototype.onStartChanged_;Hu.prototype.onTitleChanged_=Hu.prototype.onTitleChanged_;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Hu.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",Object)],Hu.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Hu.prototype,"data",void 0);_.c([_.v({value:""}),_.I("design:type",String)],Hu.prototype,"titleValue",void 0);
_.c([_.v({value:!1}),_.I("design:type",Boolean)],Hu.prototype,"titleValid",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Hu.prototype,"start",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Hu.prototype,"startValid",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Hu.prototype,"end",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Hu.prototype,"endValid",void 0);_.c([_.v({value:""}),_.I("design:type",String)],Hu.prototype,"videoId",void 0);
_.c([_.v({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.I("design:type",Boolean)],Hu.prototype,"formValid",void 0);_.c([_.v({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.I("design:type",Object)],Hu.prototype,"submitButton_",void 0);_.c([_.v({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.I("design:type",Object)],Hu.prototype,"submitCommand_",void 0);
_.c([_.v({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.I("design:type",Object)],Hu.prototype,"cancelButton_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Hu.prototype,"isLoading_",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Hu.prototype,"isAdPlaying",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Hu.prototype,"returnTime",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Hu.prototype,"isAtLiveHead",void 0);
_.c([_.Pm("title-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Hu.prototype,"onTitleChanged_",null);_.c([_.Pm("start-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Hu.prototype,"onStartChanged_",null);_.c([_.Pm("end-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Hu.prototype,"onEndChanged_",null);
_.c([_.Pm("title-valid-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Hu.prototype,"onTitleValidChanged_",null);_.c([_.Pm("start-valid-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Hu.prototype,"onStartValidChanged_",null);_.c([_.Pm("end-valid-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Hu.prototype,"onEndValidChanged_",null);
_.c([_.ay({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Hu);
_.d(Hu,"yt-clip-creation-renderer",function(){if(kU2===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;HvZ===void 0&&(HvZ=document.createElement("template"));var D=HvZ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);kU2=G}G=kU2;return G},{mode:2});var kx=function(){return _.p.apply(this,arguments)||this};
_.r(kx,_.p);kx.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"}}}};
kx.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(G){return G.hasOwnProperty("clipCreationRenderer")})&&_.T1(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
kx.prototype.onPanelContentVisibleChanged=kx.prototype.onPanelContentVisibleChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Q8.YtVisibilityBehavior),_.I("design:type",Object)],kx.prototype,"ytVisibilityBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],kx.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],kx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],kx.prototype,"panelContentVisible",void 0);_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kx.prototype,"onPanelContentVisibleChanged",null);_.c([_.mC({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],kx);
_.d(kx,"ytd-clip-section-renderer",function(){if(jmD!==void 0)return jmD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jmD=G},{mode:1});var V4H;var vnB;var on$;var M4U=function(){return _.p.apply(this,arguments)||this};
_.r(M4U,_.p);_.c([_.v(),_.I("design:type",Object)],M4U.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],M4U.prototype,"ytRendererBehavior",void 0);_.c([_.mC({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],M4U);
_.d(M4U,"ytd-hashtag-grid-tile-renderer",function(){if(on$!==void 0)return on$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return on$=G},{mode:1});var Om=function(){return _.p.apply(this,arguments)||this};
_.r(Om,_.p);Om.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Om.prototype.updateRichGridTrendingHashtagsVisibility=function(){var G,B;if(((G=this.data)==null||!G.isExpanded)&&(B=this.data)!=null&&B.tiles){G=this.data.tiles.length;B=G>this.richGridItemsPerRow?this.richGridItemsPerRow+1:G;var F=Math.ceil(G/B);this.fullyVisibleRows=G%B===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}};
Om.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Om.prototype.updateRichGridTrendingHashtagsVisibility=Om.prototype.updateRichGridTrendingHashtagsVisibility;_.c([_.v(),_.I("design:type",Object)],Om.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Number)],Om.prototype,"fullyVisibleRows",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Om.prototype,"isShowMoreVisible",void 0);_.c([_.v({selector:_.EX,value:0}),_.I("design:type",Number)],Om.prototype,"richGridItemsPerRow",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Om.prototype,"ytdReduxBehavior",void 0);_.c([_.Ga("data","richGridItemsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Om.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.c([_.mC({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Om);
_.d(Om,"ytd-hashtag-grid-shelf-renderer",function(){if(vnB!==void 0)return vnB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vnB=G},{mode:1});var pWB;var YaQ;var A_$=0,er=function(){var G=_.p.call(this)||this;G.selected=!1;G.isOverlay=!1;G.inputId="toggle-option-"+A_$;A_$++;return G};
_.r(er,_.p);er.prototype.onTap=function(){_.cZ(this.hostElement,"ytd-toggle-option-clicked")};
_.c([_.v(),_.I("design:type",String)],er.prototype,"label",void 0);_.c([_.v(),_.I("design:type",String)],er.prototype,"inputId",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],er.prototype,"selected",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],er.prototype,"isOverlay",void 0);_.c([_.mC({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.I("design:paramtypes",[])],er);
_.d(er,"ytd-toggle-option-renderer",function(){if(YaQ!==void 0)return YaQ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return YaQ=G},{mode:1});var $x=function(){var G=_.p.apply(this,arguments)||this;G.isToggleOption=!1;G.isOverlay=!1;return G};
_.r($x,_.p);$x.prototype.onTap=function(G){G.preventDefault();this.data&&(G=!this.data.checked,this.set("data.checked",G),_.cZ(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:G,value:this.data.value}))};
_.ZN.Object.defineProperties($x.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
$x.prototype.onTap=$x.prototype.onTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$x.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],$x.prototype,"isToggleOption",void 0);_.c([_.v(),_.I("design:type",Object)],$x.prototype,"isOverlay",void 0);_.c([_.O("data.responseText"),_.I("design:type",String),_.I("design:paramtypes",[])],$x.prototype,"label",null);
_.c([_.Pm("ytd-toggle-option-clicked"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],$x.prototype,"onTap",null);_.c([_.mC({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],$x);
_.d($x,"ytd-checkbox-survey-option-renderer",function(){if(pWB!==void 0)return pWB;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return pWB=G},{mode:1});var dbU;var J_D;var zY=function(){var G=_.p.apply(this,arguments)||this;G.checked=!1;G.isToggleOption=!1;return G};
_.r(zY,_.p);zY.prototype.onTap=function(){this.data&&(this.checked?_.T1(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.T1(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
zY.prototype.onTap=zY.prototype.onTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zY.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],zY.prototype,"checked",void 0);_.c([_.v(),_.I("design:type",Object)],zY.prototype,"isToggleOption",void 0);_.c([_.Pm("ytd-toggle-option-clicked"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],zY.prototype,"onTap",null);
_.c([_.mC({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],zY);
_.d(zY,"ytd-radio-button-survey-option-renderer",function(){if(J_D!==void 0)return J_D;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return J_D=G},{mode:1});var b7=function(){var G=_.p.apply(this,arguments)||this;G.disableAnimation=!1;G.isToggleOption=!0;G.followUpSurveyCommand=null;G.selectedRatingEndpoint=null;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.styleOverrideAttribute=!0;G.isDarkMode=!1;G.isSubmitted=!1;G.roundedContainer=!0;G.improveShortsResponseRate=_.X("web_improve_shorts_response_rate");G.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 G};
_.r(b7,_.p);_.w=b7.prototype;
_.w.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"}}}}};
_.w.attached=function(){var G=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(F){var D;if((D=F[0])!=null&&D.isIntersecting){_.De().reportShown(G.hostElement);var u;(u=G.intersectionObserver)==null||u.unobserve(G.hostElement)}},{rootMargin:"0px",
threshold:.6});var B;(B=this.intersectionObserver)==null||B.observe(this.hostElement)};
_.w.onDarkModeToggledAction=function(G){this.isDarkMode=G};
_.w.dataChanged=function(){var G;if(((G=this.data)==null?void 0:G.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var B;((B=this.data)==null?void 0:B.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var F,D,u,R;this.darkColorPalette=(F=this.data)==null?void 0:(D=F.inlineContent)==null?void 0:(u=D.compactVideoRenderer)==null?void 0:(R=u.thumbnail)==null?
void 0:R.darkColorPalette;var N,y,U,q;this.lightColorPalette=(N=this.data)==null?void 0:(y=N.inlineContent)==null?void 0:(U=y.compactVideoRenderer)==null?void 0:(q=U.thumbnail)==null?void 0:q.lightColorPalette;var h,K;if(((h=this.data)==null?0:(K=h.inlineContent)==null?0:K.compactVideoRenderer)&&this.isShortsStyle){var a,m,L,W;G=_.dJ((a=this.data)==null?void 0:(m=a.inlineContent)==null?void 0:(L=m.compactVideoRenderer)==null?void 0:(W=L.thumbnail)==null?void 0:W.thumbnails);_.Ss(this.hostElement,
{"--yt-background-url":"url("+G+")"})}};
_.w.handleRequestCompletion=function(){this.hostElement.hidden&&_.cZ(this.hostElement,"yt-dismissible-item-dismissed")};
_.w.onPopupClosed=function(G){var B;((B=G.detail)==null?void 0:B.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.T1(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.w.handleInlineSurveyRatingSelect=function(G,B){var F=this;this.selectedRatingEndpoint=G;this.followUpSurveyCommand=B;this.expanded=!!G;this.getOptionRenderers().forEach(function(D,u){F.notifyPath("followUpSurveyCommand.followUpOptions."+u+".checkboxSurveyOptionRenderer.checked");F.set("followUpSurveyCommand.followUpOptions."+u+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),G=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.T1(this.hostElement,"yt-reel-non-video-content-dismissal-command",[G]))};
_.w.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.T1(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var G,B=(G=this.data)==null?void 0:G.dismissalEndpoint;B&&this.ytComponentBehavior.resolveCommand(B)}};
_.w.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.T1(this.hostElement,"yt-close-popup-action"))};
_.w.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var G=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{G=this.getOptionRenderers().filter(function(D){return D.checked});
if(G.length===0)return;G=G.map(function(D){return D.responseEndpoint})}var B=[];
G.forEach(function(D,u){u!==0&&(D=_.Q(D,_.QG))&&D.feedbackToken&&B.push(D.feedbackToken)});
if(G=G[0]){var F={};B.length>0&&(F.extra_feedback_tokens=B);this.ytComponentBehavior.resolveCommand(G,{form:F})}}};
_.w.getOptionRenderers=function(){var G=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(B){G.isSingleSelect=!!_.Q(B,VPQ);return G.isSingleSelect?_.Q(B,VPQ):_.Q(B,vh$)}):[]};
_.w.handleInlineSurveyOptionSelect=function(G){G=this.optionSelector.indexOf(G);G!==-1&&this.optionSelector.selectIndex(G)};
_.w.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.w.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
_.w.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G=G&&this.maybeGetBackgroundColor(G);this.dismissibleEl.style.backgroundColor=!G||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.hV(G)};
_.ZN.Object.defineProperties(b7.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
b7.prototype.colorPaletteChanged=b7.prototype.colorPaletteChanged;b7.prototype.onPopupClosed=b7.prototype.onPopupClosed;b7.prototype.handleRequestCompletion=b7.prototype.handleRequestCompletion;b7.prototype.dataChanged=b7.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],b7.prototype,"actionHandlerBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],b7.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],b7.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.iA("#follow-up-survey-options"),_.I("design:type",Object)],b7.prototype,"optionSelector",void 0);_.c([_.v(),_.I("design:type",Object)],b7.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],b7.prototype,"disableAnimation",void 0);_.c([_.v(),_.I("design:type",Object)],b7.prototype,"isToggleOption",void 0);_.c([_.v(),_.I("design:type",Object)],b7.prototype,"followUpSurveyCommand",void 0);_.c([_.v(),_.I("design:type",Object)],b7.prototype,"selectedRatingEndpoint",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],b7.prototype,"expanded",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],b7.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],b7.prototype,"isShortsStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],b7.prototype,"styleOverrideAttribute",void 0);_.c([_.v(),_.I("design:type",Boolean)],b7.prototype,"isSingleSelect",void 0);_.c([_.v(),_.I("design:type",Object)],b7.prototype,"isDarkMode",void 0);
_.c([_.v(),_.I("design:type",Object)],b7.prototype,"lightColorPalette",void 0);_.c([_.v(),_.I("design:type",Object)],b7.prototype,"darkColorPalette",void 0);_.c([_.O("selectedRatingEndpoint","isShortsStyle"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],b7.prototype,"isOptionSelected",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],b7.prototype,"roundedContainer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],b7.prototype,"improveShortsResponseRate",void 0);_.c([_.iA("#dismissible"),_.I("design:type",HTMLElement)],b7.prototype,"dismissibleEl",void 0);_.c([_.iA("#dismiss-button yt-icon-button"),_.I("design:type",HTMLElement)],b7.prototype,"dismissButtonEl",void 0);_.c([_.iA("#inline-survey-header yt-icon-button"),_.I("design:type",HTMLElement)],b7.prototype,"inlineHeaderDismissButtonEl",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],b7.prototype,"dataChanged",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],b7.prototype,"handleRequestCompletion",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],b7.prototype,"onPopupClosed",null);
_.c([_.Ga("darkColorPalette","lightColorPalette","isDarkMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],b7.prototype,"colorPaletteChanged",null);_.c([_.mC({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],b7);
_.d(b7,"ytd-inline-survey-renderer",function(){if(dbU!==void 0)return dbU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dbU=G},{mode:1});var c_S;var Tt2;var Vh=function(){var G=_.p.apply(this,arguments)||this;G.visibleVideos=[];G.hiddenVideos=[];G.modern=_.X("web_modern_buttons");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(Vh,_.p);_.w=Vh.prototype;_.w.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.w.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"}}}};
_.w.dataChanged=function(){var G=this;this.requestElementsPerRow();var B,F;this.currentColorPalette=this.isDarkTheme?(B=this.data)==null?void 0:B.darkColorData:(F=this.data)==null?void 0:F.lightColorData;var D;if((D=this.currentColorPalette)==null?0:D.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.ft(this,function(){G.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.w.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.w.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.w.computeIsFirstFeedItem=function(G){return G};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.w.getCurrentLogo=function(G,B){if(G)return B?G.darkLogoImage:G.lightLogoImage};
_.w.computeTitleStyle=function(G){var B;if((B=this.data)!=null&&B.title&&G&&G.textPrimary!==void 0)return"color:"+_.hV(G.textPrimary)+";"};
_.w.computeSubtitleStyle=function(G){var B;if((B=this.data)!=null&&B.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.hV(G.textSecondary)+";"};
_.w.computeDismissIconStyle=function(G){if(this.data&&this.data.dismissButton&&G&&G.textPrimary!==void 0)return"--yt-button-color:"+_.hV(G.textPrimary)+";"};
_.w.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.hV(G.textPrimary)+";--yt-spec-icon-active-other:"+_.hV(G.textPrimary)+";"};
_.w.computeBackgroundStyle=function(G){if(G&&this.data){var B="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.dJ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&(B+='background-image:url("'+F+'");')}G.backgroundColor!==void 0&&(B+="background-color:"+_.Kp(G.backgroundColor)+";");return B}};
_.w.computeButton=function(){var G,B=Object.assign({},_.Q((G=this.data)==null?void 0:G.showMoreButton,_.Xq));if(this.modern&&B){B.style="STYLE_MONO_OUTLINE";var F;if(G=(F=this.currentColorPalette)==null?void 0:F.textPrimary)B.colorData={basicColorPaletteData:{foregroundTitleColor:G,borderColor:G}}}return B};
_.w.shouldShowBottomButton=function(G,B){return!(G==null?0:G.header)&&!(G==null||!G.primaryButton)&&B<3};
_.w.checkExpanded=function(G){this.isExpanded=G&&G.content?this.hiddenVideos.length===0:!0};
_.w.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.w.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.w.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.w.computeHasSectionHeader=function(G){return!!G.header};
_.w.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var G;if((G=this.data.primaryButton)==null?0:G.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var B;((B=this.data.dismissButton)==null?0:B.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var F,D;((F=this.data)==null?0:(D=F.primaryButton)==null?0:D.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.w.setVisibleVideos=function(G){if(this.data&&this.data.content)if(this.data.content.length){var B=this.data.content.length;this.data.header?G?(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.slimItemsPerRow),B)):(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow),B)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(B,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow),B)):(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow-1),B))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.w.setHasMovieRenderer=function(){var G;if((G=this.data)!=null&&G.content){var B;this.hasMovieRenderer=!!_.Q((B=this.data)==null?void 0:B.content[0],_.Dua)}else this.hasMovieRenderer=!1};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
_.w.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var G=_.C(this.hiddenMediaRenderers),B=G.next();!B.done;B=G.next())B.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(G=_.IF(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&G.focus()}};
_.w.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.w.logoWithPadding=function(G){var B,F,D;return(G=(B=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(F=B.thumbnails)==null?void 0:(D=F[0])==null?void 0:D.height)&&G%31===0?!0:!1};
_.w.onUpdateElementsPerRowAction=function(G,B,F){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G);F&&this.slimItemsPerRow!==F&&(this.slimItemsPerRow=F)};
Vh.prototype.slimItemsPerRowChanged=Vh.prototype.slimItemsPerRowChanged;Vh.prototype.elementsPerRowChanged=Vh.prototype.elementsPerRowChanged;Vh.prototype.dataChanged=Vh.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],Vh.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Vh.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Vh.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Vh.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Vh.prototype,"currentColorPalette",void 0);_.c([_.v(),_.I("design:type",Array)],Vh.prototype,"visibleVideos",void 0);_.c([_.v(),_.I("design:type",Array)],Vh.prototype,"hiddenVideos",void 0);
_.c([_.v(),_.I("design:type",Object)],Vh.prototype,"primaryButton",void 0);_.c([_.v({reflectToAttribute:!0,value:3}),_.I("design:type",Number)],Vh.prototype,"elementsPerRow",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Vh.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Vh.prototype,"isExpanded",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Vh.prototype,"largeTitle",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],Vh.prototype,"hasMovieRenderer",void 0);_.c([_.v(),_.I("design:type",Number)],Vh.prototype,"slimItemsPerRow",void 0);_.c([_.v(),_.I("design:type",Boolean)],Vh.prototype,"showLightVideoMetadata",void 0);_.c([_.v(),_.I("design:type",Boolean)],Vh.prototype,"showDarkVideoMetadata",void 0);_.c([_.v(),_.I("design:type",Number)],Vh.prototype,"videoMetadataColor",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],Vh.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.I("design:type",Boolean)],Vh.prototype,"isFirstFeedItem",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.I("design:type",Boolean)],Vh.prototype,"hasSectionHeader",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],Vh.prototype,"roundedContainer",void 0);_.c([_.FQ("#visible-video-container ytd-rich-grid-media"),_.I("design:type",Array)],Vh.prototype,"visibleMediaRenderers",void 0);_.c([_.FQ("#hidden-video-container ytd-rich-grid-media"),_.I("design:type",Array)],Vh.prototype,"hiddenMediaRenderers",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Vh.prototype,"modern",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Vh.prototype,"dataChanged",null);_.c([_.Ga("elementsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Vh.prototype,"elementsPerRowChanged",null);_.c([_.Ga("slimItemsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Vh.prototype,"slimItemsPerRowChanged",null);
_.c([_.mC({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Vh);
_.d(Vh,"ytd-brand-video-shelf-renderer",function(){if(Tt2!==void 0)return Tt2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tt2=G},{mode:1});var IDD;var vu=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(vu,_.p);_.w=vu.prototype;_.w.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.w.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.w.dataChanged=function(){this.requestElementsPerRow();var G,B;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(B=this.data)==null?void 0:B.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.w.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.w.computeIsFirstFeedItem=function(G){return G};
_.w.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(G),this.updateButtonPalette())};
_.w.shouldShowThumbnailInMetadata=function(G){return G<=1};
_.w.computeVideoMetadataColor=function(){if(this.data){var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.w.computeTitleStyle=function(G){var B;if((B=this.data)!=null&&B.title&&G&&G.textPrimary!==void 0)return"color:"+_.hV(G.textPrimary)+";"};
_.w.computeSubtitleStyle=function(G){var B;if((B=this.data)!=null&&B.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.hV(G.textSecondary)+";"};
_.w.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.hV(G.textPrimary)+";--yt-spec-icon-active-other:"+_.hV(G.textPrimary)+";"};
_.w.computeBackgroundStyle=function(G){if(G&&this.data){var B="";G.backgroundColor!==void 0&&(B+="background-color:"+_.Kp(G.backgroundColor)+";");return B}};
_.w.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.w.updateButtonPalette=function(){if(this.data){var G;if((G=this.data.primaryButton)==null?0:G.buttonRenderer){var B;if((B=this.currentColorPalette)==null?0:B.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var F;((F=this.currentColorPalette)==null?0:F.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
_.w.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.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")};
_.w.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
vu.prototype.elementsPerRowChanged=vu.prototype.elementsPerRowChanged;vu.prototype.dataChanged=vu.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],vu.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],vu.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],vu.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vu.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],vu.prototype,"currentColorPalette",void 0);_.c([_.v(),_.I("design:type",Object)],vu.prototype,"primaryButton",void 0);
_.c([_.v({reflectToAttribute:!0,value:3}),_.I("design:type",Number)],vu.prototype,"elementsPerRow",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],vu.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],vu.prototype,"titleSize",void 0);_.c([_.v(),_.I("design:type",Number)],vu.prototype,"videoMetadataColor",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],vu.prototype,"miniMode",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.I("design:type",Boolean)],vu.prototype,"isFirstFeedItem",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],vu.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.I("design:type",Boolean)],vu.prototype,"hasOverflowButton",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vu.prototype,"dataChanged",null);_.c([_.Ga("elementsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vu.prototype,"elementsPerRowChanged",null);_.c([_.mC({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],vu);
_.d(vu,"ytd-brand-video-singleton-renderer",function(){if(IDD!==void 0)return IDD;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return IDD=G},{mode:2});var fDA;var t4B=_.Y(function(G){var B=G.data;return _.l(_.vr,{data:function(){return B().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(B().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var F=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":F=88;break a;default:F=88}return F},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return B().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Zh"),gnS=_.Y(function(G){var B=G.metadataRow;
var F=G.delimiter;return _.l(_.jR,{each:function(){return B().textParts||[]},
keyBy:"INDEX"},function(D,u){return _.l(_.GJ,null,_.l(_.Wd,{text:D,noWrap:!0,userInput:!0}),_.l(ZvD,{delimiter:F,max:function(){return B().textParts.length},
index:u}))})},"$h"),ZvD=_.Y(function(G){var B=G.delimiter;
var F=G.max;var D=G.index;return _.l(_.E,{cond:function(){return(B==null?void 0:B())&&F()-1>D()},
then:function(){return _.l("span",null,B)}})},"ai"),SaB=_.Y(function(G){var B=G.data;
G={};return _.l("yt-profile-page-header-information-view-model",{class:_.tx("profilePageHeaderInformationViewModelHost",(G.profilePageHeaderInformationViewModelMobile=!1,G))},_.l(_.E,{cond:function(){return B().onTap},
then:function(){return _.l(_.p4,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.X1(B().onTap)}},_.l(_.uR,{data:function(){return B().thumbnail}},{profilePageHeaderThumbnailViewModel:t4B}))},
else:function(){return _.l("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.l(_.uR,{data:function(){return B().thumbnail}},{profilePageHeaderThumbnailViewModel:t4B}))}}),_.l("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.l(_.E,{cond:function(){return B().onTap},
then:function(){return _.l(_.uR,{data:function(){return B().title}},{profilePageHeaderTitleViewModel:function(F){var D=F.data;
return _.l(_.p4,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.X1(D().onTap)}},_.l(_.Wd,{text:function(){return D().title}}))}})},
else:function(){return _.l(_.uR,{data:function(){return B().title}},{profilePageHeaderTitleViewModel:function(F){var D=F.data;
return _.l(_.Wd,{text:function(){return D().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.l(_.uR,{data:function(){return B().metadata}},{profilePageHeaderMetadataViewModel:function(F){var D=F.data;
return _.l(_.E,{cond:function(){return D().metadataRows},
then:function(u){return _.l("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.l(_.jR,{each:u,keyBy:"INDEX"},function(R,N){return _.l(_.GJ,null,_.l(gnS,{metadataRow:R,delimiter:" \u2022 "}),_.l(ZvD,{delimiter:" \u2022 ",max:function(){return u().length},
index:N}))}))}})}})))},"bi");
SaB.idomCompat=!0;_.YN(SaB,"yt-profile-page-header-information-view-model",{props:{data:_.Hd}});var oU=function(){return _.p.apply(this,arguments)||this};
_.r(oU,_.p);oU.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],oU.prototype,"data",void 0);_.c([_.mC({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],oU);
_.d(oU,"ytd-effect-pivot-header-view-model",function(){if(fDA!==void 0)return fDA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return fDA=
G},{mode:1});var smG;var Mf=function(){return _.p.apply(this,arguments)||this};
_.r(Mf,_.p);Mf.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Mf.prototype,"data",void 0);_.c([_.mC({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Mf);
_.d(Mf,"ytd-source-pivot-header-renderer",function(){if(smG!==void 0)return smG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return smG=G},{mode:1});var xb$;var P$z;var GyN;var pj=function(){var G=_.p.apply(this,arguments)||this;G.playing=!1;G.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.S8(G);G.active=!1;return G};
_.r(pj,_.p);_.w=pj.prototype;_.w.detached=function(){this.stop()};
_.w.play=function(){var G=this,B,F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return G.active=!0,B=G.get("data.inlinePlaybackEndpoint.watchEndpoint"),F=B.videoId||G.data.videoId,D=B.startTimeSeconds||0,u=B.playerParams||null,_.X("kevlar_player_update_killswitch")?N.yield(G.playerEl.update({args:{video_id:F,startSeconds:D,player_params:u}}),2):(G.playerEl.loadVideoWithPlayerVars({video_id:F,startSeconds:D,player_params:u,autoplay:!0}),N.jumpTo(2));if(N.nextAddress!=4)return N.yield(G.playerEl.getPlayerPromise(),
4);R=N.yieldResult;R.unloadModule("annotations_module");R.addEventListener("onStateChange",function(y){G.onPlayerStateChange(y)});
_.di(N)})};
_.w.onPlayerStateChange=function(G){if(this.active)switch(this.playing=G===1,G){case 1:_.cZ(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.cZ(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.w.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.w.resize=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G.playerEl.getPlayerPromise(),2);B=F.yieldResult;B.setSize(NaN,NaN);_.di(F)})};
_.c([_.v(),_.I("design:type",Object)],pj.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],pj.prototype,"playing",void 0);_.c([_.v(),_.I("design:type",Object)],pj.prototype,"playerId",void 0);_.c([_.iA("#player"),_.I("design:type",Object)],pj.prototype,"playerEl",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],pj);
_.d(pj,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(GyN!==void 0)return GyN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return GyN=G},{mode:1});var B9$;var iC$;var Yx=function(){var G=_.p.apply(this,arguments)||this;G.width=0;return G};
_.r(Yx,_.p);_.w=Yx.prototype;_.w.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.x7(this,this.onEnded));this.mp4El.addEventListener("error",_.x7(this,this.onError))};
_.w.detached=function(){this.videoEl.removeEventListener("ended",_.x7(this,this.onEnded));this.mp4El.removeEventListener("error",_.x7(this,this.onError))};
_.w.play=function(){var G=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var B=this.videoEl.play();B?B.then(function(){G.handleVideoStartPlaying()}).catch(function(){_.cZ(G.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.cZ(this.hostElement,"yt-video-thumbnail-not-playing")};
_.w.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.w.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.w.dataChanged=function(){var G;if((G=this.data)==null?0:G.thumbnailPlaceholder)G=_.Ax(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+G+")";this.stop();this.autoplay&&this.play()};
_.w.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.w.onEnded=function(){this.stop();_.cZ(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.w.onError=function(){_.cZ(this.hostElement,"yt-video-thumbnail-error")};
_.w.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.w.getVideoThumbnail=function(G){if(G&&G.length)return G[0]};
Yx.prototype.dataChanged=Yx.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],Yx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Yx.prototype,"animatePlaceholderOnEntrance",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Yx.prototype,"autoplay",void 0);_.c([_.v({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.I("design:type",Object)],Yx.prototype,"videoThumbnail",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Yx.prototype,"loop",void 0);_.c([_.v(),_.I("design:type",Boolean)],Yx.prototype,"isVideoPlaying",void 0);_.c([_.v(),_.I("design:type",Object)],Yx.prototype,"width",void 0);_.c([_.iA("#mp4"),_.I("design:type",HTMLElement)],Yx.prototype,"mp4El",void 0);_.c([_.iA("#placeholder"),_.I("design:type",HTMLElement)],Yx.prototype,"placeholderEl",void 0);_.c([_.iA("#video"),_.I("design:type",HTMLVideoElement)],Yx.prototype,"videoEl",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Yx.prototype,"dataChanged",null);_.c([_.ay({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Yx);
_.d(Yx,"yt-video-as-thumbnail-details",function(){if(iC$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;B9$===void 0&&(B9$=document.createElement("template"));var D=B9$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);iC$=G}G=iC$;return G},{mode:2});var Ar=function(){var G=_.p.apply(this,arguments)||this;G.disableGridStateAware=!1;G.animationEnabled=_.X("enable_web_ketchup_hero_animation");G.transitioningOut=!1;G.narrow=!1;G.narrower=!1;G.isCarouselInFeed=!1;G.videoTimeoutJobId=0;G.panelTimeoutJobId=0;G.panelTimeoutJobStartMs=0;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.r(Ar,_.p);_.w=Ar.prototype;_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.w.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.w.attached=function(){this.onWindowResized()};
_.w.detached=function(){this.clearTimeouts()};
_.w.onWindowResized=function(){this.updateSize()};
_.w.computePanelLayout=function(G){return G&&G.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.w.playVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.play();var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.play()};
_.w.stopVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.stop();var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.stop()};
_.w.transitionOut=function(){var G=this;this.transitioningOut=!0;return new Promise(function(B){G.player&&(G.player.playing=!1);var F=_.IF(G.hostElement).querySelector("#action-button");if(F){var D=function(){F.removeEventListener("animationend",D);_.Lu.cancelJob(u);B();G.transitioningOut=!1};
var u=_.mX(_.Lu,D,1E3);F.addEventListener("animationend",D)}else B(),G.transitioningOut=!1})};
_.w.computeMetadataOrder=function(G){return G&&G.metadataOrder&&G.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?G.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.w.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.w.computeAvatarSize=function(G){return G&&G.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.w.onContentClick=function(G){if(!_.oQ(_.VW(G),this.hostElement,["A".toString(),"BUTTON".toString()])){var B;if((B=this.data)==null?0:B.navigationEndpoint){var F;this.componentBehavior.resolveCommand((F=this.data)==null?void 0:F.navigationEndpoint)}}};
_.w.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.w.setBackgroundImage=function(G){if(G=this.getBackgroundImageUrl(G))_.IF(this.hostElement).querySelector("#hero").style.backgroundImage="url("+G+")"};
_.w.setScrimLayer=function(G){var B=this.getScrimLayerColorStops(G);G=((G==null?void 0:G.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(G=180);_.v5("HTML_DIR")==="rtl"&&(G=-G);B&&(_.IF(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+G+"deg, "+B+")")};
_.w.isNarrower=function(){return this.hostElement.clientWidth<Ar.NARROW_VERSION_SIZE};
_.w.getScrimLayerColorStops=function(){var G,B=(G=this.data)==null?void 0:G.scrimColorValues;if(!B)return null;if(B.length===1)return G=_.Kp(B[0]),G+" 0%, "+G+" 100%";if(B.length===3){var F=[0,72,98];return B.map(function(D,u){return _.Kp(D)+" "+F[u]+"%"}).join(",")}return null};
_.w.getBackgroundImageUrl=function(G){return G&&G.largeFormFactorBackgroundThumbnail?_.Ax((G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.w.onPlaying=function(){this.startVideoTimeout()};
_.w.onEnded=function(){this.rotate()};
_.w.startPanelTimeout=function(){var G=this;if(!this.panelTimeoutJobId){var B=this.get("data.minPanelDisplayDurationMs");B&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.mX(_.Lu,function(){G.rotate()},B))}};
_.w.startVideoTimeout=function(){var G=this;if(!this.videoTimeoutJobId){_.Lu.cancelJob(this.panelTimeoutJobId);var B=Date.now()-this.panelTimeoutJobStartMs;B=Math.max(0,this.get("data.minPanelDisplayDurationMs")-B);B=Math.max(this.get("data.minVideoPlayDurationMs")||0,B);this.videoTimeoutJobId=_.mX(_.Lu,function(){G.rotate()},B)}};
_.w.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Lu.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Lu.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.w.rotate=function(){this.clearTimeouts();_.cZ(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.ZN.Object.defineProperties(Ar.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.IF(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.IF(this.hostElement).querySelector("#video")}}});
_.ZN.Object.defineProperties(Ar,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Ar.prototype.onEnded=Ar.prototype.onEnded;Ar.prototype.onPlaying=Ar.prototype.onPlaying;Ar.prototype.dataChanged=Ar.prototype.dataChanged;_.c([_.k(_.X6),_.I("design:type",Object)],Ar.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ar.prototype,"componentBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],Ar.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.k(_.MQA),_.I("design:type",Object)],Ar.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ar.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"disableGridStateAware",void 0);_.c([_.v(),_.I("design:type",Object)],Ar.prototype,"data",void 0);_.c([_.v({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.I("design:type",String)],Ar.prototype,"panelLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"animationEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"transitioningOut",void 0);
_.c([_.v({computed:"computeMetadataOrder(data)"}),_.I("design:type",Boolean)],Ar.prototype,"metadataOrder",void 0);_.c([_.v({computed:"computeByline(data)"}),_.I("design:type",Object)],Ar.prototype,"byline",void 0);_.c([_.v({computed:"computeAvatarSize(data)"}),_.I("design:type",Number)],Ar.prototype,"avatarSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"narrow",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"narrower",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"layoutStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ar.prototype,"isCarouselInFeed",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ar.prototype,"dataChanged",null);_.c([_.Pm("yt-default-promo-panel-renderer-playing"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ar.prototype,"onPlaying",null);
_.c([_.Pm("yt-default-promo-panel-renderer-ended"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ar.prototype,"onEnded",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Ar);
_.d(Ar,"ytd-default-promo-panel-renderer",function(){if(P$z!==void 0)return P$z;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return P$z=G},{mode:1});_.UR("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var d7=function(){var G=_.p.apply(this,arguments)||this;G.narrower=!1;G.dotMenuVisible=!1;G.paginationThumbnailsVisible=!1;G.active=!0;G.disableGridStateAware=!1;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.r(d7,_.p);_.w=d7.prototype;_.w.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]]"}}}}}};
_.w.attached=function(){document.addEventListener("yt-page-type-changed",_.x7(this,this.onPageTypeChange));this.currentPageSubtype=_.sAc(location.pathname);this.onWindowResized()};
_.w.detached=function(){this.jobId&&_.Lu.cancelJob(this.jobId);this.updateSizeJobId&&_.Lu.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.x7(this,this.onPageTypeChange))};
_.w.onPageTypeChange=function(G){this.active=G.detail.newPageSubtype===this.currentPageSubtype};
_.w.onWindowResized=function(){this.updateSize()};
_.w.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.w.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.w.setCarouselItem=function(G){G>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Lu.cancelJob(this.jobId);var B=this.getCurrentPanelElement();B&&B.stopVideo();this.currentItemIndex=G%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(B||(B=this.getCurrentPanelElement()),B.playVideo()):this.startRotationJob()};
_.w.scrollThumbnails=function(G){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var B=this.getCurrentPaginationElement();if(B){var F=_.IF(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?F.style.transform="translateX(0)":(B=B.offsetWidth+8,F.style.transform="translateX(-"+B*(G-Math.ceil(Math.floor(this.overlay.offsetWidth/B)/2)+1)+"px)")}}};
_.w.onDataChanged=function(){var G=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.uQ(_.Lu,function(){var B;(B=G.getCurrentPanelElement())==null||B.updateSize();G.updateSize()}))};
_.w.getCurrentPanelElement=function(){return _.IF(_.IF(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.w.getCurrentPaginationElement=function(){return _.IF(_.IF(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.w.getNavigationClass=function(G,B){return G===B?"selected":""};
_.w.getNavigationDurationStyle=function(G){return"animation-duration:"+(this.get("data.carouselItems."+G+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.w.onNavigationTap=function(G){var B=this,F=G.model.index;F!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){B.setCarouselItem(F)}),this.autorotateActive=!1)};
_.w.onVideoThumbnailEnded=function(){var G=this;if(this.shouldRotate()){var B=this.getCurrentPaginationElement();B&&(B.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){B.classList.remove("finished");G.setNextCarouselItem()}))}};
_.w.onVideoThumbnailError=function(){this.startRotationJob()};
_.w.onVideoNotPlaying=function(){this.startRotationJob()};
_.w.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.w.startRotationJob=function(){var G=this;_.Lu.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Lu.addLowPriorityJob(function(){G.getCurrentPanelElement().transitionOut().then(function(){G.setNextCarouselItem()})},this.rotationTimeout))};
_.w.computeDotMenuVisible=function(G,B){return!!G&&!!G.carouselItems&&G.carouselItems.length>1&&!G.paginationThumbnails||!!B};
_.w.computePaginationThumbnailsVisible=function(G,B){var F,D;return((D=G==null?void 0:(F=G.paginationThumbnails)==null?void 0:F.length)!=null?D:0)>1&&!B};
_.w.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.w.computePaginatorAlignment=function(G){return(G==null?void 0:G.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.w.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.w.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.w.isNarrower=function(G){return(G!=null?G:0)<Ar.NARROW_VERSION_SIZE};
d7.prototype.activeChanged=d7.prototype.activeChanged;d7.prototype.onVideoNotPlaying=d7.prototype.onVideoNotPlaying;d7.prototype.onVideoThumbnailError=d7.prototype.onVideoThumbnailError;d7.prototype.onVideoThumbnailEnded=d7.prototype.onVideoThumbnailEnded;d7.prototype.onDataChanged=d7.prototype.onDataChanged;_.c([_.k(_.X6),_.I("design:type",Object)],d7.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],d7.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],d7.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],d7.prototype,"currentItem",void 0);
_.c([_.v(),_.I("design:type",Number)],d7.prototype,"currentItemIndex",void 0);_.c([_.v(),_.I("design:type",Number)],d7.prototype,"rotationTimeout",void 0);_.c([_.v(),_.I("design:type",Number)],d7.prototype,"loopCount",void 0);_.c([_.v({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.I("design:type",String)],d7.prototype,"paginatorAlignment",void 0);_.c([_.v(),_.I("design:type",Number)],d7.prototype,"jobId",void 0);
_.c([_.v(),_.I("design:type",Number)],d7.prototype,"updateSizeJobId",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],d7.prototype,"isCarouselInFeed",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],d7.prototype,"narrower",void 0);_.c([_.v({computed:"computeDotMenuVisible(data, narrower)"}),_.I("design:type",Object)],d7.prototype,"dotMenuVisible",void 0);
_.c([_.v({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.I("design:type",Object)],d7.prototype,"paginationThumbnailsVisible",void 0);_.c([_.v({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.I("design:type",String)],d7.prototype,"layoutType",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.I("design:type",Boolean)],d7.prototype,"autorotateActive",void 0);_.c([_.v(),_.I("design:type",Object)],d7.prototype,"active",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],d7.prototype,"disableGridStateAware",void 0);_.c([_.iA("#overlay"),_.I("design:type",HTMLElement)],d7.prototype,"overlay",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d7.prototype,"onDataChanged",null);
_.c([_.Pm("yt-video-thumbnail-ended"),_.Pm("yt-default-promo-panel-renderer-rotate"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d7.prototype,"onVideoThumbnailEnded",null);_.c([_.Pm("yt-video-thumbnail-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d7.prototype,"onVideoThumbnailError",null);
_.c([_.Pm("yt-video-thumbnail-not-playing"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d7.prototype,"onVideoNotPlaying",null);_.c([_.Ry("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],d7.prototype,"activeChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],d7);
_.d(d7,"ytd-carousel-item-renderer",function(){if(xb$!==void 0)return xb$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return xb$=G},{mode:2});var Ffz;var DwQ;var ulz;var RCQ;var Jr=function(){var G=_.p.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.r(Jr,_.p);Jr.prototype.toggleAnswer_=function(G){var B=_.oF(G);B&&B.classList.contains("yt-simple-endpoint")||(G.preventDefault(),G.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Jr.prototype.toggleAnswer_=Jr.prototype.toggleAnswer_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Jr.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jr.prototype,"answerExpanded",void 0);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Jr.prototype,"toggleAnswer_",null);
_.c([_.ay({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Jr);
_.d(Jr,"yt-generic-faq-question-renderer",function(){if(RCQ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ulz===void 0&&(ulz=document.createElement("template"));var D=ulz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);RCQ=G}G=RCQ;return G},{mode:2});_.UR("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var cu=function(){return _.p.apply(this,arguments)||this};
_.r(cu,_.p);cu.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cu.prototype,"data",void 0);_.c([_.ay({is:"yt-faq-section-renderer",disableElementRegistration:!0})],cu);
_.d(cu,"yt-faq-section-renderer",function(){if(DwQ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Ffz===void 0&&(Ffz=document.createElement("template"));var D=Ffz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);DwQ=G}G=DwQ;return G},{mode:2});_.YN(_.OtH,"yt-card-view-model",{props:{data:_.Hd,className:_.Hd,isSelected:_.Hd}});var wyD;var CjD;var N9z=function(){return _.p.apply(this,arguments)||this};
_.r(N9z,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],N9z.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],N9z.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],N9z);
_.d(N9z,"ytd-channel-history-renderer",function(){if(CjD!==void 0)return CjD;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return CjD=G},{mode:1});var yOS;var no$=function(){return _.p.apply(this,arguments)||this};
_.r(no$,_.p);_.c([_.v(),_.I("design:type",Object)],no$.prototype,"data",void 0);_.c([_.mC({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],no$);
_.d(no$,"ytd-feature-enablement-info-renderer",function(){if(yOS!==void 0)return yOS;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return yOS=G},{mode:1});var ljD;var Uw$;var TY=function(){var G=_.p.apply(this,arguments)||this;G.textBoxMaxLength=_.X("enable_tvod_campaign_code_integration")?15:12;return G};
_.r(TY,_.p);_.w=TY.prototype;_.w.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.w.onSubmit=function(){var G=this.data.serviceEndpoint,B=_.Q(G,_.v_);B&&G&&(B.couponCode=this.userInput,_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}}))};
_.w.validate=function(){var G=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=G&&!this.data.errorMessage;this.showErrorMessage=G&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.X("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.w.computeStyle=function(G){return G};
_.w.computeShowValidationBelowInput=function(G){return G!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.w.updateUserInputFromBinding=function(G){this.userInput=G.currentTarget.value};
_.w.updateShowErrorMessageFromBinding=function(G){this.showErrorMessage=G.detail.value};
_.ZN.Object.defineProperties(TY.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
TY.prototype.dataChanged=TY.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TY.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],TY.prototype,"userInput",void 0);_.c([_.v(),_.I("design:type",Boolean)],TY.prototype,"disableApplyButton",void 0);_.c([_.v(),_.I("design:type",Boolean)],TY.prototype,"hideApplyButton",void 0);
_.c([_.v(),_.I("design:type",Boolean)],TY.prototype,"hideErrorMessage",void 0);_.c([_.v(),_.I("design:type",Boolean)],TY.prototype,"showTick",void 0);_.c([_.v(),_.I("design:type",Boolean)],TY.prototype,"showErrorMessage",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],TY.prototype,"couponStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.I("design:type",Boolean)],TY.prototype,"showValidationBelowInput",void 0);_.c([_.v(),_.I("design:type",Object)],TY.prototype,"textBoxMaxLength",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],TY.prototype,"dataChanged",null);
_.c([_.O("showTick","showErrorMessage","userInput"),_.I("design:type",String),_.I("design:paramtypes",[])],TY.prototype,"validationState",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],TY);
_.d(TY,"ytd-ypc-coupon-renderer",function(){if(Uw$!==void 0)return Uw$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Uw$=G},{mode:1});var IU=function(){return _.p.apply(this,arguments)||this};
_.r(IU,_.p);IU.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"}}}};
IU.prototype.computeStyle=function(G){return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],IU.prototype,"buttonStyle",void 0);_.c([_.mC({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],IU);
_.d(IU,"ytd-flow-bottom-bar-renderer",function(){if(ljD!==void 0)return ljD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ljD=G},{mode:1});var qJD;var EoH;var fj=function(){return _.p.apply(this,arguments)||this};
_.r(fj,_.p);fj.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fj.prototype.focus=function(G){this.title&&_.dg(this.title,G)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],fj.prototype,"data",void 0);_.c([_.iA("#title"),_.I("design:type",HTMLElement)],fj.prototype,"title",void 0);_.c([_.mC({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],fj);
_.d(fj,"ytd-flow-top-bar-renderer",function(){if(EoH!==void 0)return EoH;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return EoH=G},{mode:1});var hCG;var KfB;var ajB;var tr=function(){return _.p.apply(this,arguments)||this};
_.r(tr,_.p);tr.prototype.freeTextValueChanged=function(){_.T1(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
tr.prototype.updateFreeTextValueFromBinding=function(G){this.freeTextValue=G.detail.value};
_.ZN.Object.defineProperties(tr.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(B=(G=this.data)==null?void 0:G.responseMaxLength)!=null?B:500,D;return((D=this.freeTextValue)!=null?D:"").length>=F?"maxed-out":""}}});
tr.prototype.freeTextValueChanged=tr.prototype.freeTextValueChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tr.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],tr.prototype,"freeTextValue",void 0);_.c([_.iA("#user-input"),_.I("design:type",HTMLTextAreaElement)],tr.prototype,"input",void 0);
_.c([_.O("freeTextValue"),_.I("design:type",Object),_.I("design:paramtypes",[])],tr.prototype,"characterLimitClass",null);_.c([_.Ga("freeTextValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tr.prototype,"freeTextValueChanged",null);_.c([_.ay({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],tr);
_.d(tr,"yt-free-text-input-flow-step-renderer",function(){if(ajB===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;KfB===void 0&&(KfB=document.createElement("template"));var D=KfB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ajB=G}G=ajB;return G},{mode:2});var Zo=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return G};
_.r(Zo,_.p);Zo.prototype.handleFreeTextFlowStepInputChanged=function(G){_.T1(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Zo.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Zo.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Zo.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Zo);
_.d(Zo,"ytd-free-text-input-flow-step-renderer",function(){if(hCG!==void 0)return hCG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return hCG=G},{mode:1});var mw$;var XyQ;var QNz;var jN$=function(){return _.p.apply(this,arguments)||this};
_.r(jN$,_.p);_.c([_.v(),_.I("design:type",Object)],jN$.prototype,"data",void 0);_.c([_.ay({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],jN$);
_.d(jN$,"yt-survey-answer-card-renderer",function(){if(QNz===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;XyQ===void 0&&(XyQ=document.createElement("template"));var D=XyQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);QNz=G}G=QNz;return G},{mode:2});var LfG;var rOD;var g7=function(){return _.p.apply(this,arguments)||this};
_.r(g7,_.p);_.w=g7.prototype;_.w.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.w.selectedItemChanged=function(G){_.T1(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[G.feedbackToken||""]}])};
_.w.surveyAnswerCardRendererClicked=function(G){if(G.target&&_.Q(G.model.item,fPB)){var B=G.target;G=_.Q(G.model.item,fPB);G.onTapCommand?_.tL(B,[G.onTapCommand],B):this.data.onTapCommand&&_.tL(B,[this.data.onTapCommand],B);this.selectedItemChanged(G)}};
_.w.checkIsCancellationStyle=function(G){return G==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.w.updateSelectedItemFromBinding=function(G){this.selectedItem=G.detail.value};
g7.prototype.onSelectedItemChanged=g7.prototype.onSelectedItemChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],g7.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],g7.prototype,"selectedItem",void 0);_.c([_.v({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.I("design:type",Boolean)],g7.prototype,"isCancellationStyle",void 0);
_.c([_.Ga("selectedItem"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],g7.prototype,"onSelectedItemChanged",null);_.c([_.ay({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],g7);
_.d(g7,"yt-survey-flow-step-renderer",function(){if(rOD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;LfG===void 0&&(LfG=document.createElement("template"));var D=LfG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);rOD=G}G=rOD;return G},{mode:2});var Sr=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return G};
_.r(Sr,_.p);Sr.prototype.handleSurveyFlowStepOptionChanged=function(G){this.ytdReduxBehavior.dispatch(_.d5({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:G}));_.T1(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Sr.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Sr.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Sr.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Sr);
_.d(Sr,"ytd-survey-flow-step-renderer",function(){if(mw$!==void 0)return mw$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return mw$=G},{mode:1});var WfU;var HCD;var kyQ=function(){return _.p.apply(this,arguments)||this};
_.r(kyQ,_.p);_.c([_.v(),_.I("design:type",Object)],kyQ.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],kyQ);
_.d(kyQ,"ytd-metadata-line-renderer",function(){if(HCD!==void 0)return HCD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return HCD=G},{mode:1});var sm=function(){return _.p.apply(this,arguments)||this};
_.r(sm,_.p);sm.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sm.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sm.prototype,"isMasthead",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],sm);
_.d(sm,"ytd-media-product-renderer",function(){if(WfU!==void 0)return WfU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return WfU=G},{mode:1});var OCB;var xx=function(){return _.p.apply(this,arguments)||this};
_.r(xx,_.p);xx.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
xx.prototype.onBillboardImageLoaded=function(){_.cZ(this.hostElement,"yt-refit")};
xx.prototype.onBillboardImageLoaded=xx.prototype.onBillboardImageLoaded;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xx.prototype,"data",void 0);_.c([_.iA("#billboardImage"),_.I("design:type",Object)],xx.prototype,"billboardImage",void 0);_.c([_.Pm("yt-img-shadow-loaded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],xx.prototype,"onBillboardImageLoaded",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],xx);
_.d(xx,"ytd-billboard-masthead-renderer",function(){if(OCB!==void 0)return OCB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return OCB=G},{mode:1});var eCQ;var Pu=function(){var G=_.p.apply(this,arguments)||this;G.smallSize=!1;return G};
_.r(Pu,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Pu.prototype,"ytComponentBehaviorType",void 0);_.c([_.v(),_.I("design:type",Object)],Pu.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Pu.prototype,"smallSize",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Pu);
_.d(Pu,"ytd-bullet-formatted-string",function(){if(eCQ!==void 0)return eCQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return eCQ=G},{mode:1});var $w$;var GH=function(){return _.p.apply(this,arguments)||this};
_.r(GH,_.p);GH.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],GH.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],GH);
_.d(GH,"ytd-offer-detail-renderer",function(){if($w$!==void 0)return $w$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $w$=G},{mode:1});var zCA;var B4=function(){return _.p.apply(this,arguments)||this};
_.r(B4,_.p);B4.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],B4.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],B4);
_.d(B4,"ytd-offer-detail-step-renderer",function(){if(zCA!==void 0)return zCA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return zCA=G},{mode:1});var bCH;var iK=function(){var G=_.p.apply(this,arguments)||this;G.isInOfferModule=!1;return G};
_.r(iK,_.p);_.w=iK.prototype;_.w.computeHasEndpoint=function(){var G;return!((G=this.data)==null||!G.onClickCommand)};
_.w.dataChanged=function(){var G;if((G=this.data)==null?0:G.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")};
_.w.detached=function(){var G;if((G=this.data)==null?0:G.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.w.handleClickEvent=function(){var G;if((G=this.data)==null?0:G.onClickCommand){var B;this.componentBehavior.resolveCommand((B=this.data)==null?void 0:B.onClickCommand)}};
_.w.onContentKeyDown=function(G){G.key==="Enter"?this.handleClickEvent(G):G.key===" "&&G.preventDefault()};
_.w.onContentKeyUp=function(G){G.key===" "&&this.handleClickEvent(G)};
iK.prototype.dataChanged=iK.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],iK.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],iK.prototype,"data",void 0);_.c([_.v({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],iK.prototype,"hasEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],iK.prototype,"isInOfferModule",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iK.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],iK);
_.d(iK,"ytd-channel-masthead-renderer",function(){if(bCH!==void 0)return bCH;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return bCH=G},{mode:1});var VXD;var FC=function(){var G=_.p.apply(this,arguments)||this;G.thumbnailObjectFit="CONTAIN";G.thumbnailObjectPosition="LEFT";G.isExpanded=!1;return G};
_.r(FC,_.p);_.w=FC.prototype;_.w.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.w.dataChanged=function(){this.resetStates()};
_.w.computeisTapOnOfferInfoContainerEnabled=function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.w.onExpandBtnClick=function(){var G,B=_.Q((G=this.data)==null?void 0:G.showMoreButtonRenderer,ZOZ);B&&_.ss(_.Rh(),B.trackingParams);this.isExpanded=!this.isExpanded};
_.w.onOfferInfoClick=function(G){this.isTapOnOfferInfoContainerEnabled&&(_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.M6(_.VW(G)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.w.onBottomBarClick=function(){this.executeTapCommand()};
_.w.executeTapCommand=function(){var G,B=(G=this.data)==null?void 0:G.tapCommand;B&&this.ytComponentBehavior.resolveCommand(B)};
_.w.resetStates=function(){this.isExpanded=!1};
_.ZN.Object.defineProperties(FC.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var G=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),B,F,D;return((B=this.data)==null?void 0:B.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&G&&!!((F=this.data)==null?0:(D=F.benefits)==null?0:D.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((B=_.Q((G=this.data)==null?void 0:G.showMoreButtonRenderer,ZOZ))==null?void 0:B.showMoreButtonTitle)||((F=this.data)==null?void 0:F.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((B=_.Q((G=this.data)==null?void 0:G.showMoreButtonRenderer,ZOZ))==null?void 0:B.showLessButtonTitle)||((F=this.data)==null?void 0:F.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var G;return(G=this.showLessButtonTitle)!=null?G:""}var B;return(B=this.showMoreButtonTitle)!=null?B:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((B=this.data)==null?0:B.footerTitle)||((F=this.data)==null?0:F.footerSubtitle))}}});
FC.prototype.dataChanged=FC.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],FC.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",String)],FC.prototype,"thumbnailObjectFit",void 0);
_.c([_.v(),_.I("design:type",String)],FC.prototype,"thumbnailObjectPosition",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.I("design:type",Boolean)],FC.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.c([_.v(),_.I("design:type",Object)],FC.prototype,"isExpanded",void 0);_.c([_.v(),_.I("design:type",Object)],FC.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.footerIcon)"}),_.I("design:type",String)],FC.prototype,"icon",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FC.prototype,"dataChanged",null);_.c([_.O("data.thumbnail"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],FC.prototype,"hasThumbnail",null);_.c([_.O("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],FC.prototype,"enableExpandButton",null);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],FC.prototype,"enableOfferContentIcon",null);_.c([_.O("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.I("design:type",Object),_.I("design:paramtypes",[])],FC.prototype,"showMoreButtonTitle",null);_.c([_.O("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.I("design:type",Object),_.I("design:paramtypes",[])],FC.prototype,"showLessButtonTitle",null);
_.c([_.O("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.I("design:type",String),_.I("design:paramtypes",[])],FC.prototype,"expandedBtnText",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],FC.prototype,"enableBottomBar",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],FC);
_.d(FC,"ytd-offer-card-renderer",function(){if(VXD!==void 0)return VXD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return VXD=G},{mode:1});var vo$;var D_=function(){return _.p.apply(this,arguments)||this};
_.r(D_,_.p);D_.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"}}}};
D_.prototype.onClick=function(G){if(!_.oQ(G.composedPath()||[],this.hostElement,["A".toString()])){var B,F;if((G=(F=_.Q((B=this.data)==null?void 0:B.actionButton,_.Xq))==null?void 0:F.command)&&!this.ytComponentBehavior.resolveCommand(G)){var D;(D=_.Rh())==null||D.clickCommand(G);_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})}}};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],D_.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],D_.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],D_);
_.d(D_,"ytd-offer-content-renderer",function(){if(vo$!==void 0)return vo$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return vo$=G},{mode:1});var ooG;var uK=function(){return _.p.apply(this,arguments)||this};
_.r(uK,_.p);uK.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.ZN.Object.defineProperties(uK.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.title)||!((B=this.data)==null||!B.description)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],uK.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],uK.prototype,"hasHeaderData",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],uK);
_.d(uK,"ytd-offer-section-renderer",function(){if(ooG!==void 0)return ooG;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ooG=G},{mode:1});var MXU;var R0=function(){return _.p.apply(this,arguments)||this};
_.r(R0,_.p);
R0.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],R0.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],R0);
_.d(R0,"ytd-offer-selection-step-renderer",function(){if(MXU!==void 0)return MXU;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MXU=G},{mode:1});var pyN;var wh=function(){return _.p.apply(this,arguments)||this};
_.r(wh,_.p);wh.prototype.computeStyle=function(G){return G};
wh.prototype.computeImageWidth=function(G){return G==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.c([_.v({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.I("design:type",String)],wh.prototype,"containerStyle",void 0);_.c([_.v({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.I("design:type",String)],wh.prototype,"imageWidth",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wh.prototype,"data",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],wh);
_.d(wh,"ytd-confirmation-masthead-renderer",function(){if(pyN!==void 0)return pyN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return pyN=G},{mode:1});var YJ$;var C6=function(){return _.p.apply(this,arguments)||this};
_.r(C6,_.p);C6.prototype.computeStyle=function(G){return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],C6.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.I("design:type",String)],C6.prototype,"containerStyle",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],C6);
_.d(C6,"ytd-purchase-complete-detail-renderer",function(){if(YJ$!==void 0)return YJ$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return YJ$=G},{mode:1});var AOB;var NE=function(){var G=_.p.apply(this,arguments)||this;G.scriptsAppended=!1;return G};
_.r(NE,_.p);NE.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"}}}};
NE.prototype.onDataChanged=function(){var G=this.get("data.gtmId");G&&(_.uY(G,_.v5("GL","")),this.setupConversionTracking())};
NE.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("noscript");G.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(G);this.scriptsAppended=!0}};
NE.prototype.onDataChanged=NE.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],NE.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],NE.prototype,"scriptsAppended",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],NE.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],NE);
_.d(NE,"ytd-purchase-complete-step-renderer",function(){if(AOB!==void 0)return AOB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return AOB=G},{mode:1});var dwN;var yl=function(){return _.p.apply(this,arguments)||this};
_.r(yl,_.p);yl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yl.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],yl);
_.d(yl,"ytd-ypc-transaction-error-message-renderer",function(){if(dwN!==void 0)return dwN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dwN=G},{mode:1});var JOA;var cOA;var n6=function(){var G=_.p.apply(this,arguments)||this;G.handlePhoneVerificationSuccess=function(B){if(G.isValidPhoneVerificationCompletionMessageEvent(B)){var F;((F=G.data)==null?0:F.nextStepCommand)&&G.ytComponentBehavior.resolveCommand(G.data.nextStepCommand)}};
return G};
_.r(n6,_.p);n6.prototype.isValidPhoneVerificationCompletionMessageEvent=function(G){if(G.data!=="yt-phone-verification-complete")return!1;G=_.Tt(G.origin);return G!==null&&G.includes("youtube.com")};
n6.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
n6.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],n6.prototype,"data",void 0);_.c([_.ay({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],n6);
_.d(n6,"yt-feature-enablement-soft-entry-renderer",function(){if(cOA===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;JOA===void 0&&(JOA=document.createElement("template"));var D=JOA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);cOA=G}G=cOA;return G},{mode:1});var T9A;var Ij2;var fjD;var tXQ;var ZCA=function(){return _.p.apply(this,arguments)||this};
_.r(ZCA,_.p);_.c([_.v(),_.I("design:type",Object)],ZCA.prototype,"data",void 0);_.c([_.ay({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],ZCA);
_.d(ZCA,"yt-benefits-item-renderer",function(){if(tXQ===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;fjD===void 0&&(fjD=document.createElement("template"));var D=fjD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);tXQ=G}G=tXQ;return G},{mode:2});var goD;var SJS;var lK=function(){return _.p.apply(this,arguments)||this};
_.r(lK,_.p);lK.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
lK.prototype.computeisWithoutPadding=function(){var G;return((G=this.data)==null?void 0:G.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.I("design:type",Boolean)],lK.prototype,"isWithoutPadding",void 0);_.c([_.ay({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],lK);
_.d(lK,"yt-benefits-section-renderer",function(){if(SJS===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;goD===void 0&&(goD=document.createElement("template"));var D=goD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);SJS=G}G=SJS;return G},{mode:2});var U3=function(){return _.p.apply(this,arguments)||this};
_.r(U3,_.p);U3.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
U3.prototype.computeisUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],U3.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.I("design:type",Boolean)],U3.prototype,"isUsingLargeWidth",void 0);_.c([_.ay({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],U3);
_.d(U3,"yt-benefits-flow-step-renderer",function(){if(Ij2===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;T9A===void 0&&(T9A=document.createElement("template"));var D=T9A;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Ij2=G}G=Ij2;return G},{mode:2});var sNS;var xwD;var qE=function(){return _.p.apply(this,arguments)||this};
_.r(qE,_.p);qE.prototype.checkIsUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.v(),_.I("design:type",Object)],qE.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.I("design:type",Boolean)],qE.prototype,"isUsingLargeWidth",void 0);_.c([_.ay({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],qE);
_.d(qE,"yt-confirmation-flow-step-renderer",function(){if(xwD===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;sNS===void 0&&(sNS=document.createElement("template"));var D=sNS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);xwD=G}G=xwD;return G},{mode:2});var PjQ;var GvQ;var BRH=function(){return _.p.apply(this,arguments)||this};
_.r(BRH,_.p);_.c([_.v(),_.I("design:type",Object)],BRH.prototype,"data",void 0);_.c([_.ay({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],BRH);
_.d(BRH,"yt-info-flow-step-renderer",function(){if(GvQ===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;PjQ===void 0&&(PjQ=document.createElement("template"));var D=PjQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);GvQ=G}G=GvQ;return G},{mode:2});var iKQ;var F0B;var DlQ=function(){return _.p.apply(this,arguments)||this};
_.r(DlQ,_.p);_.c([_.v(),_.I("design:type",Object)],DlQ.prototype,"data",void 0);_.c([_.ay({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],DlQ);
_.d(DlQ,"yt-info-list-flow-step-renderer",function(){if(F0B===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;iKQ===void 0&&(iKQ=document.createElement("template"));var D=iKQ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);F0B=G}G=F0B;return G},{mode:2});var uUH=_.Y(function(G){var B=G.data;return _.l("styled-text-view-model",{class:_.tx("ytStyledTextViewModelHost",function(){return aMQ(B().fontAttributes)},function(){return KRz(B().color)})},_.l(_.Wd,{text:function(){return B().text},
ariaLabel:function(){var F,D,u;return(u=(F=B().accessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label)!=null?u:""}}))},"ci");
uUH.idomCompat=!0;var RbG=_.Y(function(G){var B=function(){var u,R,N,y;return(y=(N=(u=G.alt)==null?void 0:u.call(G))!=null?N:(R=G.data().accessibilityData)==null?void 0:R.label)!=null?y:""},F=function(){return G.data().imageWidth},D=function(){return G.data().imageHeight};
return _.l("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.l(_.E,{cond:function(){var u=G.data();if(u){var R,N,y;var U=((R=_.te().resolve(_.fH(_.Rx)))==null?0:R())?(N=u.imageDark)!=null?N:u.imageLight:(y=u.imageLight)!=null?y:u.imageDark}else U=void 0;return U},
then:function(u){return _.l(_.vr,Object.assign({},G,{data:u,alt:B,targetWidth:F,targetHeight:D,preserveHeight:!0,preserveWidth:!0}))}}))},"di");
RbG.idomCompat=!0;var E3=_.Y(function(G){var B=G.data;G=_.pW(function(){return B().slots},[]);
var F=_.pW(function(){return B().layoutProperties},{}),D=_.te().resolve(_.e3);
return _.l("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:lMQ(F,D)},_.l(_.jR,{each:G,keyBy:"INDEX"},function(u){return _.l("div",{class:"ytContainerLayoutViewModelSlot",style:lMQ(function(){return u().layoutProperties},D)},_.l(_.uR,{data:function(){return u().contents}},{containerLayoutViewModel:E3,
badgeViewModel:_.vK,buttonViewModel:_.cd,styledTextViewModel:uUH,contentPreviewImageViewModel:function(R){return _.l(_.I$,{data:R.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(R){return _.l(RbG,{data:R.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ei");
E3.idomCompat=!0;var wAH=_.Y(function(G){var B=G.data;var F=G.stateFns;var D=function(){var q=B(),h=q.productId;return!(!q.clearGroupId&&!h)},u=function(){var q=B(),h=q.clearGroupId;
return(q=q.productId)?F().isProductSelected(q):h?F().getSelectedProductByGroupId(h)==null:!1},R=function(q){var h=B(),K=h.clearGroupId;
if(h=h.productId)F().onProductSelected(h),q==null||q.forEach(function(a){_.rJ(a)});
else if(K)F().onClearGroupSelected(K)},N=function(){var q=B(),h=q.clearGroupId;
if(q=q.productId){var K;return"group:"+(((K=F().getProductById(q))==null?void 0:K.groupId)||"")}return h?"group:"+h:""},y=_.pW(function(){return B().header},[]),U=_.pW(function(){return B().body},[]);
return _.l("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.l(_.E,{cond:function(){return y().length>0||D()},
then:function(){return _.l("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.l("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.l(_.uR,{data:y},{containerLayoutViewModel:function(q){return _.l("div",{class:"ytPdpCardSectionViewModelContentItem"},_.l(E3,{data:q.data}))},
styledTextViewModel:function(q){return _.l("div",{class:"ytPdpCardSectionViewModelContentItem"},_.l(uUH,{data:q.data}))}})),_.l(_.E,{cond:D,
then:function(){return _.l("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.l(_.kB,{checked:u,name:N,onChange:function(){R(B().onSelect)}}))}}))}}),_.l(_.E,{cond:function(){return U().length>0},
then:function(){return _.l("div",null,_.l(_.uR,{data:U},{containerLayoutViewModel:function(q){return _.l("div",{class:"ytPdpCardSectionViewModelContentItem"},_.l(E3,{data:q.data}))}}))}}))},"fi");
wAH.idomCompat=!0;var CqD=_.Y(function(G){var B=G.data;var F=G.stateFns;return _.l("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.l(_.E,{cond:function(){return B().banner},
then:function(D){return _.l("div",{class:"ytPdpCardViewModelBanner"},_.l(_.Wd,{text:D}))}}),_.l(_.uR,{data:function(){return B().sections}},{pdpCardSectionViewModel:function(D){D=D.data;
var u={};return _.l("div",{class:_.tx("ytPdpCardViewModelSectionContainer",(u.ytPdpCardViewModelShowDividers=function(){return B().showDividers},u))},_.l(wAH,{data:D,
stateFns:F}))}}))},"gi");
CqD.idomCompat=!0;var NRZ=_.Y(function(G){var B=G.data;var F=G.isOverlay;G={};return _.l("pdp-masthead-view-model",{class:_.tx("ytPdpMastheadViewModelHost",(G.ytPdpMastheadViewModelIsOverlay=F,G))},_.l(_.uR,{data:function(){return B().image}},{contentPreviewImageViewModel:_.I$,
themedImageViewModel:function(D){return _.l(RbG,{data:D.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.l(_.E,{cond:function(){return B().title},
then:function(D){return _.l("h1",{class:"ytPdpMastheadViewModelHeading"},_.l(_.Wd,{text:D,isOverlay:F}))}}),_.l(_.jR,{each:function(){var D;
return(D=B().finePrint)!=null?D:[]}},function(D){return _.l("div",{class:"ytPdpMastheadViewModelFinePrint"},_.l(_.Wd,{text:D,
isOverlay:F}))}))},"hi");
NRZ.idomCompat=!0;var yp$=_.Y(function(G){var B=G.data;var F=G.stateFns;var D=function(){return"pdp-pricing-group-selector-"+B().pricingGroupAttributeIds},u=_.pW(function(){return B().pricingGroupSelectorSectionHeader});
return _.l("pdp-pricing-group-selector-view-model",null,_.l(_.E,{cond:function(){return!!u()},
then:function(){return _.l(_.uR,{data:u},{sectionHeaderViewModel:function(R){R=R.data;var N={};return _.l("div",{class:_.tx("ytPdpPricingGroupSelectorViewModelSectionHeader",(N.ytPdpPricingGroupSelectorViewModelFullBleed=!0,N.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,N))},_.l(_.BC,{data:R}))}})}}),_.l("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.l(_.jR,{each:function(){var R=F().getSelectedProductByGroupId(B().groupId);
if(!R)return _.Oz(Error("Dl`"+B().groupId)),[];var N,y=(N=B().pricingGroupAttributeIds)!=null?N:[],U;if((U=R.pricingGroups)==null||!U.length||!y.length)return[];N=R.pricingGroups.filter(function(a){return y.length?a.pricingGroupAttributes.every(function(m){return y.includes(m)}):!1});
R=[];if(y.length>0){N=[].concat(_.gi(N));U=_.C(y);for(var q=U.next(),h={};!q.done;h={targetAttrId:void 0},q=U.next())h.targetAttrId=q.value,q=N.findIndex(function(a){return function(m){return m.pricingGroupAttributes.includes(a.targetAttrId)}}(h)),q!==-1&&(R.push(N[q]),N.splice(q,1))}var K=F().getSelectedPricingGroupAttributesByGroupId(B().groupId);
return R.map(function(a){var m=!1;K&&a.pricingGroupAttributes&&(m=BA(a.pricingGroupAttributes,K));return{pricingGroup:a,isSelected:m}})},
keyBy:function(R){return R.pricingGroup.pricingGroupId}},function(R){return _.l("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.l("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.l(_.uR,{data:function(){return R().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:E3})),_.l("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.l(_.kB,{checked:function(){return R().isSelected},
name:D,onClick:function(){var N=R().pricingGroup;F().onPricingGroupSelected(N.pricingGroupId);if(N=_.X1(N.onSelectPricingGroup)){var y;(y=_.te().resolve(_.Wr))==null||y.resolveCommand(N)}}})))})))},"ii");
yp$.idomCompat=!0;var ntD=_.Y(function(G){var B=G.data;var F=G.stateFns;var D=function(){var N=F().getSelectedPricingOptions().map(function(q){return q.pricingOptionId}),y=F().getSelectedProductByGroupId(B().groupId);
if(!y)return _.Oz(Error("El`"+B().groupId)),[];var U=F().getSelectedPricingGroupAttributesByGroupId(B().groupId);return LRD(y.pricingOptions,U,N)},u=_.pW(function(){return B().pricingOptionSelectorSectionHeader}),R=function(){return D().length>1};
return _.l("pdp-pricing-option-selector-view-model",null,_.l(_.E,{cond:function(){return!!u()&&R()},
then:function(){return _.l(_.uR,{data:u},{sectionHeaderViewModel:function(N){N=N.data;var y={};return _.l("div",{class:_.tx("ytPdpPricingOptionSelectorViewModelSectionHeader",(y.ytPdpPricingOptionSelectorViewModelFullBleed=!0,y.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,y))},_.l(_.BC,{data:N}))}})}}),_.l(_.E,{cond:R,
then:function(){return _.l("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.l(_.jR,{each:D,keyBy:"INDEX"},function(N){return _.l("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.l("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.l(_.uR,{data:function(){return N().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:E3})),_.l("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.l(_.kB,{checked:function(){return N().isSelected},
onClick:function(){F().onPricingOptionSelected(N().pricingOption.pricingOptionId);var y=N().pricingOption.onSelectPricingOption;if(y=_.X1(y)){var U;(U=_.te().resolve(_.Wr))==null||U.resolveCommand(y)}}})))}))}}))},"ji");
ntD.idomCompat=!0;var lmQ=_.Y(function(G){var B=G.data;var F=G.stateFns;return _.l("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.l(_.uR,{data:function(){var D,u;return(u=(D=F().getSelectedPricingOptions()[0])==null?void 0:D.primaryButton)!=null?u:B().emptyStateButton}},{buttonViewModel:_.cd}))},"ki");
lmQ.idomCompat=!0;var Ulz=_.Y(function(G){var B=G.stateFns;return _.l("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.l(_.uR,{data:function(){return B().getSelectedPricingOptions().flatMap(function(F){return F.summaryLines}).filter(function(F){return!!F})}},{containerLayoutViewModel:function(F){return _.l("div",{class:"ytPdpSummaryViewModelLineItem"},_.l(E3,{data:F.data}))}}))},"li");
Ulz.idomCompat=!0;var qn2=_.Y(function(G){function B(L){var W=N();_.M7(_.mH("pdpStateEntity",W,{key:W,selectedPricingOptions:L}))}
var F=G.data;var D=G.internalScrolling;var u=G.stateFnsForTesting;var R=_.pW(function(){return F().allProducts},[]),N=_.pW(function(){return F().pdpStateEntityKey},""),y=_.iR(rtQ,N),U=_.mS(function(){_.Mg(!0);
var L;return(L=u==null?void 0:u())!=null?L:HhA(y,R,B)},void 0,"Pzdsic"),q=_.pW(function(){return F().body},[]),h=_.pW(function(){return F().columnBreakHints},[]),K=function(){return F().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},a=function(){return K()||F().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},m=_.mS(function(){var L=_.kP(F().background),W;
if(L==null?0:(W=L.sources)==null?0:W.length){var e=e===void 0?!0:e;L=_.z3Q(void 0,L.sources,void 0,e,e?1E3:void 0,e?void 0:1E3)}else L=null;return L},void 0,"RDPOae");
_.$f(function(){var L=F().onStartCommand;if(L&&(L=_.X1(L))){var W;(W=_.te().resolve(_.Wr))==null||W.resolveCommand(L)}});
G={};return _.l("pdp-view-model",{class:_.tx("ytPdpViewModelHost",(G.ytPdpViewModelHasBackground=function(){return a()||!!m()},G.ytPdpViewModelHasDarkBackground=a,G.ytPdpViewModelHasScrim=K,G.ytPdpViewModelInternalScrolling=D,G.ytPdpViewModelForceSingleColumn=function(){return h().length===0},G)),
style:_.xN({"--pdp-view-model-background":function(){return m()?"url("+m()+")":void 0}})},_.l("div",{class:"ytPdpViewModelColumnContainer"},_.l(_.jR,{each:function(){return kP$(q(),h())},
keyBy:"INDEX"},function(L){return _.l("div",{class:"ytPdpViewModelColumn"},_.l(_.uR,{data:L},{containerLayoutViewModel:function(W){return _.l(hz,null,_.l(E3,{data:W.data}))},
dividerViewModel:function(W){return _.l(hz,{fullBleed:!0},_.l(_.oHs,{data:W.data}))},
pdpCardViewModel:function(W){return _.l(hz,null,_.l(CqD,{data:W.data,stateFns:U}))},
pdpMastheadViewModel:function(W){return _.l(hz,null,_.l(NRZ,{data:W.data,isOverlay:a}))},
pdpPricingGroupSelectorViewModel:function(W){return _.l(hz,null,_.l(yp$,{data:W.data,stateFns:U}))},
pdpPricingOptionSelectorViewModel:function(W){return _.l(hz,null,_.l(ntD,{data:W.data,stateFns:U}))},
pdpPrimaryButtonViewModel:function(W){return _.l(hz,null,_.l(lmQ,{data:W.data,stateFns:U}))},
pdpSummaryViewModel:function(W){return _.l(hz,null,_.l(Ulz,{data:W.data,stateFns:U}))},
sectionHeaderViewModel:function(W){return _.l(hz,{fullBleed:!0,noVerticalPadding:!0},_.l(_.BC,{data:W.data}))}}))})))},"mi");
qn2.idomCompat=!0;var hz=_.Y(function(G){var B={};return _.l("div",{class:_.tx("ytPdpViewModelItem",(B.ytPdpViewModelFullBleed=G.fullBleed,B.ytPdpViewModelNoVerticalPadding=G.noVerticalPadding,B))},G.children)},"ni");_.YN(qn2,"pdp-view-model",{props:{data:_.Hd,stateFnsForTesting:_.oh,internalScrolling:_.oh}});var Et$=_.Y(function(G){var B=G.data;var F=G.className;var D=_.iR(_.dN,function(){return B().flowStateEntityKey});
return _.l("ytm-premium-purchase-button-renderer",{class:_.tx("ytPremiumPurchaseButtonRendererHost",F)},_.l(_.uR,{data:function(){var u;return(u=_.Q(D(),eaQ))==null?void 0:u.primaryButtonOverride}},{buttonRenderer:function(u){return _.l(_.V3,{data:u.data,
className:F})},
buttonViewModel:function(u){return _.l(_.cd,{data:u.data,className:F})}}))},"oi");
Et$.idomCompat=!0;var hb$=_.Y(function(G){var B=G.data;G=G.className;var F=function(){return Oh$(B().style)},D=_.tx("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",F),u=_.tx("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",F);
return _.l("yt-flow-bottom-bar-renderer",{class:_.tx("yt-flow-bottom-bar-renderer",G,F)},_.l(_.uR,{data:function(){return B().secondaryButton}},{buttonRenderer:function(R){return _.l(_.V3,{data:R.data,
className:u})},
buttonViewModel:function(R){return _.l(_.cd,{data:R.data,className:u})},
premiumPurchaseButtonRenderer:function(R){return _.l(Et$,{data:R.data,className:u})}}),_.l(_.uR,{data:function(){return B().primaryButton}},{buttonRenderer:function(R){return _.l(_.V3,{data:R.data,
className:D})},
buttonViewModel:function(R){return _.l(_.cd,{data:R.data,className:D})},
premiumPurchaseButtonRenderer:function(R){return _.l(Et$,{data:R.data,className:D})}}))},"pi");
hb$.idomCompat=!0;_.YN(hb$,"yt-flow-bottom-bar-renderer",{props:{data:_.Hd,className:_.Hd}});var K0$=_.Y(function(G){var B=_.tx(G.className,"ytOfferSummaryRendererHost");return _.l("yt-offer-summary-renderer",{class:B},_.l("div",{class:"ytOfferSummaryRendererTextContainer"},_.l("div",{class:"ytOfferSummaryRendererEyebrowText"},_.l(_.Wd,{text:function(){return G.data().eyebrowText}})),_.l("div",{class:"ytOfferSummaryRendererTitle"},_.l(_.Wd,{text:function(){return G.data().title}})),_.l("div",{class:"ytOfferSummaryRendererSubtitle"},_.l(_.Wd,{text:function(){return G.data().subtitle}})),_.l("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.l(_.jR,{each:function(){var F;
return(F=G.data().featureListData)!=null?F:[]}},function(F){var D;
return _.l("div",{class:"ytOfferSummaryRendererFeatureList"},_.l(_.Pr,{icon:(D=F.icon)==null?void 0:D.iconType,active:function(){return F.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(F.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.l("div",{class:"ytOfferSummaryRendererFeatureListText"},_.l(_.Wd,{text:F.text,
className:function(){return F.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.l("div",{class:"ytOfferSummaryRendererDescription"},_.l(_.Wd,{text:function(){return G.data().description}}))))},"qi");_.YN(_.Y(function(G){var B={};B=_.tx("ytOfferSummaryFlowStepRendererHost",(B.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=G.shouldDisableHeaderTopMargin,B));return _.l("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:B},_.l("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.l("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.l(_.Wd,{text:function(){return G.data().header}})),_.l("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.l(_.Wd,{text:function(){return G.data().subtitle}}))),_.l("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.l(_.uR,{data:function(){return G.data().offerSummary}},{offerSummaryRenderer:function(F){return _.l(K0$,{data:F.data,
className:G.flowClassName})}})))},"ri"),"yt-offer-summary-flow-step-renderer",{props:{data:_.oh,
flowClassName:_.oh,flowStateEntityKey:_.oh,shouldDisableHeaderTopMargin:_.oh}});var am$=_.Y(function(G){var B=G.data;var F=G.className;var D=G.flowStateEntityKey;var u=G.selectionStepStyle;G=_.gJ(function(U){var q=B(),h=D==null?void 0:D();U.target&&(U.stopPropagation(),U=h||"",h=_.dN(_.oy().getState(),U),q=Object.assign({},h,{premiumPurchaseFlowState:{selectedOptionId:q.optionId,primaryButtonOverride:q.primaryButtonOverride}}),_.oy().dispatch(_.wC("flowStateEntity",U,q)));return!1});
var R=function(){return(D==null?void 0:D())||""},N=_.iR(_.dN,R);
_.$f(function(){var U=B(),q=R(),h=N();U.defaultSelected&&q!==""&&U.primaryButtonOverride&&$jS(U.optionId||"",q,U.primaryButtonOverride,h)});
var y={};return _.l("ytm-option-item-renderer",{"on:click":G,class:_.tx(F,"ytm-option-item-renderer",(y["ytm-option-item-renderer--lp2-style"]=function(){return(u==null?void 0:u())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},y))},_.l("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.l("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var U=B(),q=R(),h=N();h=_.Q(h,eaQ);return(h?(h==null?void 0:h.selectedOptionId)||"":U.defaultSelected&&q!==""?(U==null?void 0:U.optionId)||"":"")===B().optionId},
name:("input"+_.mw(_.Qa)).toString()})),_.l("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.l(_.uR,{data:function(){return B().titleBadge}},{badgeViewModel:function(U){return _.l(_.vK,{data:U.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.l(_.E,{cond:function(){return B().eyebrowText},
then:function(){return _.l("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.l(_.Wd,{text:function(){return B().eyebrowText}}))}}),_.l("div",{class:"ytm-option-item-renderer__option-item-title"},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.l(_.Wd,{text:function(){return B().subtitle}})),_.l(_.E,{cond:function(){return B().featureListData},
then:function(){return _.l("div",{class:"ytm-option-item-renderer__feature-list-data"},_.l(_.jR,{each:function(){return B().featureListData||[]}},function(U){var q,h=(q=U.icon)==null?void 0:q.iconType;
a:switch(U.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":q="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":q="ytm-option-item-renderer__feature-list-icon-small";break a;default:q="ytm-option-item-renderer__feature-list-icon-default"}return _.l("div",{class:"ytm-option-item-renderer__feature-list"},_.l(_.Pr,{icon:h,className:q,active:function(){return U.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.l("div",{class:"ytm-option-item-renderer__feature-list-text"},_.l(_.Wd,{text:U.text,
className:function(){return U.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.l("div",{class:"ytm-option-item-renderer__option-item-description"},_.l(_.Wd,{text:function(){return B().description}}))))},"si");var mlH=_.Y(function(G){var B=G.data;var F=G.flowClassName;var D=G.flowStateEntityKey;var u=G.selectionStepStyle;return _.l("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.l("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.l("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.l(_.Wd,{text:function(){return B().title}}),_.l(_.uR,{data:function(){return B().titleBadge}},{badgeViewModel:function(R){return _.l(_.vK,{data:R.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.l(_.E,{cond:function(){return B().subtitle},
then:function(){return _.l("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.l(_.Wd,{text:function(){return B().subtitle}}))}}),_.l(_.E,{cond:function(){return B().featureListData},
then:function(R){return _.l("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.l(_.jR,{each:R},function(N){var y;return _.l("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.l(_.Pr,{icon:(y=N.icon)==null?void 0:y.iconType,active:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(N.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.l("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.l(_.Wd,{text:N.text,
className:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.l(_.E,{cond:function(){return B().secondaryTitle},
then:function(){return _.l("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.l(_.Wd,{text:function(){return B().secondaryTitle}}))}}),_.l(_.jR,{each:function(){return B().sectionDisclaimers||[]}},function(R){return _.l("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.l(_.Wd,{text:R}))})),_.l(_.uR,{data:function(){return B().optionItems}},{optionItemRenderer:function(R){return _.l("div",{class:"ytOptionSectionRendererOptionItem"},_.l(am$,{data:R.data,
className:F,flowStateEntityKey:D,selectionStepStyle:u}))}}),_.l(_.E,{cond:function(){return B().offerText},
then:function(){return _.l("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.l(_.Wd,{text:function(){return B().offerText}}))}}))},"ti");
mlH.idomCompat=!0;var XAB=_.Y(function(G){var B=G.data;var F=G.flowClassName;var D=G.flowStateEntityKey;G=G.isDesktop;var u=_.W5("div"),R=function(){var h;return(h=B().flowStateEntityKey)!=null?h:D==null?void 0:D()},N=function(){return(R==null?void 0:R())||""},y=function(){return B().style},U=_.iR(_.dN,N);
_.$f(function(){za2(B(),N(),U());setTimeout(function(){var h;(h=u.value)==null||h.focus()})});
var q={};return _.l("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.tx("ytm-option-selection-flow-step-renderer",(q["ytm-option-selection-flow-step-renderer--desktop"]=G,q["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return B().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},q))},_.l("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"},
_.l("div",{el:u,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.l(_.Wd,{text:function(){return B().header}})),_.l("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.l(_.Wd,{text:function(){return B().subtitle}}))),_.l(_.uR,{data:function(){return B().optionItems||[]}},{optionItemRenderer:function(h){return _.l("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.l(am$,{data:h.data,
className:F,flowStateEntityKey:R,selectionStepStyle:y}))},
optionSectionRenderer:function(h){return _.l("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.l(mlH,{data:h.data,flowClassName:F,flowStateEntityKey:R,selectionStepStyle:y}))}}))},"ui");
XAB.idomCompat=!0;_.YN(XAB,"yt-option-selection-flow-step-renderer",{props:{data:_.Hd,flowClassName:_.Hd,flowStateEntityKey:_.Hd,isDesktop:_.Hd}});var K6=_.Y(function(G){var B=_.AS(G,{type:1,disablePadding:!1,disablePrimaryButton:!1}),F=B.data,D=B.type;G=B.disablePadding;var u=B.disablePrimaryButton,R=B.onClickPrimaryButton,N=function(){return F().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},y=function(){return{disabled:u(),
state:u()?"disabled":"active"}},U=function(){return F().leadingLabel||F().trailingLabel};
B={};return _.l("yt-panel-footer-view-model",{class:_.tx("yt-panel-footer-view-model",(B["yt-panel-footer-view-model--hide-divider"]=function(){return F().shouldHideDivider},B["yt-panel-footer-view-model--disable-padding"]=G,B))},_.l(_.E,{cond:U,
then:function(){var q={},h={};return _.l("div",{class:_.tx("yt-panel-footer-view-model__text-row",(q["yt-panel-footer-view-model--row-bottom-padding"]=function(){var K=F();return!(!K.leadingLabel&&!K.trailingLabel||!K.primaryButton&&!K.secondaryButton)},q))},_.l(_.Wd,{text:function(){return F().leadingLabel},
className:_.tx((h["yt-panel-footer-view-model--text-padding"]=U,h))}),_.l(_.Wd,{text:function(){return F().trailingLabel}}))}}),_.l(_.E,{cond:N,
then:function(){var q={};return _.l("div",{class:"yt-panel-footer-view-model__button-stack"},_.l("div",{class:_.tx("yt-panel-footer-view-model__primary-button",(q["yt-panel-footer-view-model__button-stack--top-button"]=function(){return F().secondaryButton},q))},_.l(_.uR,{data:function(){return F().primaryButton}},{buttonViewModel:function(h){return _.l(_.cd,{data:h.data,
buttonOverrides:y,onClick:R})}})),_.l(_.uR,{data:function(){return F().secondaryButton}},{buttonViewModel:_.cd}))}}),_.l(_.E,{cond:function(){return!N()},
then:function(){var q={},h={},K={};return _.l("div",{class:_.tx("yt-panel-footer-view-model__button-row",(q["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===D()},q))},_.l("div",{class:_.tx("yt-panel-footer-view-model__button-row--left-button",(h["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===D()},h["yt-panel-footer-view-model__button-row--hidden"]=function(){return!F().secondaryButton||0===D()},h["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===D()},h))},_.l(_.uR,{data:function(){return F().secondaryButton}},{buttonViewModel:_.cd})),_.l("div",{class:_.tx("yt-panel-footer-view-model__primary-button",(K["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===D()||1===D()},K["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===D()},K))},_.l(_.uR,{data:function(){return F().primaryButton}},{buttonViewModel:function(a){return _.l(_.cd,{data:a.data,
buttonOverrides:y,onClick:R})}})))}}))},"vi");
K6.idomCompat=!0;var QlA=_.Y(function(G){G=_.AS(G,{disablePadding:!1});var B=G.data,F=G.disablePadding;G=_.euM(function(){return B().formId},void 0,function(){return B().onSubmitSuccess});
var D=G.submitForm,u=G.isValid,R=G.isSubmitting;return _.l("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.l(_.uR,{data:function(){return B().panelFooter}},{panelFooterViewModel:function(N){return _.l(K6,{data:N.data,
onClickPrimaryButton:function(){D()},
disablePrimaryButton:function(){return!u()||R()},
disablePadding:F})}}))},"wi");_.YN(QlA,"yt-form-footer-view-model",{props:{data:_.Hd,disablePadding:_.Hd}});var jlN=_.Y(function(G){var B=_.X("enable_user_rating_web");return _.l("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.l("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.l(_.E,{cond:function(){var F;return(F=G.data())==null?void 0:F.image},
then:function(F){return _.l(_.vr,{data:F,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.l("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.l(_.Wd,{text:function(){var F;
return(F=G.data())==null?void 0:F.title}})),_.l("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.l(_.Wd,{text:function(){var F;
return(F=G.data())==null?void 0:F.subtitle}})),_.l(_.E,{cond:function(){return!B},
then:function(){return _.l(_.uR,{data:function(){var F;return(F=G.data())==null?void 0:F.viewTipsButton}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"xi");_.YN(jlN,"yt-contributor-zero-state-view-model",{props:{data:_.Hd}});var L02=_.Y(function(G){var B=function(){var F;return(F=G.data())==null?void 0:F.image};
return _.l("yt-featured-content-item-view-model",{class:_.tx("ytFeaturedContentItemViewModelHost")},_.l("div",{class:_.tx(function(){return B()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.l("div",{class:function(){return B()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.l(_.E,{cond:B,
then:function(){return _.l("div",{class:"ytFeaturedContentItemViewModelImage"},_.l(_.uR,{data:function(){return G.data().image}},{themedImageViewModel:function(F){return _.l(RbG,{data:F.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.l(_.E,{cond:function(){var F;
return!B()&&((F=G.data())==null?void 0:F.iconName)},
then:function(){return _.l("div",{class:"ytFeaturedContentItemViewModelIcon"},_.l(_.Pr,{icon:function(){return G.data().iconName}}))}}),_.l("div",{class:"ytFeaturedContentItemViewModelContent"},_.l(_.E,{cond:function(){var F;
return(F=G.data())==null?void 0:F.title},
then:function(){return _.l("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.l(_.Wd,{text:function(){return G.data().title}}))}}),_.l(_.E,{cond:function(){var F;
return(F=G.data())==null?void 0:F.body},
then:function(){return _.l("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.l(_.Wd,{text:function(){return G.data().body}}))}})))))},"yi");var rpN=_.Y(function(G){var B=function(){var u;return bhZ((u=G.data())==null?void 0:u.titleFontSize)},F=function(){var u;
return V3$((u=G.data())==null?void 0:u.descriptionFontSize)},D=function(){var u;
return((u=G.data())==null?void 0:u.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.l("yt-landing-page-view-model",{class:_.tx("ytLandingPageViewModelHost",G.className)},_.l("div",{class:"ytLandingPageViewModelHeader"},_.l(_.E,{cond:function(){var u;return(u=G.data())==null?void 0:u.bannerImage},
then:function(u){return _.l("div",{class:"ytLandingPageViewModelHeaderImage"},_.l(_.uR,{data:function(){return u()}},{imageBannerViewModel:function(R){return _.l(_.bt,{data:R.data,
isPositionRelative:!0})}}))}}),_.l(_.E,{cond:function(){var u;
return(u=G.data())==null?void 0:u.bannerAnimation},
then:function(u){return _.l(_.gy,{data:function(){var R=u();if(R==null?0:R.url){var N;R={path:(N=R==null?void 0:R.url)!=null?N:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(R==null?0:R.payload){var y;R={animationData:JSON.parse((y=R==null?void 0:R.payload)!=null?y:""),autoplay:!0,loop:!0,renderer:"svg"}}else R=void 0;return{animationConfig:R}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.l("div",{class:"ytLandingPageViewModelHeaderTitle"},_.l(_.E,{cond:function(){var u;
return(u=G.data())==null?void 0:u.title},
then:function(u){return _.l("div",{class:_.tx("ytLandingPageViewModelHeaderTitleContent",B)},_.l(_.Wd,{text:function(){return u()}}))}}),_.l(_.E,{cond:function(){var u;
return(u=G.data())==null?void 0:u.description},
then:function(u){var R={};return _.l(_.Wd,{className:_.tx("ytLandingPageViewModelHeaderTitleDescription",F,(R.ytLandingPageViewModelHeaderTitleDescriptionMargin=D,R)),text:function(){return u()}})}}))),_.l(_.E,{cond:function(){var u,R;
return(u=G.data())==null?void 0:(R=u.featuredContentList)==null?void 0:R.length},
then:function(){return _.l("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.l(_.uR,{data:function(){return G.data().featuredContentList}},{featuredContentItemViewModel:function(u){return _.l(L02,{data:u.data})}}))}}),_.l(_.E,{cond:function(){var u,R;
return(u=G.data())==null?void 0:(R=u.expandableContentList)==null?void 0:R.length},
then:function(){return _.l("div",{class:"ytLandingPageViewModelFaqSection"},_.l(_.uR,{data:function(){return G.data().expandableContentList}},{faqEntryViewModel:function(u){return _.l("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.l(_.af7,{data:u.data}))}}))}}),_.l("div",{class:"ytLandingPageViewModelFooter"},_.l(_.E,{cond:function(){var u;
return(u=G.data())==null?void 0:u.legalCopy},
then:function(u){return _.l("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.l(_.Wd,{text:function(){return u()}}))}}),_.l(_.E,{cond:function(){var u;
return(u=G.data())==null?void 0:u.actions},
then:function(u){return _.l("div",null,_.l(_.uR,{data:function(){return u()}},{flexibleActionsViewModel:function(R){return _.l(_.KL,{data:R.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"zi");_.YN(_.Y(function(G){return _.l("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.l("div",{class:"ytLpSectionGroupViewModelContainer"},_.l(_.uR,{data:function(){return G.data().sections}},{landingPageViewModel:function(B){return _.l(rpN,{data:B.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Ai"),"yt-lp-section-group-view-model",{props:{data:_.Hd}});var W0Z=_.Y(function(G){var B=G.data;var F=G.selectedKey;var D=G.onSelected;var u=G.groupName;var R=function(){return B().text},N=function(){return B().attributedText},y=function(){return B().subtext},U=function(){return B().attributedSubtext},q=function(){return B().selectionText},h=function(){return B().trailingIconName},K=_.l("div",{class:"ytRadioButtonItemViewModelLabel"},_.l("div",null,_.l(_.E,{cond:R,
then:function(){return _.l("div",null,R)}}),_.l(_.E,{cond:N,
then:function(){return _.l(_.Wd,{text:N})}}),_.l(_.E,{cond:y,
then:function(){return _.l("div",{class:"ytRadioButtonItemViewModelSubText"},y)}}),_.l(_.E,{cond:U,
then:function(){return _.l(_.Wd,{text:U,className:"ytRadioButtonItemViewModelSubText"})}})),_.l(_.E,{cond:function(){return q()||h()},
then:function(){return _.l("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.l(_.E,{cond:q,then:function(){return _.l(_.Wd,{text:q,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.l(_.E,{cond:h,
then:function(){return _.l(_.Pr,{icon:h,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
G={};return _.l("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.l(_.kB,{name:u,checked:function(){return!(F==null||!F()||B().key!==(F==null?void 0:F()))},
onChange:function(a){D==null||D(a.target,B(),u==null?void 0:u())},
labelRenderable:function(){return K},
ariaLabel:function(){var a,m;var L=(m=(a=U())==null?void 0:a.content)!=null?m:y();var W,e;a=(e=(W=N())==null?void 0:W.content)!=null?e:R();return L?a+", "+L:a},
className:_.tx((G.ytRadioButtonItemViewModelSubTitle=function(){return!!y()},G))}))},"Bi");var HK2=_.Y(function(G){var B=G.data,F=G.onSelected,D=G.selectedKey,u=G.groupName;G=G.className;var R=_.C(_.qg(!1,void 0,"mDtSad")),N=R.next().value,y=R.next().value,U=function(){if(D!==void 0){var q=D();return!(!q||B().key!==q)}return N()};
R=_.gJ(function(q){F?F(q.currentTarget,B(),u==null?void 0:u()):y(!N())});
return _.l("yt-selectable-item-view-model",{class:_.tx("ytSelectableItemViewModelHost",G,"ytSelectableItemViewModelContainer"),"on:click":R,"prop:checked":U},_.l(_.uR,{data:function(){return B().content}},{cardViewModel:function(q){return _.l(_.OtH,{data:q.data,
isSelected:U})}}))},"Ci");var kvB=_.Y(function(G){var B=G.data;var F=G.onSelected;var D=G.selectedKey;var u=G.groupName;var R=function(){return(u==null?void 0:u())||B().key};
return _.l("yt-radio-button-group-view-model",{class:_.tx("ytRadioButtonGroupViewModelHost",G.className)},_.l("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.l(_.uR,{data:function(){return B().radioButtons}},{radioButtonItemViewModel:function(N){return _.l(W0Z,{data:N.data,
onSelected:F,selectedKey:D,groupName:R})},
selectableItemViewModel:function(N){return _.l(HK2,{data:N.data,onSelected:F,selectedKey:D,groupName:R})}})))},"Di");var OKN=_.Y(function(G){_.$f(function(){if(G.controlledMode()&&G.data().defaultSelected)_.k2(Error("Fl"));else{var R;!G.controlledMode()&&((R=G.selected)==null?0:R.call(G))&&_.k2(Error("Gl"))}});
var B=_.C(_.d3(function(){if(!G.controlledMode())return G.data().defaultSelected})),F=B.next().value,D=B.next().value,u=function(){if(!G.controlledMode())return F();
var R;return(R=G.selected)==null?void 0:R.call(G)};
return _.l("yt-checkbox-item-view-model",{class:_.tx("ytCheckboxItemViewModelHost",G.className)},_.l(_.OP,{data:function(){var R=G.data(),N=u();return{title:R.text,subtitle:R.subtext,superlabel:R.superlabel,isSelected:!!N,isDisabled:R.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!G.controlledMode()&&D(!F());var R,N;(N=G.onTap)==null||N.call(G,!!u(),G.data(),(R=G.groupName)==null?void 0:R.call(G))},
isCompact:G.isCompact,disableHorizontalPadding:G.disableHorizontalPadding}))},"Ei");var eb$=_.Y(function(G){var B=G.data;var F=G.controlledMode;var D=G.selectedKeys;var u=G.onItemTap;var R=G.groupName;var N=G.disableHorizontalPadding;var y=function(){return(R==null?void 0:R())||B().key};
_.$f(function(){F()&&B().defaultSelectedKeys?_.k2(Error("Hl")):!F()&&(D==null?0:D())&&_.k2(Error("Il"))});
G=_.C(_.d3(function(){if(!F())return B().defaultSelectedKeys}));
var U=G.next().value,q=G.next().value,h=function(K,a,m){K=[];!F()&&a.key&&(K=vP$(a.key,U()||[]),q(K));u==null||u(a,K,m)};
return _.l("yt-checkbox-group-view-model",{class:_.tx("ytCheckboxGroupViewModelHost")},_.l("fieldset",{class:_.tx("ytCheckboxGroupViewModelFieldset")},_.l("div",{role:"list"},_.l(_.uR,{data:function(){return B().checkboxes}},{checkboxItemViewModel:function(K){var a=K.data;
return _.l(OKN,{data:a,controlledMode:!0,selected:function(){var m=F()?(D==null?void 0:D())||[]:U()||[],L=a().key;return L?m.includes(L):!1},
onTap:h,groupName:y,disableHorizontalPadding:N})}}))))},"Fi");var $l$=_.Cz(oP$,{debugName:"ytAlertBannerViewModel"});_.gn(_.LO,function(G){_.rv(G,"ytAlertBannerViewModel","n0DHg",oP$)});var a0=_.Y(function(G){var B=_.iR(M3G,_.pW(function(){var y;return(y=G.data())==null?void 0:y.noteFeedEntityKey},"")),F=_.iR(lVA,_.pW(function(){var y;
return(y=G.data())==null?void 0:y.userRatingEntityKey},"")),D=_.X("enable_user_rating_web"),u=function(){var y,U,q;
return((y=B())==null?0:y.contributorNote)?(U=B())==null?void 0:U.contributorNote:(q=G.data())==null?void 0:q.existingNote},R=function(){var y,U;
return!!F()&&!!p_$((y=F())==null?void 0:y.helpfulnessValue,(U=G.data())==null?void 0:U.noteData)};
if(D){var N={};return _.l("yt-note-view-model",{class:_.tx("ytNoteViewModelHostUserRating",(N.ytNoteViewModelHostUserRatingPublishedNote=function(){var y,U,q,h;return((y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.isPublished)&&!((q=G.data())==null?0:(h=q.noteData)==null?0:h.isUserRatingForm)},N))},_.l("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.l("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.l(_.E,{cond:function(){var y,U;
return(y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.isPinned},
then:function(){return _.l(_.Pr,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.l(_.E,{cond:function(){var y,U;return(y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.isPublished},
then:function(){return _.l(_.Pr,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.l(_.uR,{data:function(){var y;
return(y=G.data())==null?void 0:y.metadata}},{contentMetadataViewModel:_.t8}),_.l("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var y,U;
return(U=_.Q((y=G.data())==null?void 0:y.metadata,_.TAq))==null?void 0:U.delimiter}),_.l(_.Wd,{text:function(){var y;
return(y=u())==null?void 0:y.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.l(_.E,{cond:function(){var y,U;return!((y=G.data())==null?0:(U=y.noteData)==null?0:U.isUserRatingForm)},
then:function(){return _.l(_.uR,{data:function(){var y,U,q,h,K,a,m,L=!!((y=G.data())==null?0:(U=y.noteData)==null?0:U.isPinned);y=R();U=(q=G.data())==null?void 0:q.noteData;q=(h=B())==null?void 0:(K=h.contributorNote)==null?void 0:K.deleteAction;h=(a=G.data())==null?void 0:a.overflowButtonNoteWithRatingOnTapOverride;a=(m=G.data())==null?void 0:m.overflowButton;var W;m=(W=_.Q(a,_.LV))==null?void 0:W.accessibilityText;return L?YY$(U,q,m):y?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:h,accessibilityText:m}}:a}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.l("div",{class:"ytNoteViewModelNoteContent"},_.l(_.Wd,{text:function(){var y;
return(y=u())==null?void 0:y.text}})),_.l(_.E,{cond:function(){var y,U,q,h;
return!((y=G.data())==null?0:(U=y.noteData)==null?0:U.isPinned)&&!((q=G.data())==null?0:(h=q.noteData)==null?0:h.isUserRatingForm)},
then:function(){return _.l(_.E,{cond:R,then:function(){return _.l("div",{class:"ytNoteViewModelUserRatingContainer"},_.l(_.Wd,{text:function(){var y,U;return p_$((y=F())==null?void 0:y.helpfulnessValue,(U=G.data())==null?void 0:U.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.l(_.uR,{data:function(){var y;return(y=G.data())==null?void 0:y.userRatingButton}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.l(_.E,{cond:function(){var y,U,q,h;
return!((y=G.data())==null?0:(U=y.noteData)==null?0:U.ignoreDivider)&&!((q=G.data())==null?0:(h=q.noteData)==null?0:h.isUserRatingForm)},
then:function(){return _.l("div",{class:"ytNoteViewModelDivider"},_.l(_.uR,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(y){return _.l(_.oHs,{data:y.data})}}))}}))}return _.l("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.l("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.l("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.l(_.E,{cond:function(){var y,U;return(y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.isPinned},
then:function(){return _.l(_.Pr,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.l(_.E,{cond:function(){var y,U;return(y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.isPublished},
then:function(){return _.l(_.Pr,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.l(_.E,{cond:function(){return D},
then:function(){return _.l(_.uR,{data:function(){var y;return(y=G.data())==null?void 0:y.metadata}},{contentMetadataViewModel:function(y){return _.l(_.t8,{data:y.data})}})}}),_.l(_.Wd,{text:function(){var y,U;
return(y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.headerText}}),_.l("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.l(_.Wd,{text:function(){var y,U;
return(y=G.data())==null?void 0:(U=y.noteData)==null?void 0:U.delimiter}})),_.l(_.Wd,{text:function(){var y,U;
return(y=B())==null?void 0:(U=y.contributorNote)==null?void 0:U.publishedTimeText}})),_.l(_.uR,{data:function(){var y,U,q;
return YY$((y=G.data())==null?void 0:y.noteData,(U=B())==null?void 0:(q=U.contributorNote)==null?void 0:q.deleteAction)}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.l("div",{class:"ytNoteViewModelNoteContent"},_.l(_.Wd,{text:function(){var y,U;
return(y=B())==null?void 0:(U=y.contributorNote)==null?void 0:U.text}})))},"Gi");
a0.idomCompat=!0;_.YN(_.Y(function(G){var B=_.pW(function(){var M;return(M=G.data())==null?void 0:M.flowStateEntityKey},""),F=_.iR(_.dN,B),D=_.iR(M3G,_.pW(function(){var M;
return(M=G.data())==null?void 0:M.noteFeedEntityKey},"")),u=_.C(_.d3(function(){var M;
return(M=_.Q(G.data().helpfulnessValue,Lp$))==null?void 0:M.defaultSelectedKey})),R=u.next().value,N=u.next().value;
u=_.C(_.d3(function(){var M,t,T;return(T=_.Q((M=_.Q(G.data().helpfulnessValue,Lp$))==null?void 0:(t=M.radioButtons)==null?void 0:t.find(function(A){var Z;return((Z=_.Q(A,rvD))==null?void 0:Z.key)===R()}),rvD))==null?void 0:T.value}));
var y=u.next().value,U=u.next().value;u=_.C(_.d3(function(){var M;return(M=_.Q(G.data().helpfulReasons,jjG))==null?void 0:M.defaultSelectedKeys}));
var q=u.next().value,h=u.next().value;u=_.C(_.d3(function(){var M;return(M=_.Q(G.data().notHelpfulReasons,jjG))==null?void 0:M.defaultSelectedKeys}));
var K=u.next().value,a=u.next().value,m=function(M,t){N(t.key);U(t.value);h([]);a([])},L=function(){var M,t;
return((M=y())==null?void 0:M.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((t=y())==null?void 0:t.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},W=function(){var M,t;
return((M=y())==null?void 0:M.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((t=y())==null?void 0:t.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},e=function(M){AtB(M.key,q,h)},b=function(M){AtB(M.key,K,a)};
_.$f(function(){var M,t,T;N8S((M=G.data())==null?void 0:(t=M.userRatingFormSchema)==null?void 0:t.id,{isValid:function(){return!!R()},
formData:function(){var A=y(),Z=Jt$(q(),_.Q(G.data().helpfulReasons,jjG)),P=Jt$(K(),_.Q(G.data().notHelpfulReasons,jjG));A={helpfulnessValue:A==null?void 0:A.noteHelpfulnessValue};if(Z){A.helpfulReasons=[];Z=_.C(Z);for(var RI=Z.next();!RI.done;RI=Z.next()){RI=RI.value;var yo=void 0;if((yo=RI)==null?0:yo.noteHelpfulReason)yo=void 0,A.helpfulReasons.push((yo=RI)==null?void 0:yo.noteHelpfulReason)}}if(P)for(A.notHelpfulReasons=[],P=_.C(P),Z=P.next();!Z.done;Z=P.next())if(Z=Z.value,RI=void 0,(RI=Z)==
null?0:RI.noteNotHelpfulReason)RI=void 0,A.notHelpfulReasons.push((RI=Z)==null?void 0:RI.noteNotHelpfulReason);return{userRatingFormData:A}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(T=_.Q(F(),s$D))==null?void 0:T.submitFormParams},onSubmitResult:function(){var A,Z=(A=_.Q(F(),s$D))==null?void 0:A.userRatingEntityKey,P;A={key:Z,helpfulnessValue:(P=y())==null?void 0:P.noteHelpfulnessValue};Z&&_.M7(_.wC("contextNoteUserRatingEntityPayload",Z,A));var RI;Z=(RI=G.data())==null?void 0:RI.viewNoteFlowStepId;var yo;if((yo=D())==null||!yo.contributorNote){var hg;Z=(hg=G.data())==null?void 0:hg.zeroStateFlowStepId}(RI=
Object.assign({},F()))&&Z&&(RI.currentStepId=Z,RI.stepIdStack=[Z],_.M7(_.wC("flowStateEntity",B(),RI)));var US;(RI=(US=G.data())==null?void 0:US.ratingSubmittedSnackbarCommand)&&_.rJ(RI)},
disableDuringSubmission:!0})});
return _.l("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.l(_.uR,{data:function(){var M=_.Q(F(),s$D);if(M){var t;var T={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:M==null?void 0:(t=M.note)==null?void 0:t.headerText}]}],delimiter:"\u2022"}},existingNote:M.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else T=void 0;return T}},{noteViewModel:function(M){return _.l("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.l(a0,{data:M.data}))}}),_.l(_.uR,{data:function(){var M;
return(M=G.data())==null?void 0:M.helpfulnessValue}},{radioButtonGroupViewModel:function(M){return _.l("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.l(kvB,{data:M.data,
onSelected:m,selectedKey:R}))}}),_.l(_.E,{cond:L,
then:function(){return _.l("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.l("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.l(_.Wd,{text:function(){var M;return(M=G.data())==null?void 0:M.helpfulReasonQuestion}})),_.l(_.uR,{data:function(){var M;
return(M=G.data())==null?void 0:M.helpfulReasons}},{checkboxGroupViewModel:function(M){return _.l(eb$,{data:M.data,
onItemTap:e,selectedKeys:q,controlledMode:!0})}}))}}),_.l(_.E,{cond:W,
then:function(){return _.l("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.l("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.l(_.Wd,{text:function(){var M;return(M=G.data())==null?void 0:M.notHelpfulReasonQuestion}})),_.l(_.uR,{data:function(){var M;
return(M=G.data())==null?void 0:M.notHelpfulReasons}},{checkboxGroupViewModel:function(M){return _.l(eb$,{data:M.data,
onItemTap:b,selectedKeys:K,controlledMode:!0})}}))}}),_.l(_.E,{cond:function(){return!L()&&!W()},
then:function(){return _.l(_.uR,{data:function(){var M;return(M=G.data())==null?void 0:M.helpfulNoteFeatures}},{alertBannerViewModel:function(M){return _.l("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.l($l$,{data:M.data}))}})}}))},"Hi"),"yt-note-user-rating-view-model",{props:{data:_.Hd}});_.YN(a0,"yt-note-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=_.iR(M3G,_.pW(function(){var F;return(F=G.data())==null?void 0:F.noteFeedEntityKey},""));
return _.l("yt-notes-wrapper-view-model",{class:_.tx("ytNotesWrapperViewModelHost")},_.l(_.E,{cond:function(){var F,D,u;return!((F=G.data())==null||!F.existingNotes)||!((D=G.data())==null||!D.currentNote)&&!((u=B())==null||!u.contributorNote)},
then:function(){return _.l(_.GJ,null,_.l(_.uR,{data:function(){var F,D,u,R;return((D=_.Q((F=G.data())==null?void 0:F.currentNote,xFG))==null?0:(u=D.noteData)==null?0:u.isPublished)?(R=G.data())==null?void 0:R.currentNote:void 0}},{noteViewModel:function(F){return _.l(a0,{data:F.data})}}),_.l(_.uR,{data:function(){var F;
return(F=G.data())==null?void 0:F.existingNotes}},{noteViewModel:function(F){var D=F.data;
return _.l(_.E,{cond:function(){var u,R;return(u=D())==null?void 0:(R=u.noteData)==null?void 0:R.isPublished},
then:function(){return _.l(a0,{data:D})}})}}),_.l(_.uR,{data:function(){var F,D,u,R,N;
return((D=_.Q((F=G.data())==null?void 0:F.currentNote,xFG))==null?0:(u=D.noteData)==null?0:u.isPublished)||(R=B())==null||!R.contributorNote?void 0:(N=G.data())==null?void 0:N.currentNote}},{noteViewModel:function(F){return _.l(a0,{data:F.data})}}),_.l(_.uR,{data:function(){var F;
return(F=G.data())==null?void 0:F.existingNotes}},{noteViewModel:function(F){var D=F.data;
return _.l(_.E,{cond:function(){var u,R;return!((u=D())==null?0:(R=u.noteData)==null?0:R.isPublished)},
then:function(){return _.l(a0,{data:D})}})}}))},
else:function(){return _.l(_.uR,{data:function(){var F;return(F=G.data())==null?void 0:F.zeroStateData}},{contributorZeroStateViewModel:jlN})}}))},"Ii"),"yt-notes-wrapper-view-model",{props:{data:_.Hd}});var TC$=new Map;var fMZ;var t3z=new Map;var bKS=_.Y(function(G){var B=_.AS(G,{label:"",hideLabel:!1,text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,ariaLabel:void 0,timePickerData:void 0,error:void 0,hasError:!1,validation:void 0,characterLimit:void 0}),F=B.label,D=B.hideLabel,u=B.text,R=B.placeholder,N=B.hint;G=B.rows;var y=B.overflowStyle,U=B.outline,q=B.disabled,h=B.disableNewLines,K=B.onInput,a=B.ariaLabel,m=B.timePickerData,L=B.error,W=B.hasError,e=B.validation,b=B.characterLimit,
M=_.W5("textarea");B=_.C(_.d3(function(){return u()}));
var t=B.next().value,T=B.next().value;B=_.C(_.qg(!1,void 0,"PheJId"));var A=B.next().value,Z=B.next().value,P=function(){Z(!0)},RI=function(){Z(!1)};
_.$f(function(){var K7=M.value,kD=y(),Rz=t();kD==="expand-vertically"&&Rz&&gPG(K7);M.value.addEventListener("focusin",P);M.value.addEventListener("focusout",RI)});
_.VI(function(){M.value.removeEventListener("focusin",P);M.value.removeEventListener("focusout",RI)});
var yo=function(){var K7;return(K7=e())==null?void 0:K7.validate(t())},hg=function(){var K7,kD,Rz;
return(Rz=(K7=L())==null?void 0:K7.maxChars)!=null?Rz:(kD=b())==null?void 0:kD.maxChars},US=function(){return hg()===void 0?!1:!yo()&&t().length>hg()},aI=function(){var K7,kD;
return((K7=L())==null?void 0:K7.errorMessage)||yo()||US()&&((kD=b())==null?void 0:kD.errorMessage)},v6=function(){return!!aI()||W()};
B=_.gJ(function(K7){if(!K7.currentTarget)return!1;K7=K7.currentTarget;T(K7.value);y()==="expand-vertically"&&gPG(K7);K==null||K(K7.value);return!0});
var Jg=_.gJ(function(K7){h()&&K7.key==="Enter"&&K7.preventDefault();return!1}),c6=_.gJ(function(){M.value.focus()}),q8=function(){return R()||F()},n7={},Ts={},hT={},L7={};
return _.l("textarea-shape",{class:_.tx("ytStandardsTextareaShapeHost",(n7.ytStandardsTextareaShapeTimePicker=function(){var K7;return(K7=m())==null?void 0:K7.useTimePickerStyles},n7))},_.l("div",{class:_.tx("ytStandardsTextareaShapeTextareaContainer",(Ts.ytStandardsTextareaShapeTextareaContainerOutline=U,Ts.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=q,Ts.ytStandardsTextareaShapeTextareaContainerOutlineError=v6,Ts.ytStandardsTextareaShapeTextareaContainerLabelHidden=D,Ts)),
"on:click":c6},_.l("label",{class:_.tx("ytStandardsTextareaShapeLabel",(hT.ytStandardsTextareaShapeLabelFocused=A,hT.ytStandardsTextareaShapeLabelDisabled=q,hT.ytStandardsTextareaShapeLabelError=function(){return v6()&&!q()},hT.ytStandardsTextareaShapeLabelHidden=function(){return D()||!A()&&!t()&&!!q8()},hT))},F),_.l("div",{class:_.tx("ytStandardsTextareaShapePlaceholder",(L7.ytStandardsTextareaShapePlaceholderVisible=function(){return!A()&&!t()},L7)),
"aria-hidden":"true"},q8),_.l("textarea",{el:M,"aria-label":a,class:"ytStandardsTextareaShapeTextarea",rows:G,disabled:q,placeholder:q8,"prop:value":t,"on:input":B,"on:keydown":Jg})),_.l(_.E,{cond:function(){return N()&&!v6()},
then:function(){var K7={};return _.l("div",{class:_.tx("ytStandardsTextareaShapeHint",(K7.ytStandardsTextareaShapeHintDisabled=q,K7))},_.l("div",{class:"ytStandardsTextareaShapeHintHintMessage"},N))}}),_.l(_.E,{cond:aI,
then:function(){return _.l(zb$,{disabled:q},_.l("div",{class:"ytStandardsTextareaShapeErrorMessage"},aI),_.l(_.E,{cond:US,then:function(){return _.l("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return t().length+"/"+hg()})}}))}}))},"Ji");
bKS.idomCompat={callbacks:{onInput:!0}};var zb$=_.Y(function(G){var B={};return _.l("div",{class:_.tx("ytStandardsTextareaShapeError",(B.ytStandardsTextareaShapeErrorDisabled=G.disabled,B)),role:"alert"},_.l(_.Pr,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),G.children)},"Ki");var VkA=_.Y(function(G){var B=G.data;var F=G.controlledMode;var D=G.disableFormsApiMode;var u=G.text;var R=G.onInput;var N=G.characterLimit;var y=G.validation;G=G.disabled;var U=function(){return B().formFieldMetadata},q=function(){return(F==null?0:F())?2:!U()||D!=null&&D()?1:3};
_.$f(function(){q()===2?(u==null?void 0:u())===void 0&&_.k2(Error("Kl")):q()===3&&((u==null?void 0:u())!==void 0&&_.k2(Error("Ll")),(y==null?void 0:y())!==void 0&&_.k2(Error("Ml")),(N==null?void 0:N())!==void 0&&_.k2(Error("Nl")),R!==void 0&&_.k2(Error("Ol")))});
var h=ZhN(U);return _.l("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.l(bKS,{text:function(){if(q()===2)return u==null?void 0:u();if(q()===3){var K;return(K=h())==null?void 0:K.value}return""},
label:function(){var K;return(K=B().contentProperties)==null?void 0:K.labelText},
hideLabel:function(){var K;return(K=B().displayProperties)==null?void 0:K.hideLabel},
placeholder:function(){var K;return(K=B().contentProperties)==null?void 0:K.placeholderText},
hint:function(){var K;return(K=B().contentProperties)==null?void 0:K.hintText},
outline:function(){var K;return!((K=B().displayProperties)==null?0:K.hideBorder)},
overflowStyle:function(){var K;return((K=B().displayProperties)==null?0:K.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:G,disableNewLines:function(){var K;return(K=B().displayProperties)==null?void 0:K.disableNewLines},
onInput:function(K){if(q()===3){var a;(a=h())==null||a.updateValue(K)}else R==null||R(K)},
error:function(){if(q()===3){var K;if(((K=h())==null?0:K.errors)&&h().errors.length>0){K=h().errors[0].message;var a,m=(a=B().contentProperties)==null?void 0:a.maxCharacterCount;return{errorMessage:K,maxChars:m}}}},
validation:y,characterLimit:N,rows:function(){var K;return(K=B().displayProperties)==null?void 0:K.rows}}))},"Li");var vtz=_.Y(function(G){var B=G.data;return _.l("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.l(bKS,{text:G.text,label:function(){var F;return(F=B().contentProperties)==null?void 0:F.labelText},
placeholder:function(){var F;return(F=B().contentProperties)==null?void 0:F.placeholderText},
hint:function(){var F;return(F=B().contentProperties)==null?void 0:F.hintText},
outline:function(){var F;return!((F=B().displayProperties)==null?0:F.hideBorder)},
overflowStyle:function(){var F;return((F=B().displayProperties)==null?0:F.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var F;return(F=B().displayProperties)==null?void 0:F.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var F;return(F=B().displayProperties)==null?void 0:F.rows}}))},"Mi");var otN=_.Y(function(G){var B=_.C(_.d3(function(){var yo,hg;return((yo=G.data().structuredContextNoteFormSchema)==null?0:(hg=yo.initialValues)==null?0:hg.noteBody)?G.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),F=B.next().value,D=B.next().value;
B=_.C(_.d3(function(){G.data();return!1}));
var u=B.next().value,R=B.next().value;B=_.C(_.d3(function(){G.data();return!1}));
var N=B.next().value,y=B.next().value;B=_.C(_.d3(function(){var yo,hg;return((yo=G.data().structuredContextNoteFormSchema)==null?0:(hg=yo.initialValues)==null?0:hg.timestamp)?G.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var U=B.next().value,q=B.next().value;B=_.C(_.d3(function(){G.data();return!1}));
var h=B.next().value,K=B.next().value;B=_.C(_.d3(function(){var yo,hg;return((yo=G.data().structuredContextNoteFormSchema)==null?0:(hg=yo.initialValues)==null?0:hg.sources)?[G.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var a=B.next().value,m=B.next().value;B=_.C(_.d3(function(){G.data();return!1}));
var L=B.next().value,W=B.next().value;B=_.C(_.d3(function(){return!1}));
var e=B.next().value,b=B.next().value;_.$f(function(){var yo;ycD((yo=G.data().structuredContextNoteFormSchema)==null?void 0:yo.id,{isSubmitting:e,onSubmit:function(){b(!0);var hg=DkS(F(),U(),a(),G.data()),US=_.te().resolve(_.Wr);hg&&US&&US.resolveCommand(hg,{commandController:{onSuccess:function(){b(!1)}}})},
isValid:function(){return u()&&!N()&&!h()&&!L()}})});
var M=function(yo){if(yo!==void 0&&(D(yo),!u()&&yo.length>0&&R(!0),u())){var hg=xj$(G.data());if(hg){var US=hg.minLength;hg=hg.maxLength;US&&yo.length<US?y(!0):hg&&yo.length>hg?y(!0):y(!1)}}},t=function(yo){if(yo!==void 0){q(yo);
if(yo.length>0){var hg,US,aI,v6,Jg=GfQ((hg=G.data())==null?void 0:(US=hg.structuredContextNoteFormSchema)==null?void 0:(aI=US.fieldSchemas)==null?void 0:(v6=aI.timestamp)==null?void 0:v6.validationSchema);if(Jg&&(hg=Jg.regex)&&!(new RegExp(hg)).test(yo)){K(!0);return}}K(!1)}},T=function(yo){if(yo!==void 0){var hg=yo.split(/[ \n]/).map(function(US){return US.trim()});
m(hg);if(yo.length>0)for(yo=_.C(hg),hg=yo.next();!hg.done;hg=yo.next())if(!FHA(hg.value)){W(!0);return}W(!1)}},A=function(){return{validate:function(yo){if(u()){var hg=xj$(G.data());
if(hg){var US=hg.minLength;hg=hg.translations;if(US&&yo.length<US)return hg==null?void 0:hg.minLengthErrorMessage}}}}},Z=function(){var yo=xj$(G.data()),hg=yo==null?void 0:yo.maxLength,US;
yo=yo==null?void 0:(US=yo.translations)==null?void 0:US.maxLengthErrorMessage;if(hg&&yo)return{maxChars:hg,errorMessage:yo}},P=function(){return{validate:function(yo){if(yo){var hg,US,aI,v6,Jg=GfQ((hg=G.data())==null?void 0:(US=hg.structuredContextNoteFormSchema)==null?void 0:(aI=US.fieldSchemas)==null?void 0:(v6=aI.timestamp)==null?void 0:v6.validationSchema);
if(Jg&&(hg=Jg.regex,Jg=Jg.translations,hg&&!(new RegExp(hg)).test(yo)))return Jg==null?void 0:Jg.regexErrorMessage}}}},RI=function(){return{validate:function(yo){if(yo){var hg,US,aI,v6,Jg=izU((hg=G.data())==null?void 0:(US=hg.structuredContextNoteFormSchema)==null?void 0:(aI=US.fieldSchemas)==null?void 0:(v6=aI.sources)==null?void 0:v6.validationSchema);
if(Jg&&(hg=Jg.translations,hg==null?0:hg.selectedErrorMessage))for(yo=yo.split(/[ \n]/).map(function(c6){return c6.trim()}),yo=_.C(yo),US=yo.next();!US.done;US=yo.next())if(!FHA(US.value))return yo=void 0,(yo=hg)==null?void 0:yo.selectedErrorMessage}}}};
return _.l("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.l("div",{class:"ytStructuredContextNoteViewModelTextField"},_.l(_.uR,{data:function(){var yo;return(yo=G.data())==null?void 0:yo.noteContents}},{textFormFieldViewModel:function(yo){return _.l(vtz,{data:yo.data,
onInput:M,validation:A,characterLimit:Z})},
textFieldViewModel:function(yo){return _.l(VkA,{data:yo.data,disableFormsApiMode:!0,onInput:M,validation:A,characterLimit:Z})}})),_.l("div",{class:"ytStructuredContextNoteViewModelTextField"},_.l(_.uR,{data:function(){var yo;
return(yo=G.data())==null?void 0:yo.noteTimestamp}},{textFormFieldViewModel:function(yo){return _.l(vtz,{data:yo.data,
onInput:t,validation:P})},
textFieldViewModel:function(yo){return _.l(VkA,{data:yo.data,disableFormsApiMode:!0,onInput:t,validation:P})}})),_.l("div",{class:"ytStructuredContextNoteViewModelTextField"},_.l(_.uR,{data:function(){var yo;
return(yo=G.data())==null?void 0:yo.noteSources}},{textFormFieldViewModel:function(yo){return _.l(vtz,{data:yo.data,
onInput:T,validation:RI})},
textFieldViewModel:function(yo){return _.l(VkA,{data:yo.data,disableFormsApiMode:!0,onInput:T,validation:RI})}})))},"Ni");
otN.idomCompat=!0;_.YN(otN,"yt-structured-context-note-view-model",{props:{data:_.Hd}});var MkB=_.Y(function(G){var B=_.C(_.d3(function(){var R;if((R=G.controlled)==null?0:R.call(G))return[];var N;return(((N=G.data())==null?void 0:N.chips)||[]).map(function(y){y=_.Q(y,_.rr);if(y==null?0:y.selected)return upD(y.chipValue)}).filter(function(y){return y!==void 0})})),F=B.next().value,D=B.next().value,u=function(R){var N=upD(R.chipValue);
if(N!==void 0){var y;if((y=G.controlled)==null?0:y.call(G))return void G.controlled().onTap(N);R=F().includes(N)?[].concat(_.gi(F().filter(function(q){return q!==N}))):[].concat(_.gi(F()),[N]);
D(R);var U;if((U=G.uncontrolled)==null?0:U.call(G))G.uncontrolled().onUpdate(R)}};
return _.l("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.l(_.jR,{each:function(){return G.data().chips||[]}},function(R){return _.l("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.l(_.DJG,{data:function(){return _.Q(R,_.rr)},
selected:function(){var N;if(N=_.Q(R,_.rr)){var y=upD(N.chipValue);if(y!==void 0){var U;N=((U=G.controlled)==null?0:U.call(G))?G.controlled().selectedValues.includes(y):F().includes(y)}else N=void 0}else N=!1;return N},
callback:u}))}))},"Oi");var pAN=_.Y(function(G){var B=G.data;var F=function(){var y;return((y=B())==null?void 0:y.flowStateKey)||""},D=_.iR(_.dN,F),u=function(){var y;
return(y=_.Q(D(),paB))==null?void 0:y.chips},R=function(y){if(y!==void 0){var U=u()||[];
U=U.find(function(q){return q===y})?U.filter(function(q){return q!==y}):[].concat(_.gi(U),[y]);
U=Object.assign({},D(),{feedbackFormFlowState:Object.assign({},_.Q(D(),paB),{chips:U})});_.M7(_.wC("flowStateEntity",F(),U))}},N=function(){var y;
return _.Q((y=B())==null?void 0:y.inputBox,Kk2)};
G=_.h5(function(y){var U=N();U=!(U==null?0:U.maxChars)||y.length<=U.maxChars;y=Object.assign({},D(),{feedbackFormFlowState:Object.assign({},_.Q(D(),paB),{detail:y}),abuseReportFlowState:Object.assign({},_.Q(D(),U6),{navigationEnabled:U})});_.M7(_.wC("flowStateEntity",F(),y))},150);
return _.l("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.l("div",{class:"ytFeedbackFormViewModelChips"},_.l(_.uR,{data:function(){var y;return(y=B())==null?void 0:y.chipSelection}},{chipSelectionFormFieldViewModel:function(y){return _.l(MkB,{data:y.data,
controlled:function(){return{selectedValues:u()||[],onTap:R}}})}})),_.l("div",{class:"ytFeedbackFormViewModelInputBox"},_.l(bKS,{text:function(){var y;
return(y=_.Q(D(),paB))==null?void 0:y.detail},
placeholder:function(){var y;return((y=N())==null?void 0:y.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var y=N();if(y&&y.maxChars)return{maxChars:y.maxChars,errorMessage:y.maxCharsExceededErrorMessage||""}},
onInput:G})),_.l("div",{class:"ytFeedbackFormViewModelFooterText"},_.l(_.Wd,{text:function(){return B().footerText}})))},"Pi");
pAN.idomCompat=!0;_.YN(pAN,"yt-feedback-form-view-model",{props:{data:_.Hd}});var YnB=_.Y(function(G){var B=G.data;var F=_.iR(DDS,function(){return B().flowStateKey||""}),D=function(){var u;
_.rJ((u=_.Q(F(),U6))==null?void 0:u.navigationCommand)};
return _.l("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.l("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.l(_.uR,{data:function(){return B().cancelButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:D})}}),_.l(_.uR,{data:function(){var u;
if(B().navButton){var R=Object;var N=R.assign,y=_.Q(B().navButton,_.LV),U=((u=_.Q(F(),U6))==null?0:u.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",q,h;u=_.Q((q=_.Q(F(),U6))==null?void 0:q.navigationCommand,_.mr);q=(h=_.Q(u,_.MI))==null?void 0:h.url;R={buttonViewModel:N.call(R,{},y,{state:U,iconName:q?"OPEN_IN_NEW":""})}}else R=void 0;return R}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:D})}})))},"Qi");
YnB.idomCompat=!0;_.YN(YnB,"yt-report-form-bottom-bar-view-model",{props:{data:_.Hd}});var Ap$=_.Y(function(G){var B=G.nextStep;return _.l("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.l("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.l(_.Pr,{icon:function(){return B().iconName||""}})),_.l("div",null,_.l(_.Wd,{text:function(){return B().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ri"),dlS=_.Y(function(G){var B=G.data;
var F,D=(F=_.te().resolve(_.fH(_.Rx)))==null?void 0:F(),u=_.iR(_.dN,function(){return B().flowStateKey||""});
return _.l("yt-report-form-confirmation-page-view-model",{class:function(){var R;return((R=_.Q(u(),U6))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.l("div",{class:function(){var R;
return((R=_.Q(u(),U6))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.l(_.vr,{data:function(){return D&&B().imageDark?B().imageDark:B().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.l("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.l("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return B().confirmationHeader}),_.l("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.l(_.Wd,{text:function(){return B().confirmationText}})),_.l("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.l(_.Wd,{text:function(){return B().lawEnforcementText}})),
_.l("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return B().whatToExpectHeader}),_.l(_.E,{cond:function(){return B().nextSteps},
then:function(R){return _.l("div",null,_.l(_.jR,{each:R},function(N){return _.l(Ap$,{nextStep:N})}))}}),_.l(_.E,{cond:function(){return B().legalReportText},
then:function(R){return _.l("div",null,_.l(_.Wd,{text:R,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Si");
dlS.idomCompat=!0;_.YN(dlS,"yt-report-form-confirmation-page-view-model",{props:{data:_.Hd}});var JpQ=_.Y(function(G){var B=G.data;var F=function(){var R;return((R=_.Q(B().inputBox,Kk2))==null?void 0:R.maxChars)||500},D=function(){return B().flowStateKey||""},u=_.iR(_.dN,D);
G=_.h5(function(R){R=Object.assign({},u(),{flowFormState:{isValid:R.length<=F()},abuseReportFlowState:{userComments:R,navigationEnabled:!(R.length>F()),isReportFormDirty:!0}});_.oy().dispatch(_.mH("flowStateEntity",D(),R))},150);
_.$f(function(){var R=Object.assign({},u(),{flowFormState:{isValid:!0}});_.oy().dispatch(_.mH("flowStateEntity",D(),R))});
return _.l("yt-report-form-details-page-view-model",{class:function(){var R;return((R=_.Q(u(),U6))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.l("h1",{class:function(){var R;
return((R=_.Q(u(),U6))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return B().detailsPageHeader}),_.l("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.l(_.Wd,{text:function(){return B().bodyText}})),_.l("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.l(bKS,{label:function(){var R;
return((R=_.Q(B().inputBox,Kk2))==null?void 0:R.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var R;return{errorMessage:((R=_.Q(B().inputBox,Kk2))==null?void 0:R.maxCharsExceededErrorMessage)||"",maxChars:F()}},
onInput:G})))},"Ti");
JpQ.idomCompat=!0;_.YN(JpQ,"yt-report-form-details-page-view-model",{props:{data:_.Hd}});var cpN=_.Y(function(G){var B=G.data;var F=function(){return B().flowStateKey||""},D=_.iR(_.dN,F),u=function(){return _.Q(D(),U6)};
return _.l("yt-report-form-reason-select-page-view-model",{class:function(){var R;return((R=u())==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.l("h1",{class:function(){var R;
return((R=u())==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return B().pageHeader}),_.l("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.l(_.Wd,{text:function(){return B().bodyText}})),_.l("div",{class:function(){var R;
return((R=u())==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.l(kvB,{data:function(){return _.Q(B().radioButtonGroup,Lp$)},
onSelected:function(R,N){R=Object.assign({},D(),{abuseReportFlowState:Object.assign({},u(),{reasonKey:N.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:N.command})});_.M7(_.wC("flowStateEntity",F(),R))},
selectedKey:function(){var R;return(R=u())==null?void 0:R.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ui");
cpN.idomCompat=!0;_.YN(cpN,"yt-report-form-reason-select-page-view-model",{props:{data:_.Hd}});var TRN=_.Y(function(G){var B=G.data;var F,D=(F=_.te().resolve(_.fH(_.Rx)))==null?void 0:F();return _.l("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.l("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.l(_.vr,{data:function(){return D&&B().imageDark?B().imageDark:B().image},
alt:""})),_.l("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.l("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return B().header}),_.l(_.Wd,{text:function(){return B().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Vi");
TRN.idomCompat=!0;_.YN(TRN,"yt-report-form-sign-in-page-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=function(){return B().titleSuperscript},D=function(){return B().answersShelf},u=function(){return B().videoShelf},R=function(){var A;
return(A=B().textInputPlaceholder)==null?void 0:A.content},N=function(){return B().showOpenTextInput},y=function(){var A;
return(A=B().textInputValue)==null?void 0:A.content},U="",q=function(){return B().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
G=_.C(_.qg("",void 0,"ioQph"));var h=G.next().value,K=G.next().value;G=_.C(_.qg(!1,void 0,"Srxao"));var a=G.next().value,m=G.next().value,L=function(){return{state:a()||h()?"active":"disabled",disabled:!(a()||h())}};
_.eR(function(){N()&&y()&&K(y())});
var W=function(A){var Z=B().onUpdateText;Z&&_.rJ(Z,{form:{userQuery:A}});K(A)},e=_.h5(function(A){W(A.target.value.trim())},150),b=_.gJ(function(A){var Z;
U=(Z=A.target.value)==null?void 0:Z.trim();e(A);return!1}),M=_.gJ(function(A){A.key==="Enter"&&(a()||h())&&(W(A.target.value.trim()),T());
return!1}),t=function(A,Z){m(Z);
if(Z){if(B().isMultiTurnFlow&&!U){var P;W((P=A==null?void 0:A.text)!=null?P:"")}B().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&T()}else K(U)},T=function(){var A=_.Q(B().nextButtonViewModel,_.LV);
if(A==null?0:A.trackingParams){A=_.yX(A.trackingParams);var Z=_.qW();Z&&A&&_.z7(Z,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(A=B().onNextStepCommand)&&_.rJ(A)};
G={};return _.l("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.l("div",{class:"ytwTalkToRecsTopCornerButton"},_.l(_.uR,{data:function(){return B().topCornerButton}},{buttonViewModel:_.cd})),_.l("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.l("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.l(_.Wd,{text:function(){return B().title}}),_.l(_.E,{cond:F,
then:function(){return _.l("sup",{class:"ytwTalkToRecsSuperScript"},_.l(_.Wd,{text:F}))}})),_.l("div",{class:"ytwTalkToRecsSubtitle"},_.l(_.Wd,{text:function(){return B().subtitle}})),_.l("div",{class:"ytwTalkToRecsResultsShelf"},_.l(_.E,{cond:D,
then:function(){return _.l(_.uR,{data:D},{chipsShelfViewModel:function(A){return _.l("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.l(_.id,{data:A.data,callback:t,selectionBehavior:q}))}})}}),_.l(_.E,{cond:u,
then:function(){return _.l(_.uR,{data:u},{horizontalShelfViewModel:function(A){return _.l("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.l(_.zC,{data:A.data,thumbnailAspectRatio:0}))}})}})),_.l("div",{class:_.tx("ytwTalkToRecsRefinementContainer",(G.ytwTalkToRecsBottomMargin=function(){return B().isMultiTurnFlow},G))},_.l(_.E,{cond:N,
then:function(){return _.l("div",{class:"ytwTalkToRecsUserInputBox"},_.l("input",{type:"text",class:"ytwTalkToRecsTextInput",title:R,placeholder:R,value:h,"on:input":b,"on:keyup":M,maxlength:200}))}}),_.l(_.uR,{data:function(){return B().isMultiTurnFlow?B().nextButtonViewModel:void 0}},{buttonViewModel:function(A){return _.l("div",{class:"ytwTalkToRecsFlowControlButtons"},_.l(_.cd,{data:A.data,
buttonOverrides:L}))}}),_.l(_.uR,{data:function(){return B().isMultiTurnFlow?B().resetButtonViewModel:void 0}},{buttonViewModel:function(A){return _.l("div",{class:"ytwTalkToRecsFlowControlButtons"},_.l(_.cd,{data:A.data,
onClick:function(){var Z,P=(Z=_.Q(B().resetButtonViewModel,_.LV))==null?void 0:Z.onTap;P&&_.rJ(P)}}))}}))))},"Xi"),"yt-talk-to-recs-view-model",{props:{data:_.Hd}});var R9N={sources:[{clientResource:{imageName:"CHECK"}}]};var ImH=_.Y(function(G){var B=_.W5("div");G=_.AS(G,{error:void 0});var F=G.data,D=G.error,u=G.onSelected;G=G.className;var R=_.C(_.d3(function(){return NNA(F())})),N=R.next().value,y=R.next().value;
Uk$(F,function(m){y(m);var L,W,e=CvG((L=F().options)==null?void 0:(W=L[m])==null?void 0:W.value,F().type);u==null||u(e);B.value.focus()});
R=_.gJ(function(){if(!F().disabled){var m=F(),L=N(),W=B.value;m.options&&(m=w0$(m.options,L,m.label),_.te().resolve(_.nL).openSheet({viewModel:m},W))}});
var U=_.wul(),q=function(){return!!D()},h=function(){return!!F().disabled},K={},a={};
return _.l("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.l("div",{class:_.tx("ytDropdownViewModelDropdownContainer",G,(K.ytDropdownViewModelDropdownContainerErrorBorder=q,K.ytDropdownViewModelDropdownContainerDisabled=h,K)),"on:click":R,el:B,role:"combobox",tabindex:0,"on:keydown":U,"aria-invalid":q,"aria-disabled":h,"aria-describedby":function(){return q()?"dropdown-view-model-error":void 0}},_.l("div",{class:"ytDropdownViewModelText"},ymH(F,q,N),nL2(F,N)),_.l("div",{class:_.tx("ytDropdownViewModelChevronDown",
(a.ytDropdownViewModelChevronDownDisabled=h,a))},_.l(_.Pr,{icon:"CHEVRON_DOWN"}))),lbU(F,D))},"Yi");_.YN(_.Y(function(G){var B=G.data;var F=function(u){var R=ELD(B());R.videoMetadata||(R.videoMetadata={});R.videoMetadata.sponsorshipsMetadata||(R.videoMetadata.sponsorshipsMetadata={});R.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(u)},D=function(u){var R=ELD(B());
R.scheduledRedirectMetadata||(R.scheduledRedirectMetadata={});R.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(u)};
return _.l("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.l("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.l("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.l(_.Wd,{text:function(){return B().title}}),_.l(_.Pr,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.l(_.Wd,{text:function(){return B().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.l(_.uR,{data:function(){return B().tierChoices}},{dropdownViewModel:function(u){return _.l("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.l(ImH,{data:u.data,
onSelected:F}))}}),_.l(_.uR,{data:function(){return B().startTimeChoices}},{dropdownViewModel:function(u){return _.l("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.l(ImH,{data:u.data,
onSelected:D}))}}),_.l(_.Wd,{text:function(){return B().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.l("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.l(_.uR,{data:function(){return B().scheduleButton}},{panelFooterViewModel:K6})))},"Zi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;G=G.className===void 0?"":G.className;var F=_.iR(DDS,function(){return B().flowStateEntityKey||""}),D={};
D=_.tx("ytFlowBottomBarViewModelFlowBottomBarButtons",(D.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},D));
var u={},R=_.tx("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",D,(u.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},u.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},u));
u={};var N=_.tx("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",D,(u.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},u.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},u));
D={};D=_.tx("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(D.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},D.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},D.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
D));
G=_.tx("ytFlowBottomBarViewModelHost",G);return _.l("yt-flow-bottom-bar-view-model",{class:G},_.l(_.E,{cond:function(){var y;return(y=B())==null?void 0:y.textSection},
then:function(y){return _.l("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.l(_.Wd,{text:y}))}}),_.l("div",{class:D},_.l(_.uR,{data:function(){return B().secondaryButton}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data,
className:N})}}),_.l(_.uR,{data:function(){return B().primaryButton}},{buttonViewModel:function(y){return _.l(_.cd,{data:y.data,
className:R,buttonOverrides:function(){var U;return{disabled:!((U=F())==null||!U.primaryButtonDisabled)}}})}})))},"$i"),"yt-flow-bottom-bar-view-model",{props:{data:_.Hd,
className:_.oh}});var fmG="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),mx=function(){var G=_.p.apply(this,arguments)||this;G.enableScrollingFix=!0;G.bottomBar=!1;G.fitContent=!1;return G};
_.r(mx,_.p);_.w=mx.prototype;_.w.ready=function(){_.X("enable_pdp_icon_prefetch")&&geD(_.te().resolve(_.epS),0,fmG)};
_.w.focus=function(G){this.topBar?_.dg(this.topBar,G):this.paperDialog.focus(G)};
_.w.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20976_scroller&&(this.JSC$20976_scroller.dialogElement=this.paperDialog,this.JSC$20976_scroller.attached&&typeof this.JSC$20976_scroller.attached==="function"&&this.JSC$20976_scroller.attached())};
_.w.onDataChanged=function(){var G;this.fitContent=!((G=this.data)==null||!G.fitContent);var B;this.bottomBar=!((B=this.data)==null||!B.bottomBar)};
_.w.onProgressChanged=function(){var G,B,F=((B=(G=this.data)==null?void 0:G.progress)!=null?B:0)*100;this.progressElement.style.width=F+"%"};
_.w.isProgressHidden=function(){var G;return!((G=this.data)==null?0:G.progress)};
_.w.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(G){return G&&!G.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
mx.prototype.onProgressChanged=mx.prototype.onProgressChanged;mx.prototype.onDataChanged=mx.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],mx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mx.prototype,"enableScrollingFix",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mx.prototype,"bottomBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],mx.prototype,"fitContent",void 0);_.c([_.iA("#progress"),_.I("design:type",HTMLElement)],mx.prototype,"progressElement",void 0);_.c([_.iA("#scroller"),_.I("design:type",Object)],mx.prototype,"JSC$20976_scroller",void 0);_.c([_.iA("ytd-flow-top-bar-renderer"),_.I("design:type",HTMLElement)],mx.prototype,"topBar",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mx.prototype,"onDataChanged",null);_.c([_.Ga("data.progress"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mx.prototype,"onProgressChanged",null);_.c([_.mC({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],mx);
_.d(mx,"ytd-flow-step-renderer",function(){if(qJD!==void 0)return qJD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qJD=G},{mode:1});var XC=function(G){this.resolveCommand=G;this.steps={}},tkZ=function(G,B){B=_.C(B||[]);
for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=Object.values(F)[0],u=void 0;if((u=D)==null?0:u.stepId)G.steps[D.stepId]=F}},gt$=function(G,B){var F,D,u,R,N;
return _.n(function(y){if((F=G.state)==null||!F.currentStepId)return y.return(void 0);D=G.getCurrentStep();if(!D)return y.return(ZKS(G));if(u=_.Q(D,_.wr))G.logVEScreen(u),((R=u)==null?0:R.onStepStartCommand)&&G.resolveCommand((N=u)==null?void 0:N.onStepStartCommand,{});u&&B&&(G.logFlowEvent(u,B),B.steps&&!B.steps.includes(D)&&B.steps.push(D));return y.return(D)})};
XC.prototype.back=function(){var G;(G=this.state)!=null&&G.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
XC.prototype.handleUpdateFlowCommand=function(G){G.steps&&tkZ(this,G.steps);G.entityUpdateCommand&&this.resolveCommand(G.entityUpdateCommand,{});G.flowContinuationCommand&&(G=G.flowContinuationCommand)&&(this.getFlowContinuationCommand=G);this.awaitFlowContinuation&&(G=this.getCurrentStep(),this.awaitFlowContinuation(G),this.awaitFlowContinuation=void 0)};
XC.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var ZKS=function(G){return _.n(function(B){return G.getFlowContinuationCommand?B.return(new Promise(function(F){G.awaitFlowContinuation=F;G.getFlowContinuationCommand&&G.resolveCommand(G.getFlowContinuationCommand,{flow_state:G.state})})):B.return(Promise.resolve(void 0))})};
XC.prototype.getCurrentStep=function(){var G;if((G=this.state)!=null&&G.currentStepId)return this.steps[this.state.currentStepId]};
XC.prototype.logVEScreen=function(G){var B;((B=G.screenLoggingData)==null?0:B.screenVeType)&&_.t9(_.Rh(),G.screenLoggingData.screenVeType)};
XC.prototype.logFlowEvent=function(G,B){var F,D,u,R;((F=B.flowLoggingData)==null?0:F.eventNamespace)&&((D=G.flowEventData)==null?0:D.eventType)&&((u=G.flowEventData)==null?0:u.eventMetadata)&&((R=B.flowLoggingData)==null?0:R.flowType)&&(G=_.ZV(B.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.g8().logFlowEvent(G,B.flowLoggingData.flowType))};
_.ZN.Object.defineProperties(XC.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.state)==null?void 0:G.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.state)!=null&&G.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(B,F){F.key&&F.value&&(B[F.key]=F.value);return B},{})}}});var Ql=function(){var G=_.p.apply(this,arguments)||this;G.flowState=_.X("web_use_flow_state_manager")?void 0:new XC(function(B,F){F=F===void 0?{}:F;_.Gm.instance.resolveCommand(B,{form:{form:F,element:G.hostElement}})});
G.JSC$20987_flowStateManager=_.X("web_use_flow_state_manager")?_.te().resolve(_.Du):void 0;G.currentTargetId="";G.initialState=!0;G.isLoading=!1;G.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"};G.containsTalkToRecs=!1;return G};
_.r(Ql,_.p);_.w=Ql.prototype;_.w.onPopupClosed=function(G){if(!G||this.hostElement===G.detail.popupRenderer){if(this.JSC$20987_flowStateManager){var B;((B=this.data)==null?0:B.flowStateEntityKey)&&this.JSC$20987_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.w.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.w.focus=function(G){var B=this;_.Hc(function(){var F=_.IF(B.hostElement).querySelector("ytd-flow-step-renderer");(F==null?0:F.topBar)?F.focus(G):B.topBar&&_.dg(B.topBar,G)},1)};
_.w.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.w.computeTopBarHidden=function(G){var B;return!((B=_.Q(G,_.wr))==null||!B.topBarOverride)};
_.w.onCurrentFlowChange=function(){if(this.JSC$20987_flowStateManager&&this.data&&this.flow){var G=FES(this.JSC$20987_flowStateManager,this.data),B;if(G&&((B=this.flow)==null?0:B.currentStepId)){G=Ry2(G,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var F;!G&&((F=this.data)==null?0:F.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.w.observeData=function(){var G=this;if(this.JSC$20987_flowStateManager){var B=this.currentTargetId,F,D,u=(D=(F=this.data)==null?void 0:F.targetId)!=null?D:"";B!==u&&B&&DQB(this.JSC$20987_flowStateManager,B);this.currentTargetId=u;this.data&&u7N(FES(this.JSC$20987_flowStateManager,this.data),function(R){R&&(G.initialState=!1,G.currentFlowStep={flowStepRenderer:R},G.isLoading=!G.currentFlowStep,G.autofocusAndRefit(),G.updateContainsTalkToRecs(),G.logVEScreen(),G.logFlowEvent())})}};
_.w.dataChanged=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1){if(!G.flowState)return D.return();((B=G.data)==null?0:B.steps)&&tkZ(G.flowState,G.data.steps);if((F=G.data)==null?0:F.flowContinuationCommand){var u=G.flowState,R=G.data.flowContinuationCommand;R&&(u.getFlowContinuationCommand=R)}return D.yield(gt$(G.flowState,G.data),2)}G.currentFlowStep=D.yieldResult;_.di(D)})};
_.w.flowChanged=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1){if(!G.flowState||!G.flow)return F.return();G.flowState.state=G.flow;G.isLoading=!0;return F.yield(gt$(G.flowState,G.data),2)}B=F.yieldResult;if(!B||G.flow.isLoading)return F.return();G.currentFlowStep=B;G.initialState=!1;G.isLoading=!1;G.autofocusAndRefit();G.updateContainsTalkToRecs();_.di(F)})};
_.w.logVEScreen=function(){var G,B,F=(G=_.Q(this.currentFlowStep,_.wr))==null?void 0:(B=G.screenLoggingData)==null?void 0:B.screenVeType;F&&_.t9(_.te().resolve(_.ux),F)};
_.w.logFlowEvent=function(){var G=_.Q(this.currentFlowStep,_.wr),B,F,D,u,R,N;(this==null?0:(B=this.data)==null?0:(F=B.flowLoggingData)==null?0:F.eventNamespace)&&(this==null?0:(D=this.data)==null?0:(u=D.flowLoggingData)==null?0:u.flowType)&&(G==null?0:(R=G.flowEventData)==null?0:R.eventType)&&(G==null?0:(N=G.flowEventData)==null?0:N.eventMetadata)&&(G=_.ZV(this.data.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.g8().logFlowEvent(G,this.data.flowLoggingData.flowType))};
_.w.updateContainsTalkToRecs=function(){var G,B=(G=_.Q(this.currentFlowStep,_.wr))==null?void 0:G.content;this.containsTalkToRecs=!!B&&!!_.Q(B,YWz)};
_.w.autofocusAndRefit=function(){var G=this,B=_.te().resolve(_.fH(_.Mu)),F=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),D=document.querySelector("yt-report-form-confirmation-page-view-model"),u=document.querySelector("yt-report-form-details-page-view-model"),R=document.querySelector("yt-report-form-reason-select-page-view-model"),N=document.querySelector("yt-contributor-zero-state-view-model"),
y=document.querySelector("yt-structured-context-note-view-model"),U=document.querySelector("yt-note-view-model");(!F&&B&&B.isKeyBoardInUse()||D||!F&&u||!F&&R||!F&&(N||y||U))&&_.Jo(this.hostElement);_.ft(this,function(){_.cZ(G.hostElement,"yt-refit")})};
_.w.handleUpdateFlowCommand=function(G){this.flowState?this.data&&(G=_.Q(G,_.$9P),G.targetId===this.data.targetId&&(G.flowContinuationCommand&&(this.data.flowContinuationCommand=G.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(G),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(G)};
_.w.handleFlowNextStepCommand=function(G){this.JSC$20987_flowStateManager?this.ytComponentBehavior.resolveCommand(G):this.data&&this.flow&&this.flow.key&&(G=_.Q(G,_.Hgs),G.targetId===this.data.targetId&&(G=G.stepId||"",this.ytdReduxBehavior.dispatch(_.mH("flowStateEntity",this.flow.key,{currentStepId:G,stepIdStack:(this.flow.stepIdStack||[]).concat(G)}))))};
_.w.handleFlowPrevStepCommand=function(G){if(this.JSC$20987_flowStateManager)this.ytComponentBehavior.resolveCommand(G);else if(this.data&&this.flow&&this.flow.key&&(G=_.Q(G,_.kGa),G.targetId===this.data.targetId)){var B=[].concat(_.gi(this.flow.stepIdStack||[]));B.length>1?(B.pop(),this.ytdReduxBehavior.dispatch(_.mH("flowStateEntity",this.flow.key,{currentStepId:B[B.length-1],stepIdStack:B}))):G.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(G.onFirstStepCommand)}};
_.w.handleYpcCancelRecurrenceCommand=function(G){if(this.data&&this.flow&&this.flow.key&&(G=_.Q(G,cvD),G.targetId===this.data.targetId&&G.endpointCommand)){var B=_.Q(this.flow,TvG);B&&_.Q(G.endpointCommand,_.Idv)&&(_.Q(G.endpointCommand,_.Idv).feedbackData=B.surveyFeedback);this.ytComponentBehavior.resolveCommand(G.endpointCommand)}};
_.w.handlePartialUpdateFlowStateEntity=function(G){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.mH("flowStateEntity",this.flow.key,G,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Ql.prototype.flowChanged=Ql.prototype.flowChanged;Ql.prototype.dataChanged=Ql.prototype.dataChanged;Ql.prototype.observeData=Ql.prototype.observeData;Ql.prototype.onCurrentFlowChange=Ql.prototype.onCurrentFlowChange;Ql.prototype.onPopupClosed=Ql.prototype.onPopupClosed;_.c([_.k(_.hf),_.I("design:type",Object)],Ql.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ql.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ql.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ql.prototype,"initialState",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ql.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Object)],Ql.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Ql.prototype,"currentFlowStep",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Ql.prototype,"onPopupClosed",null);
_.c([_.v({selectorArgs:["data.flowStateEntityKey"],selector:DDS}),_.I("design:type",Object)],Ql.prototype,"flow",void 0);_.c([_.iA("ytd-flow-top-bar-renderer"),_.I("design:type",HTMLElement)],Ql.prototype,"topBar",void 0);_.c([_.Ga("data","flow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ql.prototype,"onCurrentFlowChange",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ql.prototype,"observeData",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],Ql.prototype,"dataChanged",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Ql.prototype,"containsTalkToRecs",void 0);_.c([_.Ry("flow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],Ql.prototype,"flowChanged",null);_.c([_.mC({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Ql);
var Sn$=_.tS()(Ql,"ytd-flow-root-renderer",function(){if(wyD!==void 0)return wyD;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return wyD=G},{mode:_.ZO("kevlar_poly_si_batch_j025")?1:2});var jGS=_.Nxy.talkToRecsStateSelector;_.YN(_.Y(function(G){var B=function(){return _.Q(G.data().flowRoot,aF$)};
_.$f(function(){var F=B(),D=function(){},u=function(){};
F&&(mkD(F,h9D(F)),D=QGS(F),u=LH$(F));_.VI(function(){D();D=function(){};
u();u=function(){};
var R=B();R&&(_.VU().dispatch(_.wC("flowStateEntity",R.flowStateEntityKey)),_.M7(_.d5({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:h9D(R)}})))})});
return _.l("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.l(_.Zd,{contentId:function(){return G.data().contentId}},function(){return _.l("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.l(_.E,{cond:B,
then:function(F){return _.l(Sn$,{data:F})}}))}))},"aj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Hd}});var slD=_.Y(function(G){var B=_.AS(G,{numberOfChips:5}).numberOfChips;return _.l("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.l(_.jR,{each:function(){return Array(B==null?void 0:B())}},function(){return _.l("div",{class:"ytGhostChipShelfChip"})}))},"bj");_.YN(_.Y(function(){return _.l("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.l("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.l("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.l(slD,null)),_.l(_.WBP,{data:{rows:1},isExploreHub:!0}))},"cj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.YN(_.Y(function(G){var B=G.data;var F=G.standardUnitMinWidth;G=_.C((0,_.eP)(B));var D=G.next().value,u=G.next().value,R=function(){var y,U=(y=D())==null?void 0:y.contents;return U==null||U.length===0},N=function(){u(Object.assign({},D(),{contents:[]}))};
return _.l("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.VX(_.tb({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var y=_.Q(B().chipsShelf,oGA);if(y!=null&&y!=null&&y.autoselectChipOnVisible){var U,q,h=_.Q(y==null?void 0:(U=y.contents)==null?void 0:U[(q=y.autoselectedChipIndex)!=null?q:0],_.rr);h&&h.tapCommand&&_.rJ(h.tapCommand)}}}))},_.l(_.Zd,{contentId:function(){return B().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.l("div",null,_.l("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.l(_.uR,{data:function(){return B().header}},{sectionHeaderViewModel:function(y){return _.l(_.BC,{data:y.data,
disableHorizontalPadding:!0})}})),_.l("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.l(_.uR,{data:function(){return B().chipsShelf}},{chipsShelfViewModel:function(y){return _.l(_.id,{data:y.data,
callback:N,selectionBehavior:1})}})),_.l("div",null,_.l(_.E,{cond:R,
then:function(){return _.l("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.l(_.WBP,{data:{rows:1},isExploreHub:!0}))}}),_.l(_.uR,{data:function(){var y;
return(y=D())==null?void 0:y.contents}},{richShelfRenderer:function(y){return _.l(_.dJN,{data:y.data,
isInnerShelf:!0,standardUnitMinWidth:F})}})))}))},"dj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Hd,
standardUnitMinWidth:_.Hd}});var ju=function(){return _.p.apply(this,arguments)||this};
_.r(ju,_.p);
ju.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
ju.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.c([_.k(_.hf),_.I("design:type",Object)],ju.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],ju.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ju.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Number)],ju.prototype,"standardUnitMinWidth",void 0);_.c([_.mC({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],ju);
_.d(ju,"ytd-rich-section-renderer",function(){if(c_S!==void 0)return c_S;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return c_S=G},{mode:2});var xlB;var $k$=null;_.YN(_.Y(function(G){return _.l("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.l("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.l(_.Wd,{text:function(){return G.data().text}}),_.l("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ej"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Hd}});var PqD=_.Y(function(G){var B=G.playerControlsProps;var F=G.isShortsPage;return _.l("yt-bigboard",null,_.l(_.E,{cond:function(){return B().isDragging},
then:function(){return _.l("div",{class:"ytBigboardStoryboardHost"},_.l(_.BaH,{progressBarProps:B,isShortsPage:F}))}}))},"fj");
PqD.idomCompat=!0;var L6={ACCOUNT_LABEL:FU("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:FU("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:FU("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:FU("AD_BADGE_HINT"),AD_BADGE_TEXT:FU("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:FU("ALL_CHANNELS_LABEL"),AMBIENT_MODE:FU("AMBIENT_MODE"),AMBIENT_MODE_OFF:FU("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:FU("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:FU("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:FU("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:FU("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:FU("APP_UPSELL_TITLE"),AUDIO_TRACK:FU("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:FU("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:FU("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:FU("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:FU("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:FU("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:FU("AUTO_ZOOM","Auto zoom"),BACK:FU("BACK"),CANCEL:FU("CANCEL"),CHANNEL_SWITCHER_LABEL:FU("CHANNEL_SWITCHER_LABEL"),CLOSE:FU("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:FU("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:FU("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:FU("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:FU("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:FU("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:FU("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:FU("COMMENT_MODAL_CONTENT"),CONFIRM_OK:FU("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:FU("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:FU("COPIED_TO_CLIPBOARD"),COPY:FU("COPY"),COPY_DEBUG_INFO:FU("COPY_DEBUG_INFO"),COPY_EMBED_CODE:FU("COPY_EMBED_CODE"),
COPY_LINK_LABEL:FU("COPY_LINK_LABEL"),COPY_VIDEO_URL:FU("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:FU("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:FU("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:FU("DELETE_FROM_DOWNLOADS"),DIALOG:FU("DIALOG"),DONE:FU("DONE"),DOWNLOAD:FU("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:FU("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:FU("FLAG_CONFIRM"),FLAG_CONTENT:FU("FLAG_CONTENT"),FLAG_LABEL:FU("FLAG_LABEL"),FLAG_TITLE:FU("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:FU("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:FU("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:FU("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:FU("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:FU("HIDE_SEARCH_FILTERS_LABEL"),HOME:FU("HOME","Home"),INVALID_RESPONSE_RECEIVED:FU("INVALID_RESPONSE_RECEIVED"),LIBRARY:FU("LIBRARY","Library"),LISTENING:FU("LISTENING"),LOADING:FU("LOADING"),LONG_PRESS_MIC_TO_SPEAK:FU("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:FU("LOOP"),MENU_DESKTOP:FU("MENU_DESKTOP"),
MENU_EXIT:FU("MENU_EXIT"),MENU_FEEDBACK:FU("MENU_FEEDBACK"),MENU_HELP:FU("MENU_HELP"),MENU_IMPRESSUM:FU("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:FU("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:FU("MENU_SETTINGS"),MENU_SIGN_IN:FU("MENU_SIGN_IN"),MENU_TITLE:FU("MENU_TITLE"),MENU_YOUR_DATA:FU("MENU_YOUR_DATA"),MORE_INFO:FU("MORE_INFO"),MORE_OPTIONS:FU("MORE_OPTIONS"),MUTE_VOLUME:FU("MUTE_VOLUME"),NEW_PLAYLIST:FU("NEW_PLAYLIST"),NEXT_VIDEO:FU("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:FU("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:FU("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:FU("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:FU("NOT_FOUND_TITLE"),NO_DOWNLOADS:FU("NO_DOWNLOADS"),NO_MIC_INPUT:FU("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:FU("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:FU("OOPS_MESSAGE"),OPEN_APP:FU("OPEN_APP"),OPEN_YOUTUBE:FU("OPEN_YOUTUBE"),PAUSE:FU("PAUSE"),PLAY:FU("PLAY"),PLAYER_CAPTION:FU("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:FU("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:FU("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:FU("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:FU("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:FU("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:FU("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:FU("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:FU("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:FU("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:FU("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:FU("PLAYER_MINIMIZE"),PLAYER_NEXT:FU("PLAYER_NEXT"),PLAYER_PAUSE:FU("PLAYER_PAUSE"),PLAYER_PLAY:FU("PLAYER_PLAY"),
PLAYER_PREVIOUS:FU("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:FU("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:FU("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:FU("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:FU("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:FU("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:FU("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:FU("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:FU("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:FU("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:FU("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:FU("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:FU("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:FU("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:FU("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:FU("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:FU("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:FU("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:FU("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:FU("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:FU("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:FU("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:FU("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:FU("PLAY_ALL"),PLEASE_FIX_ERRORS:FU("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:FU("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:FU("PREVIOUS_VIDEO"),PRIVACY_POLICY:FU("PRIVACY_POLICY"),RELOAD:FU("RELOAD"),REQUIRED_LABEL:FU("REQUIRED_LABEL"),SAVE_PLAYLIST:FU("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:FU("SCRUB_SLIDE_USER_EDU"),SEARCH:FU("SEARCH","Search"),
SEARCH_APPEND_LABEL:FU("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:FU("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:FU("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:FU("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:FU("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:FU("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:FU("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:FU("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:FU("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:FU("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:FU("SEEK_SLIDER"),SETTINGS_LABEL:FU("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:FU("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:FU("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:FU("SHOW_LESS"),SHOW_MORE:FU("SHOW_MORE"),SHOW_PLAYER_CONTROLS:FU("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:FU("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:FU("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:FU("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:FU("SIGN_IN_ON_WEB"),STABLE_VOLUME:FU("STABLE_VOLUME"),STABLE_VOLUME_OFF:FU("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:FU("STABLE_VOLUME_ON"),STATS_FOR_NERDS:FU("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:FU("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:FU("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:FU("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:FU("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:FU("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:FU("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:FU("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:FU("TIMESTAMP_SECONDS"),TOGGLE_OFF:FU("TOGGLE_OFF"),TOGGLE_ON:FU("TOGGLE_ON"),TRENDING:FU("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:FU("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:FU("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:FU("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:FU("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:FU("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:FU("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:FU("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:FU("VIDEO_LINK_LABEL")};var GW$=_.Y(function(G){var B=G.playerApi;G=_.W5("button",function(D){Gy(D,36843)});
var F=FU("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.l("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.l("button",{el:G,class:"ytPlayerControlsJumpForwardButtonButton",title:F,"aria-label":F,"on:click":_.gJ(function(){By(36843);B&&B().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.l("span",null,_.l(_.Pr,{icon:"FAST_FORWARD"}))))},"gj");var BfD=_.Y(function(G){var B=G.appApi;G=_.W5("button",function(D){Gy(D,62946)});
var F=FU("OPEN_IN_MINIPLAYER");return _.l("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.l("button",{el:G,class:"ytMiniplayerButtonButton",title:F,"aria-label":F,"on:click":_.gJ(function(){By(62946);var D,u;(u=(D=B()).openInMiniplayer)==null||u.call(D);return!1})},_.l(_.Pr,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"hj");var i12=_.Y(function(G){var B=G.playerApi;G=_.W5("button",function(R){Gy(R,142812)});
var F=_.C(_.qg(!1,void 0,"eOMRAb")),D=F.next().value,u=F.next().value;F=function(){return FU("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(D()?1:2)})};
return _.l("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.l("button",{el:G,class:"ytPlaybackSpeedButtonButton",title:F,"aria-label":F,"on:click":_.gJ(function(){By(142812);if(B){var R=B(),N=D();R.setPlaybackRate(N?1:2);u(!D())}return!1})},_.l("span",null,_.l(_.Pr,{icon:function(){return D()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ij");var F6D=_.Y(function(G){var B=G.title;var F=G.ariaLabel;var D=G.icon;var u=G.command;var R=G.visualElementId;G=_.W5("button",function(N){R&&Gy(N,R())});
return _.l("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.l("button",{el:G,class:"ytdThumbnailOverlayButtonButton",title:B,"aria-label":F,"on:click":_.gJ(function(){R&&By(R());u&&_.te().resolve(_.Wr).resolveCommand(u())})},_.l(_.Pr,{icon:D})))},"jj");var DM$=["en-CA","en","es-MX","fr-CA"];var uYG=_.Y(function(G){var B=_.AS(G,{isOverlay:!1}),F=B.captionIconType,D=B.onClick;G=B.ariaLabel;var u=B.ariaPressed,R=B.isOverlay;B=_.W5("button",function(U){Gy(U,127299)});
var N=_.gJ(function(U){By(127299);D==null||D(U);return!1}),y={};
return _.l("ytm-closed-captioning-button",{class:_.tx("ytmClosedCaptioningButtonHost",(y.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return F()===-1&&R()},y.ytmClosedCaptioningButtonIconDisabled=function(){return F()===-1&&!R()},y))},_.l("button",{el:B,
class:"ytmClosedCaptioningButtonButton",title:G,"aria-label":G,"aria-pressed":u,"on:click":N},_.l(_.Pr,{icon:function(){var U="";var q=_.D4().get("hl");q=!q||DM$.includes(q)?"CLOSED_CAPTION":"SUBTITLES";var h=F();switch(h){case -1:case 0:U=q;break;case 1:U=q+"_FILLED";break;default:_.BS(h)}return U}})))},"kj");
uYG.idomCompat={callbacks:{onClick:!0}};var PW="";var RuN=_.Y(function(G){var B=G.playerControlsProps,F=G.onClickFn;G=_.mS(function(){var R=B(),N=-1;R.captionsAvailable&&(N=R.captionsEnabled?1:0);return N},void 0,"MZ0Wqe");
var D=_.mS(function(){var R=B();return R.captionsAvailable?_.G7(R.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.G7("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),u=_.mS(function(){var R=B();
R=R.captionsAvailable?R.captionsEnabled:void 0;return R},void 0,"fhuQRe");
return _.l("yt-closed-captions-toggle-button",null,_.l(uYG,{captionIconType:G,ariaLabel:D,ariaPressed:u,onClick:function(R){var N=B();if(N.captionsAvailable){var y=N.playerApi;if(y){var U=N.playerApi;if(U){var q=PW;if(q){U=U.getOption("captions","track");var h;PW=(h=U?U.displayName:null)!=null?h:q}else HJS(U)?(q=_.Zyg(U),PW=q.length?(h=OJD(q))?h.displayName:q[0].displayName:""):PW=""}eS$(y);_.X("mweb_disable_set_state_captions_killswitch")&&N.setState({captionsEnabled:!N.captionsEnabled})}}var K,
a;(a=(K=N.appApi).showCaptionsToggleToast)==null||a.call(K,N);F==null||F(R)},
isOverlay:!0}))},"lj");var wkN=_.Y(function(G){var B=G.data;return _.l("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.l(_.QR,{data:function(){return{type:17,text:_.Prg(B().label)}}}))},"mj");var CVS=_.Y(function(G){var B=_.tx("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return G.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return G.size()==="small"?G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.l("animated-seek-arrows",{class:_.tx("ytPlayerControlsAnimatedSeekArrowsHost")},_.l("span",{class:B}),_.l("span",{class:B}),_.l("span",{class:B}))},"nj");
CVS.idomCompat=!0;var Nf2=_.Y(function(){var G=_.G7("PLAYER_SECONDS",{seconds_placeholder:"30"}),B=_.C(_.qg(!1,void 0,"iRJu8c")),F=B.next().value,D=B.next().value,u=_.C(_.qg(!1,void 0,"MPnizf"));B=u.next().value;var R=u.next().value;u={};var N=_.tx("jumpForwardOverlayOverlay",(u.jumpForwardOverlayOverlayHidden=B,u));_.$f(function(){var y=null,U=null,q=function(){y!==null&&_.Kx().cancelJob(y);U!==null&&_.Kx().cancelJob(U);R(!0);D(!0);_.Tm(_.Kx(),function(){R(!1)});
y=_.Tm(_.Kx(),function(){R(!0);U=_.Tm(_.Kx(),function(){D(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",q);_.VI(function(){window.removeEventListener("jump-forward-clicked",q)})});
return _.l("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.l(_.E,{cond:F,then:function(){return _.l("div",{class:N},_.l(CVS,{direction:1,size:"large"}),_.l("div",null,G))}}))},"oj");var y4D=L6.MUTE_VOLUME,n1S=L6.UNMUTE_VOLUME,l1D=_.Y(function(G){var B=G.muteIconType;var F=G.onClick;var D=G.useOutlineIcon;var u=G.useDelhiIcons;G=_.W5("button",function(y){Gy(y,28662)});
var R=function(){var y=B(),U=D==null?void 0:D(),q=u==null?void 0:u(),h="",K="";switch(y){case -1:case 0:h=U?"VOLUME_OFF":q?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";K=n1S;break;case 1:h=U?"VOLUME_UP_OUTLINE":q?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";K=y4D;break;case 2:h=U?"VOLUME_DOWN_OUTLINE":q?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";K=y4D;break;default:_.BS(y)}return{iconName:h,ariaLabel:K}},N=function(){return R().ariaLabel};
return _.l("ytm-mute-button",{class:"ytmMuteButtonHost"},_.l("button",{el:G,class:"ytmMuteButtonButton",title:N,"aria-label":N,"on:click":_.gJ(function(y){By(28662);F==null||F(y);return!1})},_.l("span",null,_.l(_.Pr,{icon:function(){return R().iconName}}))))},"pj");var UMA=_.Y(function(G){var B=G.volumeProps;var F=G.onClickFn;var D=G.useOutlineIcon;var u=G.useDelhiIcons;return _.l("yt-mute-toggle-button",null,_.l(l1D,{muteIconType:function(){var R=B();return R.volumeMuted||R.volume===0?0:R.volume>50?1:2},
onClick:function(R){var N=B().playerApi;N&&(N.isMuted()?N.unMute():N.mute(!1));F==null||F(R)},
useOutlineIcon:function(){return!(D==null||!D())},
useDelhiIcons:function(){return!(u==null||!u())}}))},"qj");
UMA.idomCompat=!0;var q6G=_.Y(function(G){var B=G.data;var F=_.W5("ytm-paid-content-overlay-renderer");return _.l("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:F,"on:animationend":_.gJ(function(){F.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.l(_.p4,{command:function(){return B().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.l(_.E,{cond:function(){var D;return(D=B().icon)==null?void 0:D.iconType},
then:function(){return _.l("span",null,_.l(_.Pr,{icon:function(){var D;return(D=B().icon)==null?void 0:D.iconType}}))}}),_.l("div",{class:"ytmPaidContentOverlayText"},_.l(_.Wd,{text:function(){return B().text}})),_.l(_.E,{cond:function(){return B().navigationEndpoint},
then:function(){return _.l(_.Pr,{icon:"CHEVRON_RIGHT"})}})))},"rj");
q6G.idomCompat=!0;var Fi$=[].concat(_.gi([{register:function(G){var B=Sd$(G),F;(F=G().playerApi)==null||F.addEventListener("onVolumeChange",B);return function(){}}},
{register:function(G){var B=sG2(G);G=G().playerApi;G==null||G.addEventListener("captionschanged",B);G==null||G.addEventListener("captionssettingschanged",B);G==null||G.addEventListener("onCaptionsTrackListChanged",B);return function(){}}}]),[{register:function(G){var B=fbA(G),F;
(F=G().playerApi)==null||F.addEventListener("onStateChange",B);return function(){}}},
{register:function(G){var B=tgD(G),F;(F=G().playerApi)==null||F.addEventListener("onPlaybackRateChange",B);return function(){}}},
{register:function(G){var B=ZzH(G),F;(F=G().playerApi)==null||F.addEventListener("onVideoDataChange",B);return function(){}}},
{register:function(G){var B=gLS(G),F,D;(F=G())==null||(D=F.playerApi)==null||D.addEventListener("onVideoProgress",B);return function(){}}}]);var E1$=_.Y(function(G){var B=G.data;var F=function(){return _.G7("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+B().playbackRate})};
return _.l(_.E,{cond:function(){return B().playbackRate&&B().playbackRate!==1},
then:function(){return _.l("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.l("div",{class:"ytPlaybackRateOverlayOverlay"},_.l(CVS,{direction:1,size:"small"}),_.l("div",{class:"ytPlaybackRateOverlayLabel"},F)))}})},"tj");var huA=_.Y(function(G){var B=G.data;return _.l("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.l(_.E,{cond:function(){var F,D=(F=B())==null?void 0:F.playerResponse,u;return D==null?void 0:(u=D.paidContentOverlay)==null?void 0:u.paidContentOverlayRenderer},
then:function(F){return _.l(q6G,{data:F})}}))},"vj"),K6D=_.Y(function(G){var B=G.props;
var F=G.data;var D=G.options;var u=function(){var q,h,K,a;return(q=F())==null?void 0:(h=q.playerResponse)==null?void 0:(K=h.playerConfig)==null?void 0:(a=K.inlinePlaybackConfig)==null?void 0:a.showAudioControls},R=function(){var q,h;
if(u()&&((q=D())==null?void 0:(h=q.additionalButton)==null?void 0:h.button)!==void 0){var K,a,m;q=(K=F())==null?void 0:(a=K.playerApi)==null?void 0:(m=a.getSize())==null?void 0:m.height;if(!(q===void 0||q<180)){var L,W;return(L=D())==null?void 0:(W=L.additionalButton)==null?void 0:W.button}}},N=function(){var q,h;
return(q=D())==null?void 0:(h=q.additionalButton)==null?void 0:h.thumbnailOverlayButtonRenderers},y=function(){var q,h;
return(q=D())==null?void 0:(h=q.additionalButton)==null?void 0:h.thumbnailOverlayButtonViewModels},U=function(){var q=[_.l(UMA,{volumeProps:B})],h;
((h=D())==null?0:h.hideCaptionsToggleButton)||q.push(_.l(RuN,{playerControlsProps:B}));R()===1&&q.push(_.l(GW$,{playerApi:function(){return B().playerApi}}));
R()===2&&q.push(_.l(BfD,{appApi:function(){return B().appApi}}));
R()===3&&q.push(_.l(i12,{playerApi:function(){return B().playerApi}}));
h=N();if(R()===4&&h){h=_.C(h);for(var K=h.next(),a={};!K.done;a={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$632:void 0},K=h.next()){K=K.value;a.tooltip$jscomp$3=K.tooltip;var m=void 0,L=void 0;a.ariaLabel$jscomp$20=((m=K.accessibility)==null?void 0:(L=m.accessibilityData)==null?void 0:L.label)||a.tooltip$jscomp$3;m=void 0;a.icon$jscomp$55=(m=K.icon)==null?void 0:m.iconType;a.command$jscomp$632=K.command;a.tooltip$jscomp$3&&a.ariaLabel$jscomp$20&&a.icon$jscomp$55&&
q.push(_.l(F6D,{title:function(W){return function(){return W.tooltip$jscomp$3}}(a),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$20}}(a),
icon:function(W){return function(){return W.icon$jscomp$55}}(a),
command:function(W){return function(){return W.command$jscomp$632}}(a)}))}}h=y();
if(R()===4&&h)for(h=_.C(h),K=h.next(),a={};!K.done;a={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$633:void 0,trackingParamsVeType:void 0},K=h.next())K=K.value,a.tooltip$jscomp$4=K.title,a.ariaLabel$jscomp$21=K.accessibilityText||a.tooltip$jscomp$4,a.icon$jscomp$56=K.iconName,a.command$jscomp$633=_.X1(K.onTap),L=m=void 0,a.trackingParamsVeType=((m=K.loggingDirectives)==null?0:m.trackingParams)?(L=eLD(_.P6(K.loggingDirectives.trackingParams)))==null?void 0:
_.AM(L,2):void 0,a.tooltip$jscomp$4&&a.ariaLabel$jscomp$21&&a.icon$jscomp$56&&q.push(_.l(F6D,{title:function(W){return function(){return W.tooltip$jscomp$4}}(a),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$21}}(a),
icon:function(W){return function(){return W.icon$jscomp$56}}(a),
command:function(W){return function(){return W.command$jscomp$633}}(a),
visualElementId:function(W){return function(){return W.trackingParamsVeType}}(a)}));
return q};
return _.l(_.E,{cond:u,then:function(){return _.l("div",{class:"ytInlinePlayerControlsTopRightControls"},_.l(_.jR,{each:U},function(q){return _.l("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.l("div",{class:"ytInlinePlayerControlsButtonIcon"},q))}))}})},"wj"),Xk$=_.Y(function(G){var B=G.props;
var F=G.data;var D=G.options;G={};G=_.tx("ytInlinePlayerControlsBottomRightControls",(G.ytInlinePlayerControlsBottomRightControlsHidden=function(){var u;return PvB(F(),D())&&((u=D())==null?void 0:u.insetProgressBar)&&(B().isHovering||B().isDragging)},G));
return _.l("div",{class:G},_.l(a1Q,{data:F}),_.l(_.E,{cond:function(){var u;return!((u=D())==null?0:u.hideTimeDisplay)},
then:function(){return _.l(mM2,{props:B,data:F})}}))},"xj"),a1Q=_.Y(function(G){var B=G.data;
return _.l(_.uR,{data:function(){var F;return YdA((F=B())==null?void 0:F.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:wkN})},"yj"),mM2=_.Y(function(G){var B=G.props;
var F=G.data;return _.l(_.E,{cond:function(){return B().isLive},
then:function(){return _.l(QfZ,{props:B,data:F})},
else:function(){return _.l(jfA,{props:B,data:F})}})},"zj"),jfA=_.Y(function(G){var B=G.props;
var F=G.data;var D=_.mS(function(){var u;return AmN((u=F())==null?void 0:u.thumbnailOverlays)},void 0,"Pf9uIe");
return _.l("div",{class:_.tx("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return L6.PLAYER_TIME_ELAPSED+" "+_.mLv(B().playedTime)}},_.l(_.QR,{data:function(){var u=_.mLv(B().videoDuration-B().playedTime);
return Object.assign({},{type:17,text:u},D())}}))},"Aj"),L6B=_.Y(function(G){G=G.badgeShapeData;
return _.l("div",{class:_.tx("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.l(_.QR,{data:G}))},"Bj"),QfZ=_.Y(function(G){var B=G.data;
G=_.mS(function(){if(_.X("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var D,u=_.C(((D=B())==null?void 0:D.thumbnailOverlays)||[]);for(D=u.next();!D.done;D=u.next()){D=D.value;if(D.thumbnailOverlayTimeStatusRenderer||D.thumbnailOverlayBadgeViewModel)return D;var R=void 0;if((R=D.thumbnailBottomOverlayViewModel)==null?0:R.badges)if(D=D.thumbnailBottomOverlayViewModel.badges.find(function(N){return _.Q(N,MgB)}))return D}}},void 0,"GPGpgc");
var F=_.mS(function(){var D,u,R,N,y,U;return _.Dbo((D=B())==null?void 0:(u=D.playerApi)==null?void 0:(R=u.getSize())==null?void 0:R.width,(N=B())==null?void 0:(y=N.playerApi)==null?void 0:(U=y.getSize())==null?void 0:U.height)},void 0,"OeIVKe");
return _.l(_.E,{cond:G,then:function(D){return _.l(_.uR,{data:D},{thumbnailOverlayTimeStatusRenderer:function(u){var R=u.data;u=_.mS(function(){return _.g_z(R(),0)},void 0,"skoDC");
return _.l(L6B,{badgeShapeData:u})},
thumbnailBadgeViewModel:function(u){return _.l(_.SmU,{data:u.data,class:_.tx("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(u){return _.l(_.mM,{data:u.data,thumbnailSize:F})}})},
else:function(){var D={type:18,text:L6.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.l(L6B,{badgeShapeData:function(){return D}})}})},"Cj"),r4D=_.Y(function(G){var B=G.props;
var F=G.data;var D=G.options;return _.l(_.w$$,{progressBarProps:B,config:function(){var u,R=_.Q((u=F())==null?void 0:u.multiMarkersPlayerBar,_.qBT),N;u=((N=D())==null?0:N.insetProgressBar)?2:1;var y;N=(y=D())==null?void 0:y.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:u,chapterData:R,isInlinePlayback:!0,doSeekOnClick:N,playheadDotBehavior:N?1:0}}})},"Dj");_.YN(_.Y(function(G){var B=G.data;var F=G.appApi;var D=G.options;var u=IbN(B,xkN(F));G={};F={};return _.l("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.l("div",{class:_.tx("ytInlinePlayerControlsDarkenedOverlay",(G.ytInlinePlayerControlsDarkenedOverlayShow=function(){return u().isHovering},G))}),_.l(Nf2,null),_.l(E1$,{data:u}),_.l(huA,{data:B}),_.l(PqD,{playerControlsProps:u,
isShortsPage:!1}),_.l("div",{class:_.tx((F.ytInlinePlayerControlsControlsHidden=function(){return u().isDragging},F))},_.l(K6D,{props:u,
data:B,options:D}),_.l(Xk$,{props:u,data:B,options:D})),_.l(_.E,{cond:function(){return PvB(B(),D())},
then:function(){return _.l(r4D,{props:u,data:B,options:D})}}))},"uj"),"yt-inline-player-controls",{props:{data:_.Hd,
appApi:_.oh,options:_.Hd}});var rh=function(){var G=_.p.apply(this,arguments)||this;G.opts=null;G.playerControlsData=null;G.playerControlsAppApi={openInMiniplayer:function(){G.openInMiniplayer()}};
G.playerControlsOptions={};G.noAnimation=!1;G.playbackIntentTriggered=!1;G.positionData=null;G.hidden=!0;G.active=!1;G.playing=!1;G.persistentPanelVisible=!1;G.videoPreviewDataIndex=0;G.JSC$21046_playerPromise=null;G.player=null;G.enableAudioControls=!1;G.hasBeenUnmuted=!1;G.captionsHaveBeenTurnedOff=!1;G.JSC$21046_playerEvents=new Map;G.videoPreviewFetchRequest=null;G.scheduledPreviewEndJobId=null;G.JSC$21046_preventProgressSaveTimer=null;G.watchEndpointStartTimeUpdaterInterval=null;G.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};G.windowOnBlurFn=function(){G.deactivate()};
return G};
_.r(rh,_.p);_.w=rh.prototype;
_.w.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.w.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21046_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21046_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21046_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21046_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.x7(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.x7(this,this.onScroll))};
_.w.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.x7(this,this.onScroll))};
_.w.onPageTypeChange=function(){this.deactivate()};
_.w.onWindowResized=function(){this.deactivate()};
_.w.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.w.onCaptionsChanged=function(G){G=!!G.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!G);this.setCaptionSize()};
_.w.setCaptionSize=function(){var G;if(this.active&&!this.captionsHaveBeenTurnedOff&&((G=this.player)==null?0:G.getCaptionWindowContainerId())){var B;(B=this.player)==null||B.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.w.currentPageAllowed=function(){return!this.isWatchPage};
_.w.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.X("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var G=this.positionData,B=G.initialTopPosition,F=G.initialHorizontalPosition;_.Ss(this.hostElement,{"--ytd-video-preview-translate-left":G.finalHorizontalPosition-F+"px","--ytd-video-preview-translate-top":G.finalTopPosition-B+"px","--ytd-video-preview-original-top-position":B+
"px","--ytd-video-preview-original-horizontal-position":F+"px","--ytd-video-preview-initial-scale":"scale("+G.initialScale+")","--ytd-video-preview-width":G.videoPreviewWidth+"px","--ytd-video-preview-height":G.videoPreviewHeight+"px"});return!0};
_.w.isOutOfBounds=function(G){var B=G.initialHorizontalPosition+12;G=B+G.videoPreviewWidth>window.innerWidth;return B<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&B<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&B<72||G};
_.w.handleOpenVideoPreviewAction=function(G){var B=this,F;return _.n(function(D){if(!B.currentPageAllowed())return D.return(0);B.opts=G;return(F=B.alignVideoPreviewForAnimation(G.thumbnail))?D.return(B.activate()):D.return(0)})};
_.w.onMouseLeave=function(G){var B,F;(B=this.opts)==null||(F=B.mouseleaveCallback)==null||F.call(B);this.shouldDeactivateOnMouseLeave(G)&&this.deactivate()};
_.w.onScroll=function(){var G,B;((G=this.opts)==null?0:G.isAutoplay)&&((B=this.opts)==null?0:B.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.w.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Lu.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.w.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.w.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",rh.JSC$21045_DEFAULT_CLICK_LOCATION_BEHAVIOR,rh.JSC$21045_CLICK_LOCATION_ID_MAP)};
_.w.shouldDeactivateOnMouseLeave=function(G){G=G.relatedTarget;if(!G)return!0;var B;return(B=this.opts)!=null&&B.mediaRenderer?!_.fp(this.opts.mediaRenderer).contains(G):!0};
_.w.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.w.onPlaybackStart=function(){var G=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$21046_preventProgressSaveTimer=
_.Tm(_.Lu,function(){G.resetPreventProgressSaveTimer()},1E4);
var B;if((B=this.opts)==null?0:B.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Tm(_.Lu,function(){G.hasMultipleVideoPreviews()?G.startPlaybackForNextVideo():G.deactivate()},this.opts.videoPreviewDurationMs);
var F;this.player.setGlobalCrop(((F=this.opts)==null?0:F.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.w.getRoundedCornersSize=function(){var G;if((G=this.opts)==null?0:G.roundedCornersSize){var B;return(B=this.opts)==null?void 0:B.roundedCornersSize}var F;if((F=this.opts)==null?0:F.enableRounding){var D;if(((D=this.opts)==null?void 0:D.thumbnailSize)==="small")return 1;var u;if(((u=this.opts)==null?void 0:u.thumbnailSize)==="medium")return 2;var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="large")return 3}return _.X("web_imp_inset_progress_bar")?3:0};
_.w.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.w.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.w.onMediaContainerClick=function(G){this.isShortcutClick(G)||(this.navigateToWatch(G),G.preventDefault(),G.stopPropagation())};
_.w.activate=function(){var G=this,B,F,D,u,R,N,y,U,q;return _.n(function(h){switch(h.nextAddress){case 1:if(!G.currentPageAllowed())return h.return(0);F=(B=G.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint;D=_.OR.instance;if(!F||!D)return h.return(0);G.playbackIntentTriggered=!0;((u=G.opts)==null?0:u.mediaRenderer)&&((R=G.opts)==null||!R.isAutoplay)&&vLU(G.opts.mediaRenderer,function(){G.deactivate()});
_.ft(G,function(){G.revealPreviewUi()});
N={};_.X("enable_unknown_lact_fix_on_html5")&&(_.te().resolve(_.uN),N.lact=_.Z8());G.videoPreviewFetchRequest=kfA(D,G.getInlinePlaybackRequestData(G.videoPreviewData),N);_.b5(h,2);return h.yield(G.videoPreviewFetchRequest,4);case 4:y=h.yieldResult;if(((U=y)==null?void 0:(q=U.playabilityStatus)==null?void 0:q.status)==="OK")return h.return(G.handlePlayerResponse(y));throw Error("Ql");case 2:_.Al(h),G.deactivate();case 3:return h.return(1)}})};
_.w.getInlinePlaybackRequestData=function(G){var B,F=_.X("web_imp_player_mute_params")?((B=this.opts)==null?void 0:B.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:G.inlinePlaybackEndpoint,startPlaybackInMutedState:F}};
_.w.handlePlayerResponse=function(G){var B=this,F,D,u,R,N,y,U,q,h,K,a,m,L,W;return _.n(function(e){if(e.nextAddress==1){F=B.getInlinePlaybackVideoId();if(!(((D=G)==null?0:(u=D.videoDetails)==null?0:u.videoId)&&B.currentPageAllowed()&&B.playbackIntentTriggered&&B.opts&&F))return B.deactivate(),e.return(0);if(G.videoDetails.videoId!==F)return e.return(0);B.enableAudioControls=!!((R=G.playerConfig)==null?0:(N=R.inlinePlaybackConfig)==null?0:N.showAudioControls);G.trackingParams=B.getInlinePlaybackTrackingParams();
if(!B.inlinePlayer)return e.return(0);y={};if(q=_.Q((U=B.videoPreviewData)==null?void 0:U.inlinePlaybackEndpoint,_.Ow))y.watch_endpoint=q;if(B.videoPreviewData){var b,M=(b=_.Q(B.videoPreviewData.inlinePlaybackEndpoint,_.Ow))==null?void 0:b.startTimeSeconds;M!==void 0&&(G.playerConfig||(G.playerConfig={}),G.playerConfig.playbackStartConfig||(G.playerConfig.playbackStartConfig={}),G.playerConfig.playbackStartConfig.startPosition||(G.playerConfig.playbackStartConfig.startPosition={}),G.playerConfig.playbackStartConfig.startSeconds=
M,G.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(M*1E3))}B.inlinePlayer.loadVideoWithPlayerResponse(G,y);if(B.JSC$21046_playerPromise)return e.jumpTo(2);B.JSC$21046_playerPromise=B.inlinePlayer.getPlayerPromise();return e.yield(B.JSC$21046_playerPromise,3)}e.nextAddress!=2&&(h=e.yieldResult,h.setInlinePreview(!0),K=!_.X("web_imp_theater_bugfix"),h.setSizeStyle(!1,K),B.ytPlayerListenerBehavior.listenToPlayerEvents(h,B.JSC$21046_playerEvents),B.player=h,_.cZ(B.hostElement,
"player-api-ready"));((a=B.opts)==null?0:a.showPlayerControls)&&B.videoPreviewData&&B.player&&(B.playerControlsData={playerResponse:G,isInlinePlayback:!0,thumbnailOverlays:B.videoPreviewData.thumbnailOverlays,playerApi:B.player},B.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!B.unroundCornersForPlayback,additionalButton:B.getAdditionalButtonType(B.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(m=B.opts)==null?void 0:m.hideTimeDisplay,hideScrubbingControls:(L=B.opts)==
null?void 0:L.hideScrubber,hideCaptionsToggleButton:(W=B.opts)==null?void 0:W.hideCaptionsToggleButton});return e.return(2)})};
_.w.revealPreviewUi=function(){var G=this;this.playbackIntentTriggered&&_.IIs(this,function(){G.hasThumbnailPositionChangedSinceTriggered()||(G.updateActiveState(!0),G.noAnimation=!1)})};
_.w.hasThumbnailPositionChangedSinceTriggered=function(){var G=this.positionData,B=this.getThumbnailPositionData();return(G==null?void 0:G.initialTopPosition)!==(B==null?void 0:B.initialTopPosition)||(G==null?void 0:G.initialHorizontalPosition)!==(B==null?void 0:B.initialHorizontalPosition)};
_.w.getThumbnailPositionData=function(){var G,B;if((B=this.opts)==null||!B.thumbnail)return null;B=this.opts.thumbnail;var F=((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?!1:!0;var D=B.getBoundingClientRect();G=D.width;B=D.height;var u=D.top+window.scrollY;D=D.left+window.scrollX;var R=F?Math.ceil(G):G;F=F?Math.ceil(B):B;var N=G/R;G={initialScale:N,initialTopPosition:u-12*N,finalTopPosition:u-12-(F-B)/2,initialHorizontalPosition:D-(12+(R-G)/2),finalHorizontalPosition:D-12-(R-G)/
2,videoPreviewWidth:R,videoPreviewHeight:F};return G};
_.w.updateActiveState=function(G){this.active=G;this.ytdReduxBehavior.dispatch(_.d5({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:G}))};
_.w.stopPlayer=function(G){G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(G)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Lu.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.w.deactivate=function(G){G=G===void 0?{}:G;G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;$k$&&($k$.disconnect(),$k$=null);this.stopPlayer({resetWatchEndpointStartTime:G});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.w.isValidThumbnailOverlayButton=function(G,B){G=G.thumbnailOverlayButtonRenderer;var F;return!!G&&!!G.tooltip&&!((F=G.icon)==null||!F.iconType)&&B.includes(G.icon.iconType)};
_.w.isValidThumbnailOverlayButtonViewModel=function(G,B){var F;G=_.Q((F=G.thumbnailOverlayButtonViewModel)==null?void 0:F.overlayButton,_.LV);return!!G&&!!G.title&&!!G.iconName&&B.includes(G.iconName)};
_.w.getAdditionalButtonType=function(G){var B=this;if(_.X("web_imp_fastforward_button"))return{button:1};if(_.X("web_imp_miniplayer_button"))return{button:2};if(_.X("web_imp_playback_speed_button"))return{button:3};var F=["BOX_STACK_3"],D=(G||[]).filter(function(R){return B.isValidThumbnailOverlayButton(R,F)}).map(function(R){return R.thumbnailOverlayButtonRenderer});
if(D.length)return{button:4,thumbnailOverlayButtonRenderers:D};var u=["BOX_STACK_3"];G=(G||[]).filter(function(R){return B.isValidThumbnailOverlayButtonViewModel(R,u)}).map(function(R){return _.Q(R.thumbnailOverlayButtonViewModel.overlayButton,_.LV)});
if(G.length)return{button:4,thumbnailOverlayButtonViewModels:G}};
_.w.allowCaptions=function(){var G;return!((G=this.opts)==null?0:G.forceCaptionsOff)};
_.w.allowUnmuting=function(){var G;return this.enableAudioControls&&!((G=this.opts)==null?0:G.forceMutedVolume)};
_.w.beginStartTimeUpdater=function(){var G=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.FB(function(){G.updateWatchEndpointStartTime()},1E3)};
_.w.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.w.resetPreventProgressSaveTimer=function(){this.JSC$21046_preventProgressSaveTimer!==null&&(_.Lu.cancelJob(this.JSC$21046_preventProgressSaveTimer),this.JSC$21046_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.w.updateWatchEndpointStartTime=function(G){var B=this.videoPreviewData;if(this.player&&B!=null&&B.inlinePlaybackEndpoint&&!this.JSC$21046_preventProgressSaveTimer){G=G?0:Math.floor(this.player.getCurrentTime());var F=_.Q(B.navigationEndpoint,_.Ow);F&&(F.startTimeSeconds=G);if(B=_.Q(B.inlinePlaybackEndpoint,_.Ow))B.startTimeSeconds=G}};
_.w.isShortcutClick=function(G){return!!G&&(G.ctrlKey||G.shiftKey||G.metaKey)};
_.w.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.w.openInMiniplayer=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1){F=(B=G.videoPreviewData)==null?void 0:B.navigationEndpoint;if(!F)return D.return();_.Bv().lockupActivation=!0;return D.yield(_.rdw(_.te().resolve(_.WP),F),2)}_.Bv().userActivation=!0;_.di(D)})};
_.w.navigateToWatch=function(G){var B,F=(B=this.videoPreviewData)==null?void 0:B.navigationEndpoint;if(F){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(F,G,!0);else{var D;_.X("web_thumbnail_to_watch_transition")&&((D=this.opts)==null?0:D.thumbnail)&&_.Qw8(_.te().resolve(_.w1),this.opts.thumbnail);_.cZ(this.hostElement,"yt-navigate",{endpoint:F})}this.deactivate()}};
_.w.getInlinePlaybackVideoId=function(){var G,B;return(B=_.Q((G=this.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint,_.Ow))==null?void 0:B.videoId};
_.w.getInlinePlaybackTrackingParams=function(){var G,B;return(G=this.videoPreviewData)==null?void 0:(B=G.inlinePlaybackEndpoint)==null?void 0:B.clickTrackingParams};
_.w.hasMultipleVideoPreviews=function(){var G;return!!(((G=this.opts)==null?0:G.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.w.startPlaybackForNextVideo=function(){var G;(G=this.opts)!=null&&G.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())};
_.ZN.Object.defineProperties(rh.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null?0:G.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null||!G.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 G;if(Array.isArray((G=this.opts)==null?void 0:G.videoPreviewData)){var B;return(B=this.opts)==null?void 0:B.videoPreviewData[this.videoPreviewDataIndex]}var F;return(F=this.opts)==null?void 0:F.videoPreviewData}}});
rh.prototype.onIsAdsVideoChange=rh.prototype.onIsAdsVideoChange;rh.prototype.onInlinePreviewIsEnabledChange=rh.prototype.onInlinePreviewIsEnabledChange;rh.prototype.optsChanged=rh.prototype.optsChanged;rh.prototype.onMouseLeave=rh.prototype.onMouseLeave;rh.prototype.onPersistentPanelVisibleChange=rh.prototype.onPersistentPanelVisibleChange;rh.JSC$21045_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
rh.JSC$21045_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"}];_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],rh.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],rh.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],rh.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],rh.prototype,"componentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],rh.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.oJ.YtSparklesClickLocationBehavior),_.I("design:type",Object)],rh.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rh.prototype,"opts",void 0);_.c([_.v(),_.I("design:type",Object)],rh.prototype,"playerControlsData",void 0);_.c([_.v(),_.I("design:type",Object)],rh.prototype,"playerControlsAppApi",void 0);
_.c([_.v(),_.I("design:type",Object)],rh.prototype,"playerControlsOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rh.prototype,"noAnimation",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rh.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rh.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rh.prototype,"playing",void 0);
_.c([_.v({selector:_.$vc}),_.I("design:type",Boolean)],rh.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.v(),_.I("design:type",String)],rh.prototype,"pagePath",void 0);_.c([_.v({selector:_.kiS}),_.I("design:type",Boolean)],rh.prototype,"isWatchPage",void 0);_.c([_.v({selector:_.OY.persistentPanelVisibleSelector}),_.I("design:type",Object)],rh.prototype,"persistentPanelVisible",void 0);
_.c([_.O("videoPreviewData"),_.I("design:type",Object),_.I("design:paramtypes",[])],rh.prototype,"thumbnailData",null);_.c([_.O("opts","active"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rh.prototype,"hidePlayerControls",null);_.c([_.O("opts"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rh.prototype,"isAdsVideo",null);
_.c([_.O("opts"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rh.prototype,"roundedCornersSmall",null);_.c([_.O("opts"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rh.prototype,"roundedCornersMedium",null);_.c([_.O("opts"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rh.prototype,"roundedCornersLarge",null);
_.c([_.O("opts"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],rh.prototype,"unroundCornersForPlayback",null);_.c([_.O("opts","videoPreviewDataIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],rh.prototype,"videoPreviewData",null);_.c([_.v(),_.I("design:type",Object)],rh.prototype,"videoPreviewDataIndex",void 0);_.c([_.iA("#inline-player"),_.I("design:type",Object)],rh.prototype,"inlinePlayer",void 0);
_.c([_.Ga("persistentPanelVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rh.prototype,"onPersistentPanelVisibleChange",null);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[MouseEvent]),_.I("design:returntype")],rh.prototype,"onMouseLeave",null);_.c([_.Ry("opts"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rh.prototype,"optsChanged",null);
_.c([_.Ry("inlinePreviewIsEnabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rh.prototype,"onInlinePreviewIsEnabledChange",null);_.c([_.Ga("isAdsVideo"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rh.prototype,"onIsAdsVideoChange",null);_.c([_.mC({is:"ytd-video-preview",disableElementRegistration:!0})],rh);
_.d(rh,"ytd-video-preview",function(){if(xlB!==void 0)return xlB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return xlB=G},{mode:2});var W6N;var W4=function(){var G=_.p.apply(this,arguments)||this;G.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};G.forceDarkTheme=!1;G.forceLightTheme=!1;G.dynamicTextHeight=94;G.hasOverflowButton=!1;G.isInfeedModernization=!1;return G};
_.r(W4,_.p);_.w=W4.prototype;_.w.computeUrlImg=function(G){if(G)return _.dJ(G.thumbnails)};
_.w.getLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.w.getLogoClassName=function(G){return this.logoWithPadding(G)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.w.logoWithPadding=function(G){var B,F;return(G=(B=G.thumbnails)==null?void 0:(F=B[0])==null?void 0:F.height)&&G%31===0?!0:!1};
_.w.sendImpressionEndpoints=function(G){G.impressionEndpoints&&_.fi(this.hostElement,G.impressionEndpoints)};
_.w.observeBasicPalette=function(){var G,B,F=(G=this.data)==null?void 0:(B=G.colorData)==null?void 0:B.basicColorPaletteData;F?_.nA(this.hostElement,F):_.nA(this.hostElement,{})};
_.w.observeDataChanged=function(){var G;this.dynamicTextHeight=((G=this.data)==null?0:G.supplementalText)?74:94;var B;this.hasSupplementalText=!((B=this.data)==null||!B.supplementalText);var F,D,u,R;G=(F=this.data)==null?void 0:(D=F.actionButton)==null?void 0:(u=D.buttonRenderer)==null?void 0:(R=u.colorData)==null?void 0:R.basicColorPaletteData;var N,y,U;if(!((N=this.data)==null?0:(y=N.actionButton)==null?0:(U=y.buttonRenderer)==null?0:U.style)&&G){this.computeIsInfeedModernization(this.data)||(G.borderColor=
G.foregroundTitleColor);var q,h;this.set("data.actionButton.buttonRenderer",_.UK.unsafeClone((q=this.data)==null?void 0:(h=q.actionButton)==null?void 0:h.buttonRenderer))}};
_.w.observeDataForCounterfactual=function(){if(_.X("kevlar_banner_cf_extra_logging")){var G;((G=this.data)==null?0:G.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.w.computeSupplementalStyle=function(){var G;if((G=this.data)!=null&&G.supplementalText){var B,F,D;if((B=this.data)==null?0:(F=B.colorData)==null?0:(D=F.basicColorPaletteData)==null?0:D.foregroundActivatedColor)return G=_.hV(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+G+"; --yt-endpoint-hover-color:"+G+"; --yt-endpoint-visited-color:"+G+"; --yt-formatted-string-bold-font-weight:700;"}};
_.w.computeForcedDarkTheme=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.actionButton)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.style,u,R,N;G=RR$(((u=this.data)==null?void 0:(R=u.colorData)==null?void 0:(N=R.basicColorPaletteData)==null?void 0:N.backgroundColor)||0);return D&&G};
_.w.computeForcedLightTheme=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.actionButton)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.style,u,R,N;G=!RR$(((u=this.data)==null?void 0:(R=u.colorData)==null?void 0:(N=R.basicColorPaletteData)==null?void 0:N.backgroundColor)||0);return D&&G};
_.w.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.w.computeHasTitle=function(G){return!!G.title};
_.w.computeTitleMaxFontSize=function(G){return this.computeHasOverflowButton(G)?28:64};
_.w.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.w.computeIsInfeedModernization=function(){var G,B,F,D,u=(G=this.data)==null?void 0:(B=G.actionButton)==null?void 0:(F=B.buttonRenderer)==null?void 0:(D=F.colorData)==null?void 0:D.basicColorPaletteData;return(u==null?void 0:u.backgroundColor)===452984831||(u==null?void 0:u.backgroundColor)===218103808};
W4.prototype.observeDataForCounterfactual=W4.prototype.observeDataForCounterfactual;W4.prototype.observeDataChanged=W4.prototype.observeDataChanged;W4.prototype.observeBasicPalette=W4.prototype.observeBasicPalette;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],W4.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],W4.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],W4.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],W4.prototype,"hasSupplementalText",void 0);_.c([_.v(),_.I("design:type",Object)],W4.prototype,"dismissButtonOverrides",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.I("design:type",Boolean)],W4.prototype,"hasTitle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.I("design:type",Object)],W4.prototype,"forceDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.I("design:type",Object)],W4.prototype,"forceLightTheme",void 0);_.c([_.v(),_.I("design:type",Object)],W4.prototype,"dynamicTextHeight",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.I("design:type",Object)],W4.prototype,"hasOverflowButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.I("design:type",Object)],W4.prototype,"isInfeedModernization",void 0);_.c([_.Ga("data.colorData.basicColorPaletteData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],W4.prototype,"observeBasicPalette",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],W4.prototype,"observeDataChanged",null);_.c([_.Ga("data.isVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],W4.prototype,"observeDataForCounterfactual",null);_.c([_.mC({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],W4);
_.d(W4,"ytd-banner-promo-renderer",function(){if(W6N!==void 0)return W6N;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return W6N=G},{mode:1});var euD=_.Y(function(G){var B=G.data;var F=G.hideDivider;var D=G.isChannelInfoCard;G={};return _.l("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.l("div",{class:_.tx("yt-profile-identity-info-view-model__frame",(G["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!B().channelBanner},G))},_.l(H1z,{profileIdentityInfoData:B}),_.l("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.l("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8})),_.l(kWZ,{profileIdentityInfoData:B})),_.l(_.E,{cond:function(){return B().channelDescription},
then:function(u){var R={};return _.l("div",{class:_.tx((R["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(D==null||!D())},R["yt-profile-identity-info-view-model__channel-description"]=function(){return!(D==null?0:D())},R))},u)}}),_.l(O12,{profileIdentityInfoData:B}),_.l(_.E,{cond:function(){return!(F==null?0:F())},
then:function(){return _.l("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Ej");
euD.idomCompat=!0;var O12=_.Y(function(G){var B=G.profileIdentityInfoData;return _.l("div",{class:"yt-profile-identity-info-view-model__buttons"},_.l(_.jR,{each:function(){return B().subscribeButton?[B().subscribeButton,B().channelAccess]:[B().channelAccess]}},function(F){return _.l("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.l("div",{class:"yt-profile-identity-info-view-model--button"},_.l(_.uR,{data:function(){return F}},{buttonViewModel:_.cd,
subscribeButtonViewModel:_.EB})))}))},"Fj"),kWZ=_.Y(function(G){var B=G.profileIdentityInfoData;
return _.l("div",{class:"yt-profile-identity-info-view-model__trio"},_.l("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.l($M$,{profileIdentityInfoData:B}),_.l(_.uR,{data:function(){return B().threeDotMenu}},{buttonViewModel:_.cd})),_.l(zuG,{profileIdentityInfoData:B}))},"Gj"),$M$=_.Y(function(G){var B=G.profileIdentityInfoData;
return _.l("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.l("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return B().channelDisplayName}),_.l(_.E,{cond:function(){return B().verifiedOrOacBadge},
then:function(F){return _.l("div",{class:"yt-profile-identity-info-view-model__badge"},_.l(_.vr,{data:function(){return{thumbnails:[{url:F().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Hj"),H1z=_.Y(function(G){var B=G.profileIdentityInfoData;
return _.l("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.l(_.uR,{data:function(){var F=B().channelBanner;if(F)return{imageBannerViewModel:{image:F.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(F){return _.l("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.l(_.bt,{data:F.data,
isPositionRelative:!0}))}}))},"Ij"),zuG=_.Y(function(G){var B=G.profileIdentityInfoData;
return _.l("div",{class:"yt-profile-identity-info-view-model__metadata"},_.l("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.l("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return B().channelHandle}),_.l(_.E,{cond:function(){return B().channelPronouns&&B().channelHandle},
then:function(){return _.l("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.l("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return B().channelPronouns})),_.l("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.l("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return B().leftOfBulletInfo}),_.l(_.E,{cond:function(){return B().leftOfBulletInfo&&B().rightOfBulletInfo},
then:function(){return _.l("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.l("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return B().rightOfBulletInfo})))},"Jj");_.YN(euD,"yt-profile-identity-info-view-model",{props:{data:_.Hd,hideDivider:_.Hd,isChannelInfoCard:_.Hd}});_.YN(_.dL2,"yt-page-header-view-model",{props:{data:_.Hd,noPadding:_.Hd,enableBanner:_.Hd,cinematicContainerTopbarOffset:_.Hd,allowCinematicContainerOverflow:_.Hd,displayAsSidebar:_.Hd,displayAsPanel:_.Hd,alwaysUseMediumTextDescription:_.Hd}});var b1$=_.Y(function(){return _.l("div",{class:_.tx("ytdGhostGridViewModelGhostCard")},_.l("div",{class:_.tx("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.l("div",{class:_.tx("ytdGhostGridViewModelDetails")},_.l("div",{class:_.tx("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.l("div",{class:_.tx("ytdGhostGridViewModelDetailsTextShell")},_.l("div",{class:_.tx("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.l("div",{class:_.tx("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Lj");_.YN(_.Y(function(G){var B=G.data;var F=_.FT(_.EX);return _.l("ytd-ghost-grid-view-model",{class:_.tx("ytdGhostGridViewModelHost")},_.l(_.jR,{each:function(){var D=Array,u;var R=((u=B().numRows)!=null?u:0)*F();return D(R)},
keyBy:"INDEX"},function(){return _.l(b1$,null)}))},"Kj"),"ytd-ghost-grid-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=function(){var u;return(u=B().numColumns)!=null?u:2},D=function(){return F()>1?3:2};
G={};return _.l("ytd-rich-grid-group",{class:_.tx("ytdRichGridGroupHost",(G.ytdRichGridGroupHostFirstColumn=function(){return B().colIndex===0},G)),
style:_.xN({"--ytd-rich-grid-group-num-columns":F,"--ytd-rich-grid-items-per-group":D})},_.l("div",{class:"ytdRichGridGroupContents"},_.l(_.uR,{data:function(){var u;return(u=B().contents)==null?void 0:u.slice(0,D())}},{richItemRenderer:function(u){return _.l(_.YQP,{data:u.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Mj"),"ytd-rich-grid-group",{props:{data:_.Hd}});var H4=function(){var G=_.p.apply(this,arguments)||this;G.resizeOnObserverInit=!1;G.isInlinePreviewDisabled=_.X("web_disable_inline_preview");G.disableStickyFilterBar=!1;G.transparentBackgroundChipsBar=!1;G.hideChipsBar=!1;G.isScrolled=!1;G.isWatchDefaultLayout=!0;G.continuationShowButton=!1;G.rowReducedHorizontalMargin=!1;G.useCompactList=!1;G.manualDownloadsPresent=!1;G.smartDownloadsPresent=!1;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=
!1;G.elementsPerRow=4;G.typographyBump=!1;G.slimItemsPerRow=1;G.pageLoadingFromNavigation=!1;G.resizeObserver=null;G.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"};G.rendererToTagNameMap=new Map(Object.entries(G.contentMapping()).map(function(B){var F=
_.C(B);B=F.next().value;F=F.next().value;return[B,F.component]}));
G.insertedContent=new Map;return G};
_.r(H4,_.p);_.w=H4.prototype;_.w.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var G=_.C(_.IF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),B=G.next();!B.done;B=G.next())B.value.useCompactList=this.useCompactList};
_.w.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var G=_.C(_.IF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),B=G.next();!B.done;B=G.next())B=B.value,B.sizing=this.sizing,B.typographyBump=this.typographyBump};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.w.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.w.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},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.w.attached=function(){document.addEventListener("yt-page-type-changed",_.x7(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.x7(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21075_throttledOnResize=new _.s_(this.resizeObserved,_.sD("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.x7(this,this.onScroll))};
_.w.detached=function(){var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("yt-page-type-changed",_.x7(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.x7(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.x7(this,this.onScroll))};
_.w.insertRichSection=function(G){var B=G.richItemTargetId;G=G.richSectionRendererToInsert;B&&G&&(this.insertedContent.set(B,{content:G,timestamp:Date.now()}),this.reflowContent())};
_.w.computeIsInlinePreviewEnabled=function(G,B,F){return _.X("web_disable_inline_preview")?!1:!F&&GdS({miniplayerIsActive:G,miniplayerPlaybackState:B})};
_.w.computeSizing=function(){var G=_.i6z(this.data);if(G||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return G?this.useCompactList?"COMPACT":G:this.miniMode?"COMPACT":"STANDARD"};
_.w.updateItemMinAndMaxWidth=function(){var G=_.sD("rich_grid_max_item_width",500);G>0&&_.Ss(this.hostElement,{"--ytd-rich-grid-item-max-width":G+"px"});var B;G=this.getRichItemMinWidth((B=this.hostElement)==null?void 0:B.clientWidth);G>0&&_.Ss(this.hostElement,{"--ytd-rich-grid-item-min-width":G+"px"})};
_.w.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.w.resizeObserved=function(){_.Ia(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.w.onPageChange=function(){var G=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Ia(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Lu.addJob(function(){G.pageLoadingFromNavigation=!1;G.setMasthead();G.maybeSetBigYoodle();G.forceRefreshAndLog();G.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.w.dataChanged=function(){var G=this;_.Ia(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.ft(this,function(){G.updateRichItemGridPositions();G.contentsElement&&_.Ss(G.hostElement,{"--ytd-rich-grid-content-offset-top":G.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.w.initResizeObserver=function(){var G=this;if(window.ResizeObserver){var B;(B=this.resizeObserver)==null||B.disconnect();var F=!1;this.resizeObserver=new ResizeObserver(function(){if(F){var D;(D=G.resizeObserver)==null||D.disconnect();var u;(u=G.JSC$21075_throttledOnResize)==null||u.fire();requestAnimationFrame(function(){var N;(N=G.JSC$21075_throttledOnResize)==null||N.fire();G.initResizeObserver()})}else if(F=!0,G.resizeOnObserverInit){var R;
(R=G.JSC$21075_throttledOnResize)==null||R.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.w.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Ia(this.hostElement,"ytd-rich-item-index-update-action")};
_.w.updateElementsPerRow=function(){_.Ia(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.d5({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.d5({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.w.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.w.onRichShelfRendererCollapse=function(G){if(this.shownItems){var B=G.detail;G=this.shownItems.findIndex(function(D){var u,R;return((R=_.Q(D==null?void 0:(u=D.richSectionRenderer)==null?void 0:u.content,_.Zoa))==null?void 0:R.trackingParams)===B});
var F=G+1;G<0||F>=this.contentsElement.children.length||!this.shownItems[F].richItemRenderer||this.contentsElement.children[F].scrollIntoView({behavior:"smooth",block:"start"})}};
_.w.onSoftReloadPage=function(){this.scrollUpToTop()};
_.w.handleRerenderDownloadsData=function(){_.X("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.w.handlePlaylistRemoveVideosAction=function(G){var B;if(((B=_.Q(G,_.yD7))==null?0:B.setVideoIds)&&this.data&&this.data.contents){G=_.Q(G,_.yD7).setVideoIds;for(B=this.data.contents.length-1;B>=0;){var F=_.Q(this.data.contents[B],_.R1);(F=F&&_.Q(F.content,_.m9))&&F.setVideoId&&G.includes(F.setVideoId)&&this.splice("data.contents",B,1);B--}this.updateIndices()}};
_.w.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".richItemRenderer.index",_.$9(String(G+1)))};
_.w.hasTopRowInlinePlayableVideoWithEndorsement=function(G){var B;return!((B=G.slice(0,this.getItemsPerRow()))==null||!B.some(function(F){var D;F=_.Q(F==null?void 0:(D=F.richItemRenderer)==null?void 0:D.content,_.TlT);var u;return(F==null?void 0:F.inlinePlaybackEndpoint)&&(F==null?void 0:(u=F.thumbnailOverlays)==null?void 0:u.some(function(R){return R.thumbnailOverlayEndorsementRenderer}))}))};
_.w.refreshGridLayoutNew=function(G,B,F,D){var u=D.postsPerRow;var R=D.slimItemsPerRow;var N=D.gameCardsPerRow;D=D.miniGameCardsPerRow;var y;if((y=this.data)==null||!y.contents||!this.containerWidth)return!1;var U;if((U=this.data.responsiveContainerConfiguration)==null?0:U.responsiveSize){var q=_.VBo(this.data.responsiveContainerConfiguration,this.containerWidth,2),h;y=_.W_(Object.assign({},q,{standardUnitMinWidth:(h=this.data)==null?void 0:h.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&q.isCompactList)}else y=_.W_({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(q=this.data)==null?void 0:q.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=y.typographyBump;h=!1;if(G||this.elementsPerRow!==y.numItems||this.postsPerRow!==u||this.slimItemsPerRow!==R||this.gameCardsPerRow!==
N||this.miniGameCardsPerRow!==D||this.gutter!==y.gutter)h=this.elementsPerRow!==y.numItems,this.elementsPerRow=y.numItems,this.postsPerRow=u,this.slimItemsPerRow=R,this.gameCardsPerRow=N,this.miniGameCardsPerRow=D,this.gutter=y.gutter,this.itemWidth=y.itemWidth,this.reflowContent(B),_.Ss(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":y.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(F);this.ytdReduxBehavior.dispatch(_.d5({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:y.maxContainerWidth}));return h};
_.w.refreshGridLayout=function(G,B){var F,D=(F=this.hostElement)==null?void 0:F.clientWidth;this.containerWidth=this.adjustRichGridWidth(D,!0);var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return G&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(G=!0,this.pendingForceReflow=!1);F=this.getRichItemMinWidth(D);var R=this.isShortsPanel?146:194,N=this.getMiniGameCardMinWidth(),y=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.sD("rich_grid_default_max_items_per_row",
6);D=F=this.calcElementsPerRow(F,y);(u=F<=3&&this.miniModeAllowed())&&(F=this.calcElementsPerRow(240,4));var U=this.calcMaxSlimElementsPerRow(F,y,this.isDefaultGrid);y=this.calcElementsPerRow(R,U);var q=this.calcElementsPerRow(this.isCompactGrid?R:154,U);R=this.calcElementsPerRow(this.isCompactGrid?R:N,U);N=!1;if(this.sizing)return this.refreshGridLayoutNew(G,B,u,{postsPerRow:D,slimItemsPerRow:y,gameCardsPerRow:q,miniGameCardsPerRow:R});if(G||this.elementsPerRow!==F||this.postsPerRow!==D||this.slimItemsPerRow!==
y||this.gameCardsPerRow!==q||this.miniGameCardsPerRow!==R)N=this.elementsPerRow!==F,this.elementsPerRow=F,this.postsPerRow=D,this.slimItemsPerRow=y,this.gameCardsPerRow=q,this.miniGameCardsPerRow=R,this.reflowContent(B),this.updateElementsPerRow(),_.Ss(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)&&_.Ss(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(u);_.Ia(this.hostElement,"yt-rich-grid-layout-refreshed");return N};
_.w.getRichItemMinWidth=function(G){var B=_.sD("rich_grid_min_item_width",310);if(!_.X("kevlar_disable_min_width_override")){var F,D;B=(D=(F=this.data)==null?void 0:F.minItemWidth)!=null?D:B}return B+_.SmJ(G)};
_.w.calcMaxSlimElementsPerRow=function(G,B,F){return(F===void 0?0:F)?G===1?2:G%2===0?G/2*3:G+2:B*2};
_.w.adjustRichGridWidth=function(G,B){var F=_.X("disable_rich_grid_guide_compensation");if(!this.isWatch&&!F&&this.hostElement.offsetWidth===document.body.clientWidth&&(F=_.te().resolve(_.fH(_.Qj)))&&!F.getData())if(F.canFitPersistentGuide(G)&&F.getGuideExpandsAutomatically()){var D,u,R=Number((D=window.getComputedStyle(this.hostElement))==null?void 0:(u=D.getPropertyValue("--app-drawer-width"))==null?void 0:u.replace("px",""));G-=R||0}else if(F.canFitMiniGuide(G)){var N;D=Number((R=window.getComputedStyle(this.hostElement))==
null?void 0:(N=R.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:N.replace("px",""));G-=D||0}G>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(G-=B?32:48));return G};
_.w.calcElementsPerRow=function(G,B){var F=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),D=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((F+D)/(G+D))||1,B)};
_.w.reflowContent=function(G){var B=this;if(!this.isReflowing){this.isReflowing=!0;var F,D,u=!!((F=this.data)==null?0:(D=F.contents)==null?0:D.some(function(y){return _.Q(y,_.c0)}));
F=this.getItemsPerRow();var R;D=(R=this.data)==null?void 0:R.reflowOptions;G&&(_.KR("rgr_s"),_.ft(this,function(){_.KR("rgr_nrf")}));
G={};(R=_.IF(this.hostElement).querySelector("#contents"))&&(G={contentElement:R,rendererToTagNameMap:this.rendererToTagNameMap});R=(R=this.data.contents)?R.slice():[];u=aVB(R,F,u,D,this.getRichGridStyle(),G,this.insertedContent);var N=u.orderedContent;if(u=u.pinnedContentNotShownTargetIds)for(u=_.C(u),F=u.next();!F.done;F=u.next())this.insertedContent.delete(F.value);u=function(){B.shownItems=N;B.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(N),_.ft(this,u)):u()}};
_.w.getFirstRowItems=function(G){for(var B=[],F=0;F<G.length;F++){var D=void 0,u=void 0,R=void 0,N=void 0,y=void 0,U=void 0;if(((D=G[F])==null?void 0:(u=D.richItemRenderer)==null?void 0:u.rowIndex)===0||((R=G[F])==null?void 0:(N=R.richGroupRenderer)==null?void 0:N.rowIndex)===0||((y=G[F])==null?void 0:(U=y.richSectionRenderer)==null?void 0:U.rowIndex)===0)B.push(G[F]);else break}return B};
_.w.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.w.resetInsertedContentIfNeeded=function(){(_.X("web_explore_hub_on_hover")||_.X("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.w.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.w.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.w.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.w.terminateVideoPreview=function(){_.Ia(this.hostElement,"yt-terminate-video-preview-action")};
_.w.updateRichItemGridPositions=function(){var G={gridData:{gridColumnCount:this.elementsPerRow}},B;((B=this.data)==null?0:B.trackingParams)&&(B=_.qW())&&_.bf(B,_.yX(this.data.trackingParams),G);_.Ia(this.hostElement,"ytd-rich-item-index-update-action")};
_.w.miniModeAllowed=function(){return this.isChannelPage};
_.w.getMiniGameCardMinWidth=function(){return 154};
_.w.updateMiniMode=function(G){this.miniMode=this.miniModeAllowed()&&G;this.ytdReduxBehavior.dispatch(_.d5({type:"SET_RICH_GRID_MINI_MODE",payload:G}))};
_.w.isCurrentPage=function(){return location.pathname===this.pagePath};
_.w.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var G=_.te().resolve(_.pA).getCurrentPage();G&&G.setScrollTop(0)}};
_.w.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.w.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.w.maybeSetBigYoodle=function(){var G,B=(G=this.data)==null?void 0:G.bigYoodle;this.bigYoodleData!==B&&(this.bigYoodleData=B)};
_.w.setMasthead=function(){var G;((G=this.data)==null?0:G.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.w.getRichGridStyle=function(){var G,B;return(B=(G=this.data)==null?void 0:G.style)!=null?B:"RICH_GRID_STYLE_UNKNOWN"};
_.w.onIsShortsGridChange=function(){var G=this.ytdReduxBehavior,B=G.dispatch,F=this.getRichGridStyle();B.call(G,_.d5({type:"SET_RICH_GRID_STYLE",payload:F}))};
_.w.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.w.onScroll=function(){this.isScrolled=window.scrollY>0};
_.ZN.Object.defineProperties(H4.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.X("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.ytContinuationHandlerBehavior)==null?void 0:G.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var G=_.te().resolve(_.pA).getCurrentPage(),B,F,D;return(((B=this.data)==null?void 0:B.targetId)==="browse-feedFEsfv_audio_pivot"||_.X("web_enable_channel_pivot_panel")&&((F=this.data)==null?void 0:F.targetId)==="browse-feedFEsfv_channel_pivot"||_.X("web_enable_effect_pivot_panel")&&((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_effect_pivot")&&(G==null?void 0:G.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.X("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 G;return!((G=this.data)==null?0:G.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.te().resolve(_.pA).getCurrentPage())==null?void 0:G.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.te().resolve(_.pA).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?0:G.enableContentSpecificAspectRatio)||((B=this.data)==null?0:(F=B.responsiveContainerConfiguration)==null?0:F.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.sD("web_continuation_handler_margin",0):0}}});
H4.prototype.onIsShortsGridChange=H4.prototype.onIsShortsGridChange;H4.prototype.onReloadContinuationFinish=H4.prototype.onReloadContinuationFinish;H4.prototype.reflowContent=H4.prototype.reflowContent;H4.prototype.handleRerenderDownloadsData=H4.prototype.handleRerenderDownloadsData;H4.prototype.onRichShelfRendererCollapse=H4.prototype.onRichShelfRendererCollapse;H4.prototype.onRequestElementsPerRow=H4.prototype.onRequestElementsPerRow;H4.prototype.contentLengthChanged=H4.prototype.contentLengthChanged;
H4.prototype.dataChanged=H4.prototype.dataChanged;H4.prototype.onSizingChange=H4.prototype.onSizingChange;H4.prototype.onUseCompactListChange=H4.prototype.onUseCompactListChange;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],H4.prototype,"ironResizableBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],H4.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],H4.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],H4.prototype,"componentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],H4.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],H4.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],H4.prototype,"miniMode",void 0);_.c([_.v({value:[]}),_.I("design:type",Array)],H4.prototype,"shownItems",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],H4.prototype,"isReflowing",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],H4.prototype,"isFilteredFeed",void 0);_.c([_.v({selector:_.W78}),_.I("design:type",Boolean)],H4.prototype,"guideIsExpanded",void 0);
_.c([_.v({selectorArgs:["entitySelectorType"],selector:function(G,B){if(_.X("kevlar_modern_downloads_page")&&B&&B!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(B){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":B=G.entities;var F=_.nJ(B),D=_.lo(B),u=_.TAc(G),R=_.cfI(G),N=_.IsU(G),y=_.EVs(B),U=_.uo(F),q=_.UX(B);return _.kel(F,D,y,_.mvo(B),u,R,U,q,N,_.tps(G),_.a9(G));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return G=_.nJ(G.entities),_.eng(G);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return G=
_.lsQ(G.entities),_.$4L(G);default:_.em(new _.Uf("Error: entitySelectorType defined but not matched in selector.",G,B))}}}),
_.I("design:type",Object)],H4.prototype,"entityDrivenRichGridData",void 0);_.c([_.v(),_.I("design:type",Object)],H4.prototype,"resizeOnObserverInit",void 0);_.c([_.v(),_.I("design:type",Object)],H4.prototype,"bigYoodleData",void 0);_.c([_.v(),_.I("design:type",Object)],H4.prototype,"mastheadData",void 0);_.c([_.v(),_.I("design:type",Boolean)],H4.prototype,"isInlinePreviewDisabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"disableStickyFilterBar",void 0);
_.c([_.v(),_.I("design:type",Object)],H4.prototype,"transparentBackgroundChipsBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"hideChipsBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("isHomePage","isFilteredFeed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"showChipsOnScroll",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"isScrolled",void 0);
_.c([_.v(),_.I("design:type",Object)],H4.prototype,"isWatchDefaultLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"continuationShowButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"rowReducedHorizontalMargin",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"useCompactList",void 0);_.c([_.v({selector:function(G){return _.lo(G.entities).length>0}}),
_.I("design:type",Object)],H4.prototype,"manualDownloadsPresent",void 0);_.c([_.v({selector:function(G){return _.nJ(G.entities).length>0}}),
_.I("design:type",Object)],H4.prototype,"smartDownloadsPresent",void 0);_.c([_.v({selector:_.a9}),_.I("design:type",Object)],H4.prototype,"isOnline",void 0);_.c([_.v({selector:_.cfI}),_.I("design:type",Object)],H4.prototype,"shouldRenderDownloadsBanner",void 0);_.c([_.v({selector:_.tps}),_.I("design:type",Object)],H4.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.c([_.v({selector:_.TAc}),_.I("design:type",Object)],H4.prototype,"hasOptedIntoSmartDownloads",void 0);
_.c([_.Ga("useCompactList"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"onUseCompactListChange",null);_.c([_.Ga("sizing","typographyBump"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"onSizingChange",null);_.c([_.v({selector:_.zo8}),_.I("design:type",Number)],H4.prototype,"miniplayerPlaybackState",void 0);_.c([_.v({selector:_.hc}),_.I("design:type",Boolean)],H4.prototype,"miniplayerIsActive",void 0);
_.c([_.v({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.I("design:type",Boolean)],H4.prototype,"isInlinePreviewEnabled",void 0);_.c([_.v({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.I("design:type",String)],H4.prototype,"sizing",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],H4.prototype,"elementsPerRow",void 0);
_.c([_.v(),_.I("design:type",Object)],H4.prototype,"typographyBump",void 0);_.c([_.v(),_.I("design:type",Number)],H4.prototype,"itemWidth",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],H4.prototype,"headerElement",void 0);_.c([_.iA("#contents"),_.I("design:type",HTMLElement)],H4.prototype,"contentsElement",void 0);_.c([_.O("reloadUiContent"),_.I("design:type",Object),_.I("design:paramtypes",[])],H4.prototype,"loadingContentRenderer",null);
_.c([_.O("reloadUiContent"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"hasLoadingContent",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"dataChanged",null);_.c([_.Ry("data.contents.length"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"contentLengthChanged",null);
_.c([_.Pm("yt-request-elements-per-row"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"onRequestElementsPerRow",null);_.c([_.Pm("yt-rich-shelf-renderer-collapse"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],H4.prototype,"onRichShelfRendererCollapse",null);
_.c([_.Ry("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"handleRerenderDownloadsData",null);_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],H4.prototype,"entitySelectorType",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.targetId"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isSub",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.targetId"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isWatch",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.targetId"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isShortsPanel",null);
_.c([_.v({reflectToAttribute:!0}),_.O("isWatch"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"reducedTopMargin",null);_.c([_.v({reflectToAttribute:!0}),_.O("data","isWatch","isWatchDefaultLayout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"noTopMargin",null);_.c([_.v({reflectToAttribute:!0}),_.O("isInlinePreviewEnabled","shownItems"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"topRowEndorsement",null);
_.c([_.O("data.header"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"hideHeader",null);_.c([_.Pm("yt-rich-grid-reflow"),_.I("design:type",Function),_.I("design:paramtypes",[Boolean]),_.I("design:returntype")],H4.prototype,"reflowContent",null);_.c([_.Pm("yt-reload-continuation-finish"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"onReloadContinuationFinish",null);
_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isSlimGrid",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isShortsGrid",null);_.c([_.O("data","isSlimGrid","isShortsGrid"),_.v(),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"noRichItemGutterMargins",null);
_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isShortsGridSlim",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isCompactGrid",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"isDefaultGrid",null);
_.c([_.O("data.targetId"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"hideChipsBarOnWatch",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],H4.prototype,"onIsShortsGridChange",null);_.c([_.O("data.enableContentSpecificAspectRatio"),_.v(),_.I("design:type",Boolean),_.I("design:paramtypes",[])],H4.prototype,"force16By9ThumbnailAspectRatio",null);
_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],H4.prototype,"continuationTriggerOffset",null);_.c([_.mC({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],H4);
_.d(H4,"ytd-rich-grid-renderer",function(){if(V4H!==void 0)return V4H;var G=document.createElement("template");_.H(G,'\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="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return V4H=G},{mode:2});var VMG;var k6=function(){return _.p.apply(this,arguments)||this};
_.r(k6,_.p);_.w=k6.prototype;
_.w.onKeyDown=function(G){if(this.snippetElements.length!==0&&(G=G.keyCode,G===38||G===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);G===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.ki(this.highlightedIndex,-1,this.snippetElements.length);G=this.snippetElements.length;var B=this.highlightedIndex%G;this.highlightedIndex=B*G<0?B+G:B;G=this.snippetElements[this.highlightedIndex];this.highlightSnippet(G);this.ensureVisible(G)}};
_.w.onKeyUp=function(G){var B=this;W$$(G)&&(G.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Lu.cancelJob(this.inputTimerId),this.inputTimerId=_.Lu.addLowPriorityJob(function(){B.typedValue&&(B.fetchSnippets(B.typedValue),B.logInputGesture(B.data))},1E3))};
_.w.onClick=function(G){(G=_.Bd7(G.target,null,"snippet-item"))&&this.selectSnippet(G)};
_.w.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.w.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.w.ready=function(){var G=this;this.inputElement.addEventListener("focus",function(){G.snippetsWrapper.style.removeProperty("display")})};
_.w.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.w.getSourceTimelines=function(){if(!this.data)return[];var G=[];if(this.data.searchInVideoSources)for(var B=_.C(this.data.searchInVideoSources),F=B.next();!F.done;F=B.next())F=F.value,F==="SEARCH_IN_VIDEO_SOURCE_ASR"?G.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):F==="SEARCH_IN_VIDEO_SOURCE_OCR"&&G.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return G};
_.w.fetchSnippets=function(G){var B=_.T1(this.hostElement,"yt-get-current-video-id-action")[0],F=this.getSourceTimelines();G={getSearchInVideoCommand:{externalVideoId:B,query:G!=null?G:"",sourceTimelines:F},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})};
_.w.filterSnippets=function(G,B){var F=this;if(B){this.filteredSnippets=(0,_.UK.unsafeClone)(G);var D=RegExp(_.Hog(B),"i");this.filteredSnippets=this.filteredSnippets.filter(function(N){return D.test(F.ytRendererBehavior.getSimpleString(N.snippet))});
G=_.C(this.filteredSnippets);for(var u=G.next();!u.done;u=G.next()){u=u.value;var R=this.ytRendererBehavior.getSimpleString(u.snippet);u.snippet={runs:[{text:R.substring(0,R.toLowerCase().indexOf(B))},{text:R.substring(R.toLowerCase().indexOf(B),R.toLowerCase().indexOf(B)+B.length),bold:!0},{text:R.substring(R.toLowerCase().indexOf(B)+B.length,R.length)}]}}}else this.filteredSnippets=G};
_.w.onUpdateSearchInVideoResults=function(G){if(!(this.snippets.length>0)){var B,F,D;if((D=(B=_.Q(G,UoH))==null?void 0:(F=B.results)==null?void 0:F.length)!=null&&D){var u;this.filteredSnippets=this.snippets=((u=_.Q(G,UoH))==null?void 0:u.results).map(function(R){var N,y,U;return{startMs:R==null?void 0:(N=R.searchInVideoResultRenderer)==null?void 0:N.startMs,startTimeText:R==null?void 0:(y=R.searchInVideoResultRenderer)==null?void 0:y.startTimeText,snippet:R==null?void 0:(U=R.searchInVideoResultRenderer)==
null?void 0:U.snippet}})}}};
_.w.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};
_.w.highlightSnippet=function(G){G.classList.add("highlighted")};
_.w.removeSnippetHighlight=function(G){G.classList.remove("highlighted")};
_.w.selectSnippet=function(G){this.typedValue=String(G.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(G);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.w.ensureVisible=function(G){var B=this.snippetsWrapper.scrollTop,F=B+this.snippetsWrapper.clientHeight,D=G.offsetTop-this.snippetsWrapper.offsetTop;G=D+G.clientHeight;D<B?this.snippetsWrapper.scrollTop-=B-D:G>F&&(this.snippetsWrapper.scrollTop+=G-F)};
_.w.seekPlayer=function(G){var B,F;return _.n(function(D){if(D.nextAddress==1){if(!G)return D.jumpTo(0);B=Number(G.dataset.startOffset);return D.yield(_.de().getPlayerPromise(),3)}F=D.yieldResult;F.seekTo(B/1E3,!0);F.wakeUpControls();_.di(D)})};
_.w.logInputGesture=function(G){var B=_.qW();B&&(G==null?0:G.trackingParams)&&_.z7(B,_.yX(G.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.w.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("typed-value-changed",this.typedValue))};
_.w.updateTypedValueFromBinding=function(G){this.typedValue=G.currentTarget.value};
k6.prototype.typedValueChangedForBinding=k6.prototype.typedValueChangedForBinding;k6.prototype.dataChanged=k6.prototype.dataChanged;k6.prototype.panelContentVisibleChanged=k6.prototype.panelContentVisibleChanged;k6.prototype.onClick=k6.prototype.onClick;k6.prototype.onKeyUp=k6.prototype.onKeyUp;k6.prototype.onKeyDown=k6.prototype.onKeyDown;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],k6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],k6.prototype,"data",void 0);_.c([_.v({value:[]}),_.I("design:type",Array)],k6.prototype,"snippets",void 0);_.c([_.v({value:[]}),_.I("design:type",Array)],k6.prototype,"filteredSnippets",void 0);_.c([_.v({value:[]}),_.I("design:type",Array)],k6.prototype,"snippetElements",void 0);
_.c([_.iA("#siv-input"),_.I("design:type",HTMLElement)],k6.prototype,"inputElement",void 0);_.c([_.iA("#siv-snippets-wrapper"),_.I("design:type",HTMLElement)],k6.prototype,"snippetsWrapper",void 0);_.c([_.v(),_.I("design:type",String)],k6.prototype,"typedValue",void 0);_.c([_.v({value:-1}),_.I("design:type",Number)],k6.prototype,"highlightedIndex",void 0);_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[_.nG]),_.I("design:returntype")],k6.prototype,"onKeyDown",null);
_.c([_.Pm("keyup"),_.I("design:type",Function),_.I("design:paramtypes",[_.nG]),_.I("design:returntype")],k6.prototype,"onKeyUp",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],k6.prototype,"onClick",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],k6.prototype,"panelContentVisible",void 0);
_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],k6.prototype,"panelContentVisibleChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],k6.prototype,"dataChanged",null);_.c([_.Ga("typedValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],k6.prototype,"typedValueChangedForBinding",null);
_.c([_.mC({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],k6);
_.d(k6,"ytd-search-in-video-renderer",function(){if(VMG!==void 0)return VMG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return VMG=G},{mode:1});var v1U;var O3=function(){return _.p.apply(this,arguments)||this};
_.r(O3,_.p);O3.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
O3.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]]"}}}}}};
O3.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,B,F,D,u=(B=_.Q((G=this.data)==null?void 0:G.onClickCommand,_.tOs))==null?void 0:(F=B.item)==null?void 0:(D=F.notificationTextRenderer)==null?void 0:D.successResponseText;u&&_.b66(this.hostElement,u)}};
_.ZN.Object.defineProperties(O3.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;return this.isProductPlaceholder&&((G=this.data)==null?void 0:(B=G.hiddenProductOptions)==null?void 0:B.showDropCountdown)&&!!((F=this.data)==null?0:(D=F.hiddenProductOptions)==null?0:D.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isProductPlaceholder&&!((G=this.data)==null?0:G.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null?0:G.priceReplacementText)&&!((B=this.data)==null||!B.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],O3.prototype,"componentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],O3.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("isProductPlaceholder"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"useCenterLayoutContainer",null);_.c([_.v({computed:"computeButtonOverride(data)"}),_.I("design:type",Object)],O3.prototype,"buttonOverride",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"isProductPlaceholder",null);
_.c([_.O("isProductPlaceholder"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"showDropCountdown",null);_.c([_.O("isProductPlaceholder","data"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"showBrandName",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"showPriceReplacementText",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"showPrice",null);
_.c([_.O("isProductPlaceholder"),_.I("design:type",Object),_.I("design:paramtypes",[])],O3.prototype,"showMetadata",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],O3);
_.d(O3,"ytd-product-list-item-renderer",function(){if(v1U!==void 0)return v1U;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return v1U=G},{mode:1});var o1$;var eu=function(){return _.p.apply(this,arguments)||this};
_.r(eu,_.p);eu.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
eu.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
eu.prototype.panelContentVisibleChanged=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return G.playerApi?F.jumpTo(2):F.yield(_.de().getPlayerPromise(),3);F.nextAddress!=2&&(G.playerApi=F.yieldResult);(B=G.playerApi)==null||B.productsInVideoVisibilityUpdated(!!G.panelContentVisible);_.di(F)})};
eu.prototype.panelContentVisibleChanged=eu.prototype.panelContentVisibleChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],eu.prototype,"panelContentVisible",void 0);_.c([_.v(),_.I("design:type",Object)],eu.prototype,"data",void 0);
_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],eu.prototype,"panelContentVisibleChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],eu);
_.d(eu,"ytd-product-list-renderer",function(){if(o1$!==void 0)return o1$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return o1$=G},{mode:1});var MM$;var $6=function(){var G=_.p.apply(this,arguments)||this;G.isToggleChecked=!1;return G};
_.r($6,_.p);$6.prototype.onDataChanged=function(){var G;this.isToggleChecked=((G=this.data)==null?void 0:G.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
$6.prototype.close=function(){var G;((G=this.data)==null?0:G.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
$6.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var G,B=_.Q((G=this.data)==null?void 0:G.switchButton,lPz);B&&(this.isToggleChecked&&B.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(B.switchOnInnertubeCommand),!this.isToggleChecked&&B.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(B.switchOffInnertubeCommand))};
$6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$6.prototype.onDataChanged=$6.prototype.onDataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$6.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$6.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],$6.prototype,"isToggleChecked",void 0);_.c([_.v({value:_.G7("CLOSE")}),_.I("design:type",String)],$6.prototype,"closeButtonAriaLabel",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$6.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],$6);
_.d($6,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(MM$!==void 0)return MM$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MM$=G},{mode:1});var pkD;var zH=function(){var G=_.p.apply(this,arguments)||this;G.hideTimestamps=!!_.np("hide-transcript-timestamps");G.currentCueIndex=-1;G.flatCues=[];G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};G.TEST_ONLY={getFlatCues:function(){return G.flatCues}};
return G};
_.r(zH,_.p);_.w=zH.prototype;_.w.hideTimestampsChanged=function(){_.yW("hide-transcript-timestamps",this.hideTimestamps)};
_.w.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.w.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.w.dataChanged=function(){var G;if((G=this.data)!=null&&G.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;G=_.C(this.data.cueGroups);for(var B=G.next();!B.done;B=G.next()){B=_.C(_.Q(B.value,kFA).cues);for(var F=B.next();!F.done;F=B.next())this.flatCues.push(Number(_.Q(F.value,OFz).startOffsetMs))}}};
_.w.onYtPlayerTimeChanged=function(G){if(!(G<0)){for(var B=this.currentCueIndex,F=B;;){var D=F>=0?this.flatCues[F]/1E3:-1;if(G+.5<D)--F;else if(D=F+1<this.flatCues.length?this.flatCues[F+1]/1E3:Infinity,G+.5>D)F+=1;else break}F!==B&&(B>=0&&((G=this.getCueElement(B))&&G.classList.remove("active"),(B=this.getCueGroupElement(B))&&B.classList.remove("active")),(B=this.getCueElement(F))&&B.classList.add("active"),(B=this.getCueGroupElement(F))&&B.classList.add("active"),this.currentCueIndex=F,this.isHovered||
this.scrollElementToTop(F))}};
_.w.scrollElementToTop=function(G){G=this.getCueElement(G>=3?G-3:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.w.getCueElement=function(G){return _.IF(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[G]+'"]')};
_.w.getCueGroupElement=function(G){return(G=this.getCueElement(G))&&G.parentElement?G.parentElement.parentElement:null};
_.w.onTap=function(G){var B=_.oF(G);G.target.classList.contains("cue")&&this.seekCueElement(B)};
_.w.onKeyPress=function(G){G.keyCode==13&&(G=_.Bd7(G.target,null,"cue"))&&this.seekCueElement(G)};
_.w.seekCueElement=function(G){G=Number(G.getAttribute("start-offset"));_.T1(this.hostElement,"yt-transcript-player-seek",[G/1E3])};
_.w.onMouseEnter=function(){this.isHovered=!0};
_.w.onMouseLeave=function(){this.isHovered=!1};
zH.prototype.onMouseLeave=zH.prototype.onMouseLeave;zH.prototype.onMouseEnter=zH.prototype.onMouseEnter;zH.prototype.onKeyPress=zH.prototype.onKeyPress;zH.prototype.onTap=zH.prototype.onTap;zH.prototype.dataChanged=zH.prototype.dataChanged;zH.prototype.hideTimestampsChanged=zH.prototype.hideTimestampsChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],zH.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],zH.prototype,"hideTimestamps",void 0);_.c([_.v(),_.I("design:type",Boolean)],zH.prototype,"isHovered",void 0);_.c([_.Ga("hideTimestamps"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zH.prototype,"hideTimestampsChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zH.prototype,"dataChanged",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],zH.prototype,"onTap",null);_.c([_.Pm("keypress"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],zH.prototype,"onKeyPress",null);
_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zH.prototype,"onMouseEnter",null);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zH.prototype,"onMouseLeave",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],zH);
_.d(zH,"ytd-transcript-body-renderer",function(){if(pkD!==void 0)return pkD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return pkD=G},{mode:1});var Y6D;var bK=function(){var G=_.p.apply(this,arguments)||this;G.darkerPanels=_.X("web_watch_darker_panels");return G};
_.r(bK,_.p);bK.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],bK.prototype,"darkerPanels",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],bK);
_.d(bK,"ytd-transcript-footer-renderer",function(){if(Y6D!==void 0)return Y6D;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Y6D=G},{mode:1});var A4G;var dMN;var Vl=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");G.showClearButton=!1;return G};
_.r(Vl,_.p);_.w=Vl.prototype;_.w.handleInput=function(G){var B=this;G.target.value.length?_.kT(this,"ytdTranscriptSearchBoxSearch",function(){B.emitSearchEvent(G)},500):(_.ywg(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=G.target.value.length>0};
_.w.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.w.handleClick=function(){var G,B=(G=this.data)==null?void 0:G.trackingParams;B&&_.ss(_.Rh(),B)};
_.w.handleClear=function(){_.ywg(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var G,B,F=(B=_.Q((G=this.data)==null?void 0:G.clearButton,_.Xq))==null?void 0:B.trackingParams;F&&_.ss(_.Rh(),F);this.clear()};
_.w.emitSearchEvent=function(G){_.cZ(this.hostElement,"yt-transcript-search-box-search",{query:G.target.value});var B,F;(G=(F=_.Q((B=this.data)==null?void 0:B.searchButton,_.Xq))==null?void 0:F.trackingParams)&&_.ss(_.Rh(),G)};
_.w.emitClearEvent=function(){_.cZ(this.hostElement,"yt-transcript-search-box-clear")};
_.ZN.Object.defineProperties(Vl.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.IF(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Vl.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Vl.prototype,"systemIcons",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Vl);
_.d(Vl,"ytd-transcript-search-box-renderer",function(){if(dMN!==void 0)return dMN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dMN=G},{mode:1});var J4$;var c4Q;var v4=function(){return _.p.apply(this,arguments)||this};
_.r(v4,_.p);v4.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var G,B;this.sectionHeaderAriaLabel=(G=this.data)==null?void 0:(B=G.accessibility)==null?void 0:B.accessibilityData.label}};
v4.prototype.fireSelectedEvent=function(G){_.cZ(this.hostElement,"ytd-transcript-section-header",{startMs:G})};
v4.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
v4.prototype.handleKeyPress=function(G){this.data&&G.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.ZN.Object.defineProperties(v4.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.data)==null?void 0:G.enableTappableTranscriptHeader)!=null?B:!1}}});
v4.prototype.dataChanged=v4.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],v4.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],v4.prototype,"sectionHeaderAriaLabel",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],v4.prototype,"enableTappableTranscriptHeader",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],v4.prototype,"dataChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],v4);
_.d(v4,"ytd-transcript-section-header-renderer",function(){if(c4Q!==void 0)return c4Q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return c4Q=G},{mode:1});var Tfz;var I12;var o0=function(){var G=_.p.apply(this,arguments)||this;G.isEditMode=!1;G.touchCaptionsEnabled=!1;G.deleteCaptionCorrectionPopupCommand=null;G.voteCaptionCorrectionPopupCommand=null;G.roundedContainer=!0;G.mouseOver=!1;G.textChanged=!1;G.messages={suggest_correction:_.G7("suggest_correction",void 0,"Edit caption"),suggested_caption:_.G7("suggested_caption",void 0,"Suggested caption"),submit_correction:_.G7("submit_correction",void 0,"Submit for review"),cancel_correction:_.G7("cancel_correction",
void 0,"Cancel"),replay_segment:_.G7("replay_segment",void 0,"Re-play segment"),delete_correction:_.G7("delete_correction",void 0,"Delete correction")};G.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return G};
_.r(o0,_.p);_.w=o0.prototype;_.w.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)};
_.w.handleDelete=function(G){if(this.deleteCaptionCorrectionPopupCommand){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);B&&this.ytdOpenPopupBehavior.openPopup(B);G.stopPropagation()}};
_.w.handleSubmit=function(G){if(this.data&&this.data.submitCaptionCorrectionCommand&&(G.stopPropagation(),this.textChanged)){var B;G=(B=_.Q(this.data.submitCaptionCorrectionCommand,_.D2s))==null?void 0:B.params;B=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:G,correctionText:String(this.ironTextAreaElement.value),originalText:_.zx(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(B);this.isEditMode=!1}};
_.w.handleUpdateSegmentText=function(G){(G=_.Q(G,kCG))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&(G.userCorrection&&(this.editedText=G.userCorrection),G.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.zx(this.data.snippet)),G.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=G.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=G.voteCaptionCorrectionPopupCommand?
G.voteCaptionCorrectionPopupCommand:null,G.accessibility&&(this.segmentAriaLabel=G.accessibility.accessibilityData.label))};
_.w.handleCancel=function(G){this.isEditMode=!1;G.stopPropagation();this.logClientVe(159409)};
_.w.handleEditSegmentCommand=function(G){(G=_.Q(G,HO$))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&this.handleEdit()};
_.w.handleEditButtonClick=function(G){this.data&&(this.handleEdit(),G.stopPropagation())};
_.w.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var G;(G=this.ironTextAreaElement.textarea)==null||G.focus();this.logClientVe(159407)}};
_.w.handleMouseEnter=function(){this.mouseOver=!0};
_.w.handleMouseLeave=function(){this.mouseOver=!1};
_.w.handleReplay=function(G){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),G.stopPropagation(),this.logClientVe(159408))};
_.w.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()))};
_.w.handleKeypress=function(G){this.data&&(this.isEditMode?G.stopPropagation():this.isEnterPress(G)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(G)&&this.logClientVe(138758))};
_.w.handleTextboxClick=function(G){G.stopPropagation()};
_.w.handleTextboxKeydown=function(G){this.isControlEnterPress(G)?this.handleSubmit(G):G.key==="Escape"&&this.handleCancel(G)};
_.w.handleTextboxKeyup=function(){this.textChanged=_.zx(this.latestText)!==String(this.ironTextAreaElement.value)};
_.w.fireSelectedEvent=function(G){_.cZ(this.hostElement,"yt-transcript-segment-selected",{startMs:G})};
_.w.fireReplayEvent=function(G,B){_.cZ(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(G-100,0),endMs:B})};
_.w.fireEditEvent=function(G,B){_.cZ(this.hostElement,"yt-transcript-segment-edit",{startMs:G,endMs:B})};
_.w.isEnterPress=function(G){return G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13?!0:!1};
_.w.isControlEnterPress=function(G){var B=G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13;return(G.ctrlKey||G.metaKey)&&B};
_.w.isCopyPress=function(G){var B=G.ctrlKey;return G.key==="c"&&B};
_.w.logClick=function(){var G,B=(G=this.data)==null?void 0:G.trackingParams;B&&_.ss(_.Rh(),B)};
_.w.logClientVe=function(G){_.S0(_.Rh(),_.ge(G))};
_.ZN.Object.defineProperties(o0.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}}});
o0.prototype.handleMouseLeave=o0.prototype.handleMouseLeave;o0.prototype.handleMouseEnter=o0.prototype.handleMouseEnter;o0.prototype.dataChanged=o0.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],o0.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],o0.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],o0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],o0.prototype,"isEditMode",void 0);_.c([_.v(),_.I("design:type",Object)],o0.prototype,"touchCaptionsEnabled",void 0);_.c([_.v(),_.I("design:type",Object)],o0.prototype,"editedText",void 0);_.c([_.v(),_.I("design:type",Object)],o0.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.c([_.v(),_.I("design:type",Object)],o0.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.c([_.v(),_.I("design:type",String)],o0.prototype,"segmentAriaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],o0.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],o0.prototype,"mouseOver",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],o0.prototype,"textChanged",void 0);_.c([_.v(),_.I("design:type",Object)],o0.prototype,"messages",void 0);
_.c([_.iA("#suggestion"),_.I("design:type",Object)],o0.prototype,"ironTextAreaElement",void 0);_.c([_.O("data","editedText"),_.I("design:type",Object),_.I("design:paramtypes",[])],o0.prototype,"latestText",null);_.c([_.O("touchCaptionsEnabled","isEditMode"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],o0.prototype,"enableEditButton",null);
_.c([_.O("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],o0.prototype,"enableUndoButton",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],o0.prototype,"dataChanged",null);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],o0.prototype,"handleMouseEnter",null);
_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],o0.prototype,"handleMouseLeave",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],o0);
_.d(o0,"ytd-transcript-segment-renderer",function(){if(I12!==void 0)return I12;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return I12=G},{mode:1});var ME=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};G.isError=!1;G.darkerPanels=_.X("web_watch_darker_panels");G.useParentMaxHeight=_.X("web_watch_transscript_use_parent_max_height");G.segmentOffsets=[];G.segmentIndex=-1;return G};
_.r(ME,_.p);_.w=ME.prototype;_.w.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"}}}}};
_.w.segmentsChanged=function(){this.updateOffsets()};
_.w.onYtPlayerTimeChanged=function(G){for(var B=this.segmentIndex,F=B;;){if(F>=0){var D=this.segmentOffsets[F].start;var u=this.segmentOffsets[F].isAutoScrollable}else D=-1,u=!0;var R=G+.5;if(!u){D=F+1<this.segmentOffsets.length?this.segmentOffsets[F+1].start:Infinity;if(R>=D){F+=1;continue}F=-1;break}if(R<D)D=F-1>=0&&this.segmentOffsets[F-1].isAutoScrollable,u=F===0||D?1:2,F-=u;else if(u=F+1<this.segmentOffsets.length&&this.segmentOffsets[F+1].isAutoScrollable?1:2,D=F+u<this.segmentOffsets.length?
this.segmentOffsets[F+u].start:Infinity,R>D)F+=u;else{if(F<0)break;F<this.segmentOffsets.length&&R>this.segmentOffsets[F].end&&(F=-1);break}}if(B!==F){if(B>=0){var N;(N=this.getSegmentElement(B))==null||N.classList.remove("active")}this.segmentIndex=F;if(!(F<0)){var y;(y=this.getSegmentElement(F))==null||y.classList.add("active");this.isHovered||this.scrollElementToTop(F)}}};
_.w.handleSegmentEdit=function(G){G.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=G.target,_.T1(this.hostElement,"yt-transcript-player-edit",[G.detail.startMs/1E3,G.detail.endMs/1E3]))};
_.w.handleSegmentSelected=function(G){_.T1(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.w.handleSegmentReplay=function(G){_.T1(this.hostElement,"yt-transcript-player-replay",[G.detail.startMs/1E3,G.detail.endMs/1E3])};
_.w.handleSectionHeaderSelected=function(G){_.T1(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.w.onMouseEnter=function(){this.isHovered=!0};
_.w.onMouseLeave=function(){this.isHovered=!1};
_.w.onRetryButtonClick=function(){_.cZ(this.hostElement,"transcript-retry-button-click")};
_.w.getSegmentElement=function(G){return _.IF(this.hostElement).querySelector(":nth-child("+(G+1)+")")};
_.w.scrollElementToTop=function(G){G=this.getSegmentElement(G>=2?G-2:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.w.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(G){var B,F=(B=G.transcriptSegmentRenderer)!=null?B:G.transcriptSectionHeaderRenderer;return{start:Number(F.startMs)/1E3,end:Number(F.endMs)/1E3,isAutoScrollable:G.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.w.clearHighlightedSegments=function(){var G=_.IF(this.hostElement);G=_.C(G.querySelectorAll("ytd-transcript-segment-renderer"));for(var B=G.next();!B.done;B=G.next())B.value.classList.remove("active")};
_.ZN.Object.defineProperties(ME.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.searchResultSegments)||((B=this.data)==null?void 0:B.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ME.prototype.onMouseLeave=ME.prototype.onMouseLeave;ME.prototype.onMouseEnter=ME.prototype.onMouseEnter;ME.prototype.handleSectionHeaderSelected=ME.prototype.handleSectionHeaderSelected;ME.prototype.handleSegmentReplay=ME.prototype.handleSegmentReplay;ME.prototype.handleSegmentSelected=ME.prototype.handleSegmentSelected;ME.prototype.handleSegmentEdit=ME.prototype.handleSegmentEdit;ME.prototype.segmentsChanged=ME.prototype.segmentsChanged;
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ME.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ME.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ME.prototype,"isError",void 0);
_.c([_.v(),_.I("design:type",Object)],ME.prototype,"noResultLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ME.prototype,"darkerPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ME.prototype,"useParentMaxHeight",void 0);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],ME.prototype,"segments",null);
_.c([_.O("segments","noResultLabel"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],ME.prototype,"displayNoResults",null);_.c([_.Ga("segments"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ME.prototype,"segmentsChanged",null);_.c([_.Pm("yt-transcript-segment-edit"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],ME.prototype,"handleSegmentEdit",null);
_.c([_.Pm("yt-transcript-segment-selected"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],ME.prototype,"handleSegmentSelected",null);_.c([_.Pm("yt-transcript-segment-replay"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],ME.prototype,"handleSegmentReplay",null);
_.c([_.Pm("ytd-transcript-section-header"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],ME.prototype,"handleSectionHeaderSelected",null);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ME.prototype,"onMouseEnter",null);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ME.prototype,"onMouseLeave",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ME);
_.d(ME,"ytd-transcript-segment-list-renderer",function(){if(Tfz!==void 0)return Tfz;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tfz=G},{mode:1});var p6=function(){var G=_.p.apply(this,arguments)||this;G.hideTimestamps=!!_.np("hide-transcript-timestamps");G.isLoadingTranscripts=!1;G.darkerPanels=_.X("web_watch_darker_panels");G.isError=!1;G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return G};
_.r(p6,_.p);_.w=p6.prototype;_.w.headerChanged=function(){var G,B;this.baseGetTranscriptsCommand=(B=_.Q((G=this.data)==null?void 0:G.header,OON))==null?void 0:B.onTextChangeCommand};
_.w.bodyChanged=function(){var G=this.getBodyRenderer();G&&(G.initialSegments&&(this.initialTranscriptsRenderer=G),G.noResultLabel&&(this.noResultLabel=G.noResultLabel),G.retryLabel&&(this.retryLabel=G.retryLabel))};
_.w.detached=function(){this.clearSearchBoxText()};
_.w.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.w.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"}}}};
_.w.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.w.fireSearch=function(G){var B=this;if(G){var F=G.detail.query;if(this.baseGetTranscriptsCommand){var D;G=(D=_.Q(this.baseGetTranscriptsCommand,_.BY8))==null?void 0:D.params;var u;D=_.Q((u=this.data)==null?void 0:u.footer,ekN);var R;if((u=(R=_.Q(D==null?void 0:D.languageMenu,qPH))==null?void 0:R.subMenuItems)&&u.length>0&&(R=u.find(function(U){return U.selected}))){var N,y;
G=(N=R.continuation)==null?void 0:(y=N.reloadContinuationData)==null?void 0:y.continuation}N=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:G,searchQuery:F}});this.ytComponentBehavior.resolveCommand(N,{commandController:{onServerError:function(){B.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});GuS(this.ytContinuationHandlerBehavior,function(){return F===B.getCurrentSearchBoxText()})}}};
_.w.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.w.onRetryButtonClick=function(){this.isError=!1;var G={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:G}))};
_.w.hideTimestampsChanged=function(){_.yW("hide-transcript-timestamps",this.hideTimestamps)};
_.w.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.w.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.w.handleSignalActionCopyTranscript=function(){var G=this,B=this.getBodyRenderer();B&&(B=((B==null?void 0:B.searchResultSegments)||(B==null?void 0:B.initialSegments)||[]).map(function(F){return _.Q(F,$qQ)}).filter(function(F){return!!F}).map(function(F){return{snippet:F.snippet||{runs:[{text:""}]},
startTimeText:F.startTimeText||{simpleText:""}}}).map(function(F){var D=(F.snippet.runs||[]).reduce(function(u,R){return u+R.text},"");
return G.hideTimestamps?D:F.startTimeText.simpleText+" "+D}).join("\n"),this.copyToClipboard(B))};
_.w.copyToClipboard=function(G){navigator.clipboard&&navigator.clipboard.writeText(G)};
_.w.getCurrentSearchBoxText=function(){var G;return(G=this.searchBox)==null?void 0:G.value};
_.w.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.w.getBodyRenderer=function(){var G;return _.Q((G=this.data)==null?void 0:G.body,eez)};
_.w.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.ZN.Object.defineProperties(p6.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.IF(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
p6.prototype.hideTimestampsChanged=p6.prototype.hideTimestampsChanged;p6.prototype.searchCleared=p6.prototype.searchCleared;p6.prototype.fireSearch=p6.prototype.fireSearch;p6.prototype.onReloadContinuationFinish=p6.prototype.onReloadContinuationFinish;p6.prototype.bodyChanged=p6.prototype.bodyChanged;p6.prototype.headerChanged=p6.prototype.headerChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],p6.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],p6.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],p6.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],p6.prototype,"hideTimestamps",void 0);
_.c([_.v(),_.I("design:type",Object)],p6.prototype,"isLoadingTranscripts",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],p6.prototype,"darkerPanels",void 0);_.c([_.v(),_.I("design:type",Object)],p6.prototype,"isError",void 0);_.c([_.Ga("data.header"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p6.prototype,"headerChanged",null);
_.c([_.Ry("data.body"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p6.prototype,"bodyChanged",null);_.c([_.Pm("yt-reload-continuation-finish"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p6.prototype,"onReloadContinuationFinish",null);_.c([_.Pm("yt-transcript-search-box-search"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],p6.prototype,"fireSearch",null);
_.c([_.Pm("yt-transcript-search-box-clear"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p6.prototype,"searchCleared",null);_.c([_.Ga("hideTimestamps"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p6.prototype,"hideTimestampsChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],p6);
_.d(p6,"ytd-transcript-search-panel-renderer",function(){if(J4$!==void 0)return J4$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return J4$=G},{mode:1});var Y6=function(){var G=_.p.apply(this,arguments)||this;G.player=null;G.playerPollJobId=0;return G};
_.r(Y6,_.p);_.w=Y6.prototype;_.w.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.w.onLoadReloadContinuation=function(G){_.X("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:G.target.data.continuation}}):(G={clickTrackingParams:G.target.data.clickTrackingParams,getTranscriptEndpoint:{params:G.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}}))};
_.w.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"}}}};
_.w.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.w.attached=function(){this.updatePlayerListening()};
_.w.detached=function(){this.updatePlayerListening()};
_.w.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.w.startPlayerListening=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return(B=_.AZ())?F.yield(B.getPlayerPromise(),2):F.return();G.player=F.yieldResult;G.playerPollJobId=_.Lu.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3);
G.player.addEventListener("onCueRangeEnter",function(D){G.onCueRangeEnter(D)});
G.player.addEventListener("onCueRangeExit",function(D){G.onCueRangeExit(D)});
G.player.addEventListener("onStateChange",function(D){G.onPlayerStateChange(D)});
G.player.addEventListener("SEEK_TO",function(D){G.onPlayerSeek(D)});
_.di(F)})};
_.w.getPlayerVideoProgress=function(){var G=this;_.Lu.cancelJob(this.playerPollJobId);if(this.player){var B=this.player.getCurrentTime();_.T1(this.hostElement,"yt-player-time-changed",[B])}this.playerPollJobId=_.Lu.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3)};
_.w.stopPlayerListening=function(){this.player=null;_.Lu.cancelJob(this.playerPollJobId)};
_.w.onPlayerStateChange=function(G){G===2&&this.removePendingCue()};
_.w.onPlayerSeek=function(G){var B;if(B=this.pendingReplayCueId)B=this.pendingReplayCueId,B=G===(_.X("web_transcript_cue_id_killswitch")?Number(B):Number(B.split("_")[1]));B||this.removePendingCue()};
_.w.onCueRangeEnter=function(G){ix$(G)&&(this.pendingReplayCueId=G)};
_.w.onCueRangeExit=function(G){ix$(G)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.w.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.w.onYtTranscriptPlayerSeek=function(G){this.player&&this.player.seekTo(G,!0)};
_.w.onYtTranscriptPlayerReplay=function(G,B){this.player&&(this.player.addCueRange(B6D(G),G,B),this.player.seekTo(G,!0),this.player.playVideo())};
_.w.onYtTranscriptPlayerEdit=function(G,B){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(B6D(G),G,B),this.player.seekTo(G,!0))};
Y6.prototype.onLoadReloadContinuation=Y6.prototype.onLoadReloadContinuation;Y6.prototype.panelContentVisibleChanged=Y6.prototype.panelContentVisibleChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Y6.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Y6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Y6.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Y6.prototype,"panelContentVisible",void 0);_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Y6.prototype,"panelContentVisibleChanged",null);
_.c([_.Pm("yt-load-reload-continuation"),_.I("design:type",Function),_.I("design:paramtypes",[Object]),_.I("design:returntype")],Y6.prototype,"onLoadReloadContinuation",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Y6);
_.d(Y6,"ytd-transcript-renderer",function(){if(A4G!==void 0)return A4G;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return A4G=G},{mode:1});var f1U;var tMD;var Az=function(){return _.p.apply(this,arguments)||this};
_.r(Az,_.p);Az.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.tL(this.hostElement,[this.data.clickCommand],this.hostElement))};
Az.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(fC()+tO)+"px)"};
Az.prototype.updateShouldHideFromBinding=function(G){this.shouldHide=G.detail.value};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Az.prototype,"rendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Az.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],Az.prototype,"shouldHide",void 0);_.c([_.mC({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Az);
_.d(Az,"ytd-ad-engagement-panel-banner-renderer",function(){if(tMD!==void 0)return tMD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return tMD=G},{mode:2});var Z1$;var dh=function(){var G=_.p.apply(this,arguments)||this;G.buttonUpdate=_.X("web_modern_buttons");G.adsSemanticText=_.X("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.r(dh,_.p);dh.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.c([_.v(),_.I("design:type",Object)],dh.prototype,"data",void 0);_.c([_.v({computed:"computeHideDefaultAdBadge(data)"}),_.I("design:type",Boolean)],dh.prototype,"hideDefaultAdBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dh.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dh.prototype,"adsSemanticText",void 0);_.c([_.mC({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],dh);
_.d(dh,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Z1$!==void 0)return Z1$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Z1$=G},{mode:1});var g1Z;var Jz=function(){var G=_.p.apply(this,arguments)||this;G.darkerPanels=_.X("web_watch_darker_panels");G.enableSqueezebackPanels=_.X("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.X("desktop_shorts_v2_anchored_panel");G.headerClickListener=function(B){G.onHeaderClick(B)};
G.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return G};
_.r(Jz,_.p);_.w=Jz.prototype;_.w.computeAdsInfoButton=function(){if(_.X("web_modern_buttons")){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.subtitleComplex,$oN))==null?void 0:B.adInfoRenderer}};
_.w.updateHeaderClickListener=function(){var G,B,F;((G=this.data)==null?0:G.navigationEndpoint)||((B=this.data)==null?0:B.onClickCommand)||_.Q((F=this.data)==null?void 0:F.visibilityButton,_.Qr)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.w.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}}}}}};
_.w.collapsedChanged=function(){var G;(G=this.data)!=null&&G.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.X("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.w.focus=function(G){var B=this;this.titleElement&&_.Lu.addJob(function(){_.dg(B.titleElement,G)},0,500)};
_.w.computeTitleAriaLabel=function(G){var B=[];if(G.title){var F,D;B.push(this.ytRendererBehavior.getSimpleString(G.title)||((F=G.title.accessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label))}G.contextualInfo&&B.push(this.ytRendererBehavior.getSimpleString(G.contextualInfo));return B.join(" ")};
_.w.onHeaderClick=function(G){this.shouldTriggerHeaderClick(G)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.tL(this.hostElement,[this.data.onClickCommand],this.hostElement)):(G=this.getVisibilityToggleButton())&&G.click())};
_.w.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var G=_.Q(this.data.visibilityButton,_.Xq)||_.Q(this.data.visibilityButton,_.Qr);G&&this.ytRendererBehavior.logExplicitClick(G)}};
_.w.getVisibilityToggleButton=function(){var G=_.IF(this.hostElement).querySelector("#visibility-button").firstElementChild;return(G==null?void 0:G.is)==="ytd-toggle-button-renderer"?G:null};
_.w.shouldTriggerHeaderClick=function(G){return!_.oQ(_.VW(G),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.w.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(G){G=_.Q(G,B_z);this.targetId&&(G==null?void 0:G.targetId)===this.targetId&&(G=G.navigationButton)&&this.set("data.navigationButton",G)};
_.ZN.Object.defineProperties(Jz.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!!(((G=this.entity)==null?0:G.isActionButtonHidden)||this.hideActionButton)}}});
Jz.prototype.collapsedChanged=Jz.prototype.collapsedChanged;Jz.prototype.updateHeaderClickListener=Jz.prototype.updateHeaderClickListener;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Jz.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],Jz.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Jz.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Jz.prototype,"targetId",void 0);_.c([_.v(),_.I("design:type",Boolean)],Jz.prototype,"collapsed",void 0);_.c([_.v(),_.I("design:type",Boolean)],Jz.prototype,"hideActionButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Jz.prototype,"shortsPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Jz.prototype,"liveChatEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Jz.prototype,"learningChatEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jz.prototype,"darkerPanels",void 0);_.c([_.iA("#title"),_.I("design:type",HTMLElement)],Jz.prototype,"titleElement",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],Jz.prototype,"headerElement",void 0);
_.c([_.v({computed:"computeAdsInfoButton(data)"}),_.I("design:type",Object)],Jz.prototype,"adsInfoButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jz.prototype,"enableSqueezebackPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jz.prototype,"enableAnchoredPanel",void 0);_.c([_.v({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(G,B){return _.g5(G.entities,"engagementPanelTitleHeaderEntity",B)}}),
_.I("design:type",Object)],Jz.prototype,"entity",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("targetId"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Jz.prototype,"adsSemanticText",null);_.c([_.Ga("data","data.navigationEndpoint","data.onClickCommand"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jz.prototype,"updateHeaderClickListener",null);
_.c([_.Ry("collapsed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jz.prototype,"collapsedChanged",null);_.c([_.O("entity","hideActionButton"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Jz.prototype,"isActionButtonHidden",null);_.c([_.mC({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Jz);
_.d(Jz,"ytd-engagement-panel-title-header-renderer",function(){if(g1Z!==void 0)return g1Z;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return g1Z=G},{mode:1});var S6Q;var c4=function(){return _.p.apply(this,arguments)||this};
_.r(c4,_.p);c4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],c4.prototype,"data",void 0);_.c([_.mC({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],c4);
_.d(c4,"ytd-macro-markers-info-item-renderer",function(){if(S6Q!==void 0)return S6Q;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return S6Q=G},{mode:1});var sfD;var TH=function(G,B,F,D,u,R){_.uz.call(this);var N=this;this.JSC$21182_containerElement=G;this.hostElement=B;this.supportedSyncItems=F;this.syncEntityKey=D;this.options=u;this.renderLazyListItems=R;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;xMQ(this);PVA(this);this.JSC$21182_scrollAnimation=new _.Mi(function(y){G.scrollTop=y});
_.gq(this,this.JSC$21182_scrollAnimation);this.addOnDisposeCallback(function(){G3z(N,!1);N.activeItem&&N.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.r(TH,_.uz);var xMQ=function(G){var B=_.Dh(_.te().resolve(_.Ep),function(F){return F.entities.markersEngagementPanelSyncEntity||{}},function(F,D){var u;
if(F[G.syncEntityKey]!==D[G.syncEntityKey]&&((u=F[G.syncEntityKey])==null?void 0:u.activeItemIndex)!==void 0)if(D=F[G.syncEntityKey].activeItemIndex,F=G.getItemByIndex(D)){if(BW$(G,F),G.contentVisible)if(G.browsingMode){var R;((R=G.options)==null?void 0:R.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(R=i0$(G),F.offsetTop<G.JSC$21182_containerElement.clientHeight+G.JSC$21182_containerElement.scrollTop&&R&&!G.activeItemBelowSyncPosition&&G3z(G,!1));Fc$(G)}else G.scrollToItem(F)}else _.em(new _.Uf("Could not find "+
G.supportedSyncItems+" sync child to set active.",D,G.JSC$21182_containerElement.querySelectorAll(G.supportedSyncItems).length))});
G.unsubscribeFromTimedMarkersListSyncEntity=B;G.addOnDisposeCallback(B);DcZ(G)},DcZ=function(G){var B=_.te().resolve(_.Ep);
B=_.o4g(B.getState(),G.syncEntityKey);(B==null?void 0:B.activeItemIndex)!==void 0&&(B=G.getItemByIndex(B.activeItemIndex))&&BW$(G,B)},PVA=function(G){var B=new _.s_(G.onScroll,50,G);
_.gq(G,B);var F=function(){B.fire()};
G.JSC$21182_containerElement.addEventListener("scroll",F);G.addOnDisposeCallback(function(){G.JSC$21182_containerElement.removeEventListener("scroll",F)})};
TH.prototype.getItemByIndex=function(G){var B;(B=this.renderLazyListItems)==null||B.call(this,G);B=this.JSC$21182_containerElement.querySelectorAll(this.supportedSyncItems);if(B.length>G)return B[G]};
var BW$=function(G,B){G.activeItem&&G.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));B.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));G.activeItem=B};
TH.prototype.scrollToItem=function(G){G=this.getScrollPositionForItem(G);this.JSC$21182_containerElement.scrollTop!==G&&this.JSC$21182_scrollAnimation.start(this.JSC$21182_containerElement.scrollTop,G,300)};
TH.prototype.getScrollPositionForItem=function(G){if(this.JSC$21182_containerElement.querySelectorAll(this.supportedSyncItems)[0]===G)return 0;var B,F=((B=this.options)==null?0:B.percentOffset)?this.JSC$21182_containerElement.clientHeight*this.options.percentOffset:0;G=_.ai(G).y+this.JSC$21182_containerElement.scrollTop-(_.ai(this.JSC$21182_containerElement).y+F);return Math.max(0,Math.min(G,this.JSC$21182_containerElement.scrollHeight-this.JSC$21182_containerElement.offsetHeight))};
TH.prototype.onScroll=function(){this.activeItemBelowSyncPosition=i0$(this);if(this.activeItem&&!this.JSC$21182_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21182_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var G;switch((G=this.options)==null?void 0:G.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":uX$(this,!R$z(this));Fc$(this);break;default:uX$(this,!0)}}};
var uX$=function(G,B){var F,D;_.n(function(u){if(u.nextAddress==1){if(G.browsingMode)return u.return();G.browsingMode=!0;B&&G.hostElement.classList.add("browsing-mode");G.playerExitBrowsingModeListener=function(){G3z(G,!1)};
return u.yield(_.So(),2)}F=u.yieldResult;(D=F)==null||D.addEventListener("SEEK_TO",G.playerExitBrowsingModeListener);_.di(u)})},G3z=function(G,B){B=B===void 0?!0:B;
G.browsingMode&&(G.browsingMode=!1,G.hostElement.classList.remove("browsing-mode"),B&&G.scrollToItem(G.activeItem),wEB(G))},wEB=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return G.playerExitBrowsingModeListener?D.yield(_.So(),3):D.jumpTo(0);B=D.yieldResult;(F=B)==null||F.removeEventListener("SEEK_TO",G.playerExitBrowsingModeListener);G.playerExitBrowsingModeListener=void 0;_.di(D)})},Fc$=function(G){var B;
((B=G.options)==null?void 0:B.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(R$z(G)?G.hostElement.classList.remove("browsing-mode"):G.activeItem&&G.hostElement.classList.add("browsing-mode"))},i0$=function(G){if(!G.activeItem)return!1;
var B,F=((B=G.options)==null?0:B.percentOffset)?G.JSC$21182_containerElement.clientHeight*G.options.percentOffset:0;return G.activeItem.offsetTop>=G.JSC$21182_containerElement.scrollTop+F},R$z=function(G){if(!G.activeItem)return!1;
var B=G.activeItem.offsetTop+14<=G.JSC$21182_containerElement.scrollTop+G.JSC$21182_containerElement.clientHeight;return G.activeItem.offsetTop+G.activeItem.clientHeight-14>=G.JSC$21182_containerElement.scrollTop&&B};
TH.prototype.panelContentVisibleChanged=function(G){(this.contentVisible=G)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var C0G=function(G,B){G.syncEntityKey=B;var F;(F=G.unsubscribeFromTimedMarkersListSyncEntity)==null||F.call(G);xMQ(G)},NWD=function(G,B){G.options=B};var I0=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return G};
_.r(I0,_.p);_.w=I0.prototype;_.w.detached=function(){var G;(G=this.scrollController)==null||G.dispose();this.scrollController=void 0};
_.w.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"}}}};
_.w.dataChanged=function(){var G=this;_.ft(this,function(){if(G.scrollController){var B;(B=G.scrollController)==null||G3z(B,!1);var F,D,u;(D=G.scrollController)==null||C0G(D,(u=(F=G.data)==null?void 0:F.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key");var R,N,y;(y=G.scrollController)==null||NWD(y,{percentOffset:(R=G.data)==null?void 0:R.selectedItemAlignmentPercentOffset,floatingPillType:(N=G.data)==null?void 0:N.floatingPillType})}else{var U,q,h,K;G.scrollController=
new TH(G.contents,G.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(K=(U=G.data)==null?void 0:U.syncModelEntityKey)!=null?K:"default-macro-markers-list-renderer-entity-key",{percentOffset:(q=G.data)==null?void 0:q.selectedItemAlignmentPercentOffset,floatingPillType:(h=G.data)==null?void 0:h.floatingPillType},function(a){G.renderLazyListItems(a)})}G.scrollController.panelContentVisibleChanged(!!G.panelContentVisible)})};
_.w.computeButtonShape=function(){var G=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){G.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.w.renderLazyListItems=function(G){for(var B=this.contents.children,F=0,D=0;D<B.length;D++){var u=void 0;(u=B[D].ytLazyListBehavior)==null||u.fillRemainingListItems();var R=void 0,N=void 0;u=_.Q((R=this.data)==null?void 0:(N=R.contents)==null?void 0:N[D],_.dRP);N=R=void 0;if((R=u)==null?0:(N=R.contents)==null?0:N.length)F+=u.contents.length;if(F>=G)break}};
_.w.handleSetActivePanelItemAction=function(G){if((G=_.Q(G,yFS))&&this.panelTargetId===G.panelTargetId){G=G.itemIndex;var B,F,D=(F=(B=this.data)==null?void 0:B.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key",u;((u=this.syncEntity)==null?void 0:u.activeItemIndex)!==G&&this.ytdReduxBehavior.dispatch(_.wC("markersEngagementPanelSyncEntity",D,{key:D,activeItemIndex:G}))}};
_.w.onSyncClick=function(){var G;(G=this.scrollController)==null||G3z(G)};
_.w.panelContentVisibleChanged=function(){var G;(G=this.scrollController)==null||G.panelContentVisibleChanged(!!this.panelContentVisible)};
I0.prototype.panelContentVisibleChanged=I0.prototype.panelContentVisibleChanged;I0.prototype.dataChanged=I0.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],I0.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],I0.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],I0.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],I0.prototype,"useCustomColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],I0.prototype,"panelTargetId",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],I0.prototype,"panelContentVisible",void 0);
_.c([_.iA("#contents"),_.I("design:type",HTMLElement)],I0.prototype,"contents",void 0);_.c([_.v({selectorArgs:["data.syncModelEntityKey"],selector:_.o4g}),_.I("design:type",Object)],I0.prototype,"syncEntity",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],I0.prototype,"dataChanged",null);
_.c([_.Ga("panelContentVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],I0.prototype,"panelContentVisibleChanged",null);_.c([_.mC({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],I0);
_.d(I0,"ytd-macro-markers-list-renderer",function(){if(sfD!==void 0)return sfD;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return sfD=G},{mode:1});var ya$;var n_$;var f6=function(){return _.p.apply(this,arguments)||this};
_.r(f6,_.p);f6.prototype.computeAriaLabel=function(G){var B,F;return(G==null?void 0:(B=G.accessibility)==null?void 0:(F=B.accessibilityData)==null?void 0:F.label)||_.G7("LOADING",void 0,"Loading")};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],f6.prototype,"data",void 0);_.c([_.v({computed:"computeAriaLabel(data)"}),_.I("design:type",String)],f6.prototype,"ariaLabel",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],f6);
_.d(f6,"yt-content-loading-renderer",function(){if(n_$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ya$===void 0&&(ya$=document.createElement("template"));var D=ya$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);n_$=G}G=n_$;return G},{mode:1});_.YN(_.Y(function(G){var B=_.C(_.qg(!1,void 0,"OZMtVb")),F=B.next().value,D=B.next().value;B=_.C(_.qg(!1,void 0,"qWERsf"));var u=B.next().value,R=B.next().value;_.$f(function(){var U=_.Q(G.data().collaboratePlaylistCollaborationSetting,WpG);U&&D(U.switchedOnByDefault);var q=_.Q(G.data().allowNewCollaboratorsPlaylistCollaborationSetting,WpG);q&&R(q.switchedOnByDefault);if(!U&&!q||!U&&G.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")D(!0),R(!0)});
var N=function(U){D(U);R(U);var q=G.data().playlistCollaborationEntityKey||"";var h=_.oy().getState();(h=_.g5(h.entities,"playlistCollaborationEntity",q))&&(h==null?void 0:h.isCollaborative)===U||_.oy().dispatch(_.wC("playlistCollaborationEntity",q,Object.assign({},h,{isCollaborative:U})))},y=function(U){R(U)};
return _.l("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.l("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.l(_.uR,{data:function(){return G.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(U){return _.l(_.GsQ,{data:U.data,
onSwitch:N})}})),_.l(_.E,{cond:F,
then:function(){return _.l(_.GJ,null,_.l("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.l(_.uR,{data:function(){return G.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(U){return _.l(_.GsQ,{data:U.data,
onSwitch:y,overrideDisabled:!1})}})),_.l(_.E,{cond:u,
then:function(){return _.l("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.l(_.uR,{data:function(){return G.data().copyLinkButton}},{buttonViewModel:_.cd}))}}),_.l("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.l(_.uR,{data:function(){return G.data().playlistCollaborators}},{contentListItemViewModel:_.LjQ})))}}))},"Nj"),"playlist-collaboration-view-model",{props:{data:_.Hd}});var lt$=_.Y(function(G){var B=G.data;var F=G.customCommandResolver;return _.l(_.GJ,null,_.l("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.l(_.uR,{data:function(){return B().adAvatar}},{adAvatarViewModel:function(D){return _.l(_.r$y,{data:D.data,
customCommandResolver:F})}})),_.l("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.l(_.E,{cond:function(){return B().headline},
then:function(D){return _.l(_.Wd,{text:D,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.l("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.l(_.uR,{data:function(){return B().adBadge}},{adBadgeViewModel:function(D){return _.l(_.gk,{data:D.data,
hasDot:function(){return B().primaryDetailsLine!==void 0},
customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.l(_.uR,{data:function(){return B().primaryDetailsLine}},{adDetailsLineViewModel:function(D){return _.l(_.Sq,{data:D.data,
customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Oj"),Uc2=_.Y(function(G){var B=G.data;
var F=G.customCommandResolver;return _.l("ad-avatar-lockup-view-model",{class:function(){var D;return((D=B().interaction)==null?0:D.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.VX(_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk}),_.rC(function(){return B().interaction},F)),
"aria-label":function(){var D,u;return(D=B().interaction)==null?void 0:(u=D.accessibility)==null?void 0:u.label}},_.l(_.LH,null,_.l(_.Xm,{when:function(){return B().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.l(lt$,{data:B,
customCommandResolver:F})}),_.l(_.Qc,null,function(){return null})))},"Pj");_.YN(_.Y(function(G){var B=G.data;var F=G.panelContentVisibility;G=_.tb({visibilityCallback:function(R){var N,y=(N=B().interaction)==null?void 0:N.onFirstVisible;R&&y&&_.rJ(y)},
showOption:_.dk});var D=_.rC(function(){return B().interaction},FhH);
_.zM(function(){var R,N;if(N=_.Yf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;N=(y=N())==null?void 0:y.onLayoutVisibleCallback}else N=null;(R=N)==null||R()},"Qj");
var u=function(){return F()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.l("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.VX(G,D)},_.l("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.l("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.l(_.E,{cond:_.JKo("(min-width: "+(fC()+tO)+"px) or (max-width: 600px)"),then:function(){return _.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(R){return _.l(_.cK,{data:R.data,
targetHeight:80,customCommandResolver:FhH})}})}})),_.l("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.l("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.l(_.uR,{data:function(){return B().adAvatarLockup}},{adAvatarLockupViewModel:function(R){return _.l(Uc2,{data:R.data,
customCommandResolver:FhH})}})),_.l(_.E,{cond:u,
then:function(){return _.l(_.uR,{data:function(){return B().adButton}},{adButtonViewModel:function(R){return _.l(_.TO,{data:R.data,
customCommandResolver:FhH})}})},
else:function(){return _.l(_.uR,{data:function(){return B().menu}},{buttonViewModel:_.cd})}}),_.l("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.l(_.uR,{data:function(){var R=_.Q(B().toggleButton,_.WR);
return{toggleButtonViewModel:Object.assign({},R,{isTogglingDisabled:!0,isToggled:u()})}}},{toggleButtonViewModel:_.wl})))))},"Rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Hd,
panelContentVisibility:_.Hd}});var qUG=_.Cz(Dtz,{debugName:"chipBarViewModel"});_.gn(_.LO,function(G){_.rv(G,"chipBarViewModel","HwlOhd",Dtz)});var E_Q=_.Cz(ui$,{debugName:"gridShelfViewModel"});_.gn(_.LO,function(G){_.rv(G,"gridShelfViewModel","JoU6vf",ui$)});var h$U=_.Cz(ROZ,{debugName:"ytFeedbackPromptViewModel"});_.gn(_.LO,function(G){_.rv(G,"ytFeedbackPromptViewModel","hU04te",ROZ)});var KcD=_.Cz(wPZ,{debugName:"learningJourneyLoaderViewModel"});_.gn(_.LO,function(G){_.rv(G,"learningJourneyLoaderViewModel","dIvQ6c",wPZ)});var atN=_.Cz(CQz,{debugName:"ytAccordionViewModel"});_.gn(_.LO,function(G){_.rv(G,"ytAccordionViewModel","m9Vw4",CQz)});var mc$=_.Cz(N6A,{debugName:"videoOverviewViewModel"});_.gn(_.LO,function(G){_.rv(G,"videoOverviewViewModel","mcjWUc",N6A)});var XE$=_.Cz(y1D,{debugName:"youChatItemViewModel"});_.gn(_.LO,function(G){_.rv(G,"youChatItemViewModel","QiZf0e",y1D)});var QbA=_.Cz(nw$,{debugName:"ytChatLoadingViewModel"});_.gn(_.LO,function(G){_.rv(G,"ytChatLoadingViewModel","f8YPh",nw$)});var jbD=_.Cz(lwS,{debugName:"ytChatUserTurnViewModel"});_.gn(_.LO,function(G){_.rv(G,"ytChatUserTurnViewModel","b3MoKf",lwS)});var LcN=_.Y(function(G){var B=_.C((0,_.zn7)(G.data)).next().value,F=function(){var D,u;return(u=(D=B().contents)==null?void 0:D.length)!=null?u:0};
return _.l("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return G.data().targetId||""},
"aria-busy":function(){var D,u;return(u=(D=B().contents)==null?void 0:D.some(function(R){return!!R.chatLoadingViewModel}))!=null?u:!1}},_.l(_.uR,{data:function(){return G.data().header}},{chipBarViewModel:qUG,
sectionHeaderViewModel:_.BC}),_.l(_.uR,{data:function(){return B().contents}},{accordionViewModel:atN,
alertBannerViewModel:$l$,chatLoadingViewModel:function(D,u){return _.l(QbA,{data:D.data,containerHeight:G.containerHeight,isLastItem:function(){return u()===F()-1}})},
chatUserTurnViewModel:function(D,u){return _.l(jbD,{data:D.data,containerHeight:G.containerHeight,isLastItem:function(){return u()===F()-1}})},
feedbackPromptViewModel:h$U,gridShelfViewModel:function(D){return _.l(E_Q,{data:D.data,shouldUseOwnContainerSize:!0,marginSettings:G.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:KcD,linearLayoutViewModel:_.ec,lockupViewModel:function(D){return _.l(_.xm,{data:D.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:G.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.BC,videoOverviewViewModel:mc$,youChatItemViewModel:function(D,u){return _.l(XE$,{data:D.data,pending:!1,containerHeight:G.containerHeight,isLastItem:function(){return u()===F()-1}})}}))},"Sj");_.YN(_.Y(function(G){var B=_.C((0,_.zn7)(G.data)).next().value,F=_.C(_.wN()),D=F.next().value;F=F.next().value;var u=_.VX(F);F=_.C(_.qg(void 0,void 0,"fqbUqd"));var R=F.next().value,N=F.next().value,y=function(){var U;return _.Q((U=G.data().sectionListLayoutConfiguration)==null?void 0:U.layoutConfiguration,Uq2)};
_.$f(function(){var U,q=(U=u.value)==null?void 0:U.clientWidth;U=y()?_.mAg(q,y()):void 0;N(U)});
F={};return _.l("yt-section-list-renderer",{class:_.tx("ytSectionListRendererHost",G.className,(F.ytSectionListRendererHostOverscrollContain=function(){var U;return(U=G.overscrollContain)==null?void 0:U.call(G)},F)),
el:u,"data-target-id":function(){return G.data().targetId||""}},_.l(_.uR,{data:function(){return B().contents}},{itemSectionRenderer:function(U){return _.l(LcN,{data:U.data,
containerLayoutConfig:R,marginSettings:G.marginSettings,containerHeight:function(){return D.height()}})}}))},"Tj"),"yt-section-list-renderer",{props:{data:_.Hd,
className:_.oh,marginSettings:_.Hd,overscrollContain:_.Hd}});_.YN(_.Y(function(G){var B=function(){return _.Q(G.data().inputComposerViewModel,Ew$)},F=_.FT(_.OY.currentPageSubTypeSelector),D=_.FT(_.OY.persistentPanelVisibleSelector),u=_.C(_.qg(!1,void 0,"RXGzYc")),R=u.next().value,N=u.next().value;
u=_.C(_.qg(!1,void 0,"oyonKd"));var y=u.next().value,U=u.next().value,q=function(){W(!0);var aI;_.rJ(((aI=B())==null?void 0:aI.onSubmitCommand)||{})},h=function(){if(D()&&!y()){var aI;
(aI=_.sR())==null||aI.removeCueRange("aic-proactive");N(!1);U(!0);q();_.QX(_.m0B(B().endOfVideoContinuation),{form:{formData:_.VT({clientMessageId:"youchat-"+Date.now(),pageContext:hg()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.QX(ccS(t()));W(!1)}}})}},K=function(){var aI=_.sR();
if(aI&&!R()&&!y()){var v6=aI.getDuration();v6>60&&(aI.addCueRange("aic-proactive",v6-60,v6-20),N(!0))}},a=function(){var aI;
return((aI=B())==null?void 0:aI.youchatPendingResponseEntityKey)||""},m=_.iR(_.QpQ,a),L=function(){var aI;
return!((aI=m())==null||!aI.isPendingResponse)},W=function(aI){_.jp2(a())(aI)};
u=_.C(_.qg(!0,void 0,"umCoCf"));var e=u.next().value,b=u.next().value,M=function(){var aI,v6;var Jg=_.Q((v6=B())==null?void 0:v6.inputFormField,SvS);return Jg==null?void 0:(aI=Jg.contentProperties)==null?void 0:aI.placeholderText},t=function(){return B().sectionTargetId||"youchat_messages_section"};
u=_.H5("yt-chat-input-view-model");var T=_.W5("textarea"),A=_.iR(IVA,"chat_input_view_model_state"),Z=fVB(),P=function(){var aI;return!((aI=A())==null||!aI.value)},RI=function(){return G.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},yo=function(){var aI;
(aI=_.sR())==null||aI.removeCueRange("aic-proactive");N(!1);U(!1);var v6;_.X("enable_navigational_proactive_messages_on_ai_companion")&&((v6=B())==null?0:v6.navigationContinuation)&&D()&&(q(),_.QX(_.m0B(B().navigationContinuation),{form:{formData:_.VT({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:q$D(),pageContext:hg()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.QX(ccS(t()));W(!1)}}}))},hg=function(){var aI;
return(aI=_.te().resolve(_.fH(_.K$)))==null?void 0:_.V5D(aI,F())};
_.$f(function(){if(_.Nk("enable_ai_chat_controller")){var aI;(aI=_.te().resolve(_.fH(_.K$)))==null||aI.init(G.data().environment)}else if(aI=hON(G.data()),!P()&&aI){var v6;((v6=B())==null?0:v6.setPendingResponseOnWelcome)&&W(!0);_.QX(aI,{form:{formData:_.VT({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:q$D(),pageContext:hg()})}});Z(!0)}var Jg=t(),c6=_.te().resolve(_.fH(_.Sj)),q8=function(){_.DM.remove(Jg);if(_.Nk("enable_ai_chat_controller")){var Ts;(Ts=_.te().resolve(_.fH(_.K$)))!=null&&
Ts.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(Ts.lastWelcomeContinuationSent=void 0)}else Z(!1)},n7=function(){_.U4(function(){if(RI()&&(yo(Jg),F()==="watch")){var Ts=_.sR();
Ts&&(Ts.addEventListener("onStateChange",K),Ts.addEventListener("onCueRangeEnter",h))}})};
v6=_.X("enable_ai_companion")?!RI():!0;c6==null||c6.addEventListener("yt-navigate-start",q8,{once:v6});c6==null||c6.addEventListener("yt-navigate-finish",n7,{once:v6});_.VI(function(){c6==null||c6.removeEventListener("yt-navigate-start",q8);c6==null||c6.removeEventListener("yt-navigate-finish",n7);var Ts=_.sR();Ts&&(Ts.removeEventListener("onCueRangeEnter",h),Ts.removeEventListener("onStateChange",K),Ts.removeCueRange("aic-proactive"))})});
_.bC(function(){if(_.Nk("enable_ai_chat_controller")){var aI=hON(G.data());if(aI){var v6,Jg=((v6=B())==null?0:v6.setPendingResponseOnWelcome)?W:void 0,c6;(c6=_.te().resolve(_.fH(_.K$)))==null||Nuz(c6,{command:aI,setPending:Jg})}}},"SXTMBe");
var US=function(){var aI=T.value.value;T.value.value="";UtB(T.value);var v6,Jg=((v6=B())==null?void 0:v6.enableGradientColorBg)||!1,c6;v6=T8D(t(),aI,Jg,(c6=B())==null?void 0:c6.chatUserTurnBackgroundStyle);_.QX(v6);q();var q8,n7,Ts;c6=(Ts=_.X1((q8=G.data())==null?void 0:q8.sendUserQueryCommand))!=null?Ts:_.m0B((n7=B())==null?void 0:n7.continuation);_.QX(c6,{form:{formData:_.VT({clientMessageId:"youchat-"+Date.now(),userInputText:aI,playerOffsetMs:q$D(),pageContext:hg()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.QX(ccS(t()));W(!1)}}})};
return _.l("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:u},_.l("div",{class:"chatInputViewModelChatInputWrapper"},_.l("form",{class:"chatInputViewModelChatInputForm"},_.l("textarea",{class:"chatInputViewModelChatInput",el:T,"on:keydown":_.gJ(function(aI){var v6=L()||!1;UtB(T.value);v6||aI.key!=="Enter"||aI.shiftKey||(aI.preventDefault(),US());return!1}),
"on:keyup":_.gJ(function(){b(T.value.value.length===0);return!1}),
"aria-label":function(){if(L()){var aI,v6;return((aI=B())==null?void 0:(v6=aI.loadingConfig)==null?void 0:v6.loadingAnimationA11yLabel)||""}return M()},
placeholder:M,rows:1}),_.l(_.cd,{data:function(){return _.Q(G.data().sendButton,_.LV)},
onClick:function(aI){aI.preventDefault();US();b(T.value.value.length===0)},
buttonOverrides:function(){return{disabled:e()||L()}}})),_.l(_.Wd,{className:"chatInputViewModelChatDisclaimer",
text:function(){var aI;return G.data().disclaimerText||((aI=_.Q(G.data().disclaimer,_.JW8))==null?void 0:aI.text)}})))},"Vj"),"yt-chat-input-view-model",{props:{data:_.Hd}});var raQ=["engagement-panel-clip-create","engagement-panel-clip-view"],Wc$=0,tz=function(){var G=_.p.apply(this,arguments)||this;var B;G.headerData=(B=G.data)==null?void 0:B.header;G.darkerPanels=_.X("web_watch_darker_panels");G.matchContentTheme=_.X("web_watch_panel_content_match_theme");G.disableAutoFill=!1;G.isFullscreen=!1;G.isTheaterMode=!1;G.liveChatReplyPanel=!1;G.enableAnchoredPanel=_.X("desktop_shorts_v2_anchored_panel");G.disableBackdropFilter=_.X("web_disable_backdrop_filter");G.isPersistentPanel=
!1;G.trackEngagementPanelVisibility=_.X("web_watch_track_engagement_panel_visibility");G.overscrollContain=!1;G.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 G};
_.r(tz,_.p);_.w=tz.prototype;
_.w.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(G){var B;return(G==null?void 0:(B=G.webComponentHint)==null?void 0:B.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.w.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var G;if((G=this.hostElement.parentElement)==null?0:G.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.w.detached=function(){this.updateTheaterDisablement()};
_.w.showPanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Lu.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.w.maybeScrollToItemSection=function(G){var B=this,F,D=G==null?void 0:(F=G.sectionListEngagementPanelExtras)==null?void 0:F.scrollToItemSectionIdentifier;D&&_.Lu.addJob(function(){var u;(u=B.sectionListRendererElement)==null||u.scrollToItemSection(D)},8)};
_.w.hidePanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Lu.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.w.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.w.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.w.updatePanel=function(G,B,F,D){var u=this;if((G=G==null?void 0:G.engagementPanelSectionListRenderer)||D){if(G){D=G.header;var R=G.content,N=G.footer,y=G.targetId,U=G.onShowCommands;G=G.onHideCommands;y&&this.set("data.targetId",y);D&&this.set("data.header",D);R&&this.set("data.content",R);N&&this.set("data.footer",N);_.X("enable_on_visibility_change_commands_for_panels")&&(U&&this.set("data.onShowCommands",U),G&&this.set("data.onHideCommands",G))}else D&&(G=D.content,R=D.secondaryHeaderContent,
N=D.targetId,D=D.loggingDirectives,N&&this.set("data.targetId",N),G&&this.set("data.content",G),D&&_.X("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",D),R&&(this.secondaryHeaderData=R));this.updateChildVisibilityProperties();if(B){var q;_.X("kevlar_update_panel_focus_scroll_killswitch")||(q={preventScroll:!0});this.focus(q)}_.ft(this,function(){_.cZ(u.hostElement,"yt-refit");u.maybeScrollToItemSection(F)})}};
_.w.computeHeaderData=function(){var G,B=(0,_.UK.unsafeClone)((G=this.data)==null?void 0:G.header);if(B){G=new _.vf(Object.keys(B)[0]);var F=_.Q(B,G),D=_.Q(this.secondaryHeaderData,G);D&&_.E_(B,G,Object.assign({},D,F))}return B};
_.w.getReloadContinuation=function(){var G,B,F,D=_.C(((G=this.data)==null?void 0:(B=G.content)==null?void 0:(F=B.sectionListRenderer)==null?void 0:F.continuations)||[]);for(G=D.next();!G.done;G=D.next())if(G=G.value,G.reloadContinuationData)return G.reloadContinuationData.continuation};
_.w.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var G;((G=this.data)==null?0:G.targetId)&&(G=this.contentElement.firstElementChild)&&G.setAttribute("panel-target-id",this.data.targetId)};
_.w.forwardPopupClosedToFlowRootRenderer=function(){var G=_.IF(this.hostElement).querySelector("ytd-flow-root-renderer");if(G&&this.hostElement.closest("ytd-popup-container"))G.onPopupClosed()};
_.w.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var G;if(!raQ.includes((G=this.theaterDisablementPanelIdentifier)!=null?G:""))if(G=_.X("web_watch_imax_theater_mode")&&this.isTheaterMode,G=_.X("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G,_.X("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||G){var B;this.visibility=(B=this.data)==null?void 0:B.visibility;var F;this.trackEngagementPanelVisibility&&((F=this.data)==null?void 0:F.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var D,u,R,N;this.contentEmpty=!!(((D=this.data)==null?0:(u=D.content)==null?0:u.structuredDescriptionContentRenderer)&&Object.keys((R=this.data)==null?void 0:(N=R.content)==null?void 0:
N.structuredDescriptionContentRenderer).length===0);(B=_.te().resolve(_.yR))&&B.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.w.isTheaterModeChanged=function(){_.X("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.w.isFullscreenChanged=function(){_.X("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.w.focus=function(G){if(this.header)this.header.focus(G);else{var B;(B=_.IF(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||B.focus(G)}};
_.w.visibilityChanged=function(){if(!_.X("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var G=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=D||!this.lastVisibility,R,N,y,U=((R=this.data)==null?void 0:(N=R.identifier)==null?void 0:
N.tag)||((y=this.data)==null?void 0:y.panelIdentifier);if(G&&u){var q;if((q=this.data)==null?0:q.onShowCommands)if(_.X("enable_on_visibility_change_commands_for_panels"))for(B=_.C(this.data.onShowCommands),F=B.next();!F.done;F=B.next())this.ytComponentBehavior.resolveCommand(F.value);else _.tL(this.hostElement,this.data.onShowCommands,this.hostElement);U&&_.VU().dispatch(_.d5({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:U}}))}else if(B&&F){var h;if((h=this.data)==null?0:h.onHideCommands)if(_.X("enable_on_visibility_change_commands_for_panels"))for(B=
_.C(this.data.onHideCommands),F=B.next();!F.done;F=B.next())this.ytComponentBehavior.resolveCommand(F.value);else _.tL(this.hostElement,this.data.onHideCommands,this.hostElement);U&&_.VU().dispatch(_.d5({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:U}}))}G&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Wc$++));_.X("kevlar_watch_focus_on_engagement_panels")&&G&&D&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.w.notifyVisibilityChanged=function(G){var B;_.Ia(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,G,(B=this.data)==null?void 0:B.targetId]);if(_.X("autonav_pause_for_comments_ep")){var F;_.cZ(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(F=this.data)==null?void 0:F.targetId})}};
_.w.updateTheaterDisablement=function(){if(!_.X("kevlar_watch_theater_disablement_killswitch")){var G=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&raQ.includes(G)&&!_.X("watch_next_grid_ignore_disallowed_panels")){var B=_.KA(_.VU().getState()),F=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";G!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():F?(this.originalTheaterState===void 0&&(this.originalTheaterState=B,this.theaterDisablementPanelIdentifier=
G),B&&_.T1(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.w.clearTheaterDisablement=function(){_.T1(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.w.updateChildVisibilityProperties=function(){this.hostElement||_.X("kevlar_panel_property_init_killswitch")||this._enableProperties();var G=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=G);var B,F=(B=this.headerElement)==null?void 0:B.firstElementChild;if(F&&!this.adHeaderImageLockupViewModel){B=G==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";F.collapsed=B;F=_.IF(F).querySelector("#visibility-button");if(!F)return;(F=F.firstElementChild)&&
F.polymerController.is==="ytd-toggle-button-renderer"&&F.polymerController.data.isToggled!==B&&F.polymerController.set("data.isToggled",B)}var D;if(B=(D=this.contentElement)==null?void 0:D.firstElementChild)if(G&&G!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")B.removeAttribute("panel-content-visible");else{B.setAttribute("panel-content-visible","");var u;(u=B.markDirty)==null||u.call(B)}};
_.w.onYtChangeEngagementPanelVisibilityAction=function(G){var B=this,F,D=(F=this.data)==null?void 0:F.targetId,u,R,N;F=((u=this.data)==null?void 0:(R=u.identifier)==null?void 0:R.tag)||((N=this.data)==null?void 0:N.panelIdentifier);var y=_.Q(G,_.RdL),U;G=D&&(y==null?void 0:y.targetId)===D||F&&(y==null?void 0:(U=y.panelIdentifier)==null?void 0:U.tag)===F;this.dialog&&G&&(y==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(D==="engagement-panel-comments-section"?_.T1(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.T1(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",F]));!_.X("kevlar_use_engagement_panel_management_component")&&G&&(D=y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!D?_.Lu.addJob(function(){B.visibility=y.visibility},2,this.hideDelayMs):this.visibility=y.visibility,y.visibility&&this.notifyVisibilityChanged(y.visibility))};
_.w.onYtScrollToEngagementPanelCommand=function(G){var B,F=(B=this.data)==null?void 0:B.targetId,D,u,R;B=((D=this.data)==null?void 0:(u=D.identifier)==null?void 0:u.tag)||((R=this.data)==null?void 0:R.panelIdentifier);G=_.Q(G,_.mpP);var N;(F&&(G==null?void 0:G.targetId)===F||B&&(G==null?void 0:(N=G.panelIdentifier)==null?void 0:N.tag)===B)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.T1(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.w.attachVEs=function(G){var B,F;(G==null?0:(B=G.content)==null?0:(F=B.productListRenderer)==null?0:F.trackingParams)&&_.Rh().graftServerVe(G.content.productListRenderer.trackingParams);var D,u;(G==null?0:(D=G.content)==null?0:(u=D.transcriptRenderer)==null?0:u.trackingParams)&&_.Rh().graftServerVe(G.content.transcriptRenderer.trackingParams)};
_.w.onYtUpdateEngagementPanelAction=function(G){var B,F=(B=this.data)==null?void 0:B.targetId;G=_.Q(G,lrD);F&&(G==null?void 0:G.targetId)===F&&(this.updatePanel({engagementPanelSectionListRenderer:{header:G==null?void 0:G.header,content:G==null?void 0:G.content}},!1),this.attachVEs(G))};
_.w.onYtShowEngagementPanelScrimAction=function(G){var B,F=(B=this.data)==null?void 0:B.targetId;G=_.Q(G,nhQ);F&&(G==null?void 0:G.engagementPanelTargetId)===F&&(this.scrimmed=!0)};
_.w.onYtHideEngagementPanelScrimAction=function(G){var B,F=(B=this.data)==null?void 0:B.targetId;G=_.Q(G,ur$);F&&(G==null?void 0:G.engagementPanelTargetId)===F&&(this.scrimmed=!1)};
_.w.getIdentifier=function(){var G,B,F;return((G=this.data)==null?void 0:G.panelIdentifier)||((B=this.data)==null?void 0:(F=B.identifier)==null?void 0:F.tag)};
_.w.getSurface=function(){var G,B;return(G=this.data)==null?void 0:(B=G.identifier)==null?void 0:B.surface};
_.ZN.Object.defineProperties(tz.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var G=this.getIdentifier();return G==="engagement-panel-youchat"||G==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
tz.prototype.visibilityChanged=tz.prototype.visibilityChanged;tz.prototype.isFullscreenChanged=tz.prototype.isFullscreenChanged;tz.prototype.isTheaterModeChanged=tz.prototype.isTheaterModeChanged;tz.prototype.dataChanged=tz.prototype.dataChanged;tz.prototype.forwardPopupClosedToFlowRootRenderer=tz.prototype.forwardPopupClosedToFlowRootRenderer;tz.prototype.onYtRendererstamperFinished=tz.prototype.onYtRendererstamperFinished;
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],tz.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],tz.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],tz.prototype,"ytdReduxBehavior",void 0);
_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],tz.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"data",void 0);_.c([_.v({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.I("design:type",Object)],tz.prototype,"headerData",void 0);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"secondaryHeaderData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"visibility",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"contentEmpty",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"scrimmed",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"dialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"dropdown",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"darkerPanels",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"matchContentTheme",void 0);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"disableAutoFill",void 0);_.c([_.v({reflectToAttribute:!0,value:_.X("optimal_reading_width_comments_ep")}),_.I("design:type",Boolean)],tz.prototype,"optimalReadingWidthComments",void 0);_.c([_.v(),_.I("design:type",Number)],tz.prototype,"hideDelayMs",void 0);
_.c([_.v({selector:_.aQ,reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"isFullscreen",void 0);_.c([_.v({selector:_.KA,reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"isTheaterMode",void 0);_.c([_.v(),_.I("design:type",Number)],tz.prototype,"showDelayMs",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.targetId"),_.I("design:type",Object),_.I("design:paramtypes",[])],tz.prototype,"targetId",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],tz.prototype,"webSize",null);_.c([_.v(),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],tz.prototype,"hideFooterBorder",null);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"isWatch",void 0);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"originalTheaterState",void 0);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"theaterDisablementPanelIdentifier",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"isWatchWhilePanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"shortsPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"liveChatEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],tz.prototype,"learningChatEngagementPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"liveChatReplyPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"enableAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"disableBackdropFilter",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tz.prototype,"isPersistentPanel",void 0);_.c([_.v(),_.I("design:type",Object)],tz.prototype,"trackEngagementPanelVisibility",void 0);
_.c([_.v(),_.I("design:type",Object)],tz.prototype,"overscrollContain",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],tz.prototype,"isAiCompanionPanel",null);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],tz.prototype,"headerElement",void 0);_.c([_.iA("#header > *"),_.I("design:type",HTMLElement)],tz.prototype,"header",void 0);_.c([_.iA("ytd-section-list-renderer"),_.I("design:type",Object)],tz.prototype,"sectionListRendererElement",void 0);
_.c([_.iA("panel-ad-header-image-lockup-view-model"),_.I("design:type",HTMLElement)],tz.prototype,"adHeaderImageLockupViewModel",void 0);_.c([_.iA("#content"),_.I("design:type",HTMLElement)],tz.prototype,"contentElement",void 0);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tz.prototype,"onYtRendererstamperFinished",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tz.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.c([_.Ry("data","isFullscreen","isTheaterMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tz.prototype,"dataChanged",null);_.c([_.Ga("isTheaterMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tz.prototype,"isTheaterModeChanged",null);
_.c([_.Ga("isFullscreen"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tz.prototype,"isFullscreenChanged",null);_.c([_.Ga("visibility"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tz.prototype,"visibilityChanged",null);_.c([_.mC({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],tz);
_.d(tz,"ytd-engagement-panel-section-list-renderer",function(){if(f1U!==void 0)return f1U;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return f1U=G},{mode:2});var H02;var Z_=function(){var G=_.p.apply(this,arguments)||this;G.rounded=!0;G.pageAttachedTo=void 0;G.currentRequestResolver=void 0;G.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return G};
_.r(Z_,_.p);Z_.prototype.attached=function(){this.pageAttachedTo=_.te().resolve(_.pA).getCurrentPage();_.cZ(this.hostElement,"yt-player-attached",this.player)};
Z_.prototype.detached=function(){var G;if((G=this.pageAttachedTo)==null?0:G.hostElement)_.cZ(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Z_.prototype.dataChanged=function(){var G=this,B;if(((B=this.data)==null?0:B.inlinePlaybackEndpoint)&&!_.X("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();B=this.data.inlinePlaybackEndpoint;var F=_.te().resolve(_.RF),D={};_.te().resolve(_.uN);D.lact=_.Z8();var u=new _.tc;this.currentRequestResolver=u;u.promise.then(function(R){var N={autoplay:!0};!_.X("miniplayer_stop_channel_video_autoplay_killswitch")&&_.te().resolve(_.WP).isMiniplayerActive()&&(N.pause_at_start=
!0,N.autoplay=!1);R&&G.player.loadVideoWithPlayerResponse(R,N)});
kfA(F,{endpoint:B,startPlaybackInMutedState:!1},D).then(function(R){u.resolve(R)}).catch(function(){})}else if((F=this.data)==null?0:F.videoId)B={video_id:this.data.videoId,
autoplay:!0},!_.X("miniplayer_stop_channel_video_autoplay_killswitch")&&_.te().resolve(_.WP).isMiniplayerActive()&&(B.pause_at_start=!0,B.autoplay=!1),this.player.loadVideoWithPlayerVars(B)};
Z_.prototype.handleSignalActionPausePlayer=function(){_.de().pause()};
Z_.prototype.dataChanged=Z_.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],Z_.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Z_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Z_.prototype,"rounded",void 0);_.c([_.iA("#player"),_.I("design:type",Object)],Z_.prototype,"player",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Z_.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Z_);
_.d(Z_,"ytd-channel-video-player-renderer",function(){if(H02!==void 0)return H02;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return H02=G},{mode:1});var k3$;var gh=function(){return _.p.apply(this,arguments)||this};
_.r(gh,_.p);gh.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.qm(_.IF(this.hostElement).querySelector("#text"),_.aRt(_.Qiv,this.data.companionLegalText))};
gh.prototype.computeAutoScrollEnabled=function(G,B){return G&&!B};
gh.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
gh.prototype.onToggleTap=function(){this.expanded=!this.expanded};
gh.prototype.expandedChanged=gh.prototype.expandedChanged;gh.prototype.dataChanged=gh.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.c([_.k(iwU),_.I("design:type",Object)],gh.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gh.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],gh.prototype,"expanded",void 0);
_.c([_.v({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.I("design:type",Boolean)],gh.prototype,"autoScrollEnabled",void 0);_.c([_.v(),_.I("design:type",String)],gh.prototype,"expanderIcon",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gh.prototype,"dataChanged",null);
_.c([_.Ga("expanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gh.prototype,"expandedChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],gh);
_.d(gh,"ytd-companion-legal-text-renderer",function(){if(k3$!==void 0)return k3$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return k3$=G},{mode:1});var O02;var Su=function(){var G=_.p.apply(this,arguments)||this;G.buttonUpdate=_.X("web_modern_buttons");G.kevlarWatchGrid=_.X("kevlar_watch_grid");G.centerAlignDescription=_.X("action_companion_center_align_description");G.truncateDomain=_.X("action_companion_truncate_domain");G.enableMonoStyle=_.X("enable_default_mono_cta_migration_web_client");return G};
_.r(Su,_.p);_.w=Su.prototype;_.w.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.w.getOnLayoutVisibleCallback=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.w.getLayoutId=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.w.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Su.JSC$21247_DEFAULT_AD_BADGE_RENDERER);var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.w.getButtonRenderer=function(G){return G.actionButton&&_.Q(G.actionButton,_.Xq)?(delete _.Q(G.actionButton,_.Xq).navigationEndpoint,_.Q(G.actionButton,_.Xq)):{}};
_.w.onClick=function(G){var B=this;if((!_.X("web_modern_buttons")||!_.oQ(_.VW(G),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){G=_.AZ();var F=this.getLayoutId();G&&F&&_.X("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(D){(new _.qo(D)).executeCommand(B.data.navigationEndpoint,F)}):_.X("kevlar_companion_resolve_command_killswitch")?_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.T1(this.hostElement,"yt-companion-ad-clicked",["action-companion",F])}};
_.ZN.Object.defineProperties(Su.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?0:(B=G.detailsLine)==null?0:(F=B.adRating)==null?0:F.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 G,B,F,D;return((G=this.data)==null?0:(B=G.detailsLine)==null?0:(F=B.adRating)==null?0:(D=F.ratingIcon)==null?0:D.iconType)?_.xT(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;return((G=this.data)==null?0:(B=G.detailsLine)==null?0:(F=B.texts)==null?0:(D=F[0])==null?0:D.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 G,B;return((G=this.data)==null?0:(B=G.description)==null?0:B.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var G=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return G?G.indexOf("/default_banner")!==-1:!0}}});
Su.prototype.onClick=Su.prototype.onClick;Su.prototype.dataChanged=Su.prototype.dataChanged;Su.JSC$21247_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.G7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Su.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Su.prototype,"rendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Su.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Su.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Su.prototype,"kevlarWatchGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Su.prototype,"centerAlignDescription",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Su.prototype,"truncateDomain",void 0);
_.c([_.v({computed:"computeButtonOverride(buttonUpdate)"}),_.I("design:type",Object)],Su.prototype,"buttonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Su.prototype,"enableMonoStyle",void 0);_.c([_.O("data.detailsLine.adRating.ratingText"),_.I("design:type",Object),_.I("design:paramtypes",[])],Su.prototype,"getRating",null);_.c([_.O("getRating"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Su.prototype,"computeRatingHidden",null);
_.c([_.O("data.detailsLine.adRating.ratingIcon.iconType"),_.I("design:type",Object),_.I("design:paramtypes",[])],Su.prototype,"iconType",null);_.c([_.O("data.detailsLine.texts.0.text"),_.I("design:type",Object),_.I("design:paramtypes",[])],Su.prototype,"getDetailsLine",null);_.c([_.O("getDetailsLine"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Su.prototype,"computeDetailsLineHidden",null);
_.c([_.O("data.description.text"),_.I("design:type",Object),_.I("design:paramtypes",[])],Su.prototype,"getDescriptionText",null);_.c([_.O("getDescriptionText"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Su.prototype,"computeDescriptionTextHidden",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Su.prototype,"interactionLoggingClientData",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Su.prototype,"hideBanner",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Su.prototype,"dataChanged",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Su.prototype,"onClick",null);_.c([_.mC({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Su);
_.d(Su,"ytd-action-companion-ad-renderer",function(){if(O02!==void 0)return O02;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return O02=G},{mode:2});var e$G;var $cG;var s3=function(){var G=_.p.apply(this,arguments)||this;G.buttonUpdate=_.X("web_modern_buttons");G.hideLegacyBanner=_.X("enable_dsa_one_click_ata_translators_infeed_elements");G.adInfoButtonStyle="mono";G.adInfoButtonType="text";G.noDotAdBadge=!0;return G};
_.r(s3,_.p);_.w=s3.prototype;_.w.getOnLayoutVisibleCallback=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.w.getLayoutId=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.w.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 G=this.data.image.thumbnail.thumbnails[0];this.imageSrc=G.url?_.Sz(G.url):void 0;this.imageWidth=G.width||0;this.imageHeight=G.height||0}this.data.clickthroughEndpoint&&_.Q(this.data.clickthroughEndpoint,_.MI)&&(G=_.Q(this.data.clickthroughEndpoint,_.MI).url,_.X("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
G||"":G?(G=_.Sz(G),this.clickThroughUrl=_.fe(G)):this.clickThroughUrl=void 0);(G=this.getOnLayoutVisibleCallback())&&G()}};
_.w.onClick=function(G){_.oQ(_.VW(G),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(G)};
_.w.handleClick=function(){var G=this;this.data&&this.data.clickthroughEndpoint&&(_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(B){G.macroReplacementBehavior.sendServiceRequestAction([B])}),_.T1(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.w.onLoad=function(){_.Ia(this.hostElement,"yt-refit-popups-action")};
_.ZN.Object.defineProperties(s3.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
s3.prototype.onLoad=s3.prototype.onLoad;s3.prototype.onClick=s3.prototype.onClick;s3.prototype.dataChanged=s3.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],s3.prototype,"rendererBehavior",void 0);_.c([_.k(y_$.YtMacroReplacementBehavior),_.I("design:type",Object)],s3.prototype,"macroReplacementBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],s3.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],s3.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],s3.prototype,"hideLegacyBanner",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],s3.prototype,"adInfoButtonStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],s3.prototype,"adInfoButtonType",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],s3.prototype,"macros",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],s3.prototype,"interactionLoggingClientData",null);_.c([_.v(),_.I("design:type",String)],s3.prototype,"clickThroughUrl",void 0);_.c([_.v(),_.I("design:type",_.dm)],s3.prototype,"imageSrc",void 0);_.c([_.v(),_.I("design:type",Number)],s3.prototype,"imageWidth",void 0);_.c([_.v(),_.I("design:type",Number)],s3.prototype,"imageHeight",void 0);_.c([_.v(),_.I("design:type",Object)],s3.prototype,"noDotAdBadge",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],s3.prototype,"dataChanged",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],s3.prototype,"onClick",null);_.c([_.Pm("load"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],s3.prototype,"onLoad",null);_.c([_.mC({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],s3);
_.d(s3,"ytd-image-companion-renderer",function(){if($cG!==void 0)return $cG;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return $cG=G},{mode:2});var z$U;var x6=function(){return _.p.apply(this,arguments)||this};
_.r(x6,_.p);_.w=x6.prototype;_.w.dataChanged=function(){this.set("data.adBadge",x6.JSC$21256_DEFAULT_AD_BADGE_RENDERER);if(this.data){var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.w.getOnLayoutVisibleCallback=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.w.getLayoutId=function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.w.onCompanionClicked=function(G){this.data&&(G.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.T1(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.w.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var G=_.AZ(),B=this.getLayoutId(),F=this.data.clickToAdvSiteEndpoint;G&&B&&_.X("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(D){(new _.qo(D)).executeCommand(F,B)}):_.cZ(this.hostElement,"yt-navigate",{endpoint:F})}};
_.w.sendTrackingPings=function(G){if(G&&G.length!==0&&G[0].loggingUrls&&(G=G[0].loggingUrls.map(this.getBaseUrl)))for(var B=0;B<G.length;B++)_.oB(G[B])};
_.w.getBaseUrl=function(G){return G.baseUrl||""};
_.ZN.Object.defineProperties(x6.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Yf("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
x6.prototype.onCompanionClicked=x6.prototype.onCompanionClicked;x6.prototype.dataChanged=x6.prototype.dataChanged;x6.JSC$21256_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.G7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],x6.prototype,"data",void 0);_.c([_.iA("#title"),_.I("design:type",HTMLElement)],x6.prototype,"shopTitle",void 0);
_.c([_.Ry("data.impressionEndpoints"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],x6.prototype,"dataChanged",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],x6.prototype,"interactionLoggingClientData",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],x6.prototype,"onCompanionClicked",null);
_.c([_.mC({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],x6);
_.d(x6,"ytd-shopping-companion-renderer",function(){if(z$U!==void 0)return z$U;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return z$U=G},{mode:1});_.YN(_.Y(function(G){var B=G.data;G=_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk});var F=_.rC(function(){return B().interaction},KhD);
_.zM(function(){var D,u;u=(u=_.Yf("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.onLayoutVisibleCallback:null;(D=u)==null||D()},"Wj");
return _.l("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.gJ(function(D){_.Ia(D.currentTarget,"yt-refit-popups-action")}),
el:_.VX(G,F),"aria-label":function(){var D,u;return(D=B().interaction)==null?void 0:(u=D.accessibility)==null?void 0:u.label}},_.l("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(D){return _.l(_.cK,{data:D.data,
targetHeight:80,customCommandResolver:KhD})}})),_.l("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.l("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.l(_.uR,{data:function(){return B().adBadge}},{adBadgeViewModel:function(D){return _.l(_.gk,{data:D.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.l("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.l(_.uR,{data:function(){return B().menu}},{buttonViewModel:_.cd}))))},"Xj"),"banner-image-layout-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;G=_.tb({visibilityCallback:function(D){var u,R=(u=B().interaction)==null?void 0:u.onFirstVisible;D&&R&&_.rJ(R)},
showOption:_.dk});var F=_.rC(function(){return B().interaction},awU);
_.zM(function(){var D,u;u=(u=_.Yf("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.onLayoutVisibleCallback:null;(D=u)==null||D()},"Yj");
return _.l("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.VX(G,F)},_.l("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.l(_.uR,{data:function(){return B().adImage}},{adImageViewModel:function(D){return _.l(_.cK,{data:D.data,
targetHeight:80,customCommandResolver:awU})}})),_.l("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.l("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.l(_.uR,{data:function(){return B().adAvatarLockup}},{adAvatarLockupViewModel:function(D){return _.l(Uc2,{data:D.data,
customCommandResolver:awU})}})),_.l(_.uR,{data:function(){return B().adButton}},{adButtonViewModel:function(D){return _.l(_.TO,{data:D.data,
customCommandResolver:awU})}}),_.l("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.l(_.uR,{data:function(){return B().menu}},{buttonViewModel:_.cd}))))},"Zj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Hd}});var b0G={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"},P4=function(){var G=_.p.apply(this,arguments)||this;G.updateCompanionDataJobId=0;G.contentVideoId=null;G.player=null;G.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return G};
_.r(P4,_.p);_.w=P4.prototype;_.w.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:b0G}}};
_.w.attached=function(){var G=this,B=_.AZ();B&&B.getPlayerPromise().then(function(F){G.getCachedDataAndListen(F)})};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.w.updateRendererStamper=function(){var G={};if(this.data)for(var B in b0G)if(this.data[B]){G[B]=this.data[B];break}if(this.oneofRenderer!=void 0||Object.keys(G).length)this.oneofRenderer=G};
_.w.getCachedDataAndListen=function(G){var B=this.retrieveCachedCompanionData();B&&Object.keys(B).length&&this.receiveCompanionData(B);this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=G};
_.w.retrieveCachedCompanionData=function(){return _.Fz.yt&&_.Fz.yt.www&&_.Fz.yt.www.ads&&_.Fz.yt.www.ads.eventcache&&_.Fz.yt.www.ads.eventcache.getLastCompanionData?_.Fz.yt.www.ads.eventcache.getLastCompanionData():null};
_.w.receiveCompanionData=function(G){G&&Object.keys(G).length?(this.contentVideoId=G.contentVideoId,this.setCompanionData(G)):this.setCompanionData(G)};
_.w.setCompanionData=function(G){this.cancelPendingCompanionAdJobs();if(G){this.updateCompanionDataJobId=0;for(var B in b0G)b0G.hasOwnProperty(B)&&(this.data[B]=void 0);G.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",G.shoppingCompanionCarouselRenderer):G.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",G.imageCompanionAdRenderer):G.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",G.actionCompanionAdRenderer),_.Ia(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Ia(this.hostElement,"yt-hide-tvfilm-offer-module")):G.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",G.bannerImageLayoutViewModel):G.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",G.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.w.dataChanged=function(){var G=this,B=_.AZ();B?B.getPlayerPromise().then(function(F){G.contentVideoId&&F.getVideoUrl().includes("v="+G.contentVideoId)||(G.cancelPendingCompanionAdJobs(),G.updateRendererStamper())}):_.Ae(Error("Rl"))};
_.w.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Lu.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.w.handleCompanionAdClicked=function(G,B){this.player.onAdUxClicked(G,B);this.player.pauseVideo()};
P4.prototype.dataChanged=P4.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],P4.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],P4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],P4.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],P4.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],P4.prototype,"oneofRenderer",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],P4.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],P4);
_.d(P4,"ytd-companion-slot-renderer",function(){if(e$G!==void 0)return e$G;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return e$G=G},{mode:2});var VdN;var Gw=function(){return _.p.apply(this,arguments)||this};
_.r(Gw,_.p);Gw.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Gw.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Gw.prototype,"companionSlotData",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gw.prototype,"dataChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Gw);
_.d(Gw,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(VdN!==void 0)return VdN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return VdN=G},{mode:1});var v_Z;var BG=function(){var G=_.p.apply(this,arguments)||this;G.skinnyMode=!1;G.COMPACT_EVENT_COUNT=4;G.onShelfToggleButtonTap=function(){G.logTap(G.data);G.showingMore=!G.showingMore};
G.onShelfToggleButtonFocus=function(){G.showingMore||(G.logTap(G.data),G.showingMore=!0,_.ft(G,function(){var B=G.COMPACT_EVENT_COUNT-1,F;(F=_.IF(G.hostElement).querySelector("#event-"+B))==null||F.focus()}))};
return G};
_.r(BG,_.p);_.w=BG.prototype;_.w.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.w.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.w.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.x7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.x7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.x7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.x7(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.x7(this.infoTooltip,this.infoTooltip.hide))};
_.w.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.x7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.x7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.x7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.x7(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.x7(this.infoTooltip,this.infoTooltip.hide))};
_.w.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)};
_.w.onShowingMoreChanged=function(){var G;this.showingMoreChanged((G=this.showingMore)!=null?G:!1)};
_.w.showingMoreChanged=function(G){var B=this.get("data.events")||[];this.set("restEvents",B.slice(1,G?B.length:this.COMPACT_EVENT_COUNT).map(function(F){return F.ticketEventRenderer}));
B.slice(0,G?B.length:this.COMPACT_EVENT_COUNT).forEach(function(F){var D=_.qW();F=F.ticketEventRenderer.trackingParams;_.Uw()&&D&&F&&(F=_.yX(F),D&&_.kI(D,F))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.w.computeAriaLabel=function(G){return G.subtitle1+", "+G.subtitle2};
_.w.logTap=function(G){_.Uw()&&this.ytRendererBehavior.logExplicitClick(G)};
_.w.isKeyboardAction=function(G){return this.get("detail.x",G)===0&&this.get("detail.y",G)===0};
_.w.onFirstEventTap=function(G){G.target&&this.handleTap(G.target,this.firstEvent,this.isKeyboardAction(G))};
_.w.onTicketLinkTap=function(G){G.target&&this.handleTap(G.target,G.model.item,this.isKeyboardAction(G))};
_.w.handleTap=function(G,B,F){if(B.buttonCommand)if(B.hasMultipleOffers)Object.assign(_.Q(B.buttonCommand,_.Dx),{properties:{source:F?"keyboard":"tap"}}),this.logTap(B),this.popupPositionTarget=G,_.tL(this.hostElement,[B.buttonCommand],this.hostElement);else{var D;if((D=_.Q(B.buttonCommand,_.MI))==null?0:D.url)this.logTap(B),_.wi(window,_.Q(B.buttonCommand,_.MI).url)}};
BG.prototype.onShowingMoreChanged=BG.prototype.onShowingMoreChanged;BG.prototype.dataChanged=BG.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],BG.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],BG.prototype,"firstEvent",void 0);_.c([_.v(),_.I("design:type",Object)],BG.prototype,"restEvents",void 0);_.c([_.v(),_.I("design:type",String)],BG.prototype,"imageUrl",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],BG.prototype,"showingMore",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],BG.prototype,"canShowMore",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],BG.prototype,"skinnyMode",void 0);_.c([_.v(),_.I("design:type",HTMLElement)],BG.prototype,"popupPositionTarget",void 0);_.c([_.iA("#banner-info-tooltip"),_.I("design:type",Object)],BG.prototype,"infoTooltip",void 0);
_.c([_.iA("#info-container"),_.I("design:type",HTMLElement)],BG.prototype,"infoContainer",void 0);_.c([_.iA("#shelf-toggler"),_.I("design:type",HTMLElement)],BG.prototype,"shelfToggleButton",void 0);_.c([_.iA("#separator"),_.I("design:type",HTMLDivElement)],BG.prototype,"separator",void 0);_.c([_.v(),_.I("design:type",String)],BG.prototype,"shelfTogglerLabelText",void 0);_.c([_.v(),_.I("design:type",String)],BG.prototype,"shelfTogglerIcon",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BG.prototype,"dataChanged",null);_.c([_.Ry("showingMore"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BG.prototype,"onShowingMoreChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],BG);
_.d(BG,"ytd-ticket-shelf-renderer",function(){if(v_Z!==void 0)return v_Z;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return v_Z=G},{mode:1});var o_D={};o_D.YtVisibilityRootBehavior=[_.fuv.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ve(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.v5("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var G=_.v5("INNERTUBE_CLIENT_NAME")!=="WEB";_.X("kevlar_use_vimio_behavior")&&G&&_.E$U()}}];var ir={};ir.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(G){G.detail.contextProvider=this;G.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
o_D.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.zn();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(G){var B=this;this.pageCount+=1;_.X("kevlar_use_vimio_behavior")&&(_.v5("INNERTUBE_CLIENT_NAME")==="WEB"?_.Lu.addJob(function(){B.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(G)},
loadPage_:function(G){this.data=G},
ytPageBehaviorActiveObserver_:function(G){var B=this;_.X("kevlar_use_vimio_behavior")&&(G?_.v5("INNERTUBE_CLIENT_NAME")==="WEB"?_.Lu.addJob(function(){B.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(G){if(!this.setScrollTopJobId_){var B=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){B.setScrollTopJobId_=0;var F=_.te().resolve(_.fH(_.uN));F&&_.v9(F);this.getPageScrollingElement().scrollTop=G}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.X3(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var Md$;var pEz;var YU$;var AaD;var Fc=function(){var G=_.p.apply(this,arguments)||this;G.originalQuery=null;G.originalEndpoint=null;return G};
_.r(Fc,_.p);Fc.prototype.computeShowOriginalQueryWithoutEndpoint_=function(G,B){return!(!G||B)};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Fc.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Fc.prototype,"correctedText",void 0);_.c([_.v(),_.I("design:type",Object)],Fc.prototype,"correctedQuery",void 0);_.c([_.v(),_.I("design:type",Object)],Fc.prototype,"correctedEndpoint",void 0);_.c([_.v(),_.I("design:type",Object)],Fc.prototype,"originalText",void 0);_.c([_.v(),_.I("design:type",Object)],Fc.prototype,"originalQuery",void 0);
_.c([_.v(),_.I("design:type",Object)],Fc.prototype,"originalEndpoint",void 0);_.c([_.v({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.I("design:type",Boolean)],Fc.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.c([_.ay({is:"yt-search-query-correction",disableElementRegistration:!0})],Fc);
_.d(Fc,"yt-search-query-correction",function(){if(AaD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;YU$===void 0&&(YU$=document.createElement("template"));var D=YU$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);AaD=G}G=AaD;return G},{mode:2});_.UR("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var dcN=function(){return _.p.apply(this,arguments)||this};
_.r(dcN,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dcN.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dcN.prototype,"data",void 0);_.c([_.ay({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],dcN);
_.d(dcN,"yt-did-you-mean-renderer",function(){if(pEz===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Md$===void 0&&(Md$=document.createElement("template"));var D=Md$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);pEz=G}G=pEz;return G},{mode:2});var Ja2;var caN;_.UR("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var TWD=function(){return _.p.apply(this,arguments)||this};
_.r(TWD,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TWD.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TWD.prototype,"data",void 0);_.c([_.ay({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],TWD);
_.d(TWD,"yt-including-results-for-renderer",function(){if(caN===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Ja2===void 0&&(Ja2=document.createElement("template"));var D=Ja2;F.call(B,D.content.cloneNode(!0),G.content.firstChild);caN=G}G=caN;return G},{mode:2});var ItH;var ftS;_.UR("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var DY=function(){return _.p.apply(this,arguments)||this};
_.r(DY,_.p);DY.prototype.computeExtraClasses_=function(G,B){var F="";G&&(F+=" "+G.toLowerCase().replace(/_/g,"-"));B&&(F+=" "+B.toLowerCase().replace(/_/g,"-"));return F};
DY.prototype.computeUrlImg_=function(){var G=this.data;G.image&&(_.IF(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Ax(G.image.thumbnails,Number.MAX_VALUE)+")")};
DY.prototype.computeUrlImg_=DY.prototype.computeUrlImg_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],DY.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],DY.prototype,"computeUrlImg_",null);_.c([_.ay({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],DY);
_.d(DY,"yt-music-pass-feature-info-renderer",function(){if(ftS===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;ItH===void 0&&(ItH=document.createElement("template"));var D=ItH;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ftS=G}G=ftS;return G},{mode:2});var td$;var Z0A;_.UR("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var g_D=function(){return _.p.apply(this,arguments)||this};
_.r(g_D,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],g_D.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],g_D.prototype,"data",void 0);_.c([_.ay({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],g_D);
_.d(g_D,"yt-no-results-found-showing-results-for-renderer",function(){if(Z0A===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;td$===void 0&&(td$=document.createElement("template"));var D=td$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Z0A=G}G=Z0A;return G},{mode:2});var SUz;var sb$;_.UR("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var xc$=function(){return _.p.apply(this,arguments)||this};
_.r(xc$,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xc$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xc$.prototype,"data",void 0);_.c([_.ay({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],xc$);
_.d(xc$,"yt-results-without-quotes-renderer",function(){if(sb$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;SUz===void 0&&(SUz=document.createElement("template"));var D=SUz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);sb$=G}G=sb$;return G},{mode:2});var P0N;var GYZ;_.UR("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var B7$=function(){return _.p.apply(this,arguments)||this};
_.r(B7$,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],B7$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],B7$.prototype,"data",void 0);_.c([_.ay({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],B7$);
_.d(B7$,"yt-search-no-results-renderer",function(){if(GYZ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;P0N===void 0&&(P0N=document.createElement("template"));var D=P0N;F.call(B,D.content.cloneNode(!0),G.content.firstChild);GYZ=G}G=GYZ;return G},{mode:2});var ijz;var FQ$;_.UR("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var DfU=function(){return _.p.apply(this,arguments)||this};
_.r(DfU,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DfU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],DfU.prototype,"data",void 0);_.c([_.ay({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],DfU);
_.d(DfU,"yt-showing-results-for-renderer",function(){if(FQ$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ijz===void 0&&(ijz=document.createElement("template"));var D=ijz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);FQ$=G}G=FQ$;return G},{mode:2});var uvB;var R0H;_.UR("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var ur=function(){return _.p.apply(this,arguments)||this};
_.r(ur,_.p);
ur.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ur.prototype,"data",void 0);_.c([_.ay({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],ur);
_.d(ur,"yt-offer-item-expanded-renderer",function(){if(R0H===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;uvB===void 0&&(uvB=document.createElement("template"));var D=uvB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);R0H=G}G=R0H;return G},{mode:2});var wuG;var C7B;_.UR("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Rv=function(){return _.p.apply(this,arguments)||this};
_.r(Rv,_.p);
Rv.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"}}}}};
Rv.prototype.computeFullWidthMode=function(G){return!(!G||!G.fullWidthMode)};
Rv.prototype.computeBorderlessMode=function(G){return!(!G||!G.borderlessMode)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Rv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.I("design:type",Boolean)],Rv.prototype,"fullWidthMode",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.I("design:type",Boolean)],Rv.prototype,"borderlessMode",void 0);_.c([_.ay({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Rv);
_.d(Rv,"yt-offer-item-renderer",function(){if(C7B===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;wuG===void 0&&(wuG=document.createElement("template"));var D=wuG;F.call(B,D.content.cloneNode(!0),G.content.firstChild);C7B=G}G=C7B;return G},{mode:2});var N7U;var yrD;_.UR("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var wM=function(){return _.p.apply(this,arguments)||this};
_.r(wM,_.p);wM.prototype.computeAriaLevel_=function(G){return this.getLevelID_(G)};
wM.prototype.getLevelID_=function(G){return(G=G.match(/[0-9]+$/))&&G.length==1?G[0]:"1"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wM.prototype,"data",void 0);_.c([_.v({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.I("design:type",String)],wM.prototype,"ariaLevel",void 0);_.c([_.v({value:"heading",reflectToAttribute:!0}),_.I("design:type",String)],wM.prototype,"role",void 0);
_.c([_.v({value:-1,reflectToAttribute:!0}),_.I("design:type",Number)],wM.prototype,"tabindex",void 0);_.c([_.ay({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],wM);
_.d(wM,"yt-subscription-product-header-renderer",function(){if(yrD===void 0){var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;N7U===void 0&&(N7U=document.createElement("template"));var D=N7U;F.call(B,D.content.cloneNode(!0),G.content.firstChild);yrD=G}G=yrD;return G},{mode:2});var nxH;var lo$;_.UR("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var C5=function(){return _.p.apply(this,arguments)||this};
_.r(C5,_.p);C5.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:_.q6("menuRenderer"),events:!0}}};
C5.prototype.onStampFinished_=function(){_.IF(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
C5.prototype.onStampFinished_=C5.prototype.onStampFinished_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],C5.prototype,"data",void 0);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],C5.prototype,"onStampFinished_",null);
_.c([_.ay({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],C5);
_.d(C5,"yt-subscription-product-renderer",function(){if(lo$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;nxH===void 0&&(nxH=document.createElement("template"));var D=nxH;F.call(B,D.content.cloneNode(!0),G.content.firstChild);lo$=G}G=lo$;return G},{mode:2});var UfS;var qm$;_.UR("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Nx=function(){return _.p.apply(this,arguments)||this};
_.r(Nx,_.p);Nx.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Nx.prototype.imageScrimColorValuesChanged_=function(){var G,B=(G=this.data)==null?void 0:G.imageScrimColorValues;_.IF(this.hostElement).querySelector("#scrim").style.backgroundColor=B?_.Kp(B[0]):"transparent"};
Nx.prototype.imageScrimColorValuesChanged_=Nx.prototype.imageScrimColorValuesChanged_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Nx.prototype,"data",void 0);
_.c([_.Ga("data.imageScrimColorValues"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Nx.prototype,"imageScrimColorValuesChanged_",null);_.c([_.ay({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Nx);
_.d(Nx,"yt-subscription-product-upsell-offer-renderer",function(){if(qm$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;UfS===void 0&&(UfS=document.createElement("template"));var D=UfS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);qm$=G}G=qm$;return G},{mode:2});var Ex2;var h0S;var KQD;var aoQ;var mfU;var Xu$;var yJ=function(){return _.p.apply(this,arguments)||this};
_.r(yJ,_.p);yJ.prototype.onYtServiceRequestError_=function(G){_.zP(this.hostElement,G.detail.error.message)};
yJ.prototype.onYtServiceRequestError_=yJ.prototype.onYtServiceRequestError_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yJ.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],yJ.prototype,"collapsible",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],yJ.prototype,"isManageRed",void 0);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],yJ.prototype,"onYtServiceRequestError_",null);_.c([_.ay({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],yJ);
_.d(yJ,"yt-single-ypc-offer-renderer",function(){if(Xu$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;mfU===void 0&&(mfU=document.createElement("template"));var D=mfU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Xu$=G}G=Xu$;return G},{mode:2});var n5=function(){return _.p.apply(this,arguments)||this};
_.r(n5,_.p);n5.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],n5.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],n5.prototype,"isManageRed",void 0);_.c([_.ay({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],n5);
_.d(n5,"yt-single-ypc-offer-list-renderer",function(){if(aoQ===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;KQD===void 0&&(KQD=document.createElement("template"));var D=KQD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);aoQ=G}G=aoQ;return G},{mode:2});var QUS;var jUQ;_.UR("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var lr=function(){return _.p.apply(this,arguments)||this};
_.r(lr,_.p);lr.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lr.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],lr.prototype,"isManageRed",void 0);_.c([_.ay({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],lr);
_.d(lr,"yt-ypc-offers-list-renderer",function(){if(jUQ===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;QUS===void 0&&(QUS=document.createElement("template"));var D=QUS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);jUQ=G}G=jUQ;return G},{mode:2});_.UR("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Uk=function(){return _.p.apply(this,arguments)||this};
_.r(Uk,_.p);
Uk.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Uk.prototype,"data",void 0);_.c([_.ay({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Uk);
_.d(Uk,"yt-unlimited-manage-subscription-page-renderer",function(){if(h0S===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Ex2===void 0&&(Ex2=document.createElement("template"));var D=Ex2;F.call(B,D.content.cloneNode(!0),G.content.firstChild);h0S=G}G=h0S;return G},{mode:2});var LQD;var rrS;var qx=function(){return _.p.apply(this,arguments)||this};
_.r(qx,_.p);_.w=qx.prototype;_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.w.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.onKeypress_=function(G){G.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.w.handleHeaderTap_=function(G){G.preventDefault();G.stopPropagation();this.expandOffers_()};
_.w.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.w.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
qx.prototype.dataChanged_=qx.prototype.dataChanged_;_.c([_.k(_.sV),_.I("design:type",Object)],qx.prototype,"ironA11yKeysBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qx.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],qx.prototype,"offersVisible_",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qx.prototype,"dataChanged_",null);_.c([_.ay({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],qx);
_.d(qx,"yt-collapsible-ypc-offer-renderer",function(){if(rrS===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;LQD===void 0&&(LQD=document.createElement("template"));var D=LQD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);rrS=G}G=rrS;return G},{mode:2});var WQZ;var Hj2;_.UR("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Ek=function(){return _.p.apply(this,arguments)||this};
_.r(Ek,_.p);_.w=Ek.prototype;_.w.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.w.dataChanged_=function(){if(this.data.backgroundImage){var G=_.Ax(this.data.backgroundImage.thumbnails,screen.width),B=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=B?"linear-gradient(180deg, "+B+"), url("+G+")":"url("+G+")";this.data.gtmId&&_.uY(this.data.gtmId,_.v5("GL",""))}};
_.w.onYtServiceRequestError_=function(G){_.zP(this.hostElement,G.detail.error.message)};
_.w.getScrimLayerColorStops_=function(){var G,B,F=(G=this.data.unlimitedHeaderV2Data)==null?void 0:(B=G.unlimitedHeaderV2Data)==null?void 0:B.scrimLayerColors;if(!F)return null;var D=100/F.length;return F.map(function(u,R){R*=D;return _.Kp(u)+" "+R+"%"}).join(",")};
_.w.computeLogoWithPadding=function(G){var B,F,D;return(G=(B=G.unlimitedLogoImage)==null?void 0:(F=B.thumbnails)==null?void 0:(D=F[0])==null?void 0:D.height)&&G%31===0?!0:!1};
Ek.prototype.onYtServiceRequestError_=Ek.prototype.onYtServiceRequestError_;Ek.prototype.dataChanged_=Ek.prototype.dataChanged_;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.c([_.v({computed:"computeLogoWithPadding(data)"}),_.I("design:type",Boolean)],Ek.prototype,"logoWithPadding",void 0);
_.c([_.v(),_.I("design:type",Object)],Ek.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ek.prototype,"dataChanged_",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Ek.prototype,"onYtServiceRequestError_",null);_.c([_.ay({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Ek);
_.d(Ek,"yt-unlimited-page-header-renderer",function(){if(Hj2===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;WQZ===void 0&&(WQZ=document.createElement("template"));var D=WQZ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Hj2=G}G=Hj2;return G},{mode:2});var kY$;var Oj2;_.UR("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var h$=function(){return _.p.apply(this,arguments)||this};
_.r(h$,_.p);h$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],h$.prototype,"data",void 0);_.c([_.ay({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],h$);
_.d(h$,"yt-unlimited-user-notification-renderer",function(){if(Oj2===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;kY$===void 0&&(kY$=document.createElement("template"));var D=kY$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Oj2=G}G=Oj2;return G},{mode:2});var e0z;var $f2;var z0H=function(){return _.p.apply(this,arguments)||this};
_.r(z0H,_.p);_.c([_.v(),_.I("design:type",Object)],z0H.prototype,"data",void 0);_.c([_.ay({is:"yt-alert-renderer",disableElementRegistration:!0})],z0H);
_.d(z0H,"yt-alert-renderer",function(){if($f2===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;e0z===void 0&&(e0z=document.createElement("template"));var D=e0z;F.call(B,D.content.cloneNode(!0),G.content.firstChild);$f2=G}G=$f2;return G},{mode:2});var Ar$=function(G){_.uz.call(this);this.JSC$21344_watchApi=G;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;bj$(this);VrU(this);vxG(this);oxD(this);MrH(this);pu$(this);Ymz(this)};
_.r(Ar$,_.uz);var vxG=function(G){var B=function(){_.X("kevlar_is_pupi_enabled")||K5(G)};
G.JSC$21344_watchApi.getRoot().addEventListener("yt-player-updated",B);G.addOnDisposeCallback(function(){G.JSC$21344_watchApi.getRoot().removeEventListener("yt-player-updated",B)})},MrH=function(G){if(_.X("kevlar_endscreen_auto_theater_mode")){var B=G.JSC$21344_watchApi.subscribeToActiveChanged(function(){dfD(G)},!1);
G.addOnDisposeCallback(B)}},bj$=function(G){var B,F,D,u,R;
_.n(function(N){if(N.nextAddress==1)return N.yield(G.JSC$21344_watchApi.playerApi,2);B=N.yieldResult;F=function(y){y=!!y;JrA(G)&&(y=y?2:1,_.M_.getInstance().setState(y,!0,!1))};
D=function(y){y&&iJz(_.VU().getState())&&(_.T1(G.JSC$21344_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),G.temporaryTheaterMode=!0)};
u=function(y){_.X("kevlar_player_update_autonav_on_new_data")&&y.type==="newdata"&&(_.X("kevlar_is_pupi_enabled")||K5(G))};
R=function(y){G.onPlayerStateChange(y)};
_.X("kevlar_endscreen_auto_theater_mode")&&B.addEventListener("onAutonavCancelled",D);B.addEventListener("onAutonavChangeRequest",F);B.addEventListener("onVideoDataChange",u);B.addEventListener("onStateChange",R);G.addOnDisposeCallback(function(){B.removeEventListener("onAutonavChangeRequest",F);B.removeEventListener("onVideoDataChange",u);B.removeEventListener("onStateChange",R);_.X("kevlar_endscreen_auto_theater_mode")&&B.removeEventListener("onAutonavCancelled",D)});
_.di(N)})},VrU=function(G){G.JSC$21344_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){G.autonavCancelledBySignal=!0;
_.X("kevlar_is_pupi_enabled")||K5(G)});
G.JSC$21344_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(B,F,D){F&&K5(G,D)});
G.JSC$21344_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){JrA(G)&&_.M_.getInstance().setState(2,!0,!0)});
G.JSC$21344_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){JrA(G)&&_.M_.getInstance().setState(1,!0,!0)});
G.addOnDisposeCallback(function(){G.JSC$21344_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");G.JSC$21344_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");G.JSC$21344_watchApi.unregisterActionHandler("yt-enable-autoplay-command");G.JSC$21344_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},oxD=function(G){var B=G.JSC$21344_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Ymz(G)}),F=G.JSC$21344_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){pu$(G)});
G.addOnDisposeCallback(function(){G.JSC$21344_watchApi.unsubscribeByKey(B);G.JSC$21344_watchApi.unsubscribeByKey(F)})},Ymz=function(G){G.autonavCancelledBySignal=!1;
_.X("kevlar_is_pupi_enabled")||K5(G)},pu$=function(G){var B=G.JSC$21344_watchApi.getWatchNextResponse(),F,D;
var u=(B=(D=_.Q(B==null?void 0:(u=B.playerOverlays)==null?void 0:(F=u.playerOverlayRenderer)==null?void 0:F.autonavToggle,_.U28))==null?void 0:D.enabled)?2:1;_.X("kevlar_is_pupi_enabled")?_.M_.getInstance().setState(u,!1,!1):K5(G);_.X("web_persist_server_autonav_state_on_client")&&typeof B==="boolean"&&_.ahM(u===2)},JrA=function(G){if(G.autonavCancelledBySignal)return!1;
var B,F,D,u;return!!((B=G.JSC$21344_watchApi.getWatchNextResponse())==null?0:(F=B.contents)==null?0:(D=F.twoColumnWatchNextResults)==null?0:(u=D.autoplay)==null?0:u.autoplay)};
Ar$.prototype.onPlayerStateChange=function(G){if(G===0){G=!_.M_.getInstance().isAutoplaySetExplicitly();var B=this.JSC$21344_watchApi.getWatchNextResponse(),F,D,u,R;B=_.Q(B==null?void 0:(F=B.contents)==null?void 0:(D=F.twoColumnWatchNextResults)==null?void 0:(u=D.autoplay)==null?void 0:(R=u.autoplay)==null?void 0:R.autoplayExplicitChoiceDialogRenderer,_.zjq);JrA(this)&&G&&B&&_.Gm.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:B},popupType:"DIALOG"}})}else dfD(this)};
var dfD=function(G){G.temporaryTheaterMode&&(G.temporaryTheaterMode=!1,_.T1(G.JSC$21344_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},K5=function(G,B){B=B===void 0?!1:B;
var F;_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21344_watchApi.playerApi,2);F=D.yieldResult;JrA(G)?F.setAutonavState(_.M_.getInstance().getState(),B):F.setAutonavState(1,B);_.di(D)})};var crD={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};var Io$=function(G){_.uz.call(this);var B=this;this.JSC$21349_watchApi=G;var F=this.JSC$21349_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){T7$(B)});
this.addOnDisposeCallback(function(){B.JSC$21349_watchApi.unsubscribeByKey(F)});
T7$(this)};
_.r(Io$,_.uz);var T7$=function(G){var B=G.JSC$21349_watchApi.getPlayerResponse(),F=G.JSC$21349_watchApi.getWatchNextResponse();if(!_.nqJ(B==null?void 0:B.playabilityStatus,F==null?void 0:F.playerOverlays)){var D;var u=B==null?void 0:(D=B.playabilityStatus)==null?void 0:D.errorScreen}G.JSC$21349_watchApi.provideRenderingData("ERROR_SCREEN",u)};var fo2=_.Y(function(G){return _.l("yt-player-grid-renderer",{class:_.tx("ytPlayerGridRendererHost",G.className)},_.l(_.uR,{data:G.data},{lockupViewModel:function(B){return _.l(_.xm,{data:B.data,useOverlayStyling:!0})}}))},"$j");var trz=_.Y(function(G){var B=G.data;G=_.X("web_watch_video_details_hide_subtitle");var F=_.X("web_watch_video_details_single_line_title"),D=_.gJ(function(){var y=B().onTap;y&&_.te().resolve(_.Wr).resolveCommand(y)}),u={},R={},N={};
return _.l("yt-player-overlay-video-details-renderer",{class:_.tx("ytPlayerOverlayVideoDetailsRendererHost",(u.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.X("web_watch_video_details_transparent_background"),u)),"on:click":D,role:"button"},_.l("h2",{class:_.tx("ytPlayerOverlayVideoDetailsRendererTitle",(R.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return F},R))},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:_.tx("ytPlayerOverlayVideoDetailsRendererSubtitle",
(N.ytPlayerOverlayVideoDetailsRendererHideSubtitle=G,N))},_.l(_.Wd,{text:function(){return B().subtitle}})))},"ak");var av={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},ZjD=_.Y(function(G){var B=G.data;var F=_.FT(_.aQ),D=_.X("web_watch_action_bar_resize_buttons"),u=_.X("web_watch_video_action_dsdvb"),R=_.X("delhi_modern_web_player_icons")&&!_.X("enable_web_delhi_icons");G=_.X("delhi_modern_web_player_disable_frosted_glass");var N=_.X("delhi_modern_web_player_compact_video_actions_controls"),
y=_.X("web_player_quick_action_buttons_icon_only"),U=function(){var h=D&&!F(),K={};N?K.size="S":h&&(K.size="M");y&&(K.iconPosition="icon-only");if(Object.keys(K).length!==0)return K},q={};
return _.l("yt-player-quick-action-buttons",{class:_.tx("ytPlayerQuickActionButtonsHost",(q.ytPlayerQuickActionButtonsHostCompactControls=function(){return!F()||N},q.ytPlayerQuickActionButtonsHostDisableBackdropFilter=G,q))},_.l(_.jR,{each:function(){var h=B();
if(R){h=JSON.parse(JSON.stringify(h));for(var K=_.C(h),a=K.next();!a.done;a=K.next()){var m=a.value,L=void 0;a=_.Q((L=_.Q(m,_.HP))==null?void 0:L.toggleButtonViewModel,_.WR);var W=void 0;L=_.Q((W=_.Q(m,_.kw))==null?void 0:W.toggleButtonViewModel,_.WR);W=_.Q(m,_.LV);m=_.Q(m,_.WR);if(a)L=_.Q(a.defaultButtonViewModel,_.LV),a=_.Q(a.toggledButtonViewModel,_.LV),L&&L.iconName&&(L.iconName=av[L.iconName]),a&&a.iconName&&(a.iconName=av[a.iconName]);else if(L)a=_.Q(L.defaultButtonViewModel,_.LV),L=_.Q(L.toggledButtonViewModel,
_.LV),a&&a.iconName&&(a.iconName=av[a.iconName]),L&&L.iconName&&(L.iconName=av[L.iconName]);else if(W)W.iconName&&(W.iconName=av[W.iconName]);else if(m){a=_.Q(m.defaultButtonViewModel,_.LV);L=_.Q(m.toggledButtonViewModel,_.LV);m=void 0;if((m=a)==null?0:m.iconName)a.iconName=av[a.iconName];a=void 0;if((a=L)==null?0:a.iconName)L.iconName=av[L.iconName]}}}u&&(h=mtG(h));return h}},function(h){return _.l(_.uR,{data:function(){return h}},{buttonViewModel:function(K){return _.l(_.cd,{data:K.data,
buttonOverrides:U})},
likeButtonViewModel:function(K){return _.l(_.mP,{data:K.data,buttonShapeOverrideables:U})},
dislikeButtonViewModel:function(K){return _.l(_.a8,{data:K.data,buttonShapeOverrideables:U})},
toggleButtonViewModel:function(K){return _.l(_.wl,{data:K.data,buttonShapeOverrides:U})}})}))},"bk");var SmB=function(G){_.uz.call(this);var B=this;this.JSC$21357_watchApi=G;G=_.C(_.qg({},void 0,"NNzZMe"));this.quickActionsViewModel=G.next().value;this.setQuickActionsViewModel=G.next().value;G=_.C(_.qg({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=G.next().value;this.setPlayerOverlayVideoDetailsRenderer=G.next().value;G=_.C(_.qg([],void 0,"dektd"));this.lockupViewModels=G.next().value;this.setLockupViewModels=G.next().value;G=_.C(_.qg({},void 0,"Sp5Hqf"));this.commentsButton=G.next().value;
this.setCommentsButton=G.next().value;G=_.C(_.qg({},void 0,"yDAoue"));this.descriptionButton=G.next().value;this.setDescriptionButton=G.next().value;var F=this.JSC$21357_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gxN(B)});
this.addOnDisposeCallback(function(){B.JSC$21357_watchApi.unsubscribeByKey(F)});
gxN(this)};
_.r(SmB,_.uz);
var gxN=function(G){var B,F,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b,M,t,T,A,Z,P,RI,yo;_.n(function(hg){if(hg.nextAddress==1)return hg.yield(G.JSC$21357_watchApi.playerApi,2);B=hg.yieldResult;F=G.JSC$21357_watchApi.getWatchNextResponse();R=(D=F)==null?void 0:(u=D.playerOverlays)==null?void 0:u.playerOverlayRenderer;y=_.Q((N=R)==null?void 0:N.fullscreenQuickActionsBar,_.l7w);(q=(U=G).setQuickActionsViewModel)==null||q.call(U,y||{});y&&sUU(G,B);a=(h=R)==null?void 0:(K=h.videoDetails)==null?void 0:K.playerOverlayVideoDetailsRenderer;
(L=(m=G).setPlayerOverlayVideoDetailsRenderer)==null||L.call(m,a||{});a&&xfU(G,B);if(_.X("web_player_use_external_grid_component")){var US=[],aI,v6,Jg,c6,q8=F==null?void 0:(aI=F.contents)==null?void 0:(v6=aI.twoColumnWatchNextResults)==null?void 0:(Jg=v6.secondaryResults)==null?void 0:(c6=Jg.secondaryResults)==null?void 0:c6.results;if(q8)for(aI=_.C(q8),v6=aI.next();!v6.done;v6=aI.next())if(v6=v6.value,v6.lockupViewModel)US.push(v6);else if(Jg=void 0,(Jg=v6.itemSectionRenderer)==null?0:Jg.contents)for(v6=
_.C(v6.itemSectionRenderer.contents),Jg=v6.next();!Jg.done;Jg=v6.next())Jg=Jg.value,Jg.lockupViewModel&&US.push(Jg);W=US;(b=(e=G).setLockupViewModels)==null||b.call(e,W||[]);P7A(G,B)}t=_.Q((M=R)==null?void 0:M.commentsButton,_.WR);(A=(T=G).setCommentsButton)==null||A.call(T,t||{});t&&GHN(G,B);P=_.Q((Z=R)==null?void 0:Z.descriptionButton,_.LV);(yo=(RI=G).setDescriptionButton)==null||yo.call(RI,P||{});P&&BhD(G,B);_.di(hg)})},sUU=function(G,B){if(!G.quickActionButtonsContainer)if(B.setFullscreenQuickActions){G.quickActionButtonsContainer=
document.createElement("div");
B.setFullscreenQuickActions(G.quickActionButtonsContainer);var F=function(){return G.quickActionsViewModel().quickActionButtons||[]},D=_.kf(G.quickActionButtonsContainer,function(){return _.l(ZjD,{data:F})},"ck");
G.addOnDisposeCallback(function(){B.setFullscreenQuickActions(void 0);D()})}else _.em(new _.Uf("setFullscreenQuickActions not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))},xfU=function(G,B){if(!G.playerOverlayVideoDetailsRendererContainer)if(B.setPlayerOverlayVideoDetailsRenderer){G.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
B.setPlayerOverlayVideoDetailsRenderer(G.playerOverlayVideoDetailsRendererContainer);var F=_.kf(G.playerOverlayVideoDetailsRendererContainer,function(){return _.l(trz,{data:G.playerOverlayVideoDetailsRenderer})},"dk");
G.addOnDisposeCallback(function(){B.setPlayerOverlayVideoDetailsRenderer(void 0);F()})}else _.em(new _.Uf("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))},P7A=function(G,B){if(!G.gridRendererContainer)if(B.setFullscreenGrid){G.gridRendererContainer=document.createElement("div");
B.setFullscreenGrid(G.gridRendererContainer);var F=_.kf(G.gridRendererContainer,function(){return _.l(fo2,{data:G.lockupViewModels})},"ek");
G.addOnDisposeCallback(function(){B.setFullscreenGrid(void 0);F()})}else _.em(new _.Uf("setFullscreenGrid not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))},GHN=function(G,B){if(!G.commentsButtonContainer)if(B.setCommentsButton){G.commentsButtonContainer=document.createElement("div");
B.setCommentsButton(G.commentsButtonContainer);var F=_.kf(G.commentsButtonContainer,function(){return _.l(_.wl,{data:G.commentsButton})},"fk");
G.addOnDisposeCallback(function(){B.setCommentsButton(void 0);F()})}else _.em(new _.Uf("setCommentsButton not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))},BhD=function(G,B){if(!G.descriptionButtonContainer)if(B.setDescriptionButton){G.descriptionButtonContainer=document.createElement("div");
B.setDescriptionButton(G.descriptionButtonContainer);var F=_.kf(G.descriptionButtonContainer,function(){return _.l(_.cd,{data:G.descriptionButton})},"gk");
G.addOnDisposeCallback(function(){B.setDescriptionButton(void 0);F()})}else _.em(new _.Uf("setDescriptionButton not defined",{playerApi:Object.keys(B),
isReady:B.isReady(),appState:B.getAppState()}))};var me=function(G){_.uz.call(this);var B=this;this.JSC$21363_watchApi=G;this.JSC$21363_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;G=_.Dh(_.VU(),_.aQ,function(F){B.onFullscreenChanged(F)});
this.addOnDisposeCallback(G);G=_.Dh(_.VU(),xn,function(F){B.onWatchScroll(F)});
this.addOnDisposeCallback(G);_.X("kevlar_watch_while_v2")&&(G=_.Dh(_.VU(),_.hc,function(F){i6D(B,F)}),this.addOnDisposeCallback(G));
FxZ(this);DEG(this);uCU();this.onWatchScroll(xn(_.VU().getState()));_.on("START_IN_FULL_WINDOW_MODE")&&this.JSC$21363_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.r(me,_.uz);var FxZ=function(G){G.JSC$21363_watchApi.registerActionHandler("yt-fullscreen-change-action",function(B){var F=G.JSC$21363_watchApi.isActive();B&&!F||_.VU().dispatch(_.d5({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!B}}))});
G.addOnDisposeCallback(function(){G.JSC$21363_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},DEG=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21363_watchApi.playerApi,2);B=D.yieldResult;F=function(){G.onFullerscreenEduClicked()};
B.addEventListener("onFullerscreenEduClicked",F);G.addOnDisposeCallback(function(){B.removeEventListener("onFullerscreenEduClicked",F)});
_.di(D)})};
me.prototype.onFullscreenChanged=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return B.isFullscreen=!!_.vZ(),D.yield(B.JSC$21363_watchApi.playerApi,2);F=D.yieldResult;B.JSC$21363_miniplayerActive||F.setFauxFullscreen(B.isFullscreen);if(G&&(B.JSC$21363_watchApi.focusOnPlayer(),!B.fullerscreenEduButtonShownThisPlayback)){B.fullerscreenEduButtonShownThisPlayback=!0;var u=_.np("yt-fullerscreen-edu-button-shown-count")||0;_.yW("yt-fullerscreen-edu-button-shown-count",u+1,31536E3);
B.updateFullerscreenEduButtonSubtleModeState()}_.di(D)})};
var i6D=function(G,B){var F;_.n(function(D){if(D.nextAddress==1)return G.JSC$21363_miniplayerActive=B,D.yield(G.JSC$21363_watchApi.playerApi,2);F=D.yieldResult;F.setFauxFullscreen(!G.JSC$21363_miniplayerActive&&G.isFullscreen);_.di(D)})};
me.prototype.onWatchScroll=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1)return _.X("external_fullscreen_with_edu")?u.yield(B.JSC$21363_watchApi.playerApi,2):u.return();F=u.yieldResult;D=G<=0;B.shouldShowFullerscreenEdu!==D&&(B.shouldShowFullerscreenEdu=D,F.updateFullerscreenEduButtonVisibility(!B.shouldShowFullerscreenEdu));_.di(u)})};
me.prototype.onFullerscreenEduClicked=function(){this.JSC$21363_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var G=_.np("yt-fullerscreen-edu-button-click-count")||0;_.yW("yt-fullerscreen-edu-button-click-count",G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
me.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var G=this,B,F,D,u,R,N;return _.n(function(y){if(y.nextAddress==1)return B=_.np("yt-fullerscreen-edu-button-click-count")||0,F=_.np("yt-fullerscreen-edu-button-shown-count")||0,D=_.sD("external_fullscreen_button_click_threshold"),u=_.sD("external_fullscreen_button_shown_threshold"),R=B>=D||F>=u,y.yield(G.JSC$21363_watchApi.playerApi,2);N=y.yieldResult;N.updateFullerscreenEduButtonSubtleModeState(R);_.di(y)})};
me.prototype.disposeInternal=function(){_.uz.prototype.disposeInternal.call(this);var G=_.vZ();_.X("kevlar_exit_fullscreen_leaving_watch")&&G&&_.oa(G)};
var uCU=function(){if(_.X("web_watch_add_viewport_meta_tag")){var G=document.querySelector("meta[name=viewport]"),B=document.head;B&&!G&&(G=document.createElement("meta"),G.name="viewport",G.content="width=device-width, initial-scale=1.0, viewport-fit=cover",B.appendChild(G))}};var w4$=function(G){_.uz.call(this);var B=this;this.JSC$21366_watchApi=G;this.jobId=0;this.pendingRequestId=void 0;var F=this.JSC$21366_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RQQ(B)});
this.addOnDisposeCallback(function(){B.JSC$21366_watchApi.unsubscribeByKey(F)});
RQQ(this)};
_.r(w4$,_.uz);var CKQ=function(G){_.Lu.cancelJob(G.jobId);G.pendingRequestId=void 0},RQQ=function(G){CKQ(G);
var B=XP2(G.JSC$21366_watchApi.getWatchNextResponse());if(B){var F=250,D,u=(D=_.Q(B,_.ls7))==null?void 0:D.initialDelayMs;_.X("web_watch_updated_metadata_server_initial_delay")&&u&&(F=u);G.jobId=_.Lu.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(B)},F)}};
w4$.prototype.fetchUpdatedMetadata=function(G,B){var F=this,D,u,R,N,y,U,q,h,K,a,m,L,W,e,b;return _.n(function(M){switch(M.nextAddress){case 1:B&&(D={continuation:B});if(!_.X("web_get_updated_metadata_fantasy_panel_continuation_params")){M.jumpTo(2);break}u=_.te().resolve(_.yR);R="PAsports_fantasy";return M.yield(u.isVisible(R,!0),3);case 3:M.yieldResult&&(q=(y=(N=u).getUpdatePanelContinuationData)==null?void 0:(U=y.call(N,R))==null?void 0:U.updatePanelContinuationRequest)&&(D||(D={}),D.clientParams=
{panelContinuationParams:{panelContinuation:q}});case 2:h=_.te().resolve(_.RF);if(!h)return _.k2(Error("Sl")),M.return();K={};F.pendingRequestId=K;return M.yield(_.$F(h,G,D),4);case 4:a=M.yieldResult;if(K!==F.pendingRequestId)return M.return();W=(m=a)==null?void 0:(L=m.continuation)==null?void 0:L.timedContinuationData;((e=W)==null?0:e.continuation)&&((b=W)==null?0:b.timeoutMs)&&(F.jobId=_.Lu.addLowPriorityJob(function(){return F.fetchUpdatedMetadata(G,W.continuation)},W.timeoutMs));
_.di(M)}})};
w4$.prototype.disposeInternal=function(){_.uz.prototype.disposeInternal.call(this);CKQ(this)};var NhZ=_.Y(function(G){var B=_.gJ(function(){var D=G.data().videoId;if(G.active())D=_.Ma(D),_.te().resolve(_.Wr).resolveCommand(D);else{var u=G.playerApi(),R=u.getAvailableAudioTracks(),N,y,U=(N=G.sourceVideoConfig().audioTracks)==null?void 0:(y=N.find(function(q){return q.isDefaultForSource}))==null?void 0:y.id;
if(R=R.find(function(q){return q.getLanguageInfo().getId()===U}))u.setAudioTrack(R,!0),u.setCompositeParam({activeVideoId:D}),G.setActiveSourceId(D)}}),F={};
return _.l("ytw-composite-source-video-overlay",{class:_.tx("ytwCompositeSourceVideoOverlayHost",(F.ytwCompositeSourceVideoOverlayActive=G.active,F.ytwCompositeSourceVideoOverlayInteracting=G.interacting,F)),style:_.xN({left:function(){var D;return((D=G.data().topLeftCornerX)!=null?D:0)*100+"%"},
top:function(){var D;return((D=G.data().topLeftCornerY)!=null?D:0)*100+"%"},
width:function(){var D;return((D=G.data().width)!=null?D:0)*100+"%"},
height:function(){var D;return((D=G.data().height)!=null?D:0)*100+"%"}}),
"on:click":B},_.l("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"hk");var yz$=_.Y(function(G){var B=_.C(_.d3(function(){var N,y=(N=G.data().sources)==null?void 0:N.find(function(U){return U.isActive});
if(y)return y.videoId})),F=B.next().value,D=B.next().value;
B=_.C(_.qg(!1,void 0,"rmRJ8d"));var u=B.next().value,R=B.next().value;return _.l("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.gJ(function(){R(!0)}),
"on:mouseout":_.gJ(function(){R(!1)})},_.l(_.E,{cond:function(){return G.data().sources},
then:function(N){return _.l(_.jR,{each:N},function(y){return _.l(NhZ,{data:y,active:function(){return y.videoId===F()},
setActiveSourceId:D,interacting:u,playerApi:G.playerApi,sourceVideoConfig:function(){return QCH(G.compositeVideoConfig(),y.videoId)}})})}}))},"ik");var UEA=function(G){_.uz.call(this);this.JSC$21381_watchApi=G;G=_.C(_.qg({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=G.next().value;this.setCompositeVideoOverlayRenderer=G.next().value;G=_.C(_.qg({},void 0,"OlaJpc"));this.compositeVideoConfig=G.next().value;this.setCompositeVideoConfig=G.next().value;n6D(this);l_S(this)};
_.r(UEA,_.uz);var n6D=function(G){var B=G.JSC$21381_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){l_S(G)});
G.addOnDisposeCallback(function(){G.JSC$21381_watchApi.unsubscribeByKey(B)})},q3S=function(G){var B;
return _.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$21381_watchApi.playerApi,2);B=F.yieldResult;B.setCompositeVideoOverlayRendererComponent(G.container);_.di(F)})},E62=function(G){var B;
return _.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$21381_watchApi.playerApi,2);B=F.yieldResult;B.setCompositeVideoOverlayRendererComponent(void 0);_.di(F)})},hQG=function(G){var B,F;
return _.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21381_watchApi.playerApi,2);B=D.yieldResult;G.container=document.createElement("div");F=_.kf(G.container,function(){return _.l(yz$,{data:G.compositeVideoOverlayRenderer,compositeVideoConfig:G.compositeVideoConfig,playerApi:B})},"jk");
G.addOnDisposeCallback(F);_.di(D)})},l_S=function(G){var B,F,D,u,R,N,y,U;
_.n(function(q){return q.nextAddress==1?(B=G.JSC$21381_watchApi.getPlayerResponse(),R=_.Q((F=B)==null?void 0:(D=F.overlay)==null?void 0:(u=D.playerControlsOverlayRenderer)==null?void 0:u.compositeVideoOverlay,wC2),U=(N=B)==null?void 0:(y=N.playerConfig)==null?void 0:y.compositeVideoConfig,R&&G.setCompositeVideoOverlayRenderer(R),U&&G.setCompositeVideoConfig(U),R&&U?G.container?q.jumpTo(6):q.yield(hQG(G),6):KxQ(G)?q.yield(E62(G),0):q.jumpTo(0)):KxQ(G)?q.jumpTo(0):q.yield(q3S(G),0)})},KxQ=function(G){var B;
return!((B=G.container)==null||!B.parentElement)};
UEA.prototype.disposeInternal=function(){KxQ(this)&&E62(this);_.uz.prototype.disposeInternal.call(this)};var j0G=function(G){_.uz.call(this);var B=this;this.JSC$21387_watchApi=G;var F=this.JSC$21387_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var D=B.JSC$21387_watchApi.getPlayerResponse();if(D){var u,R;if(D=_.Q((u=D.endscreen)==null?void 0:(R=u.endscreenRenderer)==null?void 0:R.hideButton,_.WR)){var N;(N=B.setEndscreenHideButton)==null||N.call(B,D);a_$(B)}}});
this.addOnDisposeCallback(function(){B.JSC$21387_watchApi.unsubscribeByKey(F)});
G=_.C(_.qg({},void 0,"ER3tqb"));this.endscreenHideButton=G.next().value;this.setEndscreenHideButton=G.next().value;mEA(this);X4S(this);Q0U(this)};
_.r(j0G,_.uz);var a_$=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return G.creatorEndscreenHideButtonContainer?D.return():D.yield(G.JSC$21387_watchApi.playerApi,2);B=D.yieldResult;G.creatorEndscreenHideButtonContainer=document.createElement("div");_.dd(G.creatorEndscreenHideButtonContainer,!1);B.setCreatorEndscreenHideButton(G.creatorEndscreenHideButtonContainer);F=_.kf(G.creatorEndscreenHideButtonContainer,function(){return _.l(_.wl,{data:G.endscreenHideButton,useOutlinedIcon:!0})},"kk");
G.addOnDisposeCallback(function(){F();var u;(u=B)==null||u.setCreatorEndscreenHideButton(void 0)});
_.di(D)})},mEA=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21387_watchApi.playerApi,2);B=D.yieldResult;F=function(){G.creatorEndscreenHideButtonContainer&&_.dd(G.creatorEndscreenHideButtonContainer,!0)};
B.addEventListener("endscreenelementshown",F);G.addOnDisposeCallback(function(){var u;(u=B)==null||u.removeEventListener("endscreenelementshown",F)});
_.di(D)})},X4S=function(G){var B=function(){G.creatorEndscreenHideButtonContainer&&_.dd(G.creatorEndscreenHideButtonContainer,!1)},F=G.JSC$21387_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",B),D=G.JSC$21387_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",B);
G.addOnDisposeCallback(function(){G.JSC$21387_watchApi.unsubscribeByKey(F);G.JSC$21387_watchApi.unsubscribeByKey(D)})},Q0U=function(G){G.JSC$21387_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(B){var F=_.Q(B,zLS);
G.JSC$21387_watchApi.playerApi.then(function(D){D==null||D.setCreatorEndscreenVisibility(!!F.hide)})});
G.addOnDisposeCallback(function(){G.JSC$21387_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var rzA=function(G){_.uz.call(this);this.JSC$21393_watchApi=G;LxH(this)};
_.r(rzA,_.uz);var LxH=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21393_watchApi.playerApi,2);B=D.yieldResult;F=function(u){_.VU().dispatch(_.d5({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:u}}))};
B.addEventListener("onRetroModeChanged",F);G.addOnDisposeCallback(function(){B.removeEventListener("onRetroModeChanged",F)});
_.di(D)})};var eO$=0,Dm=0,zOA=0;var WxD=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),Xc=function(G){_.uz.call(this);this.JSC$21410_watchApi=G;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;H6N(this)};
_.r(Xc,_.uz);
var H6N=function(G){var B,F,D;_.n(function(u){if(u.nextAddress==1)return u.yield(G.JSC$21410_watchApi.playerApi,2);B=u.yieldResult;if(G.isDisposed())return u.return();G.sessionStorage=_.USD("yt-sleep-timer");G.sessionStorage||_.em(new _.Uf("SessionStorage for Sleep Timer is undefined."));((F=G.sessionStorage)==null?void 0:F.get("yt-sleep-timer"))==="true"&&(vwB(),(D=G.sessionStorage)==null||D.remove("yt-sleep-timer"),B.syncVolume());kH$(G,B);O6G(G,B);eQ$(G,B);_.di(u)})},kH$=function(G,B){var F=function(q){G.onSleepTimerSettingsChanged(q,
B)},D=function(q){G.onPlayerStateChange(q,B)},u=function(){G.onLoopChange(B)},R=function(){G.onCloseMiniplayer(B)},N=function(){Ox$(B,(0,_.Zl)(),ow$(B),G.selectedOption==="End of video",B.getPlayerState()!==1)},y=function(){G.onSeekComplete(B)},U=function(){_.Lu.cancelJob(Dm);
var q=B.getCurrentTime()>=B.getDuration(),h=G.selectedOption==="End of video"||G.selectedOption==="End of playlist"&&!WhS(G.playlistId);q&&h&&$EN(G,B)};
B.addEventListener("onSleepTimerSettingsChanged",F);B.addEventListener("onLoopChange",u);B.addEventListener("onLoopRangeChange",u);B.addEventListener("onStateChange",D);B.addEventListener("onCloseMiniplayer",R);B.addEventListener("onSleepTimerFeatureAvailable",N);B.addEventListener("SEEK_COMPLETE",y);B.addEventListener("onAdStart",U);G.addOnDisposeCallback(function(){B.removeEventListener("onSleepTimerSettingsChanged",F);B.removeEventListener("onLoopChange",u);B.removeEventListener("onLoopRangeChange",
u);B.removeEventListener("onStateChange",D);B.removeEventListener("onCloseMiniplayer",R);B.removeEventListener("onSleepTimerFeatureAvailable",N);B.removeEventListener("SEEK_COMPLETE",y);B.removeEventListener("onAdStart",U)})},O6G=function(G,B){var F=G.JSC$21410_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var D=B.getVideoData().video_id,u,R=(u=LhN(G.JSC$21410_watchApi))==null?void 0:u.playlistId;
G.pauseAutonavPlayback&&(B.pauseVideo(),B.syncVolume(),G.pauseAutonavPlayback=!1);if(G.selectedOption==="End of video"&&D!==G.videoId)QJ(G,B);else{if(G.selectedOption==="End of playlist"){u=WhS(G.playlistId);if(R!==G.playlistId){QJ(G,B);break a}u?u&&zQU(G,B):b6S(G,B)}G.videoId=D;G.playlistId=R}}});
G.addOnDisposeCallback(function(){G.JSC$21410_watchApi.unsubscribeByKey(F)})},eQ$=function(G,B){var F=_.te().resolve(_.Ep),D=_.Dh(F,_.O3J,function(R){R&&G.selectedOption!=="Off"&&QJ(G,B)}),u=G.JSC$21410_watchApi.subscribeToActiveChanged(function(R){var N,y;
return _.n(function(U){if(U.nextAddress==1)return U.yield(_.Bv().navigationFinishPromise,2);N=!_.bPt();y=_.te().resolve(_.WP).isMiniplayerActive();R||!jCD(G.selectedOption)||y||N||QJ(G,B);_.di(U)})},!1);
F=_.Dh(F,function(R){return R.entities.playlistLoopStateEntity||{}},function(R){R=R===void 0?{}:R;
var N=r1$(G.JSC$21410_watchApi);if(N){var y;((y=R[N])==null?void 0:y.state)==="PLAYLIST_LOOP_STATE_ALL"&&jCD(G.selectedOption)&&QJ(G,B)}});
G.addOnDisposeCallback(D);G.addOnDisposeCallback(F);G.addOnDisposeCallback(u)};
Xc.prototype.onSleepTimerSettingsChanged=function(G,B){switch(G){case "Off":this.selectedOption!=="Off"&&QJ(this,B);break;case "End of video":case "End of playlist":Vu$(this,G,B);break;default:Vu$(this,G,B,WxD.get(G))}};
Xc.prototype.onLoopChange=function(G){(G.getLoopVideo()||G.getLoopRange())&&jCD(this.selectedOption)&&QJ(this,G)};
Xc.prototype.onCloseMiniplayer=function(G){jCD(this.selectedOption)&&QJ(this,G)};
var Vu$=function(G,B,F,D){v6U(G,F);G.selectedOption=B;G.videoId=F.getVideoData().video_id;G.playlistId="";var u;(u=G.sessionStorage)==null||u.set("yt-sleep-timer","true");G.adjustmentsCount++;Ox$(F,(0,_.Zl)(),ow$(F),G.selectedOption==="End of video");if(G.selectedOption==="End of video")b6S(G,F),o6A(G,F);else if(G.selectedOption==="End of playlist"){o6A(G,F);var R,N;G.playlistId=(N=(R=LhN(G.JSC$21410_watchApi))==null?void 0:R.playlistId)!=null?N:"";WhS(G.playlistId)||b6S(G,F)}else D&&(G.presetFadeSchedulerId=
_.yH(_.Lu,function(){bxU(F,15E3)},D-15E3),G.presetPauseSchedulerId=_.yH(_.Lu,function(){$EN(G,F)},D),$tB(F,(0,_.Zl)(),D))},$EN=function(G,B){if(G.JSC$21410_watchApi.isActive()){var F={dismissDialogEndpoint:{}};
var D={commandExecutorCommand:{commands:[F,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};F={buttonViewModel:{title:_.G7("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:F}}};D={buttonViewModel:{title:_.G7("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:D}}};var u={dialogHeaderViewModel:{headline:{content:_.G7("SLEEP_TIMER_ENDED_TITLE")}}},
R={basicContentViewModel:{paragraphs:[{text:{content:_.G7("SLEEP_TIMER_ENDED_TEXT")}}]}};F={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:u,content:R,footer:{panelFooterViewModel:{primaryButton:F,secondaryButton:D,shouldHideDivider:!0}}}}}}};_.te().resolve(_.Wr).resolveCommand(F,{form:{element:G}})}else vwB();Muz(G,!1);p42(G,B);B.pauseVideo();_.M_.getInstance().getState()===2&&B.getPlayerState()===5&&(G.pauseAutonavPlayback=!0)},QJ=function(G,B){Muz(G,!0);
p42(G,B);vwB()},p42=function(G,B){v6U(G,B);
G.selectedOption="Off";G.videoId="";G.playlistId="";G.adjustmentsCount=0;var F;(F=G.sessionStorage)==null||F.remove("yt-sleep-timer");_.Lu.cancelJob(eO$);B.resetSleepTimerMenuSettings()},Muz=function(G,B){B={timer_length_adjustment_times_during_session:G.adjustmentsCount-1,
is_session_cancelled:B};switch(G.selectedOption){case "Off":B.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":B.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":B.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:B.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",B.option_duration_in_minutes=WxD.get(G.selectedOption)/6E4}_.W$("sleepTimerSessionFinishEvent",B)};
Xc.prototype.onPlayerStateChange=function(G,B){G===1?Ox$(B,(0,_.Zl)(),ow$(B),this.selectedOption==="End of video"):G===0?(_.Lu.cancelJob(Dm),B.setVideoTimeLeft(kdQ(0,0))):G===2&&_.Lu.cancelJob(Dm);this.selectedOption==="End of video"?G===0?$EN(this,B):G===2&&VTz(B):this.selectedOption!=="End of playlist"||WhS(this.playlistId)||(G===0?$EN(this,B):G===2&&VTz(B))};
Xc.prototype.onSeekComplete=function(G){G.getPlayerState()===2&&Ox$(G,(0,_.Zl)(),ow$(G),this.selectedOption==="End of video",!0)};
Xc.prototype.onCueRangeEnter=function(G,B){G==="sleep-timer-fade-audio"&&bxU(B,(B.getDuration()-B.getProgressState().current)*1E3)};
Xc.prototype.onCueRangeExit=function(G,B){G==="sleep-timer-fade-audio"&&B.getPlayerState()!==0&&VTz(B,!0)};
var b6S=function(G,B){B.addCueRange("sleep-timer-fade-audio",B.getDuration()-15,B.getDuration());B.addEventListener("onCueRangeEnter",function(F){G.onCueRangeEnter(F,B)});
B.addEventListener("onCueRangeExit",function(F){G.onCueRangeExit(F,B)})},zQU=function(G,B){B.removeCueRange("sleep-timer-fade-audio");
B.removeEventListener("onCueRangeEnter",function(F){G.onCueRangeEnter(F,B)});
B.removeEventListener("onCueRangeExit",function(F){G.onCueRangeExit(F,B)})},v6U=function(G,B){jCD(G.selectedOption)?zQU(G,B):(_.Lu.cancelJob(G.presetPauseSchedulerId),_.Lu.cancelJob(G.presetFadeSchedulerId),G.presetPauseSchedulerId=0,G.presetFadeSchedulerId=0);
VTz(B,!0)},o6A=function(G,B){B.setLoop(!1);
B.setLoopVideo(!1);B.setLoopRange(null);(G=r1$(G.JSC$21410_watchApi))&&_.te().resolve(_.Ep).dispatch(_.wC("playlistLoopStateEntity",G,{key:G,state:"PLAYLIST_LOOP_STATE_NONE"}))};var czG=function(G){_.uz.call(this);var B=this;this.JSC$21413_watchApi=G;_.X("web_watch_force_start_in_theater_mode")&&Y3z(this,!0,!1);AzU(this);dED(this);Jzz(this);var F=this.JSC$21413_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.sD("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.C8.get("wide",void 0)==="1"&&_.NS("wide","1",_.sD("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){B.JSC$21413_watchApi.unsubscribeByKey(F)});
G=G.getRoot();if(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-grid")G.onTheaterReduxValueUpdate(this.getState());this.getState()&&UDD();_.X("web_watch_log_theater_mode_cookie_state")&&_.C8.get("wide","0")==="1"&&_.Z0S("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.r(czG,_.uz);var AzU=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21413_watchApi.playerApi,2);B=D.yieldResult;F=function(u){Y3z(G,!!u)};
B.addEventListener("SIZE_CLICKED",F);G.addOnDisposeCallback(function(){B.removeEventListener("SIZE_CLICKED",F)});
_.di(D)})},dED=function(G){G.JSC$21413_watchApi.registerActionHandler("yt-toggle-theater-mode",function(B,F){Y3z(G,B,F===void 0?!0:F)});
G.addOnDisposeCallback(function(){G.JSC$21413_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
czG.prototype.getState=function(){return _.KA(_.VU().getState())};
var Y3z=function(G,B,F){F=F===void 0?!0:F;var D,u,R,N=_.X("enable_player_resize_transition")&&!!G.JSC$21413_watchApi.getWatchNextResponse()&&!((D=G.JSC$21413_watchApi.getWatchNextResponse())==null?0:(u=D.contents)==null?0:(R=u.twoColumnWatchNextResults)==null?0:R.conversationBar);uhD(function(){_.VU().dispatch(_.d5({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:B}}));_.X("theater_mode_scroll_to_top_killswitch")||G.JSC$21413_watchApi.scrollWatchTo(0,!1);_.vZ()&&_.X("external_fullscreen")&&_.oa(document.documentElement);
Jzz(G);F&&_.NS("wide",B?"1":"0",_.sD("theater_mode_cookie_max_age_seconds",-1));_.T1(G.JSC$21413_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);G.JSC$21413_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:B});B&&UDD()},{shouldWrap:N})},Jzz=function(G){var B;
_.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$21413_watchApi.playerApi,2);B=F.yieldResult;B.setSizeStyle(!0,G.getState());_.di(F)})};var f_G=function(G){_.uz.call(this);var B=this;this.playerApi=G;this.timeToPanelSyncKeyMap={};var F;if(G==null?0:(F=G.isReady)==null?0:F.call(G)){F=_.Dh(_.te().resolve(_.Ep),function(u){return u.entities.timedMarkersListSyncEntity||{}},function(u,R){u=u===void 0?{}:u;
R=R===void 0?{}:R;for(var N=_.C(Object.keys(R)),y=N.next();!y.done;y=N.next())y=y.value,u[y]!==R[y]&&Th2(B,R[y]);R=_.C(Object.keys(u));for(N=R.next();!N.done;N=R.next())N=N.value,y=u[N],B.timeToPanelSyncKeyMap[N]&&I_A(B,y)});
this.addOnDisposeCallback(F);var D=function(u){B.onCueRangeEnter(u)};
G.addEventListener("onCueRangeEnter",D);this.addOnDisposeCallback(function(){var u;(u=G.removeEventListener)==null||u.call(G,"onCueRangeEnter",D)})}};
_.r(f_G,_.uz);
var I_A=function(G,B){var F,D;if((F=G.playerApi)==null?0:(D=F.isReady)==null?0:D.call(F)){var u;if((F=B==null?void 0:(u=B.timedListData)==null?void 0:u.sections)&&B!=null&&B.key)for(u=_.C(F),F=u.next();!F.done;F=u.next())if(F=F.value,F.timedSyncDataList&&F.sectionId)for(D=0;D<F.timedSyncDataList.length;D++){var R=F.timedSyncDataList[D];R.syncItemId&&G.playerApi.addCueRange(F.sectionId+"_"+B.key+"_"+R.syncItemId,Number(R.videoTimeMs)/1E3,D===F.timedSyncDataList.length-1?0x8000000000000:Number(F.timedSyncDataList[D+
1].videoTimeMs)/1E3)}}},Th2=function(G,B){var F,D;
if((F=G.playerApi)==null?0:(D=F.isReady)==null?0:D.call(F)){var u;if((F=B==null?void 0:(u=B.timedListData)==null?void 0:u.sections)&&B!=null&&B.key)for(u=_.C(F),F=u.next();!F.done;F=u.next())if(F=F.value,F.timedSyncDataList&&F.sectionId){D=_.C(F.timedSyncDataList);for(var R=D.next();!R.done;R=D.next())R=R.value,R.syncItemId&&G.playerApi.removeCueRange(F.sectionId+"_"+B.key+"_"+R.syncItemId)}}};
f_G.prototype.onCueRangeEnter=function(G){for(var B=_.C(Object.keys(this.timeToPanelSyncKeyMap)),F=B.next();!F.done;F=B.next()){F=F.value;var D=_.C(G.split("_"+F+"_")),u=D.next().value;D=D.next().value;if(u&&D){G=_.te().resolve(_.Ep);B=this.timeToPanelSyncKeyMap[F];var R=_.o4g(G.getState(),B);F=tuZ(F,u,D);if(F===-1)break;F={activeSyncId:D,activeItemIndex:F,activeSectionInfo:{sectionIdentifier:u}};R?G.dispatch(_.mH("markersEngagementPanelSyncEntity",B,F)):G.dispatch(_.wC("markersEngagementPanelSyncEntity",
B,Object.assign({},{key:B},F)));break}}};
var tuZ=function(G,B,F){var D=_.te().resolve(_.Ep),u,R;G=(u=gID(D.getState(),G))==null?void 0:(R=u.timedListData)==null?void 0:R.sections;if(!G)return-1;u=0;R=_.C(G);for(G=R.next();!G.done;G=R.next()){G=G.value;D=G.timedSyncDataList||[];if(G.sectionId===B)return B=D.findIndex(function(N){return N.syncItemId===F}),B===-1?B:u+B;
u+=D.length}return-1};var S3Z=function(G){_.uz.call(this);var B=this;this.JSC$21427_watchApi=G;this.unresolvedCommands=[];this.JSC$21427_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(F){Z6$(B,F)});
this.addOnDisposeCallback(function(){B.JSC$21427_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
g6Q(this)};
_.r(S3Z,_.uz);var g6Q=function(G){var B;_.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$21427_watchApi.playerApi,2);B=F.yieldResult;if(G.isDisposed())return F.return();G.timedSyncObserver=new f_G(B);G.unresolvedCommands.length&&(G.unresolvedCommands.forEach(function(D){return Z6$(G,D)}),G.unresolvedCommands=[]);
_.gq(G,G.timedSyncObserver);_.di(F)})},Z6$=function(G,B){if(G.timedSyncObserver){var F=_.Q(B,MK$);
if(F&&F.timedSyncEntityKey&&F.panelSyncEntityKey){G=G.timedSyncObserver;B=F.timedSyncEntityKey;var D=F.panelSyncEntityKey;F=!!F.isEnabled;F=F===void 0?!0:F;var u=_.te().resolve(_.Ep);u=gID(u.getState(),B);F?G.timeToPanelSyncKeyMap[B]||(G.timeToPanelSyncKeyMap[B]=D,I_A(G,u)):(delete G.timeToPanelSyncKeyMap[B],Th2(G,u))}}else G.unresolvedCommands.push(B)};var s0$=_.Y(function(G){var B=G.data,F=G.maybeLogSmartSkipClientData,D=null,u=null,R=_.X("web_enable_auto_focus_for_timely_action_button"),N=function(){D=document.activeElement},y=function(){B().smartSkipMetadata&&(D=document.activeElement,_.KjH(function(){return u}))},U=function(h){if(B().smartSkipMetadata&&(!h||h.key!=="Enter")){D&&D.isConnected&&(_.KjH(function(){return D}),D=null);
var K;(K=u)==null||K.blur()}};
G=_.gJ(function(){F==null||F(!0,B());return!1});
var q=_.VX(_.mR(function(){return B().rendererContext},{onTap:function(h,K){K({disableClickTracking:!0})}}),_.tb({visibilityCallback:function(h){if(R)h?u&&B().smartSkipMetadata&&(y(),document.addEventListener("focusin",N)):(document.removeEventListener("focusin",N),U());
else if(h){h=_.Kh(B().rendererContext);var K=Number(B().maxVisibleDurationMilliseconds),a,m=(a=_.Q(B().rendererContext,_.yL))==null?void 0:a.label;h&&K&&m&&(a={label:m,command:h,durationMs:K},_.te().resolve(_.XI).enqueue(a))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.eR(function(){if(R){var h;if((u=(h=q.value)==null?void 0:h.querySelector("button"))&&B().smartSkipMetadata){var K;(K=q.value)==null||K.addEventListener("keydown",U)}}});
_.VI(function(){R&&(u&&B().smartSkipMetadata&&u.removeEventListener("keydown",U),document.removeEventListener("focusin",N),U())});
return _.l("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:q,"on:click":G},_.l(_.uR,{data:function(){return B().content}},{buttonViewModel:_.cd}))},"mk");var xEA=_.Y(function(G){var B=G.data,F=G.playerApi,D=_.te().resolve(_.CBU);G=_.C(_.d3(function(){B()}));
var u=G.next().value,R=G.next().value,N=function(){return Y$z(B(),u())},y=function(q,h){var K,a,m=(K=_.Q(h==null?void 0:h.rendererContext,_.wJ))==null?void 0:(a=K.loggingDirectives)==null?void 0:a.trackingParams;
if((h=h==null?void 0:h.smartSkipMetadata)&&h.loggingData&&(a=h.loggingData,h=a.algorithmId,K=a.startMilliseconds,a=a.endMilliseconds,h&&K!==void 0&&a!==void 0)){var L,W;q={smartSkipData:Object.assign({},{versionName:h,startMediaTimeMs:K,endMediaTimeMs:a},q&&{userInteractionMediaTimeMs:(Math.floor(((L=_.AZ())==null?void 0:(W=L.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};L=_.qW();var e;m&&(e=_.yX(m));L&&e&&_.bf(L,e,q)}},U=function(q,h){var K=Y$z(B(),q);
if(K){var a=_.Q(K,pP$),m;if(m=h)m=F(),K=_.Q(K,pP$),m=K!=null&&K.smartSkipMetadata?!(m==null?0:m.isSameMarkerTypeVisible((K==null?void 0:K.smartSkipMetadata.markerKey)||"")):!0;if(m){var L,W;(a==null?0:(L=a.smartSkipMetadata)==null?0:(W=L.loggingData)==null?0:W.isCounterfactual)||(y(!1,a),R(q))}else h||u()!==q||R(void 0)}};
_.bC(function(){var q=B().timelyActions;if(q){q=_.C(q);for(var h=q.next();!h.done;h=q.next()){h=_.Q(h.value,pP$);var K=void 0;(K=h)!=null&&K.cueRangeId&&D.timelyActionsMap.set(h.cueRangeId,U)}_.VI(function(){D.timelyActionsMap.clear()})}},"l2RtC");
return _.l("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.l(_.uR,{data:N},{timelyActionViewModel:function(q){return _.l(s0$,{data:q.data,maybeLogSmartSkipClientData:function(){y(!0,_.Q(N(),pP$))}})}}))},"ok");var GwQ=function(G){_.uz.call(this);this.JSC$21440_watchApi=G;G=_.C(_.qg({},void 0,"UN7k5e"));this.timelyActionsOverlay=G.next().value;this.setTimelyActionsOverlay=G.next().value;PKD(this)};
_.r(GwQ,_.uz);var PKD=function(G){var B,F,D,u;_.n(function(R){if(R.nextAddress==1)return BMS(G),i5D(G),G.timelyActionsContainer=document.createElement("div"),R.yield(G.JSC$21440_watchApi.playerApi,2);B=R.yieldResult;(D=(F=B).insertTimelyActionUi)==null||D.call(F,G.timelyActionsContainer);u=_.kf(G.timelyActionsContainer,function(){return _.l(xEA,{data:G.timelyActionsOverlay,playerApi:B})},"pk");
G.addOnDisposeCallback(u);_.di(R)})},i5D=function(G){var B=G.JSC$21440_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BMS(G)});
G.addOnDisposeCallback(function(){G.JSC$21440_watchApi.unsubscribeByKey(B)})},BMS=function(G){var B=G.JSC$21440_watchApi.getWatchNextResponse();
if(B){var F,D;if(B=_.Q((F=B.playerOverlays)==null?void 0:(D=F.playerOverlayRenderer)==null?void 0:D.timelyActionsOverlayViewModel,AYG)){var u;(u=G.setTimelyActionsOverlay)==null||u.call(G,B)}}};var DxU=function(G){_.uz.call(this);this.JSC$21444_watchApi=G;FeG(this)};
_.r(DxU,_.uz);var FeG=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21444_watchApi.playerApi,2);B=D.yieldResult;F=function(u){_.Gm.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Q(u,SWD)},popupType:"TOAST"}})};
B.addEventListener("onYtShowToast",F);G.addOnDisposeCallback(function(){B.removeEventListener("onYtShowToast",F)});
_.di(D)})};var ucz=function(G){var B=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.tc;this.element.addEventListener("load",function(){B.loaded=!0;B.resolver.resolve(B.element)});
this.element.addEventListener("error",function(){B.failed=!0});
this.element.src=G};var Rl2=function(G,B){this.image=G;this.frame=B};
Rl2.prototype.drawToCanvas=function(G,B){var F=this.frame.width/this.frame.columns,D=this.frame.height/this.frame.rows,u=B.offsetX,R=B.offsetY;A1Z(B)?(G.fillStyle=B.fullscreen?"#000":"#0f0f0f",G.fillRect(u,R,(B==null?void 0:B.width)||F,(B==null?void 0:B.height)||D)):G.drawImage(this.image,this.frame.column*F,this.frame.row*D,F,D,u,R,(B==null?void 0:B.width)||F,(B==null?void 0:B.height)||D)};
var wGZ=function(G){this.color=G};
wGZ.prototype.drawToCanvas=function(G,B){var F=B.offsetX,D=B.offsetY,u=B.width,R=B.height;G.fillStyle=A1Z(B)?B.fullscreen?"#000":"#0f0f0f":this.color;G.fillRect(F,D,u,R)};var jS=function(G,B){eX.call(this);this.playerApi=B;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.$i(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Cr$(this,G);NMQ(this);this.update()};
_.r(jS,eX);jS.prototype.addEventListeners=function(){var G=this,B=function(){G.update()},F=function(u){G.paused||(u.type==="newdata"&&(G.mosaics.clear(),y$$(G),L5(G)),NMQ(G),G.update())},D=function(){G.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",B);this.playerApi.addEventListener("onVideoDataChange",F);this.playerApi.addEventListener("onStateChange",D);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoProgress",B);G.playerApi.removeEventListener("onVideoDataChange",F);G.playerApi.removeEventListener("onStateChange",D)})};
var Cr$=function(G,B){G.cinematicContainerRenderer!==B&&(G.cinematicContainerRenderer=B,y$$(G),L5(G),G.colorStoreUpdateJobId=_.Lu.addLowPriorityJob(function(){var F;if((F=G.cinematicContainerRenderer.colorStore)!=null&&F.sampledColors){F=Infinity;for(var D=_.C(G.cinematicContainerRenderer.colorStore.sampledColors),u=D.next();!u.done;u=D.next()){u=u.value;var R=Number(u.key);R!==0&&R<F&&(F=R);R=_.Kp(u.value);G.colorStore.set(u.key,R)}G.colorStoreTimeInterval=F}}))},y$$=function(G){G.colorStoreUpdateJobId&&
(_.Lu.cancelJob(G.colorStoreUpdateJobId),G.colorStoreUpdateJobId=void 0);
G.colorStore.clear();G.currentStoryboardColor=void 0},nXz=function(G,B){var F;
return(F=G.getStoryboardFrame(B))==null?void 0:F.url};
jS.prototype.onPlayerStateChange=function(){this.update()};
jS.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var NMQ=function(G){var B=G.getStoryboardFrame(0);B&&(B=new _.$i(B.width/B.columns,B.height/B.rows),K$$(G.currentStoryboardSize,B)||(G.currentStoryboardSize=B,G.publish("STORYBOARD_SIZE_CHANGED",G.currentStoryboardSize)))},lYD=function(G,B){G.currentStoryboardIndex=B;
G.pendingStoryboardIndex=NaN;B=G.getStoryboardFrame(G.currentStoryboardIndex);G.currentStoryboard=new Rl2(G.mosaics.get(B.url).element,B);G.publish("STORYBOARD_CHANGED",G.currentStoryboard);G.lastUpdateTime=(0,_.Zl)()};
jS.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var L5=function(G){G.currentStoryboardIndex=NaN;G.pendingStoryboardIndex=NaN;G.currentStoryboard&&(G.currentStoryboard=void 0,G.publish("STORYBOARD_CHANGED",void 0));G.lastUpdateTime=NaN};
jS.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)L5(this);else{var G=this.playerApi.getPlayerState(1);if(G===-1||G===5||G===0)L5(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Zl)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(G=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){G=""+Math.round(G*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var B=this.colorStore.get(G);B?B!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=B,this.currentStoryboard=new wGZ(B),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Zl)()):(_.em(new _.Uf("Could not find color for timestamp: "+G,this.cinematicContainerRenderer)),L5(this))}else L5(this);else Ux$(this,G)}};
var Ux$=function(G,B){var F=G.getStoryboardFrameIndex(B);if(F!==G.currentStoryboardIndex&&F!==G.pendingStoryboardIndex){B=nXz(G,F);var D=G.mosaics.get(B);D?D.loaded&&lYD(G,F):(G.pendingStoryboardIndex=F,F=new ucz(B),G.mosaics.set(B,F),F.resolver.promise.then(function(){if(!G.isDisposed()&&!G.paused&&!isNaN(G.pendingStoryboardIndex)){var u=nXz(G,G.pendingStoryboardIndex);if(u){var R;(R=G.mosaics.get(u))!=null&&R.loaded&&lYD(G,G.pendingStoryboardIndex)}else L5(G)}}))}};
jS.prototype.getStoryboardFrameIndex=function(G){var B=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(G,B)};
jS.prototype.getStoryboardFrame=function(G){var B=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,F,D;return((D=(F=this.playerApi).getStoryboardFrame)==null?void 0:D.call(F,G,B))||null};
jS.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var WG=function(G,B,F,D){D=D===void 0?!1:D;_.uz.call(this);this.cinematicContainerRenderer=B;this.playerApi=F;this.theater=this.fullscreen=!1;var u;this.ambientLightThemeEnabled=!D&&!!(B==null?0:(u=B.config)==null?0:u.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=D)&&!0;this.container=document.createElement("div");G.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);qk$(this);this.backCanvas=
dtZ();this.frontCanvas=dtZ();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new jS(B,this.playerApi);_.gq(this,this.storyboardManager);this.addEventListeners();EXD(this)?hl2(this,100+rM(this)*3*2,100+rM(this)*3*2):Kez(this);aYG(this,this.storyboardManager.currentStoryboard)};
_.r(WG,_.uz);
var qk$=function(G){var B=G.playerApi.getVideoAspectRatio();_.ee(G.container,{"aspect-ratio":""+B,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var F;var D;if((G.fullscreen||G.theater)&&((F=G.cinematicContainerRenderer.config)==null?0:(D=F.watchFullscreenConfig)==null?0:D.colorSourceWidthMultiplier))F=G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var u;F=(u=
G.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?u:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var R,N;if((G.fullscreen||G.theater)&&((R=G.cinematicContainerRenderer.config)==null?0:(N=R.watchFullscreenConfig)==null?0:N.colorSourceHeightMultiplier))u=G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var y;u=(y=G.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?y:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.ee(G.innerContainer,
{"aspect-ratio":""+B,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+F+", "+u+")"});J1S()&&_.ee(G.innerContainer,"filter","blur("+_.sD("cinematic_watch_css_filter_blur_strength",40)+"px)")};
WG.prototype.setFullscreen=function(G,B){this.fullscreen=G;this.theater=!!B;qk$(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),G=this.storyboardManager.currentStoryboard,mx$(this),G&&XGQ(this,G)};
WG.prototype.addEventListeners=function(){var G=this,B=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(u){aYG(G,u)}),F=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Kez(G)});
this.addOnDisposeCallback(function(){G.storyboardManager.unsubscribeByKey(B);G.storyboardManager.unsubscribeByKey(F)});
var D=function(){qk$(G)};
this.playerApi.addEventListener("onVideoDataChange",D);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoDataChange",D)})};
var Kez=function(G){if(!EXD(G)){var B=G.storyboardManager.currentStoryboardSize;isNaN(B.width)||isNaN(B.height)||hl2(G,Number(B.width)+rM(G)*3*2,Number(B.height)+rM(G)*3*2)}},hl2=function(G,B,F){G.backCanvas.element.width=B;
G.backCanvas.element.height=F;G.frontCanvas.element.width=B;G.frontCanvas.element.height=F},EXD=function(G){return G.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},aYG=function(G,B,F){F=F===void 0?!1:F;
var D=G.frontCanvas.element.getAnimations()[0];D?(D.pause(),G.backCanvas.context.globalAlpha=Number(getComputedStyle(G.frontCanvas.element).opacity),G.frontCanvas.element.style.opacity="0",D.finish()):G.backCanvas.context.globalAlpha=1;G.backCanvas.context.drawImage(G.frontCanvas.element,0,0,G.backCanvas.element.width,G.backCanvas.element.height);mx$(G);B&&XGQ(G,B);B=B?G.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.sD("cinematic_watch_fade_out_duration",500);D=_.sD("cinematic_watch_transition_frame_rate")/
1E3;var u={};D&&(u={easing:"steps("+Math.round(B*D)+")"});(F===void 0?0:F)||G.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:B,iterations:1},u));G.frontCanvas.element.style.opacity="1"},mx$=function(G){var B=G.ambientLightThemeEnabled||G.ambientTheaterModeEnabled,F=G.ambientLightThemeEnabled||G.ambientFullscreenEnabled;
G.frontCanvas.context.fillStyle=G.theater&&B||G.fullscreen&&F?"#000":"#0f0f0f";J1S()||(G.frontCanvas.context.filter="blur(0)");G.frontCanvas.context.fillRect(0,0,G.frontCanvas.element.width,G.frontCanvas.element.height)},XGQ=function(G,B){J1S()||(G.frontCanvas.context.filter="blur("+rM(G)+"px)");
G.frontCanvas.context.globalAlpha=G.fullscreen&&G.ambientFullscreenEnabled||G.theater&&G.ambientTheaterModeEnabled?_.sD("cinematic_watch_effect_letterbox_opacity",.4):_.sD("cinematic_watch_effect_opacity",.4);var F={offsetX:rM(G)*3,offsetY:rM(G)*3,theater:G.theater,fullscreen:G.fullscreen};EXD(G)&&(F.width=100,F.height=100);B.drawToCanvas(G.frontCanvas.context,F);G.frontCanvas.context.globalAlpha=1},rM=function(G){var B;
return(B=G.cinematicContainerRenderer.config.blurStrength)!=null?B:5};
WG.prototype.disposeInternal=function(){_.uz.prototype.disposeInternal.call(this);this.container.remove()};
WG.prototype.clear=function(){aYG(this,void 0,!0)};
WG.prototype.pause=function(){this.storyboardManager.pause()};var Qv2=_.El(function(){var G,B,F=!((B=(G=document.createElement("canvas")).getContext)==null||!B.call(G,"2d")),D;G=!((D=CSS)==null||!D.supports("filter: blur(0)"));D=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var u;return F&&G&&D&&!((u=CSS)==null||!u.supports("aspect-ratio: 1 / 1"))}),HG=function(G,B){eX.call(this);
this.container=G;this.playerApi=B;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=jvB(this);this.update()};
_.r(HG,eX);var LeQ=function(G){var B=document.documentElement.hasAttribute("dark");G.isDarkModeEnabled=B;G.update()},r$G=function(G,B){G.settingEnabled=B;
G.update()};
HG.prototype.setFullscreen=function(G,B){this.fullscreen=G;this.theater=!!B;this.update()};
var WeZ=function(G,B){G.cinematicContainerRenderer=B;G.cinematicContainerRenderer&&(G.cinematicsVe=_.ge(G.isShorts()?227858:159022),_.Zx(_.Rh(),G.cinematicsVe),G.loggingClientData={watchCinematicContainerData:{presentationStyle:G.cinematicContainerRenderer.presentationStyle}});G.update()};
HG.prototype.isShorts=function(){var G,B;return((G=this.cinematicContainerRenderer)==null?void 0:(B=G.config)==null?void 0:B.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
HG.prototype.isAllowed=function(){var G;if(G=Qv2()){var B,F,D;G=((F=this.cinematicContainerRenderer)==null?void 0:F.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((D=this.cinematicContainerRenderer)==null||!D.colorStore)||((B=this.cinematicContainerRenderer)==null?void 0:B.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(G)if(_.X("web_cinematics_pausing")){var u,R;G=this.isDarkModeEnabled||!!((u=this.cinematicContainerRenderer)==
null?0:(R=u.config)==null?0:R.enableInLightTheme)}else{var N,y;u=!!((N=this.cinematicContainerRenderer)==null?0:(y=N.config)==null?0:y.enableInLightTheme)&&(_.v5("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);G=this.isDarkModeEnabled||u}if(N=G){var U,q;N=!((q=(U=this.prefersReducedMotionQuery)==null?void 0:U.matches)!=null&&q)}return N};
var H5G=function(G){var B;(B=G.currentCinematicEffect)==null||B.clear()},kwA=function(G){var B;
(B=G.currentCinematicEffect)==null||B.pause()},O5N=function(G){(G=G.currentCinematicEffect)!=null&&(G=G.storyboardManager,G.paused=!1,NMQ(G),G.update())};
HG.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var jvB=function(G){if(!_.X("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var B=window.matchMedia("(prefers-reduced-motion: reduce)"),F=function(){G.update()};
B.addListener(F);G.addOnDisposeCallback(function(){B.removeListener(F)});
return B}};
HG.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var G=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new WG(this.container,G,this.playerApi,this.isDarkModeEnabled),_.gq(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var B=this.currentCinematicEffect;B.cinematicContainerRenderer!==
G&&(B.cinematicContainerRenderer=G,Cr$(B.storyboardManager,G),qk$(B));G=_.D4();_.uf(0,194,!0);G.save();G=_.qW();this.cinematicsVe&&G&&_.Oq(G,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(G=_.qW(),this.cinematicsVe&&G&&_.eD(G,[this.cinematicsVe],!1,this.loggingClientData),_.ve(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.ZN.Object.defineProperties(HG.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var el$=!1,VSD=function(G){_.uz.call(this);this.JSC$21477_watchApi=G;this.fullscreen=this.theater=!1;$xD(this);zl$(this);b5N(this)};
_.r(VSD,_.uz);var b5N=function(G){var B,F,D;_.n(function(u){if(u.nextAddress==1)return u.yield(G.JSC$21477_watchApi.playerApi,2);B=u.yieldResult;if(G.isDisposed())return u.return();F=G.JSC$21477_watchApi.getElement("CINEMATICS");if(!F)return u.return();G.JSC$21477_cinematicController=new HG(F,B);_.gq(G,G.JSC$21477_cinematicController);LeQ(G.JSC$21477_cinematicController);vX$(G,_.Lsz());D=G.JSC$21477_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(R){oXD(G,R)});
G.addOnDisposeCallback(function(){G.JSC$21477_watchApi.unsubscribeByKey(D)});
MSB(G);oXD(G,G.JSC$21477_cinematicController.isAllowed());pGZ(G);YkU(G);_.di(u)})},pGZ=function(G){G.fullscreen=_.aQ(_.VU().getState());
G.theater=_.KA(_.VU().getState());A$H(G,G.fullscreen,G.theater);var B=_.Dh(_.VU(),_.aQ,function(D){G.fullscreen=D;A$H(G,G.fullscreen,G.theater)}),F=_.Dh(_.VU(),_.KA,function(D){G.theater=D;
A$H(G,G.fullscreen,G.theater)});
G.addOnDisposeCallback(B);G.addOnDisposeCallback(F)},$xD=function(G){var B=G.JSC$21477_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MSB(G)});
G.addOnDisposeCallback(function(){G.JSC$21477_watchApi.unsubscribeByKey(B)})},zl$=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21477_watchApi.playerApi,2);B=D.yieldResult;F=function(u){vX$(G,u)};
B.addEventListener("cinematicSettingsToggleChange",F);G.addOnDisposeCallback(function(){B.removeEventListener("cinematicSettingsToggleChange",F)});
_.di(D)})},MSB=function(G){var B=G.JSC$21477_watchApi.getWatchNextResponse(),F;
B=_.Q(B==null?void 0:(F=B.pageVisualEffects)==null?void 0:F[0],qM);var D;(D=G.JSC$21477_cinematicController)==null||WeZ(D,B)},vX$=function(G,B){var F;
(F=G.JSC$21477_cinematicController)==null||r$G(F,B);dxH(G)},oXD=function(G,B){var F;
_.n(function(D){if(D.nextAddress==1)return _.X("kevlar_watch_cinematics_invisible")&&(B=!1),D.yield(G.JSC$21477_watchApi.playerApi,2);F=D.yieldResult;F.updateCinematicSettings(B);dxH(G);_.di(D)})},YkU=function(G){var B=_.D4();
if(_.X("kevlar_measure_ambient_mode_idle")&&!B.getFlag(192)&&!el$){el$=!0;var F=_.mX(_.Lu,function(){_.te().resolve(_.nKH).start(1E4)},5E3);
G.addOnDisposeCallback(function(){_.Lu.cancelJob(F);_.te().resolve(_.nKH).stop()})}},A$H=function(G,B,F){G.fullscreen=B;
G.theater=F;var D;(D=G.JSC$21477_cinematicController)==null||D.setFullscreen(G.fullscreen,G.theater);if(_.X("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(G.theater||G.fullscreen){var u;(u=G.JSC$21477_cinematicController)==null||O5N(u)}else{var R;(R=G.JSC$21477_cinematicController)==null||kwA(R)}},dxH=function(G){var B;
G.JSC$21477_watchApi.getRoot().toggleCinematicsActive(!((B=G.JSC$21477_cinematicController)==null||!B.isEnabled()))};var IY2=function(G){_.uz.call(this);var B=this;this.JSC$21480_watchApi=G;this.commentsReady=!1;this.setCommentsJobId=0;G=_.Dh(_.VU(),xn,function(){J$Q(B)});
this.addOnDisposeCallback(G);var F=this.JSC$21480_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){c$N(B)}),D=this.JSC$21480_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){c$N(B)});
this.addOnDisposeCallback(function(){B.JSC$21480_watchApi.unsubscribeByKey(F);B.JSC$21480_watchApi.unsubscribeByKey(D)});
var u=function(){_.X("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&TMz(B,"false")};
this.JSC$21480_watchApi.getRoot().addEventListener("yt-page-data-will-update",u);this.addOnDisposeCallback(function(){B.JSC$21480_watchApi.getRoot().removeEventListener("yt-page-data-will-update",u)});
c$N(this)};
_.r(IY2,_.uz);var c$N=function(G){G.commentsReady=!1;_.Lu.cancelJob(G.setCommentsJobId);G.setCommentsJobId=_.mX(_.Lu,function(){J$Q(G)},1E3)},J$Q=function(G){if(!G.commentsReady){_.KR("cmi");
_.Lu.cancelJob(G.setCommentsJobId);var B,F,D,u,R=(B=G.JSC$21480_watchApi.getWatchNextResponse())==null?void 0:(F=B.contents)==null?void 0:(D=F.twoColumnWatchNextResults)==null?void 0:(u=D.results)==null?void 0:u.results.contents;B=void 0;if(R&&R.length)for(R=_.C(R),F=R.next();!F.done;F=R.next())if(F=F.value,u=D=void 0,((D=F)==null?void 0:(u=D.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"){_.X("web_watch_provide_undefined_comments")?B=F.itemSectionRenderer:G.JSC$21480_watchApi.provideRenderingData("COMMENTS",
F.itemSectionRenderer);TMz(G,"true");break}_.X("web_watch_provide_undefined_comments")&&G.JSC$21480_watchApi.provideRenderingData("COMMENTS",B);G.commentsReady=!0;G.JSC$21480_watchApi.dispatchEvent("yt-watch-comments-ready")}},TMz=function(G,B){var F;
(F=G.JSC$21480_watchApi.getElement("COMMENTS"))==null||F.setAttribute("canScheduleJobs",B)};var fYD=["engagement-panel-ads"],svD=function(G){_.uz.call(this);var B=this;this.JSC$21483_watchApi=G;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.X("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.X("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.X("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.sD("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)tSD(this);else{var F=this.JSC$21483_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Z5z(B);kX(B)}),D=this.JSC$21483_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ok(B);
kX(B)});
this.JSC$21483_watchApi.getRoot().is==="ytd-watch-grid"&&_.X("swatcheroo_pbs_load_grid")&&(gXQ(this),SkN(this));this.addOnDisposeCallback(function(){B.JSC$21483_watchApi.unsubscribeByKey(F);B.JSC$21483_watchApi.unsubscribeByKey(D);_.Lu.cancelJob(B.provideRichGridJobId)});
Z5z(this);Ok(this)}};
_.r(svD,_.uz);var tSD=function(G){var B=G.JSC$21483_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G.providePlayerJobId=_.uQ(_.Lu,function(){Z5z(G);kX(G)},G.provideAllDataDelayMs)}),F=G.JSC$21483_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G.provideWatchNextJobId=_.uQ(_.Lu,function(){Ok(G);
kX(G)},G.provideAllDataDelayMs)}),D=G.JSC$21483_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){G.provideWatchNextJobId=_.uQ(_.Lu,function(){Ok(G);
kX(G)},G.provideAllDataDelayMs)});
G.JSC$21483_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.mX(_.Lu,function(){Z5z(G);Ok(G);kX(G)},100)});
G.JSC$21483_watchApi.addPageDisposeJob(function(){_.Lu.cancelJob(G.provideWatchNextJobId);_.Lu.cancelJob(G.providePlayerJobId)});
G.addOnDisposeCallback(function(){G.JSC$21483_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");G.JSC$21483_watchApi.unsubscribeByKey(B);G.JSC$21483_watchApi.unsubscribeByKey(F);G.JSC$21483_watchApi.unsubscribeByKey(D);_.Lu.cancelJob(G.providePlayerJobId);_.Lu.cancelJob(G.provideWatchNextJobId)});
Z5z(G);Ok(G)},Z5z=function(G){var B=G.JSC$21483_watchApi.getPlayerResponse(),F,D,u=(D=B==null?void 0:(F=B.playabilityStatus)==null?void 0:F.messageRenderers)!=null?D:[],R,N;
B=(N=B==null?void 0:(R=B.playabilityStatus)==null?void 0:R.messages)!=null?N:[];R=_.C(B);for(N=R.next();!N.done;N=R.next())u.push({alertRenderer:{text:_.$9(N.value),type:"WARNING"}});G.JSC$21483_watchApi.provideRenderingData("ALERTS",u)},Ok=function(G){var B=[],F,D,u,R=G.JSC$21483_watchApi.getWatchNextResponse(),N,y,U,q,h=R==null?void 0:(N=R.contents)==null?void 0:(y=N.twoColumnWatchNextResults)==null?void 0:(U=y.results)==null?void 0:(q=U.results)==null?void 0:q.contents;
if(h)for(N=_.C(h),y=N.next();!y.done;y=N.next())if(y=y.value,y.videoPrimaryInfoRenderer)var K=y;else if(y.videoSecondaryInfoRenderer){var a=y;q=U=void 0;y=Object.assign({},(U=y.videoSecondaryInfoRenderer)==null?void 0:(q=U.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(y.rows&&y.collapsedItemCount!==void 0){y.rows=y.rows.slice(0,y.collapsedItemCount).filter(function(Ps){return!!Ps.richMetadataRowRenderer});
y.collapsedItemCount=y.rows.length;var m={metadataRowContainerRenderer:y}}}else if(y.merchandiseShelfRenderer)var L=y;else if(y.ticketShelfRenderer)var W=y;else if(y.expandableMetadataRenderer)var e=y;else if(y.itemSectionRenderer)if(U=y.itemSectionRenderer.contents,q=void 0,G.directlyProvideComments&&((q=y.itemSectionRenderer)==null?void 0:q.sectionIdentifier)==="comment-item-section")_.KR("cmi"),G.JSC$21483_watchApi.provideRenderingData("COMMENTS",y.itemSectionRenderer);else if(U)for(y=_.C(U),U=
y.next();!U.done;U=y.next())if(U=U.value,U.commentsEntryPointHeaderRenderer)var b=U;else if(U.clarificationRenderer||U.infoPanelContainerRenderer||U.infoPanelContentRenderer||U.emergencyOneboxRenderer){B.push(U);var M=M||!!a}else U.limitedStateMessageRenderer?D=U:U.videoMetadataCarouselViewModel&&(u=U);if(_.X("web_watch_merch_in_sd_when_ticket_shelf_present")&&L&&W){var t=L;L=void 0}if(G.provideWatchNextSecondaryResults){var T,A,Z;G.JSC$21483_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
R==null?void 0:(T=R.contents)==null?void 0:(A=T.twoColumnWatchNextResults)==null?void 0:(Z=A.secondaryResults)==null?void 0:Z.secondaryResults)}if(G.JSC$21483_watchApi.getRoot().is==="ytd-watch-grid"){var P,RI;G.JSC$21483_watchApi.provideRenderingData("LIVE_CHAT",R==null?void 0:(P=R.contents)==null?void 0:(RI=P.twoColumnWatchNextResults)==null?void 0:RI.conversationBar)}var yo,hg,US,aI;(T=R==null?void 0:(yo=R.contents)==null?void 0:(hg=yo.twoColumnWatchNextResults)==null?void 0:(US=hg.secondaryResults)==
null?void 0:(aI=US.secondaryResults)==null?void 0:aI.offerModule)&&(T.donationShelfRenderer||T.donationUnavailableRenderer)&&G.JSC$21483_watchApi.getRoot().is!=="ytd-watch-grid"&&(F=T);yo=G.JSC$21483_watchApi.getPlayerResponse();if(!yo||!_.nqJ(yo.playabilityStatus,R==null?void 0:R.playerOverlays)){var v6;if(R==null?0:(v6=R.contents)==null?0:v6.singleColumnWatchNextResults){var Jg,c6;var q8=R==null?void 0:(Jg=R.contents.singleColumnWatchNextResults.results)==null?void 0:(c6=Jg.results)==null?void 0:
c6.contents}else{var n7,Ts,hT,L7;v6=!!(h==null?0:(n7=h[0])==null?0:(Ts=n7.itemSectionRenderer)==null?0:(hT=Ts.contents)==null?0:(L7=hT[0])==null?0:L7.backgroundPromoRenderer);var K7,kD;n7=!!(R==null?0:(K7=R.contents)==null?0:(kD=K7.twoColumnWatchNextResults)==null?0:kD.secondaryResults);v6&&!n7&&(q8=h)}}h=B[0];K7=B[1];M&&B.length===1&&(K7=h,h=void 0);G.JSC$21483_watchApi.provideRenderingData("PRIMARY_INFO",K);G.JSC$21483_watchApi.provideRenderingData("SECONDARY_INFO",a);G.JSC$21483_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
b);G.JSC$21483_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",u);G.JSC$21483_watchApi.provideRenderingData("CLARIFICATION",h);G.JSC$21483_watchApi.provideRenderingData("RICH_METADATA",m);G.JSC$21483_watchApi.provideRenderingData("MERCH_SHELF",L);_.X("web_watch_merch_in_sd_when_ticket_shelf_present")&&G.JSC$21483_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",t);G.JSC$21483_watchApi.provideRenderingData("TICKET_SHELF",W);G.JSC$21483_watchApi.provideRenderingData("LIMITED_STATE",D);G.JSC$21483_watchApi.getRoot().is!==
"ytd-watch-grid"&&G.JSC$21483_watchApi.provideRenderingData("DONATION_SHELF",F);G.JSC$21483_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",q8);G.JSC$21483_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",K7);G.JSC$21483_watchApi.provideRenderingData("EXPANDABLE_METADATA",e);if(G.swatcherooProvideAllDataOnScheduledJob){var Rz,KQ,pQ,aq,Zq,eN;K=R==null?void 0:(Rz=R.contents)==null?void 0:(KQ=Rz.twoColumnWatchNextResults)==null?void 0:(pQ=KQ.secondaryResults)==null?void 0:(aq=pQ.secondaryResults)==
null?void 0:(Zq=aq.results)==null?void 0:(eN=Zq[0])==null?void 0:eN.richGridRenderer;G.JSC$21483_watchApi.provideRenderingData("RICH_GRID_RENDERER",K)}};
svD.prototype.hasCompanionAds=function(G){var B,F;return(F=G==null?void 0:(B=G.adPlacements)==null?void 0:B.some(function(D){var u,R,N,y;return(D==null?void 0:(u=D.adPlacementRenderer)==null?void 0:(R=u.renderer)==null?void 0:R.actionCompanionAdRenderer)||(D==null?void 0:(N=D.adPlacementRenderer)==null?void 0:(y=N.renderer)==null?void 0:y.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?F:!1};
var kX=function(G){if(!_.X("swaterdoo_ps_wn_handle_ks")){G.swatcherooProvideAllDataOnScheduledJob||SkN(G,3E3);var B=G.JSC$21483_watchApi.getPlayerResponse(),F,D,u,R,N,y=(F=G.JSC$21483_watchApi.getWatchNextResponse())==null?void 0:(D=F.contents)==null?void 0:(u=D.twoColumnWatchNextResults)==null?void 0:(R=u.secondaryResults)==null?void 0:(N=R.secondaryResults)==null?void 0:N.offerModule;B=G.hasCompanionAds(B);var U,q;F=(y==null?void 0:(U=y.tvfilmOfferModuleRenderer)==null?void 0:U.clientShouldSuppressIfCompanionAdDisplayed)||
(y==null?void 0:(q=y.unlimitedOfferModuleRenderer)==null?void 0:q.suppressIfCompanionAds);U=B&&F;G.JSC$21483_watchApi.getRoot().is==="ytd-watch-grid"&&G.JSC$21483_watchApi.provideRenderingData("OFFER_MODULE",U?void 0:y)}},SkN=function(G,B){_.X("swatcheroo_pbs_load_grid")&&(G.provideRichGridJobId&&_.Lu.cancelJob(G.provideRichGridJobId),G.provideRichGridJobId=_.uQ(_.Lu,function(){G.provideRichGridJobId=0;
var F,D,u,R,N,y,U,q=(F=G.JSC$21483_watchApi.getWatchNextResponse())==null?void 0:(D=F.contents)==null?void 0:(u=D.twoColumnWatchNextResults)==null?void 0:(R=u.secondaryResults)==null?void 0:(N=R.secondaryResults)==null?void 0:(y=N.results)==null?void 0:(U=y[0])==null?void 0:U.richGridRenderer;q&&G.JSC$21483_watchApi.provideRenderingData("RICH_GRID_RENDERER",q)},B))},gXQ=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21483_watchApi.playerApi,2);B=D.yieldResult;F=function(){G.onPlaybackStart()};
B.addEventListener("onPlaybackStartExternal",F);G.addOnDisposeCallback(function(){B.removeEventListener("onPlaybackStartExternal",F)});
_.di(D)})};
svD.prototype.onPlaybackStart=function(){SkN(this)};var xx$=_.ge(115994),Pr2=_.ge(115993),eS=function(G,B,F){var D=this;var u=F.dragDownAction;this.layer=0;this.JSC$21498_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.JSC$21498_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return D.dragDownAction()}}}};
this.fullscreen=!1;var R=_.Rh();_.gr(R,xx$,this.layer);_.gr(R,Pr2,this.layer);this.dragDownAction=function(){u();_.kF(R,{visualElement:D.fullscreen?xx$:Pr2})};
this.gesture=new A4(G,B,this.getConfig(!1),"pandown");this.attach()};
eS.prototype.attach=function(){this.gesture.attach()};
eS.prototype.detach=function(){this.gesture.detach()};
eS.prototype.update=function(G){this.fullscreen=G;var B=this.gesture;G=this.getConfig(G);B.config=G};
eS.prototype.getConfig=function(G){return G?this.JSC$21498_watchFullScreenConfig:this.JSC$21498_watchConfig};var BVQ=function(G){_.uz.call(this);var B=this;this.JSC$21501_watchApi=G;G.playerApi.then(function(F){B.player=F});
this.gestures=new eS(this.JSC$21501_watchApi.getRoot(),G.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(PfD(_.VU().getState())&&xn(_.VU().getState())<=0)if(_.aQ(_.VU().getState())){var F;(F=B.player)==null||F.toggleFullscreen()}else _.T1(B.JSC$21501_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
GeD(this)};
_.r(BVQ,_.uz);var GeD=function(G){var B=_.Dh(_.VU(),_.aQ,function(F){G.onFullscreenChanged(F)});
G.addOnDisposeCallback(B);B=_.Dh(_.VU(),xn,function(F){G.gestures&&(F>0?G.gestures.detach():G.gestures.attach())});
G.addOnDisposeCallback(B)};
BVQ.prototype.onFullscreenChanged=function(G){this.gestures&&this.gestures.update(G)};var ibQ=["PLAYLIST"],D42=function(G){_.uz.call(this);var B=this;this.JSC$21504_watchApi=G;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(G.subscribeToActiveChanged(function(F){B.onActiveChanged(F)}));
FBQ(this)};
_.r(D42,_.uz);var utD=function(G){G.pageDisposalDataTypes=Object.values(crD).filter(function(B){return!ibQ.includes(B)})},FBQ=function(G){if(_.X("swatcheroo_enable_ghost_cards")||_.X("web_watch_clear_data_on_page_dispose"))utD(G),G.JSC$21504_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Lu.cancelJob(G.clearDataJobId);
G.clearDataJobId=0}),G.runPageDisposeJob=function(){var B=_.te().resolve(_.pA).getDestinationPageType()==="watch";
G.clearDataJobId=_.uQ(_.Lu,G.runClearDataJob,B?0:_.sD("web_watch_delay_page_dispose_ms",1E4))},G.runClearDataJob=function(){Rn2(G)},G.runOnYtNavigateAwayFinish=function(){G.clearDataJobId&&(_.Lu.cancelJob(G.clearDataJobId),G.clearDataJobId=0,Rn2(G))},document.addEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish),G.JSC$21504_watchApi.addPageDisposeJob(G.runPageDisposeJob),G.addOnDisposeCallback(function(){G.JSC$21504_watchApi.removePageDisposeJob(G.runPageDisposeJob);
G.JSC$21504_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish)})},Rn2=function(G){G.pageDisposalDataTypes.forEach(function(B){G.JSC$21504_watchApi.provideRenderingData(B,void 0)});
G.clearDataJobId=0};
D42.prototype.onActiveChanged=function(G){G&&((G=document.querySelector("#watch-page-skeleton"))&&_.B1(G),wFS(this),document.body.removeAttribute("no-y-overflow"),_.on("IS_SHELL_LOAD")&&j9z())};
var wFS=function(G){_.n(function(B){if(B.nextAddress==1)return B.yield(G.JSC$21504_watchApi.playerApi,2);_.bv();_.di(B)})};var CW2=_.X("kevlar_watch_while_counterfactual")?0:.25,lU$=function(G){_.uz.call(this);this.JSC$21507_watchApi=G;this.JSC$21507_watchWhileEnabled=_.X("kevlar_watch_while_v2");this.JSC$21507_watchPipEnabled=_.X("web_watch_pip");NVZ(this);yGz(this);nc$(this)};
_.r(lU$,_.uz);var NVZ=function(G){G.JSC$21507_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){U4G(G)});
G.addOnDisposeCallback(function(){G.JSC$21507_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},yGz=function(G){var B,F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21507_watchApi.playerApi,2);B=D.yieldResult;F=function(u){u&&G.JSC$21507_watchPipEnabled?qbz(G):U4G(G)};
B.addEventListener("onCollapseMiniplayer",F);G.addOnDisposeCallback(function(){B.removeEventListener("onCollapseMiniplayer",F)});
_.di(D)})},nc$=function(G){var B=G.JSC$21507_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&B&&G.JSC$21507_watchWhileEnabled&&(G.playerIntersectionObserver=new IntersectionObserver(function(F){G.handleIntersect(F)},{threshold:[CW2]}),G.playerIntersectionObserver.observe(B),G.addOnDisposeCallback(function(){var F;
(F=G.playerIntersectionObserver)==null||F.disconnect()}))},U4G=function(G){var B,F,D;
_.n(function(u){if(u.nextAddress==1)return B=_.te().resolve(_.pA),F=B.data,D=_.If8(F.response,F.playerResponse),_.Bv().miniplayerButtonActivation=!0,_.te().resolve(_.WP).collapse(),u.yield(_.Bv().navigationFinishPromise,2);if(u.nextAddress!=3)return _.Bv().currentEndpoint=D.watchEndpoint||null,u.yield(_.te().resolve(_.WP).activate(G.JSC$21507_watchApi.getElement("PLAYER"),D,F),3);_.Bv().userActivation=!0;_.di(u)})},qbz=function(G){var B,F,D;
_.n(function(u){if(u.nextAddress==1)return _.te().resolve(_.WP).pictureInPictureSupported()?u.jumpTo(2):u.yield(G.JSC$21507_watchApi.playerApi,3);if(u.nextAddress!=2)return B=u.yieldResult,(F=B)==null||F.togglePictureInPicture(),u.return();D=_.te().resolve(_.pA);_.Bv().watchPipActivation=!0;_.aSB(_.te().resolve(_.WP),D.data);_.di(u)})};
lU$.prototype.handleIntersect=function(G){EcB(this,G[G.length-1])};
var EcB=function(G,B){G.watchWhileJobId&&_.Lu.cancelJob(G.watchWhileJobId);G.watchWhileJobId=_.Lu.addLowPriorityJob(function(){var F,D;return _.n(function(u){if(u.nextAddress==1)return G.watchWhileJobId=void 0,F=_.te().resolve(_.WP),B.intersectionRatio>CW2?F.isMiniplayerActive()?u.yield(F.deactivate(),0):u.jumpTo(0):(D=!F.isMiniplayerActive())?u.yield(hnQ(G),5):u.jumpTo(4);u.nextAddress!=4&&(D=u.yieldResult);if(!D)return u.jumpTo(0);_.Bv().watchWhileActivation=!0;return u.yield(KBB(G),0)})},100)},
hnQ=function(G){return _.n(function(B){return B.nextAddress==1?_.X("kevlar_watch_while_paused")?B.return(!0):B.yield(G.isPlayerPlaying(),2):B.return(B.yieldResult)})};
lU$.prototype.isPlayerPlaying=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$21507_watchApi.playerApi,2);B=F.yieldResult;return F.return(B.getPlayerStateObject().isPlaying)})};
var KBB=function(G){var B,F;return _.n(function(D){B=_.te().resolve(_.pA).data;F=_.If8(B.response,B.playerResponse);_.Bv().currentEndpoint=F.watchEndpoint||null;return D.yield(_.te().resolve(_.WP).activate(G.JSC$21507_watchApi.getElement("PLAYER"),F,B),0)})};var XFN=function(G){_.uz.call(this);this.JSC$21511_watchApi=G;aUB(this);m4S(this)};
_.r(XFN,_.uz);var m4S=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21511_watchApi.playerApi,2);B=D.yieldResult;F=function(u){var R;u.sessionData&&u.sessionData.itct&&(R=u.sessionData.itct);var N=u.watchEndpoint;if(N&&u.sessionData&&u.sessionData.autonav)N=_.Rbl(N,R);else{var y;N=_.Ma(u.videoId,(y=u.listId)!=null?y:void 0,R)}R={endpoint:N};u.sessionData&&(R.tempData=u.sessionData);G.JSC$21511_watchApi.dispatchEvent("yt-navigate",R)};
B.addEventListener("onPlayVideo",F);G.addOnDisposeCallback(function(){B.removeEventListener("onPlayVideo",F)});
_.di(D)})},aUB=function(G){var B=function(F){G.onYtNavigate(F)};
G.JSC$21511_watchApi.getRoot().addEventListener("yt-navigate",B);G.addOnDisposeCallback(function(){G.JSC$21511_watchApi.getRoot().removeEventListener("yt-navigate",B)})};
XFN.prototype.onYtNavigate=function(G){var B=this,F,D,u,R,N,y,U,q,h;return _.n(function(K){if(K.nextAddress==1){if(!((F=G.detail)==null?0:(D=F.endpoint)==null?0:D.watchEndpoint))return K.return();u=G.detail.endpoint.watchEndpoint;R=B.JSC$21511_watchApi.getWatchNextResponse();y=_.Q((N=R)==null?void 0:N.currentVideoEndpoint,_.Ow);if(!y)return K.return();if(u.videoId!==y.videoId||u.playlistId&&u.playlistId!==y.playlistId||typeof u.startTimeSeconds!=="number")return K.jumpTo(0);G.stopPropagation();(U=
_.X("kevlar_watch_while_v2")&&!_.X("kevlar_watch_while_counterfactual"))&&_.te().resolve(_.WP).isMiniplayerActive()||B.JSC$21511_watchApi.scrollWatchTo(0,!0);return K.yield(B.JSC$21511_watchApi.playerApi,3)}q=K.yieldResult;h=u.startTimeSeconds;q.seekTo(h,void 0,void 0,void 0,84);q.wakeUpControls();h<q.getDuration()&&q.playVideo();_.di(K)})};var jXz=function(G){_.uz.call(this);var B=this;this.JSC$21514_watchApi=G;var F=this.JSC$21514_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QXU(B)});
this.addOnDisposeCallback(function(){B.JSC$21514_watchApi.unsubscribeByKey(F)});
QXU(this);_.X("enable_ai_companion")&&(G=this.JSC$21514_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&veH(G,"WATCH")};
_.r(jXz,_.uz);var QXU=function(G){var B=G.JSC$21514_watchApi.getWatchNextResponse();if(B){var F,D=[].concat(_.gi((F=B==null?void 0:B.engagementPanels)!=null?F:[]));_.X("web_watch_comments_visible_by_default")&&(F=D.find(function(u){var R;return((R=u.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-comments-section"}),F==null?0:F.engagementPanelSectionListRenderer)&&(F.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
D.unshift.apply(D,_.gi(LBQ(B)));G.JSC$21514_watchApi.provideRenderingData("ENGAGEMENT_PANELS",D)}},WB$=function(G){var B,F,D,u=(B=G.engagementPanels)==null?void 0:(F=B.find(function(m){var L;
return((L=m.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(D=F.engagementPanelSectionListRenderer.content)==null?void 0:D.structuredDescriptionContentRenderer,R;
if(_.Q(u==null?void 0:(R=u.items)==null?void 0:R.find(function(m){return!!_.Q(m,Av$)}),Av$))return!0;
var N,y,U,q;if(G=(((N=G.contents)==null?void 0:(y=N.twoColumnWatchNextResults)==null?void 0:(U=y.results)==null?void 0:(q=U.results)==null?void 0:q.contents)||[]).find(function(m){return m.videoPrimaryInfoRenderer})){var h,K,a;
return(((h=G.videoPrimaryInfoRenderer)==null?void 0:(K=h.videoActions)==null?void 0:(a=K.menuRenderer)==null?void 0:a.flexibleItems)||[]).some(function(m){m=_.Q(m,_.VCv);if(!m)return!1;var L,W;m=(L=m.topLevelButton)==null?void 0:(W=L.buttonViewModel)==null?void 0:W.onTap;if(!m)return!1;L=_.X1(m);if(!L)return!1;if(rGD(L))return!0;if(_.X("enable_creator_chatbot")){L=_.Q(L,_.gs);if(!L)return!1;var e;return(e=L.commands)==null?void 0:e.some(function(b){return rGD(b)})}return!1})}return!1},rGD=function(G){var B;
return((B=_.Q(G,_.Xi))==null?void 0:B.panelIdentifier)==="PAyouchat"},LBQ=function(G){var B=[];
if(!_.X("web_watch_inject_placeholder_fantasy_panel_killswitch")){var F,D,u,R=(F=G.engagementPanels)==null?void 0:(D=F.find(function(y){var U;return((U=y.engagementPanelSectionListRenderer)==null?void 0:U.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(u=D.engagementPanelSectionListRenderer.content)==null?void 0:u.structuredDescriptionContentRenderer,N;
_.Q(R==null?void 0:(N=R.items)==null?void 0:N.find(function(y){return!!_.Q(y,zkQ)}),zkQ)&&(F=_.IQc("PAsports_fantasy"),F.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(F))}WB$(G)&&(G=_.IQc("PAyouchat"),G.engagementPanelSectionListRenderer.targetId="PAyouchat",G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(G));
return B};var keG=function(G){_.uz.call(this);this.JSC$21517_watchApi=G;HbU(this)};
_.r(keG,_.uz);var HbU=function(G){G.JSC$21517_watchApi.registerActionHandler("yt-loop-command",function(B){ObZ(G,B)});
G.JSC$21517_watchApi.registerActionHandler("yt-repeat-chapter-command",function(B){en2(G,B)});
G.addOnDisposeCallback(function(){G.JSC$21517_watchApi.unregisterActionHandler("yt-loop-command");G.JSC$21517_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ObZ=function(G,B){var F;
_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21517_watchApi.playerApi,2);F=D.yieldResult;_.Q(B,Lkz).loop?(F.setLoopRange({startTimeMs:Number(_.Q(B,Lkz).startTimeMs),endTimeMs:Number(_.Q(B,Lkz).endTimeMs),postId:_.Q(B,Lkz).postId,type:"clips"}),F.playVideo()):F.setLoopRange(null);_.di(D)})},en2=function(G,B){var F,D;
_.n(function(u){if(u.nextAddress==1)return u.yield(G.JSC$21517_watchApi.playerApi,2);F=u.yieldResult;D=_.Q(B,u4$).repeat;D==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(F.setLoopRange({startTimeMs:Number(_.Q(B,u4$).startTimeMs),endTimeMs:Number(_.Q(B,u4$).endTimeMs),type:"repeatChapter"}),F.playVideo()):D==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&F.setLoopRange(null);_.di(u)})};var znN=function(G){_.uz.call(this);this.JSC$21522_watchApi=G;$4H(this)};
_.r(znN,_.uz);var $4H=function(G){G.JSC$21522_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(B){bbS(G,B)});
G.addOnDisposeCallback(function(){G.JSC$21522_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},bbS=function(G,B){var F,D,u,R,N,y,U,q,h,K,a;
_.n(function(m){if(m.nextAddress==1)return m.yield(G.JSC$21522_watchApi.playerApi,2);F=m.yieldResult;if(R=(u=(D=_.Q(B,ReD))==null?void 0:D.highlightedMenuItemKey)!=null?u:"")(y=(N=F).highlightSettingsMenuItem)==null||y.call(N,R);if(h=(q=(U=_.Q(B,ReD))==null?void 0:U.openMenuItemKey)!=null?q:"")(a=(K=F).openSettingsMenuItem)==null||a.call(K,h);_.di(m)})};var VB$=_.Z4("/youtube/app/watch/player_state","playerStateEntity");var $X=function(G){_.uz.call(this);this.JSC$21525_watchApi=G;vcU(this)};
_.r($X,_.uz);var ocQ=function(G){switch(G){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"}},vcU=function(G){var B,F,D,u,R;
_.n(function(N){if(N.nextAddress==1)return N.yield(G.JSC$21525_watchApi.playerApi,2);B=N.yieldResult;if(G.isDisposed())return N.return();F=function(y){G.onPlayerStateChange(y)};
D=function(y){G.onAdStateChange(y)};
u=function(){G.onAdSkip()};
R=function(y){G.onVideoDataChange(y)};
B.addEventListener("onStateChange",F);B.addEventListener("onAdStateChange",D);B.addEventListener("onAdSkip",u);B.addEventListener("onVideoDataChange",R);G.addOnDisposeCallback(function(){B.removeEventListener("onStateChange",F);B.removeEventListener("onAdStateChange",D);B.removeEventListener("onAdSkip",u);B.removeEventListener("onVideoDataChange",R)});
_.di(N)})},MBA=function(G){var B=_.oy(),F=B.dispatch;
a:switch(G.adsState){case -1:case 0:var D="ADS_STATE_NONE";break a;case 1:case 2:case 3:D="ADS_STATE_PLAYING";break a;default:D="ADS_STATE_UNKNOWN"}F.call(B,_.wC("playerStateEntity",VB$,{key:VB$,playerState:ocQ(G.playerState),adsState:D,videoId:G.videoId}))};
$X.prototype.onPlayerStateChange=function(G){var B=this,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(B.JSC$21525_watchApi.playerApi,2);F=D.yieldResult;if(B.isDisposed())return D.return();B.playerState=G;B.videoId=F.getVideoData().video_id;MBA(B);_.di(D)})};
$X.prototype.onAdStateChange=function(G){this.adsState=G;MBA(this)};
$X.prototype.onAdSkip=function(){this.adsState=0;MBA(this)};
$X.prototype.onVideoDataChange=function(G){G.type==="newdata"&&(this.adsState=-1,MBA(this))};var YbD=function(G){_.uz.call(this);var B=this;this.JSC$21529_watchApi=G;this.enableExternalPlaylistPanelInPlayer=_.X("delhi_web_player_use_external_playlist_panel");_.te().resolve(_.Wv).setPlayer(this.JSC$21529_watchApi.getElement("PLAYER"));G=this.JSC$21529_watchApi.subscribeToActiveChanged(function(F){B.onActiveChanged(F)});
this.addOnDisposeCallback(G);pF2(this)};
_.r(YbD,_.uz);var pF2=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return G.enableExternalPlaylistPanelInPlayer?D.yield(G.JSC$21529_watchApi.playerApi,2):D.return();B=D.yieldResult;F=function(){if(G.playlistPanelElement)G.playlistPanelElement.onToggleExpanded()};
B.addEventListener("onToggleExternalPlaylistPanel",F);G.addOnDisposeCallback(function(){B.removeEventListener("onToggleExternalPlaylistPanel",F)});
_.di(D)})};
YbD.prototype.onActiveChanged=function(G){var B=this,F=_.te().resolve(_.Wv),D=function(){AGD(B)};
G?(this.playlistPanelElement=this.JSC$21529_watchApi.getElement("PLAYLIST_PANEL"))?(F.setPlaylistComponent(this.playlistPanelElement),F.addEventListener("yt-playlist-data-updated",D),this.addOnDisposeCallback(function(){F.removeEventListener("yt-playlist-data-updated",D)}),AGD(this)):_.Ae(Error("Ul")):(F.removeEventListener("yt-playlist-data-updated",D),F.cancelVideoSkip())};
var AGD=function(G){var B=_.te().resolve(_.Wv);G.JSC$21529_watchApi.provideRenderingData("PLAYLIST",B.getPlaylistData())};var zw=function(G){_.uz.call(this);var B=this;this.JSC$21532_watchApi=G;this.onPageScroll=function(){B.scrollThrottle.fire();B.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.s_(this.onThrottledScroll,200,this);_.gq(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.s_(this.onMastheadThrottledScroll,50,this);_.gq(this,this.mastheadScrollThrottle);this.animation=new _.Mi(function(F){B.JSC$21532_watchApi.getRoot().setScrollTop(F)});
G=_.Dh(_.VU(),_.aQ,function(){B.onFullscreenChanged()});
this.addOnDisposeCallback(G);d4D(this);JGG(this);this.onThrottledScroll()};
_.r(zw,_.uz);
zw.prototype.onFullscreenChanged=function(){var G=this,B=this.JSC$21532_watchApi.getRoot();!this.pageScrollElement&&B.pageScrollElement?(this.pageScrollElement=B.pageScrollElement,B.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){G.pageScrollElement&&G.pageScrollElement.removeEventListener("scroll",G.onPageScroll)})):this.pageScrollElement&&!B.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var d4D=function(G){window.addEventListener("scroll",G.onPageScroll);G.addOnDisposeCallback(function(){window.removeEventListener("scroll",G.onPageScroll)})},JGG=function(G){G.JSC$21532_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(B){a:{var F;
if(F=G.JSC$21532_watchApi.getRoot().contains(B)&&!G.animation.isAnimating()){F=B.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var D,u,R=(B==null?void 0:(D=B.parentElement)==null?void 0:(u=D.parentElement)==null?void 0:u.id)==="fixed-secondary";F=!(F&&R)}if(F){if(_.X("kevlar_watch_scroll_manager_absolute_offset_killswitch"))D=B.offsetTop;else for(D=0,u=B;u!==null;)D+=u.offsetTop,D-=u.scrollTop,u=u.offsetParent;u=D;D=u-24;B=u+B.offsetHeight+24;u=G.JSC$21532_watchApi.getRoot().getPageScrollingElement();
F=G.JSC$21532_watchApi.getRoot().getScrollTop();R=F+u.clientHeight-56;if(D<F+56)B=D-56;else if(B>R)B-=u.clientHeight;else break a;G.scrollWatchTo(Math.max(0,B),!0)}}});
G.addOnDisposeCallback(function(){G.JSC$21532_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
zw.prototype.onThrottledScroll=function(){var G=_.VU(),B=G.dispatch,F=this.JSC$21532_watchApi.getRoot().getScrollTop();B.call(G,_.d5({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:F}}))};
zw.prototype.onMastheadThrottledScroll=function(){this.JSC$21532_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21532_watchApi.getRoot().getScrollTop())};
zw.prototype.scrollWatchTo=function(G,B){(B===void 0?0:B)?this.animation.start(this.JSC$21532_watchApi.getRoot().getScrollTop(),Math.max(0,G),500):this.JSC$21532_watchApi.getRoot().setScrollTop(G)};var IUA=function(G){_.uz.call(this);var B=this;this.JSC$21535_watchApi=G;var F=this.JSC$21535_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){cGB(B)}),D=this.JSC$21535_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){TVD(B)});
this.addOnDisposeCallback(function(){B.JSC$21535_watchApi.unsubscribeByKey(F);B.JSC$21535_watchApi.unsubscribeByKey(D)});
cGB(this);TVD(this)};
_.r(IUA,_.uz);
var cGB=function(G){var B,F,D,u=(D=(B=G.JSC$21535_watchApi.getPlayerResponse())==null?void 0:(F=B.videoDetails)==null?void 0:F.title)!=null?D:"";G.JSC$21535_watchApi.dispatchEvent("yt-update-title",u)},TVD=function(G){var B,F,D,u,R,N,y,U=(y=((N=(B=G.JSC$21535_watchApi.getWatchNextResponse())==null?void 0:(F=B.contents)==null?void 0:(D=F.twoColumnWatchNextResults)==null?void 0:(u=D.results)==null?void 0:(R=u.results)==null?void 0:R.contents)!=null?N:[]).find(function(q){return!!q.videoPrimaryInfoRenderer}))==null?
void 0:y.videoPrimaryInfoRenderer;
(B=_.zx(U==null?void 0:U.title))&&G.JSC$21535_watchApi.dispatchEvent("yt-update-title",B)};var tB$=function(G){_.uz.call(this);this.JSC$21538_watchApi=G;fU$(this)};
_.r(tB$,_.uz);var fU$=function(G){var B,F;_.n(function(D){if(D.nextAddress==1)return D.yield(G.JSC$21538_watchApi.playerApi,2);B=D.yieldResult;F=function(){G.onYpcContentRequest()};
B.addEventListener("onYpcContentRequest",F);G.addOnDisposeCallback(function(){B.removeEventListener("onYpcContentRequest",F)});
_.di(D)})};
tB$.prototype.onYpcContentRequest=function(){var G,B,F,D,u,R=(G=this.JSC$21538_watchApi.getWatchNextResponse())==null?void 0:(B=G.contents)==null?void 0:(F=B.twoColumnWatchNextResults)==null?void 0:(D=F.secondaryResults)==null?void 0:(u=D.secondaryResults)==null?void 0:u.offerModule,N,y,U,q;G=(q=(U=(y=(N=R==null?void 0:R.episodeOfferModuleRenderer)!=null?N:R==null?void 0:R.movieOfferModuleRenderer)!=null?y:R==null?void 0:R.unlimitedOfferModuleRenderer)!=null?U:R==null?void 0:R.liveOfferModuleRenderer)!=
null?q:R==null?void 0:R.tvfilmOfferModuleRenderer;var h,K,a;R=(a=R==null?void 0:(h=R.tvfilmOfferModuleRenderer)==null?void 0:(K=h.actionButtons)==null?void 0:K.length)!=null?a:0;K=Math.max(R-1,0);var m,L,W;h=(W=G==null?void 0:(m=G.offerButton)==null?void 0:m.buttonRenderer)!=null?W:G==null?void 0:(L=G.actionButtons)==null?void 0:L[K].buttonRenderer;var e,b;(m=(b=(e=h==null?void 0:h.navigationEndpoint)!=null?e:h==null?void 0:h.serviceEndpoint)!=null?b:h==null?void 0:h.command)&&_.Gm.instance.resolveCommand(m)};var ZbD=function(G){eX.call(this);var B=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return B.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(F){B.initOrDisposeActiveModules(F)}));
this.onAttached()};
_.r(ZbD,eX);_.w=ZbD.prototype;_.w.getRoot=function(){return this.rootElement};
_.w.getElement=function(G){return this.rootElement.getElement(G)};
_.w.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.w.getPlayerResponse=function(){return this.playerResponse};
_.w.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.w.getWatchNextResponse=function(){return this.watchNextResponse};
_.w.registerActionHandler=function(G,B){var F=this;if(_.X("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.Y2(_.pZ.getInstance(),(D[G]=B,D),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),D={},_.Y2(_.pZ.getInstance(),(D[G]=function(){var u=_.xS.apply(0,arguments);return(F.actionHandlers.get(G)||[]).map(function(R){return R.apply(null,_.gi(u))})},D),this.getRoot())),this.actionHandlers.get(G).push(B)};
_.w.unregisterActionHandler=function(G){if(_.X("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.Ab(_.pZ.getInstance(),(B[G]=!0,B),this.getRoot())}else(B=this.actionHandlers.get(G))?(B.pop(),B.length===0&&(B={},_.Ab(_.pZ.getInstance(),(B[G]=!0,B),this.getRoot()),this.actionHandlers.delete(G))):_.em(new _.Uf("Attempted to unregister an action handler which is not registered.",G))};
_.w.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.$LI(this.rootElement.pageDisposeJobs,G)};
_.w.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.dU(this.rootElement.pageDisposeJobs,G)};
_.w.dispatchEvent=function(G,B){_.cZ(this.rootElement,G,B)};
_.w.provideRenderingData=function(G,B){this.rootElement.provideRenderingData(G,B)};
_.w.scrollWatchTo=function(G,B){var F;(F=this.watchScrollManager)==null||F.scrollWatchTo(G,B)};
_.w.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.ft(G,function(){if(G&&G.firstElementChild){var B=G.querySelector(".html5-video-player");B&&(_.v9(_.te().resolve(_.uN)),B.focus())}else _.em(Error("Vl"))})};
var gcN=function(G){var B=!!G.rootElement.theater,F=!!G.rootElement.fullscreen,D;(D=G.watchCinematicManager)==null||A$H(D,F,B)};
_.w=ZbD.prototype;_.w.subscribeToActiveChanged=function(G,B){B=B===void 0?!0:B;var F=_.Dh(_.VU(),GxN,function(D){G(D)});
B&&G(GxN(_.VU().getState()));return F};
_.w.isActive=function(){return GxN(_.VU().getState())};
_.w.onAttached=function(){var G=_.X("external_fullscreen");_.X("use_unified_flag_accessor")&&(G=_.te().resolve(_.fAN).retriever.getFlag(_.zZP));(G||_.on("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.w.initPersistentModules=function(){if(_.X("kevlar_watch_flexy_theater_manager")){var G=new czG(this);_.gq(this,G)}G=new D42(this);_.gq(this,G);G=new me(this);_.gq(this,G);G=new svD(this);_.gq(this,G);G=new $X(this);_.gq(this,G);G=new Xc(this);_.gq(this,G);_.X("kevlar_watch_flexy_playlist_manager")&&(G=new YbD(this),_.gq(this,G))};
_.w.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new zw(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new XFN(this)),this.activeModules.push(new Ar$(this)),this.activeModules.push(new IUA(this)),this.activeModules.push(new lU$(this)),_.X("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new Io$(this)),this.activeModules.push(new keG(this)),_.X("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new tB$(this)),_.X("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new DxU(this)),_.Nk("kevlar_watch_cinematics")&&(this.watchCinematicManager=new VSD(this),this.activeModules.push(this.watchCinematicManager),gcN(this)),_.X("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new znN(this)),_.X("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new BVQ(this)),G=_.X("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.X("kevlar_watch_flexy_comments_manager")&&!G&&this.activeModules.push(new IY2(this)),
_.X("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new w4$(this)),this.activeModules.push(new S3Z(this)),this.activeModules.push(new jXz(this)),_.X("web_enable_timely_actions")&&this.activeModules.push(new GwQ(this)),_.X("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new j0G(this)),_.X("web_watch_enable_multiview_manager")&&this.activeModules.push(new UEA(this)),_.X("web_fullscreen_components")&&this.activeModules.push(new SmB(this)),_.X("web_player_rtr_ctrls")&&
this.activeModules.push(new rzA(this))):(_.oi(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.w.disposeInternal=function(){eX.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ZN.Object.defineProperties(ZbD.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.YN(_.Y(function(G){var B=_.W5("script");_.bC(function(){var F;if(F=JSON)F=IwG(G.data()),F=_.yD(JSON.stringify(F).replace(/</g,"\\u003C"));var D=G.data(),u=_.zx(D.title).trim().length===0,R=!D.publishDate||D.publishDate.trim().length===0,N,y,U,q,h=!((N=D.thumbnail)==null?0:(y=N.thumbnails)==null?0:y.length)||!((U=D.thumbnail)==null?0:U.thumbnails[0].url)||((q=D.thumbnail)==null?void 0:q.thumbnails[0].url.trim().length)===0;B.value&&F&&!(u||R||h)&&_.l5(B.value,F)},"Vy9K7b");
return _.l("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.l("script",{el:B,type:"application/ld+json"}))},"rk"),"player-microformat-renderer",{props:{data:_.oh}});var SbZ={},sXA=["learning-journey-engagement-panel","PAlearning_chat"];
SbZ.YtdLearningJourneyWatchBehavior=[_.g.YtRendererBehavior,_.kV.YtPlayerListenerBehavior,_.oS.YtRendererstamperBehavior,_.Za.YtActionHandlerBehavior,ir.YtPageBehavior,_.ti.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.on("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.X("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 _.on("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 _.X("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.X("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.sD("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.sD("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.Nk("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("web_watch_rounded_player_large")||_.X("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.X("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.X("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("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 _.X("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:ql(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:ql(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},
learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.X("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.X("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.X("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new KZA(function(){return _.YF(G)},
this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.X("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
_.X("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.U1;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;_.X("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.X("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));_.X("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.x7(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.X("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.X("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.X("kevlar_watch_while_v2")&&!_.X("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.X("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.cZ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.X("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){UWD("learning_journey_watch",["pbs","pbp","pbu"]);this.updatePageData_(G)},
updatePageData_:function(G){var B=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.qa({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.KR("nw");this.loading=!1;_.mX(_.Lu,function(){WDz();var D,u=((D=B.player)==null?void 0:D.getVideoData().cpn)||"";$WZ(function(R,N){biQ(R,N,u)})})},
onPageLoadWithSameData_:function(){_.X("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 G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;var B,F,D;G=(B=this.loadingData)==null?void 0:(F=B.endpoint)==null?void 0:(D=F.watchEndpoint)==null?void 0:D.videoId;var u;G&&(u="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.IF(this.hostElement).querySelector("#player").style.backgroundImage=u?"url("+u+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.IF(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var B,F;(F=(B=this.watchMetadata).updateSentimentBarWidth)==
null||F.call(B);var D,u;(u=(D=this.watchMetadata).resize)==null||u.call(D)}_.IF(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(G){var B=_.IF(this.hostElement).querySelector(G);B?_.MW(B,!1):_.em(new _.Uf("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var B=_.IF(this.hostElement).querySelector(G);B?_.pi(B):_.em(new _.Uf("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?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(G){var B=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Lu.addLowPriorityJob(function(){B.onWindowResized_(_.Bm(!0))})},
updateTheaterModeState_:function(G){if(!_.X("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&UDD()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var G=this.theater;_.X("external_fullscreen")&&this.fullscreen&&(G=!0);G=G?_.IF(this.hostElement).querySelector("#player-full-bleed-container"):_.IF(this.hostElement).querySelector("#player-container-inner");var B=this.getPlayerContainer(),F=_.X("kevlar_watch_while_v2")||_.X("web_watch_pip");B.parentElement!==G&&(F&&_.te().resolve(_.WP).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.YF(this).appendTo(G,B),G.appendChild(_.IF(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.te().resolve(_.WP).deactivate(),2);G.updatePlayerLocation();_.di(B)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var B=this.getCinematicsLocationContainer();G.parentElement!==B&&B.appendChild(G);var F;(F=this.watchController)==null||gcN(F)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.IF(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.IF(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(G,B){var F=document.documentElement.hasAttribute("dark"),D=!F&&this.cinematicLightTheme;return G&&F||B&&F||(B||G)&&D},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.X("kevlar_watch_flexy_comments_manager")||this.initComments_();_.X("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.te().resolve(_.Wv).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.X("web_watch_start_chat_in_theater_mode")){var B,
F,D;if((B=this.data)==null?0:(F=B.contents)==null?0:(D=F.twoColumnWatchNextResults)==null?0:D.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var u,R;((u=this.data)==null?0:(R=u.contents)==null?0:R.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(G){var B;(B=this.watchController)==null||B.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(B=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=fw$(G.playabilityStatus),B&&!G||_.ft(this,function(){_.KR("pbu")}));
this.setPlayerAds_();_.Ia(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(G){_.VU().dispatch(_.d5({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new ZbD(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.X("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var B=_.YF(this);_.X("kevlar_disable_prepare_player")||B.preparePlayer();_.X("kevlar_watch_flexy_playlist_manager")||_.te().resolve(_.Wv).setPlayer(B);this.updatePageMediaQueries();B={"--ytd-watch-flexy-scrollbar-width":fC()+
"px"};!_.sD("kv_pl_mx_sz_ks")&&_.sD("kevlar_watch_max_player_width")&&(B["--ytd-watch-flexy-max-player-width-wide-screen"]=ziz+"px");_.sD("kevlar_watch_flexy_metadata_height")&&(B["--ytd-watch-flexy-space-below-player"]=VoU+"px");this.safeUpdateStyles(B);_.X("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new CTA(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
_.X("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.IF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var G=fC(),B=tO+G,F=B;this.fixedPanels&&(B+=eiN);var D=657+G;G=1327+G;_.IF(this.hostElement).querySelector("#two-column-query").query="(min-width: "+B+"px)";_.IF(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(D+"px), (min-height: 630px) and (min-width: ")+(B+"px) and (max-width: ")+(G+"px)");_.IF(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");_.IF(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+F+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.X("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.$i(NaN,NaN):vFB(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return vFB(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ve(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.Bm());_.X("browse_skeleton_removal_on_watch_killswitch")||_.on("IS_SHELL_LOAD")&&j9z();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var B=_.YF(this);B.addEventListener("yt-player-updated",_.x7(this,this.onPlayerUpdated_));B.getPlayerPromise().then(function(F){G.playerApiReady_(F)});
_.X("kevlar_watch_flexy_playlist_manager")||(B=_.te().resolve(_.Wv),_.X("kevlar_watch_observe_playlist_navigations_killswitch")&&B.addEventListener("yt-navigate",_.x7(this,this.onYtNavigate_)),B.setPlaylistComponent(_.IF(this.hostElement).querySelector("#playlist")),B.addEventListener("yt-playlist-data-updated",_.x7(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Lu.addLowPriorityJob(function(){_.cZ(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.YF(this).removeEventListener("yt-player-updated",_.x7(this,this.onPlayerUpdated_));if(!_.X("kevlar_watch_flexy_playlist_manager")){var G=_.te().resolve(_.Wv);_.X("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.x7(this,this.onYtNavigate_));G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.x7(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.cZ(this.hostElement,"yt-autonav-pause-player",!1);G=_.vZ();_.X("kevlar_exit_fullscreen_leaving_watch")&&G&&_.oa(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,B){B.hasComments?B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):B.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,B){this.player&&(B?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.IF(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.IF(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;G=G.getPlayerState();_.VU().dispatch(_.ae(G));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.X("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.X("kevlar_unified_player")||_.X("kevlar_player_new_bootstrap_adoption"))&&_.bv()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,B){B=B===void 0?!0:B;_.vZ()&&_.X("external_fullscreen")&&_.oa(document.documentElement);this.theaterRequested_=G;B&&_.NS("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.X("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.T1(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cZ(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(G){_.$2(G,typeof this.player),this.player&&_.$2(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.T1(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,B){return this.loading?B:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next())B=B.value,B.youThereRenderer&&X8D(this.youThereManager_,B.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var B=this.youThereManager_;_.Z8()<G.lowEngagementThresholdMs||rk$(B,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.T1(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,B,F){return!!G&&!this.isVideoPlayable_(G,F)&&!B},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,B){if(!G)return!1;var F=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",D=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var u;B=B==null?void 0:(u=B.playerOverlayRenderer)==null?void 0:u.gatedActionsOverlayRenderer;return!!F||!!D||!!G||!!B},
shouldProceedToNextVideo_:function(G,B,F){var D=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B),u=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];u=_.X("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&u.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var R=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);R==void 0&&(R=!0);!F||this.isVideoPlayable_(G,this.getPlayerOverlays_(B))||
D||u||!R||_.te().resolve(_.Wv).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();gFZ()},
onPlayerFeedbackStartRequest_:function(G){_.T1(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.T1(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,B,F,D,u,R,N,y,U=((G=this.data)==null?NaN:(B=G.contents)==null?NaN:(F=B.twoColumnWatchNextResults)==null?NaN:(D=F.secondaryResults)==null?NaN:(u=D.secondaryResults)==null?NaN:(R=u.offerModule)==null?NaN:(N=R.tvfilmOfferModuleRenderer)==null?NaN:(y=N.actionButtons)==null?NaN:y.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(U>=0?U:0)+".buttonRenderer."];B=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(F=B.next();!F.done;F=B.next())for(F=F.value,D=_.C(G),u=D.next();!u.done;u=D.next())if(u="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+F+u.value,u=this.get(u+"navigationEndpoint",this.data)||this.get(u+"serviceEndpoint",this.data)||this.get(u+"command",this.data)){_.Br(u,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.cZ(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cZ(this.hostElement,"yt-autonav-pause-player-ended")}_.VU().dispatch(_.ae(G))},
onPlayerSubscribe_:function(G){_.T1(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.T1(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.T1(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(G){return!_.Nk("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return _.X("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,B,F,D;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(B=G.contents)==null?void 0:(F=B.twoColumnWatchNextResults)==null?void 0:(D=F.secondaryResults)==null?void 0:D.secondaryResults}},
setRichGridRendererData:function(G){this.richGridRendererData=G},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,B=(G=this.data)==null?void 0:G.engagementPanels;if(B==null?0:B.length){G=null;B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0;if(((D=F.engagementPanelSectionListRenderer)==null?void 0:D.targetId)==="engagement-panel-structured-description"){G=F;break}}var u,R,N;G=(u=G)==null?void 0:(R=u.engagementPanelSectionListRenderer)==null?void 0:(N=R.content)==null?void 0:N.structuredDescriptionContentRenderer;if(G==null?0:G.items){u=
[];R=_.C(G.items);for(N=R.next();!N.done;N=R.next()){N=N.value;if(!_.X("sd_horizontal_list_show_nav_killswitch")){var y=D=F=B=G=void 0,U=void 0,q=(G=N.horizontalCardListRenderer)==null?void 0:(B=G.header)==null?void 0:(F=B.richListHeaderRenderer)==null?void 0:(D=F.navigationButton)==null?void 0:(y=D.buttonRenderer)==null?void 0:(U=y.command)==null?void 0:U.commandExecutorCommand;q&&q.commands&&(q.commands=q.commands.filter(function(h){return!_.Q(h,B_z)}))}N.expandableVideoDescriptionBodyRenderer||
N.videoDescriptionHeaderRenderer||u.push(N)}return{items:u}}}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.cZ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var B=this.getScrollTop()>0;this.gestures_&&(B?this.gestures_.detach():this.gestures_.attach());B!==this.showFullerscreenEdu_&&_.X("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=B,_.YF(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cZ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.Lu.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.mX(_.Lu,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.X("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.KR("cmi");_.Lu.cancelJob(this.setCommentsJobId_);var G=tTA(this.data);if(G&&G.length){G=_.C(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,this.get("itemSectionRenderer.sectionIdentifier",B)==="comment-item-section"){this.comments=B.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cZ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.X("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.X("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.KR("cmc")},
doRemoveComments_:function(){this.comments={};_.X("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Lu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Lu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,B){var F=_.Q(B.endpoint,_.Ow);F&&(!(B=this.get("data.currentVideoEndpoint.watchEndpoint"))||F.videoId!==B.videoId||F.playlistId&&F.playlistId!==B.playlistId||F.index!==void 0&&F.index!==B.index||typeof F.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.YF(this).getPlayerPromise().then(function(D){var u=F.startTimeSeconds;D.seekTo(u);D.wakeUpControls();u<D.getDuration()&&D.playVideo()})))},
updatePlayerStartTime_:function(){var G=L5U();"t"in G&&(G=I$A(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=tTA(G);var B,F;(G=_.zx(G==null?void 0:(B=G[0])==null?void 0:(F=B.videoPrimaryInfoRenderer)==null?void 0:F.title))&&_.cZ(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.cZ(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,B,F){if(this.active&&this.player){var D=this.player.getVideoData();D.video_id===F&&(F=D.list,_.X("polymer_enable_mdx_queue")&&F&&F.startsWith("RQ")&&(F=void 0),D.video_id!==G||F!=B)&&(G=_.X("kevlar_player_watch_endpoint_navigation")?_.Rbl(RSz(G,B)):_.Ma(G,B),_.cZ(this.hostElement,"yt-navigate",{endpoint:G,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var B=G.querySelector("#primary-info"),F=G.querySelector("#secondary-info"),D=G.querySelector("#related");B&&_.IF(this.hostElement).querySelector("#info-skeleton").appendChild(B);F&&_.IF(this.hostElement).querySelector("#meta-skeleton").appendChild(F);D&&(_.IF(this.hostElement).querySelector("#related-skeleton").appendChild(D),this.watchNextSkeletonEl_=D);_.B1(G)}},
handlePlayerUpdated_:function(){_.YF(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,B){if(this.watchNextSkeletonEl_&&typeof B!=="undefined"){var F=this.watchNextSkeletonEl_.children,D=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,F.length);B||(D=0,G=F.length);for(B=D;B<G;B++)F[B].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.X("external_fullscreen")||_.T1(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var B=_.YF(this);B.getPlayerPromise().then(function(F){F.setFauxFullscreen(!!_.vZ())});
this.updateFullBleedElementLocations();G&&(B.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,B){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!B},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,B){return B&&!!G},
computeResponseHasComments:function(G){var B,F,D,u,R;return!!(G==null?0:(B=G.contents)==null?0:(F=B.twoColumnWatchNextResults)==null?0:(D=F.results)==null?0:(u=D.results)==null?0:(R=u.contents)==null?0:R.some(function(N){var y;return(N==null?void 0:(y=N.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,B){this.responseHasComments=this.computeResponseHasComments(this.data);return!!G&&!!Object.keys(G).length&&!B},
identity:_.oI,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.X("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(G){var B=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.YF(this).getPlayerPromise().then(function(F){var D=F.getPlayerState();D!==5&&D!==0&&(F=1/F.getVideoAspectRatio(),B.videoHeightToWidthRatio_!==F&&(B.videoHeightToWidthRatio_=F))})},
schedulePlayerSizeUpdate_:function(G){var B=this,F=_.X("kevlar_watch_while_v2")||_.X("web_watch_pip"),D=function(){if(B.watchMetadata){var u,R;(R=(u=B.watchMetadata).resize)==null||R.call(u)}_.YF(B).getPlayerPromise().then(function(N){if(_.Nk("kevlar_set_internal_player_size")){if(!F||!_.te().resolve(_.WP).isMiniplayerActive()){var y=B.calculateCurrentPlayerSize_();N.setInternalSize(y.width,y.height)}}else N.setSize(NaN,NaN);_.X("kevlar_watch_while")&&B.updateWatchWhileScrollThreshold_()})};
G?D():_.uQ(_.Lu,D)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.Q(G,oh$).survey)},
onDownloadedVideoDeleted:function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1){if(!B.active||(F=B.playerData)==null||!F.offlineState||B.videoId!==G)return u.return();(D=B.player)==null||D.stopVideo();_.Bv().navigatingAwayFromWatchDeletedVideo=!0;_.Br(_.lUU,B.hostElement);return u.yield(_.Bv().navigationFinishPromise,2)}_.Bv().navigatingAwayFromWatchDeletedVideo=!1;_.di(u)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.ki(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G)}},
isTwoColumnsChanged_:function(G,B){if(G!==!0||B!==void 0){G=!_.X("live_chat_over_engagement_panels");B=_.IF(this.hostElement).querySelector("#chat-container");var F=_.IF(this.hostElement).querySelector("#plj-sidebar"),D=_.IF(this.hostElement).querySelector("#panels"),u=_.IF(this.hostElement).querySelector("#plj-panels"),R=_.IF(this.hostElement).querySelector("#plj-playlist"),N=_.IF(this.hostElement).querySelector("#alerts"),y=_.IF(this.hostElement).querySelector("#playlist"),U=_.IF(this.hostElement).querySelector("#related"),
q=_.IF(this.hostElement).querySelector("#donation-shelf"),h=_.IF(this.hostElement).querySelector("#comments");this.isTwoColumns_?(N=_.IF(this.hostElement).querySelector("#secondary-inner"),N.appendChild(F),F.appendChild(R),R.appendChild(y),F.appendChild(u),G&&N.appendChild(D),_.X("web_watch_theater_chat")||N.appendChild(B),G||N.appendChild(D),N.appendChild(q),N.appendChild(U)):(G&&_.Wb(D,N),_.Wb(y,N),_.X("web_watch_theater_chat")||_.Wb(B,N),G||_.Wb(D,N),_.Wb(q,N),h&&(u&&_.Wb(u,h),_.Wb(U,h)));_.X("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.X("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.X("web_watch_theater_chat")){var G=_.IF(this.hostElement).querySelector("#chat-container"),B=this.theater&&!this.fullscreen||_.X("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&B?_.X("web_watch_theater_chat_beside_player")?(B=_.IF(this.hostElement).querySelector("#panels-full-bleed-container"),(G==null?void 0:G.parentElement)!==B&&B.append(G),this.panelsBesidePlayer=!0):_.X("web_watch_theater_fixed_chat")&&
(B=_.IF(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==B&&B.append(G),this.fixedPanels=!0):(_.X("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.X("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),B=_.IF(this.hostElement).querySelector("#playlist"),G&&B?_.Hb(G,B):_.em(new _.Uf("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!B})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,B){return _.X("sw_metadata_vis_toggle_ks")?!0:!!G||!!B},
computeForceDarkPanelTheme:function(G){return _.X("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.Ss(this.hostElement,G)}catch(B){_.em(B)}},
videoHeightToWidthRatioChanged_:function(G,B){B&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.X("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.YF(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.YF(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){WZB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var B=_.np(G)||0;_.yW(G,B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.np("yt-fullerscreen-edu-button-click-count")||0,B=_.np("yt-fullerscreen-edu-button-shown-count")||0,F=_.sD("external_fullscreen_button_shown_threshold"),D=G>=_.sD("external_fullscreen_button_click_threshold")||B>=F;_.YF(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonSubtleModeState(D)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,B){return B},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.te().resolve(_.Wv).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.panelMaxHeightUpdateJob_&&_.Lu.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Lu.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var B;!G.isTwoColumns_||G.theater||G.fullscreen?B=460:B=G.calculateNormalPlayerSize_().height;var F=B+"px";_.X("live_chat_taller_height")&&!G.theater&&(F="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.X("live_chat_medium_height")&&
!G.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.X("live_chat_scaled_height")&&!G.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":B+"px","--ytd-watch-flexy-chat-max-height":F,"--ytd-watch-flexy-structured-description-max-height":B+"px","--ytd-watch-flexy-comments-panel-max-height":B+"px","--ytd-comments-engagement-panel-content-height":B+"px"})})},
onYtShowEngagementPanelScrimAction_:function(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.tL(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var B=_.IF(this.hostElement).querySelector("#engagement-panel-scrim");G?B.addEventListener("tap",_.x7(this,this.onEngagementPanelScrimClick_)):B.removeEventListener("tap",_.x7(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var B=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var F=this.getPageScrollingElement(),D=this.getScrollTop(),u=D+F.clientHeight-56;if(B<D+56)B-=56;else if(G>u)B=G-F.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.X("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.DR().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,B,F){this.active&&this.trackEngagementPanelVisibility&&!fYD.includes(F)&&(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(F),B!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(F),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeFullBleedPlayer:function(G,B){return G||B},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,B){return!G&&B},
computeWatchWhilePanelsActive:function(G,B){return G||B},
computeNoBorderOnChat:function(G){return _.X("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,B){return G&&!B},
computePanelExpanded:function(G,B,F){return G||B||F},
onChangeMarkersVisibility:function(G){_.YF(this).getPlayerPromise().then(function(B){var F;(F=B.changeMarkerVisibility)==null||F.call(B,_.Q(G,E6).isVisible||!1,_.Q(G,E6).entityKeys||[],_.Q(G,E6).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.VU().dispatch(cDA(G.detail))},
provideRenderingData:function(G,B){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=B;break;case "PRIMARY_INFO":_.X("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=B);this.videoPrimaryInfoRendererValue=B==null?void 0:B.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.X("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=B);this.videoSecondaryInfoRendererValue=B==null?void 0:B.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
B;break;case "CLARIFICATION":this.clarifyBoxValue=B;break;case "LIVE_CHAT":this.conversationBar=B;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=B;break;case "PLAYLIST":this.externalPlaylistData_=B!=null?B:{};break;case "MERCH_SHELF":this.merchShelfValue=B==null?void 0:B.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=B;break;case "OFFER_MODULE":this.offerModule=B;break;case "LIMITED_STATE":this.limitedStateValue=B;break;case "DONATION_SHELF":this.donation=B;break;
case "ALERTS":this.alertsValue=B;break;case "COMMENTS":this.comments=B;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=B;break;case "ENGAGEMENT_PANELS":this.engagementPanels=B;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=B;break;case "RICH_GRID_RENDERER":this.richGridRendererData=B;break;case "EXPANDABLE_METADATA":this.expandableMetadata=B;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=B}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
getLearningJourneyEngagementPanels:function(G){return sXA.map(function(B){return G.find(function(F){var D;return(F==null?void 0:(D=F.engagementPanelSectionListRenderer)==null?void 0:D.targetId)===B})}).filter(function(B){return B!==void 0})},
getNonLearningJourneyEngagementPanels:function(G){return G.filter(function(B){var F;return!sXA.includes((B==null?void 0:(F=B.engagementPanelSectionListRenderer)==null?void 0:F.targetId)||"")})}}];var br=function(){return _.DO.apply(this,arguments)||this};
_.r(br,_.DO);_.w=br.prototype;_.w.activeChanged=function(){if(this.active){var G=_.IF(this.hostElement).querySelector("#header");G&&_.cZ(G,"iron-resize");window.addEventListener("scroll",_.x7(this,this.onScroll))}else window.removeEventListener("scroll",_.x7(this,this.onScroll)),_.cZ(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.w.guideVisibleChanged=function(){var G=_.IF(this.hostElement).querySelector("#header");G&&_.cZ(G,"iron-resize")};
_.w.onScroll=function(){var G=this;_.kT(this,"onScroll",function(){var B=_.IF(G.hostElement).querySelector("#header");B&&B.polymerController&&(B=B.polymerController.getScrollState().progress===1?"standard":"seamed",_.cZ(G.hostElement,"yt-request-panel-mode-change",{mode:B}))},10)};
_.w.tabsChanged=function(){if(this.tabs){for(var G=null,B=0,F=this.tabs.length;B<F;++B){var D=this.tabs[B].tabRenderer;if(D&&D.selected){G=B;break}}this.selected=G}};
_.w.onTabsActivate=function(G){_.cZ(this.hostElement,"yt-navigate",{endpoint:this.tabs[G.detail.selected].tabRenderer.endpoint})};
br.prototype.tabsChanged=br.prototype.tabsChanged;br.prototype.guideVisibleChanged=br.prototype.guideVisibleChanged;br.prototype.activeChanged=br.prototype.activeChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],br.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.I("design:type",Array)],br.prototype,"tabs",void 0);
_.c([_.v(),_.I("design:type",Object)],br.prototype,"selected",void 0);_.c([_.v(),_.I("design:type",Boolean)],br.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],br.prototype,"disableHeaderFluidWidth",void 0);_.c([_.Ga("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],br.prototype,"activeChanged",null);
_.c([_.Ga("guidePersistentAndVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],br.prototype,"guideVisibleChanged",null);_.c([_.Ga("tabs"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],br.prototype,"tabsChanged",null);_.c([_.uA()],br);var x4$=[_.g.YtRendererBehavior,_.jp.YtdGuideStateAwareBehavior,br.prototype];var GrZ=function(G){_.uz.call(this);var B=this;this.JSC$21570_watchApi=G;this.observer=null;var F=this.JSC$21570_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PWZ(B)});
this.addOnDisposeCallback(function(){B.JSC$21570_watchApi.unsubscribeByKey(F);B.observer&&(B.observer.disconnect(),B.observer=null)});
PWZ(this)};
_.r(GrZ,_.uz);var PWZ=function(G){var B,F,D,u,R;_.n(function(N){if(N.nextAddress==1){G.observer&&(G.observer.disconnect(),G.observer=null);B=G.JSC$21570_watchApi.getWatchNextResponse();if(!B)return N.return();F=_.Q(B,EhB);return((D=F)==null?0:D.enableCreatorChatbot)&&F.creatorChannelId?_.X("enable_creator_chatbot_link_out")?N.yield((0,_.Gc)("NSzT5"),6):N.yield((0,_.Gc)("NSzT5"),5):N.jumpTo(0)}if(N.nextAddress!=6)return u=_.BHD,u(F.creatorChannelId),N.jumpTo(0);R=_.im$;R(F.creatorChannelId);_.di(N)})};var VJ=function(G){_.uz.call(this);this.JSC$21574_watchApi=G;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;FyD(this)};
_.r(VJ,_.uz);var FyD=function(G){_.n(function(B){if(B.nextAddress==1)return B.yield(DAZ(G),2);uV$(G);_.di(B)})},DAZ=function(G){var B,F,D,u,R,N,y,U,q;
return _.n(function(h){if(h.nextAddress==1)return h.yield(G.JSC$21574_watchApi.playerApi,2);B=h.yieldResult;G.JSC$21574_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){R8z(G)});
G.JSC$21574_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){G.isShelfVisible?wnD(G):vG(G)});
F=_.VU().subscribe(function(){G.isTheaterMode=_.KA(_.VU().getState());G.isTheaterMode?vG(G):CO$(G)});
D=G.JSC$21574_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uV$(G)});
u=function(K){G.onCueRangeEnter(K)};
B.addEventListener("onCueRangeEnter",u);R=function(K){G.onCueRangeExit(K)};
B.addEventListener("onCueRangeExit",R);N=function(){G.isSeeking=!0};
B.addEventListener("SEEK_TO",N);y=function(){G.onSeekComplete()};
B.addEventListener("SEEK_COMPLETE",y);U=function(){G.onAdStart()};
B.addEventListener("onAdStart",U);q=function(){G.onAdComplete()};
B.addEventListener("onAdComplete",q);G.addOnDisposeCallback(function(){F();G.JSC$21574_watchApi.unsubscribeByKey(D);B.removeEventListener("onCueRangeEnter",u);B.removeEventListener("onCueRangeExit",R);B.removeEventListener("SEEK_TO",N);B.removeEventListener("SEEK_COMPLETE",y);B.removeEventListener("onAdStart",U);B.removeEventListener("onAdComplete",q)});
_.di(h)})},NHz=function(G){var B,F,D,u,R,N,y,U,q;
return(R=(B=G.contents)==null?void 0:(F=B.twoColumnWatchNextResults)==null?void 0:(D=F.results)==null?void 0:(u=D.results)==null?void 0:u.contents)==null?void 0:(N=R.find(function(h){var K,a,m;return(K=h.itemSectionRenderer)==null?void 0:(a=K.contents)==null?void 0:(m=a[0])==null?void 0:m.shoppingTimelyShelfViewModel}))==null?void 0:(y=N.itemSectionRenderer)==null?void 0:(U=y.contents)==null?void 0:(q=U[0])==null?void 0:q.shoppingTimelyShelfViewModel},uV$=function(G){var B;
_.n(function(F){if(F.nextAddress==1)return(B=G.JSC$21574_watchApi.getWatchNextResponse())?F.yield(R8z(G),2):F.return();G.shoppingTimelyShelfViewModel=NHz(B);yKz(G);ngD(G);_.di(F)})},yKz=function(G){var B,F=(B=G.shoppingTimelyShelfViewModel)==null?void 0:B.offerIdToVariants;
F&&(B=F.filter(function(D){return D.key&&D.value}).map(function(D){return[D.key,
D.value]}),G.variantsMap=new Map(B))},ngD=function(G){var B,F,D,u,R,N;
_.n(function(y){if(y.nextAddress==1)return(F=(B=G.shoppingTimelyShelfViewModel)==null?void 0:B.cueRanges)?y.yield(G.JSC$21574_watchApi.playerApi,2):y.return();D=y.yieldResult;G.cueRanges=F;u=_.C(F);for(R=u.next();!R.done;R=u.next())N=R.value,N.startTime!==void 0&&N.endTime!==void 0&&N.id!==void 0&&D.addCueRange("shopping_timely_shelf"+N.id,liS(N.startTime),liS(N.endTime));_.di(y)})},liS=function(G){return Number(G.seconds||0)+(G.nanos||0)/1E9};
VJ.prototype.onCueRangeEnter=function(G){if(G.startsWith("shopping_timely_shelf")&&(this.activeCueId=G,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){G=G.substring(21);var B,F,D=(B=this.variantsMap)==null?void 0:(F=B.get(G))==null?void 0:F.shelf;D&&(this.JSC$21574_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",D),wnD(this))}};
VJ.prototype.onCueRangeExit=function(G){G.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||vG(this))};
VJ.prototype.onSeekComplete=function(){this.isSeeking=!1;CO$(this)};
var wnD=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!0,_.pZ.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},vG=function(G){G.shoppingTimelyShelfViewModel&&G.isShelfVisible&&(G.isShelfVisible=!1,_.pZ.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},R8z=function(G){var B,F,D,u,R;
return _.n(function(N){if(N.nextAddress==1)return N.yield(G.JSC$21574_watchApi.playerApi,2);B=N.yieldResult;if(G.cueRanges)for(F=_.C(G.cueRanges),D=F.next();!D.done;D=F.next())u=D.value,u.id&&(R="shopping_timely_shelf"+u.id,B.removeCueRange(R));G.JSC$21574_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});vG(G);G.shoppingTimelyShelfViewModel=void 0;G.cueRanges=void 0;G.variantsMap=void 0;G.isSeeking=!1;G.activeCueId=void 0;_.di(N)})};
VJ.prototype.onAdStart=function(){this.isAdPlaying=!0;vG(this)};
VJ.prototype.onAdComplete=function(){this.isAdPlaying=!1;CO$(this)};
var CO$=function(G){if(G.activeCueId)G.onCueRangeEnter(G.activeCueId);else vG(G)};var Ky$=function(G){_.uz.call(this);var B=this;this.JSC$21581_watchApi=G;G=_.Dh(_.VU(),_.QNI,function(){UAD(B)});
this.addOnDisposeCallback(G);G=_.Dh(_.VU(),B8H,function(){UAD(B)});
this.addOnDisposeCallback(G);qNS(this);Eg$(this);h8B()};
_.r(Ky$,_.uz);var qNS=function(G){var B=function(D){_.VU().dispatch(JDQ(D.matches))},F=window.matchMedia("(max-width: "+(999+fC())+"px)");
F.addListener(B);G.addOnDisposeCallback(function(){F.removeListener(B)});
B(F)},Eg$=function(G){G.JSC$21581_watchApi.registerActionHandler("yt-window-resized",function(){h8B()});
G.addOnDisposeCallback(function(){G.JSC$21581_watchApi.unregisterActionHandler("yt-window-resized")})},h8B=function(){var G=_.Bm();
_.VU().dispatch(_.d5({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:G.width,height:G.height}}}))},UAD=function(G){var B;
_.n(function(F){if(F.nextAddress==1)return F.yield(G.JSC$21581_watchApi.playerApi,2);B=F.yieldResult;B.setSize(NaN,NaN);_.di(F)})};var aiB=function(G){_.uz.call(this);var B=_.te().resolve(_.w1);GkH(B,G.getElement("PLAYER_CONTAINER"),G.getElement("BELOW_THE_PLAYER"),G.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var F=G.getElement("PLAYER_CONTAINER"),D=G.getElement("BELOW_THE_PLAYER"),u=G.getElement("SECONDARY");B.isLockupToWatchTransitionEnabled&&(F&&_.Lh(B.viewTransitionCoordinator,F),D&&_.Lh(B.viewTransitionCoordinator,D),u&&_.Lh(B.viewTransitionCoordinator,u))})};
_.r(aiB,_.uz);var ov=function(G){eX.call(this);var B=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return B.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(F){B.initOrDisposeActiveModules(F)}));
this.onAttached()};
_.r(ov,eX);_.w=ov.prototype;_.w.getRoot=function(){return this.rootElement};
_.w.getElement=function(G){return this.rootElement.getElement(G)};
_.w.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.w.getPlayerResponse=function(){return this.playerResponse};
_.w.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.w.getWatchNextResponse=function(){return this.watchNextResponse};
_.w.registerActionHandler=function(G,B){var F=this;if(_.X("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.Y2(_.pZ.getInstance(),(D[G]=B,D),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),D={},_.Y2(_.pZ.getInstance(),(D[G]=function(){var u=_.xS.apply(0,arguments);return(F.actionHandlers.get(G)||[]).map(function(R){return R.apply(null,_.gi(u))})},D),this.getRoot())),this.actionHandlers.get(G).push(B)};
_.w.unregisterActionHandler=function(G){if(_.X("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.Ab(_.pZ.getInstance(),(B[G]=!0,B),this.getRoot())}else(B=this.actionHandlers.get(G))?(B.pop(),B.length===0&&(B={},_.Ab(_.pZ.getInstance(),(B[G]=!0,B),this.getRoot()),this.actionHandlers.delete(G))):_.em(new _.Uf("Attempted to unregister an action handler which is not registered.",G))};
_.w.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.$LI(this.rootElement.pageDisposeJobs,G)};
_.w.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.dU(this.rootElement.pageDisposeJobs,G)};
_.w.dispatchEvent=function(G,B){_.cZ(this.rootElement,G,B)};
_.w.provideRenderingData=function(G,B){this.rootElement.provideRenderingData(G,B)};
_.w.scrollWatchTo=function(G,B){var F;(F=this.watchScrollManager)==null||F.scrollWatchTo(G,B)};
_.w.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.ft(G,function(){if(G&&G.firstElementChild){var B=G.querySelector(".html5-video-player");B&&(_.v9(_.te().resolve(_.uN)),B.focus())}else _.em(Error("Vl"))})};
_.w.subscribeToActiveChanged=function(G,B){B=B===void 0?!0:B;var F=_.Dh(_.VU(),PfD,function(D){G(D)});
B&&G(PfD(_.VU().getState()));return F};
_.w.isActive=function(){return PfD(_.VU().getState())};
_.w.onAttached=function(){var G=_.X("external_fullscreen");_.X("use_unified_flag_accessor")&&(G=_.te().resolve(_.fAN).retriever.getFlag(_.zZP));(G||_.on("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var mAU=function(G){return G.getRoot().is==="ytd-watch-flexy"||G.getRoot().is==="ytd-watch-grid"},Mx=function(G){return G.getRoot().is==="ytd-watch-fixie"};
ov.prototype.initPersistentModules=function(){if(Mx(this)||mAU(this)&&_.X("kevlar_watch_flexy_theater_manager")){var G=new czG(this);_.gq(this,G)}G=new D42(this);_.gq(this,G);G=new me(this);_.gq(this,G);G=new svD(this);_.gq(this,G);G=new $X(this);_.gq(this,G);G=new Xc(this);_.gq(this,G);if(Mx(this)||mAU(this)&&_.X("kevlar_watch_flexy_playlist_manager"))G=new YbD(this),_.gq(this,G);_.X("web_thumbnail_to_watch_transition")&&(G=new aiB(this),_.gq(this,G))};
ov.prototype.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new zw(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new XFN(this)),_.X("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new VJ(this)),this.activeModules.push(new Ar$(this)),Mx(this)&&this.activeModules.push(new Ky$(this)),this.activeModules.push(new IUA(this)),this.activeModules.push(new lU$(this)),(Mx(this)||_.X("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new Io$(this)),
this.activeModules.push(new keG(this)),(Mx(this)||_.X("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new tB$(this)),(Mx(this)||_.X("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new DxU(this)),_.Nk("kevlar_watch_cinematics")&&(this.watchCinematicManager=new VSD(this),this.activeModules.push(this.watchCinematicManager)),_.X("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new znN(this)),_.X("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new BVQ(this)),
G=_.X("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.X("kevlar_watch_flexy_comments_manager")&&!G&&this.activeModules.push(new IY2(this)),_.X("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new w4$(this)),this.activeModules.push(new S3Z(this)),this.activeModules.push(new jXz(this)),_.X("web_enable_timely_actions")&&this.activeModules.push(new GwQ(this)),_.X("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new j0G(this)),_.X("web_watch_enable_multiview_manager")&&
this.activeModules.push(new UEA(this)),_.X("web_fullscreen_components")&&this.activeModules.push(new SmB(this)),_.X("web_player_rtr_ctrls")&&this.activeModules.push(new rzA(this)),(_.X("enable_creator_chatbot")||_.X("enable_creator_chatbot_link_out"))&&this.activeModules.push(new GrZ(this))):(_.oi(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
ov.prototype.disposeInternal=function(){eX.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ZN.Object.defineProperties(ov.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.YN(_.Y(function(G){var B=G.data;G=_.C(_.qg(!1,void 0,"VotqNe"));var F=G.next().value,D=G.next().value;_.$f(function(){_.pZ.getInstance().triggerAction("yt-request-timely-shelf-state")});
var u=_.mS(function(){var q,h,K=(q=_.Q(B().rendererContext,_.wJ))==null?void 0:(h=q.loggingDirectives)==null?void 0:h.trackingParams;if(K)return _.yX(K)},void 0,"AvMXxb");
_.Y2(_.pZ.getInstance(),{"yt-hide-shopping-timely-shelf":function(){D(!1);var q=_.qW(),h=u();q&&h&&_.eD(q,[h])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){D(!0);var q=_.qW(),h=u();q&&h&&_.Oq(q,[h])})}});
var R=function(){var q;return(q=B().image)==null?void 0:q.image},N=function(){var q,h;
return!!((q=R())==null?0:(h=q.sources)==null?0:h.some(function(K){var a;return!!(K==null?0:(a=K.clientResource)==null?0:a.imageName)}))},y=function(){var q;
return((q=B().image)==null?void 0:q.height)||40},U=function(){var q;
return(q=B().image)==null?void 0:q.backgroundColor};
G={};return _.l("yt-shopping-timely-shelf-content-view-model",{el:_.VX(_.mR(function(){return B().rendererContext})),
class:_.tx("ytShoppingTimelyShelfContentViewModelHost",(G.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(B().image||B().avatar||B().line1)&&F()},G)),
style:_.xN({"--shopping-timely-shelf-content-padding-top":function(){var q;return Zx$((q=B().padding)==null?void 0:q.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var q;return Zx$((q=B().padding)==null?void 0:q.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var q;return Zx$((q=B().padding)==null?void 0:q.start)},
"--shopping-timely-shelf-content-padding-end":function(){var q;return Zx$((q=B().padding)==null?void 0:q.end)},
"--yt-shopping-timely-shelf-background-color":function(){return B().backgroundColor!==void 0?_.Kp(B().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var q,h;return((h=(q=B().image)==null?void 0:q.cornerRadius)!=null?h:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return U()!==void 0?_.Kp(U()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var q;return(((q=B().image)==null?void 0:q.width)||40)+"px"}})},_.l(_.E,{cond:R,
then:function(q){var h={};return _.l(_.vr,{preserveHeight:!0,preserveWidth:!0,height:y,data:q,alt:"",className:_.tx("ytShoppingTimelyShelfContentViewModelImage",(h.ytShoppingTimelyShelfContentViewModelIcon=N,h))})}}),_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8}),_.l("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.l(_.uR,{data:function(){return B().line1}},{shoppingContentLineViewModel:function(q){return _.l(_.oj,{data:q.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.l(_.uR,{data:function(){return B().line2}},{shoppingContentLineViewModel:function(q){return _.l(_.oj,{data:q.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.l("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.l(_.uR,{data:function(){var q;
return(q=B().button)!=null?q:[]}},{buttonViewModel:function(q){var h=q.data;
return _.l(_.cd,{data:h,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(K){h().onTap&&K.stopPropagation()}})}})))},"sk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Hd}});var Xnz={};
Xnz.YtdWatchBehavior=[_.g.YtRendererBehavior,_.kV.YtPlayerListenerBehavior,_.oS.YtRendererstamperBehavior,_.Za.YtActionHandlerBehavior,ir.YtPageBehavior,_.ti.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.on("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.X("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 _.on("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.X("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.sD("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.sD("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.X("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.X("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.X("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.X("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("swatcheroo_enable_ghost_cards")||_.X("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("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 _.X("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.X("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 _.X("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.X("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(G,B,F){return G&&(B||!F)},
computeShowGhostRelated_:function(G,B,F){return G&&(B||!F)},
monitorScroll:!0,configureRendererStamper:function(){var G={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:ql(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:ql(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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"||_.X("swa_prov_panels_ks")?G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},G.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return G},
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-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 G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.X("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.X("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.X("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new KZA(function(){return _.YF(G)},this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.U1;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.X("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));_.X("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.x7(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.X("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.X("kevlar_watch_while_v2")&&!_.X("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.X("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.cZ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.X("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){UWD("watch",["pbs","pbp","pbu"]);this.updatePageData_(G)},
updatePageData_:function(G){var B=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.qa({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.KR("nw");this.loading=!1;_.mX(_.Lu,function(){WDz();var D,u=((D=B.player)==null?void 0:D.getVideoData().cpn)||"";$WZ(function(R,N){biQ(R,N,u)})})},
onPageLoadWithSameData_:function(){_.X("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 G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;if(_.X("kevlar_watch_frame0_loading_state")){var B,F,D;G=(B=this.loadingData)==null?void 0:(F=B.endpoint)==null?void 0:(D=F.watchEndpoint)==null?void 0:D.videoId;var u;G&&(u="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.IF(this.hostElement).querySelector("#player").style.backgroundImage=u?"url("+u+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.IF(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var B,F;(F=(B=this.watchMetadata).updateSentimentBarWidth)==
null||F.call(B);var D,u;(u=(D=this.watchMetadata).resize)==null||u.call(D)}_.X("kevlar_watch_frame0_loading_state")&&(_.IF(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(G){var B=_.IF(this.hostElement).querySelector(G);B?_.MW(B,!1):_.em(new _.Uf("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var B=_.IF(this.hostElement).querySelector(G);B?_.pi(B):_.em(new _.Uf("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.X("web_thumbnail_to_watch_transition")&&!_.qOH||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.X("web_thumbnail_to_watch_transition")&&!_.qOH||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(G){var B=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Lu.addLowPriorityJob(function(){B.onWindowResized_(_.Bm(!0))})},
updateTheaterModeState_:function(G){if(!_.X("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&UDD()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var G=this.fullBleedPlayer?_.IF(this.hostElement).querySelector("#player-full-bleed-container"):_.IF(this.hostElement).querySelector("#player-container-inner");var B=this.getPlayerContainer(),F=_.X("kevlar_watch_while_v2")||_.X("web_watch_pip");B.parentElement!==G&&(F&&_.te().resolve(_.WP).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.YF(this).appendTo(G,B))},
updateErrorScreenLocation:function(){var G=_.IF(this.hostElement).querySelector("#error-screen"),B=this.fullBleedPlayer?_.IF(this.hostElement).querySelector("#player-full-bleed-container"):_.IF(this.hostElement).querySelector("#player");G.parentElement!==B&&B.appendChild(G)},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.n(function(B){if(B.nextAddress==1)return B.yield(_.te().resolve(_.WP).deactivate(),2);G.updatePlayerLocation();_.di(B)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var B=this.getCinematicsLocationContainer();G.parentElement!==B&&B.appendChild(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.IF(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.IF(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(G,B,F){var D=document.documentElement.hasAttribute("dark"),u=!D&&this.cinematicLightTheme;return F||G&&D||B&&D||(B||G)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G=this,B;(B=this.watchController)==null||B.setWatchNextResponse(this.data);_.X("kevlar_watch_flexy_comments_manager")||this.initComments_();_.X("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.te().resolve(_.Wv).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.X("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Lu.addLowPriorityJob(function(){_.Ia(G.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.X("web_watch_start_chat_in_theater_mode")){var F,D,u;if((F=this.data)==null?0:(D=F.contents)==null?0:(u=D.twoColumnWatchNextResults)==null?0:u.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var R,N;((R=this.data)==null?0:(N=R.contents)==null?0:N.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(G){var B;(B=this.watchController)==null||B.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(B=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=gwQ(G.playabilityStatus),B&&!G||_.ft(this,function(){_.KR("pbu")}));
this.setPlayerAds_();_.Ia(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(G,B){if((_.X("kevlar_watch_while_v2")||_.X("web_watch_pip"))&&this.playerData&&B)return this.playerData.videoDetails},
watchPageActiveChanged_:function(G){_.VU().dispatch(dp$(this.active));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new ov(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.X("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var B=_.YF(this);_.X("kevlar_disable_prepare_player")||
B.preparePlayer();_.X("kevlar_watch_flexy_playlist_manager")||_.te().resolve(_.Wv).setPlayer(B);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();B={"--ytd-watch-flexy-scrollbar-width":fC()+"px"};this.is==="ytd-watch-grid"&&(_.VU().dispatch(_.d5({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),B["--ytd-watch-flexy-sidebar-width"]=eiN+"px",B["--ytd-watch-grid-horizontal-page-margins"]=Zj+"px",B["--ytd-watch-grid-columns-top-margins"]=bAz+"px",
B["--ytd-watch-grid-min-player-height-medium"]="360px");!_.sD("kv_pl_mx_sz_ks")&&_.sD("kevlar_watch_max_player_width")&&(B["--ytd-watch-flexy-max-player-width-wide-screen"]=ziz+"px");_.sD("kevlar_watch_flexy_metadata_height")&&(B["--ytd-watch-flexy-space-below-player"]=VoU+"px");this.safeUpdateStyles(B);_.X("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new eS(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.IF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var G=fC(),B=tO+G,F=B;this.fixedPanels&&(B+=eiN);var D=657+G;G=1327+G;_.IF(this.hostElement).querySelector("#two-column-query").query="(min-width: "+B+"px)";_.IF(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(D+"px), (min-height: 630px) and (min-width: ")+(B+"px) and (max-width: ")+(G+"px)");_.IF(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");_.IF(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+F+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var G=this.squeezeback&&!_.X("web_watch_squeezeback_player_size_killswitch");return this.theater||_.X("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||G||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.$i(NaN,NaN):vFB(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return vFB(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ve(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.Bm());_.X("browse_skeleton_removal_on_watch_killswitch")||_.on("IS_SHELL_LOAD")&&j9z();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var B=_.YF(this);B.addEventListener("yt-player-updated",_.x7(this,this.onPlayerUpdated_));B.getPlayerPromise().then(function(F){G.playerApiReady_(F)});
_.X("kevlar_watch_flexy_playlist_manager")||(B=_.te().resolve(_.Wv),_.X("kevlar_watch_observe_playlist_navigations_killswitch")&&B.addEventListener("yt-navigate",_.x7(this,this.onYtNavigate_)),B.setPlaylistComponent(_.IF(this.hostElement).querySelector("#playlist")),B.addEventListener("yt-playlist-data-updated",_.x7(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Lu.addLowPriorityJob(function(){_.cZ(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.YF(this).removeEventListener("yt-player-updated",_.x7(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.X("kevlar_watch_flexy_playlist_manager")){var G=_.te().resolve(_.Wv);_.X("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.x7(this,this.onYtNavigate_));
G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.x7(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.cZ(this.hostElement,"yt-autonav-pause-player",!1);G=_.vZ();_.X("kevlar_exit_fullscreen_leaving_watch")&&G&&_.oa(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,B){B.hasComments?B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):B.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,B){this.player&&(B?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.IF(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.IF(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;G=G.getPlayerState();_.VU().dispatch(_.ae(G));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();(_.X("kevlar_unified_player")||_.X("kevlar_player_new_bootstrap_adoption"))&&_.bv()},
setTheaterModeRequested:function(G,B){B=B===void 0?!0:B;_.vZ()&&_.X("external_fullscreen")&&_.oa(document.documentElement);this.theaterRequested_=G;B&&_.NS("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.T1(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cZ(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(G){_.$2(G,typeof this.player),this.player&&_.$2(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.T1(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,B){return this.loading?B:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.C(G);for(var B=G.next();!B.done;B=G.next())B=B.value,B.youThereRenderer&&X8D(this.youThereManager_,B.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var B=this.youThereManager_;_.Z8()<G.lowEngagementThresholdMs||rk$(B,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.T1(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,B,F){return!!G&&!this.isVideoPlayable_(G,F)&&!B},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,B){if(!G)return!1;var F=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",D=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var u;B=B==null?void 0:(u=B.playerOverlayRenderer)==null?void 0:u.gatedActionsOverlayRenderer;return!!F||!!D||!!G||!!B},
shouldProceedToNextVideo_:function(G,B,F){var D=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B),u=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];u=_.X("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&u.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var R=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);R==void 0&&(R=!0);!F||this.isVideoPlayable_(G,this.getPlayerOverlays_(B))||
D||u||!R||_.te().resolve(_.Wv).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();gFZ()},
onPlayerFeedbackStartRequest_:function(G){_.T1(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.T1(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,B,F,D,u,R,N,y,U=((G=this.data)==null?NaN:(B=G.contents)==null?NaN:(F=B.twoColumnWatchNextResults)==null?NaN:(D=F.secondaryResults)==null?NaN:(u=D.secondaryResults)==null?NaN:(R=u.offerModule)==null?NaN:(N=R.tvfilmOfferModuleRenderer)==null?NaN:(y=N.actionButtons)==null?NaN:y.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(U>=0?U:0)+".buttonRenderer."];B=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(F=B.next();!F.done;F=B.next())for(F=F.value,D=_.C(G),u=D.next();!u.done;u=D.next())if(u="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+F+u.value,u=this.get(u+"navigationEndpoint",this.data)||this.get(u+"serviceEndpoint",this.data)||this.get(u+"command",this.data)){_.Br(u,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.cZ(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cZ(this.hostElement,"yt-autonav-pause-player-ended")}_.VU().dispatch(_.ae(G))},
onPlayerSubscribe_:function(G){_.T1(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.T1(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.T1(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
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(G){return!_.Nk("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.X("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,B,F,D;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(B=G.contents)==null?void 0:(F=B.twoColumnWatchNextResults)==null?void 0:(D=F.secondaryResults)==null?void 0:D.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,B=(G=this.data)==null?void 0:G.engagementPanels;if(B==null?0:B.length){G=null;B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0;if(((D=F.engagementPanelSectionListRenderer)==null?void 0:D.targetId)==="engagement-panel-structured-description"){G=F;break}}var u,R,N;G=(u=G)==null?void 0:(R=u.engagementPanelSectionListRenderer)==null?void 0:(N=R.content)==null?void 0:N.structuredDescriptionContentRenderer;if(G==null?0:G.items){u=
[];R=_.C(G.items);for(N=R.next();!N.done;N=R.next()){N=N.value;if(!_.X("sd_horizontal_list_show_nav_killswitch")){var y=D=F=B=G=void 0,U=void 0,q=(G=N.horizontalCardListRenderer)==null?void 0:(B=G.header)==null?void 0:(F=B.richListHeaderRenderer)==null?void 0:(D=F.navigationButton)==null?void 0:(y=D.buttonRenderer)==null?void 0:(U=y.command)==null?void 0:U.commandExecutorCommand;q&&q.commands&&(q.commands=q.commands.filter(function(h){return!_.Q(h,B_z)}))}(!N.expandableVideoDescriptionBodyRenderer&&
!N.videoDescriptionHeaderRenderer||_.X("web_delhi_colorful_sd"))&&u.push(N)}return{items:u}}}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.Lu.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.mX(_.Lu,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.X("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.KR("cmi");_.Lu.cancelJob(this.setCommentsJobId_);var G=S$D(this.data);if(G&&G.length){G=_.C(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,this.get("itemSectionRenderer.sectionIdentifier",B)==="comment-item-section"){this.comments=B.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cZ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.X("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.X("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.KR("cmc")},
doRemoveComments_:function(){this.comments={};_.X("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Lu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Lu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,B){var F=_.Q(B.endpoint,_.Ow);F&&(!(B=this.get("data.currentVideoEndpoint.watchEndpoint"))||F.videoId!==B.videoId||F.playlistId&&F.playlistId!==B.playlistId||F.index!==void 0&&F.index!==B.index||typeof F.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.YF(this).getPlayerPromise().then(function(D){var u=F.startTimeSeconds;D.seekTo(u);D.wakeUpControls();u<D.getDuration()&&D.playVideo()})))},
updatePlayerStartTime_:function(){var G=L5U();"t"in G&&(G=I$A(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=S$D(G);var B,F;(G=_.zx(G==null?void 0:(B=G[0])==null?void 0:(F=B.videoPrimaryInfoRenderer)==null?void 0:F.title))&&_.cZ(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.cZ(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,B,F){if(this.active&&this.player){var D=this.player.getVideoData();D.video_id===F&&(F=D.list,_.X("polymer_enable_mdx_queue")&&F&&F.startsWith("RQ")&&(F=void 0),D.video_id!==G||F!=B)&&(G=_.X("kevlar_player_watch_endpoint_navigation")?_.Rbl(RSz(G,B)):_.Ma(G,B),_.cZ(this.hostElement,"yt-navigate",{endpoint:G,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var B=G.querySelector("#primary-info"),F=G.querySelector("#secondary-info"),D=G.querySelector("#related");B&&_.IF(this.hostElement).querySelector("#info-skeleton").appendChild(B);F&&_.IF(this.hostElement).querySelector("#meta-skeleton").appendChild(F);D&&(_.IF(this.hostElement).querySelector("#related-skeleton").appendChild(D),this.watchNextSkeletonEl_=D);_.B1(G)}},
handlePlayerUpdated_:function(){_.YF(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,B){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof B!=="undefined"){var F=this.watchNextSkeletonEl_.children,D=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,F.length);B||(D=0,G=F.length);if(!this.ghostCardsEnabled)for(B=D;B<G;B++)F[B].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.X("external_fullscreen")||_.T1(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var B=_.YF(this);B.getPlayerPromise().then(function(F){F.setFauxFullscreen(!!_.vZ())});
this.updateFullBleedElementLocations();G&&B.focusOnPlayer()},
computeShouldStampChat_:function(G,B){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!B},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,B){return B&&!!G},
computeResponseHasComments:function(G){var B,F,D,u,R;return!!(G==null?0:(B=G.contents)==null?0:(F=B.twoColumnWatchNextResults)==null?0:(D=F.results)==null?0:(u=D.results)==null?0:(R=u.contents)==null?0:R.some(function(N){var y;return(N==null?void 0:(y=N.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,B,F,D){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&D?!1:!!G&&!!Object.keys(G).length&&!B},
identity:_.oI,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(G){var B=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.YF(this).getPlayerPromise().then(function(F){var D=F.getPlayerState();D!==5&&D!==0&&(F=1/F.getVideoAspectRatio(),B.videoHeightToWidthRatio_!==F&&(B.videoHeightToWidthRatio_=F))})},
schedulePlayerSizeUpdate_:function(G){var B=this,F=_.X("kevlar_watch_while_v2")||_.X("web_watch_pip"),D=function(){if(B.watchMetadata){var u,R;(R=(u=B.watchMetadata).resize)==null||R.call(u)}_.YF(B).getPlayerPromise().then(function(N){if(_.Nk("kevlar_set_internal_player_size")){if(!F||!_.te().resolve(_.WP).isMiniplayerActive()){var y=B.calculateCurrentPlayerSize_();N.setInternalSize(y.width,y.height)}}else N.setSize(NaN,NaN);_.X("kevlar_watch_while")&&B.updateWatchWhileScrollThreshold_()})};
G?D():_.uQ(_.Lu,D)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.Q(G,oh$).survey)},
onDownloadedVideoDeleted:function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1){if(!B.active||(F=B.playerData)==null||!F.offlineState||B.videoId!==G)return u.return();(D=B.player)==null||D.stopVideo();_.Bv().navigatingAwayFromWatchDeletedVideo=!0;_.Br(_.lUU,B.hostElement);return u.yield(_.Bv().navigationFinishPromise,2)}_.Bv().navigatingAwayFromWatchDeletedVideo=!1;_.di(u)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.ki(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var G=_.IF(this.hostElement).querySelector("#secondary-inner");if(G){var B=_.IF(this.hostElement).querySelector("#below"),F=_.IF(this.hostElement).querySelector("#secondary"),D=_.IF(this.hostElement).querySelector("#comments");D&&F&&B&&(this.defaultTwoColumnLayout?(G.appendChild(D),F.appendChild(G)):(B.appendChild(D),jk(B,G)))}}},
isTwoColumnsChanged_:function(G,B){if(G!==!0||B!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(G=_.IF(this.hostElement).querySelector("#secondary-inner"))){B=_.IF(this.hostElement).querySelector("#below");var F=_.IF(this.hostElement).querySelector("#secondary"),D=_.IF(this.hostElement).querySelector("#comments");D&&F&&B&&(this.isTwoColumns_?(G.appendChild(D),F.appendChild(G)):(B.appendChild(D),jk(B,G)))}}else{G=!_.X("web_watch_enable_fs_squeezeback_panels");
B=_.IF(this.hostElement).querySelector("#panels");var u=_.IF(this.hostElement).querySelector("#alerts"),R=_.IF(this.hostElement).querySelector("#shopping-timely-shelf");F=_.IF(this.hostElement).querySelector("#playlist");D=_.IF(this.hostElement).querySelector("#related");var N=_.IF(this.hostElement).querySelector("#donation-shelf"),y=_.IF(this.hostElement).querySelector("#comments"),U=_.IF(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(u=_.IF(this.hostElement).querySelector("#secondary-inner"),
G&&(u.appendChild(B),u.appendChild(F),this.aiCompanionEnabled&&U&&u.appendChild(U)),u.appendChild(N),u.appendChild(D)):(G&&(_.Wb(B,u),_.Wb(F,u),this.aiCompanionEnabled&&U&&_.Wb(U,u),_.Wb(R,F)),_.Wb(N,u),y&&_.Wb(D,y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.X("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.X("web_watch_enable_fs_squeezeback_panels")&&_.X("web_watch_theater_chat")){var G=_.IF(this.hostElement).querySelector("#chat-container"),B=this.theater&&!this.fullscreen||_.X("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&B?(B=_.IF(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==B&&B.append(G),this.fixedPanels=!0):(this.fixedPanels=
!1,B=_.IF(this.hostElement).querySelector("#playlist"),G&&B?_.Hb(G,B):_.em(new _.Uf("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!B})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,B){return _.X("sw_metadata_vis_toggle_ks")?!0:!!G||!!B},
computeForceDarkPanelTheme:function(G){return _.X("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.Ss(this.hostElement,G)}catch(B){_.em(B)}},
videoHeightToWidthRatioChanged_:function(G,B){B&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.YF(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.YF(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){WZB(this.youThereManager_)},
computePlaylistData_:function(G,B){return B},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.te().resolve(_.Wv).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var G=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Lu.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Lu.addLowPriorityJob(function(){G.fullHeightPanelPositionUpdateJobId=0;var B=_.IF(G.hostElement).querySelector("#secondary"),F=_.IF(G.hostElement).querySelector("#fixed-secondary");B=B.getBoundingClientRect();var D=B.width;G.swatcherooSqueezeback&&
(D+=Zj);if(G.swatcherooSqueezeback){var u=_.IF(G.hostElement).querySelector("#squeezeback-constraining-container");u.style.width=D+"px";u.style.flex="0 0 "+D+"px"}F.style.width=D+"px";F.style.left=B.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Lu.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Lu.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var B;!G.isTwoColumns_||G.theater||G.fullscreen?B=460:B=G.calculateNormalPlayerSize_().height;var F=B+"px";_.X("live_chat_taller_height")&&!G.theater&&(F="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.X("live_chat_medium_height")&&!G.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.X("live_chat_scaled_height")&&!G.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":B+"px","--ytd-watch-flexy-chat-max-height":F,"--ytd-watch-flexy-structured-description-max-height":B+"px","--ytd-watch-flexy-comments-panel-max-height":B+"px","--ytd-comments-engagement-panel-content-height":B+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.tL(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var B=_.IF(this.hostElement).querySelector("#engagement-panel-scrim");G?B.addEventListener("tap",_.x7(this,this.onEngagementPanelScrimClick_)):B.removeEventListener("tap",_.x7(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtEngagementPanelVisibleChanged:function(G,B,F){if(this.active&&this.trackEngagementPanelVisibility&&!fYD.includes(F)){if(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Ia(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var D=_.te().resolve(_.yR);this.visiblePanelIdentifiers_.forEach(function(u){u!==F&&D.hidePanel({identifier:u})})}this.visiblePanelIdentifiers_.add(F)}B!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(F);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeIsSingleColumn:function(G,B){return B&&!G},
computeFullBleedPlayer:function(G,B,F){return _.X("external_fullscreen")&&G||B||F},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,B){return!G&&B},
updatePanelsLocation:function(){if(_.X("web_watch_enable_fs_squeezeback_panels")){var G=_.IF(this.hostElement).querySelector("#below"),B=_.IF(this.hostElement).querySelector("#panels"),F=_.IF(this.hostElement).querySelector("#playlist"),D=_.IF(this.hostElement).querySelector("#chat-container"),u=_.IF(this.hostElement).querySelector("#panels-full-bleed-container"),R=_.IF(this.hostElement).querySelector("#secondary-inner"),N=_.IF(this.hostElement).querySelector("#shopping-timely-shelf"),y=_.IF(this.hostElement).querySelector("#persistent-panel-container");
if(G&&B&&F&&D&&u&&R&&N&&(this.aiCompanionEnabled?y:1)){var U=this.fullscreen||this.theater&&this.iMaxTheaterMode,q=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;q?(q=_.IF(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==q&&q.append(D),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):U?u.appendChild(D):this.isTwoColumns_?jk(R,D):jk(G,D);U?(u.appendChild(B),u.appendChild(F),
this.aiCompanionEnabled&&y&&u.appendChild(y)):(this.isTwoColumns_?(jk(R,B),jk(R,F),this.aiCompanionEnabled&&y&&jk(R,y)):(jk(G,B),jk(G,F),this.aiCompanionEnabled&&y&&jk(G,y)),jk(G,N))}}},
swatcherooUpdatePanelsLocation:function(G,B,F,D,u,R){if(this.is==="ytd-watch-grid"){B=G&&!B;this.swatcherooSplitScroll&&(B?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));F=_.IF(this.hostElement).querySelector("#panels");var N=_.IF(this.hostElement).querySelector("#playlist"),y=_.IF(this.hostElement).querySelector("#persistent-panel-container"),
U=_.IF(this.hostElement).querySelector("#fixed-secondary"),q=_.IF(this.hostElement).querySelector("#fixed-below"),h=_.IF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),K=_.IF(this.hostElement).querySelector("#chat-container");R&&(G?(U.appendChild(F),this.aiCompanionEnabled&&y&&U.appendChild(y)):(q.appendChild(F),this.aiCompanionEnabled&&y&&q.appendChild(y)));u?G?U.appendChild(K):q.appendChild(K):_.Hb(K,h);D?G?U.appendChild(N):q.appendChild(N):_.Hb(N,
h);this.swatcherooSplitScroll&&(G=_.IF(this.hostElement).querySelector("#secondary"),D=_.IF(this.hostElement).querySelector("#columns"),u=_.IF(this.hostElement).querySelector("#fixed-columns-secondary"),B?u.appendChild(G):D.appendChild(G))}},
computeMetadataSkinnyMode:function(G,B,F){return this.is!=="ytd-watch-grid"?!1:G?F:B},
computeWatchWhilePanelsActive:function(G,B){return G||B},
computeNoBorderOnChat:function(G){return _.X("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,B){return G&&!B},
computePanelExpanded:function(G,B,F){return G||B||F},
computeSqueezeback:function(G,B,F,D){if(_.X("web_watch_enable_fs_squeezeback_panels")){var u=this.iMaxTheaterMode&&this.theater,R=this.theater&&!this.iMaxTheaterMode;return(G||B||F)&&(u||D)||B&&R}},
computeSwatcherooSqueezeback:function(G,B,F){return this.is!=="ytd-watch-grid"||_.X("ww_squeezeback_killswitch")?!1:G&&B&&F},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(G){_.YF(this).getPlayerPromise().then(function(B){var F;(F=B.changeMarkerVisibility)==null||F.call(B,_.Q(G,E6).isVisible||!1,_.Q(G,E6).entityKeys||[],_.Q(G,E6).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.VU().dispatch(cDA(G.detail));if(!this.liveChatCollapsed&&this.squeezeback){var B=_.te().resolve(_.yR);this.visiblePanelIdentifiers_.forEach(function(F){B.hidePanel({identifier:F})})}},
onSetPlaylistCollapsed:function(G){_.X("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!G)},
provideRenderingData:function(G,B){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=B;break;case "PRIMARY_INFO":_.X("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=B);this.videoPrimaryInfoRendererValue=B==null?void 0:B.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.X("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=B);this.videoSecondaryInfoRendererValue=B==null?void 0:B.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
B;break;case "CLARIFICATION":this.clarifyBoxValue=B;break;case "LIVE_CHAT":this.conversationBar=B;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=B;break;case "PLAYLIST":this.externalPlaylistData_=B!=null?B:{};break;case "MERCH_SHELF":this.merchShelfValue=B==null?void 0:B.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=B;break;case "TICKET_SHELF":this.ticket=B;break;case "OFFER_MODULE":this.offerModule=B;break;case "LIMITED_STATE":this.limitedStateValue=
B;break;case "DONATION_SHELF":this.donation=B;break;case "ALERTS":this.alertsValue=B;break;case "COMMENTS":this.comments=B;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=B;break;case "ENGAGEMENT_PANELS":this.engagementPanels=B;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=B;break;case "RICH_GRID_RENDERER":this.richGridRendererData=B;break;case "EXPANDABLE_METADATA":this.expandableMetadata=B;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
B;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=B;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=B}},
toggleCinematicsActive:function(G){this.cinematicsActive=G}}];var QZD=function(G,B){var F;return((F=G.prefixMapping)==null?0:F[B])?G.prefixMapping[B]:G.SHARED_RENDERERS_.hasOwnProperty(B)?"yt":G.prefix},p5={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};p5.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.X("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
p5.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"};
p5.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"};p5.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
p5.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.X("kevlar_mealbar_above_player"),modern:_.v5("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",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"}};
p5.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};p5.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};p5.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
p5.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)"}};
p5.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};
p5.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};
p5.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};
p5.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.X("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
p5.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"}};p5.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};p5.TOAST={component:null,properties:{}};var jZ$=new function(G,B,F){this.supportedPopups=G;this.navigationEndpointPopupMap=B;this.popupTypeMap=F;this.supportedPopups=G;this.navigationEndpointPopupMap=B;this.popupTypeMap=F}({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:_.X("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"}),Ly2=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!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$21599_popupConfig=p5;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 rK$=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.E5.getInstance()},YX=function(G,B){var F=G.pageNameToElement.get(B);
if(!F){switch(B){case "watch":var D=_.X("web_watch_force_learning_journey_for_testing")?_.bY("ytd-watch-learning-journey"):_.X("kevlar_watch_fixie")?_.bY("ytd-watch-fixie"):_.X("kevlar_watch_grid")?_.bY("ytd-watch-grid"):_.bY("ytd-watch-flexy");break;case "learning_journey_watch":D=_.bY("ytd-watch-learning-journey");break;case "shorts":D=_.bY("ytd-shorts");break;case "search":D=_.bY("ytd-search");break;case "channel":D=_.bY("ytd-browse");D.pageSubtype="channels";break;case "trending":D=_.bY("ytd-browse");
D.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":D=
_.bY("ytd-browse");D.pageSubtype=B;break;case "browse":D=_.bY("ytd-browse");break;default:_.em(new _.Uf("Error getting page element for type",B))}F=D;G.pageNameToElement.set(B,F)}return F};
rK$.prototype.preparePage=function(G,B,F){F&&(G=_.sX(F)||G);if(G!=="watch"&&G!=="learning_journey_watch"){var D=this.elementPoolPopulator,u=G;u!=D.targetPage_&&D.pendingPages_.indexOf(u)>-1&&(D.targetPage_&&(D.pendingPages_.unshift(D.targetPage_),D.abort()),xU$(D,u),_.L0T(D,u))}if((D=YX(this,G))||!_.Q(F,_.MI)){D.isAttached||D===B||(D.hidden=!0);if(!D.data&&(G!=="watch"&&G!=="learning_journey_watch"||!_.X("swatcheroo_page_pool_dont_provide_filler_data"))){var R;if(G=(R=_.v5("FILLER_DATA",{})[G])==
null?void 0:R.response)D.data=G}return D}};var Wy$=function(G){this.JSC$33503_clientRoot=G;this.playlistHandlerActionMap={"yt-add-to-playlist-command":G9A,"yt-end-playlist-command":BI$,"yt-recover-playlist-command":FvG,"yt-refresh-playlist-command":RP2,"yt-playlist-remove-videos-action":DVH};_.Y2(_.pZ.getInstance(),this.playlistHandlerActionMap,this.JSC$33503_clientRoot);Ee2()},HmU;var A$=function(G,B,F){this.apiKey=G;this.endpoint=B;this.confidenceThreshold=F===void 0?.5:F;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=B==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||B==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
B==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||B==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new VI$};
_.w=A$.prototype;
_.w.start=function(G){if(this.state===0)if(this.isOnline()){G.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=G.supportsHttpHeadersOverwriteParam);G.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=G.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.hJ("voice_assistant");_.ag("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=G.languageCode||"en-US";this.supportsCrossDomainXhr=G.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=G.youtubeAssistantRequest||null;this.listeningHandler=G.listeningHandler||this.listeningHandler;this.audioDetectedHandler=G.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=G.stopHandler||this.stopHandler;this.completeHandler=G.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=G.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=G.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
G.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=G.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=G.accessToken;this.additionalHeaders=G.additionalHeaders||{};var B;this.prefetchResponseTimeoutMs=(B=G.prefetchResponseTimeoutMs)!=null?B:this.prefetchResponseTimeoutMs;krS(this);this.startAudio();OmD(this)}else this.errorHandler("OFFLINE")};
_.w.stop=function(G){var B=G===void 0?{}:G;G=B.logCancel===void 0?!0:B.logCancel;var F=B.logMicClosed===void 0?!0:B.logMicClosed;var D=B.handleError===void 0?!0:B.handleError;B=B.handleStop===void 0?!0:B.handleStop;this.state!==0&&(G&&dM("voz_cx"),J$(this,{logMicClosed:F,handleStop:B}),D&&this.errorHandler("ABORTED"))};
_.w.getState=function(){return this.state};
_.w.isSupported=function(){return!0};
_.w.stopAudio=function(G){(G===void 0||G)&&dM("voz_mf")};
_.w.startAudio=function(){dM("voz_vp");return _.ZL(null)};
var e8A=function(G,B){G.channelOpen&&(G.state!==2&&(G.state=2,dM("voz_ss"),G.listeningHandler()),B=new Uint8Array(B),B='{ "audioIn": "'+_.xM(B)+'" }',G.channel.send(B))},J$=function(G,B){var F=B===void 0?{}:B;
B=F.logMicClosed===void 0?!0:F.logMicClosed;F=F.handleStop===void 0?!0:F.handleStop;G.vozEndOfDataTimeout>-1&&(clearTimeout(G.vozEndOfDataTimeout),G.vozEndOfDataTimeout=-1);$AN(G);G.stopAudio(B);G.channel&&(G.channelOpen=!1,G.manuallyClosedChannel=!0,G.channel.close(),G.channel=void 0);G.transcribedSpeechResults=[];G.state=0;F&&G.stopHandler()},krS=function(G){var B={httpHeadersOverwriteParam:G.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},G.additionalHeaders,G.accessToken&&G.isUsingVoz?{Authorization:"Bearer "+G.accessToken}:{"x-goog-api-key":G.apiKey}),supportsCrossDomainXhr:G.supportsCrossDomainXhr};G.channel=new C1(G.endpoint,B);G.channel.open();_.H1(G.channel,"w",function(){var F=G.channel,D=F.send,u=G.isUsingVoz?"PLACEHOLDER":"example";u={config:{dialogStateIn:{languageCode:G.languageCode},deviceConfig:{deviceId:u,deviceModelId:u},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!G.isUsingVoz)u.config.requestType=4;else if(G.isUsingVoz&&G.youtubeAssistantRequest){var R=JSON.stringify(G.youtubeAssistantRequest);u.config.internalIn={youtubeAssistantS3InputJson:R}}D.call(F,u);G.channelOpen=!0;G.manuallyClosedChannel=!1});
_.H1(G.channel,"x",function(){G.manuallyClosedChannel||(G.channelOpen=!1,G.channel=void 0,J$(G))});
_.H1(G.channel,"z",function(F){if(F.data){$AN(G);for(var D=0;D<F.data.length;D++){var u=G,R=F.data[D],N=R.speechResults;if(N)a:{var y=[];R=[];var U=!1;N=_.C(N);for(var q=N.next();!q.done;q=N.next()){q=q.value;if(q.noSpeech){J$(u);u.errorHandler("NO_SPEECH");break a}q.transcript!==void 0&&q.stability!==void 0&&(q.stability<u.confidenceThreshold&&(U=!0),U?R.push(q.transcript):y.push(q.transcript))}if(y.length!==0||R.length!==0)y=y.join(" "),R=R.join(" "),u.receivedEndOfUtterance&&!u.isUsingVoz?u.isUsingVoz||
u.completeHandler([y,R]):(U=u,N=y,q=R,dM("voz_sf"),U.transcriptionUpdateHandler(N,q),U.transcribedSpeechResults=[N,q]),u.receivedEndOfUtterance&&(dM("voz_eou"),u.transcriptionCompleteHandler([y,R]),u.isUsingVoz&&(u.prefetchResponseTimeoutMs===0?J$(u,{logMicClosed:!1,handleStop:!0}):u.prefetchResponseTimeoutMs>0&&z8D(u)))}else u.isUsingVoz&&(R==null?0:R.internalOut)?(R=JSON.parse(R.internalOut.youtubeAssistantS3OutputJson),R.userHasOptedInToVaa||R.vaaConsent?u.vaaConsentUpdateHandler(!!R.userHasOptedInToVaa,
!!R.vaaConsent):(bmD(u),R&&(y=u.transcribedSpeechResults,dM("voz_rqf"),u.completeHandler(y,R)))):R.eventType==="END_OF_UTTERANCE"?u.receivedEndOfUtterance=!0:(dM("voz_err"),u.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.em(Error("Wl")))}}});
_.H1(G.channel,"y",function(F){J$(G);switch(F.status){case 1:F="WEBCHANNEL_NETWORK_ERROR";break;case 2:F="WEBCHANNEL_SERVER_ERROR";break;default:F="WEBCHANNEL_UNKNOWN_ERROR"}G.errorHandler(F);G.logError(Error(F))})};
A$.prototype.logError=function(G){_.k2(G)};
A$.prototype.isOnline=function(){return!0};
var z8D=function(G){bmD(G);G.prefetchResponseSetTimeoutId=setTimeout(function(){J$(G,{logMicClosed:!1,handleStop:!0})},G.prefetchResponseTimeoutMs)},bmD=function(G){G.prefetchResponseSetTimeoutId>-1&&(clearTimeout(G.prefetchResponseSetTimeoutId),G.prefetchResponseSetTimeoutId=-1)},OmD=function(G){$AN(G);
G.noResponseReceivedTimeout=window.setTimeout(function(){J$(G);G.errorHandler("NO_SPEECH")},11E3)},$AN=function(G){G.noResponseReceivedTimeout>-1&&(window.clearTimeout(G.noResponseReceivedTimeout),G.noResponseReceivedTimeout=-1)},dM=function(G){_.KR(G,void 0,"voice_assistant")};var cG=function(){A$.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.r(cG,A$);cG.prototype.isSupported=function(){return wUB()};
cG.prototype.startAudio=function(){var G=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.U_(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(D){VZ2(G,D)};
this.processor.connect(this.audioContext.destination);var B=function(D){G.stream=D;if(!G.audioContext)return _.ZL(null);D=G.audioContext.createMediaStreamSource(D);G.processor&&D.connect(G.processor);return _.ZL(null)},F={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?B(this.stream):(F=navigator.mediaDevices.getUserMedia(F))?F.then(B).catch(function(D){J$(G);D.name&&D.name==="NotAllowedError"?G.errorHandler("NO_MICROPHONE_PERMISSION"):(G.errorHandler("AUDIO_ERROR"),G.logError(D));return _.U_(null)}):(J$(this),this.errorHandler("AUDIO_ERROR"),_.em(Error("Xl")));
return A$.prototype.startAudio.call(this)};
cG.prototype.stopAudio=function(G){G=G===void 0?!0:G;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(B){B.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;A$.prototype.stopAudio.call(this,G)};
cG.prototype.isOnline=function(){return navigator.onLine};
var VZ2=function(G,B){if(G.audioContext)if(window.OfflineAudioContext){var F=G.audioContext.sampleRate,D=B.inputBuffer.getChannelData(0);B=new window.OfflineAudioContext(1,D.length,16E3);for(var u=B.createBuffer(1,D.length,F),R=u.getChannelData(0),N=0,y=0;y<D.length;y++)R[y]=D[y],N+=R[y]*R[y];!G.audioDetected&&Math.sqrt(N/D.length)>.01&&(G.audioDetected=!0,G.audioDetectedHandler());D=B.createBufferSource();D.buffer=u;D.connect(B.destination);D.start(0);B.oncomplete=function(U){U=U.renderedBuffer.getChannelData(0);
for(var q=Math.floor(16384E3/F),h=new Int16Array(q),K=0;K<q;++K)h[K]=Math.max(-1,Math.min(1,U[K]))*32767;e8A(G,h.buffer)};
B.startRendering()}else vgA(G,B)},vgA=function(G,B){var F=G.audioContext.sampleRate,D=B.inputBuffer.getChannelData(0),u=Math.floor((F+8E3)/16E3);
F=D.length/u;B=new Float32Array(F);for(var R=0;R<F;++R)B[R]=D[R*u];D=new Int16Array(F);for(u=0;u<F;++u)D[u]=Math.max(-1,Math.min(1,B[u]))*32767;e8A(G,D.buffer)};var ogD={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var MZZ=function(){this.JSC$21664_audioEnabled=!0;this.audioFeedbackHolder={}};
MZZ.prototype.isPlaying=function(G){return G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>2};
var pnG=function(G){for(var B=_.C(Object.values(ogD)),F=B.next();!F.done;F=B.next())F=F.value,G.audioFeedbackHolder[F]=new Audio,G.audioFeedbackHolder[F].src="/s/search/audio/"+F+".mp3",G.audioFeedbackHolder[F].load()},Tw=function(G,B){if(G.JSC$21664_audioEnabled!==!1&&B in G.audioFeedbackHolder){for(var F=_.C(Object.values(G.audioFeedbackHolder)),D=F.next();!D.done;D=F.next())D=D.value,G.isPlaying(D)&&D.pause();
G.audioFeedbackHolder[B].currentTime=0;G.audioFeedbackHolder[B].play().catch(function(){})}};var YNS=function(G,B){var F=this;this.store=G;this.service=B;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){F.setState("offline");F.stop()};
this.audioPlayer=new MZZ;var D;(D=this.audioPlayer)==null||pnG(D)};
_.w=YNS.prototype;_.w.getService=function(){return this.service};
_.w.isEnabled=function(){return!!this.service};
_.w.isSupported=function(){var G;return(G=this.service)==null?void 0:G.isSupported()};
_.w.start=function(){var G=this,B,F,D,u,R,N,y,U,q,h,K,a,m;return _.n(function(L){switch(L.nextAddress){case 1:G.store.dispatch(TuZ("",""));if(!navigator.onLine)return G.setState("offline"),L.return();window.addEventListener("offline",G.handleOfflineEvent);G.stream=null;if(!G.permissionsSupported){L.jumpTo(2);break}_.b5(L,3);return L.yield(AK$(G),5);case 5:B=L.yieldResult;if(!B)return(F=G.audioPlayer)==null||Tw(F,"failure"),L.return();G.service.stream=G.stream;G.setState("listening");_.oY(L,2);break;
case 3:_.Al(L),G.permissionsSupported=!1;case 2:D={context:_.KaM(_.SE())},D.youtubeAssistantParams={searchParams:{inlineSearchResponse:G.enableInlineSearchResponse}},u=function(W,e){G.store.dispatch(ITN("transcribing"));G.store.dispatch(TuZ(W,e))},R=function(){var W;
(W=G.audioPlayer)==null||Tw(W,"open");G.setState("listening")},N=function(){G.setState("transcribing")},y=function(W){G.setErrorState(W)},U=function(W,e){var b;
(b=G.audioPlayer)==null||Tw(b,"success");e&&(_.X("kevlar_voice_search_inline_search")&&(G.responseProcessor=_.te().resolve(_.dLT),G.responseProcessor&&(b=e.navigationAction,W=e.prefetchedSearchResponse,b&&W&&(b=(new _.DNZ).JSC$14495_getStoreKey(b),_.eT(G.responseProcessor,W,b)))),G.JSC$21682_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",e))},q=function(){window.removeEventListener("offline",G.handleOfflineEvent)},h=_.Hpg(!1),K=h.Authorization!=null,a=G.enableFirstPartyAuth||
G.enableFPAForSignedInUsers&&K?h:{"X-Goog-Visitor-Id":h["X-Goog-Visitor-Id"]},m={completeHandler:U,
errorHandler:y,listeningHandler:R,audioDetectedHandler:N,stopHandler:q,transcriptionUpdateHandler:u,youtubeAssistantRequest:D,languageCode:dAD(),additionalHeaders:a,supportsCrossDomainXhr:G.enableFirstPartyAuth||G.enableFPAForSignedInUsers&&K,supportsHttpHeadersOverwriteParam:!G.disableHttpHeadersOverwrite},G.service.start(m),_.di(L)}})};
_.w.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.w.reset=function(){this.store.dispatch(_.d5({type:"RESET_VOICE_SEARCH_STATE"}))};
_.w.setState=function(G){this.store.dispatch(ITN(G))};
_.w.setErrorState=function(G){switch(G){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var B;(B=this.audioPlayer)==null||Tw(B,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)AK$(this);else{var F;(F=this.audioPlayer)==null||Tw(F,"failure");this.setState("permission-denied")}break;case "ABORTED":var D;(D=this.audioPlayer)==null||Tw(D,"no_input");break;default:var u;(u=this.audioPlayer)==
null||Tw(u,"no_input");this.setState("timeout")}};
var AK$=function(G){var B,F;return _.n(function(D){switch(D.nextAddress){case 1:return D.yield(navigator.permissions.query({name:"microphone"}),2);case 2:B=D.yieldResult;if(B.state==="granted")return D.return(!0);if(B.state==="denied")return G.setState("permission-denied"),D.return(!1);G.setState("permission");F={audio:{sampleSize:16,channelCount:1},video:!1};_.b5(D,3);return D.yield(navigator.mediaDevices.getUserMedia(F),5);case 5:return G.stream=D.yieldResult,D.return(!0);case 3:return _.Al(D),
G.setState("permission-denied"),D.return(!1)}})},dAD=function(){var G=_.v5("INNERTUBE_CONTEXT_HL"),B=_.v5("INNERTUBE_CONTEXT_GL");
return G.indexOf("-")>-1?G:G+"-"+B};var JK$=function(G,B,F){YNS.call(this,B,F);this.JSC$21682_actionRouter=G;this.enableInlineSearchResponse=_.X("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.X("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.X("kevlar_voice_search_enable_fpa_signedin_users")},cKB;
_.r(JK$,YNS);
var THZ=function(){if(!cKB){var G="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.X("kevlar_voice_search_auth_enabled")||_.X("kevlar_voice_search_use_yt_endpoint")?G="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.X("kevlar_voice_search_use_fp_endpoint")&&(G="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");cKB=
new JK$(_.pZ.getInstance(),_.VU(),new cG(_.v5("VOZ_API_KEY"),G,.5))}return cKB};var Ii$=function(G){this.JSC$21686_clientRoot=G;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$21686_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));G=_.C(this.eventListeners);for(var B=G.next();!B.done;B=G.next()){var F=
_.C(B.value);B=F.next().value;F=F.next().value;F=_.C(F);for(var D=F.next();!D.done;D=F.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;B.addEventListener(D,u)}}_.Y2(_.pZ.getInstance(),this.autonavPauseActionMap,this.JSC$21686_clientRoot)},fiG,tZB=function(G){return _.X("kevlar_autonav_popup_filtering")?(G=_.oF(G))?G.hasAttribute("prevent-autonav"):!0:!0};
_.w=Ii$.prototype;_.w.onIronOverlayOpened=function(G){tZB(G)&&(this.autonavPauseReasons.overlayOpen=!0,Iv(this))};
_.w.onIronOverlayClosed=function(G){tZB(G)&&(this.autonavPauseReasons.overlayOpen=!1,Iv(this))};
_.w.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Iv(this)};
_.w.onYtAutonavPauseBlur=function(){var G=this;_.Lu.addJob(function(){ZmD()||(G.autonavPauseReasons.inputBoxFocus=!1,Iv(G))},8,0)};
_.w.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Iv(this)};
_.w.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Iv(this)};
_.w.onYtAutonavPauseScroll=function(){var G=_.te().resolve(_.pA);G.isOnWatch()&&(G=G.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=G.getBoundingClientRect().top<-200,Iv(this))};
_.w.onYtAutonavPauseUserEngagement=function(G){var B=this;if(_.X("user_engagement_enable_autoplay_pause_feature")){var F=Number(G.lowEngagementThresholdMs);isNaN(F)||F<=0||G.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.te().resolve(_.uN),_.Z8()<F?_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):JZ$()?(this.userEngagementCsn=_.qW(),_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
B.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Iv(this)):g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.OhU(Error("Yl`"+JSON.stringify(G)))};
_.w.onYtAutonavPausePlayer=function(G){this.autonavPauseReasons.requestedByPlayer=!!G.detail;Iv(this)};
_.w.onYtAutonavVisibilityChanged=function(){var G=this,B,F,D;return _.n(function(u){if(u.nextAddress==1)return(B=_.AZ())?u.yield(B.getPlayerPromise(),2):u.return();F=u.yieldResult;D=F.isMuted()||F.getVolume()===0;G.autonavPauseReasons.backgroundAndMute=ZmD()&&D;Iv(G);_.di(u)})};
_.w.onYtAutonavPausePlayerEnded=function(){_.te().resolve(_.uN);var G=144E5;_.X("user_engagement_enable_autoplay_pause_feature")||_.X("is_part_of_any_user_engagement_experiment")||(G=45E5);this.autonavPauseReasons.longIdle=_.Z8()>G;ggZ(this);Iv(this)};
_.w.onYtUserActivity=function(){var G=this;this.autonavPauseReasons.userEngagement&&(_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Iv(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",G.userEngagementCsn);_.H$()}),this.autonavPauseReasons.youthereLactExperiment=!1,Iv(this));
this.autonavPauseReasons.longIdle&&!_.X("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Iv(this))};
var ZmD=function(){var G=window.document.visibilityState;return!(!G||G==="visible")},Iv=function(G){for(var B=!1,F=_.C(Object.values(G.autonavPauseReasons)),D=F.next();!D.done;D=F.next())D=D.value,B=B||D;
B?_.M_.getInstance().pause(G.autonavPauseReasons):(G=_.M_.getInstance(),G.autonavState_==3?(G.setState(2,!1,!1),G.autonavPauseReason_=void 0):G.autonavState_==1&&(G.disabledAutonavPauseReason_=void 0))},ggZ=function(G){var B=!1;
if(_.X("enable_autoplay_pause_by_lact")){_.te().resolve(_.uN);B=_.sD("autoplay_pause_by_lact_sec")*1E3;var F=_.sD("autoplay_pause_by_lact_sampling_fraction");(B=_.Z8()>=B&&Math.random()<F)&&!JZ$()&&(_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),B=!1)}B!==G.autonavPauseReasons.youthereLactExperiment&&(G.autonavPauseReasons.youthereLactExperiment=B)&&(G.userEngagementCsn=_.qW(),_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",G.userEngagementCsn)}));
G.autonavPauseReasons.userEngagement&&_.mX(_.Lu,function(){g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",G.userEngagementCsn)})};
Ii$.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(g9("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.H$(),this.autonavPauseReasons.youthereLactExperiment=!1,Iv(this));this.autonavPauseReasons.userEngagement&&(g9("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Iv(this))};
Ii$.prototype.onYtEngagementPanelVisibleChanged=function(G){G.detail&&G.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=G.detail.visible,Iv(this))};
Ii$.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var SNG=_.OY.persistentPanelVisibleSelector,f5=function(){var G=_.p.apply(this,arguments)||this;G.miniGuideVisible=!1;G.guideOpened=_.X("disable_initial_guide_state_fix")?!1:G.canFitPersistentGuide(G.initialBodyClientWidth);G.guideUserStateOpened=G.getInitialGuideUserStateOpened();G.isFullscreenShorts=!1;G.miniGuideWidthThreshold=_.sD("kevlar_mini_guide_width_threshold",791);G.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
G.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");G.persistentGuideBlockedPagePathRegex=new RegExp(G.persistentGuideBlockedPagesPatterns.join("|"));G.animationTransitionDuration=0;G.lateDataResolver=_.zn();G.initialGuideDataFetchFailed=!1;G.initialLoad=!0;G.guideRenderers=new Set;G.isMouseOverGuide=!1;G.sessionUserManuallyExpandedGuideState=
!1;G.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return G};
_.r(f5,_.p);_.w=f5.prototype;_.w.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.w.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.w.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.w.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.w.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.w.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.w.ready=function(){_.te().addProvider({provide:_.Qj,useValue:this.hostElement})};
_.w.attached=function(){var G=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.x7(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.x7(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.x7(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.x7(this,this.onYtGuideShow));_.ft(this,function(){G.animationTransitionDuration=200})};
_.w.detached=function(){document.removeEventListener("yt-navigate-finish",_.x7(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.x7(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.x7(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.x7(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.x7(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.x7(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.x7(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.w.getData=function(){return this.data};
_.w.load=function(){var G=this,B,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=G.lateDataResolver.resolve.bind(G),R.return(G.lateDataResolver.promise);if(window.ytInitialGuideData)return B=_.zn(),B.resolve(window.ytInitialGuideData),R.return(B.promise);D=!1;_.b5(R,2);return R.yield(G.fetchGuideData(),4);case 4:F=R.yieldResult;_.oY(R,3);break;case 2:u=_.Al(R),u.message==="Returned error"&&(D=
!0);case 3:if(F)return R.return(F);G.onYtGuideClose();D||(G.initialGuideDataFetchFailed=!0);return R.return(G.lateDataResolver.promise)}})};
_.w.fetchGuideData=function(){var G=this,B,F,D,u,R,N,y;return _.n(function(U){if(U.nextAddress==1)return B=_.te(),G.guidePromise||(F=B.resolve(_.RF),G.guidePromise=_.$F(F,QVD)),U.yield(G.guidePromise,2);if(U.nextAddress!=3)return D=U.yieldResult,u=B.resolve(_.Cv),U.yield(u(),3);(R=U.yieldResult)&&((N=D)==null?void 0:(y=N.responseContext)==null?void 0:y.maxAgeSeconds)!==0&&R.put("service:guide:fallback",new _.Zs({innertubeResponse:D}));return U.return(D)})};
_.w.initializeGuideDataIfEmpty=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1){if(!G.initialGuideDataFetchFailed||G.data)return D.return();_.b5(D,2);return D.yield(G.fetchGuideData(),4)}if(D.nextAddress!=2)return(B=D.yieldResult)&&G.lateDataResolver.resolve(B),_.oY(D,0);F=_.Al(D);_.em(F);_.di(D)})};
_.w.initializeGuideData=function(){var G=this,B,F;return _.n(function(D){switch(D.nextAddress){case 1:return _.iQ(dYB(),{mainAppWeb:_.es()}),_.b5(D,2),D.yield(G.load(),4);case 4:G.data=D.yieldResult;_.oY(D,3);break;case 2:B=_.Al(D),_.Fi(dYB(),"FAILURE"),_.em(new _.Uf("Guide data not present",{errorMessage:B.message}));case 3:F=G.data&&G.data.items&&G.data.items.length>0?"SUCCESS":"FAILURE",F==="FAILURE"&&_.em(new _.Uf("Guide data.items empty")),_.Fi(dYB(),F),_.di(D)}})};
_.w.setGuideData=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1)return B.disabled?u.return():B.data?(G.data=B.data,B.guideRenderers.add(G),u.return()):u.yield(B.initializeGuideData(),2);B.graftGuideToPage();F=_.on("IS_HOMEPAGE_COLD")?"eop":void 0;_.X("disable_element_pool_populator")?B.setGuideDataAfterInit(G):(D=new _.V8(1,F),_.vd(D,B.setGuideDataAfterInit.bind(B,G)));_.di(u)})};
_.w.setGuideDataAfterInit=function(G){G.data=this.data;G.markDirty();this.guideRenderers.add(G);_.Hc(function(){_.KR("gle")});
_.ft(this,function(){_.KR("gpe")})};
_.w.graftGuideToPage=function(){if(this.data){var G=this.data&&this.data.trackingParams;G&&(G=_.yX(G),_.gr(_.Rh(),G))}};
_.w.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.x7(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.w.onDrawerOpenedChanged=function(G,B){!B.value&&this.guideOpened&&(this.guideOpened=!1)};
_.w.onYtGuideToggle=function(G){var B=this.guideOpened;this.guideOpened=!B;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var F=_.D4();_.uf(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;F.save()}this.updateGuideDrawerElementState();if(this.guideElement){var D;this.guideOpened&&((D=G.detail)==null?0:D.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.x7(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.x7(this,this.onAppDrawerTransitioned))}B||this.initializeGuideDataIfEmpty()};
_.w.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.x7(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Jo(this.guideElement)};
_.w.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.x7(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(M7N(this.guideOpened))};
_.w.guidePersistentAndVisibleChanged=function(){_.Ia(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.w.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.d5({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.w.miniGuideVisibleChanged=function(){_.Ia(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.w.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(M7N(this.guideOpened)),this.initialLoad=!1);_.Ia(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.w.activeEndpointChanged=function(){_.Ia(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.w.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.w.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.guidePersistentAndVisible=this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.w.cachedClientWidthChanged=function(){this.updateGuideState()};
_.w.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.w.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var G=this.canFitPersistentGuide(this.cachedClientWidth);G?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=G}this.updateGuideDrawerElementState()};
_.w.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.w.getGuideOpened=function(){return this.guideOpened};
_.w.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.w.getActiveEndpoint=function(){return this.activeEndpoint};
_.w.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.w.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&&_.cZ(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.w.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.X("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.w.handleGuideMouseLeave=function(){var G=this;!this.sessionUserManuallyExpandedGuideState&&_.X("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.kT(this,"handleGuideMouseLeave",function(){G.isMouseOverGuide||!G.guideOpened||G.miniGuideVisible||(G.guideOpened=!1,G.updateGuideDrawerElementState())},100))};
_.w.computeGuidePersistentAndVisible=function(){var G=this;_.kT(this,"computeGuidePersistentAndVisible",function(){G.guidePersistentAndVisible=G.guideOpened&&G.guidePersistent;G.guideIsVisibleButNotPersistent=!(!G.guideOpened||G.guidePersistent)})};
_.w.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.w.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.w.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.w.startLoadingWatch=function(){this.closeGuide()};
_.w.startLoadingShorts=function(){_.X("web_hide_guide_on_shorts")&&this.closeGuide()};
_.w.onYtNavigateFinish=function(G,B){if(!_.ST||B){this.activeEndpoint=B.endpoint;this.pageType=B.pageType;this.pageUrl=B.response.url;var F,D;G=(D=_.Q((F=B.endpoint)==null?void 0:F.commandMetadata,_.xy))==null?void 0:D.url;!this.pageUrl&&G&&(this.pageUrl=G);_.X("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.w.getVisibleGuideRenderer=function(){for(var G=_.C(this.guideRenderers),B=G.next();!B.done;B=G.next())if(B=B.value,this.miniGuideVisible&&B.is==="ytd-mini-guide-renderer"||this.guideOpened&&B.is==="ytd-guide-renderer")return B;return null};
_.w.markGuideRendererDirty=function(G){if(G){typeof G.markDirty==="function"&&G.markDirty();G=_.C([].concat(_.gi(_.IF(G).children)));for(var B=G.next();!B.done;B=G.next())this.markGuideRendererDirty(B.value)}};
_.w.persistentGuideEnabled=function(G,B){if(!B||G==="watch"||G==="settings"||G==="shorts"&&this.isFullscreenShorts||_.X("reels_web_disable_persistent_guide_shorts")&&G==="shorts")return!1;var F=_.Ik(B)||"";return _.X("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(D){return F===D}):!this.persistentGuideBlockedPagePathRegex.test(F)};
_.w.canFitPersistentGuide=function(G){var B=_.sD("kevlar_persistent_guide_width_threshold",1312);return B===-1||_.X("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:G>this.calculateGuideThreshold(B)};
_.w.calculateGuideThreshold=function(G){return _.X("enable_ai_companion")?G+(this.persistentPanelVisible?400:0):G};
_.w.canFitMiniGuide=function(G){return this.miniGuideWidthThreshold===-1?!1:G>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.w.onResize=function(){var G=this;_.kT(this,"calculateGuideState",function(){G.onResizeDebounced()})};
_.w.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.w.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.w.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.w.getInitialGuideUserStateOpened=function(){return _.X("web_force_mini_guide_default")?!1:!_.D4().getFlag(109)};
_.ZN.Object.defineProperties(f5.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.v5("initialBodyClientWidth")||window.innerWidth}}});
f5.prototype.onResize=f5.prototype.onResize;f5.prototype.observeForMiniGuideVisible=f5.prototype.observeForMiniGuideVisible;f5.prototype.computeGuidePersistentAndVisible=f5.prototype.computeGuidePersistentAndVisible;f5.prototype.persistentPanelVisibleChanged=f5.prototype.persistentPanelVisibleChanged;f5.prototype.cachedClientWidthChanged=f5.prototype.cachedClientWidthChanged;f5.prototype.resetGuide=f5.prototype.resetGuide;f5.prototype.activeEndpointChanged=f5.prototype.activeEndpointChanged;
f5.prototype.guideOpenedChanged=f5.prototype.guideOpenedChanged;f5.prototype.miniGuideVisibleChanged=f5.prototype.miniGuideVisibleChanged;f5.prototype.guideIsVisibleButNotPersistentChanged=f5.prototype.guideIsVisibleButNotPersistentChanged;f5.prototype.guidePersistentAndVisibleChanged=f5.prototype.guidePersistentAndVisibleChanged;f5.prototype.onGuideElementChanged=f5.prototype.onGuideElementChanged;f5.prototype.onGuidePersistentChanged=f5.prototype.onGuidePersistentChanged;
f5.prototype.onRenderGuideChanged=f5.prototype.onRenderGuideChanged;f5.prototype.onActiveEndpointChanged=f5.prototype.onActiveEndpointChanged;f5.prototype.onMiniGuideVisibleChanged=f5.prototype.onMiniGuideVisibleChanged;f5.prototype.onGuideIsVisibleButNotPersistentChanged=f5.prototype.onGuideIsVisibleButNotPersistentChanged;f5.prototype.onGuidePersistendAndVisibleChanged=f5.prototype.onGuidePersistendAndVisibleChanged;
_.c([_.k(_.Rc),_.I("design:type",Object)],f5.prototype,"ironResizableBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],f5.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],f5.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],f5.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Boolean)],f5.prototype,"disabled",void 0);_.c([_.v(),_.I("design:type",Boolean)],f5.prototype,"guidePersistentAndVisible",void 0);_.c([_.Ga("guidePersistentAndVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onGuidePersistendAndVisibleChanged",null);_.c([_.v(),_.I("design:type",Boolean)],f5.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.Ga("guideIsVisibleButNotPersistent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.c([_.v(),_.I("design:type",Object)],f5.prototype,"miniGuideVisible",void 0);_.c([_.Ga("miniGuideVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onMiniGuideVisibleChanged",null);_.c([_.v(),_.I("design:type",Boolean)],f5.prototype,"forceMiniGuideClose",void 0);
_.c([_.v(),_.I("design:type",Object)],f5.prototype,"activeEndpoint",void 0);_.c([_.Ga("activeEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onActiveEndpointChanged",null);_.c([_.v(),_.I("design:type",Boolean)],f5.prototype,"renderGuide",void 0);_.c([_.Ga("renderGuide"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onRenderGuideChanged",null);
_.c([_.v({selector:SNG}),_.I("design:type",Boolean)],f5.prototype,"persistentPanelVisible",void 0);_.c([_.v(),_.I("design:type",Object)],f5.prototype,"guideOpened",void 0);_.c([_.v(),_.I("design:type",Boolean)],f5.prototype,"guidePersistent",void 0);_.c([_.Ga("guidePersistent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onGuidePersistentChanged",null);_.c([_.v(),_.I("design:type",Object)],f5.prototype,"guideUserStateOpened",void 0);
_.c([_.v(),_.I("design:type",String)],f5.prototype,"pageUrl",void 0);_.c([_.v(),_.I("design:type",String)],f5.prototype,"pageType",void 0);_.c([_.v(),_.I("design:type",Number)],f5.prototype,"cachedClientWidth",void 0);_.c([_.v(),_.I("design:type",Object)],f5.prototype,"guideElement",void 0);_.c([_.v({selector:_.Ix}),_.I("design:type",Object)],f5.prototype,"isFullscreenShorts",void 0);
_.c([_.Ga("guideElement"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onGuideElementChanged",null);_.c([_.Ga("guidePersistentAndVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"guidePersistentAndVisibleChanged",null);
_.c([_.Ry("guideIsVisibleButNotPersistent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"guideIsVisibleButNotPersistentChanged",null);_.c([_.Ga("miniGuideVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"miniGuideVisibleChanged",null);_.c([_.Ry("guideOpened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"guideOpenedChanged",null);
_.c([_.Ga("activeEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"activeEndpointChanged",null);_.c([_.Ry("pageUrl"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"resetGuide",null);_.c([_.Ry("cachedClientWidth"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"cachedClientWidthChanged",null);
_.c([_.Ry("persistentPanelVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"persistentPanelVisibleChanged",null);_.c([_.Ga("guideOpened","guidePersistent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"computeGuidePersistentAndVisible",null);
_.c([_.Ry("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"observeForMiniGuideVisible",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],f5.prototype,"onResize",null);_.c([_.mC({disableElementRegistration:!0,is:"yt-guide-manager"})],f5);var sZG=_.d(f5,"yt-guide-manager",void 0,{mode:2});var yRZ=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],Rl=new Map;Rl.set(32,59972);Rl.set(27,50765);Rl.set(70,60102);Rl.set(76,60221);Rl.set(77,60222);Rl.set(74,60223);Rl.set(84,60224);Rl.set(38,61941);Rl.set(40,61942);Rl.set(73,62521);Rl.set(67,62522);Rl.set(80,63390);Rl.set(78,63397);Rl.set(75,59972);Rl.set(188,63385);Rl.set(190,63384);Rl.set(36,63387);Rl.set(35,63386);Rl.set(37,63388);
Rl.set(39,63389);Rl.set(79,63423);Rl.set(87,63424);Rl.set(107,63426);Rl.set(109,63425);Rl.set(65,63428);Rl.set(83,63430);Rl.set(68,63429);Rl.set(221,63431);Rl.set(219,63432);Rl.set(97,63439);Rl.set(98,63440);Rl.set(99,63441);Rl.set(100,63442);Rl.set(101,63443);Rl.set(102,63444);Rl.set(103,63445);Rl.set(104,63446);Rl.set(105,63447);var uq=new Map;uq.set(80,63390);uq.set(78,63397);uq.set(188,63400);uq.set(190,63401);uq.set(191,60765);uq.set(13,247917);var NI$=new Map,CcD=new Map;var t$=function(){var G=_.p.apply(this,arguments)||this;G.JSC$21695_keyboardInUse=!1;G.boundHandleCapturedKeydownEvent=function(B){G.handleCapturedKeydownEvent(B)};
return G};
_.r(t$,_.p);_.w=t$.prototype;_.w.attached=function(){this.listenToDocument(document)};
_.w.listenToDocument=function(G){G.addEventListener("keydown",_.x7(this,this.onKeyDownEvent));G.addEventListener("keyup",_.x7(this,this.onKeyUpEvent));G.addEventListener("mousedown",_.x7(this,this.onMouseDownEvent));_.X("desktop_keyboard_capture_keydown_killswitch")||G.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.addEventListener("yt-page-data-updated",_.x7(this,this.onPageUpdate))};
_.w.detached=function(){this.unlistenFromDocument(document)};
_.w.unlistenFromDocument=function(G){G.removeEventListener("keydown",_.x7(this,this.onKeyDownEvent));G.removeEventListener("keyup",_.x7(this,this.onKeyUpEvent));G.removeEventListener("mousedown",_.x7(this,this.onMouseDownEvent));_.X("desktop_keyboard_capture_keydown_killswitch")||G.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.removeEventListener("yt-page-data-updated",_.x7(this,this.onPageUpdate))};
_.w.ready=function(){_.te().addProvider({provide:_.Mu,useValue:this})};
_.w.isKeyBoardInUse=function(){return this.JSC$21695_keyboardInUse};
_.w.handleCapturedKeydownEvent=function(G){if(G.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(G)};
_.w.onMouseDownEvent=function(){this.JSC$21695_keyboardInUse=!1};
_.w.onPageUpdate=function(){if(_.X("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.X("web_shorts_keyboard_shortcut_usage_log")){NI$.clear();for(var G=_.C(Rl),B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;F=F.next().value;F=_.ge(F);NI$.set(B,F);_.WT(_.qW(),_.Uw(),F)}CcD.clear();G=_.C(uq);for(B=G.next();!B.done;B=G.next())F=_.C(B.value),B=F.next().value,F=F.next().value,F=_.ge(F),CcD.set(B,F),_.WT(_.qW(),_.Uw(),F);_.HT(_.qW(),_.Uw(),[].concat(_.gi(CcD.values()),_.gi(NI$.values())));
_.Oq(_.qW(),[].concat(_.gi(CcD.values()),_.gi(NI$.values())))}};
_.w.onMiniplayerActiveChange=function(){var G;(G=_.te().resolve(_.WP).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(G.document):this.unlistenFromDocument(G.document))};
_.w.ignoreKeyEvent=function(G){if(G.ctrlKey||G.altKey)if(_.X("kevlar_macro_markers_keyboard_shortcut")){if(G.keyCode!==37&&G.keyCode!==39)return!0}else return!0;var B=_.VW(G)||[];return nz$(B)?(_.X("web_button_or_anchor_list_item")&&lI$(B,G)&&(this.JSC$21695_keyboardInUse=!0),!0):G.defaultPrevented?(wR(G.keyCode,G.shiftKey,this.isShortsPage),!0):G.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(G):!1};
_.w.isSpacebarClick=function(G){var B=G||window.event;var F;B.composedPath&&typeof B.composedPath==="function"?F=B.composedPath():F=B.path;F&&F.length?B=F[0]:(B=B||window.event,B=B.target||B.srcElement,B.nodeType==3&&(B=B.parentNode));return B&&G.keyCode===32&&(G=B.tagName==="BUTTON"||B.tagName==="A"||B.tagName==="INPUT",B=(B=B.getAttribute("role"))&&(B==="option"||B==="button"||B.indexOf("menuitem")===0),G||B)?!0:!1};
_.w.onKeyDownEvent=function(G){if(!this.ignoreKeyEvent(G)&&(G.keyCode===191&&(G.shiftKey||G.metaKey?G.repeat!=null&&G.repeat||(this.openHotkeyDialog(),wR(G.keyCode,G.shiftKey,this.isShortsPage)):(this.focusSearchBox(),G.preventDefault())),!G.metaKey)){var B=_.te().resolve(_.WP);switch(G.keyCode){case 9:this.JSC$21695_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(G);break;case 84:B.pipController.getWindow()&&window.focus();this.toggleTheaterMode(G.keyCode,G.shiftKey);break;case 73:B.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(G.keyCode,G.shiftKey);break;case 70:if(this.isShortsPage){pL$();break}this.isMiniplayerActive()?B.pipController.getWindow()&&(B.close(!0),window.focus()):this.passEventToPlayer(G);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(G.keyCode,G.shiftKey):this.closeMiniplayer(G.keyCode,G.shiftKey)||this.passEventToPlayer(G);break;case 13:G.shiftKey&&_.te().resolve(_.XI).activate(G);break;default:this.passEventToPlayer(G)}}};
_.w.onKeyUpEvent=function(G){if(!this.ignoreKeyEvent(G))if(_.X("web_speedmaster_spacebar_control")&&G.keyCode===32)this.handlePlayerSpaceKey(G,!0);else{var B=this.getPlayerManager();B&&(B=B.getPlayer())&&B.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)}};
_.w.getPlayerManager=function(){var G=_.AZ(),B=_.te().resolve(_.fH(_.pA));return G&&B&&B.isOnWatch()?G:null};
_.w.passEventToPlayer=function(G,B){var F=this,D,u,R,N;return _.n(function(y){if(y.nextAddress==1){if(!_.X("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&F.isMiniplayerActive())D=_.te().resolve(_.WP).getPlayerElement();else if(F.inlinePreviewIsActive){if(u=_.Ia(F.hostElement,"yt-get-inline-preview-player-action"),(R=u)==null?0:R[0])D=u[0]}else D=_.AZ();return D?y.yield(D.getPlayerPromise(),3):y.jumpTo(0)}N=y.yieldResult;B?N.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,
G.key,G.code):N.handleGlobalKeyDown(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat);G.keyCode!==38&&G.keyCode!==40&&wR(G.keyCode,G.shiftKey,F.isShortsPage);_.di(y)})};
_.w.focusSearchBox=function(){_.cZ(this.hostElement,"yt-focus-searchbox")};
_.w.openHotkeyDialog=function(){_.cZ(this.hostElement,"yt-open-hotkey-dialog")};
_.w.isMiniplayerActive=function(){return _.te().resolve(_.WP).isMiniplayerActive()};
_.w.closeMiniplayer=function(G,B){return this.isMiniplayerActive()?(_.te().resolve(_.WP).close(),wR(G,B,this.isShortsPage),!0):!1};
_.w.toggleTheaterMode=function(G,B){var F=_.KA(_.VU().getState()),D=this.getPlayerManager(),u=_.X("disable_theater_mode_keyboard")||_.on("START_IN_FULL_WINDOW_MODE");D&&!u&&(F=!F,_.vZ()&&_.X("external_fullscreen")&&(F=!0),_.T1(this.hostElement,"yt-toggle-theater-mode",[F]),wR(G,B,this.isShortsPage))};
_.w.toggleMiniplayer=function(G,B){var F=this.getPlayerManager();if(this.isMiniplayerActive()){var D;((D=_.te().resolve(_.fH(_.pA)))==null?0:D.isOnWatch())?_.te().resolve(_.WP).close(!0):_.e4(_.te().resolve(_.WP));wR(G,B,this.isShortsPage)}else F&&(_.T1(this.hostElement,"yt-activate-miniplayer-from-watch-action"),wR(G,B,this.isShortsPage))};
_.w.handlePlayerSpaceKey=function(G,B){var F=!!_.AZ()||this.isMiniplayerActive();F=_.X("disable_space_scroll_fix")||F;_.X("global_spacebar_pause")&&!this.isKeyBoardInUse()&&F&&(G.preventDefault(),this.passEventToPlayer(G,B))};
_.w.isPresentingTheaterMode=function(){return _.X("web_watch_enable_tm_esc_key")?_.KA(_.VU().getState())&&!_.vZ():!1};
t$.prototype.onMiniplayerActiveChange=t$.prototype.onMiniplayerActiveChange;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],t$.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],t$.prototype,"ytdReduxBehavior",void 0);_.c([_.v({selector:_.eoc}),_.I("design:type",Boolean)],t$.prototype,"inlinePreviewIsActive",void 0);_.c([_.v({selector:_.Crs}),_.I("design:type",Boolean)],t$.prototype,"isShortsPage",void 0);
_.c([_.v({selector:_.hc}),_.I("design:type",Boolean)],t$.prototype,"miniplayerIsActive",void 0);_.c([_.Ga("miniplayerIsActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],t$.prototype,"onMiniplayerActiveChange",null);_.c([_.mC({disableElementRegistration:!0,is:"yt-hotkey-manager"})],t$);_.d(t$,"yt-hotkey-manager",void 0,{mode:2});var ZY=function(){var G=_.p.apply(this,arguments)||this;G.loopStateEntityKey_=null;G.playlistLoopStateEntity_=null;G.isShuffleNextPlaylist=!1;G.PLAYER_EVENTS_=new Map;G.playerListenersSetup_=!1;G.videoSkipJob_=0;G.canAutoAdvance_=!1;G.playerManager_=null;G.TEST_ONLY={};return G};
_.r(ZY,_.p);_.w=ZY.prototype;_.w.ready=function(){_.te().addProvider({provide:_.Wv,useValue:this.hostElement})};
_.w.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.w.attached=function(){document.addEventListener("yt-navigate-start",_.x7(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.x7(this,this.onYtNavigateFinish_))};
_.w.detached=function(){document.removeEventListener("yt-navigate-start",_.x7(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.x7(this,this.onYtNavigateFinish_))};
_.w.updatePlaylistEventListeners=function(G,B){B&&!this.playerListenersSetup_?(this.playerManager_=G,this.registerPlaylistEventListeners_(G)):!B&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(G))};
_.w.setPlayer=function(G){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=G};
_.w.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.w.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.w.registerPlaylistEventListeners_=function(G){var B=this;G.getPlayerPromise().then(function(F){B.playerListenersSetup_||(B.ytPlayerListenerBehavior.listenToPlayerEvents(F,B.PLAYER_EVENTS_),B.playerListenersSetup_=!0)})};
_.w.removePlaylistEventListeners_=function(G){var B=this;G.getPlayerPromise().then(function(F){B.playerListenersSetup_&&(B.ytPlayerListenerBehavior.unlistenFromPlayerEvents(F,B.PLAYER_EVENTS_),B.playerListenersSetup_=!1)})};
_.w.setPlaylistComponent=function(G){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.x7(this,this.onPlaylistYtNavigate_)),G&&(G.data&&this.playlistComponent.data&&G.data.playlistId==this.playlistComponent.data.playlistId?(G.loopOn=this.playlistComponent.loopOn,G.shuffleOn=this.playlistComponent.shuffleOn):(G.loopOn=!1,G.shuffleOn=!1),this.isShuffleNextPlaylist&&(G.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=G;this.playlistComponent.addEventListener("yt-navigate",
_.x7(this,this.onPlaylistYtNavigate_))};
_.w.setAutoplayRenderer=function(G){this.autoplayData=G};
_.w.setPlaylistData=function(G){this.currentPlaylistData_=G;_.cZ(this.hostElement,"yt-playlist-data-updated");_.UK.isEmpty(G)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(G)};
_.w.setPlayerPlaybackControlData=function(G){this.playerManager_&&this.playerManager_.updatePlayerComponents(G.playlistPanelRenderer)};
_.w.getPlaylistData=function(){return this.currentPlaylistData_};
_.w.getTempData_=function(G,B){if(this.playlistComponent==null)return null;G={};this.playlistComponent.shuffleOn&&(G.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(G.loop_on=this.playlistComponent.loopOn);B&&(G.autonav="1",_.te().resolve(_.uN),B=_.Z8(),B>0&&(G.lact=B),this.playerManager_&&(B=this.playerManager_.getPlayer())&&B.shouldSendVisibilityState()&&(B=B.getVisibilityState(),B!=0&&(G.vis=B)));_.X("enable_unknown_lact_fix_on_html5")&&(_.te().resolve(_.uN),G.lact=
_.Z8());return G};
_.w.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.w.setLoopStateEntityKey_=function(G){var B;this.loopStateEntityKey_=((B=this.getPlaylistLoopData_(G))==null?void 0:B.playlistLoopStateEntityKey)||null};
_.w.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.w.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.w.skipVideo=function(){var G=this,B=_.X("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||B)B=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.yH(_.Lu,function(){G.onPlaylistNext();G.videoSkipJob_=0},B)};
_.w.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Lu.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.w.isInBackground_=function(){var G=window.document.visibilityState;return!(!G||G=="visible")};
_.w.onPlaylistIndex_=function(G){this.playlistComponent&&(G=this.playlistComponent.data.contents[G].playlistPanelVideoRenderer.navigationEndpoint,_.cZ(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getTempData_(G)}))};
_.w.onPlayerStateChange_=function(G){if(G=G==0&&this.playlistComponent&&this.canAutoAdvance_)G=_.M_.getInstance(),G=!(G.autonavState_===3?G.autonavPauseReason_&&G.autonavPauseReason_.inputBoxFocus===!0:G.autonavState_===1&&G.disabledAutonavPauseReason_&&G.disabledAutonavPauseReason_.inputBoxFocus===!0);G&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.w.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.w.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.w.navigateToAutoplayWatchEndpoint_=function(G,B,F){var D=this.playlistComponent.data.currentIndex,u=this.getNumPlayableVideos_();G=="NORMAL"&&B=="autoplayVideo"&&D+1>=u&&F||!(G=this.getVideoEndpoint_(G,B))||(F=this.getTempData_(G,F),_.cZ(this.hostElement,"yt-navigate",{endpoint:G,tempData:F}))};
_.w.getNumPlayableVideos_=function(){for(var G=0,B=_.C(this.playlistComponent.data.contents||[]),F=B.next();!F.done;F=B.next())F.value.playlistPanelVideoRenderer&&(G+=1);return G};
_.w.getVideoEndpoint_=function(G,B){if(this.autoplayData&&this.autoplayData.sets)for(var F=0,D=this.autoplayData.sets.length;F<D;F++){var u=this.autoplayData.sets[F];if(u.mode==G){if(u[B])return u[B];break}}else G=new _.Uf("AutoplayData is undefined in playlist manager","Mode: "+G+" endpoint: "+B),_.em(G)};
_.w.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.w.onPlaylistYtNavigate_=function(G){if(G.detail.endpoint){G.stopPropagation();var B=G.detail;B.tempData=this.getTempData_(G.detail.endpoint);_.cZ(this.hostElement,"yt-navigate",B)}};
_.w.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.w.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.w.playlistLoopStateEntityChanged_=function(G){var B=this,F,D,u;return _.n(function(R){if(R.nextAddress==1){if(!G)return R.return();F=G.state==="PLAYLIST_LOOP_STATE_ONE";return B.playerManager_?R.yield(B.playerManager_.getPlayerPromise(),3):R.jumpTo(2)}R.nextAddress!=2&&(D=R.yieldResult,D.setLoopVideo(F));u=G.state==="PLAYLIST_LOOP_STATE_ALL";B.playlistComponent&&(B.playlistComponent.loopOn=u);_.di(R)})};
_.w.getPlaylistLoopData_=function(G){var B,F;if(G=G==null?void 0:(B=G.playlistButtons)==null?void 0:(F=B.menuRenderer)==null?void 0:F.topLevelButtons)for(B=_.C(G),F=B.next();!F.done;F=B.next())if(F=F.value,F.playlistLoopButtonRenderer)return F.playlistLoopButtonRenderer};
_.w.getLoopStateCommand_=function(G){var B=this.getPlaylistData(),F;B=((F=this.getPlaylistLoopData_(B))==null?void 0:F.states)||[];var D;G=(D=_.Q(B[G?1:2],_.s37))==null?void 0:D.button;var u;return(u=_.Q(G,_.Xq))==null?void 0:u.command};
_.w.onPlayerLoopChange_=function(G){this.playlistLoopStateEntity_&&(G?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(G=this.getLoopStateCommand_(G))&&this.ytComponentBehavior.resolveCommand(G)};
_.w.onSleepTimerSettingsChanged_=function(G){this.canAutoAdvance_=G!=="End of video"};
ZY.prototype.onPlaylistLoopStateEntityChanged=ZY.prototype.onPlaylistLoopStateEntityChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ZY.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],ZY.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],ZY.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ZY.prototype,"loopStateEntityKey_",void 0);
_.c([_.v({selectorArgs:["loopStateEntityKey_"],selector:_.R5.playlistLoopStateEntitySelector}),_.I("design:type",Object)],ZY.prototype,"playlistLoopStateEntity_",void 0);_.c([_.Ga("playlistLoopStateEntity_"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZY.prototype,"onPlaylistLoopStateEntityChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"yt-playlist-manager"})],ZY);_.d(ZY,"yt-playlist-manager",void 0,{mode:2});var xA2,PON=function(){if(xA2!==void 0)return xA2;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return xA2=G};var gM=function(){var G=_.p.apply(this,arguments)||this;G.lastCallback=null;G.getAccountLinkPromises={};G.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);G.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return G};
_.r(gM,_.p);_.w=gM.prototype;_.w.getLocation=function(){return window.location.href};
_.w.getCompletionUrl=function(){return _.tC(this.getLocation())};
_.w.containsRedirectState=function(G){return(G=_.c7(_.ZT8(G)))?(new URLSearchParams(G)).get("redirect_state")!==null:!1};
_.w.createGalConfig=function(G,B){var F=new j12;G=F=B?this.getPopupOrRedirectSetting(F,_.v5("LINK_API_KEY"),_.v5("LINK_API_KEY_REDIRECT"),G):L9G(F,_.v5("LINK_API_KEY"));G.authUser=_.v5("SESSION_INDEX")||0;G.supportedFlows=new Set([4]);return G.build()};
_.w.getPopupOrRedirectSetting=function(G,B,F,D){this.isGalInteractionPopupMode(D)?(G.interactionMode=0,G=L9G(G,B)):(G.interactionMode=1,B=this.getCompletionUrl(),G.completionUrl=B,G=L9G(G,F));return G};
_.w.isGalInteractionPopupMode=function(G){if(this.redirectModeProviderAllowlist.has(G))switch(G){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.w.getStatusEntityKeyForProviderId=function(G){return _.Z4(G+":all","accountLinkStatusEntity")};
_.w.findNestedPropValue=function(G,B){var F=!1,D=null;JSON.stringify(G,function(u,R){F||u!==B||(F=!0,D=R);return F?null:R});
return D};
_.w.findAccountLinkButtonViewModel=function(G,B){var F=null,D=!1;JSON.stringify(G,function(u,R){D||R.accountLinkStatusEntityKey!==B||R.accountLinkStatusSecondaryEntityKey||(D=!0,F=R);return D?null:R});
return F};
_.w.executeLinkingSuccessOrFailureCommands=function(G,B,F){var D=null,u;(B==null?0:(u=B.url)==null?0:u.includes("account_sharing"))?D=B==null?void 0:B.response:D=B==null?void 0:B.response;(B=this.findAccountLinkButtonViewModel(D,G))?(G=F?this.findNestedPropValue(B,"onSuccessCommand"):this.findNestedPropValue(B,"onFailureCommand"))?_.Sa([G],this.hostElement):_.Ae(Error("Zl")):_.Ae(Error("$l`"+G))};
_.w.handleInitializeRequest=function(G,B){var F=this,D=JVA(this.createGalConfig(G,!0));this.containsRedirectState(this.getLocation())?Msz(G,D.config,D.galService).then(function(u){var R=F.getStatusEntityKeyForProviderId(G);if(u.statusCode===1)B&&F.executeLinkingSuccessOrFailureCommands(R,B,!0),u=F.getLocation().indexOf("#"),u!==-1&&window.history.pushState(null,"",F.getLocation().substring(0,u));else return B&&F.executeLinkingSuccessOrFailureCommands(R,B,!1),Promise.reject(Error(u.statusMessage))}).catch(function(u){_.em(u);
_.W$("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(u)}):this.getAccountLinkPromises[G]=D.startLinkingSession({serviceId:G})};
_.w.handleAccountLinkCommand=function(G){_.Q(G,m1Q)&&this.handleLinkRequest(_.Q(G,m1Q))};
_.w.handleLinkRequest=function(G){var B=this,F=G.thirdPartyId;if(F)if(this.isGalInteractionPopupMode(F)){var D=function(){B.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onFailureCommand)},u=function(){B.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onSuccessCommand)};
this.lastCallback=u;this.getAccountLinkPromises[F].then(function(R){Dy2(R).then(function(N){N.statusCode===1?u():D()})}).catch(function(){D()})}else this.getAccountLinkPromises[F].then(function(R){Dy2(R).then(function(N){if(N.statusCode!==1)return Promise.reject(Error(N.statusMessage))})}).catch(function(R){_.em(R);
_.W$("gamingAccountLinkStatusChanged",{serviceId:F,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(R)})};
_.w.closeAndFire=function(G,B){_.T1(this.hostElement,"yt-close-popup-action",[G]);B&&_.Sa([B],this.hostElement)};
_.w.handleAccountUnlinkCommand=function(G){_.Q(G,XxN)&&this.handleUnlinkRequest(_.Q(G,XxN))};
_.w.handleUnlinkRequest=function(G){var B=this,F=G.thirdPartyId;if(F){var D=function(){B.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onFailureCommand)},u=function(){B.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onSuccessCommand)};
this.lastCallback=u;var R=JVA(this.createGalConfig(F,!1));this.unlinkUserGal(R,F).then(function(N){N.statusCode===1?u():D()}).catch(function(){D()})}};
_.w.unlinkUserGal=function(G,B){return G.deleteLink(B)};
_.w.handleLogAccountLinkingEventCommand=function(G){_.X("enable_gel_log_commands")&&_.Q(G,jrD)&&(G=_.Q(G,jrD).event)&&_.W$("gamingAccountLinkStatusChanged",G)};
_.ZN.Object.defineProperties(gM,{template:{configurable:!0,enumerable:!0,get:function(){return PON()}}});
_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],gM.prototype,"ytOpenPopupBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],gM.prototype,"ytActionHandlerBehavior",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-third-party-manager"})],gM);_.d(gM,"ytd-third-party-manager",function(){return PON()},{mode:2});var Gb2=2/3,Bz2=_.ge(130749),iYS=function(G,B){var F=this;this.element=G;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){F.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Gb2,moveAction:function(D){F.moveAction(D)},
triggerAction:function(){F.element.isReloading=!0;_.kF(_.Rh(),{visualElement:Bz2});_.Gm.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:F.element}})}}}};
_.gr(_.Rh(),Bz2,this.layer);this.gesture=new A4(G,B,this.refreshConfig,"pan-down");this.attach()};
_.w=iYS.prototype;_.w.attach=function(){this.gesture.attach()};
_.w.detach=function(){this.gesture.detach()};
_.w.reset=function(){this.element.close()};
_.w.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.w.moveAction=function(G){this.element.rotation=G*360};var F1A=_.ge(130750),uG$=function(G,B,F,D,u){var R=this;this.element=G;this.parent=F;this.channelHeader=D;this.ytdReduxDispatch=u;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){R.tabsStartAtInPx=R.channelHeader.clientHeight-48;var N;(N=R.selectedTab)!=null&&N.title&&(N=_.te().resolve(_.fH(_.pA)))&&(N=N.getCurrentPage(),R.lastVisitedTabScrollPosition=N.getScrollTop(),R.previousTab&&
((R.lastVisitedTabScrollPosition===void 0?0:R.lastVisitedTabScrollPosition<R.channelHeader.clientHeight-48)?R.scrollPositionForTabs.has(R.selectedTab.title)&&R.scrollPositionForTabs.delete(R.selectedTab.title):R.scrollPositionForTabs.set(R.selectedTab.title,N.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:DdU(),triggerAction:function(){R.navigate(R.previousTab)},
moveAction:function(N,y){R.moveAction(N,y)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-DdU(),triggerAction:function(){R.navigate(R.nextTab)},
moveAction:function(N,y){R.moveAction(N,y)}}}};
_.gr(_.Rh(),F1A,this.layer);this.gesture=new A4(G,B,this.tabConfig);this.attach()};
_.w=uG$.prototype;_.w.attach=function(){this.gesture.attach()};
_.w.detach=function(){this.gesture.detach()};
_.w.tabsChanged=function(G){if(G){var B=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;G=_.C(G);for(var F=G.next();!F.done;F=G.next()){F=F.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=F);var D=void 0;if((D=F)==null?0:D.selected)this.previousTab=B,this.selectedTab=F;B=F}B=this.gesture;G=this.getConfig();B.config=G;this.scrollPositionNeedsUpdate=!0}};
_.w.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.w.moveAction=function(G,B){if(!this.tabsElement){var F;this.tabsElement=(F=this.parent.header)==null?void 0:F.tabsElement;B==="right"&&this.previousTab?(F=this.previousTab.endpoint,_.IRZ(_.te().resolve(_.E$),F,{},"")):B==="left"&&this.nextTab&&(F=this.nextTab.endpoint,_.IRZ(_.te().resolve(_.E$),F,{},""));if(!this.tabsElement)return}F=this.tabsElement._pos;B==="right"&&(G*=-1);this.tabsElement._positionBar(F.width,F.left*1+F.width*G)};
var DdU=function(){var G,B;return(B=(G=_.te().resolve(_.pA).getCurrentPage())==null?void 0:G.clientWidth)!=null?B:0};
uG$.prototype.navigate=function(G){this.element.data=void 0;if(G=G==null?void 0:G.endpoint)this.ytdReduxDispatch(YVU(!0)),_.kF(_.Rh(),{visualElement:F1A}),_.Gm.instance.resolveCommand({navigateAction:{endpoint:G}},{form:{element:this.element}})};var RvS;var wJG;var SS=function(){var G=_.p.apply(this,arguments)||this;G.rotation=0;G.isReloading=!1;return G};
_.r(SS,_.p);SS.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
SS.prototype.reset=function(){this.hostElement.style.opacity=""};
SS.prototype.close=function(){var G=this;return _.n(function(B){if(B.nextAddress==1)return B.yield(G.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.hostElement.style.opacity="0";_.di(B)})};
SS.prototype.rotationChanged=SS.prototype.rotationChanged;_.c([_.v(),_.I("design:type",Object)],SS.prototype,"rotation",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],SS.prototype,"isReloading",void 0);_.c([_.iA("#icon"),_.I("design:type",HTMLElement)],SS.prototype,"icon",void 0);_.c([_.Ga("rotation"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],SS.prototype,"rotationChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-refresh"})],SS);
_.d(SS,"ytd-refresh",function(){if(wJG!==void 0)return wJG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return wJG=G},{mode:1});var CUD;var sk=function(){var G=_.p.apply(this,arguments)||this;G.useRaf=!_.X("web_use_raf_app_header_layout_killswitch");return G};
_.r(sk,_.p);sk.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"}}}};
sk.prototype.dataChanged=function(){if(this.data){var G=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var B=_.Ax(this.data.banner.thumbnails,this.hostElement.clientWidth);B&&(B.indexOf("//")===0&&(B="https:"+B),this.hasBannerArt=!0,_.Ss(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+B+")"}))}this.hasBannerArt!==G&&_.IF(this.hostElement).querySelector("#header").fire("iron-resize")}};
sk.prototype.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
sk.prototype.dataChanged=sk.prototype.dataChanged;_.c([_.k(x4$),_.I("design:type",Object)],sk.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.X6),_.I("design:type",Object)],sk.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],sk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],sk.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sk.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],sk.prototype,"selected",void 0);_.c([_.v(),_.I("design:type",Boolean)],sk.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],sk.prototype,"hasBannerArt",void 0);_.c([_.v(),_.I("design:type",Object)],sk.prototype,"useRaf",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sk.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],sk);
_.d(sk,"ytd-interactive-tabbed-header-renderer",function(){if(CUD!==void 0)return CUD;var G=document.createElement("template");_.H(G,'\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 use-raf="[[useRaf]]" 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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return CUD=G},{mode:1});var Nz$;var xX=function(){return _.p.apply(this,arguments)||this};
_.r(xX,_.p);xX.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xX.prototype.computeActionsAlignment=function(G){return(G==null?void 0:G.actionsAlignment)||""};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xX.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.I("design:type",String)],xX.prototype,"actionsAlignment",void 0);
_.c([_.mC({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],xX);
_.d(xX,"ytd-page-footer-renderer",function(){if(Nz$!==void 0)return Nz$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Nz$=G},{mode:1});var yu2;var ns$;var PG=function(){var G=_.p.apply(this,arguments)||this;G.isEditing=!1;G.useSlot=!1;G.isMultiline=!1;return G};
_.r(PG,_.p);_.w=PG.prototype;_.w.onKeydown=function(G){if(G.keyCode===13&&!this.isMultiline)this.onSave();else if(G.keyCode===27)this.onCancel()};
_.w.computeComponentStyle=function(G){return(G==null?0:G.style)?G.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.w.computeisMultiline=function(G){if(this.multilineOverride!==void 0)return this.multilineOverride;var B,F;return!!(G==null?0:(B=G.formField)==null?0:(F=B.textInputFormFieldRenderer)==null?0:F.isMultiline)};
_.w.computeTextDisplayed=function(G,B){if(G)return G;if(B)return B};
_.w.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.w.onSave=function(){if(this.textForm.validate()){this.textForm.save();var G=this.textForm.value;if(G)this.set("data.textDisplayed",_.$9(G));else{var B;((B=this.data)==null?0:B.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Oe("inline-form-changed",this.data));this.isEditing=!1}};
_.w.onCancel=function(){var G=_.zx(this.data.textDisplayed);G===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(G);this.isEditing=!1};
PG.prototype.onKeydown=PG.prototype.onKeydown;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],PG.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PG.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],PG.prototype,"isEditing",void 0);_.c([_.v(),_.I("design:type",Object)],PG.prototype,"useSlot",void 0);_.c([_.v(),_.I("design:type",Boolean)],PG.prototype,"multilineOverride",void 0);_.c([_.v(),_.I("design:type",Boolean)],PG.prototype,"enableOverlayTheme",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.I("design:type",String)],PG.prototype,"componentStyle",void 0);
_.c([_.v({computed:"computeisMultiline(data)"}),_.I("design:type",Object)],PG.prototype,"isMultiline",void 0);_.c([_.iA("#text-form"),_.I("design:type",Object)],PG.prototype,"textForm",void 0);_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],PG.prototype,"onKeydown",null);_.c([_.mC({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],PG);
_.d(PG,"ytd-inline-form-renderer",function(){if(ns$!==void 0)return ns$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ns$=G},{mode:1});var lCQ;var Ge=function(){var G=_.p.apply(this,arguments)||this;G.previousSelectValue=void 0;G.selectedItemMessage=void 0;return G};
_.r(Ge,_.p);Ge.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ge.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var G,B,F,D,u=(G=this.data)==null?void 0:(B=G.dropdown)==null?void 0:(F=B.dropdownRenderer)==null?void 0:(D=F.entries)==null?void 0:D.map(function(y){return y.privacyDropdownItemRenderer});
G=_.C(u!=null?u:[]);for(B=G.next();!B.done;B=G.next())if((B=B.value)&&B.int32Value===this.selectedValue){this.selectedItemMessage=B.itemMessage;break}}else this.selectedItemMessage=void 0;var R;(R=this.onValueChanged)==null||R.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var N;(N=this.data)!=null&&N.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ge.prototype.onValueChangedForSelectedValue=function(G){this.selectedValue=G.detail.value};
Ge.prototype.selectedValueChanged=Ge.prototype.selectedValueChanged;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],Ge.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ge.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ge.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Ge.prototype,"theme",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Number)],Ge.prototype,"selectedValue",void 0);_.c([_.v(),_.I("design:type",Function)],Ge.prototype,"onValueChanged",void 0);
_.c([_.Ry("selectedValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ge.prototype,"selectedValueChanged",null);_.c([_.mC({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ge);
_.d(Ge,"ytd-dropdown-form-field-renderer",function(){if(lCQ!==void 0)return lCQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return lCQ=G},{mode:2});var Udz;var BF=function(){return _.p.apply(this,arguments)||this};
_.r(BF,_.p);_.ZN.Object.defineProperties(BF.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var G=[],B=_.C(this.data||[]),F=B.next();!F.done;F=B.next())(F=_.Q(F.value,Ct$))&&G.push(F);return G}}});
_.c([_.v(),_.I("design:type",Array)],BF.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],BF.prototype,"byline",null);_.c([_.mC({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],BF);
_.d(BF,"ytd-playlist-byline-renderer",function(){if(Udz!==void 0)return Udz;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Udz=G},{mode:1});var qoD;var iW=function(){var G=_.p.apply(this,arguments)||this;G.rtlBullet=_.X("web_playlist_stats_rtl_bullet_icon_killswitch");G.modern=_.X("web_modern_buttons");G.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return G};
_.r(iW,_.p);_.w=iW.prototype;_.w.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"}}}}};
_.w.attached=function(){};
_.w.computeIsCustomThumbnail=function(G){return G?!!G.playlistCustomThumbnailRenderer:!1};
_.w.onYtNavigate=function(G,B){if(B&&B.actions&&B.actions.indexOf("shuffle")>-1){G=_.te().resolve(_.Wv);var F=B.tempData||{};F.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);B.tempData=F;G.isShuffleNextPlaylist=!0}};
_.w.onUpdatePlaylistAction=function(G){var B;G=(B=_.Q(G,_.nCG))==null?void 0:B.updatedRenderer;if(B=_.Q(G,HFS))this.data=B};
_.w.computeStyleType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeThumbnailWidth=function(G){return G==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.w.computeHideThumbnailAria=function(G){if(G==null?0:G.thumbnailOverlays)for(var B=0;B<G.thumbnailOverlays.length;B++){var F=void 0;if((F=G.thumbnailOverlays[B])==null?0:F.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
iW.prototype.onYtNavigate=iW.prototype.onYtNavigate;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],iW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],iW.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],iW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],iW.prototype,"rtlBullet",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.I("design:type",String)],iW.prototype,"styleType",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.I("design:type",Number)],iW.prototype,"thumbnailWidth",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],iW.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.I("design:type",Boolean)],iW.prototype,"isCustomThumbnail",void 0);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[Event,Object]),_.I("design:returntype")],iW.prototype,"onYtNavigate",null);_.c([_.mC({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],iW);
_.d(iW,"ytd-playlist-sidebar-primary-info-renderer",function(){if(qoD!==void 0)return qoD;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return qoD=G},{mode:1});var EsS;var Ft=function(){return _.p.apply(this,arguments)||this};
_.r(Ft,_.p);Ft.prototype.computeOwnerVisibility=function(G){return!(!G.videoOwner&&!G.button)};
Ft.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ft.prototype,"data",void 0);_.c([_.mC({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Ft);
_.d(Ft,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(EsS!==void 0)return EsS;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return EsS=G},{mode:1});var hv$;var DU=function(){var G=_.p.apply(this,arguments)||this;G.expanded=!1;G.isCompact=!1;return G};
_.r(DU,_.p);_.w=DU.prototype;_.w.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.w.dataChanged=function(){this.data&&_.qm(_.IF(this.text),_.aRt(_.Qiv,_.zx(this.data.text||null)))};
_.w.computeAutoScrollEnabled=function(G,B){return G&&!B};
_.w.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.w.toggleOnTap=function(){this.expanded=!this.expanded};
DU.prototype.expandedChanged=DU.prototype.expandedChanged;DU.prototype.dataChanged=DU.prototype.dataChanged;_.c([_.k(iwU),_.I("design:type",Object)],DU.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],DU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],DU.prototype,"expanded",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],DU.prototype,"isCompact",void 0);_.c([_.v({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.I("design:type",Boolean)],DU.prototype,"autoScrollEnabled",void 0);_.c([_.iA("#text"),_.I("design:type",Object)],DU.prototype,"text",void 0);_.c([_.iA("#expander-icon"),_.I("design:type",Object)],DU.prototype,"expanderIcon",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],DU.prototype,"dataChanged",null);_.c([_.Ga("expanded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],DU.prototype,"expandedChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],DU);
_.d(DU,"ytd-channel-legal-info-renderer",function(){if(hv$!==void 0)return hv$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return hv$=G},{mode:1});var K1Q;var aC$=_.G7("DOWNLOAD",{},"Download"),mdA=_.G7("DOWNLOADING",{},"Downloading"),XJ2=_.G7("DOWNLOADED",{},"Downloaded"),uW=function(){var G=_.p.apply(this,arguments)||this;G.downloadProgress=0;G.isDownloadComplete=!1;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.r(uW,_.p);_.w=uW.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.dataChanged=function(){var G;(G=this.data)!=null&&G.tooltip||(G=_.X9(_.VU().getState(),this.playlistId),this.updateButtonState(G))};
_.w.computePlaylistId=function(G){return G};
_.w.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.w.updateButtonState=function(G){if(this.data&&(this.data.tooltip!==mdA||!_.DV(G))){this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=aC$;var B="OFFLINE_DOWNLOAD";var F="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":G=XJ2;B="OFFLINE_PIN";F="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":G=mdA;B="OFFLINE_DOWNLOADING_ZERO";F="ACTION_REMOVE_WITH_PROMPT";
break;default:G=aC$,B="OFFLINE_DOWNLOAD",F="ACTION_ADD"}var D=Object.assign({},this.data);D.tooltip=G;D.accessibilityData={accessibilityData:{label:G}};D.icon={iconType:B};D.size="SIZE_DEFAULT";_.Q(D.command,_.B_)&&(_.Q(D.command,_.B_).action=F);this.set("data",D)}};
_.w.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?G="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var B;G!==((B=this.data.icon)==null?void 0:B.iconType)&&(B=Object.assign({},this.data),B.tooltip=mdA,B.accessibilityData={accessibilityData:{label:mdA}},B.icon={iconType:G},_.Q(B.command,_.B_)&&(_.Q(B.command,_.B_).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",B))}};
uW.prototype.updateProgress=uW.prototype.updateProgress;uW.prototype.onTransferStateChanged=uW.prototype.onTransferStateChanged;uW.prototype.dataChanged=uW.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],uW.prototype,"ytdReduxBehavior",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],uW.prototype,"forceIconButton",void 0);
_.c([_.v({value:!0}),_.I("design:type",Boolean)],uW.prototype,"forceIconOnly",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],uW.prototype,"overrides",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],uW.prototype,"buttonTooltipPosition",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],uW.prototype,"styleActionButton",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],uW.prototype,"disableTextTransform",void 0);
_.c([_.v({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.I("design:type",String)],uW.prototype,"playlistId",void 0);_.c([_.v(),_.I("design:type",Object)],uW.prototype,"data",void 0);_.c([_.v({selector:_.Y56,selectorArgs:["playlistId"]}),_.I("design:type",Object)],uW.prototype,"downloadProgress",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],uW.prototype,"isDownloadComplete",void 0);
_.c([_.v({selector:_.X9,selectorArgs:["playlistId"]}),_.I("design:type",String)],uW.prototype,"transferState",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],uW.prototype,"showTooltips",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],uW.prototype,"sendCommandWhenDisabled",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],uW.prototype,"disabled",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uW.prototype,"dataChanged",null);_.c([_.Ry("transferState"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uW.prototype,"onTransferStateChanged",null);_.c([_.Ry("downloadProgress"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uW.prototype,"updateProgress",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],uW);
_.d(uW,"ytd-download-playlist-button-renderer",function(){if(K1Q!==void 0)return K1Q;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return K1Q=G},{mode:1});var QEA;_.YN(_.S3q,"thumbnail-overlay-button-view-model",{props:{data:_.Hd,lockupExperiments:_.Hd}});var RX=function(){var G=_.p.apply(this,arguments)||this;G.isSquare=!1;G.isVertical=!1;return G};
_.r(RX,_.p);RX.prototype.computeIsSquare=function(G){return G!=null&&G.thumbnail?I4U(G.thumbnail)==="SQUARE":!1};
RX.prototype.computeIsVertical=function(G){return G!=null&&G.thumbnail?I4U(G.thumbnail)==="VERTICAL":!1};
RX.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.I("design:type",Object)],RX.prototype,"isSquare",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.I("design:type",Object)],RX.prototype,"isVertical",void 0);
_.c([_.v(),_.I("design:type",Object)],RX.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],RX);
_.d(RX,"ytd-hero-playlist-thumbnail-renderer",function(){if(QEA!==void 0)return QEA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QEA=G},{mode:1});var wV=function(){var G=_.p.apply(this,arguments)||this;G.isDarkTheme=!1;G.isUltraWide=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return G};
_.r(wV,_.p);_.w=wV.prototype;_.w.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.te();var G;(G=_.te().resolve(_.fH(_.lm)))!=null&&(G.headerElement=this.hostElement)};
_.w.detached=function(){var G;(G=_.te().resolve(_.fH(_.lm)))!=null&&(G.headerElement=void 0)};
_.w.onUpdateHeader=function(G){(G=G.detail)&&this.set("data",G)};
_.w.computeTextDisplayed=function(G){if(G)return G.textDisplayed?G.textDisplayed:G.placeholder};
_.w.gradientColorToLinearGradientStop=function(G){var B=this.isDarkTheme?G.darkThemeColor:G.lightThemeColor;return B?_.Kp(B)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"};
_.w.onWindowResize=function(){var G;((G=this.data)==null?0:G.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.w.onIronResize=function(G){this.isUltraWide=!G.detail.value};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.onUpdatePlaylistName=function(G){var B=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},G.detail.value));_.ft(this,function(){var F;(F=B.editableTitle)==null||F.resize()})};
_.w.onUpdatePlaylistDescription=function(G){var B=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},G.detail.value));_.ft(this,function(){var F;(F=B.editableDescriptionInlineExpander)==null||F.resize()})};
_.w.getCinematicData=function(G){return _.Q(G==null?void 0:G.cinematicContainer,qM)};
_.ZN.Object.defineProperties(wV.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 G,B=(G=this.getCinematicData(this.data))==null?void 0:G.config;return(G=this.isDarkTheme?B==null?void 0:B.darkThemeBackgroundColor:B==null?void 0:B.lightThemeBackgroundColor)?"background-color:"+_.hV(G)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var G;return _.Q((G=this.data)==null?void 0:G.descriptionForm,L3G)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var G=this,B,F,D;return"background:linear-gradient(to bottom, "+(((D=(B=this.getCinematicData(this.data))==null?void 0:(F=B.gradientColorConfig)==null?void 0:F.map(function(u){return G.gradientColorToLinearGradientStop(u)}))==null?void 0:D.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var G;return _.zx((G=this.data)==null?void 0:G.descriptionTapText)}}});
wV.prototype.onUpdateHeader=wV.prototype.onUpdateHeader;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],wV.prototype,"actionHandlerBehavior",void 0);_.c([_.iA("#description-inline-expander"),_.I("design:type",Object)],wV.prototype,"descriptionInlineExpander",void 0);
_.c([_.iA("#editable-description-inline-expander"),_.I("design:type",Object)],wV.prototype,"editableDescriptionInlineExpander",void 0);_.c([_.v(),_.I("design:type",Object)],wV.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],wV.prototype,"isUltraWide",void 0);_.c([_.iA("#editable-title-display"),_.I("design:type",Object)],wV.prototype,"editableTitle",void 0);_.c([_.O("isUltraWide"),_.I("design:type",Object),_.I("design:paramtypes",[])],wV.prototype,"maxDescriptionLines",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],wV.prototype,"noCinematicData",null);_.c([_.Pm("yt-new-playlist-header"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],wV.prototype,"onUpdateHeader",null);_.c([_.O("data","isDarkTheme"),_.I("design:type",Object),_.I("design:paramtypes",[])],wV.prototype,"backgroundStyle",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],wV.prototype,"descriptionFormData",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],wV.prototype,"getDropdownTheme",null);_.c([_.O("data","isDarkTheme"),_.I("design:type",String),_.I("design:paramtypes",[])],wV.prototype,"gradientStyle",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],wV.prototype,"descriptionTapText",null);
_.c([_.mC({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],wV);
_.d(wV,"ytd-playlist-header-renderer",function(){if(yu2!==void 0)return yu2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return yu2=G},{mode:2});var jEN;var L1$;var Cb=function(){return _.p.apply(this,arguments)||this};
_.r(Cb,_.p);Cb.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Cb.prototype,"data",void 0);_.c([_.mC({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Cb);
_.d(Cb,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(L1$!==void 0)return L1$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return L1$=G},{mode:1});var N4=function(){return _.p.apply(this,arguments)||this};
_.r(N4,_.p);
N4.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}}}}};
N4.prototype.computeUsePremiumShowStyle=function(G){if(!G||!G.items)return!1;for(var B=0;B<G.items.length;B++)if(_.Q(G.items[B],HFS)){var F=void 0;return((F=_.Q(G.items[B],HFS))==null?void 0:F.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],N4.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.I("design:type",Boolean)],N4.prototype,"usePremiumShowStyle",void 0);
_.c([_.mC({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],N4);
_.d(N4,"ytd-playlist-sidebar-renderer",function(){if(jEN!==void 0)return jEN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return jEN=G},{mode:1});var ruH;var W12;var HYG=function(G,B,F,D,u,R,N,y){this.minWidth=G;this.minHeight=B;this.recommendedWidth=F;this.recommendedHeight=D;this.JSC$21770_maxFileSize=u;this.title=R;this.bannerGalleryTitle=N;this.channelId=y;this.picker_=null;G=_.F4s("yt-banner");B=G.addView;F=(new rWU("youtubebanner")).addUploadMetadata("silo_id","19");F.opts.ytMaxFileSize=this.JSC$21770_maxFileSize;D=this.recommendedHeight;F.opts.ytRecWidth=this.recommendedWidth;F.opts.ytRecHeight=D;B.call(G,F);G.addView(new _.lJ);B=G.addView;F=new _.lJ;
F.opts.type="ytbanner";B.call(G,F.JSC$10384_setLabel(this.bannerGalleryTitle));B=G.setTitle(this.title).setSize(1E3);B.urlParamMap_.set("thumbs","orig");F=this.minWidth;D=this.minHeight;if(isNaN(F)||isNaN(D))throw Error("ib`"+F+"`"+D);B.urlParamMap_.set("minSize",F+"x"+D);B.urlParamMap_.set("cropMode","ytcb");this.builder_=G};
HYG.prototype.open=function(){var G=this;return new _.DS(function(B,F){_.MWG(G.builder_,function(D){D.action=="picked"?B(D):D.action=="cancel"&&F(Error("am"))});
G.picker_&&G.picker_.dispose();G.picker_=G.builder_.build();G.picker_.setVisible(!0)})};
HYG.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var kbN=function(G){this.channelId=G};
kbN.prototype.upload=function(G){var B="";G.viewToken&&(B=G.viewToken[2].type);var F=G.docs[0];G=F.crop;B={channel_id:this.channelId,fife_url:F.thumbnails[0].url,photo_id:F.id,is_gallery_image:B=="ytbanner"};G&&(B.crop_top=G.top,B.crop_right=G.right,B.crop_bottom=G.bottom,B.crop_left=G.left);return _.pJs("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:B})};var yp=function(){var G=_.p.apply(this,arguments)||this;G.ariaLabel=null;return G};
_.r(yp,_.p);_.w=yp.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.detached=function(){this.picker&&this.picker.dispose()};
_.w.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.w.computeAriaLabel=function(G){return G};
_.w.onTap=function(){var G=this,B;if((B=this.data)==null||!B.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new HYG(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 F;(F=this.picker)==null||F.open().then(function(D){G.handleBannerPicked(D)},function(){})}};
_.w.handleBannerPicked=function(G){var B=this;this.uploader||(this.uploader=new kbN(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(G).then(function(F){B.handleBannerUploadSucceeded(F)},function(F){B.handleBannerUploadFailed(F)})};
_.w.handleBannerUploadSucceeded=function(G){G&&G.errors?this.handleBannerUploadFailed(G):(_.cZ(this.hostElement,"yt-banner-updated",G),this.message=null)};
_.w.handleBannerUploadFailed=function(G){this.message=G&&G.errors&&G.errors.length?G.errors[0]:null};
yp.prototype.dataChanged=yp.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],yp.prototype,"componentBehavior",void 0);_.c([_.k(_.N9),_.I("design:type",Object)],yp.prototype,"ironButtonState",void 0);_.c([_.v(),_.I("design:type",Object)],yp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.I("design:type",Object)],yp.prototype,"ariaLabel",void 0);
_.c([_.v(),_.I("design:type",Object)],yp.prototype,"message",void 0);_.c([_.v(),_.I("design:type",Object)],yp.prototype,"picker",void 0);_.c([_.v(),_.I("design:type",Object)],yp.prototype,"uploader",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yp.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],yp);
_.d(yp,"ytd-channel-banner-editor-renderer",function(){if(W12!==void 0)return W12;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return W12=G},{mode:1});var OY$;var evN=_.vP(["#"]),nb=function(){return _.p.apply(this,arguments)||this};
_.r(nb,_.p);nb.prototype.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G,!0)||_.rlM(evN)};
nb.prototype.dataChanged=function(){var G=this.data;G&&G.targetId&&_.xl(_.Pv(),G.targetId,this.moreIcon)};
nb.prototype.dataChanged=nb.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nb.prototype,"data",void 0);_.c([_.iA("#more-icon"),_.I("design:type",Object)],nb.prototype,"moreIcon",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],nb.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],nb);
_.d(nb,"ytd-channel-tagline-renderer",function(){if(OY$!==void 0)return OY$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return OY$=G},{mode:1});var $dD;var lW=function(){return _.p.apply(this,arguments)||this};
_.r(lW,_.p);_.w=lW.prototype;_.w.ready=function(){var G=this;_.IF(this.hostElement).querySelector("#form").addEventListener("submit",function(B){G.onSubmit(B)})};
_.w.onDataChanged=function(){var G;((G=this.data)==null?0:G.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.w.onIconButtonKeydown=function(G){G.keyCode===13&&this.iconButton.click()};
_.w.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.w.openOnClickHandler=function(){this.input.focus()};
_.w.onSubmit=function(G){G.preventDefault();return!1};
_.w.submitOnEnterKeyUp=function(G){var B;if(G.keyCode===13&&((B=this.data)==null?0:B.expandedText)){G=this.data.endpoint;B=_.UK.unsafeClone(G);var F;((F=_.Q(B==null?void 0:B.commandMetadata,_.xy))==null?0:F.url)?(_.Q(B.commandMetadata,_.xy).url=_.F2(_.Q(B.commandMetadata,_.xy).url,"query",this.data.expandedText),_.Q(B,_.x9)&&(_.Q(B,_.x9).query=this.data.expandedText),_.cZ(this.hostElement,"yt-navigate",{endpoint:B,tempData:{disableCache:!0}})):(F=new _.Uf("Error: Trying to navigate to an endpoint without url",
G),_.k2(F))}};
_.w.updateDataExpandedTextFromBinding=function(G){this.set("data.expandedText",G.detail.value)};
_.ZN.Object.defineProperties(lW.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
lW.prototype.onDataChanged=lW.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.c([_.k(D$$),_.I("design:type",Object)],lW.prototype,"ytdExpandableInputBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lW.prototype,"data",void 0);_.c([_.iA("#input"),_.I("design:type",Object)],lW.prototype,"input",void 0);_.c([_.iA("#icon-button"),_.I("design:type",HTMLElement)],lW.prototype,"iconButton",void 0);
_.c([_.v(),_.I("design:type",String),_.I("design:paramtypes",[])],lW.prototype,"searchIcon",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lW.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],lW);
var UVz=_.tS()(lW,"ytd-expandable-tab-renderer",function(){if($dD===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);$dD=G}G=$dD;return G},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var zvD;var Ub=function(){var G=_.p.apply(this,arguments)||this;G.avatarSize=80;G.ariaLabel=_.G7("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return G};
_.r(Ub,_.p);Ub.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ub.prototype.computeHref=function(G){var B;return((B=_.Q(G,_.MI))==null?0:B.url)?this.componentBehavior.computeHref_(G):null};
Ub.prototype.onTap=function(){var G,B;(G=this.data)==null||!G.editAvatarServiceEndpoint||((B=_.Q(this.data.editAvatarServiceEndpoint,_.MI))==null?0:B.url)||_.te().resolve(_.Wr).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.c([_.k(_.N9),_.I("design:type",Object)],Ub.prototype,"ironButtonState",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ub.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ub.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Ub.prototype,"avatarSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Ub.prototype,"ariaLabel",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Ub);
_.d(Ub,"ytd-channel-avatar-editor",function(){if(zvD!==void 0)return zvD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return zvD=G},{mode:1});var bY$=_.Y(function(G){var B=G.data;var F=G.noPadding;var D=G.enableBanner;var u=G.cinematicContainerTopbarOffset;var R=G.allowCinematicContainerOverflow;var N=G.displayAsSidebar;G=G.className;_.bC(function(){B().tagManagerId&&(_.uY(B().tagManagerId,_.v5("GL")),BYH(B().tagManagerId))},"vUc8md");
var y=_.iR(Ez2,function(){return B().pageHeaderEntityKey});
return _.l("yt-page-header-renderer",{class:_.tx("pageHeaderRendererHost",G)},_.l(_.uR,{data:function(){var U;return((U=y())==null?0:U.header)?y().header:(N==null?0:N())&&B().sidebarContent?B().sidebarContent:B().content}},{pageHeaderViewModel:function(U){return _.l(_.dL2,{data:U.data,
noPadding:F,enableBanner:D,cinematicContainerTopbarOffset:u,allowCinematicContainerOverflow:R,displayAsSidebar:function(){return(N==null?void 0:N())&&B().enableSidebarView}})}}))},"uk");
bY$.idomCompat=!0;_.YN(bY$,"yt-page-header-renderer",{props:{data:_.Hd,noPadding:_.Hd,enableBanner:_.Hd,cinematicContainerTopbarOffset:_.Hd,allowCinematicContainerOverflow:_.Hd,displayAsSidebar:_.Hd,className:_.Hd}});_.YN(_.bt,"yt-image-banner-view-model",{props:{data:_.Hd,isPositionRelative:_.Hd}});_.YN(_.RU2,"yt-tab-group-shape",{props:{shape:_.Hd}});var VYG=_.OY.persistentPanelVisibleSelector,q4=function(){var G=_.p.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(B){return q8z(B,function(){return void G.onSearchNavigate()})};
G.isRichGrid=!1;G.isConstrainedList=!1;G.richGridMiniMode=!1;G.richGridStyle="RICH_GRID_STYLE_UNKNOWN";G.isRichGridShorts=!1;G.responsiveSizing="COMPACT";G.disableGridStateAware=!1;G.useRaf=!_.X("web_use_raf_app_header_layout_killswitch");G.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return G};
_.r(q4,_.p);_.w=q4.prototype;_.w.computeHeaderDisabled=function(G,B){return B||!G||this.tabsHidden};
_.w.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.w.computeIsRichGridShorts=function(G){return G==="RICH_GRID_STYLE_SHORTS_GRID"||G==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.w.computeImageBannerViewModel=function(){var G,B;return _.Q((B=_.Q((G=this.data)==null?void 0:G.content,_.fsG))==null?void 0:B.banner,_.Y5s)};
_.w.computeHasCinematicContainer=function(){var G,B;return!((B=_.Q((G=this.data)==null?void 0:G.content,_.fsG))==null||!B.background)};
_.w.handleHeaderResize=function(){var G=_.IF(this.hostElement).querySelector("#header");G&&_.cZ(G,"iron-resize")};
_.w.handleInsertTabCommand=function(G){var B=_.Q(G,hez);B&&(B.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(F){return F.tabRenderer&&F.tabRenderer.tabIdentifier===B.tabIdentifier})||this.splice("tabs",B.tabIndex||-1,0,B.tab))};
_.w.handleRefreshChannelTabAction=function(G){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===G&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.w.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.w.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Ss(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.w.observerRichGridSlimItemsPerRow=function(){_.Ss(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.w.updateCssVars=function(){this.richGridItemsPerRow&&_.Ss(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.sD("rich_grid_max_item_width",500))+16)-16+"px"})};
_.w.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Ss(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.w.onDataChanged=function(){this.handleHeaderResize()};
_.w.onWindowResize=function(){this.handleHeaderResize()};
_.w.onFocusedChanged=function(G){(G=_.oF(G))&&G.is==="tp-yt-paper-tab"&&G.hasRipple()&&(G.getRipple().holdDown=!G.pointerDown&&G.focused)};
_.w.updateSelectedFromBinding=function(G){this.ytdTabbedHeaderBehavior.selected=G.detail.value};
_.w.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.ZN.Object.defineProperties(q4.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:KvG(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.imageBannerViewModel)==null?void 0:G.style)==="IMAGE_BANNER_STYLE_INSET"}}});
q4.prototype.onDataChanged=q4.prototype.onDataChanged;q4.prototype.updateCssVarsForResponsiveGrid=q4.prototype.updateCssVarsForResponsiveGrid;q4.prototype.updateCssVars=q4.prototype.updateCssVars;q4.prototype.observerRichGridSlimItemsPerRow=q4.prototype.observerRichGridSlimItemsPerRow;q4.prototype.observerRichGridItemsPerRow=q4.prototype.observerRichGridItemsPerRow;q4.prototype.persistentPanelVisibleChanged=q4.prototype.persistentPanelVisibleChanged;
_.c([_.k(_.X6),_.I("design:type",Object)],q4.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.k(x4$),_.I("design:type",Object)],q4.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],q4.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],q4.prototype,"ytdReduxBehavior",void 0);_.c([_.iA("#tabs"),_.I("design:type",Object)],q4.prototype,"tabsElement",void 0);_.c([_.v(),_.I("design:type",Array)],q4.prototype,"tabs",void 0);_.c([_.v(),_.I("design:type",Object)],q4.prototype,"expandableCustomTabRenderable",void 0);
_.c([_.O("tabs.*"),_.I("design:type",Object),_.I("design:paramtypes",[])],q4.prototype,"tabGroupShape",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],q4.prototype,"isRichGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],q4.prototype,"isConstrainedList",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Object)],q4.prototype,"richGridMiniMode",void 0);_.c([_.v({selector:function(G){return G.ui.richGridStyle}}),
_.I("design:type",Object)],q4.prototype,"richGridStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.I("design:type",Object)],q4.prototype,"isRichGridShorts",void 0);_.c([_.v({selector:_.EX}),_.I("design:type",Number)],q4.prototype,"richGridItemsPerRow",void 0);_.c([_.v({selector:function(G){return G.ui.richGridContainerWidth}}),
_.I("design:type",Number)],q4.prototype,"richGridContainerWidth",void 0);_.c([_.v({selector:_.rfl}),_.I("design:type",Number)],q4.prototype,"richGridSlimItemsPerRow",void 0);_.c([_.v(),_.I("design:type",Object)],q4.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],q4.prototype,"responsiveSizing",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],q4.prototype,"disableGridStateAware",void 0);
_.c([_.v({computed:"computeImageBannerViewModel(data)"}),_.I("design:type",Object)],q4.prototype,"imageBannerViewModel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.I("design:type",Boolean)],q4.prototype,"hasCinematicContainer",void 0);_.c([_.v({selector:h7D,reflectToAttribute:!0}),_.I("design:type",Boolean)],q4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.v({selector:VYG}),_.I("design:type",Boolean)],q4.prototype,"persistentPanelVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("imageBannerViewModel"),_.I("design:type",Object),_.I("design:paramtypes",[])],q4.prototype,"hasBanner",null);_.c([_.v({reflectToAttribute:!0}),_.O("imageBannerViewModel"),_.I("design:type",Object),_.I("design:paramtypes",[])],q4.prototype,"hasInsetBanner",null);_.c([_.v(),_.I("design:type",Object)],q4.prototype,"useRaf",void 0);
_.c([_.v({computed:"computeTabsHidden(tabs)",value:!0}),_.I("design:type",Boolean)],q4.prototype,"tabsHidden",void 0);_.c([_.Ga("persistentPanelVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],q4.prototype,"persistentPanelVisibleChanged",null);_.c([_.Ga("richGridItemsPerRow","isRichGrid"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],q4.prototype,"observerRichGridItemsPerRow",null);
_.c([_.Ga("richGridSlimItemsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],q4.prototype,"observerRichGridSlimItemsPerRow",null);_.c([_.Ga("richGridItemsPerRow","richGridMiniMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],q4.prototype,"updateCssVars",null);
_.c([_.Ga("richGridContainerWidth"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],q4.prototype,"updateCssVarsForResponsiveGrid",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],q4.prototype,"onDataChanged",null);_.c([_.mC({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],q4);
_.d(q4,"ytd-tabbed-page-header",function(){if(ruH!==void 0)return ruH;var G=document.createElement("template");_.H(G,'\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 use-raf="[[useRaf]]" 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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ruH=G},{mode:1});var vs$;var Eb=function(){return _.p.apply(this,arguments)||this};
_.r(Eb,_.p);Eb.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Eb.prototype,"data",void 0);_.c([_.mC({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Eb);
_.d(Eb,"ytd-labs-edit-renderer",function(){if(vs$!==void 0)return vs$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return vs$=G},{mode:1});var os2;var hG=function(){var G=_.p.apply(this,arguments)||this;G.dark=!1;G.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(hG,_.p);hG.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hG.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.setBackgroundImage(G);this.dark=G};
hG.prototype.onDarkModeToggledAction=function(G){this.setBackgroundImage(G);this.dark=G};
hG.prototype.setBackgroundImage=function(G){_.Ss(this.hostElement,{"--yt-labs-header-background":"url("+(G?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],hG.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hG.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hG.prototype,"dark",void 0);
_.c([_.mC({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],hG);
_.d(hG,"ytd-labs-header-renderer",function(){if(os2!==void 0)return os2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return os2=G},{mode:1});var MYB;var Kb=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return G};
_.r(Kb,_.p);Kb.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"}}}}}};
Kb.prototype.onYtToggleButton=function(G){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",G.detail.toggled)};
Kb.prototype.onManageLabsState=function(G){if(G=_.Q(G,hkD))G.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?G.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&G.labsItemId===this.data.labsItemId&&(G.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.T1(this.hostElement,"yt-check-labs-opted-in-state").some(function(B){return B})&&this.data.confirmationDialogCommand?_.tL(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.te().resolve(_.Wr).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&G.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.te().resolve(_.Wr).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Kb.prototype.onCheckLabsOptedInState=function(){var G=this.get("data.primaryButton.toggleButtonRenderer");return G?G.isToggled:!1};
_.ZN.Object.defineProperties(Kb.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Kb.prototype.onYtToggleButton=Kb.prototype.onYtToggleButton;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Kb.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Kb.prototype,"itemStyle",null);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Kb.prototype,"onYtToggleButton",null);_.c([_.mC({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Kb);
_.d(Kb,"ytd-labs-item-renderer",function(){if(MYB!==void 0)return MYB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MYB=G},{mode:1});var pJ$;var Yoz;var AuU=function(){return _.p.apply(this,arguments)||this};
_.r(AuU,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],AuU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AuU.prototype,"data",void 0);_.c([_.mC({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],AuU);
_.d(AuU,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Yoz!==void 0)return Yoz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Yoz=G},{mode:1});var ddU;var aX=function(){return _.p.apply(this,arguments)||this};
_.r(aX,_.p);aX.prototype.observeSuperchatChip=function(){if(this.data){var G={"--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)};_.Ss(this.hostElement,G)}};
aX.prototype.colorFromDecimal=function(G){return _.Kp(Number(G||0))};
aX.prototype.observeSuperchatChip=aX.prototype.observeSuperchatChip;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aX.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aX.prototype,"observeSuperchatChip",null);_.c([_.mC({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],aX);
_.d(aX,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ddU!==void 0)return ddU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ddU=G},{mode:1});var mB=function(){return _.p.apply(this,arguments)||this};
_.r(mB,_.p);mB.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"}}}};
_.ZN.Object.defineProperties(mB.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],mB.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],mB.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],mB.prototype,"hideMessageBlock",null);
_.c([_.mC({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],mB);
_.d(mB,"ytd-live-chat-history-entry-renderer",function(){if(pJ$!==void 0)return pJ$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return pJ$=G},{mode:1});var JuG;var Xt=function(){return _.p.apply(this,arguments)||this};
_.r(Xt,_.p);Xt.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Ss(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.ZN.Object.defineProperties(Xt.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var G,B;return this.componentBehavior.computeIcon_(((B=_.Q((G=this.data)==null?void 0:G.badge,_.gCT))==null?void 0:B.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.badge,_.gCT))==null?void 0:B.label}}});
Xt.prototype.observerRichGridItemsPerRow=Xt.prototype.observerRichGridItemsPerRow;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Xt.prototype,"componentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Xt.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.qD}),_.I("design:type",Boolean)],Xt.prototype,"richGridMiniMode",void 0);
_.c([_.v({selector:_.EX}),_.I("design:type",Number)],Xt.prototype,"richGridItemsPerRow",void 0);_.c([_.v(),_.I("design:type",Object)],Xt.prototype,"data",void 0);_.c([_.Ga("richGridItemsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Xt.prototype,"observerRichGridItemsPerRow",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xt.prototype,"badgeIconName",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Xt.prototype,"badgeLabel",null);_.c([_.mC({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Xt);
_.d(Xt,"ytd-member-hub-profile-renderer",function(){if(JuG!==void 0)return JuG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JuG=G},{mode:1});var cuG;var Qp=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return G};
_.r(Qp,_.p);
Qp.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"}}}};
Qp.prototype.handleUpdateTextCommand=function(G){(G=_.Q(G,_.oCv))&&this.data&&this.data.id===G.id&&this.set("data",G)};
Qp.prototype.handleUpdateConnectedAppRendererCommand=function(G){if(_.Q(G,_.YVt)&&this.data){var B,F;if(G=(B=_.Q(G,_.YVt))==null?void 0:(F=B.newConnectedAppRenderer)==null?void 0:F.connectedAppRenderer)this.data=G}};
Qp.prototype.computeConnectedAppStyle=function(G){return G.style?G.style.toLowerCase().replace(/_/g,"-"):""};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Qp.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.I("design:type",String)],Qp.prototype,"connectedAppStyle",void 0);_.c([_.mC({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],Qp);
_.d(Qp,"ytd-connected-app-renderer",function(){if(cuG!==void 0)return cuG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cuG=G},{mode:1});var Tz$;var ICD=function(){return _.p.apply(this,arguments)||this};
_.r(ICD,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ICD.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ICD.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],ICD);
_.d(ICD,"ytd-channel-options-renderer",function(){if(Tz$!==void 0)return Tz$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tz$=G},{mode:1});var fCA;var jB=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return G};
_.r(jB,_.p);jB.prototype.onCheckboxChange=function(G){this.data&&(G=(this.checked=_.oF(G).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})};
jB.prototype.handleUpdateCheckboxCommand=function(G){(G=_.Q(G,_.vCt))&&this.data&&this.data.id===G.id&&(this.set("data.disabled",G.disabled),this.set("data.title",G.title))};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],jB.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],jB.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],jB.prototype,"checked",void 0);_.c([_.mC({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],jB);
_.d(jB,"ytd-settings-checkbox-renderer",function(){if(fCA!==void 0)return fCA;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return fCA=G},{mode:1});var tY2;var Lb=function(){return _.p.apply(this,arguments)||this};
_.r(Lb,_.p);Lb.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Lb.prototype,"data",void 0);_.c([_.mC({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Lb);
_.d(Lb,"ytd-settings-email-item-renderer",function(){if(tY2!==void 0)return tY2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return tY2=G},{mode:1});var ZYz;var rV=function(){return _.p.apply(this,arguments)||this};
_.r(rV,_.p);rV.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"}}}};
rV.prototype.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
rV.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.ZN.Object.defineProperties(rV.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rV.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],rV.prototype,"expanded",void 0);_.c([_.O("expanded"),_.I("design:type",String),_.I("design:paramtypes",[])],rV.prototype,"emailListExpanded",null);
_.c([_.iA("#options"),_.I("design:type",Object)],rV.prototype,"options",void 0);_.c([_.mC({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],rV);
_.d(rV,"ytd-settings-email-list-renderer",function(){if(ZYz!==void 0)return ZYz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ZYz=G},{mode:1});var gsU;var SoU;var sES;var xdD;var PU2;var WF=function(){return _.p.apply(this,arguments)||this};
_.r(WF,_.p);_.w=WF.prototype;_.w.computePreselectedOption=function(G,B){return B===this.itemSelected_?G:void 0};
_.w.dataChanged_=function(){var G=this;this.preselectedSubreason=this.itemSelected_=-1;var B;(B=this.data)!=null&&B.key&&_.ft(this,function(){var F,D=Number((F=G.data)==null?void 0:F.key);!Number.isNaN(D)&&(G.itemSelected_=D,F=(F=(G.data.items||[])[D])&&F.optionSelectableItemRenderer&&F.optionSelectableItemRenderer.preselectedIndex)&&(G.preselectedSubreason=F)})};
_.w.isSubReasonHidden_=function(G,B){return G!=B};
_.w.onTopItemSelected_=function(G,B){for(var F=_.IF(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),D=0,u=F.length;D<u;D++)F[D].select(0);_.T1(this.hostElement,"yt-report-form-update",[B.item.value]);G.stopPropagation()};
_.w.onItemSelected_=function(G,B){_.T1(this.hostElement,"yt-report-form-update",[B.item.value]);G.stopPropagation()};
_.w.getItem_=function(G){return G.serviceItem?G.serviceItem:G.navigationItem?G.navigationItem:G.optionSelectableItemRenderer?G.optionSelectableItemRenderer:null};
_.w.computeText_=function(G){return(G=this.getItem_(G))?this.ytRendererBehavior.getSimpleString(G.text):null};
_.w.validate=function(){return this.itemSelected_!==-1};
_.w.computeAriaLabel_=function(G){var B=_.zx(G.text);(G=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label)&&(B+=". "+G);return B};
_.w.computeItemSelected_=function(G){return G};
_.w.preventSelection_=function(G){G.stopPropagation();this.tooltipTapped=!0};
_.w.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.w.updateItemSelectedFromBinding=function(G){this.itemSelected_=G.detail.value};
_.w.save=function(){var G;this.validate()&&(G=this.data)!=null&&G.items&&(G=this.data.items[this.itemSelected_],G!=null&&G.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(G.optionSelectableItemRenderer.submitEndpoint)||_.fi(this.hostElement,[G.optionSelectableItemRenderer.submitEndpoint])))};
WF.prototype.onPaperRippleTransitionEnd_=WF.prototype.onPaperRippleTransitionEnd_;WF.prototype.dataChanged_=WF.prototype.dataChanged_;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],WF.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WF.prototype,"data",void 0);_.c([_.v({value:-1}),_.I("design:type",Number)],WF.prototype,"itemSelected_",void 0);
_.c([_.v({computed:"computeItemSelected_(itemSelected_)"}),_.I("design:type",Number)],WF.prototype,"value",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],WF.prototype,"restoreFocusOnClose",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],WF.prototype,"tooltipTapped",void 0);_.c([_.v({value:-1}),_.I("design:type",Number)],WF.prototype,"preselectedSubreason",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WF.prototype,"dataChanged_",null);_.c([_.Pm("transitionend"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WF.prototype,"onPaperRippleTransitionEnd_",null);_.c([_.ay({is:"yt-options-renderer",disableElementRegistration:!0})],WF);
_.d(WF,"yt-options-renderer",function(){if(PU2===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;xdD===void 0&&(xdD=document.createElement("template"));var D=xdD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);PU2=G}G=PU2;return G},{mode:2});var GIz;var BjQ;var iyH;var FIZ;var HF=function(){return _.p.apply(this,arguments)||this};
_.r(HF,_.p);HF.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
HF.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
HF.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.T1(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.IF(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:G?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.T1(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.c([_.v({observer:"onDataChanged"}),_.I("design:type",Object)],HF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.I("design:type",String)],HF.prototype,"componentTitle",void 0);_.c([_.iA("#thumbnail"),_.I("design:type",Object)],HF.prototype,"thumbnail",void 0);_.c([_.ay({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],HF);
_.d(HF,"yt-enrolled-contact-renderer",function(){if(FIZ===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;iyH===void 0&&(iyH=document.createElement("template"));var D=iyH;F.call(B,D.content.cloneNode(!0),G.content.firstChild);FIZ=G}G=FIZ;return G},{mode:2});var DCD;var u$$;var kc=function(){return _.p.apply(this,arguments)||this};
_.r(kc,_.p);kc.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
kc.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
kc.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.T1(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.IF(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:G?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.T1(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.c([_.v({observer:"onDataChanged"}),_.I("design:type",Object)],kc.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.I("design:type",String)],kc.prototype,"componentTitle",void 0);_.c([_.iA("#thumbnail"),_.I("design:type",Object)],kc.prototype,"thumbnail",void 0);_.c([_.ay({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],kc);
_.d(kc,"yt-suggested-contact-renderer",function(){if(u$$===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;DCD===void 0&&(DCD=document.createElement("template"));var D=DCD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);u$$=G}G=u$$;return G},{mode:2});var Ob=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-share-panel-reset-action":"onReset"};return G};
_.r(Ob,_.p);Ob.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"}}}}}};
Ob.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.T1(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Ob.prototype.onReset=function(){for(var G=_.IF(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),B=G.length-1;B>=0;B--)G[B].classList.toggle("selected")};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ob.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({observer:"onDataChanged"}),_.I("design:type",Object)],Ob.prototype,"data",void 0);
_.c([_.ay({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Ob);
_.d(Ob,"yt-contact-section-renderer",function(){if(BjQ===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;GIz===void 0&&(GIz=document.createElement("template"));var D=GIz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);BjQ=G}G=BjQ;return G},{mode:2});var eB=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return G};
_.r(eB,_.p);_.w=eB.prototype;_.w.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"}}}};
_.w.onYtRefreshFormCommand=function(G){var B;(G=_.Q((B=_.Q(G,_.hdq))==null?void 0:B.formRenderer,jAU))&&this.set("data",G)};
_.w.reset=function(){var G=_.IF(this.hostElement).querySelector("#fields").children;G=_.C(G);for(var B=G.next();!B.done;B=G.next())B=B.value,B.reset&&B.reset()};
_.w.getForm=function(){var G={},B=_.IF(this.hostElement).querySelector("#fields").children;B=_.C(B);for(var F=B.next();!F.done;F=B.next()){F=F.value;if(!F.validate())return null;G[F.data.key]=F.value}return G};
_.w.submitFormFields=function(){if(this.fields)for(var G=_.C(this.fields),B=G.next();!B.done;B=G.next())B=B.value,B.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?B.save():B.nodeName==="YT-OPTIONS-RENDERER"&&B.save()};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],eB.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],eB.prototype,"data",void 0);_.c([_.FQ("#fields > *"),_.I("design:type",Array)],eB.prototype,"fields",void 0);
_.c([_.ay({is:"yt-form-renderer",disableElementRegistration:!0})],eB);
_.d(eB,"yt-form-renderer",function(){if(sES===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;SoU===void 0&&(SoU=document.createElement("template"));var D=SoU;F.call(B,D.content.cloneNode(!0),G.content.firstChild);sES=G}G=sES;return G},{mode:2});var $c=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.r($c,_.p);$c.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"}}}};
$c.prototype.handleSignalActionSubmitForm=function(){var G,B=(G=this.formRenderer)==null?void 0:G.getForm();B&&this.data.serviceEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},B,{element:this.hostElement})})};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],$c.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$c.prototype,"data",void 0);_.c([_.iA("yt-form-renderer"),_.I("design:type",Object)],$c.prototype,"formRenderer",void 0);
_.c([_.mC({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],$c);
_.d($c,"ytd-settings-gaia-link-renderer",function(){if(gsU!==void 0)return gsU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return gsU=G},{mode:1});var RKA;var wqG;var ze=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return G};
_.r(ze,_.p);ze.prototype.dataChanged=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return G.radio.removeAttribute("checked"),!G.data||!G.data.id||G.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||pID()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(B=G.data&&G.data.id)?F.yield(AZS(G.data.id),4):F.jumpTo(3):(G.set("data.hidden",!0),F.jumpTo(0));F.nextAddress!=3&&(B=F.yieldResult);B&&_.T1(G.hostElement,"yt-select-settings-radio-option",[G.data.id]);_.di(F)})};
ze.prototype.onButtonChanged=function(G){_.oF(G).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.T1(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ze.prototype.onSelectOption=function(G){this.data&&this.data.id&&(this.data.id===G?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ze.prototype.dataChanged=ze.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ze.prototype,"ytActionHandlerBehavior",void 0);_.c([_.iA("#radio"),_.I("design:type",Object)],ze.prototype,"radio",void 0);_.c([_.v(),_.I("design:type",Object)],ze.prototype,"data",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],ze.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ze);
_.d(ze,"ytd-settings-radio-option-renderer",function(){if(wqG!==void 0)return wqG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return wqG=G},{mode:1});_.YN(_.HC,"basic-content-view-model",{props:{data:_.oh,className:_.oh}});var bW=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return G};
_.r(bW,_.p);bW.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&pID()&&this.set("data.hidden",!1)};
bW.prototype.onSwitchReady=function(){var G=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.X("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){KbA().then(function(B){B&&(Notification.permission==="default"?G.set("data.hidden",!1):Notification.permission==="granted"&&t_("NotificationsDisabled").then(function(F){F||_.T1(G.hostElement,"yt-toggle-settings-switch",[G.data.id,!F]);G.set("data.hidden",!1)}).catch(function(){}))})})};
bW.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
bW.prototype.handleUpdateOptionsCommand=function(G){(G=_.Q(G,_.M77))&&this.data&&this.data.id===G.id&&(this.set("data.hidden",G.hidden),G.text!==void 0&&this.set("data.text",G.text),G.clearOptions&&this.set("data.options",[]))};
bW.prototype.onSwitchReady=bW.prototype.onSwitchReady;bW.prototype.dataChanged=bW.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],bW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bW.prototype,"data",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bW.prototype,"dataChanged",null);_.c([_.Pm("yt-settings-switch-ready"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bW.prototype,"onSwitchReady",null);_.c([_.mC({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],bW);
_.d(bW,"ytd-settings-options-renderer",function(){if(RKA!==void 0)return RKA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return RKA=G},{mode:1});var CFS;var Vp=function(){return _.p.apply(this,arguments)||this};
_.r(Vp,_.p);Vp.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Vp.prototype,"data",void 0);_.c([_.mC({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Vp);
_.d(Vp,"ytd-settings-sidebar-renderer",function(){if(CFS!==void 0)return CFS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return CFS=G},{mode:1});var NjN;var vF=function(){return _.p.apply(this,arguments)||this};
_.r(vF,_.p);vF.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
vF.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
vF.prototype.onYtExpanderMoreTapped=vF.prototype.onYtExpanderMoreTapped;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],vF.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vF.prototype,"data",void 0);
_.c([_.Pm("yt-expander-more-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vF.prototype,"onYtExpanderMoreTapped",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],vF);
_.d(vF,"ytd-product-details-description-renderer",function(){if(NjN!==void 0)return NjN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return NjN=G},{mode:1});var yH$;var oX=function(){var G=_.p.apply(this,arguments)||this;G.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";G.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";G.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";G.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return G};
_.r(oX,_.p);oX.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ZN.Object.defineProperties(oX.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:(B=G.offerData)==null?void 0:B.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?void 0:G.purchaseButtonRenderers)!==void 0&&((B=this.data)==null?void 0:B.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.formattedFromMerchantText)&&(!((B=this.data)==null||!B.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],oX.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],oX.prototype,"data",void 0);
_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0}),_.I("design:type",Object)],oX.prototype,"shippingIcon",void 0);_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0}),_.I("design:type",Object)],oX.prototype,"shippingAddressIcon",void 0);_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0}),_.I("design:type",Object)],oX.prototype,"googleGuaranteeIcon",void 0);
_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0}),_.I("design:type",Object)],oX.prototype,"returnPolicyIcon",void 0);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oX.prototype,"showAdditionalFees",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oX.prototype,"showMultiPurchaseButtons",null);
_.c([_.O("data","showMultiPurchaseButtons"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oX.prototype,"showPurchaseData",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],oX);
_.d(oX,"ytd-product-details-hero-offer-renderer",function(){if(yH$!==void 0)return yH$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return yH$=G},{mode:1});var nOB;var lQD;var M4=function(){return _.p.apply(this,arguments)||this};
_.r(M4,_.p);_.w=M4.prototype;_.w.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.w.onKeyDown=function(G){G=G.keyCode;G!==13&&G!==32||this.handleSelection()};
_.w.onMouseEnterImage=function(){var G;((G=this.data)==null?void 0:G.thumbnailDetails)!==void 0&&_.Ia(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.w.onMouseLeaveImage=function(){_.Ia(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.w.handleSelection=function(){this.data&&_.cZ(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.ZN.Object.defineProperties(M4.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],M4.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],M4.prototype,"isSelected",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],M4);
_.d(M4,"ytd-product-details-thumbnail-renderer",function(){if(lQD!==void 0)return lQD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return lQD=G},{mode:1});var pb=function(){var G=_.p.apply(this,arguments)||this;var B={};G.actionMap=(B["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",B["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",B);G.selectedThumbnailIndex=0;G.selectItem=function(F){F.target.onKeyDown(F)};
return G};
_.r(pb,_.p);_.w=pb.prototype;_.w.handlePreviewImageSelect=function(G){this.hoverThumbnail=G};
_.w.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.w.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.w.onThumbnailSelected=function(G,B){this.selectedThumbnailIndex=B};
_.w.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.w.updateOffset=function(){var G=_.IF(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_()};
_.ZN.Object.defineProperties(pb.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.imageRenderer){var B,F;return((B=this.data)==null?void 0:(F=B.imageRenderer)==null?void 0:F.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var G;if((G=this.data)==null?0:G.imageRenderer){var B;return(B=_.Q(this.data.imageRenderer[this.selectedThumbnailIndex],T1S))==null?void 0:B.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var G=this,B,F,D,u=(D=(B=this.data)==null?void 0:(F=B.imageRenderer)==null?void 0:F.map(function(R,N){return{productDetailsThumbnailRenderer:Object.assign({},_.Q(R,T1S),{index:N,isSelected:N===G.selectedThumbnailIndex})}}))!=null?D:[];
return Object.assign({},this.data,{imageRenderer:u})}}});
pb.prototype.updateOffset=pb.prototype.updateOffset;pb.prototype.dataChanged=pb.prototype.dataChanged;pb.prototype.onThumbnailSelected=pb.prototype.onThumbnailSelected;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.p3.YtdHorizontalListBehavior),_.I("design:type",Object)],pb.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],pb.prototype,"componentBehavior",void 0);_.c([_.k([_.Za.YtActionHandlerBehavior]),_.I("design:type",Object)],pb.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],pb.prototype,"data",void 0);_.c([_.v({value:"$.items.children"}),_.I("design:type",String)],pb.prototype,"itemsPath",void 0);_.c([_.v({value:3}),_.I("design:type",Number)],pb.prototype,"initialCount",void 0);
_.c([_.iA("#items"),_.I("design:type",Object)],pb.prototype,"items",void 0);_.c([_.v(),_.I("design:type",Object)],pb.prototype,"selectedThumbnailIndex",void 0);_.c([_.v(),_.I("design:type",Object)],pb.prototype,"hoverThumbnail",void 0);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],pb.prototype,"showThumbnails",null);
_.c([_.Pm("ytd-product-details-thumbnail-renderer-selected"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Number]),_.I("design:returntype")],pb.prototype,"onThumbnailSelected",null);_.c([_.O("data","selectedThumbnailIndex","hoverThumbnail"),_.I("design:type",Object),_.I("design:paramtypes",[])],pb.prototype,"thumbnailDetails",null);_.c([_.O("data","selectedThumbnailIndex"),_.I("design:type",Object),_.I("design:paramtypes",[])],pb.prototype,"populatedData",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],pb.prototype,"dataChanged",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],pb.prototype,"updateOffset",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],pb);
_.d(pb,"ytd-product-details-image-carousel-renderer",function(){if(nOB!==void 0)return nOB;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return nOB=G},{mode:2});var UCN;var Yc=function(){return _.p.apply(this,arguments)||this};
_.r(Yc,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Yc.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Yc.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Yc);
_.d(Yc,"ytd-product-details-offer-renderer",function(){if(UCN!==void 0)return UCN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return UCN=G},{mode:1});var qiG;var AG=function(){var G=_.p.apply(this,arguments)||this;G.isOffersHidden=!0;return G};
_.r(AG,_.p);AG.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var G,B=_.Q((G=this.data)==null?void 0:G.viewOffersButton,_.Xq);B&&this.ytRendererBehavior.logExplicitClick(B)};
AG.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.ZN.Object.defineProperties(AG.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;return(F=_.Q((G=this.data)==null?void 0:(B=G.offers)==null?void 0:B[0],Zl2))==null?void 0:(D=F.offerData)==null?void 0:D.vendorLogoUrl}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],AG.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AG.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],AG.prototype,"isOffersHidden",void 0);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],AG.prototype,"firstOfferVendorLogoUrl",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],AG);
_.d(AG,"ytd-product-details-offers-container-renderer",function(){if(qiG!==void 0)return qiG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qiG=G},{mode:1});var EOD;var hK$;var dV=function(){return _.p.apply(this,arguments)||this};
_.r(dV,_.p);dV.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
dV.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Ia(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
dV.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Ia(this,"ytd-product-details-variant-image-unselect")};
_.ZN.Object.defineProperties(dV.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 G;return((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?void 0:G.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((B=this.data)==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((F=this.data)==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var G;if(((G=this.data)==null?void 0:G.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,B;return this.isUnavailable?(G=this.data)==null?void 0:G.variantOptionUnavailableAccessibilityLabel:(B=this.data)==null?void 0:B.variantOptionAccessibilityLabel}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],dV.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dV.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],dV.prototype,"displayType",void 0);
_.c([_.O("displayType","data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dV.prototype,"isImageButton",null);_.c([_.O("displayType","data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dV.prototype,"isPillButton",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dV.prototype,"isActive",null);
_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dV.prototype,"isUnavailable",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],dV.prototype,"thumbnailDetails",null);_.c([_.O("isUnavailable","data"),_.I("design:type",Object),_.I("design:paramtypes",[])],dV.prototype,"accessibilityLabel",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],dV);
_.d(dV,"ytd-product-details-variant-option-renderer",function(){if(hK$!==void 0)return hK$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return hK$=G},{mode:1});var KIZ;var JG=function(){var G=_.p.apply(this,arguments)||this;G.variantsExpanded=!1;G.hideShowMoreLessVariantButton=!0;G.initialized=!1;G.computeVariantsDebouncer=null;G.computeVariants=function(B){B=B===void 0?!1:B;G.variantsExpanded||G.showOptions()||!B||(G.variantsExpanded=!0);if(G.variantsExpanded){B=_.C(G.items.children);for(var F=B.next();!F.done;F=B.next())F.value.hidden=!1}G.initialized=!0};
return G};
_.r(JG,_.p);_.w=JG.prototype;_.w.ready=function(){var G=this;setTimeout(function(){G.computeVariants(!0)})};
_.w.showOptions=function(){for(var G=_.C(this.items.children),B=G.next();!B.done;B=G.next())B.value.hidden=!0;var F=this.container.getBoundingClientRect().width,D=0,u=G=0;B=!1;for(var R=_.C(this.items.children),N=R.next();!N.done;N=R.next()){N=N.value;N.hidden=!1;var y=N.getBoundingClientRect().width;if(D+y<F)D+=y;else if(++u<2)D=y;else break;G+=1;N.hasAttribute("is-active")&&(B=!0)}for(F=G;F<this.items.children.length;F++)this.items.children[F].hidden=!0;this.hideShowMoreLessVariantButton=G===this.items.children.length;
return B};
_.w.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.cL(this.computeVariantsDebouncer,_.$e.after(100),this.computeVariants)};
_.w.onShowMoreLessVariantsButtonClick=function(){var G;(G=this.data)!=null&&G.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.w.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.ZN.Object.defineProperties(JG.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.variantOptionRenderers)==null?void 0:B.find(function(R){return _.Q(R,fFH).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),D,u;
return(u=(D=_.Q(F,fFH))==null?void 0:D.name)!=null?u:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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"}}}});
JG.prototype.debouncedComputeVariants=JG.prototype.debouncedComputeVariants;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],JG.prototype,"componentBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],JG.prototype,"ironResizableBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],JG.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],JG.prototype,"variantsExpanded",void 0);_.c([_.v(),_.I("design:type",Object)],JG.prototype,"hideShowMoreLessVariantButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],JG.prototype,"initialized",void 0);_.c([_.iA("#items"),_.I("design:type",HTMLDivElement)],JG.prototype,"items",void 0);_.c([_.iA("#container"),_.I("design:type",HTMLDivElement)],JG.prototype,"container",void 0);
_.c([_.iA("#more-variants-button"),_.I("design:type",HTMLElement)],JG.prototype,"moreVariantsButton",void 0);_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],JG.prototype,"selectedOptionName",null);_.c([_.Ga("data","variantsExpanded"),_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JG.prototype,"debouncedComputeVariants",null);
_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],JG.prototype,"displayType",null);_.c([_.O("displayType"),_.I("design:type",Object),_.I("design:paramtypes",[])],JG.prototype,"variantItemsClassname",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],JG);
_.d(JG,"ytd-product-details-variant-renderer",function(){if(KIZ!==void 0)return KIZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return KIZ=G},{mode:1});var cF=function(){return _.p.apply(this,arguments)||this};
_.r(cF,_.p);
cF.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"}}}};
_.ZN.Object.defineProperties(cF.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(B=_.Q((G=this.data)==null?void 0:G.offersContainerRenderer,tKB))==null?void 0:B.offers;return F!==void 0&&(F==null?void 0:F.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 G,B,F;return((F=(G=this.data)==null?void 0:(B=G.variants)==null?void 0:B.map(function(D){var u,R;D=(R=(u=_.Q(D,IFA))==null?void 0:u.variantOptionRenderers)==null?void 0:R.find(function(y){var U;return((U=_.Q(y,fFH))==null?void 0:U.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var N;return(N=_.Q(D,fFH))==null?void 0:N.name}).filter(function(D){return typeof D==="string"}))!=null?F:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D=(B=_.Q((G=this.data)==null?void 0:G.shoppingFlaggingRenderer,gG$))==null?void 0:(F=B.reportButton)==null?void 0:F.buttonRenderer;if(D)return{text:D.text,command:D.command,icon:{iconType:"FLAG"},accessibilityData:D.accessibilityData,trackingParams:D.trackingParams,loggingDirectives:D.loggingDirectives}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],cF.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cF.prototype,"data",void 0);_.c([_.iA("#image-carousel-renderer"),_.I("design:type",Object)],cF.prototype,"imageCarouselRenderer",void 0);
_.c([_.iA("#hero-offer-renderer"),_.I("design:type",Object)],cF.prototype,"productDetailsHeroOfferRenderer",void 0);_.c([_.iA("#variants"),_.I("design:type",Object)],cF.prototype,"productDetailsVariantRenderer",void 0);_.c([_.iA("#offers"),_.I("design:type",Object)],cF.prototype,"productDetailsOffersContainerRenderer",void 0);_.c([_.iA("#description-renderer"),_.I("design:type",Object)],cF.prototype,"productDetailsDescriptionRenderer",void 0);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cF.prototype,"showPurchaseData",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cF.prototype,"showHeroOfferRenderer",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cF.prototype,"showBrandText",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cF.prototype,"showOffers",null);
_.c([_.O("showOffers","showPurchaseData"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cF.prototype,"showBuySeparator",null);_.c([_.O("showOffers","showPurchaseData"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cF.prototype,"showBuyCard",null);_.c([_.O("data"),_.I("design:type",String),_.I("design:paramtypes",[])],cF.prototype,"selectedVariantsText",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],cF.prototype,"shoppingReportingButtonData",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],cF);
_.d(cF,"ytd-product-details-renderer",function(){if(EOD!==void 0)return EOD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return EOD=G},{mode:1});var aQU;var mCH;var XqD;var Te=function(){return _.p.apply(this,arguments)||this};
_.r(Te,_.p);Te.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ZN.Object.defineProperties(Te.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Te.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Te.prototype,"formattedAmount",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Te.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data.style"),_.I("design:type",String),_.I("design:paramtypes",[])],Te.prototype,"vcBalanceWidgetStyle",null);_.c([_.ay({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Te);
_.d(Te,"yt-vc-balance-renderer",function(){if(XqD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;mCH===void 0&&(mCH=document.createElement("template"));var D=mCH;F.call(B,D.content.cloneNode(!0),G.content.firstChild);XqD=G}G=XqD;return G},{mode:2});_.UR("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var IX=function(){return _.p.apply(this,arguments)||this};
_.r(IX,_.p);_.ZN.Object.defineProperties(IX.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:""}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],IX.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IX.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.vcBalanceEntityKey"],selector:function(G,B){return _.g5(G.entities,"vcBalanceEntity",B)}}),
_.I("design:type",Object)],IX.prototype,"vcBalanceEntity",void 0);_.c([_.O("vcBalanceEntity"),_.I("design:type",String),_.I("design:paramtypes",[])],IX.prototype,"formattedAmount",null);_.c([_.O("vcBalanceEntity"),_.I("design:type",String),_.I("design:paramtypes",[])],IX.prototype,"vcBalanceAriaLabel",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],IX);
_.d(IX,"ytd-vc-balance-renderer",function(){if(aQU!==void 0)return aQU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return aQU=G},{mode:1});var QWB;var fb=function(){var G=_.p.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(B){return q8z(B,function(){return void G.onSearchNavigate()})};
return G};
_.r(fb,_.p);fb.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
fb.prototype.onSearchNavigate=function(){this.selected=void 0};
fb.prototype.onTabsChange=function(){var G,B=(G=this.tabs)==null?void 0:G.findIndex(function(F){var D;return F==null?void 0:(D=F.tabRenderer)==null?void 0:D.selected});
B!==void 0&&(this.selected=B)};
fb.prototype.onTabsActive=function(G){if(this.tabs!==void 0){var B,F;(G=(B=this.tabs[G.detail.selected])==null?void 0:(F=B.tabRenderer)==null?void 0:F.endpoint)&&_.cZ(this.hostElement,"yt-navigate",{endpoint:G})}};
_.ZN.Object.defineProperties(fb.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:KvG(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
fb.prototype.onTabsChange=fb.prototype.onTabsChange;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.X6),_.I("design:type",Object)],fb.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],fb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],fb.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Array)],fb.prototype,"tabs",void 0);_.c([_.v(),_.I("design:type",Number)],fb.prototype,"selected",void 0);_.c([_.O("tabs.*"),_.I("design:type",Object),_.I("design:paramtypes",[])],fb.prototype,"tabGroupShape",null);_.c([_.v(),_.I("design:type",Object)],fb.prototype,"expandableCustomTabRenderable",void 0);
_.c([_.O("tabs"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],fb.prototype,"tabsEnabled",null);_.c([_.Ry("tabs"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fb.prototype,"onTabsChange",null);_.c([_.mC({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],fb);
_.d(fb,"ytd-topic-channel-details-renderer",function(){if(QWB!==void 0)return QWB;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QWB=G},{mode:1});var jWU;var tG=function(){var G=_.p.apply(this,arguments)||this;G.disableGridStateAware=!1;return G};
_.r(tG,_.p);tG.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]]"}}}}}};
tG.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
tG.prototype.updateCssVars=function(){_.Ss(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.sD("rich_grid_max_item_width",500))+16)-16+"px"})};
tG.prototype.updateCssVars=tG.prototype.updateCssVars;tG.prototype.activeChanged=tG.prototype.activeChanged;_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],tG.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],tG.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tG.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Array)],tG.prototype,"tabs",void 0);_.c([_.v(),_.I("design:type",Boolean)],tG.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],tG.prototype,"disableGridStateAware",void 0);
_.c([_.v({selector:_.EX}),_.I("design:type",Number)],tG.prototype,"richGridItemsPerRow",void 0);_.c([_.v({selector:_.qD}),_.I("design:type",Boolean)],tG.prototype,"richGridMiniMode",void 0);_.c([_.iA("ytd-carousel-item-renderer"),_.I("design:type",Object)],tG.prototype,"carousel",void 0);_.c([_.Ga("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tG.prototype,"activeChanged",null);
_.c([_.Ga("richGridItemsPerRow","richGridMiniMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tG.prototype,"updateCssVars",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],tG);
_.d(tG,"ytd-carousel-header-renderer",function(){if(jWU!==void 0)return jWU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return jWU=G},{mode:1});var LIz;var rH2=_.vP(["https://www.google-analytics.com/analytics.js"]),ZU=function(){var G=_.p.apply(this,arguments)||this;G.scriptAnalyticsAdded=!1;return G};
_.r(ZU,_.p);ZU.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var G,B=(G=this.data)==null?void 0:G.tagManagerId;B&&(_.uY(B,_.v5("GL")),BYH(B))};
ZU.prototype.sendGoogleAnalyticsPageview=function(G){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var F=_.xS.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(F)};
var B=window.ga;B("set","page",window.location.pathname);B.l=+new Date;B("set","forceSSL",!0);B("create",G,"'auto'");B("send","pageview")};
ZU.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var G=_.G_("SCRIPT");G.name="ga-analytics";var B=_.W7(rH2);_.Ux(G,B);G.async=!0;_.IF(this.hostElement).appendChild(G)};
ZU.prototype.dataChanged=ZU.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],ZU.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZU.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],ZU);
_.d(ZU,"ytd-channel-metadata-renderer",function(){if(LIz!==void 0)return LIz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return LIz=G},{mode:1});var WIB;var HyQ;var kIN=function(){return _.p.apply(this,arguments)||this};
_.r(kIN,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],kIN.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kIN.prototype,"data",void 0);_.c([_.mC({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],kIN);
_.d(kIN,"ytd-sub-feed-option-renderer",function(){if(HyQ!==void 0)return HyQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return HyQ=G},{mode:1});var OyS;var gV=function(){return _.p.apply(this,arguments)||this};
_.r(gV,_.p);gV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],gV.prototype,"ytRendererStamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gV.prototype,"data",void 0);_.c([_.mC({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],gV);
_.d(gV,"ytd-sub-feed-selector-renderer",function(){if(OyS!==void 0)return OyS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return OyS=G},{mode:1});var SB=function(){return _.p.apply(this,arguments)||this};
_.r(SB,_.p);
SB.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}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],SB.prototype,"data",void 0);_.c([_.mC({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],SB);
_.d(SB,"ytd-browse-feed-actions-renderer",function(){if(WIB!==void 0)return WIB;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return WIB=G},{mode:1});var eKB;var $C2;var sb=function(){return _.p.apply(this,arguments)||this};
_.r(sb,_.p);sb.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sb.prototype,"data",void 0);_.c([_.mC({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],sb);
_.d(sb,"ytd-mini-channel-renderer",function(){if($C2!==void 0)return $C2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $C2=G},{mode:1});var zK$;var xc=function(){return _.p.apply(this,arguments)||this};
_.r(xc,_.p);xc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xc.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xc);
_.d(xc,"ytd-vertical-channel-section-renderer",function(){if(zK$!==void 0)return zK$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return zK$=G},{mode:1});var PF=function(){return _.p.apply(this,arguments)||this};
_.r(PF,_.p);PF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PF.prototype,"data",void 0);_.c([_.mC({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],PF);
_.d(PF,"ytd-browse-secondary-contents-renderer",function(){if(eKB!==void 0)return eKB;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return eKB=G},{mode:1});var byS;var Gr=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};G.notActive=!1;G.isConstrainedList=!1;G.marginSettings=0;return G};
_.r(Gr,_.p);_.w=Gr.prototype;
_.w.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]]",marginSettings:"[[marginSettings]]"},matcher:function(G){var B;return(G==null?void 0:(B=G.webComponentHint)==null?void 0:B.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.w.getPath=function(G,B){var F="data.tabs.#"+B+".";G.tabs[B].tabRenderer?F+="tabRenderer.":G.tabs[B].expandableTabRenderer&&(F+="expandableTabRenderer.");return F+"content.sectionListRenderer"};
_.w.computeDisplayedContent=function(G){this.unlinkPaths("content");if(G&&G.tabs)for(var B=G.tabs.length,F=0;F<B;F++){var D=G.tabs[F].tabRenderer||G.tabs[F].expandableTabRenderer;if(D.selected&&D.content)return this.linkPaths("content",this.getPath(G,F)),D.content}return null};
_.w.computeHasSecondaryColumnData=function(G){return!!G&&!!G.secondaryContents};
_.w.onRetrieveLocation=function(G,B){B.locationRetrieved(B.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);G.stopPropagation()};
_.w.onYtServiceRequestSent=function(G,B){_.X("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(B)};
_.w.onYtServiceRequestCompleted=function(G,B){_.X("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(B)};
_.w.onReplaceFeedContentAction=function(G){if(!_.X("replace_feed_content_action_killswitch")&&!this.notActive){var B;(G=(B=_.Q(G,vm2))==null?void 0:B.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(G)}};
_.w.handleServiceRequestActions=function(G){if(G=G.actions){G=_.C(G);for(var B=G.next();!B.done;B=G.next()){B=B.value;var F=void 0;((F=_.Q(B,vm2))==null?0:F.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Q(B,vm2).items)}}};
Gr.prototype.onYtServiceRequestCompleted=Gr.prototype.onYtServiceRequestCompleted;Gr.prototype.onYtServiceRequestSent=Gr.prototype.onYtServiceRequestSent;Gr.prototype.onRetrieveLocation=Gr.prototype.onRetrieveLocation;_.c([_.k(_.X6),_.I("design:type",Object)],Gr.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Gr.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Gr.prototype,"data",void 0);_.c([_.v({computed:"computeDisplayedContent(data)"}),_.I("design:type",Object)],Gr.prototype,"content",void 0);
_.c([_.v({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Gr.prototype,"hasSecondaryColumnData",void 0);_.c([_.v({value:function(){return window.outerHeight>1024?3:2}}),
_.I("design:type",Number)],Gr.prototype,"initialCount",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Gr.prototype,"pageSubtype",void 0);_.c([_.iA("ytd-section-list-renderer"),_.I("design:type",Object)],Gr.prototype,"listRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],Gr.prototype,"notActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Gr.prototype,"isConstrainedList",void 0);
_.c([_.v(),_.I("design:type",String)],Gr.prototype,"responsiveSizing",void 0);_.c([_.v(),_.I("design:type",Number)],Gr.prototype,"marginSettings",void 0);_.c([_.Pm("yt-retrieve-location"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],Gr.prototype,"onRetrieveLocation",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Gr.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],Gr.prototype,"onYtServiceRequestCompleted",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Gr);
_.d(Gr,"ytd-two-column-browse-results-renderer",function(){if(byS!==void 0)return byS;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return byS=G},{mode:2});var V92;var vOD;var Bn=function(){var G=_.p.apply(this,arguments)||this;G.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"]);G.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"]);G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return G};
_.r(Bn,_.p);_.w=Bn.prototype;_.w.attached=function(){this.requestElementsPerRow()};
_.w.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_]]"}}}}}};
_.w.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.w.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.w.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.w.computeAlertStyle_=function(G){return G};
_.w.observerElementsPerRow=function(){this.elementsPerRow&&_.Ss(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.w.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.w.requestElementsPerRow=function(){_.cZ(this.hostElement,"yt-request-elements-per-row")};
Bn.prototype.onIsVisibleChanged_=Bn.prototype.onIsVisibleChanged_;Bn.prototype.observerElementsPerRow=Bn.prototype.observerElementsPerRow;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Bn.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Bn.prototype,"data",void 0);_.c([_.v({value:6,reflectToAttribute:!0}),_.I("design:type",Number)],Bn.prototype,"elementsPerRow",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],Bn.prototype,"wrapButtons",void 0);_.c([_.v({value:_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.I("design:type",Boolean)],Bn.prototype,"isMusic",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.I("design:type",String)],Bn.prototype,"alertStyle",void 0);_.c([_.v({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.I("design:type",Function)],Bn.prototype,"dismissBoundButtonTap_",void 0);_.c([_.v({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.I("design:type",Function)],Bn.prototype,"acceptBoundButtonTap_",void 0);_.c([_.Ga("elementsPerRow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bn.prototype,"observerElementsPerRow",null);_.c([_.Ga("data.isVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bn.prototype,"onIsVisibleChanged_",null);_.c([_.ay({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Bn);
_.d(Bn,"yt-alert-with-actions-renderer",function(){if(vOD===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;V92===void 0&&(V92=document.createElement("template"));var D=V92;F.call(B,D.content.cloneNode(!0),G.content.firstChild);vOD=G}G=vOD;return G},{mode:2});var oOG=_.Y(function(G){var B={};return _.l(_.Wd,{text:G.text,className:_.tx("ytPersonalGreetingViewModelHeadline",(B.ytPersonalGreetingViewModelHeadlineSmall=G.isSmallHeadline,B))})},"wk");_.YN(_.Y(function(G){var B=_.mR(function(){var a;return(a=G.data())==null?void 0:a.rendererContext},void 0,void 0,void 0,!0),F=function(){return G.data().canvasPromoData},D=function(){var a;
return(a=G.data().bannerHeight)!=null?a:56},u=_.C(_.wN({throttleMs:100})),R=u.next().value;
u=u.next().value;var N=_.C(_.wN({throttleMs:100})),y=N.next().value;N=N.next().value;var U=_.C(_.wN({throttleMs:100})),q=U.next().value;U=U.next().value;var h=function(){return y.width()-R.width()>1},K=function(){return D()===48};
return _.l("yt-personal-greeting-view-model",{el:_.VX(B,u),"aria-hidden":h,class:_.tx(G.className,"ytPersonalGreetingViewModelHost"),style:_.xN({height:(0,_.jc)(function(){return h()?0:D()})})},_.l(_.E,{cond:function(){return G.data().avatar&&!(q.width()+(G.data().avatar?48:0)-R.width()>1)},
then:function(){return _.l(_.uR,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:function(a){return _.l(_.KU,{data:a.data,
className:_.tx("ytPersonalGreetingViewModelAvatar")})}})}}),_.l("h1",null,_.l(oOG,{text:function(){var a;
return(F==null?void 0:(a=F())==null?void 0:a.headline)||(q.width()+(G.data().avatar?48:0)-R.width()>1?G.data().shorterGreeting:G.data().greeting)},
isSmallHeadline:K})),_.l("span",{el:_.VX(U),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.l(oOG,{text:function(){return G.data().greeting},
isSmallHeadline:K})),_.l("span",{el:_.VX(N),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.l(oOG,{text:function(){return G.data().shorterGreeting},
isSmallHeadline:K})))},"vk"),"yt-personal-greeting-view-model",{props:{data:_.Hd,
className:_.Hd}});var iO=function(){var G=_.p.apply(this,arguments)||this;G.hidden=!1;G.isConstrainedList=!1;G.responsiveSizing="COMPACT";G.attachedPlayers=_.X("kevlar_channel_trailer_multi_attach")?[]:void 0;G.player=null;G.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return G};
_.r(iO,_.p);_.w=iO.prototype;
_.w.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.w.created=function(){var G=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){G.disposeMastheadAd()}]};
_.w.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new iYS(this.refresh,this.contents))};
_.w.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.w.activeChanged=function(){var G=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=G)};
_.w.tabsChanged=function(){var G=this,B,F;if(this.pageSubtype==="channels"||_.X("kevlar_tab_gestures_for_tabbed_header_data")&&((B=this.data)==null?0:(F=B.header)==null?0:F.carouselHeaderRenderer))this.tabGestures=new uG$(this.contents,this.contents,this.hostElement,this.header,function(N){G.ytdReduxBehavior.dispatch(N)});
var D,u,R;B=(D=this.data)==null?void 0:(u=D.contents)==null?void 0:(R=u.twoColumnBrowseResultsRenderer)==null?void 0:R.tabs;this.tabGestures&&this.tabGestures.tabsChanged(B)};
_.w.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.w.engagementPanelsChanged=function(){var G=_.te().resolve(_.yR);if(G){if(this.engagementPanels)for(var B=_.C(this.engagementPanels),F=B.next();!F.done;F=B.next()){var D=void 0;(F=(D=F.value.identifier)==null?void 0:D.tag)&&G.panelMap.delete(F)}this.engagementPanels=[];var u;B=_.C(((u=this.data)==null?void 0:u.panels)||[]);for(u=B.next();!u.done;u=B.next()){u=_.Q(u.value,pC$);var R=F=void 0,N=void 0,y=void 0;if(D=((F=u)==null?void 0:F.targetId)||((R=u)==null?void 0:R.panelIdentifier)||((N=u)==null?
void 0:(y=N.identifier)==null?void 0:y.tag))R=F=void 0,(R=(F=G).registerPanelContent)==null||R.call(F,D,{engagementPanelSectionListRenderer:u}),this.engagementPanels.push(u)}}};
_.w.onStampFinished=function(){var G=this;_.ft(this,function(){if(G.tabGestures){var B=G.tabGestures;if(B.scrollPositionNeedsUpdate){var F=_.te().resolve(_.fH(_.pA)),D;if((D=B.selectedTab)!=null&&D.title&&F&&(D=F.getCurrentPage())){if(B.scrollPositionForTabs.has(B.selectedTab.title)){var u,R;F=(R=(u=F.getCurrentPage())==null?void 0:u.clientHeight)!=null?R:0;u=B.scrollPositionForTabs.get(B.selectedTab.title);D.setScrollTop(u);F>u+100&&(B.scrollPositionNeedsUpdate=!1)}else D.setScrollTop(Math.min(B.lastVisitedTabScrollPosition!==
void 0?B.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,B.tabsStartAtInPx)),B.scrollPositionNeedsUpdate=!1;B.ytdReduxDispatch(YVU(!1))}}}})};
_.w.loadPage_=function(G){this.initCsi();G&&(this.data=G);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.w.getTitle=function(G){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",G))return this.get("microformat.microformatDataRenderer.title",G);if(this.get("header.feedTabbedHeaderRenderer.title",G))return _.zx(this.get("header.feedTabbedHeaderRenderer.title",G));if(this.get("header.interactiveTabbedHeaderRenderer.title",G))return this.get("header.interactiveTabbedHeaderRenderer.title",G);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
G))return _.zx(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",G));var B,F;return(G==null?0:(B=G.header)==null?0:(F=B.pageHeaderRenderer)==null?0:F.pageTitle)?G.header.pageHeaderRenderer.pageTitle:""};
_.w.updateTitle=function(G){_.cZ(this.hostElement,"yt-update-title",this.getTitle(G))};
_.w.initCsi=function(){UWD(this.pageSubtype||"browse",["ol","cpt"])};
_.w.getPlayer=function(){if(_.X("kevlar_channel_trailer_multi_attach")){for(var G=_.C(this.attachedPlayers),B=G.next();!B.done;B=G.next())if(B=B.value,B.isConnected||_.o_(this.hostElement,B))return B;return null}return this.player};
_.w.getPlayerContainer=function(){return null};
_.w.onPlayerAttached=function(G,B){_.X("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(B):this.player=B};
_.w.onPlayerDetached=function(G,B){_.X("kevlar_channel_trailer_multi_attach")?(G=this.attachedPlayers.indexOf(B),G<0||this.attachedPlayers.splice(G,1)):this.player=null};
_.w.getServiceTrackingParams=function(){var G,B;return((G=this.data)==null?void 0:(B=G.responseContext)==null?void 0:B.serviceTrackingParams)||[]};
_.w.setMastheadAd=function(G){G&&G.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=G&&G.mastheadAd};
_.w.dataChanged=function(){var G=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||j9z();_.ft(this,function(){_.Ia(G.hostElement,"ytd-update-grid-state-action")})};
_.w.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.w.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(B){return!!B.alertWithActionsRenderer})}};
_.w.computeGreetingData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(B){return!!B.personalGreetingViewModel})}};
_.w.computeHasMemberHubProfileRenderer=function(G){var B;return!!(G==null?0:(B=G.header)==null?0:B.memberHubProfileRenderer)};
_.w.handleAlertCommand=function(G){this.get("alertCommand.alert.alertWithActionsRenderer",G)&&(G=_.Q(G,Puz),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",G.alert))};
_.w.handleYtPlaylistDeletionRedirect=function(G){G=this.get("playlistDeletionRedirectCommand.redirectEndpoint",G);_.cZ(this.hostElement,"yt-navigate",{endpoint:G})};
_.w.computeFluidWidth=function(G,B,F){if(B==="mini_app"||F)return!0;var D,u,R;G=G==null?void 0:(D=G.contents)==null?void 0:(u=D.twoColumnBrowseResultsRenderer)==null?void 0:(R=u.tabs)==null?void 0:R.find(function(U){var q;return U==null?void 0:(q=U.tabRenderer)==null?void 0:q.selected});
if(!G)return!1;var N,y;return!!((N=G.tabRenderer)==null?0:(y=N.content)==null?0:y.richGridRenderer)&&!["channel","channels","playables"].includes(B)};
_.w.computeHeaderFluidWidth=function(G){return G==="hashtag-landing-page"};
_.w.computeHasSidebar=function(G){var B;return!!(G.sidebar||((B=G.header)==null?0:B.playlistHeaderRenderer))};
_.w.computeHasPageHeaderSidebar=function(G){var B,F;return!!((B=G.header)==null?0:(F=B.pageHeaderRenderer)==null?0:F.enableSidebarView)};
_.w.computeUseUnifiedShowPageLayout=function(G){if(!G||this.pageSubtype!=="show"||!G.sidebar||!G.sidebar.playlistSidebarRenderer)return!1;G=G.sidebar.playlistSidebarRenderer;if(!G.items)return!1;for(var B=0;B<G.items.length;B++)if(_.Q(G.items[B],HFS)){var F=void 0;return((F=_.Q(G.items[B],HFS))==null?void 0:F.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.w.computeIsConstrainedList=function(G){return G==="subscriptions-channels"};
_.w.computeResponsiveSizing=function(G){return G==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.ZN.Object.defineProperties(iO.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var G,B;return((G=this.data)==null?0:(B=G.header)==null?0:B.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var G,B;if(!((G=this.data)==null?0:(B=G.sidebar)==null?0:B.playlistSidebarRenderer))return!1;var F;return(F=this.data)!=null&&F.header?!1:!0}}});
_.ZN.Object.defineProperties(iO,{template:{configurable:!0,enumerable:!0,get:function(){if(RvS===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);RvS=G}G=RvS;return G}}});
iO.prototype.dataChanged=iO.prototype.dataChanged;iO.prototype.onPlayerDetached=iO.prototype.onPlayerDetached;iO.prototype.onPlayerAttached=iO.prototype.onPlayerAttached;iO.prototype.onStampFinished=iO.prototype.onStampFinished;iO.prototype.engagementPanelsChanged=iO.prototype.engagementPanelsChanged;iO.prototype.scrollAtTopChanged=iO.prototype.scrollAtTopChanged;iO.prototype.tabsChanged=iO.prototype.tabsChanged;iO.prototype.activeChanged=iO.prototype.activeChanged;
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],iO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],iO.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],iO.prototype,"ytdReduxBehavior",void 0);_.c([_.k(ir.YtPageBehavior),_.I("design:type",Object)],iO.prototype,"ytPageBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],iO.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],iO.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],iO.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],iO.prototype,"hidden",void 0);
_.c([_.v(),_.I("design:type",Object)],iO.prototype,"mastheadAdData",void 0);_.c([_.v({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.I("design:type",Object)],iO.prototype,"alertBannerData",void 0);_.c([_.v({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.I("design:type",Object)],iO.prototype,"greetingData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],iO.prototype,"pageSubtype",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.I("design:type",Boolean)],iO.prototype,"hasMemberHubProfileRenderer",void 0);_.c([_.v({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],iO.prototype,"hasSidebar",void 0);_.c([_.v({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],iO.prototype,"hasPageHeaderSidebar",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],iO.prototype,"roundedContainer",void 0);_.c([_.v({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],iO.prototype,"useUnifiedShowPageLayout",void 0);_.c([_.v({computed:"computeIsConstrainedList(pageSubtype)"}),_.I("design:type",Object)],iO.prototype,"isConstrainedList",void 0);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],iO.prototype,"usePlaylistHeaderRenderer",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],iO.prototype,"useOldPlaylistSidebarRenderer",null);_.c([_.v({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.I("design:type",Boolean)],iO.prototype,"fluidWidth",void 0);_.c([_.v({selector:KV$}),_.I("design:type",Boolean)],iO.prototype,"scrollAtTop",void 0);
_.c([_.v({selector:aLU}),_.I("design:type",Boolean)],iO.prototype,"tabGesturesIsActive",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.I("design:type",Boolean)],iO.prototype,"disableHeaderFluidWidth",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.I("design:type",String)],iO.prototype,"responsiveSizing",void 0);
_.c([_.iA("ytd-two-column-browse-results-renderer"),_.I("design:type",HTMLElement)],iO.prototype,"contents",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],iO.prototype,"header",void 0);_.c([_.iA("ytd-refresh"),_.I("design:type",Object)],iO.prototype,"refresh",void 0);_.c([_.Ga("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iO.prototype,"activeChanged",null);
_.c([_.Ga("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iO.prototype,"tabsChanged",null);_.c([_.Ga("scrollAtTop"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iO.prototype,"scrollAtTopChanged",null);_.c([_.v(),_.I("design:type",Object)],iO.prototype,"engagementPanels",void 0);
_.c([_.Ga("data.panels"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iO.prototype,"engagementPanelsChanged",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iO.prototype,"onStampFinished",null);_.c([_.Pm("yt-player-attached"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Element]),_.I("design:returntype")],iO.prototype,"onPlayerAttached",null);
_.c([_.Pm("yt-player-detached"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Element]),_.I("design:returntype")],iO.prototype,"onPlayerDetached",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iO.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-browse"})],iO);var M9$,pqN=function(){if(M9$!==void 0)return M9$;var G=document.createElement("template");_.H(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return M9$=G};var FV=function(){var G=_.p.apply(this,arguments)||this;G.currentPage=void 0;G.renderLoadingStateJobId=0;G.updatePageDataJobId=0;G.pageDisposeJobsets=new WeakMap;G.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};G.shouldApplyLockupToWatchTransition=_.X("web_thumbnail_to_watch_transition");G.shouldApplySlideTransition=_.xf("web_page_transition_type")==="slide"||_.X("enable_plj_landing_page");G.shouldApplyLearningJourneyTransition=_.X("enable_plj_landing_page");G.TEST_ONLY=void 0;return G};
_.r(FV,_.p);_.w=FV.prototype;_.w.ready=function(){var G=_.te();G.addProvider({provide:_.pA,useValue:this});G.addProvider({provide:_.oSD,useValue:this})};
_.w.created=function(){this.pagePool=new rK$;this.contextSwitcher=new Z$2};
_.w.attached=function(){_.cZ(this.hostElement,"attached");var G=_.te().resolve(_.fH(_.un));G&&(this.contextSwitcher.JSC$20163_networkService_=G);this.viewTransitionManager=_.te().resolve(_.w1)};
_.w.getPageOffset=function(G){return G.getScrollTop()};
_.w.setPageOffset=function(G,B){try{G.setScrollTop(B)}catch(F){}};
_.w.setPageOffsetForNavigation=function(G,B){_.cZ(this.hostElement,"yt-navigate-set-page-offset",{page:G,offset:B===void 0?0:B})};
_.w.pauseActiveContext=function(){var G=this.contextSwitcher;G.activeContext_&&G.activeContext_.pause()};
_.w.attachPage=function(G){var B,F=!_.X("pc_is_attached_ks")&&(G==null?void 0:(B=G.polymerController)==null?void 0:B.isAttached);if(!G.isAttached&&!F)try{_.IF(this.hostElement).appendChild(G)}catch(u){var D;_.em(new _.Uf("Error attaching page element for component",{origin:(D=this.currentPage)==null?void 0:D.is,component:G.is}))}};
_.w.setActivePage=function(G,B){var F=this,D=!1,u=function(){var R=F.isOnWatch(),N=F.currentPage;if(G)if(G!==F.currentPage){N&&(N.hidden=!0,N.active=!1,N.removeAttribute("role"));F.currentPage=G;var y,U=B!=null?B:_.sX((y=F.data)==null?void 0:y.endpoint);N&&_.cZ(F.hostElement,"yt-page-type-changed",{oldPageType:N.is,newPageType:G.is,newPageSubtype:U});_.oy().dispatch(_.d5({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:G.is}));_.oy().dispatch(_.d5({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:U||""}));
G.hidden=!1;F.attachPage(G);G.active=!0;G.setAttribute("role","main");N&&F.setPageOffsetForNavigation(G,0);_.X("kevlar_remove_page_dom_on_switch")&&!R&&N&&_.IF(F.hostElement).removeChild(N)}else D=!0;else F.handleMissingDestinationPage(N)};
this.shouldRunBrowseTransition(this.currentPage,G)?Bu$(this.viewTransitionManager,u):this.shouldRunLearningJourneyTransition(this.currentPage,G)?Dp$(this.viewTransitionManager,u):u();return D};
_.w.handleMissingDestinationPage=function(G){if(this.isColdLoadForUnknownPage(G))_.em(new _.Uf("Cold load for unknown page"));else{var B;G=new _.Uf("Unable to set active page",G?G.is:"unknown origin",(B=this.data)==null?void 0:B.endpoint);_.k2(G)}};
_.w.isColdLoadForUnknownPage=function(G){return!G&&A_(this.data)==="unknown"};
_.w.shouldRunBrowseTransition=function(G,B){return this.shouldApplySlideTransition&&(G==null?void 0:G.is)==="ytd-browse"&&(B==null?void 0:B.is)==="ytd-browse"&&G!==B};
_.w.shouldRunLearningJourneyTransition=function(G,B){return this.shouldApplyLearningJourneyTransition&&(G==null?void 0:G.is)==="ytd-browse"&&((B==null?void 0:B.is)==="ytd-watch-learning-journey"||(B==null?void 0:B.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.w.shouldRunWatchNextLoadedTransition=function(G,B){return this.viewTransitionManager&&G.is==="ytd-watch-flexy"&&B};
_.w.updatePageData=function(G){var B=this,F=this.data;this.updatePageDataJobId&&_.Lu.cancelJob(this.updatePageDataJobId);this.data=G;return new _.DS(function(D){var u=function(){G.filler?B.performDataUpdate(G,F):gEA(function(){B.performDataUpdate(G,F)});
var R=_.kl();_.Oc(R,"cr")||R.processSignal("cr");D()};
G&&G.page==="watch"?B.updatePageDataJobId=_.yH(_.Lu,u):u()})};
_.w.isDownloadsPage=function(G){var B,F;return(G==null?void 0:(B=G.endpoint)==null?void 0:(F=B.browseEndpoint)==null?void 0:F.browseId)==="FEdownloads"};
_.w.setPlayerSyncInterval=function(G){var B;return _.n(function(F){if(F.nextAddress==1)return F.yield(_.te().resolve(_.IQ),2);B=F.yieldResult;B.setUpPositionSyncInterval(G);_.di(F)})};
_.w.performDataUpdate=function(G,B){_.X("kevlar_early_popup_close")||_.T1(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var F=!G.filler;F&&(_.KR("lps"),_.X("config_age_report_killswitch")||Da$());var D=A_(G),u,R=!1;if(_.X("kevlar_remove_page_dom_on_switch")){var N=B&&A_(B);D===N&&(u=this.getCurrentPage())}u||(u=YX(this.pagePool,D));F&&PJB(this.pagePool.elementPoolPopulator,D);F&&!this.renderLoadingStateJobId&&(R=this.setActivePage(u));if(u){N=D==="watch";var y=
D==="shorts",U=D==="learning_journey_watch";_.X("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(u);if(N||y||U)u.playerData=G.playerResponse;if(y){G.reelWatchSequenceResponse?u.reelWatchSequenceResponse=G.reelWatchSequenceResponse:u.cachedReelWatchSequenceResponse&&!u.reelWatchSequenceResponse&&(u.reelWatchSequenceResponse=u.cachedReelWatchSequenceResponse);G.reelWatchSequenceResponse&&(B==null?void 0:B.page)!=="shorts"&&(u.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse);
u.currentEndpoint=G.endpoint;var q;u.isPreviousPageShorts=!!(B==null?0:(q=B.endpoint)==null?0:q.reelWatchEndpoint)}q=this.isDownloadsPage(G);var h=this.isDownloadsPage(B);q&&!h?this.setPlayerSyncInterval(6E5):!q&&h&&this.setPlayerSyncInterval();_.X("block_all_player_prefetch_requests")||this.preparePrefetchRequest(G,u,F,N,y,U);uMS(_.te().resolve(_.WP),B,G);if(_.X("enable_ai_companion")){var K;(K=_.te().resolve(_.fH(_.UB)))==null||_.v0Z(K,this.getPersistentPanelSurface(D))}_.v9(_.te().resolve(_.uN));
_.X("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(u);F?(F=typeof u.loadPage,F==="function"?(u.pageContext=g5D(this.contextSwitcher,u,u.data!==G.response),F=function(){u.loadPage(G.response)},this.shouldApplySlideTransition&&u.is==="ytd-browse"&&R&&(D==="learning"||this.isDifferentBrowseId(G==null?void 0:G.endpoint,B==null?void 0:B.endpoint))?Bu$(this.viewTransitionManager,F):this.shouldRunWatchNextLoadedTransition(u,R)?F$G(this.viewTransitionManager,F):F()):_.Oz(new _.Uf("b/38014653 ",
[D,
u.is,u.nodeName,F,u.isAttached,B&&A_(B),this.hostElement.children.length])),_.KR("pdl")):(u.hidden=!0,G.response.filler=!0,u.data=G.response,this.attachPage(u));_.cZ(this.hostElement,"yt-page-data-updated",{pageType:D})}_.mX(_.Lu,function(){_.X("logging_avoid_blocking_during_navigation")&&_.BCc().transition("none");var a=yk$(),m=u;if(G){var L=oFS(G),W=MoB(G),e;a:{if(G.playerResponse){var b=G.playerResponse,M;if((e=b.auxiliaryUi)==null?0:(M=e.messageRenderers)==null?0:M.upsellDialogRenderer){e=b.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(G.response&&(e=G.response,(b=e.overlay)==null?0:b.upsellDialogRenderer)){e=e.overlay.upsellDialogRenderer;break a}e=void 0}var t;var T;M=(t=G.playerResponse)==null?void 0:(T=t.auxiliaryUi)==null?void 0:T.messageRenderers;t=(M==null?void 0:M.enforcementMessageViewModel)||(M==null?void 0:M.bkaEnforcementMessageViewModel);t=(t==null?void 0:t.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?t:void 0;var A;a:{if(G.response&&(T=G.response,(A=T.overlay)==null?0:A.commandWrapperPromoRenderer)){A=
T.overlay.commandWrapperPromoRenderer;break a}A=void 0}NcB(a,L,W,e,t,A,m)}})};
_.w.preparePrefetchRequest=function(G,B,F,D,u,R){var N,y,U,q,h,K,a,m,L,W,e,b,M,t,T;return _.n(function(A){if(A.nextAddress==1)return!F||!(D||u||R)||_.X("kevlar_disable_background_prefetch")&&_.pH(PsB)()===0?A.return():(N=_.YF(B))?A.yield(N.getPlayerPromise(),2):A.return();y=A.yieldResult;U=_.te().resolve(_.fH(_.un));if(!U)return A.return();if(u)return q=_.IG(_.gB),UQH(q,(h=G.endpoint)==null?void 0:h.reelWatchEndpoint,B.reelWatchSequenceResponse,y,U),A.return();m=(K=G.response)==null?void 0:(a=K.responseContext)==
null?void 0:a.webResponseContextExtensionData;if(!m)return A.return();M=(L=G.response)==null?void 0:(W=L.contents)==null?void 0:(e=W.twoColumnWatchNextResults)==null?void 0:(b=e.autoplay)==null?void 0:b.autoplay;t=_.te().resolve(_.Wv);T=_.IG(_.gB);q9Z(T,m,y,U,t,M);_.di(A)})};
_.w.movePlayerToWatch=function(G){var B=this,F,D;return _.n(function(u){F=YX(B.pagePool,"watch");D=F.getPlayerContainer();G.appendTo(D);_.di(u)})};
_.w.movePlayerToShorts=function(G){var B=this,F,D,u;return _.n(function(R){F=YX(B.pagePool,"shorts");D=F.getPlayerContainer();(u=G)==null||u.appendTo(D,void 0,!0);_.di(R)})};
_.w.getPlayerFromWatch=function(){var G=YX(this.pagePool,"watch");return _.YF(G)};
_.w.getPlayerFromShorts=function(){var G=YX(this.pagePool,"shorts");return _.YF(G)};
_.w.startLoadingWatch=function(){var G=this,B=YX(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Lu.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.X("web_watch_transition_enable_start_loading_watch_callsite")?ioB(this.viewTransitionManager,function(){G.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(B,"watch");
if(_.X("enable_ai_companion")){var F;(F=_.te().resolve(_.fH(_.UB)))==null||_.v0Z(F,this.getPersistentPanelSurface("watch"))}};
_.w.startLoadingShorts=function(){var G=YX(this.pagePool,"shorts");this.setActivePage(G,"shorts")};
_.w.startLoadingLearningJourney=function(){var G=YX(this.pagePool,"learning_journey_watch");this.setActivePage(G,"learning_journey_watch")};
_.w.getCurrentPage=function(){return this.currentPage};
_.w.getDestinationPageType=function(){return this.destinationPageType};
_.w.getCurrentData=function(){return this.data};
_.w.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.w.isOnShorts=function(){var G;return((G=this.currentPage)==null?void 0:G.is)==="ytd-shorts"};
_.w.isWatchPage=function(G){return!!G&&(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-fixie"||G.is==="ytd-watch-grid")};
_.w.preparePage=function(G,B){var F=this,D=function(){var R=F.pagePool.preparePage(G,F.currentPage,B);R&&F.attachPage(R)},u=function(R){_.$2(R,B);
_.em(R)};
try{D()}catch(R){u(R)}};
_.w.lazyPrepareCriticalPages=function(G,B){G=_.sX(B)||G;this.maybePrepareWatchPage(G)};
_.w.maybePrepareWatchPage=function(G){G==="watch"||G==="learning_journey_watch"&&_.X("web_watch_learning_journey_disable_lazy_pages")||_.mX(_.Lu,this.preparePage.bind(this,"watch"))};
_.w.renderPageLoadingState=function(G,B){this.preparePage(G,B);var F=YX(this.pagePool,G);F.loadingData&&(F.loadingData.endpoint=B);F.loading=!0;this.setActivePage(F,G);G!=="watch"&&G!=="learning_journey_watch"||_.cZ(this.hostElement,"yt-guide-close")};
_.w.prepareForNavigation=function(G,B){var F=this;if(this.currentPage&&this.data){var D=_.sX(B)||G;this.destinationPageType=D;A_(this.data)==D&&_.cZ(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((G==="watch"||G==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Lu.cancelJob(this.renderLoadingStateJobId);_.te().resolve(_.WP).deactivate(B);_.uQ(_.Lu,function(){var R=F.viewTransitionManager,N=F.currentPage;
if(R.isLockupToWatchTransitionEnabled&&R.isLockupThumbnailRegistrationEnabled&&N)if(R.registeredLockupThumbnail)R.lockupThumbnailRegisteredFromWatchEndpoint&&_.em(new _.Uf("Lockup thumbnail already registered from watch endpoint."));else{a:{var y=_.Q(B,_.Ow);if(y==null?0:y.videoId){var U="yt-lockup-view-model ."+_.E6g(y.videoId)+" yt-thumbnail-view-model";N=N.querySelectorAll(U);if(N.length===1){y=N[0];break a}N.length>1?_.em(new _.Uf("Multiple LockupViewModel thumbnails found for videoId: "+y.videoId+
". Selector: "+U)):_.X("web_thumbnail_to_watch_transition_debug")&&_.em(new _.Uf("No LockupViewModel thumbnail found for videoId: "+y.videoId+". Selector: "+U))}y=void 0}y&&(R.registeredLockupThumbnail=y,R.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Xo$(R,y))}});
var u=this.data;this.renderLoadingStateJobId=_.uQ(_.Lu,function(){ioB(F.viewTransitionManager,function(){if(F.data!=u){var R=YX(F.pagePool,G);F.setActivePage(R)}else F.renderPageLoadingState(G,B);F.renderLoadingStateJobId=0})},150)}};
_.w.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var G=new _.V8(1);this.currentPage.pageDisposeJobs.forEach(function(B){_.vd(G,B)});
this.pageDisposeJobsets.set(this.currentPage,G)}};
_.w.flushPageDisposeJobset=function(G){var B=this.pageDisposeJobsets.get(G);B&&(B.flushJobs(),this.pageDisposeJobsets.delete(G))};
_.w.onYtStopOldPlayer=function(G,B){B=B===void 0?!1:B;var F,D=_.P5("kevlar_new_stop_old_player_logic_pages");if(_.X("kevlar_check_current_page_on_stop_old_player")&&(D.length===0||this.currentPage&&D.includes(this.currentPage.is)))if(this.data&&(F=A_(this.data)),A_(G)===F&&this.currentPage&&A_(this.currentPage.data)!==F)var u=_.YF(this.currentPage);else F=A_(this.data),u=YX(this.pagePool,F),u=_.YF(u);else this.data&&(F=A_(this.data),u=YX(this.pagePool,F),u=_.YF(u));if(u){D=A_(G);var R=YX(this.pagePool,
D);R=_.YF(R);if(u==R)B&&!_.X("kevlar_disable_preemptive_player_reset")&&u.resetForNewPlayback();else if(B=F==="watch"&&D!=="watch",!B||D==="shorts"||_.bPt()&&!R2A(this.data,G))G=_.te().resolve(_.WP),B&&G.isMiniplayerActive()&&G.pipController.getWindow()||u.stop()}};
_.w.isDifferentBrowseId=function(G,B){G=_.Q(G,_.x9);B=_.Q(B,_.x9);return(G==null?void 0:G.browseId)!==(B==null?void 0:B.browseId)};
_.w.getPersistentPanelSurface=function(G){switch(G){case "watch":return"WATCH";default:return"APP"}};
_.ZN.Object.defineProperties(FV,{template:{configurable:!0,enumerable:!0,get:function(){return pqN()}}});
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-page-manager"})],FV);_.d(FV,"ytd-page-manager",function(){return pqN()},{mode:_.ZO("kevlar_poly_si_batch_j081")?1:2});var Yi$;var AHU;var Di=function(){var G=_.p.apply(this,arguments)||this;G.hasChipBar=!1;return G};
_.r(Di,_.p);Di.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}}};
Di.prototype.computeHasChipBar=function(G){return!(G==null||!G.chipBar)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Di.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.I("design:type",Object)],Di.prototype,"hasChipBar",void 0);_.c([_.mC({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Di);
_.d(Di,"ytd-search-header-renderer",function(){if(AHU!==void 0)return AHU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return AHU=G},{mode:1});var dCz;var uO=function(){return _.p.apply(this,arguments)||this};
_.r(uO,_.p);uO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uO.prototype.computeBlueBottomLink=function(G){return G};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],uO.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.bottomIcon)"}),_.I("design:type",String)],uO.prototype,"bottomIcon",void 0);
_.c([_.v({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.I("design:type",Boolean)],uO.prototype,"enableBlueBottomLink",void 0);_.c([_.mC({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],uO);
_.d(uO,"ytd-web-answer-renderer",function(){if(dCz!==void 0)return dCz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dCz=G},{mode:2});var JH$;var RZ=function(){return _.p.apply(this,arguments)||this};
_.r(RZ,_.p);RZ.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RZ.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-page-continuation"})],RZ);
_.d(RZ,"ytd-page-continuation",function(){if(JH$!==void 0)return JH$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return JH$=G},{mode:1});var cH$;var Tjz;var IQZ;var fQD=function(){return _.p.apply(this,arguments)||this};
_.r(fQD,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fQD.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],fQD.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],fQD);
_.d(fQD,"ytd-watch-card-one-vs-one-event",function(){if(IQZ!==void 0)return IQZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IQZ=G},{mode:1});var t9D=function(){return _.p.apply(this,arguments)||this};
_.r(t9D,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],t9D.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],t9D.prototype,"data",void 0);_.c([_.mC({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],t9D);
_.d(t9D,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Tjz!==void 0)return Tjz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Tjz=G},{mode:1});var ZyU;var gOz=function(){return _.p.apply(this,arguments)||this};
_.r(gOz,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gOz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gOz.prototype,"data",void 0);_.c([_.mC({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],gOz);
_.d(gOz,"ytd-banner-and-box-hero-image-renderer",function(){if(ZyU!==void 0)return ZyU;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ZyU=G},{mode:1});var SiD;var wH=function(){var G=_.p.apply(this,arguments)||this;G.modern=_.X("web_modern_buttons");return G};
_.r(wH,_.p);wH.prototype.computeIcon=function(){var G,B,F=(G=this.data)==null?void 0:(B=G.icon)==null?void 0:B.iconType;if(F)return _.xT(F)};
wH.prototype.computeButtonShape=function(){var G;return{buttonText:_.zx((G=this.data)==null?void 0:G.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.ZN.Object.defineProperties(wH.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"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],wH.prototype,"modern",void 0);_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.O("data.style"),_.I("design:type",Object),_.I("design:paramtypes",[])],wH.prototype,"buttonColor",null);
_.c([_.mC({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],wH);
_.d(wH,"ytd-call-to-action-button-renderer",function(){if(SiD!==void 0)return SiD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return SiD=G},{mode:1});var sW$;var Cm=function(){return _.p.apply(this,arguments)||this};
_.r(Cm,_.p);Cm.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.IF(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Ax(this.data.leftThumbnail.thumbnails,216)+")")};
Cm.prototype.onLeftThumbnailChanged=Cm.prototype.onLeftThumbnailChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Cm.prototype,"data",void 0);_.c([_.Ga("data.leftThumbnail"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Cm.prototype,"onLeftThumbnailChanged",null);_.c([_.mC({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Cm);
_.d(Cm,"ytd-collage-hero-image-renderer",function(){if(sW$!==void 0)return sW$;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return sW$=G},{mode:1});var xCG;var NA=function(){return _.p.apply(this,arguments)||this};
_.r(NA,_.p);NA.prototype.computeStyle=function(G){return G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],NA.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.I("design:type",String)],NA.prototype,"componentStyle",void 0);_.c([_.mC({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],NA);
_.d(NA,"ytd-single-hero-image-renderer",function(){if(xCG!==void 0)return xCG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return xCG=G},{mode:1});var PFD;var y2=function(){return _.p.apply(this,arguments)||this};
_.r(y2,_.p);_.w=y2.prototype;
_.w.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:_.X("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.w.computeSubtitle=function(G){if(this.data){var B;if(this.data.upcomingEventData){G=_.zx(G.subtitle);var F=Number(this.data.upcomingEventData.startTime);isNaN(F)||(B=_.$9(_.nh(G,F)))}else B=G.subtitle;return B}};
_.w.onHeroTap=function(G){G.preventDefault();var B=this.data&&this.data.navigationEndpoint;!B||!_.oQ(_.VW(G),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.oQ(_.VW(G),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.X("kevlar_watchcard_hero_video_renderer_killswitch")?_.cZ(this.hostElement,"yt-navigate",{navigationEndpoint:B}):this.ytComponentBehavior.resolveCommand(B))};
_.w.computeHeroTabIndex=function(G){return G&&G.simpleText?-1:0};
_.w.computeHeroRole=function(G){return G&&G.simpleText?"":"link"};
_.w.computeIsReminderButtonPresent=function(G){return!(!G||!G.reminderButton)};
_.w.computeHideBottomItems=function(G){return!(this.computeIsReminderButtonPresent(G)||G.subtitle)};
_.w.dataChanged=function(){var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),B;((B=_.Q(G==null?void 0:G.commandMetadata,_.u6))==null?0:B.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G)};
y2.prototype.dataChanged=y2.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],y2.prototype,"data",void 0);
_.c([_.v({computed:"computeSubtitle(data)"}),_.I("design:type",String)],y2.prototype,"subtitle",void 0);_.c([_.v({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],y2.prototype,"isReminderButtonPresent",void 0);_.c([_.v({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],y2.prototype,"hideBottomItems",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],y2.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],y2);
_.d(y2,"ytd-watch-card-hero-video-renderer",function(){if(PFD!==void 0)return PFD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return PFD=G},{mode:1});var G5D;var nm=function(){return _.p.apply(this,arguments)||this};
_.r(nm,_.p);_.w=nm.prototype;_.w.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"}}}};
_.w.computeTitleBadges=function(G){return G?[G]:[]};
_.w.computeHeaderStyle=function(G){return G?G.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.w.computeAvatarAriaLabel=function(G){if(G){var B,F,D,u;return(u=(B=G.avatar)==null?void 0:(F=B.accessibility)==null?void 0:(D=F.accessibilityData)==null?void 0:D.label)!=null?u:_.zx(G==null?void 0:G.title)}};
_.w.computeAvatarHeight=function(G){return G==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.w.computeBadgeRowClass=function(G){return(G==null?0:G[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nm.prototype,"data",void 0);_.c([_.v({computed:"computeTitleBadges(data.titleBadge)"}),_.I("design:type",Array)],nm.prototype,"titleBadges",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.I("design:type",String)],nm.prototype,"headerStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.I("design:type",String)],nm.prototype,"badgeRowClass",void 0);_.c([_.mC({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],nm);
_.d(nm,"ytd-watch-card-rich-header-renderer",function(){if(G5D!==void 0)return G5D;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return G5D=G},{mode:1});var BxQ;var i_$;var lO=function(){return _.p.apply(this,arguments)||this};
_.r(lO,_.p);lO.prototype.onMetadataTap=function(G){var B=this.data&&this.data.navigationEndpoint;B&&!_.oQ(_.VW(G),this.hostElement,["A".toString()])&&_.cZ(this.hostElement,"yt-navigate",{endpoint:B})};
_.ZN.Object.defineProperties(lO.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 G;if(this.data.upcomingEventData){var B=_.zx(this.data.subtitle),F=Number(this.data.upcomingEventData.startTime);isNaN(F)||(G=_.$9(_.nh(B,F)))}else G=this.data.subtitle;return G}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lO.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.style"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],lO.prototype,"isCondensed",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],lO.prototype,"subtitle",null);
_.c([_.mC({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],lO);
_.d(lO,"ytd-watch-card-compact-video-renderer",function(){if(i_$!==void 0)return i_$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return i_$=G},{mode:1});var FsD;var DJA=function(){return _.p.apply(this,arguments)||this};
_.r(DJA,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DJA.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],DJA.prototype,"data",void 0);_.c([_.mC({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],DJA);
_.d(DJA,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(FsD!==void 0)return FsD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return FsD=G},{mode:1});var UN=function(){return _.p.apply(this,arguments)||this};
_.r(UN,_.p);UN.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}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UN.prototype,"ytRendererStamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UN.prototype,"data",void 0);_.c([_.mC({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],UN);
_.d(UN,"ytd-vertical-watch-card-list-renderer",function(){if(BxQ!==void 0)return BxQ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return BxQ=G},{mode:1});var uHB;var qA=function(){var G=_.p.apply(this,arguments)||this;G.ariaExpanded="false";return G};
_.r(qA,_.p);_.w=qA.prototype;_.w.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.w.dataChanged=function(){var G;this.currentSeasonIndex=((G=this.data)==null?void 0:G.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.w.computeEpisodesInfo=function(G,B,F){if(G!==void 0&&B.length===G.length)return G[F]};
_.w.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.w.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.w.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.w.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.w.getUppercaseSimpleString=function(G){return this.ytRendererBehavior.getSimpleString(G).toUpperCase()};
_.w.updateCurrentSeasonIndexFromBinding=function(G){this.currentSeasonIndex=G.detail.value};
qA.prototype.onIronOverlayClosed=qA.prototype.onIronOverlayClosed;qA.prototype.currentSeasonIndexChanged=qA.prototype.currentSeasonIndexChanged;qA.prototype.dataChanged=qA.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qA.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",String)],qA.prototype,"label",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],qA.prototype,"currentSeasonIndex",void 0);_.c([_.v({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.I("design:type",Object)],qA.prototype,"episodesInfo",void 0);_.c([_.v({value:"false"}),_.I("design:type",Object)],qA.prototype,"ariaExpanded",void 0);_.c([_.iA("#lists"),_.I("design:type",Object)],qA.prototype,"lists",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qA.prototype,"dataChanged",null);_.c([_.Ry("currentSeasonIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qA.prototype,"currentSeasonIndexChanged",null);_.c([_.Pm("iron-overlay-closed"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],qA.prototype,"onIronOverlayClosed",null);
_.c([_.mC({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],qA);
_.d(qA,"ytd-watch-card-section-dropdown-renderer",function(){if(uHB!==void 0)return uHB;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return uHB=G},{mode:1});var R1S;var EN=function(){var G=_.p.apply(this,arguments)||this;G.isSearch=!1;return G};
_.r(EN,_.p);EN.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EN.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],EN.prototype,"isSearch",void 0);_.c([_.mC({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],EN);
_.d(EN,"ytd-watch-card-section-sequence-renderer",function(){if(R1S!==void 0)return R1S;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return R1S=G},{mode:1});var wDH=_.Y(function(G){return _.l("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.l(_.uR,{data:function(){return G.data().ctaButton}},{buttonViewModel:_.cd}),_.l(_.Wd,{text:function(){return G.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"xk");
wDH.idomCompat=!0;_.YN(wDH,"ytd-button-banner-view-model",{props:{data:_.Hd}});var hK=function(){var G=_.p.apply(this,arguments)||this;G.isSearch=!1;return G};
_.r(hK,_.p);
hK.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"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.I("design:type",Boolean)],hK.prototype,"rounded",void 0);_.c([_.v(),_.I("design:type",Object)],hK.prototype,"isSearch",void 0);
_.c([_.mC({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],hK);
_.d(hK,"ytd-universal-watch-card-renderer",function(){if(cH$!==void 0)return cH$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cH$=G},{mode:1});var CbN;_.YN(_.Y(function(G){var B=G.data;var F;G=!((F=_.te().resolve(_.fH(_.Rx)))==null||!F());F={};return _.l("overview-message-view-model",{class:_.tx("ytwOverviewMessageViewModelHost",(F.ytwOverviewMessageViewModelDarkBackground=G,F.ytwOverviewMessageViewModelLightBackground=!G,F))},_.l(_.E,{cond:function(){return B().primaryImage},
then:function(D){return _.l(_.vr,{data:D,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.l(_.E,{cond:function(){return B().primaryText},
then:function(){return _.l("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.l(_.Wd,{text:function(){return B().primaryText}}))}}),_.l(_.E,{cond:function(){return B().secondaryText},
then:function(){return _.l("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.l(_.Wd,{text:function(){return B().secondaryText}}))}}))},"yk"),"overview-message-view-model",{props:{data:_.Hd}});_.YN(_.t8D,"ytd-overview-answer-view-model",{props:{data:_.Hd}});var Km=function(){return _.p.apply(this,arguments)||this};
_.r(Km,_.p);Km.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"}}}};
Km.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],Km.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Km.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Km.prototype,"isSearch",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Km);
_.d(Km,"ytd-secondary-search-container-renderer",function(){if(CbN!==void 0)return CbN;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return CbN=G},{mode:1});var NxG;var aZ=function(){var G=_.p.apply(this,arguments)||this;G.renderSecondarySearchContainer=!1;G.isSearch=!1;return G};
_.r(aZ,_.p);_.w=aZ.prototype;_.w.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.w.created=function(){var G=this;this.boundStampSecondarySearchContainerIfFits=function(){G.stampSecondarySearchContainerIfFits()};
_.Vc("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.w.computeIsSearchFrictionPage=function(G){var B,F,D,u,R;G=G==null?void 0:(B=G.primaryContents)==null?void 0:(F=B.sectionListRenderer)==null?void 0:(D=F.contents)==null?void 0:(u=D[0])==null?void 0:(R=u.itemSectionRenderer)==null?void 0:R.contents;if(!G)return!1;B=_.C(G);for(F=B.next();!F.done;F=B.next())if(D=void 0,(D=F.value)==null?0:D.searchFrictionViewModel)return!0;return!1};
_.w.computeShowSecondaryColumn=function(G,B){return!!(B&&B.secondaryContents&&G)};
_.w.activeChanged=function(){var G=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.x7(this,this.debounceStampSecondarySearchContainerIfFits)),_.Hc(function(){G.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.x7(this,this.debounceStampSecondarySearchContainerIfFits))};
_.w.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.w.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.w.debounceStampSecondarySearchContainerIfFits=function(){_.kT(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.w.onRetrieveLocation=function(G,B){B.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);G.stopPropagation()};
_.w.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
aZ.prototype.dataChanged=aZ.prototype.dataChanged;aZ.prototype.onRetrieveLocation=aZ.prototype.onRetrieveLocation;aZ.prototype.persistentGuideChanged=aZ.prototype.persistentGuideChanged;aZ.prototype.activeChanged=aZ.prototype.activeChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],aZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],aZ.prototype,"ironResizableBehavior",void 0);_.c([_.v(),_.I("design:type",Boolean)],aZ.prototype,"active",void 0);_.c([_.v(),_.I("design:type",Object)],aZ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.X("enable_desktop_search_bigger_thumbs")}}),
_.I("design:type",Boolean)],aZ.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.xf("desktop_search_bigger_thumbs_style")}}),
_.I("design:type",String)],aZ.prototype,"biggerThumbsStyle",void 0);_.c([_.v(),_.I("design:type",Object)],aZ.prototype,"renderSecondarySearchContainer",void 0);_.c([_.v({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.I("design:type",Boolean)],aZ.prototype,"showSecondaryColumn",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.I("design:type",Boolean)],aZ.prototype,"isSearchFrictionPage",void 0);
_.c([_.v(),_.I("design:type",Object)],aZ.prototype,"isSearch",void 0);_.c([_.Ga("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aZ.prototype,"activeChanged",null);_.c([_.Ga("guidePersistentAndVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aZ.prototype,"persistentGuideChanged",null);
_.c([_.Pm("yt-retrieve-location"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],aZ.prototype,"onRetrieveLocation",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aZ.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],aZ);
_.d(aZ,"ytd-two-column-search-results-renderer",function(){if(NxG!==void 0)return NxG;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return NxG=G},{mode:1});var my=function(){var G=_.p.apply(this,arguments)||this;G.hasSearchHeader=!1;G.hasSecondaryContent=!1;G.hasBiggerThumbs=_.X("enable_desktop_search_bigger_thumbs");G.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return G};
_.r(my,_.p);_.w=my.prototype;_.w.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:ql(["aa","eocs"])}}};
_.w.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.w.loadPage_=function(G){this.initCsi();G&&(this.data=G,_.Vc("REFINEMENTS_TUPLE",["FromSearchResponse",G.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Jo(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.w.initCsi=function(){UWD("results",["ol","cpt"])};
_.w.updateTitle=function(){var G=_.Be(window.location.href,"q");G||(G=_.Be(window.location.href,"search_query"));_.cZ(this.hostElement,"yt-update-title",G||"")};
_.w.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.w.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.X("web_srp_data_changed_terminate_imp_killswitch")||_.T1(this.hostElement,"yt-terminate-video-preview-action")};
_.w.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.w.computeHasSearchHeader=function(G){var B;G=G==null?void 0:(B=G.header)==null?void 0:B.searchHeaderRenderer;return!!G&&(!!G.searchFilterButton||!!G.chipBar)};
_.w.computeHasSecondaryContent=function(G){var B,F;return!!(G==null?0:(B=G.contents)==null?0:(F=B.twoColumnSearchResultsRenderer)==null?0:F.secondaryContents)};
_.ZN.Object.defineProperties(my,{template:{configurable:!0,enumerable:!0,get:function(){if(Yi$===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);Yi$=G}G=Yi$;return G}}});
my.prototype.onReloadContinuationFinish=my.prototype.onReloadContinuationFinish;my.prototype.dataChanged=my.prototype.dataChanged;_.c([_.k(ir.YtPageBehavior),_.I("design:type",Object)],my.prototype,"ytPageBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],my.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],my.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],my.prototype,"data",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],my.prototype,"monitorScroll",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],my.prototype,"hasSearchHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],my.prototype,"hasSecondaryContent",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],my.prototype,"hasBiggerThumbs",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],my.prototype,"dataChanged",null);
_.c([_.Pm("yt-reload-continuation-finish"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],my.prototype,"onReloadContinuationFinish",null);_.c([_.mC({is:"ytd-search"})],my);var yyG;var nUA;var l2$;var XV=function(){var G=_.p.apply(this,arguments)||this;G.ctaVisualElement=null;G.currentCsn=null;return G};
_.r(XV,_.p);_.w=XV.prototype;_.w.onDataChanged=function(){this.maybeLogShows()};
_.w.computeButtonShape=function(){var G=this;if(this.data)return{buttonText:_.zx(this.data.text),state:"active",onTap:function(){G.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.w.maybeCreateCtaVe=function(){var G;if((G=this.data)!=null&&G.badgeInteractionLogging){var B;if(G=(B=this.data.badgeInteractionLogging)==null?void 0:B.trackingParams)this.ctaVisualElement=_.yX(G)}};
_.w.maybeLogClicks=function(){this.currentCsn=_.qW(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.$I(this.currentCsn,this.ctaVisualElement)};
_.w.maybeLogShows=function(){this.currentCsn=_.qW(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Oq(this.currentCsn,[this.ctaVisualElement])};
_.w.onTap=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var B;this.ytComponentBehavior.resolveCommand((B=this.data)==null?void 0:B.onClickCommand);this.maybeLogClicks()}};
XV.prototype.onDataChanged=XV.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],XV.prototype,"ytComponentBehavior",void 0);_.c([_.v({}),_.I("design:type",Object)],XV.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],XV.prototype,"onDataChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],XV);
_.d(XV,"ytd-shopping-overlay-badge-renderer",function(){if(l2$!==void 0)return l2$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return l2$=G},{mode:1});var UJH;var Q2=function(){return _.p.apply(this,arguments)||this};
_.r(Q2,_.p);Q2.prototype.computeShouldButtonBeVertical=function(G,B){return G||B};
Q2.prototype.onYtServiceRequestSent=function(G,B){(G=_.Q(B.endpoint,_.yr))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.wC("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:G.status})):this.handleLikeEndpoint(G))};
Q2.prototype.computelikeStatusEntityKey=function(G){return G==null?void 0:G.likeStatusEntityKey};
Q2.prototype.handleLikeEndpoint=function(G){G.status==="LIKE"?this.JSC$22053_ytdDislikeToggleButtonRenderer.toggle(!1):G.status==="DISLIKE"?this.JSC$22053_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22053_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22053_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.ZN.Object.defineProperties(Q2.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var G;return XUU(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var G;if(this.data&&((G=this.data)==null||!G.hideDislikeButton)){var B;return XUU(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(B=this.likeStatusEntity)==null?void 0:B.likeStatus)}}}});
Q2.prototype.onYtServiceRequestSent=Q2.prototype.onYtServiceRequestSent;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Q2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Q2.prototype,"vertical",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],Q2.prototype,"textTransform",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Q2.prototype,"useShortsIcon",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Q2.prototype,"underIconLabel",void 0);_.c([_.v({value:"left"}),_.I("design:type",String)],Q2.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.I("design:type",Object)],Q2.prototype,"overrides",void 0);
_.c([_.iA("#like-button"),_.I("design:type",Object)],Q2.prototype,"JSC$22053_ytdLikeToggleButtonRenderer",void 0);_.c([_.iA("#dislike-button"),_.I("design:type",Object)],Q2.prototype,"JSC$22053_ytdDislikeToggleButtonRenderer",void 0);_.c([_.O("data","likeStatusEntity.likeStatus","useShortsIcon"),_.I("design:type",Object),_.I("design:paramtypes",[])],Q2.prototype,"likeButton",null);
_.c([_.O("data","likeStatusEntity.likeStatus","useShortsIcon"),_.I("design:type",Object),_.I("design:paramtypes",[])],Q2.prototype,"dislikeButton",null);_.c([_.v({computed:"computelikeStatusEntityKey(data)"}),_.I("design:type",String)],Q2.prototype,"likeStatusEntityKey",void 0);_.c([_.v({selectorArgs:["likeStatusEntityKey"],selector:_.XT}),_.I("design:type",Object)],Q2.prototype,"likeStatusEntity",void 0);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Q2.prototype,"onYtServiceRequestSent",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Q2);
_.tS()(Q2,"ytd-like-button-renderer",function(){if(UJH===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);UJH=G}G=UJH;return G},{mode:1});_.YN(_.UnD,"reel-sound-metadata-view-model",{props:{data:_.oh,overlayDensity:_.oh}});_.YN(_.vSN,"player-disclosure-view-model",{props:{data:_.Hd,extractOverlay:_.Hd}});_.YN(_.rKw,"pivot-button-view-model",{props:{data:_.oh,className:_.oh}});_.YN(_.WyP,"reel-action-bar-view-model",{props:{data:_.Hd,buttonShapeOverrideables:_.Hd}});_.YN(_.E2Q,"yt-reel-metapanel-view-model",{props:{data:_.Hd,overlayDensity:_.Hd,extractOverlay:_.Hd}});var qQ$=_.Y(function(G){var B=G.children;var F=G.region;G=_.C(_.qg(void 0,void 0,"flxBBc"));var D=G.next().value,u=G.next().value;G=_.C(_.qg("0px",void 0,"IAR7k"));var R=G.next().value,N=G.next().value;G=_.C(_.qg("0px",void 0,"QV4iWb"));var y=G.next().value,U=G.next().value;G=_.C(_.qg(0,void 0,"Q2oK6b"));var q=G.next().value,h=G.next().value;G=_.C(_.qg(0,void 0,"hYKowe"));var K=G.next().value,a=G.next().value,m=function(){var t=D();if(t){var T;if(((T=_.sR())==null?void 0:T.getPlayerState())!==-1){t.style.display=
"inherit";var A;(A=_.sR())==null||A.removeEventListener("onStateChange",m)}else t.style.display="none";W()}},L=function(){var t;
return(t=_.AZ())==null?void 0:t.querySelector("video")},W=function(){var t=L();
if(t){h(t.getBoundingClientRect().width);a(t.getBoundingClientRect().height);var T;N((t==null?void 0:(T=t.style)==null?void 0:T.left)||"0px");var A;U((t==null?void 0:(A=t.style)==null?void 0:A.top)||"0px")}};
_.bC(function(){var t=D();if(t){var T,A,Z;if(((T=_.sR())==null?void 0:T.getPlayerState())===-1&&Math.round(((Z=(A=_.sR())==null?void 0:A.getVideoAspectRatio())!=null?Z:0)*100)!==Math.round(q()/K()*100)){t.style.display="none";var P,RI;a(q()/((RI=(P=_.sR())==null?void 0:P.getVideoAspectRatio())!=null?RI:1))}}},"N29KDe");
var e=function(){W()},b;
_.eR(function(){W();var t;if(!(F==null?0:(t=F())==null?0:t.transformationMatrix))throw Error("em");var T;(T=_.sR())==null||T.addEventListener("onStateChange",m);if(window.ResizeObserver){if(t=L())b=new ResizeObserver(e),b.observe(t)}else window.addEventListener("resize",W);_.VI(function(){var A;(A=_.sR())==null||A.removeEventListener("onStateChange",m);b?b.disconnect():window.removeEventListener("resize",W)})});
var M=function(){var t,T,A=(T=F==null?void 0:(t=F())==null?void 0:t.transformationMatrix)!=null?T:[];t=q();T=K();for(var Z=[],P=0,RI=-1;P<A.length;P++)P%3===0&&(RI++,Z[RI]=[]),Z[RI].push(A[P]);A=new qw(Z);Z=new qw([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Z=A.multiply(Z);A=new qw([[0,0],[0,0],[0,0],[0,0]]);for(P=0;P<Z.getSize().width;P++){RI=NM(Z,0,P);var yo=NM(Z,1,P);if(RI===null||yo===null)throw Error("dm`"+(P+1).toString());xvQ(A,P,0,RI*t);xvQ(A,P,1,yo*T)}t=NM(A,0,0);P=NM(A,1,0);T=NM(A,0,1);RI=NM(A,1,1);
if(t===null||P===null||T===null||RI===null)throw Error("bm");Z=QDU(t,P,T,RI);yo=NM(A,3,0);A=NM(A,3,1);if(yo===null||A===null)throw Error("cm");A=QDU(t,yo,T,A);RI=(Number((RI*-1).toFixed(2))-Number((T*-1).toFixed(2)))/(Number(P.toFixed(2))-Number(t.toFixed(2)));yo=Math.atan(RI)*180/Math.PI;P=RI===Number.POSITIVE_INFINITY?-90:RI===Number.NEGATIVE_INFINITY?90:Object.is(RI,-0)?180:RI===0?0:RI>0?yo*-1:t<P?yo*-1:Math.abs(yo)+180;return"left:calc("+t+"px + "+R()+"); top:calc("+(T+"px + "+y()+"); width:")+
(Z+"px; height:")+(A+"px; transform:rotate(")+(P+"deg);\n        --sticker-width:"+Z+";")};
return _.l(_.wTl,{root:"#sticker-layer"},function(){return _.l("yt-overlay-sticker",{el:_.VX(u),style:M,class:"ytOverlayStickerHost"},B)})},"Bk");var EUU=_.Y(function(G){function B(){var m,L,W,e,b=(L=_.Q((m=U())==null?void 0:m.command,_.tOs))==null?void 0:(W=L.item)==null?void 0:(e=W.notificationTextRenderer)==null?void 0:e.successResponseText;if(b)m=_.o9(b),_.T1(D.value,"yt-open-popup-action",[m,D.value]);else if(q())LvB(q(),D.value);else{var M;LvB((M=U())==null?void 0:M.command,D.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var F=G.data;var D=_.W5("svg"),u=_.C(_.qg(!1,void 0,"e9onLe"));G=u.next().value;var R=u.next().value,N=_.C(_.qg(!1,void 0,"ptnIQd"));u=N.next().value;var y=N.next().value,U=function(){var m;return _.Q((m=F())==null?void 0:m.popUp,zeG)},q=function(){var m;
return(m=F())==null?void 0:m.command},h=function(){return _.Q(q(),_.Ch)!==void 0};
N=_.gJ(function(){B();return!1});
var K={},a={};return _.l("svg",{"on:mouseover":_.gJ(function(){h()&&R(!0);y(!0);return!1}),
"on:mouseout":_.gJ(function(){R(!1);y(!1);return!1}),
"on:keydown":_.gJ(function(m){m.key==="Enter"&&B();return!1}),
"on:focus":_.gJ(function(){h()&&R(!0);return!1}),
"on:blur":_.gJ(function(){h()&&R(!1);return!1}),
el:D,tabindex:0,"aria-label":function(){var m;return(m=F())==null?void 0:m.a11yString},
id:"player-overlay-video-interaction-svg",class:_.tx("ytPlayerOverlayInteractionInteractionsSvg",(K.ytPlayerOverlayInteractionInteractionsSvgHover=G,K),(a.ytPlayerOverlayInteractionInteractionsSvgHideOutline=u,a)),role:"button","on:click":N})},"Ek");_.YN(_.Y(function(G){var B=G.data;_.eR(function(){var F;if((F=B())==null?0:F.trackingParams){var D;_.Rh().graftServerVe((D=B().trackingParams)!=null?D:"")}});
return _.l("yt-player-overlay-interaction",null,_.l(qQ$,{region:function(){var F,D;return(F=B())==null?void 0:(D=F.regions)==null?void 0:D[0]}},_.l(EUU,Object.assign({},G))))},"Dk"),"yt-player-overlay-interaction",{props:{data:_.Hd}});var h1G=_.Y(function(G){var B=G.data;var F=G.index;var D=G.selectedChoice;var u=function(){var R;return _.Q((R=B())==null?void 0:R.renderer,gB$)};
G={};return _.l("yt-overlay-poll-sticker-choice",{class:_.tx("ytOverlayPollStickerChoiceHost"),style:_.xN({"--displayed-percentage":function(){var R,N,y,U;return""+Math.ceil(Number((D==null?void 0:D())===F()?(R=u())==null?void 0:(N=R.selected)==null?void 0:N.progressBarWidth:(y=u())==null?void 0:(U=y.unselected)==null?void 0:U.progressBarWidth)*100)}})},_.l("div",{class:_.tx("ytOverlayPollStickerChoicePollChoice",(G.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(D==null?void 0:D())!==
void 0},G.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(D==null?void 0:D())===F()},G))},_.l("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var R;
return((R=u())==null?void 0:R.text)||""}),_.l("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(D==null?void 0:D())==="undefined")var R="";
else{var N,y,U,q;R=(D==null?void 0:D())===F()?(N=u())==null?void 0:(y=N.selected)==null?void 0:y.votePercentage:(U=u())==null?void 0:(q=U.unselected)==null?void 0:q.votePercentage}return R})))},"Fk");var Ks$=_.Y(function(G){var B=G.data;var F=G.enableDebuggingFeatures;var D=_.FT(function(R){var N,y=((N=B())==null?void 0:N.postPollStateEntityKey)||"";R=_.g5(R.entities,"postPollStateEntity",y);var U;return((U=B())==null?0:U.viewerIsOwner)?Object.assign({},R,{selectedOptionId:-1,voted:!0}):R}),u=_.te().resolve(_.Wr);
G={};return _.l("yt-overlay-poll-sticker",null,_.l(qQ$,{region:function(){var R,N;return(R=B())==null?void 0:(N=R.region)==null?void 0:N.interactionRegion}},_.l("div",{class:_.tx("ytOverlayPollStickerHost",(G.ytOverlayPollStickerDebugStyle=function(){return F==null?void 0:F()},G)),
style:_.xN({"--original-height":function(){var R;return""+(((R=B())==null?void 0:R.mainBodyHeight)||1)},
"--original-width":function(){var R;return""+(((R=B())==null?void 0:R.mainBodyWidth)||1)},
"--scaled-width":function(){var R;return""+(((R=B())==null?void 0:R.mainBodyWidth)||1)},
"--primary-surface":function(){var R,N;return jDD(((R=B())==null?void 0:(N=R.theme)==null?void 0:N.primarySurface)||0)},
"--raised-surface":function(){var R,N;return jDD(((R=B())==null?void 0:(N=R.theme)==null?void 0:N.raisedSurface)||0)},
"--secondary-surface":function(){var R,N;return jDD(((R=B())==null?void 0:(N=R.theme)==null?void 0:N.secondarySurface)||0)},
"--primary-text":function(){var R,N;return jDD(((R=B())==null?void 0:(N=R.theme)==null?void 0:N.primaryText)||0)},
"--secondary-text":function(){var R,N;return jDD(((R=B())==null?void 0:(N=R.theme)==null?void 0:N.secondaryText)||0)}})},_.l("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return B().questionText}," "),_.l(_.jR,{each:function(){return B().pollChoiceConfigs||[]}},function(R,N){return _.l("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.gJ(function(){var y=N(),U;if((U=B())==null||!U.viewerIsOwner){var q,h;U=(q=B())==null?void 0:(h=q.pollChoiceConfigs)==null?void 0:h[y];if(h=(U==null?0:U.renderer)?_.Q(U.renderer,gB$):void 0){var K;q=((K=D())==null?void 0:K.selectedOptionId)!==y;var a;if(K=(a=q?h.selectedPollCommand:h.deselectedPollCommand)==null?void 0:a.innertubeCommand){u.resolveCommand(K);var m,L;_.oy().dispatch(_.wC("postPollStateEntity",((m=D())==null?void 0:m.key)||"",{key:((L=D())==null?void 0:L.key)||"",selectedOptionId:q?
y:-1,voted:q}))}}}})},_.l(h1G,{data:R,
index:N,selectedChoice:function(){var y,U;return((y=D())==null?0:y.voted)?(U=D())==null?void 0:U.selectedOptionId:void 0}}))}),_.l("div",{class:"ytOverlayPollStickerVoteCount"},function(){var R,N;
return((R=D())==null?0:R.voted)&&((N=D())==null?void 0:N.selectedOptionId)!==-1?B().postVoteCountText:B().preVoteCountText}))))},"Gk");_.YN(_.Y(function(G){var B=G.data;G=_.mS(function(){var F;return _.X("enable_shorts_poll_stickers_web")?(((F=B())==null?void 0:F.stickers)||[]).filter(function(D){return D.pollSticker}):[]},void 0,"Cflxwb");
return _.l("yt-stickers-layer",null,_.l(_.jR,{each:G},function(F){return _.l(Ks$,{data:F.pollSticker,enableDebuggingFeatures:function(){var D;return(D=B())==null?void 0:D.enableDebuggingFeatures}})}))},"Hk"),"yt-stickers-layer",{props:{data:_.Hd}});var jZ=function(){var G=_.p.apply(this,arguments)||this;G.showScrubber=!1;G.isWatchWhileMode=!1;G.enableAnchoredPanel=_.X("desktop_shorts_v2_anchored_panel");G.enablePollStickers=_.X("enable_shorts_poll_stickers_web");G.anchoredPanelActive=!1;G.enableLivingroomLayout=_.X("reels_enable_livingroom_layout");G.enablePlayerMetadataContainer=_.X("reels_web_enable_metadata_container");G.enableSqueezebackPanels=_.X("web_shorts_enable_squeezeback_panels");G.useAspectRatio=_.X("web_use_aspect_ratio");G.isSqueezebackActive=
!1;G.smallScreenSqueezeback=!1;G.isPlayerStarted=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.isOverlay=!1;G.isImmersive=!1;G.isImmersiveHorizontal=!1;G.isFullscreen=!1;G.onWindowResized=function(){var B;G.set("isImmersive",((B=window.getComputedStyle(G.hostElement))==null?void 0:B.getPropertyValue("--immersive-mode-on"))==="1");G.set("isImmersiveHorizontal",G.isImmersive&&G.enableLivingroomLayout&&!G.isWatchWhileMode)};
return G};
_.r(jZ,_.p);_.w=jZ.prototype;_.w.updateIsOverlay=function(G){this.isOverlay=G.detail.value};
_.w.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.w.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.w.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.w.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.w.onOverlayDensityChange=function(){var G=_.IF(this.hostElement).querySelector("ytd-info-panel-container-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.extractOverlay))};
_.w.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.w.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.w.ready=function(){(_.X("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.X("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.xf("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.xf("reels_action_justified_content")||"flex-start")};
_.w.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.w.setFakeLoadingButtons=function(){_.X("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.G7("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.G7("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.G7("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.G7("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.G7("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()};
_.w.setEmptyOverlayMetadata=function(){_.X("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}))};
_.ZN.Object.defineProperties(jZ.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoPanel)}}});
jZ.prototype.onOverlayDensityChange=jZ.prototype.onOverlayDensityChange;jZ.prototype.onIsActiveChanged=jZ.prototype.onIsActiveChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],jZ.prototype,"ytdReduxBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],jZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],jZ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],jZ.prototype,"isActive",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],jZ.prototype,"hidden",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],jZ.prototype,"useShortsIcon",void 0);
_.c([_.v({value:"left"}),_.I("design:type",String)],jZ.prototype,"buttonTooltipPosition",void 0);_.c([_.v({value:_.X("reels_enable_livingroom_layout")?"top":"left"}),_.I("design:type",String)],jZ.prototype,"likeButtonTooltipPosition",void 0);_.c([_.v({value:"none"}),_.I("design:type",String)],jZ.prototype,"textTransform",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"showScrubber",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"isWatchWhileMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.infoPanel"),_.I("design:type",Object),_.I("design:paramtypes",[])],jZ.prototype,"hasInfoPanel",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"enableAnchoredPanel",void 0);_.c([_.v(),_.I("design:type",Object)],jZ.prototype,"enablePollStickers",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"anchoredPanelActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"enableLivingroomLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],jZ.prototype,"enablePlayerMetadataContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"enableSqueezebackPanels",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"useAspectRatio",void 0);_.c([_.v({selector:_.NM8,reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"isSqueezebackActive",void 0);_.c([_.v({selector:mDD,reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"smallScreenSqueezeback",void 0);_.c([_.v({selector:X2$}),_.I("design:type",Object)],jZ.prototype,"isPlayerStarted",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"overlayDensity",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"extractOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"extractActionBar",void 0);_.c([_.v(),_.I("design:type",Object)],jZ.prototype,"isOverlay",void 0);_.c([_.v(),_.I("design:type",Object)],jZ.prototype,"isImmersive",void 0);
_.c([_.v(),_.I("design:type",Object)],jZ.prototype,"isImmersiveHorizontal",void 0);_.c([_.v({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.I("design:type",Boolean)],jZ.prototype,"isShortsImmersive",void 0);_.c([_.v({computed:"computeButtonOverride(extractActionBar)"}),_.I("design:type",Object)],jZ.prototype,"buttonOverride",void 0);
_.c([_.v({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.I("design:type",Object)],jZ.prototype,"actionBarButtonOverride",void 0);_.c([_.v({selector:_.Ix,reflectToAttribute:!0}),_.I("design:type",Object)],jZ.prototype,"isFullscreen",void 0);_.c([_.Ga("isActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jZ.prototype,"onIsActiveChanged",null);
_.c([_.Ga("extractOverlay"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jZ.prototype,"onOverlayDensityChange",null);_.c([_.mC({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],jZ);
_.d(jZ,"ytd-reel-player-overlay-renderer",function(){if(nUA!==void 0)return nUA;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return nUA=G},{mode:1});var a2D;var Lm=function(){var G=_.p.apply(this,arguments)||this;G.videoDuration=0;G.playedTime=0;G.isActive=!1;G.JSC$22078_playerEvents=new Map;return G};
_.r(Lm,_.p);_.w=Lm.prototype;_.w.created=function(){this.JSC$22078_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22078_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.w.attached=function(){this.getPlayerAndInitializeListeners()};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22078_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.x7(this,this.onPageChanged))};
_.w.getPlayerAndInitializeListeners=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return B=_.AZ(),B?F.yield(B.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.x7(G,G.onPageChanged)),F.jumpTo(0));G.player=F.yieldResult;G.initializePlayerListeners();_.di(F)})};
_.w.onPageChanged=function(G){var B=this;return _.n(function(F){if(F.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?F.return():F.yield(_.de().getPlayerPromise(),2);B.player=F.yieldResult;B.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.x7(B,B.onPageChanged));_.di(F)})};
_.w.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22078_playerEvents)};
_.w.onVideoDataChange=function(G){var B=this;return _.n(function(F){if(!B.player||G.type!=="newdata")return F.return();B.videoDuration=_.X("web_shorts_use_progress_state_for_gapless")?B.player.getProgressState(G.playertype).seekableEnd:B.player.getDuration(G.playertype);B.playedTime=0;_.di(F)})};
_.w.onVideoProgress=function(G){var B=this,F,D;return _.n(function(u){if(!B.player)return u.return();F=B.player.getPresentingPlayerType();D=B.player.getPlayerState();B.videoDuration=_.X("web_shorts_use_progress_state_for_gapless")?B.player.getProgressState(F).seekableEnd:B.player.getDuration(F);B.playedTime=D===0?B.videoDuration:G;_.di(u)})};
_.w.getPercentPlayed=function(G,B){return G?_.ki(B/G,0,1):0};
_.ZN.Object.defineProperties(Lm.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 G="";return G=this.videoDuration&&this.playedTime?G+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):G+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Lm.prototype,"componentBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],Lm.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Lm.prototype,"player",void 0);_.c([_.v(),_.I("design:type",Object)],Lm.prototype,"videoDuration",void 0);_.c([_.v(),_.I("design:type",Object)],Lm.prototype,"playedTime",void 0);_.c([_.v(),_.I("design:type",Object)],Lm.prototype,"isActive",void 0);
_.c([_.O("videoDuration","playedTime"),_.I("design:type",Number),_.I("design:paramtypes",[])],Lm.prototype,"percentPlayed",null);_.c([_.O("videoDuration","playedTime"),_.I("design:type",Object),_.I("design:paramtypes",[])],Lm.prototype,"percentPlayedStyle",null);_.c([_.O("videoDuration","isActive"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Lm.prototype,"hideProgressBar",null);
_.d(Lm,"ytd-progress-bar-line",function(){if(a2D===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);a2D=G}G=a2D;return G},{mode:2});var mJ$;_.YN(uYG,"ytm-closed-captioning-button",{props:{captionIconType:_.Hd,onClick:_.oh,ariaLabel:_.Hd,ariaPressed:_.Hd,isOverlay:_.oh}});_.YN(_.ybA,"volume-controls",{props:{orientation:_.Hd}});var rH=function(){var G=_.p.apply(this,arguments)||this;G.playerState=null;G.isMuted=!1;G.volumeControlsOrientationState="horizontal_right";G.isOverlay=!0;G.isAdsOverlay=!1;G.captionIconType=-1;G.ariaLabel="";G.overlayDensity=0;G.JSC$22081_playerEvents=new Map;G.onClosedCaptionsButtonClick=function(){G.player&&HJS(G.player)&&(G.player.toggleSubtitles(),G.updateCaptionIconType())};
return G};
_.r(rH,_.p);_.w=rH.prototype;_.w.created=function(){this.JSC$22081_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22081_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22081_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.w.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.ge(28662);this.playPauseButtonClientVE=_.ge(36842);this.fullscreenButtonToggleOffClientVE=_.ge(222256);this.fullscreenButtonToggleOnClientVE=_.ge(222257);var G=_.qW(),B=_.Uw();G&&B&&(_.X("combine_ve_grafts")?(_.Zx(_.Rh(),this.muteButtonClientVE,B),_.Zx(_.Rh(),this.playPauseButtonClientVE,B)):_.HT(G,B,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22081_playerEvents),this.player=null)};
_.w.updateCaptionIconType=function(){var G=-1,B=void 0,F=_.G7("CLOSED_CAPTIONS_DISABLED");this.player&&HJS(this.player)&&(kxD(this.player)?(B=!0,F=_.G7("CLOSED_CAPTIONS_ON"),G=1):(B=!1,F=_.G7("CLOSED_CAPTIONS_OFF"),G=0));this.captionIconType=G;this.ariaPressedState=B;this.ariaLabel=F};
_.w.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.w.getPlayerAndInitializeListeners=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return B=_.AZ(),B?F.yield(B.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.x7(G,G.onPageChanged)),F.jumpTo(0));G.player=F.yieldResult;G.initializePlayerListeners();_.di(F)})};
_.w.onPageChanged=function(G){var B=this;return _.n(function(F){if(F.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?F.return():F.yield(_.de().getPlayerPromise(),2);B.player=F.yieldResult;B.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.x7(B,B.onPageChanged));_.di(F)})};
_.w.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22081_playerEvents);this.updateCaptionIconType()};
_.w.onPlayerStateChange=function(G){this.playerState=G};
_.w.onPlayerVolumeChange=function(G){this.isMuted=G.muted};
_.w.onPlayPauseButtonClick=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(_.de().getPlayerPromise(),2);B=D.yieldResult;(F=_.qW())&&G.playPauseButtonClientVE&&_.$I(F,G.playPauseButtonClientVE);B.getPlayerState()!==1?B.playVideo():B.pauseVideo();_.di(D)})};
_.w.computePlayPauseIcon=function(G){return G===2||G===-1||G===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.w.computeFullscreenLabel=function(G){return G?_.G7("FULLSCREEN_EXIT_LABEL"):_.G7("FULLSCREEN_ENTER_LABEL")};
_.w.computePlayPauseLabel=function(G){return G===1||G===3?_.G7("PLAYER_LABEL_PAUSE"):_.G7("PLAYER_LABEL_PLAY")};
_.w.onMuteButtonClick=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(_.de().getPlayerPromise(),2);B=D.yieldResult;(F=_.qW())&&G.muteButtonClientVE&&_.$I(F,G.muteButtonClientVE);B.isMuted()?B.unMute(!0):B.mute(!0);_.di(D)})};
_.w.computeMuteIcon=function(G){return G?"miniplayer:volume-off":"miniplayer:volume-up"};
_.w.computeMuteLabel=function(G){return G?_.G7("PLAYER_LABEL_UNMUTE"):_.G7("PLAYER_LABEL_MUTE")};
_.w.onFullscreenButtonClick=function(){var G=_.qW();G&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.$I(G,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.$I(G,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();pL$()};
_.ZN.Object.defineProperties(rH.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var G=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(){G.onPlayPauseButtonClick()},
disableBackdropFilter:!0,customColors:{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:!0,customColors:{backgroundColor:"transparent"}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"player_full_exit_alt":"player_full_enter_alt"}}});
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],rH.prototype,"componentBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],rH.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],rH.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"player",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"playerState",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"isMuted",void 0);
_.c([_.v({computed:"computePlayPauseIcon(playerState)"}),_.I("design:type",String)],rH.prototype,"playPauseIcon",void 0);_.c([_.v({computed:"computeMuteIcon(isMuted)"}),_.I("design:type",String)],rH.prototype,"muteIcon",void 0);_.c([_.v({selector:_.Ix}),_.I("design:type",Boolean)],rH.prototype,"isFullscreen",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"volumeControlsOrientationState",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"isOverlay",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rH.prototype,"isAdsOverlay",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"captionIconType",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"ariaLabel",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"ariaPressedState",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],rH.prototype,"overlayDensity",void 0);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"data",void 0);
_.c([_.v({computed:"computeActionBarButtonOverride()"}),_.I("design:type",Object)],rH.prototype,"actionBarButtonOverride",void 0);_.c([_.O("playerState"),_.I("design:type",Object),_.I("design:paramtypes",[])],rH.prototype,"playPauseButtonData",null);_.c([_.O("isFullscreen"),_.I("design:type",Object),_.I("design:paramtypes",[])],rH.prototype,"fullscreenButtonData",null);_.c([_.v(),_.I("design:type",Object)],rH.prototype,"onClosedCaptionsButtonClick",void 0);
_.c([_.O("isFullscreen"),_.I("design:type",String),_.I("design:paramtypes",[])],rH.prototype,"fullscreenIcon",null);
_.d(rH,"ytd-shorts-player-controls",function(){if(mJ$===void 0){var G=document.createElement("template");_.H(G,'\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<div id="left-controls" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></volume-controls>\n</div>\n<div id="right-controls" class="style-scope ytd-shorts-player-controls">\n  <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n    <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n    </ytm-closed-captioning-button>\n  </div>\n  <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n    <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n  </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);mJ$=G}G=mJ$;return G},{mode:1});var XDH;_.YN(_.WnA,"yt-interstitial-view-model",{props:{data:_.Hd}});var QwH=_.Y(function(G){var B=G.data;return _.l("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.l("h1",{class:"reelWatchBreakViewModelHostTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l("h2",{class:"reelWatchBreakViewModelHostBody"},_.l(_.Wd,{text:function(){return B().body},
isOverlay:!0})),_.l(_.uR,{data:function(){return B().buttons}},{buttonViewModel:function(F,D){return _.l("div",{class:function(){return D()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.l(_.cd,{data:F.data}))}}))},"Ik");
QwH.idomCompat=!0;_.YN(QwH,"reel-watch-break-view-model",{props:{data:_.Hd}});var Wn=function(){return _.p.apply(this,arguments)||this};
_.r(Wn,_.p);Wn.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}}};
_.ZN.Object.defineProperties(Wn.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.Q((G=this.data)==null?void 0:G.renderer,bF$)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.Q((G=this.data)==null?void 0:G.renderer,$1z)}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Wn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Wn.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Wn.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Wn.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data.renderer"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Wn.prototype,"isSurvey",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.renderer"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Wn.prototype,"isInterstitialViewModel",null);_.c([_.mC({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Wn);
_.d(Wn,"ytd-reel-non-video-content-renderer",function(){if(XDH!==void 0)return XDH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return XDH=G},{mode:2});var jw$;_.YN(_.Na$,"desktop-shorts-player-controls",{});var Hn=function(){var G=_.p.apply(this,arguments)||this;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.showPlayerControls=!1;G.showScrubber=!1;G.autoHideJobId=0;G.overlayType=_.xf("web_shorts_expanded_overlay_type");G.panelData=void 0;G.isWatchWhileMode=!1;G.hasError=!1;G.panelShowDelayMs=1;G.scrubberComponent={};G.isFullscreen=!1;G.shouldHideOverlay=!1;G.enableAnchoredPanel=_.X("desktop_shorts_v2_anchored_panel");G.enablePersistentAnchoredPanel=_.X("desktop_shorts_v2_persistent_anchored_panel");G.hideWatchWhilePanel=
_.X("web_shorts_hide_watch_while_panel");G.useAspectRatio=_.X("web_use_aspect_ratio");G.isPersistentPanelActive=!1;G.anchoredPanelActive=!1;G.isShortsPipActive=!1;G.smallScreenSqueezeback=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};G.onWindowResized=function(){_.kT(G,"calculateOverlayDensity",function(){G.calculateOverlayDensity()},
100)};
return G};
_.r(Hn,_.p);_.w=Hn.prototype;_.w.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.w.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.w.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var G=_.te().resolve(_.yR);this.isWatchWhileMode&&_.Lu.addJob(function(){G.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.w.handleShowReelsCommentsOverlayCommand=function(G){G=_.Q(G,nBz);this.isActive&&(G==null?0:G.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))};
_.w.updateEngagementPanelVisibility=function(G,B){G&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:B?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:G}})};
_.w.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.w.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.te().resolve(_.DG).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.w.handleWatchWhilePanelScrimClick=function(){var G=_.te().resolve(_.yR);this.activeWatchWhilePanel&&(G.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.w.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.w.configureRendererStamper=function(){var G;return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},renderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:(G=kkA[_.xf("web_shorts_overlay_render_priority")])!=null?G:0}}};
_.w.handlePlayerClick=function(G){var B=this,F,D;if((D=(F=window).matchMedia)!=null&&D.call(F,"(any-pointer: coarse)").matches||!G)this.showPlayerControls=!0,_.Lu.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Lu.addJob(function(){B.showPlayerControls=!1},0,4E3)};
_.w.isFirstReel=function(){return this.index===0};
_.w.handleMouseenter=function(){_.Lu.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.w.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.w.handleScrubberEnter=function(){this.showScrubber=!0};
_.w.handleScrubberLeave=function(){this.showScrubber=!1};
_.w.maybeLogNonDefaultAspectRatio=function(){var G;(G=this.data)!=null&&G.thumbnail&&this.isActive&&.5625!==f4D(this.data.thumbnail)&&_.Z0S("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.w.calculateOverlayDensity=function(){var G=document.querySelector("#shorts-container");if(G){var B=!1,F,D=this.playerContainer.offsetWidth,u=this.playerContainer.offsetHeight;G=G.offsetWidth/2-D/2;G>=368?(G=1,B=F=!0):G>=72?(G=0,F=!0):(G=2,F=!1);D>=600&&u>=840?G=1:window.innerWidth<=599&&(G=2,F=B=!1);this.isPersistentPanelActive&&(G=0,B=!1);this.extractActionBar=F;this.overlayDensity=G;this.extractOverlay=B;var R;(R=this.onOverlayDensityChanged)==null||R.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.w.onOverlayDensityChange=function(){var G;(G=this.onOverlayDensityChanged)==null||G.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(G=_.IF(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))G.set("overlayDensity",this.overlayDensity),G.set("extractOverlay",this.extractOverlay),G.set("extractActionBar",this.extractActionBar);if(G=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))G.overlayDensity=this.overlayDensity,G.extractOverlay=
this.extractOverlay,G.extractActionBar=this.extractActionBar};
_.w.isVideoContent=function(G){_.te().resolve(_.DG);return!!_.Q(G,_.Fu)};
_.w.isNonVideoContent=function(G){_.te().resolve(_.DG);return!!_.Q(G,_.a1)};
_.w.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.ZN.Object.defineProperties(Hn.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&this.isPlayerStarted}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isActive||!this.isPlayerStarted||(G=this.data)!=null&&G.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.command)&&this.isVideoContent(this.data.command)){var B,F;if(((B=this.data)==null?0:B.adsOverlay)&&Object.keys((F=this.data)==null?void 0:F.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var D,u;if(((D=this.data)==null?0:D.reelPlayerOverlayRenderer)&&Object.keys((u=this.data)==null?void 0:u.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Hn.prototype.onOverlayDensityChange=Hn.prototype.onOverlayDensityChange;Hn.prototype.calculateOverlayDensity=Hn.prototype.calculateOverlayDensity;Hn.prototype.maybeLogNonDefaultAspectRatio=Hn.prototype.maybeLogNonDefaultAspectRatio;Hn.prototype.onEngagementPanelsChanged=Hn.prototype.onEngagementPanelsChanged;Hn.prototype.onScrubberDataChange=Hn.prototype.onScrubberDataChange;Hn.prototype.updateShouldHideOverlay=Hn.prototype.updateShouldHideOverlay;
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],Hn.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],Hn.prototype,"index",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Hn.prototype,"isActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Hn.prototype,"isHiddenInDom",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"isPlayerPaused",void 0);_.c([_.v({selector:X2$}),_.I("design:type",Object)],Hn.prototype,"isPlayerStarted",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"showPlayerControls",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"showScrubber",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"autoHideJobId",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"overlayType",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Hn.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Hn.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"watchWhileEngagementPanels",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"panelData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"isWatchWhileMode",void 0);_.c([_.v(),_.I("design:type",String)],Hn.prototype,"activeWatchWhilePanel",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"hasError",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"panelShowDelayMs",void 0);
_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"scrubberComponent",void 0);_.c([_.v({selector:_.Ix,reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"isFullscreen",void 0);_.c([_.v(),_.I("design:type",Object)],Hn.prototype,"shouldHideOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"enableAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"enablePersistentAnchoredPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"hideWatchWhilePanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"useAspectRatio",void 0);_.c([_.v({selector:_.NM8,reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"isPersistentPanelActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"anchoredPanelActive",void 0);
_.c([_.v({selector:_.fh,reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"isShortsPipActive",void 0);_.c([_.v({selector:mDD,reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"smallScreenSqueezeback",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data.adsOverlay"),_.I("design:type",Object),_.I("design:paramtypes",[])],Hn.prototype,"isAdsOverlay",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"overlayDensity",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"extractOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Hn.prototype,"extractActionBar",void 0);_.c([_.v(),_.I("design:type",Function)],Hn.prototype,"onOverlayDensityChanged",void 0);_.c([_.v(),_.O("isActive","hasError","isPlayerStarted"),_.I("design:type",Object),_.I("design:paramtypes",[])],Hn.prototype,"shouldRenderPlayerElements",null);
_.c([_.v(),_.O("isActive","isWatchWhileMode"),_.I("design:type",Object),_.I("design:paramtypes",[])],Hn.prototype,"watchWhileOrPersistentActive",null);_.c([_.Ga("isActive","hasError","showingExpandedOverlay"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hn.prototype,"updateShouldHideOverlay",null);
_.c([_.v({reflectToAttribute:!0}),_.O("isActive","isPlayerStarted","data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Hn.prototype,"shouldRenderScrubber",null);_.c([_.Ga("shouldRenderScrubber"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hn.prototype,"onScrubberDataChange",null);_.c([_.O("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],Hn.prototype,"overlayComponent",null);
_.c([_.Ga("watchWhileEngagementPanels"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hn.prototype,"onEngagementPanelsChanged",null);_.c([_.iA("#player-container"),_.I("design:type",HTMLElement)],Hn.prototype,"playerContainer",void 0);_.c([_.iA("#cinematic-container"),_.I("design:type",HTMLElement)],Hn.prototype,"cinematicContainer",void 0);
_.c([_.Ga("isPersistentPanelActive","data.thumbnail"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hn.prototype,"maybeLogNonDefaultAspectRatio",null);_.c([_.Ga("isPersistentPanelActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hn.prototype,"calculateOverlayDensity",null);
_.c([_.Ga("overlayDensity","extractOverlay","extractActionBar"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hn.prototype,"onOverlayDensityChange",null);_.c([_.mC({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Hn);
_.d(Hn,"ytd-reel-video-renderer",function(){if(jw$!==void 0)return jw$;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div id="video-filtering-overlay-container" class="style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jw$=G},{mode:2});var kg=function(){var G=_.p.apply(this,arguments)||this;G.isPreviousPageShorts=!1;G.index=0;G.delayedActiveIndex=0;G.playablePreviousIndex=null;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.intersectionObserverThreshold=.6;G.fitToVisibleBounds=!1;G.pageSubtype="shorts";G.enablePreviousContinuation=_.X("shorts_in_playlists_web");G.shortsPipEnabled=_.X("web_shorts_pip");G.isDark=document.documentElement.hasAttribute("dark");G.shortsViewTransitions=_.X("web_shorts_view_transitions");G.isFullscreen=!1;G.isShortsPipActive=
!1;G.buttonOverride={iconPosition:"icon-only",size:"XL"};G.anchoredPanelActive=!1;G.isActive=!1;G.smallScreenPersistentPanel=!1;G.isPersistentPanelActive=!1;G.smallScreenSqueezeBack=!1;G.enableScrollIntoViewCenter=_.X("web_scroll_into_view_center");G.extractOverlay=!1;G.useAspectRatio=_.X("web_use_aspect_ratio");G.continuationRequestPending=!1;G.carouselContainers=[];G.isShortsInitialized=!1;G.hasDataUpdated=!1;G.playerInPosition=!1;G.hidePreviousButtonImmediately=!1;G.showPreviousButtonImmediately=
!1;G.endOfNextContinuation=!1;G.currentPlayerIndex=0;G.nextReelVe=_.ge(56921);G.prevReelVe=_.ge(56922);G.loopToggleOffVe=_.ge(198013);G.loopToggleOnVe=_.ge(198014);G.ambientModeToggleVe=_.ge(227860);G.reelPlayerPausedStateRendererVe=_.ge(141313);G.storedPlaybackSpeed=null;G.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand",
"yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff","yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};
G.onOverlayDensityChanged=function(B,F,D,u){B=G.getActiveReelVideo(B);G.extractOverlay=!!D;B==null||B.setAttribute("overlay-density",String(F));D===void 0||B!=null&&B.toggleAttribute("extract-overlay",D);u===void 0||B!=null&&B.toggleAttribute("extract-action-bar",u)};
return G};
_.r(kg,_.p);_.w=kg.prototype;_.w.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.w.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.w.onResize=function(){var G=_.VU(),B=G.dispatch,F=this.calculateIsSmallWidth();B.call(G,_.d5({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:F}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.w.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.w.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var G=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,B=G,F=0;G<250&&(B=G+this.shortsInnerContainer.clientWidth,F=24);_.Ss(this.hostElement,{"--ytd-shorts-header-width":B+"px","--ytd-shorts-top-spacing":F+"px"})}};
_.w.isFirstShorts=function(G){return G?this.index===-G.length:this.index===0};
_.w.isActiveReel=function(G,B,F){F&&(B=this.calculatePrevIndex(B,F));return G===B};
_.w.onFullscreenChange=function(){_.X("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.te().resolve(_.WP).close(!0))};
_.w.engagementPanelsChanged=function(){var G;this.watchWhileEngagementPanels=(G=this.data)==null?void 0:G.engagementPanels};
_.w.unregisterPanels=function(){var G=_.te().resolve(_.yR);if(this.watchWhileEngagementPanels)for(var B=_.C(this.watchWhileEngagementPanels),F=B.next();!F.done;F=B.next()){var D=F.value,u=void 0,R=void 0;F=(u=D.engagementPanelSectionListRenderer)==null?void 0:(R=u.identifier)==null?void 0:R.tag;D=this.getPanelIdentifier(D.engagementPanelSectionListRenderer);G&&(F&&G.panelMap.delete(F),D&&_.X("web_shorts_panel_caching_bugfix")&&(u=F=void 0,(u=(F=G).unregisterPanelContent)==null||u.call(F,D)))}};
_.w.isVideoContent=function(G){return this.isVideoContentCommand(G==null?void 0:G.command)};
_.w.getActiveReelVideo=function(G){return _.IF(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+G+'"]')};
_.w.calculatePrevIndex=function(G,B){return B?G-((B==null?void 0:B.length)||0):-1};
_.w.onKeydown=function(G){var B=_.VW(G)||[];if(!nz$(B))if(G.code==="ArrowUp")G.preventDefault(),this.handlePrevButtonClick();else if(G.code==="ArrowDown")G.preventDefault(),this.handleNextButtonClick();else if(G.code==="KeyM")this.toggleMuteUnmuteVideo();else if(G.code==="KeyK"||G.code==="Space")this.togglePlayPauseVideo();else if((G.code==="KeyA"||G.code==="ArrowLeft")&&_.X("web_shorts_keyboard_enable_seek_shortcuts")){var F;(F=this.player)==null||F.seekBy(-5)}else if((G.code==="KeyD"||G.code===
"ArrowRight")&&_.X("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var D;(D=this.player)==null||D.seekBy(5)}};
_.w.onServiceRequestCompleted=function(G,B){G=B.data;G.continuationEndpoint&&G.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:G.entries,continuationEndpoint:G.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=G):G.prevContinuationEndpoint&&G.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:G.prevEntries,prevContinuationEndpoint:G.prevContinuationEndpoint}}):
this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.w.handleEngagementPanelVisibilityChanged=function(G,B){var F=_.te().resolve(_.yR);if(G&&F){var D=this.getPanelIdentifier(G);if(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==D){F.hidePanel({identifier:this.activePanel});var u;this.activePanel=((u=G.identifier)==null?void 0:u.tag)||G.panelIdentifier}else this.isPersistentPanelActive=!0,_.VU().dispatch(V7U(!0)),this.anchoredPanelActive=!0,this.activePanel=D;else B==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===D&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.VU().dispatch(V7U(!1)))}};
_.w.handlePanelScrimClick=function(){var G=_.te().resolve(_.yR);this.activePanel&&(G.hidePanel({identifier:this.activePanel}),_.VU().dispatch(V7U(!1)))};
_.w.getShortsLoopSetting=function(){var G,B,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return _.X("kevlar_shorts_auto_advance")?R.yield(_.nM.getInstance(),2):R.return(!0);case 2:return(G=R.yieldResult)?R.yield(G.get("sfvles"),3):R.return(!0);case 3:return F=(B=R.yieldResult)!=null?B:!1,R.yield(G.get("sfvle"),4);case 4:return u=(D=R.yieldResult)!=null?D:!0,F?R.return(u):R.return(!0)}})};
_.w.handleSignalActionToggleLoopShortsOff=function(){var G=this,B,F,D;return _.n(function(u){switch(u.nextAddress){case 1:if(!G.player)return u.return();G.player.setLoopVideo(!1);B=_.Rh();_.S0(B,G.loopToggleOffVe);return u.yield(_.nM.getInstance(),2);case 2:return(F=u.yieldResult)?u.yield(F.set("sfvle",!1),3):u.return();case 3:return u.yield(F.set("sfvles",!0),4);case 4:D=_.D4(),_.uf(0,203,!1),_.uf(0,204,!0),D.save(),_.di(u)}})};
_.w.handleSignalActionToggleLoopShortsOn=function(){var G=this,B,F,D;return _.n(function(u){switch(u.nextAddress){case 1:if(!G.player)return u.return();G.player.setLoopVideo(!0);B=_.Rh();_.S0(B,G.loopToggleOnVe);return u.yield(_.nM.getInstance(),2);case 2:return(F=u.yieldResult)?u.yield(F.set("sfvle",!0),3):u.return();case 3:return u.yield(F.set("sfvles",!0),4);case 4:D=_.D4(),_.uf(0,203,!0),_.uf(0,204,!0),D.save(),_.di(u)}})};
_.w.handleSignalActionToggleCinematicShortsOn=function(){bJ$(!0);var G;(G=this.JSC$22106_cinematicController)==null||r$G(G,!0);_.S0(_.Rh(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.w.handleSignalActionToggleCinematicShortsOff=function(){bJ$(!1);var G;(G=this.JSC$22106_cinematicController)==null||r$G(G,!1);_.S0(_.Rh(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.w.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.w.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.w.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var G=this.overlayContainer.querySelector("#experiment-overlay");G&&_.Lu.addLowPriorityJob(function(){G.style.display="unset"},100)}else if(this.overlayContainer){var B;
((B=this.playerElement.getPlayer())==null?void 0:B.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.w.getCurrentShort=function(){if(this.currentEndpoint){var G=this.currentEndpoint;if(this.isNonVideoContentCommand(G)){var B=_.Q(G,_.a1);return{reelNonVideoContentRenderer:_.Q(B==null?void 0:B.renderer,_.H9q),command:G}}if(this.data){var F;B=(F=_.Q(this.currentEndpoint,_.Fu))==null?void 0:F.thumbnail;var D;F=(D=this.data.overlay)==null?void 0:D.reelPlayerOverlayRenderer;_.te().resolve(_.DG);G=this.data;var u,R;D=(u=G.overlay)==null?void 0:(R=u.shortsAdsRenderer)==null?void 0:R.adSlots;if(D!==void 0)D.length===
0?(_.$P("Shorts ads returned no ad slots."),G=void 0):(D.length>1&&_.$P("Shorts ads has more than one ad slots."),G=_.Q(D[0],_.id7));else{var N,y;G=_.Q((N=G.overlay)==null?void 0:(y=N.shortsAdsRenderer)==null?void 0:y.overlay,_.id7)}N=G;G=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Q(this.currentEndpoint,_.Fu),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var U;return{reelPlayerOverlayRenderer:F,thumbnail:B,command:G,adsOverlay:N,
videoId:(U=_.Q(this.currentEndpoint,_.Fu))==null?void 0:U.videoId}}}};
_.w.created=function(){var G=this;this.scrollToVideoThrottle=new _.s_(function(B,F){F=F===void 0?"smooth":F;var D;(D=G.getActiveReelVideo(B))==null||D.scrollIntoView({behavior:F,block:"nearest",inline:G.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.te().resolve(_.DG);this.maybeCreateIntersectionObserver()};
_.w.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.w.attached=function(){var G=this;_.te().resolve(_.DG).registerRootElement(this);this.pageScrollElement=_.IF(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.x7(this,this.processResetAction));_.X("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){G.maybeCreateIntersectionObserver();G.scrollToVideoThrottle.fire(G.activeIndex,"instant");G.shortsContainer.style.overflowY=
"scroll"}))};
_.w.calculateSqueezebackPanelSize=function(){var G=this,B=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Lu.addLowPriorityJob(function(){B<360?(G.hostElement.style.setProperty("--anchored-panel-width","480px"),_.VU().dispatch(vCU(!0))):(G.hostElement.style.setProperty("--anchored-panel-width",Math.min(B,480)+"px"),_.VU().dispatch(vCU(!1)))})};
_.w.detached=function(){var G=_.te().resolve(_.DG);G.rootElement=void 0;var B;(B=G.unsubscribeFromStore)==null||B.call(G);G.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.x7(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.w.onResizeFinished=function(G,B){var F=this,D=new ResizeObserver(function(){F.shortsContainer.style.overflowY="hidden";_.Lu.addLowPriorityJob(function(){B()},100)});
D.observe(G);return D};
_.w.resetDocumentScrollTop=function(){var G,B;if((G=document)==null?0:(B=G.scrollingElement)==null?0:B.scrollTop)document.scrollingElement.scrollTop=0};
_.w.loadPage_=function(G){var B=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),G){var F;if((F=_.Q(this.currentEndpoint,_.Fu))==null?0:F.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=G;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){B.isPlayerStarted&&
(B.handleOnPlaybackCommand(),B.afterPlayerStarted=function(){})};
this.registerPanel(G)}};
_.w.afterPlayerStarted=function(){};
_.w.handleOnPlaybackCommand=function(){if(_.X("web_shorts_comment_stickers")&&this.isPlayerStarted){var G,B=(G=_.Q(this.currentEndpoint,_.Fu))==null?void 0:G.onPlaybackCommand;B&&this.ytComponentBehavior.resolveCommand(B)}};
_.w.maybeCreateIntersectionObserver=function(){var G=this,B=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==B){this.intersectionObserverThreshold=B;var F={rootMargin:"0px",threshold:B},D;(D=this.intersectionObserver)==null||D.disconnect();this.intersectionObserver=new IntersectionObserver(function(u){u=_.C(u);for(var R=u.next();!R.done;R=u.next())if(R=R.value,R.intersectionRatio>B){R=Number(R.target.id);if(isNaN(R))break;if(R===G.index)break;
_.sec();G.loadVideo(R);_.mb("r_vtc")}},F);
this.observeShorts()}};
_.w.observeShorts=function(){var G,B,F=(((G=this.shortsProcessedPrevSequence)==null?void 0:G.length)||0)+(((B=this.shortsProcessedSequence)==null?void 0:B.length)||0);this.carouselContainers.length<F&&(this.carouselContainers=[].concat(_.gi(_.IF(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));G=_.C(this.carouselContainers);for(B=G.next();!B.done;B=G.next())B=B.value,F=void 0,(F=this.intersectionObserver)==null||F.observe(B)};
_.w.initCsi=function(){UWD("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var G={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},B,F;if((B=this.playerData)==null?0:(F=B.cacheMetadata)==null?0:F.isCacheHit)G.isCacheHit=!0;var D;if(B=(D=_.Q(this.currentEndpoint,_.Fu))==null?void 0:
D.prefetchTaskId)G.prefetchInfo={taskId:B};_.qa(G)};
_.w.isAd=function(){var G,B;return!!((G=_.Q(this.currentEndpoint,_.Fu))==null?0:(B=G.adClientParams)==null?0:B.isAd)};
_.w.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.w.getPlayerContainer=function(){var G;return(G=_.IF(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:G.playerContainer};
_.w.onPlayerStateChange=function(G){var B=this;this.isPlayerPaused=G===2;G!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?G===1&&this.index===0&&(this.isPlayerStarted||_.VU().dispatch(oCD(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.VU().dispatch(oCD(!0)));this.player&&!this.player.getLoopVideo()&&_.Lu.addLowPriorityJob(function(){B.getShortsLoopSetting().then(function(F){var D;(D=B.player)==null||D.setLoopVideo(F)})});
this.isPlayerPaused&&_.X("web_shorts_paused_state_logging")&&_.Oq(_.qW(),[this.reelPlayerPausedStateRendererVe])};
_.w.isShortPlayable=function(){if(_.X("kevlar_playable_short_killswitch"))return!0;var G;return(G=this.playerData)!=null&&G.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.w.setNormalPlaybackSpeed=function(){var G=this,B,F;return _.n(function(D){if(D.nextAddress==1)return D.yield(G.getPlayer().getPlayerPromise(),2);B=D.yieldResult;F=B.getPlaybackRate();F!==1&&(G.storedPlaybackSpeed=F,B.setPlaybackRate(1));_.di(D)})};
_.w.restorePlaybackSpeed=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1)return G.storedPlaybackSpeed===null?F.jumpTo(0):F.yield(G.getPlayer().getPlayerPromise(),3);B=F.yieldResult;B.setPlaybackRate(G.storedPlaybackSpeed);G.storedPlaybackSpeed=null;_.di(F)})};
_.w.playerDataChanged=function(){var G=this,B,F,D,u,R,N,y,U,q;return _.n(function(h){if(h.nextAddress==1){B=G.getPlayer();(F=G.intersectionObserver)==null||F.disconnect();if(G.playerData){if(((D=G.playerData.videoDetails)==null?void 0:D.videoId)!==((u=B.getPlayer())==null?void 0:u.getVideoData().video_id)){R={};if(N=_.Q(G.currentEndpoint,_.Fu))R.watch_endpoint=N,N.endTimeSeconds&&(R.end=N.endTimeSeconds);B.loadVideoWithPlayerResponse(G.playerData,R)}}else return h.return();return G.player?h.jumpTo(2):
h.yield(B.getPlayerPromise(),3)}h.nextAddress!=2&&(G.player=h.yieldResult,G.JSC$22106_playerStateChangeListener=G.onPlayerStateChange.bind(G),G.player.addEventListener("onStateChange",G.JSC$22106_playerStateChangeListener),_.X("kevlar_client_enable_shorts_player_bootstrap")&&_.bv(),G.scrollToVideoThrottle.fire(G.index),G.movePlayerToVideo(G.index),_.Lu.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(K){var a;(a=G.player)==null||a.setLoopVideo(K)})}),_.jrv.resolve(G.player),G.player.syncVolume(),
G.getPlayer().focusOnPlayer());
_.Lu.addLowPriorityJob(function(){G.observeShorts()},100);
y=G.player.getPlayerState(G.player.getPresentingPlayerType());y!==1||G.isPlayerStarted||_.VU().dispatch(oCD(!0));G.updateBackNavContainerWidth();U=_.Q(G.currentEndpoint,_.Fu);((q=U)==null?0:q.startTimeSeconds)&&G.player.seekTo(U.startTimeSeconds);if(G.JSC$22106_cinematicController||G.cinematicsInitializeJobId)return h.return();G.cinematicsInitializeJobId=_.Lu.addLowPriorityJob(function(){G.initCinematicController();G.cinematicsInitializeJobId=void 0});
_.di(h)})};
_.w.onShortUndoDismiss=function(){var G=this,B=MHS().pop();B!==void 0&&(_.ft(this,function(){G.showCardWithIndex(B)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.w.onShortsDismiss=function(G){if(G=G.detail.reelDismissalActionRenderer)(G=_.Q(G.onDismissalCompletionRenderer,SWD))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:G}}}),this.scrollAndDismissCard()};
_.w.processReelNonVideoContentDismissalCommand=function(G){var B=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);G=_.Q(G,yvU);this.activeDimissalTimeout=setTimeout(function(){B.scrollAndDismissCard()},Number(G==null?void 0:G.delayMs))};
_.w.scrollAndDismissCard=function(){var G=this,B=this.index;MHS().push(B);_.ft(this,function(){var F=G.getPlayableNextIndex();F!==null&&(G.hideCardWithIndex(B),G.scrollToVideoThrottle.fire(F))})};
_.w.hideCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!0};
_.w.showCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!1};
_.w.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.w.activeChanged=function(G){_.VU().dispatch(_.d5({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:G}}));if(G)document.addEventListener("keydown",_.x7(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var B;(B=this.player)==null||B.sendAbandonmentPing()}var F;(F=this.player)==null||F.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.x7(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.w.graftClientVisualElements=function(){if(this.data){var G=_.Rh();_.mss(G,_.ZL({response:this.reelWatchSequenceResponse}));_.Zx(G,this.nextReelVe);_.Zx(G,this.prevReelVe);_.X("kevlar_shorts_auto_advance")&&(_.Zx(G,this.loopToggleOffVe),_.Zx(G,this.loopToggleOnVe));_.Zx(G,this.ambientModeToggleVe);_.Oq(_.qW(),[this.nextReelVe,this.prevReelVe]);_.X("web_shorts_paused_state_logging")&&_.Zx(G,this.reelPlayerPausedStateRendererVe)}};
_.w.graftNvcRenderer=function(){var G,B,F,D,u=this.index<0?(G=this.shortsProcessedPrevSequence)==null?void 0:(B=G[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:B.command:(F=this.shortsProcessedSequence)==null?void 0:(D=F[this.index])==null?void 0:D.command;if(u&&this.isNonVideoContentCommand(u)){G=_.Q(u,_.a1);var R,N;(G=(R=_.Q(G==null?void 0:G.renderer,_.H9q))==null?void 0:(N=R.loggingDirectives)==null?void 0:N.trackingParams)&&_.Rh().graftServerVe(G)}};
_.w.setActiveIndex=function(){_.te().resolve(_.DG).setActiveIndex(this.index)};
_.w.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.w.lazyUpdateMiniplayerData=function(){var G=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Lu.addLowPriorityJob(function(){G.updateMiniplayerData();G.updateMiniplayerDataJobId=void 0}))};
_.w.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Lu.cancelJob(this.updateMiniplayerDataJobId)};
_.w.updateMiniplayerData=function(){var G,B,F,D=_.te().resolve(_.WP),u={shortsData:this.getCurrentShort(),previousButtonDisabled:!((G=this.prevButtonData)==null||!G.isDisabled),nextButtonDisabled:!((B=this.nextButtonData)==null||!B.isDisabled),playabilityStatus:(F=this.playerData)==null?void 0:F.playabilityStatus};_.b$(D,u)};
_.w.resetPlayerLocation=function(){var G=this.getPlayer();this.initialPlayerContainer&&G.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.w.movePlayerToVideo=function(G,B){var F=this;B=B===void 0?!0:B;var D=this.getActiveReelVideo(G),u=this.getPlayer();if(D){this.overlayContainer?D.appendChild(this.overlayContainer):(this.overlayContainer=_.IF(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,D.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||u.appendTo(this.overlayContainer.playerContainer,void 0,!0));var R;(R=this.player)==null||R.setSize(NaN,NaN);this.isActive||_.Lu.addJob(function(){F.isActive=
!0},0);
u.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.X("reels_web_disable_rtr_tick")||_.X("reels_web_use_pbs_first_shorts")&&G===0||_.KR("r_tr");this.currentPlayerIndex=G;D.appendChild(this.errorScreenContainer);var N;(N=this.JSC$22106_cinematicController)==null||O5N(N)}else B?_.Lu.addLowPriorityJob(function(){F.movePlayerToVideo(F.index,!1)}):Math.random()<=_.sD("web_shorts_error_logging_threshold")&&_.Oz(new _.Uf("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:B,
index:G}))};
_.w.getAspectRatio=function(G){return(G==null?0:G.thumbnail)&&f4D(G.thumbnail)?"--ytd-shorts-player-ratio: "+f4D(G.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.w.getBackgroundImage=function(G){if(G!=null&&G.thumbnail)return(G=_.dJ(G.thumbnail.thumbnails))?'background-image:url("'+G+'");':"background-color:black;"};
_.w.getBackgroundImageUrl=function(G){if(G!=null&&G.thumbnail)return _.dJ(G.thumbnail.thumbnails)};
_.w.onPersistentPanelActiveChanged=function(){var G,B=(G=_.Q(this.currentEndpoint,_.Fu))==null?void 0:G.thumbnail;if(B&&f4D(B)!==.5625){var F;(F=this.player)==null||F.setSize(NaN,NaN)}};
_.w.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.w.moveCinematicsToVideo=function(){var G=_.IF(this.hostElement).querySelector("ytd-reel-video-renderer");(G==null?0:G.cinematicContainer)&&G.cinematicContainer!==this.shortsCinematicContainer.parentElement&&G.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.w.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.w.updatePrevButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);G?this.prevButtonData=G=Object.assign({},G,{accessibility:{label:_.G7("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.G7("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=G=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.w.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.w.updateNextButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);G&&(this.nextButtonData=G=Object.assign({},G,{accessibility:{label:_.G7("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.G7("NEXT_VIDEO_LABEL")||""}))};
_.w.getPlayablePreviousIndex=function(){for(var G,B=this.index-1;B>=-(((G=this.prevShortsSequence)==null?void 0:G.length)||0);B--)if(!MHS().includes(B))return B;return null};
_.w.getIndexInSequence=function(G,B){return G.findIndex(function(F){var D;return((D=_.Q(F.command,_.Fu))==null?void 0:D.videoId)===B})};
_.w.handlePrevButtonClick=function(G){var B=this,F,D;return _.n(function(u){F=B.getPlayablePreviousIndex();if(F===null)return u.return();B.gestureType=((D=G)==null?void 0:D.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";F===0&&(B.hidePreviousButtonImmediately=!0);if(B.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){B.scrollToVideoThrottle.fire(F,"auto")}),u.return();
B.scrollToVideoThrottle.fire(F);_.di(u)})};
_.w.getPlayableNextIndex=function(){for(var G,B=this.index+1;B<(((G=this.shortsProcessedSequence)==null?void 0:G.length)||0);B++)if(!MHS().includes(B))return B;return null};
_.w.handleNextButtonClick=function(G,B){var F=this,D,u;return _.n(function(R){D=F.getPlayableNextIndex();if(D===null)return R.return();D===1&&(F.showPreviousButtonImmediately=!0);F.gestureType=((u=G)==null?void 0:u.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";B&&(F.gestureType=B);if(F.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){F.scrollToVideoThrottle.fire(D,"auto")}),R.return();
F.scrollToVideoThrottle.fire(D);_.di(R)})};
_.w.handleReelNavigateCommand=function(G,B,F){(G=_.Q(G,NvZ))&&B&&G.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(F)};
_.w.loadVideo=function(G,B){var F=this;B=B===void 0?!1:B;if(G!==this.currentPlayerIndex){_.VU().dispatch(oCD(!1));if(this.isAd()&&!B){var D;(D=this.player)==null||D.notifyShortsAdSwipeEvent()}var u;(u=this.JSC$22106_cinematicController)==null||kwA(u);var R;(R=this.JSC$22106_cinematicController)==null||H5G(R);D=G>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(D));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var N,y,U,q;B=G<0?(N=this.shortsProcessedPrevSequence)==null?void 0:(y=N[this.shortsProcessedPrevSequence.length+G])==null?void 0:y.command:(U=this.shortsProcessedSequence)==null?void 0:(q=U[G])==null?void 0:q.command;this.index=G;this.gestureType||(this.gestureType=D?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");B&&this.isVideoContentCommand(B)&&(this.ytComponentBehavior.resolveCommand(B,
{form:{createScreenConfig:{clickedVisualElement:D?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(B&&this.isNonVideoContentCommand(B)){this.currentEndpoint=B;this.data=void 0;N=_.Rh();y=_.Q(B,_.a1);var h,K;(y=(h=_.Q(y==null?void 0:y.renderer,_.H9q))==null?void 0:(K=h.screenLoggingData)==null?void 0:K.screenVeType)&&_.t9(N,y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(h=this.getActiveReelVideo(G))&&
h.appendChild(this.overlayContainer)}var a,m;h=_.X("web_shorts_early_continuation")?G>0&&((a=this.reelWatchSequenceResponse)==null?void 0:a.entries)&&G>=this.reelWatchSequenceResponse.entries.length-3:((m=this.reelWatchSequenceResponse)==null?void 0:m.entries)&&G===this.reelWatchSequenceResponse.entries.length-1;var L;if(((L=this.reelWatchSequenceResponse)==null?0:L.continuationEndpoint)&&h){var W,e,b={contentPlaybackContext:_.Sg({},(e=_.Q((W=this.currentEndpoint)==null?void 0:W.commandMetadata,_.xy))==
null?void 0:e.url,window.location.href)};_.X("web_shorts_early_continuation")?this.continuationRequestPending||(_.Lu.addJob(function(){F.ytComponentBehavior.resolveCommand(F.reelWatchSequenceResponse.continuationEndpoint,{form:b})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:b})}var M,t;
G=G===-(((M=this.reelWatchSequenceResponse)==null?void 0:(t=M.prevEntries)==null?void 0:t.length)||0);var T,A;((T=this.reelWatchSequenceResponse)==null?0:T.prevContinuationEndpoint)&&((A=this.reelWatchSequenceResponse)==null?0:A.prevEntries)&&G&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.w.setMiniplayerPreview=function(G){G=(G===void 0?0:G)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var B,F,D=_.te().resolve(_.WP),u={shortsData:void 0,shortsPreviewThumbnail:G?(B=this.shortsProcessedSequence)==null?void 0:(F=B[G])==null?void 0:F.thumbnail:void 0};_.b$(D,u)};
_.w.updateTitle=function(G){var B,F;G=(G==null?0:G.adSlots)?"":(F=G==null?void 0:(B=G.videoDetails)==null?void 0:B.title)!=null?F:"";_.cZ(this.hostElement,"yt-update-title",G)};
_.w.registerPanel=function(G){var B=_.te().resolve(_.yR);if(B){G=_.C(G.engagementPanels||[]);for(var F=G.next();!F.done;F=G.next()){F=F.value;var D=this.getPanelIdentifier(F.engagementPanelSectionListRenderer),u=void 0,R=void 0;(R=(u=B).registerPanelContent)==null||R.call(u,D,F)}}};
_.w.getPanelIdentifier=function(G){var B;return(G==null?void 0:(B=G.identifier)==null?void 0:B.tag)||(G==null?void 0:G.panelIdentifier)||(G==null?void 0:G.targetId)};
_.w.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.VU().dispatch(oCD(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.VU().dispatch(V7U(!1));
var G;(G=this.shortsController)!=null&&(G.dismissedIndices=[]);var B;(B=this.shortsController)!=null&&B.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.te().resolve(_.WP).close(!0)};
_.w.processAppendReelWatchSequenceContinuationEntriesAction=function(G){var B=this,F;(F=this.intersectionObserver)==null||F.disconnect();G=G.appendReelWatchSequenceContinuationEntriesAction;if(G==null?0:G.entries){var D;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.gi(((D=this.reelWatchSequenceResponse)==null?void 0:D.entries)||[]),_.gi(G.entries)),continuationEndpoint:G.continuationEndpoint})}else if(G==null?0:G.prevEntries){var u;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.gi(((u=this.reelWatchSequenceResponse)==null?void 0:u.prevEntries)||[]),_.gi(G.prevEntries)),prevContinuationEndpoint:G.prevContinuationEndpoint});_.Lu.addLowPriorityJob(function(){B.movePlayerToVideo(B.index);B.scrollToVideoThrottle.fire(B.index,"instant")})}else return;
_.Lu.addLowPriorityJob(function(){B.observeShorts()},100)};
_.w.processWatchSequence=function(G){var B=this;return G.map(function(F){F=F.command;return B.isVideoContentCommand(F)?{thumbnail:_.Q(F,_.Fu).thumbnail,command:F}:{command:F}})};
_.w.calculateIntersectionObserverThreshold=function(){var G=_.IF(this.hostElement).querySelector("ytd-reel-video-renderer"),B=1;(G==null?0:G.offsetHeight)&&(G==null?0:G.offsetWidth)&&(B=Math.min(G.offsetHeight,this.shortsContainer.offsetHeight)/G.offsetHeight*(Math.min(G.offsetWidth,this.shortsContainer.offsetWidth)/G.offsetWidth));return Math.round(B*.6*10)/10};
_.w.isVideoContentCommand=function(G){_.te().resolve(_.DG);return!!_.Q(G,_.Fu)};
_.w.isNonVideoContentCommand=function(G){_.te().resolve(_.DG);return!!_.Q(G,_.a1)};
_.w.initCinematicController=function(){var G=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22106_cinematicController=new HG(this.shortsCinematicContainer,this.player);var B,F=_.Q((B=this.data)==null?void 0:B.background,qM);WeZ(this.JSC$22106_cinematicController,F);r$G(this.JSC$22106_cinematicController,zSD(F));LeQ(this.JSC$22106_cinematicController);_.Lu.addLowPriorityJob(function(){G.moveCinematicsToVideo()})}};
_.w.handleMiniplayerNavigateShorts=function(G){G==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():G==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.w.handleSignalActionToggleShortsPictureInPicture=function(){if(_.te().resolve(_.WP).pictureInPictureSupported()){var G=_.te().resolve(_.DG);if(_.X("web_shorts_pip")){var B=_.te().resolve(_.WP);G.isShortsPipActive()?B.deactivate():B.isMiniplayerActive()||(_.Bv().shortsPipActivation=!0,_.mI$(B))}}else(G=this.player)==null||G.togglePictureInPicture()};
_.ZN.Object.defineProperties(kg.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.prevEntries)return this.processWatchSequence([].concat(_.gi(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.gi(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var B;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((B=this.shortsProcessedSequence)==null?void 0:B.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var F;B=_.Q((F=this.firstShortsData)==null?void 0:F.command,_.Fu);if(B==null||!B.videoId)return this.shortsProcessedSequence;F=this.getIndexInSequence(this.shortsSequence,
B.videoId);if(F!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=F,_.Lu.addLowPriorityJob(function(){G.scrollToVideoThrottle.fire(G.index,"auto");G.movePlayerToVideo(G.index)}));
return[].concat(_.gi(this.shortsSequence))}this.shortsProcessedPrevSequence||_.uQ(_.Lu,function(){G.observeShorts()},100);
return[this.firstShortsData].concat(_.gi(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var G=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;G&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(G)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 G,B;return this.index===((G=this.reelWatchSequenceResponse)==null?void 0:(B=G.entries)==null?void 0:B.length)}var F;return!((F=this.reelWatchSequenceResponse)==null?0:F.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var G;(G=this.delayedActiveIndexUpdateDebouncer)==null||G.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return this.isShortPlayable()||((B=_.Q((G=this.data)==null?void 0:G.watchStatus,_.oYU))==null?void 0:(F=B.style)==null?void 0:F.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var G=this,B=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),F;if((this.data||B)&&(((F=this.data)==null?0:F.engagementPanels)||this.isAd()||B)){B=!1;this.activePanel="shorts-comments-panel";var D;F=_.C(((D=this.data)==null?void 0:D.engagementPanels)||[]);for(D=F.next();!D.done;D=F.next())if(this.getPanelIdentifier(D.value.engagementPanelSectionListRenderer)===this.activePanel){B=!0;break}if(this.isPersistentPanelActive){var u=
_.te().resolve(_.yR);_.Lu.addJob(function(){u.showPanel({identifier:G.activePanel,target:null})},0,100)}var R;
D=[].concat(_.gi(Object.values(((R=this.data)==null?void 0:R.engagementPanels)||{})));R=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);F=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return R===void 0&&F===void 0||(R==null?0:R.isDisabled)||(F==null?void 0:F.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!B?(B=D==null?void 0:D.findIndex(function(N){var y,U;return((y=N.engagementPanelSectionListRenderer)==null?void 0:(U=y.identifier)==null?void 0:U.tag)==="shorts-comments-panel"}),B===-1||B===void 0||D!=null&&D.splice(B,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.G7("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.G7("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:_.G7("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.G7("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(_.gi(Object.values(D||
{})))):D}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var G=this,B,F,D;if((B=this.playerData)==null?0:(F=B.playabilityStatus)==null?0:(D=F.errorScreen)==null?0:D.playerInterstitialRenderer)return _.Lu.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.playerData.playabilityStatus.errorScreen;
var u,R;return((u=this.data)==null?void 0:u.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((R=this.data)==null?0:R.watchStatus)&&_.Q(this.data.watchStatus,_.PE7)?(_.Lu.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.ZN.Object.defineProperties(kg,{template:{configurable:!0,enumerable:!0,get:function(){if(yyG===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);yyG=G}G=yyG;return G}}});
kg.prototype.onNextButtonDataChange=kg.prototype.onNextButtonDataChange;kg.prototype.onPrevButtonDataChange=kg.prototype.onPrevButtonDataChange;kg.prototype.onPersistentPanelActiveChanged=kg.prototype.onPersistentPanelActiveChanged;kg.prototype.lazyUpdateMiniplayerData=kg.prototype.lazyUpdateMiniplayerData;kg.prototype.onShortsPipActiveChanged=kg.prototype.onShortsPipActiveChanged;kg.prototype.setActiveIndex=kg.prototype.setActiveIndex;kg.prototype.graftNvcRenderer=kg.prototype.graftNvcRenderer;
kg.prototype.graftClientVisualElements=kg.prototype.graftClientVisualElements;kg.prototype.onActiveChanged=kg.prototype.onActiveChanged;kg.prototype.onShortsDismiss=kg.prototype.onShortsDismiss;kg.prototype.onShortUndoDismiss=kg.prototype.onShortUndoDismiss;kg.prototype.playerDataChanged=kg.prototype.playerDataChanged;kg.prototype.afterPlayerStarted=kg.prototype.afterPlayerStarted;kg.prototype.unhideCurrentOverlay=kg.prototype.unhideCurrentOverlay;kg.prototype.onServiceRequestCompleted=kg.prototype.onServiceRequestCompleted;
kg.prototype.engagementPanelsChanged=kg.prototype.engagementPanelsChanged;kg.prototype.onFullscreenChange=kg.prototype.onFullscreenChange;kg.prototype.onResize=kg.prototype.onResize;kg.prototype.setFirstShortsData=kg.prototype.setFirstShortsData;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.c([_.k(ir.YtPageBehavior),_.I("design:type",Object)],kg.prototype,"ytPageBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],kg.prototype,"ironResizableBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aJ),_.I("design:type",Object)],kg.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],kg.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],kg.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"playerData",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"reelWatchSequenceResponse",void 0);
_.c([_.v(),_.I("design:type",Object)],kg.prototype,"cachedReelWatchSequenceResponse",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"currentEndpoint",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"nextButtonData",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"prevButtonData",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"isPreviousPageShorts",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"index",void 0);
_.c([_.v(),_.I("design:type",Object)],kg.prototype,"delayedActiveIndex",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"playablePreviousIndex",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"player",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"isPlayerPaused",void 0);_.c([_.v({selector:X2$}),_.I("design:type",Object)],kg.prototype,"isPlayerStarted",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"intersectionObserver",void 0);
_.c([_.v(),_.I("design:type",Number)],kg.prototype,"cinematicsInitializeJobId",void 0);_.c([_.v(),_.I("design:type",Number)],kg.prototype,"updateMiniplayerDataJobId",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"fitToVisibleBounds",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"pageSubtype",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],kg.prototype,"enablePreviousContinuation",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"shortsPipEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"isDark",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"shortsViewTransitions",void 0);_.c([_.v({selector:_.Ix,reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"isFullscreen",void 0);
_.c([_.v({selector:_.fh,reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"isShortsPipActive",void 0);_.c([_.iA("#shorts-inner-container"),_.I("design:type",HTMLElement)],kg.prototype,"shortsInnerContainer",void 0);_.c([_.iA("#back-nav-button ytd-button-renderer"),_.I("design:type",_.MR)],kg.prototype,"backNavButton",void 0);_.c([_.iA("#shorts-container"),_.I("design:type",HTMLElement)],kg.prototype,"shortsContainer",void 0);
_.c([sa("error-screen"),_.I("design:type",HTMLElement)],kg.prototype,"errorScreenContainer",void 0);_.c([sa("player"),_.I("design:type",Object)],kg.prototype,"playerElement",void 0);_.c([sa("shorts-cinematic-container"),_.I("design:type",HTMLElement)],kg.prototype,"shortsCinematicContainer",void 0);_.c([sa("initial-player-container"),_.I("design:type",HTMLElement)],kg.prototype,"initialPlayerContainer",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"buttonOverride",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"anchoredPanelActive",void 0);_.c([_.v(),_.I("design:type",String)],kg.prototype,"activePanel",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"isActive",void 0);_.c([_.v({selector:mDD,reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"smallScreenPersistentPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"isPersistentPanelActive",void 0);
_.c([_.v(),_.I("design:type",Object)],kg.prototype,"smallScreenSqueezeBack",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"enableScrollIntoViewCenter",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"extractOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],kg.prototype,"useAspectRatio",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"continuationRequestPending",void 0);
_.c([_.v(),_.I("design:type",Object)],kg.prototype,"shortsController",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"panelContainer",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"overlayContainer",void 0);_.c([_.v(),_.I("design:type",Array)],kg.prototype,"carouselContainers",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"isShortsInitialized",void 0);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"firstShortsData",void 0);
_.c([_.v(),_.I("design:type",Object)],kg.prototype,"firstShortsDataModel",void 0);_.c([_.O("reelWatchSequenceResponse"),_.I("design:type",Object),_.I("design:paramtypes",[])],kg.prototype,"prevShortsSequence",null);_.c([_.O("data","prevShortsSequence"),_.I("design:type",Object),_.I("design:paramtypes",[])],kg.prototype,"shortsProcessedPrevSequence",null);_.c([_.O("reelWatchSequenceResponse"),_.I("design:type",Object),_.I("design:paramtypes",[])],kg.prototype,"shortsSequence",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"setFirstShortsData",null);_.c([_.O("data","shortsSequence","firstShortsData"),_.I("design:type",Object),_.I("design:paramtypes",[])],kg.prototype,"shortsProcessedSequence",null);
_.c([_.v({reflectToAttribute:!0}),_.O("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],kg.prototype,"isUpArrowHidden",null);_.c([_.v({reflectToAttribute:!0}),_.O("reelWatchSequenceResponse","index","endOfNextContinuation"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],kg.prototype,"isDownArrowHidden",null);
_.c([_.v(),_.O("index"),_.I("design:type",Number),_.I("design:paramtypes",[])],kg.prototype,"activeIndex",null);_.c([_.O("isShortPlayable","data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],kg.prototype,"shouldRenderOfflineContent",null);_.c([_.Pm("iron-resize"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onResize",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],kg.prototype,"anchoredEngagementPanels",null);
_.c([_.v(),_.I("design:type",Object)],kg.prototype,"watchWhileEngagementPanels",void 0);_.c([_.Ga("isFullscreen"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onFullscreenChange",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"engagementPanelsChanged",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],kg.prototype,"onServiceRequestCompleted",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"unhideCurrentOverlay",null);_.c([_.Ga("isPlayerStarted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"afterPlayerStarted",null);
_.c([_.O("playerData","reelWatchSequenceResponse","data"),_.I("design:type",Object),_.I("design:paramtypes",[])],kg.prototype,"errorScreen",null);_.c([_.O("errorScreen"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],kg.prototype,"hasError",null);_.c([_.Ga("playerData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],kg.prototype,"playerDataChanged",null);
_.c([_.Pm("yt-dismissible-item-undo-feedback"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onShortUndoDismiss",null);_.c([_.Pm("yt-disable-lockup-interaction"),_.I("design:type",Function),_.I("design:paramtypes",[Object]),_.I("design:returntype")],kg.prototype,"onShortsDismiss",null);_.c([_.Ry("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onActiveChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"graftClientVisualElements",null);_.c([_.Ga("currentPlayerIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"graftNvcRenderer",null);_.c([_.Ga("index"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"setActiveIndex",null);
_.c([_.Ga("isShortsPipActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onShortsPipActiveChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"lazyUpdateMiniplayerData",null);_.c([_.v(),_.I("design:type",Object)],kg.prototype,"onOverlayDensityChanged",void 0);
_.c([_.Ga("isPersistentPanelActive"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onPersistentPanelActiveChanged",null);_.c([_.Ga("index","data","isUpArrowHidden"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onPrevButtonDataChange",null);_.c([_.Ga("index","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],kg.prototype,"onNextButtonDataChange",null);
_.c([_.mC({is:"ytd-shorts"})],kg);var LsD;var ryz;var WsU;var ON=function(){return _.p.apply(this,arguments)||this};
_.r(ON,_.p);ON.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ON.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],ON);
_.d(ON,"ytd-compact-tvfilm-entry-point-renderer",function(){if(WsU!==void 0)return WsU;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return WsU=G},{mode:1});var H_Q;var k5S;var O_$;var eZ=function(){return _.p.apply(this,arguments)||this};
_.r(eZ,_.p);eZ.prototype.ready=function(){this.initializeDefs()};
eZ.prototype.initializeDefs=function(){var G=this.meta.byKey("yt-icons"),B=_.IF(G).querySelector("#star"),F=_.IF(G).querySelector("#star_half");G=_.IF(G).querySelector("#star_border");B&&this.defs.appendChild(B.cloneNode(!0));F&&this.defs.appendChild(F.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0))};
eZ.prototype.percentChanged=function(){for(var G=this.rating;G.firstChild;)G.removeChild(G.firstChild);var B=Math.round(this.percent/10);G=Math.floor(B/2);B%=2;var F=5-G-B;this.appendStars("star",G,0);this.appendStars("star_half",B,G);this.appendStars("star_border",F,G+B)};
eZ.prototype.appendStars=function(G,B,F){for(var D=0;D<B;D++){var u=(18+this.spacing)*(D+F),R=document.createElementNS("http://www.w3.org/2000/svg","use");EQB(R,"#"+G);R.setAttribute("x",""+u);R.setAttribute("y","0");this.rating.appendChild(R)}};
eZ.prototype.percentChanged=eZ.prototype.percentChanged;_.c([_.iA("#defs"),_.I("design:type",HTMLElement)],eZ.prototype,"defs",void 0);_.c([_.iA("#rating"),_.I("design:type",HTMLElement)],eZ.prototype,"rating",void 0);_.c([_.v(),_.I("design:type",Number)],eZ.prototype,"percent",void 0);_.c([_.v({value:6}),_.I("design:type",Number)],eZ.prototype,"spacing",void 0);_.c([_.v({value:_.DT.create("iron-meta",{type:"iconset"})}),_.I("design:type",_.iE)],eZ.prototype,"meta",void 0);
_.c([_.Ga("percent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eZ.prototype,"percentChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-ratings"})],eZ);
_.d(eZ,"ytd-ratings",function(){if(O_$!==void 0)return O_$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return O_$=G},{mode:1});var e1z=function(){return _.p.apply(this,arguments)||this};
_.r(e1z,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],e1z.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],e1z.prototype,"data",void 0);_.c([_.mC({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],e1z);
_.d(e1z,"ytd-offer-review-renderer",function(){if(k5S!==void 0)return k5S;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return k5S=G},{mode:1});var $g=function(){var G=_.p.apply(this,arguments)||this;G.badges=[{textBadge:{label:_.$9("CC")}}];return G};
_.r($g,_.p);_.w=$g.prototype;_.w.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.w.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(G&&G.commandMetadata&&_.Q(G.commandMetadata,_.u6)&&_.Q(G.commandMetadata,_.u6).fireAutomatically)_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}});else{var B;G&&((B=_.Q(G,_.u6))==null?0:B.fireAutomatically)&&_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})}};
_.w.isEmptyContent=function(G){return this.isStorefrontEntryPointEmpty(G)&&this.shouldHideOfferModule(G)};
_.w.isStorefrontEntryPointEmpty=function(G){return!G||!G.storefrontEntryPoint};
_.w.shouldHideOfferModule=function(G){return!!G.hideVideoDetails};
_.w.isOfferModuleNavigationInactive=function(G){return!G.navigationEndpoint&&!G.serviceEndpoint};
_.w.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
$g.prototype.dataChanged=$g.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$g.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.I("design:type",Boolean)],$g.prototype,"hidden",void 0);
_.c([_.v(),_.I("design:type",Object)],$g.prototype,"badges",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$g.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],$g);
_.d($g,"ytd-movie-offer-module-renderer",function(){if(H_Q!==void 0)return H_Q;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return H_Q=G},{mode:1});var $J2;var z1N=function(){return _.p.apply(this,arguments)||this};
_.r(z1N,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],z1N.prototype,"componentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],z1N.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],z1N);
_.d(z1N,"ytd-media-masthead-renderer",function(){if($J2!==void 0)return $J2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $J2=G},{mode:1});var b_z;_.YN(_.M8A,"course-metadata-view-model",{props:{data:_.oh,isOverlay:_.oh}});var zr=function(){var G=_.p.apply(this,arguments)||this;G.isMetadataVisible=!1;G.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return G};
_.r(zr,_.p);_.w=zr.prototype;
_.w.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"}}}}};
_.w.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.w.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.w.expanderChanged=function(){var G;if((G=this.data)==null?0:G.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.w.isExpandButtonToggled=function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.expandMetadataButton,_.WR))==null?void 0:B.isToggled};
_.w.onVisibilityButtonClick=function(){var G;if((G=this.data)==null?0:G.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.w.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
zr.prototype.expanderChanged=zr.prototype.expanderChanged;zr.prototype.dataChanged=zr.prototype.dataChanged;zr.prototype.descriptionChanged=zr.prototype.descriptionChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k([_.Za.YtActionHandlerBehavior]),_.I("design:type",Object)],zr.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],zr.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],zr.prototype,"isMetadataVisible",void 0);_.c([_.iA("#expander"),_.I("design:type",Object)],zr.prototype,"expander",void 0);_.c([_.Ga("data.description"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zr.prototype,"descriptionChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zr.prototype,"dataChanged",null);_.c([_.Ga("isMetadataVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],zr.prototype,"expanderChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],zr);
_.d(zr,"ytd-tvfilm-offer-module-renderer",function(){if(b_z!==void 0)return b_z;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return b_z=G},{mode:2});var Vi$;var bO=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return G};
_.r(bO,_.p);bO.prototype.dataChanged=function(){this.hostElement.hidden=!1};
bO.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
bO.prototype.onThumbnailTap=function(G){this.data&&this.data.serviceEndpoint&&(_.te().resolve(_.Wr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),G.stopPropagation())};
bO.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
bO.prototype.dataChanged=bO.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bO.prototype,"rendererBehaviors",void 0);_.c([_.k([_.Za.YtActionHandlerBehavior]),_.I("design:type",Object)],bO.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bO.prototype,"data",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],bO.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],bO);
_.d(bO,"ytd-unlimited-offer-module-renderer",function(){if(Vi$!==void 0)return Vi$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Vi$=G},{mode:1});var vUZ;var oU$;var V2=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return G};
_.r(V2,_.p);V2.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
V2.prototype.handleRelatedChipCommand=function(G){G=_.Q(G,oB$);var B=G.contents;B?_.Ia(this.hostElement,"yt-item-section-replace-action",[B,G.targetSectionIdentifier]):_.Ia(this.hostElement,"yt-item-section-continuation-action",[G.continuationData,G.targetSectionIdentifier])};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],V2.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],V2.prototype,"data",void 0);_.c([_.ay({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],V2);
_.d(V2,"yt-related-chip-cloud-renderer",function(){if(oU$===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;vUZ===void 0&&(vUZ=document.createElement("template"));var D=vUZ;F.call(B,D.content.cloneNode(!0),G.content.firstChild);oU$=G}G=oU$;return G},{mode:2});var vn=function(){var G=_.p.apply(this,arguments)||this;G.isTwoColumns=!0;G.watchFeedBigThumbs=_.X("kevlar_watch_feed_big_thumbs");G.watchFeedBigThumbsOnLockup=_.X("web_watch_next_big_thumbs");G.watchNextGridHideChips=_.X("kevlar_watch_grid_hide_chips");G.eligibleToSwitchToGrid=!0;G.disableShortsShelfHeightOverride=_.X("web_shorts_wn_shelf_ratio_tuning");G.isWatchNextGrid=!1;G.reuseComponents=!_.X("kevlar_watch_grid");G.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return G};
_.r(vn,_.p);_.w=vn.prototype;
_.w.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.X("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}}};
_.w.getItemsPath=function(){return"data.results"};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.w.created=function(){this.ytLazyListBehavior.initialCount=1};
_.w.ready=function(){_.Ss(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.w.resultsChanged=function(){if(this.data&&this.data.results){for(var G=this.data.results,B=null,F=null,D=0;D<G.length;D++)G[D].relatedChipCloudRenderer?B=G[D].relatedChipCloudRenderer:G[D].itemSectionRenderer&&(F=G[D].itemSectionRenderer);if(B&&F)for(this.set("data.continuations",[]),G=_.Q(B.content,_.MCL).chips,B=0;B<G.length;B++)if(D=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",G[B]),D.loadCached||!D.contents){D.contents=F.contents;break}}};
_.w.dataChanged=function(){var G=this,B;if((B=this.data)!=null&&B.results&&this.hasAllowedInstreamAd(this.playerData)){if(B=this.data.results.filter(function(y){return!!y.promotedSparklesWebRenderer})){for(var F=0;F<B.length;F++){var D=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",B[F]);
if(D)for(var u=0;u<D.length;u++)D[u]&&D[u].baseUrl&&_.oB(D[u].baseUrl)}this.set("data.results",this.data.results.filter(function(y){return!y.promotedSparklesWebRenderer}))}if(B=this.data.results.filter(function(y){return!!G.getSparklesAd(y)})){B=_.C(B);
for(u=B.next();!u.done;u=B.next())if(D=F=void 0,u=(F=this.getSparklesAd(u.value))==null?void 0:(D=F.errorCommand)==null?void 0:D.loggingUrls)for(F=_.C(u),D=F.next();!D.done;D=F.next())(D=D.value)&&D.baseUrl&&_.oB(D.baseUrl);var R,N;this.set("data.results",(R=this.data)==null?void 0:(N=R.results)==null?void 0:N.filter(function(y){return!y.adSlotRenderer}))}}};
_.w.getSparklesAd=function(G){var B,F;G=_.Q((B=G.adSlotRenderer)==null?void 0:(F=B.fulfillmentContent)==null?void 0:F.fulfilledLayout,_.Gus);return _.Q(G==null?void 0:G.renderingContent,YvN)};
_.w.hasAllowedInstreamAd=function(G){G=this.get("adPlacements",G)||[];for(var B=0;B<G.length;B++){var F=this.get("adPlacementRenderer.config.adPlacementConfig",G[B]);if(F&&F.suppressDisplayAd)return!0}return!1};
_.w.computeHideUnlimitedOfferModule=function(G,B){return G&&G.offerModule&&B&&G.offerModule.unlimitedOfferModuleRenderer&&G.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(B)?!0:!1};
_.w.hideUnlimitedOfferModuleChanged=function(){var G=_.IF(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");G&&(G.hidden=this.hideUnlimitedOfferModule)};
_.w.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var B;(B=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||B.forEach(function(F){F.containerType=G})}};
_.w.computeHideTvfilmOfferModule=function(G,B){var F,D;return!!((G==null?0:(F=G.offerModule)==null?0:(D=F.tvfilmOfferModuleRenderer)==null?0:D.clientShouldSuppressIfCompanionAdDisplayed)&&B&&this.hasCompanionAds(B))};
_.w.hideTvfilmOfferModuleChanged=function(){var G=_.IF(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");G&&(G.hidden=this.hideTvfilmOfferModule)};
_.w.hasCompanionAds=function(G){G=this.get("adPlacements",G)||[];for(var B=0;B<G.length;B++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",G[B]))return!0;var F=void 0,D=void 0,u=void 0;if(!_.X("web_watch_top_banner_companion_check_killswitch")&&((F=G[B])==null?0:(D=F.adPlacementRenderer)==null?0:(u=D.renderer)==null?0:u.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.w.hasSuppressedResults=function(G){return G==null?!0:G.filter(function(B){return!B.continuationItemRenderer&&!B.compactPromotedVideoRenderer&&!B.promotedSparklesWebRenderer}).length===0};
_.w.computeShowButton=function(G,B){return this.isWatchNextGrid?G:G||this.hasSuppressedResults(B)};
_.w.showButtonChanged=function(){if(this.isWatchNextGrid){var G=_.IF(this.hostElement).querySelector("ytd-rich-grid-renderer");G&&this.showButton!==null&&(G.continuationShowButton=this.showButton)}else{G=_.IF(this.hostElement).querySelector("yt-next-continuation");var B=_.IF(this.hostElement).querySelector("ytd-continuation-item-renderer"),F=_.IF(this.hostElement).querySelector("ytd-item-section-renderer");G&&(G.showButton=this.showButton);B&&(B.showButton=this.showButton);F&&(F.continuationShowButton=
this.showButton)}};
_.w.continuationTap=function(G){var B;if(((B=this.data)==null?void 0:B.continuations)!=null&&G.target.tagName==="TP-YT-PAPER-BUTTON")for(G=this.data.continuations,B=0;B<G.length;B++)G[B].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(G[B].nextContinuationData||{})};
_.w.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("shown-items-changed",this.shownItems))};
_.ZN.Object.defineProperties(vn.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.shownItems)==null||!G.some(function(B){return!!B.lockupViewModel||B.compactVideoRenderer}))}}});
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;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],vn.prototype,"ytLazyListBehavior",void 0);_.c([_.k(_.VB.YtNextContinuationBehavior),_.I("design:type",Object)],vn.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.k(_.be),_.I("design:type",Object)],vn.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],vn.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vn.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],vn.prototype,"playerData",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],vn.prototype,"autoFill",void 0);_.c([_.v({value:60}),_.I("design:type",Number)],vn.prototype,"targetFramerate",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"isTwoColumns",void 0);_.c([_.v(),_.I("design:type",Object)],vn.prototype,"shownItems",void 0);_.c([_.v({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.I("design:type",Boolean)],vn.prototype,"hideUnlimitedOfferModule",void 0);_.c([_.v({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.I("design:type",Boolean)],vn.prototype,"hideTvfilmOfferModule",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"watchFeedBigThumbs",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"watchFeedBigThumbsOnLockup",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"watchNextGridHideChips",void 0);_.c([_.v(),_.I("design:type",Object)],vn.prototype,"eligibleToSwitchToGrid",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"disableShortsShelfHeightOverride",void 0);_.c([_.v({selector:_.mA,reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"isGridViewEnabled",void 0);_.c([_.v({selector:_.Xy8,reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"isSwatcherooActive",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],vn.prototype,"showMoreButton",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],vn.prototype,"isWatchNextGrid",void 0);_.c([_.v({computed:"computeShowButton(showMoreButton, data.results)"}),_.I("design:type",Boolean)],vn.prototype,"showButton",void 0);_.c([_.Ry("data.results.*"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vn.prototype,"resultsChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vn.prototype,"dataChanged",null);_.c([_.Ga("hideUnlimitedOfferModule"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vn.prototype,"hideUnlimitedOfferModuleChanged",null);_.c([_.O("isGridViewEnabled","containsLockups","data"),_.v({reflectToAttribute:!0}),_.I("design:type",Number),_.I("design:paramtypes",[])],vn.prototype,"lockupContainerType",null);
_.c([_.Ga("lockupContainerType","data"),_.I("design:type",Function),_.I("design:paramtypes",[Number]),_.I("design:returntype")],vn.prototype,"updateLockupContainerTypes",null);_.c([_.Ga("hideTvfilmOfferModule"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vn.prototype,"hideTvfilmOfferModuleChanged",null);_.c([_.Ga("showButton"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vn.prototype,"showButtonChanged",null);
_.c([_.Ga("shownItems"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vn.prototype,"shownItemsChangedForBinding",null);_.c([_.O("shownItems"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],vn.prototype,"containsLockups",null);
_.d(vn,"ytd-watch-next-secondary-results-renderer",function(){if(ryz===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);ryz=G}G=ryz;return G},{mode:1});var MiH;var oZ=function(){var G=_.p.apply(this,arguments)||this;G.currentPageUrl="";G.baseUrl="";G.isHiddenByUser=null;G.hidden=!1;G.showAboveScrim=!1;G.watchNextGrid=_.X("kevlar_watch_grid");G.modernButtons=_.X("web_modern_buttons");G.roundedContainer=!0;G.noBorder=!1;G.roundBackground=!_.X("live_chat_round_background_killswitch");G.overflowHideChat=_.X("live_chat_overflow_hide_chat");G.forceDarkTheme=!1;G.theaterWatchWhile=!1;G.isListeningForPlayerProgress=!1;G.JSC$22160_playerEvents=new Map;G.isFrameReady=
!1;G.player=null;G.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 G};
_.r(oZ,_.p);_.w=oZ.prototype;_.w.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Ia(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.w.created=function(){var G=this;this.handleIframeEventListener=function(B){G.handleIframeEvent(B)};
this.handleKeyboardEventListener=function(B){G.handleKeyboardEvent(B)};
this.JSC$22160_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22160_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22160_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22160_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22160_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.w.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()};
_.w.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};
_.w.computeBaseUrl=function(G){var B="/live_chat";this.isChatReplay()&&(B="/live_chat_replay");return _.fG(_.It(_.TE(_.pn(G),B),null),"").toString()};
_.w.dataChanged=function(){_.X("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.w.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var G=this.url;if(this.isChatReplay()&&this.player){var B=Math.floor(this.player.getProgressState().current*1E3);G=_.A7(_.pn(G),"playerOffsetMs",B.toString()).toString()}B=this.chatframe;try{var F=G==="about:blank"?_.UPs:_.Sz(G),D=B.contentDocument.location,u=_.PX(F);u!==void 0&&D.replace(u)}catch(R){B.src=G}}};
_.w.collapsedChanged=function(){_.cZ(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.w.handleIframeEvent=function(G){if(G&&this.baseUrl.startsWith(G.origin)&&G.source===this.chatframe.contentWindow&&_.Zc(G.data))if(G.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(G);else if(G.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(G.data["yt-show-feedback-dialog"]){var B=_.te().resolve(_.fH(_.aKQ));if(B){var F=G.ports,D;F&&F.length&&(D=function(){F[0].postMessage({})});
G=G.data["yt-show-feedback-dialog"];B.showFeedbackDialog(G.customProductData,G.feedbackContent,D,G.bucket)}}else if(G.data["yt-show-survey"])_.cZ(this.hostElement,"yt-show-survey",G.data["yt-show-survey"]);else if(G.data["yt-purchase-membership"])_.te().resolve(_.Wr).resolveCommand(G.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(G.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(G.data["yt-tunnel-out-live-service-request"]);else if(G.data["yt-user-activity"])_.to();
else if(G.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(G.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(G.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(G.data["yt-open-popup"]);else if(G.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(G.data["yt-log-flow-logging-event-command"]);else if(G.data["yt-hide-live-chat"])this.onShowHideChat();else G.data["yt-report-moderation-state-log"]&&
this.player&&(B={cpn:this.player.getVideoData().cpn},_.W$("liveChatBeingModerated",B))};
_.w.attachLiveChatResponseVeTrackingParams=function(G){G=_.yX(G);var B=_.qW(),F=_.Yf("liveChatRenderer.trackingParams",this.data);B&&F&&_.WT(B,_.yX(F),G)};
_.w.handleBuyflowMessages=function(G){var B=G.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,F=G.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,D=G.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Nxl(_.IG(_.bn),B.replace(/-/g,"+").replace(/_/g,"/"),function(u){G.ports[0].postMessage({success:!0,buyFlowResponse:u})},void 0,function(u){G.ports[0].postMessage({success:!1,
error:u&&u.message||"Buyflow rejected without error."})},_.D4().get("hl"),void 0,function(){G.ports[0].postMessage({closed:!0})},F,D)};
_.w.setupPlayerProgressRelay=function(){var G=this;if(!this.isListeningForPlayerProgress){var B=_.de();B!=null&&B.getPlayerPromise&&(B.getPlayerPromise().then(function(F){G.playerApiReady(F)}),this.isListeningForPlayerProgress=!0)}};
_.w.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.w.playerApiReady=function(G){this.setPlayer(G)};
_.w.playerProgressHandler=function(){if(this.player){var G=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":G.current})}};
_.w.playerAdStartHandler=function(G){this.postToContentWindow({"yt-player-ad-start":G})};
_.w.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.w.playerStateChangeHandler=function(G){this.postToContentWindow({"yt-player-state-change":G})};
_.w.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22160_playerEvents);G&&(this.player=G,this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22160_playerEvents),_.cZ(this.hostElement,"player-api-ready"))};
_.w.liveChatPageUrl=function(G,B,F,D){return!F||B?"about:blank":F.liveChatRenderer?(B=_.pn(this.currentPageUrl).JSC$10342_queryData_,NPD(B),G=_.pn(G),B.add("continuation",F.liveChatRenderer.continuations[0].reloadContinuationData.continuation),F=_.rK()==="USER_INTERFACE_THEME_DARK",(D||F)&&B.add("dark_theme","true"),_.It(G,B),D=_.pn(G.toString()),F=D.JSC$10342_queryData_,"SESSION_INDEX"in _.b9&&(F.add("authuser",_.v5("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.b9&&F.add("pageId",_.v5("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.b9&&F.add("sdc",_.v5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),D.toString()):""};
_.w.isCollapsed=function(G,B){return B!==null?B:this.isChatReplay()||G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!0:G?G.liveChatRenderer?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.X("live_chat_hide_premiere_replay_message")||G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.w.isHidden=function(G,B,F){var D=B&&B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage,u=B&&B.liveChatRenderer&&B.liveChatRenderer.showHideButton,R=B&&B.liveChatRenderer&&B.liveChatRenderer.showButton;return F&&G&&!D&&!R||!F&&G&&!D&&!u?!0:B&&B.liveChatRenderer&&B.liveChatRenderer.initialDisplayState?B.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.w.computeButtonOverride=function(G,B){if(G&&B)return{type:"outline"}};
_.w.setCollapsedState=function(G){_.Q(G,_.uq7)&&((this.isHiddenByUser=!!_.Q(G,_.uq7).collapsed)||_.T1(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.w.forwardReduxActionToIframe=function(G){this.postToContentWindow({"yt-live-chat-forward-redux-action":G})};
_.w.onLoopRangeChange=function(G){this.showAboveScrim=!(G==null||!G.postId)};
_.w.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.w.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.w.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.w.sendDarkThemePostMessage=function(G){this.postToContentWindow({"yt-live-chat-set-dark-theme":G})};
_.w.onLiveChatBuyFlowCallback=function(G){this.postToContentWindow({"yt-live-chat-buy-flow-callback":G})};
_.w.handleKeyboardEvent=function(G){(0,_.UK.containsValue)(HaG,G.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:G.type,keyCode:G.keyCode}})};
_.w.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.w.postToContentWindow=function(G){if(this.isFrameReady)try{var B=window.location.protocol+"//"+window.location.host,F;(F=this.chatframe)!=null&&F.contentWindow?this.chatframe.contentWindow.postMessage(G,B):_.em(new _.Uf("Tried posting a message to an iframe with no content window",G))}catch(D){_.k2(D)}};
_.w.shouldHideChatFrame=function(G){return G&&_.X("hide_live_chat_button_when_collapsed")};
_.ZN.Object.defineProperties(oZ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.X("live_chat_overflow_hide_chat")||_.X("web_watch_chat_hide_button_killswitch"))return _.X("live_chat_overflow_hide_chat");var G,B,F,D;return!!((G=this.data)==null?0:(B=G.liveChatRenderer)==null?0:(F=B.header)==null?0:(D=F.liveChatHeaderRenderer)==null?0:D.collapseButton)}}});
oZ.prototype.collapsedChanged=oZ.prototype.collapsedChanged;oZ.prototype.urlChanged=oZ.prototype.urlChanged;oZ.prototype.dataChanged=oZ.prototype.dataChanged;oZ.prototype.onShowHideChat=oZ.prototype.onShowHideChat;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],oZ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],oZ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.kV.YtPlayerListenerBehavior),_.I("design:type",_.O5)],oZ.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],oZ.prototype,"ytOpenPopupBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],oZ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],oZ.prototype,"currentPageUrl",void 0);
_.c([_.v({computed:"computeBaseUrl(currentPageUrl,data)"}),_.I("design:type",Object)],oZ.prototype,"baseUrl",void 0);_.c([_.v({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.I("design:type",String)],oZ.prototype,"url",void 0);_.c([_.v(),_.I("design:type",Object)],oZ.prototype,"isHiddenByUser",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.I("design:type",Object)],oZ.prototype,"hidden",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.I("design:type",Boolean)],oZ.prototype,"collapsed",void 0);_.c([_.v({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.I("design:type",Boolean)],oZ.prototype,"hideChatFrame",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],oZ.prototype,"showAboveScrim",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],oZ.prototype,"watchNextGrid",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],oZ.prototype,"modernButtons",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],oZ.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],oZ.prototype,"noBorder",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],oZ.prototype,"roundBackground",void 0);
_.c([_.v({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.I("design:type",Object)],oZ.prototype,"toggleButtonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],oZ.prototype,"overflowHideChat",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],oZ.prototype,"forceDarkTheme",void 0);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oZ.prototype,"enableShowWithoutHideChatButton",null);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],oZ.prototype,"theaterWatchWhile",void 0);_.c([_.iA("#chatframe"),_.I("design:type",HTMLIFrameElement)],oZ.prototype,"chatframe",void 0);_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oZ.prototype,"onShowHideChat",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oZ.prototype,"dataChanged",null);
_.c([_.Ga("url"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oZ.prototype,"urlChanged",null);_.c([_.Ga("collapsed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oZ.prototype,"collapsedChanged",null);_.c([_.mC({is:"ytd-live-chat-frame",disableElementRegistration:!0})],oZ);
_.d(oZ,"ytd-live-chat-frame",function(){if(MiH!==void 0)return MiH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MiH=G},{mode:1});var pD$;var MA=function(){var G=_.p.apply(this,arguments)||this;G.lastRenderedPanelIds=new Set;G.visiblePanels=[];G.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.r(MA,_.p);_.w=MA.prototype;_.w.dataChanged=function(){if(this.data){for(var G=[],B=_.C(this.data),F=B.next();!F.done;F=B.next()){F=F.value;var D=void 0,u=void 0,R=(D=F)==null?void 0:(u=D.engagementPanelSectionListRenderer)==null?void 0:u.visibility;u=D=void 0;((D=F)==null?0:(u=D.engagementPanelSectionListRenderer)==null?0:u.targetId)&&R!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.push(F)}this.visiblePanels=G}else this.visiblePanels=[]};
_.w.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}}};
_.w.withoutVisiblePanelById=function(G){return this.visiblePanels.filter(function(B){var F;return((F=B.engagementPanelSectionListRenderer)==null?void 0:F.targetId)!==G})};
_.w.onYtChangeEngagementPanelVisibilityAction=function(G){var B=this,F=_.Q(G,_.RdL);if(this.data&&(F==null?0:F.targetId)&&(F==null?0:F.visibility)){var D,u=(D=this.data.find(function(N){var y;return((y=N.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===F.targetId}))==null?void 0:D.engagementPanelSectionListRenderer;
if(u){var R=this.withoutVisiblePanelById(F.targetId);F.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G=this.data.find(function(N){var y;return((y=N.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===F.targetId}))&&(R=[G].concat(_.gi(R)));
this.hideDelayMs&&F.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&R.length===0?_.Lu.addJob(function(){u.visibility=F.visibility;B.visiblePanels=R},10,this.hideDelayMs):(u.visibility=F.visibility,this.visiblePanels=R);
_.Ia(this.hostElement,"yt-engagement-panels-visible-changed",[R])}}};
_.w.onRendererstamperFinished=function(){var G=new Set(this.visiblePanels.map(function(B){var F;return(F=B.engagementPanelSectionListRenderer)==null?void 0:F.targetId}));
this.handlePanelVisibilityChange(G,this.lastRenderedPanelIds);this.lastRenderedPanelIds=G};
_.w.handlePanelVisibilityChange=function(G,B){G=G===void 0?new Set:G;B=B===void 0?new Set:B;if(this.data)for(var F=_.C(this.data),D=F.next();!D.done;D=F.next()){D=D.value;var u=void 0,R=void 0,N=(u=D)==null?void 0:(R=u.engagementPanelSectionListRenderer)==null?void 0:R.targetId;if(N&&(u=B.has(N),R=G.has(N),N=void 0,!u&&R?(R=u=void 0,N=(u=D)==null?void 0:(R=u.engagementPanelSectionListRenderer)==null?void 0:R.onShowCommands):u&&!R&&(R=u=void 0,N=(u=D)==null?void 0:(R=u.engagementPanelSectionListRenderer)==
null?void 0:R.onHideCommands),N))for(D=_.C(N),N=D.next();!N.done;N=D.next())this.ytComponentBehavior.resolveCommand(N.value)}};
MA.prototype.onRendererstamperFinished=MA.prototype.onRendererstamperFinished;MA.prototype.dataChanged=MA.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],MA.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],MA.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],MA.prototype,"lastRenderedPanelIds",void 0);_.c([_.v(),_.I("design:type",Number)],MA.prototype,"hideDelayMs",void 0);_.c([_.v(),_.I("design:type",Array)],MA.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Array)],MA.prototype,"visiblePanels",void 0);_.c([_.v(),_.I("design:type",Boolean)],MA.prototype,"isWatchWhilePanel",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],MA.prototype,"dataChanged",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],MA.prototype,"onRendererstamperFinished",null);_.c([_.mC({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],MA);
_.d(MA,"ytd-watch-engagement-panels",function(){if(pD$!==void 0)return pD$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return pD$=G},{mode:1});var YQ$;var AyS;var dJQ=function(){return _.p.apply(this,arguments)||this};
_.r(dJQ,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dJQ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dJQ.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],dJQ);
_.d(dJQ,"ytd-comments-entry-point-message-renderer",function(){if(AyS!==void 0)return AyS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return AyS=G},{mode:1});var JyH;var pm=function(){return _.p.apply(this,arguments)||this};
_.r(pm,_.p);_.ZN.Object.defineProperties(pm.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.teaserAvatar)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],pm.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],pm.prototype,"hasAvatar",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],pm);
_.d(pm,"ytd-comments-entry-point-teaser-renderer",function(){if(JyH!==void 0)return JyH;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return JyH=G},{mode:1});var cyS;var TxN=function(){return _.p.apply(this,arguments)||this};
_.r(TxN,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TxN.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TxN.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],TxN);
_.d(TxN,"ytd-comments-simplebox-renderer",function(){if(cyS!==void 0)return cyS;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cyS=G},{mode:1});var Yg=function(){var G=_.p.apply(this,arguments)||this;G.fullHeight=!_.X("comment_teaser_full_height_kill_switch")&&_.X("kevlar_watch_grid");return G};
_.r(Yg,_.p);Yg.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"}}}};
Yg.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Yg.prototype.onTap=function(){var G=this.tapCommand;G&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(G))};
Yg.prototype.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.ZN.Object.defineProperties(Yg.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.onTap)return this.data.onTap}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Yg.prototype.onKeyUp=Yg.prototype.onKeyUp;Yg.prototype.onTap=Yg.prototype.onTap;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Yg.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Yg.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Yg.prototype,"fullHeight",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"tapCommand",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"simpleboxPlaceholder",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Yg.prototype,"hasSimpleboxPlaceholder",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"simpleboxAvatar",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"teaserContent",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Yg.prototype,"hasTeaserContent",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"teaserAvatar",null);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Yg.prototype,"hasTeaserAvatar",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"messageText",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Yg.prototype,"contentRenderer",null);_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Yg.prototype,"hasContents",null);
_.c([_.O("data"),_.v({reflectToAttribute:!0}),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Yg.prototype,"hasContentRenderer",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Yg.prototype,"onTap",null);_.c([_.Pm("keypress"),_.I("design:type",Function),_.I("design:paramtypes",[_.nG]),_.I("design:returntype")],Yg.prototype,"onKeyUp",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Yg);
_.d(Yg,"ytd-comments-entry-point-header-renderer",function(){if(YQ$!==void 0)return YQ$;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return YQ$=G},{mode:1});var I2S;_.YN(_.E8L,"yt-animated-rolling-number",{props:{numberText:_.Hd,numberValue:_.Hd,heightPx:_.Hd,fontSizeMultiplier:_.Hd,shouldAnimate:_.Hd,forceRollUp:_.Hd}});var f2$=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),tiU={numberText:"",heightPx:2*f2$,shouldAnimate:!1},AK=function(){var G=_.p.apply(this,arguments)||this;G.usingAnimatedComponents=!0;G.wasDetailed=!1;G.JSC$22190_browserSupportsAnimation=_.X("web_supports_animations_api");G.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};G.detailed=!1;G.shouldAnimate=!1;G.viewCountProps=tiU;G.dateTextProps=
tiU;G.isEmpty=!1;G.metadataBadgesInDescription=_.X("web_metadata_badges_in_description");return G};
_.r(AK,_.p);_.w=AK.prototype;_.w.computeIsEmpty=function(G,B,F,D,u,R,N,y){return!_.X("web_hide_watch_info_empty")||_.zx(G)?!1:B?!(_.zx(F)||D||_.zx(u)||_.zx(R)||N||_.zx(y)):!0};
_.w.attached=function(){var G=this;_.te().resolve(_.SL).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(B){G.set("videoPrimaryInfoRenderer.subtitle",B)})};
_.w.detached=function(){_.te().resolve(_.SL).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.w.resetAnimationState=function(){this.shouldAnimate=!1};
_.w.updateDynamicMetadata=function(){if(this.JSC$22190_browserSupportsAnimation){if(!this.detailed){var G,B,F,D;var u=(G=this.videoPrimaryInfoRenderer)==null?void 0:(B=G.viewCount)==null?void 0:(F=B.videoViewCountRenderer)==null?void 0:(D=F.extraShortViewCount)==null?void 0:D.simpleText;var R,N,y,U;var q=(R=this.videoPrimaryInfoRenderer)==null?void 0:(N=R.viewCount)==null?void 0:(y=N.videoViewCountRenderer)==null?void 0:(U=y.shortViewCount)==null?void 0:U.simpleText}if(!q){var h,K,a,m;u=(h=this.videoPrimaryInfoRenderer)==
null?void 0:(K=h.viewCount)==null?void 0:(a=K.videoViewCountRenderer)==null?void 0:(m=a.unlabeledViewCountValue)==null?void 0:m.simpleText;var L,W,e,b;q=(L=this.videoPrimaryInfoRenderer)==null?void 0:(W=L.viewCount)==null?void 0:(e=W.videoViewCountRenderer)==null?void 0:(b=e.viewCount)==null?void 0:b.simpleText}var M,t,T;G=Number((M=this.videoPrimaryInfoRenderer)==null?void 0:(t=M.viewCount)==null?void 0:(T=t.videoViewCountRenderer)==null?void 0:T.originalViewCount);var A,Z;M=(A=this.videoPrimaryInfoRenderer)==
null?void 0:(Z=A.relativeDateText)==null?void 0:Z.simpleText;var P;A=!((P=this.videoPrimaryInfoRenderer)==null||!P.relativeDateText);if(u&&q&&G&&(M||!A)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;P=q.split(new RegExp("("+u+")"));u=_.$9(P[0]);var RI;q={numberText:(RI=P[1])!=null?RI:"",numberValue:G,heightPx:2*f2$,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var yo;RI=((yo=P[2])!=null?yo:"")+"  ";this.setViewCount(q,u,_.$9(RI));if(!this.detailed&&
A){u=M.split(/(\d+)/);yo=_.$9(u[0]);var hg;RI={numberText:(hg=u[1])!=null?hg:"",heightPx:2*f2$,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var US;hg=((US=u[2])!=null?US:"")+"  ";this.setDateText(RI,yo,_.$9(hg))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.w.setViewCount=function(G,B,F){_.zx(B)!==_.zx(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=B);this.viewCountProps.numberText!==(G==null?void 0:G.numberText)&&(this.viewCountProps=G||tiU);_.zx(F)!==_.zx(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=F)};
_.w.setDateText=function(G,B,F){_.zx(B)!==_.zx(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=B);this.dateTextProps.numberText!==(G==null?void 0:G.numberText)&&(this.dateTextProps=G||tiU);_.zx(F)!==_.zx(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=F)};
_.w.onYtUpdateViewershipAction=function(G){this.videoPrimaryInfoRenderer&&(_.Q(G,vBD).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Q(G,vBD).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Q(G,vBD).viewCount)))};
_.w.onYtUpdateDateTextAction=function(G){if(this.videoPrimaryInfoRenderer){G=_.Q(G,bOz).dateText;this.shouldAnimate=!0;var B;((B=this.videoPrimaryInfoRenderer)==null?0:B.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",G):this.set("videoPrimaryInfoRenderer.dateText",G)}};
_.ZN.Object.defineProperties(AK.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return OXD(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.zx(OXD(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.zx(this.viewCountPreNumberText),this.viewCountProps.numberText,_.zx(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.zx(this.dateTextPreNumberText),this.dateTextProps.numberText,_.zx(this.dateTextPostNumberText)].join("")}}});
AK.prototype.updateDynamicMetadata=AK.prototype.updateDynamicMetadata;AK.prototype.resetAnimationState=AK.prototype.resetAnimationState;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],AK.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],AK.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AK.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"detailed",void 0);_.c([_.v(),_.I("design:type",Object)],AK.prototype,"shouldAnimate",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"viewCountPreNumberText",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"viewCountProps",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"viewCountPostNumberText",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"dateTextPreNumberText",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"dateTextProps",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"dateTextPostNumberText",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.I("design:type",Object)],AK.prototype,"isEmpty",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],AK.prototype,"metadataBadgesInDescription",void 0);_.c([_.O("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.I("design:type",Object),_.I("design:paramtypes",[])],AK.prototype,"infoText",null);
_.c([_.O("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.I("design:type",String),_.I("design:paramtypes",[])],AK.prototype,"descriptionInfoTooltipText",null);_.c([_.O("detailed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],AK.prototype,"showDescriptionInfoTooltip",null);
_.c([_.O("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.I("design:type",String),_.I("design:paramtypes",[])],AK.prototype,"animatedViewCountAccessibilityLabel",null);_.c([_.O("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.I("design:type",String),_.I("design:paramtypes",[])],AK.prototype,"animatedDateTextAccessibilityLabel",null);
_.c([_.Ga("videoPrimaryInfoRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],AK.prototype,"resetAnimationState",null);_.c([_.Ga("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],AK.prototype,"updateDynamicMetadata",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-watch-info-text"})],AK);
_.d(AK,"ytd-watch-info-text",function(){if(I2S!==void 0)return I2S;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return I2S=G},{mode:1});var Z_z;var gU$="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var SQB=_.Y(function(G){var B=G.data;var F=G.setTapCommand;_.bC(function(){var D=_.X1(B().onTap);F(D)},"CLm0Xe");
return _.l("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8}),_.l("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.l("span",null,function(){return B().simpleboxText})))},"Kk");var swH=_.Y(function(G){return _.l("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.l(_.E,{cond:function(){return _.Q(G.data().avatar,_.QH)},
then:function(B){return _.l(_.h8,{data:B,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.l("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.l(_.Wd,{text:function(){return G.data().teaserText}})))},"Lk");var xJ$=_.Y(function(G){var B=G.data;var F=G.setTapCommand;_.bC(function(){var D=_.X1(B().onTap);F(D)},"qxjCCd");
return _.l("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.l(_.uR,{data:function(){return B().teasers}},{commentsEntryPointTeaserViewModel:swH}))},"Nk");var PbQ=_.Y(function(G){var B=G.data;var F=G.setTapCommand;_.bC(function(){var D=_.X1(B().onTap);F(D)},"CRZByf");
return _.l("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.l(_.Wd,{text:function(){return B().messageText}}))},"Pk");var GgB=_.Y(function(G){var B=G.data;var F=G.setTapCommand;var D=G.isDisabled;_.bC(function(){var u=(D==null?0:D())?void 0:_.X1(B().onTap);F(u)},"GZxRqd");
return _.l("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.l(_.Pr,{icon:function(){return B().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.l(_.E,{cond:function(){return B().image},
then:function(u){return _.l(_.vr,{data:u,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.l(_.Wd,{text:function(){return B().text},
className:function(){return B().image||B().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.l(_.uR,{data:function(){return B().button}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:D==null?void 0:D()}}})}}))},"Rk");var BFN=_.Y(function(G){var B=G.data;var F=G.itemIndex;var D=G.selectedIndex;var u=G.indexUpdatedCallback;var R=G.observer;G=G.title;var N=_.W5("yt-carousel-item-view-model",function(K){R&&R().observe(K)}),y=function(K){F()===D()&&u(K)},U=_.FT(FD$),q=_.FT(_.Lfl),h=function(){var K,a,m,L,W;
return((K=B())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!U()||((a=B())==null?void 0:a.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((m=q())==null?void 0:m.includes("PAposts_by_host"))||((L=B())==null?void 0:L.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((W=q())==null?void 0:W.includes("PAyouchat"))};
return _.l("yt-carousel-item-view-model",{el:N,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":G},_.l(_.uR,{data:function(){var K,a;return(a=(K=_.Q(B().carouselItem,ZU$))==null?void 0:K.textCarousel)!=null?a:B().carouselItem}},{textCarouselItemViewModel:function(K){return _.l(GgB,{data:K.data,
setTapCommand:y,isDisabled:h})},
commentTeaserCarouselItemViewModel:function(K){return _.l(xJ$,{data:K.data,setTapCommand:y})},
commentInputBoxCarouselItemViewModel:function(K){return _.l(SQB,{data:K.data,setTapCommand:y})},
commentsEntryPointMessageViewModel:function(K){return _.l(PbQ,{data:K.data,setTapCommand:y})}}))},"Sk");var iqN=_.Y(function(G){var B=G.numDots;var F=G.activeIndex;return _.l("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.l(_.jR,{each:function(){return Array.from({length:B()})},
keyBy:"INDEX"},function(D,u){return _.l("div",{class:function(){var R={};return _.UY("ytCarouselDotsShapeDot",(R.ytCarouselDotsShapeDotActive=u===F(),R))}})}))},"Tk");var FNG=_.Y(function(G){var B=G.data;var F=G.handleCarouselNavigation;var D=G.numItems;var u=G.selectedIndex;var R=function(){return{disabled:u()===0}},N=function(){return{disabled:u()===D()-1}};
return _.l("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.l("div",null,_.l("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return B().title}),_.l(_.E,{cond:function(){return B().subtitle},
then:function(y){return _.l("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return B().subtitleAccessibilityText}},y)}})),_.l(_.E,{cond:function(){return D()>1},
then:function(){return _.l("div",{class:"ytCarouselTitleViewModelNavigation"},_.l(iqN,{numDots:D,activeIndex:u}),_.l(_.E,{cond:function(){return B().previousButton},
then:function(y){return _.l(_.uR,{data:y},{buttonViewModel:function(U){return _.l(_.cd,{data:U.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return F(-1)},
buttonOverrides:R})}})}}),_.l(_.E,{cond:function(){return B().nextButton},
then:function(y){return _.l(_.uR,{data:y},{buttonViewModel:function(U){return _.l(_.cd,{data:U.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return F(1)},
buttonOverrides:N})}})}}))}}))},"Uk");_.YN(_.Y(function(G){var B=G.data;var F,D=_.W5("yt-video-metadata-carousel-view-model"),u=_.W5("div",function(A){var Z=function(){var P=A.offsetWidth*W(),RI=24*(W()-1);a(P+RI)};
Z();window.ResizeObserver&&(F=new ResizeObserver(Z),F.observe(A))}),R=_.v5("HTML_DIR")==="rtl",N=!1,y=0,U=0;
G=_.C(_.qg(0,void 0,"M49TDf"));var q=G.next().value,h=G.next().value;G=_.C(_.qg(0,void 0,"zLIok"));var K=G.next().value,a=G.next().value;G=_.C(_.qg(!1,void 0,"bhelhc"));var m=G.next().value,L=G.next().value,W=function(){var A,Z,P;return(P=(A=B())==null?void 0:(Z=A.carouselTitles)==null?void 0:Z.length)!=null?P:0},e=function(){u.value&&u.value.scrollLeft!==y&&h((R?u.value.scrollLeft<y:u.value.scrollLeft>y)?Math.min(q()+1,W()-1):Math.max(q()-1,0))},b;
window.IntersectionObserver&&(b=new IntersectionObserver(function(A){A=_.C(A);for(var Z=A.next();!Z.done;Z=A.next())if(Z.value.isIntersecting){if(N){N=!1;break}e()}else h(U)},{threshold:.2}));
_.bC(function(){if(u.value){var A=(R?-1:1)*(K()/W()+12)*(m()&&b?U:q());typeof u.value.scrollTo==="function"?u.value.scrollTo({left:A,behavior:"smooth"}):u.value.scrollLeft=A;y=A;U=m()&&b?U:q()}},"s9rbgc");
var M,t=function(A){M=A};
_.VI(function(){var A;(A=F)==null||A.disconnect();var Z;(Z=b)==null||Z.disconnect()});
var T=function(A){A=q()+A;A>=0&&A<W()&&(N=!0,h(A))};
return _.l("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:D,"on:click":_.gJ(function(A){if(_.ht(_.EY(A),D.value,["BUTTON".toString()])||!M)return!1;_.te().resolve(_.Wr).resolveCommand(M,{forceClickLogging:!0});return!1}),
"on:touchstart":_.gJ(function(){L(!0);return!1}),
"on:touchend":_.gJ(function(){b||e();L(!1);return!1}),
hidden:function(){var A,Z;return!((A=B())==null?0:(Z=A.carouselItems)==null?0:Z.length)}},_.l("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.l(_.E,{cond:function(){return B().carouselTitles},
then:function(A){return _.l(_.uR,{data:function(){return A()[m()&&b?U:q()]}},{carouselTitleViewModel:function(Z){return _.l(FNG,{data:Z.data,
handleCarouselNavigation:T,numItems:W,selectedIndex:q})}})}})),_.l("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:u},_.l("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+K()+"px;"}},_.l(_.E,{cond:function(){return B().carouselItems},
then:function(A){return _.l(_.jR,{each:A},function(Z,P){return _.l(_.uR,{data:function(){return Z}},{carouselItemViewModel:function(RI){return _.l(BFN,{data:RI.data,
itemIndex:P,selectedIndex:q,indexUpdatedCallback:t,observer:b,title:function(){a:{var yo=P();var hg,US=(hg=B())==null?void 0:hg.carouselTitles;if(US&&(yo=US[yo])){var aI;yo=(aI=_.Q(yo,tqN))==null?void 0:aI.title;break a}yo=void 0}return yo}})}})})}}))))},"Wk"),"yt-video-metadata-carousel-view-model",{props:{data:_.Hd}});var dH=function(){var G=_.p.apply(this,arguments)||this;G.isHovering=!1;G.enableColorSampling=_.X("web_delhi_colorful_sd");G.metadataBadgesInDescription=_.X("web_metadata_badges_in_description");G.descriptionCollapsed=!0;G.useFadedScrimDescription=_.X("kevlar_enable_faded_scrim_on_description");G.skinnyMode=!1;G.playlist=!1;G.isDark=document.documentElement.hasAttribute("dark");G.disableVideoOwnerOnTap=_.X("swatchie_video_owner_on_tap_ks");G.swatcherooDelayLoad=_.X("swatcheroo_enable_ghost_cards");
G.primaryMenuWidth=0;G.videoId="";G.titleHeadlineXs=_.X("web_watch_typography_title_headline_xs");G.titleHeadlineS=_.X("web_watch_typography_title_headline_s");G.titleHeadlineM=_.X("web_watch_typography_title_headline_m");G.titleHashtagBlackLinkified=_.X("web_title_hashtag_black_linkified");G.titleHashtagGreyLinkified=_.X("web_title_hashtag_grey_linkified");G.actionButtonsUpdateOwnerWidth=!0;G.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};G.isFullscreen=!1;G.isTheaterMode=!1;return G};
_.r(dH,_.p);_.w=dH.prototype;_.w.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.w.updateOwnerAndDescriptionPosition=function(){_.X("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),jk(this.bottomRowElement,this.ownerElement)):(jk(this.bottomRowElement,this.descriptionElement),jk(this.topRowElement,this.ownerElement)))};
_.w.titleOnTap=function(G){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||this.handleExpandDescriptionCommands()}};
_.w.videoOwnerOnTap=function(G){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.w.detached=function(){var G=this,B;return _.n(function(F){(B=G.resizeObserver)==null||B.disconnect();_.di(F)})};
_.w.maybeAttachResizeObserver=function(){var G=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.s_(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){G.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.w.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.w.stripAttributedDescription=function(G){return{content:G.content.replace(/[\r\n]{2,}/g,"\n")}};
_.w.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.X("web_modern_buttons"),forceIconButton:!_.X("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:!0,forceIconOnly:!0}},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"}}}};
_.w.videoPrimaryInfoRendererChanged=function(){var G;if((G=this.videoPrimaryInfoRenderer)==null?0:G.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.w.videoSecondaryInfoRendererChanged=function(){var G,B;(G=this.descriptionInlineExpander)==null||(B=G.collapse)==null||B.call(G);this.descriptionExpandClientVe=_.ge(110509);this.descriptionCollapseClientVe=_.ge(110510);G=_.qW();B=_.Uw();G&&B&&(_.X("combine_ve_grafts")?(_.Zx(_.Rh(),this.descriptionExpandClientVe,B),_.Zx(_.Rh(),this.descriptionCollapseClientVe,B)):_.HT(G,B,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.w.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.w.updateTopLevelIconsOnly=function(){var G=this;_.X("top_level_update_killswitch")||this.menu&&_.Lu.addLowPriorityJob(function(){G.menu.topLevelIconsOnly=G.skinnyMode},_.sD("swathceroo_delay_flexible_menu_update",100))};
_.w.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.w.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.w.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.w.onYtTextInlineExpanderExpandedChanged=function(){if(!_.X("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var G,B;(B=(G=this.structuredDescriptionContentRendererElement).resize)==null||B.call(G)}};
_.w.onRenderStamperFinished=function(G){(G==null?void 0:G.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.w.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.w.onYtExpanderLessTapped=function(){var G,B=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showLessCommand;B&&this.ytComponentBehavior.resolveCommand(B)};
_.w.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.w.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.w.onDescriptionClick=function(G){if(!_.oQ(_.VW(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.X("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.w.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.w.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.w.logCollapseClick=function(){var G=_.qW();G&&this.descriptionCollapseClientVe&&_.$I(G,this.descriptionCollapseClientVe)};
_.w.logExpandClick=function(){var G=_.qW();G&&this.descriptionExpandClientVe&&_.$I(G,this.descriptionExpandClientVe)};
_.w.collapseDescription=function(){this.descriptionCollapsed=!0};
_.w.scrollToTopOfContainer=function(){_.T1(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.w.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.w.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.w.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.w.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var G,B;(B=(G=this.descriptionInlineExpander).resize)==null||B.call(G)}else _.em(new _.Uf("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var F;(F=this.menu)==null||F.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.w.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var G,B,F=(B=(G=_.IF(this.menu).querySelector("#button-shape"))==null?void 0:G.clientWidth)!=null?B:0,D,u;G=((u=(D=_.IF(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:D.clientWidth)!=null?u:0)+8+F;var R,N;F=(N=(R=_.IF(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:R.children.length)!=null?N:2;G<=8*F||(this.primaryMenuWidth=G)}};
_.w.onYtUpdateTitleAction=function(G){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Q(G,VcZ).title)};
_.w.onYtUpdateDescriptionAction=function(G){if(G=_.Q(G,_.N4a)){var B,F=!((B=this.videoSecondaryInfoRenderer)==null||!B.attributedDescription);G.isEmpty||!G.description&&!G.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):G.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",G.attributedDescription):G.description&&(F?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.hx(G.description)):this.set("videoSecondaryInfoRenderer.description",G.description))}};
_.w.onYtDarkModeToggledAction=function(G){this.isDark=G};
_.w.registerPanel=function(){if(!_.X("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var G=_.X("web_watch_imax_theater_mode")&&this.isTheaterMode;G=_.X("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G;var B=_.te().resolve(_.yR);B&&!G&&B.registerPanel("engagement-panel-structured-description",this)}};
_.w.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.w.parseColorSamplingData=function(){var G;if(_.X("web_delhi_colorful_sd")&&((G=this.structuredDescriptionContentRenderer)==null?0:G.items)&&(G=this.structuredDescriptionContentRenderer.items.find(function(u){return!!_.Q(u,h4)}))){var B,F;
this.hoverColor={lightTheme:(B=_.Q(G,h4))==null?void 0:B.lightThemeColorPalette,darkTheme:(F=_.Q(G,h4))==null?void 0:F.darkThemeColorPalette};var D;this.hoverText=(D=_.Q(G,h4))==null?void 0:D.colorSampledDescriptionBodyText}};
_.w.updateHoverColor=function(){if(_.X("web_delhi_colorful_sd")){var G=this.hoverColor,B={},F;G=(F=this.isDark?G==null?void 0:G.darkTheme:G==null?void 0:G.lightTheme)!=null?F:{};F=_.C(gU$);for(var D=F.next();!D.done;D=F.next()){D=D.value;var u=G[D];B["--yt-saturated-"+_.s1(D)]=u?_.Kp(u):"initial"}_.Ss(this.hostElement,B)}};
_.w.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.w.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.w.showPanel=function(G){this.expandDescription();var B=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;B.resize();var F,D=G==null?void 0:(F=G.sectionListEngagementPanelExtras)==null?void 0:F.scrollToItemSectionIdentifier;D?_.Lu.addJob(function(){B==null||B.scrollToSection(D)},8):this.scrollToTopOfContainer()};
_.w.isVisible=function(){return!this.descriptionCollapsed};
_.w.getReloadContinuation=function(){};
_.w.hidePanel=function(){};
_.w.updatePanel=function(){};
_.ZN.Object.defineProperties(dH.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var G;return _.X("web_delhi_colorful_sd")&&(G=this.structuredDescriptionContentRenderer)!=null&&G.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(B){return!_.Q(B,h4)&&!_.Q(B,YPB)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.structuredDescriptionContentRendererComputed)!=null&&G.items){var B;G=_.C((B=this.structuredDescriptionContentRendererComputed)==null?void 0:B.items);for(B=G.next();!B.done;B=G.next())if(B=_.Q(B.value,_.GTt))return B}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoPrimaryInfoRenderer)==null?0:G.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!!((G=this.videoSecondaryInfoRenderer)==null?0:(B=G.owner)==null?0:(F=B.videoOwnerRenderer)==null?0:F.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var G,B;if((G=this.videoSecondaryInfoRenderer)==null?0:(B=G.attributedDescription)==null?0:B.content){var F,D;return(D=this.stripAttributedDescription((F=this.videoSecondaryInfoRenderer)==null?void 0:F.attributedDescription))!=null?D:{runs:[]}}}if(_.X("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var u,R,N,y;return(y=(N=(u=this.videoSecondaryInfoRenderer)==
null?void 0:u.description)!=null?N:(R=this.videoSecondaryInfoRenderer)==null?void 0:R.attributedDescription)!=null?y:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.headerRuns)!=null?B:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentsEntryPointHeaderRenderer)==null||!G.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoMetadataCarousel)==null||!G.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.sD("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var G,B,F=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(B=G.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(F&&F.rows&&F.collapsedItemCount!==void 0&&!(F.rows.length<=F.collapsedItemCount))return F.rows=F.rows.slice(F.collapsedItemCount),F.collapsedItemCount=0,F}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var G,B,F=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(B=G.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(F&&F.rows&&F.collapsedItemCount!==void 0)return F.rows=F.rows.slice(0,F.collapsedItemCount),F.collapsedItemCount=F.rows.length,F}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!((G=this.structuredDescriptionContentRendererComputed)==null?0:(B=G.items)==null?0:B.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var G;return(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.videoSecondaryInfoRenderer)==null?0:(B=G.owner)==null?0:(F=B.videoOwnerRenderer)==null?0:F.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,B,F,D;return!!((G=this.videoPrimaryInfoRenderer)==null?0:(B=G.videoActions)==null?0:(F=B.menuRenderer)==null?0:(D=F.flexibleItems)==null?0:D.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.$N(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.$N(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var G=this;if(_.X("web_title_hashtag_grey_delinkified")){var B,F=_.UK.unsafeClone((B=this.videoPrimaryInfoRenderer)==null?void 0:B.title);(B=F==null?void 0:F.runs)&&B.forEach(function(D){if(D==null?0:D.navigationEndpoint)D.textColor=4284506208,G.isDark&&(D.textColor=4289374890)});
return F}return(F=this.videoPrimaryInfoRenderer)==null?void 0:F.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.X("web_title_hashtag_black_delinkified")||_.X("web_title_hashtag_grey_delinkified")}}});
dH.prototype.updateHoverColor=dH.prototype.updateHoverColor;dH.prototype.parseColorSamplingData=dH.prototype.parseColorSamplingData;dH.prototype.resetDescriptionState=dH.prototype.resetDescriptionState;dH.prototype.registerPanel=dH.prototype.registerPanel;dH.prototype.onYtExpanderLessTapped=dH.prototype.onYtExpanderLessTapped;dH.prototype.onYtExpanderMoreTapped=dH.prototype.onYtExpanderMoreTapped;dH.prototype.onRenderStamperFinished=dH.prototype.onRenderStamperFinished;
dH.prototype.onYtTextInlineExpanderExpandedChanged=dH.prototype.onYtTextInlineExpanderExpandedChanged;dH.prototype.onYtTextInlineExpanderCollapseClicked=dH.prototype.onYtTextInlineExpanderCollapseClicked;dH.prototype.onYtTextInlineExpanderExpandClicked=dH.prototype.onYtTextInlineExpanderExpandClicked;dH.prototype.moveActionsElement=dH.prototype.moveActionsElement;dH.prototype.updateTopLevelIconsOnly=dH.prototype.updateTopLevelIconsOnly;dH.prototype.structuredDescriptionContentRendererChanged=dH.prototype.structuredDescriptionContentRendererChanged;
dH.prototype.videoSecondaryInfoRendererChanged=dH.prototype.videoSecondaryInfoRendererChanged;dH.prototype.videoPrimaryInfoRendererChanged=dH.prototype.videoPrimaryInfoRendererChanged;dH.prototype.maybeUpdateActionsOnSeparateLine=dH.prototype.maybeUpdateActionsOnSeparateLine;dH.prototype.updateOwnerAndDescriptionPosition=dH.prototype.updateOwnerAndDescriptionPosition;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],dH.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],dH.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],dH.prototype,"ytdReduxBehavior",void 0);
_.c([_.iA("#above-the-fold"),_.I("design:type",HTMLElement)],dH.prototype,"aboveTheFoldContainer",void 0);_.c([_.iA("#menu ytd-menu-renderer"),_.I("design:type",Object)],dH.prototype,"menu",void 0);_.c([_.iA("#description-inline-expander"),_.I("design:type",Object)],dH.prototype,"descriptionInlineExpander",void 0);_.c([_.iA("#faded-structured-description"),_.I("design:type",Object)],dH.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.c([_.iA("#structured-description"),_.I("design:type",Object)],dH.prototype,"structuredDescriptionContentRendererElement",void 0);_.c([_.iA("#title"),_.I("design:type",HTMLElement)],dH.prototype,"titleElement",void 0);_.c([_.iA("#description"),_.I("design:type",HTMLElement)],dH.prototype,"descriptionElement",void 0);_.c([_.iA("#description-interaction"),_.I("design:type",Object)],dH.prototype,"descriptionInteraction",void 0);
_.c([_.iA("#owner"),_.I("design:type",HTMLElement)],dH.prototype,"ownerElement",void 0);_.c([_.iA("#top-row"),_.I("design:type",HTMLElement)],dH.prototype,"topRowElement",void 0);_.c([_.iA("#bottom-row"),_.I("design:type",HTMLElement)],dH.prototype,"bottomRowElement",void 0);_.c([_.iA("#actions"),_.I("design:type",HTMLElement)],dH.prototype,"actionsElement",void 0);_.c([_.iA("#bottom-actions"),_.I("design:type",HTMLElement)],dH.prototype,"bottomActionsElement",void 0);
_.c([_.iA("#ytd-watch-info-text"),_.I("design:type",Object)],dH.prototype,"watchInfoTextElement",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"videoSecondaryInfoRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.c([_.v(),_.I("design:type",Object)],dH.prototype,"videoMetadataCarousel",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.O("structuredDescriptionContentRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"structuredDescriptionContentRendererComputed",null);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"videoSummary",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"merchShelf",void 0);
_.c([_.v(),_.I("design:type",Object)],dH.prototype,"infoPanelBelowMetadata",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"hoverColor",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"hoverText",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"isHovering",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"enableColorSampling",void 0);
_.c([_.O("structuredDescriptionContentRendererComputed"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"productShelf",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"metadataBadgesInDescription",void 0);_.c([_.O("videoPrimaryInfoRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"shouldHideBadges",null);
_.c([_.O("productShelf","descriptionCollapsed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"shouldShowProductShelf",null);_.c([_.v(),_.I("design:type",Boolean)],dH.prototype,"isWatchFlexy",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"descriptionCollapsed",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],dH.prototype,"useFadedScrimDescription",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"skinnyMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("videoSecondaryInfoRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"largerItemWrap",null);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"playlist",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"clarifyBox",void 0);_.c([_.v(),_.I("design:type",Object)],dH.prototype,"playerAds",void 0);
_.c([_.v(),_.I("design:type",Boolean)],dH.prototype,"isDark",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],dH.prototype,"actionsOnSeparateLine",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"disableVideoOwnerOnTap",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"swatcherooDelayLoad",void 0);_.c([_.v(),_.I("design:type",Boolean)],dH.prototype,"suppressTopLevelMetadataRows",void 0);
_.c([_.v(),_.I("design:type",Object)],dH.prototype,"primaryMenuWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"videoId",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"titleHeadlineXs",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"titleHeadlineS",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"titleHeadlineM",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"titleHashtagBlackLinkified",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"titleHashtagGreyLinkified",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.c([_.Ry("skinnyMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"updateOwnerAndDescriptionPosition",null);
_.c([_.Ry("skinnyMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"maybeUpdateActionsOnSeparateLine",null);_.c([_.O("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"descriptionText",null);
_.c([_.O("videoSecondaryInfoRenderer.headerRuns"),_.I("design:type",Array),_.I("design:paramtypes",[])],dH.prototype,"headerRuns",null);_.c([_.v({value:!1}),_.O("commentsEntryPointHeaderRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"hasTeaser",null);_.c([_.v({value:!1,reflectToAttribute:!0}),_.O("videoMetadataCarousel"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"hasTeaserCarousel",null);
_.c([_.v({value:3}),_.O("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"descriptionMaxLines",null);_.c([_.O("videoSecondaryInfoRenderer.metadataRowContainer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"collapsibleMetadataRows",null);
_.c([_.O("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"alwaysVisibleMetadataRows",null);_.c([_.O("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"hasInlineStructuredDescription",null);
_.c([_.O("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"showInlineStructuredDescription",null);_.c([_.O("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"descriptionExpandCommand",null);
_.c([_.O("videoSecondaryInfoRenderer.owner"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"videoOwnerCommand",null);_.c([_.v({reflectToAttribute:!0}),_.O("videoPrimaryInfoRenderer.videoActions"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"flexMenuEnabled",null);_.c([_.v({selector:_.aQ,reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"isFullscreen",void 0);
_.c([_.v({selector:_.KA,reflectToAttribute:!0}),_.I("design:type",Object)],dH.prototype,"isTheaterMode",void 0);_.c([_.O("descriptionText","useFadedScrimDescription"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"showAttributedStringDescription",null);_.c([_.O("descriptionText","useFadedScrimDescription"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"showFormattedStringDescription",null);
_.c([_.O("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],dH.prototype,"showFadedStructuredDescription",null);_.c([_.Ry("videoPrimaryInfoRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"videoPrimaryInfoRendererChanged",null);_.c([_.O("videoPrimaryInfoRenderer.title"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"videoTitle",null);
_.c([_.O("videoPrimaryInfoRenderer"),_.I("design:type",Object),_.I("design:paramtypes",[])],dH.prototype,"noEndpoints",null);_.c([_.Ry("videoSecondaryInfoRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"videoSecondaryInfoRendererChanged",null);
_.c([_.Ga("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"structuredDescriptionContentRendererChanged",null);_.c([_.Ga("skinnyMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"updateTopLevelIconsOnly",null);
_.c([_.Ga("skinnyMode"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"moveActionsElement",null);_.c([_.Pm("yt-text-inline-expander-expand-clicked"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.c([_.Pm("yt-text-inline-expander-collapse-clicked"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.c([_.Pm("yt-text-inline-expander-expanded-changed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],dH.prototype,"onRenderStamperFinished",null);_.c([_.Pm("yt-expander-more-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"onYtExpanderMoreTapped",null);_.c([_.Pm("yt-expander-less-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"onYtExpanderLessTapped",null);
_.c([_.Ga("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"registerPanel",null);_.c([_.Ga("videoSecondaryInfoRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"resetDescriptionState",null);
_.c([_.Ga("structuredDescriptionContentRenderer"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"parseColorSamplingData",null);_.c([_.Ga("hoverColor","isDark"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dH.prototype,"updateHoverColor",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-watch-metadata"})],dH);
_.d(dH,"ytd-watch-metadata",function(){if(Z_z!==void 0)return Z_z;var G=document.createElement("template");_.H(G,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" 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="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Z_z=G},{mode:2});var JK=function(){var G=_.p.apply(this,arguments)||this;G.hidden=!1;G.errorScreen=null;G.playlistData={};return G};
_.r(JK,_.p);_.w=JK.prototype;_.w.getPlayer=function(){return this.ytdPlayer};
_.w.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:ql(["aa","eocs"])}}};
_.w.onActiveChanged=function(){_.VU().dispatch(dp$(this.ytPageBehavior.active))};
_.w.playerDataChanged=function(){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData)};
_.w.dataChanged=function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)};
_.w.sizeChanged=function(){var G,B;(B=(G=this.metadata).resize)==null||B.call(G)};
_.w.attached=function(){this.watchController=new ov(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.w.detached=function(){_.ve(this.watchController);this.watchController=void 0};
_.w.getPlayerContainer=function(){return this.playerContainer};
_.w.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.w.provideRenderingData=function(G,B){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=B;break;case "ERROR_SCREEN":this.errorScreen=B!=null?B:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=B;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=B;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=B;break;case "RICH_METADATA":this.richMetadataRowContainer=B;break;case "CLARIFICATION":this.clarificationData=B;break;case "PLAYLIST":this.playlistData=
B!=null?B:{};break;case "MERCH_SHELF":this.merchShelf=B;break;case "TICKET_SHELF":this.ticketShelf=B;break;case "LIMITED_STATE":this.limitedState=B;break;case "DONATION_SHELF":this.donationShelf=B;break;case "ALERTS":this.alerts=B}};
_.ZN.Object.defineProperties(JK.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return!this.hidden&&!!((G=this.data)==null?0:(B=G.contents)==null?0:(F=B.twoColumnWatchNextResults)==null?0:F.conversationBar)}}});
JK.prototype.sizeChanged=JK.prototype.sizeChanged;JK.prototype.dataChanged=JK.prototype.dataChanged;JK.prototype.playerDataChanged=JK.prototype.playerDataChanged;JK.prototype.onActiveChanged=JK.prototype.onActiveChanged;_.c([_.k(ir.YtPageBehavior),_.I("design:type",Object)],JK.prototype,"ytPageBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],JK.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"playerData",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],JK.prototype,"hidden",void 0);_.c([_.iA("#ytd-player"),_.I("design:type",HTMLElement)],JK.prototype,"ytdPlayer",void 0);_.c([_.iA("#player-container"),_.I("design:type",HTMLElement)],JK.prototype,"playerContainer",void 0);_.c([_.iA("#metadata"),_.I("design:type",Object)],JK.prototype,"metadata",void 0);_.c([_.iA("#playlist"),_.I("design:type",HTMLElement)],JK.prototype,"playlistPanel",void 0);
_.c([_.v({selector:iJz,reflectToAttribute:!0}),_.I("design:type",Object)],JK.prototype,"fixie",void 0);_.c([_.v({selector:_.jNo,reflectToAttribute:!0}),_.I("design:type",Object)],JK.prototype,"singleColumn",void 0);_.c([_.v({selector:function(G){return _.KA(G)&&!_.aQ(G)},
reflectToAttribute:!0}),_.I("design:type",Object)],JK.prototype,"theater",void 0);_.c([_.v({selector:_.aQ,reflectToAttribute:!0}),_.I("design:type",Object)],JK.prototype,"fullscreen",void 0);_.c([_.v({selector:B8H}),_.I("design:type",Object)],JK.prototype,"windowSize",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"singleColumnContents",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"errorScreen",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"playlistData",void 0);
_.c([_.v(),_.I("design:type",Object)],JK.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"videoSecondaryInfoRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"richMetadataRowContainer",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"clarificationData",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"ticketShelf",void 0);
_.c([_.v(),_.I("design:type",Object)],JK.prototype,"merchShelf",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"donationShelf",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"limitedState",void 0);_.c([_.v(),_.I("design:type",Object)],JK.prototype,"alerts",void 0);_.c([_.O("playlistData"),_.I("design:type",Object),_.I("design:paramtypes",[])],JK.prototype,"hasPlaylistData",null);
_.c([_.O("data","hidden"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],JK.prototype,"hasChat",null);_.c([_.Ga("active"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JK.prototype,"onActiveChanged",null);_.c([_.Ga("playerData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JK.prototype,"playerDataChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JK.prototype,"dataChanged",null);_.c([_.Ga("windowSize","singleColumn"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],JK.prototype,"sizeChanged",null);
_.d(JK,"ytd-watch-fixie",function(){if(LsD===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);LsD=G}G=LsD;return G},{mode:1});var De$;var cn=function(){var G=_.p.apply(this,arguments)||this;G.viewTransitionEnabled=_.X("enable_player_resize_transition");G.smallerChatMinHeight=_.X("live_chat_smaller_min_height");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.defaultCollapsePlaylist=_.X("web_watch_default_collapse_playlist");G.respectAspectRatio=_.X("web_enable_aspect_ratio_fix");G.retroModeReduxValue=!1;G.persistentPanelVisibleValue=!1;return G};
_.r(cn,_.p);_.w=cn.prototype;_.w.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.w.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.w.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.w.updateRetroModeReduxValue=function(){_.X("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.w.updatePersistentPanelVisibleValue=function(){_.X("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.w.ready=function(){var G=this,B=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.w.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.w.updateIsTwoColumnsFromBinding=function(G){_.X("web_watch_update_narrow_width_killswitch")||_.VU().dispatch(JDQ(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.w.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.w.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.w.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.w.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.w.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.w.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22213_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22213_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.ZN.Object.defineProperties(cn.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(G=_.Q(this.data.pageVisualEffects[B],qM))return B=void 0,(B=G.config)==null?void 0:B.enableInLightTheme;return!1}}});
_.ZN.Object.defineProperties(cn,{template:{configurable:!0,enumerable:!0,get:function(){if(De$===void 0){var G=document.createElement("template");_.H(G,'\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="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);De$=G}G=De$;return G}}});
cn.prototype.updatePersistentPanelVisibleValue=cn.prototype.updatePersistentPanelVisibleValue;cn.prototype.updateRetroModeReduxValue=cn.prototype.updateRetroModeReduxValue;cn.prototype.updateScrollTopValue=cn.prototype.updateScrollTopValue;cn.prototype.updateFullscreenValue=cn.prototype.updateFullscreenValue;cn.prototype.updateTheaterValue=cn.prototype.updateTheaterValue;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],cn.prototype,"ytComponentBehavior",void 0);_.c([_.k(Xnz.YtdWatchBehavior),_.I("design:type",Object)],cn.prototype,"ytdWatchBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],cn.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cn.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],cn.prototype,"playerData",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cn.prototype,"viewTransitionEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cn.prototype,"smallerChatMinHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cn.prototype,"isDarkTheme",void 0);_.c([_.v(),_.I("design:type",Object)],cn.prototype,"defaultCollapsePlaylist",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],cn.prototype,"respectAspectRatio",void 0);
_.c([_.v({selector:_.KA}),_.I("design:type",Object)],cn.prototype,"theaterValue",void 0);_.c([_.v({selector:_.aQ}),_.I("design:type",Object)],cn.prototype,"fullscreenValue",void 0);_.c([_.v({selector:xn}),_.I("design:type",Object)],cn.prototype,"scrollTopValue",void 0);_.c([_.v({selector:_.hc}),_.I("design:type",Object)],cn.prototype,"miniplayerIsActive",void 0);_.c([_.v({selector:function(G){return G.watch.isWatchRetroMode}}),
_.I("design:type",Object)],cn.prototype,"retroModeReduxValue",void 0);_.c([_.v({selector:_.OY.persistentPanelVisibleSelector}),_.I("design:type",Object)],cn.prototype,"persistentPanelVisibleValue",void 0);_.c([sa("ytd-player"),_.I("design:type",HTMLElement)],cn.prototype,"ytdPlayer",void 0);_.c([_.iA("#playlist"),_.I("design:type",HTMLElement)],cn.prototype,"JSC$22213_ytdPlaylistPanelRenderer",void 0);_.c([sa("ytd-comments"),_.I("design:type",HTMLElement)],cn.prototype,"ytdComments",void 0);
_.c([_.iA("#primary"),_.I("design:type",HTMLElement)],cn.prototype,"primary",void 0);_.c([_.iA("#secondary"),_.I("design:type",HTMLElement)],cn.prototype,"secondary",void 0);_.c([_.iA("#player-container"),_.I("design:type",HTMLElement)],cn.prototype,"playerContainer",void 0);_.c([_.iA("#below"),_.I("design:type",HTMLElement)],cn.prototype,"below",void 0);_.c([_.iA("#cinematics"),_.I("design:type",HTMLElement)],cn.prototype,"JSC$22213_cinematics",void 0);
_.c([_.iA("#persistent-panel-container"),_.I("design:type",HTMLElement)],cn.prototype,"persistentPanelContainer",void 0);_.c([_.Ga("theaterValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cn.prototype,"updateTheaterValue",null);_.c([_.Ga("fullscreenValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cn.prototype,"updateFullscreenValue",null);
_.c([_.Ga("scrollTopValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cn.prototype,"updateScrollTopValue",null);_.c([_.Ga("retroModeReduxValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cn.prototype,"updateRetroModeReduxValue",null);_.c([_.Ga("persistentPanelVisibleValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],cn.prototype,"updatePersistentPanelVisibleValue",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],cn.prototype,"cinematicLightTheme",null);_.c([_.mC({is:"ytd-watch-flexy"})],cn);var uyH;var R5$;var wt$=function(){return _.p.apply(this,arguments)||this};
_.r(wt$,_.p);_.c([_.mC({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],wt$);
_.d(wt$,"ytd-ghost-comments-renderer",function(){if(R5$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);R5$=G}G=R5$;return G},{mode:1});var CS$;var NFQ=function(){return _.p.apply(this,arguments)||this};
_.r(NFQ,_.p);_.c([_.mC({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],NFQ);
_.d(NFQ,"ytd-ghost-watch-metadata-renderer",function(){if(CS$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);CS$=G}G=CS$;return G},{mode:1});var Tr=function(){var G=_.p.apply(this,arguments)||this;G.ghostGridRenderer={rows:6};G.smallerChatMinHeight=_.X("live_chat_smaller_min_height");G.darkerPanels=_.X("web_watch_darker_panels");G.isDarkTheme=document.documentElement.hasAttribute("dark");return G};
_.r(Tr,_.p);_.w=Tr.prototype;_.w.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.w.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.w.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.w.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.w.ready=function(){var G=this,B=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.w.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.w.updateIsTwoColumnsFromBinding=function(G){this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.w.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.w.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.w.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.w.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.w.updateShownItemsFromBinding=function(G){_.X("swatcheroo_direct_use_rich_grid")||(G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value)};
_.w.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22218_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22218_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ZN.Object.defineProperties(Tr.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(G=_.Q(this.data.pageVisualEffects[B],qM))return B=void 0,(B=G.config)==null?void 0:B.enableInLightTheme;return!1}}});
Tr.prototype.updateMiniplayerIsActiveValue=Tr.prototype.updateMiniplayerIsActiveValue;Tr.prototype.updateScrollTopValue=Tr.prototype.updateScrollTopValue;Tr.prototype.updateFullscreenValue=Tr.prototype.updateFullscreenValue;Tr.prototype.updateTheaterValue=Tr.prototype.updateTheaterValue;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Tr.prototype,"ytComponentBehavior",void 0);
_.c([_.k(Xnz.YtdWatchBehavior),_.I("design:type",Object)],Tr.prototype,"ytdWatchBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Tr.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Tr.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Tr.prototype,"ghostGridRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],Tr.prototype,"playerData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tr.prototype,"smallerChatMinHeight",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tr.prototype,"darkerPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Tr.prototype,"isDarkTheme",void 0);_.c([_.v({selector:_.KA}),_.I("design:type",Object)],Tr.prototype,"theaterValue",void 0);_.c([_.v({selector:_.aQ}),_.I("design:type",Object)],Tr.prototype,"fullscreenValue",void 0);_.c([_.v({selector:xn}),_.I("design:type",Object)],Tr.prototype,"scrollTopValue",void 0);
_.c([_.v({selector:_.hc}),_.I("design:type",Object)],Tr.prototype,"miniplayerIsActiveValue",void 0);_.c([_.iA("#ytd-player"),_.I("design:type",HTMLElement)],Tr.prototype,"ytdPlayer",void 0);_.c([_.iA("#playlist"),_.I("design:type",HTMLElement)],Tr.prototype,"JSC$22218_ytdPlaylistPanelRenderer",void 0);_.c([_.iA("#ytd-comments"),_.I("design:type",HTMLElement)],Tr.prototype,"ytdComments",void 0);_.c([_.iA("#primary"),_.I("design:type",HTMLElement)],Tr.prototype,"primary",void 0);
_.c([_.iA("#secondary"),_.I("design:type",HTMLElement)],Tr.prototype,"secondary",void 0);_.c([_.iA("#player-container"),_.I("design:type",HTMLElement)],Tr.prototype,"playerContainer",void 0);_.c([_.iA("#cinematics"),_.I("design:type",HTMLElement)],Tr.prototype,"JSC$22218_cinematics",void 0);_.c([_.Ga("theaterValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tr.prototype,"updateTheaterValue",null);
_.c([_.Ga("fullscreenValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tr.prototype,"updateFullscreenValue",null);_.c([_.Ga("scrollTopValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tr.prototype,"updateScrollTopValue",null);_.c([_.Ga("miniplayerIsActiveValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tr.prototype,"updateMiniplayerIsActiveValue",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Tr.prototype,"cinematicLightTheme",null);
_.d(Tr,"ytd-watch-grid",function(){if(uyH===void 0){var G=document.createElement("template");_.H(G,'\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="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);uyH=G}G=uyH;return G},{mode:2});var yd$;var IZ=function(){var G=_.p.apply(this,arguments)||this;G.flexy=!0;G.learningJourney=!0;G.viewTransitionEnabled=_.X("enable_player_resize_transition");G.smallerChatMinHeight=_.X("live_chat_smaller_min_height");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.theaterLargerPlayer=_.X("web_watch_theater_larger_player");G.defaultCollapsePlaylist=_.X("web_watch_default_collapse_playlist");G.enableCanvasLayout=_.X("web_enable_canvas_on_learning_journey");return G};
_.r(IZ,_.p);_.w=IZ.prototype;_.w.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.w.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.w.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.w.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.w.ready=function(){var G=this,B=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.w.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.w.updateIsTwoColumnsFromBinding=function(G){_.X("web_watch_update_narrow_width_killswitch")||_.VU().dispatch(JDQ(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.w.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.w.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.w.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.w.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.w.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.w.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22221_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22221_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ZN.Object.defineProperties(IZ.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(G=_.Q(this.data.pageVisualEffects[B],qM))return B=void 0,(B=G.config)==null?void 0:B.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.learningJourneyEngagementPanels)==null?void 0:G.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var G,B=(G=this.learningJourneyEngagementPanels)==null?void 0:G.find(function(a){var m;return(a==null?void 0:(m=a.engagementPanelSectionListRenderer)==null?void 0:m.panelIdentifier)==="learning-journey-engagement-panel"});
if(B){var F,D,u,R,N,y,U,q,h;if(G=(q=((U=(N=((R=B==null?void 0:(F=B.engagementPanelSectionListRenderer)==null?void 0:(D=F.content)==null?void 0:(u=D.sectionListRenderer)==null?void 0:u.contents)!=null?R:[])[0])==null?void 0:(y=N.itemSectionRenderer)==null?void 0:y.contents)!=null?U:[])[0])==null?void 0:(h=q.accordionViewModel)==null?void 0:h.onTitleTap){var K=_.X1(G);if(K)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Gm.instance.resolveCommand(K)}}}}}}});
_.ZN.Object.defineProperties(IZ,{template:{configurable:!0,enumerable:!0,get:function(){if(yd$===void 0){var G=document.createElement("template");_.H(G,'\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="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);yd$=G}G=yd$;return G}}});
IZ.prototype.updateMiniplayerIsActiveValue=IZ.prototype.updateMiniplayerIsActiveValue;IZ.prototype.updateScrollTopValue=IZ.prototype.updateScrollTopValue;IZ.prototype.updateFullscreenValue=IZ.prototype.updateFullscreenValue;IZ.prototype.updateTheaterValue=IZ.prototype.updateTheaterValue;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],IZ.prototype,"ytComponentBehavior",void 0);
_.c([_.k(SbZ.YtdLearningJourneyWatchBehavior),_.I("design:type",Object)],IZ.prototype,"ytdWatchBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],IZ.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IZ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],IZ.prototype,"playerData",void 0);_.c([_.v(),_.I("design:type",Object)],IZ.prototype,"browseData",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],IZ.prototype,"flexy",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],IZ.prototype,"learningJourney",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],IZ.prototype,"viewTransitionEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],IZ.prototype,"smallerChatMinHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],IZ.prototype,"isDarkTheme",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],IZ.prototype,"theaterLargerPlayer",void 0);_.c([_.v(),_.I("design:type",Object)],IZ.prototype,"defaultCollapsePlaylist",void 0);_.c([_.v(),_.I("design:type",Object)],IZ.prototype,"enableCanvasLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("playerData","browseData","enableCanvasLayout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],IZ.prototype,"showBrowseResponse",null);
_.c([_.v({reflectToAttribute:!0}),_.O("playerData","enableCanvasLayout"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],IZ.prototype,"showWatchResponse",null);_.c([_.v({selector:_.KA}),_.I("design:type",Object)],IZ.prototype,"theaterValue",void 0);_.c([_.v({selector:_.aQ}),_.I("design:type",Object)],IZ.prototype,"fullscreenValue",void 0);_.c([_.v({selector:xn}),_.I("design:type",Object)],IZ.prototype,"scrollTopValue",void 0);
_.c([_.v({selector:_.hc}),_.I("design:type",Object)],IZ.prototype,"miniplayerIsActiveValue",void 0);_.c([_.iA("#ytd-plj-player"),_.I("design:type",HTMLElement)],IZ.prototype,"ytdPlayer",void 0);_.c([_.iA("#playlist"),_.I("design:type",HTMLElement)],IZ.prototype,"JSC$22221_ytdPlaylistPanelRenderer",void 0);_.c([sa("ytd-comments"),_.I("design:type",HTMLElement)],IZ.prototype,"ytdComments",void 0);_.c([_.iA("#primary"),_.I("design:type",HTMLElement)],IZ.prototype,"primary",void 0);
_.c([_.iA("#secondary"),_.I("design:type",HTMLElement)],IZ.prototype,"secondary",void 0);_.c([_.iA("#player-container"),_.I("design:type",HTMLElement)],IZ.prototype,"playerContainer",void 0);_.c([_.iA("#cinematics"),_.I("design:type",HTMLElement)],IZ.prototype,"JSC$22221_cinematics",void 0);_.c([_.Ga("theaterValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IZ.prototype,"updateTheaterValue",null);
_.c([_.Ga("fullscreenValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IZ.prototype,"updateFullscreenValue",null);_.c([_.Ga("scrollTopValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IZ.prototype,"updateScrollTopValue",null);_.c([_.Ga("miniplayerIsActiveValue"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],IZ.prototype,"updateMiniplayerIsActiveValue",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],IZ.prototype,"cinematicLightTheme",null);_.c([_.v({reflectToAttribute:!0}),_.O("learningJourneyEngagementPanels"),_.I("design:type",Object),_.I("design:paramtypes",[])],IZ.prototype,"hasLearningJourneyPanels",null);_.c([_.O("learningJourneyEngagementPanels"),_.I("design:type",Object),_.I("design:paramtypes",[])],IZ.prototype,"backButtonData",null);_.c([_.mC({is:"ytd-watch-learning-journey"})],IZ);var nqB;var fm=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");return G};
_.r(fm,_.p);_.w=fm.prototype;_.w.ready=function(){this.hostElement.addEventListener("tap",_.x7(this,this.onEndpointTapExtra))};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.w.onFocus=function(){var G;(G=_.IF(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.w.onEndpointTapExtra=function(G){_.cZ(this.hostElement,"iron-activate");var B=this.data.navigationEndpoint;B&&_.Q(B,_.Ttg)&&(G.stopPropagation(),_.tL(this.hostElement,[B],this.hostElement))};
_.w.computeIcon=function(G){return G&&G.iconType?_.xT(G.iconType):""};
_.w.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.w.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.w.forceUpdateStylesOnLegacyBrowsers=function(){_.X("kevlar_legacy_browsers")&&_.Ss(this.hostElement)};
fm.prototype.forceUpdateStylesOnLegacyBrowsers=fm.prototype.forceUpdateStylesOnLegacyBrowsers;fm.prototype.onFocus=fm.prototype.onFocus;_.c([_.k(_.vj),_.I("design:type",Object)],fm.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.wYS.YtConditionalRendererBehavior),_.I("design:type",Object)],fm.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],fm.prototype,"ytEndpointBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],fm.prototype,"data",void 0);_.c([_.v({computed:"computeIcon(data.icon)",value:""}),_.I("design:type",String)],fm.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],fm.prototype,"useIcons",void 0);_.c([_.v({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.I("design:type",Boolean)],fm.prototype,"hasSeparator",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],fm.prototype,"systemIcons",void 0);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fm.prototype,"onFocus",null);_.c([_.Ga("useIcons","hasSeparator"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fm.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.d(fm,"ytd-menu-navigation-item-renderer",function(){if(nqB===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);nqB=G}G=nqB;return G},{mode:1});var lE$;var Ue$=_.$9(_.G7("DOWNLOAD",{},"Download")),qZN=_.$9(_.G7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),EqD=_.$9(_.G7("RETRY",{},"Retry")),h5$=_.$9(_.G7("PAUSE_DOWNLOADING",{},"Pause downloading")),KNN=_.$9(_.G7("RESUME_DOWNLOAD",{},"Resume download")),tK=function(){var G=_.p.apply(this,arguments)||this;G.primaryText=Ue$;G.primaryIconType="OFFLINE_DOWNLOAD";G.hasSecondaryContent=!1;G.hasSeparator=!1;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.isHidden=!1;G.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return G};
_.r(tK,_.p);_.w=tK.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.w.onFocus=function(){this.primaryEntry.focus()};
_.w.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.w.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.w.getRemoveAction=function(){return"ACTION_REMOVE"};
_.w.sendOfflineAction=function(G){var B=this.data.serviceEndpoint;if(B){var F=_.Q(B,_.GP);F&&G&&(F.action=G);this.ytComponentBehavior.resolveCommand(B)}};
_.w.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Ue$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Ue$;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=EqD;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=qZN;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=KNN;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=qZN;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
h5$;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=qZN;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=qZN;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Ue$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.w.showHideButton=function(){var G;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((G=this.playerStateEntity)==null?void 0:G.adsState)==="ADS_STATE_PLAYING"};
_.w.isSecondaryEntryHidden=function(G,B){return G?!0:!B};
_.w.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.w.computePlayerStateEntityKey=function(G){return G};
tK.prototype.showHideButton=tK.prototype.showHideButton;tK.prototype.onTransferStateChange=tK.prototype.onTransferStateChange;tK.prototype.onFocus=tK.prototype.onFocus;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],tK.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],tK.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],tK.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],tK.prototype,"primaryText",void 0);_.c([_.v(),_.I("design:type",String)],tK.prototype,"primaryIconType",void 0);_.c([_.v(),_.I("design:type",String)],tK.prototype,"primaryAction",void 0);_.c([_.v(),_.I("design:type",Object)],tK.prototype,"secondaryText",void 0);_.c([_.v(),_.I("design:type",String)],tK.prototype,"secondaryIconType",void 0);
_.c([_.v(),_.I("design:type",String)],tK.prototype,"secondaryAction",void 0);_.c([_.v(),_.I("design:type",Object)],tK.prototype,"hasSecondaryContent",void 0);_.c([_.v({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.I("design:type",Object)],tK.prototype,"hasSeparator",void 0);_.c([_.v({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.I("design:type",String)],tK.prototype,"playerStateEntityKey",void 0);
_.c([_.v({selector:_.Ze,selectorArgs:["playerStateEntityKey"]}),_.I("design:type",Object)],tK.prototype,"playerStateEntity",void 0);_.c([_.v({selector:_.mD,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.I("design:type",String)],tK.prototype,"transferState",void 0);_.c([_.v({selector:_.Z3g,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.I("design:type",Object)],tK.prototype,"isVideoDeletedByUser",void 0);
_.c([_.v(),_.I("design:type",Object)],tK.prototype,"isHidden",void 0);_.c([_.v({selector:_.dvL,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.I("design:type",Object)],tK.prototype,"offlineabilityState",void 0);_.c([_.iA("#primary-entry"),_.I("design:type",Object)],tK.prototype,"primaryEntry",void 0);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tK.prototype,"onFocus",null);
_.c([_.Ry("transferState","isVideoDeletedByUser"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tK.prototype,"onTransferStateChange",null);_.c([_.Ry("offlineabilityState","playerStateEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],tK.prototype,"showHideButton",null);
_.d(tK,"ytd-menu-service-item-download-renderer",function(){if(lE$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);lE$=G}G=lE$;return G},{mode:1});var aEA;var Zi=function(){var G=_.p.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.X("kevlar_system_icons");return G};
_.r(Zi,_.p);_.w=Zi.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.w.onFocus=function(){var G;(G=_.IF(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.w.onTap=function(){_.Ia(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var G=this.data.serviceEndpoint,B=this.data.command;if(G){var F,D=(F=this.data)==null?void 0:F.trackingParams;F=!!_.Q(G,_.pdG);D&&F&&_.VU().dispatch(_.d5({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:D}}));this.ytComponentBehavior.resolveCommand(G)||_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}})}B&&(this.ytComponentBehavior.resolveCommand(B)||_.tL(this.hostElement,
[B],this.hostElement))};
_.w.computeIcon=function(G){return G&&G.iconType?_.xT(G.iconType):""};
_.w.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.w.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.w.forceUpdateStylesOnLegacyBrowsers=function(){_.X("kevlar_legacy_browsers")&&_.Ss(this.hostElement)};
_.w.computeIsSelected=function(){var G;return!((G=this.data)==null||!G.isSelected)};
Zi.prototype.forceUpdateStylesOnLegacyBrowsers=Zi.prototype.forceUpdateStylesOnLegacyBrowsers;Zi.prototype.onTap=Zi.prototype.onTap;Zi.prototype.onFocus=Zi.prototype.onFocus;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],Zi.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Zi.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.wYS.YtConditionalRendererBehavior),_.I("design:type",Object)],Zi.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Zi.prototype,"data",void 0);_.c([_.v({computed:"computeIcon(data.icon)",value:""}),_.I("design:type",String)],Zi.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Zi.prototype,"useIcons",void 0);
_.c([_.v({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Zi.prototype,"hasSeparator",void 0);_.c([_.v({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Zi.prototype,"isSelected",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Zi.prototype,"systemIcons",void 0);
_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Zi.prototype,"onFocus",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Zi.prototype,"onTap",null);_.c([_.Ga("useIcons","hasSeparator"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Zi.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.d(Zi,"ytd-menu-service-item-renderer",function(){if(aEA===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);aEA=G}G=aEA;return G},{mode:2});var meQ;var gH=function(){return _.p.apply(this,arguments)||this};
_.r(gH,_.p);_.w=gH.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onDataChanged=function(){var G=this;_.ft(this,function(){G.postbox.openDialog();G.focus();_.cZ(G.hostElement,"yt-refit")})};
_.w.focus=function(){this.postbox.focus()};
_.w.closePopup=function(){_.T1(this.hostElement,"yt-close-popup-action")};
_.w.onYtCommentboxDismiss=function(){this.closePopup()};
gH.prototype.onYtCommentboxDismiss=gH.prototype.onYtCommentboxDismiss;gH.prototype.onDataChanged=gH.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gH.prototype,"data",void 0);_.c([_.v({value:function(){return _.G7("SBOX_INAPPROPRIATE_CANCEL")}}),
_.I("design:type",String)],gH.prototype,"closeButtonAriaLabel",void 0);_.c([_.iA("#postbox"),_.I("design:type",Object)],gH.prototype,"postbox",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gH.prototype,"onDataChanged",null);_.c([_.Pm("yt-commentbox-dismiss"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gH.prototype,"onYtCommentboxDismiss",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],gH);
_.d(gH,"ytd-backstage-post-dialog-popup-renderer",function(){if(meQ!==void 0)return meQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return meQ=G},{mode:1});var XtQ;var SZ=function(){var G=_.p.apply(this,arguments)||this;G.modernModal=!0;return G};
_.r(SZ,_.p);SZ.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
SZ.prototype.computeShouldHideOldButtons=function(){var G;return!((G=this.data)==null?0:G.button)};
_.ZN.Object.defineProperties(SZ.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var G,B;return(G=this.data)==null?void 0:(B=G.button)==null?void 0:B.buttonRenderer}}});
_.c([_.v(),_.I("design:type",Object)],SZ.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],SZ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],SZ.prototype,"modernModal",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],SZ.prototype,"buttonRendererData",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],SZ);
_.d(SZ,"ytd-modal-with-title-and-button-renderer",function(){if(XtQ!==void 0)return XtQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return XtQ=G},{mode:1});var QOG;var sN=function(){return _.p.apply(this,arguments)||this};
_.r(sN,_.p);sN.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("page-changed",this.page))};
sN.prototype.pageChangedForBinding=sN.prototype.pageChangedForBinding;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],sN.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],sN.prototype,"page",void 0);_.c([_.Ga("page"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sN.prototype,"pageChangedForBinding",null);
_.c([_.mC({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],sN);
_.d(sN,"ytd-account-item-section-header-renderer",function(){if(QOG!==void 0)return QOG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QOG=G},{mode:1});var jO2;var xg=function(){return _.p.apply(this,arguments)||this};
_.r(xg,_.p);xg.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"}}}};
xg.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],xg.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xg.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Function)],xg.prototype,"onAccountItemTap",void 0);
_.c([_.mC({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],xg);
_.d(xg,"ytd-account-item-section-renderer",function(){if(jO2!==void 0)return jO2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jO2=G},{mode:1});var LNz;var rd$;var WNQ=function(){return _.p.apply(this,arguments)||this};
_.r(WNQ,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WNQ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WNQ.prototype,"data",void 0);_.c([_.mC({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],WNQ);
_.d(WNQ,"ytd-accounts-dialog-header-renderer",function(){if(rd$!==void 0)return rd$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return rd$=G},{mode:1});var HqD;var Pn=function(){return _.p.apply(this,arguments)||this};
_.r(Pn,_.p);Pn.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Pn.prototype,"data",void 0);_.c([_.mC({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Pn);
_.d(Pn,"ytd-google-account-header-renderer",function(){if(HqD!==void 0)return HqD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return HqD=G},{mode:1});var Gb=function(){return _.p.apply(this,arguments)||this};
_.r(Gb,_.p);Gb.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"}}}};
Gb.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("page-changed",this.page))};
Gb.prototype.pageChangedForBinding=Gb.prototype.pageChangedForBinding;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Gb.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Gb.prototype,"page",void 0);
_.c([_.Ga("page"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gb.prototype,"pageChangedForBinding",null);_.c([_.mC({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Gb);
_.tS()(Gb,"ytd-account-section-list-renderer",function(){if(LNz===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);LNz=G}G=LNz;return G},{allowedProps:["data"],
mode:1});var kg$;var BJ=function(){var G=_.p.apply(this,arguments)||this;G.enableHandlesAccountMenuSwitcher=_.X("enable_handles_account_menu_switcher");return G};
_.r(BJ,_.p);BJ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
BJ.prototype.dataChanged=BJ.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],BJ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],BJ.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.c([_.iA("#avatar"),_.I("design:type",Object)],BJ.prototype,"avatar",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BJ.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],BJ);
_.tS()(BJ,"ytd-active-account-header-renderer",function(){if(kg$===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);kg$=G}G=kg$;return G},{allowedProps:["data"],
mode:1});var OqG;var e5z;var iU=function(){return _.p.apply(this,arguments)||this};
_.r(iU,_.p);iU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iU.prototype.onBackTap=function(){_.cZ(this.hostElement,"yt-menu-back-tapped")};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],iU.prototype,"data",void 0);_.c([_.mC({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],iU);
_.tS()(iU,"ytd-simple-menu-header-renderer",function(){if(e5z===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);e5z=G}G=e5z;return G},{allowedProps:["data"],
mode:2});var $eQ;var z5D=function(){return _.p.apply(this,arguments)||this};
_.r(z5D,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],z5D.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],z5D.prototype,"data",void 0);_.c([_.mC({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],z5D);
_.d(z5D,"ytd-comment-video-thumbnail-header-renderer",function(){if($eQ!==void 0)return $eQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return $eQ=G},{mode:1});var bqQ;var V1Q=function(){return _.p.apply(this,arguments)||this};
_.r(V1Q,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],V1Q.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],V1Q.prototype,"data",void 0);_.c([_.mC({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],V1Q);
_.d(V1Q,"ytd-abuse-type-selector-renderer",function(){if(bqQ!==void 0)return bqQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return bqQ=G},{mode:1});var vqN;var oqZ=(0,_.Cb7)(_.wD8.reportChannelAbuse,{isVideoIdSelectedSelector:function(G,B){return B in G.selectedVideoIds},
additionalContextSelector:function(G){return G.additionalContext},
impersonatedChannelUrlSelector:function(G){return G.impersonatedChannelUrl},
reportChannelAbuseSelector:function(G){return G}});var FG=function(){return _.p.apply(this,arguments)||this};
_.r(FG,_.p);FG.prototype.attached=function(){var G=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){G.additionalContextInput.focusTextInput()})};
FG.prototype.handleAdditionalContextChanged=function(){var G=this;_.kT(this,"ytd-report-channel-additional-context-update",function(){G.ytdReduxBehavior.dispatch(_.d5({type:"ADDITIONAL_CONTEXT_UPDATED",payload:G.additionalContext}))},300)};
FG.prototype.updateAdditionalContextFromBinding=function(G){this.additionalContext=G.detail.value};
FG.prototype.handleAdditionalContextChanged=FG.prototype.handleAdditionalContextChanged;_.c([_.k(_.hf),_.I("design:type",Object)],FG.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",String)],FG.prototype,"additionalContext",void 0);_.c([_.v({selector:oqZ.additionalContextSelector}),_.I("design:type",String)],FG.prototype,"additionalContextRedux",void 0);_.c([_.v(),_.I("design:type",Object)],FG.prototype,"data",void 0);
_.c([_.iA("yt-text-input-form-field-renderer"),_.I("design:type",Object)],FG.prototype,"additionalContextInput",void 0);_.c([_.Ga("additionalContext"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FG.prototype,"handleAdditionalContextChanged",null);_.c([_.mC({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],FG);
_.d(FG,"ytd-report-channel-modal-additional-context-renderer",function(){if(vqN!==void 0)return vqN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return vqN=G},{mode:1});var M1$;var DC=function(){var G=_.p.apply(this,arguments)||this;G.nextButtonDisabled=null;G.submitEndpoint=null;G.navigationEndpoint=null;G.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return G};
_.r(DC,_.p);_.w=DC.prototype;_.w.computeNextButtonData=function(G,B,F){var D={};B&&(D.navigationEndpoint=B);F&&(D.serviceEndpoint=F);G&&G.buttonRenderer&&_.UK.extend(D,G.buttonRenderer);return D};
_.w.handleReportChannelModalDisableNextButtonAction=function(G){this.setNextButtonIsDisabled(G)};
_.w.handleReportFormEndpointUpdateAction=function(G){this.setNextButtonIsDisabled(!!G.disableSubmitButton);this.resetEndpointData();G.submitEndpoint?this.submitEndpoint=G.submitEndpoint:G.submitNavigationEndpoint&&(this.navigationEndpoint=G.submitNavigationEndpoint)};
_.w.handleSignalActionSubmitForm=function(){var G,B=Object.keys(((G=this.reportChannelAbuseForm)==null?void 0:G.selectedVideoIds)||{}),F;G=((F=this.reportChannelAbuseForm)==null?void 0:F.additionalContext)||"";var D;F=((D=this.reportChannelAbuseForm)==null?void 0:D.impersonatedChannelUrl)||"";var u;if((u=this.data)==null?0:u.submitEndpoint){B={impersonated_channel_url:F,text:G,video_ids:B};var R;_.te().resolve(_.Wr).resolveCommand((R=this.data)==null?void 0:R.submitEndpoint,{form:Object.assign({},
B,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.w.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.w.onYtServiceRequestError=function(G){this.setNextButtonIsDisabled(!1);_.zP(this.hostElement,G.detail.error.message)};
_.w.setNextButtonIsDisabled=function(G){this.set("data.nextButton.buttonRenderer.isDisabled",G)};
_.w.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
DC.prototype.onYtServiceRequestError=DC.prototype.onYtServiceRequestError;DC.prototype.onYtServiceRequestCompleted=DC.prototype.onYtServiceRequestCompleted;_.c([_.v(),_.I("design:type",Object)],DC.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],DC.prototype,"nextButtonDisabled",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],DC.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],DC.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],DC.prototype,"submitEndpoint",void 0);_.c([_.v(),_.I("design:type",Object)],DC.prototype,"navigationEndpoint",void 0);_.c([_.v({selector:oqZ.reportChannelAbuseSelector}),_.I("design:type",Object)],DC.prototype,"reportChannelAbuseForm",void 0);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],DC.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],DC.prototype,"onYtServiceRequestError",null);_.c([_.mC({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],DC);
_.d(DC,"ytd-report-channel-modal-footer-renderer",function(){if(M1$!==void 0)return M1$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return M1$=G},{mode:1});var ptD;var uU=function(){var G=_.p.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.closePopup()};
return G};
_.r(uU,_.p);uU.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
uU.prototype.handleDataChanged=function(){_.dg(this.hostElement)};
uU.prototype.closePopup=function(){_.T1(this.hostElement,"yt-close-popup-action")};
uU.prototype.handleDataChanged=uU.prototype.handleDataChanged;_.c([_.v(),_.I("design:type",Object)],uU.prototype,"boundOnTapDismissButton",void 0);_.c([_.v(),_.I("design:type",Object)],uU.prototype,"data",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],uU.prototype,"handleDataChanged",null);_.c([_.mC({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],uU);
_.d(uU,"ytd-report-channel-modal-header-renderer",function(){if(ptD!==void 0)return ptD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ptD=G},{mode:1});var YZZ;var RE=function(){var G=_.p.apply(this,arguments)||this;G.autoValidate=!1;G.invalid=!1;G.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return G};
_.r(RE,_.p);_.w=RE.prototype;_.w.attached=function(){var G=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){G.channelUrlInput.focusTextInput()})};
_.w.disableNextButton=function(G){_.T1(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[G])};
_.w.handleImpersonatedChannelUrlChanged=function(){var G=this;this.disableNextButton(!0);this.invalid=!1;_.kT(this,"ytd-report-channel-impersonated-channel-update",function(){var B=G.impersonatedChannelUrl.trim();G.ytdReduxBehavior.dispatch(_.d5({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:B}));var F;((F=G.data)==null?0:F.submitEndpoint)&&B&&_.te().resolve(_.Wr).resolveCommand(G.data.submitEndpoint,{form:{impersonated_channel_url:B,element:G.hostElement}})},500)};
_.w.handleModifyReportFormCommand=function(G){this.invalid=this.get("modifyReportFormCommand.action",G)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.w.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.w.updateImpersonatedChannelUrlFromBinding=function(G){this.impersonatedChannelUrl=G.detail.value};
RE.prototype.handleImpersonatedChannelUrlChanged=RE.prototype.handleImpersonatedChannelUrlChanged;_.c([_.k(_.hf),_.I("design:type",Object)],RE.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],RE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RE.prototype,"autoValidate",void 0);_.c([_.v(),_.I("design:type",Object)],RE.prototype,"invalid",void 0);
_.c([_.v(),_.I("design:type",String)],RE.prototype,"impersonatedChannelUrl",void 0);_.c([_.v({selector:oqZ.impersonatedChannelUrlSelector}),_.I("design:type",String)],RE.prototype,"impersonatedChannelUrlRedux",void 0);_.c([_.v(),_.I("design:type",Object)],RE.prototype,"data",void 0);_.c([_.iA("#text-input"),_.I("design:type",Object)],RE.prototype,"channelUrlInput",void 0);
_.c([_.Ga("impersonatedChannelUrl"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],RE.prototype,"handleImpersonatedChannelUrlChanged",null);_.c([_.mC({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],RE);
_.d(RE,"ytd-report-channel-modal-impersonation-renderer",function(){if(YZZ!==void 0)return YZZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return YZZ=G},{mode:1});var AdQ;var deG;var wz=function(){return _.p.apply(this,arguments)||this};
_.r(wz,_.p);wz.prototype.onCheckboxToggled=function(G){var B,F,D=(F=_.Q((B=this.data)==null?void 0:B.video,_.TlT))==null?void 0:F.videoId;D&&this.ytdReduxBehavior.dispatch(G.target.checked?_.d5({type:"VIDEO_SELECTED",payload:D}):_.d5({type:"VIDEO_UNSELECTED",payload:D}))};
wz.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.ZN.Object.defineProperties(wz.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var G,B=(G=this.data)==null?void 0:G.video;if(!B)return{};var F;G=(F=_.Q(B,_.TlT))==null?void 0:F.navigationEndpoint;if(!G)return B;_.Q(G==null?void 0:G.commandMetadata,_.xy)&&(_.Q(G.commandMetadata,_.xy).ignoreNavigation=!0);return B}}});
_.c([_.v({reflectToAttribute:!0,selector:oqZ.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.I("design:type",Boolean)],wz.prototype,"checked",void 0);_.c([_.v(),_.I("design:type",Object)],wz.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],wz.prototype,"video",null);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],wz.prototype,"ytdReduxBehavior",void 0);_.c([_.mC({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],wz);
_.d(wz,"ytd-selectable-video-renderer",function(){if(deG!==void 0)return deG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return deG=G},{mode:1});var CY=function(){var G=_.p.apply(this,arguments)||this;G.monitorScroll=!0;return G};
_.r(CY,_.p);CY.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],CY.prototype,"data",void 0);_.c([_.mC({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],CY);
_.d(CY,"ytd-selectable-video-list-renderer",function(){if(AdQ!==void 0)return AdQ;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return AdQ=G},{mode:1});var Jd$;_.UR("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Nd=function(){return _.p.apply(this,arguments)||this};
_.r(Nd,_.p);Nd.prototype.onChange=function(G){if(G=_.oF(G).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.X("kevlar_command_handler_migration_killswitch"))_.tL(this.hostElement,G,this.hostElement);else{G=_.C(G);for(var B=G.next();!B.done;B=G.next())this.ytComponentBehavior.resolveCommand(B.value)}};
Nd.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Nd.prototype.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Nd.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Nd.prototype,"data",void 0);_.c([_.v({computed:"isEnabled(data)"}),_.I("design:type",Boolean)],Nd.prototype,"enabled",void 0);_.c([_.mC({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Nd);
_.d(Nd,"ytd-toggle-item-renderer",function(){if(Jd$!==void 0)return Jd$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Jd$=G},{mode:1});var cdG;var TF$;var IEB;var y4=function(){var G=_.p.apply(this,arguments)||this;G.setVisible=!1;G.boundOnSubmitButtonClick=function(){G.onSubmitButtonClick()};
G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.r(y4,_.p);y4.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}}}}}};
y4.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
y4.prototype.onSubmitButtonClick=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&!_.X("enable_ytc_refunds_submit_form_signal_action")&&_.fi(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
y4.prototype.handleSignalActionSubmitForm=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&_.fi(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.ZN.Object.defineProperties(y4.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hiddenByDefault)&&!this.setVisible}}});
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],y4.prototype,"setVisible",void 0);_.c([_.v(),_.I("design:type",Object)],y4.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],y4.prototype,"surveyFeedbackData",void 0);_.c([_.v(),_.I("design:type",Object)],y4.prototype,"boundOnSubmitButtonClick",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data","setVisible"),_.I("design:type",Object),_.I("design:paramtypes",[])],y4.prototype,"visibilityHidden",null);_.c([_.ay({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],y4);
_.d(y4,"yt-flow-footer-renderer",function(){if(IEB===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;TF$===void 0&&(TF$=document.createElement("template"));var D=TF$;F.call(B,D.content.cloneNode(!0),G.content.firstChild);IEB=G}G=IEB;return G},{mode:2});var fEU=(0,_.Cb7)(_.wD8.ypc,{surveyFeedbackDataSelector:function(G){return G.surveyFeedbackData}});var nY=function(){return _.p.apply(this,arguments)||this};
_.r(nY,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],nY.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nY.prototype,"data",void 0);_.c([_.v({selector:fEU.surveyFeedbackDataSelector}),_.I("design:type",Object)],nY.prototype,"surveyFeedbackData",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],nY);
_.d(nY,"ytd-flow-footer-renderer",function(){if(cdG!==void 0)return cdG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cdG=G},{mode:2});var t1Q;var ZqU;var lU=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return G};
_.r(lU,_.p);_.w=lU.prototype;_.w.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.q6("multiPageMenuSectionItems")}}};
_.w.handleHideEnclosingAction_=function(G){if(this.data&&this.data.items)for(var B=0;B<this.data.items.length;B++){var F=this.data.items[B].notificationRenderer;if(F&&F.notificationId==G.hideEnclosingAction.notificationId){this.splice("data.items",B,1);_.T1(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.w.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Zk(this.hostElement,"hidden",!0)};
_.w.updateMenu_=function(G){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&G&&!G.doNotRefreshInbox){G=this.data.continuations;for(var B=0;B<G.length;B++)if(G[B].invalidationContinuationData){var F=void 0;var D=(F=G[B].invalidationContinuationData)==null?void 0:F.continuation;break}G=_.UK.clone(this.data.continuationUpdateEndpoint||null);G.continuation=D;G.click_tracking_params=this.data.trackingParams;_.fi(this.hostElement,[G])}};
_.w.onServiceRequestCompleted_=function(G,B){if(this.data&&(G=B.actions)){B=0;for(var F=G.length;B<F;B++){var D=_.Q(G[B],_.uMs);if(!D)break;if((D.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||D.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&D.continuationItems&&this.data.items){var u=this.data.items.length-1;this.data.items[u].continuationItemRenderer&&(D=["data.items",u,1].concat(D.continuationItems),this.splice.apply(this,D))}}}};
lU.prototype.onServiceRequestCompleted_=lU.prototype.onServiceRequestCompleted_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],lU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lU.prototype,"data",void 0);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],lU.prototype,"onServiceRequestCompleted_",null);_.c([_.ay({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],lU);
_.tS()(lU,"yt-multi-page-menu-section-renderer",function(){if(ZqU===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;t1Q===void 0&&(t1Q=document.createElement("template"));var D=t1Q;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ZqU=G}G=ZqU;return G},{allowedProps:["data"],
mode:2});var gqS;var SZA;var Uo=function(){return _.p.apply(this,arguments)||this};
_.r(Uo,_.p);Uo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.ZN.Object.defineProperties(Uo.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)==null?0:this.data.progress*100}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Uo.prototype,"data",void 0);_.c([_.O("data.progress"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Uo.prototype,"showProgressBar",null);
_.c([_.O("data.progress"),_.I("design:type",Number),_.I("design:paramtypes",[])],Uo.prototype,"progress",null);_.c([_.ay({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Uo);
_.d(Uo,"yt-flow-header-renderer",function(){if(SZA===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;gqS===void 0&&(gqS=document.createElement("template"));var D=gqS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);SZA=G}G=SZA;return G},{mode:2});var sOB;var xe$;var qd=function(){return _.p.apply(this,arguments)||this};
_.r(qd,_.p);qd.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qd.prototype,"data",void 0);_.c([_.ay({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],qd);
_.d(qd,"yt-post-confirmation-flow-step-renderer",function(){if(xe$===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;sOB===void 0&&(sOB=document.createElement("template"));var D=sOB;F.call(B,D.content.cloneNode(!0),G.content.firstChild);xe$=G}G=xe$;return G},{mode:2});var PSD;var Gp$;var Eo=function(){return _.p.apply(this,arguments)||this};
_.r(Eo,_.p);
Eo.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Eo.prototype,"data",void 0);_.c([_.ay({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Eo);
_.d(Eo,"yt-refund-confirmation-flow-step-renderer",function(){if(Gp$===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;PSD===void 0&&(PSD=document.createElement("template"));var D=PSD;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Gp$=G}G=Gp$;return G},{mode:2});var BD$=_.Y(function(G){var B=G.data;return _.l("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.l("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.l(_.vr,{data:function(){return{thumbnails:[{url:B().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.l("div",{class:"profileBadgeViewModelContent"},_.l("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return B().badgeDesc}),_.l(_.E,{cond:function(){return B().badgeSubtitle},
then:function(){return _.l("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return B().badgeSubtitle})}})))},"Xk");
BD$.idomCompat=!0;var ifz=_.Y(function(G){var B=G.data;return _.l("yt-comment-interaction-view-model",{el:_.VX(_.mR(function(){return B().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.l("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return B().onTapA11yLabel},
"on:keydown":_.qj(),tabindex:0},_.l("div",{class:"ytCommentInteractionViewModelHeader"},_.l("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return B().headerPrefix},' "',function(){return B().videoTitle}),_.l("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.l("div",{class:"ytCommentInteractionViewModelContent"},_.l("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return B().commentContent}),_.l("div",{class:"ytCommentInteractionViewModelChevron"},
_.l(_.vr,{data:function(){return{thumbnails:[{url:B().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Yk");
ifz.idomCompat=!0;var FlG=_.Y(function(G){var B=G.data;return _.l("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8}),_.l("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return B().channelName}))},"Zk");
FlG.idomCompat=!0;var C8$=_.Y(function(G){var B=G.data;G={};return _.l("yt-profile-info-view-model",{class:_.tx("ytProfileInfoViewModelHost",(G.ytProfileInfoViewModelWithVideoShelf=function(){return B().videosHorizontalShelf},G))},_.l(DZz,{profileInfo:B}),_.l(_.uR,{data:function(){return B().videosHorizontalShelf}},{horizontalShelfViewModel:function(F){return _.l("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.l(_.zC,{data:F.data}))}}),_.l(_.E,{cond:function(){return B().comments},
then:function(){return _.l(uoS,{profileInfo:B})}}),_.l(_.E,{cond:function(){return B().sharedSubscriptionsTitle},
then:function(){return _.l(_.E,{cond:function(){return B().subscriptionsAccessButtonCommand},
then:function(){return _.l(RE2,{profileInfo:B})},
else:function(){return _.l(wlB,{profileInfo:B})}})}}))},"$k");
C8$.idomCompat=!0;var uoS=_.Y(function(G){var B=G.profileInfo;return _.l("div",{class:"ytProfileInfoViewModelActivity"},_.l("div",{class:"ytProfileInfoViewModelHeader"},_.l("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return B().commentsInteractionTitle})),_.l(_.uR,{data:function(){return B().comments}},{commentInteractionViewModel:function(F){return _.l("div",{class:"ytProfileInfoViewModelActivity"},_.l(ifz,{data:F.data}))}}))},"al"),RE2=_.Y(function(G){var B=G.profileInfo;
return _.l("div",{class:"ytProfileInfoViewModelSubSection"},_.l("div",{class:"ytProfileInfoViewModelSubHeader"},_.l(_.p4,{command:function(){return B().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.l("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return B().sharedSubscriptionsTitle}),_.l("div",null,_.l(_.uR,{data:function(){return B().subscriptionsAccessButton}},{buttonViewModel:_.cd})))),_.l(NDU,{sharedSubscriptions:function(){var F;
return((F=B().sharedSubscriptions)==null?void 0:F.slice(0,5))||[]}}))},"bl"),wlB=_.Y(function(G){var B=G.profileInfo;
return _.l("div",{class:"ytProfileInfoViewModelSubSection"},_.l("div",{class:"ytProfileInfoViewModelSubHeader"},_.l("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return B().sharedSubscriptionsTitle})),_.l(NDU,{sharedSubscriptions:function(){var F;
return((F=B().sharedSubscriptions)==null?void 0:F.slice(0,5))||[]}}))},"cl"),NDU=_.Y(function(G){return _.l("div",{class:"ytProfileInfoViewModelSubs"},_.l(_.uR,{data:G.sharedSubscriptions},{sharedSubscriptionViewModel:function(B){return _.l("div",{class:"ytProfileInfoViewModelSub"},_.l(FlG,{data:B.data}))}}))},"dl"),DZz=_.Y(function(G){var B=G.profileInfo;
return _.l("div",{class:"ytProfileInfoViewModelActivity"},_.l(_.jR,{each:function(){return[B().profileBadgeInfoYtWide,B().profileBadgeInfoChannelWide].filter(function(F){return!!F})},
keyBy:"INDEX"},function(F){return _.l(_.GJ,null,_.l("div",{class:"ytProfileInfoViewModelHeader"},_.l("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return F().profileSectionTitle}),_.l("div",{class:"ytProfileInfoViewModelSectionDesc"},_.l("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var D;
return(D=F().commentBadge)==null?void 0:D.commentDesc}),_.l(_.E,{cond:function(){var D;
return(D=F().commentBadge)==null?void 0:D.blackHeartDesc},
then:function(){return _.l("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.l("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.l(_.vr,{data:function(){var D;
return{thumbnails:[{url:(D=F().commentBadge)==null?void 0:D.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.l("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var D;return(D=F().commentBadge)==null?void 0:D.blackHeartDesc}))),_.l("div",{class:"ytProfileInfoViewModelBadge"},_.l(_.jR,{each:function(){return F().badges||[]}},function(D){return _.l(BD$,{data:D})})))}))},"el");var yn$=_.Y(function(G){var B=G.data;var F=function(){return B().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.l("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.l(_.uR,{data:function(){return B().profileIdentityInfo}},{profileIdentityInfoViewModel:function(D){return _.l(euD,{data:D.data,
hideDivider:F,isChannelInfoCard:F})},
profileInfoViewModel:C8$}),_.l(_.uR,{data:function(){return B().profileInfo}},{profileIdentityInfoViewModel:euD,
profileInfoViewModel:C8$}))},"fl");
yn$.idomCompat=!0;_.YN(yn$,"yt-profile-card-view-model",{props:{data:_.Hd}});var hu=function(){var G=_.p.apply(this,arguments)||this;G.enableFocusFix=_.X("music_web_enable_focus_on_setting_menu_fix")&&_.on("IS_MOBILE_WEB",!1);G.covered=!1;G.hideMenu=!1;G.isCommentNotificationOnProfileCard=!1;G.scrolledByTouch=!1;G.disableBackdropFilter=_.X("web_disable_backdrop_filter");G.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return G};
_.r(hu,_.p);_.w=hu.prototype;
_.w.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"}}}};
_.w.ready=function(){var G=this;this.JSC$22328_containerElement.addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.w.attributeChanged=function(G,B){G==="menu-style"&&_.T1(this.hostElement,"yt-multi-page-menu-closed-action",[B])};
_.w.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.x7(this,this.focusOnStampFinished))};
_.w.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.x7(this,this.focusOnStampFinished))};
_.w.reset=function(){this.closeJobId&&(_.Lu.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.w.focusOnStampFinished=function(G){G.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.x7(this,this.focusOnStampFinished)),this.doFocus())};
_.w.doFocus=function(){var G=_.FYq(this.sectionsElement);G.length&&G[0].focus()};
_.w.computeMenuStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.w.computeIsCommentNotificationOnProfileCard=function(G){return _.X("enable_profile_cards_on_comments")&&G.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.w.computeHideMenu=function(G,B){return G||!(!B||!B.showLoadingSpinner)};
_.w.onPopupClosed=function(){this.isPopUpOpen=!1;_.T1(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.w.onPopupOpened=function(G,B){this.isPopUpOpen=!0;B.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.cZ(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.d5({type:"CHANNEL_REPORT_RESET"})))};
_.w.onYtNavigate=function(G,B){this.shouldCloseOnNavigateEvent(B.endpoint)&&_.T1(this.hostElement,"yt-close-all-popups-action")};
_.w.handleEndpoint=function(G){G=_.Q(G,_.h9);!this.isCommentNotificationOnProfileCard&&G&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22328_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.w.handleActions=function(G){for(var B=0,F=G.length;B<F;B++){var D=_.Q(G[B],iFQ);D&&this.handleGetMultiPageMenuAction(D);(D=_.Q(G[B],_.uMs))&&this.handleAppendContinuationItemsAction(D)}};
_.w.onServiceRequestSentOrCompleted=function(G,B){G.detail&&G.detail.endpoint&&this.handleEndpoint(G.detail.endpoint);B.actions&&this.handleActions(B.actions)};
_.w.handleGetMultiPageMenuAction=function(G){var B=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.IF(this.submenuElement).appendChild(B);(G=G.menu.multiPageMenuRenderer)&&this.logSubmenu(G);B.data=G;B.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.w.handleAppendContinuationItemsAction=function(G){if(this.data&&G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&G.continuationItems&&this.data.sections){var B=this.data.sections.length-1;this.data.sections[B].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),B--);if(this.data.sections[B].multiPageMenuNotificationSectionRenderer&&G.continuationItems){G=_.C(G==null?void 0:G.continuationItems);for(var F=G.next();!F.done;F=G.next())if(F=F.value,_.Q(F,srD)){var D=
void 0,u=void 0,R=void 0,N=void 0,y=void 0;((D=this)==null?0:(u=D.data)==null?0:(R=u.sections)==null?0:(N=R[B])==null?0:(y=N.multiPageMenuNotificationSectionRenderer)==null?0:y.items)&&this.push("data.sections."+B+".multiPageMenuNotificationSectionRenderer.items",F)}else if(_.Q(F,_.SVq)||_.Q(F,_.c0))this.push("data.sections",F),B++}}};
_.w.logSubmenu=function(G){if(!_.X("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var B=this.ytRendererBehavior.getScreenLayer(),F=_.qW(B),D=_.Uw(B);if((G=G.trackingParams)&&F&&D){var u=_.yX(G);_.X("combine_ve_grafts")?_.Rh().graftServerVe(G,D,B):_.WT(F,D,u)}}};
_.w.emptySubmenuContainer=function(){for(var G=_.IF(this.submenuElement);G.firstChild;)G.removeChild(G.firstChild)};
_.w.onMenuBackTap=function(G){_.cZ(this.hostElement,"yt-submenu-closed");G.stopPropagation()};
_.w.onSubmenuClosed=function(G){_.oF(G)!==this.hostElement&&(this.covered=!1,_.cZ(this.hostElement,"yt-refit"),G.stopPropagation())};
_.w.onRetrieveLocation=function(G,B){B.hasComments&&(B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),G.stopPropagation())};
_.w.shouldCloseOnNavigateEvent=function(G){if(!G)return!0;if(_.Q(G,_.$ua)||_.Q(G,_.zzT)||_.Q(G,_.ezG)||_.Q(G,_.MI))return!1;var B;return((B=_.Q(G==null?void 0:G.commandMetadata,_.xy))==null?0:B.ignoreNavigation)?!1:!0};
_.w.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.w.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.w.refitAfterRender=function(){var G=this;_.ft(this,function(){_.cZ(G.hostElement,"yt-refit")})};
hu.prototype.refitAfterRender=hu.prototype.refitAfterRender;hu.prototype.onRetrieveLocation=hu.prototype.onRetrieveLocation;hu.prototype.onSubmenuClosed=hu.prototype.onSubmenuClosed;hu.prototype.onMenuBackTap=hu.prototype.onMenuBackTap;hu.prototype.onServiceRequestSentOrCompleted=hu.prototype.onServiceRequestSentOrCompleted;hu.prototype.onYtNavigate=hu.prototype.onYtNavigate;hu.prototype.onPopupOpened=hu.prototype.onPopupOpened;hu.prototype.onPopupClosed=hu.prototype.onPopupClosed;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],hu.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],hu.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hu.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],hu.prototype,"enableFocusFix",void 0);_.c([_.v(),_.I("design:type",Object)],hu.prototype,"covered",void 0);_.c([_.v({computed:"computeHideMenu(covered, data)"}),_.I("design:type",Object)],hu.prototype,"hideMenu",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.I("design:type",String)],hu.prototype,"menuStyle",void 0);
_.c([_.v({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.I("design:type",Object)],hu.prototype,"isCommentNotificationOnProfileCard",void 0);_.c([_.v(),_.I("design:type",Boolean)],hu.prototype,"isPopUpOpen",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hu.prototype,"scrolledByTouch",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],hu.prototype,"disableBackdropFilter",void 0);
_.c([_.iA("#sections"),_.I("design:type",HTMLElement)],hu.prototype,"sectionsElement",void 0);_.c([_.iA("#spinner"),_.I("design:type",HTMLElement)],hu.prototype,"spinnerElement",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],hu.prototype,"headerElement",void 0);_.c([_.iA("#container"),_.I("design:type",HTMLElement)],hu.prototype,"JSC$22328_containerElement",void 0);_.c([_.iA("#submenu"),_.I("design:type",HTMLElement)],hu.prototype,"submenuElement",void 0);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hu.prototype,"onPopupClosed",null);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],hu.prototype,"onPopupOpened",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],hu.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-service-request-completed"),_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],hu.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.Pm("yt-menu-back-tapped"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],hu.prototype,"onMenuBackTap",null);
_.c([_.Pm("yt-submenu-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],hu.prototype,"onSubmenuClosed",null);_.c([_.Pm("yt-retrieve-location"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],hu.prototype,"onRetrieveLocation",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hu.prototype,"refitAfterRender",null);
_.c([_.mC({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],hu);
_.d(hu,"ytd-multi-page-menu-renderer",function(){if(OqG!==void 0)return OqG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return OqG=G},{mode:1});var nHG;var KY=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return G};
_.r(KY,_.p);_.w=KY.prototype;_.w.created=function(){this.showTooltips=!0};
_.w.computeAccessibility_=function(G){return this.get("accessibility.accessibilityData",G)||null};
_.w.onTap=function(){var G=_.Ia(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(G&&G.length===1&&G[0])_.T1(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var B;if((B=this.data)==null?0:B.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var F;((F=this.data)==null?0:F.menuRequest)&&_.fi(this.hostElement,[this.data.menuRequest])}}};
_.w.handleTopbarMenuClosedAction=function(G){var B,F;(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(G)===((B=this.data)==null?void 0:(F=B.icon)==null?void 0:F.iconType)&&this.toggleIconState(!1)};
_.w.toggleIconState=function(G){_.X("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=G)};
_.w.handleUpdateTopbarAvatarAction=function(G){var B;G=(B=_.Q(G,J8$))==null?void 0:B.avatarUrl;var F,D;B=(F=this.data)==null?void 0:(D=F.avatar)==null?void 0:D.thumbnails;G&&B&&(F={thumbnails:[Object.assign({},B[0],{url:G})]},this.set("data.avatar",F))};
_.ZN.Object.defineProperties(KY.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.IF(this.hostElement).querySelector("#button")}}});
KY.prototype.onTap=KY.prototype.onTap;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],KY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],KY.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.xGP.YtButtonBehavior),_.I("design:type",Object)],KY.prototype,"ytButtonBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],KY.prototype,"data",void 0);
_.c([_.iA("yt-icon-button#button"),_.I("design:type",Object)],KY.prototype,"iconButton",void 0);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],KY.prototype,"onTap",null);_.c([_.mC({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],KY);
_.tS()(KY,"ytd-topbar-menu-button-renderer",function(){if(nHG===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);nHG=G}G=nHG;return G},{allowedProps:["data"],
mode:1});var lfD;var aE=function(){return _.p.apply(this,arguments)||this};
_.r(aE,_.p);aE.prototype.getSelected=function(){return this.reasons.selected};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aE.prototype,"data",void 0);_.c([_.iA("#reasons"),_.I("design:type",Object)],aE.prototype,"reasons",void 0);_.c([_.mC({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],aE);
_.d(aE,"ytd-ad-feedback-content",function(){if(lfD!==void 0)return lfD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return lfD=G},{mode:1});var UZz;var m1=function(){return _.p.apply(this,arguments)||this};
_.r(m1,_.p);_.w=m1.prototype;_.w.onPopupOpened=function(){_.T1(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.w.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
_.w.computeCancelButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.cancelLabel}};
_.w.onConfirmTap=function(){var G=this.content.getSelected();G!==void 0&&(G=this.data.reasons[G].endpoint)&&(_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}}),_.T1(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.w.sendFeedbackSubmitToastAction=function(){var G;(G=this.data)!=null&&G.completionMessage&&(G=_.o9(this.data.completionMessage),_.T1(this.hostElement,"yt-open-popup-action",[G,this]))};
_.w.onCancelTap=function(){_.T1(this.hostElement,"yt-close-popup-action")};
m1.prototype.onPopupOpened=m1.prototype.onPopupOpened;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],m1.prototype,"data",void 0);_.c([_.iA("#content"),_.I("design:type",Object)],m1.prototype,"content",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],m1.prototype,"onPopupOpened",null);
_.c([_.mC({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],m1);
_.d(m1,"ytd-ad-feedback-renderer",function(){if(UZz!==void 0)return UZz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return UZz=G},{mode:1});var qTU;var EHD=function(){return _.p.apply(this,arguments)||this};
_.r(EHD,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EHD.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EHD.prototype,"data",void 0);_.c([_.mC({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],EHD);
_.d(EHD,"ytd-ad-info-dialog-content",function(){if(qTU!==void 0)return qTU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return qTU=G},{mode:1});var hEU;var XG=function(){return _.p.apply(this,arguments)||this};
_.r(XG,_.p);XG.prototype.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
XG.prototype.onConfirmTap=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
XG.prototype.computeShouldShowTitle=function(){var G;return!((G=this.data)==null||!G.title)};
XG.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
XG.prototype.onPopupClosed=XG.prototype.onPopupClosed;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],XG.prototype,"data",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],XG.prototype,"onPopupClosed",null);_.c([_.mC({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],XG);
_.d(XG,"ytd-ad-info-dialog-renderer",function(){if(hEU!==void 0)return hEU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return hEU=G},{mode:1});var Kl2;var Q4=function(){var G=_.p.apply(this,arguments)||this;G.actionButtonClass="action-button";G.dismissButtonId="dismiss-button";G.dialogDismiss=!0;return G};
_.r(Q4,_.p);_.w=Q4.prototype;_.w.computeInPlayer=function(G){return(G==null?void 0:G.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.w.computedLogo=function(){var G,B;return this.isDarkTheme()?(G=this.data)==null?void 0:G.logoDark:(B=this.data)==null?void 0:B.logo};
_.w.computedHeaderImage=function(){var G,B;return this.isDarkTheme()?(G=this.data)==null?void 0:G.headerImageDark:(B=this.data)==null?void 0:B.headerImage};
_.w.computeLogoIconId=function(){var G,B,F,D=(G=this.computedLogo())==null?void 0:(B=G.sources)==null?void 0:(F=B[0])==null?void 0:F.height;return D&&D%31===0?"logo-icon-with-padding":"logo-icon"};
_.w.computeLogoIconHeight=function(){var G,B,F,D=(G=this.computedLogo())==null?void 0:(B=G.sources)==null?void 0:(F=B[0])==null?void 0:F.height;return D&&D%31===0?"31":"24"};
_.w.onPopupClosed=function(){_.te().resolve(_.Eu).dispose()};
_.w.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.w.onShow=function(){this.inPlayer&&_.Sw(6);this.titleElement.focus()};
_.w.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++){var B=_.Q(this.data.impressionEndpoints[G],_.mr);B&&this.ytComponentBehavior.resolveCommand(B)}};
_.w.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.T1(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.ZN.Object.defineProperties(Q4.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var G,B;return!((G=this.data)==null||!G.headerImageDark)&&!((B=this.data)==null||!B.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.secondaryButton)}}});
Q4.prototype.onPopupClosed=Q4.prototype.onPopupClosed;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Q4.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Q8.YtVisibilityBehavior),_.I("design:type",Object)],Q4.prototype,"ytVisibilityBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Q4.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],Q4.prototype,"actionButtonClass",void 0);_.c([_.v(),_.I("design:type",Object)],Q4.prototype,"dismissButtonId",void 0);_.c([_.v(),_.I("design:type",Object)],Q4.prototype,"dialogDismiss",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Q4.prototype,"hasHeaderImage",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Q4.prototype,"hasPremiumButton",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.I("design:type",Boolean)],Q4.prototype,"inPlayer",void 0);_.c([_.iA("#dismiss-button"),_.I("design:type",HTMLElement)],Q4.prototype,"dismissButton",void 0);_.c([_.iA("#title"),_.I("design:type",HTMLElement)],Q4.prototype,"titleElement",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Q4.prototype,"onPopupClosed",null);
_.c([_.mC({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Q4);
_.d(Q4,"ytd-enforcement-message-view-model",function(){if(Kl2!==void 0)return Kl2;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Kl2=G},{mode:1});var afN;var mZ$;var jY=function(){var G=_.p.apply(this,arguments)||this;G.TEST_ONLY={immediateValidation:function(){G.immediateValidation()},
onValidationResponse:function(B){G.onValidationResponse(B)},
onGenerateHandleFromNameResponse:function(B){G.onGenerateHandleFromNameResponse(B)}};
return G};
_.r(jY,_.p);_.w=jY.prototype;_.w.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.w.validate=function(){this.immediateValidation()};
_.w.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.w.setHandleInputValue=function(G){this.handleDir=this.getHandleDir(G);this.handleInput.value=G;this.validationState={status:"PENDING"};this.immediateValidation()};
_.w.getHandleDir=function(G){var B=G===""&&!1;return(B=_.Yw8.test.call(_.Yw8,G))?"rtl":"ltr"};
_.w.onDataChanged=function(){var G,B;this.handleDir=this.getHandleDir((B=(G=this.data)==null?void 0:G.handle)!=null?B:"");var F;this.validationState=((F=this.data)==null?0:F.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var D;((D=this.data)==null?0:D.validateOnInit)&&this.immediateValidation()};
_.w.stopPropagation=function(G){G.stopPropagation()};
_.w.onInput=function(){var G;this.handleDir=this.getHandleDir((G=this.handleInput.value)!=null?G:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.w.onFocusout=function(G){this.handleInput.contains(G.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.w.delayedValidation=function(){var G,B;this.debouncedValidation((B=(G=this.data)==null?void 0:G.validationDelayMs)!=null?B:1E3)};
_.w.immediateValidation=function(){this.debouncedValidation(0)};
_.w.debouncedValidation=function(G){var B=this;_.kT(this,"debouncedValidation",function(){var F,D=B.staticValidation((F=B.handleInput.value)!=null?F:"");if(D!==void 0)B.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:D};else{var u;if((u=B.data)!=null&&u.validateChannelHandleCommand){B.validationState={status:"LOADING"};var R;B.ytComponentBehavior.resolveCommand(B.data.validateChannelHandleCommand,{form:{handle:(R=B.handleInput.value)!=null?R:""},commandController:{onSuccess:function(N,
y){B.onValidationResponse(y)},
onServerError:function(N,y){B.onValidationServerError(y)}}})}else B.handleUnexpectedValidationError(new _.Uf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",B.data))}},G)};
_.w.staticValidation=function(G){var B;if(((B=this.data)==null?void 0:B.channelHandleStaticValidationParams)!==void 0){B=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(G)&&B.validValueRegexpErrorMessage!==void 0)return B.validValueRegexpErrorMessage;if(B.minLength!==void 0&&G.length<B.minLength&&B.minLengthErrorMessage!==void 0)return B.minLengthErrorMessage;if(B.maxLength!==void 0&&G.length>B.maxLength&&B.maxLengthErrorMessage!==void 0)return B.maxLengthErrorMessage}};
_.w.onValidationResponse=function(G){var B=_.Q(G.result,c8U);B===void 0?this.handleUnexpectedValidationError(new _.Uf("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",G)):this.handleValidationResultRenderer(B)};
_.w.onValidationServerError=function(G){this.handleUnexpectedValidationError(new _.Uf("ValidateChannelHandle request failed.",G))};
_.w.handleValidationResultRenderer=function(G){if(G.handle===void 0)this.handleUnexpectedValidationError(new _.Uf("ChannelHandleValidationResultRenderer does not contain handle.",G));else if(G.handle===this.handleInput.value)switch(G.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:G.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:G.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Uf("Unrecognized ChannelHandleValidationResult",G));break;default:_.BS(G.result)}};
_.w.handleUnexpectedValidationError=function(G){var B;this.validationState={status:"UNKNOWN",handle:(B=this.handleInput.value)!=null?B:""};_.em(G)};
_.w.stopEventPropagation=function(G){G.stopPropagation()};
_.w.updateHandleOnChannelNameInputChange=function(G){if(!this.wasEdited){var B,F;this.debouncedGenerateHandleFromName(G,(F=(B=this.data)==null?void 0:B.validationDelayMs)!=null?F:1E3)}};
_.w.debouncedGenerateHandleFromName=function(G,B){var F=this;_.kT(this,"debouncedGenerateHandleFromName",function(){var D;(D=F.data)!=null&&D.validateChannelHandleCommand?F.ytComponentBehavior.resolveCommand(F.data.validateChannelHandleCommand,{form:{name:G},commandController:{onSuccess:function(u,R){F.onGenerateHandleFromNameResponse(R)},
onServerError:function(u,R){_.em(new _.Uf("Error calling GenerateHandleFromName",R))}}}):_.em(new _.Uf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",F.data))},B)};
_.w.onGenerateHandleFromNameResponse=function(G){this.wasEdited||((G=_.Q(G.result,TkA))?this.setHandleInputValue(G.handle):_.em(new _.Uf("Invalid results when generate handle from name")))};
_.ZN.Object.defineProperties(jY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G;if(G=this.validationState)G=this.validationState,G=G.status==="OK"||G.status==="UNKNOWN";if(G)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.validationState)==null?void 0:G.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 G,B=(G=this.channelHandleEntity)==null?void 0:G.handleEdit;this.handleDir=this.getHandleDir(B!=null?B:"");return B}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var G,B;if(((G=this.data)==null?void 0:(B=G.channelHandleStaticValidationParams)==null?void 0:B.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
jY.prototype.stopEventPropagation=jY.prototype.stopEventPropagation;jY.prototype.onDataChanged=jY.prototype.onDataChanged;jY.prototype.applyHandleEdit=jY.prototype.applyHandleEdit;jY.prototype.onValueChanged=jY.prototype.onValueChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],jY.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],jY.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],jY.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Boolean)],jY.prototype,"wasEdited",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],jY.prototype,"handleDir",void 0);_.c([_.iA("#handle-input"),_.I("design:type",Object)],jY.prototype,"handleInput",void 0);_.c([_.v(),_.O("validationState"),_.I("design:type",Object),_.I("design:paramtypes",[])],jY.prototype,"value",null);
_.c([_.Ga("value"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jY.prototype,"onValueChanged",null);_.c([_.O("validationState"),_.I("design:type",Object),_.I("design:paramtypes",[])],jY.prototype,"errorIndicator",null);_.c([_.v({reflectToAttribute:!0}),_.O("errorIndicator"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],jY.prototype,"borderErrorIndicator",null);
_.c([_.v({selectorArgs:["data.channelHandleEntityKey"],selector:function(G,B){return _.g5(G.entities,"channelHandle",B)}}),
_.I("design:type",Object)],jY.prototype,"channelHandleEntity",void 0);_.c([_.O("channelHandleEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],jY.prototype,"handleEdit",null);_.c([_.Ga("handleEdit"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jY.prototype,"applyHandleEdit",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],jY.prototype,"onDataChanged",null);
_.c([_.O("data.channelHandleStaticValidationParams.validValueRegexp"),_.I("design:type",Object),_.I("design:paramtypes",[])],jY.prototype,"validValueRegexp",null);_.c([_.Pm("yt-service-request-sent"),_.Pm("yt-service-request-completed"),_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],jY.prototype,"stopEventPropagation",null);_.c([_.mC({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],jY);
_.d(jY,"ytd-channel-handle-input-renderer",function(){if(mZ$!==void 0)return mZ$;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return mZ$=G},{mode:2});var LY=function(){var G=_.p.apply(this,arguments)||this;G.data=null;G.errorMessage=null;G.isLoading=!0;G.enableNewChannelCreationOnIdForAll=_.X("enable_new_channel_creation_for_id4all");G.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};G.testOnly={setErrorMessage:function(B){G.resetErrorState();G.setErrorState(B)}};
return G};
_.r(LY,_.p);_.w=LY.prototype;_.w.created=function(){this.logScreenVe()};
_.w.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")};
_.w.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var G;((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.set("errorMessage",_.$9(this.zeroStepErrorMessageEntity.value))};
_.w.onCreateTap=function(){var G=this;if(this.data&&this.data.channelCreationEndpoint){var B,F;if(!((B=this.data.createChannelButton)==null?0:(F=B.buttonRenderer)==null?0:F.isDisabled)){var D;if((D=this.nameInput)!=null&&D.value){this.setLoadingState();var u,R;B=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(u=this.handleInput)==null?void 0:u.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((R=this.handleInput)==null?void 0:R.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:B,commandController:{onSuccess:function(N,y){G.onChannelCreationEndpointSuccess(y);G.obakeImageSource&&_.W$("channelCreatedWithObakeImage",{imageSourceType:G.obakeImageSource})},
onServerError:function(){G.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.w.endpointRequiresServiceRequestAction=function(G){return!!_.Q(G,_.Xi)||!!_.Q(G,J8$)};
_.w.isNavigateAction=function(G){var B;return!!_.Q(G,VqB)||!!_.Q((B=_.Q(G,gmD))==null?void 0:B.command,VqB)};
_.w.isPlaylistAction=function(G){return!!_.Q(G,_.KV)||!!_.Q(G,_.j0)};
_.w.onChannelCreationEndpointSuccess=function(G){if(G.createChannelError){var B;this.setErrorState((B=G.createChannelError)==null?void 0:B.errorMessage);this.handleInput&&this.handleInput.validate()}else{G.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(G.navigationEndpoint);if(G.actions){B=_.C(G.actions);for(var F=B.next();!F.done;F=B.next())if(F=F.value,this.endpointRequiresServiceRequestAction(F)&&this.ytComponentBehavior.resolveCommand(F),this.isNavigateAction(F)){var D=void 0;F=_.Q((D=
_.Q(F,gmD))==null?void 0:D.command,VqB);D=void 0;this.isPlaylistAction((D=F)==null?void 0:D.endpoint)&&(_.T1(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),D=void 0,this.ytComponentBehavior.resolveCommand((D=F)==null?void 0:D.endpoint))}}G.actions&&G.actions.some(function(u){var R;return _.Q(u,VqB)||_.Q((R=_.Q(u,gmD))==null?void 0:R.command,VqB)})||_.T1(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.w.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.w.onCancelTap=function(){var G,B,F;if(!((G=this.data)==null?0:(B=G.cancelButton)==null?0:(F=B.buttonRenderer)==null?0:F.isDisabled)){var D,u,R;G=(D=this.data)==null?void 0:(u=D.cancelButton)==null?void 0:(R=u.buttonRenderer)==null?void 0:R.command;if(!G||!_.Q(G,_.cOS)){var N;this.nameInput&&((N=this.data)==null?0:N.name)&&(this.nameInput.value=this.data.name);var y;this.handleInput&&((y=this.data)==null?0:y.channelHandleInput)&&(this.handleInput.data=_.Q(this.data.channelHandleInput,IdD));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.w.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.w.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.w.onClearProfilePhotoTap=function(){var G,B,F;((G=this.data)==null?0:(B=G.clearProfilePhotoButton)==null?0:(F=B.buttonRenderer)==null?0:F.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.w.onEditAvatarTap=function(){var G,B,F;((G=this.data)==null?0:(B=G.editAvatarButton)==null?0:(F=B.buttonRenderer)==null?0:F.isDisabled)||this.openProfilePicturePicker()};
_.w.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)};
_.w.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var G;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((G=this.data)==null?0:G.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.w.setErrorState=function(G){this.resetErrorState();if(G)this.set("errorMessage",G);else{var B;if((B=this.zeroStepErrorMessageEntity)==null?0:B.value)this.set("errorMessage",_.$9(this.zeroStepErrorMessageEntity.value));else{var F;((F=this.data)==null?0:F.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.w.fetchImageBlobWithAlr=function(G,B){B=B===void 0?5:B;var F=this,D,u,R,N,y;return _.n(function(U){switch(U.nextAddress){case 1:return U.yield(fetch(G,{method:"GET",mode:"cors"}),2);case 2:D=U.yieldResult;if(D.ok){U.jumpTo(3);break}if(B===0)throw Error();u=F.addJitter(Math.pow(2,5-B));return U.yield(new Promise(function(q){setTimeout(q,u*1E3)}),4);
case 4:return U.return(F.fetchImageBlobWithAlr(G,B-1));case 3:if(!D.headers.get("content-type").split(";").some(function(q){return q.trim()==="text/plain"})){U.jumpTo(5);
break}R=F;N=R.fetchImageBlobWithAlr;return U.yield(D.text(),6);case 6:return U.return(N.call(R,U.yieldResult,B-1));case 5:return U.yield(D.blob(),7);case 7:return y=U.yieldResult,U.return(y)}})};
_.w.addJitter=function(G){var B=G*.3*Math.random();Math.random()>.5&&(B*=-1);return G+B};
_.w.openProfilePicturePicker=function(){var G=this,B,F,D,u,R,N;return _.n(function(y){if(y.nextAddress==1){B=G.data.scottyUploadUrl;if(!B)return y.return();F=document.documentElement.hasAttribute("dark");D=document.body.style.colorScheme;F&&(document.body.style.colorScheme="dark");u=GjZ(BlZ(PYQ(fa2(F?"dark":"light")),function(U){var q,h,K,a,m;return _.n(function(L){if(L.nextAddress==1)return q=_.G2(a7N(new uQD(U.photoUrl,!1)).build(),"alr","yes"),G.obakeImageSource=G.pictureChangeSourceToObakeImageSourceType(U.photoSource),
_.b5(L,2),G.setLoadingState(),L.yield(G.fetchImageBlobWithAlr(q),4);if(L.nextAddress!=2)return h=L.yieldResult,K=new FileReader,K.addEventListener("load",function(){var W,e,b,M,t,T;return _.n(function(A){if(A.nextAddress==1){if(h.size>15728640)return G.setErrorState((W=G.data)==null?void 0:W.imageSizeErrorMessage),_.em(Error("im")),A.return();if(!K.result)return G.setErrorState((e=G.data)==null?void 0:e.genericImageLoadErrorMessage),_.em(Error("jm")),A.return();b=K.result;_.b5(A,2);return A.yield(ePH(h,
B),4)}if(A.nextAddress!=2)return M=A.yieldResult,G.handleImageUpdatedAction(b,M),G.resetErrorState(),_.oY(A,0);t=_.Al(A);G.setErrorState((T=G.data)==null?void 0:T.uploadErrorMessage);if(t instanceof Error)_.k2(t);else{var Z=new _.Uf(JSON.stringify(t));_.k2(Z)}_.di(A)})}),K.readAsDataURL(h),_.oY(L,0);
a=_.Al(L);G.setErrorState((m=G.data)==null?void 0:m.genericImageLoadErrorMessage);a instanceof Error?_.k2(a):_.Oz(new _.Uf(JSON.stringify(a)));_.di(L)})}),function(){document.body.style.colorScheme=D});
_.b5(y,2);return((R=G.data)==null?0:R.shouldViewChannelCreationFormForSupex)?y.yield(u.openPicker("profile-picture/art-selection"),5):y.yield(u.openPicker(),5)}if(y.nextAddress!=2)return _.oY(y,0);_.Al(y);G.setErrorState((N=G.data)==null?void 0:N.selectImageErrorMessage);_.di(y)})};
_.w.pictureChangeSourceToObakeImageSourceType=function(G){switch(G){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.w.logScreenVe=function(){_.t9(_.Rh(),124448)};
_.w.graftServerVe=function(){var G=_.Uw(),B,F,D=(B=this.data)==null?void 0:(F=B.loggingDirectives)==null?void 0:F.trackingParams;D&&G&&(this.channelCreationFormVe=_.Rh().graftServerVe(D,G),G={visualElement:this.channelCreationFormVe},_.De().reportShown(G))};
_.w.isNameChanged=function(G){var B;return((B=this.data)==null?void 0:B.name)!==G};
_.w.isHandleChanged=function(G){var B,F=_.Q((B=this.data)==null?void 0:B.channelHandleInput,IdD);return F&&G?F.handle!==G:!1};
_.w.handleImageUpdatedAction=function(G,B){this.previewDataUrl=G;this.encryptedBlobId=B};
_.w.handleImageSelectionErrorAction=function(G){this.setErrorState(G)};
_.w.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.w.maybeWipeZeroStepErrorMessage=function(){var G,B=(G=this.data)==null?void 0:G.zeroStepErrorMessageEntityKey,F;B&&((F=this.zeroStepErrorMessageEntity)==null?0:F.value)&&this.ytdReduxBehavior.dispatch(_.wC("stringEntity",B,{key:B,value:""}))};
_.ZN.Object.defineProperties(LY.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 G;return((G=this.photoThumbnail)==null?0:G.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 G;return!((G=this.data)==null||!G.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.descriptionInfo}}});
LY.prototype.dataChanged=LY.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],LY.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],LY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],LY.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],LY.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],LY.prototype,"errorMessage",void 0);
_.c([_.v(),_.I("design:type",Object)],LY.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",String)],LY.prototype,"previewDataUrl",void 0);_.c([_.v(),_.I("design:type",Number)],LY.prototype,"obakeImageSource",void 0);_.c([_.iA("#title-input"),_.I("design:type",Object)],LY.prototype,"nameInput",void 0);_.c([_.iA("#handle-input"),_.I("design:type",Object)],LY.prototype,"handleInput",void 0);_.c([_.v(),_.I("design:type",Boolean)],LY.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.c([_.v({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Wfg}),_.I("design:type",Object)],LY.prototype,"zeroStepErrorMessageEntity",void 0);_.c([_.O("data","data.isDefaultProfilePhoto","previewDataUrl"),_.I("design:type",Object),_.I("design:paramtypes",[])],LY.prototype,"photoThumbnail",null);_.c([_.O("data","data.isDefaultProfilePhoto","photoThumbnail"),_.I("design:type",Object),_.I("design:paramtypes",[])],LY.prototype,"userSetPhotoThumbnailUrl",null);
_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LY.prototype,"hideProfilePhotoButtonLayer",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],LY.prototype,"enableIdentityForAllChannelCreationDialog",null);_.c([_.Ry("data","zeroStepErrorMessageEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],LY.prototype,"dataChanged",null);
_.c([_.v({reflectToAttribute:!0}),_.O("data.descriptionInfo","zeroStepErrorMessageEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],LY.prototype,"description",null);_.c([_.mC({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],LY);
_.d(LY,"ytd-channel-creation-dialog-renderer",function(){if(afN!==void 0)return afN;var G=document.createElement("template");_.H(G,'\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">\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return afN=G},{mode:1});var XlA;var rz=function(){var G=_.p.apply(this,arguments)||this;G.isLoading=!1;G.isDisabled=!1;return G};
_.r(rz,_.p);rz.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
rz.prototype.updateDisabled=function(){var G;this.isDisabled=this.isLoading||((G=this.handleInput)==null?void 0:G.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
rz.prototype.onSaveClick=function(){var G=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var B;((B=this.data)==null?void 0:B.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var F;if((F=G.data)==null?0:F.nextEndpoint){var D;G.ytComponentBehavior.resolveCommand((D=G.data)==null?void 0:D.nextEndpoint)}else G.isLoading=
!1,G.closeDialog()},
onServerError:function(){G.isLoading=!1;G.handleInput.validate();var F;G.errorMessage=(F=G.data)==null?void 0:F.errorMessage}}}))}};
rz.prototype.closeDialog=function(){_.T1(this.hostElement,"yt-close-popup-action",[this.is])};
rz.prototype.updateDisabled=rz.prototype.updateDisabled;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],rz.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rz.prototype,"data",void 0);_.c([_.iA("#handle-input"),_.I("design:type",Object)],rz.prototype,"handleInput",void 0);_.c([_.Ga("isLoading"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rz.prototype,"updateDisabled",null);
_.c([_.mC({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],rz);
_.d(rz,"ytd-channel-handle-edit-dialog-renderer",function(){if(XlA!==void 0)return XlA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return XlA=G},{mode:1});var QPU;var WJ=function(){return _.p.apply(this,arguments)||this};
_.r(WJ,_.p);WJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WJ.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],WJ);
_.d(WJ,"ytd-channel-switcher-footer-renderer",function(){if(QPU!==void 0)return QPU;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return QPU=G},{mode:1});var jPz;var LlD;var HJ=function(){return _.p.apply(this,arguments)||this};
_.r(HJ,_.p);HJ.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
HJ.prototype.onIronChange=HJ.prototype.onIronChange;_.c([_.v(),_.I("design:type",Object)],HJ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Function)],HJ.prototype,"onDontAskAgainChanged",void 0);_.c([_.iA("#checkbox"),_.I("design:type",Object)],HJ.prototype,"checkbox",void 0);_.c([_.Pm("iron-change"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],HJ.prototype,"onIronChange",null);
_.c([_.mC({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],HJ);
_.d(HJ,"ytd-identity-prompt-footer-renderer",function(){if(LlD!==void 0)return LlD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return LlD=G},{mode:1});var ks=function(){var G=_.p.apply(this,arguments)||this;G.dontAskAgain=!1;G.showPopup=!1;G.boundDontAskAgainChanged=function(B){G.dontAskAgainChanged(B)};
G.boundOnAccountItemTap=function(B){G.onAccountItemTap(B)};
return G};
_.r(ks,_.p);_.w=ks.prototype;
_.w.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]]"}}}}}};
_.w.ready=function(){var G=this;_.IF(this.hostElement).querySelector("#container").addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.w.dontAskAgainChanged=function(G){this.dontAskAgain=G};
_.w.onAccountItemTap=function(G){if(G){var B={};this.dontAskAgain&&(B={dont_ask_again:this.dontAskAgain});_.js(G,B)}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.w.redirectOnlyAccount=function(G){G.sections&&G.sections.length>0&&(G=_.Q(G.sections[0],_.JEL),(G==null?0:G.contents)&&(G==null?void 0:G.contents.length)<=1?(G=_.c5(window.location.href),(G==null?0:G.next)&&_.WbJ(G.next)?_.js(G.next):_.js("/")):this.showPopup=!0)};
ks.prototype.dataChanged=ks.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ks.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Object)],ks.prototype,"dontAskAgain",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ks.prototype,"showPopup",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Object)],ks.prototype,"boundDontAskAgainChanged",void 0);_.c([_.v({reflectToAttribute:!1}),_.I("design:type",Object)],ks.prototype,"boundOnAccountItemTap",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ks.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],ks);
_.d(ks,"ytd-channel-switcher-renderer",function(){if(jPz!==void 0)return jPz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jPz=G},{mode:1});var rnA;var Oo=function(){return _.p.apply(this,arguments)||this};
_.r(Oo,_.p);_.ZN.Object.defineProperties(Oo.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.c([_.v(),_.I("design:type",Object)],Oo.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],Oo.prototype,"steps",null);_.c([_.mC({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Oo);
_.d(Oo,"ytd-channel-transfer-stepper-renderer",function(){if(rnA!==void 0)return rnA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return rnA=G},{mode:1});var WlN;var eY=function(){var G=_.p.apply(this,arguments)||this;G.data=null;G.isError=!1;G.isLoading=!1;return G};
_.r(eY,_.p);_.w=eY.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.w.computeProfileName=function(G){return G?G.givenNameValue+" "+G.familyNameValue:""};
_.w.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)};
_.w.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)};
eY.prototype.onYtServiceRequestError=eY.prototype.onYtServiceRequestError;eY.prototype.onYtServiceRequestSent=eY.prototype.onYtServiceRequestSent;eY.prototype.dataChanged=eY.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],eY.prototype,"data",void 0);
_.c([_.v({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.I("design:type",String)],eY.prototype,"profileName",void 0);_.c([_.v(),_.I("design:type",Object)],eY.prototype,"isError",void 0);_.c([_.v(),_.I("design:type",Object)],eY.prototype,"isLoading",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],eY.prototype,"dataChanged",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],eY.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],eY.prototype,"onYtServiceRequestError",null);_.c([_.mC({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],eY);
_.d(eY,"ytd-channel-warm-welcome-cont-renderer",function(){if(WlN!==void 0)return WlN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return WlN=G},{mode:1});var HfG;var $s=function(){var G=_.p.apply(this,arguments)||this;G.data=null;return G};
_.r($s,_.p);$s.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$s.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$s.prototype,"data",void 0);_.c([_.mC({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],$s);
_.d($s,"ytd-channel-warm-welcome-renderer",function(){if(HfG!==void 0)return HfG;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return HfG=G},{mode:1});var kpH;var zb=function(){return _.p.apply(this,arguments)||this};
_.r(zb,_.p);_.ZN.Object.defineProperties(zb.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.authorThumbnail)||{}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],zb.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],zb.prototype,"thumbnailDetails",null);_.c([_.mC({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],zb);
_.d(zb,"ytd-comment-preview-renderer",function(){if(kpH!==void 0)return kpH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return kpH=G},{mode:1});var OfN;var bU=function(){return _.p.apply(this,arguments)||this};
_.r(bU,_.p);bU.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ZN.Object.defineProperties(bU.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.submitButton}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bU.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],bU.prototype,"submitButton",null);_.c([_.mC({is:"ytd-notice-renderer",disableElementRegistration:!0})],bU);
_.d(bU,"ytd-notice-renderer",function(){if(OfN!==void 0)return OfN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return OfN=G},{mode:1});var eEH;var V4=function(){return _.p.apply(this,arguments)||this};
_.r(V4,_.p);V4.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],V4.prototype,"data",void 0);_.c([_.mC({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],V4);
_.d(V4,"ytd-preview-comment-dialog-content",function(){if(eEH!==void 0)return eEH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return eEH=G},{mode:1});var $ZB;var vJ=function(){return _.p.apply(this,arguments)||this};
_.r(vJ,_.p);vJ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
vJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vJ.prototype,"data",void 0);_.c([_.mC({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],vJ);
_.d(vJ,"ytd-preview-comment-dialog-renderer",function(){if($ZB!==void 0)return $ZB;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return $ZB=G},{mode:1});var zE$;var bfG=_.X("web_button_rework")&&_.on("BUTTON_REWORK")||_.X("web_button_rework_with_live"),oE=function(){var G=_.p.apply(this,arguments)||this;G.closeLabel=_.G7("CLOSE");G.selectedAmountIndex=1;G.privacyCheckboxValue=!1;G.useAmsterdamStyle=bfG;G.amountPlaceholderIndex=-1;return G};
_.r(oE,_.p);_.w=oE.prototype;_.w.onAmountClick=function(G){this.selectedAmountIndex=_.IF(this.hostElement).querySelector("#amounts").indexForElement(G.currentTarget)};
_.w.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.T1(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.w.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.T1(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.T1(this.hostElement,"yt-close-popup-action",[this.is]);var G;(G=_.AZ())==null||G.getPlayerPromise().then(function(B){B.pauseVideo()})}};
_.w.donationCallback=function(G){G.success?(this.hostElement.hasAttribute("live-chat")&&G.response&&G.response.data&&G.response.data.actions&&_.T1(this.hostElement,"yt-live-chat-open-popup",[G.response.data.actions[0]]),_.T1(this.hostElement,"yt-close-popup-action",[this.is]),_.T1(this.hostElement,"yt-live-chat-close-buy-flow")):G.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(G.errorMessageRenderer)};
_.w.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.IF(this.hostElement).querySelector("#custom-amount-input").focus()};
_.w.updateConfirmationDialogTextWithAmount=function(G){var B=this.getConfirmDialogRuns();B&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(B),"text"],this.getFormattedAmount(G))};
_.w.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.w.getAmountPlaceholderIndex=function(G){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=G.findIndex(function(B){return B.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.w.getFormattedAmount=function(G){var B;return(new _.W2(4,((B=this.data)==null?void 0:B.currencyCode)||"")).format(G)};
_.w.isAmountValid=function(G){if(G==="")return!1;G=Number(G)*1E6;var B=this.get("minAmountMicros",this.data),F=this.get("maxAmountMicros",this.data);return B&&G<B||F&&G>F?!1:!0};
_.w.setInputError=function(){this.shouldShowValidationError?_.IF(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.IF(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.w.setInitialCheckboxValue=function(){var G;this.privacyCheckboxValue=!((G=this.data)==null||!G.privacyCheckboxInitialState)};
_.w.updateCustomAmountInputFromBinding=function(G){this.customAmountInput=G.detail.value};
_.w.updatePrivacyCheckboxValueFromBinding=function(G){this.privacyCheckboxValue=G.detail.value};
_.ZN.Object.defineProperties(oE.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var G=this,B,F;return((B=this.data)==null?void 0:(F=B.suggestedAmounts)==null?void 0:F.map(function(D,u){return{buttonRenderer:{style:G.selectedAmountIndex===u?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:D.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 G;return!((G=this.data)==null||!G.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 G=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(G&&this.amountMicros!==null)return Object.assign({},G,{ypcGetCartEndpoint:Object.assign({},G.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 G=this.get("confirmLargeAmount",this.data);if(G&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),G}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.get("donateButton.buttonRenderer",this.data);if(G)return Object.assign({},G,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
oE.prototype.setInitialCheckboxValue=oE.prototype.setInitialCheckboxValue;oE.prototype.setInputError=oE.prototype.setInputError;oE.prototype.setFocusOnCustomAmountInput=oE.prototype.setFocusOnCustomAmountInput;_.c([_.k(kRU),_.I("design:type",Object)],oE.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],oE.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],oE.prototype,"closeLabel",void 0);_.c([_.v(),_.I("design:type",Object)],oE.prototype,"selectedAmountIndex",void 0);_.c([_.v(),_.I("design:type",String)],oE.prototype,"customAmountInput",void 0);_.c([_.v(),_.I("design:type",Object)],oE.prototype,"privacyCheckboxValue",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],oE.prototype,"useAmsterdamStyle",void 0);_.c([_.Ga("customAmount"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oE.prototype,"setFocusOnCustomAmountInput",null);_.c([_.O("data","selectedAmountIndex"),_.I("design:type",Array),_.I("design:paramtypes",[])],oE.prototype,"suggestedAmountButtons",null);
_.c([_.O("data","selectedAmountIndex"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oE.prototype,"isCustomAmountSelected",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oE.prototype,"showPrivacyCheckbox",null);_.c([_.O("data","selectedAmountIndex","customAmount"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"amountMicros",null);
_.c([_.O("isCustomAmountSelected","customAmountInput"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"customAmount",null);_.c([_.O("customAmount"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oE.prototype,"shouldShowValidationError",null);_.c([_.O("customAmount"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],oE.prototype,"isDonateButtonEnabled",null);
_.c([_.O("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"donateCommand",null);_.c([_.O("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"donateCommandWithConfirmation",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"largeDonationThreshold",null);
_.c([_.O("customAmount","donateCommand","amountMicros"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"confirmLargeAmountCommand",null);_.c([_.O("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.I("design:type",Object),_.I("design:paramtypes",[])],oE.prototype,"donateButtonRenderer",null);_.c([_.Ga("shouldShowValidationError"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oE.prototype,"setInputError",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],oE.prototype,"setInitialCheckboxValue",null);_.c([_.mC({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],oE);
_.d(oE,"ytd-donation-amount-picker-renderer",function(){if(zE$!==void 0)return zE$;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return zE$=G},{mode:1});var Vf2;var vH$=function(){return _.p.apply(this,arguments)||this};
_.r(vH$,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],vH$.prototype,"ytComponentBehavior",void 0);_.c([_.v({}),_.I("design:type",Object)],vH$.prototype,"data",void 0);_.c([_.mC({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],vH$);
_.d(vH$,"ytd-donation-post-transaction-content",function(){if(Vf2!==void 0)return Vf2;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Vf2=G},{mode:1});var oHS;var Md=function(){return _.p.apply(this,arguments)||this};
_.r(Md,_.p);Md.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.c([_.v({}),_.I("design:type",Object)],Md.prototype,"data",void 0);_.c([_.mC({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Md);
_.d(Md,"ytd-donation-post-transaction-renderer",function(){if(oHS!==void 0)return oHS;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return oHS=G},{mode:1});var MfH;var plH;var pY=function(){return _.p.apply(this,arguments)||this};
_.r(pY,_.p);pY.prototype.computeIsStreamingProvider=function(G){return!!G.isStreamingShelf};
pY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],pY.prototype,"data",void 0);_.c([_.v({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],pY.prototype,"isStreamingProvider",void 0);
_.c([_.mC({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],pY);
_.d(pY,"ytd-media-provider-renderer",function(){if(plH!==void 0)return plH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return plH=G},{mode:1});var YTQ;var Ys=function(){return _.p.apply(this,arguments)||this};
_.r(Ys,_.p);Ys.prototype.observeLightsourcePalette=function(){var G,B=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;B&&_.nA(this.hostElement,B)};
Ys.prototype.observeLightsourcePalette=Ys.prototype.observeLightsourcePalette;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ys.prototype,"data",void 0);
_.c([_.Ga("data.vibrantsourceColorPaletteData"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ys.prototype,"observeLightsourcePalette",null);_.c([_.mC({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Ys);
_.d(Ys,"ytd-streaming-pop-up-dialog",function(){if(YTQ!==void 0)return YTQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return YTQ=G},{mode:1});var Au=function(){return _.p.apply(this,arguments)||this};
_.r(Au,_.p);Au.prototype.onPopupOpened_=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.te().resolve(_.Wr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Au.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Au.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"}}}}};
Au.prototype.onPopupOpened_=Au.prototype.onPopupOpened_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.be),_.I("design:type",Object)],Au.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Au.prototype,"data",void 0);
_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Au.prototype,"onPopupOpened_",null);_.c([_.mC({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Au);
_.d(Au,"ytd-brandconnect-popup-renderer",function(){if(MfH!==void 0)return MfH;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return MfH=G},{mode:1});var An$;var dz=function(){return _.p.apply(this,arguments)||this};
_.r(dz,_.p);_.w=dz.prototype;_.w.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){for(var G=0;G<this.getOptionRenderers().length;G++)this.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+G+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.w.updateSubmitButton=function(G){this.set("data.submitButton.buttonRenderer.isDisabled",!G)};
_.w.computeAlt=function(G){return _.zx(G)};
_.w.onDismissTap=function(){_.T1(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.w.getOptionRenderers=function(G){return(G=G||this.data)&&G.options?G.options.reduce(function(B,F){F.checkboxSurveyOptionRenderer&&B.push(F.checkboxSurveyOptionRenderer);return B},[]):[]};
_.w.onOptionChange=function(G){var B=this,F=!1;if(G.detail.checked)for(var D=this.getOptionRenderers().find(function(y){return y.value===G.detail.value}),u=this.getOptionRenderers(),R=0;R<u.length;R++){var N=u[R];
this.notifyPath("data.options."+R+".checkboxSurveyOptionRenderer.checked");N.checked&&((D==null?0:D.isExclusiveOption)?!N.isExclusiveOption:N.isExclusiveOption)?this.set("data.options."+R+".checkboxSurveyOptionRenderer.checked",!1):N.checked&&(F=!0)}else F=this.getOptionRenderers().some(function(y,U){B.notifyPath("data.options."+U+".checkboxSurveyOptionRenderer.checked");return y.checked});
this.updateSubmitButton(F)};
_.w.onSubmitTap=function(){var G=this.getOptionRenderers().filter(function(R){return R.checked});
if(G.length!==0){var B=G.map(function(R){return R.responseEndpoint});
G=[];for(var F=1;F<B.length;F++){var D=void 0,u=(D=_.Q(B[F],_.QG))==null?void 0:D.feedbackToken;u&&G.push(u)}B=[B[0]];G.length&&B.push({extra_feedback_tokens:G});_.fi(this.hostElement,B);_.T1(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);G=this.data&&this.data.submitActions||[];if(_.X("kevlar_command_handler_migration_killswitch"))_.tL(this.hostElement,G,this.hostElement);else for(G=_.C(G),B=G.next();!B.done;B=G.next())this.ytComponentBehavior.resolveCommand(B.value)}};
dz.prototype.onOptionChange=dz.prototype.onOptionChange;dz.prototype.dataChanged=dz.prototype.dataChanged;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],dz.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],dz.prototype,"ytComponentBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.c([_.k(ugB),_.I("design:type",Object)],dz.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dz.prototype,"data",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dz.prototype,"dataChanged",null);
_.c([_.Pm("ytd-checkbox-survey-option-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],dz.prototype,"onOptionChange",null);_.c([_.mC({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],dz);
_.d(dz,"ytd-checkbox-survey-renderer",function(){if(An$!==void 0)return An$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return An$=G},{mode:1});var dZZ;var JnU;var Ju=function(){return _.p.apply(this,arguments)||this};
_.r(Ju,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.c([_.k(FqB),_.I("design:type",Object)],Ju.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ju.prototype,"data",void 0);_.c([_.mC({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ju);
_.d(Ju,"ytd-dismissal-reason-text-renderer",function(){if(JnU!==void 0)return JnU;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return JnU=G},{mode:1});var cnD;var cJ=function(){return _.p.apply(this,arguments)||this};
_.r(cJ,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.c([_.k(FqB),_.I("design:type",Object)],cJ.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cJ.prototype,"data",void 0);_.c([_.mC({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],cJ);
_.d(cJ,"ytd-dismissal-reason-video-renderer",function(){if(cnD!==void 0)return cnD;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return cnD=G},{mode:1});var Tb=function(){return _.p.apply(this,arguments)||this};
_.r(Tb,_.p);_.w=Tb.prototype;_.w.created=function(){this.selectedFeedbackTokens=new mf};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.w.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.w.onDismissalReasonSelected=function(G,B){_.cZ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(B);this.hasReasonsSelected=!0};
_.w.onDismissalReasonDeselected=function(G,B){_.cZ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(B);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.w.onCancelTap=function(){_.T1(this.hostElement,"yt-close-popup-action")};
_.w.onSubmitTap=function(){var G=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(G={feedback_tokens:G},_.te().resolve(_.Wr).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}));_.T1(this.hostElement,"yt-close-popup-action")};
Tb.prototype.onDismissalReasonDeselected=Tb.prototype.onDismissalReasonDeselected;Tb.prototype.onDismissalReasonSelected=Tb.prototype.onDismissalReasonSelected;Tb.prototype.dataChanged=Tb.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Tb.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Tb.prototype,"hasReasonsSelected",void 0);_.c([_.v(),_.I("design:type",mf)],Tb.prototype,"selectedFeedbackTokens",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Tb.prototype,"dataChanged",null);_.c([_.Pm("yt-dismissal-reason-selected"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,String]),_.I("design:returntype")],Tb.prototype,"onDismissalReasonSelected",null);
_.c([_.Pm("yt-dismissal-reason-deselected"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,String]),_.I("design:returntype")],Tb.prototype,"onDismissalReasonDeselected",null);_.c([_.mC({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Tb);
_.d(Tb,"ytd-dismissal-follow-up-renderer",function(){if(dZZ!==void 0)return dZZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dZZ=G},{mode:1});var TDZ;var wj=function(){return _.p.apply(this,arguments)||this};
_.r(wj,_.p);_.w=wj.prototype;_.w.onCheckedChange=function(){this.multiselect||_.cZ(this.hostElement,"yt-feedback-single-select-changed");_.IF(this.hostElement).querySelector("#freeform").focus();_.cZ(this.hostElement,"yt-refit")};
_.w.showTextBox=function(G,B){return G&&B};
_.w.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))};
_.w.updateDataCheckedFromBinding=function(G){this.set("data.checked",G.detail.value)};
_.w.updateDataResultTextFromBinding=function(G){this.set("data.resultText",G.detail.value)};
wj.prototype.dataChanged=wj.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wj.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],wj.prototype,"multiselect",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wj.prototype,"dataChanged",null);
_.c([_.mC({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],wj);
_.d(wj,"ytd-feedback-option-renderer",function(){if(TDZ!==void 0)return TDZ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return TDZ=G},{mode:1});var IfQ;var Cy=function(){return _.p.apply(this,arguments)||this};
_.r(Cy,_.p);Cy.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Cy.prototype.onSingleSelectCheckedChanged=function(G){G=_.oF(G);for(var B=0;B<this.data.options.length;B++)if(G.data!==_.Q(this.data.options[B],aP2)){var F="data.options."+B+".feedbackOptionRenderer.checked";this.notifyPath(F);this.set(F,!1)}};
Cy.prototype.onSingleSelectCheckedChanged=Cy.prototype.onSingleSelectCheckedChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Cy.prototype,"data",void 0);
_.c([_.Pm("yt-feedback-single-select-changed"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Cy.prototype,"onSingleSelectCheckedChanged",null);_.c([_.mC({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Cy);
_.d(Cy,"ytd-feedback-question-renderer",function(){if(IfQ!==void 0)return IfQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return IfQ=G},{mode:1});var ffQ;var NC=function(){return _.p.apply(this,arguments)||this};
_.r(NC,_.p);NC.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
NC.prototype.getSelectedFeedbackResults=function(){for(var G={},B=0;B<this.data.questions.length;B++)for(var F=_.Q(this.data.questions[B],Kp2),D=0;D<F.options.length;D++){var u=_.Q(F.options[D],aP2);u&&u.checked&&(G[u.optionKey]=u.resultText)}return G};
NC.prototype.onKeyUp=function(){var G=this;_.Tm(_.Lu,function(){_.cZ(G.hostElement,"yt-refit")});
_.Lu.start()};
NC.prototype.submitSurvey=function(){var G=this.getSelectedFeedbackResults();Object.keys(G).length>0&&this.data.submitFeedbackEndpoint&&(G={survey_results:G,is_feedback_token_unencrypted:!0},_.te().resolve(_.Wr).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],NC.prototype,"data",void 0);_.c([_.mC({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],NC);
_.d(NC,"ytd-feedback-survey-renderer",function(){if(ffQ!==void 0)return ffQ;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ffQ=G},{mode:1});var tfH;var ZfA;var yi=function(){return _.p.apply(this,arguments)||this};
_.r(yi,_.p);yi.prototype.computeAlt=function(G){return _.zx(G)};
yi.prototype.submitResponse=function(){var G,B;(G=this.data)!=null&&G.feedbackToken&&((B=this.data)==null?void 0:B.nextStageIndex)!==void 0&&(_.Ia(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Ia(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
yi.prototype.onClick=function(){this.submitResponse()};
yi.prototype.onClick=yi.prototype.onClick;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yi.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],yi.prototype,"vertical",void 0);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yi.prototype,"onClick",null);
_.c([_.mC({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],yi);
_.d(yi,"ytd-single-select-answer-option-renderer",function(){if(ZfA!==void 0)return ZfA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ZfA=G},{mode:1});var gHN;var ny=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return G};
_.r(ny,_.p);ny.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
ny.prototype.dataChanged=function(){var G,B;this.vertical=((B=(G=this.data)==null?void 0:G.answerOrientation)!=null?B:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
ny.prototype.submitFeedback=function(G){var B;((B=this.data)==null?0:B.responseEndpoint)&&G&&_.fi(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[G]}])};
ny.prototype.dataChanged=ny.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],ny.prototype,"eventForwardingBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],ny.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],ny.prototype,"vertical",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ny.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],ny);
_.d(ny,"ytd-single-select-question-renderer",function(){if(gHN!==void 0)return gHN;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return gHN=G},{mode:1});var lF=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return G};
_.r(lF,_.p);_.w=lF.prototype;_.w.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"}}}};
_.w.dataChanged=function(){this.jumpToStage(0)};
_.w.jumpToStage=function(G){var B,F;if((B=this.data)==null?0:(F=B.stages)==null?0:F[G])this.currentStage=this.data.stages[G],this.refitAfterRender()};
_.w.computeAlt=function(G){return _.zx(G)};
_.w.computeSimpleMessage=function(G){var B;return(B=_.Q(G,QjS))==null?void 0:B.messageText};
_.w.computeHideDismiss=function(G){var B;return(B=_.Q(G,QAQ))==null?void 0:B.hideParentDismissButton};
_.w.onDismissTap=function(){_.T1(this.hostElement,"yt-close-popup-action");_.Q(this.currentStage,QjS)||this.data.dismissalEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.w.refitAfterRender=function(){var G=this;_.ft(this,function(){_.cZ(G.hostElement,"yt-refit")})};
lF.prototype.dataChanged=lF.prototype.dataChanged;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],lF.prototype,"eventForwardingBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],lF.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k(ugB),_.I("design:type",Object)],lF.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lF.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],lF.prototype,"currentStage",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lF.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],lF);
_.d(lF,"ytd-multi-stage-survey-renderer",function(){if(tfH!==void 0)return tfH;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return tfH=G},{mode:1});var ST$;var Ui=function(){return _.p.apply(this,arguments)||this};
_.r(Ui,_.p);Ui.prototype.computeAlt=function(G){return _.zx(G)};
Ui.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.te().resolve(_.Wr).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.T1(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(pVB(!1)))};
Ui.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Ui.prototype.onTap=Ui.prototype.onTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Ui.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ui.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Ui.prototype,"vertical",void 0);
_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ui.prototype,"onTap",null);_.c([_.mC({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Ui);
_.d(Ui,"ytd-single-option-survey-option-renderer",function(){if(ST$!==void 0)return ST$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ST$=G},{mode:1});var sPD;var qC=function(){return _.p.apply(this,arguments)||this};
_.r(qC,_.p);_.w=qC.prototype;_.w.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){var G,B;this.vertical=(((G=this.data)==null?void 0:(B=G.surveyOrientation)==null?void 0:B.type)||"HORIZONTAL")==="VERTICAL"};
_.w.computeAlt=function(G){return _.zx(G)};
_.w.onDismissTap=function(){_.T1(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.te().resolve(_.Wr).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(pVB(!1))};
qC.prototype.dataChanged=qC.prototype.dataChanged;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],qC.prototype,"eventForwardingBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(ugB),_.I("design:type",Object)],qC.prototype,"ytdHatsSurveyBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],qC.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qC.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],qC.prototype,"vertical",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qC.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],qC);
_.d(qC,"ytd-single-option-survey-renderer",function(){if(sPD!==void 0)return sPD;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return sPD=G},{mode:1});var xZ$;var Ei=function(){return _.p.apply(this,arguments)||this};
_.r(Ei,_.p);Ei.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ei.prototype.onDismissTap=function(){_.T1(this.hostElement,"yt-close-popup-action")};
Ei.prototype.onNavigate=function(){_.T1(this.hostElement,"yt-close-popup-action")};
Ei.prototype.onNavigate=Ei.prototype.onNavigate;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],Ei.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ei.prototype,"data",void 0);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ei.prototype,"onNavigate",null);
_.c([_.mC({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Ei);
_.d(Ei,"ytd-survey-follow-up-renderer",function(){if(xZ$!==void 0)return xZ$;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return xZ$=G},{mode:1});var P8A;var Gsz;var BUm;var hH=function(){var G=_.p.apply(this,arguments)||this;G.polymer2="Element"in Polymer;return G};
_.r(hH,_.p);_.w=hH.prototype;_.w.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.w.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.w.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.w.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("minutes-changed",this.minutes))};
_.w.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("seconds-changed",this.seconds))};
_.w.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.w.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
hH.prototype.secondsChangedForBinding=hH.prototype.secondsChangedForBinding;hH.prototype.minutesChangedForBinding=hH.prototype.minutesChangedForBinding;hH.prototype.secondsChanged=hH.prototype.secondsChanged;_.c([_.v(),_.I("design:type",String)],hH.prototype,"minutes",void 0);_.c([_.v(),_.I("design:type",String)],hH.prototype,"seconds",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],hH.prototype,"polymer2",void 0);
_.c([_.iA("#seconds"),_.I("design:type",Object)],hH.prototype,"secondsEl",void 0);_.c([_.Ga("seconds"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hH.prototype,"secondsChanged",null);_.c([_.Ga("minutes"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hH.prototype,"minutesChangedForBinding",null);
_.c([_.Ga("seconds"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],hH.prototype,"secondsChangedForBinding",null);_.c([_.ay({is:"yt-timestamp-input",disableElementRegistration:!0})],hH);
_.d(hH,"yt-timestamp-input",function(){if(BUm===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Gsz===void 0&&(Gsz=document.createElement("template"));var D=Gsz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);BUm=G}G=BUm;return G},{mode:2});var Ky=function(){return _.p.apply(this,arguments)||this};
_.r(Ky,_.p);_.w=Ky.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22500_scroller.dialogElement=this.hostElement.parentNode};
_.w.dataChanged=function(){var G=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.de().getPlayerPromise().then(function(B){B=B.getCurrentTime();G.minutes=Math.floor(B/60).toString();G.seconds=(Math.floor(B)%60).toString()})};
_.w.onTapSubmit=function(G){G.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(G={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(G.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(G.minutes=this.minutes,G.seconds=this.seconds),_.te().resolve(_.Wr).resolveCommand(this.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.w.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.w.onYtServiceRequestCompleted=function(G,B){B=B.actions;if(Array.isArray(B))for(var F=0,D=B.length;F<D;F++)_.Q(B[F],_.Dx)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(B[F]))};
_.w.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.w.toggleSubmitButton=function(G){this.set("submitButton.isDisabled",!G)};
_.w.handleInput=function(){var G=this.issueType,B=this.affiliation,F=this.minutes,D=this.seconds;F=!this.showTimestamp||!!F&&!!D;this.toggleSubmitButton(!!this.descriptionText&&!!G&&!!B&&F)};
_.w.computeServiceEndpoint=function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)};
_.w.computeSubmitButton=function(G){(G=this.get("submitButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.w.computeShowTimestamp=function(G){return!!G};
_.w.onValueChangedForIssueType=function(G){this.issueType=G.detail.value};
_.w.onValueChangedForAffiliation=function(G){this.affiliation=G.detail.value};
_.w.updateDescriptionTextFromBinding=function(G){this.descriptionText=G.detail.value};
_.w.updateFullNameTextFromBinding=function(G){this.fullNameText=G.detail.value};
_.w.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.w.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
Ky.prototype.handleInput=Ky.prototype.handleInput;Ky.prototype.onYtServiceRequestError=Ky.prototype.onYtServiceRequestError;Ky.prototype.onYtServiceRequestCompleted=Ky.prototype.onYtServiceRequestCompleted;Ky.prototype.onYtServiceRequestSent=Ky.prototype.onYtServiceRequestSent;Ky.prototype.dataChanged=Ky.prototype.dataChanged;_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],Ky.prototype,"ytOpenPopupBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.c([_.iA("#scroller"),_.I("design:type",Object)],Ky.prototype,"JSC$22500_scroller",void 0);_.c([_.iA("#description"),_.I("design:type",HTMLInputElement)],Ky.prototype,"description",void 0);_.c([_.iA("#full-name"),_.I("design:type",Object)],Ky.prototype,"fullName",void 0);_.c([_.v(),_.I("design:type",Object)],Ky.prototype,"data",void 0);
_.c([_.v({computed:"computeShowTimestamp(data.timestampLabel)"}),_.I("design:type",Boolean)],Ky.prototype,"showTimestamp",void 0);_.c([_.v({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.I("design:type",Object)],Ky.prototype,"serviceEndpoint",void 0);_.c([_.v({computed:"computeSubmitButton(data)"}),_.I("design:type",Object)],Ky.prototype,"submitButton",void 0);_.c([_.v(),_.I("design:type",String)],Ky.prototype,"descriptionText",void 0);
_.c([_.v(),_.I("design:type",Number)],Ky.prototype,"issueType",void 0);_.c([_.v(),_.I("design:type",Number)],Ky.prototype,"affiliation",void 0);_.c([_.v(),_.I("design:type",String)],Ky.prototype,"fullNameText",void 0);_.c([_.v(),_.I("design:type",String)],Ky.prototype,"minutes",void 0);_.c([_.v(),_.I("design:type",String)],Ky.prototype,"seconds",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ky.prototype,"dataChanged",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Ky.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],Ky.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Ky.prototype,"onYtServiceRequestError",null);_.c([_.Ga("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ky.prototype,"handleInput",null);_.c([_.mC({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Ky);
_.d(Ky,"ytd-legal-report-details-form-renderer",function(){if(P8A!==void 0)return P8A;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return P8A=G},{mode:1});var iQS;var aW=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return G};
_.r(aW,_.p);aW.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
aW.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var G=this.formRenderer.getForm();G&&this.data.submitEndpoint&&(_.te().resolve(_.Wr).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},G,{element:this.hostElement})}),_.T1(this.hostElement,"yt-close-popup-action"))}};
aW.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.T1(this.hostElement,"yt-close-popup-action"))};
aW.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
aW.prototype.onPopupClosed=aW.prototype.onPopupClosed;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],aW.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],aW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);
_.c([_.iA("yt-form-renderer"),_.I("design:type",Object)],aW.prototype,"formRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],aW.prototype,"data",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],aW.prototype,"onPopupClosed",null);_.c([_.mC({is:"ytd-form-popup-content",disableElementRegistration:!0})],aW);
_.d(aW,"ytd-form-popup-content",function(){if(iQS!==void 0)return iQS;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return iQS=G},{mode:1});var FgX;var mI=function(){return _.p.apply(this,arguments)||this};
_.r(mI,_.p);mI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mI.prototype.onPopupOpened=function(){_.cZ(this.hostElement,"yt-invalidate-popup-tabbables")};
mI.prototype.onYtServiceRequestCompleted=function(G,B){B.data&&B.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.cZ(this.hostElement,"yt-invalidate-popup-tabbables"))};
mI.prototype.onYtServiceRequestCompleted=mI.prototype.onYtServiceRequestCompleted;mI.prototype.onPopupOpened=mI.prototype.onPopupOpened;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],mI.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],mI.prototype,"data",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],mI.prototype,"onPopupOpened",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],mI.prototype,"onYtServiceRequestCompleted",null);_.c([_.mC({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],mI);
_.d(mI,"ytd-form-popup-renderer",function(){if(FgX!==void 0)return FgX;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return FgX=G},{mode:1});var DLX;var X$=function(){var G=_.p.apply(this,arguments)||this;G.isLoading=!1;return G};
_.r(X$,_.p);_.w=X$.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");uK2(this.hostElement)};
_.w.onYtServiceRequestSent=function(){this.isLoading=!0};
_.w.onYtServiceRequestCompleted=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.w.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.tL(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.w.closePopupHandler=function(){this.fireOnCloseActions()};
_.w.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var G=this.get("data.headerImage.thumbnails");G&&(G=_.Ax(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")")}};
_.w.onYtNavigate=function(G){(G=_.oF(G))&&G.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
X$.prototype.onYtNavigate=X$.prototype.onYtNavigate;X$.prototype.onHeaderImageChanged=X$.prototype.onHeaderImageChanged;X$.prototype.closePopupHandler=X$.prototype.closePopupHandler;X$.prototype.onYtServiceRequestCompleted=X$.prototype.onYtServiceRequestCompleted;X$.prototype.onYtServiceRequestSent=X$.prototype.onYtServiceRequestSent;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],X$.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],X$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],X$.prototype,"isLoading",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLDivElement)],X$.prototype,"header",void 0);_.c([_.iA("#confirm-button"),_.I("design:type",_.ix)],X$.prototype,"confirmButton",void 0);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],X$.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],X$.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],X$.prototype,"closePopupHandler",null);_.c([_.Ga("data.headerImage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],X$.prototype,"onHeaderImageChanged",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],X$.prototype,"onYtNavigate",null);
_.c([_.mC({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],X$);
_.d(X$,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(DLX!==void 0)return DLX;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return DLX=G},{mode:1});var uza;var Qi=function(){var G=_.p.apply(this,arguments)||this;G.isLoading=!1;return G};
_.r(Qi,_.p);_.w=Qi.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);uK2(this.hostElement)};
_.w.onYtServiceRequestCompleted=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.w.onYtServiceRequestError=function(G){_.zP(this.hostElement,G.detail.error.message)};
_.w.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.w.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.T1(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.w.onDataChanged=function(){this.isLoading=!1;var G=this.get("data.headerImage.thumbnails");G&&(G=_.Ax(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")");G=_.qW();var B=_.Uw(),F=this.get("data.trackingParams");F&&B&&G&&_.WT(G,B,_.yX(F))};
_.ZN.Object.defineProperties(Qi.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Qi.prototype.onDataChanged=Qi.prototype.onDataChanged;Qi.prototype.onDomChange=Qi.prototype.onDomChange;Qi.prototype.onYtServiceRequestError=Qi.prototype.onYtServiceRequestError;Qi.prototype.onYtServiceRequestCompleted=Qi.prototype.onYtServiceRequestCompleted;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Qi.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Qi.prototype,"isLoading",void 0);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Qi.prototype,"hasDescription",null);_.c([_.iA("tp-yt-paper-dialog-scrollable"),_.I("design:type",Object)],Qi.prototype,"scrollable",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLElement)],Qi.prototype,"header",void 0);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Qi.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Qi.prototype,"onYtServiceRequestError",null);
_.c([_.Pm("dom-change"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Qi.prototype,"onDomChange",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Qi.prototype,"onDataChanged",null);_.c([_.mC({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Qi);
_.d(Qi,"ytd-gaming-account-link-setting-renderer",function(){if(uza!==void 0)return uza;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return uza=G},{mode:1});var RJM;var w6e;var j9=function(){var G=_.p.apply(this,arguments)||this;G.isHeader=!1;G.getEndpointForm=function(){return ozB(G.data)};
return G};
_.r(j9,_.p);_.w=j9.prototype;_.w.triggerHintActions=function(){var G=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var B=_.Ia(G.hostElement,"yt-get-opened-popups-action");!(B&&B.length===1?B[0]:[]).some(function(F){F=F.openPopupAction.popupType;return F==="SURVEY"||F==="MEALBAR"||F==="HINT"})&&G.data.hintActions&&G.guideOpened&&(_.tL(G.hostElement,G.data.hintActions,G.hostElement),G.data.hintActions=void 0)})};
_.w.getBadgeIconType=function(G){return G&&G.liveBroadcasting?"live":null};
_.w.onDown=function(){this.interaction.triggerDown()};
_.w.onUp=function(){this.interaction.triggerUp()};
_.w.onTap=function(G){if(this.data.serviceEndpoint){var B;_.X("shorts_controller_retrieve_seedless_sequence_v2")&&((B=_.Q(this.data.serviceEndpoint,_.Fu))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):vzG(this.data.serviceEndpoint,this);G.preventDefault()}else this.data.navigationEndpoint&&!_.oQ(_.VW(G),this.hostElement,["A".toString()])&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.w.computeActive=function(G,B){if(!G)return!1;var F=G.navigationEndpoint;G=G.serviceEndpoint;if(!F&&!G||!B)return!1;if(F){G=(G=_.sX(B))&&["subscriptions","filteredsubscriptions"].includes(G);if(_.Q(F,_.x9)&&_.Q(B,_.x9)&&!G){var D=_.Q(F,_.x9).browseId;B=_.Q(B,_.x9).browseId;return D!==void 0&&B!==void 0&&(D===B||D==="VLWL"&&B==="FEwatch_later"||D==="FEwatch_later"&&B==="VLWL")}var u;F=(u=_.Q(F.commandMetadata,_.xy))==null?void 0:u.url;B=(D=_.Q(B.commandMetadata,_.xy))==null?void 0:D.url;return!(!F||
!B||F!==B&&F!==_.Ik(B))}return this.isActiveShortsTab(G,B)};
_.w.isActiveShortsTab=function(G,B){B=!!_.Q(B,_.Fu)||!!_.Q(B,_.a1);return(!!_.Q(G,_.Fu)||!!_.Q(G,_.a1))&&B};
_.w.computeIsPrimary=function(G){return!!G};
_.ZN.Object.defineProperties(j9.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 G=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&G)return G}}});
j9.prototype.onTap=j9.prototype.onTap;j9.prototype.onUp=j9.prototype.onUp;j9.prototype.onDown=j9.prototype.onDown;j9.prototype.triggerHintActions=j9.prototype.triggerHintActions;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],j9.prototype,"componentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],j9.prototype,"rendererBehavior",void 0);_.c([_.k(_.zT.YtTaskEmitterBehavior),_.I("design:type",Object)],j9.prototype,"taskEmitterBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],j9.prototype,"activeEndpoint",void 0);_.c([_.v(),_.I("design:type",Object)],j9.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],j9.prototype,"guideOpened",void 0);_.c([_.v(),_.I("design:type",String)],j9.prototype,"type",void 0);_.c([_.iA("yt-interaction"),_.I("design:type",Object)],j9.prototype,"interaction",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],j9.prototype,"isHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data","activeEndpoint"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],j9.prototype,"active",null);_.c([_.v({reflectToAttribute:!0}),_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],j9.prototype,"isPrimary",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.count","data.presentationStyle","data.badges.*"),_.I("design:type",String),_.I("design:paramtypes",[])],j9.prototype,"lineEndStyle",null);
_.c([_.O("lineEndStyle"),_.I("design:type",Object),_.I("design:paramtypes",[])],j9.prototype,"ariaLabel",null);_.c([_.Ga("data.hintActions","guideOpened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j9.prototype,"triggerHintActions",null);_.c([_.Pm("down"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j9.prototype,"onDown",null);
_.c([_.Pm("up"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j9.prototype,"onUp",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],j9.prototype,"onTap",null);_.c([_.mC({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],j9);
_.d(j9,"ytd-guide-entry-renderer",function(){if(w6e!==void 0)return w6e;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return w6e=G},{mode:1});var Ly=function(){var G=_.p.apply(this,arguments)||this;G.userToggled=!1;return G};
_.r(Ly,_.p);_.w=Ly.prototype;_.w.getItemsPath=function(){return"data.expandableItems"};
_.w.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.w.onExpanderItemTapped=function(G){var B=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.X("kevlar_guide_expandable_items_killswitch")&&_.ft(this,function(){_.Jo(B.expandableItems)});
G.preventDefault()};
_.w.onCollapserItemTapped=function(G){var B=this;this._setExpanded(!1);this.userToggled=!0;G.preventDefault();this.expandableItems&&!_.X("kevlar_guide_collapsible_items_killswitch")&&_.ft(this,function(){_.dg(B.hostElement)})};
_.w.observeActiveEndpoint=function(){for(var G=this.activeEndpoint,B=this.data,F=this.expandableItems.children,D=0,u=F.length;D<u;D++)F[D].activeEndpoint=G;B&&B.autoExpandCommand&&G&&!this.userToggled&&(F=this.data.autoExpandCommand,B=!(!_.Q(F,_.x9)||!_.Q(G,_.x9)||_.Q(F,_.x9).browseId!==_.Q(G,_.x9).browseId),G=this.get("commandMetadata.webCommandMetadata.url",G),F=this.get("commandMetadata.webCommandMetadata.url",F),B=B||!!(G&&F&&G.includes(F)),this._setExpanded(B),B&&this.ytLazyListBehavior.fillRemainingListItems())};
Ly.prototype.observeActiveEndpoint=Ly.prototype.observeActiveEndpoint;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Ly.prototype,"ytLazyListBehavior",void 0);_.c([_.iA("#expandable-items"),_.I("design:type",HTMLElement)],Ly.prototype,"expandableItems",void 0);
_.c([_.v(),_.I("design:type",Object)],Ly.prototype,"data",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0}),_.I("design:type",Boolean)],Ly.prototype,"expanded",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],Ly.prototype,"initialCount",void 0);_.c([_.v(),_.I("design:type",Object)],Ly.prototype,"activeEndpoint",void 0);_.c([_.Ga("data","activeEndpoint","canShowMore"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ly.prototype,"observeActiveEndpoint",null);
_.c([_.mC({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Ly);
_.d(Ly,"ytd-guide-collapsible-entry-renderer",function(){if(RJM!==void 0)return RJM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return RJM=G},{mode:2});var Cl6;var NUz;var rj=function(){var G=_.p.apply(this,arguments)||this;G.allVideosCount=0;G.renderGuideEntry=!1;return G};
_.r(rj,_.p);rj.prototype.observeRenderEntry=function(){var G;this.renderGuideEntry=!((G=this.data)==null||!G.alwaysShow)||!!this.allVideosCount};
rj.prototype.observeRenderEntry=rj.prototype.observeRenderEntry;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],rj.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rj.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],rj.prototype,"activeEndpoint",void 0);_.c([_.v({selector:_.oVM}),_.I("design:type",Object)],rj.prototype,"allVideosCount",void 0);
_.c([_.v(),_.I("design:type",Object)],rj.prototype,"renderGuideEntry",void 0);_.c([_.Ry("allVideosCount","data.alwaysShow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rj.prototype,"observeRenderEntry",null);_.c([_.mC({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],rj);
_.d(rj,"ytd-guide-downloads-entry-renderer",function(){if(NUz===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);NUz=G}G=NUz;return G},{mode:1});var Wq=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return G};
_.r(Wq,_.p);_.w=Wq.prototype;_.w.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]]"}}}}}};
_.w.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var G=this.sectionItems.children,B=0,F=G.length;B<F;B++)G[B].activeEndpoint=this.activeEndpoint}};
_.w.handleAddToGuideSectionAction=function(G){var B=_.Q(G,F3$);if(B&&this.data&&(G=B.items,B=B.handlerData,G&&B&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(B)>-1)){B=0;for(var F=G.length;B<F;B++)G[B].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,G[B])}};
_.w.handleRemoveFromGuideSectionAction=function(G){var B=_.Q(G,DoD);B&&this.data&&(G=B.guideEntryId,B=B.handlerData,G&&B&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(B)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(G,this.data.sectionItems),this.removeFromCollapsedSection(G,this.data.sectionItems)))};
_.w.removeFromExpandedSection=function(G,B){G=this.getEntryIndexMatchingId(G,B);G!==-1&&this.splice("data.sectionItems",G,1)};
_.w.removeFromCollapsedSection=function(G,B){var F=B.findIndex(function(D){return!!_.Q(D,pU$)});
F&&F!==-1&&B[F]&&_.Q(B[F],pU$)&&(B=_.Q(B[F],pU$).expandableItems)&&(G=this.getEntryIndexMatchingId(G,B),G!==-1&&this.splice("data.sectionItems."+F+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.w.getEntryIndexMatchingId=function(G,B){var F=this;return B.findIndex(function(D){return F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",D)===G})};
Wq.prototype.activeEndpointChanged=Wq.prototype.activeEndpointChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Wq.prototype,"actionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#section-items"),_.I("design:type",HTMLDivElement)],Wq.prototype,"sectionItems",void 0);
_.c([_.iA("#header-entry"),_.I("design:type",Object)],Wq.prototype,"headerEntry",void 0);_.c([_.v(),_.I("design:type",Object)],Wq.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Wq.prototype,"activeEndpoint",void 0);_.c([_.Ga("activeEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wq.prototype,"activeEndpointChanged",null);_.c([_.mC({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Wq);
_.d(Wq,"ytd-guide-collapsible-section-entry-renderer",function(){if(Cl6===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);Cl6=G}G=Cl6;return G},{mode:1});var ygy;var nMy;var Hq=function(){var G=_.p.apply(this,arguments)||this;G.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 G};
_.r(Hq,_.p);_.w=Hq.prototype;
_.w.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}}}}};
_.w.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var G=_.Ia(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);G&&G.length===1&&G[0]&&_.Ia(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.w.handleResetChannelUnreadCountCommand=function(G){var B;(G=(B=_.Q(G,waU))==null?void 0:B.channelId)&&this.data&&this.data.items&&(B=this.getPathToEntryMatchingId(G))&&(this.set(B+".guideEntryRenderer.count",0),this.set(B+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.w.handleResetSubscriptionsUnreadDotCommand=function(G){var B,F=(B=_.Q(G,CeQ))==null?void 0:B.targetId,D;F&&(D=this.data)!=null&&D.items&&(G=this.data.items.findIndex(function(u){var R;return((R=u.guideEntryRenderer)==null?void 0:R.targetId)===F}),G<0||this.set("data.items."+G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.w.getPathToEntryMatchingId=function(G){if(this.data&&this.data.items){var B=this.getEntryIndexMatchingId(G,this.data.items);if(B>-1)return"data.items."+B;for(var F=0;F<this.data.items.length;F++)if(B=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[F]))if(B=this.getEntryIndexMatchingId(G,B),B>-1)return"data.items."+F+".guideCollapsibleEntryRenderer.expandableItems."+B}};
_.w.handleAddToGuideSectionAction=function(G){var B=this;if(_.Q(G,F3$)){var F=_.Q(G,F3$).items;G=_.Q(G,F3$).handlerData;var D,u;if(F&&G&&((D=this.data)==null?void 0:(u=D.handlerDatas)==null?void 0:u.indexOf(G))>-1){F=F.filter(function(N){return(N=B.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",N))&&!B.isGuideItemPresent(N)});
var R;if(G==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((R=this.data)==null?0:R.items)&&(D=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),D>-1)){this.splice.apply(this,["data.items",D+1,0].concat(_.gi(F)));return}this.unshift.apply(this,["data.items"].concat(_.gi(F)))}}};
_.w.isGuideItemPresent=function(G){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(G,this.data.items)!==-1)return!0;var B=this.data.items.find(function(F){return!!F.guideCollapsibleEntryRenderer});
if((B==null?0:B.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(G,B.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.w.getEntryIndexMatchingId=function(G,B){var F=this;return B.findIndex(function(D){return F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",D)===G})};
_.w.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(G,B){var F=this;return B.findIndex(function(D){return F.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",D)===G})};
_.w.handleRemoveFromGuideSectionAction=function(G){if(_.Q(G,DoD)){var B=_.Q(G,DoD).guideEntryId;G=_.Q(G,DoD).handlerData;var F,D;B&&G&&((F=this.data)==null?void 0:(D=F.handlerDatas)==null?void 0:D.indexOf(G))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(B,this.data.items),this.removeFromCollapsedSection(B,this.data.items))}};
_.w.removeFromExpandedSection=function(G,B){G=this.getEntryIndexMatchingId(G,B);G!==-1&&this.splice("data.items",G,1)};
_.w.removeFromCollapsedSection=function(G,B){var F=B.findIndex(function(D){return!!D.guideCollapsibleEntryRenderer});
F!==-1&&(B=B[F].guideCollapsibleEntryRenderer.expandableItems)&&(G=this.getEntryIndexMatchingId(G,B),G!==-1&&this.splice("data.items."+F+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.w.activeEndpointChanged=function(){for(var G=_.IF(this.hostElement).querySelector("#items").children,B=0,F=G.length;B<F;B++)G[B].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.w.guideOpenedChanged=function(){for(var G=_.IF(this.hostElement).querySelector("#items").children,B=0,F=G.length;B<F;B++)G[B].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Hq.prototype.guideOpenedChanged=Hq.prototype.guideOpenedChanged;Hq.prototype.activeEndpointChanged=Hq.prototype.activeEndpointChanged;Hq.prototype.persistentGuideChanged=Hq.prototype.persistentGuideChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Hq.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Hq.prototype,"ytLazyListBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],Hq.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Hq.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Hq.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",String)],Hq.prototype,"type",void 0);_.c([_.v({value:20}),_.I("design:type",Number)],Hq.prototype,"initialCount",void 0);_.c([_.v({value:10}),_.I("design:type",Number)],Hq.prototype,"targetFramerate",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Hq.prototype,"autoFill",void 0);_.c([_.v({value:50}),_.I("design:type",Number)],Hq.prototype,"renderDelay",void 0);
_.c([_.Ga("guidePersistentAndVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hq.prototype,"persistentGuideChanged",null);_.c([_.Ry("activeEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hq.prototype,"activeEndpointChanged",null);_.c([_.Ry("guideOpened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Hq.prototype,"guideOpenedChanged",null);
_.c([_.mC({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Hq);
_.d(Hq,"ytd-guide-section-renderer",function(){if(nMy!==void 0)return nMy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return nMy=G},{mode:2});var lcm;var kO=function(){return _.p.apply(this,arguments)||this};
_.r(kO,_.p);_.ZN.Object.defineProperties(kO.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],kO.prototype,"rendererBehaviors",void 0);_.c([_.v(),_.I("design:type",Object)],kO.prototype,"data",void 0);_.c([_.v(),_.O("data.signInButton.buttonRenderer.style"),_.I("design:type",Object),_.I("design:paramtypes",[])],kO.prototype,"alignByText",null);_.c([_.mC({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],kO);
_.d(kO,"ytd-guide-signin-promo-renderer",function(){if(lcm===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);lcm=G}G=lcm;return G},{mode:1});var Oi=function(){var G=_.p.apply(this,arguments)||this;G.showFooter=!1;return G};
_.r(Oi,_.p);Oi.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}}}}};
Oi.prototype.attached=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1){B=_.te().resolve(_.fH(_.Qj));if(!B)return F.jumpTo(0);B.setGuideData(G.hostElement);return F.yield(0,3)}G.ytLazyListBehavior.initialCount=2;return F.return()})};
Oi.prototype.onMouseExit=function(){_.X("web_guide_hover_expansion")&&_.Ia(this.hostElement,"yt-guide-mouseleaved",[])};
Oi.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Oi.prototype.dataChanged=Oi.prototype.dataChanged;Oi.prototype.onMouseExit=Oi.prototype.onMouseExit;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.Mv.YtLazyListBehavior),_.I("design:type",Object)],Oi.prototype,"ytLazyListBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Oi.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Oi.prototype,"showFooter",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],Oi.prototype,"autoFill",void 0);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Oi.prototype,"onMouseExit",null);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Oi.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-guide-renderer",disableElementRegistration:!0})],Oi);
_.d(Oi,"ytd-guide-renderer",function(){if(ygy!==void 0)return ygy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ygy=G},{mode:2});var ULS;var e9=function(){var G=_.p.apply(this,arguments)||this;G.systemIcons=_.X("kevlar_system_icons");G.frostedGlass=_.X("web_frosted_glass");G.onAllyMenuButtonClick=function(){var B=G.getShowSheetCommand();B&&G.ytComponentBehavior.resolveCommand(B)};
G.getEndpointForm=function(){return ozB(G.data)};
return G};
_.r(e9,_.p);_.w=e9.prototype;_.w.attached=function(){this.JSC$22553_sheetController=_.te().resolve(_.nL)};
_.w.onDown=function(){this.interaction.triggerDown()};
_.w.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var G;(G=this.JSC$22553_sheetController)==null||oeN(G,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.w.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.w.isSeedlessReelCommand=function(G){var B;return!!G&&((B=_.Q(G,_.Fu))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.w.isShowSheetCommand=function(G){return!!G&&!!_.Q(G,_.Ch)};
_.w.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.w.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.w.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.w.onUp=function(){this.interaction.triggerUp()};
_.w.onTap=function(G){if(this.data.serviceEndpoint){if(_.X("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var B;(B=this.JSC$22553_sheetController)==null||oeN(B,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));G.preventDefault();
return}vzG(this.data.serviceEndpoint,this)}G.preventDefault()}else{var F;((F=this.data)==null?0:F.navigationEndpoint)&&!_.oQ(_.VW(G),this.hostElement,["A".toString()])&&_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.w.computeActive=function(G,B){if(!G)return!1;var F=G.navigationEndpoint;G=G.serviceEndpoint;if(!F&&!G||!B)return!1;if(F){G=_.Q(F,_.x9);var D=_.Q(B,_.x9);if(G&&D)return G.browseId===D.browseId&&G.params===D.params;var u;F=(u=_.Q(F.commandMetadata,_.xy))==null?void 0:u.url;var R;B=(R=_.Q(B.commandMetadata,_.xy))==null?void 0:R.url;return!(!F||!B||F!==B&&F!==_.Ik(B))}return this.isActiveShortsTab(G,B)};
_.w.isActiveShortsTab=function(G,B){B=!!_.Q(B,_.Fu)||!!_.Q(B,_.a1);return(!!_.Q(G,_.Fu)||!!_.Q(G,_.a1))&&B};
_.w.computeTitle=function(G,B){return B?"":_.zx(G)};
_.w.computeEndpoint=function(G){return this.isSeedlessReelCommand(G.serviceEndpoint)?G.serviceEndpoint:G.navigationEndpoint};
_.w.computeHref=function(G){G=this.isSeedlessReelCommand(G.serviceEndpoint)?G.serviceEndpoint:G.navigationEndpoint;return(G=this.ytComponentBehavior.computeHref_(G))?G:"#"};
_.w.computeAriaLabelTitle=function(G){return _.zx(G)};
_.w.computeAllyShowMenuOnTap=function(G){return this.isShowSheetCommand(G.mouseEnterEndpoint)||this.isShowSheetCommand(G.serviceEndpoint)};
_.ZN.Object.defineProperties(e9.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
e9.prototype.onMouseLeave=e9.prototype.onMouseLeave;e9.prototype.onMouseEnter=e9.prototype.onMouseEnter;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.N9),_.I("design:type",Object)],e9.prototype,"ironButtonState",void 0);_.c([_.v(),_.I("design:type",Object)],e9.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],e9.prototype,"activeEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],e9.prototype,"noLabels",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.I("design:type",Boolean)],e9.prototype,"isActive",void 0);_.c([_.v({computed:"computeEndpoint(data)"}),_.I("design:type",Object)],e9.prototype,"computedEndpoint",void 0);
_.c([_.v({computed:"computeHref(data)"}),_.I("design:type",String)],e9.prototype,"computedHref",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],e9.prototype,"systemIcons",void 0);_.c([_.iA("yt-interaction"),_.I("design:type",Object)],e9.prototype,"interaction",void 0);_.c([_.O("isActive"),_.I("design:type",Object),_.I("design:paramtypes",[])],e9.prototype,"ariaSelected",null);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],e9.prototype,"frostedGlass",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.I("design:type",Boolean)],e9.prototype,"allyShowMenuOnTap",void 0);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[MouseEvent]),_.I("design:returntype")],e9.prototype,"onMouseEnter",null);_.c([_.Pm("mouseleave"),_.I("design:type",Function),_.I("design:paramtypes",[MouseEvent]),_.I("design:returntype")],e9.prototype,"onMouseLeave",null);
_.c([_.mC({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],e9);
_.d(e9,"ytd-mini-guide-entry-renderer",function(){if(ULS!==void 0)return ULS;var G=document.createElement("template");_.H(G,'\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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computedHref]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ULS=G},{mode:_.ZO("kevlar_poly_si_batch_j063")?1:2});var qSy;var $O=function(){var G=_.p.apply(this,arguments)||this;G.allVideosCount=0;G.noLabels=_.X("kevlar_mini_guide_no_labels");G.frostedGlass=_.X("web_frosted_glass");return G};
_.r($O,_.p);_.w=$O.prototype;_.w.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.w.onMouseEnter=function(){_.X("web_guide_hover_expansion")&&_.Ia(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.w.visibleChanged=function(){if(this.visible&&!this.data){var G=_.te().resolve(_.fH(_.Qj));G&&G.setGuideData(this.hostElement);_.Zx(_.Rh(),this.miniGuideVe);(G=_.qW())&&this.miniGuideVe&&_.kI(G,this.miniGuideVe)}};
_.w.dataChanged=function(){var G=_.X("kevlar_guide_menu_on_hover")&&_.X("kevlar_modern_mini_guide"),B=_.X("kevlar_guide_menu_on_click")&&_.X("kevlar_modern_mini_guide"),F;var D=(F=this.data)==null?void 0:F.items;F=this.allVideosCount;var u=[];G=G?0:B?1:void 0;B=G!==void 0;if(D){for(var R=[],N=!1,y=_.C(D),U=y.next();!U.done;U=y.next()){U=U.value;if(U.guideSubscriptionsSectionRenderer){var q=void 0;R=((q=U.guideSubscriptionsSectionRenderer)==null?void 0:q.items)||[]}q=void 0;if((q=U.guideSectionRenderer)==
null?0:q.items)for(q=void 0,U=_.C((q=U.guideSectionRenderer)==null?void 0:q.items),q=U.next();!q.done;q=U.next()){var h=void 0;((h=q.value.guideEntryRenderer)==null?void 0:h.targetId)==="subscriptions-guide-item"&&(N=!0)}}D=_.C(D);for(y=D.next();!y.done;y=D.next())if(y=y.value,U=void 0,(U=y.guideSectionRenderer)==null?0:U.items)for(U=void 0,y=_.C((U=y.guideSectionRenderer)==null?void 0:U.items),U=y.next();!U.done;U=y.next()){U=U.value;var K=h=void 0;q=U.guideEntryRenderer||_.Q((h=U)==null?void 0:
(K=h.guideCollapsibleSectionEntryRenderer)==null?void 0:K.headerEntry,MUH);h=[];K=[];var a=void 0;if(((a=q)==null?void 0:a.targetId)==="subscriptions-guide-item")h=R;else{var m=a=void 0;if((a=U)==null?0:(m=a.guideCollapsibleSectionEntryRenderer)==null?0:m.sectionItems)K=h=U.guideCollapsibleSectionEntryRenderer.sectionItems}ARB(u,q,B?h:[],G);if(K.length>0)for(U=_.C(K),q=U.next();!q.done;q=U.next())q=q.value,K=_.Q(q,rY$),h=void 0,K=K&&_.X("enable_mini_guide_downloads_item")&&(K.alwaysShow||F)?_.Q((h=
K)==null?void 0:h.entryRenderer,MUH):_.Q(q,MUH),ARB(u,K,[])}else U=void 0,!N&&((U=y.guideSubscriptionsSectionRenderer)==null?0:U.items)&&(h=q=U=void 0,y=_.Q((U=y.guideSubscriptionsSectionRenderer)==null?void 0:(q=U.items[0])==null?void 0:(h=q.guideCollapsibleSectionEntryRenderer)==null?void 0:h.headerEntry,MUH),ARB(u,y,R,G))}this.miniGuideItems=u};
_.w.activeEndpointChanged=function(){for(var G=this.items.children,B=0;B<G.length;B++)G[B].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.w.registerWithViewTransitionManager=function(){var G=this;_.mX(_.Lu,function(){var B=_.te().resolve(_.fH(_.w1));if(B&&B.isAnyTransitionEnabled){var F={};B.viewTransitionCoordinator.registerElement(G.hostElement,(F.slide="mini-guide-page-transition",F))}})};
$O.prototype.activeEndpointChanged=$O.prototype.activeEndpointChanged;$O.prototype.dataChanged=$O.prototype.dataChanged;$O.prototype.visibleChanged=$O.prototype.visibleChanged;$O.prototype.onMouseEnter=$O.prototype.onMouseEnter;_.c([_.k(_.hf),_.I("design:type",Object)],$O.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],$O.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$O.prototype,"ytComponentBehavior",void 0);_.c([_.iA("#items"),_.I("design:type",Object)],$O.prototype,"items",void 0);_.c([_.v(),_.I("design:type",Object)],$O.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Boolean)],$O.prototype,"visible",void 0);_.c([_.v(),_.I("design:type",Object)],$O.prototype,"miniGuideItems",void 0);_.c([_.v({selector:_.oVM}),_.I("design:type",Object)],$O.prototype,"allVideosCount",void 0);_.c([_.v({value:_.ge(283834)}),_.I("design:type",_.l2)],$O.prototype,"miniGuideVe",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$O.prototype,"noLabels",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$O.prototype,"frostedGlass",void 0);_.c([_.Pm("mouseenter"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$O.prototype,"onMouseEnter",null);_.c([_.Ry("visible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$O.prototype,"visibleChanged",null);
_.c([_.Ry("data","allVideosCount"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$O.prototype,"dataChanged",null);_.c([_.Ry("activeEndpoint"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$O.prototype,"activeEndpointChanged",null);_.c([_.mC({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],$O);
_.d($O,"ytd-mini-guide-renderer",function(){if(qSy===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);qSy=G}G=qSy;return G},{mode:1});var EMw;var hJe=/^[\x00-\x7F]+$/,zI=function(){return _.p.apply(this,arguments)||this};
_.r(zI,_.p);_.ZN.Object.defineProperties(zI.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var G,B=_.zx((G=this.data)==null?void 0:G.handle);if(B)return _.$9("@"+B)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.zx(this.displayHandle),B,F=_.zx((B=this.data)==null?void 0:B.handleUrl);if(G&&F)return _.$9(F+G)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var G=_.zx(this.displayHandle);if(G&&!hJe.test(G)){var B;return(B=this.data)==null?void 0:B.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.zx(this.displayHandleUrl),B,F=_.zx((B=this.data)==null?void 0:B.urlInfoText);if(G&&F)return _.$9(F+" "+G)}}});
_.c([_.v(),_.I("design:type",Object)],zI.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],zI.prototype,"displayHandle",null);_.c([_.O("displayHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],zI.prototype,"displayHandleUrl",null);_.c([_.O("displayHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],zI.prototype,"warningText",null);
_.c([_.O("displayHandleUrl"),_.I("design:type",Object),_.I("design:paramtypes",[])],zI.prototype,"urlInfoTextWithUrl",null);_.c([_.mC({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],zI);
_.d(zI,"ytd-handles-claiming-confirm-dialog-content",function(){if(EMw!==void 0)return EMw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return EMw=G},{mode:1});var Kga;var bF=function(){var G=_.p.apply(this,arguments)||this;G.okButtonOverride={style:"mono",type:"outline",size:"M"};return G};
_.r(bF,_.p);bF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bF.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bF.prototype,"okButtonOverride",void 0);_.c([_.v(),_.I("design:type",Object)],bF.prototype,"data",void 0);_.c([_.mC({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],bF);
_.d(bF,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Kga!==void 0)return Kga;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Kga=G},{mode:1});var acM;var mLS=/^[\x00-\x7F]+$/,Vi=function(){var G=_.p.apply(this,arguments)||this;G.isLoading=!1;return G};
_.r(Vi,_.p);Vi.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(this.selectedHandle);_.Ia(this.hostElement,"yt-refit-popups-action")}};
_.ZN.Object.defineProperties(Vi.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.$9("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.$9(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!mLS.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Vi.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Vi.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Vi.prototype,"selectedHandle",void 0);_.c([_.v(),_.I("design:type",Object)],Vi.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Function)],Vi.prototype,"onSelectedHandleChanged",void 0);_.c([_.iA("#channel-handle-input"),_.I("design:type",Object)],Vi.prototype,"handleInput",void 0);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Vi.prototype,"handleUrlPrefix",null);_.c([_.O("selectedHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],Vi.prototype,"displayHandle",null);_.c([_.O("selectedHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],Vi.prototype,"displayHandleUrl",null);_.c([_.O("selectedHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],Vi.prototype,"warningText",null);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.c([_.mC({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Vi);
_.d(Vi,"ytd-handles-claiming-edit-dialog-content",function(){if(acM!==void 0)return acM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return acM=G},{mode:1});var X6w;var vq=function(){var G=_.p.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.selectButtonDisabled=!1;G.isLoading=!1;G.hasSelectedHandleEventListener=!1;G.selectedHandleChanged=function(B){G.selectedHandle=B};
return G};
_.r(vq,_.p);_.w=vq.prototype;_.w.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.w.onDataChanged=function(){var G,B;this.selectedHandle=(B=_.Q((G=this.data)==null?void 0:G.inputField,IdD))==null?void 0:B.handle};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onCancel=function(){this.selectedHandle="";_.T1(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var B;((B=this.data)==null?void 0:B.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(F,D){if(D.newHandleUpdateStatus!==void 0&&D.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&D.newHandleUpdateStatus.errorMessage)_.zP(G.hostElement,_.zx(D.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var u;if((u=G.data)==null?0:u.onChannelUpdateSuccess){F=G.data.onChannelUpdateSuccess;var R,N;if(D=(R=_.Q(F,_.Dx))==null?void 0:(N=R.popup)==null?void 0:N.handlesClaimingConfirmDialogRenderer)D.handle=_.$9(G.selectedHandle);G.ytComponentBehavior.resolveCommand(F);_.T1(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){var F;G.content&&((F=G.content)==null?0:F.handleInput)&&G.content.handleInput.validate();G.isLoading=!1;_.zP(G.hostElement,_.G7("TRY_AGAIN_LATER"))}}}))}};
_.w.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
vq.prototype.onDataChanged=vq.prototype.onDataChanged;vq.prototype.onSelectedHandleChanged=vq.prototype.onSelectedHandleChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],vq.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"actionButtonOverride",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"cancelButtonOverride",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",String)],vq.prototype,"selectedHandle",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"selectButtonDisabled",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"hasSelectedHandleEventListener",void 0);_.c([_.v(),_.I("design:type",Object)],vq.prototype,"handleInput",void 0);
_.c([_.Ga("selectedHandle"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vq.prototype,"onSelectedHandleChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vq.prototype,"onDataChanged",null);_.c([_.iA("ytd-handles-claiming-edit-dialog-content"),_.I("design:type",Object)],vq.prototype,"content",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.mC({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],vq);
_.d(vq,"ytd-handles-claiming-edit-dialog-renderer",function(){if(X6w!==void 0)return X6w;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return X6w=G},{mode:1});var QIL;var oW=function(){return _.p.apply(this,arguments)||this};
_.r(oW,_.p);_.ZN.Object.defineProperties(oW.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.handle){var B;return _.$9("@"+_.zx((B=this.data)==null?void 0:B.handle))}}}});
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],oW.prototype,"formattedHandle",null);_.c([_.v(),_.I("design:type",Object)],oW.prototype,"data",void 0);_.c([_.mC({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],oW);
_.d(oW,"ytd-handles-claiming-radio-option-renderer",function(){if(QIL!==void 0)return QIL;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return QIL=G},{mode:1});var jIC;var Lgy=/^[\x00-\x7F]+$/,MC=function(){var G=_.p.apply(this,arguments)||this;G.initialRadioIndex="-1";G.isLoading=!1;G.maybeSubmitFeedback=function(){G.feedbackSurveyRenderer.submitSurvey()};
return G};
_.r(MC,_.p);MC.prototype.updateSelectedHandleIndexFromBinding=function(G){this.selectedRadioIndex=+G.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(G)};
MC.prototype.selectedHandleChanged=function(G){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var B;this.selectedHandle=(B=this.handleInput)==null?void 0:B.value;this.onSelectedHandleChanged(G)}};
_.ZN.Object.defineProperties(MC.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.$9("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.$9(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Lgy.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.c([_.v(),_.I("design:type",Object)],MC.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],MC.prototype,"initialRadioIndex",void 0);_.c([_.v(),_.I("design:type",Number)],MC.prototype,"selectedRadioIndex",void 0);_.c([_.v(),_.I("design:type",String)],MC.prototype,"selectedHandle",void 0);_.c([_.v(),_.I("design:type",Object)],MC.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Function)],MC.prototype,"onSelectedHandleChanged",void 0);
_.c([_.v(),_.I("design:type",Function)],MC.prototype,"onSelectedRadioIndexChanged",void 0);_.c([_.iA("#channel-handle-input"),_.I("design:type",Object)],MC.prototype,"handleInput",void 0);_.c([_.iA("ytd-feedback-survey-renderer"),_.I("design:type",Object)],MC.prototype,"feedbackSurveyRenderer",void 0);_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],MC.prototype,"radioButtonLength",null);
_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],MC.prototype,"handleUrlPrefix",null);_.c([_.O("selectedHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],MC.prototype,"displayHandle",null);_.c([_.O("selectedHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],MC.prototype,"displayHandleUrl",null);_.c([_.O("selectedHandle"),_.I("design:type",Object),_.I("design:paramtypes",[])],MC.prototype,"warningText",null);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.c([_.mC({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],MC);
_.d(MC,"ytd-handles-claiming-select-dialog-content",function(){if(jIC!==void 0)return jIC;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jIC=G},{mode:1});var rgz;var py=function(){var G=_.p.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.initialRadioIndex="-1";G.selectButtonDisabled=!1;G.isLoading=!1;G.selectedRadioIndexChanged=function(B){G.selectedRadioIndex=Number(B.detail.value)};
G.selectedHandleChanged=function(B){G.selectedHandle=B.detail.value};
return G};
_.r(py,_.p);_.w=py.prototype;_.w.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.w.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.w.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Ia(this.hostElement,"yt-refit-popups-action")};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.T1(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var B;((B=this.data)==null?void 0:B.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(F,D){if(D.newHandleUpdateStatus!==void 0&&D.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&D.newHandleUpdateStatus.errorMessage)_.zP(G.hostElement,_.zx(D.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var u;if((u=G.data)==null?0:u.onChannelUpdateSuccess){F=G.data.onChannelUpdateSuccess;D=_.Q(F,_.Dx);var R;if(D==null?0:(R=D.popup)==null?0:R.handlesClaimingConfirmDialogRenderer)D.popup.handlesClaimingConfirmDialogRenderer.handle=_.$9(G.selectedHandle);G.ytComponentBehavior.resolveCommand(F);_.T1(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){if(G.selectedRadioIndex===G.radioButtonLength){var F;G.content&&((F=G.content)==null?0:F.handleInput)&&G.content.handleInput.validate()}G.isLoading=!1;_.zP(G.hostElement,_.G7("TRY_AGAIN_LATER"))}}}))}};
_.w.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var G,B;this.selectedHandle=(G=this.content)==null?void 0:(B=G.handleInput)==null?void 0:B.value}else this.selectedRadioIndex>=0&&((G=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(G==null?void 0:G.handle):this.selectedHandle=void 0)};
_.w.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.w.getRadioItem=function(G){if(this.radioButtonLength>G&&G>=0)return _.Q(this.data.radioButton[G],rFN)};
_.ZN.Object.defineProperties(py.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}}});
py.prototype.onSelectedHandleChanged=py.prototype.onSelectedHandleChanged;py.prototype.onSelectedHandleIndexChanged=py.prototype.onSelectedHandleIndexChanged;py.prototype.onDataChanged=py.prototype.onDataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],py.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],py.prototype,"actionButtonOverride",void 0);_.c([_.v(),_.I("design:type",Object)],py.prototype,"cancelButtonOverride",void 0);
_.c([_.v(),_.I("design:type",Object)],py.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],py.prototype,"initialRadioIndex",void 0);_.c([_.v(),_.I("design:type",Number)],py.prototype,"selectedRadioIndex",void 0);_.c([_.v(),_.I("design:type",String)],py.prototype,"selectedHandle",void 0);_.c([_.v(),_.I("design:type",Object)],py.prototype,"selectButtonDisabled",void 0);_.c([_.v(),_.I("design:type",Object)],py.prototype,"isLoading",void 0);
_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],py.prototype,"radioButtonLength",null);_.c([_.iA("ytd-handles-claiming-select-dialog-content"),_.I("design:type",Object)],py.prototype,"content",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],py.prototype,"onDataChanged",null);
_.c([_.Ga("selectedRadioIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],py.prototype,"onSelectedHandleIndexChanged",null);_.c([_.Ga("selectedHandle"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],py.prototype,"onSelectedHandleChanged",null);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.c([_.mC({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],py);
_.d(py,"ytd-handles-claiming-select-dialog-renderer",function(){if(rgz!==void 0)return rgz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return rgz=G},{mode:1});var WgS;var HQy;var YO=function(){return _.p.apply(this,arguments)||this};
_.r(YO,_.p);YO.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],YO.prototype,"data",void 0);_.c([_.mC({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],YO);
_.d(YO,"ytd-hotkey-dialog-section-option-renderer",function(){if(HQy!==void 0)return HQy;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return HQy=G},{mode:1});var ks3;var AH=function(){return _.p.apply(this,arguments)||this};
_.r(AH,_.p);AH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],AH.prototype,"data",void 0);_.c([_.mC({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],AH);
_.d(AH,"ytd-hotkey-dialog-section-renderer",function(){if(ks3!==void 0)return ks3;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ks3=G},{mode:1});var dj=function(){return _.p.apply(this,arguments)||this};
_.r(dj,_.p);dj.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],dj.prototype,"data",void 0);_.c([_.mC({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],dj);
_.d(dj,"ytd-hotkey-dialog-content",function(){if(WgS!==void 0)return WgS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return WgS=G},{mode:1});var OQM;var JH=function(){return _.p.apply(this,arguments)||this};
_.r(JH,_.p);JH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G=document.querySelector("ytd-hotkey-dialog-content #scrollable");G&&(G.dialogElement=this.hostElement.parentElement)};
JH.prototype.onCloseTap=function(){_.T1(this.hostElement,"yt-close-popup-action")};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],JH.prototype,"data",void 0);_.c([_.mC({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],JH);
_.d(JH,"ytd-hotkey-dialog-renderer",function(){if(OQM!==void 0)return OQM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return OQM=G},{mode:1});var eJA;var cq=function(){return _.p.apply(this,arguments)||this};
_.r(cq,_.p);cq.prototype.onYtServiceRequestError=function(){if(this.blocked){var G;var B=(G=this.data)==null?void 0:G.defaultServiceEndpoint}else{var F;B=(F=this.data)==null?void 0:F.toggledServiceEndpoint}var D;(B=(D=_.Q(B,_.Bra))==null?void 0:D.onFailureAction)&&this.ytComponentBehavior.resolveCommand(B);this.updateBlockState(!this.blocked)};
cq.prototype.onYtToggleButton=function(G){this.updateBlockState(G.detail.toggled)};
cq.prototype.updateBlockState=function(G){if(G!==this.blocked){var B=this.blockedEntityKey;B&&this.ytdReduxBehavior.dispatch(_.wC("blockStateEntity",B,{key:B,blocked:G}));this.set("data.isToggled",G)}};
_.ZN.Object.defineProperties(cq.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)}}});
cq.prototype.onYtToggleButton=cq.prototype.onYtToggleButton;cq.prototype.onYtServiceRequestError=cq.prototype.onYtServiceRequestError;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],cq.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],cq.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],cq.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],cq.prototype,"blockedEntityKey",void 0);
_.c([_.v({selectorArgs:["blockedEntityKey"],selector:function(G,B){return _.g5(G.entities,"blockStateEntity",B)}}),
_.I("design:type",Object)],cq.prototype,"blockStateEntity",void 0);_.c([_.O("data","blockStateEntity"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],cq.prototype,"blocked",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],cq.prototype,"onYtServiceRequestError",null);
_.c([_.Pm("yt-toggle-button"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],cq.prototype,"onYtToggleButton",null);_.c([_.mC({is:"ytd-block-button",disableElementRegistration:!0})],cq);
_.d(cq,"ytd-block-button",function(){if(eJA!==void 0)return eJA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return eJA=G},
{mode:1});var $LM;var zJX;var TI=function(){return _.p.apply(this,arguments)||this};
_.r(TI,_.p);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],TI.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],TI.prototype,"data",void 0);_.c([_.mC({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],TI);
_.d(TI,"ytd-kids-blocklist-picker-item-renderer",function(){if(zJX!==void 0)return zJX;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return zJX=G},{mode:1});var IW=function(){return _.p.apply(this,arguments)||this};
_.r(IW,_.p);IW.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],IW.prototype,"data",void 0);_.c([_.mC({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],IW);
_.d(IW,"ytd-kids-blocklist-picker-content",function(){if($LM!==void 0)return $LM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return $LM=
G},{mode:2});var bQ3;var fy=function(){var G=_.p.apply(this,arguments)||this;G.hasAnyRequestSucceeded=!1;G.hasAnyRequestFailed=!1;G.numPendingRequests=0;return G};
_.r(fy,_.p);_.w=fy.prototype;_.w.attached=function(){this.hostElement.setAttribute("dialog","")};
_.w.onDoneButtonTap=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.w.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.w.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.w.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.w.onPopupClosed=function(G){var B,F;if(((B=G.detail)==null?void 0:(F=B.popup)==null?void 0:F.is)==="tp-yt-paper-dialog"){var D;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((D=this.data)==null?0:D.successfulToastActionMessage)&&(G=_.o9(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(G));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
fy.prototype.onPopupClosed=fy.prototype.onPopupClosed;fy.prototype.onYtServiceRequestError=fy.prototype.onYtServiceRequestError;fy.prototype.onYtServiceRequestCompleted=fy.prototype.onYtServiceRequestCompleted;fy.prototype.onYtServiceRequestSent=fy.prototype.onYtServiceRequestSent;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],fy.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],fy.prototype,"data",void 0);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fy.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fy.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],fy.prototype,"onYtServiceRequestError",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],fy.prototype,"onPopupClosed",null);_.c([_.mC({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],fy);
_.d(fy,"ytd-kids-blocklist-picker-renderer",function(){if(bQ3!==void 0)return bQ3;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return bQ3=G},{mode:1});var V8L;var vML;var tH=function(){return _.p.apply(this,arguments)||this};
_.r(tH,_.p);tH.prototype.setTip=function(G){var B=this;this.data&&(this.tip=tJU(Iuz.getInstance(),G,this.data),_.ft(this,function(){_.cZ(B.hostElement,"yt-refit")}))};
tH.prototype.clearTip=function(){this.tip=void 0};
tH.prototype.computeHidden=function(G){return!G};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],tH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.I("design:type",Boolean)],tH.prototype,"hidden",void 0);_.c([_.v(),_.I("design:type",Object)],tH.prototype,"tip",void 0);_.c([_.mC({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],tH);
_.d(tH,"ytd-menu-popup-tip-renderer",function(){if(vML!==void 0)return vML;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);
return vML=G},{mode:1});var oMA;var ZQ=function(){var G=_.p.apply(this,arguments)||this;G.useIcons=!1;G.role="menuitem";G.systemIcons=_.X("kevlar_system_icons");return G};
_.r(ZQ,_.p);_.w=ZQ.prototype;_.w.onFocus=function(){var G;(G=_.IF(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.w.onTap=function(){var G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(G&&_.Q(G,_.gs))this.componentBehavior.resolveCommand(G),this.updateToggledStateInEntity();else if(G){this.componentBehavior.resolveCommand(G)||_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}});var B;((B=_.Q(G,_.sw))==null?void 0:B.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.w.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.w.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.w.updateToggledStateInEntity=function(){var G=this.data.toggleMenuServiceItemEntityKey,B=!this.data.isToggled;G&&this.ytdReduxBehavior.dispatch(_.wC("toggleMenuServiceItemEntity",G,{key:G,isToggled:B}))};
_.w.computeIcon=function(G,B,F){return(G=G?F:B)&&G.iconType?_.xT(G.iconType):""};
_.w.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.w.isIconActive=function(G){return!_.X("toggle_menu_active_icon_killswitch")&&G};
_.ZN.Object.defineProperties(ZQ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?0:G.isToggled)?(B=this.data)==null?void 0:B.toggledText:(F=this.data)==null?void 0:F.defaultText}}});
ZQ.prototype.toggledStateEntityChanged=ZQ.prototype.toggledStateEntityChanged;ZQ.prototype.onYtServiceRequestCompleted=ZQ.prototype.onYtServiceRequestCompleted;ZQ.prototype.onTap=ZQ.prototype.onTap;ZQ.prototype.onFocus=ZQ.prototype.onFocus;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ZQ.prototype,"componentBehavior",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],ZQ.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ZQ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ZQ.prototype,"useIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ZQ.prototype,"role",void 0);_.c([_.v({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.I("design:type",String)],ZQ.prototype,"icon",void 0);
_.c([_.v({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.R5.toggleMenuServiceItemEntitySelector}),_.I("design:type",Object)],ZQ.prototype,"toggleMenuServiceItemEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ZQ.prototype,"systemIcons",void 0);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZQ.prototype,"onFocus",null);
_.c([_.O("data.isToggled"),_.I("design:type",Object),_.I("design:paramtypes",[])],ZQ.prototype,"toggleButtonText",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZQ.prototype,"onTap",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZQ.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Ga("toggleMenuServiceItemEntity.isToggled","data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ZQ.prototype,"toggledStateEntityChanged",null);_.c([_.mC({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],ZQ);
_.d(ZQ,"ytd-toggle-menu-service-item-renderer",function(){if(oMA!==void 0)return oMA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return oMA=G},{mode:1});var M8y;var gj=function(){return _.p.apply(this,arguments)||this};
_.r(gj,_.p);gj.prototype.onFocus=function(){var G;(G=_.IF(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.ZN.Object.defineProperties(gj.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Sz(this.data.iconUrl)}}});
gj.prototype.onFocus=gj.prototype.onFocus;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],gj.prototype,"rendererBehavior",void 0);_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],gj.prototype,"ytEndpointBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],gj.prototype,"data",void 0);_.c([_.Pm("focus"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gj.prototype,"onFocus",null);
_.c([_.O("data.iconUrl"),_.I("design:type",Object),_.I("design:paramtypes",[])],gj.prototype,"imageSource",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],gj);
_.d(gj,"ytd-menu-custom-icon-item-renderer",function(){if(M8y!==void 0)return M8y;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return M8y=G},{mode:2});_.YN(_.OP,"yt-list-item-view-model",{props:{data:_.Hd,isMenuItem:_.Hd,isCompact:_.Hd,onTap:_.oh,trailingAccessory:_.oh,hideSelectionTextChevron:_.Hd,disabled:_.Hd,inPopup:_.Hd,disableHorizontalPadding:_.Hd,isOverlay:_.Hd,isToggled:_.Hd,ariaLabel:_.Hd,ariaPressed:_.Hd,shouldNotFillIcon:_.Hd}});var S9=function(){var G=_.p.apply(this,arguments)||this;G.disableBackdropFilter=_.X("web_disable_backdrop_filter");return G};
_.r(S9,_.p);_.w=S9.prototype;
_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.w.computeAriaLabel=function(G){return G};
_.w.onPopupOpened=function(){this.items.selected=0;for(var G=_.C(_.IF(this.items).children),B=G.next();!B.done;B=G.next())B.value.popupPositionTarget=this.positionTarget;if(G=this.popupTip||void 0)G.setTip(this.source||""),this.source=void 0;this.veData&&(G=_.qW())&&_.Oq(G,[this.veData])};
_.w.onPopupClosed=function(){var G=this.popupTip||void 0;G&&G.clearTip()};
_.w.onIronActivate=function(G){this.shouldPersist(G)||_.T1(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(G=_.qW())&&_.$I(G,this.veData)};
_.w.shouldPersist=function(G){var B,F;if(((B=G.detail)==null?void 0:B.selected)===void 0||(F=this.data)==null||!F.items)return!1;var D,u;return!((u=(D=this.data.items[G.detail.selected])==null?void 0:D.toggleMenuServiceItemRenderer)==null||!u.persistentOnMenuPopup)};
_.w.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(G){return G.menuNavigationItemRenderer?!!G.menuNavigationItemRenderer.icon:G.menuServiceItemRenderer?!!G.menuServiceItemRenderer.icon:G.menuConditionalServiceItemRenderer?!!G.menuConditionalServiceItemRenderer.icon:G.menuConditionalNavigationItemRenderer?!!G.menuConditionalNavigationItemRenderer.icon:G.toggleMenuServiceItemRenderer?!!G.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
S9.prototype.onPopupClosed=S9.prototype.onPopupClosed;S9.prototype.onPopupOpened=S9.prototype.onPopupOpened;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],S9.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],S9.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],S9.prototype,"veData",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.I("design:type",String)],S9.prototype,"ariaLabel",void 0);_.c([_.v({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],S9.prototype,"useIcons",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],S9.prototype,"disableBackdropFilter",void 0);_.c([_.iA("#items"),_.I("design:type",Object)],S9.prototype,"items",void 0);_.c([_.iA("ytd-menu-popup-tip-renderer"),_.I("design:type",Object)],S9.prototype,"popupTip",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],S9.prototype,"onPopupOpened",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],S9.prototype,"onPopupClosed",null);_.c([_.mC({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],S9);
_.d(S9,"ytd-menu-popup-renderer",function(){if(V8L!==void 0)return V8L;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return V8L=G},{mode:1});var p6w;var YSX=_.Y(function(G){G=_.AS(G,{icon:void 0});var B=G.data;G=G.icon;var F=function(){return B().iconBadgeText},D={},u=_.tx("yt-spec-icon-badge-shape",function(){a:switch(B().iconBadgeType){case "notification":var R="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":R="yt-spec-icon-badge-shape--type-cart";break a;default:R=""}return R},function(){a:switch(B().iconBadgeStyle){case "overlay":var R="yt-spec-icon-badge-shape--style-overlay";
break a;default:R=""}return R},(D["yt-spec-icon-badge-shape--text-size-small"]=function(){var R=F();
return!!((R==null?0:R.length)&&R.length>2)},D));
return _.l("yt-icon-badge-shape",null,_.l(_.E,{cond:G,then:function(R){return _.l("div",{class:u},_.l("div",{class:"yt-spec-icon-badge-shape__icon"},_.l(_.Pr,{icon:R})),_.l(_.E,{cond:F,then:function(N){return _.l("div",{class:"yt-spec-icon-badge-shape__badge"},N)}}))}}))},"gl");
YSX.idomCompat=!0;_.YN(YSX,"yt-icon-badge-shape",{props:{data:_.Hd,icon:_.Hd}});var si=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};G.unseenCount=0;G.isOverlay=!1;return G};
_.r(si,_.p);_.w=si.prototype;_.w.attached=function(){var G=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(B){G.onServiceWorkerMessage(B)})};
_.w.onDataChanged=function(){this.isAttached&&!this.JSC$22640_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22640_lastData=this.data};
_.w.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.w.computeIcon=function(){var G,B;return(G=this.data)==null?void 0:(B=G.icon)==null?void 0:B.iconType};
_.w.onServiceWorkerMessage=function(G){G.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.w.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Q(this.data.updateUnseenCountEndpoint,_.sw)&&_.Q(this.data.updateUnseenCountEndpoint,_.sw).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.w.handleUpdateNotificationsUnseenCountAction=function(G){var B=this;G=_.Q(G,RkS);G!=null&&G.unseenCount&&G.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(G.unseenCount),_.Lu.addLowPriorityJob(function(){B.data.updateUnseenCountEndpoint&&B.ytComponentBehavior.resolveCommand(B.data.updateUnseenCountEndpoint)},G.timeoutMs))};
_.w.onClick=function(){_.cZ(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var G=_.Ia(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),B=this.data.menuRequest;G&&G.length===1&&G[0]?_.T1(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):B&&this.ytComponentBehavior.resolveCommand(B)};
_.w.handleTopbarMenuClosedAction=function(G){G==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.w.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
_.w.sendUnseenCountRequest=function(G){var B=this;_.mX(_.Lu,function(){B.ytComponentBehavior.resolveCommand(G)})};
_.w.updateCountUI=function(G){this.set("unseenCount",G<9?G:"9+")};
_.ZN.Object.defineProperties(si.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
si.prototype.handleUpdateNotificationsUnseenCountAction=si.prototype.handleUpdateNotificationsUnseenCountAction;si.prototype.onDataChanged=si.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],si.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.vj),_.I("design:type",Object)],si.prototype,"ytdOpenPopupBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],si.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],si.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],si.prototype,"unseenCount",void 0);_.c([_.v(),_.I("design:type",Object)],si.prototype,"isOverlay",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],si.prototype,"showTooltips",void 0);_.c([_.iA("yt-icon-button"),_.I("design:type",Object)],si.prototype,"iconButton",void 0);
_.c([_.O("unseenCount"),_.I("design:type",Object),_.I("design:paramtypes",[])],si.prototype,"showNotificationCount",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],si.prototype,"onDataChanged",null);_.c([_.Pm("yt-update-notifications-unseen-count-action"),_.I("design:type",Function),_.I("design:paramtypes",[Object]),_.I("design:returntype")],si.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.c([_.mC({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],si);
_.d(si,"ytd-notification-topbar-button-renderer",function(){if(p6w!==void 0)return p6w;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return p6w=G},{mode:2});var AgM;var xO=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return G};
_.r(xO,_.p);xO.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}}}}}};
xO.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
xO.prototype.onDarkModeToggled=function(G){this.dark=G};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xO.prototype,"data",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.I("design:type",Boolean)],xO.prototype,"dark",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],xO);
_.d(xO,"yt-pdg-buy-flow-header-renderer",function(){if(AgM!==void 0)return AgM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return AgM=G},{mode:1});var dLj;var Jgy;var Pq=function(){var G=_.p.apply(this,arguments)||this;G.immediateValue=0;G.isDarkTheme=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(Pq,_.p);_.w=Pq.prototype;_.w.created=function(){_.ac.requestAvailability()};
_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.dataChanged=function(){var G=_.IF(this.hostElement).querySelector("#color-slider");G.immediateValue&&this.updateSliderKnobAndGradientStyles(G.immediateValue);this.data.notches[0].knobColorArgb&&_.Ss(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Kp(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.v5("HTML_DIR")==="rtl"&&_.IF(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.w.onSliderImmediateChange=function(){var G=_.IF(this.hostElement).querySelector("#color-slider");G.dragging&&(G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue)),this.updateSliderAria())};
_.w.onSliderChange=function(){var G=_.IF(this.hostElement).querySelector("#color-slider");G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue));this.updateSliderAria()};
_.w.updateSliderAria=function(){var G=_.IF(this.hostElement).querySelector("#color-slider"),B=_.IF(this.hostElement).querySelector("#color-slider");B=_.zx(this.data.notches[B.immediateValue].tierValue);_.mLM()&&_.cZ(this.hostElement,"iron-announce",{text:B});G.setAttribute("aria-valuetext",B)};
_.w.updateSuperThanksSelectedTierEntity=function(G){if(G!==this.immediateValue){var B,F,D=this==null?void 0:(B=this.data)==null?void 0:(F=B.superThanksSelectedTierEntity)==null?void 0:F.key;D&&D.length>0&&this.ytdReduxBehavior.dispatch(_.wC("superThanksSelectedTierEntity",D,{key:D,index:G}))}};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.updateSliderKnobAndGradientStyles=function(G){this.immediateValue=G;G=this.data.notches[G];if(G==null?0:G.knobColorArgb)var B={"--ytd-pdg-color-slider-knob-color":_.Kp(G.knobColorArgb)};(G==null?0:G.linearGradientCssStyle)&&B!==null&&(B=Object.assign({},B,{"--ytd-pdg-color-slider-active-color":G==null?void 0:G.linearGradientCssStyle}));B!==null&&_.Ss(this.hostElement,B)};
Pq.prototype.onSliderChange=Pq.prototype.onSliderChange;Pq.prototype.onSliderImmediateChange=Pq.prototype.onSliderImmediateChange;Pq.prototype.dataChanged=Pq.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],Pq.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Pq.prototype,"immediateValue",void 0);_.c([_.v(),_.I("design:type",Number)],Pq.prototype,"maxMarkers",void 0);
_.c([_.v({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:n9A}),_.I("design:type",Object)],Pq.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Pq.prototype,"isDarkTheme",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Pq.prototype,"ytdReduxBehavior",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Pq.prototype,"dataChanged",null);
_.c([_.Pm("immediate-value-change"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Pq.prototype,"onSliderImmediateChange",null);_.c([_.Pm("change"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Pq.prototype,"onSliderChange",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Pq);
_.d(Pq,"ytd-pdg-color-slider-renderer",function(){if(Jgy!==void 0)return Jgy;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Jgy=G},{mode:1});var cgA;var TUz;var G5=null;
_.UF({is:"ytd-comment-input",_template:function(){if(TUz!==void 0)return TUz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return TUz=G},
behaviors:[_.cYL.YtHostElementBehavior,_.sV,_.aS.YtComponentBehavior,_.oS.YtRendererstamperBehavior,_.VkG.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 _.rl}},
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",_.x7(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;_.Zz();this.focus()},
detached:function(){document.removeEventListener("tap",_.x7(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var B=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(B,G);this.maybeUpdateTextDirection_();_.cZ(this.hostElement,"input")},
getInputRange_:function(){var G=_.Fh();if(G){G=G.getBrowserRangeObject();for(var B=G.commonAncestorContainer;B;){if(B===this.getEditableTextArea_())return G;B=B.parentNode}}G=this.getEditableTextArea_();G=_.Rs(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,B,F){(B=this.emojiManager.createDocumentFragment(B,!0,!1,F===void 0?!0:F))&&B.childNodes.length!==0&&(G.collapsed||G.deleteContents(),F=B.lastChild,G.insertNode(B),_.cxU(F).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var G=_.Fh();if(G){var B=G.JSC$11664_getStartNode(),F=G.JSC$11664_getEndNode();if(dVU(B)&&dVU(F)){var D=G.JSC$11664_getStartOffset(),u;if(_.xw&&B.nodeType===Node.ELEMENT_NODE&&(u=_.bTG(B)))_.Rs(u,0).select();else{u=CK(B)?B:_.mG(B,CK);var R=CK(F)?F:_.mG(F,CK);if(u||R)if(G.isCollapsed()){if(B.nodeType===Node.TEXT_NODE){G=!0;D===B.length&&(G=!1);if(G5==="end"||G5==="right")G=!1;B=B.parentNode;G=[].concat(_.gi(B.parentNode.childNodes)).indexOf(B)+(G?0:1);_.Rs(B.parentNode,
G).select()}}else u?u.previousSibling&&u.previousSibling.length>0?_.w0(F,G.JSC$11664_getEndOffset(),u.previousSibling,u.previousSibling.length-1).select():(B=document.createTextNode("\u200b"),u.parentNode.insertBefore(B,u),_.w0(F,G.JSC$11664_getEndOffset(),B,0).select()):R&&(R.nextSibling&&R.nextSibling.length>0?_.w0(B,G.JSC$11664_getStartOffset(),R.nextSibling,1).select():(F=document.createTextNode("\u200b"),R.parentNode.insertBefore(F,R.nextSibling),_.w0(B,G.JSC$11664_getStartOffset(),F,F.length).select()));
G5=null}}else G5=null}else G5=null},
leftKeyPressed_:function(){G5="left"},
rightKeyPressed_:function(){G5="right"},
endKeyPressed_:function(){G5="end"},
maybeDeleteChip_:function(){var G=ZXD(!0);if(G){var B=_.Fh(),F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();_.uh(F,B,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=ZXD(!1);if(G){var B=_.Fh(),F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();_.uh(F,B,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var B=_.Fh();if(B.isCollapsed()){var F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();var D=gzB(F,B,!0);D&&(_.uh(F,B,D,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var B=_.Fh();if(B.isCollapsed()){var F=B.JSC$11664_getStartNode();B=B.JSC$11664_getStartOffset();var D=gzB(F,B,!1);D&&(_.uh(F,B,D,D.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onContentClick:function(G){G.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(G){G.defaultPrevented||G.currentTarget.tagName==="YTD-COMMENT-INPUT"&&CK(G.target)&&G.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.IF(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.IF(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(G,B){G=cR$(G,this.emojiManager,B).cloneNode(!0);for(B=G.firstChild;B;)if(B.nodeType!==1)B=B.nextSibling;else switch(B.tagName){case "BR":var F=_.je();_.dKL(F,B);B=F.nextSibling;break;case "DIV":(F=B.lastChild)&&B.nextSibling&&_.Hb(_.je(),F);B.previousSibling&&(B.previousSibling.nodeType===1||B.previousSibling.nodeType===3&&!B.previousSibling.textContent.endsWith("\n"))&&_.Wb(_.je(),B);F&&F.nodeName==="BR"&&_.B1(F);F=B;B.hasChildNodes()?(B=B.firstChild,
_.JMv(F)):(B=B.nextSibling,_.B1(F));break;default:B=B.nextSibling}return S8H(G)},
setTextAreaValue:function(G){G||(G="");var B=this.getEditableFormattedString_();B.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});B.text=G},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();G5=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.Rs(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.v5("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),B=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",B)}},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var B=this.getInputRange_();B&&(G=this.emojiInput.retrieveTextBeforeRange(B))}this.insertText_(G,!0);this.updateCharCount_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
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(G){this.isEmojiButtonDisplayed&&(G.preventDefault(),G.stopImmediatePropagation(),G=G.clipboardData.getData("text/plain"),this.insertText_(G,!1,!1),_.cZ(this.hostElement,"input"))},
insertText_:function(G,B,F){B=B===void 0?!1:B;F=F===void 0?!0:F;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var D=this.getInputRange_().cloneRange();this.emojiManager&&D&&(B&&this.emojiInput.offsetStartOfRangeBy(D,G.length),this.insertTextWithEmojis_(D,G,F),JRZ(this.getEditableTextArea_().lastChild)||(D=this.getInputRange_().cloneRange()),D&&(this.emojiInput.updateSuggestions(D,G),this.updateSuggestionOffset_(D)))}},
getSimpleString:_.zx,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computePlaceholderText_:function(G){return this.getSimpleString(G)},
computeEditableText_:function(G){return this.getSimpleString(G)},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(G,B){G?this.fire("yt-autonav-pause-focus"):B!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var B=this.getEditableTextArea_();[].concat(_.gi(G.dataTransfer.items)).forEach(function(F){F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(D){B.appendChild(document.createTextNode(D))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.IF(this.emojiInput).querySelector("#dropdown")){var B=this.getEditableTextArea_().getBoundingClientRect().bottom,F=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(B-F)+5;B=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-B;_.IF(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.e6("yt-post"));return this.localStorage}});var BD=function(){var G=_.p.apply(this,arguments)||this;G.currentCommentOptionIndex=0;G.isEmojiPickerDisplayed=!1;G.emojiManager=_.rl;G.isUgcEmpty=!1;G.userGeneratedCommentChangedHandler=function(){_.cZ(G.hostElement,"ytd-pdg-user-generated-comment-changed");G.isEmojiYtdCommentInputEnabled&&(G.isUgcEmpty=!G.ytdCommentInputEl.getTextAreaValue())};
G.pasteHandler=function(B){B.preventDefault();B.stopImmediatePropagation();var F;if(B=(F=B.clipboardData)==null?void 0:F.getData("text/plain"))F=document.getSelection().getRangeAt(0),F.collapsed||F.deleteContents(),B=document.createTextNode(B),F.insertNode(B),F.selectNodeContents(B),F.collapse(!1),B=window.getSelection(),B.removeAllRanges(),B.addRange(F)};
G.onDocumentClick=function(B){if(G.isEmojiPickerDisplayed){var F,D,u;!(B.target instanceof Node)||(F=B.composedPath())!=null&&F.includes(G.editableTextEl)||(D=B.composedPath())!=null&&D.includes(G.emojiButtonEl)||(u=B.composedPath())!=null&&u.includes(G.emojiPickerEl)||(G.isEmojiPickerDisplayed=!1)}};
return G};
_.r(BD,_.p);_.w=BD.prototype;_.w.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.w.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.w.detached=function(){var G;(G=this.contentEl)==null||G.removeEventListener("input",this.userGeneratedCommentChangedHandler);var B;(B=this.contentEl)==null||B.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.w.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.w.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var G;this.contentEl.textContent=this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.w.reloadEmojis=function(){this.emojiPickerEl&&_.Q(this.emojiPicker,_.oZa)&&this.emojiPickerEl.updateEmojiCategories()};
_.w.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Ss(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.w.handleBackgroundColorStyling=function(){var G;if((G=this.currentCommentOption)==null?0:G.commentBackgroundColorArgb){var B;_.Ss(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Kp((B=this.currentCommentOption)==null?void 0:B.commentBackgroundColorArgb)})}else _.Ss(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.w.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var G;(G=this.contentEl)==null||G.focus()}};
_.w.onEditButtonClick=function(G){var B=document.getSelection();B&&this.contentEl&&(G.stopPropagation(),G.preventDefault(),B.selectAllChildren(this.contentEl),B.collapseToEnd())};
_.w.onContentDrop=function(G){var B=this;if(G.dataTransfer){G=_.C(G.dataTransfer.items);for(var F=G.next();!F.done;F=G.next())F=F.value,F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(D){var u;(u=B.contentEl)==null||u.appendChild(document.createTextNode(D))})}};
_.w.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.w.getUserGeneratedCommentText=function(){var G,B=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(G=this.contentEl)==null?void 0:G.textContent;return B?B.trim():""};
_.w.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.w.onEmojiSelect=function(G){this.ytdCommentInputEl.onEmojiSelect(G)};
_.ZN.Object.defineProperties(BD.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.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 G;return!((G=this.currentCommentOption)==null||!G.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(_.Q((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.RjN)){var B;return _.Q((B=this.currentCommentOption)==null?void 0:B.chipRenderer,_.RjN)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var G,B;return((G=this.data)==null?0:G.commentOptionRenderers)?_.Q((B=this.data)==null?void 0:B.commentOptionRenderers[this.superThanksSelectedTierEntity.index],GCD):void 0}var F,D;return((F=this.data)==null?0:F.commentOptionRenderers)?_.Q((D=this.data)==null?void 0:D.commentOptionRenderers[this.currentCommentOptionIndex],GCD):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.commentDialog,_.xQG))==null?void 0:B.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.commentDialog,_.xQG))==null?void 0:B.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=_.Q((G=this.data)==null?void 0:G.commentDialog,_.xQG))==null?void 0:B.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(B=_.Q((G=this.data)==null?void 0:G.commentDialog,_.xQG))==null?void 0:B.emojiPicker;if(!_.Q(F,_.oZa)||!_.Q(F,_.oZa).categories)return!1;G=function(R){return R.emojiPickerCategoryRenderer?R.emojiPickerCategoryRenderer.emojiIds&&R.emojiPickerCategoryRenderer.emojiIds.length>0:R.emojiPickerUpsellCategoryRenderer?R.emojiPickerUpsellCategoryRenderer.emojis&&R.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var D,u;return((D=_.Q(F,_.oZa))==null?0:(u=D.categories)==null?0:u.find(G))?!0:!1}}});
BD.prototype.onEmojiSelect=BD.prototype.onEmojiSelect;BD.prototype.dataChanged=BD.prototype.dataChanged;BD.prototype.currentCommentOptionChanged=BD.prototype.currentCommentOptionChanged;_.c([_.k(_.hf),_.I("design:type",Object)],BD.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],BD.prototype,"rendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.iA("#content-dom-if"),_.I("design:type",_.EF)],BD.prototype,"contentDomIfEl",void 0);_.c([_.iA("#content-no-emojis"),_.I("design:type",HTMLElement)],BD.prototype,"contentEl",void 0);_.c([_.iA("#container"),_.I("design:type",HTMLElement)],BD.prototype,"containerEl",void 0);_.c([_.iA("#comment-chip-container"),_.I("design:type",HTMLElement)],BD.prototype,"paidCommentChipContainerEl",void 0);_.c([_.iA("#text-input"),_.I("design:type",HTMLElement)],BD.prototype,"editableTextEl",void 0);
_.c([_.iA("#emoji-button"),_.I("design:type",HTMLElement)],BD.prototype,"emojiButtonEl",void 0);_.c([_.iA("#emoji-picker > yt-emoji-picker-renderer"),_.I("design:type",Object)],BD.prototype,"emojiPickerEl",void 0);_.c([_.iA("#text-input > ytd-comment-input"),_.I("design:type",Object)],BD.prototype,"ytdCommentInputEl",void 0);_.c([_.v(),_.I("design:type",Object)],BD.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],BD.prototype,"currentCommentOptionIndex",void 0);
_.c([_.v({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:n9A}),_.I("design:type",Object)],BD.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.v(),_.I("design:type",Object)],BD.prototype,"isEmojiPickerDisplayed",void 0);_.c([_.v(),_.I("design:type",Object)],BD.prototype,"emojiManager",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],BD.prototype,"isUgcEmpty",void 0);
_.c([_.Ga("currentCommentOption"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BD.prototype,"currentCommentOptionChanged",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],BD.prototype,"dataChanged",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],BD.prototype,"isEmojiYtdCommentInputEnabled",null);
_.c([_.O("data.title"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"title",null);_.c([_.O("data.authorText"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"channelName",null);_.c([_.O("data.commentOptionRenderers","currentCommentOption"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],BD.prototype,"shouldShowPaidCommentChipRenderer",null);
_.c([_.O("data.commentOptionRenderers","currentCommentOption"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"paidCommentChipRenderer",null);_.c([_.O("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"currentCommentOption",null);
_.c([_.O("data.defaultCommentText","superThanksSelectedTierEntity"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"commentText",null);_.c([_.O("data.placeholderText"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"placeholderText",null);_.c([_.O("data.commentDialog.commentDialogRenderer.editableText"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"editableText",null);
_.c([_.O("data.commentDialog.commentDialogRenderer.emojiButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"emojiButton",null);_.c([_.O("data.commentDialog.commentDialogRenderer.emojiPicker"),_.I("design:type",Object),_.I("design:paramtypes",[])],BD.prototype,"emojiPicker",null);
_.c([_.O("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],BD.prototype,"isEmojiButtonDisplayed",null);_.c([_.Pm("yt-emoji-select"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],BD.prototype,"onEmojiSelect",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],BD);
_.d(BD,"ytd-pdg-comment-preview-renderer",function(){if(cgA!==void 0)return cgA;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return cgA=G},{mode:2});var Icj;var ib=function(){var G=_.p.apply(this,arguments)||this;G.selected=!1;return G};
_.r(ib,_.p);_.w=ib.prototype;_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.w.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.w.dataChanged=function(){this.data&&(_.fp(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Ss(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Kp(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Kp(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.w.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.w.onClick=function(){this.logClick()};
_.w.onKeyboardSelect=function(){_.cZ(this.hostElement,"tap");this.onClick()};
_.w.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ib.prototype.onClick=ib.prototype.onClick;ib.prototype.selectedChanged=ib.prototype.selectedChanged;ib.prototype.dataChanged=ib.prototype.dataChanged;_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ib.prototype,"componentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.sV),_.I("design:type",Object)],ib.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.k(_.bA),_.I("design:type",Object)],ib.prototype,"ironSelectableBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ib.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],ib.prototype,"shownThumbnail",void 0);_.c([_.v(),_.I("design:type",Object)],ib.prototype,"basePriceText",void 0);_.c([_.v(),_.I("design:type",Object)],ib.prototype,"purchaseCommand",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],ib.prototype,"selected",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ib.prototype,"dataChanged",null);_.c([_.Ga("selected"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ib.prototype,"selectedChanged",null);_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ib.prototype,"onClick",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],ib);
_.d(ib,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Icj!==void 0)return Icj;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Icj=G},{mode:1});var FH=function(){var G=_.p.apply(this,arguments)||this;G.selectedItemIndex=0;G.buyButtonDisabled=!1;return G};
_.r(FH,_.p);_.w=FH.prototype;
_.w.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]]"}}}}}};
_.w.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var G;var B=(G=_.Q(this.data.colorSlider,PdS))==null?void 0:G.notches[this.selectedItemIndex].purchaseCommand}else{var F;B=(F=_.Q(this.data.selectableItemButtons[this.selectedItemIndex],iOZ))==null?void 0:F.purchaseCommand}if(B){G=_.Q(B,_.tq7);G.productData||(G.productData={});var D;G.productData={pdgData:{commentMessageText:(D=this.commentPreviewRenderer)==null?void 0:D.getUserGeneratedCommentText()}};
_.cZ(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(B)}}};
_.w.dataChanged=function(){if(this.data){_.rl.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.y_w(_.rl,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.rl.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var G;this.buyButtonDisabled=!((G=_.Q(this.data.commentPreview,BvN))==null||!G.placeholderText);this.updatePriceSelectorStatus();var B;if((B=this.data)==null?0:B.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;G=[];this.data.preloadImages&&(G=this.data.preloadImages);
G=G.map(function(F){return _.Ax(F.thumbnails,1920)});
G=_.C(G);for(B=G.next();!B.done;B=G.next())(B=B.value)&&_.Gv8(B).thenCatch(function(){_.em(Error("km"))})}};
_.w.superThanksSelectedTierEntityChanged=function(){var G;(this==null?void 0:(G=this.superThanksSelectedTierEntity)==null?void 0:G.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.w.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.w.updatePriceSelectorStatus=function(){this.isColorSlider?(_.IF(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.IF(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.IF(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.IF(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.w.closeBuyFlow=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.w.onUserGeneratedContentChanged=function(){var G;this.buyButtonDisabled=!((G=this.commentPreviewRenderer)==null?0:G.getUserGeneratedCommentText())};
_.w.updateSelectedItemIndexFromBinding=function(G){this.selectedItemIndex=G.detail.value};
_.ZN.Object.defineProperties(FH.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disclaimerText)}}});
FH.prototype.onUserGeneratedContentChanged=FH.prototype.onUserGeneratedContentChanged;FH.prototype.closeBuyFlow=FH.prototype.closeBuyFlow;FH.prototype.selectedItemIndexChanged=FH.prototype.selectedItemIndexChanged;FH.prototype.superThanksSelectedTierEntityChanged=FH.prototype.superThanksSelectedTierEntityChanged;FH.prototype.dataChanged=FH.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],FH.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],FH.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],FH.prototype,"selectedItemIndex",void 0);_.c([_.v(),_.I("design:type",Boolean)],FH.prototype,"isColorSlider",void 0);
_.c([_.v(),_.I("design:type",Object)],FH.prototype,"buyButtonDisabled",void 0);_.c([_.v({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:n9A}),_.I("design:type",Object)],FH.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.iA("ytd-pdg-comment-preview-renderer"),_.I("design:type",Object)],FH.prototype,"commentPreviewRenderer",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FH.prototype,"dataChanged",null);_.c([_.Ga("superThanksSelectedTierEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FH.prototype,"superThanksSelectedTierEntityChanged",null);_.c([_.Ga("selectedItemIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FH.prototype,"selectedItemIndexChanged",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FH.prototype,"closeBuyFlow",null);_.c([_.Pm("ytd-pdg-user-generated-comment-changed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],FH.prototype,"onUserGeneratedContentChanged",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],FH.prototype,"isDisclaimerTextShown",null);
_.c([_.mC({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],FH);
_.d(FH,"yt-super-vod-buy-flow-content-renderer",function(){if(dLj!==void 0)return dLj;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return dLj=G},{mode:1});var fce;var D2=function(){var G=_.p.apply(this,arguments)||this;G.lottieAnimationRef={};return G};
_.r(D2,_.p);_.w=D2.prototype;_.w.created=function(){_.ac.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.x7(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.w.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.cZ(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.w.detached=function(){this.autoCloseJobId&&_.Lu.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.x7(this,this.onPopupIronOverlayOpened))};
_.w.dataChanged=function(){var G=this;this.data&&this.data.autoCloseDelay&&(_.T1(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Tm(_.Lu,function(){G.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Ss(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.w.onDOMLoadedLottie=function(){var G=this,B,F,D=Number((B=this.data)==null?void 0:(F=B.autoCloseDelay)==null?void 0:F.seconds)||0;this.fadeOutJobId=_.Tm(_.Lu,function(){G.lottiePlayerEl.classList.add("fadeout")},(D-.25)*1E3);
this.autoCloseJobId=_.Tm(_.Lu,function(){G.closePopup()},D*1E3)};
_.w.openPopup=function(){this.ironOverlayBehavior.open()};
_.w.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.T1(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.tL(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.te().resolve(_.Wr).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Lu.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Lu.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.w.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var G,B;(G=this.lottieAnimationRef)==null||(B=G.lottieEl)==null||B.destroy();G=this.data.lottie;var F,D;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:G.url+"_"+Math.random(),path:G.url,autoplay:!0,loop:(D=(F=G.settings)==null?void 0:F.loop)!=null?D:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.ZN.Object.defineProperties(D2.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var G,B;return!!((G=this.data)==null?0:(B=G.lottie)==null?0:B.url)}}});
D2.prototype.maybeInitializeLottie=D2.prototype.maybeInitializeLottie;D2.prototype.dataChanged=D2.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],D2.prototype,"rendererBehavior",void 0);_.c([_.k(_.Lg),_.I("design:type",Object)],D2.prototype,"ironOverlayBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],D2.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],D2.prototype,"lottiePlayerProps",void 0);
_.c([_.v(),_.I("design:type",Object)],D2.prototype,"lottieAnimationRef",void 0);_.c([_.iA("ytd-lottie-player"),_.I("design:type",HTMLElement)],D2.prototype,"lottiePlayerEl",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],D2.prototype,"dataChanged",null);_.c([_.O("data"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],D2.prototype,"hasLottieAnimation",null);
_.c([_.Ga("data.lottie.url"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],D2.prototype,"maybeInitializeLottie",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],D2);
_.d(D2,"ytd-desktop-image-overlay-renderer",function(){if(fce!==void 0)return fce;var G=document.createElement("template");_.H(G,'\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="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return fce=G},{mode:1});var t8A;var ub=function(){return _.p.apply(this,arguments)||this};
_.r(ub,_.p);_.w=ub.prototype;_.w.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"}}}}};
_.w.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",_.x7(this,this.closePopup))};
_.w.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.x7(this,this.closePopup))};
_.w.dataChanged=function(){_.Ia(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Q(this.data.header,x1Q)&&(this.hasBackgroundBanner=!!_.Q(this.data.header,x1Q).backgroundBanner)};
_.w.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.x7(this,this.closePopup))};
_.w.closePopup=function(){this.data&&this.data.onCloseCommand&&_.fi(this.hostElement,[this.data.onCloseCommand])};
ub.prototype.handleBuyflowSelectionSubmitted=ub.prototype.handleBuyflowSelectionSubmitted;ub.prototype.dataChanged=ub.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ub.prototype,"data",void 0);
_.c([_.v({value:!0,reflectToAttribute:!0}),_.I("design:type",Boolean)],ub.prototype,"hasBackgroundBanner",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ub.prototype,"dataChanged",null);_.c([_.Pm("yt-pdg-buy-flow-selection-submitted"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ub.prototype,"handleBuyflowSelectionSubmitted",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ub);
_.d(ub,"ytd-pdg-buy-flow-renderer",function(){if(t8A!==void 0)return t8A;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return t8A=G},{mode:1});var ZQe;var Rw=function(){var G=_.p.apply(this,arguments)||this;G.isOpen=!1;G.isPlaylistCreated=!1;return G};
_.r(Rw,_.p);_.w=Rw.prototype;_.w.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.w.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.cZ(this.hostElement,"yt-refit")};
_.w.onCreateTap=function(){var G=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.fi(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(B,F){if(!_.X("killswitch_ep_in_create_playlist_response")&&(F==null?0:F.actions))for(B=_.C(F.actions),F=B.next();!F.done;F=B.next())F=F.value,_.Q(F,_.Xi)&&G.ytComponentBehavior.resolveCommand(F)}}]),this.isPlaylistCreated=!0)};
_.w.onKeydown=function(G){if(G.keyCode===13)this.onCreateTap()};
_.w.onServiceRequestCompleted=function(G){G.stopPropagation();_.T1(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.w.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
Rw.prototype.onServiceRequestCompleted=Rw.prototype.onServiceRequestCompleted;Rw.prototype.onKeydown=Rw.prototype.onKeydown;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Rw.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Rw.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Rw.prototype,"isOpen",void 0);
_.c([_.v(),_.I("design:type",Object)],Rw.prototype,"isPlaylistCreated",void 0);_.c([_.v({value:{REQUIRED_LABEL:_.G7("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.G7("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.I("design:type",Object)],Rw.prototype,"addToStrings",void 0);_.c([_.v({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.I("design:type",Array)],Rw.prototype,"privacyBadge",void 0);
_.c([_.iA("#privacy-input"),_.I("design:type",Object)],Rw.prototype,"privacyInput",void 0);_.c([_.iA("#name-input"),_.I("design:type",Object)],Rw.prototype,"nameInput",void 0);_.c([_.Pm("keydown"),_.I("design:type",Function),_.I("design:paramtypes",[KeyboardEvent]),_.I("design:returntype")],Rw.prototype,"onKeydown",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Rw.prototype,"onServiceRequestCompleted",null);
_.c([_.mC({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Rw);
_.d(Rw,"ytd-add-to-playlist-create-renderer",function(){if(ZQe!==void 0)return ZQe;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return ZQe=G},{mode:1});var gMa;var SSA;var wx=function(){var G=_.p.apply(this,arguments)||this;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.r(wx,_.p);wx.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
wx.prototype.onCheckboxChange=function(G){var B=this;this.data&&_.kT(this,"yt-playlist-checkbox-changed",function(){var F=_.oF(G).checked?B.data.addToPlaylistServiceEndpoint:B.data.removeFromPlaylistServiceEndpoint;F&&_.te().resolve(_.Wr).resolveCommand(F,{form:{element:B.hostElement}});_.X("dl_playlist_killswitch")||B.transferState!=="TRANSFER_STATE_UNKNOWN"&&B.transferState!=="TRANSFER_STATE_FAILED"&&B.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:B.data.playlistId,action:"ACTION_SYNC"}})},
100)};
wx.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
wx.prototype.dataChanged=wx.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wx.prototype,"data",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],wx.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],wx.prototype,"ytComponentBehavior",void 0);_.c([_.iA("#checkbox"),_.I("design:type",HTMLInputElement)],wx.prototype,"checkbox",void 0);
_.c([_.v({selector:_.X9,selectorArgs:["data.playlistId"]}),_.I("design:type",String)],wx.prototype,"transferState",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],wx.prototype,"dataChanged",null);_.c([_.mC({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],wx);
_.d(wx,"ytd-playlist-add-to-option-renderer",function(){if(SSA!==void 0)return SSA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return SSA=G},{mode:1});var sIw=_.Y(function(G){var B=G.data;return _.l("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.l("div",null,_.l(_.Wd,{text:function(){return B().title}})),_.l(_.E,{cond:function(){return B().subtitle},
then:function(F){return _.l("div",{class:"ytdMenuTitleRendererSubtitle"},_.l(_.Wd,{text:F}))}}))},"hl");
sIw.idomCompat=!0;_.YN(sIw,"ytd-menu-title-renderer",{props:{data:_.Hd}});var C_=function(){var G=_.p.apply(this,arguments)||this;G.addToStrings={ADD_TO_DROPDOWN_LABEL:_.G7("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};G.closeButtonAriaLabel=_.G7("SBOX_INAPPROPRIATE_CANCEL");G.dialog=_.X("desktop_add_to_playlist_renderer_dialog_popup");return G};
_.r(C_,_.p);_.w=C_.prototype;_.w.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"}}}};
_.w.onPopupOpened=function(){_.tV(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.w.onPopupClosed=function(){_.tV(this.playlists,"scrollable",!1)};
_.w.computeAriaLabel=function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.C(this.data.actions);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.menuTitleRenderer)return _.zx(B.menuTitleRenderer.title)}};
_.w.onTapClose=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.ZN.Object.defineProperties(C_.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.C(this.data.actions);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.menuTitleRenderer)return B.menuTitleRenderer}return!1}}});
C_.prototype.onPopupClosed=C_.prototype.onPopupClosed;C_.prototype.onPopupOpened=C_.prototype.onPopupOpened;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],C_.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],C_.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],C_.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],C_.prototype,"addToStrings",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.I("design:type",String)],C_.prototype,"ariaLabel",void 0);_.c([_.v(),_.I("design:type",String)],C_.prototype,"closeButtonAriaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],C_.prototype,"dialog",void 0);
_.c([_.iA("#playlists"),_.I("design:type",HTMLElement)],C_.prototype,"playlists",void 0);_.c([_.iA("ytd-add-to-playlist-create-renderer"),_.I("design:type",Object)],C_.prototype,"createRenderer",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],C_.prototype,"menuTitleRenderer",null);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],C_.prototype,"onPopupOpened",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],C_.prototype,"onPopupClosed",null);_.c([_.mC({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],C_);
_.d(C_,"ytd-add-to-playlist-renderer",function(){if(gMa!==void 0)return gMa;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return gMa=G},{mode:1});var xLe;var NJ=function(){var G=_.p.apply(this,arguments)||this;G.isPlaylistEditComplete=!1;G.isCollabEngagementDisabled=!1;G.closeButtonAriaLabel=_.G7("SBOX_INAPPROPRIATE_CANCEL");G.saveButton={title:_.G7("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"};G.onValueChanged=function(){G.updateSaveButtonState();G.computeCollabEngagementDisabled()};
return G};
_.r(NJ,_.p);_.w=NJ.prototype;_.w.attached=function(){this.JSC$22694_scroller&&(this.JSC$22694_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22694_scroller.attached&&typeof this.JSC$22694_scroller.attached==="function"&&this.JSC$22694_scroller.attached())};
_.w.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.w.onPopupClosed=function(){this.reset()};
_.w.close=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.w.onClickSave=function(){var G=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var B=[];this.nameInput.value!==null&&B.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&B.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var F=Number(this.privacyInput.value);isNaN(F)||B.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:F})}this.votingInput.value!==null&&(F=this.votingInput.value)&&B.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:F});if(B.length>0){var D;_.Q((D=this.data)==null?void 0:D.updateSettingsEndpoint,_.KV).actions=B;var u;if((u=this.data)==null?0:u.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){G.close()}}}),this.isPlaylistEditComplete=!0}}};
_.w.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
_.w.computeEditorData=function(G){var B,F;return G==null?void 0:(B=G.sections)==null?void 0:(F=B[0])==null?void 0:F.playlistSettingsEditorCasualSectionRenderer};
_.w.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.w.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}}}}}};
_.w.computeAriaLabel=function(){var G,B,F,D=(G=this.data)==null?void 0:(B=G.sections)==null?void 0:(F=B[0])==null?void 0:F.playlistSettingsEditorCasualSectionRenderer;return _.zx(D==null?void 0:D.title)};
_.w.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"}))};
_.w.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.w.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.w.isNameChanged=function(){var G,B,F;return(((G=this.editorData)==null?void 0:(B=G.name)==null?void 0:(F=B.textInputFormFieldRenderer)==null?void 0:F.value)||"")!==(this.nameInput.value||"")};
_.w.isDescriptionChanged=function(){var G,B,F;return(((G=this.editorData)==null?void 0:(B=G.description)==null?void 0:(F=B.textInputFormFieldRenderer)==null?void 0:F.value)||"")!==(this.descriptionInput.value||"")};
_.w.isPrivacyChanged=function(){var G,B,F,D,u,R,N,y;return((N=(G=this.editorData)==null?void 0:(B=G.privacy)==null?void 0:(F=B.dropdownFormFieldRenderer)==null?void 0:(D=F.dropdown)==null?void 0:(u=D.dropdownRenderer)==null?void 0:(R=u.entries)==null?void 0:R.find(function(U){var q;return U==null?void 0:(q=U.privacyDropdownItemRenderer)==null?void 0:q.isSelected}))==null?void 0:(y=N.privacyDropdownItemRenderer)==null?void 0:y.int32Value)!==this.privacyInput.value};
_.w.isVotingChanged=function(){var G,B,F,D,u,R,N,y;return((N=(G=this.editorData)==null?void 0:(B=G.voting)==null?void 0:(F=B.dropdownFormFieldRenderer)==null?void 0:(D=F.dropdown)==null?void 0:(u=D.dropdownRenderer)==null?void 0:(R=u.entries)==null?void 0:R.find(function(U){var q;return U==null?void 0:(q=U.privacyDropdownItemRenderer)==null?void 0:q.isSelected}))==null?void 0:(y=N.privacyDropdownItemRenderer)==null?void 0:y.int32Value)!==this.votingInput.value};
NJ.prototype.onPopupClosed=NJ.prototype.onPopupClosed;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],NJ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],NJ.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],NJ.prototype,"data",void 0);_.c([_.v({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.I("design:type",Array)],NJ.prototype,"privacyBadge",void 0);_.c([_.v({computed:"computeEditorData(data)"}),_.I("design:type",Object)],NJ.prototype,"editorData",void 0);_.c([_.v(),_.I("design:type",Object)],NJ.prototype,"isPlaylistEditComplete",void 0);_.c([_.v(),_.I("design:type",Object)],NJ.prototype,"isCollabEngagementDisabled",void 0);
_.c([_.v({value:{REQUIRED_LABEL:_.G7("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.G7("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.I("design:type",Object)],NJ.prototype,"addToStrings",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.I("design:type",String)],NJ.prototype,"ariaLabel",void 0);_.c([_.v(),_.I("design:type",String)],NJ.prototype,"closeButtonAriaLabel",void 0);
_.c([_.v(),_.I("design:type",Object)],NJ.prototype,"saveButton",void 0);_.c([_.iA("#name-input"),_.I("design:type",Object)],NJ.prototype,"nameInput",void 0);_.c([_.iA("#description-input"),_.I("design:type",Object)],NJ.prototype,"descriptionInput",void 0);_.c([_.iA("#privacy-input"),_.I("design:type",Object)],NJ.prototype,"privacyInput",void 0);_.c([_.iA("#voting-input"),_.I("design:type",Object)],NJ.prototype,"votingInput",void 0);
_.c([_.iA("#scroller"),_.I("design:type",Object)],NJ.prototype,"JSC$22694_scroller",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],NJ.prototype,"onPopupClosed",null);_.c([_.v(),_.I("design:type",Object)],NJ.prototype,"onValueChanged",void 0);_.c([_.mC({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],NJ);
_.d(NJ,"ytd-playlist-settings-editor-renderer",function(){if(xLe===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);xLe=G}G=xLe;return G},{mode:1});var PlX;_.UR("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var yb=function(){return _.p.apply(this,arguments)||this};
_.r(yb,_.p);_.w=yb.prototype;_.w.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}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.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 G=this.get("data.nextButton.buttonRenderer.navigationEndpoint");G&&(this.nextNavigationEndpoint=G,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.w.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 G={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",G)}}};
_.w.onPopupOpened=function(G){G.detail!==this&&G.detail!==this.hostElement||!_.X("enable_premium_voluntary_pause")||_.T1(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.w.onNextButtonTap=function(){var G=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);G&&this.ytdOpenPopupBehavior.openPopup(G)};
_.w.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
yb.prototype.onPopupOpened=yb.prototype.onPopupOpened;yb.prototype.onSelectedResponseIndexChange=yb.prototype.onSelectedResponseIndexChange;yb.prototype.dataChanged=yb.prototype.dataChanged;_.c([_.k(_.vj),_.I("design:type",Object)],yb.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],yb.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],yb.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],yb.prototype,"selectedResponseIndex",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yb.prototype,"dataChanged",null);_.c([_.Ga("selectedResponseIndex"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],yb.prototype,"onSelectedResponseIndexChange",null);
_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],yb.prototype,"onPopupOpened",null);_.c([_.mC({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],yb);
_.d(yb,"ytd-red-cancel-survey-renderer",function(){if(PlX!==void 0)return PlX;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return PlX=G},{mode:1});var GLe;var n_=function(){var G=_.p.apply(this,arguments)||this;G.closeButtonAriaLabel=_.G7("SBOX_INAPPROPRIATE_CANCEL");return G};
_.r(n_,_.p);n_.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
n_.prototype.onClickClose=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],n_.prototype,"rendererStamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],n_.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],n_.prototype,"closeButtonAriaLabel",void 0);_.c([_.mC({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],n_);
_.d(n_,"ytd-search-filter-options-dialog-renderer",function(){if(GLe!==void 0)return GLe;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return GLe=G},{mode:1});var BwM;var Pc$=function(){return function(G){G=G.availabilityType;return G===void 0||G==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||G==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var lb=function(){var G=_.p.apply(this,arguments)||this;G.qualityOptions=[];G.upsellOptions=[];G.showUpsellSection=!1;G.rememberSettingsChecked=!1;return G};
_.r(lb,_.p);_.w=lb.prototype;_.w.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}}}}};
_.w.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.w.updateQualityOptions=function(){if(this.formats===void 0)_.T1(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var G=[],B=[];this.showUpsellSection=!1;for(var F=_.C(this.formats),D=F.next();!D.done;D=F.next())(D=D.value)&&(D.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?B.push(D):G.push(D));G.length&&(this.qualityOptions=xV2(G));B.length&&(this.showUpsellSection=!0,this.upsellOptions=xV2(B))}};
_.w.updateRememberString=function(){if(this.downloadQualityPickerEntity)var G=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var B;G=(B=this.data)==null?void 0:B.premiumRememberSettingString}else{var F;G=(F=this.data)==null?void 0:F.rememberSettingString}G=G===void 0?_.G7("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):G;this.rememberSettingsCheckboxRenderer={title:_.pR(G),disabled:!1}};
_.w.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.ZN.Object.defineProperties(lb.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
lb.prototype.updateRememberString=lb.prototype.updateRememberString;lb.prototype.updateQualityOptions=lb.prototype.updateQualityOptions;lb.prototype.dataChanged=lb.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lb.prototype,"data",void 0);
_.c([_.k(_.hf),_.I("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Boolean)],lb.prototype,"selectedUpsellQuality",void 0);_.c([_.v({computed:"computeIcon_(data.premiumIcon)",value:""}),_.I("design:type",String)],lb.prototype,"premiumIcon",void 0);_.c([_.v({selector:XZG,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.I("design:type",Object)],lb.prototype,"downloadQualityPickerEntity",void 0);
_.c([_.v(),_.I("design:type",Array)],lb.prototype,"qualityOptions",void 0);_.c([_.v(),_.I("design:type",Array)],lb.prototype,"upsellOptions",void 0);_.c([_.v(),_.I("design:type",Object)],lb.prototype,"showUpsellSection",void 0);_.c([_.v(),_.I("design:type",Object)],lb.prototype,"rememberSettingsCheckboxRenderer",void 0);_.c([_.iA("#remember-settings"),_.I("design:type",HTMLInputElement)],lb.prototype,"rememberSettingsCheckbox",void 0);
_.c([_.v(),_.I("design:type",Object)],lb.prototype,"rememberSettingsChecked",void 0);_.c([_.v(),_.I("design:type",Function)],lb.prototype,"onRememberSettingsCheckedChanged",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lb.prototype,"dataChanged",null);_.c([_.Ga("downloadQualityPickerEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lb.prototype,"updateQualityOptions",null);
_.c([_.Ga("selectedUpsellQuality"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lb.prototype,"updateRememberString",null);_.c([_.mC({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],lb);
_.d(lb,"ytd-download-quality-selector-content",function(){if(BwM!==void 0)return BwM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return BwM=G},{mode:1});var i7M;var UQ=function(){var G=_.p.apply(this,arguments)||this;G.selectedUpsellQuality=!1;G.qualityOptions=[];G.useUpsellDismissAlternate=_.X("use_not_now_dl_upsell_dismiss_cta");G.shouldShowAlternateUpsellDimiss=!1;G.rememberSettings=!1;G.rememberSettingsChecked=!1;G.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};G.rememberSettingsCheckedChanged=function(B){G.rememberSettingsChecked=B};
return G};
_.r(UQ,_.p);_.w=UQ.prototype;
_.w.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pR(_.G7("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pR(_.G7("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pR(_.G7("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pR(_.G7("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.w.updateQualityOptions=function(){this.formats===void 0?_.T1(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=xV2(this.formats)};
_.w.onQualityOptionsSelect=function(G){if(this.qualityOptions&&G){G!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var B=_.C(this.qualityOptions.entries()),F=B.next();!F.done;F=
B.next()){F=_.C(F.value);var D=F.next().value;F=F.next().value;var u=void 0,R=void 0;if(((u=F)==null?void 0:(R=u.settingsRadioOptionRenderer)==null?void 0:R.id)===G){this.selectedQualityIndex=D;G=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((G=this.formats[D])==null?void 0:G.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.w.onClickSubmit=function(){var G;if((G=this.downloadButtonRenderer)==null||!G.isDisabled){var B,F;G=(F=(B=this.data)==null?void 0:B.onSubmitEndpoint)!=null?F:{};var D,u;if(this.formats&&(((D=_.Q(G,_.GP))==null?0:D.videoId)||((u=_.Q(G,_.B_))==null?0:u.playlistId))){var R,N,y,U,q,h;B={formatType:(U=(R=this.formats)==null?void 0:(N=R[(y=this.selectedQualityIndex)!=null?y:0])==null?void 0:N.format)!=null?U:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(q=this.getOfflineEndpoint(G))==null?void 0:(h=q.actionParams)==null?void 0:h.settingsAction)};this.getOfflineEndpoint(G).actionParams=B;this.ytComponentBehavior.resolveCommand(G)}_.T1(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.w.onClickUpsell=function(){var G;if((G=this.upsellButtonRenderer)==null||!G.isDisabled){var B,F;G=(F=(B=this.data)==null?void 0:B.upsellEndpoint)!=null?F:{};this.ytComponentBehavior.resolveCommand(G);_.T1(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);B="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var D,u,R,N;B=(N=(D=this.formats)==null?void 0:(u=D[(R=this.selectedQualityIndex)!=null?R:0])==null?void 0:u.format)!=null?N:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:B}})}};
_.w.onClickClose=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.w.getOfflineSettingsAction=function(G,B){return G?B===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":B:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.w.getOfflineEndpoint=function(G){return _.Q(G,_.GP)?_.Q(G,_.GP):_.Q(G,_.B_)};
_.ZN.Object.defineProperties(UQ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.pR(_.G7("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
UQ.prototype.updateQualityOptions=UQ.prototype.updateQualityOptions;UQ.prototype.dataChanged=UQ.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],UQ.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],UQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Number)],UQ.prototype,"selectedQualityIndex",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"selectedUpsellQuality",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);
_.c([_.v({selector:XZG,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.I("design:type",Object)],UQ.prototype,"downloadQualityPickerEntity",void 0);_.c([_.v(),_.I("design:type",Array)],UQ.prototype,"qualityOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],UQ.prototype,"useUpsellDismissAlternate",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"downloadButtonRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"upsellButtonRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"cancelButtonRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"upsellCancelButtonRenderer",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"rememberSettings",void 0);_.c([_.v(),_.I("design:type",Object)],UQ.prototype,"rememberSettingsChecked",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UQ.prototype,"dataChanged",null);_.c([_.Ga("downloadQualityPickerEntity"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],UQ.prototype,"updateQualityOptions",null);_.c([_.mC({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],UQ);
_.d(UQ,"ytd-download-quality-selector-renderer",function(){if(i7M!==void 0)return i7M;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return i7M=G},{mode:1});var FtA;var qJ=function(){return _.p.apply(this,arguments)||this};
_.r(qJ,_.p);qJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qJ.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qJ.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.infoIcon)"}),_.I("design:type",Object)],qJ.prototype,"infoIcon",void 0);
_.c([_.v({computed:"computeIcon_(data.warningIcon)"}),_.I("design:type",Object)],qJ.prototype,"warningIcon",void 0);_.c([_.mC({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],qJ);
_.d(qJ,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(FtA!==void 0)return FtA;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return FtA=G},{mode:1});var D8S;var EQ=function(){return _.p.apply(this,arguments)||this};
_.r(EQ,_.p);EQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EQ.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"}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EQ.prototype,"data",void 0);_.c([_.mC({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],EQ);
_.d(EQ,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(D8S!==void 0)return D8S;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return D8S=G},{mode:1});var uaz;var hy=function(){return _.p.apply(this,arguments)||this};
_.r(hy,_.p);hy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hy.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"}}}}};
hy.prototype.onServiceRequestSentOrCompleted=function(G,B){B&&B.actions&&B.actions.length>0&&_.T1(this.hostElement,"yt-close-popup-action",[this.is])};
hy.prototype.onServiceRequestSentOrCompleted=hy.prototype.onServiceRequestSentOrCompleted;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hy.prototype,"data",void 0);
_.c([_.Pm("yt-service-request-completed"),_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],hy.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.mC({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],hy);
_.d(hy,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(uaz!==void 0)return uaz;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return uaz=G},{mode:1});var RUj;var K_=function(){var G=_.p.apply(this,arguments)||this;G.submitButtonDisabled=!0;return G};
_.r(K_,_.p);_.w=K_.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.w.onDataChanged=function(){var G,B,F;if(((G=this.data)==null?void 0:(B=G.confirmButton)==null?void 0:(F=B.buttonRenderer)==null?void 0:F.isDisabled)!==void 0){var D,u,R;this.submitButtonDisabled=(D=this.data)==null?void 0:(u=D.confirmButton)==null?void 0:(R=u.buttonRenderer)==null?void 0:R.isDisabled}};
_.w.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.w.updateSubmitButtonDisabledFromBinding=function(G){this.submitButtonDisabled=G.detail.value};
_.w.updateSubmitButtonDisabledFromConfirmCheckbox=function(G){this.submitButtonDisabled=!G.detail.value};
K_.prototype.onDataChanged=K_.prototype.onDataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],K_.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],K_.prototype,"submitButtonDisabled",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],K_.prototype,"onDataChanged",null);_.c([_.mC({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],K_);
_.d(K_,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(RUj!==void 0)return RUj;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return RUj=G},{mode:1});var wsj;var aw=function(){return _.p.apply(this,arguments)||this};
_.r(aw,_.p);_.ZN.Object.defineProperties(aw.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G,B,F;return((G=this.data)==null?void 0:G.title)+" "+((B=this.data)==null?void 0:B.metadataPrimary)+" "+((F=this.data)==null?void 0:F.metadataSecondary)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aw.prototype,"data",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],aw.prototype,"ariaLabel",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],aw);
_.d(aw,"ytd-compact-product-list-item-renderer",function(){if(wsj!==void 0)return wsj;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return wsj=G},{mode:1});var CyX;var ms=function(){return _.p.apply(this,arguments)||this};
_.r(ms,_.p);ms.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]]"}}}}}};
_.ZN.Object.defineProperties(ms.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ms.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],ms);
_.d(ms,"ytd-compact-product-list-renderer",function(){if(CyX!==void 0)return CyX;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return CyX=G},{mode:1});var NwC;var XH=function(){return _.p.apply(this,arguments)||this};
_.r(XH,_.p);_.w=XH.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.w.getBackgroundUrl=function(){var G=this.get("data.headerImage.thumbnails");return G?"url("+_.Ax(G,this.hostElement.clientWidth)+")":""};
_.w.onDataChanged=function(){var G=this.getBackgroundUrl();G&&(this.header.style.backgroundImage=G);G=_.qW();var B=_.Uw(),F=this.get("data.trackingParams");F&&B&&G&&_.WT(G,B,_.yX(F));G=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(B=G.next();!B.done;B=G.next())B.value.onShow()};
_.w.onPopupClosed=function(G){_.oF(G).localName==="ytd-membership-post-cancel-renderer"&&_.T1(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
XH.prototype.onPopupClosed=XH.prototype.onPopupClosed;XH.prototype.onDataChanged=XH.prototype.onDataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],XH.prototype,"data",void 0);_.c([_.iA("#header"),_.I("design:type",HTMLDivElement)],XH.prototype,"header",void 0);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],XH.prototype,"onDataChanged",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],XH.prototype,"onPopupClosed",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],XH);
_.d(XH,"ytd-membership-post-cancel-renderer",function(){if(NwC!==void 0)return NwC;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return NwC=G},{mode:1});var yTS;var Qb=function(){return _.p.apply(this,arguments)||this};
_.r(Qb,_.p);Qb.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Qb.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Qb.prototype,"data",void 0);_.c([_.iA("ytd-feedback-survey-renderer"),_.I("design:type",Object)],Qb.prototype,"feedbackSurveyRenderer",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Qb);
_.d(Qb,"ytd-sponsorship-confirm-cancel-content",function(){if(yTS!==void 0)return yTS;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return yTS=G},{mode:1});var nvS;var ji=function(){var G=_.p.apply(this,arguments)||this;G.maybeSubmitFeedback=function(){G.content&&G.content.maybeSubmitFeedback()};
return G};
_.r(ji,_.p);_.w=ji.prototype;_.w.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.w.onYtPopupOpened=function(G,B){B===this&&this.data&&this.data.onOpenCommands&&_.tL(this.hostElement,this.data.onOpenCommands,this.hostElement);_.T1(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.w.onYtPopupClosed=function(G,B){(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.tL(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.w.onYtServiceRequestCompleted=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.w.onYtServiceRequestError=function(G){_.zP(this.hostElement,G.detail.error.message)};
_.w.onDataChanged=function(){if(this.isAttached){var G=this.backgroundUrl;G&&(_.IF(this.hostElement).querySelector("#header").style.backgroundImage=G)}};
_.ZN.Object.defineProperties(ji.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return G?"url("+_.Ax(G,this.hostElement.clientWidth)+")":""}}});
ji.prototype.onDataChanged=ji.prototype.onDataChanged;ji.prototype.onYtServiceRequestError=ji.prototype.onYtServiceRequestError;ji.prototype.onYtServiceRequestCompleted=ji.prototype.onYtServiceRequestCompleted;ji.prototype.onYtPopupClosed=ji.prototype.onYtPopupClosed;ji.prototype.onYtPopupOpened=ji.prototype.onYtPopupOpened;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ji.prototype,"data",void 0);_.c([_.v({value:function(){return _.G7("SBOX_INAPPROPRIATE_CANCEL")}}),
_.I("design:type",String)],ji.prototype,"closeButtonAriaLabel",void 0);_.c([_.iA("#scrollable"),_.I("design:type",Object)],ji.prototype,"scrollable",void 0);_.c([_.iA("ytd-sponsorship-confirm-cancel-content"),_.I("design:type",Object)],ji.prototype,"content",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],ji.prototype,"onYtPopupOpened",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],ji.prototype,"onYtPopupClosed",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],ji.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],ji.prototype,"onYtServiceRequestError",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ji.prototype,"onDataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ji);
_.d(ji,"ytd-sponsorship-confirm-cancel-renderer",function(){if(nvS!==void 0)return nvS;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return nvS=G},{mode:2});var lqe;var L_=function(){return _.p.apply(this,arguments)||this};
_.r(L_,_.p);L_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],L_.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],L_);
_.d(L_,"ytd-sponsorships-celebration-content",function(){if(lqe!==void 0)return lqe;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return lqe=
G},{mode:1});var U8X;var qGz=_.vP(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),rx=function(){var G=_.p.apply(this,arguments)||this;G.scriptsAppended=!1;G.useFullWidthPrimaryButton=!1;G.buttonOverrides={type:"tonal",style:"overlay-dark"};return G};
_.r(rx,_.p);_.w=rx.prototype;_.w.dataChanged=function(){var G;this.useFullWidthPrimaryButton=!((G=this.data)==null||!G.useFullWidthPrimaryButton)};
_.w.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:_.X("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onDataChanged=function(){var G;(G=this.header)==null||G.style.setProperty("background-color",this.backgroundColor);if(G=this.headerImageUrl){var B;(B=this.header)==null||B.style.setProperty("background-image",G)}B=_.qW(4);G=_.Uw(4);var F=this.get("data.trackingParams");if(F&&G&&B){var D=_.yX(F);_.WT(B,G,D);_.X("combine_ve_grafts")?_.Rh().graftServerVe(F,G,4):_.WT(B,G,D)}B=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=B.next();!G.done;G=B.next())G.value.onShow();if(B=this.get("data.gtmId"))_.uY(B,
_.v5("GL","")),this.setupConversionTracking()};
_.w.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("script");_.l5(G,_.yD(qGz.join("")));document.head.appendChild(G);G=document.createElement("noscript");G.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(G);this.scriptsAppended=!0}};
_.w.onPopupClosed=function(G){if(_.oF(G).localName==="ytd-sponsorships-celebration-renderer"){_.T1(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var B;this.data&&((B=this.data)==null?0:B.dismissCommand)&&_.Gm.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.ZN.Object.defineProperties(rx.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Kp(G)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return G?"url("+_.Ax(G,this.hostElement.getBoundingClientRect().width)+")":""}}});
rx.prototype.onPopupClosed=rx.prototype.onPopupClosed;rx.prototype.onDataChanged=rx.prototype.onDataChanged;rx.prototype.dataChanged=rx.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rx.prototype,"data",void 0);
_.c([_.iA("#header"),_.I("design:type",HTMLElement)],rx.prototype,"header",void 0);_.c([_.v(),_.I("design:type",Object)],rx.prototype,"scriptsAppended",void 0);_.c([_.v({type:Boolean,reflectToAttribute:!0}),_.I("design:type",Object)],rx.prototype,"useFullWidthPrimaryButton",void 0);_.c([_.v(),_.I("design:type",Object)],rx.prototype,"buttonOverrides",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rx.prototype,"dataChanged",null);
_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rx.prototype,"onDataChanged",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],rx.prototype,"onPopupClosed",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],rx);
_.d(rx,"ytd-sponsorships-celebration-renderer",function(){if(U8X!==void 0)return U8X;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return U8X=G},{mode:1});var EvM;var WD=function(){return _.p.apply(this,arguments)||this};
_.r(WD,_.p);_.w=WD.prototype;_.w.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"}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.detached=function(){this.playerElement.stop()};
_.w.onYtServiceRequestCompleted=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.w.onYtServiceRequestError=function(G){_.zP(this.hostElement,G.detail.error.message)};
_.w.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.w.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.w.getTier=function(G,B){return!G||!G.tiers||B<0?null:_.Q(G.tiers[B],mqD)};
_.w.moreThanOne=function(G){return!!(G&&G.length>1)};
_.w.tierOverviewTap=function(G){var B=this;this.selectedTier=G.model.index;_.ft(this,function(){_.cZ(B.hostElement,"yt-refit")})};
_.w.computeSelectedClass=function(G,B){return this.isSelected(G,B)?"selected":""};
_.w.computeButtonAriaPressed=function(G,B){return this.isSelected(G,B)?"true":"false"};
_.w.isSelected=function(G,B){return G===B};
_.w.onDataChanged=function(){_.IF(this.hostElement).querySelector("#header-overlay").style.visibility="";_.IF(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 G=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),
B=G.next();!B.done;B=G.next())B.value.onShow();var F;this.set("selectedTier",(F=this.get("data.targetTierIndex"))!=null?F:0);var D;(G=(D=this.data)==null?void 0:D.onVisible)&&this.ytComponentBehavior.resolveCommand(G)};
_.w.initializeVe=function(G){var B=_.qW(),F=_.Uw(),D=this.get("data.trackingParams");F&&B&&(this.screenLayer=4,B=_.pH(_.Nyc)(void 0,69877,{clientScreenNonce:B,visualElement:F},void 0,void 0,void 0),_.hL(B,69877,4),F=_.Uw(4),D&&F&&(D=_.yX(D),_.WT(B,F,D),G&&(this.offerVideoVe=_.ge(74659),_.WT(B,D,this.offerVideoVe))))};
_.w.setHeaderBackground=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.IF(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Kp(G);if(G=this.getHeaderImage())G=_.Ax(G,screen.width),_.IF(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+G+")"};
_.w.getHeaderImage=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&G?G:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.w.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.w.setupVideoPlayer=function(G){var B=this,F,D,u,R;return _.n(function(N){if(N.nextAddress==1)return F=B.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),D=B.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.X("kevlar_player_update_killswitch")?B.playerElement.update({args:{autoplay:F,video_id:G,player_params:D}}):B.playerElement.loadVideoWithPlayerVars({autoplay:F,video_id:G,player_params:D}),
N.yield(B.playerElement.getPlayerPromise(),2);u=N.yieldResult;u.addEventListener("onStateChange",function(y){B.onPlayerStateChange(y)});
u.setScreenLayer(B.screenLayer);(R=_.qW(4))&&B.offerVideoVe&&_.kI(R,B.offerVideoVe);F&&(B.pauseOtherPlayers(),B.playerElement.focusOnPlayer(),B.playerElement.getPlayer().hideControls(),_.mX(_.Lu,function(){B.fadeOutHeaderOverlay()},4E3));
_.di(N)})};
_.w.onPlayerStateChange=function(G){G===1?this.backgroundPlayerElement&&(G=this.backgroundPlayerElement.player_.getPlayerState(),G!==1&&G!==3||this.backgroundPlayerElement.pause()):G===0&&(_.IF(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.IF(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.w.fadeOutHeaderOverlay=function(){_.IF(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.w.onHeaderTap=function(){if(this.offerVideo){_.IF(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var G;((G=this.playerElement.player_)==null?void 0:G.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(G=_.qW(4))&&this.offerVideoVe&&_.$I(G,this.offerVideoVe)}};
_.w.getBackgroundImageLayerClass=function(G){return G?"background-image-layer-with-video":""};
_.w.getHeaderClass=function(G){return G?"header-with-video":""};
_.w.getHeaderOverlayClass=function(G){return G?"header-overlay-with-video":""};
_.w.getTitleContainerClass=function(G,B){return G?"title-container-with-video":B?"title-container-without-video-flexible":"title-container-without-video"};
_.w.tierTitleDisplayStatus=function(G){return this.moreThanOne(G)?"hide":"show"};
_.w.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.te().resolve(_.WP).getPlayerElement():this.backgroundPlayerElement=_.AZ();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var G=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=G===1||G===3;this.backgroundPlayerElement.pause()}};
_.w.isMiniplayerActive=function(){return _.te().resolve(_.WP).isMiniplayerActive()};
_.w.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("selected-tier-changed",this.selectedTier))};
WD.prototype.selectedTierChangedForBinding=WD.prototype.selectedTierChangedForBinding;WD.prototype.onDataChanged=WD.prototype.onDataChanged;WD.prototype.onYtPopupClosed=WD.prototype.onYtPopupClosed;WD.prototype.onYtPopupOpened=WD.prototype.onYtPopupOpened;WD.prototype.onYtServiceRequestError=WD.prototype.onYtServiceRequestError;WD.prototype.onYtServiceRequestCompleted=WD.prototype.onYtServiceRequestCompleted;
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],WD.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],WD.prototype,"data",void 0);_.c([_.v({value:0}),_.I("design:type",Number)],WD.prototype,"selectedTier",void 0);
_.c([_.v({value:""}),_.I("design:type",String)],WD.prototype,"offerVideo",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],WD.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.c([_.v({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.S8(this)}}),
_.I("design:type",String)],WD.prototype,"playerId",void 0);_.c([_.iA("tp-yt-paper-dialog-scrollable"),_.I("design:type",Object)],WD.prototype,"scrollable",void 0);_.c([_.iA("ytd-sponsorships-tier-renderer"),_.I("design:type",Object)],WD.prototype,"tierRenderer",void 0);_.c([_.iA("#player"),_.I("design:type",Object)],WD.prototype,"playerElement",void 0);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],WD.prototype,"onYtServiceRequestCompleted",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],WD.prototype,"onYtServiceRequestError",null);
_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WD.prototype,"onYtPopupOpened",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WD.prototype,"onYtPopupClosed",null);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WD.prototype,"onDataChanged",null);
_.c([_.Ga("selectedTier"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],WD.prototype,"selectedTierChangedForBinding",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],WD);
_.d(WD,"ytd-sponsorships-offer-renderer",function(){if(EvM!==void 0)return EvM;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return EvM=G},{mode:2});var hU3;var HD=function(){var G=_.p.apply(this,arguments)||this;G.buttonOverrides={type:"filled",style:"mono"};return G};
_.r(HD,_.p);HD.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}}}}}};
HD.prototype.backgroundColorChanged=function(){var G,B,F,D=(B=_.Q((G=this.data)==null?void 0:G.content,XCU))==null?void 0:(F=B.backgroundColor)==null?void 0:F.backgroundColor;D&&(G=_.hV(D),_.IF(this.hostElement).querySelector("#banner").style.backgroundColor=G,_.IF(this.hostElement).querySelector("#abstract-art").style.backgroundColor=G)};
HD.prototype.attached=function(){this.JSC$22772_scroller&&(this.JSC$22772_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22772_scroller.attached&&typeof this.JSC$22772_scroller.attached==="function"&&this.JSC$22772_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
HD.prototype.backgroundColorChanged=HD.prototype.backgroundColorChanged;_.c([_.v(),_.I("design:type",Object)],HD.prototype,"data",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#scroller"),_.I("design:type",Object)],HD.prototype,"JSC$22772_scroller",void 0);_.c([_.v(),_.I("design:type",Object)],HD.prototype,"buttonOverrides",void 0);
_.c([_.Ga("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],HD.prototype,"backgroundColorChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],HD);
_.d(HD,"ytd-sponsorships-promotion-celebration-renderer",function(){if(hU3!==void 0)return hU3;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return hU3=G},{mode:2});var Kta;var aqS;var kU=function(){return _.p.apply(this,arguments)||this};
_.r(kU,_.p);kU.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
kU.prototype.computeIsInitiallyChecked=function(G){return G===1};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kU.prototype,"data",void 0);_.c([_.iA("#checkbox"),_.I("design:type",Object)],kU.prototype,"checkbox",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],kU);
_.d(kU,"ytd-subscription-toggle-option-renderer",function(){if(aqS!==void 0)return aqS;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return aqS=G},{mode:1});var OQ=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return G};
_.r(OQ,_.p);OQ.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"}}}};
OQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OQ.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var G=_.IF(this.hostElement).querySelector("#options").selected;G=this.data.options[G].subscriptionRadioOptionRenderer.serviceEndpoint;var B=_.IF(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");B&&G&&G.modifyChannelNotificationPreferenceEndpoint&&(B=B.getValue())&&(G.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[B]);_.te().resolve(_.Wr).resolveCommand(G,{form:{element:this.hostElement}});
_.T1(this.hostElement,"yt-close-popup-action")};
_.ZN.Object.defineProperties(OQ.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var G=this.data.options,B=0;B<G.length;B++){var F=G[B].subscriptionRadioOptionRenderer;if(F&&F.selected)return B}return null}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],OQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],OQ.prototype,"eventForwardingBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],OQ.prototype,"data",void 0);_.c([_.O("data.options"),_.I("design:type",Object),_.I("design:paramtypes",[])],OQ.prototype,"initialIndex",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],OQ);
_.d(OQ,"ytd-subscription-notification-options-renderer",function(){if(Kta!==void 0)return Kta;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Kta=G},{mode:1});var m8e;var Xs3=function(){return _.p.apply(this,arguments)||this};
_.r(Xs3,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xs3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Xs3.prototype,"data",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Xs3);
_.d(Xs3,"ytd-tvfilm-offer-groups-renderer",function(){if(m8e!==void 0)return m8e;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return m8e=G},{mode:1});var Qqw;var ei=function(){return _.p.apply(this,arguments)||this};
_.r(ei,_.p);_.w=ei.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.w.computeThumbnailClass=function(G){return G.thumbnailOverlays?G.isShow?"thumbnail-show":"thumbnail-movie":G.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.w.computeCommerceSectionClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.w.computeTitleClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.w.onDataChanged=function(){[].concat(_.gi(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(G){G.onShow()})};
ei.prototype.onDataChanged=ei.prototype.onDataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],ei.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ei.prototype,"onDataChanged",null);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],ei);
_.d(ei,"ytd-ypc-offers-overlay-renderer",function(){if(Qqw!==void 0)return Qqw;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return Qqw=G},{mode:2});var jqX;var Lty=function(){this.usedMethods=new Set};
Lty.prototype.add=function(G){this.usedMethods.add(G)};
Lty.prototype.reset=function(){this.usedMethods.clear()};var rTC,Wtm;
_.H7C=function(G,B){this.query=G;this.previousSearchQuery=B;this.id=rTC++;if(!Wtm){B=_.v5("SBOX_SETTINGS");G="https://"+((B==null?void 0:B.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var F=B==null?void 0:B.REQUEST_LANGUAGE;F&&(G+="&hl="+F);(F=B==null?void 0:B.REQUEST_DOMAIN)&&(G+="&gl="+F);G+="&client=youtube&gs_ri=youtube";(F=B==null?void 0:B.SUGG_EXP_ID)&&(G+="&sugexp="+encodeURIComponent(F));(F=B==null?void 0:B.PSUGGEST_TOKEN)&&(G+="&tok="+F);(B=B==
null?void 0:B.SESSION_INDEX)&&(G+="&authuser="+B);_.X("desktop_enable_visual_suggest")&&(G+="&h=180&w=320&ytvs=1");Wtm=G}};
_.kLM=function(G){var B="q="+encodeURIComponent(G.query);G.previousSearchQuery&&(B+="&pq="+encodeURIComponent(G.previousSearchQuery));return B};
_.O76=function(){var G=_.v5("SBOX_SETTINGS"),B={};if(G==null?0:G.SEND_VISITOR_DATA)B["X-Goog-Visitor-Id"]=G==null?void 0:G.VISITOR_DATA;return B};
_.eUz=function(G){var B=Wtm;B+="&gs_id="+G.id.toString(36);B+="&q="+encodeURIComponent(G.query);B+="&cp="+G.query.length;G.previousSearchQuery&&(B+="&pq="+encodeURIComponent(G.previousSearchQuery));(G=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(B+="&video_id="+G);return B};
rTC=0;Wtm="";var $8a,zUA,b73,VNX,vvj;$8a=L6.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST;zUA=L6.SEARCH_ENTITY_SUGGESTION_MOVIE;b73=L6.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST;VNX=L6.SEARCH_ENTITY_SUGGESTION_TV_SHOW;vvj=function(G,B){this.text=G;this.bold=B};
_.ove=function(G,B,F){this.input=B;this.index=F;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=G[0];this.type=G[1];this.subtypes=G[2];var D;this.displayText=BZD((D=G[3])==null?void 0:D.b);var u;this.ignoredPrefix=BZD((u=G[3])==null?void 0:u.a);var R,N;this.hasNewVideo=((R=G[3])==null?void 0:(N=R.zam)==null?void 0:N.toString())==="true"?!0:!1;var y;this.visualSuggestUrl=(y=G[3])==null?void 0:y.zai;var U;this.entityType=BZD((U=G[3])==null?void 0:U.zap);var q;this.entityName=BZD((q=
G[3])==null?void 0:q.zao);var h;B=BZD((h=G[3])==null?void 0:h.zaf);var K;this.entityMid=(K=G[3])==null?void 0:K.zae;h=ic$(this.subtypes,this.entityMid);if(B&&h){if(B){K="";switch(h){case "YOUTUBE_ENTITY_TYPE_SONG":K=b73;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":K=$8a;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":K=VNX;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":K=zUA}h=h==="YOUTUBE_ENTITY_TYPE_SONG"||h==="YOUTUBE_ENTITY_TYPE_ALBUM"?K+" \u2022  \u2022 "+B:B}else h="";this.entitySubtitle=h}var a;this.externalChannelId=
(a=G[3])==null?void 0:a.zav;var m;this.entityThumbnailAttributionUrl=(m=G[3])==null?void 0:m.zaq};
_.psm=function(G,B){var F=[],D,u=(D=G.displayText)!=null?D:G.text;(B==null?0:B.useEntityName)&&_.MN3(G)&&G.entityName&&(u=G.entityName);if(G.type===33)return F.push(new vvj(u,!1)),F;if(u.length>=G.input.length&&u.substring(0,G.input.length)===G.input)F.push(new vvj(G.input,!1)),F.push(new vvj(u.substring(G.input.length),!0));else{var R=new Set(G.input.split(/\s/)),N=u.split(/\s/);F=N.map(function(y,U){return new vvj(y.trim()+(U===N.length-1?"":" "),!R.has(y))})}return F};
_.MN3=function(G){var B=!!ic$(G.subtypes);G=!!G.entityMid;return B||G};_.YGS=function(G){this.rawResponse=["",[],{}];this.suggestions=[];try{var B=JSON.parse(FYz(G));if(typeof B==="object"&&B!==null)this.rawResponse=B;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(D){console.log("Suggest: Failed to parse SuggestResponse!");return}var F=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(D,u){return new _.ove(D,F,u)})};var ATX=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Lty;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22809_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},d8j,JTa=function(){d8j||(d8j=new ATX);
return d8j};
ATX.prototype.updateSuggestions=function(G){var B=this;this.availableSuggestions.forEach(function(F){B.previousSuggestions[F]=!0});
this.availableSuggestions=G.map(function(F){var D=F.type.toString();F.subtypes.length>0&&(D+="i"+F.subtypes.join("i"),D+="k"+F.suggestionSources.COMPLETE_SERVER.toString());return D})};
var cTS=function(G,B){var F=Date.now();G.firstEditTime<0&&(G.firstEditTime=F);B&&(G.lastQueryBuildTime=F);G.lastEditTime=F};
ATX.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22809_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Tw3=function(G){var B="";G.availableSuggestions.forEach(function(u){delete G.previousSuggestions[u]});
for(var F=_.C(Object.keys(G.previousSuggestions)),D=F.next();!D.done;D=F.next())D=D.value,G.previousSuggestions[D]&&(B+=(B?"j":"")+D);return B},IqC=function(G,B){var F=[];
B&&(F[1]=B.toString());F[0]="youtube";F[7]=Date.now()-G.startTime;F[6]=G.sessionNumber;G.zeroPrefixSuggestionCount>=0&&(F[33]=G.zeroPrefixSuggestionCount);F[13]=G.outOfSyncResponseCount;if(G.availableSuggestions.length>0){for(var D=B="",u=0,R=_.C(G.availableSuggestions),N=R.next();!N.done;N=R.next())N=N.value,N!==D&&(u>1&&(B+="l"+u),B+=(D?"j":"")+N,u=0,D=N),u+=1;u>1&&(B+="l"+u);F[3]=B}F[35]=Tw3(G);G.selectedSuggestionIndex>=0&&(F[2]=G.selectedSuggestionIndex);var y;if(B=(y=_.v5("SBOX_SETTINGS"))==
null?void 0:y.SUGG_EXP_ID)F[19]=G.normalize(B),y=0,G.experimentTriggeredBeforeFinal&&(y|=1),G.experimentTriggeredFinal&&(y|=2),F[20]=y;F[26]=Array.from(G.inputMethodsTracker.usedMethods).join("j");if(G.JSC$22809_totalRoundTripTime>0){F[15]=G.JSC$22809_totalRoundTripTime;F[14]=G.maxRoundTripTime;y=[];for(u=B=0;u<10;u++)D=G.roundTripTimeHistogram[u],D===0?B++:(B>1?y.push(u+"-"+D):B===1?y.push("0j"+D):y.push(D.toString()),B=0);y=y.join("j");F[16]=y}G.zeroPrefixRoundTripTime>0&&(F[36]=G.zeroPrefixRoundTripTime);
G.lastQueryBuildTime>0&&(F[18]=G.lastQueryBuildTime-G.startTime);G.firstEditTime>0&&(F[4]=G.firstEditTime-G.startTime);G.lastEditTime>0&&(F[5]=G.lastEditTime-G.startTime);return F.join(".")};
ATX.prototype.normalize=function(G){return G.replaceAll(".","-")};
var fqy=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var $U=function(){var G=_.p.apply(this,arguments)||this;G.microphoneSpinnerActive=!1;G.noAnimations=!1;G.boundExitClick=function(){G.onExitButtonClick()};
G.speechOverlayClassName="";G.isLevelAnimating=!1;G.playCloseDialogAudioFeedback=!0;G.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return G};
_.r($U,_.p);_.w=$U.prototype;_.w.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.w.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=THZ()};
_.w.dataChanged=function(){this.logDialog()};
_.w.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var G;(G=this.manager.audioPlayer)!=null&&(G.JSC$21664_audioEnabled=!1)}this.manager.stop();(G=this.manager.audioPlayer)!=null&&(G.JSC$21664_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.w.handleSpeechQueryCompleteAction=function(G){var B=G.navigationAction;B&&(G.trackingParams&&_.Rh().graftServerVe(G.trackingParams,this.dialogVe,5),_.cZ(this.hostElement,"yt-navigate",{endpoint:B,tempData:this.getNavigationParams(B),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.w.onExitButtonClick=function(){this.closeDialog()};
_.w.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var G;if((G=this.manager)!=null){var B;(B=G.audioPlayer)==null||Tw(B,"failure");G.setState("microphone-off");G.stop()}}else(G=this.manager)==null||G.start()};
_.w.transcriptionChanged=function(){var G,B;(((G=this.transcription)==null?0:G.low)||((B=this.transcription)==null?0:B.high))&&this.setState("transcribing",this.transcription)};
_.w.stateChanged=function(){this.setState(this.state,this.transcription)};
_.w.logDialog=function(){var G;(G=this.data)!=null&&G.trackingParams&&(G=_.Rh(),_.t9(G,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=G.graftServerVe(this.data.trackingParams,void 0,5))};
_.w.getNavigationParams=function(G){var B={};if(_.X("web_yt_searchbox")){var F=JTa();F.inputMethodsTracker.add(6);F=IqC(F,15);B.gs_l=F;var D;B.oq=((D=_.Q(G,_.P2))==null?void 0:D.query)||""}else if(G=window.ytvoicesearchloggingparams){if(G=G())B.oq=G.oq,B.gs_l=G.gs_l}else _.Ae(Error("lm"));return B};
_.w.closeDialog=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.w.setState=function(G,B){if(this.data){var F=this.data,D={};switch(G){case "listening":D={headerText:F.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:F.microphoneButtonAriaLabel};break;case "timeout":D={headerText:F.promptHeader,microphoneState:"try-again",microphoneLabel:F.promptMicrophoneLabel,microphoneAriaLabel:F.promptMicrophoneLabel};break;case "microphone-off":D={headerText:F.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:F.promptMicrophoneLabel,
microphoneAriaLabel:F.promptMicrophoneLabel};break;case "transcribing":(B==null?0:B.low)||(B==null?0:B.high)?D={transcriptionLow:B==null?void 0:B.low,transcriptionHigh:B==null?void 0:B.high,microphoneState:"speaking",microphoneAriaLabel:F.microphoneButtonAriaLabel}:D={headerText:F.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:F.microphoneButtonAriaLabel};break;case "processing":D={headerText:F.loadingHeader,microphoneState:"processing",microphoneAriaLabel:F.microphoneButtonAriaLabel};
break;case "offline":D={headerText:F.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:F.connectionErrorMicrophoneLabel,microphoneAriaLabel:F.connectionErrorMicrophoneLabel};break;case "permission":D={headerText:F.permissionsHeader,bodyLine1:F.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:F.permissionsSubtext};break;case "permission-denied":D={headerText:F.disabledHeader,bodyLine1:F.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:F.disabledSubtext}}D.className=
G;this.speechOverlayState=D;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.w.setMicrophoneState=function(G){var B=this.isLevelAnimating;this.isLevelAnimating=G==="speaking";!B&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=G==="processing"&&!this.noAnimations};
_.w.setClass=function(G){this.speechOverlayClassName&&_.tV(this.hostElement,this.speechOverlayClassName,!1);G&&(this.speechOverlayClassName=G,_.tV(this.hostElement,G,!0))};
_.w.runLevelAnimation=function(){var G=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var B=1+Math.random()*.75,F=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+F/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+B+")");_.Lu.addJob(function(){G.runLevelAnimation()},3,F)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
$U.prototype.stateChanged=$U.prototype.stateChanged;$U.prototype.transcriptionChanged=$U.prototype.transcriptionChanged;$U.prototype.onPopupClosed=$U.prototype.onPopupClosed;$U.prototype.dataChanged=$U.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],$U.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],$U.prototype,"rendererStamperBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],$U.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],$U.prototype,"eventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],$U.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],$U.prototype,"speechOverlayState",void 0);
_.c([_.v(),_.I("design:type",Object)],$U.prototype,"microphoneSpinnerActive",void 0);_.c([_.v({type:_.X("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.I("design:type",Object)],$U.prototype,"noAnimations",void 0);_.c([_.v({selector:function(G){var B;return(B=G.voiceSearch)==null?void 0:B.transcription}}),
_.I("design:type",Object)],$U.prototype,"transcription",void 0);_.c([_.v({selector:function(G){var B;return(B=G.voiceSearch)==null?void 0:B.overlay}}),
_.I("design:type",String)],$U.prototype,"state",void 0);_.c([_.v(),_.I("design:type",Object)],$U.prototype,"boundExitClick",void 0);_.c([_.iA("#microphone-levels"),_.I("design:type",HTMLElement)],$U.prototype,"level",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$U.prototype,"dataChanged",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$U.prototype,"onPopupClosed",null);
_.c([_.Ry("transcription"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$U.prototype,"transcriptionChanged",null);_.c([_.Ry("state"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$U.prototype,"stateChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],$U);
_.d($U,"ytd-voice-search-dialog-renderer",function(){if(jqX!==void 0)return jqX;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return jqX=G},{mode:1});var tNC;var z5=function(){var G=_.p.apply(this,arguments)||this;G.isOverlay=!1;G.hidden=!1;return G};
_.r(z5,_.p);_.w=z5.prototype;_.w.onPopupClosed=function(){this.toggleIconState(!1)};
_.w.computeIcon=function(){var G,B,F;return(B=_.Q((G=this.data)==null?void 0:G.icon,tc2))==null?void 0:(F=B.icon)==null?void 0:F.iconType};
_.w.computeIconBadgeShape=function(){var G;return{iconBadgeType:"cart",iconBadgeText:(G=this.iconBadgeEntity)==null?void 0:G.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.w.onClick=function(){var G;(G=this.data)!=null&&G.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.w.computeHidden=function(G){return!G};
_.w.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
z5.prototype.onPopupClosed=z5.prototype.onPopupClosed;_.c([_.k(_.hf),_.I("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],z5.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],z5.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],z5.prototype,"isOverlay",void 0);
_.c([_.v({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.I("design:type",Object)],z5.prototype,"hidden",void 0);_.c([_.v({selectorArgs:["data.iconBadgeEntityKey"],selector:function(G,B){return _.g5(G.entities,"iconBadgeEntity",B)}}),
_.I("design:type",Object)],z5.prototype,"iconBadgeEntity",void 0);_.c([_.iA("yt-icon-button"),_.I("design:type",HTMLButtonElement)],z5.prototype,"iconButton",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],z5.prototype,"onPopupClosed",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],z5);
_.d(z5,"ytd-icon-badge-topbar-button-renderer",function(){if(tNC!==void 0)return tNC;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return tNC=G},{mode:1});var Z7z;var bb=function(){var G=_.p.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.r(bb,_.p);bb.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.ZN.Object.defineProperties(bb.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],bb.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Array)],bb.prototype,"premiumOptions",void 0);_.c([_.O("premiumOptions"),_.I("design:type",Object),_.I("design:paramtypes",[])],bb.prototype,"hasPremiumOptions",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],bb);
_.d(bb,"ytd-offline-promo-content",function(){if(Z7z!==void 0)return Z7z;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Z7z=G},{mode:1});var gvy;var Vb=function(){var G=_.p.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.r(Vb,_.p);Vb.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G;this.premiumOptions=G6D((G=this.data)==null?void 0:G.formats)};
Vb.prototype.onClickSubmit=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var G;(G=_.AZ())==null||G.pause()};
Vb.prototype.attached=function(){this.JSC$22829_scroller&&(this.JSC$22829_scroller.dialogElement=this.hostElement.parentNode)};
_.ZN.Object.defineProperties(Vb.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Vb.prototype.dataChanged=Vb.prototype.dataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Vb.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Vb.prototype,"data",void 0);
_.c([_.v({computed:"computeIcon_(data.headersIcon)",value:""}),_.I("design:type",String)],Vb.prototype,"headersIcon",void 0);_.c([_.v(),_.I("design:type",Array)],Vb.prototype,"premiumOptions",void 0);_.c([_.iA("#scroller"),_.I("design:type",Object)],Vb.prototype,"JSC$22829_scroller",void 0);_.c([_.O("headersIcon"),_.I("design:type",Object),_.I("design:paramtypes",[])],Vb.prototype,"showIcon",null);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Vb.prototype,"dataChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Vb);
_.d(Vb,"ytd-offline-promo-renderer",function(){if(gvy!==void 0)return gvy;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return gvy=G},{mode:1});var SG6;var vD=function(){var G=_.p.apply(this,arguments)||this;G.playbackPauseInterval=NaN;G.isLoading=!1;G.hasError=!1;G.dialogClass="";G.youtubeLabel=_.G7("LOGO_ALT_LABEL",{},"YouTube Home");G.logoName="yt-logos-ext:yt-logo-updated";G.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return G};
_.r(vD,_.p);_.w=vD.prototype;_.w.onDataChange=function(){var G;if(this.showEOMV1Text=!((G=this.data)==null||!G.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.w.attached=function(){this.pausePlayer()};
_.w.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.w.handleLangSelect=function(G){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[G.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.w.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.w.handleSaveConsent=function(G){var B=this;this.showLoadingSpinner();this.showLoadingSpinner();t_D(_.Q(G,bUQ)).catch(function(F){_.em(new _.Uf("Something went wrong when save consent "+(F.message?F.message:F)+"."));B.hideLoadingSpinner();B.showErrorMessage()})};
_.w.handleDisablePersonalization=function(G){var B=this;this.showLoadingSpinner();ZrU(_.Q(G,zm$)).then(function(){B.dialog.close();B.resumePlayer()}).catch(function(F){_.em(new _.Uf("Something went wrong when disable personalization "+(F.message?F.message:F)+"."));
B.hideLoadingSpinner();B.showErrorMessage()})};
_.w.showLoadingSpinner=function(){var G=this;this.showSpinnerJobId=_.Lu.addLowPriorityJob(function(){G.isLoading=!0},500)};
_.w.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Lu.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.w.showErrorMessage=function(){var G=this;this.hasError=!0;_.Lu.addLowPriorityJob(function(){G.hasError=!1},2E3)};
_.w.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.FB(function(){try{var G=_.AZ();G&&G.pause()}catch(B){}},100))};
_.w.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var G=_.AZ();G&&G.play()}catch(B){}};
_.ZN.Object.defineProperties(vD.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var B=["SHIELD","WARNING","BAR_CHART"],F=this.data.eomV1Text.essentialCookieMsg.items,D=0;D<B.length&&D<F.length;D++)G.push({icon:B[D],text:F[D]});return G}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var B=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],F=this.data.eomV1Text.nonEssentialCookieMsg.items,D=0;D<B.length&&D<F.length;D++)G.push({icon:B[D],text:F[D]});return G}}});
vD.prototype.onDataChange=vD.prototype.onDataChange;_.c([_.v(),_.I("design:type",Object)],vD.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],vD.prototype,"showEOMV1Text",void 0);_.c([_.v(),_.I("design:type",Object)],vD.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Object)],vD.prototype,"hasError",void 0);_.c([_.v(),_.I("design:type",Number)],vD.prototype,"showSpinnerJobId",void 0);_.c([_.v(),_.I("design:type",Object)],vD.prototype,"dialogClass",void 0);
_.c([_.iA("#dialog"),_.I("design:type",Object)],vD.prototype,"dialog",void 0);_.c([_.iA("#cb-header"),_.I("design:type",HTMLElement)],vD.prototype,"header",void 0);_.c([_.iA("#lang-select"),_.I("design:type",HTMLElement)],vD.prototype,"langSelect",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],vD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],vD.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.I("design:type",String)],vD.prototype,"youtubeLabel",void 0);_.c([_.v(),_.I("design:type",Object)],vD.prototype,"logoName",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],vD.prototype,"onDataChange",null);_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],vD.prototype,"eomEssentialCookieMsgItems",null);
_.c([_.O("data"),_.I("design:type",Array),_.I("design:paramtypes",[])],vD.prototype,"eomNonEssentialCookieMsgItems",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],vD);
_.d(vD,"ytd-consent-bump-v2-lightbox",function(){if(SG6!==void 0)return SG6;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return SG6=G},{mode:1});var sqz;var ow=function(){return _.p.apply(this,arguments)||this};
_.r(ow,_.p);ow.prototype.ready=function(){if(!_.y5()||zdQ)var G=!0;else zdQ=!0,G=!1;G||(G=document.querySelector("ytd-app"),G||(G=document.body),this.internalLightBox=_.IF(G).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.c([_.v(),_.I("design:type",Object)],ow.prototype,"data",void 0);_.c([_.iA("#lightbox"),_.I("design:type",Object)],ow.prototype,"lightBox",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],ow);
_.d(ow,"ytd-consent-bump-v2-renderer",function(){if(sqz!==void 0)return sqz;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return sqz=G},{mode:1});var x8C;var PyM;var G$C;var MJ=function(){return _.p.apply(this,arguments)||this};
_.r(MJ,_.p);_.w=MJ.prototype;_.w.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Y9U(this.toastManager,this.toastType)};
_.w.open=function(G){this.toast&&(this.ephemeralAction&&_.te().resolve(_.XI).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=G!=null?G:0,this.toastManager.enqueue(this.toast,G)):this.toast.open())};
_.w.close=function(G){var B;(B=this.toast)==null||B.close();this.toastManager&&G===1&&Y9U(this.toastManager,G)};
_.w.refit=function(){var G;(G=this.toast)==null||G.refit()};
_.w.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var G;(G=this.toast)==null||G.close()}};
_.w.setVerticalOffset=function(G){this.toast&&(this.toast.verticalOffset=G,this.toast.fit())};
_.w.computeButtonClass_=function(G){return G?"toast-button":""};
_.w.computeText_=function(G){return _.zx(G)};
_.w.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Oe("toast-opened-changed",this.toastOpened))};
_.w.updateToastOpenedFromBinding=function(G){this.toastOpened=G.detail.value};
_.ZN.Object.defineProperties(MJ.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var G,B,F=(G=this.data)==null?void 0:(B=G.actionButton)==null?void 0:B.buttonRenderer;return(F==null?void 0:F.command)||(F==null?void 0:F.serviceEndpoint)||(F==null?void 0:F.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var G=[],B;((B=this.data)==null?0:B.responseText)&&G.push(_.zx(this.data.responseText));var F;((F=this.data)==null?0:F.subText)&&G.push(_.zx(this.data.subText));var D,u;if((D=this.data)==null?0:(u=D.actionButton)==null?0:u.buttonRenderer){var R,N;G.push(((R=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(N=R.accessibilityData)==null?void 0:N.label)||_.zx(this.data.actionButton.buttonRenderer.text))}return G.filter(function(y){return y}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var G,B;return(B=(G=this.toast)==null?void 0:G.opened)!=null?B:!1}}});
MJ.prototype.toastOpenedChangedForBinding=MJ.prototype.toastOpenedChangedForBinding;MJ.prototype.toastOpenedChanged=MJ.prototype.toastOpenedChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],MJ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],MJ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],MJ.prototype,"duration",void 0);
_.c([_.v(),_.I("design:type",Number)],MJ.prototype,"toastType",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],MJ.prototype,"useCloseButton",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],MJ.prototype,"closeToastOnActionButtonClick",void 0);_.c([_.v({value:function(){return _.G7("SBOX_INAPPROPRIATE_CANCEL")}}),
_.I("design:type",String)],MJ.prototype,"closeButtonAriaLabel",void 0);_.c([_.v(),_.I("design:type",Boolean)],MJ.prototype,"toastOpened",void 0);_.c([_.v(),_.I("design:type",Boolean)],MJ.prototype,"hasOpened",void 0);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],MJ.prototype,"command",null);_.c([_.O("labelText","command","duration"),_.I("design:type",Object),_.I("design:paramtypes",[])],MJ.prototype,"ephemeralAction",null);
_.c([_.O("ephemeralAction"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],MJ.prototype,"hasEphemeralAction",null);_.c([_.iA("#toast"),_.I("design:type",Object)],MJ.prototype,"toast",void 0);_.c([_.v({value:function(){return{style:"call-to-action-inverse"}}}),
_.I("design:type",Object)],MJ.prototype,"buttonOverrides",void 0);_.c([_.v({value:{style:"mono-inverse"}}),_.I("design:type",Object)],MJ.prototype,"closeButtonOverrides",void 0);_.c([_.v({value:function(){return _.te().resolve(_.fH(_.am))}}),
_.I("design:type",Object)],MJ.prototype,"toastManager",void 0);_.c([_.O("data.responseText","data.subText","data.actionButton"),_.I("design:type",Object),_.I("design:paramtypes",[])],MJ.prototype,"labelText",null);_.c([_.Ga("toastOpened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],MJ.prototype,"toastOpenedChanged",null);
_.c([_.Ga("toastOpened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],MJ.prototype,"toastOpenedChangedForBinding",null);_.c([_.ay({is:"yt-notification-action-renderer",disableElementRegistration:!0})],MJ);
_.d(MJ,"yt-notification-action-renderer",function(){if(G$C===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;PyM===void 0&&(PyM=document.createElement("template"));var D=PyM;F.call(B,D.content.cloneNode(!0),G.content.firstChild);G$C=G}G=G$C;return G},{mode:2});var p_=function(){var G=_.p.apply(this,arguments)||this;G.duration=4E3;G.downloadingCount=0;G.downloadedCount=0;G.downloadingOnlySmartDownloads=!1;G.sessionTotalDownloads=0;G.sessionDownloaded=0;G.previousSessionsDownloaded=0;G.totalDownloadPercentage=0;G.currentDownloadProgress=0;G.currentDownloadPercentage=0;G.isLeaderTab=!0;G.isFullScreen=!1;G.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};G.boundBeforeUnload=function(B){G.isLeaderTab&&G.downloadingCount>0&&(B.preventDefault(),
B.returnValue=!0)};
return G};
_.r(p_,_.p);_.w=p_.prototype;
_.w.open=function(){this.updateDownloadState();if(this.data){var G=this.sessionDownloaded+1,B=this.sessionTotalDownloads>1?_.G7("VIDEOS_DOWNLOADING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+G+"/"+this.sessionTotalDownloads):_.G7("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(B=this.sessionTotalDownloads>1?_.G7("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
G+"/"+this.sessionTotalDownloads):_.G7("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));G=this.isLeaderTab?_.G7("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.zx(this.data.responseText)!==B||_.zx(this.data.subText)!==G)this.set("data.responseText",_.$9(B)),this.set("data.subText",_.$9(G)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.w.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.w.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.w.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.w.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var G=this.downloadedCount-this.previousSessionsDownloaded;G<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-G);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.w.handleFullscreenChange=function(G){(this.isFullScreen=G)||this.updatePopup()};
p_.prototype.updateCurrentDownloadProgress=p_.prototype.updateCurrentDownloadProgress;p_.prototype.updatePopup=p_.prototype.updatePopup;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],p_.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],p_.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],p_.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"duration",void 0);_.c([_.v({selector:function(G){return _.vYo(G.entities).length}}),
_.I("design:type",Object)],p_.prototype,"downloadingCount",void 0);_.c([_.v({selector:mW$}),_.I("design:type",Object)],p_.prototype,"downloadedCount",void 0);_.c([_.v({selector:function(G){var B=_.vYo(G.entities);return EyD(G.entities,B)}}),
_.I("design:type",Object)],p_.prototype,"downloadingOnlySmartDownloads",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"sessionTotalDownloads",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"sessionDownloaded",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"previousSessionsDownloaded",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"totalDownloadPercentage",void 0);
_.c([_.v({selector:function(G){var B;G=(B=_.vYo(G.entities))!=null?B:[];return G.length>0?_.LFL(G.slice(-1)):0}}),
_.I("design:type",Object)],p_.prototype,"currentDownloadProgress",void 0);_.c([_.v(),_.I("design:type",Object)],p_.prototype,"currentDownloadPercentage",void 0);_.c([_.v({selector:_.Afg}),_.I("design:type",Object)],p_.prototype,"isLeaderTab",void 0);_.c([_.iA("yt-notification-action-renderer"),_.I("design:type",Object)],p_.prototype,"notificationActionRenderer",void 0);
_.c([_.Ry("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p_.prototype,"updatePopup",null);_.c([_.Ry("currentDownloadProgress"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],p_.prototype,"updateCurrentDownloadProgress",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],p_);
_.d(p_,"ytd-video-download-toast-renderer",function(){if(x8C!==void 0)return x8C;var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return x8C=G},{mode:1});var B$a;var iNa;var YU=function(){return _.p.apply(this,arguments)||this};
_.r(YU,_.p);YU.prototype.computeIsRedLogo=function(G,B){!G&&B&&(G=B);return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
YU.prototype.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],YU.prototype,"componentBehavior",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.I("design:type",Boolean)],YU.prototype,"isRedLogo",void 0);_.c([_.v({computed:"computeLogoName(data)"}),_.I("design:type",String)],YU.prototype,"logoName",void 0);_.c([_.v({value:{}}),_.I("design:type",Object)],YU.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],YU.prototype,"logoType",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-logo"})],YU);
_.d(YU,"ytd-logo",function(){if(iNa!==void 0)return iNa;var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return iNa=G},{mode:2});var Ay=function(){var G=_.p.apply(this,arguments)||this;G.animationRef={};return G};
_.r(Ay,_.p);_.w=Ay.prototype;_.w.attached=function(){document.addEventListener("yt-navigate-finish",_.x7(this,this.logYoodle))};
_.w.detached=function(){document.removeEventListener("yt-navigate-finish",_.x7(this,this.logYoodle))};
_.w.logYoodle=function(){var G,B;if((G=this.data)==null?0:(B=G.loggingDirectives)==null?0:B.trackingParams)this.ytRendererBehavior.markDirty(),_.Rh().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.w.computeHideImg=function(G,B){return!!G||!!B};
_.w.computeHideYtdLogo=function(G,B){return!G||!!B};
_.w.computeHideLottie=function(G){return!G};
_.w.computeIsRedLogo=function(G){return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
_.w.renderLogoEntity=function(){var G=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),B=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),F=this.getLogoTitleText(this.data),D=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==G&&(this.url=G);this.animatedUrl!==B&&(this.animatedUrl=B);this.logoTitleText!==F&&(this.logoTitleText=F);this.lottieUrl!==D&&(this.lottieUrl=D,this.lottiePlayerProps=this.computeLottiePlayerProps(D))};
_.w.getSanitizedThumbnail=function(G){return G&&G.thumbnails?_.Nbs(G.thumbnails,122)||"":""};
_.w.getThumbnailUrl=function(G,B){if(!B)return"";var F,D;G=G?(F=B.darkThemeLogo)==null?void 0:F.thumbnail:(D=B.lightThemeLogo)==null?void 0:D.thumbnail;return this.getSanitizedThumbnail(G)};
_.w.getAnimatedThumbnailUrl=function(G,B){return B?this.getSanitizedThumbnail(G?B.darkThemeAnimatedLogo:B.lightThemeAnimatedLogo):""};
_.w.getLogoTitleText=function(G){if(G)return _.zx(G.tooltipText)};
_.w.computeLogoIcon=function(G,B){if(B){var F,D;return G?(F=B.darkThemeLogo)==null?void 0:F.icon:(D=B.lightThemeLogo)==null?void 0:D.icon}};
_.w.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.w.getLottieUrl=function(G,B){var F,D,u,R;return G?B==null?void 0:(F=B.darkThemeLogo)==null?void 0:(D=F.lottieAnimation)==null?void 0:D.url:B==null?void 0:(u=B.lightThemeLogo)==null?void 0:(R=u.lottieAnimation)==null?void 0:R.url};
_.w.computeLottiePlayerProps=function(G){if(G){var B;if((B=this.animationRef)==null?0:B.lottieEl){var F;(F=this.animationRef)==null||F.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:G,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.w.onLottieError=function(){this.data&&this.lottieUrl&&_.cZ(this.hostElement,"yoodle-error")};
_.w.onImgError=function(){this.data&&!this.lottieUrl&&_.cZ(this.hostElement,"yoodle-error")};
Ay.prototype.playAnimation=Ay.prototype.playAnimation;Ay.prototype.renderLogoEntity=Ay.prototype.renderLogoEntity;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ay.prototype,"data",void 0);_.c([_.v({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.I("design:type",Boolean)],Ay.prototype,"hideImg",void 0);
_.c([_.v({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.I("design:type",Boolean)],Ay.prototype,"hideYtdLogo",void 0);_.c([_.v({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.I("design:type",Boolean)],Ay.prototype,"hideLottie",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.I("design:type",Boolean)],Ay.prototype,"isRedLogo",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Ay.prototype,"useDarkThemeYoodle",void 0);_.c([_.v(),_.I("design:type",String)],Ay.prototype,"url",void 0);_.c([_.v(),_.I("design:type",String)],Ay.prototype,"animatedUrl",void 0);_.c([_.v(),_.I("design:type",String)],Ay.prototype,"logoTitleText",void 0);_.c([_.v({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.I("design:type",Object)],Ay.prototype,"logoIcon",void 0);_.c([_.v(),_.I("design:type",Object)],Ay.prototype,"logoType",void 0);
_.c([_.v(),_.I("design:type",String)],Ay.prototype,"lottieUrl",void 0);_.c([_.v(),_.I("design:type",Object)],Ay.prototype,"lottiePlayerProps",void 0);_.c([_.v(),_.I("design:type",Object)],Ay.prototype,"animationRef",void 0);_.c([_.Ga("data"),_.Ga("useDarkThemeYoodle"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ay.prototype,"renderLogoEntity",null);
_.c([_.Pm("click"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],Ay.prototype,"playAnimation",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Ay);
_.d(Ay,"ytd-yoodle-renderer",function(){if(B$a!==void 0)return B$a;var G=document.createElement("template");_.H(G,'\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 class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return B$a=G},{mode:2});var FUC;var DHe;var uDa=_.OY.currentPageTypeSelector,RBX=_.OY.currentPageSubTypeSelector,dx=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return G};
_.r(dx,_.p);_.w=dx.prototype;_.w.onYoodleError=function(){_.X("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.w.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.w.computeTitle=function(G,B,F){return F&&(B==null?0:B.tooltipText)?_.zx(B.tooltipText):_.zx(G)};
_.w.computeAriaLabel=function(G,B,F){return F&&(B==null?0:B.tooltipText)?_.zx(G):""};
_.w.computeShowYoodle=function(G,B,F){return!G||!B&&!!F&&!_.UK.isEmpty(F)};
_.w.onNavigateHomeAction=function(){if(_.X("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G;(G=_.IF(this.hostElement).querySelector(".yt-simple-endpoint"))==null||G.click()}};
_.w.computeLogoHref=function(G,B,F){var D;(F==null?0:F.onTapCommand)?D=this.componentBehavior.computeHref_(F.onTapCommand):G&&(D=this.componentBehavior.computeHref_(G));return D?D:B};
_.w.computeCommand=function(G,B){return(B==null?void 0:B.onTapCommand)||G};
_.w.getEndpointForm=function(){if(_.X("kevlar_topbar_disable_cache_only_home")){var G=_.te().resolve(_.Ep),B=uDa(G.getState())||"";G=RBX(G.getState())||"";return{disableCache:B==="ytd-browse"&&G==="home"}}return{disableCache:!0}};
dx.prototype.onYoodleError=dx.prototype.onYoodleError;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],dx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],dx.prototype,"componentBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],dx.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],dx.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],dx.prototype,"countryCode",void 0);_.c([_.v({selectorArgs:["data.overrideEntityKey"],selector:function(G,B){return _.g5(G.entities,"logoEntity",B)}}),
_.I("design:type",Object)],dx.prototype,"logoEntity",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.I("design:type",Boolean)],dx.prototype,"showYoodle",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],dx.prototype,"yoodleError",void 0);_.c([_.v({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.I("design:type",String)],dx.prototype,"titleText",void 0);
_.c([_.v({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.I("design:type",String)],dx.prototype,"ariaLabelText",void 0);_.c([_.v({value:"/"}),_.I("design:type",String)],dx.prototype,"defaultEndpointUrl",void 0);_.c([_.v({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.I("design:type",String)],dx.prototype,"endpointUrl",void 0);
_.c([_.v({computed:"computeCommand(data.endpoint, logoEntity)"}),_.I("design:type",String)],dx.prototype,"command",void 0);_.c([_.v(),_.I("design:type",Object)],dx.prototype,"logoType",void 0);_.c([_.v({}),_.I("design:type",Boolean)],dx.prototype,"useDarkThemeYoodle",void 0);_.c([_.Pm("yoodle-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],dx.prototype,"onYoodleError",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],dx);
_.d(dx,"ytd-topbar-logo-renderer",function(){if(DHe!==void 0)return DHe;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return DHe=G},{mode:2});var wSz=0;var CGX=L6.SEARCH_APPEND_LABEL,N$y=L6.SUGGESTION_NEW_VIDEOS_TEXT,y2X=L6.SUGGESTION_THUMBNAIL_LABEL,nDC=L6.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,lZj=_.Y(function(G){function B(f7){var M8,NH;return _.n(function(Jj){if(Jj.nextAddress==1)return M8=new Request(f7),_.b5(Jj,2),Jj.yield(fetch(M8,{credentials:"include"}),4);if(Jj.nextAddress!=2)return KQ(!0),_.oY(Jj,0);NH=_.Al(Jj);_.em(NH);_.di(Jj)})}
var F=G.isHighlighted;var D=G.suggestion;var u=G.onClickCallback;var R=G.onHoverUpdateCallback;var N=G.labels;var y=G.queryBuilderFunction;var U=G.onRemoveCallback;var q=G.suggestionIndex;var h=G.generateUniqueId;var K=G.highlightedId;var a=G.useScrollMargin;var m=G.isKeyboardMode;var L=null,W=null,e=null,b=_.W5("div"),M=_.W5("span");G=_.C(_.qg(!1,void 0,"LafNkf"));var t=G.next().value,T=G.next().value,A=_.H5("a",function(f7){f7&&_.Ed(237477,f7,W,function(M8){W=M8})}),Z=_.H5("button",function(f7){f7&&
_.Ed(237477,f7,W,function(M8){W=M8})}),P=_.H5("div",function(f7){f7&&_.Ed(281939,f7,e,function(M8){e=M8})}),RI=_.gJ(function(f7){if((f7==null?void 0:f7.button)===2)return f7.preventDefault(),!1;
var M8=_.qW();M8&&L&&_.z7(M8,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var NH;u(f7,D().text,D().index,D().entityMid,f7==null?void 0:(NH=f7.detail)==null?void 0:NH.wasSelectedByKeyboard);return!1}),yo=function(){return D().type===35},hg=function(){return _.X("desktop_enable_single_suggestion_highlight")},US=function(){return _.sD("desktop_suggestions_panel_row_height")||0},aI=function(){var f7;
return _.X("desktop_enable_new_video_metadata")&&((f7=D())==null?void 0:f7.hasNewVideo)===!0},v6=function(){return _.X("desktop_enable_visual_suggest")},Jg=function(){return _.X("desktop_enable_entity_suggest")&&_.MN3(D())},c6=function(){return D().entitySubtitle},q8=function(){return hg()?(F==null?void 0:F())||Zq()&&!(m==null?0:m()):(F==null?void 0:F())||Zq()},n7=function(){var f7=_.v5("SBOX_SETTINGS");
return yo()&&!(f7==null?0:f7.HIDE_REMOVE_LINK)},Ts=function(){return _.psm(D(),{useEntityName:Jg()})},hT,L7=!((hT=_.te().resolve(_.fH(_.Rx)))==null||!hT()),K7=function(){return yo()?_.X("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},kD=function(){return N==null?void 0:N().SUGGESTION_DISMISS_LABEL},Rz=function(){return N==null?void 0:N().SUGGESTION_DISMISSED_LABEL};
G=_.C(_.qg(!1,void 0,"JyfUlf"));hT=G.next().value;var KQ=G.next().value;G=_.C(_.qg(!1,void 0,"QKfAGe"));var pQ=G.next().value,aq=G.next().value,Zq=pQ,eN=_.gJ(function(){y(M.value.innerText);return!1}),Ps=_.gJ(function(f7){f7.preventDefault();
return!1}),el=_.gJ(function(f7){var M8=D().text,NH=_.v5("SBOX_SETTINGS"),Jj="https://"+(NH.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Jj+="&delq="+encodeURIComponent(M8);(M8=NH==null?void 0:NH.PSUGGEST_TOKEN)&&(Jj+="&tok="+M8);(NH=NH==null?void 0:NH.SESSION_INDEX)&&(Jj+="&authuser="+NH);B(Jj);f7.preventDefault();(f7=_.qW())&&W&&_.z7(f7,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");U(q==null?void 0:q());return!1}),sG=_.gJ(function(){if(hg()&&(m==null?0:m()))return!1;
aq(!0);R(!0);return!1}),qH=_.gJ(function(){aq(!1);
R(!1);return!1}),TL=_.gJ(function(){T(!0);
return!1}),Iz=_.gJ(function(){T(!1);
return!1}),N8=_.gJ(function(f7){f7.preventDefault();
if(D().entityThumbnailAttributionUrl){e&&_.S0(_.Rh(),e);var M8=D().entityThumbnailAttributionUrl;f7=D().entityName;var NH={dismissDialogEndpoint:{}};M8={commandExecutorCommand:{commands:[NH,{urlEndpoint:{url:M8,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:M8}}}]}};NH={buttonViewModel:{title:_.G7("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:NH}}};M8={buttonViewModel:{title:_.G7("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:M8}}};f7={dialogHeaderViewModel:{headline:{content:f7!=null?f7:_.G7("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var Jj={basicContentViewModel:{paragraphs:[{text:{content:_.G7("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};f7={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:f7,footer:{panelFooterViewModel:{primaryButton:M8,
secondaryButton:NH,shouldHideDivider:!0}},content:Jj}}}}};_.te().resolve(_.Wr).resolveCommand(f7)}return!1});
G=_.C(_.qg("",void 0,"MvIBn"));var EA=G.next().value,EG=G.next().value;_.eR(function(){n7()&&EG(h==null?void 0:h(q==null?void 0:q()));b.value&&_.Ed(12453,b.value,L,function(f7){L=f7})});
return _.l(_.E,{cond:hT,then:function(){var f7={};return _.l("div",{class:_.tx("ytSuggestionComponentRemovedText",(f7.ytSuggestionComponentLargerRemovedText=function(){return v6()},f7)),
style:function(){return US()>0?"height: "+US()+"px;":""},
role:"button"},Rz)},
else:function(){var f7={},M8={};return _.l("div",{class:_.tx("ytSuggestionComponentSuggestion",(f7.ytSuggestionComponentSuggestionHover=function(){return!hg()},f7.ytSuggestionComponentHighlighted=q8,f7.ytSuggestionComponentPersonalizedSuggestion=yo,f7.ytSuggestionComponentMweb=!1,f7.ytSuggestionComponentLargerSuggestion=function(){return aI()||v6()},f7.ytSuggestionComponentThumbnailSuggestion=function(){return v6()},f7.ytSuggestionComponentRoundedSuggestion=function(){return _.X("desktop_enable_scrollable_suggestions_panel")&&
_.X("desktop_enable_suggestions_panel_padding")},f7.ytSuggestionComponentThumbnailPadding=function(){return v6()&&!yo()},f7)),
style:function(){return US()>0?"height: "+US()+"px;":""},
role:"presentation","on:mousedown":RI,"on:mouseover":sG,"on:mouseout":qH,el:b},_.l("div",{class:_.tx("ytSuggestionComponentText",(M8.ytSuggestionComponentScrollMargin=a,M8)),"aria-label":function(){return aI()?D().text+" "+N$y:D().text},
id:function(){return h==null?void 0:h(q==null?void 0:q())},
"on:mousedown":RI,role:"option"},_.l(_.E,{cond:function(){return D().type!==33},
then:function(){return _.l(_.Pr,{icon:K7,className:"ytSuggestionComponentIcon"})}}),_.l("div",{class:"ytSuggestionComponentLeftContainer"},_.l("span",{el:M,
role:"button",tabindex:0},_.l(_.jR,{each:Ts},function(NH){return NH.bold?_.l("span",{class:"ytSuggestionComponentBold"},NH.text):_.l("span",null,NH.text)})),_.l(_.E,{cond:function(){return Jg()&&!!D().entitySubtitle||aI()},
then:function(){return _.l("div",{class:"ytSuggestionComponentMetadataContainer"},_.l(_.E,{cond:function(){return Jg()&&!!D().entitySubtitle},
then:function(){return _.l("div",{class:"ytSuggestionComponentEntitySubtitle"},c6)}}),_.l(_.E,{cond:function(){return aI()},
then:function(){return _.l("div",{class:"ytSuggestionComponentNewVideoContainer"},_.l("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.l("div",{class:"ytSuggestionComponentNewVideoText"},N$y))}}))}}))),_.l("div",{class:"ytSuggestionComponentRightContainer"},_.l(_.E,{cond:function(){return v6()&&D().visualSuggestUrl!==void 0},
then:function(){var NH={};return _.l("div",{class:"ytSuggestionComponentThumbnailContainer"},_.l("img",{"aria-label":y2X,class:_.tx("ytSuggestionComponentVisualSuggestThumbnail",(NH.ytSuggestionComponentCircularFrame=function(){return Jg()&&D().subtypes.includes(790)},NH.ytSuggestionComponentEntitySuggestThumbnail=function(){return Jg()},NH)),
src:function(){return D().visualSuggestUrl}}),_.l(_.E,{cond:function(){return Jg()&&!!D().entityThumbnailAttributionUrl},
then:function(){var Jj={};return _.l("span",{title:nDC,role:"tooltip"},_.l("div",{el:P,"on:mouseover":TL,"on:mouseout":Iz,"on:mousedown":N8,class:_.tx("ytSuggestionComponentThumbnailOverlay",(Jj.ytSuggestionComponentThumbnailOverlayHidden=function(){return!t()},Jj))},_.l(_.Pr,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.l(_.LH,null,_.l(_.Xm,{when:function(){return v6()&&n7()}},function(){var NH={};
return _.l("button",{class:_.tx("ytSuggestionComponentRemoveLinkClearButton",(NH.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return EA()&&EA()===(K==null?void 0:K())},NH.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!q8()},NH)),
el:Z,"on:mousedown":el,"aria-label":kD,id:function(){return EA()}},_.l(_.Pr,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.l(_.Xm,{when:function(){return!(v6()&&D().visualSuggestUrl!==void 0)&&n7()}},function(){var NH={};
return _.l("a",{class:_.tx("ytSuggestionComponentRemoveLink",(NH.ytSuggestionComponentRemoveLinkDark=L7,NH.ytSuggestionComponentRemoveLinkSelected=function(){return EA()&&EA()===(K==null?void 0:K())},NH)),
el:A,"on:mousedown":el,"aria-label":kD,tabindex:0,role:"button",id:function(){return EA()}},kD)}),_.l(_.Xm,{when:function(){return!1}},function(){return _.l("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":eN,"on:mousedown":Ps,role:"button","aria-label":CGX},_.l(_.Pr,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jl");var UHw=_.vP(["//www.google.com/textinputassistant/","/","_tia.js"]),qAe=_.Y(function(){return _.l("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.l("button",{class:"ytdTextInputAssistantButton","on:click":_.gJ(function(){JTa().inputMethodsTracker.add(3);var G,B=(G=_.v5("SBOX_SETTINGS"))==null?void 0:G.REQUEST_LANGUAGE;if(B)return _.Q9(_.W7(UHw,14,B)),!1})},_.l("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kl");var hBL;_.EDC=function(){this.cache=new Map};
hBL=function(G){for(var B=_.C(G.cache.entries()),F=B.next();!F.done;F=B.next()){var D=_.C(F.value);F=D.next().value;D=D.next().value;D.suggestions.some(function(u){return u.type===35})&&G.cache.delete(F)}};var KUM=L6.SEARCH,aZa=L6.SEARCH_CLEAR_LABEL,mH6=new _.oV("FAKE_SUGGEST_RESPONSE"),XSA=_.Y(function(G){function B(){sG||(sG=setTimeout(function(){TL()},1E3))}
function F(Hs,Ws,d$){if(Hs.trim()){el=Hs;_.Vc("REFINEMENTS_TUPLE",void 0);eN=!0;var RM;Ws=IqC(Rz,Ws);var mt=(RM=G.searchEndpoint)==null?void 0:RM.call(G);_.u3G(Hs,Ws,mt,hT.value.value,d$);TL();hT.value.value=Hs;hT.value.blur();Rz.reset()}}
function D(Hs){return _.n(function(Ws){return Ws.return(new Promise(function(d$){var RM=new XMLHttpRequest;RM.open("GET",_.eUz(Hs),!0);RM.withCredentials=!0;var mt=_.v5("SBOX_SETTINGS");(mt==null?0:mt.SEND_VISITOR_DATA)&&RM.setRequestHeader("X-Goog-Visitor-Id",mt==null?void 0:mt.VISITOR_DATA);RM.onload=function(){d$(RM.responseText)};
RM.onerror=function(){_.em(Error("nm"));d$(null)};
setTimeout(function(){RM.abort()},1E4);
RM.send(null)}))})}
function u(Hs){var Ws,d$,RM,mt;return _.n(function(VQ){switch(VQ.nextAddress){case 1:return Ws={credentials:"include",headers:_.O76()},window.AbortController&&(d$=new AbortController,setTimeout(function(){d$.abort("ytsbox-suggest-timeout")},1E4),Ws.signal=d$.signal),_.b5(VQ,2),VQ.yield(fetch(_.eUz(Hs),Ws),4);
case 4:RM=VQ.yieldResult.text();_.oY(VQ,3);break;case 2:return mt=_.Al(VQ),mt!=="ytsbox-abort-last"&&mt!=="ytsbox-suggest-timeout"&&_.em(mt),VQ.return(null);case 3:return VQ.return(RM)}})}
function R(Hs){var Ws,d$,RM;return _.n(function(mt){switch(mt.nextAddress){case 1:if(Ws=_.te().resolve(_.fH(mH6)))return mt.return(Ws);d$=Date.now();B();return _.X("yt_searchbox_xhr")?mt.yield(D(Hs),5):mt.yield(u(Hs),4);case 4:RM=mt.yieldResult;mt.jumpTo(3);break;case 5:RM=mt.yieldResult;case 3:if(RM){sG&&(clearTimeout(sG),sG=null);var VQ=Rz,c1=d$,cX=Hs.query.length===0;c1=Date.now()-c1;cX?VQ.zeroPrefixRoundTripTime=c1:(VQ.JSC$22809_totalRoundTripTime+=c1,VQ.maxRoundTripTime=Math.max(VQ.maxRoundTripTime,
c1),cX=Math.floor(c1/100),cX>=fqy.length?++VQ.roundTripTimeHistogram[9]:++VQ.roundTripTimeHistogram[fqy[cX]])}return mt.return(RM)}})}
function N(Hs){var Ws,d$,RM;return _.n(function(mt){if(mt.nextAddress==1)return(Ws=kD.cache.get(_.kLM(Hs)))?mt.return(Ws):mt.yield(R(Hs),2);d$=mt.yieldResult;if(d$===null)return mt.return(null);RM=new _.YGS(d$);Hs.query.length===0&&RM.suggestions.length===0||kD.cache.set(_.kLM(Hs),RM);return mt.return(RM)})}
function y(Hs){var Ws,d$;return _.n(function(RM){if(RM.nextAddress==1){Ps=!1;var mt=el;mt=_.ox()==="search"?(_.Be(location.href,"search_query")||_.Be(location.href,"q"))===mt:!1;Ws=new _.H7C(Hs,mt?el:null);return RM.yield(N(Ws),2)}d$=RM.yieldResult;if(d$===null)return RM.return();Ws.query.length===0&&(Rz.zeroPrefixSuggestionCount=d$.suggestions.length);if(Ws.id<=qH)return Rz.outOfSyncResponseCount++,RM.return();if(document.activeElement!==hT.value)return RM.return();qH=Ws.id;var VQ=Rz,c1=d$.rawResponse[2]||
{};VQ.experimentTriggeredBeforeFinal||(VQ.experimentTriggeredBeforeFinal=VQ.experimentTriggeredFinal);VQ.experimentTriggeredFinal=!!c1.e;Rz.updateSuggestions(d$.suggestions);e(-1);c6([]);d$.suggestions!==m()&&Sy(d$.suggestions.length);L(d$.suggestions);RI(d$.suggestions.length>0&&d$.suggestions[0].type===33);K7&&(K7.hidden=d$.suggestions.length===0,P()?(K7.style.minWidth="",VQ=K7.style,c1=(mt=m()[0])==null?void 0:mt.ignoredPrefix,VQ.marginLeft=(c1?Math.min(c1.length*6,L7.value.offsetWidth):0).toString()+
"px"):(K7.style.minWidth=L7.value.offsetWidth+"px",K7.style.marginLeft="0"),HY());_.di(RM)})}
function U(){if(!eN)return!1;var Hs=_.v5("REFINEMENTS_TUPLE"),Ws;return Hs&&((Ws=Hs[1])==null?0:Ws.length)?(Hs=Hs[1].map(function(d$,RM){return new _.ove([d$,0,[71]],hT.value.value,RM)}),m()!==Hs&&Sy(Hs.length),c6([]),L(Hs),Rz.updateSuggestions(Hs),eN=!1,K7.hidden=Hs.length===0,Ps=Hs.length>0,!0):!1}
function q(){var Hs=hT.value.value;(typeof Hs==="string"||Hs instanceof String)&&Hs!==""?T(!0):T(!1)}
function h(){if(_.ox()==="search"){var Hs=window.location.href;try{var Ws=_.Be(Hs,"search_query")||_.Be(Hs,"q")||""}catch(d$){Ws=""}Ws&&(hT.value.value=Ws,T(!0))}}
var K=_.C(_.qg([],void 0,"OC8EPc")),a=K.next().value;K=K.next().value;var m=a,L=K;a=_.C(_.qg(-1,void 0,"t2tVQb"));var W=a.next().value,e=a.next().value;a=_.C(_.qg(-1,void 0,"v0RZCe"));var b=a.next().value,M=a.next().value;a=_.C(_.qg(!1,void 0,"rjAnI"));var t=a.next().value,T=a.next().value;a=_.C(_.qg(!1,void 0,"SyGLvb"));var A=a.next().value,Z=a.next().value;K=_.C(_.qg(!1,void 0,"tL09Cb"));a=K.next().value;K=K.next().value;var P=a,RI=K;K=_.C(_.qg(!1,void 0,"FlH7mc"));a=K.next().value;var yo=K.next().value;
K=_.C(_.qg(!1,void 0,"ea3fwe"));var hg=K.next().value,US=K.next().value;K=_.C(_.qg(1,void 0,"vSK1xe"));var aI=K.next().value,v6=K.next().value;K=_.C(_.qg([],void 0,"ijlw4b"));var Jg=K.next().value,c6=K.next().value;K=_.C(_.qg(!1,void 0,"HcRey"));var q8=K.next().value,n7=K.next().value;K=_.X("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Ts=_.W5("yt-searchbox"),hT=_.W5("input"),L7=_.W5("div"),K7,kD=
new _.EDC,Rz=JTa(),KQ=_.te().resolve(_.fH(_.Rx)),pQ=function(){var Hs;return((Hs=G.forceDarkMode)==null?void 0:Hs.call(G))||!(KQ==null||!KQ())},aq=function(){return _.X("desktop_enable_scrollable_suggestions_panel")},Zq="i"+wSz++,eN=!1,Ps=!1,el="",sG=null,qH=-1,TL=function(){c6([]);
L([]);RI(!1);K7&&(K7.hidden=!0);sG&&(clearTimeout(sG),sG=null);e(-1)},Iz=function(Hs,Ws){Hs.preventDefault();
n7(!0);K7&&(K7.hidden=!1);var d$=W();Hs=m();var RM=Jg();Ws=Rr2(Ws);d$+=Ws;for(d$>=Hs.length?d$=-1:d$<-1&&(d$=Hs.length-1);d$!==-1&&(RM.includes(d$)||d$>=Hs.length||d$<0);)d$+=Ws,d$>=Hs.length&&(d$=-1);e(d$);W()>=0&&(hT.value.value=m()[W()].text,M(0),q(),Hs=W(),RM=b(),(RM=document.getElementById($d[Hs][RM]))&&aq()&&(Hs===m().length-1?K7.scrollTop=K7.scrollHeight:RM.scrollIntoView({block:"nearest",inline:"start"})))},N8=_.gJ(function(Hs){if(!(Hs.relatedTarget instanceof Element&&Hs.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Z(!0);
var Ws;(Ws=G.focusCallback)==null||Ws.call(G,!0);U()||(Ps?K7.hidden=!1:(_.cZ(Ts.value,"yt-autonav-pause-focus",{}),y(Hs.target.value)))}}),EA=_.gJ(function(Hs){if(!(Hs.relatedTarget instanceof Element&&Hs.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Z(!1);
var Ws;(Ws=G.focusCallback)==null||Ws.call(G,!1);K7.scrollTop=0;K7.hidden=!0;_.cZ(Ts.value,"yt-autonav-pause-blur",{})}}),EG=function(Hs){Hs=Rr2(Hs);
var Ws;((Ws=$d[W()])==null?0:Ws[b()+Hs])&&M(b()+Hs)},f7=_.gJ(function(Hs){var Ws=Hs.keyCode,d$=Hs.target;
n7(!0);switch(Ws){case 13:Hs.preventDefault();var RM;if((RM=$d[W()])==null?0:RM[b()]){var mt;(mt=document.getElementById($d[W()][b()]))==null||mt.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Hs=Hs.shiftKey?4:3;Ws=Rz;RM=W();Ws.selectedSuggestionIndex=RM;F(d$.value,Hs);break;case 27:K7&&(K7.hidden=!0);break;case 40:Iz(Hs,40);break;case 38:Iz(Hs,38);break;case 39:EG(39);break;case 37:EG(37);break;case 229:Rz.inputMethodsTracker.add(4);break;default:Rz.inputMethodsTracker.add(1),
cTS(Rz)}return!1}),M8=_.gJ(function(Hs){y(Hs.target.value);
q();aq()&&K7&&(K7.scrollTop=0);return!1}),NH=_.gJ(function(){Rz.inputMethodsTracker.add(2);
cTS(Rz);return!1});
_.eR(function(){if(K7){Rz.reset();if(window.ResizeObserver){var Hs=new ResizeObserver(function(){P()||(K7.style.minWidth=L7.value.offsetWidth+"px")});
Hs.observe(L7.value);(new ResizeObserver(function(){HY()})).observe(K7);
_.VI(function(){Hs.disconnect()})}h();
window.addEventListener("yt-navigate-finish",h);window.addEventListener("yt-focus-searchbox",function(){hT.value.focus()});
var Ws;yo((Ws=_.v5("SBOX_SETTINGS"))==null?void 0:Ws.HAS_ON_SCREEN_KEYBOARD)}else _.k2(new _.Uf("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Jj=_.gJ(function(Hs){Hs.preventDefault();F(hT.value.value,12);return!1}),JT=_.gJ(function(Hs){Hs.preventDefault();
var Ws,d$;(Ws=hT)==null||(d$=Ws.value)==null||d$.focus();var RM,mt;((RM=hT)==null?void 0:(mt=RM.value)==null?void 0:mt.value)!==""&&(hT.value.value="",hT.value.dispatchEvent(new Event("input")));return!1}),w$=_.gJ(function(){var Hs=$DZ(hT.value.value,m().filter(function(Ws){return Ws.type!==35}).map(function(Ws){return{label:Ws.text}}));
_.T1(Ts.value,"yt-open-popup-action",[{openPopupAction:Hs},document.body]);return!1}),xD=_.gJ(function(){hT.value.focus();
return!1}),ia=function(Hs,Ws,d$,RM,mt){Rz.selectedSuggestionIndex=d$;
F(Ws,mt?3:1,RM)},$0=function(Hs){hT.value.value=Hs;
hT.value.dispatchEvent(new Event("input"));Rz.inputMethodsTracker.add(5);cTS(Rz,!0)},$d=[[]],DB=function(Hs){var Ws="searchbox-suggestion"+_.mw(_.Qa);
$d[Hs].push(Ws);return Ws},Sy=function(Hs){if(m()){$d=[[]];
for(var Ws=0;Ws<Hs;Ws++)$d.push([])}},HY=function(){if(aq()){var Hs=K7,Ws=Hs.scrollTop;
Hs=Hs.scrollHeight-Hs.clientHeight;US(Ws>=Hs);Ws=Math.abs(Hs-Ws);Ws<=40?v6(1-(40-Ws)/40):v6(1)}},lZ=function(){return"opacity: "+aI()*100+"%"},OS=_.gJ(function(){HY();
return!1}),Ag=_.gJ(function(){n7(!1);
return!1}),gU,rw={},LN={},kS={},OA={};
return _.l("yt-searchbox",{class:_.tx("ytSearchboxComponentHost",(rw.ytSearchboxComponentMweb=!1,rw.ytSearchboxComponentDesktop=!0,rw["yt-searchbox-filled-query"]=function(){return t()},rw["ytd-masthead"]=function(){return!A()},rw.ytSearchboxComponentHostDark=pQ,rw)),
role:"search",el:Ts,"client-ve-type":10349},_.l("div",{el:L7,"on:click":xD,class:_.tx("ytSearchboxComponentInputBox",(LN.ytSearchboxComponentInputBoxDark=pQ,LN.ytSearchboxComponentInputBoxHasFocus=A,LN))},_.l("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Jj},_.l(_.E,{cond:A,then:function(){return _.l("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.l(_.Pr,{icon:"SEARCH"}))}}),_.l("input",{el:hT,
class:_.tx("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Zq,"aria-expanded":!((gU=K7)==null?0:gU.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":EA,"on:focus":N8,"on:input":M8,"on:keydown":f7,"on:paste":NH,placeholder:G.placeholderText,"aria-activedescendant":function(){var Hs;return(Hs=$d[W()])==null?void 0:Hs[b()]},
"aria-autocomplete":"list",role:"combobox"})),_.l(_.E,{cond:a,then:function(){return _.l("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.l(qAe,null))}}),_.l(_.E,{cond:t,
then:function(){return _.l("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.l("button",{class:"ytSearchboxComponentClearButton","on:click":JT,"aria-label":G.clearButtonAriaLabel||aZa},_.l(_.Pr,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.l(_.YR,{model:{}})))}})),_.l("button",{class:_.tx("ytSearchboxComponentSearchButton",(kS.ytSearchboxComponentSearchButtonDark=pQ,kS)),
"on:click":Jj,"aria-label":KUM,title:G.placeholderText},_.l(_.Pr,{icon:"SEARCH"})),_.l(_.E,{cond:function(){if(wUB()&&_.X("mweb_voice_search")&&G.voiceSearchButton)return G.voiceSearchButton()},
then:function(Hs){var Ws={};return _.l("div",{class:_.tx("ytSearchboxComponentVoiceSearchWrapper",(Ws.ytSearchboxComponentHideVoiceSearchButton=function(){return t()},Ws))},_.l(_.uR,{data:Hs},{buttonRenderer:function(d$){return _.l(_.V3,{data:d$.data,
onButtonClickCallback:function(){}})}}))}}),_.l("div",{el:_.VX(function(Hs){return void(K7=Hs)}),
id:Zq,class:_.tx("ytSearchboxComponentSuggestionsContainer",(OA.ytSearchboxComponentSuggestionsContainerDark=pQ,OA["yt-searchbox-suggestions-container"]=!1,OA.ytSearchboxComponentSuggestionsContainerScrollable=aq(),OA.ytSearchboxComponentSuggestionsContainerAnimated=K,OA)),"on:scroll":OS,"on:mousemove":Ag,role:"listbox",hidden:!0},_.l(_.jR,{each:m},function(Hs,Ws){return _.l(lZj,{suggestion:Hs,isHighlighted:function(){return Ws()===W()},
onClickCallback:ia,onHoverUpdateCallback:function(d$){if(_.X("desktop_enable_single_suggestion_highlight")){var RM=Ws();d$&&(M(0),e(RM))}},
onRemoveCallback:function(d$){hBL(kD);d$===void 0||d$<0||Jg().includes(d$)||c6([].concat(_.gi(Jg()),[d$]))},
labels:G.labels,queryBuilderFunction:$0,suggestionIndex:Ws,generateUniqueId:DB,highlightedId:function(){var d$;return(d$=$d[W()])==null?void 0:d$[b()]},
useScrollMargin:aq(),isKeyboardMode:q8})}),_.l(_.E,{cond:function(){return!P()&&m().find(function(Hs){return Hs.type!==35})&&_.X("searchbox_reporting")},
then:function(){return _.l("button",{class:"ytSearchboxComponentReportButton","on:mousedown":w$},_.G7("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.l(_.E,{cond:function(){return!hg()&&aq()},
then:function(){return _.l("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.l("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:lZ}))}})))},"ml");
XSA.idomCompat={callbacks:{focusCallback:!0}};_.YN(XSA,"yt-searchbox",{props:{searchEndpoint:_.Hd,placeholderText:_.Hd,labels:_.Hd,voiceSearchButton:_.Hd,focusCallback:_.oh,clearButtonAriaLabel:_.Hd,forceDarkMode:_.Hd}});var Jy=function(){var G=_.p.apply(this,arguments)||this;G.menuButtonTargetId="topbar-guide-menu";G.narrow=!1;G.menuStrings={BACK_ALT_LABEL:_.G7("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.G7("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.G7("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.G7("SBOX_PLACEHOLDER",void 0,"Search")};G.pageDarkTheme=document.documentElement.hasAttribute("dark");G.watchPageScrollTop=0;G.theater=!1;G.fullscreen=!1;G.disableFrostedGlassDuringViewTransition=
!1;G.desktopUnifiedSearchPanelMode=_.X("desktop_enable_unified_search_panel");G.aiCompanionEnabled=_.X("enable_ai_companion");G.ytSearchboxFocused=!1;G.searchboxLabels=_.v5("SBOX_LABELS");G.topbarIsAboveChipbar=!1;G.isDarkThemeForced=!1;G.areGhostCardsHidden=!1;G.guideKeyboardToggle=!1;G.voiceSearchManager=THZ();G.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};G.setYtSearchboxFocused=function(B){G.ytSearchboxFocused=B};
G.toggleFrostedGlassDuringViewTransition=function(B){G.disableFrostedGlassDuringViewTransition=B};
return G};
_.r(Jy,_.p);_.w=Jy.prototype;_.w.computeSimpleText=function(G){return _.zx(G)};
_.w.onDarkChanged=function(){for(var G=_.C(this.buttons||[]),B=G.next();!B.done;B=G.next())B.value.isOverlay=!!this.dark;G=_.C(this.buttonRenderers||[]);for(B=G.next();!B.done;B=G.next())B.value.overrides=this.computeButtonOverride()};
_.w.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.w.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var G=_.Oc(_.kl(),"aa");_.tV(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||G||(this.isDarkThemeForced=this.dark=!0);this.logoType?(G=this.hostElement.querySelector("#masthead-logo"))&&(_.X("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.B1(G)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.x7(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.x7(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.w.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.x7(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.x7(this,this.onSetTheaterModeEnabled))};
_.w.dataChanged=function(){var G=this.data;G&&(this.voiceEnabled=G.voiceSearchButton?THZ().isSupported():!1,_.xl(_.Pv(),this.menuButtonTargetId,this.guideButton),G.onReceivedActions&&G.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.tL(this.hostElement,G.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&G&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.tV(this.hostElement,"dark",!1),_.tV(this.hostElement,"theater",!1),(G=
this.hostElement.querySelector("#masthead-logo"))&&(_.X("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.B1(G))))};
_.w.computeCenterHidden=function(){var G;return this.data&&!((G=this.data.searchbox)==null?0:G.fusionSearchboxRenderer)};
_.w.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.tV(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.w.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.w.onWatchScroll=function(G){this.watchPageScrollTop=G.detail||0;this.updateMastheadBackgroundOpacity()};
_.w.onFullscreenChangeAction=function(G){G||(this.watchPageScrollTop=0);this.fullscreen=G;this.updateMastheadBackgroundOpacity()};
_.w.onSetTheaterModeEnabled=function(G){this.theater=G.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.w.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.w.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.w.setBackgroundOpacity=function(G){G=this.calculateBackgroundOpacity(G);this.background.style.opacity=""+G};
_.w.calculateBackgroundOpacity=function(G){var B=this.theater?.6:0,F=this.hostElement.clientHeight/2;return Math.min(Math.max(G,0),F)/F*(1-B)+B};
_.w.shouldShowCinematicMastHead=function(){var G=_.X("kevlar_watch_grid")&&!_.X("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(G||this.pageDarkTheme)};
_.w.focusGuide=function(){this.guideButton.focus()};
_.w.onGuideToggleTap=function(){_.cZ(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.w.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.w.onGuideToggleHover=function(){_.cZ(this.hostElement,"yt-guide-hover")};
_.w.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.w.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.w.closeOnOutsideClickCondition=function(G){for(G=_.VW(G);G[0];){var B=G.shift();if(B instanceof Element&&B.id==="kbd")return!1}return!0};
_.w.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.w.pausePlayer=function(){var G;(G=_.AZ())==null||G.pause();this.pauseMiniplayer()};
_.w.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var G;(G=_.te().resolve(_.WP).getPlayerElement())==null||G.pause()}};
_.w.isMiniplayerActive=function(){return _.te().resolve(_.WP).isMiniplayerActive()};
_.w.updateNarrowFromBinding=function(G){this.narrow=G.detail.value};
_.w.onYtSendFeedbackAction=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.w.registerWithViewTransitionManager=function(){PwG(_.te().resolve(_.w1),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.ZN.Object.defineProperties(Jy.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.X("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.aiCompanionEnabled&&((G=this.data)==null?0:G.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var G;return(G=this.data)==null?void 0:G.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
Jy.prototype.narrowChanged=Jy.prototype.narrowChanged;Jy.prototype.onWatchPageChange=Jy.prototype.onWatchPageChange;Jy.prototype.onRendererStamperFinished=Jy.prototype.onRendererStamperFinished;Jy.prototype.dataChanged=Jy.prototype.dataChanged;Jy.prototype.onDarkChanged=Jy.prototype.onDarkChanged;_.c([_.k(_.Rc),_.I("design:type",Object)],Jy.prototype,"ironResizableBehavior",void 0);_.c([_.k(D$$),_.I("design:type",Object)],Jy.prototype,"ytdExpandableInputBehavior",void 0);
_.c([_.k(_.jp.YtdGuideStateAwareBehavior),_.I("design:type",Object)],Jy.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Jy.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Jy.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.hf),_.I("design:type",Object)],Jy.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"narrow",void 0);_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"logoType",void 0);_.c([_.v(),_.I("design:type",Boolean)],Jy.prototype,"voiceEnabled",void 0);
_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"menuStrings",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Jy.prototype,"dark",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jy.prototype,"pageDarkTheme",void 0);_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"watchPageScrollTop",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.kiS}),_.I("design:type",Boolean)],Jy.prototype,"isWatchPage",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.O3J}),_.I("design:type",Boolean)],Jy.prototype,"isShortsPage",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jy.prototype,"theater",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jy.prototype,"fullscreen",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.b3J}),_.I("design:type",String)],Jy.prototype,"frostedGlassMode",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jy.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],Jy.prototype,"aiCompanionEnabled",void 0);_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"ytSearchboxFocused",void 0);_.c([_.FQ("#buttons > *"),_.I("design:type",Array)],Jy.prototype,"buttons",void 0);_.c([_.FQ("ytd-button-renderer"),_.I("design:type",Array)],Jy.prototype,"buttonRenderers",void 0);
_.c([_.iA("#background"),_.I("design:type",HTMLDivElement)],Jy.prototype,"background",void 0);_.c([_.iA("#guide-button"),_.I("design:type",Object)],Jy.prototype,"guideButton",void 0);_.c([_.iA("#logo"),_.I("design:type",Object)],Jy.prototype,"logo",void 0);_.c([_.v({computed:"computeButtonOverride(dark)"}),_.I("design:type",Object)],Jy.prototype,"buttonOverrides",void 0);
_.c([_.Ry("dark"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jy.prototype,"onDarkChanged",null);_.c([_.v({value:function(){return this.onVoiceTap.bind(this)}}),
_.I("design:type",Function)],Jy.prototype,"boundOnTapVoiceButton",void 0);_.c([_.v(),_.I("design:type",Object)],Jy.prototype,"topbarIsAboveChipbar",void 0);_.c([_.v(),_.I("design:type",String),_.I("design:paramtypes",[])],Jy.prototype,"guideIcon",null);_.c([_.O("voiceEnabled"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Jy.prototype,"shouldShowVoiceSearchButton",null);
_.c([_.O("data.aiCompanionButton","aiCompanionEnabled"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],Jy.prototype,"shouldShowAiCompanionButton",null);_.c([_.O("data"),_.I("design:type",Object),_.I("design:paramtypes",[])],Jy.prototype,"voiceSearchButton",null);_.c([_.O("aiCompanionEnabled"),_.I("design:type",String),_.I("design:paramtypes",[])],Jy.prototype,"narrowQuery",null);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jy.prototype,"dataChanged",null);_.c([_.Pm("yt-rendererstamper-finished"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jy.prototype,"onRendererStamperFinished",null);_.c([_.Ry("isWatchPage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jy.prototype,"onWatchPageChange",null);
_.c([_.Ry("narrow"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Jy.prototype,"narrowChanged",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-masthead"})],Jy);
_.d(Jy,"ytd-masthead",function(){if(FUC!==void 0)return FUC;var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return FUC=G},{mode:2});var Qz6;var jzX={},LUm={},r2a={},WUX={},HNX=(WUX.OFFLINE=(jzX["publicytnetworkstatus-online"]="BACK_ONLINE",jzX),WUX.ONLINE=(LUm["publicytnetworkstatus-offline"]="OFFLINE",LUm),WUX.BACK_ONLINE=(r2a["publicytnetworkstatus-offline"]="OFFLINE",r2a.TIMER_TRIGGER="ONLINE",r2a),WUX),cD=function(){var G=_.p.apply(this,arguments)||this;G.currentState="ONLINE";G.scheduledJobId=0;G.bannerString="";G.bannerVe=null;G.networkStatusManagerInstance=new _.pu;return G};
_.r(cD,_.p);_.w=cD.prototype;_.w.attached=function(){var G=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.w.detached=function(){var G=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.w.enterState=function(G){var B=this;this.scheduledJobId&&_.Lu.cancelJob(this.scheduledJobId);G==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):G==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.G7("NO_INTERNET_CONNECTION",void 0,"No internet connection")):G==="BACK_ONLINE"&&(this.bannerString=_.G7("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.mX(_.Lu,function(){B.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=G};
_.w.stateChangeHandler=function(G){(G=HNX[this.currentState][G])&&this.enterState(G)};
_.w.logVisibility=function(G){var B=_.qW();this.createBannerVe(G);B&&this.bannerVe&&(G?_.Oq(B,[this.bannerVe]):_.eD(B,[this.bannerVe]))};
_.w.createBannerVe=function(G){!this.bannerVe&&G&&(this.bannerVe=_.ge(37929),_.gr(_.Rh(),this.bannerVe))};
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",String)],cD.prototype,"currentState",void 0);_.c([_.v(),_.I("design:type",Object)],cD.prototype,"scheduledJobId",void 0);_.c([_.v(),_.I("design:type",Object)],cD.prototype,"bannerString",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-network-status-banner"})],cD);
_.d(cD,"ytd-network-status-banner",function(){if(Qz6!==void 0)return Qz6;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return Qz6=
G},{mode:1});var k$X;var T5=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};G.hidden=!0;G.frostedGlass=_.X("web_frosted_glass");return G};
_.r(T5,_.p);T5.prototype.computeHidden=function(G){return G&&G.status?!1:!0};
T5.prototype.handleUpdatePermissionRoleCommand=function(G){if(G=_.Q(G,_.CxU))if(G=_.Q(G.renderer,_.wjU))this.data=G};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],T5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],T5.prototype,"componentBehavior",void 0);_.c([_.v({value:!0,computed:"computeHidden(data)"}),_.I("design:type",Object)],T5.prototype,"hidden",void 0);_.c([_.v(),_.I("design:type",Object)],T5.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],T5.prototype,"frostedGlass",void 0);
_.c([_.mC({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],T5);
_.d(T5,"ytd-permission-role-bottom-bar-renderer",function(){if(k$X!==void 0)return k$X;var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);return k$X=G},{mode:1});var ONz;var eBe;var wbU={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Iw=function(){return _.p.apply(this,arguments)||this};
_.r(Iw,_.p);_.w=Iw.prototype;_.w.attached=function(){this.JSC$22913_scroller&&(this.JSC$22913_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22913_scroller.attached&&typeof this.JSC$22913_scroller.attached==="function"&&this.JSC$22913_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(F){F.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var G=_.IF(this.hostElement);G.querySelector("tp-yt-paper-radio-group").selected="";var B=G.querySelector("#reason-text");B&&(B.value="");G.querySelector("#description-text").value=""}};
_.w.canSubmit=function(G,B){_.cZ(this.hostElement,"yt-invalidate-popup-tabbables");return!(G&&B)};
_.w.onCancel=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.w.onSubmit=function(){var G=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(R){return R.active}).map(function(R){return R.innerText.trim()}),B=this.hostElement.querySelector("tp-yt-paper-radio-group"),F=B.selectedItem,D=F.name;
F=F.innerText.trim();var u=B.querySelector("#reason-text");B=void 0;u&&(B=u.value);(u=this.descriptionText.value)&&(u=u.trim());CLH(this.data.searchQuery,G,D,F,u,B);_.T1(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.w.sendFormSubmitToast=function(){var G=_.MD(_.G7("SBOX_INAPPROPRIATE_TOAST"));_.T1(this.hostElement,"yt-open-popup-action",[G,this])};
_.w.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(G){return G.active})};
_.w.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Iw.prototype.onIronSelect=Iw.prototype.onIronSelect;Iw.prototype.onIronChange=Iw.prototype.onIronChange;Iw.prototype.dataChanged=Iw.prototype.dataChanged;_.c([_.v(),_.I("design:type",Object)],Iw.prototype,"data",void 0);_.c([_.v({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.I("design:type",Boolean)],Iw.prototype,"submitDisabled",void 0);_.c([_.v(),_.I("design:type",Boolean)],Iw.prototype,"suggestionSelected",void 0);
_.c([_.v(),_.I("design:type",Boolean)],Iw.prototype,"catagorySelected",void 0);_.c([_.iA("#scroller"),_.I("design:type",Object)],Iw.prototype,"JSC$22913_scroller",void 0);_.c([_.iA("#description-text"),_.I("design:type",Object)],Iw.prototype,"descriptionText",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Iw.prototype,"dataChanged",null);
_.c([_.Pm("iron-change"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Iw.prototype,"onIronChange",null);_.c([_.Pm("iron-select"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Iw.prototype,"onIronSelect",null);_.c([_.mC({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Iw);
_.d(Iw,"ytd-search-suggestion-report-dialog",function(){if(eBe!==void 0)return eBe;var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return eBe=G},{mode:1});var f_=function(G){var B=G.openPopupAction;var F=G.target;var D=G.container;var u=G.popupContainerConfig;var R=G.getElement;G=G.removeWhenClosed===void 0?!1:G.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=B;this.target=F;this.container=D;this.popupContainerConfig=u;this.getElement=R;this.JSC$22919_popupConfig=this.popupContainerConfig.JSC$21599_popupConfig[this.openPopupAction.popupType];this.rendererName=(B=this.getName())?_.vPo(B,QZD(this.popupContainerConfig,
B)):"";_.X("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=G);this.createPopup()};
f_.prototype.updatePopup=function(G){this.openPopupAction=G;this.JSC$22919_popupConfig=this.popupContainerConfig.JSC$21599_popupConfig[this.openPopupAction.popupType];$He(this);_.X("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
f_.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var VQX=function(G,B,F){(B=B&&G.JSC$22919_popupConfig.narrowProperties?G.JSC$22919_popupConfig.narrowProperties:G.JSC$22919_popupConfig.properties)&&F!==void 0&&(B.isAriaModal=F);zBe(G,B);G.isRtl()&&zBe(G,G.JSC$22919_popupConfig.rtlProperties);bNz(G)};
f_.prototype.createPopup=function(){var G=this.JSC$22919_popupConfig.component;if(this.popupContent=vD6(this,this.rendererName)){if(G){this.popup=vD6(this,G);var B=this.popupContent;_.X("web_enable_wrapper_for_cow_component_in_popup")&&(B=document.createElement("div"),B.appendChild(this.popupContent));_.X("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22919_popupConfig.slotName&&B.setAttribute("slot",this.JSC$22919_popupConfig.slotName);G=this.popup;var F=this.container.tagName.toLowerCase(),
D=_.pp(B);_.I08(_.AV(G),_.JV(B,F,D));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.X("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.IF(this.container).appendChild(this.popup)}};
var $He=function(G){var B,F,D=(B=G.openPopupAction.accessibilityData)==null?void 0:(F=B.accessibilityData)==null?void 0:F.label;D&&(G.popup.ariaLabel=D);var u;((u=G.popupContent.polymerController)!=null?u:G.popupContent).data=(0,_.UK.unsafeClone)(G.openPopupAction.popup[G.getName()]);G.popupContent.duration=oDX(G);G.popupContent.positionType=G.openPopupAction.position;var R=G.openPopupAction.properties;R&&Object.keys(R).forEach(function(N){G.popupContent[N]=R[N]})},zBe=function(G,B){if(B)for(var F=
_.C(Object.keys(B)),D=F.next();!D.done;D=F.next())D=D.value,G.popup[D]=B[D]},bNz=function(G){if(G.openPopupAction.position){var B=G.JSC$22919_popupConfig.positionalProperties&&G.JSC$22919_popupConfig.positionalProperties[G.openPopupAction.position],F=G.JSC$22919_popupConfig.rtlPositionalProperties&&G.JSC$22919_popupConfig.rtlPositionalProperties[G.openPopupAction.position];
B=G.isRtl()&&F?F:B;B.shiftedHorizontalOffset&&(F=G.popup.style.display,G.popup.style.display="block",G.popupContent&&G.popup.positionTarget&&G.popupContent.clientWidth>G.popup.positionTarget.clientWidth&&(B.horizontalOffset=G.popup.positionTarget.clientWidth/2-B.shiftedHorizontalOffset),G.popup.style.display=F);zBe(G,B)}},MQy=function(G,B,F){if(B){for(var D=_.C(Object.keys(B)),u=D.next();!u.done;u=D.next())u=u.value,G.popup.style[u]=B[u];
if(F)for(B=_.C(Object.keys(F)),D=B.next();!D.done;D=B.next())D=D.value,G.popup.style[D]=F[D]}};
f_.prototype.getName=function(){return _.zJ(this.openPopupAction.popup,"renderer")||_.zJ(this.openPopupAction.popup,"dialog")||_.zJ(this.openPopupAction.popup,"model")||void 0};
var oDX=function(G){G=G.openPopupAction.durationHintMs;return G===0?G:Math.max(4E3,G||4E3)};
f_.prototype.isRtl=function(){return _.v5("HTML_DIR")==="rtl"};
var vD6=function(G,B){G=G.getElement(B,G.target);G==null&&_.em(new _.Uf("popup getElement returned null",B));return G};var pSL={};
pSL.YtPopupContainerBehavior=[_.aS.YtComponentBehavior,_.Za.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.MW(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.pi(this.hostElement)},
closePopup:function(G){var B=this.createCacheKey(void 0,G);this.popups_[B]&&this.handleClosePopupAction_(void 0,G)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Lu.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Lu.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(G){G.opened&&G.keepBelowPlayer&&this.ensurePopupBelowPlayer(G)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var G in this.popups_){var B=this.popups_[G];if(B.popup.scrollAction==="refit"){var F=B.popup.positionTarget.getBoundingClientRect(),D=B.popup;F=F.top;var u=B;if(!u.naturalHeight){u.popup.hidden=!1;u.popup.style.position="fixed";u.popup.style.top="0px";u.popup.style.left="0px";var R=u.popup.getBoundingClientRect();u.naturalHeight=R.bottom-R.top;u.popup.refit()}D.hidden=!(F>=u.naturalHeight+60);B.popupContent.clientHeight===0&&B.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(G){this.popupContainerConfig=G},
handleOpenPopupAction:function(G,B,F){var D=G.openPopupAction,u=_.te().resolve(_.fH(_.am))&&D.popupType==="TOAST";u&&!D.uniqueId&&(D.uniqueId=cW());if(!_.X("popup_container_parent_target_killswitch")){var R;B=(R=this.getParentTarget(B))!=null?R:B}var N=this.ensurePopup_(D,B);return new _.DS(function(y){N.then(function(U){if(!U)return y();this.maybeCreateNarrowMediaQuery_();var q=this.createCacheKey(U.rendererName,U.openPopupAction.uniqueId);if(D.showOncePerUniqueId){if(this.shownPopupKeys_.has(q))return y();
this.shownPopupKeys_.add(q)}q=this.popups_[q];var h=!(!q||!q.openPopupAction.beReused);h=!!D.reusePopup||h;if(U.popup.opened&&!h){u&&!U.openPopupAction.replacePopup||this.handleClosePopupAction_(U.rendererName,U.openPopupAction.uniqueId);h=D.popupType==="DIALOG"&&!_.X("popup_container_dialog_reopen_killswitch");if(!u&&!h&&q&&q.target==B&&(_.X("popup_container_event_target_check_killswitch")||q.target==F)&&!U.openPopupAction.replacePopup)return y();_.ft(U.popup,function(){this.completeOpenPopupAction_(D,
B,U);y()}.bind(this))}else U.popup.opened?U.updatePopup(D):this.completeOpenPopupAction_(D,B,U),y()}.bind(this))}.bind(this))},
getParentTarget:function(G){if(G&&G instanceof HTMLElement)for(var B=_.C(Object.entries(this.popups_)),F=B.next();!F.done;F=B.next())if(F=_.C(F.value),F.next(),F=F.next().value,this.popupClosesOnClick(F)&&F.popup.contains(G))return F.target},
popupClosesOnClick:function(G){return G.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(G.rendererName.toUpperCase())},
completeOpenPopupAction_:function(G,B,F){F.updatePopup(G);var D=this.narrowMediaQuery_.queryMatches,u=this.isAriaModal;G=this.expandToFullWidth;F.target=B;var R;B=((R=F.target.polymerController)!=null?R:F.target).popupPositionTarget||F.target;F.JSC$22919_popupConfig.targetContainer&&(B=F.container);F.popup.positionTarget=B;F.popupContent.positionTarget=B;bNz(F);F.JSC$22919_popupConfig.forceFocus&&(F.popupContent.style.outline="none");F.popupContent.tabIndex=-1;F.JSC$22919_popupConfig.narrowProperties&&
(F.popup.style.position="static");F.JSC$22919_popupConfig.preventAutonav&&F.popup.setAttribute("prevent-autonav",!0);F.JSC$22919_popupConfig.forceCloseOnOutsideClick&&F.popup.setAttribute("force-close-on-outside-click",!0);VQX(F,D,u);R={};R.width=G?"100%":"";MQy(F,F.JSC$22919_popupConfig.styles,R);F.isRtl()&&MQy(F,F.JSC$22919_popupConfig.rtlStyles,R);if(!F.openPopupAction.shouldStopParentSignal){var N;G=(N=F.target.polymerController)!=null?N:F.target;(F.popupContent.startForwardingEvents||F.popupContainerConfig.forwardingEnabledPopups.has(F.rendererName))&&
G.parentComponent!==F.popupContent&&F.popupContent!==F.target&&F.target!==document.body&&(F.popupContent.startForwardingEvents?F.popupContent.startForwardingEvents(F.popupContainerConfig.forwardedEvents,F.target):(F.JSC$22919_eventForwarder||(F.JSC$22919_eventForwarder=new _.P0(F.popupContent)),F.JSC$22919_eventForwarder.start(F.popupContainerConfig.forwardedEvents,F.target)))}F=F.popup;F.addEventListener("iron-overlay-opened",_.x7(this,this.onPopupIronOverlayOpened_));F.addEventListener("iron-overlay-closed",
_.x7(this,this.onPopupIronOverlayClosed_));F.addEventListener("iron-overlay-canceled",_.x7(this,this.onPopupIronOverlayCanceled_));F.addEventListener("yt-refit",_.x7(this,this.refitPopup_));F.addEventListener("yt-invalidate-popup-tabbables",_.x7(this,this.handleInvalidatePopupTabbables_));F.open()},
getPopupDurationMs_:function(G){return G.durationHintMs===0?G.durationHintMs:Math.max(4E3,G.durationHintMs||4E3)},
handleClosePopupAction_:function(G,B){var F=_.X("web_popup_cache_key_killswitch")||!!B;if(G||F){var D=this.createCacheKey(G,B);G=(G=this.popups_[D])&&G.popup}else G=_.RrT(_.QM);if(G&&G.close){if(B=_.te().resolve(_.fH(_.Mu)))G.restoreFocusOnClose=B.isKeyBoardInUse();if(G&&G.positionTarget&&!_.X("ytpopup_close_sibling_popups_killswitch")){B=_.C(Object.entries(this.popups_));for(F=B.next();!F.done;F=B.next()){var u=_.C(F.value);F=u.next().value;u=u.next().value;var R=void 0,N=void 0,y=void 0,U=void 0,
q=void 0,h=void 0;G.positionTarget==((R=u)==null?void 0:(N=R.popupContent)==null?void 0:N.positionTarget)&&u.popup&&(!((y=u.popup)==null?0:(U=y.style)==null?0:U.display)||((q=u.popup)==null?void 0:(h=q.style)==null?void 0:h.display)!=="none")&&(R=void 0,(R=u.popup)==null?0:R.close)&&(u.popup.close(),this.removePopup_(u.popup,F))}G&&this.popups_[D]&&(G.close(),this.removePopup_(G,D))}else G.close(),this.removePopup_(G,D)}},
handleClosePopupCommand_:function(G){G.closePopupCommand&&G.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,G.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(G){var B={},F;for(F in this.popups_)if(B={key$jscomp$1247:B.key$jscomp$1247},B.key$jscomp$1247=F,!G||!G.some(function(R){return function(N){return N==R.key$jscomp$1247}}(B))){var D=this.popups_[B.key$jscomp$1247],u=D.popup;
_.te().resolve(_.fH(_.am))&&D.openPopupAction.popupType==="TOAST"||(u&&u.close&&u.close(),this.removePopup_(u,B.key$jscomp$1247))}},
handleClosePopupsAction_:function(G){G.forEach(function(B){var F=this.popups_[B];F&&((F=F.popup)&&F.close&&F.close(),this.removePopup_(F,B))}.bind(this))},
handleGetPopupOpenedAction_:function(G,B){return(B=this.createCacheKey(G,B))&&this.popups_[B]?this.popups_[G].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var G=[],B;for(B in this.popups_){var F=this.popups_[B];F.popup.opened&&G.push(F)}return G},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(G,B){_.X("ytpopup_disable_default_html_caching")&&G&&G.removeWhenClosed&&(_.IF(this.hostElement).removeChild(G),B&&this.popups_[B]&&delete this.popups_[B])},
shouldReusePopup_:function(G){return!(!G||!G.reusePopup)||!(!G||!G.beReused)},
ensurePopup_:function(G,B){this.maybeCreateNarrowMediaQuery_();var F=_.zJ(G.popup,"renderer")||_.zJ(G.popup,"dialog")||_.zJ(G.popup,"model");if(!F)return _.ZL();F=_.vPo(F,QZD(this.popupContainerConfig,F));return _.ZL(this.getAndMaybeCreatePopup_(G,F,B))},
getAndMaybeCreatePopup_:function(G,B,F){var D=this.createCacheKey(B,G.uniqueId);if(this.popups_[D])return this.popups_[D];G=new f_({openPopupAction:G,target:F,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(B)});return this.popups_[D]=G},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(G){return _.X("ytpopup_disable_default_html_caching")?_.X("ytpopup_disable_cache_allowlist")?G&&this.doNotCacheList_.includes(G):G&&G.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",_.x7(this,this.openPopupQueryMatchesChanged_)),_.IF(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(G){G=G.detail.value;for(var B in this.popups_)VQX(this.popups_[B],G)},
onPopupIronOverlayClosed_:function(G){var B=G.currentTarget,F=_.nGg(B);F=F.length>0?F[0]:B;if(F.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){G.detail.popup=B;G.detail.popupRenderer=F;var D,u={context:{openingElement:((D=this.popups_[(F==null?void 0:F.is)||""])==null?void 0:D.target)||void 0}};Object.assign(u,G.detail);var R;_.cZ((R=F.hostElement)!=null?R:F,"yt-popup-closed",u);B.removeEventListener("yt-refit",_.x7(this,this.refitPopup_));B.removeEventListener("yt-invalidate-popup-tabbables",
_.x7(this,this.handleInvalidatePopupTabbables_));B.removeEventListener("iron-overlay-canceled",_.x7(this,this.onPopupIronOverlayCanceled_));B.removeEventListener("iron-overlay-closed",_.x7(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(B)}},
onPopupIronOverlayCanceled_:function(G,B){var F=G.currentTarget,D=_.nGg(F);D=D.length>0?D[0]:F;if(D.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){var u;_.cZ((u=D.hostElement)!=null?u:D,"yt-popup-canceled",G.detail);u=B?_.VW(B):null;(!B||["click","tap"].includes(B.type))&&!F.hasAttribute("force-close-on-outside-click")&&F.positionTarget&&u&&u.includes(F.positionTarget)&&G.preventDefault();F.restoreFocusOnClose=_.sV.keyboardEventMatchesKeys(B,"esc")}},
onPopupIronOverlayOpened_:function(G){G=G.currentTarget;var B=_.nGg(G);B=B.length>0?B[0]:G;var F,D;_.cZ((F=B.hostElement)!=null?F:B,"yt-popup-opened",(D=B.hostElement)!=null?D:B);G.keepBelowPlayer&&(this.ensurePopupBelowPlayer(G,!0),this.dynamicallyPositionedElements_.add(G));F=_.te().resolve(_.fH(_.Mu));D=!!B.querySelector("#toast");F&&F.isKeyBoardInUse()&&!D&&(typeof B.focusFirstItem==="function"?B.focusFirstItem():(B=_.FYq(G),B.length&&B[0].focus()));G.removeEventListener("iron-overlay-opened",
_.x7(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(G){G=G.currentTarget;G.refit&&G.refit()},
refitPopups_:function(){for(var G in this.popups_)this.popups_[G].refit()},
handleInvalidatePopupTabbables_:function(G){G=G.currentTarget;G.invalidateTabbables&&G.invalidateTabbables()},
createCacheKey:function(G,B){return _.X("web_popup_cache_key_killswitch")?B?G+"#"+B:G:B?"#"+B:G},
openSheet:function(G,B,F){var D=G==null?void 0:G.openPopupActionCommand;if(!D&&(G==null?0:G.viewModel)){if(G.sheetPosition)a:switch(G.sheetPosition){case "SHEET_POSITION_RIGHT":D="OPEN_POPUP_POSITION_RIGHT";break a;default:D="OPEN_POPUP_POSITION_UNKNOWN"}else D=void 0;D={openPopupAction:{popup:{sheetViewModel:G.viewModel},popupType:"CONTEXTUAL_SHEET",position:D}}}if(D){var u;this.expandToFullWidth=(u=G==null?void 0:G.expandToFullWidth)!=null?u:!1;this.handleOpenPopupAction(D,B,F===void 0?B:F)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var G=this;return _.n(function(B){return B.return(G.handleGetOpenedPopupsAction_().filter(function(F){var D;return((D=F.openPopupAction)==null?void 0:D.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(G,B,F){if(_.X("web_dialog_utils_killswitch")){var D=G==null?void 0:G.openPopupActionCommand,u=(F==null?0:F.ariaLabel)?{accessibilityData:{accessibilityData:{label:F.ariaLabel}}}:void 0;!D&&(G==null?0:G.viewModel)&&(D={openPopupAction:Object.assign({},{popup:{dialogViewModel:G.viewModel},popupType:(F==null?0:F.isModal)?"MODAL":"DIALOG"},u&&u)});D&&this.handleOpenPopupAction(D,B)}else{if(u=G==null?void 0:G.viewModel){var R=F=F===void 0?{}:F;F=R.ariaLabel;u={popup:{dialogViewModel:u},
popupType:R.isModal?"MODAL":"DIALOG"};R={accessibilityData:{label:F}};F&&(u.accessibilityData=R);u={openPopupAction:u}}else u=void 0;if(u=(D=u)!=null?D:G==null?void 0:G.openPopupActionCommand)this.isAriaModal=_.X("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(u,B)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var G=this;return _.n(function(B){return B.return(G.handleGetOpenedPopupsAction_().filter(function(F){var D;return((D=F.openPopupAction)==null?void 0:D.popupType)==="DIALOG"}).length>0)})}}];var YA6;var A2m;var dHC=_.vP(["about:blank"]),ty=function(){var G=_.p.apply(this,arguments)||this;G.isMuted=!1;G.pageLoadTimeoutId=void 0;G.enableA11yFocusFix=_.X("enable_a11y_focus_fix_for_mac_panel_on_desktop");G.moveFocusToContent=function(){G.iframe.focus()};
return G};
_.r(ty,_.p);_.w=ty.prototype;_.w.dataChanged=function(){var G=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var B=this.data.url,F=_.rg(B);_.X("enable_yt_ata_iframe_authuser")?(F=_.rg(B),_.u5(this.iframe,NZ2(F))):_.u5(this.iframe,F);this.pageLoadTimeoutId=_.mX(_.Kx(),function(){return void G.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.SU({destination:window,iframe:this.iframe,origin:_.SKI(F.toString()),channelName:"ataiframe",onMessage:_.ods(omB,function(D){MqB(D.data)?(D=_.GX(D.data,1,_.nN,_.Yk()),D.length!==1?_.em(Error("om")):(D=D[0],D===3?(G.isMuted=!0,G.logStateChanged({adMuteRequested:!0})):D===1&&G.close())):_.em(Error("pm"))}),
onEstablished:function(){G.cancelPageLoadTimeout();G.logStateChanged({pageLoadSucceeded:!0})}})}};
_.w.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Kx().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.w.logStateChanged=function(G){var B;if((B=this.data)==null?0:B.trackingParams)G={adsClientData:{aboutThisAdData:G}},_.Rh().stateChanged(this.data.trackingParams,G)};
_.w.close=function(){_.T1(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.handlesPopupClosed=function(G,B){var F=this,D,u;return _.n(function(R){if(R.nextAddress==1)return _.v5("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.T1(F.hostElement,"on-about-this-ad-popup-closed",[F.isMuted,B]),R.jumpTo(0)):G&&y5N(G)?R.yield(nWD(G),4):(F.isMuted&&_.T1(F.hostElement,"yt-mute-ad-action",[F.is,F]),R.jumpTo(0));if(D=R.yieldResult){var N=u=new _.qo(D),y=F.isMuted;N.getOptions().includes("onAboutThisAdPopupClosed")?_.xxP(N,"onAboutThisAdPopupClosed",{isMuted:y,layoutId:B}):_.$P("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.di(R)})};
_.w.onPopupClosed=function(G){var B=this,F,D;return _.n(function(u){F=_.W7(dHC);_.u5(B.iframe,F);B.cancelPageLoadTimeout();if(!B.data)return u.jumpTo(0);B.ytRendererBehavior.markDirty();D=G.detail.context.openingElement;return u.yield(B.handlesPopupClosed(D,B.data.layoutId),0)})};
_.w.detached=function(){this.cancelPageLoadTimeout()};
_.w.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ty.prototype.onPopupClosed=ty.prototype.onPopupClosed;ty.prototype.dataChanged=ty.prototype.dataChanged;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.c([_.iA("#iframe"),_.I("design:type",HTMLIFrameElement)],ty.prototype,"iframe",void 0);_.c([_.v(),_.I("design:type",Object)],ty.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],ty.prototype,"dataChanged",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype",Promise)],ty.prototype,"onPopupClosed",null);_.c([_.ay({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],ty);
_.d(ty,"yt-about-this-ad-renderer",function(){if(A2m===void 0){var G=document.createElement("template");_.H(G,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;YA6===void 0&&(YA6=document.createElement("template"));var D=YA6;F.call(B,D.content.cloneNode(!0),G.content.firstChild);A2m=G}G=A2m;return G},{mode:2});var J2y;var c2z;var T$X=function(G){var B=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=B.message;"stack"in B&&(this.stack=B.stack);this.maxFileSizeMB=G;Object.setPrototypeOf(this,T$X.prototype)};
_.r(T$X,Error);var IZX=function(G,B){var F=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=F.message;"stack"in F&&(this.stack=F.stack);this.minWidth=G;this.minHeight=B;Object.setPrototypeOf(this,IZX.prototype)};
_.r(IZX,Error);var fZX=function(G){this.requirements=G;this.JSC$22947_maxFileSize=G.maxFileSizeMB*1024*1024},tQj=function(G,B){if(B.size>G.JSC$22947_maxFileSize)throw new T$X(G.requirements.maxFileSizeMB);
};var ZNz=function(G,B){this.canvas=G;this.imageEditorBuilder=B};
ZNz.prototype.addEventListeners=function(G){var B=function(u){gDa(G,u)};
this.JSC$22953_mouseDownEvent=B;var F=function(u){SA6(G,u)};
this.JSC$22953_mouseMoveEvent=F;var D=function(){szL(G)};
this.JSC$22953_mouseUpEvent=D;this.canvas.addEventListener("mousedown",B);this.canvas.addEventListener("mousemove",F);document.addEventListener("mouseup",D)};
ZNz.prototype.removeEventListeners=function(){this.JSC$22953_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22953_mouseDownEvent);this.JSC$22953_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22953_mouseMoveEvent);this.JSC$22953_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22953_mouseUpEvent)};
var xHw=function(G,B){G.removeEventListeners();return new Promise(function(F){var D=new Image;D.crossOrigin="anonymous";D.onload=function(){var u=G.imageEditorBuilder(G.canvas,D);G.addEventListeners(u);F(u)};
D.src=B})},Z2=function(G,B,F,D,u,R,N,y){this.canvas=G;
this.image=B;this.requiredRatio=F;this.minImageCropDimension=D;this.minOutputImageResolution=u;this.component=R;this.styleFocusedCorner=y===void 0?!0:y;this.action=2;this.focusedCorner=this.resizeCorner=0;G=this.canvas.getContext("2d");if(!G)throw Error("qm");this.ctx=G;this.canvasMargin=N!=null?N:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;N=this.image;G=this.canvasInnerWidth/N.width;N.height*G>912&&(G=N.width/N.height*912/N.width);N=G;this.scaledImageWidth=this.canvas.width%2?
UB$(this.image.width*N):lX$(this.image.width*N);this.scaledImageHeight=Math.round(this.image.height*N);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22956_overlayMarginBottom=this.JSC$22956_overlayMarginTop=this.canvasMargin;this.JSC$22956_overlayMarginRight=this.JSC$22956_overlayMarginLeft=this.horizontalMargin;this.JSC$22956_overlayWidth=this.scaledImageWidth;this.JSC$22956_overlayHeight=this.scaledImageHeight;
G=this.image.width/this.image.height;G>this.requiredRatio?(this.JSC$22956_overlayWidth=this.canvas.width%2?UB$(this.scaledImageHeight*this.requiredRatio):lX$(this.scaledImageHeight*this.requiredRatio),this.JSC$22956_overlayMarginRight=this.JSC$22956_overlayMarginLeft=(this.canvas.width-this.JSC$22956_overlayWidth)/2):G<this.requiredRatio&&(this.JSC$22956_overlayHeight=this.canvas.height%2?UB$(this.scaledImageWidth/this.requiredRatio):lX$(this.scaledImageWidth/this.requiredRatio),this.JSC$22956_overlayMarginBottom=
this.JSC$22956_overlayMarginTop=(this.canvas.height-this.JSC$22956_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*N,this.scaledImageWidth);PGa(this)};
Z2.prototype.getContext=function(){return this.ctx};
var gDa=function(G,B){B={x:Math.round(B.pageX-G.canvas.getBoundingClientRect().left),y:Math.round(B.pageY-G.canvas.getBoundingClientRect().top)};G.dragStart=B;GXz(G,B)!==0?(G.action=1,BmC(G,B),G.resizeCorner=GXz(G,B)):B.x>G.JSC$22956_overlayMarginLeft&&B.x<G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth&&B.y>G.JSC$22956_overlayMarginTop&&B.y<G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight&&(G.action=0)},ie3=function(G,B){switch(B){case 1:return{x:G.JSC$22956_overlayMarginLeft,
y:G.JSC$22956_overlayMarginTop};case 2:return{x:G.JSC$22956_overlayMarginLeft,y:G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight};case 3:return{x:G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth,y:G.JSC$22956_overlayMarginTop};case 4:return{x:G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth,y:G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight};default:throw Error("rm");}},D36=function(G,B){if(G.focusedCorner!==0){G.dragStart=ie3(G,G.focusedCorner);
G.action=1;G.resizeCorner=G.focusedCorner;var F=G.dragStart.x,D=G.dragStart.y;switch(B){case 0:G.focusedCorner===1||G.focusedCorner===4?(F-=10,D-=10):(F-=10,D+=10);break;case 1:G.focusedCorner===1||G.focusedCorner===4?(F+=10,D+=10):(F+=10,D-=10);break;case 2:F=G.focusedCorner===1||G.focusedCorner===4?F-10:F+10;D-=10;break;case 3:F=G.focusedCorner===1||G.focusedCorner===4?F+10:F-10;D+=10;break;default:throw Error("sm");}FLz(G,{x:F,y:D});PGa(G);G.action=2;G.dragStart=void 0}},SA6=function(G,B){B={x:Math.round(B.pageX-
G.canvas.getBoundingClientRect().left),
y:Math.round(B.pageY-G.canvas.getBoundingClientRect().top)};BmC(G,B);switch(G.action){case 1:FLz(G,B);break;case 0:G.dragStart&&(G.JSC$22956_overlayMarginLeft=Math.max(G.horizontalMargin,Math.min(G.JSC$22956_overlayMarginLeft-(G.dragStart.x-B.x),G.horizontalMargin+G.scaledImageWidth-G.JSC$22956_overlayWidth)),G.JSC$22956_overlayMarginRight=G.canvas.width-G.JSC$22956_overlayMarginLeft-G.JSC$22956_overlayWidth,G.JSC$22956_overlayMarginTop=Math.max(G.canvasMargin,Math.min(G.JSC$22956_overlayMarginTop-
(G.dragStart.y-B.y),G.scaledImageHeight-G.JSC$22956_overlayHeight+G.canvasMargin)),G.JSC$22956_overlayMarginBottom=G.canvas.height-(G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight));break;default:return}PGa(G);G.dragStart=B},szL=function(G){G.action=2;
G.dragStart=void 0;document.body.style.cursor="auto"},BmC=function(G,B){switch(GXz(G,B)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:G.action!==1&&(document.body.style.cursor="auto")}},GXz=function(G,B){var F=G.JSC$22956_overlayMarginLeft-5,D=G.JSC$22956_overlayMarginTop-5,u=G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth-5;
G=G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-5;return uAe(B,{x:F,y:D})?1:uAe(B,{x:u,y:D})?3:uAe(B,{x:F,y:G})?2:uAe(B,{x:u,y:G})?4:0},uAe=function(G,B){return G.x>=B.x&&G.x<=B.x+10&&G.y>=B.y&&G.y<=B.y+10},FLz=function(G,B){if(G.dragStart)switch(G.resizeCorner){case 2:Math.abs((G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth-B.x)/(B.y-G.JSC$22956_overlayMarginTop))>=G.requiredRatio?Rw3(G,B.x):wXw(G,B.y);
break;case 1:Math.abs((G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth-B.x)/(G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-B.y))>=G.requiredRatio?Caz(G,B.x):wXw(G,B.y);break;case 4:Math.abs((B.x-G.JSC$22956_overlayMarginLeft)/(B.y-G.JSC$22956_overlayMarginTop))>=G.requiredRatio?Rw3(G,B.x):Nme(G,B.y);break;case 3:Math.abs((B.x-G.JSC$22956_overlayMarginLeft)/(G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-B.y))>=G.requiredRatio?Caz(G,B.x):Nme(G,B.y);break;default:throw Error("tm");
}},Rw3=function(G,B){var F=G.JSC$22956_overlayMarginTop;
G.JSC$22956_overlayMarginBottom=yjC(G,B);G.JSC$22956_overlayHeight=G.canvas.height-G.JSC$22956_overlayMarginBottom-F;G.JSC$22956_overlayWidth=Math.round(G.JSC$22956_overlayHeight*G.requiredRatio);nSm(G)},Caz=function(G,B){var F=G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight;
G.JSC$22956_overlayMarginTop=yjC(G,B);G.JSC$22956_overlayHeight=F-G.JSC$22956_overlayMarginTop;G.JSC$22956_overlayWidth=Math.round(G.JSC$22956_overlayHeight*G.requiredRatio);nSm(G)},nSm=function(G){switch(G.resizeCorner){case 2:case 1:G.JSC$22956_overlayMarginLeft=G.canvas.width-G.JSC$22956_overlayMarginRight-G.JSC$22956_overlayWidth;
break;case 4:case 3:G.JSC$22956_overlayMarginRight=G.canvas.width-G.JSC$22956_overlayMarginLeft-G.JSC$22956_overlayWidth;break;default:throw Error("tm");}},wXw=function(G,B){var F=G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth;
G.JSC$22956_overlayMarginLeft=l6M(G,B);G.JSC$22956_overlayWidth=F-G.JSC$22956_overlayMarginLeft;G.JSC$22956_overlayHeight=Math.round(G.JSC$22956_overlayWidth/G.requiredRatio);U3e(G)},Nme=function(G,B){var F=G.JSC$22956_overlayMarginLeft;
G.JSC$22956_overlayMarginRight=l6M(G,B);G.JSC$22956_overlayWidth=G.canvas.width-G.JSC$22956_overlayMarginRight-F;G.JSC$22956_overlayHeight=Math.round(G.JSC$22956_overlayWidth/G.requiredRatio);U3e(G)},U3e=function(G){switch(G.resizeCorner){case 2:case 4:G.JSC$22956_overlayMarginBottom=G.canvas.height-G.JSC$22956_overlayMarginTop-G.JSC$22956_overlayHeight;
break;case 1:case 3:G.JSC$22956_overlayMarginTop=G.canvas.height-G.JSC$22956_overlayMarginBottom-G.JSC$22956_overlayHeight;break;default:throw Error("tm");}},yjC=function(G,B){switch(G.resizeCorner){case 2:B=G.canvas.height-(G.JSC$22956_overlayMarginTop+qyC(G,B));
break;case 4:B=G.canvas.height-(G.JSC$22956_overlayMarginTop+ESC(G,B));break;case 1:B=G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-qyC(G,B);break;case 3:B=G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-ESC(G,B);break;default:throw Error("tm");}return Math.max(B,G.canvasMargin)},qyC=function(G,B){B=G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth-Math.max(B,G.horizontalMargin);
B=B<0?G.JSC$22956_overlayWidth:Math.max(B,G.minOverlayWidth);return Math.round(B/G.requiredRatio)},ESC=function(G,B){B=G.canvas.width-Math.max(G.canvas.width-B,G.horizontalMargin)-G.JSC$22956_overlayMarginLeft;
B=B<0?G.JSC$22956_overlayWidth:Math.max(B,G.minOverlayWidth);return Math.round(B/G.requiredRatio)},l6M=function(G,B){switch(G.resizeCorner){case 2:B=G.canvas.width-G.JSC$22956_overlayMarginRight-hwy(G,B);
break;case 4:B=G.canvas.width-G.JSC$22956_overlayMarginLeft-hwy(G,B);break;case 1:B=G.canvas.width-G.JSC$22956_overlayMarginRight-KLX(G,B);break;case 3:B=G.canvas.width-G.JSC$22956_overlayMarginLeft-KLX(G,B);break;default:throw Error("tm");}return Math.max(B,G.horizontalMargin)},hwy=function(G,B){B=G.canvas.height-Math.max(G.canvas.height-B,G.canvasMargin)-G.JSC$22956_overlayMarginTop;
return B<0?G.JSC$22956_overlayWidth:Math.max(Math.round(B*G.requiredRatio),G.minOverlayWidth)},KLX=function(G,B){B=G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-Math.max(B,G.canvasMargin);
return B<0?G.JSC$22956_overlayWidth:Math.max(Math.round(B*G.requiredRatio),G.minOverlayWidth)},PGa=function(G){G.ctx.clearRect(0,0,G.canvas.width,G.canvas.height);
G.ctx.drawImage(G.image,0,0,G.image.width,G.image.height,G.horizontalMargin,G.canvasMargin,G.canvas.width-2*G.horizontalMargin,G.scaledImageHeight);G.ctx.fillStyle="rgba(0, 0, 0, 0.7)";G.ctx.fillRect(G.horizontalMargin,G.JSC$22956_overlayMarginTop,G.JSC$22956_overlayMarginLeft-G.horizontalMargin,G.JSC$22956_overlayHeight);G.ctx.fillRect(G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth,G.JSC$22956_overlayMarginTop,G.JSC$22956_overlayMarginRight-G.horizontalMargin,G.JSC$22956_overlayHeight);G.ctx.fillRect(G.horizontalMargin,
G.canvasMargin,G.scaledImageWidth,G.JSC$22956_overlayMarginTop-G.canvasMargin);G.ctx.fillRect(G.horizontalMargin,G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight,G.scaledImageWidth,G.JSC$22956_overlayMarginBottom-G.canvasMargin);G.drawOverlay();G.component&&_.cZ(G.component,"image-updated")};
Z2.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22956_overlayMarginLeft,this.JSC$22956_overlayMarginTop,this.JSC$22956_overlayWidth,this.JSC$22956_overlayHeight);a6y(this)};
var a6y=function(G){var B=G.JSC$22956_overlayMarginLeft-5,F=G.JSC$22956_overlayMarginTop-5,D=G.JSC$22956_overlayMarginLeft+G.JSC$22956_overlayWidth-5,u=G.JSC$22956_overlayMarginTop+G.JSC$22956_overlayHeight-5;G.ctx.fillStyle="#FFF";G.ctx.fillRect(B,F,10,10);G.ctx.strokeRect(B,F,10,10);G.ctx.fillRect(D,F,10,10);G.ctx.strokeRect(D,F,10,10);G.ctx.fillRect(B,u,10,10);G.ctx.strokeRect(B,u,10,10);G.ctx.fillRect(D,u,10,10);G.ctx.strokeRect(D,u,10,10);if(G.focusedCorner!==0&&G.styleFocusedCorner){G.ctx.lineWidth=
4;G.ctx.strokeStyle="#3EA6FF";switch(G.focusedCorner){case 1:--B;--F;break;case 2:--B;F=u-1;break;case 3:B=D-1;--F;break;case 4:B=D-1;F=u-1;break;default:return}G.ctx.strokeRect(B,F,12,12)}};
Z2.prototype.crop=function(G,B){B=B===void 0?!0:B;var F=this.image.width/this.scaledImageWidth,D=document.createElement("canvas"),u=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],R=this.JSC$22956_overlayWidth*F,N=this.JSC$22956_overlayHeight*F;D.width=Math.max(R,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);D.height=Math.max(N,u);G&&(D.width=Math.min(D.width,D.height),D.height=Math.min(D.width,D.height));
G=D.getContext("2d");if(!G)throw Error("hm");u=(this.JSC$22956_overlayMarginLeft-this.horizontalMargin)*F;F*=this.JSC$22956_overlayMarginTop-this.canvasMargin;B||(G.fillStyle="white",G.fillRect(0,0,D.width,D.height));G.drawImage(this.image,u,F,R,N,0,0,D.width,D.height);return D};var m3y=function(G,B,F,D,u){Z2.call(this,G,B,F,D,void 0,u,8,!1)};
_.r(m3y,Z2);m3y.prototype.drawOverlay=function(){var G=this.getContext(),B=this.JSC$22956_overlayWidth,F=this.JSC$22956_overlayHeight,D=this.JSC$22956_overlayMarginTop,u=this.JSC$22956_overlayMarginLeft;G.lineWidth=2;G.strokeStyle="#3EA6FF";G.beginPath();G.arc(u+B/2,D+F/2,B/2,0,2*Math.PI);G.stroke();G.strokeRect(u,D,B,F);a6y(this)};
var XXA={maxFileSizeMB:15,minWidth:98,minHeight:98},QMz=["image/png","image/jpeg","image/gif"],gx=function(){var G=_.p.apply(this,arguments)||this;G.fileSelectorFocusListener=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!0;G.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return G};
_.r(gx,_.p);_.w=gx.prototype;_.w.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.w.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.w.computePlaylistThumbnail=function(G){return G==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.w.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.T1(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.w.setErrorState=function(G){this.resetErrorState();G&&(this.errorMessage=G)};
_.w.showPopup=function(){var G=this;this.hideContainer=!1;_.mX(_.Lu,function(){_.cZ(G.hostElement,"yt-refit")});
this.isLoading=!1};
_.w.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.w.closePopup=function(){this.resetFileSelector();_.T1(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.onCancelTap=function(){this.isPlaylistThumbnail||_.T1(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.w.openFileSelector=function(){var G=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.mX(_.Lu,function(){setTimeout(function(){if(!G.fileSelector.files||G.fileSelector.files.length===0)G.onCancelTap();G.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(B){B instanceof Error?_.k2(B):_.Oz(new _.Uf(JSON.stringify(B)))}};
_.w.handleFileSelection=function(){var G=this,B,F,D,u,R,N;return _.n(function(y){switch(y.nextAddress){case 1:_.b5(y,2);if(!G.fileSelector.files||!G.imageEditorCanvas)return G.onCancelTap(),y.return();B=G.fileSelector.files[0];tQj(G.imageChecker,B);_.b5(y,4);return y.yield(zPQ(B),6);case 6:G.mimeType=y.yieldResult;_.oY(y,5,2);break;case 4:_.Al(y,2),_.T1(G.hostElement,"yt-image-selection-error-action",[(F=G.data)==null?void 0:F.genericImageLoadErrorMessage]),G.onCancelTap();case 5:D=new FileReader;
D.addEventListener("load",function(){var U,q;return _.n(function(h){if(h.nextAddress==1){if(!D.result)return _.em(Error("jm")),h.return();U=D.result;q=new Image;q.src=U;q.onload=function(){try{var K=G.imageChecker;if(q.width<K.requirements.minWidth||q.height<K.requirements.minHeight)throw new IZX(K.requirements.minWidth,K.requirements.minHeight);}catch(m){if(m instanceof IZX){var a;_.T1(G.hostElement,"yt-image-selection-error-action",[(a=G.data)==null?void 0:a.imageDimensionErrorMessage]);G.logImageDimensionErrorVe()}else m instanceof
Error?_.k2(m):(K=new _.Uf(JSON.stringify(m)),_.k2(K));G.onCancelTap()}G.showPopup()};
q.onerror=function(){var K;_.T1(G.hostElement,"yt-image-selection-error-action",[(K=G.data)==null?void 0:K.genericImageLoadErrorMessage]);G.onCancelTap()};
return h.yield(xHw(G.imageEditorCanvas,U),2)}G.imageEditor=h.yieldResult;G.updatePositionOfAllCorners();G.addEventListeners(G.imageEditor);_.di(h)})},!1);
D.readAsDataURL(B);_.oY(y,0);break;case 2:u=_.Al(y),u instanceof T$X?_.T1(G.hostElement,"yt-image-selection-error-action",[(R=G.data)==null?void 0:R.imageSizeErrorMessage]):(u instanceof Error?_.k2(u):_.Oz(new _.Uf(JSON.stringify(u))),_.T1(G.hostElement,"yt-image-selection-error-action",[(N=G.data)==null?void 0:N.genericImageLoadErrorMessage])),G.onCancelTap(),_.di(y)}})};
_.w.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var G=_.u4(_.Rh(),{veType:232707,visualElement:_.ge(232707)});G&&(G={visualElement:G},_.De().reportShown(G))}};
_.w.handleImageSelectionErrorAction=function(G){this.isPlaylistThumbnail&&_.b66(this.hostElement,G)};
_.w.convertToImageFormatBundle=function(G){var B=this,F,D,u;return _.n(function(R){switch(R.nextAddress){case 1:return F=G.toDataURL(B.outputMimeType,1),R.yield(bXN(F),2);case 2:D=R.yieldResult;_.b5(R,3);tQj(B.imageChecker,D);_.oY(R,4);break;case 3:u=_.Al(R);if(!(u instanceof T$X))throw u;_.em(new _.Uf("Output size is bigger than input size for image",B.mimeType,B.outputMimeType,D.size));F=G.toDataURL("image/jpeg",.95);return R.yield(bXN(F),6);case 6:D=R.yieldResult;case 4:return R.return({dataUrl:F,
imageFile:D})}})};
_.w.handleUploadImageToScottyCommand=function(G){var B=this,F,D,u,R,N,y,U,q,h,K;return _.n(function(a){switch(a.nextAddress){case 1:if(!B.imageEditor||!_.Q(G,qt$))return a.return();F=_.Q(G,qt$).scottyUploadUrl;if(!F){var m=new _.Uf("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.k2(m);return a.return()}_.b5(a,2);B.setLoadingState();D=B.imageEditor.crop(!1,!1);return a.yield(B.convertToImageFormatBundle(D),4);case 4:return u=a.yieldResult,a.yield(ePH(u.imageFile,F),5);
case 5:R=a.yieldResult;((N=B.data)==null?0:N.onUploadEndpoint)?(y=B.buildUploadServiceEndpoint(R),B.ytComponentBehavior.resolveCommand(y),U=_.Q(y,_.KV),((q=U)==null?0:q.params)?B.closePopup():B.resetFileSelector()):(_.T1(B.hostElement,"yt-image-updated-action",[u.dataUrl,R]),B.closePopup());_.oY(a,0);break;case 2:h=_.Al(a),B.setErrorState((K=B.data)==null?void 0:K.uploadErrorMessage),h instanceof Error?_.k2(h):(m=new _.Uf(JSON.stringify(h)),_.k2(m)),_.di(a)}})};
_.w.buildUploadServiceEndpoint=function(G){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",G),this.data.onUploadEndpoint):null};
_.w.dataChanged=function(){var G=this,B;return _.n(function(F){if(F.nextAddress==1){if(!G.data||!G.canvasElement)return F.return();G.data.imageRatio&&G.data.minImageCropWidth||_.Oz(new _.Uf("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));B=function(D,u){return G.data.imageType==="IMAGE_TYPE_AVATAR"?new m3y(D,u,G.data.imageRatio,[G.data.minImageCropWidth,G.data.minImageCropWidth/G.data.imageRatio],G.hostElement):new Z2(D,u,G.data.imageRatio,[G.data.minImageCropWidth,
G.data.minImageCropWidth/G.data.imageRatio],void 0,G.hostElement,8,!1)};
G.imageEditorCanvas=new ZNz(G.canvasElement,B);return G.data.url?F.yield(xHw(G.imageEditorCanvas,G.data.url),3):(G.hideContainer=!0,G.openFileSelector(),F.jumpTo(0))}G.imageEditor=F.yieldResult;G.showPopup();G.addEventListeners(G.imageEditor);_.di(F)})};
_.w.addEventListeners=function(G){this.removeEventListeners();var B=function(u){gDa(G,u)};
this.JSC$22964_mouseDownEvent=B;var F=function(u){SA6(G,u)};
this.JSC$22964_mouseMoveEvent=F;var D=function(){szL(G)};
this.JSC$22964_mouseUpEvent=D;this.topLeftCorner.addEventListener("mousedown",B);this.topLeftCorner.addEventListener("mousemove",F);this.topLeftCorner.addEventListener("mouseup",D);this.topRightCorner.addEventListener("mousedown",B);this.topRightCorner.addEventListener("mousemove",F);this.topRightCorner.addEventListener("mouseup",D);this.bottomLeftCorner.addEventListener("mousedown",B);this.bottomLeftCorner.addEventListener("mousemove",F);this.bottomLeftCorner.addEventListener("mouseup",D);this.bottomRightCorner.addEventListener("mousedown",
B);this.bottomRightCorner.addEventListener("mousemove",F);this.bottomRightCorner.addEventListener("mouseup",D)};
_.w.removeEventListeners=function(){this.JSC$22964_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22964_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22964_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22964_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22964_mouseDownEvent));this.JSC$22964_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22964_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22964_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22964_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22964_mouseMoveEvent));this.JSC$22964_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22964_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22964_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22964_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22964_mouseUpEvent))};
_.w.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var G=document.activeElement;G&&G.shadowRoot&&G.shadowRoot.activeElement;)G=G.shadowRoot.activeElement;switch(G){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};
_.w.updatePositionOfCorner=function(G,B){var F=G.y-B.offsetHeight/2+4;B.style.left=G.x-B.offsetWidth/2+16+"px";B.style.top=F+"px"};
_.w.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var G=_.C([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),B=G.next();!B.done;B=G.next()){B=B.value;var F=ie3(this.imageEditor,B.corner);this.updatePositionOfCorner(F,B.div)}};
_.w.onLeft=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(D36(this.imageEditor,0),this.updatePositionOfAllCorners(),G.preventDefault())};
_.w.onRight=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(D36(this.imageEditor,1),this.updatePositionOfAllCorners(),G.preventDefault())};
_.w.onUp=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(D36(this.imageEditor,2),this.updatePositionOfAllCorners(),G.preventDefault())};
_.w.onDown=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(D36(this.imageEditor,3),this.updatePositionOfAllCorners(),G.preventDefault())};
_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.ZN.Object.defineProperties(gx.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&QMz.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var G,B,F;((B=this.data)==null?0:B.imageRatio)&&((F=this.data)==null?0:F.minImageCropWidth)?G={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:G=XXA;return new fZX(G)}}});
gx.prototype.updatePositionOfAllCorners=gx.prototype.updatePositionOfAllCorners;gx.prototype.dataChanged=gx.prototype.dataChanged;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],gx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],gx.prototype,"ytComponentBehavior",void 0);_.c([_.k(_.sV),_.I("design:type",Object)],gx.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.iA("#canvas"),_.I("design:type",HTMLCanvasElement)],gx.prototype,"canvasElement",void 0);_.c([_.iA("#file-selector"),_.I("design:type",HTMLInputElement)],gx.prototype,"fileSelector",void 0);_.c([_.iA("#top-left-corner"),_.I("design:type",HTMLDivElement)],gx.prototype,"topLeftCorner",void 0);_.c([_.iA("#top-right-corner"),_.I("design:type",HTMLDivElement)],gx.prototype,"topRightCorner",void 0);
_.c([_.iA("#bottom-left-corner"),_.I("design:type",HTMLDivElement)],gx.prototype,"bottomLeftCorner",void 0);_.c([_.iA("#bottom-right-corner"),_.I("design:type",HTMLDivElement)],gx.prototype,"bottomRightCorner",void 0);_.c([_.v(),_.I("design:type",Object)],gx.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],gx.prototype,"errorMessage",void 0);_.c([_.v(),_.I("design:type",Object)],gx.prototype,"isLoading",void 0);_.c([_.v(),_.I("design:type",Object)],gx.prototype,"hideContainer",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.I("design:type",Boolean)],gx.prototype,"isPlaylistThumbnail",void 0);_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],gx.prototype,"dataChanged",null);_.c([_.Pm("image-updated"),_.Pm("yt-refit"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],gx.prototype,"updatePositionOfAllCorners",null);
_.c([_.ay({is:"yt-image-editor-renderer",disableElementRegistration:!0})],gx);
_.d(gx,"yt-image-editor-renderer",function(){if(c2z===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;J2y===void 0&&(J2y=document.createElement("template"));var D=J2y;F.call(B,D.content.cloneNode(!0),G.content.firstChild);c2z=G}G=c2z;return G},{mode:2});var jMA;var LLS;var Si=function(){return _.p.apply(this,arguments)||this};
_.r(Si,_.p);Si.prototype.updateMinutesFromBinding=function(G){this.handleMinutesChanged&&this.handleMinutesChanged(G)};
Si.prototype.updateSecondsFromBinding=function(G){this.handleSecondsChanged&&this.handleSecondsChanged(G)};
Si.prototype.updateDescriptionFromBinding=function(G){this.handleDescriptionChanged&&this.handleDescriptionChanged(G)};
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Si.prototype,"data",void 0);_.c([_.v(),_.I("design:type",String)],Si.prototype,"minutes",void 0);_.c([_.v(),_.I("design:type",String)],Si.prototype,"seconds",void 0);_.c([_.v(),_.I("design:type",String)],Si.prototype,"description",void 0);_.c([_.v(),_.I("design:type",Function)],Si.prototype,"handleMinutesChanged",void 0);
_.c([_.v(),_.I("design:type",Function)],Si.prototype,"handleSecondsChanged",void 0);_.c([_.v(),_.I("design:type",Function)],Si.prototype,"handleDescriptionChanged",void 0);_.c([_.v(),_.I("design:type",Number)],Si.prototype,"characterLimit",void 0);_.c([_.v(),_.I("design:type",Number)],Si.prototype,"textNumRows",void 0);_.c([_.ay({is:"yt-report-details-form-content",disableElementRegistration:!0})],Si);
_.d(Si,"yt-report-details-form-content",function(){if(LLS===void 0){var G=document.createElement("template");_.H(G,'\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>');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;jMA===void 0&&(jMA=document.createElement("template"));var D=jMA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);LLS=G}G=LLS;return G},{mode:2});var rjC;var WLm;var sQ=function(){var G=_.p.apply(this,arguments)||this;G.updateMinutesFromBinding=function(B){G.minutes=B.detail.value};
G.updateSecondsFromBinding=function(B){G.seconds=B.detail.value};
G.updateDescriptionFromBinding=function(B){G.description=B.detail.value};
return G};
_.r(sQ,_.p);_.w=sQ.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.w.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"}}}};
_.w.ready=function(){_.IF(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.w.onSubmitYtAction=function(G){var B=G.detail;B.actionName==="yt-service-request"&&(B=B.args[1],B.flagEndpoint&&(G.stopPropagation(),this.refireAction(B)))};
_.w.refireAction=function(G){var B={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(B.vss_id=this.vssId);_.fi(this.hostElement,[G,B]);this.submitDisabled=!0};
_.w.dataChanged=function(){var G=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var B=_.AZ();B&&B.getPlayerPromise().then(function(F){var D=F.getOption("cc","track")||F.getOption("captions","track");D&&(G.vssId=D.vss_id);F=F.getCurrentTime();G.minutes=Math.floor(F/60).toString();G.seconds=(Math.floor(F)%60).toString()})};
_.w.updateSubmitButtonState=function(){var G;((G=this.data)==null?0:G.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==="")};
_.w.onYtServiceRequestCompleted=function(){_.T1(this.hostElement,"yt-close-popup-action")};
_.w.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.ZN.Object.defineProperties(sQ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.textNumRows)||4}}});
sQ.prototype.onYtServiceRequestError=sQ.prototype.onYtServiceRequestError;sQ.prototype.onYtServiceRequestCompleted=sQ.prototype.onYtServiceRequestCompleted;sQ.prototype.updateSubmitButtonState=sQ.prototype.updateSubmitButtonState;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);
_.c([_.v({observer:"dataChanged"}),_.I("design:type",Object)],sQ.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Boolean)],sQ.prototype,"submitDisabled",void 0);_.c([_.v(),_.I("design:type",String)],sQ.prototype,"minutes",void 0);_.c([_.v(),_.I("design:type",String)],sQ.prototype,"seconds",void 0);_.c([_.v(),_.I("design:type",String)],sQ.prototype,"description",void 0);_.c([_.v(),_.I("design:type",String)],sQ.prototype,"vssId",void 0);
_.c([_.v({value:_.v5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.I("design:type",Boolean)],sQ.prototype,"isMusic",void 0);_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],sQ.prototype,"characterLimit",null);_.c([_.O("data"),_.I("design:type",Number),_.I("design:paramtypes",[])],sQ.prototype,"textNumRows",null);
_.c([_.Ry("minutes","seconds","description","submitDisabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sQ.prototype,"updateSubmitButtonState",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sQ.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],sQ.prototype,"onYtServiceRequestError",null);_.c([_.ay({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],sQ);
_.d(sQ,"yt-report-details-form-renderer",function(){if(WLm===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;rjC===void 0&&(rjC=document.createElement("template"));var D=rjC;F.call(B,D.content.cloneNode(!0),G.content.firstChild);WLm=G}G=WLm;return G});var Hez;var kXX;var Oe3;var ewe;var xU=function(){return _.p.apply(this,arguments)||this};
_.r(xU,_.p);
xU.prototype.onCheckedChanged_=function(){if(this.data){var G=_.IF(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.T1(this.hostElement,"yt-additional-detail-checkbox-update",[G]):this.data.identifier==="yt-hide-user-checkbox"?_.T1(this.hostElement,"yt-hide-user-checkbox-update",[G]):G&&this.data.enableCommand?_.T1(this.hostElement,"yt-modify-report-form-command",[_.Q(this.data.enableCommand,MPA)]):!G&&this.data.disableCommand&&_.T1(this.hostElement,
"yt-modify-report-form-command",[_.Q(this.data.enableCommand,MPA)])}};
xU.prototype.onLabelTap_=function(G){G.target.tagName!="A"&&(_.IF(this.hostElement).querySelector("#checkbox").checked=!_.IF(this.hostElement).querySelector("#checkbox").checked)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],xU.prototype,"data",void 0);_.c([_.ay({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],xU);
_.d(xU,"yt-boolean-form-field-v2-renderer",function(){if(ewe===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Oe3===void 0&&(Oe3=document.createElement("template"));var D=Oe3;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ewe=G}G=ewe;return G});var PD=function(){var G=_.p.apply(this,arguments)||this;G.canShowAdditionalDetailCheckbox=!1;G.canShowCheckbox=!1;G.keepDropdownFocusedAfterSelection=!0;return G};
_.r(PD,_.p);PD.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}}}}};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],PD.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],PD.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.v(),_.I("design:type",Object)],PD.prototype,"canShowCheckbox",void 0);_.c([_.v(),_.I("design:type",Object)],PD.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.ay({is:"yt-report-form-modal-content",disableElementRegistration:!0})],PD);
_.d(PD,"yt-report-form-modal-content",function(){if(kXX===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Hez===void 0&&(Hez=document.createElement("template"));var D=Hez;F.call(B,D.content.cloneNode(!0),G.content.firstChild);kXX=G}G=kXX;return G},{mode:2});var $3a;var zww;var Gg=function(){var G=_.p.apply(this,arguments)||this;G.submitting=!1;G.submitButtonDisabled=!0;G.command=null;G.canShowCheckbox=!1;G.canShowAdditionalDetailCheckbox=!1;G.canShowNextButton=!1;G.additionalDetailCheckboxChecked=!1;G.refitJob=0;G.keepDropdownFocusedAfterSelection=!0;G.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 G};
_.r(Gg,_.p);_.w=Gg.prototype;_.w.created=function(){this.refitJob=0};
_.w.attached=function(){this.JSC$22987_scroller&&(this.JSC$22987_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22987_scroller.attached&&typeof this.JSC$22987_scroller.attached==="function"&&this.JSC$22987_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(G){G&&(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,G.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),G.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.w.onYtPopupOpened=function(){var G=_.AZ();G&&G.getPlayerPromise().then(function(B){B.pauseVideo()})};
_.w.onYtNavigate=function(G){_.Q(G.detail.endpoint,_.WE8)&&(G.stopPropagation(),this.hideReportForm=!0)};
_.w.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.w.onYtServiceRequestCompleted=function(G,B){var F=B.actions;if(F){if(F.length===1&&_.Q(F[0],_.gs)){var D;F=((D=_.Q(F[0],_.gs))==null?void 0:D.commands)||[]}D=0;for(var u=F.length;D<u;D++)_.Q(F[D],_.Dx)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(F[D]))}if(B.data&&(G=this.get("feedbackResponses",B.data)))for(B=0;B<G.length;B++)if(G[B].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.w.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.w._onDescendantIronResize=function(G){G.stopPropagation();return!1};
_.w.handleReportFormEndpointUpdateAction=function(G){if(G.submitEndpoint){var B=this.command=G.submitEndpoint;B=_.Q(B,_.rQN);if(B==null?0:B.additionalDetailCheckboxChecked)B.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else G.submitNavigationEndpoint?(this.command=G.submitNavigationEndpoint,this.toggleSubmitButton(!1)):G.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:G.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;G.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",G));this.refit()};
_.w.handleConfirmDialogCloseAction=function(G){G.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.w.submitButtonDisabledChanged=function(){var G=this.hostElement.parentElement;G&&G.invalidateTabbables&&G.invalidateTabbables()};
_.w.handleModifyReportFormCommand=function(G){G=this.get("action",G);G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:G==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:G==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.w.updateDialogStyling=function(){var G,B,F,D,u,R=((u=(G=this.data)==null?void 0:(B=G.optionsSupportedRenderers)==null?void 0:(F=B.optionsRenderer)==null?void 0:(D=F.items)==null?void 0:D.length)!=null?u:0)<=2?0:240;_.Ss(this.hostElement,{"--yt-report-form-modal-renderer-min-width":R+"px"})};
_.w.toggleSubmitButton=function(G){this.submitButtonDisabled=!G;this.submitButtonDisabled=G};
_.w.computeSubmitButtonData=function(G,B){var F={};_.Q(B,_.WE8)?F.navigationEndpoint=B:F.command=B||void 0;G&&G.buttonRenderer&&_.UK.extend(F,G.buttonRenderer);return F};
_.w.computeNextButtonData=function(G,B){var F={};if(!G||!G.buttonRenderer)return F;_.UK.extend(F,G.buttonRenderer);if(!B)return F;if(_.Q(B,_.WE8))F.navigationEndpoint=yDN(B);else if(F.command=yDN(B),G=_.Q(F.command,_.rQN))G.legalCheckboxChecked=!0;return F};
_.w.computeShowNextButton=function(G,B,F){return!!G&&B&&F};
_.w.refit=function(){var G=this;this.refitJob||(this.refitJob=_.Lu.addLowPriorityJob(function(){_.cZ(G.hostElement,"yt-refit");G.refitJob=0}))};
_.w.handleAdditionalDetailCheckboxUpdateAction=function(G){this.additionalDetailCheckboxChecked=G;_.Q(this.command,_.rQN).additionalDetailCheckboxChecked=G};
_.ZN.Object.defineProperties(Gg,{template:{configurable:!0,enumerable:!0,get:function(){if(zww===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;$3a===void 0&&($3a=document.createElement("template"));var D=$3a;F.call(B,D.content.cloneNode(!0),G.content.firstChild);zww=G}G=zww;return G}}});
Gg.prototype.onYtServiceRequestError=Gg.prototype.onYtServiceRequestError;Gg.prototype.onYtServiceRequestCompleted=Gg.prototype.onYtServiceRequestCompleted;Gg.prototype.onYtServiceRequestSent=Gg.prototype.onYtServiceRequestSent;Gg.prototype.onYtNavigate=Gg.prototype.onYtNavigate;Gg.prototype.onYtPopupOpened=Gg.prototype.onYtPopupOpened;_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],Gg.prototype,"openPopupBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Gg.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],Gg.prototype,"eventForwardingBehavior",void 0);_.c([_.k(_.Rc),_.I("design:type",Object)],Gg.prototype,"ironResizableBehavior",void 0);_.c([_.v({observer:"dataChanged"}),_.I("design:type",Object)],Gg.prototype,"data",void 0);
_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"submitting",void 0);_.c([_.v({observer:"submitButtonDisabledChanged"}),_.I("design:type",Object)],Gg.prototype,"submitButtonDisabled",void 0);_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"command",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],Gg.prototype,"hideReportForm",void 0);_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"canShowCheckbox",void 0);
_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"canShowNextButton",void 0);_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"additionalDetailCheckboxChecked",void 0);_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"refitJob",void 0);_.c([_.v(),_.I("design:type",Object)],Gg.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.iA("#scroller"),_.I("design:type",Object)],Gg.prototype,"JSC$22987_scroller",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Gg.prototype,"onYtPopupOpened",null);_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Gg.prototype,"onYtNavigate",null);
_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],Gg.prototype,"onYtServiceRequestSent",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],Gg.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Gg.prototype,"onYtServiceRequestError",null);_.c([_.ay({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Gg);var bem;var VzL;var Bt=function(){return _.p.apply(this,arguments)||this};
_.r(Bt,_.p);_.w=Bt.prototype;_.w.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.w.onVisible=function(){var G,B;(B=_.te().resolve(_.fH(_.XI)))==null||B.enqueue({label:_.zx((G=this.data)==null?void 0:G.messageTitle),elementToFocus:this.hostElement})};
_.w.onThumbnailLoaded=function(){_.cZ(this.hostElement,"yt-refit")};
_.w.onDismissTap=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.w.computeAlternateIcon=function(G){return G?G==="BACKSTAGE_ARTWORK"?"backstage:artwork":G:null};
_.w.computeFontFamily=function(G){return G==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.w.computeBackgroundStyle=function(G,B){if(G=this.computeBackgroundImage(G,B))if(G=_.dJ(G.thumbnails))return'background-image: url("'+G+'");'};
_.w.computeHasFullHeightImage=function(G){return!(!(G&&G.thumbnails&&G.thumbnails.length>0)||this.modern)};
_.w.isModernStyle=function(G){return G.style==="STYLE_MODERN"};
_.w.computeIcon=function(G,B){if(G&&G.icon)return B?G.iconDark:G.icon};
_.w.computeBackgroundImage=function(G,B){if(G&&G.backgroundImage)return B?G.backgroundImageDark:G.backgroundImage};
_.w.computeLogo=function(G,B){if(G&&G.logo)return B?G.logoDark:G.logo};
_.w.computeShouldShowModernIcon=function(G,B){return G&&!!B};
_.w.getLogoContainerClassName=function(G){return this.logoWithPadding(G)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.w.getLogoImageId=function(G){return this.logoWithPadding(G)?"mealbar-logo-with-padding":"mealbar-logo"};
_.w.logoWithPadding=function(G){var B,F,D;return(G=(B=this.computeLogo(G,this.isDarkTheme))==null?void 0:(F=B.thumbnails)==null?void 0:(D=F[0])==null?void 0:D.height)&&G%31===0?!0:!1};
Bt.prototype.onThumbnailLoaded=Bt.prototype.onThumbnailLoaded;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.c([_.v({}),_.I("design:type",Object)],Bt.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.I("design:type",Boolean)],Bt.prototype,"modern",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Bt.prototype,"isDarkTheme",void 0);
_.c([_.v({computed:"computeIcon(data, isDarkTheme)"}),_.I("design:type",Object)],Bt.prototype,"icon",void 0);_.c([_.v({computed:"computeLogo(data, isDarkTheme)"}),_.I("design:type",Object)],Bt.prototype,"logo",void 0);_.c([_.v({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.I("design:type",Object)],Bt.prototype,"backgroundStyle",void 0);_.c([_.v({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.I("design:type",Object)],Bt.prototype,"alternateIcon",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.I("design:type",Boolean)],Bt.prototype,"hasFullHeightImage",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.I("design:type",Boolean)],Bt.prototype,"useYoutubeSans",void 0);_.c([_.v({computed:"computeShouldShowModernIcon(modern, icon)"}),_.I("design:type",Boolean)],Bt.prototype,"shouldShowModernIcon",void 0);
_.c([_.Pm("yt-img-shadow-loaded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Bt.prototype,"onThumbnailLoaded",null);_.c([_.ay({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Bt);
_.d(Bt,"yt-mealbar-promo-renderer",function(){if(VzL===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;bem===void 0&&(bem=document.createElement("template"));var D=bem;F.call(B,D.content.cloneNode(!0),G.content.firstChild);VzL=G}G=VzL;return G},{mode:2});var vSe;var oSA;var iS=function(){return _.p.apply(this,arguments)||this};
_.r(iS,_.p);_.w=iS.prototype;_.w.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]]"}}}}}};
_.w.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.acceptButton)};
_.w.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.w.observeImpressionEndpoints_=function(){var G=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(B){B.clickTrackingParams&&delete B.clickTrackingParams;_.fi(G.hostElement,[B])})};
_.w.onTap_=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
iS.prototype.observeImpressionEndpoints_=iS.prototype.observeImpressionEndpoints_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],iS.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],iS.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],iS.prototype,"positionType",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.I("design:type",Boolean)],iS.prototype,"hasButtons_",void 0);_.c([_.v({value:function(){return this.onTap_.bind(this)}}),
_.I("design:type",Function)],iS.prototype,"boundOnTap_",void 0);_.c([_.v({value:{style:"mono-inverse"}}),_.I("design:type",Object)],iS.prototype,"buttonOverride",void 0);_.c([_.Ga("data.promoConfig.impressionEndpoints"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],iS.prototype,"observeImpressionEndpoints_",null);_.c([_.ay({is:"yt-tooltip-renderer",disableElementRegistration:!0})],iS);
_.d(iS,"yt-tooltip-renderer",function(){if(oSA===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;vSe===void 0&&(vSe=document.createElement("template"));var D=vSe;F.call(B,D.content.cloneNode(!0),G.content.firstChild);oSA=G}G=oSA;return G},{mode:2});var Mzj;var pXm;var Yy3;var Ajw;var Fy=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-open-popup-action":"onOpen"};return G};
_.r(Fy,_.p);_.w=Fy.prototype;_.w.attached=function(){this.onOpen()};
_.w.updateTimeSecs=function(G){this.currentTimeSecs=G};
_.w.computeTimeString=function(G){G=G.toString();var B=Math.floor(Number(G)/3600),F=Math.floor(Number(G)%3600%60);return(B>0?B+":":"")+_.PU(Math.floor(Number(G)%3600/60),B>0?2:1)+":"+_.PU(F,2)};
_.w.computeTimeStringA11y=function(G){return _.OLQ({seconds:G})};
_.w.getTimeParam=function(){return qlD(this.timeString)};
_.w.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var G={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},B;_.ss(_.Rh(),(B=this.data)==null?void 0:B.trackingParams,G,7)};
_.w.onChangeStartAtTimestamp=function(){for(var G=this.startAtTimestamp.value.split(":"),B=0,F=1,D=G.length-1;D>=0;D--)B+=Number(G[D])*F,F*=60;this.updateTimeSecs(B);this.setTimestamp()};
_.w.onOpen=function(){var G=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var B=_.AZ();B?B.getPlayerPromise().then(function(F){F=F.getCurrentTime();G.updateTimeSecs(F)}):u9Q()&&this.updateTimeSecs(u9Q())};
_.w.setTimestamp=function(){var G=Math.floor(this.currentTimeSecs);_.T1(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!G,timestamp:G||""}])};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Fy.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Fy.prototype,"data",void 0);_.c([_.v({value:!1,notify:!0}),_.I("design:type",Boolean)],Fy.prototype,"isStartAtChecked",void 0);_.c([_.v(),_.I("design:type",Number)],Fy.prototype,"currentTimeSecs",void 0);
_.c([_.v({computed:"computeTimeString(currentTimeSecs)"}),_.I("design:type",String)],Fy.prototype,"timeString",void 0);_.c([_.v({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.I("design:type",String)],Fy.prototype,"timeStringA11y",void 0);_.c([_.iA("#start-at-timestamp"),_.I("design:type",Object)],Fy.prototype,"startAtTimestamp",void 0);_.c([_.ay({is:"yt-start-at-renderer",disableElementRegistration:!0})],Fy);
_.d(Fy,"yt-start-at-renderer",function(){if(Ajw===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Yy3===void 0&&(Yy3=document.createElement("template"));var D=Yy3;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Ajw=G}G=Ajw;return G},{mode:2});var d3C={},JjS=(d3C.WEB_REMIX="music.youtube.com",d3C),DE=function(){var G=_.p.apply(this,arguments)||this;G.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return G};
_.r(DE,_.p);_.w=DE.prototype;_.w.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.created=function(){this.embedHost_=JjS[_.v5("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.w.ready=function(){_.IF(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.w.computeEmbedCode_=function(G,B,F,D,u){if(!G)return"";var R=G.videoId,N=G.fullListId,y=[];G.attributionId&&y.push("si="+G.attributionId);D||y.push("controls=0");F&&Number(B)>0&&y.push("start="+B);N&&(R="videoseries",y.push("list="+N));F="https://"+(u?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+R;G.clipId&&(y.push("clip="+G.clipId),y.push("clipt="+G.clipTiming));B=y.length>0?F+"?"+y.join("&amp;"):F;G.encryptedEmbedConfig&&y.push("embed_config="+JSON.stringify({enc:G.encryptedEmbedConfig}));
y=y.length>0?F+"?"+y.join("&amp;"):F;_.X("web_sharing_embed_preview_killswitch")?_.IF(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(y,G.previewWidth||854,G.previewHeight||480):(_.rZ(this.videoPreviewContainer),_.IF(this.videoPreviewContainer).appendChild(this.buildIframeElement(y)));return this.getEmbedCode_(B,G.width||560,G.height||315)};
_.w.buildIframeElement=function(G){var B=document.createElement("iframe"),F,D;B.width=""+((D=(F=this.data)==null?void 0:F.previewWidth)!=null?D:854);var u,R;B.height=""+((R=(u=this.data)==null?void 0:u.previewHeight)!=null?R:480);_.Ro(B,2,G);B.title="YouTube video player";B.frameBorder="0";B.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";B.referrerPolicy="strict-origin-when-cross-origin";B.allowFullscreen=!0;return B};
_.w.computeIsSquareAspectRatio_=function(G){return G.previewHeight&&G.previewWidth?G.previewHeight==G.previewWidth:!1};
_.w.computeShowEmbedOptions_=function(G){return!!G.enablePrivacyModeOptionLabel||!!G.showPlayerControlsOptionLabel};
_.w.getEmbedCode_=function(G,B,F){return'<iframe width="'+B+'" height="'+F+'" src="'+G+'" 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>'};
_.w.handleSignalActionCopyShareEmbedUrl_=function(){_.IF(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.w.handleSetTimestamp_=function(G){this.startAtTimeStamp_=(this.startAtChecked_=G.isSet)?G.timestamp:0};
_.w.closePanel_=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.w.onEmbedCode_=function(){_.IF(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.w.onYtPopupClosed_=function(){_.rZ(_.IF(this.hostElement).querySelector("#video-preview"))};
_.w.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Q(this.data.actionButtons[0],_.Xq)&&this.ytRendererBehavior.logExplicitClick(_.Q(this.data.actionButtons[0],_.Xq))};
DE.prototype.onYtPopupClosed_=DE.prototype.onYtPopupClosed_;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],DE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],DE.prototype,"data",void 0);
_.c([_.v({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.I("design:type",String)],DE.prototype,"embedCode_",void 0);_.c([_.v({value:!0}),_.I("design:type",Boolean)],DE.prototype,"isPlayerControlsOptionChecked_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],DE.prototype,"isPrivacyModeOptionChecked_",void 0);_.c([_.v({value:!1,notify:!0}),_.I("design:type",Boolean)],DE.prototype,"startAtChecked_",void 0);
_.c([_.v({value:0}),_.I("design:type",Number)],DE.prototype,"startAtTimeStamp_",void 0);_.c([_.v({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],DE.prototype,"isSquareAspectRatio_",void 0);_.c([_.iA("#video-preview"),_.I("design:type",HTMLElement)],DE.prototype,"videoPreviewContainer",void 0);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],DE.prototype,"onYtPopupClosed_",null);
_.c([_.ay({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],DE);
_.d(DE,"yt-sharing-embed-renderer",function(){if(pXm===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Mzj===void 0&&(Mzj=document.createElement("template"));var D=Mzj;F.call(B,D.content.cloneNode(!0),G.content.firstChild);pXm=G}G=pXm;return G},{mode:2});var cja;var Tmm=function(){return _.p.apply(this,arguments)||this};
_.r(Tmm,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Tmm.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Tmm.prototype,"data",void 0);_.c([_.ay({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Tmm);
_.d(Tmm,"yt-sender-id-section-renderer",function(){if(cja===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);cja=G}G=
cja;return G},{mode:1});var I6X;var f6A;var uS=function(){return _.p.apply(this,arguments)||this};
_.r(uS,_.p);uS.prototype.closePopup=function(){_.T1(this.hostElement,"yt-close-popup-action")};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],uS.prototype,"data",void 0);_.c([_.ay({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],uS);
_.d(uS,"yt-community-post-section-renderer",function(){if(f6A===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;I6X===void 0&&(I6X=document.createElement("template"));var D=I6X;F.call(B,D.content.cloneNode(!0),G.content.firstChild);f6A=G}G=f6A;return G},{mode:2});var tze;var Zey;var gSy;var Sym;var sMS;var x3X;var Paa=function(){return _.p.apply(this,arguments)||this};
_.r(Paa,_.p);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Paa.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Paa.prototype,"data",void 0);_.c([_.ay({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Paa);
_.d(Paa,"yt-share-start-time-with-context-renderer",function(){if(x3X===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;sMS===void 0&&(sMS=document.createElement("template"));var D=sMS;F.call(B,D.content.cloneNode(!0),G.content.firstChild);x3X=G}G=x3X;return G},{mode:2});var RO=function(){return _.p.apply(this,arguments)||this};
_.r(RO,_.p);RO.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],RO.prototype,"data",void 0);_.c([_.ay({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],RO);
_.d(RO,"yt-share-panel-title-v15-renderer",function(){if(Sym===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;gSy===void 0&&(gSy=document.createElement("template"));var D=gSy;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Sym=G}G=Sym;return G},{mode:2});var wF=function(){return _.p.apply(this,arguments)||this};
_.r(wF,_.p);wF.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],wF.prototype,"data",void 0);_.c([_.ay({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],wF);
_.d(wF,"yt-share-panel-header-renderer",function(){if(Zey===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;tze===void 0&&(tze=document.createElement("template"));var D=tze;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Zey=G}G=Zey;return G},{mode:2});var Gow;var Bim;var iIe={};iIe.YtBindingExpressionsBehavior={identity:_.oI,msg:function(G,B){B=B===void 0?{}:B;return _.G7(G,B,G)},
msgPlural:function(G,B){return _.BT(G,B)},
getMusicIconFromType:function(G){return _.xT(G)}};var FnX;var DmM;var uJm;var Rsa=document.head,wYX=Rsa.appendChild,C5m;
if(uJm===void 0){var NiL=document.createElement("template");_.H(NiL,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath></defs></svg><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>');uJm=NiL}C5m=uJm;
wYX.call(Rsa,C5m.content);var Cq=function(){var G=_.p.apply(this,arguments)||this;G.screenLayer=7;return G};
_.r(Cq,_.p);Cq.prototype.getScreenLayer=function(){return this.screenLayer};
Cq.prototype.onTap=function(G){G&&G.detail&&(G.detail.x||G.detail.y)&&_.IF(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.fi(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(G=this.getScreenLayer(),_.cZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:G}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.ZN.Object.defineProperties(Cq.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()}}});
Cq.prototype.onTap=Cq.prototype.onTap;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Cq.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Cq.prototype,"data",void 0);_.c([_.O("data.title"),_.I("design:type",Object),_.I("design:paramtypes",[])],Cq.prototype,"title",null);
_.c([_.O("data.serviceName"),_.I("design:type",String),_.I("design:paramtypes",[])],Cq.prototype,"icon",null);_.c([_.Pm("tap"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Cq.prototype,"onTap",null);_.c([_.ay({is:"yt-share-target-renderer",disableElementRegistration:!0})],Cq);
_.d(Cq,"yt-share-target-renderer",function(){if(DmM===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;FnX===void 0&&(FnX=document.createElement("template"));var D=FnX;F.call(B,D.content.cloneNode(!0),G.content.firstChild);DmM=G}G=DmM;return G},{mode:2});var ylj;var ndw;var Ne=function(){var G=_.p.apply(this,arguments)||this;G.SHARE_TARGET_WIDTH=70;G.SHARE_TARGET_MARGIN_RIGHT=8;G.PAGE_SCROLL_SPEED=9;G.actionMap={"yt-share-panel-reset-action":"onReset_"};return G};
_.r(Ne,_.p);_.w=Ne.prototype;_.w.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.w.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.IF(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.IF(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.w.onReset_=function(){if(_.IF(this.hostElement).querySelector("#list")){var G=_.IF(this.hostElement).querySelector("#list");var B=_.IF(this.hostElement).querySelector("#list");var F=B.offsetLeft,D=B.offsetParent;D||_.DNq(B)!="fixed"||(D=_.KT(B).documentElement);if(D){if(_.ih&&!_.s$(58)){var u=_.ln7(D);F+=u.left}else Number(_.$H7)>=8&&!(Number(_.$H7)>=9)&&(u=_.ln7(D),F-=u.left);B=_.y7T(D)?D.clientWidth-(F+B.offsetWidth):F}else B=F;jsS(G,B);this.updateScrollButtons_()}};
_.w.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.w.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.w.onScrollWheel_=function(G){G.stopPropagation();G.preventDefault();var B=QsU(_.IF(this.hostElement).querySelector("#list"));G=Math.abs(G.deltaX)>Math.abs(G.deltaY)?G.deltaX:G.deltaY;jsS(_.IF(this.hostElement).querySelector("#list"),B+G);this.updateScrollButtons_()};
_.w.smoothScrollByOnePage_=function(G){var B=_.IF(this.hostElement).querySelector("#list"),F=(Math.floor(B.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,D=QsU(B),u=F*(G?1:-1),R=this.PAGE_SCROLL_SPEED,N=this.updateScrollButtons_.bind(this),y=0,U;(function h(){y+=R;U=y/F*2;jsS(B,D+u*(U<1?U*U:-U*U+4*U-2));y<F?window.requestAnimationFrame(h):N()})()};
_.w.updateScrollButtons_=function(){var G=QsU(_.IF(this.hostElement).querySelector("#list")),B=_.IF(this.hostElement).querySelector("#list").scrollWidth-_.IF(this.hostElement).querySelector("#list").clientWidth;_.IF(this.hostElement).querySelector("#scroll-button-back").hidden=G<=0;_.IF(this.hostElement).querySelector("#scroll-button-forward").hidden=G>=B};
Ne.prototype.onScrollWheel_=Ne.prototype.onScrollWheel_;Ne.prototype.onDataChanged_=Ne.prototype.onDataChanged_;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],Ne.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(iIe.YtBindingExpressionsBehavior),_.I("design:type",Object)],Ne.prototype,"ytBindingExpressionsBehavior",void 0);
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Ne.prototype,"data",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Ne.prototype,"onDataChanged_",null);_.c([_.Pm("wheel"),_.I("design:type",Function),_.I("design:paramtypes",[WheelEvent]),_.I("design:returntype")],Ne.prototype,"onScrollWheel_",null);
_.c([_.ay({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ne);
_.d(Ne,"yt-third-party-share-target-section-renderer",function(){if(ndw===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;ylj===void 0&&(ylj=document.createElement("template"));var D=ylj;F.call(B,D.content.cloneNode(!0),G.content.firstChild);ndw=G}G=ndw;return G},{mode:2});var yZ=function(){return _.p.apply(this,arguments)||this};
_.r(yZ,_.p);yZ.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"}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],yZ.prototype,"data",void 0);_.c([_.ay({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],yZ);
_.d(yZ,"yt-third-party-network-section-renderer",function(){if(Bim===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Gow===void 0&&(Gow=document.createElement("template"));var D=Gow;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Bim=G}G=Bim;return G},{mode:2});var lKm;_.YN(_.Y(function(G){return _.l("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.l("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.l(_.uR,{data:function(){return G.data().firstPartyItems}},{listItemViewModel:_.OP})))},"nl"),"first-party-network-section-view-model",{props:{data:_.Hd}});var Uma=_.vP(["data:image/svg+xml;charset=UTF-8;base64,",""]),nq=function(){var G=_.p.apply(this,arguments)||this;G.screenLayer=7;G.qrCodeEnabled=_.X("web_enable_sharing_qr_code");G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return G};
_.r(nq,_.p);_.w=nq.prototype;_.w.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.w.attached=function(){this.JSC$23038_scroller&&(this.JSC$23038_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23038_scroller.attached&&typeof this.JSC$23038_scroller.attached==="function"&&this.JSC$23038_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.w.onDataChanged=function(){var G=this,B;(B=this.data)!=null&&B.contents&&(this.hostElement.setAttribute("links-only","true"),_.Zk(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.ft(this,function(){_.cZ(G.hostElement,"yt-refit");G.focusSharePanelHeader()}))};
_.w.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.w.handleSetTimestamp=function(G){var B=this.shortUrl();G.isSet&&(B=_.G2(B,"t",G.timestamp));this.maybeRenderQrCode(B)};
_.w.shortUrl=function(){var G,B=(G=this.data)==null?void 0:G.contents;if(B)for(G=0;G<B.length;G++){var F=void 0,D=void 0;if((F=B[G])==null?0:(D=F.thirdPartyNetworkSection)==null?0:D.copyLinkContainer){var u=D=F=void 0;return(u=_.Q((F=B[G])==null?void 0:(D=F.thirdPartyNetworkSection)==null?void 0:D.copyLinkContainer,fd$))==null?void 0:u.shortUrl}}};
_.w.maybeRenderQrCode=function(G){var B=this,F,D,u,R,N,y,U,q,h;return _.n(function(K){if(K.nextAddress==1){F=_.IF(B.hostElement).querySelector("#qr-code");if(!B.qrCodeEnabled||!G)return F&&(F.style.display="none"),K.return();D=_.Dw8(_.te().resolve(_.Pc),{iconName:"youtube",iconStyle:"youtube_fill"});u=document.createElement("div");return typeof D==="function"?(D(u),K.jumpTo(2)):K.yield(D,3)}K.nextAddress!=2&&(R=K.yieldResult,R(u));U=(N=u)==null?void 0:(y=N.firstChild)==null?void 0:y.firstChild;q=
document.createElement("img");h=_.rlM(Uma,btoa(U.outerHTML));q.onload=function(){var a={canvas:F,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:q},m=new wcz;U7U(m,G);qFH(m,!1,ET$(m));var L=m.modules,W=Object.assign({},Z9U,a);L=structuredClone(L);a=L.length;var e,b=(e=W.canvas)!=null?e:document.createElement("canvas");e=W.cellSize;m=W.logo;var M,t=(M=W.logoSize)!=null?M:Math.floor(a/4);a%2!==t%2&&t++;var T=W.logoPadding,A=W.backgroundColor;M=a*e;var Z=W.width,
P=0;Z&&(P=W.padding,P=Math.ceil(P*M/(Z-P*2)),b.style.width=Z+"px",b.style.height=Z+"px");b.width!==M+P*2&&(b.width=M+P*2);b.height!==M+P*2&&(b.height=M+P*2);M=b.getContext("2d");W.autoClear&&M.clearRect(0,0,b.width,b.height);M.fillStyle=A;M.beginPath();M.roundRect(0,0,b.width,b.height,W.borderRadius);M.fill();M.save();M.translate(P,P);if(m)for(b=Math.floor(a-t)/2-T,T=Math.floor(a+t)/2+T,A=b;A<T;A++)for(Z=b;Z<T;Z++)L[A][Z]=!1;for(b=0;b<a;b++)for(T=0;T<a;T++)(b<7&&T<7||b<7&&T>=a-7||b>=a-7&&T<7)&&(L[b][T]=
!1);var RI;b=(RI=W.markerColor)!=null?RI:W.color;KCZ(M,0,0,e,b);KCZ(M,e*(a-7),0,e,b);KCZ(M,0,e*(a-7),e,b);switch(W.cellStyle){case 0:RI=L;L=RI.length;b=W.cellSize;M.beginPath();for(T=0;T<L;T++)for(A=0;A<L;A++)RI[T][A]&&M.rect(T*b,A*b,b,b);M.fillStyle=W.color;M.fill();break;case 1:RI=L;L=RI.length;b=W.cellSize;T=b*W.relativeCircleSize;M.fillStyle=W.color;M.beginPath();for(W=0;W<L;W++)for(A=0;A<L;A++)RI[W][A]&&(M.beginPath(),M.ellipse((W+.5)*b,(A+.5)*b,T/2,T/2,0,0,2*Math.PI),M.fill());M.fill();break;
case 2:RI=L;L=RI.length;b=W.cellSize;M.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];M.beginPath();for(T=0;T<L;T++)for(A=0;A<L;A++)if(RI[T][A])M.roundRect(T*b,A*b,b,b,b/2),T+1<L&&RI[T+1][A]&&M.rect(T*b+b/2,A*b,b,b),A+1<L&&RI[T][A+1]&&M.rect(T*b,A*b+b/2,b,b);else{Z=T*b+b/2;P=A*b+b/2;for(var yo=0;yo<4;yo++){var hg=_.C(W[yo]),US=hg.next().value;hg=hg.next().value;T+US>=0&&T+US<L&&A+hg>=0&&A+hg<L&&RI[T+US][A]&&RI[T][A+hg]&&RI[T+US][A+hg]&&(US=yo*Math.PI/2,hg=b/2,M.moveTo(Z+hg*Math.cos(US),P+hg*Math.sin(US)),
M.arc(Z,P,b/2,US,US+Math.PI/2,!1),M.lineTo(Z+hg*(Math.cos(US)-Math.sin(US)),P+hg*(Math.cos(US)+Math.sin(US))),M.lineTo(Z+hg*Math.cos(US),P+hg*Math.sin(US)))}}M.fill()}m&&M.drawImage(m,(a-t)*e/2,(a-t)*e/2,t*e,t*e);M.restore();F.style.removeProperty("display")};
q.src=_.fe(h);_.di(K)})};
_.w.hasCommunityPostRenderer=function(){var G,B,F,D;return!!((G=this.data)==null?0:(B=G.header)==null?0:(F=B.sharePanelHeaderRenderer)==null?0:(D=F.communityPost)==null?0:D.communityPostSectionRenderer)};
_.w.onTapClose=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.w.getScreenLayer=function(){return this.screenLayer};
nq.prototype.onDataChanged=nq.prototype.onDataChanged;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],nq.prototype,"data",void 0);
_.c([_.v({value:_.G7("SBOX_INAPPROPRIATE_CANCEL")}),_.I("design:type",String)],nq.prototype,"closeButtonAriaLabel",void 0);_.c([_.iA("yt-share-panel-header-renderer"),_.I("design:type",HTMLElement)],nq.prototype,"header",void 0);_.c([_.v(),_.I("design:type",Object)],nq.prototype,"qrCodeEnabled",void 0);_.c([_.iA("#scroller"),_.I("design:type",Object)],nq.prototype,"JSC$23038_scroller",void 0);
_.c([_.Ry("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],nq.prototype,"onDataChanged",null);_.c([_.ay({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],nq);
_.d(nq,"yt-unified-share-panel-renderer",function(){if(lKm===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);lKm=G}G=lKm;return G},{mode:1});var qxA={};
qxA.YtUnlimitedFamilyInterstitialBehavior=[_.f4.YtOpenPopupBehavior,_.Za.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(G){G=_.Bd7(_.oF(G),"yt-button-renderer");return G?G.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(G){this.dialogHistory_.push(G)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var G=this.popFromHistory();if(G){var B={openPopupAction:{popupType:"DIALOG",popup:{}}};B.openPopupAction.popup[G.renderer]=G.data;this.showingPreviousDialog_=!0;this.openPopup(B)}},
handleOpenPopupAction_:function(G){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var B=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(D){return!!G.openPopupAction.popup[D]}),F=this.getElementName_();
B&&this.data&&(this.pushToHistory({renderer:F,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(G){if(G=_.Q(G,IPD))this.loading=!0,_.T1(this.hostElement,"yt-open-create-family-dialog",[G,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var G=this.hostElement.nodeName.split("-").slice(1).map(function(B){return""+B[0].toUpperCase()+B.slice(1).toLowerCase()}).join("");
return G[0].toLowerCase()+G.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Edj;var hsy;var lS=function(){return _.p.apply(this,arguments)||this};
_.r(lS,_.p);_.w=lS.prototype;_.w.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}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.T1(this.hostElement,"yt-register-create-family-dialog");_.IF(this.hostElement).querySelector("#thumbnail").onShow()};
_.w.fireOnCloseCommand_=function(){var G;((G=this.data)==null?0:G.onCloseCommand)&&_.tL(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.w.onYtServiceRequestSent_=function(G,B){B&&B.endpoint&&_.Q(B.endpoint,_.sw)||(this.loading=!0)};
_.w.onYtServiceRequestCompleted_=function(){var G=this.hostElement.parentElement;G.close&&G.close();this.loading=!1};
_.w.openPopupHandler_=function(G){if(G.detail==this){var B;((B=this.data)==null?0:B.onOpenCommands)&&_.tL(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.w.closePopupHandler_=function(G,B){this.fireOnCloseCommand_();if(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1){var F;((F=this.data)==null?0:F.onDismissCommands)&&_.tL(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.w.dataChanged_=function(){this.loading=!1};
lS.prototype.dataChanged_=lS.prototype.dataChanged_;lS.prototype.closePopupHandler_=lS.prototype.closePopupHandler_;lS.prototype.openPopupHandler_=lS.prototype.openPopupHandler_;lS.prototype.onYtServiceRequestCompleted_=lS.prototype.onYtServiceRequestCompleted_;lS.prototype.onYtServiceRequestSent_=lS.prototype.onYtServiceRequestSent_;_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],lS.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(qxA.YtUnlimitedFamilyInterstitialBehavior),_.I("design:type",Object)],lS.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],lS.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],lS.prototype,"loading",void 0);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],lS.prototype,"onYtServiceRequestSent_",null);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],lS.prototype,"onYtServiceRequestCompleted_",null);
_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],lS.prototype,"openPopupHandler_",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],lS.prototype,"closePopupHandler_",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],lS.prototype,"dataChanged_",null);
_.c([_.ay({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],lS);
_.d(lS,"yt-unlimited-family-message-interstitial-renderer",function(){if(hsy===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Edj===void 0&&(Edj=document.createElement("template"));var D=Edj;F.call(B,D.content.cloneNode(!0),G.content.firstChild);hsy=G}G=hsy;return G},{mode:2});var Kne;var aKz;var UZ=function(){return _.p.apply(this,arguments)||this};
_.r(UZ,_.p);UZ.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"}}}};
UZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IF(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(G){G.onShow()});
_.IF(this.hostElement).querySelector("#main-thumbnail").onShow()};
UZ.prototype.onButtonTap_=function(G){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(G)};
UZ.prototype.computeMainThumbnailWidth_=function(G){return G&&G.length!==0?72:96};
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(qxA.YtUnlimitedFamilyInterstitialBehavior),_.I("design:type",Object)],UZ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],UZ.prototype,"data",void 0);
_.c([_.v({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.I("design:type",Number)],UZ.prototype,"mainThumbnailWidth_",void 0);_.c([_.v({value:function(){return this.onButtonTap_.bind(this)}}),
_.I("design:type",Function)],UZ.prototype,"boundButtonTap_",void 0);_.c([_.ay({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],UZ);
_.d(UZ,"yt-unlimited-family-profile-interstitial-renderer",function(){if(aKz===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Kne===void 0&&(Kne=document.createElement("template"));var D=Kne;F.call(B,D.content.cloneNode(!0),G.content.firstChild);aKz=G}G=aKz;return G},{mode:2});var mmz;var XYA;var qe=function(){var G=_.p.apply(this,arguments)||this;G.sliderAriaValueText_=null;G.selectedIndex_=0;G.messages={PAUSE_SLIDER:_.G7("PAUSE_SLIDER",void 0,"Pause Duration")};return G};
_.r(qe,_.p);_.w=qe.prototype;_.w.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_]]"}}}}}};
_.w.onPopupOpened_=function(G){G.detail==this&&_.X("enable_premium_voluntary_pause")&&(_.T1(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.setDialogData=function(G){this.data=G;this.resetSlider_()};
_.w.dataChanged_=function(){this.data&&this.resetSlider_()};
_.w.onSubmitTap_=function(){if(this.data.confirmCommand){var G=this.data.confirmCommand;_.Q(G,_.e_G)&&_.fi(this.hostElement,[G,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.w.onExitButtonTap_=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.w.closePopupHandler_=function(G,B){(B&&B.canceled===!0||B.canceled===!1&&B.confirmed===!1)&&this.handleOnDismissCommands_()};
_.w.onSliderChange_=function(){this.selectedIndex_=_.IF(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.w.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.w.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.w.resetSlider_=function(){if(this.data){var G=this.data.defaultEndOptionIndex||0,B=_.IF(this.hostElement).querySelector("#id-pause-slider");if(B.immediateValue<G)for(;B.immediateValue!=G;)B.increment();else if(G<B.immediateValue)for(;B.immediateValue!=G;)B.decrement();this.selectedIndex_=G;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.w.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.tL(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.w.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.tL(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.w.onYtServiceRequestSent=function(){this.loading=!0};
_.w.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
qe.prototype.onYtServiceRequestCompleted=qe.prototype.onYtServiceRequestCompleted;qe.prototype.onYtServiceRequestSent=qe.prototype.onYtServiceRequestSent;qe.prototype.closePopupHandler_=qe.prototype.closePopupHandler_;qe.prototype.dataChanged_=qe.prototype.dataChanged_;qe.prototype.onPopupOpened_=qe.prototype.onPopupOpened_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],qe.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],qe.prototype,"loading",void 0);_.c([_.v(),_.I("design:type",Number)],qe.prototype,"selectIndexMax_",void 0);_.c([_.v(),_.I("design:type",Object)],qe.prototype,"selectedData_",void 0);
_.c([_.v(),_.I("design:type",Object)],qe.prototype,"sliderAriaValueText_",void 0);_.c([_.v({value:function(){return this.onSubmitTap_.bind(this)}}),
_.I("design:type",Function)],qe.prototype,"onButtonTap_",void 0);_.c([_.v({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.I("design:type",Function)],qe.prototype,"onSecondaryTap_",void 0);_.c([_.v(),_.I("design:type",Object)],qe.prototype,"messages",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],qe.prototype,"onPopupOpened_",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],qe.prototype,"dataChanged_",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],qe.prototype,"closePopupHandler_",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],qe.prototype,"onYtServiceRequestSent",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],qe.prototype,"onYtServiceRequestCompleted",null);_.c([_.ay({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],qe);
_.d(qe,"yt-unplugged-pause-membership-dialog-renderer",function(){if(XYA===void 0){var G=document.createElement("template");_.H(G,'\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>');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;mmz===void 0&&(mmz=document.createElement("template"));var D=mmz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);XYA=G}G=XYA;return G},{mode:2});var Qow;var joj;var EZ=function(){return _.p.apply(this,arguments)||this};
_.r(EZ,_.p);EZ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.q6("vcBalanceRenderer")}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],EZ.prototype,"data",void 0);_.c([_.ay({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],EZ);
_.d(EZ,"yt-vc-offer-layout-header-renderer",function(){if(joj===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Qow===void 0&&(Qow=document.createElement("template"));var D=Qow;F.call(B,D.content.cloneNode(!0),G.content.firstChild);joj=G}G=joj;return G},{mode:2});var Ln3;var rlS;var Wny;var HIL;var hd=function(){return _.p.apply(this,arguments)||this};
_.r(hd,_.p);hd.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ZN.Object.defineProperties(hd.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)}}});
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.RB$.YtTappableItemBehavior),_.I("design:type",Object)],hd.prototype,"ytTappableItemBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],hd.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.O("data.accessibilityText"),_.I("design:type",String),_.I("design:paramtypes",[])],hd.prototype,"ariaLabel",null);_.c([_.v({reflectToAttribute:!0}),_.O("data.style"),_.I("design:type",String),_.I("design:paramtypes",[])],hd.prototype,"vcOfferStyle",null);_.c([_.O("data.style","data.titleText"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],hd.prototype,"showTitleText",null);_.c([_.ay({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],hd);
_.d(hd,"yt-vc-offer-renderer",function(){if(HIL===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;Wny===void 0&&(Wny=document.createElement("template"));var D=Wny;F.call(B,D.content.cloneNode(!0),G.content.firstChild);HIL=G}G=HIL;return G},{mode:2});var Kq=function(){return _.p.apply(this,arguments)||this};
_.r(Kq,_.p);Kq.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Kq.prototype,"data",void 0);_.c([_.ay({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Kq);
_.d(Kq,"yt-vc-offer-layout-renderer",function(){if(rlS===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Ln3===void 0&&(Ln3=document.createElement("template"));var D=Ln3;F.call(B,D.content.cloneNode(!0),G.content.firstChild);rlS=G}G=rlS;return G},{mode:2});var kom;var OIC;var esC;var $m6;var aO=function(){return _.p.apply(this,arguments)||this};
_.r(aO,_.p);aO.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}}}}}};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],aO.prototype,"data",void 0);_.c([_.ay({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],aO);
_.d(aO,"yt-ypc-offers-modal-top-bar-renderer",function(){if($m6===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;esC===void 0&&(esC=document.createElement("template"));var D=esC;F.call(B,D.content.cloneNode(!0),G.content.firstChild);$m6=G}G=$m6;return G},{mode:2});var mN=function(){return _.p.apply(this,arguments)||this};
_.r(mN,_.p);mN.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"}}}}};
mN.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
mN.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var G=this.scrollable;G.attached&&typeof G.attached==="function"&&G.attached()};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.iA("#scrollable"),_.I("design:type",Object)],mN.prototype,"scrollable",void 0);_.c([_.v(),_.I("design:type",Object)],mN.prototype,"data",void 0);_.c([_.ay({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],mN);
_.d(mN,"yt-ypc-offers-modal-renderer",function(){if(OIC===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;kom===void 0&&(kom=document.createElement("template"));var D=kom;F.call(B,D.content.cloneNode(!0),G.content.firstChild);OIC=G}G=OIC;return G},{mode:2});var zs6;var bIz;var Xy=function(){return _.p.apply(this,arguments)||this};
_.r(Xy,_.p);_.w=Xy.prototype;_.w.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}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IF(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.w.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.T1(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.w.onYtPopupOpened_=function(G,B){(B==null?void 0:B.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.tL(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.w.onYtPopupClosed_=function(G,B){this.continueButtonTapped||B&&(B.canceled===!0||B.canceled===!1&&B.confirmed===!1)&&this.data.onDismissCommands&&_.tL(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.w.onYtServiceRequestError_=function(G){this.set("showSpinner",!1);_.zP(this.hostElement,G.detail.error.message)};
_.w.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.X("enable_ypc_spinners")?_.T1(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Xy.prototype.onYtServiceRequestError_=Xy.prototype.onYtServiceRequestError_;Xy.prototype.onYtPopupClosed_=Xy.prototype.onYtPopupClosed_;Xy.prototype.onYtPopupOpened_=Xy.prototype.onYtPopupOpened_;Xy.prototype.onYtServiceRequestCompleted_=Xy.prototype.onYtServiceRequestCompleted_;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.I("design:type",Object)],Xy.prototype,"data",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Xy.prototype,"showSpinner",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],Xy.prototype,"continueButtonTapped",void 0);_.c([_.v({value:function(){return this.onContinueTapped_.bind(this)}}),
_.I("design:type",Function)],Xy.prototype,"bindOnContinueTapped_",void 0);_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Xy.prototype,"onYtServiceRequestCompleted_",null);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],Xy.prototype,"onYtPopupOpened_",null);
_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],Xy.prototype,"onYtPopupClosed_",null);_.c([_.Pm("yt-service-request-error"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Xy.prototype,"onYtServiceRequestError_",null);_.c([_.ay({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Xy);
_.d(Xy,"yt-ypc-upgrade-dialog-renderer",function(){if(bIz===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;zs6===void 0&&(zs6=document.createElement("template"));var D=zs6;F.call(B,D.content.cloneNode(!0),G.content.firstChild);bIz=G}G=bIz;return G},{mode:2});var Vlz;var vdX;var QZ=function(){return _.p.apply(this,arguments)||this};
_.r(QZ,_.p);QZ.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
QZ.prototype.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.confirmButton)};
QZ.prototype.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],QZ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],QZ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],QZ.prototype,"positionType",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.I("design:type",Boolean)],QZ.prototype,"hasButtons_",void 0);_.c([_.v({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.I("design:type",Boolean)],QZ.prototype,"style_",void 0);_.c([_.ay({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],QZ);
_.d(QZ,"yt-bubble-hint-renderer",function(){if(vdX===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;Vlz===void 0&&(Vlz=document.createElement("template"));var D=Vlz;F.call(B,D.content.cloneNode(!0),G.content.firstChild);vdX=G}G=vdX;return G},{mode:2});var odX;var MlA;var j1=function(){var G=_.gS.apply(this,arguments)||this;G.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return G};
_.r(j1,_.gS);_.w=j1.prototype;_.w.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.w.attached=function(){var G=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){G.$.thumbnail.onShow();G.$["header-image"].onShow()})};
_.w.handleCheckBoxUpdateAction_=function(G){this.canShowCheckboxEnabledConfirmButton=G};
_.w.computeUseOverlayForSpinner_=function(G,B){return!!G&&B};
_.w.computeShowSpinner_=function(G,B){return G||!!B};
_.w.fireOnCloseActions_=function(){var G,B=_.C(((G=this.data)==null?void 0:G.onClosedActions)||[]);for(G=B.next();!G.done;G=B.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.w.fireOnOpenCommands_=function(G){var B,F=(B=this.data)==null?void 0:B.onOpenCommands;if(F)for(G.stopImmediatePropagation(),G=_.C(F),B=G.next();!B.done;B=G.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.w.fireOnDismissCommands_=function(G){var B,F=(B=this.data)==null?void 0:B.onDismissCommands;if(F)for(G.stopImmediatePropagation(),G=_.C(F),B=G.next();!B.done;B=G.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.w.openPopupHandler_=function(G){G.detail==this&&this.fireOnOpenCommands_(G)};
_.w.closePopupHandler_=function(G,B){_.Ia(this,"yt-confirm-dialog-close-action",[B]);this.fireOnCloseActions_();(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1)&&this.fireOnDismissCommands_(G)};
_.w.onHeaderImageChanged_=function(){var G;((G=this.data)==null?0:G.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.w.computeHasHeaderImageWidth_=function(G){return G!=void 0};
_.w.computeHasLoadingMessage=function(G){return!!G};
_.w.onHeaderImageWidthChanged_=function(){var G,B=(G=this.data)==null?void 0:G.headerImageWidth;if(B){if(G=1.25*B*2+B,this.$.main.style.width=G+"px",B=this.$.scroller.firstElementChild)B.style.minWidth=G+"px"}else this.$.main.style.width="100%"};
_.w.onThumbnailChanged_=function(){var G;((G=this.data)==null?0:G.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")};
_.w.onYtNavigate_=function(G){G=_.oF(G);G instanceof Node&&_.fp(this.$["confirm-button"]).contains(G)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.w.computePrimaryIsCancel_=function(G){return G};
_.w.computeIsCancelButtonHidden_=function(G){return G.skipCancelButton||!G.cancelButton};
_.w.computeIsCheckboxHidden_=function(G){return!G.checkbox};
_.w.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.w.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.w.onYtServiceRequestCompleted_=function(){var G;((G=this.data)==null?0:G.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.ZN.Object.defineProperties(j1,{template:{configurable:!0,enumerable:!0,get:function(){if(MlA===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;odX===void 0&&(odX=document.createElement("template"));var D=odX;F.call(B,D.content.cloneNode(!0),G.content.firstChild);MlA=G}G=MlA;return G}}});
j1.prototype.onYtServiceRequestCompleted_=j1.prototype.onYtServiceRequestCompleted_;j1.prototype.onYtServiceRequestSent_=j1.prototype.onYtServiceRequestSent_;j1.prototype.onThumbnailLoaded_=j1.prototype.onThumbnailLoaded_;j1.prototype.onYtNavigate_=j1.prototype.onYtNavigate_;j1.prototype.onThumbnailChanged_=j1.prototype.onThumbnailChanged_;j1.prototype.onHeaderImageWidthChanged_=j1.prototype.onHeaderImageWidthChanged_;j1.prototype.onHeaderImageChanged_=j1.prototype.onHeaderImageChanged_;
j1.prototype.closePopupHandler_=j1.prototype.closePopupHandler_;j1.prototype.openPopupHandler_=j1.prototype.openPopupHandler_;_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],j1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);
_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],j1.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],j1.prototype,"data",void 0);_.c([_.v({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.I("design:type",Boolean)],j1.prototype,"primaryIsCancel",void 0);_.c([_.v({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.I("design:type",Boolean)],j1.prototype,"isCancelButtonHidden",void 0);
_.c([_.v({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.I("design:type",Boolean)],j1.prototype,"isCheckboxHidden",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],j1.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.c([_.v({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.I("design:type",Boolean)],j1.prototype,"useOverlayForSpinner_",void 0);
_.c([_.v({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.I("design:type",Boolean)],j1.prototype,"showSpinner_",void 0);_.c([_.v({value:!1}),_.I("design:type",Boolean)],j1.prototype,"isActionInProgress_",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.I("design:type",Boolean)],j1.prototype,"hasHeaderImageWidth_",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.I("design:type",Boolean)],j1.prototype,"hasLoadingMessage",void 0);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],j1.prototype,"openPopupHandler_",null);_.c([_.Pm("yt-popup-closed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],j1.prototype,"closePopupHandler_",null);
_.c([_.Ga("data.headerImage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j1.prototype,"onHeaderImageChanged_",null);_.c([_.Ga("data.headerImageWidth"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j1.prototype,"onHeaderImageWidthChanged_",null);_.c([_.Ga("data.thumbnail"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j1.prototype,"onThumbnailChanged_",null);
_.c([_.Pm("yt-navigate"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],j1.prototype,"onYtNavigate_",null);_.c([_.Pm("yt-img-shadow-loaded"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],j1.prototype,"onThumbnailLoaded_",null);_.c([_.Pm("yt-service-request-sent"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.WI]),_.I("design:returntype")],j1.prototype,"onYtServiceRequestSent_",null);
_.c([_.Pm("yt-service-request-completed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,_.VO]),_.I("design:returntype")],j1.prototype,"onYtServiceRequestCompleted_",null);_.c([_.ay({is:"yt-confirm-dialog-renderer",noInjection:!0})],j1);var pYX;var Yxm;var Lq=function(){return _.p.apply(this,arguments)||this};
_.r(Lq,_.p);Lq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IF(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Lq.prototype.computeConfirmButton_=function(G){var B={text:G.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};G.confirmNavigationEndpoint?B.navigationEndpoint=G.confirmNavigationEndpoint:G.confirmServiceEndpoint&&(B.serviceEndpoint=G.confirmServiceEndpoint);return B};
Lq.prototype.computeShowTitle_=function(G){return!(G==null||!G.title)};
_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],Lq.prototype,"data",void 0);_.c([_.v({computed:"computeShowTitle_(data)"}),_.I("design:type",Boolean)],Lq.prototype,"showTitle",void 0);_.c([_.ay({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Lq);
_.d(Lq,"yt-fancy-dismissible-dialog-renderer",function(){if(Yxm===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;pYX===void 0&&(pYX=document.createElement("template"));var D=pYX;F.call(B,D.content.cloneNode(!0),G.content.firstChild);Yxm=G}G=Yxm;return G});var AlX;var dmA;var rF=function(){var G=_.p.apply(this,arguments)||this;G.spinnerActive=!1;return G};
_.r(rF,_.p);rF.prototype.created=function(){l9H(2201)};
rF.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
rF.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
rF.prototype.onIronOverlayClosed=rF.prototype.onIronOverlayClosed;rF.prototype.onIronOverlayOpened=rF.prototype.onIronOverlayOpened;_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.Lg),_.I("design:type",Object)],rF.prototype,"tpYtIronOverlayBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],rF.prototype,"data",void 0);_.c([_.v(),_.I("design:type",Object)],rF.prototype,"spinnerActive",void 0);
_.c([_.Pm("iron-overlay-opened"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rF.prototype,"onIronOverlayOpened",null);_.c([_.Pm("iron-overlay-closed"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],rF.prototype,"onIronOverlayClosed",null);_.c([_.ay({is:"yt-loading-renderer",disableElementRegistration:!0})],rF);
_.d(rF,"yt-loading-renderer",function(){if(dmA===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;AlX===void 0&&(AlX=document.createElement("template"));var D=AlX;F.call(B,D.content.cloneNode(!0),G.content.firstChild);dmA=G}G=dmA;return G},{mode:2});var JlM;var clC;var Wt=function(){var G=_.p.apply(this,arguments)||this;G.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);G.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);G.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.r(Wt,_.p);_.w=Wt.prototype;_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.w.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.w.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.w.openPopupHandler_=function(G){G.detail===this.hostElement&&this.hostElement.hidden&&_.T1(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.w.onDismissButtonTap_=function(){var G;this.closeOnDismissButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.T1(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.w.onAcceptButtonTap_=function(){var G;this.closeOnAcceptButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.T1(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.w.computeHasHeader_=function(G){return!!G.headerBackgroundImage};
_.w.computeLayoutStyle_=function(G){return G};
_.w.computePopupSize_=function(G){return G};
_.w.computeIconType_=function(G){return G.dialogIcon&&G.dialogIcon.iconType?G.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":G.dialogIcon.iconType:""};
_.w.computeIsLogo_=function(G){return!!G.dialogIcon&&!!G.dialogIcon.iconType&&(G.dialogIcon.iconType==="YOUTUBE_LOGO"||G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||G.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.w.computeHasCustomLogo=function(G){return!(G==null||!G.headerForegroundImage)};
_.w.computeCustomLogo=function(G,B){if(G!=null&&G.headerForegroundImage)return G.headerForegroundImageDark?B?G.headerForegroundImageDark:G.headerForegroundImage:G.headerForegroundImage};
_.w.computeHeaderBackgroundImage=function(G,B){if(G!=null&&G.headerBackgroundImage)return B&&(G==null?0:G.headerBackgroundImageDark)?G.headerBackgroundImageDark:G.headerBackgroundImage};
_.w.shouldShowIconContainer=function(G,B){return G&&!B};
_.w.shouldShowNonYouTubeIcon=function(G,B){return!G&&!B};
_.w.getLogoImageId=function(G){var B,F,D;return(G=(B=this.computeCustomLogo(G,this.isDarkTheme))==null?void 0:(F=B.thumbnails)==null?void 0:(D=F[0])==null?void 0:D.height)&&G%31===0?"custom-logo-with-padding":"custom-logo"};
Wt.prototype.openPopupHandler_=Wt.prototype.openPopupHandler_;Wt.prototype.dataChanged_=Wt.prototype.dataChanged_;_.c([_.k(_.oS.YtRendererstamperBehavior),_.I("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.I("design:type",Boolean)],Wt.prototype,"isDarkTheme",void 0);
_.c([_.v({computed:"computeCustomLogo(data, isDarkTheme)"}),_.I("design:type",Object)],Wt.prototype,"customLogo",void 0);_.c([_.v({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.I("design:type",Object)],Wt.prototype,"headerBackgroundImage",void 0);_.c([_.v(),_.I("design:type",Object)],Wt.prototype,"data",void 0);_.c([_.v({computed:"computeHasHeader_(data)"}),_.I("design:type",Boolean)],Wt.prototype,"hasHeader",void 0);
_.c([_.v({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.I("design:type",Object)],Wt.prototype,"layoutStyle",void 0);_.c([_.v({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.I("design:type",Object)],Wt.prototype,"popupSize",void 0);_.c([_.v({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Wt.prototype,"hasLogo",void 0);
_.c([_.v({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.I("design:type",Boolean)],Wt.prototype,"hasCustomLogo",void 0);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],Wt.prototype,"dataChanged_",null);_.c([_.Pm("yt-popup-opened"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],Wt.prototype,"openPopupHandler_",null);
_.c([_.ay({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Wt);
_.d(Wt,"yt-upsell-dialog-renderer",function(){if(clC===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;JlM===void 0&&(JlM=document.createElement("template"));var D=JlM;F.call(B,D.content.cloneNode(!0),G.content.firstChild);clC=G}G=clC;return G},{mode:2});var TiS=_.Y(function(G){return _.l("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.l(_.E,{cond:G.title,then:function(B){return _.l("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},B)}}))},"ol"),IKS=_.Y(function(G){return _.l("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.l(_.uR,{data:G.closeButton},{buttonViewModel:function(B){return _.l("div",null,_.l(_.cd,{data:B.data}))}}))},"pl"),fK3=_.Y(function(G){var B=G.data;
return _.l(_.GJ,null,_.l("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.l("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.l(_.E,{cond:function(){return!!B().image&&!!B().title},
then:function(){return _.l(_.vr,{data:function(){return B().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.l("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.l(_.E,{cond:function(){return B().title},
then:function(F){return _.l("h3",{class:"miniAppGameInfoDialogViewModelTitle"},F)}}),_.l(_.E,{cond:function(){return B().primaryGenre},
then:function(F){return _.l("span",{class:"miniAppGameInfoDialogViewModelGenre"},F)}}))),_.l(_.E,{cond:function(){var F=B().description;
return F&&F.length<=150},
then:function(){return _.l("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.l("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return B().description}))}}))},"ql"),tl6=_.Y(function(G){var B=G.ageRating;
return _.l("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.l(_.vr,{data:function(){return{sources:[{url:B().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.l("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.l(_.Wd,{text:function(){return B().attributedLabel},
noPreWrap:!0})))},"rl"),ZIX=_.Y(function(G){G=G.infoRows;
var B=_.te().resolve(_.p2),F=_.X("enable_displaying_ppn");return _.l("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.l(_.jR,{each:G},function(D){return _.l("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.l(_.E,{cond:function(){return D.label},
then:function(u){return _.l("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},u)}}),_.l(_.E,{cond:function(){return D.attributedLabel},
then:function(u){return _.l("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.l(_.Wd,{text:u,noPreWrap:!0}))}}),_.l(_.E,{cond:function(){return D.value},
then:function(u){return _.l("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},u)}}),_.l(_.E,{cond:function(){return D.attributedValue},
then:function(u){return _.l("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.l(_.Wd,{text:u,noPreWrap:!0}))}}),_.l(_.E,{cond:function(){return D.ageRating},
then:function(u){return _.l(tl6,{ageRating:u})}}))}),_.l(_.E,{cond:function(){return F&&B.clientData.has("post_play_nonce")},
then:function(){return _.l("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.l("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.l("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},B.getData("post_play_nonce")))}}))},"sl"),gde=_.Y(function(G){var B=G.data;
return _.l("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.l(TiS,{title:function(){return B().dialogTitle}}),_.l(fK3,{data:B}),_.l(_.E,{cond:function(){return B().infoRow},
then:function(F){return _.l(ZIX,{infoRows:F})}}),_.l(IKS,{closeButton:function(){return B().closeButton}}))},"tl");
gde.idomCompat=!0;_.YN(gde,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;return _.l("yt-gulp-triggering-dialog-view-model",{class:_.tx("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.l(_.vr,{data:function(){return B().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.l("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.l("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.l("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.E,{cond:function(){return B().bodyText},
then:function(F){return _.l(_.jR,{each:F},function(D){return _.l("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.l(_.Wd,{text:D}))})}})),_.l("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.l(_.uR,{data:function(){return B().dismissButton}},{buttonViewModel:function(F){return _.l("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.l(_.cd,{data:F.data}))}}),_.l(_.uR,{data:function(){return B().actionButton}},{buttonViewModel:function(F){return _.l("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.l(_.cd,{data:F.data}))}}))))},"ul"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Hd}});var Sx3=_.Y(function(G){var B=G.data;G=_.pW(function(){return B().agreements},[]);
return _.l("installment-agreements-view-model",{class:_.tx("ytInstallmentAgreementsViewModelHost")},_.l(_.jR,{each:G},function(F){return _.l("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.l("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.l(_.Wd,{text:F.label})),_.l("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.l(_.uR,{data:function(){return F.openButton}},{buttonViewModel:_.cd})))}))},"vl");
Sx3.idomCompat=!0;var soX=_.Y(function(G){var B=_.C(_.d3(function(){var Z,P;return((Z=G.data().createPlaylistDialogFormSchema)==null?0:(P=Z.initialValues)==null?0:P.title)?G.data().createPlaylistDialogFormSchema.initialValues.title:""})),F=B.next().value,D=B.next().value;
B=_.C(_.d3(function(){G.data();return!1}));
var u=B.next().value,R=B.next().value;B=_.C(_.d3(function(){G.data();return!1}));
var N=B.next().value,y=B.next().value;B=_.C(_.d3(function(){var Z,P;return(Z=G.data().createPlaylistDialogFormSchema)==null?void 0:(P=Z.initialValues)==null?void 0:P.visibility}));
var U=B.next().value,q=B.next().value;B=_.C(_.d3(function(){G.data();return!1}));
var h=B.next().value,K=B.next().value;B=_.C(_.d3(function(){var Z,P;return(Z=G.data().createPlaylistDialogFormSchema)==null?void 0:(P=Z.initialValues)==null?void 0:P.isCollaborative}));
var a=B.next().value,m=B.next().value,L=_.W5("div");_.bC(function(){var Z=L.value.querySelector("textarea");Z&&(Z.value=F())},"axFRaf");
_.$f(function(){var Z;ycD((Z=G.data().createPlaylistDialogFormSchema)==null?void 0:Z.id,{onSubmit:function(){var P=F();var RI=U(),yo=a(),hg=G.data();P={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:P,privacyStatus:RI,videoIds:hg.videoIds,sourcePlaylistId:hg.sourcePlaylistId,params:yo?hg.createPlaylistParamsCollaborationEnabled:hg.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.te().resolve(_.Wr).resolveCommand(P)},
isValid:function(){return u()&&!N()&&!h()}})});
var W=function(Z){if(Z!==void 0&&(D(Z),!u()&&Z.length>0&&R(!0),u())){var P=EWS(G.data());if(P){var RI=P.minLength;P=P.maxLength;RI&&Z.length<RI?y(!0):P&&Z.length>P?y(!0):y(!1)}}},e=function(){var Z=!(!a()||U()!=="PRIVATE");
K(Z)},b=function(Z){Z!==void 0&&(q(Z),e())},M=function(){if(h())return KYG(G.data())},t=function(){m(!a());
e()},T=function(){return{validate:function(Z){if(u()){var P=EWS(G.data());
if(P){var RI=P.minLength;P=P.translations;if(RI&&Z.length<RI)return P==null?void 0:P.minLengthErrorMessage}}}}},A=function(){var Z=EWS(G.data()),P=Z==null?void 0:Z.maxLength,RI;
Z=Z==null?void 0:(RI=Z.translations)==null?void 0:RI.maxLengthErrorMessage;if(P&&Z)return{maxChars:P,errorMessage:Z}};
return _.l("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.l("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:L},_.l(_.uR,{data:function(){return G.data().playlistTitle}},{textFormFieldViewModel:function(Z){return _.l(vtz,{data:Z.data,
text:F,onInput:W,validation:T,characterLimit:A})},
textFieldViewModel:function(Z){return _.l(VkA,{data:Z.data,text:F,controlledMode:!0,onInput:W,validation:T,characterLimit:A})}})),_.l("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.l(_.uR,{data:function(){return G.data().playlistVisibility}},{dropdownViewModel:function(Z){return _.l(ImH,{data:Z.data,
onSelected:b,error:M})}})),_.l(_.E,{cond:function(){return!!G.data().playlistCollaborate},
then:function(){return _.l("div",null,_.l(_.uR,{data:function(){return G.data().playlistCollaborate}},{switchListItemViewModel:function(Z){return _.l(_.GsQ,{data:Z.data,
onTap:t})}}))}}))},"xl");var xmS=_.Y(function(G){var B=G.data;return _.l("upsell-offer-table-cell-content-view-model",null,_.l("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.l(_.LH,null,_.l(_.Xm,{when:function(){var F;return(F=B().icon)==null?void 0:F.iconType}},function(){return _.l("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.l(_.Pr,{icon:function(){var F;
return(F=B().icon)==null?void 0:F.iconType.toString()}}))}),_.l(_.Xm,{when:function(){return B().title}},function(){return _.l(_.Wd,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return B().title}})}),_.l(_.Xm,{when:function(){return B().subtitle}},function(){return _.l(_.Wd,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return B().subtitle}})}),_.l(_.Xm,{when:function(){return B().infoText}},function(){return _.l(_.Wd,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return B().infoText}})}),_.l(_.Xm,{when:function(){return B().featureDescription}},function(){return _.l(_.Wd,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return B().featureDescription}})}),_.l(_.Xm,{when:function(){return B().note}},function(){return _.l(_.Wd,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return B().note}})})),_.l(_.E,{cond:function(){var F;
return(F=B().icon)==null?void 0:F.iconAccessibilityText},
then:function(){return _.l("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var F;return(F=B().icon)==null?void 0:F.iconAccessibilityText})}})))},"yl");
xmS.idomCompat=!0;var P5a=_.Y(function(G){var B=G.data;var F=G.cellIndex;var D=G.rowIndex;return _.l("upsell-offer-table-cell-view-model",null,_.l("div",{class:_.tx("ytUpsellOfferTableCellViewModelCellWrapper",function(){return B().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":B().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var u,R;return"cell-"+((u=D==null?void 0:D())!=null?u:0)+"-"+((R=F==null?void 0:F())!=null?R:0)},
role:function(){return B().isFirstRow?"columnHeader":B().isFirstColumn?"rowheader":"gridcell"}},_.l(_.uR,{data:function(){return B().contents}},{upsellOfferTableCellContentViewModel:xmS})))},"zl");
P5a.idomCompat=!0;var Gt3=_.Y(function(G){var B=G.data;var F=G.upsellTableIsFirstRow;var D=G.rowIndex;var u=function(){return(F==null?0:F())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},R=function(){return(F==null?0:F())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.l("ytm-upsell-offer-table-row-view-model",null,_.l("div",{class:function(){return(F==null?0:F())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(D==null?void 0:D())+"-1 cell-"+(D==null?void 0:D())+"-2"}},_.l(_.uR,{data:function(){return B().rowHeaderCell}},{upsellOfferTableCellViewModel:function(N){return _.l("div",{class:u},_.l(P5a,{data:N.data,
cellIndex:0,rowIndex:D}))}}),_.l("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.l(_.uR,{data:function(){return B().contentCells}},{upsellOfferTableCellViewModel:function(N,y){return _.l("div",{class:R},_.l(P5a,{data:N.data,
cellIndex:function(){return y()+1},
rowIndex:D}))}}))))},"Al");
Gt3.idomCompat=!0;var BOm=_.Y(function(G){var B=G.data;return _.l("ytm-upsell-offer-table-view-model",null,_.l("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.l("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.l(_.uR,{data:function(){return B().rows}},{upsellOfferTableRowViewModel:function(F,D){return _.l(Gt3,{data:F.data,
upsellTableIsFirstRow:function(){return D()===0},
rowIndex:D})}}))))},"Bl");
BOm.idomCompat=!0;var iSj=_.Y(function(G){var B=function(){return G.data()},F=_.pW(G.noPadding,!1),D=function(){var R,N;
return(N=(R=B().logo.accessibilityData)==null?void 0:R.label)!=null?N:""},u={};
return _.l("upsell-view-model",{class:_.tx("ytUpsellViewModelHost",(u.ytUpsellViewModelHostNoPadding=function(){return F()},u.ytUpsellViewModelHostWide=function(){return B().offerTable!==void 0},u))},_.l("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.l(_.E,{cond:function(){return _.kP(B().logo)},
then:function(R){return _.l(_.vr,{data:R,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:D})}})),_.l("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.l(_.Wd,{text:function(){return B().title}})),_.l("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.l(_.jR,{each:function(){var R;
return(R=B().subtitles)!=null?R:[]},
keyBy:"INDEX"},function(R){var N={};return _.l("div",{class:_.tx("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(N.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return B().offerTable!==void 0},N))},_.l(_.Wd,{text:R}))})),_.l("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.l(_.jR,{each:function(){var R;
return(R=B().benefitInfos)!=null?R:[]},
keyBy:"INDEX"},function(R){return _.l(_.E,{cond:function(){return R().info},
then:function(N){return _.l("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.l(_.Pr,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.l(_.Wd,{text:N}))}})})),_.l(_.E,{cond:function(){return B().offerTable!==void 0},
then:function(){return _.l("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.l(_.uR,{data:function(){return B().offerTable}},{upsellOfferTableViewModel:function(R){return _.l(BOm,{data:R.data})}}))}}),_.l("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.l(_.jR,{each:function(){var R;
return(R=B().legalInfos)!=null?R:[]},
keyBy:"INDEX"},function(R){var N={};return _.l("div",{class:_.tx("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(N.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return B().offerTable!==void 0},N))},_.l(_.Wd,{text:R}))})))},"Cl");var F_z=_.Y(function(G){var B=G.data;G={};G=(G.ytMiniAppScoreChallengeViewModelScoreRadial=!0,G.ytMiniAppScoreChallengeViewModelDarkScoreRadial=aXz(),G);return _.l("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.l("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return B().title}),_.l("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return B().subtitle}),_.l("div",{class:_.UY(G)},_.l("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return B().score})),_.l("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return B().prompt}))},"Dl");var DP6=function(){this.store=_.oy();this.formId=""};
DP6.prototype.onInit=function(G){G.formId&&(this.formId=G.formId,this.store.dispatch(_.d5({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
DP6.prototype.cleanup=function(){this.store.dispatch(_.d5({type:"RESET_COMMAND_MAP"}))};var uRm=_.Y(function(G){function B(y){if(y&&(y=_.Q(y,_.Nj)))return Object.assign({},y,{isSelected:R()})}
var F=_.C(_.d3(function(){var y,U;return(U=(y=_.Q(G.data().option,_.Nj))==null?void 0:y.isSelected)!=null?U:!1})),D=F.next().value,u=F.next().value,R=D;
_.$f(function(){var y;ycD((y=G.data().formSchema)==null?void 0:y.id,{onSubmit:function(){var U=_.te().resolve(_.Wr),q=!!G.data().selectedCommand,h=!!G.data().unselectedCommand;if(R()){if(q)var K=G.data().selectedCommand}else h&&(K=G.data().unselectedCommand);K=_.X1(K);B(G.data().option)&&!K?(U="",!q&&h?U="selected ":q&&!h&&(U="unselected "),q=new _.Uf("No "+U+"command found for SelectionListItemFormViewModel"),_.k2(q)):K&&U.resolveCommand(K)},
isValid:function(){return!0}})});
var N=function(){u(!R())};
_.VI(function(){var y,U,q=(y=G.data())==null?void 0:(U=y.formSchema)==null?void 0:U.id;q&&_.Fj()().delete(q)});
return _.l("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.l("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.l(_.Wd,{text:function(){return G.data().paragraph}})),_.l(_.E,{cond:function(){return B(G.data().option)},
then:function(y){return _.l(_.OP,{data:y,isCompact:!0,hideSelectionTextChevron:!0,onTap:N,disableHorizontalPadding:!0})}}))},"El");var RDC=_.Y(function(G){var B=G.data;var F=G.disablePadding;var D=G.className;var u=_.W5("yt-dialog-header-view-model"),R=function(){var U=B().imageBanner;a:switch(B().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var q="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:q="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:U,style:q,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},N=function(){return B().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
y=function(){return B().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.$f(function(){var U=function(){_.T1(u.value,"yt-refit-popups-action")},q;
(q=u.value)==null||q.addEventListener("image-loaded",U);_.VI(function(){var h;(h=u.value)==null||h.removeEventListener("image-loaded",U)})});
G={};return _.l("yt-dialog-header-view-model",{el:u,class:_.tx(D,(G.ytDialogHeaderViewModelHost=!0,G.ytDialogHeaderViewModelHostDisablePadding=F,G.ytDialogHeaderViewModelHostCentered=y,G))},_.l(_.E,{cond:function(){return B().imageBanner},
then:function(){var U={};return _.l("div",{class:_.tx(D,(U.ytDialogHeaderViewModelBanner=!0,U.ytDialogHeaderViewModelBannerFullBleed=N,U)),style:_.xN({"max-height":function(){return B().assetContainerMaxHeight!==void 0?B().assetContainerMaxHeight+"px":void 0}})},_.l(_.I$,{data:R,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.l(_.E,{cond:function(){return B().headerBlock},
then:function(){var U={};return _.l("div",{class:_.tx("ytDialogHeaderViewModelHeaderBlock",(U.ytDialogHeaderViewModelHeaderBlockCentered=y,U))},_.l(_.uR,{data:function(){return B().headerBlock}},{contentPreviewImageViewModel:function(q){return _.l(_.I$,{data:q.data,
notifyOnLoaded:!0})}}))}}),_.l(_.E,{cond:function(){return B().customBanner},
then:function(U){var q={};return _.l("div",{class:_.tx("ytDialogHeaderViewModelCustomAssetContainer",(q.ytDialogHeaderViewModelCustomAssetContainerCentered=y,q))},_.l(_.uR,{data:U},{avatarStackViewModel:_.a$}))}}),_.l(_.E,{cond:function(){return B().headline},
then:function(U){return _.l("h2",null,_.l(_.Wd,{text:U,className:"ytDialogHeaderViewModelText"}))}}))},"Fl");
RDC.idomCompat=!0;var w7m=_.Y(function(G){var B=_.euM(function(){return G.data().formId}),F=B.submitForm,D=B.isValid;
return _.l("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.l(_.uR,{data:function(){return G.data().panelFooter}},{panelFooterViewModel:function(u){return _.l(K6,{data:u.data,
disablePadding:!0,disablePrimaryButton:function(){return!D()},
onClickPrimaryButton:function(){F()}})}}))},"Gl");var CMa=_.Y(function(G){var B=function(){var F,D;return(D=(F=_.Q(G.data().rendererContext,_.yL))==null?void 0:F.label)!=null?D:""};
return _.l("yt-dialog-image-content-view-model",{class:_.tx("ytDialogImageContentViewModelHost",G.className)},_.l(_.E,{cond:function(){return _.kP(G.data().image)},
then:function(F){var D={};return _.l("div",{style:_.xN((D.width=(0,_.jc)(function(){var u;return(u=G.data().imageMaxWidth)!=null?u:""}),D)),
class:"ytDialogImageContentViewModelImage"},_.l(_.vr,{data:F,alt:B,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.l(_.Wd,{text:function(){return G.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hl");var nie=_.Y(function(G){var B=_.AS(G,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),F=B.elRefCallback;G=B.Icon;var D=B.Asset,u=B.assetType,R=B.Title,N=B.LeadingActionHeader,y=B.TrailingActionHeader,U=B.headerPosition,q=B.Content,h=B.buttonLayout,K=B.buttonStyle,a=B.primaryButtonWiz,m=B.secondaryButtonWiz,L=B.contentAlignment,W=B.isFullscreen,e=B.width,b=B.maxHeight,M=B.isHeaderWizDefined,t=B.Header,T=B.isFooterWizDefined,
A=B.Footer;B=_.W5("dialog-layout",function(v6){F==null||F(v6)});
var Z=a?function(){var v6={};return a({buttonOverrides:function(){return{style:(K==null?void 0:K())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.tx((v6["yt-spec-dialog-layout__dialog-layout-button"]=!0,v6["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(h==null?void 0:h())===0||(h==null?void 0:h())===2},v6))})}:void 0,P=m?function(){var v6={};
return m({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.tx((v6["yt-spec-dialog-layout__dialog-layout-button"]=!0,v6["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(h==null?void 0:h())===0||(h==null?void 0:h())===2},v6))})}:void 0,RI=function(){return(!!R||!!N||!!y)&&U()===0},yo={},hg={},US={},aI={};
return _.l("dialog-layout",{el:B,class:_.tx((yo["yt-spec-dialog-layout"]=!0,yo["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,yo["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},yo["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return b()===1},yo["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(u==null?void 0:u())===1},yo)),
style:function(){return(e==null?void 0:e())!==void 0?"width: "+e()+"px;":""}},G?_.l("div",{class:_.tx((hg["yt-spec-dialog-layout__dialog-layout-icon"]=!0,hg["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!D&&U()===1},hg["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return L()===1},hg))},_.l(G,null)):null,_.l(_.E,{cond:M,
then:function(){return t?_.l("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.l(t,null)):null},
else:function(){return _.l(_.GJ,null,_.l(_.E,{cond:RI,then:function(){return _.l(NOS,{contentAlignment:L,LeadingActionHeader:N,TrailingActionHeader:y,Title:R,isAboveAsset:!!D})}}),D?_.l("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.l(D,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.l("div",{class:_.tx((US["yt-spec-dialog-layout__dialog-layout-container"]=!0,US["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(L==null?void 0:L())===1},
US["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!R&&!(t&&M())||!!D&&(U==null?void 0:U())===0},US))},_.l(_.E,{cond:function(){return R&&!t&&(U==null?void 0:U())===1},
then:function(){return _.l(NOS,{contentAlignment:L,LeadingActionHeader:N,TrailingActionHeader:y,Title:R,isAboveAsset:!1})}}),q?_.l("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.l("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.l(q,null))):null,_.l(_.E,{cond:T,
then:function(){return A?_.l("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.l(A,null)):null}}),Z||P?_.l(yCA,{footerClasses:_.tx((aI["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,aI["yt-spec-dialog-layout__dialog-layout-footer"]=!0,aI["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(h==null?void 0:h())===2},aI["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(h==null?void 0:h())===1},aI)),
PrimaryButton:Z,SecondaryButton:P}):null))},"Il"),NOS=_.Y(function(G){var B=_.AS(G,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),F=B.contentAlignment,D=B.LeadingActionHeader;G=B.Title;var u=B.TrailingActionHeader,R=B.isAboveAsset,N=B.enableLeadingActionHeader;B={};return _.l("div",{class:_.tx((B["yt-spec-dialog-layout__dialog-header-container"]=!0,B["yt-spec-dialog-layout__dialog-header"]=!0,B["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=R,B["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(F==null?void 0:F())===1&&N()},B))},_.l(_.E,{cond:function(){return N()},
then:function(){return D?_.l("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.l(D,null)):null}}),G?_.l("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.l(G,null)):null,u?_.l("div",null,_.l(u,null)):null)},"Jl"),yCA=_.Y(function(G){var B=G.footerClasses;
var F=G.PrimaryButton;G=G.SecondaryButton;return _.l("div",{class:B},G?_.l(G,null):null,F?_.l(F,null):null)},"Kl");var lJS=new _.oV("TIME_PICKER_VIEW_MODEL_TOKEN");var UPX=_.Y(function(G){var B=G.data;return _.l("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.l("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.l(_.uR,{data:function(){return B().avatar}},{avatarViewModel:_.h8})),_.l("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.Wd,{text:function(){return B().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ll");var qhL=_.Y(function(G){return _.l("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.l("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.l(_.Wd,{text:function(){return G.data().inviteMessage}})),_.l("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.l(_.Wd,{text:function(){return G.data().attributedAccountSectionHeaderText}})),_.l("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.l(_.uR,{data:function(){return G.data().accountAvatar}},{avatarViewModel:_.h8}),_.l("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.l(_.Wd,{text:function(){return G.data().accountName}}),_.l("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.l(_.Wd,{text:function(){return G.data().handle}}))),_.l(_.uR,{data:function(){return G.data().trailingButton}},{buttonViewModel:_.cd})),_.l("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.l(_.Wd,{text:function(){return G.data().termsOfService}})))},"Ml");var EiX=_.Y(function(G){var B=G.data;return _.l("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.l("div",{class:"ytAccessConfirmationViewModelContent"},_.l(_.uR,{data:function(){var F;return(F=B().avatar)!=null?F:B().dualAvatar}},{dualAvatarViewModel:function(F){return _.l(_.tzN,{data:F.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(F){return _.l(_.KU,{data:F.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.l("h2",{class:"ytAccessConfirmationViewModelTitle"},_.l(_.Wd,{text:function(){return B().title}})),_.l(_.Wd,{text:function(){return B().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nl");var hD6=_.Y(function(G){var B=function(){var y,U;return(y=G.data().formSchema)==null?void 0:(U=y.initialValues)==null?void 0:U.selectedLanguages},F=_.C(_.d3(function(){return B()})),D=F.next().value,u=F.next().value,R={};
_.bC(function(){var y=G.data().formSchema,U=y==null?void 0:y.submitConfig;G.data()!==R&&(R=G.data(),y&&U&&N8S(y.id,{isValid:function(){var q,h=(q=D())!=null?q:[],K;q=(K=B())!=null?K:[];if(h.length!==q.length)return!0;K=new Set(q);h=_.C(h);for(q=h.next();!q.done;q=h.next())if(!K.has(q.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:D()||[]}}},
submitConfig:U}))},"iCaJcc");
var N=function(y){var U=y.key;if(U){var q;if(U&&((q=D())==null?0:q.includes(U))){var h;u((h=D())==null?void 0:h.filter(function(K){return K!==U}))}else u([].concat(_.gi(D()||[]),[U]))}};
return _.l("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.l(_.uR,{data:function(){return G.data().checkboxGroup}},{checkboxGroupViewModel:function(y){return _.l(eb$,{data:y.data,
onItemTap:N,selectedKeys:D,controlledMode:!0,disableHorizontalPadding:G.disableHorizontalPadding})}}))},"Pl");var K_S=_.Y(function(G){var B=G.data;var F=void 0;G=_.C(_.d3(function(){var h;return((h=_.Q(B().content,Lp$))==null?void 0:h.defaultSelectedKey)||""}));
var D=G.next().value,u=G.next().value,R,N=function(){u("");var h;(h=F)==null||h.cleanup()};
_.$f(function(){F=new DP6;window.addEventListener("yt-popup-closed",N)});
_.bC(function(){if(F&&R!==B().formId&&(F.onInit(B()),(R=B().formId)&&D())){var h=F,K={key:D()};K.command&&h.store.dispatch(boD(R,K.command))}},"bo7oA");
_.VI(function(){window.removeEventListener("yt-popup-closed",N)});
var y=function(h,K,a){K.key&&a&&K.key!==D()&&(u(K.key),F&&K.command&&F.store.dispatch(boD(a,K.command)))},U=function(){if(_.Q(B().content,Lp$))return!(D==null?0:D())},q=_.te().resolve(_.fH(lJS));
return _.l("yt-dialog-view-model",{class:_.tx("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.l(nie,{Header:function(){return _.l(_.uR,{data:function(){return B().header}},{dialogHeaderViewModel:function(h){return _.l(RDC,{data:h.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!B().header},
Content:function(){return _.l(_.uR,{data:function(){return B().customContent?B().customContent:B().content}},Object.assign({},{basicContentViewModel:_.HC,
createPlaylistDialogFormViewModel:soX,collaborativePlaylistInviteMessageViewModel:qhL,preferredLanguageSettingsPanelViewModel:function(h){return _.l(hD6,{data:h.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:F_z,radioButtonGroupViewModel:function(h){var K=h.data;return _.l(kvB,{data:K,selectedKey:D,onSelected:y,groupName:function(){return K().formId}})},
selectionListItemFormViewModel:uRm,upsellViewModel:function(h){return _.l(iSj,{data:h.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:UPX,installmentAgreementsViewModel:Sx3,accessConfirmationViewModel:EiX,listViewModel:function(h){return _.l(_.ClZ,{data:h.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:CMa},q&&{timePickerViewModel:q}))},
Footer:function(){return _.l(_.uR,{data:function(){return B().footer}},{panelFooterViewModel:function(h){return _.l(K6,{data:h.data,
disablePadding:!0,disablePrimaryButton:U})},
formPanelFooterViewModel:w7m,formFooterViewModel:function(h){return _.l(QlA,{data:h.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!B().footer}}))},"Rl");
K_S.idomCompat=!0;_.YN(K_S,"yt-dialog-view-model",{props:{data:_.Hd},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var aJy=_.Y(function(G){var B=G.data;return _.l("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.l(_.E,{cond:function(){return B().title},
then:function(F){return _.l("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.l(_.Wd,{text:F,className:"ytPanelHeaderViewModelTitle"}))}}),_.l(_.E,{cond:function(){return B().subtitle},
then:function(F){return _.l(_.Wd,{text:F,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Sl"),mPS=_.Y(function(G){var B=G.data;
var F=_.NHI(function(){return B().rendererContext});
G={};return _.l("yt-panel-header-view-model",{class:_.tx("ytPanelHeaderViewModelHost",(G.ytPanelHeaderViewModelHostHideDivider=function(){return!!B().shouldHideDivider},G.ytPanelHeaderViewModelHostCompact=function(){return!!B().subtitle},G)),
"aria-label":function(){var D;return(D=F())==null?void 0:D.label}},_.l(_.E,{cond:function(){return _.ax(B().rendererContext)},
then:function(){return _.l(_.IfN,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.Kh(B().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.l(aJy,{data:B}))},
else:function(){return _.l(aJy,{data:B})}}),_.l("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.l(_.uR,{data:function(){return B().trailingButtons}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Tl");
mPS.idomCompat=!0;var X7L=_.Y(function(G){var B=_.gJ(function(R){var N;if((N=G.skipContentClick)==null?0:N.call(G))return!1;G.onContentWrapperClick(R);return!0}),F,D,u;
return _.l("div",{class:_.tx("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return G.isAnimating()?"transform: translateY("+G.currentY()+"px);transition: 0.2s":""}},(F=G.header)==null?void 0:F.call(G),_.l("div",{id:G.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.xN({"max-height":(0,_.jc)(G.maxHeightForContentWrapper)}),"on:scroll":_.gJ(function(R){return G.onScroll(R),!1}),
"on:touchmove":_.gJ(function(R){return R.stopPropagation(),!1})},_.l("div",{el:_.VX(G.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":B},(D=G.body)==null?void 0:D.call(G))),(u=G.footer)==null?void 0:u.call(G))},"Ul");
X7L.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var QkX=_.Y(function(G){var B=_.pW(G.leadingLabel),F=_.pW(G.trailingLabel),D=_.pW(G.footerButtonType),u=function(){return B()||F()||G.hasPrimaryButton()||G.hasSecondaryButton()},R={},N=_.tx("yt-spec-bottom-sheet-layout__primary-button",(R["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return D()===0&&G.hasPrimaryButton()},R["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return D()===1&&G.hasPrimaryButton()},R["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return D()===2&&G.hasPrimaryButton()},R["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return D()===3&&G.hasPrimaryButton()},R));
R={};var y=_.tx("yt-spec-bottom-sheet-layout__secondary-button",(R["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return D()===1&&G.hasSecondaryButton()},R["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return D()===2&&G.hasSecondaryButton()},R["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return D()===3&&G.hasPrimaryButton()},R));
return _.l(_.E,{cond:G.hasFooterOverride,then:function(){var U;return _.l(_.GJ,null,(U=G.footerOverride)==null?void 0:U.call(G))},
else:function(){return _.l(_.E,{cond:u,then:function(){return _.l("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.l(_.E,{cond:function(){return B()||F()},
then:function(){var U={};return _.l("div",{class:_.tx("yt-spec-bottom-sheet-layout__footer-label-wrapper",(U["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!G.hasPrimaryButton()},U))},_.l(_.E,{cond:B,
then:function(){return _.l("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},B)}}),_.l(_.E,{cond:F,
then:function(){return _.l("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},F)}}))}}),_.l(_.E,{cond:function(){return G.hasPrimaryButton()||G.hasSecondaryButton()},
then:function(){var U={};return _.l("div",{class:_.tx("yt-spec-bottom-sheet-layout__footer-button-wrapper",(U["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.oJN,U))},_.l(_.E,{cond:function(){return G.hasSecondaryButton()&&D()!==0},
then:function(){var q;return _.l("div",{class:y},(q=G.secondaryButton)==null?void 0:q.call(G))}}),_.l(_.E,{cond:G.hasPrimaryButton,
then:function(){var q;return _.l("div",{class:N},(q=G.primaryButton)==null?void 0:q.call(G))}}))}}))}})}})},"Vl");
QkX.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var jkA=_.Y(function(G){var B=_.pW(G.title),F=_.pW(G.subtitle);return _.l("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:G.headerId,"on:touchstart":_.gJ(function(D){var u;(u=G.touchstart)==null||u.call(G,D);return!1}),
"on:touchmove":_.gJ(function(D){var u;(u=G.touchmove)==null||u.call(G,D);return!1}),
"on:touchend":_.gJ(function(D){var u;(u=G.touchend)==null||u.call(G,D);return!1})},_.l("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.l(_.E,{cond:G.hasHeaderOverride,
then:function(){var D;return _.l(_.GJ,null,(D=G.headerOverride)==null?void 0:D.call(G))},
else:function(){var D={};return _.l("div",{class:_.tx((D["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,D["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=B,D))},_.l("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.l(_.E,{cond:B,then:function(){return _.l(_.GJ,null,_.l("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},B),_.l(_.E,{cond:F,then:function(){return _.l("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
F)}}))}})),_.l(_.E,{cond:function(){return B()&&G.hasActionHeader()},
then:function(){var u;return _.l("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(u=G.actionHeader)==null?void 0:u.call(G))}}))}}))},"Wl");
jkA.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Y(function(G){function B(RI){if(!t&&typeof MutationObserver!=="undefined"){var yo={childList:!0};"MutationObserver"in window&&(t=new MutationObserver(F.bind(void 0,RI)),t.observe(RI,yo))}}
function F(RI){typeof t!=="undefined"&&(T["content-wrapper"]===void 0&&(T["content-wrapper"]=RI.children[0].clientHeight),W(T["content-wrapper"]),L()>e()||b(L()))}
function D(){m(window.innerHeight);L()>e()||b(L());A.isFullScreen[0]()&&L()>e()?Z().dispatch("Snap To Full Screen",{maxHeight:M()}):Z().dispatch("Snap To Neutral Position",{maxHeight:e()})}
function u(RI){document.body.style.overscrollBehavior="none";RI.preventDefault();Z().dispatch("Touch Start",{event:RI})}
function R(RI){RI.preventDefault();Z().dispatch("Touch Move",{event:RI,contentScrollable:L()>e(),fullContentWrapperHeight:M(),contentWrapperHeight:e(),heightMap:T,contentWrapperId:"content-wrapper",header:LYD(G),footer:LYD(G),headerDivHeight:T["bottom-sheet-header"],footerDivHeight:T["bottom-sheet-footer"]})}
function N(){document.body.style.overscrollBehavior="";A.isFullScreen[0]()?A.currentY[0]()>=60?Z().dispatch("Snap To Neutral Position",{maxHeight:e()}):Z().dispatch("Snap To Full Screen",{maxHeight:M()}):A.currentY[0]()>=60?y():A.currentY[0]()<=-60&&L()>e()?Z().dispatch("Snap To Full Screen",{maxHeight:M()}):Z().dispatch("Snap To Neutral Position",{maxHeight:e()})}
function y(){Z().dispatch("Close Sheet",{clientHeight:a(),maxHeight:0});setTimeout(function(){jKZ()},250)}
var U=_.W5("div"),q=_.W5("div"),h=_.C(_.qg(window.innerHeight,void 0,"CmOsU")),K=h.next().value;h=h.next().value;var a=K,m=h;h=_.C(_.qg(0,void 0,"p0Flhb"));K=h.next().value;h=h.next().value;var L=K,W=h;h=_.C(_.d3(function(){var RI=LYD(G);return.6*a()-mB$(RI)-XbD(RI)}));
K=h.next().value;h=h.next().value;var e=K,b=h,M=function(){var RI=LYD(G),yo=a(),hg=T["bottom-sheet-header"],US=T["bottom-sheet-footer"];return yo-(RI.hasHeaderFn&&hg!==void 0?hg:mB$(RI))-(RI.hasFooterFn&&US!==void 0?US:XbD(RI))-24-24},t=null,T={},A={initialY:_.qg(0,void 0,"sxdESd"),
currentY:_.qg(0,void 0,"GZzqeb"),isAnimating:_.qg(!1,void 0,"vJBupc"),isFullScreen:_.qg(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.d3(e)},Z=function(){var RI=null;return function(){if(!RI){var yo={initialY:A.initialY[0](),currentY:A.currentY[0](),isAnimating:A.isAnimating[0](),isFullScreen:A.isFullScreen[0](),maxHeightForContentWrapper:A.maxHeightForContentWrapper[0]()};RI=QKG(yo)}return RI}}();
_.$f(function(){window.addEventListener("resize",D);Z().subscribe(function(RI){A.initialY[1](RI.initialY);A.currentY[1](RI.currentY);A.isAnimating[1](RI.isAnimating);A.isFullScreen[1](RI.isFullScreen);A.maxHeightForContentWrapper[1](RI.maxHeightForContentWrapper)});
requestAnimationFrame(function(){U.value&&(T["bottom-sheet-header"]=U.value.clientHeight);q.value&&(T["bottom-sheet-footer"]=q.value.clientHeight)})});
_.VI(function(){window.removeEventListener("resize",D);t&&(t.disconnect(),t=null)});
var P=_.tx({"bottom-sheet-content-without-icon":function(){var RI;return!((RI=G.shouldShowIcons)==null?0:RI.call(G))}});
return _.l("bottom-sheet-layout",null,_.l(X7L,{contentWrapperId:"content-wrapper",isAnimating:function(){return A.isAnimating[0]()},
currentY:function(){return A.currentY[0]()},
maxHeightForContentWrapper:function(){return A.maxHeightForContentWrapper[0]()},
shouldShowIcons:G.shouldShowIcons,skipContentClick:G.skipContentClick,onScroll:function(){var RI=document.getElementById("bottom-sheet-header"),yo=document.getElementById("content-wrapper");if(RI&&yo){var hg={};hg=(hg["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,hg["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,hg);RI.className=yo.scrollTop>1?_.UY(hg):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:jKZ,contentWrapperEl:function(RI){B(RI);requestAnimationFrame(function(){F(RI)})},
header:function(){return _.l("div",{el:U},_.l(jkA,{touchstart:u,touchmove:R,touchend:N,title:G.headerTitle,subtitle:G.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:G.headerFn,hasHeaderOverride:G.hasHeaderFn,actionHeader:G.headerActionHeader,hasActionHeader:G.hasHeaderActionHeader}))},
footer:function(){return _.l("div",{el:q},_.l(QkX,{footerButtonType:G.footerButtonType,leadingLabel:G.footerLeadingLabel,trailingLabel:G.footerTrailingLabel,primaryButton:G.footerPrimaryButton,hasPrimaryButton:G.hasFooterPrimaryButton,secondaryButton:G.footerSecondaryButton,hasSecondaryButton:G.hasFooterSecondaryButton,footerOverride:G.footerFn,hasFooterOverride:G.hasFooterFn}))},
body:function(){return _.l(_.E,{cond:G.hasContentFn,then:function(){var RI;return _.l("div",{class:P},(RI=G.contentFn)==null?void 0:RI.call(G))}})}}))},"Xl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var L_3=_.Y(function(G){var B=_.te().resolve(_.nL);return _.l("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.gJ(function(){return void B.closeSheet()})},_.l(_.E,{cond:function(){return!!G.header},
then:function(){return _.l("div",{class:"ytContextualSheetLayoutHeaderContainer"},G.header())}}),_.l(_.E,{cond:function(){return!!G.content},
then:function(){return _.l("div",{class:"ytContextualSheetLayoutContentContainer"},G.content())}}),_.l(_.E,{cond:function(){return!!G.footer},
then:function(){return _.l("div",{class:"ytContextualSheetLayoutFooterContainer"},G.footer())}}))},"Yl");
L_3.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var rCL=_.Y(function(G){var B=G.data;var F=_.te().resolve(_.Wr),D=_.W5("yt-sheet-view-model",function(u){if(_.X("web_focus_first_element_sheet")||!_.X("sheet_focus_first_killswitch"))return u.addEventListener("focus",function(){wz$(u)}),function(){u.removeEventListener("focus",function(){wz$(u)})}});
G={};return _.l("yt-sheet-view-model",{"on:mousedown":_.gJ(function(u){_.X("sheet_focus_first_killswitch")||u.currentTarget!==u.target&&u.preventDefault()}),
"on:focus":_.gJ(function(){_.X("sheet_focus_first_killswitch")||wz$(D.value)}),
"on:mouseleave":_.gJ(function(){var u,R=B==null?void 0:(u=B())==null?void 0:u.rendererContext,N;(u=(N=_.Q(R,_.Xj))==null?void 0:N.onHoverEnd)&&F.resolveCommand(u)}),
class:_.tx("ytSheetViewModelHost",(G.ytSheetViewModelContextual=!0,G.ytSheetViewModelDisableBackdropFilter=_.X("web_disable_backdrop_filter"),G)),el:D,tabindex:-1},_.l(_.E,{cond:B,then:function(u){return _.l(L_3,{header:function(){return _.l(_.uR,{data:function(){return u().header}},{panelHeaderViewModel:mPS})},
content:function(){return _.l(_.uR,{data:function(){return u().content}},{listViewModel:function(R){return _.l(_.ClZ,{data:R.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:iSj,miniAppScoreChallengeViewModel:F_z})},
footer:function(){return _.l(_.uR,{data:function(){return u().footer}},{panelFooterViewModel:K6})}})}}))},"Zl");
rCL.idomCompat=!0;_.YN(rCL,"yt-sheet-view-model",{props:{data:_.Hd}});var HSM=_.Y(function(G){var B=function(){var F;return(F=G.data().enableDebuggingFeatures)!=null?F:!1};
return _.l("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.l(_.jR,{each:function(){var F;return(F=G.data().stickers)!=null?F:[]}},function(F){return _.l(W_M,{data:function(){return F},
debugMode:B})}))},"$l"),W_M=_.Y(function(G){var B=_.AS(G,{debugMode:!1}).debugMode,F=_.pW(function(){var U;
return(U=G.data().region)==null?void 0:U.w},0),D=_.pW(function(){var U;
return(U=G.data().region)==null?void 0:U.h},0),u=_.pW(function(){var U;
return(U=G.data().region)==null?void 0:U.x},0),R=_.pW(function(){var U;
return(U=G.data().region)==null?void 0:U.y},0),N=_.gJ(function(){var U=G.data().onTap;
U&&_.rJ(U)}),y={};
return _.l("div",{class:_.tx("ytStoriesStickerLayerViewModelSticker",(y.ytStoriesStickerLayerViewModelDebugMode=B,y)),style:_.xN({width:function(){return 100*F()+"%"},
height:function(){return 100*D()+"%"},
left:function(){return 100*u()+"%"},
top:function(){return 100*R()+"%"},
"flex-direction":function(){return r5G(G.data().flexDirection)},
"justify-content":function(){return WYD(G.data().justifyContent)},
"align-items":function(){return HcN(G.data().alignItems)}}),
"on:click":N},_.l(_.uR,{data:function(){return G.data().button||G.data().toggleButton}},{buttonViewModel:function(U){return _.l(_.cd,{data:U.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(U){return _.l(_.wl,{data:U.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"am");var OSy=_.Y(function(G){var B=function(){return G.data()},F={},D=_.C(_.qg(!1,void 0,"LkwKDb")),u=D.next().value,R=D.next().value,N=_.pW(function(){return B().backgroundColor},0);
D=_.pW(function(){return B().actionButtons},[]);
var y=_.pW(function(){return B().stickerLayer},{}),U=_.NHI(function(){return B().rendererContext}),q=function(){var K,a;
return{animationRef:F,animationConfig:{autoplay:!1,loop:!1,path:(a=(K=B().foregroundAnimation)==null?void 0:K.url)!=null?a:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){R(!0)},
complete:function(){G.navigateToNextItemOnLottieComplete()}}}},h=function(){var K,a,m,L,W,e,b,M;
return{animationConfig:{autoplay:(e=(K=B().backgroundAnimation)==null?void 0:(a=K.settings)==null?void 0:a.autoplay)!=null?e:!1,loop:(b=(m=B().backgroundAnimation)==null?void 0:(L=m.settings)==null?void 0:L.loop)!=null?b:!1,path:(M=(W=B().backgroundAnimation)==null?void 0:W.url)!=null?M:"",name:"stories_item_background_animation"}}};
_.bC(function(){if(G.isVisible()&&u()){var K;(K=F.lottieEl)==null||K.play();G.animationRef()&&(G.animationRef().lottieEl=F.lottieEl)}else{var a;(a=F.lottieEl)==null||a.stop()}},"dlAj1b");
return _.l("yt-stories-item-view-model",{"aria-label":function(){var K;return(K=U())==null?void 0:K.label},
class:"ytStoriesItemViewModelHost",style:_.xN({"background-color":function(){return _.Kp(N())+";"}})},_.l("div",{class:"ytStoriesItemViewModelAssetContent"},_.l(_.E,{cond:function(){return!!B().backgroundAnimation},
then:function(){return _.l(_.gy,{data:h,animationName:function(){return h().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.l(_.E,{cond:function(){return!!B().backgroundImage},
then:function(){return _.l(_.vr,{data:function(){return B().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.l(_.E,{cond:function(){return!!B().foregroundAnimation},
then:function(){return _.l(_.gy,{data:q,animationName:function(){return q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.l(_.E,{cond:function(){return!!B().foregroundImage},
then:function(){return _.l(_.vr,{data:function(){return B().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.l("div",{class:"ytStoriesItemViewModelTopShadow"}),_.l(_.uR,{data:function(){return y()}},{storiesStickerLayerViewModel:HSM})),_.l("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.xN({"background-color":function(){return _.Kp(N())}})},_.l("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.l(_.jR,{each:D},function(K){return _.l(ktz,{storiesButtonData:function(){return K},
pauseAutoNavigation:G.pauseAutoNavigation})}))))},"cm"),eDX={style:"overlay",
type:"outline"},ktz=_.Y(function(G){var B={};return _.l("div",{class:_.tx("ytStoriesItemViewModelActionButton",(B.ytStoriesItemViewModelStretchedActionButton=function(){return G.storiesButtonData().size==="STORIES_BUTTON_SIZE_STRETCH"},B)),
"on:click":_.gJ(G.pauseAutoNavigation)},_.l(_.uR,{data:function(){return G.storiesButtonData().button}},{buttonViewModel:function(F){return _.l(_.cd,{data:F.data,
buttonOverrides:eDX})}}))},"dm");var $Pm={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.YN(_.Y(function(G){var B=function(){var US;return(US=G.data().startIndex)!=null?US:0},F=_.C(_.d3(B)),D=F.next().value,u=F.next().value;
F=_.C(_.qg(!1,void 0,"sjy7s"));var R=F.next().value,N=F.next().value,y=function(){var US;return(US=G.data().storyItems)!=null?US:[]},U={},q=_.W5("yt-stories-viewer-view-model"),h=function(){return G.data().dismissButton},K=function(){var US;
return _.X1((US=_.Q(h(),_.LV))==null?void 0:US.onTap)},a=_.W5("div"),m,L,W=!1,e=function(){var US;
(US=m)==null||US.cancel();m=b(D()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});m.onfinish=function(){var aI=_.Q(y()[D()],pxH),v6,Jg;aI!=null&&aI.foregroundAnimation&&((aI==null?0:(v6=aI.foregroundAnimation)==null?0:v6.url)||(aI==null?0:(Jg=aI.foregroundAnimation)==null?0:Jg.payload))||(D()!==y().length-1?(u(D()+1),e()):K()&&_.QX(K()))}},b=function(US){return a.value.children[US].children[0]},M=function(){for(var US=0;US<D();US++)b(US).style.transform=
"scaleX(1)"},t=function(){W||(R()?N(!1):(D()===y().length-1&&K()&&_.QX(K()),b(D()).style.transform="scaleX(1)",D()!==y().length-1&&(u(D()+1),e())))},T=function(){W||(R()?N(!1):(b(D()).style.transform="scaleX(0)",D()!==0&&u(D()-1),e()))},A=function(){N(!0)},Z=function(){b(D()).style.transform="scaleX(1)";
D()!==y().length-1?(u(D()+1),e()):K()&&_.QX(K())};
F=function(){W=!1;L=setTimeout(function(){N(!0);W=!0},300)};
var P=function(){clearTimeout(L);W&&R()&&N(!1)};
_.bC(function(){if(R()){var US;(US=m)==null||US.pause();var aI;(aI=U.lottieEl)==null||aI.pause()}else{var v6;(v6=m)==null||v6.play();var Jg;(Jg=U.lottieEl)==null||Jg.play()}},"vAvZob");
_.bC(function(){M();var US;(US=q.value)==null||US.focus();D()===B()&&e()},"uSlfE");
var RI=function(US){US.key==="ArrowLeft"?T():US.key==="ArrowRight"&&t()},yo=function(US){if(US.target===q.value){(US=K())&&_.QX(US);
clearTimeout(L);var aI;(aI=m)==null||aI.cancel();var v6;(v6=U.lottieEl)==null||v6.stop();window.removeEventListener("keydown",RI);window.removeEventListener("yt-popup-closed",yo)}},hg=function(US){if(US.target===q.value){var aI;
(aI=q.value)==null||aI.focus();var v6;(v6=U.lottieEl)==null||v6.play();window.addEventListener("keydown",RI);window.addEventListener("yt-popup-closed",yo)}};
_.$f(function(){M();e();window.addEventListener("yt-popup-opened",hg)});
return _.l("yt-stories-viewer-view-model",{el:q,class:_.tx("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.l("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.l("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.gJ(T),"on:mousedown":_.gJ(F),"on:mouseup":_.gJ(P),"on:mouseleave":_.gJ(P)}),_.l("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.gJ(t),"on:mousedown":_.gJ(F),"on:mouseup":_.gJ(P),"on:mouseleave":_.gJ(P)})),
_.l("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.l(_.uR,{data:y},{storiesItemViewModel:function(US,aI){var v6=US.data;return _.l(_.E,{cond:function(){return Math.abs(aI()-D())<=1},
then:function(){var Jg={};return _.l("div",{class:_.tx("ytStoriesViewerViewModelStoryItem",(Jg.ytStoriesViewerViewModelActiveStoryItem=function(){return aI()===D()},Jg))},_.l(OSy,{data:v6,
pauseAutoNavigation:A,navigateToNextItemOnLottieComplete:Z,isVisible:function(){return aI()===D()},
animationRef:U}))}})}})),_.l("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:a},_.l(_.jR,{each:y},function(){return _.l("div",{class:"ytStoriesViewerViewModelProgressBar"},_.l("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.l("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.l(_.vr,{data:$Pm,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.l("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.l(_.uR,{data:function(){return G.data().menuButton}},{buttonViewModel:function(US){return _.l(_.cd,{data:US.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.l(_.uR,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(US){return _.l(_.wl,{data:US.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.l(_.uR,{data:h},{buttonViewModel:function(US){return _.l(_.cd,{data:US.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"gm"),"yt-stories-viewer-view-model",{props:{data:_.Hd}});_.YN(_.Y(function(G){var B=G.data;var F=_.W5("yt-gen-ai-feedback-form-view-model"),D=[];return _.l("yt-gen-ai-feedback-form-view-model",{el:F,class:"ytGenAiFeedbackFormViewModelHost"},_.l(_.Wd,{text:function(){return B().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.l("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.l(_.uR,{data:function(){return B().feedbackChips}},{toggleButtonViewModel:function(u){var R=u.data;
return _.l(_.wl,{data:R,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(N){var y=R();y=_.Q(y,_.WR);y=_.Q(y==null?void 0:y.defaultButtonViewModel,_.LV).trackingParams;N?D.push(y):(N=D.indexOf(y),N>-1&&D.splice(N,1))}})}})),_.l(_.Wd,{text:function(){return B().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.l("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.l(_.uR,{data:function(){return B().submitButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){k6A(F.value,D,B().uniqueId)}})}}),_.l(_.uR,{data:function(){return B().moreFeedbackButton}},{buttonViewModel:function(u){return _.l(_.cd,{data:u.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"hm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Hd},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Ht=function(){return _.p.apply(this,arguments)||this};
_.r(Ht,_.p);Ht.prototype.created=function(){l9H(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Ly2);var G=_.te().resolve(_.$gz);G&&(G.container=this.ytPopupContainerBehavior);if(G=_.te().resolve(_.nL))G.container=this.ytPopupContainerBehavior;if(G=_.te().resolve(_.lI)){var B=this.ytPopupContainerBehavior;G.containerWasInjected?_.em(Error("uj")):G.container=B}};
Ht.prototype.ensurePopupBelowPlayer=function(G,B){var F=_.te().resolve(_.fH(_.pA));if(!F||!F.isOnWatch()||!_.AZ())return!1;F=F.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Bm().height>F+this.getPopupHeight(G,B)?(G.style.top="auto",G.style.bottom="0px"):(G.style.top=F+"px",G.style.bottom="auto");return!0};
Ht.prototype.getPopupHeight=function(G,B){B&&(G.cachedPopupHeight=0);if(!G.cachedPopupHeight){B=0;var F=G.clientHeight,D=window.getComputedStyle(G);B+=parseInt(D.marginTop,10);B+=parseInt(D.marginBottom,10);G.cachedPopupHeight=F+B}return G.cachedPopupHeight};
Ht.prototype.getElement=function(G){return document.createElement(G)};
_.c([_.k(pSL.YtPopupContainerBehavior),_.I("design:type",Object)],Ht.prototype,"ytPopupContainerBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);_.c([_.mC({disableElementRegistration:!0,is:"ytd-popup-container"})],Ht);
_.d(Ht,"ytd-popup-container",function(){if(ONz!==void 0)return ONz;var G=document.createElement("template");_.H(G,"\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");G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);return ONz=G},{mode:1});var zDX;var bSL={};bSL.YtLogYpcFlowCommandsBehavior=[_.Za.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(G){_.Q(G,JvS)&&(G=_.Q(G,JvS))&&(G.serializedTransactionFlowLoggingParams?_.Ckl(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&S4("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&S4("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=G.serializedYpcPauseFlowLoggingParams)&&
S4("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams?(G=G.serializedYpcRefundFlowLoggingParams)&&AJ2("YPC_EVENT_TYPE_START",G):G.serializedYpcDeactivateFlowLoggingParams?(G=G.serializedYpcDeactivateFlowLoggingParams)&&S4("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",G):G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(G=G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&S4("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",G))},
handleLogYpcFlowDismiss_:function(G){_.Q(G,dqN)&&(G=_.Q(G,dqN),G.serializedTransactionFlowLoggingParams?_.Npo(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&S4("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&S4("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=G.serializedYpcPauseFlowLoggingParams)&&
S4("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams&&(G=G.serializedYpcRefundFlowLoggingParams)&&AJ2("YPC_EVENT_TYPE_CANCEL",G))}}];var V5A={};V5A.YtCancelRecurrenceBehavior=[_.aS.YtComponentBehavior,_.zNL,{attached:function(){var G=this;sVS(this,function(B,F){return G.ypcCancelRecurrenceHandler(B,F)})},
ypcCancelRecurrenceHandler:function(G,B){var F=this;if(!B||!B.ypcCancelRecurrenceEndpoint)return!1;if(!B.ypcCancelRecurrenceEndpoint.params)return _.Mn(Error("um")),!0;_.$L(this.hostElement);var D=_.OR.instance,u=_.te().resolve(_.fH(_.un));D&&_.eo(D,B)?_.$F(D,B).then(function(R){F.ypcCancelRecurrenceSuccess_(G,B,{data:R})},function(R){F.ypcCancelRecurrenceFailure_(G,B,R)}).thenCatch(function(){_.Mn(Error("vm"))}):u?u.requestDataForServiceEndpoint(B).then(function(R){F.ypcCancelRecurrenceSuccess_(G,
B,R)},function(R){F.ypcCancelRecurrenceFailure_(G,B,R)}).thenCatch(function(){_.Mn(Error("vm"))}):_.Mn(Error("wm"));
return!0},
ypcCancelRecurrenceSuccess_:function(G,B,F){_.zf(this.hostElement);F.data||(F={data:F});F.data&&F.data.actions&&_.tL(this.hostElement,F.data.actions,this.hostElement);F.data.messageRenderer?T5$(B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(B=B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&S4("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",B);_.cZ(G,"yt-service-request-completed",F)},
ypcCancelRecurrenceFailure_:function(G,B,F){_.zf(this.hostElement);T5$(B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.cZ(G,"yt-service-request-error",{error:F,params:[G,B]})}}];var vim=function(G,B){_.Gs.call(this,B)};
_.r(vim,igN);var oia={};oia.YtCompleteTransactionBehavior=[_.aS.YtComponentBehavior,_.zNL,{attached:function(){var G=this;sVS(this,function(B,F){return G.ypcCompleteTransactionHandler(B,F)})},
completeTransaction:function(G,B){var F=this;B={payments_payload:window.btoa(B.integratorData),buybucket_params:G.data.buybucketParams,offer_params:G.data.offerParams};var D=_.te().resolve(_.un),u=G.data.completeTransactionEndpoint,R=this.get("ypcCompleteTransactionEndpoint.actions",u);R&&_.tL(this.hostElement,R,this.hostElement);return(R=_.OR.instance)&&_.eo(R,u)?_.$F(R,u,B).then(function(N){return!N||(N==null?0:N.error)?(N=F.get("data.serializedTransactionFlowLoggingParams",G),_.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
N))):{data:N}}).then(function(N){return F.handleCompleteTransactionSuccess_(N,G)},function(){return F.handleCompleteTransactionFailure_(G)}):D.requestDataForServiceEndpoint(u,B).then(function(N){return F.handleCompleteTransactionSuccess_(N,G)},function(){return F.handleCompleteTransactionFailure_(G)})},
handleCompleteTransactionSuccess_:function(G,B){G.data||(G={data:G});if(G.data.messageRenderer)return _.U_(new vim(G.data.messageRenderer));if(G.data.trackingParams){var F=_.qW(),D=_.Uw();F&&D&&_.WT(F,D,_.yX(G.data.trackingParams))}B=this.get("data.serializedTransactionFlowLoggingParams",B);daN(B);return _.ZL(G)},
handleCompleteTransactionFailure_:function(G){G=this.get("data.serializedTransactionFlowLoggingParams",G);_.zB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G);return _.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))},
ypcCompleteTransactionHandler:function(G,B){var F=this;if(!B.ypcCompleteTransactionEndpoint)return!1;if(!B.ypcCompleteTransactionEndpoint.transactionParams)return _.Mn(Error("xm")),!0;B.ypcCompleteTransactionEndpoint&&B.ypcCompleteTransactionEndpoint.gtmData&&_.RS(B.ypcCompleteTransactionEndpoint.gtmData);var D=_.te().resolve(_.fH(_.un));if(D){_.$L(this.hostElement);var u=_.OR.instance;u&&_.eo(u,B)?_.$F(u,B).then(function(R){return!R||(R==null?0:R.error)?(R=F.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
B),_.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",R))):{data:R}}).then(function(R){_.cZ(G,"yt-service-request-completed");
F.ypcCompleteTransactionSuccess_(B,R)},function(){return F.ypcCompleteTransactionFailure_(B)}):D.requestDataForServiceEndpoint(B).then(function(R){_.cZ(G,"yt-service-request-completed");
F.ypcCompleteTransactionSuccess_(B,R)},function(){return F.ypcCompleteTransactionFailure_(B)})}return!0},
ypcCompleteTransactionSuccess_:function(G,B){_.zf(this.hostElement);B.data||(B={data:B});_.T1(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);B.data.messageRenderer||B.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(G):(_.RS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",G));B.data.actions&&(G=SRN(B.data.actions),B=sQB(B.data.actions),G.length&&_.fi(this.hostElement,
G),B.length&&_.tL(this.hostElement,B,this.hostElement))},
ypcCompleteTransactionFailure_:function(G){_.zf(this.hostElement);_.T1(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",G,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(G,B,F){if(B=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",B))B={serializedTransactionFlowLoggingParams:B},F&&(B.errorType=F),_.W$(G,B),_.H$()}}];var M53={};M53.YtEndpointHandlerWithYpcBehavior=[_.zNL,_.Za.YtActionHandlerBehavior,[{openWalletDialog:function(G,B,F,D,u,R,N){var y=this,U=_.zn();B=B.replace(/-/g,"+").replace(/_/g,"/");var q=_.D4().get("hl");_.Nxl(_.IG(_.bn),B,U.resolve,u,function(h){R&&R();U.reject(h)},q,function(h){return y.onServerBackendAnalyticEvent_(G,F,h)},this.onDialogClose_.bind(this),D,N);
return U.promise},
openFixFlowDialog:function(G,B,F,D){G=G.replace(/-/g,"+").replace(/_/g,"/");_.IG(_.bn).openFixFlowDialog(G,B,F,D)},
onDialogClose_:function(){_.T1(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(G,B,F){_.cZ(G,"yt-commerce-action-init-done");B&&_.fi(this.hostElement,[B,{backend_analytics:F}])}}],
_.f4.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(G,B){G=this.get("data.nativeFlowEndpoint",B);B=this.get("data.fallbackEndpoint",B);G?_.fi(this.hostElement,[G]):B&&_.cZ(this.hostElement,"yt-navigate",{endpoint:B})}}],
V5A.YtCancelRecurrenceBehavior,oia.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 G=this;sVS(this,function(B,F,D){return G.handleYPCEndpoint(B,F,D)});
this.ypcRegisterActionMapJobId_=_.mX(_.Lu,function(){G.registerActionMap(G.buyFlowActionMap_)})},
detached:function(){var G=this;_.Lu.cancelJob(this.ypcRegisterActionMapJobId_);_.mX(_.Lu,function(){G.unregisterActionMap(G.buyFlowActionMap_)})},
handleYPCEndpoint:function(G,B,F){var D=B.ypcGetCartEndpoint;if(D){_.hJ("commerce_transaction");var u=D.gtmId;u&&_.uY(u);(D=D.gtmData)&&_.RS(D)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",B)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(G,B),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",B)!=null?(this.handleYPCFixInstrumentEndpoint_(G,B),!0):B.ypcPauseSubscriptionCommand?(MeQ(this.hostElement,G,B,F),
!0):B.ypcResumeSubscriptionCommand?(A5G(this.hostElement,G,B),!0):B.getPaymentInstrumentsParamsCommand?(VeA(this.hostElement,G,B),!0):B.ypcHandleTransactionEndpoint?(zrD(this.hostElement,G,B,F),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(G,B){var F=this;_.KR("ttcr",void 0,"commerce_transaction");B=B.ypcGetCartEndpoint;var D=B.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,u=D.encryptedPurchaseParams,R=D.serializedTransactionFlowLoggingParams,N=D.serializedPaymentsClientParams,y=this.createGetCartResponseFromParams_(D,B.offerParams,R);this.changeButtonState(G,!0);_.at(this.openWalletDialog(G,u,D.ypcLogWalletAnalyticDataEndpoint,R,function(){F.changeButtonState(G,!1)},function(){F.changeButtonState(G,
!1)},N).then(function(U){return F.handleBuyFlowCompleteCallback_(G,y,U)},function(){return F.handleOnLoadError(y)}).then(function(U){return void F.handlePostPurchaseSuccess_(G,y,U)},function(U){return void F.handlePostPurchaseError_(U)}),function(){F.changeButtonState(G,!1);
G instanceof Element&&_.cZ(G,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(G,B,F){var D=G.completeTransactionEndpoint,u=G.handleTransactionEndpoint;B={data:{offerParams:window.btoa(B),serializedTransactionFlowLoggingParams:F}};u?B.data.handleTransactionEndpoint=u:B.data.completeTransactionEndpoint=D;G.onCartDismissCommand&&(B.data.onCartDismissCommand=G.onCartDismissCommand);return B},
onGetCartServiceRequestCompleted_:function(G,B){var F=this,D=G.target;if(B&&B.data&&B.data.messageRenderer)_.zf(this.hostElement),this.handleMessageRenderer_(B.data.messageRenderer),this.changeButtonState(D,!1);else{var u=this.get("data.encryptedPurchaseParams",B),R=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",B),N=this.get("data.ypcLogWalletAnalyticDataEndpoint",B),y=this.get("data.serializedPaymentsClientParams",B),U=this.getLoggingParams_(B);if(U||u||R)G.stopPropagation(),_.KR("ttcr",
void 0,"commerce_transaction"),u||_.zf(this.hostElement),this.changeButtonState(D,!1),R?_.T1(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.v5("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:R}}},this]):u&&(this.changeButtonState(D,!0),G=null,G=this.openWalletDialog(D,u,N,U,function(){_.zf(F.hostElement);F.changeButtonState(D,!1)},function(){_.zf(F.hostElement);
F.changeButtonState(D,!1)},y),_.at(G.then(function(q){return F.handleBuyFlowCompleteCallback_(D,B,q)},function(){return F.handleOnLoadError(B)}).then(function(q){return F.handlePostPurchaseSuccess_(D,B,q)},function(q){return F.handlePostPurchaseError_(q)}),function(){F.changeButtonState(D,!1);
_.cZ(D,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(G,B){B&&B.endpoint&&B.endpoint.ypcGetCartEndpoint&&!B.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",B.endpoint.ypcGetCartEndpoint)&&_.tL(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",B.endpoint.ypcGetCartEndpoint)],G.target),_.$L(this.hostElement),this.changeButtonState(G.target,!0))},
onServiceRequestError_:function(G,B){if(B&&B.params&&B.params.length){B=_.C(B.params);for(var F=B.next();!F.done;F=B.next())if((F=F.value)&&F.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",F.ypcGetCartEndpoint)&&_.tL(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",F.ypcGetCartEndpoint)],G.target);_.zf(this.hostElement);this.changeButtonState(G.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(G,B,F){var D=F.integratorData;return D==null||D===""||F.error!=null?(D=this.getLoggingParams_(B),String(F.error)==="-1"?(B.data.onCartDismissCommand&&_.tL(this.hostElement,[B.data.onCartDismissCommand],G),_.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",D,!0))):_.U_(new Nl("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",D))):B.data.handleTransactionEndpoint?bcU(this.hostElement,B.data.handleTransactionEndpoint,{payments_payload:D,funds_guarantee_callback_client_data:F.integratorClientCallbackData}):
this.completeTransaction(B,F)},
handlePostPurchaseSuccess_:function(G,B,F){B=F.data;var D=!1,u,R;if(B&&((u=B.command)==null?0:(R=u.commandExecutorCommand)==null?0:R.commands)){var N,y;u=(N=B.command)==null?void 0:(y=N.commandExecutorCommand)==null?void 0:y.commands;for(N=0;N<u.length;N++)if(_.Q(u[N],_.klL)){D=!0;break}}D||(B&&B.gtmDatas&&B.gtmDatas.length?_.RS(B.gtmDatas[0]):_.RS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));F.data&&F.data.actions&&(B=SRN(F.data.actions),F=sQB(F.data.actions),B.length&&
_.fi(this.hostElement,B),F.length&&_.tL(this.hostElement,F,G))},
handlePostPurchaseError_:function(G){G&&G.payload&&G.payload.isUserDismiss||_.k2(Error("zm"))},
handleOnLoadError:function(G){G=this.getLoggingParams_(G);return _.U_(new Nl("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G))},
getLoggingParams_:function(G){return this.get("data.serializedTransactionFlowLoggingParams",G)},
handleMessageRenderer_:function(G){var B=_.zJ(G,"renderer"),F=_.v5("openPopupConfig");B==="confirmDialogRenderer"&&F&&_.T1(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:F.popupTypeMap[B],popup:G}},this])},
handleYPCFixInstrumentEndpoint_:function(G,B){var F=this,D=B.ypcFixInstrumentEndpoint;B=D.encryptedFixInstrumentParameters;this.logFixFopEvent_(D,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(G,!0);this.openFixFlowDialog(B,function(u,R){F.onFixFlowCompleteCallback_(D,u,R)},function(){return F.changeButtonState(G,!1)},function(){F.changeButtonState(G,!1);
F.logFixFopEvent_(D,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(G,B,F){var D=_.Yf("payments.business.integration.scenario.FixInstrument");if(B==D.IntegratorCallbackType.ON_COMPLETE){B="FIX_FOP_EVENT_TYPE_CANCEL";var u=null;F.error!=null?F.error!=D.OnCompleteCallbackError.USER_CANCELLED&&(_.tL(this.hostElement,[G.errorAction],this.hostElement),B="FIX_FOP_EVENT_TYPE_FAILURE",u="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.tL(this.hostElement,[G.successAction],this.hostElement),B="FIX_FOP_EVENT_TYPE_SUCCESS");_.tL(this.hostElement,[G.onFinishAction],
this.hostElement);this.logFixFopEvent_(G,B,u)}},
logFixFopEvent_:function(G,B,F){(G=G.serializedFixFopLoggingParams)?(B={eventType:B,serializedFixFopLoggingParams:G},F!=null&&(B.errorType=F),_.W$("fixFopFlow",B),_.H$()):_.k2(Error("Am"))},
changeButtonState:function(G,B){_.X("enable_ypc_spinners")&&G&&(G.is==="yt-button-renderer"||G.is==="ytd-button-renderer")&&(G.disabled=B)}}];var p7S=function(G){this.JSC$33944_clientRoot=G;this.feedbackCollectorActionMap={"yt-help-dialog-requested":J5$,"yt-feedback-dialog-requested":dBD,"yt-signal-action-help":c5S,"yt-signal-action-send-feedback":TZ$,"yt-send-feedback-action":fXD,"yt-user-feedback-endpoint":teS};_.Y2(_.pZ.getInstance(),this.feedbackCollectorActionMap,this.JSC$33944_clientRoot)},Yh3;var ACz=function(G){this.JSC$33949_clientRoot=G;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Zc$.bind(null,this.JSC$33949_clientRoot),"yt-signal-action-delete-all-downloads":SlB,"yt-signal-action-delete-download":sK2,"yt-signal-action-delete-playlist-download":PL$,"yt-signal-action-install-pwa":uW$,"yt-signal-action-refresh-downloads":FKz,"yt-offline-video-endpoint":wpZ,"yt-offline-playlist-endpoint":N2U,"yt-update-local-app-setting-command":nuZ,"yt-offline-orchestration-action-command":UXS,
"yt-signal-action-undo-delete-download":B2$,"yt-local-watch-history-command":hGA,"yt-signal-action-mark-download-to-mobile-edu-shown":agD};_.Y2(_.pZ.getInstance(),this.downloadManagerActionMap,this.JSC$33949_clientRoot);_.Hm.instance=new _.Hm},dPa;var kq=function(){var G=_.p.apply(this,arguments)||this;G.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_"};G.remoteApi_=null;return G};
_.r(kq,_.p);_.w=kq.prototype;
_.w.ready=function(){_.X("polymer_enable_mdx")&&(l$Q({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.X("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.X("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.X("enable_cast_short_lived_lounge_token")}),_.xr("yt-remote-connection-change",this.handleConnectionChange_,this),_.xr("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=XIS())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.w.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.w.handleConnectionChange_=function(G){(this.mdxConnected=G)?(G=EF$(),!G&&gN$()&&S_S()&&(G={key:"cast-selector-receiver",name:S_S()}),G=G.name):G=null;this.receiverName=G;_.ve(this.remoteApi_);(this.remoteApi_=XIS())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.w.handleReceiverAvailabilityChange_=function(){var G=qR$();gN$()&&_.np("yt-remote-cast-available")&&G.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=G.length>0};
_.w.handleRemoteQueueChange_=function(){var G=this.currentVideoId_,B=this.currentListId_,F=O6(this.remoteApi_);this.currentVideoId_=F.videoId;this.currentListId_=F.listId;this.currentVideoId_&&_.T1(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.X("polymer_enable_mdx_queue")?this.currentListId_:null,G,B])};
_.w.handleAddToQueueAction_=function(G){G=_.Q(G,d1D);this.remoteApi_&&(G.videoId?this.remoteApi_.addVideo(G.videoId):G.playlistId&&this.remoteApi_.addPlaylist(G.playlistId))};
_.w.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.w.handleInsertInQueueAction_=function(G){G=_.Q(G,JY$);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20146_insertVideo(G.videoId)};
_.w.handleRemoveFromQueueAction_=function(G){G=_.Q(G,cYH);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20146_removeVideo(G.videoId)};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.I("design:type",Object)],kq.prototype,"appId",void 0);_.c([_.v(),_.I("design:type",Boolean)],kq.prototype,"mdxConnected",void 0);_.c([_.v(),_.I("design:type",Boolean)],kq.prototype,"receiverAvailable",void 0);_.c([_.v(),_.I("design:type",Object)],kq.prototype,"receiverName",void 0);_.c([_.v(),_.I("design:type",Object)],kq.prototype,"currentVideoId_",void 0);
_.c([_.v(),_.I("design:type",Object)],kq.prototype,"currentListId_",void 0);_.c([_.ay({is:"yt-mdx-manager",disableElementRegistration:!0})],kq);_.d(kq,"yt-mdx-manager",void 0,{mode:2});var JCA;var cCL;var OZ=function(){var G=_.p.apply(this,arguments)||this;G.APP_IDS={ytr:3,ytm:5};G.JSC$23229_timeoutId_=0;G.actionMap={"yt-open-create-family-dialog":"open"};return G};
_.r(OZ,_.p);_.w=OZ.prototype;_.w.created=function(){l9H(2200)};
_.w.detached=function(){this.observer_&&this.observer_.disconnect()};
_.w.open=function(G,B){var F=this,D=G.serializedYpcFamilyCreateLoggingParams;this.JSC$23229_timeoutId_=setTimeout(this.abort_.bind(this,G.postFlowErrorEndpoint,D),3E4);B&&(this.onReadyCallback_=B);var u=_.IF(this.hostElement).querySelector("#unicorn-iframe");D&&D&&Yq$("ypcFamilyCreateFlowStarted",D);_.lhU("family_creation",function(){var R=_.Yf("gapi.family_creation.render");_.Yf("gapi.config.update")("iframes/family_creation/url",F.getFamilyCreationUrlWithUnicornParams_());var N=3;G.appId&&G.appId in
F.APP_IDS&&(N=F.APP_IDS[G.appId]);N={authUser:_.v5("SESSION_INDEX")||0,clientId:N,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.v5("HL"),initialflow:[4,5,6,7],m:F.isMobile?1:0,onFlowComplete:F.onUnicornFlowComplete_.bind(F,G.postFlowSuccessEndpoint,D),onError:F.onUnicornFlowError_.bind(F,G.postFlowErrorEndpoint,D),onReady:F.onUnicornFlowReady_.bind(F,G.referencePcidParams)};R(u,N)})};
_.w.close=function(){_.IF(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.w.onUnicornFlowComplete_=function(G,B){this.close();B&&B&&Yq$("ypcFamilyCreateFlowSucceeded",B);_.cZ(this.hostElement,"yt-navigate",{endpoint:G})};
_.w.onUnicornFlowError_=function(G,B){this.close();B&&Yq$("ypcFamilyCreateFlowCancelled",B);_.cZ(this.hostElement,"yt-navigate",{endpoint:G})};
_.w.onUnicornFlowReady_=function(G){var B=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();G&&_.Yf("gapi.family_creation.setConfig")(0,G);this.observer_=new MutationObserver(function(){_.IF(B.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.IF(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.IF(this.hostElement).querySelector("#dialog").open()};
_.w.getFamilyCreationUrlWithUnicornParams_=function(){return _.v5("YTR_FAMILY_CREATION_URL")};
_.w.getCurrentUrl_=function(){return document.location.href};
_.w.abort_=function(G,B){this.clearTimeout_();this.onUnicornFlowError_(G,B)};
_.w.clearTimeout_=function(){clearTimeout(this.JSC$23229_timeoutId_)};
_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],OZ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],OZ.prototype,"isMobile",void 0);_.c([_.v(),_.I("design:type",Object)],OZ.prototype,"onReadyCallback_",void 0);_.c([_.v(),_.I("design:type",Object)],OZ.prototype,"observer_",void 0);_.c([_.ay({is:"yt-create-family-dialog",disableElementRegistration:!0})],OZ);
_.d(OZ,"yt-create-family-dialog",function(){if(cCL===void 0){var G=document.createElement("template");_.H(G,'\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');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);var B=G.content,F=B.insertBefore;JCA===void 0&&(JCA=document.createElement("template"));var D=JCA;F.call(B,D.content.cloneNode(!0),G.content.firstChild);cCL=G}G=cCL;return G},{mode:2});var TOy;var IJz;var e1=function(){var G=_.p.apply(this,arguments)||this;G.STEP=1;G.BLOCK_ON=80;G.MIN_PROGESS=0;G.MAX_PROGESS=100;return G};
_.r(e1,_.p);_.w=e1.prototype;_.w.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.w.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));_.te().addProvider({provide:TGD,useValue:this})};
_.w.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.w.finish=function(){var G=this;this.progress=this.MAX_PROGESS;mX$(function(){G.progress==G.MAX_PROGESS&&(G.hostElement.hidden=!0)})};
_.w.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.ZN.Object.defineProperties(e1.prototype,{progress:{configurable:!0,enumerable:!0,set:function(G){this.progress_=G;var B="scaleX("+G/this.MAX_PROGESS+")",F=_.IF(this.hostElement).querySelector("#progress").style;F.transform=B;F.webkitTransform=B;this.hostElement.setAttribute("aria-valuenow",String(G))},
get:function(){return this.progress_}}});
_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.c([_.ay({is:"yt-page-navigation-progress",disableElementRegistration:!0})],e1);
_.d(e1,"yt-page-navigation-progress",function(){if(IJz===void 0){var G=document.createElement("template");_.H(G,'\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');G.content.insertBefore(_.f().content.cloneNode(!0),
G.content.firstChild);var B=G.content,F=B.insertBefore;TOy===void 0&&(TOy=document.createElement("template"));var D=TOy;F.call(B,D.content.cloneNode(!0),G.content.firstChild);IJz=G}G=IJz;return G},{mode:2});var fJz={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"},t53={"font-size":"12px","font-style":"italic"},ZSX={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.LKQ=function(){return _.n(function(G){_.di(G)})};var gie=_.Y(function(G){var B=function(){return G.data().subtext},F={};
return _.l("snackbar-view-model",{class:_.tx("snackbarViewModelHost",G.className)},_.l("div",{class:_.tx("snackbarViewModelEngagementBarWrapper",G.className)},_.l(_.E,{cond:function(){return G.data().image},
then:function(D){return _.l(_.vr,{data:D,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.l(_.E,{cond:function(){return G.data().imageContent},
then:function(){return _.l("div",{class:"snackbarViewModelAvatarContainer"},_.l(_.uR,{data:function(){return G.data().imageContent}},{decoratedAvatarViewModel:_.KU}))}}),_.l("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.l("div",{class:_.tx((F.snackbarViewModelTitle=!0,F.snackbarViewModelTitleWithSubtext=B,F))},_.l(_.Wd,{text:function(){return G.data().text}})),_.l(_.E,{cond:B,
then:function(){return _.l("div",{class:"snackbarViewModelSubtext"},_.l(_.Wd,{text:function(){return B()}}))}})),_.l(_.E,{cond:function(){return G.data().buttons},
then:function(){return _.l("div",{class:"snackbarViewModelButtonClassWrapper"},_.l(_.uR,{data:function(){return G.data().buttons}},{buttonViewModel:function(D){return _.l(_.cd,{data:D.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:G.target})}}))}})))},"im");_.YN(_.Y(function(){function G(M,t,T){L(M);e(T);a("in");h(!0);B(M,t);N=setTimeout(function(){F()},t)}
function B(M,t){var T,A=(T=M.text)==null?void 0:T.content;M=_.Kh(M.rendererContext);A&&(t={label:A,command:M,durationMs:t},_.te().resolve(_.XI).enqueue(t))}
function F(M){a("out");M&&clearTimeout(N)}
function D(){F(!0)}
function u(M){if(M){var t=M.snackbarViewModel,T=M.durationMs,A=M.target;T||(T=3E3);t&&(M=_.te().resolve(_.fH(_.am)))&&M.enqueue({isOpened:q,open:function(){G(t,T,A)},
close:F},0)}}
var R=_.H5("snackbar-container"),N=void 0,y=_.C(_.qg(!1,void 0,"mDc5N")),U=y.next().value;y=y.next().value;var q=U,h=y;U=_.C(_.qg("out",void 0,"FpOs5e"));var K=U.next().value,a=U.next().value;U=_.C(_.qg(void 0,void 0,"jIDRob"));var m=U.next().value,L=U.next().value;U=_.C(_.qg(void 0,void 0,"kOA3Mb"));var W=U.next().value,e=U.next().value,b=_.gJ(function(){if(K()==="out"){h(!1);L(void 0);e(void 0);var M=_.te().resolve(_.fH(_.am));M&&Y9U(M,0)}});
_.$f(function(){var M=_.te().resolve(_.fH(_.RFB));M&&(M.showSnackbarFn=u,M.closeSnackbarFn=D)});
return _.l("snackbar-container",{class:"ytSnackbarContainerHost",el:R},_.l(_.E,{cond:function(){return q()&&!!m()},
then:function(){var M={};return _.l("div",{class:_.tx("ytSnackbarContainerSnackbarContainer",(M.ytSnackbarContainerMobile=!1,M.ytSnackbarContainerPivotBar=function(){var t;return!((t=_.te().resolve(_.fH(_.weQ)))==null||!t())},M.ytSnackbarContainerOpened=function(){return q()&&K()==="in"},M.ytSnackbarContainerClosed=function(){return q()&&K()==="out"},M)),
"on:animationend":b},_.l(gie,{data:function(){return m()},
target:function(){return W()}}))}}))},"jm"),"snackbar-container");_.YN(_.k4v,"yt-tooltip");var Shz=_.wND.ephemeralActionSelector;_.YN(_.Y(function(){var G=_.FT(Shz);return _.l("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var B;return(B=G())==null?void 0:B.announcement})},"km"),"yt-ephemeral-actions");var T2$=new Map;var kN$=function(G,B){var F=this;this.handleError=G;this.logEventInternal=B;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){F.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
kN$.prototype.logError=function(G){this.handleError(G)};
kN$.prototype.logEvent=function(G,B){switch(G){case "IDB_DATA_CORRUPTED":_.X("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",B);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",B);break;case "IS_SUPPORTED_COMPLETED":_.X("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",B);break;case "QUOTA_EXCEEDED":sky(this,B);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",B);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G=Object.assign({},B,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",G)}};
var sky=function(G,B){_.j4.getInstance().estimate().then(function(F){F=Object.assign({},B,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:fgS(F==null?void 0:F.usage),deviceStorageQuotaMbytes:fgS(F==null?void 0:F.quota)});G.logEventInternal("idbQuotaExceeded",F)})};var xPS=_.Y(function(G){var B=_.W5("yt-draggable"),F=G.onDrag,D=G.onDragStart,u=G.onDragEnd,R=_.AS(G,{allowClicks:!1,dragThreshold:5}),N=R.dragThreshold,y=R.allowClicks;G=R.children;R=R.className;var U=void 0,q=void 0,h=new _.e5(0,0),K=!1;_.$f(function(){U=new _.QV(B.value);q=new _.s2(m);a(U,q);if(y()){_.e2y(U,N());var W;(W=B.value)==null||W.addEventListener("click",L,{capture:!0})}_.VI(function(){var e;(e=U)==null||e.dispose();if(y()){var b;(b=B.value)==null||b.removeEventListener("click",L,{capture:!0})}})});
var a=function(W,e){_.H1(W,"earlycancel",function(){y()&&(K=!1)});
_.H1(W,"start",function(b){D==null||D(b);b.defaultPrevented||y()&&(K=!0)});
_.H1(W,"beforedrag",function(b){U&&q&&(b.preventDefault(),h=new _.e5(b.clientX-U.startX,b.clientY-U.startY),q.start())});
_.H1(W,"end",function(){e.stop();u==null||u();h=new _.e5(0,0)})},m=function(){h&&F(h)},L=function(W){K&&(K=!1,W.stopPropagation(),W.preventDefault())};
return _.l("yt-draggable",{el:B,class:_.tx("ytDraggableComponentHost",R)},G)},"lm");var PMC=_.Y(function(G){var B=_.C(_.qg(0,void 0,"Qf0tbc")),F=B.next().value,D=B.next().value;B=function(u){var R={},N={};return _.l(xPS,{className:_.tx("ytdMiniplayerComponentResizer",(R.ytdMiniplayerComponentResizerDisabled=function(){return u===G.horizontalAlignment()||u===G.verticalAlignment()},R.ytdMiniplayerComponentResizerNorth=u==="north",R.ytdMiniplayerComponentResizerEast=u==="east",R.ytdMiniplayerComponentResizerSouth=u==="south",R.ytdMiniplayerComponentResizerWest=u==="west",R)),
onDragStart:function(){D(G.currentMiniplayerSize());if(G.onResizeStart)G.onResizeStart()},
onDrag:function(y){u!=="north"&&u!=="west"||y.scale(-1);var U;y=(U=u==="north"||u==="south")?y.y:y.x;var q=G.currentAspectRatio();U&&q>=1?y*=q:!U&&q<1&&(y/=q);U=y;G.onResize(F()+U)}},_.l("div",{class:_.tx("ytdMiniplayerComponentResizerCorner",(N.ytdMiniplayerComponentResizerNorthCorner=u==="north",N.ytdMiniplayerComponentResizerEastCorner=u==="east",N.ytdMiniplayerComponentResizerSouthCorner=u==="south",N.ytdMiniplayerComponentResizerWestCorner=u==="west",N))}))};
return _.l("div",{class:"ytdMiniplayerComponentResizers"},B("north"),B("east"),B("south"),B("west"))},"mm");var G26=16/9;_.YN(_.Y(function(){var G=_.W5("ytd-miniplayer"),B=_.C(_.qg(new _.$i(NaN,NaN),void 0,"i8Divd")),F=B.next().value,D=B.next().value;B=_.C(_.qg(!1,void 0,"M0mb9d"));var u=B.next().value,R=B.next().value;B=_.C(_.qg(!1,void 0,"U2besf"));var N=B.next().value,y=B.next().value;B=_.C(_.qg(!1,void 0,"oMkCO"));var U=B.next().value,q=B.next().value;B=_.C(_.qg(!1,void 0,"LLG3Bf"));var h=B.next().value,K=B.next().value;B=_.C(_.qg(!1,void 0,"m7HPQe"));var a=B.next().value,m=B.next().value;B=_.C(_.qg(!1,void 0,"jUGfuc"));
var L=B.next().value,W=B.next().value;B=_.C(_.qg(G26,void 0,"LkUsDe"));var e=B.next().value,b=B.next().value,M=_.C(_.qg(!1,void 0,"xKE3oe"));B=M.next().value;var t=M.next().value;M=_.C(_.qg(!1,void 0,"QQ32Je"));var T=M.next().value,A=M.next().value;M=_.C(_.qg(void 0,void 0,"LRAn3"));var Z=M.next().value,P=M.next().value;M=_.C(_.qg(Un()?"west":"east",void 0,"ZPTxkd"));var RI=M.next().value,yo=M.next().value;M=_.C(_.qg("south",void 0,"XYTr4"));var hg=M.next().value,US=M.next().value;M=_.C(_.qg(400,
void 0,"hJycJe"));var aI=M.next().value,v6=M.next().value;M=_.te().resolve(_.WP).miniplayerPropSignalMap[0];var Jg=M.data,c6=M.externalPlaylistData,q8=M.playabilityStatus,n7=M.isReadyToResume,Ts=M.isDisabled,hT=M.watchWhile,L7=M.playerVe,K7=M.expandVe,kD=M.closeVe,Rz=M.readyToResumeVe,KQ=M.readyToResumeCloseVe,pQ=M.repositionVe,aq=M.resizeVe;M=_.C(_.d3(n7));var Zq=M.next().value,eN=M.next().value,Ps=_.FT(_.OY.persistentPanelVisibleSelector),el=!1,sG=!1,qH;_.$f(function(){D(_.Bm());G.value.addEventListener("animationend",
function(JT){JT.target===G.value&&(m(!1),W(!1))});
xXz(G.value)});
_.da("yt-window-resized",function(JT){JT&&D(JT)});
var TL=function(){qH&&b(qH.getVideoAspectRatio())},Iz=function(){if(qH){var JT=qH.getPlayerState()===1;
Zq()&&JT&&eN(!1)}},N8=function(){var JT=K7();
if(JT){var w$=_.qW(3);w$&&_.$I(w$,JT)}},EA=function(){var JT=kD(),w$=KQ();
JT&&_.$I(_.qW(3),JT);n7()&&w$&&_.$I(_.qW(3),w$)};
_.da("yt-activate-miniplayer",function(JT){var w$;return _.n(function(xD){if(xD.nextAddress==1)return u()?xD.return():xD.yield((w$=_.te().resolve(_.WP).getPlayerElement())==null?void 0:w$.getPlayerPromise(),2);qH=xD.yieldResult;if(!qH)return xD.return();!T()&&_.X("kevlar_watch_while_v2")&&(US(JT&&!_.X("kevlar_watch_while_bottom_align")?"north":"south"),yo(Un()?"west":"east"));var ia=qH;ia.addEventListener("onVideoDataChange",TL);ia.addEventListener("onStateChange",Iz);ia.addEventListener("onExpandMiniplayer",
N8);ia.addEventListener("onCloseMiniplayer",EA);b(qH.getVideoAspectRatio());R(!0);stG()||m(!0);_.di(xD)})});
_.da("yt-deactivate-miniplayer",function(JT,w$){return _.n(function(xD){if(!u())return xD.return();R(!1);eN(!1);W(JT);K(!1);y(!1);if(qH){var ia=qH;ia.removeEventListener("onVideoDataChange",TL);ia.removeEventListener("onStateChange",Iz);ia.removeEventListener("onExpandMiniplayer",N8);ia.removeEventListener("onCloseMiniplayer",EA)}stG()||w$?w$&&m(!1):m(!0);_.di(xD)})});
var EG=function(){return!(hT()&&_.X("kevlar_watch_while_modern"))},f7=function(){var JT;
return!((JT=c6())==null||!JT.contents)},M8=function(){var JT=aI();
var w$=F();w$=Math.min(Math.min(w$.width,w$.height)-32,720);var xD=e(),ia=EG(),$0=f7()&&N(),$d=Math.min(JT,w$);JT=new _.$i(192,ia?116:192);xD=new _.$i($0?G26:xD,1);$d=new _.$i($d,ia?$d-76:$d);$d=xD.aspectRatio()>$d.aspectRatio()?$d.width/xD.width:$d.height/xD.height;xD=xD.scale($d);JT.width<=xD.width&&JT.height<=xD.height||(JT=xD.aspectRatio()<=JT.aspectRatio()?JT.width/xD.width:JT.height/xD.height,xD.scale(JT),xD.width=Math.min(xD.width,w$),xD.height=Math.min(xD.height,w$));return new _.$i(xD.width,
_.ki(192,xD.height+iBU(ia,$0),720))},NH=function(){var JT=M8(),w$=EG(),xD=f7()&&N();
return new _.$i(JT.width,JT.height-iBU(w$,xD))},Jj=function(){var JT=function(w$){w$.target===G.value&&h()&&(K(!1),G.value.removeEventListener("transitionend",JT))};
stG()||(G.value.addEventListener("transitionend",JT),K(!0));y(!N())};
_.bC(function(){var JT=L7(),w$=_.qW(3),xD=_.Uw(3);if(w$&&xD&&JT){_.WT(w$,xD,JT);xD=pQ();var ia=aq(),$0=K7(),$d=kD(),DB=KQ();$0&&$d&&DB&&(_.HT(w$,JT,[$0,$d,DB]),_.Oq(w$,[$0,$d]));xD&&ia&&_.HT(w$,JT,[xD,ia])}},"UatZXe");
_.bC(function(){var JT=Rz();if(JT){var w$=_.qW(0),xD=_.Uw(0);w$&&xD&&(_.WT(w$,xD,JT),_.Oq(w$,[JT]))}},"kTR4R");
M={};return _.l("ytd-miniplayer",{el:G,class:_.tx("ytdMiniplayerComponentHost",(M.ytdMiniplayerComponentVisible=function(){return(u()||a())&&!(hT()&&_.X("kevlar_watch_while_counterfactual"))},M.ytdMiniplayerComponentAnimatingSnap=U,M.ytdMiniplayerComponentAnimatingPlaylistExpand=h,M.ytdMiniplayerComponentAnimatingFade=a,M),function(){if(a()){var JT=hg();
var w$=u(),xD=L();JT=w$?JT==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":xD?JT==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":JT==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else JT="";return JT}),
style:_.xN({top:function(){return hg()==="north"?"16px":""},
right:function(){var JT=RI(),w$=Ps();w$=(w$===void 0?0:w$)&&!Un()?400:0;return JT==="east"?16+w$+"px":""},
bottom:function(){return hg()==="south"?"16px":""},
left:function(){var JT=RI(),w$=Ps();w$=(w$===void 0?0:w$)&&Un()?400:0;return JT==="west"?16+w$+"px":""},
width:function(){return M8().width+"px"},
height:function(){return M8().height+"px"},
transform:function(){var JT=Z();return JT?"translate("+JT.x+"px, "+JT.y+"px)":""}})},_.l("div",{class:"ytdMiniplayerComponentContent"},_.l(xPS,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(JT){var w$=BPU(RI(),hg(),F(),M8(),Z()),xD=NH();Math.abs(JT.clientY-(w$.y+xD.height))>15?(t(!0),JT=_.qW(3),w$=pQ(),el||(el=!0,JT&&w$&&_.Oq(JT,[w$])),JT&&w$&&_.$I(JT,w$)):JT.preventDefault()},
onDrag:function(JT){P(JT)},
onDragEnd:function(){var JT=P1G(BPU(RI(),hg(),F(),M8(),Z()),F(),M8()),w$=G8D(RI(),hg(),F(),M8(),Ps()),xD=G8D(JT.horizontalAlignment,JT.verticalAlignment,F(),M8(),Ps());xD=new _.e5(xD.x-w$.x,xD.y-w$.y);var ia;w$=w$.y+(((ia=Z())==null?void 0:ia.y)||0)+M8().height/2;var $0=function(){RI()===JT.horizontalAlignment&&hg()===JT.verticalAlignment||A(!0);yo(JT.horizontalAlignment);US(JT.verticalAlignment);P(void 0)},$d=function(DB){DB.target===G.value&&U()&&(q(!1),$0(),G.value.removeEventListener("transitionend",
$d))};
t(!1);hg()==="south"&&w$>F().height?($0(),_.te().resolve(_.WP).close()):(G.value.addEventListener("transitionend",$d),q(!0),P(xD))}},_.l(_.E,{cond:u,
then:function(){return _.l(_.ro$,{isDisabled:Ts,playabilityStatus:q8,size:NH})}}),_.l(_.E,{cond:EG,
then:function(){return _.l(_.jB2,{isReadyToResume:Zq,data:Jg,expanded:N,onExpandClick:Jj,playlistData:c6})}}),_.l(_.E,{cond:B,
then:function(){return _.l("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.l(_.E,{cond:function(){return f7()&&N()||h()},
then:function(){return _.l(_.RsG,{className:"ytdMiniplayerComponentPlaylistPanel",data:c6,hideHeaderText:!0,withinMiniplayer:!0})}})),_.l(PMC,{onResize:function(JT){v6(_.ki(192,JT,720))},
onResizeStart:function(){var JT=_.qW(3),w$=aq();sG||(sG=!0,JT&&w$&&_.Oq(JT,[w$]));JT&&w$&&_.$I(JT,w$)},
currentAspectRatio:e,currentMiniplayerSize:aI,horizontalAlignment:RI,verticalAlignment:hg}))},"pm"),"ytd-miniplayer",{});var Bqm=_.OY.persistentPanelVisibleSelector,$q=function(){var G=_.p.apply(this,arguments)||this;G.tabGesturesIsActive=!1;G.persistentPanelEnabled=_.X("enable_ai_companion");G.hasDelegation=!1;G.isFrostedGlassInitialized=!1;G.frostedGlassExp=_.X("web_frosted_glass");G.hasPendingWatchNavigation=!1;G.mastheadHiddenFocusWithinKillswitch=_.X("web_masthead_hidden_focus_within_killswitch");G.clientOnlyWizTooltipsEnabled=_.X("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
G.scrollAtTopInternal=!0;G.guideScrollTop=0;G.isTheaterModeSession=_.on("START_IN_THEATER_MODE");G.iMaxTheaterMode=_.X("web_watch_imax_theater_mode");G.isFullWindowSession=_.on("START_IN_FULL_WINDOW_MODE");G.hasCreateFamilyDialog=!1;G.mastheadHeight=56;G.networkStatusManager=new _.pu;G.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction",
"yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};G.dynamicActionMap={"yt-run-attestation-command":function(B){var F=_.fKH.instance,D=_.Q(B,_.pfq);return D?_.X("use_rta_manager_for_async")&&
(_.X("attmusi")&&_.X("attmusi_ue")?window.attmp:B0$())?ysG(F,D,B.clickTrackingParams):NLN(F,D,B.clickTrackingParams):_.U_(Error("si"))}};
G.isFrostedGlassDisabled=!1;G.isChannelOrPlaylistPage=!1;return G};
_.r($q,_.p);_.w=$q.prototype;_.w.created=function(){var G=_.te();_.X("kevlar_clear_duplicate_pref_cookie")&&_.mX(_.Lu,function(){var B=_.C8.get("PREF");B&&!/f\d=/.test(B)&&(B=_.xf("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=B?"PREF=null;domain="+B+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.X("gzip_gel_with_worker")&&_.bW6();_.X("jspb_serialize_with_worker")&&pzD();_.X("web_worker_availability_check")&&IgZ();_.X("nwl_init_killswitch")||oQD().then(function(){_.Lu.addLowPriorityJob(WA$)});
this.pageManagerAttachedPromise=_.zn();this.ytdAppBehavior.loadDepsPromise=_.KG([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.s_(this.onThrottledScroll,200,this);_.X("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);OrG();GGG=!!_.Yf("ytappsettings.initialized");a4$=_.Yf("ytappsettings.previousValue");maQ=_.Yf("ytappsettings.previousSnapshotTime");GGG||(GGG=!0,XTD());toS();ZAD();_.Vc("DEFERRED_DETACH",
_.X("kevlar_tuner_should_defer_detach"));_.Vc("REUSE_COMPONENTS",!0);_.Vc("STAMPER_STABLE_LIST",!0);_.Vc("SCHEDULED_LAZY_LIST",!0);_.Vc("openPopupConfig",jZ$);_.Vc("useClickHandler",!0);_.X("kevlar_shell_cleanup")&&_.Lu.addLowPriorityJob(iRS.bind(this,_.Fz.caches));_.on("IS_SHELL_LOAD")&&_.qa({shellStartupDurationMs:Math.round((0,_.Zl)()-TU())});kE2(this.networkStatusManager);_.X("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",XpD(fJz)),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!",
XpD(t53)),console.log("%cVisit http://go/join-youtube-web to apply today.",XpD(ZSX)));geD(G.resolve(_.epS),1E3)};
_.w.ready=function(){var G=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var B=DW$();B&&!_.X("external_fullscreen_killswitch")&&document.addEventListener(B,this.setFullscreen.bind(this));(B=window.matchMedia("(prefers-color-scheme: dark)"))&&B.addEventListener&&B.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(B=_.te().resolve(_.fH(_.I1T)))B.subscribe("navigation-start",
function(F){F.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!0)}),B.subscribe("navigation-end",function(F){F.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!1)})};
_.w.attached=function(){var G=this;_.kl().processSignal("ci");_.X("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.esP?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Fi(_.L9l(),"SUCCESS");this.updateIconSet();_.MW(this.guideInnerContent,!1);_.Pv().initVisibilityObserver();this.guideService.guideElement=this.guide;var B=document.createElement("ytd-miniplayer"),F=_.IF(this.hostElement).querySelector("#content");
_.IF(this.hostElement).insertBefore(B,F);_.kl().processSignal("ma");_.te().resolve(_.WP).init(B);this.persistentPanelEnabled&&veH(this.persistentPanelContainer,"APP");_.on("IS_SHELL_LOAD")&&(F=document.createElement("ytd-network-status-banner"),_.IF(this.hostElement).insertBefore(F,B));_.X("kevlar_right_click_on_lockups")&&_.QM._onCaptureClick&&document.addEventListener("contextmenu",_.QM._onCaptureClick.bind(_.QM),!0);var D=function(){var u=_.bY("yt-page-navigation-progress");_.IF(G.hostElement).appendChild(u)};
setTimeout(function(){_.kl().parkOrScheduleJob(D,0,"eocs",16)},0);
_.X("service_worker_push_enabled")&&_.mX(_.Lu,pTD);_.Y2(_.pZ.getInstance(),this.dynamicActionMap,this.hostElement);_.cZ(this.hostElement,"ytd-app-attached");_.kl().processSignal("aa");cLH(this.hostElement);_.IY("gapi.load",_.lhU);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.mX(_.Lu,
function(){var u=document.createElement("ytd-video-preview");_.IF(_.IF(G.hostElement).querySelector("#video-preview")).appendChild(u)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.mX(_.Lu,function(){rhB();G.registerWithViewTransitionManager()});
if(_.Wm()&&this.isAppDarkTheme()!==_.Lp())this.onDarkModeToggledAction();else B=_.rK()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==B&&(_.X("enable_dark_theme_only_on_shorts")?_.js(_.X("enable_dark_theme_only_on_shorts_control")?window.location.href:_.TJ(window.location.href,{theme:"dark"})):_.em(new _.Uf("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(HmU=new Wy$(this.hostElement)),dPa=new ACz(this.hostElement),Yh3=new p7S(this.hostElement),fiG=new Ii$(this.hostElement)};
_.w.getThemeSettingsToLog=function(){var G=_.rK()==="USER_INTERFACE_THEME_DARK";G=_.Wm()?_.Lp()?"os-dark":"os-light":G?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:G,cookiesEnabled:_.y5()}};
_.w.detached=function(){_.pi(this.guideInnerContent);_.Lu.cancelJob(VaG);VaG=0;_.Lu.cancelJob(pZA);pZA=0;_.IeS(JLA);JLA.length=0;YwH=_.GQs=null;_.Pv().dispose();_.X("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Ab(_.pZ.getInstance(),HmU.playlistHandlerActionMap,HmU.JSC$33503_clientRoot);_.Ab(_.pZ.getInstance(),dPa.downloadManagerActionMap,dPa.JSC$33949_clientRoot);_.Ab(_.pZ.getInstance(),Yh3.feedbackCollectorActionMap,Yh3.JSC$33944_clientRoot);
for(var G=_.C(fiG.eventListeners),B=G.next();!B.done;B=G.next()){var F=_.C(B.value);B=F.next().value;F=F.next().value;F=_.C(F);for(var D=F.next();!D.done;D=F.next()){var u=_.C(D.value);D=u.next().value;u=u.next().value;B.removeEventListener(D,u)}}_.Ab(_.pZ.getInstance(),fiG.autonavPauseActionMap,fiG.JSC$21686_clientRoot)};
_.w.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.D4().getFlag(186)};
_.w.computeIsInlinePreviewEnabled=function(G,B,F){return!F&&GdS({miniplayerIsActive:G,miniplayerPlaybackState:B})};
_.w.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.d5({type:"SET_FROSTED_GLASS_MODE",payload:!_.X("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"}))};
_.w.computeIsFrostedGlassDisabled=function(G,B,F,D){return G||B||F||D&&_.X("web_frosted_glass_disable_watch")};
_.w.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.X("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.w.computeIsHomePage=function(G,B){if(!G||B==null||!B.endpoint)return!1;var F;return((F=_.Q(B.endpoint,_.x9))==null?void 0:F.browseId)==="FEwhat_to_watch"};
_.w.updateIsChannelOrPlaylistPage=function(){if(_.X("web_frosted_glass")){var G,B,F=(B=(G=_.te().resolve(_.fH(_.pA)))==null?void 0:G.getCurrentPage())==null?void 0:B.pageSubtype;this.isChannelOrPlaylistPage=F?["channel","channels","playlist"].includes(F):!1}};
_.w.scheduleFrostedGlassInitialization=function(){var G=this;_.X("web_frosted_glass")&&_.kl().parkOrScheduleJob(function(){G.isFrostedGlassInitialized=!0},0,ql(["eocs",
"cr"]),300)};
_.w.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.zLs(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.d5({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.d5({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.w.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ADz(!0))};
_.w.onYtSignalActionRequestPersistentStorage=function(){if(!_.X("request_persistent_storage_killswitch")){var G=_.te().resolve(_.PCD);G.cachedPersistStatePromise||(G.cachedPersistStatePromise=xQA())}};
_.w.handleYtChannelCreationFormEndpoints=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.w.handleShowEngagementPanelEndpoint=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.w.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ADz(!1))};
_.w.initIconDefs=function(G,B){var F=document.createElement("iron-iconset-svg");F.name=G;G=document.createElementNS("http://www.w3.org/2000/svg","svg");F.appendChild(G);G.appendChild(B);document.body.appendChild(F);return F};
_.w.onWindowResized=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var G=_.TS.getInstance();G.documentWidth_=document.body.clientWidth;k8H(G)};
_.w.onWindowScrolled=function(){var G=_.te().resolve(_.pA).getCurrentPage();if(G!=null&&G.getScrollTop){var B=this.ytdReduxBehavior,F=B.dispatch;G=G.getScrollTop()<=0;F.call(B,_.d5({type:"SET_SCROLL_AT_TOP",payload:G}))}};
_.w.guideIsVisibleButNotPersistentSelectorChanged=function(){var G=_.te().resolve(_.pA).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=G.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"),
G.setScrollTop(this.guideScrollTop));_.Ia(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.w.getCurrentPageScrollableElementType=function(){var G=_.te().resolve(_.pA).getCurrentPage();if(G&&G.getPageScrollingElement())return G.getPageScrollingElement().nodeName};
_.w.observeGuideVisibility=function(){var G=_.TS.getInstance(),B=this.miniGuideVisible;G.guidePersistentAndVisible_=this.guidePersistentAndVisible;G.miniGuideVisible_=B;k8H(G)};
_.w.observePersistentPanelVisibility=function(){var G=_.TS.getInstance();G.persistentPanelVisible_=this.persistentPanelVisible;k8H(G)};
_.w.handleEduDismissAction=function(G){G&&G.eduDismissAction&&(_.T1(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.vBv.getInstance(),_.JX.set(G.eduDismissAction.key+"-dismissed",!0))};
_.w.handleEduImpressionAction=function(G){if(G&&G.eduImpressionAction){var B=_.vBv.getInstance();G=G.eduImpressionAction.key;B.JSC$13502_eduDisplayedThisLoad_[_.Vcq[G].setKey||G]=!0;_.JX.set(G+"-impression",parseInt(_.JX.get(G+"-impression")||0,10)+1)}};
_.w.onYtSignalActionConfirmMentionsEdu=function(){_.T1(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.fM.getInstance();_.Ie.set("edu-dismissed",!0)};
_.w.onYtSignalActionRecordMentionsEduImpression=function(){_.fM.getInstance();var G=_.Ie.set,B=parseInt(_.Ie.get("edu-impressions"),10);G.call(_.Ie,"edu-impressions",(isFinite(B)?B:0)+1)};
_.w.onYtPageManagerAttached=function(G){var B;((B=_.oF(G))==null?void 0:B.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.w.onInvokeInstrumentManagerAction=function(G,B){SCQ(B,G)};
_.w.updateIconSet=function(){var G=this.hostElement.querySelector("#masthead");if(G){var B=_.fp(G),F=B.querySelector("g#yt-logo-updated");F&&(G=document.createElementNS("http://www.w3.org/2000/svg","defs"),G.appendChild(F.cloneNode(!0)),(B=B.querySelector("g#yt-logo-red-updated"))&&G.appendChild(B.cloneNode(!0)),this.initIconDefs("yt-logos-ext",G))}};
_.w.updateMastheadData=function(){var G=this,B,F,D,u,R;return _.n(function(N){if(N.nextAddress==1){B=G.data;F=G.hostElement.querySelector("#masthead");if(!F)return N.return();_.ft(G,function(){F.data=G.topbarData});
if(!G.get("response.topbar",B)||G.get("response.topbar.responseContext.maxAgeSeconds",B)===0)return N.jumpTo(0);if(D=_.te().resolve(_.Cv))return N.yield(D(),6);u=_.te().resolve(_.tf);return N.yield(u.put("service:topbar:fallback",new _.Zs({innertubeResponse:G.get("response.topbar",B)})),0)}return(R=N.yieldResult)?N.yield(R.put("service:topbar:fallback",new _.Zs({innertubeResponse:G.get("response.topbar",B)})),0):N.jumpTo(0)})};
_.w.computeTopbarData=function(G){if(!G)return null;var B;return this.isShortsPage&&this.topbarData&&!_.Q((B=G.response)==null?void 0:B.topbar,XaU)?this.topbarData:G.response&&"topbar"in G.response?_.Q(G.response.topbar,XaU)||null:null};
_.w.onSetTheaterModeEnabled=function(G,B){this.isTheaterModeSession=B.enabled;this.setTheaterModeStyles(B.enabled)};
_.w.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.w.onDarkModeToggledAction=function(){var G=_.Ik(window.location.href);if(!_.PDL(G)){(G=!!_.c5(window.location.href).themeRefresh)&&_.em(new _.Uf("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!G){XTD();G={themeRefresh:1};var B=_.te().resolve(_.pA);if(B.isOnWatch()){var F,D;B=((F=B.getPlayerFromWatch())==null?void 0:(D=F.getPlayer())==null?void 0:D.getCurrentTime())||0;B>=1&&(G.time_continue=Math.floor(B))}_.y5()||_.rK()!=="USER_INTERFACE_THEME_DARK"||(G.theme="dark");_.js(_.TJ(window.location.href,
G))}_.X("web_appshell_refresh_trigger")&&_.Fz.caches&&this.refreshAppShellResponse();F=_.fS(window.location.href);_.s5(_.te().resolve(_.xV),_.iB(F,"theme"))}};
_.w.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.w.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.w.onPlayerFullscreen=function(G){_.vZ();this.playerFullscreen=G};
_.w.setRestrictedMode=function(G){var B=_.D4();_.uf(0,58,G);B.save();_.te().resolve(_.Sj).reload()};
_.w.onPageChanged=function(G){G.detail.newPageType==="ytd-watch-flexy"||G.detail.newPageType==="ytd-watch-fixie"||G.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.aC("WEB_PAGE_TYPE_WATCH")):G.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.aC("WEB_PAGE_TYPE_SHORTS")):G.detail.newPageType==="ytd-browse"&&G.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.aC("WEB_PAGE_TYPE_MINI_APP")):_.X("web_frosted_glass")&&G.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.aC("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.aC("WEB_PAGE_TYPE_UNKNOWN"));G.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.w.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.w.onGuideToggleTap=function(){_.cZ(this.hostElement,"yt-guide-toggle")};
_.w.onGuideToggleHover=function(){_.cZ(this.hostElement,"yt-guide-hover")};
_.w.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.w.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.w.setMastheadTheme=function(){var G=_.fp(this.hostElement).querySelector("#masthead");G&&(G.dark=G.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),G.isDarkThemeForced=!1)};
_.w.onRequestPanelModeChange=function(G,B){this.hideHeaderShadow=B.mode!=="seamed"};
_.w.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.w.onDrawerIronSelect=function(G){_.oF(G).id==="guide"&&this.processDrawerIronSelect()};
_.w.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var G="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(G="opened"));_.cZ(this.hostElement,"yt-autonav-pause-guide-"+G)};
_.w.onAddElementToApp=function(G){_.IF(this.hostElement).appendChild(G.detail)};
_.w.onThrottledScroll=function(){var G=_.te().resolve(_.pA).getCurrentPage();G&&(this.scrollAtTopInternal=G.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.w.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.w.setFullscreen=function(){if(_.X("external_fullscreen")||!this.isWatchPage){var G=_.X("kevlar_fullerscreen_root_only_killswitch")?!!_.vZ():!!_.vZ()&&_.vZ()===document.documentElement;G=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(G||this.isFullWindowSession);this.fullscreen!==G&&((this.fullscreen=G)&&_.Ia(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.VU().dispatch(_.m1N(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.T1(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.w.setFullscreenLoggingForShorts=function(G){var B,F,D;return _.n(function(u){if(u.nextAddress==1)return u.yield((B=_.AZ())==null?void 0:B.getPlayerPromise(),2);F=u.yieldResult;(D=F)==null||D.setAppFullscreen(G);_.di(u)})};
_.w.updateMastheadCssHeight=function(){var G=this.mastheadHeight;this.fullscreen&&(G=0);_.Ss(this.hostElement,{"--ytd-masthead-height":G+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.w.updateNetworkStatusBannerDisplayStatus=function(){var G="unset";this.fullscreen&&(G="none");_.Ss(this.hostElement,{"--ytd-network-status-banner-display":G})};
_.w.updateNetworkStatusBannerCssHeight=function(){var G="unset";this.fullscreen&&(G="0px");_.Ss(this.hostElement,{"--ytd-network-status-banner-max-height":G})};
_.w.updateScrollAndMasthead=function(G,B,F,D){this.iMaxTheaterMode||(D=!1);var u=_.te().resolve(_.pA).getCurrentPage();G||B||D?(document.body.classList.add("no-scroll"),u.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.x7(this,this.onScroll)),u.setScrollTop(0),_.Ss(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":fC()+"px"})):F?_.cZ(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.cZ(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
u.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.x7(this,this.onScroll)));this.mastheadHidden=G||B||F;this.updateMastheadCssHeight();_.X("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.w.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.w.onYtNavigateAction=function(G){G=this.get("navigateAction.endpoint",G);_.cZ(this.hostElement,"yt-navigate",{endpoint:G})};
_.w.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var G=document.createElement("yt-create-family-dialog");_.IF(this.hostElement).appendChild(G);this.hasCreateFamilyDialog=!0}};
_.w.onSetPushNotificationsEnabledCommand=function(G){var B=this,F=_.Q(G,arG);F&&typeof F.enabled==="boolean"&&(Notification.permission!=="granted"?bRA().then(function(){Notification.permission==="granted"?(yJU(!F.enabled).then(qqS),F.successAction&&_.fi(B.hostElement,[F.successAction])):F.failureAction&&_.fi(B.hostElement,[F.failureAction])}):(yJU(!F.enabled).then(qqS),F.successAction&&_.fi(this.hostElement,[F.successAction])))};
_.w.onYtSignalActionEnableChromeNotifications=function(){VDB(!0)};
_.w.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Q(this.topbarData.hotkeyDialog,W3S)}}})};
_.w.onYtSignalActionShowKeyboardShortcutDialog=function(){_.T1(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.w.onYtEndpointChangeHandler=function(G,B){var F=_.IG(_.gB);F.pendingPrefetchJob_&&(B=!(!B||B.autonav!="1"),F.pendingPrefetchJob_.resolve(G&&_.BEs(G)?_.iDg(G,B):""),F.pendingPrefetchJob_=null);_.T1(this.hostElement,"yt-pause-active-page-context");_.T1(this.hostElement,"ytd-log-youthere-nav");_.T1(this.hostElement,"yt-prepare-page-dispose")};
_.w.handleCommandWithCommandHandler=function(G,B){_.Gm.instance.resolveCommand(G,{form:{element:B}})};
_.w.onYtTimedCommand=function(G){var B=this;G=_.Q(G,gmD);var F=G.command;F&&_.uQ(_.Lu,function(){var D=_.Q(F,_.tCa);D?(_.Gm.instance.resolveCommand(F),B.maybeLogGetAnswerRequestTick(D)):_.tL(B.hostElement,[F],B.hostElement)},G.timeoutMs||0)};
_.w.maybeLogGetAnswerRequestTick=function(G){G&&G.isFirstRequest&&(_.hJ("search_overview_answer"),_.KR("so_rq",void 0,"search_overview_answer"))};
_.w.onYtSignalActionSkipNavigation=function(){var G=_.te().resolve(_.pA).getCurrentPage();_.Jo(G)};
_.w.onYtSignalActionCopyDebugData=function(){Co2()};
_.w.handleEntityUpdateCommand=function(G){_.Gx(_.Q(G,_.yQq).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.w.logFlowLoggingEventCommand=function(G){if(G=_.Q(G,_.OaQ))if(G.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var B=G.flowEventNamespace,F=G.flowEventType,D=G.flowType;D&&B&&F&&_.tP8(_.ZV(B,F,G.flowEventMetadata),D)}else{B=_.g8();F=G.flowEventNamespace;D=G.flowEventType;var u=G.flowType;u&&F&&D&&B.logFlowEvent(_.ZV(F,D,G.flowEventMetadata),u,G.flowNonce)}};
_.w.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.w.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.w.onTouchStart=function(){var G=_.GT();_.qW()&&_.kF(G.JSC$13624_screenManager,{visualElement:G.ve})};
_.w.handleSelectLanguageCommand=function(G){if(G=_.Q(G,N_D).hl){var B=_.D4();B.set("hl",G);B.save();_.te().resolve(_.Sj).reload()}};
_.w.handleConfirmDialogEndpoint=function(G){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G)};
_.w.handleOpenPopupNavigationEndpoints=function(G,B){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G,B)};
_.w.handleSaveCommandToSessionStorage=function(G){if(G=_.Q(G,_.TPN)){var B=G.key;B&&G.command&&window.sessionStorage.setItem(B,JSON.stringify(G.command))}};
_.w.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(G){G&&G.active&&G.active.postMessage({type:"refresh_shell"})}).catch(function(G){G.name!=="SecurityError"&&_.k2(G)})};
_.w.onDeviceThemeChanged=function(){var G=_.Lp();_.uf(_.D4(),185,G);_.D4().save()};
_.w.handleYtRegisterPromoCommand=function(G){if(_.Q(G,K3Q)){var B=_.te().resolve(_.pA).getCurrentPage()||this.hostElement;yk$().registerPromoCommand(_.Q(G,K3Q),B)}};
_.w.onYtNavigateHomeAction=function(){if(!_.X("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G,B,F,D,u=(D=(G=this.topbarData)==null?void 0:(B=G.logo)==null?void 0:(F=B.topbarLogoRenderer)==null?void 0:F.endpoint)!=null?D:_.F5;this.ytComponentBehavior.resolveCommand(u)}};
_.w.onYtLocationCollectionCommand=function(G){jtH(_.Q(G,vGQ))};
_.w.onYtGetLocationCommand=function(G){xtB(_.Q(G,VK$),this)};
_.w.updateRenderGuideFromBinding=function(G){this.renderGuide=G.detail.value};
_.w.updateGuidePersistentAndVisibleFromBinding=function(G){this.guidePersistentAndVisible=G.detail.value};
_.w.updateMiniGuideVisibleFromBinding=function(G){this.miniGuideVisible=G.detail.value};
_.w.onThemeSelected=function(G,B){var F=_.D4(),D=G||B?G:_.Lp(),u=(D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.PDL(_.Ik(window.location.href));_.uf(0,165,G);_.uf(0,174,B);F.save();u&&_.T1(this.hostElement,"yt-dark-mode-toggled-action",[D]);_.T1(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.w.getCurrentTheme=function(){return _.Wm()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.rK()};
_.w.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.w.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.w.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.w.handleShowConsentPrimitive=function(G){var B=this,F,D;return _.n(function(u){if(u.nextAddress==1){try{F=(D=_.AZ())==null?void 0:D.getPlayerPromise()}catch(R){}return u.yield(ch2(G,F),2)}_.T1(B.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.di(u)})};
_.w.handleSelectActiveIdentityEndpointInternal=function(G){_.Xu();G=_.Q(G,_.NAv);if(G!=null&&G.supportedTokens){G=_.C(G.supportedTokens);for(var B=G.next();!B.done;B=G.next())B=B.value,B.accountSigninToken&&_.js(B.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.w.handleUpdatePermissionRoleCommand=function(G){if(G=_.Q(G,_.CxU)){var B;this.hasDelegation=!((B=_.Q(G.renderer,_.wjU))==null||!B.status)}};
_.w.registerWithViewTransitionManager=function(){var G=_.te().resolve(_.fH(_.w1));if(G){var B,F=(B=this.guide)==null?void 0:B.querySelector("#scrim"),D;B=(D=this.guide)==null?void 0:D.querySelector("#contentContainer");F&&B&&G.isAnyTransitionEnabled&&(D={},G.viewTransitionCoordinator.registerElement(F,(D.slide="app-drawer-scrim-page-transition",D["lockup-to-watch"]="app-drawer-scrim-page-transition",D["learning-journey"]="app-drawer-scrim-page-transition",D)),F={},G.viewTransitionCoordinator.registerElement(B,
(F.slide="app-drawer-container-page-transition",F["lockup-to-watch"]="app-drawer-container-page-transition",F["learning-journey"]="app-drawer-container-page-transition",F)))}};
_.ZN.Object.defineProperties($q.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.X("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.X("kevlar_show_chips_on_scroll"))}}});
_.ZN.Object.defineProperties($q,{template:{configurable:!0,enumerable:!0,get:function(){if(zDX===void 0){var G=document.createElement("template");_.H(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
G.content.insertBefore(_.f().content.cloneNode(!0),G.content.firstChild);zDX=G}G=zDX;return G}}});
$q.prototype.onOpenHotkeyDialog=$q.prototype.onOpenHotkeyDialog;$q.prototype.setFullscreen=$q.prototype.setFullscreen;$q.prototype.onAddElementToApp=$q.prototype.onAddElementToApp;$q.prototype.onDrawerIronSelect=$q.prototype.onDrawerIronSelect;$q.prototype.onGuideOpenButtonHover=$q.prototype.onGuideOpenButtonHover;$q.prototype.onRequestPanelModeChange=$q.prototype.onRequestPanelModeChange;$q.prototype.onPageDataUpdated=$q.prototype.onPageDataUpdated;$q.prototype.onPageChanged=$q.prototype.onPageChanged;
$q.prototype.onSetTheaterModeEnabled=$q.prototype.onSetTheaterModeEnabled;$q.prototype.updateMastheadData=$q.prototype.updateMastheadData;$q.prototype.onYtPageManagerAttached=$q.prototype.onYtPageManagerAttached;$q.prototype.observePersistentPanelVisibility=$q.prototype.observePersistentPanelVisibility;$q.prototype.observeGuideVisibility=$q.prototype.observeGuideVisibility;$q.prototype.guideIsVisibleButNotPersistentSelectorChanged=$q.prototype.guideIsVisibleButNotPersistentSelectorChanged;
$q.prototype.isInlinePreviewEnabledChanged=$q.prototype.isInlinePreviewEnabledChanged;$q.prototype.isWatchPageChanged=$q.prototype.isWatchPageChanged;$q.prototype.dispatchFrostedGlassMode=$q.prototype.dispatchFrostedGlassMode;_.c([_.k(_.hf),_.I("design:type",Object)],$q.prototype,"ytdReduxBehavior",void 0);_.c([_.k(_.wk.YtEventForwardingBehavior),_.I("design:type",Object)],$q.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.k(_.f4.YtOpenPopupBehavior),_.I("design:type",Object)],$q.prototype,"ytOpenPopupBehavior",void 0);_.c([_.k(_.Za.YtActionHandlerBehavior),_.I("design:type",Object)],$q.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.k({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.pZ.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.X("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(G){this.actionRouter_.handleAction(G.detail)}}),
_.I("design:type",Object)],$q.prototype,"ytActionRouterBehavior",void 0);_.c([_.k(IGA.YtdAppBehavior),_.I("design:type",Object)],$q.prototype,"ytdAppBehavior",void 0);_.c([_.k(_.ti.YtEndpointBehavior),_.I("design:type",Object)],$q.prototype,"ytEndpointBehavior",void 0);_.c([_.k(M53.YtEndpointHandlerWithYpcBehavior),_.I("design:type",Object)],$q.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.c([_.k(bSL.YtLogYpcFlowCommandsBehavior),_.I("design:type",Object)],$q.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.c([_.k(_.g.YtRendererBehavior),_.I("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.c([_.k(_.aS.YtComponentBehavior),_.I("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.c([_.v({selector:aLU}),_.I("design:type",Object)],$q.prototype,"tabGesturesIsActive",void 0);_.c([_.v(),_.I("design:type",Boolean)],$q.prototype,"renderGuide",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"guidePersistentAndVisible",void 0);_.c([_.v({selector:h7D}),_.I("design:type",Boolean)],$q.prototype,"guideIsVisibleButNotPersistent",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"standalone",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"miniGuideVisible",void 0);
_.c([_.v(),_.I("design:type",Object)],$q.prototype,"persistentPanelEnabled",void 0);_.c([_.v({selector:Bqm,reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"persistentPanelVisible",void 0);_.c([_.v({selector:_.zo8}),_.I("design:type",Number)],$q.prototype,"miniplayerPlaybackState",void 0);_.c([_.v({selector:_.hc,reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"miniplayerIsActive",void 0);
_.c([_.v({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.I("design:type",Boolean)],$q.prototype,"isInlinePreviewEnabled",void 0);_.c([_.v(),_.I("design:type",Boolean)],$q.prototype,"isInlinePreviewDisabled",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.on("START_IN_FULL_WINDOW_MODE")}}),
_.I("design:type",Boolean)],$q.prototype,"mastheadHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"playerFullscreen",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"fullscreen",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"hideHeaderShadow",void 0);
_.c([_.v({value:{GUIDE_ALT_LABEL:_.G7("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.I("design:type",Object)],$q.prototype,"menuStrings",void 0);_.c([_.v({computed:"computeTopbarData(data)"}),_.I("design:type",Object)],$q.prototype,"topbarData",void 0);_.c([_.v({selector:_.kiS,reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"isWatchPage",void 0);_.c([_.v({selector:_.O3J,reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"isShortsPage",void 0);
_.c([_.v({selector:function(G){return _.KJ(G)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.I("design:type",Boolean)],$q.prototype,"isMiniAppPage",void 0);_.c([_.v({selector:function(G){return _.KJ(G)==="WEB_PAGE_TYPE_BROWSE"}}),
_.I("design:type",Boolean)],$q.prototype,"isBrowsePage",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Boolean)],$q.prototype,"scrolling",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$q.prototype,"hasDelegation",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.I("design:type",Boolean)],$q.prototype,"guideScrolledByTouch",void 0);_.c([_.v(),_.I("design:type",Object)],$q.prototype,"isFrostedGlassInitialized",void 0);
_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$q.prototype,"frostedGlassExp",void 0);_.c([_.v({selector:function(G){return G.ui.chipBarIsSticky}}),
_.I("design:type",Boolean)],$q.prototype,"chipBarIsSticky",void 0);_.c([_.v({selector:KV$}),_.I("design:type",Boolean)],$q.prototype,"scrollAtTop",void 0);_.c([_.v({computed:"computeIsHomePage(isBrowsePage, data)"}),_.I("design:type",Boolean)],$q.prototype,"isHomePage",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$q.prototype,"hasPendingWatchNavigation",void 0);_.c([_.v({reflectToAttribute:!0}),_.I("design:type",Object)],$q.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.c([_.v(),_.I("design:type",Object)],$q.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.c([sa("guide"),_.I("design:type",Object)],$q.prototype,"guide",void 0);_.c([sa("guide-service"),_.I("design:type",sZG)],$q.prototype,"guideService",void 0);_.c([sa("guide-inner-content"),_.I("design:type",HTMLDivElement)],$q.prototype,"guideInnerContent",void 0);_.c([_.iA("#persistent-panel-container"),_.I("design:type",HTMLElement)],$q.prototype,"persistentPanelContainer",void 0);
_.c([_.v({selector:_.b3J}),_.I("design:type",String)],$q.prototype,"frostedGlassMode",void 0);_.c([_.Ga("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"dispatchFrostedGlassMode",null);_.c([_.v({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.I("design:type",Object)],$q.prototype,"isFrostedGlassDisabled",void 0);
_.c([_.Ga("isWatchPage"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"isWatchPageChanged",null);_.c([_.O("isHomePage","chipBarIsSticky","scrollAtTop"),_.I("design:type",Boolean),_.I("design:paramtypes",[])],$q.prototype,"applyFrostedGlassToChipBar",null);_.c([_.v(),_.I("design:type",Object)],$q.prototype,"isChannelOrPlaylistPage",void 0);
_.c([_.Ry("isInlinePreviewEnabled"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"isInlinePreviewEnabledChanged",null);_.c([_.Ga("guideIsVisibleButNotPersistent"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.c([_.Ga("guidePersistentAndVisible","miniGuideVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"observeGuideVisibility",null);_.c([_.Ga("persistentPanelVisible"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"observePersistentPanelVisibility",null);
_.c([_.Pm("attached"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],$q.prototype,"onYtPageManagerAttached",null);_.c([_.Ga("data"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype",Promise)],$q.prototype,"updateMastheadData",null);_.c([_.Pm("yt-set-theater-mode-enabled"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent,Object]),_.I("design:returntype")],$q.prototype,"onSetTheaterModeEnabled",null);
_.c([_.Pm("yt-page-type-changed"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],$q.prototype,"onPageChanged",null);_.c([_.Pm("yt-page-data-updated"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"onPageDataUpdated",null);_.c([_.Pm("yt-request-panel-mode-change"),_.I("design:type",Function),_.I("design:paramtypes",[Event,Object]),_.I("design:returntype")],$q.prototype,"onRequestPanelModeChange",null);
_.c([_.Pm("yt-guide-hover"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"onGuideOpenButtonHover",null);_.c([_.Pm("app-drawer-transitioned"),_.I("design:type",Function),_.I("design:paramtypes",[Event]),_.I("design:returntype")],$q.prototype,"onDrawerIronSelect",null);_.c([_.Pm("yt-add-element-to-app"),_.I("design:type",Function),_.I("design:paramtypes",[CustomEvent]),_.I("design:returntype")],$q.prototype,"onAddElementToApp",null);
_.c([_.Pm("yt-set-fullerscreen-styles"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"setFullscreen",null);_.c([_.Pm("yt-open-hotkey-dialog"),_.I("design:type",Function),_.I("design:paramtypes",[]),_.I("design:returntype")],$q.prototype,"onOpenHotkeyDialog",null);_.c([_.mC({is:"ytd-app"})],$q);_.kl().processSignal("eor");

_.jV();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
